diff --git a/bundling-modeler/.gitignore b/bundling-modeler/.gitignore new file mode 100644 index 0000000..ef23885 --- /dev/null +++ b/bundling-modeler/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +tmp/ \ No newline at end of file diff --git a/bundling-modeler/README.md b/bundling-modeler/README.md new file mode 100644 index 0000000..44ac039 --- /dev/null +++ b/bundling-modeler/README.md @@ -0,0 +1,80 @@ +# dmn-js bundling-modeler example + +This example showcases how to add [dmn-js](https://github.com/bpmn-io/dmn-js) modeler +into a node-style application and bundle it for the browser using +[Webpack](https://webpack.js.org). + + +## About + +This example uses dmn-js to embed the [dish-decision](https://demo.bpmn.io/dmn/s/check-order) diagram into a web application. + +![example screenshot](./resources/screenshot.png "Screenshot of the example application") + + +## Usage Summary + +Install dmn-js via [npm](http://npmjs.org) + +``` +npm install --save dmn-js +``` + +Use it in your application + +```javascript +const dmnJS = new DmnViewer({ + container: '#canvas' +}); + +try { + const { warnings } = await dmnJS.importXML(xml); + + if (warnings.length) { + console.log('import with warnings', warnings); + } else { + console.log('import successful'); + } + + dmnJS + .getActiveViewer() + .get('canvas') + .zoom('fit-viewport'); +} catch (err) { + console.log('something went wrong:', err); +} +``` + +Add an appropriate loader that understands the ES modules that [dmn-js](http://github.com/bpmn-io/dmn-js) ships with. + +Webpack, as seen in [the example](./webpack.config.js) understands ES modules out of the box and will combine the sources to a cross-browser understandable ES5 bundle. + +Bundle the `src/app.js` file for the browser with webpack: + +``` +webpack ./src/app.js -o public/app.bundled.js --mode development +``` + +To learn about more bundling options, checkout the [webpack-cli documentation](https://webpack.js.org/api/cli/). + +__Note:__ You may use another bundling setup, too. Options include, among others, Rollup or Browserify + Babelify. + + +## Building the Example + +Initialize the project dependencies via + +``` +npm install +``` + +To create the sample distribution in the `public` folder run + +``` +npm run all +``` + + +## License + +MIT diff --git a/bundling-modeler/package-lock.json b/bundling-modeler/package-lock.json new file mode 100644 index 0000000..36e9d68 --- /dev/null +++ b/bundling-modeler/package-lock.json @@ -0,0 +1,12560 @@ +{ + "name": "dmn-js-example-bundling-modeler", + "version": "0.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "dmn-js-example-bundling-modeler", + "version": "0.0.0", + "license": "MIT", + "dependencies": { + "dmn-js": "^16.6.1" + }, + "devDependencies": { + "@parcel/transformer-inline-string": "^2.12.0", + "npm-run-all": "^4.1.5", + "open-cli": "^7.0.0", + "parcel": "^2.12.0", + "process": "^0.11.10", + "raw-loader": "^4.0.0", + "webpack": "^5.90.3", + "webpack-cli": "^5.1.4" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.13.tgz", + "integrity": "sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bpmn-io/diagram-js-ui": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bpmn-io/diagram-js-ui/-/diagram-js-ui-0.2.3.tgz", + "integrity": "sha512-OGyjZKvGK8tHSZ0l7RfeKhilGoOGtFDcoqSGYkX0uhFlo99OVZ9Jn1K7TJGzcE9BdKwvA5Y5kGqHEhdTxHvFfw==", + "license": "MIT", + "dependencies": { + "htm": "^3.1.1", + "preact": "^10.11.2" + } + }, + "node_modules/@bpmn-io/dmn-variable-resolver": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/dmn-variable-resolver/-/dmn-variable-resolver-0.7.0.tgz", + "integrity": "sha512-ssL8fch5U0q8efbrHdgSGznh5Dlk+R0MNnazCtDpyac6yqlgn/JQ/HewCjacTk4XFubbMiDbuEIESHLBsWCBxg==", + "license": "MIT" + }, + "node_modules/@bpmn-io/feel-editor": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-1.6.1.tgz", + "integrity": "sha512-HI8XRd25tOKEv8GDo1srzzpjoBKyytAJ3k/74WjpnBiU+j8H6gJM07fr/zL5psikxnxKRFG0HrnpW1t5y2axWQ==", + "license": "MIT", + "dependencies": { + "@bpmn-io/feel-lint": "^1.2.0", + "@codemirror/autocomplete": "^6.16.2", + "@codemirror/commands": "^6.6.0", + "@codemirror/language": "^6.10.2", + "@codemirror/lint": "^6.8.0", + "@codemirror/state": "^6.4.1", + "@codemirror/view": "^6.28.1", + "@lezer/highlight": "^1.2.0", + "lang-feel": "^2.1.1", + "min-dom": "^4.2.1" + }, + "engines": { + "node": ">= 16" + } + }, + "node_modules/@bpmn-io/feel-lint": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-lint/-/feel-lint-1.2.0.tgz", + "integrity": "sha512-nsvAYxiSbWyjpd3gNnJd+60aTWrZvngYnZfe+GpmkM/pQoOgtF17GhD/p4fgaeAd/uUP3q9sO6EWRX+OU/p9dw==", + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.8.0", + "lezer-feel": "^1.2.3" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@codemirror/autocomplete": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.17.0.tgz", + "integrity": "sha512-fdfj6e6ZxZf8yrkMHUSJJir7OJkHkZKaOZGzLWIYp2PZ3jd+d+UjG8zVPqJF6d3bKxkhvXTPan/UZ1t7Bqm0gA==", + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0" + }, + "peerDependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@codemirror/commands": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.0.tgz", + "integrity": "sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==", + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.4.0", + "@codemirror/view": "^6.27.0", + "@lezer/common": "^1.1.0" + } + }, + "node_modules/@codemirror/language": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.2.tgz", + "integrity": "sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==", + "license": "MIT", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.23.0", + "@lezer/common": "^1.1.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0", + "style-mod": "^4.0.0" + } + }, + "node_modules/@codemirror/lint": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.1.tgz", + "integrity": "sha512-IZ0Y7S4/bpaunwggW2jYqwLuHj0QtESf5xcROewY6+lDNwZ/NzvR4t+vpYgg9m7V8UXLPYqG+lu3DF470E5Oxg==", + "license": "MIT", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "crelt": "^1.0.5" + } + }, + "node_modules/@codemirror/state": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz", + "integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==", + "license": "MIT" + }, + "node_modules/@codemirror/view": { + "version": "6.28.6", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.28.6.tgz", + "integrity": "sha512-bhwB1AZ6zU4M3dNKm8Aa2BXwj5mWDqE9IWpqxYKJoLCnx+AcwcMuLO01tLWgc1mx4vT1IVYVqx86YoqUsATrqQ==", + "license": "MIT", + "dependencies": { + "@codemirror/state": "^6.4.0", + "style-mod": "^4.1.0", + "w3c-keyname": "^2.2.4" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz", + "integrity": "sha512-Fxt+AfXgjMoin2maPIYzFZnQjAXjAL0PHscM5pRTtatFqB+vZxAM9tLp2Optnuw3QOQC40jTNeGYFOMvyf7v9g==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@lezer/common": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz", + "integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==" + }, + "node_modules/@lezer/highlight": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.0.tgz", + "integrity": "sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA==", + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@lezer/lr": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.1.tgz", + "integrity": "sha512-CHsKq8DMKBf9b3yXPDIU4DbH+ZJd/sJdYOW2llbW/HudP5u0VS6Bfq1hLYfgU7uAYGFIyGGQIsSOXGPEErZiJw==", + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@lmdb/lmdb-darwin-arm64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-arm64/-/lmdb-darwin-arm64-2.8.5.tgz", + "integrity": "sha512-KPDeVScZgA1oq0CiPBcOa3kHIqU+pTOwRFDIhxvmf8CTNvqdZQYp5cCKW0bUk69VygB2PuTiINFWbY78aR2pQw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@lmdb/lmdb-darwin-x64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-x64/-/lmdb-darwin-x64-2.8.5.tgz", + "integrity": "sha512-w/sLhN4T7MW1nB3R/U8WK5BgQLz904wh+/SmA2jD8NnF7BLLoUgflCNxOeSPOWp8geP6nP/+VjWzZVip7rZ1ug==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@lmdb/lmdb-linux-arm": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm/-/lmdb-linux-arm-2.8.5.tgz", + "integrity": "sha512-c0TGMbm2M55pwTDIfkDLB6BpIsgxV4PjYck2HiOX+cy/JWiBXz32lYbarPqejKs9Flm7YVAKSILUducU9g2RVg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lmdb/lmdb-linux-arm64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm64/-/lmdb-linux-arm64-2.8.5.tgz", + "integrity": "sha512-vtbZRHH5UDlL01TT5jB576Zox3+hdyogvpcbvVJlmU5PdL3c5V7cj1EODdh1CHPksRl+cws/58ugEHi8bcj4Ww==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lmdb/lmdb-linux-x64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-x64/-/lmdb-linux-x64-2.8.5.tgz", + "integrity": "sha512-Xkc8IUx9aEhP0zvgeKy7IQ3ReX2N8N1L0WPcQwnZweWmOuKfwpS3GRIYqLtK5za/w3E60zhFfNdS+3pBZPytqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lmdb/lmdb-win32-x64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-2.8.5.tgz", + "integrity": "sha512-4wvrf5BgnR8RpogHhtpCPJMKBmvyZPhhUtEwMJbXh0ni2BucpfF07jlmyM11zRqQ2XIq6PbC2j7W7UCCcm1rRQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@mischnic/json-sourcemap": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@mischnic/json-sourcemap/-/json-sourcemap-0.1.1.tgz", + "integrity": "sha512-iA7+tyVqfrATAIsIRWQG+a7ZLLD0VaOCKV2Wd/v4mqIU3J9c4jx9p7S0nw1XH3gJCKNBOOwACOPYYSUu9pgT+w==", + "dev": true, + "dependencies": { + "@lezer/common": "^1.0.0", + "@lezer/lr": "^1.0.0", + "json5": "^2.2.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@mischnic/json-sourcemap/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.2.tgz", + "integrity": "sha512-9bfjwDxIDWmmOKusUcqdS4Rw+SETlp9Dy39Xui9BEGEk19dDwH0jhipwFzEff/pFg95NKymc6TOTbRKcWeRqyQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.2.tgz", + "integrity": "sha512-lwriRAHm1Yg4iDf23Oxm9n/t5Zpw1lVnxYU3HnJPTi2lJRkKTrps1KVgvL6m7WvmhYVt/FIsssWay+k45QHeuw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.2.tgz", + "integrity": "sha512-MOI9Dlfrpi2Cuc7i5dXdxPbFIgbDBGgKR5F2yWEa6FVEtSWncfVNKW5AKjImAQ6CZlBK9tympdsZJ2xThBiWWA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.2.tgz", + "integrity": "sha512-FU20Bo66/f7He9Fp9sP2zaJ1Q8L9uLPZQDub/WlUip78JlPeMbVL8546HbZfcW9LNciEXc8d+tThSJjSC+tmsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.2.tgz", + "integrity": "sha512-gsWNDCklNy7Ajk0vBBf9jEx04RUxuDQfBse918Ww+Qb9HCPoGzS+XJTLe96iN3BVK7grnLiYghP/M4L8VsaHeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.2.tgz", + "integrity": "sha512-O+6Gs8UeDbyFpbSh2CPEz/UOrrdWPTBYNblZK5CxxLisYt4kGX3Sc+czffFonyjiGSq3jWLwJS/CCJc7tBr4sQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz", + "integrity": "sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@parcel/bundler-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/bundler-default/-/bundler-default-2.12.0.tgz", + "integrity": "sha512-3ybN74oYNMKyjD6V20c9Gerdbh7teeNvVMwIoHIQMzuIFT6IGX53PyOLlOKRLbjxMc0TMimQQxIt2eQqxR5LsA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/graph": "3.2.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/cache": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/cache/-/cache-2.12.0.tgz", + "integrity": "sha512-FX5ZpTEkxvq/yvWklRHDESVRz+c7sLTXgFuzz6uEnBcXV38j6dMSikflNpHA6q/L4GKkCqRywm9R6XQwhwIMyw==", + "dev": true, + "dependencies": { + "@parcel/fs": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/utils": "2.12.0", + "lmdb": "2.8.5" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/codeframe": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/codeframe/-/codeframe-2.12.0.tgz", + "integrity": "sha512-v2VmneILFiHZJTxPiR7GEF1wey1/IXPdZMcUlNXBiPZyWDfcuNgGGVQkx/xW561rULLIvDPharOMdxz5oHOKQg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/codeframe/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@parcel/codeframe/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@parcel/codeframe/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@parcel/codeframe/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@parcel/codeframe/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/codeframe/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/compressor-raw": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/compressor-raw/-/compressor-raw-2.12.0.tgz", + "integrity": "sha512-h41Q3X7ZAQ9wbQ2csP8QGrwepasLZdXiuEdpUryDce6rF9ZiHoJ97MRpdLxOhOPyASTw/xDgE1xyaPQr0Q3f5A==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/config-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/config-default/-/config-default-2.12.0.tgz", + "integrity": "sha512-dPNe2n9eEsKRc1soWIY0yToMUPirPIa2QhxcCB3Z5RjpDGIXm0pds+BaiqY6uGLEEzsjhRO0ujd4v2Rmm0vuFg==", + "dev": true, + "dependencies": { + "@parcel/bundler-default": "2.12.0", + "@parcel/compressor-raw": "2.12.0", + "@parcel/namer-default": "2.12.0", + "@parcel/optimizer-css": "2.12.0", + "@parcel/optimizer-htmlnano": "2.12.0", + "@parcel/optimizer-image": "2.12.0", + "@parcel/optimizer-svgo": "2.12.0", + "@parcel/optimizer-swc": "2.12.0", + "@parcel/packager-css": "2.12.0", + "@parcel/packager-html": "2.12.0", + "@parcel/packager-js": "2.12.0", + "@parcel/packager-raw": "2.12.0", + "@parcel/packager-svg": "2.12.0", + "@parcel/packager-wasm": "2.12.0", + "@parcel/reporter-dev-server": "2.12.0", + "@parcel/resolver-default": "2.12.0", + "@parcel/runtime-browser-hmr": "2.12.0", + "@parcel/runtime-js": "2.12.0", + "@parcel/runtime-react-refresh": "2.12.0", + "@parcel/runtime-service-worker": "2.12.0", + "@parcel/transformer-babel": "2.12.0", + "@parcel/transformer-css": "2.12.0", + "@parcel/transformer-html": "2.12.0", + "@parcel/transformer-image": "2.12.0", + "@parcel/transformer-js": "2.12.0", + "@parcel/transformer-json": "2.12.0", + "@parcel/transformer-postcss": "2.12.0", + "@parcel/transformer-posthtml": "2.12.0", + "@parcel/transformer-raw": "2.12.0", + "@parcel/transformer-react-refresh-wrap": "2.12.0", + "@parcel/transformer-svg": "2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/core": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/core/-/core-2.12.0.tgz", + "integrity": "sha512-s+6pwEj+GfKf7vqGUzN9iSEPueUssCCQrCBUlcAfKrJe0a22hTUCjewpB0I7lNrCIULt8dkndD+sMdOrXsRl6Q==", + "dev": true, + "dependencies": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/cache": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/graph": "3.2.0", + "@parcel/logger": "2.12.0", + "@parcel/package-manager": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/profiler": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "abortcontroller-polyfill": "^1.1.9", + "base-x": "^3.0.8", + "browserslist": "^4.6.6", + "clone": "^2.1.1", + "dotenv": "^7.0.0", + "dotenv-expand": "^5.1.0", + "json5": "^2.2.0", + "msgpackr": "^1.9.9", + "nullthrows": "^1.1.1", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/core/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@parcel/core/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/diagnostic": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/diagnostic/-/diagnostic-2.12.0.tgz", + "integrity": "sha512-8f1NOsSFK+F4AwFCKynyIu9Kr/uWHC+SywAv4oS6Bv3Acig0gtwUjugk0C9UaB8ztBZiW5TQZhw+uPZn9T/lJA==", + "dev": true, + "dependencies": { + "@mischnic/json-sourcemap": "^0.1.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/events": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/events/-/events-2.12.0.tgz", + "integrity": "sha512-nmAAEIKLjW1kB2cUbCYSmZOGbnGj8wCzhqnK727zCCWaA25ogzAtt657GPOeFyqW77KyosU728Tl63Fc8hphIA==", + "dev": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/fs": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/fs/-/fs-2.12.0.tgz", + "integrity": "sha512-NnFkuvou1YBtPOhTdZr44WN7I60cGyly2wpHzqRl62yhObyi1KvW0SjwOMa0QGNcBOIzp4G0CapoZ93hD0RG5Q==", + "dev": true, + "dependencies": { + "@parcel/rust": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/watcher": "^2.0.7", + "@parcel/workers": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/graph": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@parcel/graph/-/graph-3.2.0.tgz", + "integrity": "sha512-xlrmCPqy58D4Fg5umV7bpwDx5Vyt7MlnQPxW68vae5+BA4GSWetfZt+Cs5dtotMG2oCHzZxhIPt7YZ7NRyQzLA==", + "dev": true, + "dependencies": { + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/logger": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/logger/-/logger-2.12.0.tgz", + "integrity": "sha512-cJ7Paqa7/9VJ7C+KwgJlwMqTQBOjjn71FbKk0G07hydUEBISU2aDfmc/52o60ErL9l+vXB26zTrIBanbxS8rVg==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/markdown-ansi": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/markdown-ansi/-/markdown-ansi-2.12.0.tgz", + "integrity": "sha512-WZz3rzL8k0H3WR4qTHX6Ic8DlEs17keO9gtD4MNGyMNQbqQEvQ61lWJaIH0nAtgEetu0SOITiVqdZrb8zx/M7w==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/markdown-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@parcel/markdown-ansi/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@parcel/markdown-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@parcel/markdown-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@parcel/markdown-ansi/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/markdown-ansi/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/namer-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/namer-default/-/namer-default-2.12.0.tgz", + "integrity": "sha512-9DNKPDHWgMnMtqqZIMiEj/R9PNWW16lpnlHjwK3ciRlMPgjPJ8+UNc255teZODhX0T17GOzPdGbU/O/xbxVPzA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/node-resolver-core": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@parcel/node-resolver-core/-/node-resolver-core-3.3.0.tgz", + "integrity": "sha512-rhPW9DYPEIqQBSlYzz3S0AjXxjN6Ub2yS6tzzsW/4S3Gpsgk/uEq4ZfxPvoPf/6TgZndVxmKwpmxaKtGMmf3cA==", + "dev": true, + "dependencies": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/node-resolver-core/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/optimizer-css": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-css/-/optimizer-css-2.12.0.tgz", + "integrity": "sha512-ifbcC97fRzpruTjaa8axIFeX4MjjSIlQfem3EJug3L2AVqQUXnM1XO8L0NaXGNLTW2qnh1ZjIJ7vXT/QhsphsA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "browserslist": "^4.6.6", + "lightningcss": "^1.22.1", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-htmlnano": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-htmlnano/-/optimizer-htmlnano-2.12.0.tgz", + "integrity": "sha512-MfPMeCrT8FYiOrpFHVR+NcZQlXAptK2r4nGJjfT+ndPBhEEZp4yyL7n1y7HfX9geg5altc4WTb4Gug7rCoW8VQ==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "htmlnano": "^2.0.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "svgo": "^2.4.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-htmlnano/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@parcel/optimizer-htmlnano/node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/@parcel/optimizer-htmlnano/node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@parcel/optimizer-htmlnano/node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@parcel/optimizer-htmlnano/node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/@parcel/optimizer-htmlnano/node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@parcel/optimizer-image": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-image/-/optimizer-image-2.12.0.tgz", + "integrity": "sha512-bo1O7raeAIbRU5nmNVtx8divLW9Xqn0c57GVNGeAK4mygnQoqHqRZ0mR9uboh64pxv6ijXZHPhKvU9HEpjPjBQ==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/optimizer-svgo": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-svgo/-/optimizer-svgo-2.12.0.tgz", + "integrity": "sha512-Kyli+ZZXnoonnbeRQdoWwee9Bk2jm/49xvnfb+2OO8NN0d41lblBoRhOyFiScRnJrw7eVl1Xrz7NTkXCIO7XFQ==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "svgo": "^2.4.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/optimizer-svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@parcel/optimizer-svgo/node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/@parcel/optimizer-svgo/node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@parcel/optimizer-svgo/node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@parcel/optimizer-svgo/node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/@parcel/optimizer-svgo/node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@parcel/optimizer-swc": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-swc/-/optimizer-swc-2.12.0.tgz", + "integrity": "sha512-iBi6LZB3lm6WmbXfzi8J3DCVPmn4FN2lw7DGXxUXu7MouDPVWfTsM6U/5TkSHJRNRogZ2gqy5q9g34NPxHbJcw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "@swc/core": "^1.3.36", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/package-manager": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/package-manager/-/package-manager-2.12.0.tgz", + "integrity": "sha512-0nvAezcjPx9FT+hIL+LS1jb0aohwLZXct7jAh7i0MLMtehOi0z1Sau+QpgMlA9rfEZZ1LIeFdnZZwqSy7Ccspw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/node-resolver-core": "3.3.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "@swc/core": "^1.3.36", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/package-manager/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/packager-css": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-css/-/packager-css-2.12.0.tgz", + "integrity": "sha512-j3a/ODciaNKD19IYdWJT+TP+tnhhn5koBGBWWtrKSu0UxWpnezIGZetit3eE+Y9+NTePalMkvpIlit2eDhvfJA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "lightningcss": "^1.22.1", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-html": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-html/-/packager-html-2.12.0.tgz", + "integrity": "sha512-PpvGB9hFFe+19NXGz2ApvPrkA9GwEqaDAninT+3pJD57OVBaxB8U+HN4a5LICKxjUppPPqmrLb6YPbD65IX4RA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-js": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-js/-/packager-js-2.12.0.tgz", + "integrity": "sha512-viMF+FszITRRr8+2iJyk+4ruGiL27Y6AF7hQ3xbJfzqnmbOhGFtLTQwuwhOLqN/mWR2VKdgbLpZSarWaO3yAMg==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "globals": "^13.2.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-raw": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-raw/-/packager-raw-2.12.0.tgz", + "integrity": "sha512-tJZqFbHqP24aq1F+OojFbQIc09P/u8HAW5xfndCrFnXpW4wTgM3p03P0xfw3gnNq+TtxHJ8c3UFE5LnXNNKhYA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-svg": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-svg/-/packager-svg-2.12.0.tgz", + "integrity": "sha512-ldaGiacGb2lLqcXas97k8JiZRbAnNREmcvoY2W2dvW4loVuDT9B9fU777mbV6zODpcgcHWsLL3lYbJ5Lt3y9cg==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "posthtml": "^0.16.4" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/packager-wasm": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-wasm/-/packager-wasm-2.12.0.tgz", + "integrity": "sha512-fYqZzIqO9fGYveeImzF8ll6KRo2LrOXfD+2Y5U3BiX/wp9wv17dz50QLDQm9hmTcKGWxK4yWqKQh+Evp/fae7A==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0" + }, + "engines": { + "node": ">=12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/plugin": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/plugin/-/plugin-2.12.0.tgz", + "integrity": "sha512-nc/uRA8DiMoe4neBbzV6kDndh/58a4wQuGKw5oEoIwBCHUvE2W8ZFSu7ollSXUGRzfacTt4NdY8TwS73ScWZ+g==", + "dev": true, + "dependencies": { + "@parcel/types": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/profiler": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/profiler/-/profiler-2.12.0.tgz", + "integrity": "sha512-q53fvl5LDcFYzMUtSusUBZSjQrKjMlLEBgKeQHFwkimwR1mgoseaDBDuNz0XvmzDzF1UelJ02TUKCGacU8W2qA==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0", + "chrome-trace-event": "^1.0.2" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/reporter-cli": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-cli/-/reporter-cli-2.12.0.tgz", + "integrity": "sha512-TqKsH4GVOLPSCanZ6tcTPj+rdVHERnt5y4bwTM82cajM21bCX1Ruwp8xOKU+03091oV2pv5ieB18pJyRF7IpIw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "chalk": "^4.1.0", + "term-size": "^2.2.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/reporter-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@parcel/reporter-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@parcel/reporter-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@parcel/reporter-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@parcel/reporter-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/reporter-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/reporter-dev-server": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-dev-server/-/reporter-dev-server-2.12.0.tgz", + "integrity": "sha512-tIcDqRvAPAttRlTV28dHcbWT5K2r/MBFks7nM4nrEDHWtnrCwimkDmZTc1kD8QOCCjGVwRHcQybpHvxfwol6GA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/reporter-tracer": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-tracer/-/reporter-tracer-2.12.0.tgz", + "integrity": "sha512-g8rlu9GxB8Ut/F8WGx4zidIPQ4pcYFjU9bZO+fyRIPrSUFH2bKijCnbZcr4ntqzDGx74hwD6cCG4DBoleq2UlQ==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "chrome-trace-event": "^1.0.3", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/resolver-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/resolver-default/-/resolver-default-2.12.0.tgz", + "integrity": "sha512-uuhbajTax37TwCxu7V98JtRLiT6hzE4VYSu5B7Qkauy14/WFt2dz6GOUXPgVsED569/hkxebPx3KCMtZW6cHHA==", + "dev": true, + "dependencies": { + "@parcel/node-resolver-core": "3.3.0", + "@parcel/plugin": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-browser-hmr": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-browser-hmr/-/runtime-browser-hmr-2.12.0.tgz", + "integrity": "sha512-4ZLp2FWyD32r0GlTulO3+jxgsA3oO1P1b5oO2IWuWilfhcJH5LTiazpL5YdusUjtNn9PGN6QLAWfxmzRIfM+Ow==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-js": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-js/-/runtime-js-2.12.0.tgz", + "integrity": "sha512-sBerP32Z1crX5PfLNGDSXSdqzlllM++GVnVQVeM7DgMKS8JIFG3VLi28YkX+dYYGtPypm01JoIHCkvwiZEcQJg==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-react-refresh": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-react-refresh/-/runtime-react-refresh-2.12.0.tgz", + "integrity": "sha512-SCHkcczJIDFTFdLTzrHTkQ0aTrX3xH6jrA4UsCBL6ji61+w+ohy4jEEe9qCgJVXhnJfGLE43HNXek+0MStX+Mw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "react-error-overlay": "6.0.9", + "react-refresh": "^0.9.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/runtime-service-worker": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-service-worker/-/runtime-service-worker-2.12.0.tgz", + "integrity": "sha512-BXuMBsfiwpIEnssn+jqfC3jkgbS8oxeo3C7xhSQsuSv+AF2FwY3O3AO1c1RBskEW3XrBLNINOJujroNw80VTKA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/rust": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/rust/-/rust-2.12.0.tgz", + "integrity": "sha512-005cldMdFZFDPOjbDVEXcINQ3wT4vrxvSavRWI3Az0e3E18exO/x/mW9f648KtXugOXMAqCEqhFHcXECL9nmMw==", + "dev": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/source-map": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@parcel/source-map/-/source-map-2.1.1.tgz", + "integrity": "sha512-Ejx1P/mj+kMjQb8/y5XxDUn4reGdr+WyKYloBljpppUy8gs42T+BNoEOuRYqDVdgPc6NxduzIDoJS9pOFfV5Ew==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3" + }, + "engines": { + "node": "^12.18.3 || >=14" + } + }, + "node_modules/@parcel/transformer-babel": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-babel/-/transformer-babel-2.12.0.tgz", + "integrity": "sha512-zQaBfOnf/l8rPxYGnsk/ufh/0EuqvmnxafjBIpKZ//j6rGylw5JCqXSb1QvvAqRYruKeccxGv7+HrxpqKU6V4A==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "browserslist": "^4.6.6", + "json5": "^2.2.0", + "nullthrows": "^1.1.1", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-babel/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@parcel/transformer-babel/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/transformer-css": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-css/-/transformer-css-2.12.0.tgz", + "integrity": "sha512-vXhOqoAlQGATYyQ433Z1DXKmiKmzOAUmKysbYH3FD+LKEKLMEl/pA14goqp00TW+A/EjtSKKyeMyHlMIIUqj4Q==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "browserslist": "^4.6.6", + "lightningcss": "^1.22.1", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-html": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-html/-/transformer-html-2.12.0.tgz", + "integrity": "sha512-5jW4dFFBlYBvIQk4nrH62rfA/G/KzVzEDa6S+Nne0xXhglLjkm64Ci9b/d4tKZfuGWUbpm2ASAq8skti/nfpXw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^7.5.2", + "srcset": "4" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-html/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/transformer-image": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-image/-/transformer-image-2.12.0.tgz", + "integrity": "sha512-8hXrGm2IRII49R7lZ0RpmNk27EhcsH+uNKsvxuMpXPuEnWgC/ha/IrjaI29xCng1uGur74bJF43NUSQhR4aTdw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/transformer-inline-string": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-inline-string/-/transformer-inline-string-2.12.0.tgz", + "integrity": "sha512-FawH7Hgc7E8/Uc0t1UlFT2AdKdEQysu6OJp88NJixAqNhZT7G24OtKltM+VyayPxQZyLblPcp6TnYpY+Tz9VGA==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-js": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-js/-/transformer-js-2.12.0.tgz", + "integrity": "sha512-OSZpOu+FGDbC/xivu24v092D9w6EGytB3vidwbdiJ2FaPgfV7rxS0WIUjH4I0OcvHAcitArRXL0a3+HrNTdQQw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "@swc/helpers": "^0.5.0", + "browserslist": "^4.6.6", + "nullthrows": "^1.1.1", + "regenerator-runtime": "^0.13.7", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@parcel/transformer-js/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/transformer-json": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-json/-/transformer-json-2.12.0.tgz", + "integrity": "sha512-Utv64GLRCQILK5r0KFs4o7I41ixMPllwOLOhkdjJKvf1hZmN6WqfOmB1YLbWS/y5Zb/iB52DU2pWZm96vLFQZQ==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "json5": "^2.2.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-json/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@parcel/transformer-postcss": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-postcss/-/transformer-postcss-2.12.0.tgz", + "integrity": "sha512-FZqn+oUtiLfPOn67EZxPpBkfdFiTnF4iwiXPqvst3XI8H+iC+yNgzmtJkunOOuylpYY6NOU5jT8d7saqWSDv2Q==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "clone": "^2.1.1", + "nullthrows": "^1.1.1", + "postcss-value-parser": "^4.2.0", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-postcss/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/transformer-posthtml": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-posthtml/-/transformer-posthtml-2.12.0.tgz", + "integrity": "sha512-z6Z7rav/pcaWdeD+2sDUcd0mmNZRUvtHaUGa50Y2mr+poxrKilpsnFMSiWBT+oOqPt7j71jzDvrdnAF4XkCljg==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-posthtml/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/transformer-raw": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-raw/-/transformer-raw-2.12.0.tgz", + "integrity": "sha512-Ht1fQvXxix0NncdnmnXZsa6hra20RXYh1VqhBYZLsDfkvGGFnXIgO03Jqn4Z8MkKoa0tiNbDhpKIeTjyclbBxQ==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-react-refresh-wrap": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-react-refresh-wrap/-/transformer-react-refresh-wrap-2.12.0.tgz", + "integrity": "sha512-GE8gmP2AZtkpBIV5vSCVhewgOFRhqwdM5Q9jNPOY5PKcM3/Ff0qCqDiTzzGLhk0/VMBrdjssrfZkVx6S/lHdJw==", + "dev": true, + "dependencies": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "react-refresh": "^0.9.0" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-svg": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-svg/-/transformer-svg-2.12.0.tgz", + "integrity": "sha512-cZJqGRJ4JNdYcb+vj94J7PdOuTnwyy45dM9xqbIMH+HSiiIkfrMsdEwYft0GTyFTdsnf+hdHn3tau7Qa5hhX+A==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^7.5.2" + }, + "engines": { + "node": ">= 12.0.0", + "parcel": "^2.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/transformer-svg/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@parcel/types": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/types/-/types-2.12.0.tgz", + "integrity": "sha512-8zAFiYNCwNTQcglIObyNwKfRYQK5ELlL13GuBOrSMxueUiI5ylgsGbTS1N7J3dAGZixHO8KhHGv5a71FILn9rQ==", + "dev": true, + "dependencies": { + "@parcel/cache": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/package-manager": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/workers": "2.12.0", + "utility-types": "^3.10.0" + } + }, + "node_modules/@parcel/utils": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/utils/-/utils-2.12.0.tgz", + "integrity": "sha512-z1JhLuZ8QmDaYoEIuUCVZlhcFrS7LMfHrb2OCRui5SQFntRWBH2fNM6H/fXXUkT9SkxcuFP2DUA6/m4+Gkz72g==", + "dev": true, + "dependencies": { + "@parcel/codeframe": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/markdown-ansi": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "chalk": "^4.1.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@parcel/utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@parcel/utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@parcel/utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@parcel/utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.4.1.tgz", + "integrity": "sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3", + "is-glob": "^4.0.3", + "micromatch": "^4.0.5", + "node-addon-api": "^7.0.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.4.1", + "@parcel/watcher-darwin-arm64": "2.4.1", + "@parcel/watcher-darwin-x64": "2.4.1", + "@parcel/watcher-freebsd-x64": "2.4.1", + "@parcel/watcher-linux-arm-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-musl": "2.4.1", + "@parcel/watcher-linux-x64-glibc": "2.4.1", + "@parcel/watcher-linux-x64-musl": "2.4.1", + "@parcel/watcher-win32-arm64": "2.4.1", + "@parcel/watcher-win32-ia32": "2.4.1", + "@parcel/watcher-win32-x64": "2.4.1" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz", + "integrity": "sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz", + "integrity": "sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz", + "integrity": "sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz", + "integrity": "sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz", + "integrity": "sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz", + "integrity": "sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz", + "integrity": "sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz", + "integrity": "sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz", + "integrity": "sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz", + "integrity": "sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz", + "integrity": "sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz", + "integrity": "sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/workers": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/workers/-/workers-2.12.0.tgz", + "integrity": "sha512-zv5We5Jmb+ZWXlU6A+AufyjY4oZckkxsZ8J4dvyWL0W8IQvGO1JB4FGeryyttzQv3RM3OxcN/BpTGPiDG6keBw==", + "dev": true, + "dependencies": { + "@parcel/diagnostic": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/profiler": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "peerDependencies": { + "@parcel/core": "^2.12.0" + } + }, + "node_modules/@swc/core": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.4.5.tgz", + "integrity": "sha512-4/JGkG4b1Z/QwCGgx+Ub46MlzrsZvBk5JSkxm9PcZ4bSX81c+4Y94Xm3iLp5Ka8NxzS5rD4mJSpcYuN3Tw0ceg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@swc/counter": "^0.1.2", + "@swc/types": "^0.1.5" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.4.5", + "@swc/core-darwin-x64": "1.4.5", + "@swc/core-linux-arm-gnueabihf": "1.4.5", + "@swc/core-linux-arm64-gnu": "1.4.5", + "@swc/core-linux-arm64-musl": "1.4.5", + "@swc/core-linux-x64-gnu": "1.4.5", + "@swc/core-linux-x64-musl": "1.4.5", + "@swc/core-win32-arm64-msvc": "1.4.5", + "@swc/core-win32-ia32-msvc": "1.4.5", + "@swc/core-win32-x64-msvc": "1.4.5" + }, + "peerDependencies": { + "@swc/helpers": "^0.5.0" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.4.5.tgz", + "integrity": "sha512-toMSkbByHNfGXESyY1aiq5L3KutgijrNWB/THgdHIA1aIbwtrgMdFQfxpSE+INuuvWYi/Fxarv86EnU7ewbI0Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.4.5.tgz", + "integrity": "sha512-LN8cbnmb4Gav8UcbBc+L/DEthmzCWZz22rQr6fIEHMN+f0d71fuKnV0ca0hoKbpZn33dlzUmXQE53HRjlRUQbw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.4.5.tgz", + "integrity": "sha512-suRFkhBWmOQxlM4frpos1uqjmHfaEI8FuJ0LL5+yRE7IunNDeQJBKujGZt6taeuxo1KqC0N0Ajr8IluN2wrKpA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.4.5.tgz", + "integrity": "sha512-mLKxasQArDGmR6k9c0tkPVUdoo8VfUecocMG1Mx9NYvpidJNaZ3xq9nYM77v7uq1fQqrs/59DM1fJTNRWvv/UQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.4.5.tgz", + "integrity": "sha512-pgKuyRP7S29U/HMDTx+x8dFcklWxwB9cHFNCNWSE6bS4vHR93jc4quwPX9OEQX5CVHxm+c8+xof043I4OGkAXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.4.5.tgz", + "integrity": "sha512-srR+YN86Oerzoghd0DPCzTbTp08feeJPSr9kkNdmtQWENOa4l/9cJV3+XY6vviw0sEjezPmYnc3SwRxJRaxvEw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.4.5.tgz", + "integrity": "sha512-aSf41LZtDeG5VXI4RCnzcu0UInPyNm3ip8Kw+sCK+sSqW9o7DgBkyqqbip3RZq84fNUHBQQQQdKXetltsyRRqw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.4.5.tgz", + "integrity": "sha512-vU3k8JwRUlTkJMfJQY9E4VvLrsIFOpfhnvbuXB84Amo1cJsz+bYQcC6RSvY7qpaDzDKFdUGbJco4uZTRoRf7Mg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.4.5.tgz", + "integrity": "sha512-856YRh3frRK2XbrSjDOFBgoAqWJLNRkaEtfGzXfeEoyJlOz0BFsSJHxKlHAFkxRfHe2li9DJRUQFTEhXn4OUWw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.4.5.tgz", + "integrity": "sha512-j1+kV7jmWY1+NbXAvxAEW165781yLXVZKLcoXIZKmw18EatqMF6w8acg1gDG8C+Iw5aWLkRZVS4pijSh7+DtCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true + }, + "node_modules/@swc/helpers": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.6.tgz", + "integrity": "sha512-aYX01Ke9hunpoCexYAgQucEpARGQ5w/cqHFrIR+e9gdKb1QWTsVJuTJ2ozQzIAxLyRQe/m+2RqzkyOOGiMKRQA==", + "dev": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, + "node_modules/@tokenizer/token": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.1.1.tgz", + "integrity": "sha512-XO6INPbZCxdprl+9qa/AAbFFOMzzwqYxpjPgLICrMD6C2FCw6qfJOPcBk6JqqPLSaZ/Qx87qn4rpPmPMwaAK6w==", + "dev": true + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/debug": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.5.tgz", + "integrity": "sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==", + "dev": true + }, + "node_modules/@types/eslint": { + "version": "8.56.5", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.5.tgz", + "integrity": "sha512-u5/YPJHo1tvkSF2CE0USEkxon82Z5DBy2xR+qfyYNszpX9qcs4sT6uq2kBbj4BXY1+DBGDPnrhMZV3pKWGNukw==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/minimist": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.1.tgz", + "integrity": "sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==", + "dev": true + }, + "node_modules/@types/node": { + "version": "15.12.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.4.tgz", + "integrity": "sha512-zrNj1+yqYF4WskCMOHwN+w9iuD12+dGm0rQ35HLl9/Ouuq52cEtd0CH9qMgrdNmi5ejC1/V7vKEXYubB+65DkA==", + "dev": true + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "node_modules/@types/readable-stream": { + "version": "2.3.10", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-2.3.10.tgz", + "integrity": "sha512-xwSXvAv9x4B9Vj88AMZnFyEVLilz1EBxKvRUhGqIF4nJpRQBSTm7jS236X4Y9Y2qPsVvaMxwrGJlNhLHEahlFQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "safe-buffer": "*" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", + "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", + "dev": true, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "webpack": "5.x.x", + "webpack-cli": "5.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", + "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", + "dev": true, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "webpack": "5.x.x", + "webpack-cli": "5.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", + "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", + "dev": true, + "engines": { + "node": ">=14.15.0" + }, + "peerDependencies": { + "webpack": "5.x.x", + "webpack-cli": "5.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/abortcontroller-polyfill": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz", + "integrity": "sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/aggregate-error/node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "node_modules/base-x": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.10", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", + "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001534", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001534.tgz", + "integrity": "sha512-vlPVrhsCS7XaSh2VvWluIQEzVhefrUQcEsQWSS5A5V+dM07uv1qHeQzAOTGIMy9i3e9bH15+muvI/UHojVgS/Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/component-event": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/component-event/-/component-event-0.2.1.tgz", + "integrity": "sha512-wGA++isMqiDq1jPYeyv2as/Bt/u+3iLW0rEa+8NQ82jAv3TgqMiCM+B2SaBdn2DfLilLjjq736YcezihRYhfxw==", + "license": "MIT" + }, + "node_modules/component-props": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/component-props/-/component-props-1.1.1.tgz", + "integrity": "sha512-69pIRJs9fCCHRqCz3390YF2LV1Lu6iEMZ5zuVqqUn+G20V9BNXlMs0cWawWeW9g4Ynmg29JmkG6R7/lUJoGd1Q==" + }, + "node_modules/component-xor": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/component-xor/-/component-xor-0.0.4.tgz", + "integrity": "sha512-ZIt6sla8gfo+AFVRZoZOertcnD5LJaY2T9CKE2j13NJxQt/mUafD69Bl7/Y4AnpI2LGjiXH7cOfJDx/n2G9edA==", + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "node_modules/cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "dev": true, + "dependencies": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/cosmiconfig/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cosmiconfig/node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/crelt": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", + "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select/node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/css-select/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/css-tree": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", + "license": "MIT" + }, + "node_modules/csso": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", + "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "css-tree": "~2.2.0" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", + "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", + "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==", + "dev": true, + "optional": true, + "peer": true + }, + "node_modules/decamelize": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.0.tgz", + "integrity": "sha512-U75DcT5hrio3KNtvdULAWnLiAPbFUC4191ldxMmj4FA/mRuBnmDwU0boNfPyFRhnan+Jm+haLeSn3P0afcBn4w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "dependencies": { + "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/del": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", + "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", + "dev": true, + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/diagram-js": { + "version": "14.8.0", + "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-14.8.0.tgz", + "integrity": "sha512-HV3R6i+hl2PyhsdOQ1pqOsI+JCkX/bYJiHgO5zAaExORtuDrdGVDW7lKsEfcrcGA0fXfpEcmerjOmdH/PIvyJA==", + "license": "MIT", + "dependencies": { + "@bpmn-io/diagram-js-ui": "^0.2.3", + "clsx": "^2.1.0", + "didi": "^10.2.2", + "inherits-browser": "^0.1.0", + "min-dash": "^4.1.0", + "min-dom": "^4.2.1", + "object-refs": "^0.4.0", + "path-intersection": "^3.0.0", + "tiny-svg": "^3.1.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/diagram-js-direct-editing": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/diagram-js-direct-editing/-/diagram-js-direct-editing-3.0.1.tgz", + "integrity": "sha512-V44JO55nwFbsRv6tTmrfdz6fIsE3A4YIIqInaeJZyD2EongZzEo4acH9TqsE4hi9R/kAqsyttMKxTAgHplFn8w==", + "license": "MIT", + "dependencies": { + "min-dash": "^4.0.0", + "min-dom": "^4.0.2" + }, + "engines": { + "node": "*" + }, + "peerDependencies": { + "diagram-js": "*" + } + }, + "node_modules/didi": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/didi/-/didi-10.2.2.tgz", + "integrity": "sha512-l8NYkYFXV1izHI65EyT8EXOjUZtKmQkHLTT89cSP7HU5J/G7AOj0dXKtLc04EXYlga99PBY18IPjOeZ+c3DI4w==", + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dir-glob/node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dmn-js": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js/-/dmn-js-16.6.1.tgz", + "integrity": "sha512-JJnz/QeQzduQomM4iDX3zTmEpFTJqXWMwMV9MhU3Oha31te5tbHS8uLNakU9igemk5W+4JBahVrlgeHEdiKsNQ==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "dmn-js-boxed-expression": "^16.6.1", + "dmn-js-decision-table": "^16.6.1", + "dmn-js-drd": "^16.6.1", + "dmn-js-literal-expression": "^16.6.1", + "dmn-js-shared": "^16.6.1" + } + }, + "node_modules/dmn-js-boxed-expression": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-boxed-expression/-/dmn-js-boxed-expression-16.6.1.tgz", + "integrity": "sha512-tV7eyJn2HoD+lcxCXSFLC9CIDijmn0RfDrpyMgtMGoTkc+OzQO3EU1vgq/L/RfgaAZF8Qh5rAd4/zVrRDlPAzg==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "@bpmn-io/dmn-variable-resolver": "^0.7.0", + "diagram-js": "^14.7.1", + "dmn-js-shared": "^16.6.1", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "table-js": "^9.1.0" + } + }, + "node_modules/dmn-js-decision-table": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-decision-table/-/dmn-js-decision-table-16.6.1.tgz", + "integrity": "sha512-d89IKxs23NM+T93TDTtNLCIxe/2bZAs4pYyiiNc4DCTnQXKsbTYxf7RXo5do47mei6aL79Gg0UwId5SGEFlRpQ==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "@bpmn-io/dmn-variable-resolver": "^0.7.0", + "css.escape": "^1.5.1", + "diagram-js": "^14.7.1", + "dmn-js-shared": "^16.6.1", + "escape-html": "^1.0.3", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "selection-ranges": "^3.0.2", + "table-js": "^9.1.0" + } + }, + "node_modules/dmn-js-drd": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-drd/-/dmn-js-drd-16.6.1.tgz", + "integrity": "sha512-G7+30r8mAB8RH5M27Lq7+rht2K8cCHVxHXliWp3QphLA9Yr2N3cHGu4rM7/cFWVVPu567lygF+6uxZqSELZHng==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "diagram-js": "^14.7.1", + "diagram-js-direct-editing": "^3.0.1", + "dmn-js-shared": "^16.6.1", + "inherits-browser": "^0.1.0", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "object-refs": "^0.4.0", + "tiny-svg": "^3.1.2" + } + }, + "node_modules/dmn-js-literal-expression": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-literal-expression/-/dmn-js-literal-expression-16.6.1.tgz", + "integrity": "sha512-T2WRpBW9TiDkCS14LraHzIFAy56zOjG6fX1WWE8AfqczfrqsF5n4ND7ZGEip3LEv1nA0RGVY1swhQOU71ZEQyA==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "@bpmn-io/dmn-variable-resolver": "^0.7.0", + "diagram-js": "^14.7.1", + "dmn-js-shared": "^16.6.1", + "escape-html": "^1.0.3", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "table-js": "^9.1.0" + } + }, + "node_modules/dmn-js-shared": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-shared/-/dmn-js-shared-16.6.1.tgz", + "integrity": "sha512-0FZUkIVaL03/iunHzYVTus1hifX/eyIPUe0I+voO4C+3h9k9txfRA9fRXuFpJdtfqm1vZK8RN7pK8OS7EYI/wg==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "@bpmn-io/feel-editor": "^1.4.0", + "diagram-js": "^14.7.1", + "didi": "^10.2.2", + "dmn-moddle": "^10.0.0", + "ids": "^1.0.5", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "selection-ranges": "^3.0.2", + "selection-update": "^0.1.2", + "table-js": "^9.1.0" + } + }, + "node_modules/dmn-moddle": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dmn-moddle/-/dmn-moddle-10.0.0.tgz", + "integrity": "sha512-JD08qH2VqA7O54qCQFrGruwGyVovow+9g2O5/ww0KpC/n0mvuua117dz2CONiUWexJxq/dOAaMjrQwkWnK+oEA==", + "license": "MIT", + "dependencies": { + "min-dash": "^3.0.0", + "moddle": "^5.0.1", + "moddle-xml": "^9.0.5" + } + }, + "node_modules/dmn-moddle/node_modules/min-dash": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-3.8.1.tgz", + "integrity": "sha512-evumdlmIlg9mbRVPbC4F5FuRhNmcMS5pvuBUbqb1G9v09Ro0ImPEgz5n3khir83lFok1inKqVDjnKEg3GpDxQg==", + "license": "MIT" + }, + "node_modules/dom-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dom-iterator/-/dom-iterator-1.0.0.tgz", + "integrity": "sha512-7dsMOQI07EMU98gQM8NSB3GsAiIeBYIPKpnxR3c9xOvdvBjChAcOM0iJ222I3p5xyiZO9e5oggkNaCusuTdYig==", + "license": "MIT", + "dependencies": { + "component-props": "1.1.1", + "component-xor": "0.0.4" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/domify/-/domify-1.4.2.tgz", + "integrity": "sha512-m4yreHcUWHBncGVV7U+yQzc12vIlq0jMrtHZ5mW6dQMiL/7skSYNVX9wqKwOtyO9SGCgevrAFEgOCAHmamHTUA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dotenv": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-7.0.0.tgz", + "integrity": "sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.519", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.519.tgz", + "integrity": "sha512-kqs9oGYL4UFVkLKhqCTgBCYZv+wZ374yABDMqlDda9HvlkQxvSr7kgf4hfWVjMieDbX+1MwPHFBsOGCMIBaFKg==", + "dev": true + }, + "node_modules/emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.1.tgz", + "integrity": "sha512-3d3JRbwsCLJsYgvb6NuWEG44jjPSOMuS73L/6+7BZuoKm3W+qXnSoIYVHi8dG7Qcg4inAY4jbzkZ7MnskePeDg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", + "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/envinfo": { + "version": "7.11.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.11.1.tgz", + "integrity": "sha512-8PiZgZNIB4q/Lw4AhOvAfB/ityHAd2bli3lESSWmWSzSsl5dKpy5N1d1Rfkd2teq/g9xN90lc6o98DOjMeYHpg==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.0.tgz", + "integrity": "sha512-yYkE07YF+6SIBmg1MsJ9dlub5L48Ek7X0qz+c/CPCHS9EBXfESorzng4cJQjJW5/pB6vDF41u7F8vUhLVDqIug==", + "dev": true, + "dependencies": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz", + "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", + "dev": true + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", + "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", + "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-type": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.0.tgz", + "integrity": "sha512-OxgWA9tbL8N/WP00GD1z8O0MiwQKFyWRs1q+3FhjdvcGgKqwxcejyGWso3n4/IMU6DdwV+ARZ4A7TTnPkDcSiw==", + "dev": true, + "dependencies": { + "readable-web-to-node-stream": "^3.0.0", + "strtok3": "^6.0.3", + "token-types": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-port": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-4.2.0.tgz", + "integrity": "sha512-/b3jarXkH8KJoOMQc3uVGHASwGLPq3gSFJ7tgJm2diza+bydJPTGOibin2steecKeOylE8oY2JERlVWkAJO6yw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/get-stdin": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz", + "integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globals/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", + "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/htm": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/htm/-/htm-3.1.1.tgz", + "integrity": "sha512-983Vyg8NwUE7JkZ6NmOqpCZ+sh1bKv2iYTlUkzlWmA5JD2acKoxd4KVxbMmxX/85mtfdnDmTFoNKcg5DGAvxNQ==", + "license": "Apache-2.0" + }, + "node_modules/htmlnano": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/htmlnano/-/htmlnano-2.1.0.tgz", + "integrity": "sha512-jVGRE0Ep9byMBKEu0Vxgl8dhXYOUk0iNQ2pjsG+BcRB0u0oDF5A9p/iBGMg/PGKYUyMD0OAGu8dVT5Lzj8S58g==", + "dev": true, + "dependencies": { + "cosmiconfig": "^8.0.0", + "posthtml": "^0.16.5", + "timsort": "^0.3.0" + }, + "peerDependencies": { + "cssnano": "^6.0.0", + "postcss": "^8.3.11", + "purgecss": "^5.0.0", + "relateurl": "^0.2.7", + "srcset": "4.0.0", + "svgo": "^3.0.2", + "terser": "^5.10.0", + "uncss": "^0.17.3" + }, + "peerDependenciesMeta": { + "cssnano": { + "optional": true + }, + "postcss": { + "optional": true + }, + "purgecss": { + "optional": true + }, + "relateurl": { + "optional": true + }, + "srcset": { + "optional": true + }, + "svgo": { + "optional": true + }, + "terser": { + "optional": true + }, + "uncss": { + "optional": true + } + } + }, + "node_modules/htmlparser2": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-7.2.0.tgz", + "integrity": "sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==", + "dev": true, + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.2", + "domutils": "^2.8.0", + "entities": "^3.0.1" + } + }, + "node_modules/ids": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.5.tgz", + "integrity": "sha512-XQ0yom/4KWTL29sLG+tyuycy7UmeaM/79GRtSJq6IG9cJGIPeBz5kwDCguie3TwxaMNIc3WtPi0cTa1XYHicpw==", + "license": "MIT" + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", + "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/inferno": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/inferno/-/inferno-5.6.3.tgz", + "integrity": "sha512-2m7bEo/6D+pbxFkFKY/2QOVdknxxXyrXyDdVFobJcQyvfv3985MY+VVwyRZoVJylQG+mzPY5/uDNuXygp8jObA==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "inferno-shared": "5.6.3", + "inferno-vnode-flags": "5.6.3", + "opencollective-postinstall": "^2.0.3" + } + }, + "node_modules/inferno-shared": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/inferno-shared/-/inferno-shared-5.6.3.tgz", + "integrity": "sha512-NzhS62Y6BwfkLNmXS9C0Ie7skY1vIoLrVIYnVrMx1xfTLp/AG+ths4oAJGmWcX/AkVSYl+DjP96HEuUdtGmRRw==", + "license": "MIT" + }, + "node_modules/inferno-vnode-flags": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/inferno-vnode-flags/-/inferno-vnode-flags-5.6.3.tgz", + "integrity": "sha512-1V9Pjz5Erm2sP7xlb4D2zW/U8e3RwU41Ruyn9/apke0BFxbLI+LxxVcKWxom4fPetG6YcBNLpZssy8gkigT9gg==", + "license": "MIT" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/inherits-browser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/inherits-browser/-/inherits-browser-0.1.0.tgz", + "integrity": "sha512-CJHHvW3jQ6q7lzsXPpapLdMx5hDpSF3FSh45pwsj6bKxJJ8Nl8v43i5yXnr3BdfOimGHKyniewQtnAIp3vyJJw==", + "license": "ISC" + }, + "node_modules/interpret": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", + "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "node_modules/is-callable": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", + "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", + "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-json/-/is-json-2.0.1.tgz", + "integrity": "sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==", + "dev": true + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", + "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-symbol": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lang-feel": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/lang-feel/-/lang-feel-2.1.1.tgz", + "integrity": "sha512-ib1DW52l5L43hSoIPJ6UnsBpiCSpKiKAqunMRJ/KjU9eng3Z1mm8MYTcts99vLvK0j2nDBlCp+g8L/O7ZlgIgw==", + "license": "MIT", + "dependencies": { + "@codemirror/autocomplete": "^6.16.2", + "@codemirror/language": "^6.10.2", + "@codemirror/state": "^6.4.1", + "@codemirror/view": "^6.28.1", + "@lezer/common": "^1.2.1", + "lezer-feel": "^1.2.9" + }, + "engines": { + "node": "*" + } + }, + "node_modules/lezer-feel": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.2.9.tgz", + "integrity": "sha512-YdRbOI+7BEtWxqJBztBsk8VFBTh3O9/FcYlVn9AsnNJPUwJO11Ewm2pakSA7muMtdpPC6pfsIK/YyfYgyiEMHA==", + "license": "MIT", + "dependencies": { + "@lezer/highlight": "^1.2.0", + "@lezer/lr": "^1.4.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/lightningcss": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.24.0.tgz", + "integrity": "sha512-y36QEEDVx4IM7/yIZNsZJMRREIu26WzTsauIysf5s76YeCmlSbRZS7aC97IGPuoFRnyZ5Wx43OBsQBFB5Ne7ng==", + "dev": true, + "dependencies": { + "detect-libc": "^1.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-darwin-arm64": "1.24.0", + "lightningcss-darwin-x64": "1.24.0", + "lightningcss-freebsd-x64": "1.24.0", + "lightningcss-linux-arm-gnueabihf": "1.24.0", + "lightningcss-linux-arm64-gnu": "1.24.0", + "lightningcss-linux-arm64-musl": "1.24.0", + "lightningcss-linux-x64-gnu": "1.24.0", + "lightningcss-linux-x64-musl": "1.24.0", + "lightningcss-win32-x64-msvc": "1.24.0" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.24.0.tgz", + "integrity": "sha512-rTNPkEiynOu4CfGdd5ZfVOQe2gd2idfQd4EfX1l2ZUUwd+2SwSdbb7cG4rlwfnZckbzCAygm85xkpekRE5/wFw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.24.0.tgz", + "integrity": "sha512-4KCeF2RJjzp9xdGY8zIH68CUtptEg8uz8PfkHvsIdrP4t9t5CIgfDBhiB8AmuO75N6SofdmZexDZIKdy9vA7Ww==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.24.0.tgz", + "integrity": "sha512-FJAYlek1wXuVTsncNU0C6YD41q126dXcIUm97KAccMn9C4s/JfLSqGWT2gIzAblavPFkyGG2gIADTWp3uWfN1g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.24.0.tgz", + "integrity": "sha512-N55K6JqzMx7C0hYUu1YmWqhkHwzEJlkQRMA6phY65noO0I1LOAvP4wBIoFWrzRE+O6zL0RmXJ2xppqyTbk3sYw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.24.0.tgz", + "integrity": "sha512-MqqUB2TpYtFWeBvvf5KExDdClU3YGLW5bHKs50uKKootcvG9KoS7wYwd5UichS+W3mYLc5yXUPGD1DNWbLiYKw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.24.0.tgz", + "integrity": "sha512-5wn4d9tFwa5bS1ao9mLexYVJdh3nn09HNIipsII6ZF7z9ZA5J4dOEhMgKoeCl891axTGTUYd8Kxn+Hn3XUSYRQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.24.0.tgz", + "integrity": "sha512-3j5MdTh+LSDF3o6uDwRjRUgw4J+IfDCVtdkUrJvKxL79qBLUujXY7CTe5X3IQDDLKEe/3wu49r8JKgxr0MfjbQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.24.0.tgz", + "integrity": "sha512-HI+rNnvaLz0o36z6Ki0gyG5igVGrJmzczxA5fznr6eFTj3cHORoR/j2q8ivMzNFR4UKJDkTWUH5LMhacwOHWBA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.24.0.tgz", + "integrity": "sha512-oeije/t7OZ5N9vSs6amyW/34wIYoBCpE6HUlsSKcP2SR1CVgx9oKEM00GtQmtqNnYiMIfsSm7+ppMb4NLtD5vg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "node_modules/lmdb": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/lmdb/-/lmdb-2.8.5.tgz", + "integrity": "sha512-9bMdFfc80S+vSldBmG3HOuLVHnxRdNTlpzR6QDnzqCQtCzGUEAGTzBKYMeIM+I/sU4oZfgbcbS7X7F65/z/oxQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "msgpackr": "^1.9.5", + "node-addon-api": "^6.1.0", + "node-gyp-build-optional-packages": "5.1.1", + "ordered-binary": "^1.4.1", + "weak-lru-cache": "^1.2.2" + }, + "bin": { + "download-lmdb-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@lmdb/lmdb-darwin-arm64": "2.8.5", + "@lmdb/lmdb-darwin-x64": "2.8.5", + "@lmdb/lmdb-linux-arm": "2.8.5", + "@lmdb/lmdb-linux-arm64": "2.8.5", + "@lmdb/lmdb-linux-x64": "2.8.5", + "@lmdb/lmdb-win32-x64": "2.8.5" + } + }, + "node_modules/lmdb/node_modules/node-addon-api": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", + "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", + "dev": true + }, + "node_modules/load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/loader-runner": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", + "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", + "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^2.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/map-obj": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.1.tgz", + "integrity": "sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mdn-data": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==", + "dev": true, + "optional": true, + "peer": true + }, + "node_modules/memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=", + "dev": true, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/meow": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-10.0.1.tgz", + "integrity": "sha512-65vCCdUI8wS5upK24fDFo25FcViNExdTGAR/vaWN4E6fXsWQ8fGdbkjCWp3nDTuJMlIYuEoAEMiB2/b81DBJjg==", + "dev": true, + "dependencies": { + "@types/minimist": "^1.2.1", + "camelcase-keys": "^6.2.2", + "decamelize": "^5.0.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.2", + "read-pkg-up": "^8.0.0", + "redent": "^4.0.0", + "trim-newlines": "^4.0.1", + "type-fest": "^1.0.2", + "yargs-parser": "^20.2.7" + }, + "engines": { + "node": ">=12.17" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/normalize-package-data": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.2.tgz", + "integrity": "sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "resolve": "^1.20.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", + "dev": true, + "dependencies": { + "mime-db": "1.48.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/min-dash": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-4.2.1.tgz", + "integrity": "sha512-to+unsToePnm7cUeR9TrMzFlETHd/UXmU+ELTRfWZj5XGT41KF6X3L233o3E/GdEs3sk2Tbw/lOLD1avmWkg8A==", + "license": "MIT" + }, + "node_modules/min-dom": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/min-dom/-/min-dom-4.2.1.tgz", + "integrity": "sha512-TMoL8SEEIhUWYgkj7XMSgxmwSyGI+4fP2KFFGnN3FbHfbGHVdsLYSz8LoIsgPhz4dWRmLvxWWSMgzZMJW5sZuA==", + "license": "MIT", + "dependencies": { + "component-event": "^0.2.1", + "domify": "^1.4.1", + "min-dash": "^4.2.1" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "node_modules/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/moddle": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/moddle/-/moddle-5.0.4.tgz", + "integrity": "sha512-Kjb+hjuzO+YlojNGxEUXvdhLYTHTtAABDlDcJTtTcn5MbJF9Zkv4I1Fyvp3Ypmfgg1EfHDZ3PsCQTuML9JD6wg==", + "license": "MIT", + "dependencies": { + "min-dash": "^3.0.0" + } + }, + "node_modules/moddle-xml": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/moddle-xml/-/moddle-xml-9.0.6.tgz", + "integrity": "sha512-tl0reHpsY/aKlLGhXeFlQWlYAQHFxTkFqC8tq8jXRYpQSnLVw13T6swMaourLd7EXqHdWsc+5ggsB+fEep6xZQ==", + "license": "MIT", + "dependencies": { + "min-dash": "^3.5.2", + "moddle": "^5.0.2", + "saxen": "^8.1.2" + } + }, + "node_modules/moddle-xml/node_modules/min-dash": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-3.8.1.tgz", + "integrity": "sha512-evumdlmIlg9mbRVPbC4F5FuRhNmcMS5pvuBUbqb1G9v09Ro0ImPEgz5n3khir83lFok1inKqVDjnKEg3GpDxQg==", + "license": "MIT" + }, + "node_modules/moddle/node_modules/min-dash": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-3.8.1.tgz", + "integrity": "sha512-evumdlmIlg9mbRVPbC4F5FuRhNmcMS5pvuBUbqb1G9v09Ro0ImPEgz5n3khir83lFok1inKqVDjnKEg3GpDxQg==", + "license": "MIT" + }, + "node_modules/msgpackr": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.10.1.tgz", + "integrity": "sha512-r5VRLv9qouXuLiIBrLpl2d5ZvPt8svdQTl5/vMvE4nzDMyEX4sgW5yWhuBBj5UmgwOTWj8CIdSXn5sAfsHAWIQ==", + "dev": true, + "optionalDependencies": { + "msgpackr-extract": "^3.0.2" + } + }, + "node_modules/msgpackr-extract": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-3.0.2.tgz", + "integrity": "sha512-SdzXp4kD/Qf8agZ9+iTu6eql0m3kWm1A2y1hkpTeVNENutaB0BwHlSvAIaMxwntmRUAUjon2V4L8Z/njd0Ct8A==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "dependencies": { + "node-gyp-build-optional-packages": "5.0.7" + }, + "bin": { + "download-msgpackr-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.2", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.2" + } + }, + "node_modules/msgpackr-extract/node_modules/node-gyp-build-optional-packages": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.7.tgz", + "integrity": "sha512-YlCCc6Wffkx0kHkmam79GKvDQ6x+QZkMjFGrIMxgFNILFvGSbCp2fCBC55pGTT9gVaz8Na5CLmxt/urtzRv36w==", + "dev": true, + "optional": true, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node_modules/node-addon-api": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", + "integrity": "sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==", + "dev": true, + "engines": { + "node": "^16 || ^18 || >= 20" + } + }, + "node_modules/node-gyp-build-optional-packages": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.1.1.tgz", + "integrity": "sha512-+P72GAjVAbTxjjwUmwjVrqrdZROD4nf8KgpBoDxqXXTiYZZt/ud60dE5yvCSr9lRO8e8yv6kgJIC0K0PfZFVQw==", + "dev": true, + "dependencies": { + "detect-libc": "^2.0.1" + }, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, + "node_modules/node-gyp-build-optional-packages/node_modules/detect-libc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", + "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/npm-run-all": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", + "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "chalk": "^2.4.1", + "cross-spawn": "^6.0.5", + "memorystream": "^0.3.1", + "minimatch": "^3.0.4", + "pidtree": "^0.3.0", + "read-pkg": "^3.0.0", + "shell-quote": "^1.6.1", + "string.prototype.padend": "^3.0.0" + }, + "bin": { + "npm-run-all": "bin/npm-run-all/index.js", + "run-p": "bin/run-p/index.js", + "run-s": "bin/run-s/index.js" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nullthrows": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", + "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", + "dev": true + }, + "node_modules/object-inspect": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", + "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-refs": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-refs/-/object-refs-0.4.0.tgz", + "integrity": "sha512-6kJqKWryKZmtte6QYvouas0/EIJKPI1/MMIuRsiBlNuhIMfqYTggzX2F1AJ2+cDs288xyi9GL7FyasHINR98BQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/open": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", + "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", + "dev": true, + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open-cli": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/open-cli/-/open-cli-7.0.0.tgz", + "integrity": "sha512-VxL1HWSsufFSxdcOq5Ijkd1sjK7XnmCI1QF1bYk4va3JI2nl+wLTTgOZ4i1OyNljb9rLoqajtFNCl91DmiIkQw==", + "dev": true, + "dependencies": { + "file-type": "^16.5.0", + "get-stdin": "^9.0.0", + "meow": "^10.0.1", + "open": "^8.2.0", + "tempy": "^1.0.1" + }, + "bin": { + "open-cli": "cli.js" + }, + "engines": { + "node": ">=14.13" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "license": "MIT", + "bin": { + "opencollective-postinstall": "index.js" + } + }, + "node_modules/ordered-binary": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.5.1.tgz", + "integrity": "sha512-5VyHfHY3cd0iza71JepYG50My+YUbrFtGoUz2ooEydPyPM7Aai/JW098juLr+RG6+rDJuzNNTsEQu2DZa1A41A==", + "dev": true + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parcel": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/parcel/-/parcel-2.12.0.tgz", + "integrity": "sha512-W+gxAq7aQ9dJIg/XLKGcRT0cvnStFAQHPaI0pvD0U2l6IVLueUAm3nwN7lkY62zZNmlvNx6jNtE4wlbS+CyqSg==", + "dev": true, + "dependencies": { + "@parcel/config-default": "2.12.0", + "@parcel/core": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/package-manager": "2.12.0", + "@parcel/reporter-cli": "2.12.0", + "@parcel/reporter-dev-server": "2.12.0", + "@parcel/reporter-tracer": "2.12.0", + "@parcel/utils": "2.12.0", + "chalk": "^4.1.0", + "commander": "^7.0.0", + "get-port": "^4.2.0" + }, + "bin": { + "parcel": "lib/bin.js" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/parcel/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/parcel/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/parcel/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/parcel/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/parcel/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/parcel/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/parcel/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-intersection": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/path-intersection/-/path-intersection-3.1.0.tgz", + "integrity": "sha512-3xS3lvv/vuwm5aH2BVvNRvnvwR2Drde7jQClKpCXTYXIMMjcw/EnMhzCgeHwqbCpzi760PEfAkU53vSIlrNr9A==", + "license": "MIT", + "engines": { + "node": ">= 14.20" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "dependencies": { + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/peek-readable": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-3.1.3.tgz", + "integrity": "sha512-mpAcysyRJxmICBcBa5IXH7SZPvWkcghm6Fk8RekoS3v+BpbSzlZzuWbMx+GXrlUwESi9qHar4nVEZNMKylIHvg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pidtree": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.0.tgz", + "integrity": "sha512-9CT4NFlDcosssyg8KVFltgokyKZIFjoBxw8CTGy+5F38Y1eQWrt8tRayiUOXE+zVKQnYu5BR8JjCtvK3BcnBhg==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/posthtml": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.16.6.tgz", + "integrity": "sha512-JcEmHlyLK/o0uGAlj65vgg+7LIms0xKXe60lcDOTU7oVX/3LuEuLwrQpW3VJ7de5TaFKiW4kWkaIpJL42FEgxQ==", + "dev": true, + "dependencies": { + "posthtml-parser": "^0.11.0", + "posthtml-render": "^3.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/posthtml-parser": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.10.2.tgz", + "integrity": "sha512-PId6zZ/2lyJi9LiKfe+i2xv57oEjJgWbsHGGANwos5AvdQp98i6AtamAl8gzSVFGfQ43Glb5D614cvZf012VKg==", + "dev": true, + "dependencies": { + "htmlparser2": "^7.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/posthtml-render": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-3.0.0.tgz", + "integrity": "sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==", + "dev": true, + "dependencies": { + "is-json": "^2.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/posthtml/node_modules/posthtml-parser": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.11.0.tgz", + "integrity": "sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==", + "dev": true, + "dependencies": { + "htmlparser2": "^7.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/preact": { + "version": "10.22.1", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.22.1.tgz", + "integrity": "sha512-jRYbDDgMpIb5LHq3hkI0bbl+l/TQ9UnkdQ0ww+lp+4MMOdqaUYdFc5qeyP+IV8FAd/2Em7drVPeKdQxsiWCf/A==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/raw-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.0.tgz", + "integrity": "sha512-iINUOYvl1cGEmfoaLjnZXt4bKfT2LJnZZib5N/LLyAphC+Dd11vNP9CNVb38j+SAJpFI1uo8j9frmih53ASy7Q==", + "dev": true, + "dependencies": { + "loader-utils": "^1.2.3", + "schema-utils": "^2.5.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.9.tgz", + "integrity": "sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==", + "dev": true + }, + "node_modules/react-refresh": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.9.0.tgz", + "integrity": "sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "dependencies": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/read-pkg-up": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-8.0.0.tgz", + "integrity": "sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==", + "dev": true, + "dependencies": { + "find-up": "^5.0.0", + "read-pkg": "^6.0.0", + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/read-pkg-up/node_modules/normalize-package-data": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.2.tgz", + "integrity": "sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "resolve": "^1.20.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/read-pkg-up/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/read-pkg": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-6.0.0.tgz", + "integrity": "sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^3.0.2", + "parse-json": "^5.2.0", + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.1.tgz", + "integrity": "sha512-4zDC6CvjUyusN7V0QLsXVB7pJCD9+vtrM9bYDRv6uBQ+SKfx36rp5AFNPRgh9auKRul/a1iFZJYXcCbwRL+SaA==", + "dev": true, + "dependencies": { + "@types/readable-stream": "^2.3.9", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/rechoir": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", + "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", + "dev": true, + "dependencies": { + "resolve": "^1.20.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/redent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-4.0.0.tgz", + "integrity": "sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==", + "dev": true, + "dependencies": { + "indent-string": "^5.0.0", + "strip-indent": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/saxen": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/saxen/-/saxen-8.1.2.tgz", + "integrity": "sha512-xUOiiFbc3Ow7p8KMxwsGICPx46ZQvy3+qfNVhrkwfz3Vvq45eGt98Ft5IQaA1R/7Tb5B5MKh9fUR9x3c3nDTxw==", + "license": "MIT" + }, + "node_modules/schema-utils": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.1.tgz", + "integrity": "sha512-0WXHDs1VDJyo+Zqs9TKLKyD/h7yDpHUhEFsM2CzkICFdoX1av+GBq/J2xRTFfsQO5kBfhZzANf2VcIm84jqDbg==", + "dev": true, + "dependencies": { + "ajv": "^6.10.2", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/selection-ranges": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/selection-ranges/-/selection-ranges-3.0.3.tgz", + "integrity": "sha512-60Oqc07j16YCrp96uITgBFu7oT81JKMmL+cOOcxe3jvuGSiFSwsLpOSXNBAlITV9hGhEl1H6P/+g1bKnpfXoSw==", + "license": "MIT", + "dependencies": { + "dom-iterator": "^1.0.0" + } + }, + "node_modules/selection-update": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/selection-update/-/selection-update-0.1.2.tgz", + "integrity": "sha512-4jzoJNh7VT2s2tvm/kUSskSw7pD0BVcrrGccbfOMK+3AXLBPz6nIy1yo+pbXgvNoTNII96Pq92+sAY+rF0LUAA==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shell-quote": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz", + "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "dev": true + }, + "node_modules/srcset": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/srcset/-/srcset-4.0.0.tgz", + "integrity": "sha512-wvLeHgcVHKO8Sc/H/5lkGreJQVeYMm9rlmt8PuR1xE31rIuXhuzznUUqAt8MqLhB3MqJdFzlNAfpcWnxiFUcPw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string.prototype.padend": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.0.tgz", + "integrity": "sha512-3aIv8Ffdp8EZj8iLwREGpQaUZiPyrWrpzMBHvkiSW/bK/EGve9np07Vwy7IJ5waydpGXzQZu/F8Oze2/IWkBaA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimleft": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", + "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimright": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", + "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz", + "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strtok3": { + "version": "6.0.8", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.0.8.tgz", + "integrity": "sha512-QLgv+oiXwXgCgp2PdPPa+Jpp4D9imK9e/0BsyfeFMr6QL6wMVqoVn9+OXQ9I7MZbmUzN6lmitTJ09uwS2OmGcw==", + "dev": true, + "dependencies": { + "@tokenizer/token": "^0.1.1", + "@types/debug": "^4.1.5", + "peek-readable": "^3.1.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/style-mod": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz", + "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svgo": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.2.0.tgz", + "integrity": "sha512-4PP6CMW/V7l/GmKRKzsLR8xxjdHTV4IMvhTnpuHwwBazSIlw5W/5SmPjN8Dwyt7lKbSJrRDgp4t9ph0HgChFBQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^5.1.0", + "css-tree": "^2.3.1", + "css-what": "^6.1.0", + "csso": "^5.0.5", + "picocolors": "^1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/svgo" + } + }, + "node_modules/svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/table-js": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/table-js/-/table-js-9.1.0.tgz", + "integrity": "sha512-yxzIBXZe5pFHXBng8+Rz3dDGiO4anWptlWQXP4Pm1oIetgdG4nq+DkZkRG4Lq5L1HFu1OVif4h3YMI7rxudvPw==", + "license": "MIT", + "dependencies": { + "didi": "^10.0.0", + "ids": "^1.0.0", + "min-dash": "^4.0.0", + "min-dom": "^4.0.3", + "selection-ranges": "^3.0.3" + }, + "engines": { + "node": "*" + }, + "peerDependencies": { + "diagram-js": "^11.3.0 || ^12 || ^13.0.0 || ^14.0.0", + "inferno": "^5.0.5" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/tempy": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-1.0.1.tgz", + "integrity": "sha512-biM9brNqxSc04Ee71hzFbryD11nX7VPhQQY32AdDmjFvodsRFz/3ufeoTZ6uYkRFfGo188tENcASNs3vTdsM0w==", + "dev": true, + "dependencies": { + "del": "^6.0.0", + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/type-fest": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", + "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.29.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz", + "integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==", + "dev": true + }, + "node_modules/tiny-svg": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/tiny-svg/-/tiny-svg-3.1.2.tgz", + "integrity": "sha512-qvNlv/4N48HqbNpwAhzQ9HKHlBUKgA4091x+aVfsrRXHIcQ9NA3W6ZYwdmYAIdwT+vfAAksrc9L/3RQBj5KwPw==", + "license": "MIT" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/token-types": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-2.1.1.tgz", + "integrity": "sha512-wnQcqlreS6VjthyHO3Y/kpK/emflxDBNhlNUPfh7wE39KnuDdOituXomIbyI79vBtF0Ninpkh72mcuRHo+RG3Q==", + "dev": true, + "dependencies": { + "@tokenizer/token": "^0.1.1", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=0.1.98" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/trim-newlines": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.0.2.tgz", + "integrity": "sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + }, + "node_modules/type-fest": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.2.1.tgz", + "integrity": "sha512-SbmIRuXhJs8KTneu77Ecylt9zuqL683tuiLYpTRil4H++eIhqCmx6ko6KAFem9dty8sOdnEiX7j4K1nRE628fQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "node_modules/utility-types": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz", + "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", + "license": "MIT" + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/weak-lru-cache": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz", + "integrity": "sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==", + "dev": true + }, + "node_modules/webpack": { + "version": "5.90.3", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.3.tgz", + "integrity": "sha512-h6uDYlWCctQRuXBs1oYpVe6sFcWedl0dpcVaTf/YF67J9bKvwJajFulMVSYKHrksMB3I/pIagRzDxwxkebuzKA==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.21.10", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.4.tgz", + "integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^2.1.1", + "@webpack-cli/info": "^2.0.2", + "@webpack-cli/serve": "^2.0.5", + "colorette": "^2.0.14", + "commander": "^10.0.1", + "cross-spawn": "^7.0.3", + "envinfo": "^7.7.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^3.1.1", + "rechoir": "^0.8.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/webpack-cli/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/webpack-cli/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-cli/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-cli/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-cli/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "dev": true, + "requires": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true + }, + "@babel/highlight": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.13.tgz", + "integrity": "sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + } + }, + "@bpmn-io/diagram-js-ui": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bpmn-io/diagram-js-ui/-/diagram-js-ui-0.2.3.tgz", + "integrity": "sha512-OGyjZKvGK8tHSZ0l7RfeKhilGoOGtFDcoqSGYkX0uhFlo99OVZ9Jn1K7TJGzcE9BdKwvA5Y5kGqHEhdTxHvFfw==", + "requires": { + "htm": "^3.1.1", + "preact": "^10.11.2" + } + }, + "@bpmn-io/dmn-variable-resolver": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/dmn-variable-resolver/-/dmn-variable-resolver-0.7.0.tgz", + "integrity": "sha512-ssL8fch5U0q8efbrHdgSGznh5Dlk+R0MNnazCtDpyac6yqlgn/JQ/HewCjacTk4XFubbMiDbuEIESHLBsWCBxg==" + }, + "@bpmn-io/feel-editor": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-editor/-/feel-editor-1.6.1.tgz", + "integrity": "sha512-HI8XRd25tOKEv8GDo1srzzpjoBKyytAJ3k/74WjpnBiU+j8H6gJM07fr/zL5psikxnxKRFG0HrnpW1t5y2axWQ==", + "requires": { + "@bpmn-io/feel-lint": "^1.2.0", + "@codemirror/autocomplete": "^6.16.2", + "@codemirror/commands": "^6.6.0", + "@codemirror/language": "^6.10.2", + "@codemirror/lint": "^6.8.0", + "@codemirror/state": "^6.4.1", + "@codemirror/view": "^6.28.1", + "@lezer/highlight": "^1.2.0", + "lang-feel": "^2.1.1", + "min-dom": "^4.2.1" + } + }, + "@bpmn-io/feel-lint": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@bpmn-io/feel-lint/-/feel-lint-1.2.0.tgz", + "integrity": "sha512-nsvAYxiSbWyjpd3gNnJd+60aTWrZvngYnZfe+GpmkM/pQoOgtF17GhD/p4fgaeAd/uUP3q9sO6EWRX+OU/p9dw==", + "requires": { + "@codemirror/language": "^6.8.0", + "lezer-feel": "^1.2.3" + } + }, + "@codemirror/autocomplete": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.17.0.tgz", + "integrity": "sha512-fdfj6e6ZxZf8yrkMHUSJJir7OJkHkZKaOZGzLWIYp2PZ3jd+d+UjG8zVPqJF6d3bKxkhvXTPan/UZ1t7Bqm0gA==", + "requires": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0" + } + }, + "@codemirror/commands": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.0.tgz", + "integrity": "sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==", + "requires": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.4.0", + "@codemirror/view": "^6.27.0", + "@lezer/common": "^1.1.0" + } + }, + "@codemirror/language": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.2.tgz", + "integrity": "sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==", + "requires": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.23.0", + "@lezer/common": "^1.1.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0", + "style-mod": "^4.0.0" + } + }, + "@codemirror/lint": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.1.tgz", + "integrity": "sha512-IZ0Y7S4/bpaunwggW2jYqwLuHj0QtESf5xcROewY6+lDNwZ/NzvR4t+vpYgg9m7V8UXLPYqG+lu3DF470E5Oxg==", + "requires": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "crelt": "^1.0.5" + } + }, + "@codemirror/state": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz", + "integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==" + }, + "@codemirror/view": { + "version": "6.28.6", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.28.6.tgz", + "integrity": "sha512-bhwB1AZ6zU4M3dNKm8Aa2BXwj5mWDqE9IWpqxYKJoLCnx+AcwcMuLO01tLWgc1mx4vT1IVYVqx86YoqUsATrqQ==", + "requires": { + "@codemirror/state": "^6.4.0", + "style-mod": "^4.1.0", + "w3c-keyname": "^2.2.4" + } + }, + "@discoveryjs/json-ext": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz", + "integrity": "sha512-Fxt+AfXgjMoin2maPIYzFZnQjAXjAL0PHscM5pRTtatFqB+vZxAM9tLp2Optnuw3QOQC40jTNeGYFOMvyf7v9g==", + "dev": true + }, + "@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true + }, + "@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true + }, + "@jridgewell/source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "@lezer/common": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz", + "integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==" + }, + "@lezer/highlight": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.0.tgz", + "integrity": "sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA==", + "requires": { + "@lezer/common": "^1.0.0" + } + }, + "@lezer/lr": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.1.tgz", + "integrity": "sha512-CHsKq8DMKBf9b3yXPDIU4DbH+ZJd/sJdYOW2llbW/HudP5u0VS6Bfq1hLYfgU7uAYGFIyGGQIsSOXGPEErZiJw==", + "requires": { + "@lezer/common": "^1.0.0" + } + }, + "@lmdb/lmdb-darwin-arm64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-arm64/-/lmdb-darwin-arm64-2.8.5.tgz", + "integrity": "sha512-KPDeVScZgA1oq0CiPBcOa3kHIqU+pTOwRFDIhxvmf8CTNvqdZQYp5cCKW0bUk69VygB2PuTiINFWbY78aR2pQw==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-darwin-x64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-x64/-/lmdb-darwin-x64-2.8.5.tgz", + "integrity": "sha512-w/sLhN4T7MW1nB3R/U8WK5BgQLz904wh+/SmA2jD8NnF7BLLoUgflCNxOeSPOWp8geP6nP/+VjWzZVip7rZ1ug==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-linux-arm": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm/-/lmdb-linux-arm-2.8.5.tgz", + "integrity": "sha512-c0TGMbm2M55pwTDIfkDLB6BpIsgxV4PjYck2HiOX+cy/JWiBXz32lYbarPqejKs9Flm7YVAKSILUducU9g2RVg==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-linux-arm64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm64/-/lmdb-linux-arm64-2.8.5.tgz", + "integrity": "sha512-vtbZRHH5UDlL01TT5jB576Zox3+hdyogvpcbvVJlmU5PdL3c5V7cj1EODdh1CHPksRl+cws/58ugEHi8bcj4Ww==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-linux-x64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-x64/-/lmdb-linux-x64-2.8.5.tgz", + "integrity": "sha512-Xkc8IUx9aEhP0zvgeKy7IQ3ReX2N8N1L0WPcQwnZweWmOuKfwpS3GRIYqLtK5za/w3E60zhFfNdS+3pBZPytqQ==", + "dev": true, + "optional": true + }, + "@lmdb/lmdb-win32-x64": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-2.8.5.tgz", + "integrity": "sha512-4wvrf5BgnR8RpogHhtpCPJMKBmvyZPhhUtEwMJbXh0ni2BucpfF07jlmyM11zRqQ2XIq6PbC2j7W7UCCcm1rRQ==", + "dev": true, + "optional": true + }, + "@mischnic/json-sourcemap": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@mischnic/json-sourcemap/-/json-sourcemap-0.1.1.tgz", + "integrity": "sha512-iA7+tyVqfrATAIsIRWQG+a7ZLLD0VaOCKV2Wd/v4mqIU3J9c4jx9p7S0nw1XH3gJCKNBOOwACOPYYSUu9pgT+w==", + "dev": true, + "requires": { + "@lezer/common": "^1.0.0", + "@lezer/lr": "^1.0.0", + "json5": "^2.2.1" + }, + "dependencies": { + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + } + } + }, + "@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.2.tgz", + "integrity": "sha512-9bfjwDxIDWmmOKusUcqdS4Rw+SETlp9Dy39Xui9BEGEk19dDwH0jhipwFzEff/pFg95NKymc6TOTbRKcWeRqyQ==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.2.tgz", + "integrity": "sha512-lwriRAHm1Yg4iDf23Oxm9n/t5Zpw1lVnxYU3HnJPTi2lJRkKTrps1KVgvL6m7WvmhYVt/FIsssWay+k45QHeuw==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.2.tgz", + "integrity": "sha512-MOI9Dlfrpi2Cuc7i5dXdxPbFIgbDBGgKR5F2yWEa6FVEtSWncfVNKW5AKjImAQ6CZlBK9tympdsZJ2xThBiWWA==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.2.tgz", + "integrity": "sha512-FU20Bo66/f7He9Fp9sP2zaJ1Q8L9uLPZQDub/WlUip78JlPeMbVL8546HbZfcW9LNciEXc8d+tThSJjSC+tmsg==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.2.tgz", + "integrity": "sha512-gsWNDCklNy7Ajk0vBBf9jEx04RUxuDQfBse918Ww+Qb9HCPoGzS+XJTLe96iN3BVK7grnLiYghP/M4L8VsaHeA==", + "dev": true, + "optional": true + }, + "@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.2.tgz", + "integrity": "sha512-O+6Gs8UeDbyFpbSh2CPEz/UOrrdWPTBYNblZK5CxxLisYt4kGX3Sc+czffFonyjiGSq3jWLwJS/CCJc7tBr4sQ==", + "dev": true, + "optional": true + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz", + "integrity": "sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@parcel/bundler-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/bundler-default/-/bundler-default-2.12.0.tgz", + "integrity": "sha512-3ybN74oYNMKyjD6V20c9Gerdbh7teeNvVMwIoHIQMzuIFT6IGX53PyOLlOKRLbjxMc0TMimQQxIt2eQqxR5LsA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/graph": "3.2.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/cache": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/cache/-/cache-2.12.0.tgz", + "integrity": "sha512-FX5ZpTEkxvq/yvWklRHDESVRz+c7sLTXgFuzz6uEnBcXV38j6dMSikflNpHA6q/L4GKkCqRywm9R6XQwhwIMyw==", + "dev": true, + "requires": { + "@parcel/fs": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/utils": "2.12.0", + "lmdb": "2.8.5" + } + }, + "@parcel/codeframe": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/codeframe/-/codeframe-2.12.0.tgz", + "integrity": "sha512-v2VmneILFiHZJTxPiR7GEF1wey1/IXPdZMcUlNXBiPZyWDfcuNgGGVQkx/xW561rULLIvDPharOMdxz5oHOKQg==", + "dev": true, + "requires": { + "chalk": "^4.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@parcel/compressor-raw": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/compressor-raw/-/compressor-raw-2.12.0.tgz", + "integrity": "sha512-h41Q3X7ZAQ9wbQ2csP8QGrwepasLZdXiuEdpUryDce6rF9ZiHoJ97MRpdLxOhOPyASTw/xDgE1xyaPQr0Q3f5A==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0" + } + }, + "@parcel/config-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/config-default/-/config-default-2.12.0.tgz", + "integrity": "sha512-dPNe2n9eEsKRc1soWIY0yToMUPirPIa2QhxcCB3Z5RjpDGIXm0pds+BaiqY6uGLEEzsjhRO0ujd4v2Rmm0vuFg==", + "dev": true, + "requires": { + "@parcel/bundler-default": "2.12.0", + "@parcel/compressor-raw": "2.12.0", + "@parcel/namer-default": "2.12.0", + "@parcel/optimizer-css": "2.12.0", + "@parcel/optimizer-htmlnano": "2.12.0", + "@parcel/optimizer-image": "2.12.0", + "@parcel/optimizer-svgo": "2.12.0", + "@parcel/optimizer-swc": "2.12.0", + "@parcel/packager-css": "2.12.0", + "@parcel/packager-html": "2.12.0", + "@parcel/packager-js": "2.12.0", + "@parcel/packager-raw": "2.12.0", + "@parcel/packager-svg": "2.12.0", + "@parcel/packager-wasm": "2.12.0", + "@parcel/reporter-dev-server": "2.12.0", + "@parcel/resolver-default": "2.12.0", + "@parcel/runtime-browser-hmr": "2.12.0", + "@parcel/runtime-js": "2.12.0", + "@parcel/runtime-react-refresh": "2.12.0", + "@parcel/runtime-service-worker": "2.12.0", + "@parcel/transformer-babel": "2.12.0", + "@parcel/transformer-css": "2.12.0", + "@parcel/transformer-html": "2.12.0", + "@parcel/transformer-image": "2.12.0", + "@parcel/transformer-js": "2.12.0", + "@parcel/transformer-json": "2.12.0", + "@parcel/transformer-postcss": "2.12.0", + "@parcel/transformer-posthtml": "2.12.0", + "@parcel/transformer-raw": "2.12.0", + "@parcel/transformer-react-refresh-wrap": "2.12.0", + "@parcel/transformer-svg": "2.12.0" + } + }, + "@parcel/core": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/core/-/core-2.12.0.tgz", + "integrity": "sha512-s+6pwEj+GfKf7vqGUzN9iSEPueUssCCQrCBUlcAfKrJe0a22hTUCjewpB0I7lNrCIULt8dkndD+sMdOrXsRl6Q==", + "dev": true, + "requires": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/cache": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/graph": "3.2.0", + "@parcel/logger": "2.12.0", + "@parcel/package-manager": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/profiler": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "abortcontroller-polyfill": "^1.1.9", + "base-x": "^3.0.8", + "browserslist": "^4.6.6", + "clone": "^2.1.1", + "dotenv": "^7.0.0", + "dotenv-expand": "^5.1.0", + "json5": "^2.2.0", + "msgpackr": "^1.9.9", + "nullthrows": "^1.1.1", + "semver": "^7.5.2" + }, + "dependencies": { + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/diagnostic": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/diagnostic/-/diagnostic-2.12.0.tgz", + "integrity": "sha512-8f1NOsSFK+F4AwFCKynyIu9Kr/uWHC+SywAv4oS6Bv3Acig0gtwUjugk0C9UaB8ztBZiW5TQZhw+uPZn9T/lJA==", + "dev": true, + "requires": { + "@mischnic/json-sourcemap": "^0.1.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/events": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/events/-/events-2.12.0.tgz", + "integrity": "sha512-nmAAEIKLjW1kB2cUbCYSmZOGbnGj8wCzhqnK727zCCWaA25ogzAtt657GPOeFyqW77KyosU728Tl63Fc8hphIA==", + "dev": true + }, + "@parcel/fs": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/fs/-/fs-2.12.0.tgz", + "integrity": "sha512-NnFkuvou1YBtPOhTdZr44WN7I60cGyly2wpHzqRl62yhObyi1KvW0SjwOMa0QGNcBOIzp4G0CapoZ93hD0RG5Q==", + "dev": true, + "requires": { + "@parcel/rust": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/watcher": "^2.0.7", + "@parcel/workers": "2.12.0" + } + }, + "@parcel/graph": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@parcel/graph/-/graph-3.2.0.tgz", + "integrity": "sha512-xlrmCPqy58D4Fg5umV7bpwDx5Vyt7MlnQPxW68vae5+BA4GSWetfZt+Cs5dtotMG2oCHzZxhIPt7YZ7NRyQzLA==", + "dev": true, + "requires": { + "nullthrows": "^1.1.1" + } + }, + "@parcel/logger": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/logger/-/logger-2.12.0.tgz", + "integrity": "sha512-cJ7Paqa7/9VJ7C+KwgJlwMqTQBOjjn71FbKk0G07hydUEBISU2aDfmc/52o60ErL9l+vXB26zTrIBanbxS8rVg==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0" + } + }, + "@parcel/markdown-ansi": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/markdown-ansi/-/markdown-ansi-2.12.0.tgz", + "integrity": "sha512-WZz3rzL8k0H3WR4qTHX6Ic8DlEs17keO9gtD4MNGyMNQbqQEvQ61lWJaIH0nAtgEetu0SOITiVqdZrb8zx/M7w==", + "dev": true, + "requires": { + "chalk": "^4.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@parcel/namer-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/namer-default/-/namer-default-2.12.0.tgz", + "integrity": "sha512-9DNKPDHWgMnMtqqZIMiEj/R9PNWW16lpnlHjwK3ciRlMPgjPJ8+UNc255teZODhX0T17GOzPdGbU/O/xbxVPzA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/node-resolver-core": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@parcel/node-resolver-core/-/node-resolver-core-3.3.0.tgz", + "integrity": "sha512-rhPW9DYPEIqQBSlYzz3S0AjXxjN6Ub2yS6tzzsW/4S3Gpsgk/uEq4ZfxPvoPf/6TgZndVxmKwpmxaKtGMmf3cA==", + "dev": true, + "requires": { + "@mischnic/json-sourcemap": "^0.1.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1", + "semver": "^7.5.2" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/optimizer-css": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-css/-/optimizer-css-2.12.0.tgz", + "integrity": "sha512-ifbcC97fRzpruTjaa8axIFeX4MjjSIlQfem3EJug3L2AVqQUXnM1XO8L0NaXGNLTW2qnh1ZjIJ7vXT/QhsphsA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "browserslist": "^4.6.6", + "lightningcss": "^1.22.1", + "nullthrows": "^1.1.1" + } + }, + "@parcel/optimizer-htmlnano": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-htmlnano/-/optimizer-htmlnano-2.12.0.tgz", + "integrity": "sha512-MfPMeCrT8FYiOrpFHVR+NcZQlXAptK2r4nGJjfT+ndPBhEEZp4yyL7n1y7HfX9geg5altc4WTb4Gug7rCoW8VQ==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "htmlnano": "^2.0.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "svgo": "^2.4.0" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "requires": { + "css-tree": "^1.1.2" + } + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + } + } + } + }, + "@parcel/optimizer-image": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-image/-/optimizer-image-2.12.0.tgz", + "integrity": "sha512-bo1O7raeAIbRU5nmNVtx8divLW9Xqn0c57GVNGeAK4mygnQoqHqRZ0mR9uboh64pxv6ijXZHPhKvU9HEpjPjBQ==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0" + } + }, + "@parcel/optimizer-svgo": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-svgo/-/optimizer-svgo-2.12.0.tgz", + "integrity": "sha512-Kyli+ZZXnoonnbeRQdoWwee9Bk2jm/49xvnfb+2OO8NN0d41lblBoRhOyFiScRnJrw7eVl1Xrz7NTkXCIO7XFQ==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "svgo": "^2.4.0" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "requires": { + "css-tree": "^1.1.2" + } + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + } + } + } + }, + "@parcel/optimizer-swc": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/optimizer-swc/-/optimizer-swc-2.12.0.tgz", + "integrity": "sha512-iBi6LZB3lm6WmbXfzi8J3DCVPmn4FN2lw7DGXxUXu7MouDPVWfTsM6U/5TkSHJRNRogZ2gqy5q9g34NPxHbJcw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "@swc/core": "^1.3.36", + "nullthrows": "^1.1.1" + } + }, + "@parcel/package-manager": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/package-manager/-/package-manager-2.12.0.tgz", + "integrity": "sha512-0nvAezcjPx9FT+hIL+LS1jb0aohwLZXct7jAh7i0MLMtehOi0z1Sau+QpgMlA9rfEZZ1LIeFdnZZwqSy7Ccspw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/node-resolver-core": "3.3.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "@swc/core": "^1.3.36", + "semver": "^7.5.2" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/packager-css": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-css/-/packager-css-2.12.0.tgz", + "integrity": "sha512-j3a/ODciaNKD19IYdWJT+TP+tnhhn5koBGBWWtrKSu0UxWpnezIGZetit3eE+Y9+NTePalMkvpIlit2eDhvfJA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "lightningcss": "^1.22.1", + "nullthrows": "^1.1.1" + } + }, + "@parcel/packager-html": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-html/-/packager-html-2.12.0.tgz", + "integrity": "sha512-PpvGB9hFFe+19NXGz2ApvPrkA9GwEqaDAninT+3pJD57OVBaxB8U+HN4a5LICKxjUppPPqmrLb6YPbD65IX4RA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5" + } + }, + "@parcel/packager-js": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-js/-/packager-js-2.12.0.tgz", + "integrity": "sha512-viMF+FszITRRr8+2iJyk+4ruGiL27Y6AF7hQ3xbJfzqnmbOhGFtLTQwuwhOLqN/mWR2VKdgbLpZSarWaO3yAMg==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "globals": "^13.2.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/packager-raw": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-raw/-/packager-raw-2.12.0.tgz", + "integrity": "sha512-tJZqFbHqP24aq1F+OojFbQIc09P/u8HAW5xfndCrFnXpW4wTgM3p03P0xfw3gnNq+TtxHJ8c3UFE5LnXNNKhYA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0" + } + }, + "@parcel/packager-svg": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-svg/-/packager-svg-2.12.0.tgz", + "integrity": "sha512-ldaGiacGb2lLqcXas97k8JiZRbAnNREmcvoY2W2dvW4loVuDT9B9fU777mbV6zODpcgcHWsLL3lYbJ5Lt3y9cg==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "posthtml": "^0.16.4" + } + }, + "@parcel/packager-wasm": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/packager-wasm/-/packager-wasm-2.12.0.tgz", + "integrity": "sha512-fYqZzIqO9fGYveeImzF8ll6KRo2LrOXfD+2Y5U3BiX/wp9wv17dz50QLDQm9hmTcKGWxK4yWqKQh+Evp/fae7A==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0" + } + }, + "@parcel/plugin": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/plugin/-/plugin-2.12.0.tgz", + "integrity": "sha512-nc/uRA8DiMoe4neBbzV6kDndh/58a4wQuGKw5oEoIwBCHUvE2W8ZFSu7ollSXUGRzfacTt4NdY8TwS73ScWZ+g==", + "dev": true, + "requires": { + "@parcel/types": "2.12.0" + } + }, + "@parcel/profiler": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/profiler/-/profiler-2.12.0.tgz", + "integrity": "sha512-q53fvl5LDcFYzMUtSusUBZSjQrKjMlLEBgKeQHFwkimwR1mgoseaDBDuNz0XvmzDzF1UelJ02TUKCGacU8W2qA==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0", + "chrome-trace-event": "^1.0.2" + } + }, + "@parcel/reporter-cli": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-cli/-/reporter-cli-2.12.0.tgz", + "integrity": "sha512-TqKsH4GVOLPSCanZ6tcTPj+rdVHERnt5y4bwTM82cajM21bCX1Ruwp8xOKU+03091oV2pv5ieB18pJyRF7IpIw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "chalk": "^4.1.0", + "term-size": "^2.2.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@parcel/reporter-dev-server": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-dev-server/-/reporter-dev-server-2.12.0.tgz", + "integrity": "sha512-tIcDqRvAPAttRlTV28dHcbWT5K2r/MBFks7nM4nrEDHWtnrCwimkDmZTc1kD8QOCCjGVwRHcQybpHvxfwol6GA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0" + } + }, + "@parcel/reporter-tracer": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/reporter-tracer/-/reporter-tracer-2.12.0.tgz", + "integrity": "sha512-g8rlu9GxB8Ut/F8WGx4zidIPQ4pcYFjU9bZO+fyRIPrSUFH2bKijCnbZcr4ntqzDGx74hwD6cCG4DBoleq2UlQ==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "chrome-trace-event": "^1.0.3", + "nullthrows": "^1.1.1" + } + }, + "@parcel/resolver-default": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/resolver-default/-/resolver-default-2.12.0.tgz", + "integrity": "sha512-uuhbajTax37TwCxu7V98JtRLiT6hzE4VYSu5B7Qkauy14/WFt2dz6GOUXPgVsED569/hkxebPx3KCMtZW6cHHA==", + "dev": true, + "requires": { + "@parcel/node-resolver-core": "3.3.0", + "@parcel/plugin": "2.12.0" + } + }, + "@parcel/runtime-browser-hmr": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-browser-hmr/-/runtime-browser-hmr-2.12.0.tgz", + "integrity": "sha512-4ZLp2FWyD32r0GlTulO3+jxgsA3oO1P1b5oO2IWuWilfhcJH5LTiazpL5YdusUjtNn9PGN6QLAWfxmzRIfM+Ow==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0" + } + }, + "@parcel/runtime-js": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-js/-/runtime-js-2.12.0.tgz", + "integrity": "sha512-sBerP32Z1crX5PfLNGDSXSdqzlllM++GVnVQVeM7DgMKS8JIFG3VLi28YkX+dYYGtPypm01JoIHCkvwiZEcQJg==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/runtime-react-refresh": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-react-refresh/-/runtime-react-refresh-2.12.0.tgz", + "integrity": "sha512-SCHkcczJIDFTFdLTzrHTkQ0aTrX3xH6jrA4UsCBL6ji61+w+ohy4jEEe9qCgJVXhnJfGLE43HNXek+0MStX+Mw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "react-error-overlay": "6.0.9", + "react-refresh": "^0.9.0" + } + }, + "@parcel/runtime-service-worker": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/runtime-service-worker/-/runtime-service-worker-2.12.0.tgz", + "integrity": "sha512-BXuMBsfiwpIEnssn+jqfC3jkgbS8oxeo3C7xhSQsuSv+AF2FwY3O3AO1c1RBskEW3XrBLNINOJujroNw80VTKA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/rust": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/rust/-/rust-2.12.0.tgz", + "integrity": "sha512-005cldMdFZFDPOjbDVEXcINQ3wT4vrxvSavRWI3Az0e3E18exO/x/mW9f648KtXugOXMAqCEqhFHcXECL9nmMw==", + "dev": true + }, + "@parcel/source-map": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@parcel/source-map/-/source-map-2.1.1.tgz", + "integrity": "sha512-Ejx1P/mj+kMjQb8/y5XxDUn4reGdr+WyKYloBljpppUy8gs42T+BNoEOuRYqDVdgPc6NxduzIDoJS9pOFfV5Ew==", + "dev": true, + "requires": { + "detect-libc": "^1.0.3" + } + }, + "@parcel/transformer-babel": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-babel/-/transformer-babel-2.12.0.tgz", + "integrity": "sha512-zQaBfOnf/l8rPxYGnsk/ufh/0EuqvmnxafjBIpKZ//j6rGylw5JCqXSb1QvvAqRYruKeccxGv7+HrxpqKU6V4A==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "browserslist": "^4.6.6", + "json5": "^2.2.0", + "nullthrows": "^1.1.1", + "semver": "^7.5.2" + }, + "dependencies": { + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/transformer-css": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-css/-/transformer-css-2.12.0.tgz", + "integrity": "sha512-vXhOqoAlQGATYyQ433Z1DXKmiKmzOAUmKysbYH3FD+LKEKLMEl/pA14goqp00TW+A/EjtSKKyeMyHlMIIUqj4Q==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "browserslist": "^4.6.6", + "lightningcss": "^1.22.1", + "nullthrows": "^1.1.1" + } + }, + "@parcel/transformer-html": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-html/-/transformer-html-2.12.0.tgz", + "integrity": "sha512-5jW4dFFBlYBvIQk4nrH62rfA/G/KzVzEDa6S+Nne0xXhglLjkm64Ci9b/d4tKZfuGWUbpm2ASAq8skti/nfpXw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^7.5.2", + "srcset": "4" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/transformer-image": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-image/-/transformer-image-2.12.0.tgz", + "integrity": "sha512-8hXrGm2IRII49R7lZ0RpmNk27EhcsH+uNKsvxuMpXPuEnWgC/ha/IrjaI29xCng1uGur74bJF43NUSQhR4aTdw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "nullthrows": "^1.1.1" + } + }, + "@parcel/transformer-inline-string": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-inline-string/-/transformer-inline-string-2.12.0.tgz", + "integrity": "sha512-FawH7Hgc7E8/Uc0t1UlFT2AdKdEQysu6OJp88NJixAqNhZT7G24OtKltM+VyayPxQZyLblPcp6TnYpY+Tz9VGA==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0" + } + }, + "@parcel/transformer-js": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-js/-/transformer-js-2.12.0.tgz", + "integrity": "sha512-OSZpOu+FGDbC/xivu24v092D9w6EGytB3vidwbdiJ2FaPgfV7rxS0WIUjH4I0OcvHAcitArRXL0a3+HrNTdQQw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/utils": "2.12.0", + "@parcel/workers": "2.12.0", + "@swc/helpers": "^0.5.0", + "browserslist": "^4.6.6", + "nullthrows": "^1.1.1", + "regenerator-runtime": "^0.13.7", + "semver": "^7.5.2" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/transformer-json": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-json/-/transformer-json-2.12.0.tgz", + "integrity": "sha512-Utv64GLRCQILK5r0KFs4o7I41ixMPllwOLOhkdjJKvf1hZmN6WqfOmB1YLbWS/y5Zb/iB52DU2pWZm96vLFQZQ==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "json5": "^2.2.0" + }, + "dependencies": { + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + } + } + }, + "@parcel/transformer-postcss": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-postcss/-/transformer-postcss-2.12.0.tgz", + "integrity": "sha512-FZqn+oUtiLfPOn67EZxPpBkfdFiTnF4iwiXPqvst3XI8H+iC+yNgzmtJkunOOuylpYY6NOU5jT8d7saqWSDv2Q==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/utils": "2.12.0", + "clone": "^2.1.1", + "nullthrows": "^1.1.1", + "postcss-value-parser": "^4.2.0", + "semver": "^7.5.2" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/transformer-posthtml": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-posthtml/-/transformer-posthtml-2.12.0.tgz", + "integrity": "sha512-z6Z7rav/pcaWdeD+2sDUcd0mmNZRUvtHaUGa50Y2mr+poxrKilpsnFMSiWBT+oOqPt7j71jzDvrdnAF4XkCljg==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^7.5.2" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/transformer-raw": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-raw/-/transformer-raw-2.12.0.tgz", + "integrity": "sha512-Ht1fQvXxix0NncdnmnXZsa6hra20RXYh1VqhBYZLsDfkvGGFnXIgO03Jqn4Z8MkKoa0tiNbDhpKIeTjyclbBxQ==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0" + } + }, + "@parcel/transformer-react-refresh-wrap": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-react-refresh-wrap/-/transformer-react-refresh-wrap-2.12.0.tgz", + "integrity": "sha512-GE8gmP2AZtkpBIV5vSCVhewgOFRhqwdM5Q9jNPOY5PKcM3/Ff0qCqDiTzzGLhk0/VMBrdjssrfZkVx6S/lHdJw==", + "dev": true, + "requires": { + "@parcel/plugin": "2.12.0", + "@parcel/utils": "2.12.0", + "react-refresh": "^0.9.0" + } + }, + "@parcel/transformer-svg": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/transformer-svg/-/transformer-svg-2.12.0.tgz", + "integrity": "sha512-cZJqGRJ4JNdYcb+vj94J7PdOuTnwyy45dM9xqbIMH+HSiiIkfrMsdEwYft0GTyFTdsnf+hdHn3tau7Qa5hhX+A==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/plugin": "2.12.0", + "@parcel/rust": "2.12.0", + "nullthrows": "^1.1.1", + "posthtml": "^0.16.5", + "posthtml-parser": "^0.10.1", + "posthtml-render": "^3.0.0", + "semver": "^7.5.2" + }, + "dependencies": { + "semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@parcel/types": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/types/-/types-2.12.0.tgz", + "integrity": "sha512-8zAFiYNCwNTQcglIObyNwKfRYQK5ELlL13GuBOrSMxueUiI5ylgsGbTS1N7J3dAGZixHO8KhHGv5a71FILn9rQ==", + "dev": true, + "requires": { + "@parcel/cache": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/package-manager": "2.12.0", + "@parcel/source-map": "^2.1.1", + "@parcel/workers": "2.12.0", + "utility-types": "^3.10.0" + } + }, + "@parcel/utils": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/utils/-/utils-2.12.0.tgz", + "integrity": "sha512-z1JhLuZ8QmDaYoEIuUCVZlhcFrS7LMfHrb2OCRui5SQFntRWBH2fNM6H/fXXUkT9SkxcuFP2DUA6/m4+Gkz72g==", + "dev": true, + "requires": { + "@parcel/codeframe": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/markdown-ansi": "2.12.0", + "@parcel/rust": "2.12.0", + "@parcel/source-map": "^2.1.1", + "chalk": "^4.1.0", + "nullthrows": "^1.1.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@parcel/watcher": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.4.1.tgz", + "integrity": "sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==", + "dev": true, + "requires": { + "@parcel/watcher-android-arm64": "2.4.1", + "@parcel/watcher-darwin-arm64": "2.4.1", + "@parcel/watcher-darwin-x64": "2.4.1", + "@parcel/watcher-freebsd-x64": "2.4.1", + "@parcel/watcher-linux-arm-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-glibc": "2.4.1", + "@parcel/watcher-linux-arm64-musl": "2.4.1", + "@parcel/watcher-linux-x64-glibc": "2.4.1", + "@parcel/watcher-linux-x64-musl": "2.4.1", + "@parcel/watcher-win32-arm64": "2.4.1", + "@parcel/watcher-win32-ia32": "2.4.1", + "@parcel/watcher-win32-x64": "2.4.1", + "detect-libc": "^1.0.3", + "is-glob": "^4.0.3", + "micromatch": "^4.0.5", + "node-addon-api": "^7.0.0" + } + }, + "@parcel/watcher-android-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz", + "integrity": "sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==", + "dev": true, + "optional": true + }, + "@parcel/watcher-darwin-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz", + "integrity": "sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==", + "dev": true, + "optional": true + }, + "@parcel/watcher-darwin-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz", + "integrity": "sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==", + "dev": true, + "optional": true + }, + "@parcel/watcher-freebsd-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz", + "integrity": "sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==", + "dev": true, + "optional": true + }, + "@parcel/watcher-linux-arm-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz", + "integrity": "sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==", + "dev": true, + "optional": true + }, + "@parcel/watcher-linux-arm64-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz", + "integrity": "sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==", + "dev": true, + "optional": true + }, + "@parcel/watcher-linux-arm64-musl": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz", + "integrity": "sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==", + "dev": true, + "optional": true + }, + "@parcel/watcher-linux-x64-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz", + "integrity": "sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==", + "dev": true, + "optional": true + }, + "@parcel/watcher-linux-x64-musl": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz", + "integrity": "sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==", + "dev": true, + "optional": true + }, + "@parcel/watcher-win32-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz", + "integrity": "sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==", + "dev": true, + "optional": true + }, + "@parcel/watcher-win32-ia32": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz", + "integrity": "sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==", + "dev": true, + "optional": true + }, + "@parcel/watcher-win32-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz", + "integrity": "sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==", + "dev": true, + "optional": true + }, + "@parcel/workers": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@parcel/workers/-/workers-2.12.0.tgz", + "integrity": "sha512-zv5We5Jmb+ZWXlU6A+AufyjY4oZckkxsZ8J4dvyWL0W8IQvGO1JB4FGeryyttzQv3RM3OxcN/BpTGPiDG6keBw==", + "dev": true, + "requires": { + "@parcel/diagnostic": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/profiler": "2.12.0", + "@parcel/types": "2.12.0", + "@parcel/utils": "2.12.0", + "nullthrows": "^1.1.1" + } + }, + "@swc/core": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.4.5.tgz", + "integrity": "sha512-4/JGkG4b1Z/QwCGgx+Ub46MlzrsZvBk5JSkxm9PcZ4bSX81c+4Y94Xm3iLp5Ka8NxzS5rD4mJSpcYuN3Tw0ceg==", + "dev": true, + "requires": { + "@swc/core-darwin-arm64": "1.4.5", + "@swc/core-darwin-x64": "1.4.5", + "@swc/core-linux-arm-gnueabihf": "1.4.5", + "@swc/core-linux-arm64-gnu": "1.4.5", + "@swc/core-linux-arm64-musl": "1.4.5", + "@swc/core-linux-x64-gnu": "1.4.5", + "@swc/core-linux-x64-musl": "1.4.5", + "@swc/core-win32-arm64-msvc": "1.4.5", + "@swc/core-win32-ia32-msvc": "1.4.5", + "@swc/core-win32-x64-msvc": "1.4.5", + "@swc/counter": "^0.1.2", + "@swc/types": "^0.1.5" + } + }, + "@swc/core-darwin-arm64": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.4.5.tgz", + "integrity": "sha512-toMSkbByHNfGXESyY1aiq5L3KutgijrNWB/THgdHIA1aIbwtrgMdFQfxpSE+INuuvWYi/Fxarv86EnU7ewbI0Q==", + "dev": true, + "optional": true + }, + "@swc/core-darwin-x64": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.4.5.tgz", + "integrity": "sha512-LN8cbnmb4Gav8UcbBc+L/DEthmzCWZz22rQr6fIEHMN+f0d71fuKnV0ca0hoKbpZn33dlzUmXQE53HRjlRUQbw==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm-gnueabihf": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.4.5.tgz", + "integrity": "sha512-suRFkhBWmOQxlM4frpos1uqjmHfaEI8FuJ0LL5+yRE7IunNDeQJBKujGZt6taeuxo1KqC0N0Ajr8IluN2wrKpA==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm64-gnu": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.4.5.tgz", + "integrity": "sha512-mLKxasQArDGmR6k9c0tkPVUdoo8VfUecocMG1Mx9NYvpidJNaZ3xq9nYM77v7uq1fQqrs/59DM1fJTNRWvv/UQ==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm64-musl": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.4.5.tgz", + "integrity": "sha512-pgKuyRP7S29U/HMDTx+x8dFcklWxwB9cHFNCNWSE6bS4vHR93jc4quwPX9OEQX5CVHxm+c8+xof043I4OGkAXw==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-gnu": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.4.5.tgz", + "integrity": "sha512-srR+YN86Oerzoghd0DPCzTbTp08feeJPSr9kkNdmtQWENOa4l/9cJV3+XY6vviw0sEjezPmYnc3SwRxJRaxvEw==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-musl": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.4.5.tgz", + "integrity": "sha512-aSf41LZtDeG5VXI4RCnzcu0UInPyNm3ip8Kw+sCK+sSqW9o7DgBkyqqbip3RZq84fNUHBQQQQdKXetltsyRRqw==", + "dev": true, + "optional": true + }, + "@swc/core-win32-arm64-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.4.5.tgz", + "integrity": "sha512-vU3k8JwRUlTkJMfJQY9E4VvLrsIFOpfhnvbuXB84Amo1cJsz+bYQcC6RSvY7qpaDzDKFdUGbJco4uZTRoRf7Mg==", + "dev": true, + "optional": true + }, + "@swc/core-win32-ia32-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.4.5.tgz", + "integrity": "sha512-856YRh3frRK2XbrSjDOFBgoAqWJLNRkaEtfGzXfeEoyJlOz0BFsSJHxKlHAFkxRfHe2li9DJRUQFTEhXn4OUWw==", + "dev": true, + "optional": true + }, + "@swc/core-win32-x64-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.4.5.tgz", + "integrity": "sha512-j1+kV7jmWY1+NbXAvxAEW165781yLXVZKLcoXIZKmw18EatqMF6w8acg1gDG8C+Iw5aWLkRZVS4pijSh7+DtCQ==", + "dev": true, + "optional": true + }, + "@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true + }, + "@swc/helpers": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.6.tgz", + "integrity": "sha512-aYX01Ke9hunpoCexYAgQucEpARGQ5w/cqHFrIR+e9gdKb1QWTsVJuTJ2ozQzIAxLyRQe/m+2RqzkyOOGiMKRQA==", + "dev": true, + "requires": { + "tslib": "^2.4.0" + } + }, + "@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true + }, + "@tokenizer/token": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.1.1.tgz", + "integrity": "sha512-XO6INPbZCxdprl+9qa/AAbFFOMzzwqYxpjPgLICrMD6C2FCw6qfJOPcBk6JqqPLSaZ/Qx87qn4rpPmPMwaAK6w==", + "dev": true + }, + "@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true + }, + "@types/debug": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.5.tgz", + "integrity": "sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==", + "dev": true + }, + "@types/eslint": { + "version": "8.56.5", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.5.tgz", + "integrity": "sha512-u5/YPJHo1tvkSF2CE0USEkxon82Z5DBy2xR+qfyYNszpX9qcs4sT6uq2kBbj4BXY1+DBGDPnrhMZV3pKWGNukw==", + "dev": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "@types/minimist": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.1.tgz", + "integrity": "sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==", + "dev": true + }, + "@types/node": { + "version": "15.12.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.4.tgz", + "integrity": "sha512-zrNj1+yqYF4WskCMOHwN+w9iuD12+dGm0rQ35HLl9/Ouuq52cEtd0CH9qMgrdNmi5ejC1/V7vKEXYubB+65DkA==", + "dev": true + }, + "@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "@types/readable-stream": { + "version": "2.3.10", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-2.3.10.tgz", + "integrity": "sha512-xwSXvAv9x4B9Vj88AMZnFyEVLilz1EBxKvRUhGqIF4nJpRQBSTm7jS236X4Y9Y2qPsVvaMxwrGJlNhLHEahlFQ==", + "dev": true, + "requires": { + "@types/node": "*", + "safe-buffer": "*" + } + }, + "@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "requires": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@webpack-cli/configtest": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", + "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", + "dev": true, + "requires": {} + }, + "@webpack-cli/info": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", + "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", + "dev": true, + "requires": {} + }, + "@webpack-cli/serve": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", + "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", + "dev": true, + "requires": {} + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "abortcontroller-polyfill": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz", + "integrity": "sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==", + "dev": true + }, + "acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true + }, + "acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "requires": {} + }, + "aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "dependencies": { + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true + } + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "requires": {} + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base-x": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "browserslist": { + "version": "4.21.10", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", + "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.11" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + } + }, + "caniuse-lite": { + "version": "1.0.30001534", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001534.tgz", + "integrity": "sha512-vlPVrhsCS7XaSh2VvWluIQEzVhefrUQcEsQWSS5A5V+dM07uv1qHeQzAOTGIMy9i3e9bH15+muvI/UHojVgS/Q==", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true + }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true + }, + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + } + }, + "clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==" + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "component-event": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/component-event/-/component-event-0.2.1.tgz", + "integrity": "sha512-wGA++isMqiDq1jPYeyv2as/Bt/u+3iLW0rEa+8NQ82jAv3TgqMiCM+B2SaBdn2DfLilLjjq736YcezihRYhfxw==" + }, + "component-props": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/component-props/-/component-props-1.1.1.tgz", + "integrity": "sha512-69pIRJs9fCCHRqCz3390YF2LV1Lu6iEMZ5zuVqqUn+G20V9BNXlMs0cWawWeW9g4Ynmg29JmkG6R7/lUJoGd1Q==" + }, + "component-xor": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/component-xor/-/component-xor-0.0.4.tgz", + "integrity": "sha512-ZIt6sla8gfo+AFVRZoZOertcnD5LJaY2T9CKE2j13NJxQt/mUafD69Bl7/Y4AnpI2LGjiXH7cOfJDx/n2G9edA==" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "dev": true, + "requires": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "dependencies": { + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + } + } + }, + "crelt": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", + "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true + }, + "css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "dependencies": { + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "domelementtype": "^2.3.0" + } + }, + "domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + } + }, + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "optional": true, + "peer": true + } + } + }, + "css-tree": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true + }, + "css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" + }, + "csso": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", + "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "css-tree": "~2.2.0" + }, + "dependencies": { + "css-tree": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", + "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" + } + }, + "mdn-data": { + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", + "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==", + "dev": true, + "optional": true, + "peer": true + } + } + }, + "decamelize": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.0.tgz", + "integrity": "sha512-U75DcT5hrio3KNtvdULAWnLiAPbFUC4191ldxMmj4FA/mRuBnmDwU0boNfPyFRhnan+Jm+haLeSn3P0afcBn4w==", + "dev": true + }, + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + } + } + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "del": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", + "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", + "dev": true, + "requires": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + } + }, + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true + }, + "diagram-js": { + "version": "14.8.0", + "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-14.8.0.tgz", + "integrity": "sha512-HV3R6i+hl2PyhsdOQ1pqOsI+JCkX/bYJiHgO5zAaExORtuDrdGVDW7lKsEfcrcGA0fXfpEcmerjOmdH/PIvyJA==", + "requires": { + "@bpmn-io/diagram-js-ui": "^0.2.3", + "clsx": "^2.1.0", + "didi": "^10.2.2", + "inherits-browser": "^0.1.0", + "min-dash": "^4.1.0", + "min-dom": "^4.2.1", + "object-refs": "^0.4.0", + "path-intersection": "^3.0.0", + "tiny-svg": "^3.1.2" + } + }, + "diagram-js-direct-editing": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/diagram-js-direct-editing/-/diagram-js-direct-editing-3.0.1.tgz", + "integrity": "sha512-V44JO55nwFbsRv6tTmrfdz6fIsE3A4YIIqInaeJZyD2EongZzEo4acH9TqsE4hi9R/kAqsyttMKxTAgHplFn8w==", + "requires": { + "min-dash": "^4.0.0", + "min-dom": "^4.0.2" + } + }, + "didi": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/didi/-/didi-10.2.2.tgz", + "integrity": "sha512-l8NYkYFXV1izHI65EyT8EXOjUZtKmQkHLTT89cSP7HU5J/G7AOj0dXKtLc04EXYlga99PBY18IPjOeZ+c3DI4w==" + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + }, + "dependencies": { + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + } + } + }, + "dmn-js": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js/-/dmn-js-16.6.1.tgz", + "integrity": "sha512-JJnz/QeQzduQomM4iDX3zTmEpFTJqXWMwMV9MhU3Oha31te5tbHS8uLNakU9igemk5W+4JBahVrlgeHEdiKsNQ==", + "requires": { + "dmn-js-boxed-expression": "^16.6.1", + "dmn-js-decision-table": "^16.6.1", + "dmn-js-drd": "^16.6.1", + "dmn-js-literal-expression": "^16.6.1", + "dmn-js-shared": "^16.6.1" + } + }, + "dmn-js-boxed-expression": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-boxed-expression/-/dmn-js-boxed-expression-16.6.1.tgz", + "integrity": "sha512-tV7eyJn2HoD+lcxCXSFLC9CIDijmn0RfDrpyMgtMGoTkc+OzQO3EU1vgq/L/RfgaAZF8Qh5rAd4/zVrRDlPAzg==", + "requires": { + "@bpmn-io/dmn-variable-resolver": "^0.7.0", + "diagram-js": "^14.7.1", + "dmn-js-shared": "^16.6.1", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "table-js": "^9.1.0" + } + }, + "dmn-js-decision-table": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-decision-table/-/dmn-js-decision-table-16.6.1.tgz", + "integrity": "sha512-d89IKxs23NM+T93TDTtNLCIxe/2bZAs4pYyiiNc4DCTnQXKsbTYxf7RXo5do47mei6aL79Gg0UwId5SGEFlRpQ==", + "requires": { + "@bpmn-io/dmn-variable-resolver": "^0.7.0", + "css.escape": "^1.5.1", + "diagram-js": "^14.7.1", + "dmn-js-shared": "^16.6.1", + "escape-html": "^1.0.3", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "selection-ranges": "^3.0.2", + "table-js": "^9.1.0" + } + }, + "dmn-js-drd": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-drd/-/dmn-js-drd-16.6.1.tgz", + "integrity": "sha512-G7+30r8mAB8RH5M27Lq7+rht2K8cCHVxHXliWp3QphLA9Yr2N3cHGu4rM7/cFWVVPu567lygF+6uxZqSELZHng==", + "requires": { + "diagram-js": "^14.7.1", + "diagram-js-direct-editing": "^3.0.1", + "dmn-js-shared": "^16.6.1", + "inherits-browser": "^0.1.0", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "object-refs": "^0.4.0", + "tiny-svg": "^3.1.2" + } + }, + "dmn-js-literal-expression": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-literal-expression/-/dmn-js-literal-expression-16.6.1.tgz", + "integrity": "sha512-T2WRpBW9TiDkCS14LraHzIFAy56zOjG6fX1WWE8AfqczfrqsF5n4ND7ZGEip3LEv1nA0RGVY1swhQOU71ZEQyA==", + "requires": { + "@bpmn-io/dmn-variable-resolver": "^0.7.0", + "diagram-js": "^14.7.1", + "dmn-js-shared": "^16.6.1", + "escape-html": "^1.0.3", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "table-js": "^9.1.0" + } + }, + "dmn-js-shared": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dmn-js-shared/-/dmn-js-shared-16.6.1.tgz", + "integrity": "sha512-0FZUkIVaL03/iunHzYVTus1hifX/eyIPUe0I+voO4C+3h9k9txfRA9fRXuFpJdtfqm1vZK8RN7pK8OS7EYI/wg==", + "requires": { + "@bpmn-io/feel-editor": "^1.4.0", + "diagram-js": "^14.7.1", + "didi": "^10.2.2", + "dmn-moddle": "^10.0.0", + "ids": "^1.0.5", + "inferno": "~5.6.3", + "min-dash": "^4.0.0", + "min-dom": "^4.2.1", + "selection-ranges": "^3.0.2", + "selection-update": "^0.1.2", + "table-js": "^9.1.0" + } + }, + "dmn-moddle": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dmn-moddle/-/dmn-moddle-10.0.0.tgz", + "integrity": "sha512-JD08qH2VqA7O54qCQFrGruwGyVovow+9g2O5/ww0KpC/n0mvuua117dz2CONiUWexJxq/dOAaMjrQwkWnK+oEA==", + "requires": { + "min-dash": "^3.0.0", + "moddle": "^5.0.1", + "moddle-xml": "^9.0.5" + }, + "dependencies": { + "min-dash": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-3.8.1.tgz", + "integrity": "sha512-evumdlmIlg9mbRVPbC4F5FuRhNmcMS5pvuBUbqb1G9v09Ro0ImPEgz5n3khir83lFok1inKqVDjnKEg3GpDxQg==" + } + } + }, + "dom-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dom-iterator/-/dom-iterator-1.0.0.tgz", + "integrity": "sha512-7dsMOQI07EMU98gQM8NSB3GsAiIeBYIPKpnxR3c9xOvdvBjChAcOM0iJ222I3p5xyiZO9e5oggkNaCusuTdYig==", + "requires": { + "component-props": "1.1.1", + "component-xor": "0.0.4" + } + }, + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "dependencies": { + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + } + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/domify/-/domify-1.4.2.tgz", + "integrity": "sha512-m4yreHcUWHBncGVV7U+yQzc12vIlq0jMrtHZ5mW6dQMiL/7skSYNVX9wqKwOtyO9SGCgevrAFEgOCAHmamHTUA==" + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "dotenv": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-7.0.0.tgz", + "integrity": "sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==", + "dev": true + }, + "dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.4.519", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.519.tgz", + "integrity": "sha512-kqs9oGYL4UFVkLKhqCTgBCYZv+wZ374yABDMqlDda9HvlkQxvSr7kgf4hfWVjMieDbX+1MwPHFBsOGCMIBaFKg==", + "dev": true + }, + "emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true + }, + "enhanced-resolve": { + "version": "5.15.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.1.tgz", + "integrity": "sha512-3d3JRbwsCLJsYgvb6NuWEG44jjPSOMuS73L/6+7BZuoKm3W+qXnSoIYVHi8dG7Qcg4inAY4jbzkZ7MnskePeDg==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "entities": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", + "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", + "dev": true + }, + "envinfo": { + "version": "7.11.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.11.1.tgz", + "integrity": "sha512-8PiZgZNIB4q/Lw4AhOvAfB/ityHAd2bli3lESSWmWSzSsl5dKpy5N1d1Rfkd2teq/g9xN90lc6o98DOjMeYHpg==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.0.tgz", + "integrity": "sha512-yYkE07YF+6SIBmg1MsJ9dlub5L48Ek7X0qz+c/CPCHS9EBXfESorzng4cJQjJW5/pB6vDF41u7F8vUhLVDqIug==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-module-lexer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz", + "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", + "dev": true + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-glob": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", + "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "fastq": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", + "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-type": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.0.tgz", + "integrity": "sha512-OxgWA9tbL8N/WP00GD1z8O0MiwQKFyWRs1q+3FhjdvcGgKqwxcejyGWso3n4/IMU6DdwV+ARZ4A7TTnPkDcSiw==", + "dev": true, + "requires": { + "readable-web-to-node-stream": "^3.0.0", + "strtok3": "^6.0.3", + "token-types": "^2.0.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true + }, + "get-port": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-4.2.0.tgz", + "integrity": "sha512-/b3jarXkH8KJoOMQc3uVGHASwGLPq3gSFJ7tgJm2diza+bydJPTGOibin2steecKeOylE8oY2JERlVWkAJO6yw==", + "dev": true + }, + "get-stdin": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz", + "integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==", + "dev": true + }, + "glob": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + }, + "dependencies": { + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } + } + }, + "globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true + }, + "hasown": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", + "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "htm": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/htm/-/htm-3.1.1.tgz", + "integrity": "sha512-983Vyg8NwUE7JkZ6NmOqpCZ+sh1bKv2iYTlUkzlWmA5JD2acKoxd4KVxbMmxX/85mtfdnDmTFoNKcg5DGAvxNQ==" + }, + "htmlnano": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/htmlnano/-/htmlnano-2.1.0.tgz", + "integrity": "sha512-jVGRE0Ep9byMBKEu0Vxgl8dhXYOUk0iNQ2pjsG+BcRB0u0oDF5A9p/iBGMg/PGKYUyMD0OAGu8dVT5Lzj8S58g==", + "dev": true, + "requires": { + "cosmiconfig": "^8.0.0", + "posthtml": "^0.16.5", + "timsort": "^0.3.0" + } + }, + "htmlparser2": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-7.2.0.tgz", + "integrity": "sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.2", + "domutils": "^2.8.0", + "entities": "^3.0.1" + } + }, + "ids": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.5.tgz", + "integrity": "sha512-XQ0yom/4KWTL29sLG+tyuycy7UmeaM/79GRtSJq6IG9cJGIPeBz5kwDCguie3TwxaMNIc3WtPi0cTa1XYHicpw==" + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true + }, + "ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + } + } + }, + "import-local": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", + "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true + }, + "inferno": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/inferno/-/inferno-5.6.3.tgz", + "integrity": "sha512-2m7bEo/6D+pbxFkFKY/2QOVdknxxXyrXyDdVFobJcQyvfv3985MY+VVwyRZoVJylQG+mzPY5/uDNuXygp8jObA==", + "requires": { + "inferno-shared": "5.6.3", + "inferno-vnode-flags": "5.6.3", + "opencollective-postinstall": "^2.0.3" + } + }, + "inferno-shared": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/inferno-shared/-/inferno-shared-5.6.3.tgz", + "integrity": "sha512-NzhS62Y6BwfkLNmXS9C0Ie7skY1vIoLrVIYnVrMx1xfTLp/AG+ths4oAJGmWcX/AkVSYl+DjP96HEuUdtGmRRw==" + }, + "inferno-vnode-flags": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/inferno-vnode-flags/-/inferno-vnode-flags-5.6.3.tgz", + "integrity": "sha512-1V9Pjz5Erm2sP7xlb4D2zW/U8e3RwU41Ruyn9/apke0BFxbLI+LxxVcKWxom4fPetG6YcBNLpZssy8gkigT9gg==" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "inherits-browser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/inherits-browser/-/inherits-browser-0.1.0.tgz", + "integrity": "sha512-CJHHvW3jQ6q7lzsXPpapLdMx5hDpSF3FSh45pwsj6bKxJJ8Nl8v43i5yXnr3BdfOimGHKyniewQtnAIp3vyJJw==" + }, + "interpret": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", + "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-callable": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", + "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "dev": true + }, + "is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "requires": { + "hasown": "^2.0.0" + } + }, + "is-date-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", + "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", + "dev": true + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-json/-/is-json-2.0.1.tgz", + "integrity": "sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-regex": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", + "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true + }, + "is-symbol": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "requires": { + "is-docker": "^2.0.0" + } + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "lang-feel": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/lang-feel/-/lang-feel-2.1.1.tgz", + "integrity": "sha512-ib1DW52l5L43hSoIPJ6UnsBpiCSpKiKAqunMRJ/KjU9eng3Z1mm8MYTcts99vLvK0j2nDBlCp+g8L/O7ZlgIgw==", + "requires": { + "@codemirror/autocomplete": "^6.16.2", + "@codemirror/language": "^6.10.2", + "@codemirror/state": "^6.4.1", + "@codemirror/view": "^6.28.1", + "@lezer/common": "^1.2.1", + "lezer-feel": "^1.2.9" + } + }, + "lezer-feel": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/lezer-feel/-/lezer-feel-1.2.9.tgz", + "integrity": "sha512-YdRbOI+7BEtWxqJBztBsk8VFBTh3O9/FcYlVn9AsnNJPUwJO11Ewm2pakSA7muMtdpPC6pfsIK/YyfYgyiEMHA==", + "requires": { + "@lezer/highlight": "^1.2.0", + "@lezer/lr": "^1.4.1" + } + }, + "lightningcss": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.24.0.tgz", + "integrity": "sha512-y36QEEDVx4IM7/yIZNsZJMRREIu26WzTsauIysf5s76YeCmlSbRZS7aC97IGPuoFRnyZ5Wx43OBsQBFB5Ne7ng==", + "dev": true, + "requires": { + "detect-libc": "^1.0.3", + "lightningcss-darwin-arm64": "1.24.0", + "lightningcss-darwin-x64": "1.24.0", + "lightningcss-freebsd-x64": "1.24.0", + "lightningcss-linux-arm-gnueabihf": "1.24.0", + "lightningcss-linux-arm64-gnu": "1.24.0", + "lightningcss-linux-arm64-musl": "1.24.0", + "lightningcss-linux-x64-gnu": "1.24.0", + "lightningcss-linux-x64-musl": "1.24.0", + "lightningcss-win32-x64-msvc": "1.24.0" + } + }, + "lightningcss-darwin-arm64": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.24.0.tgz", + "integrity": "sha512-rTNPkEiynOu4CfGdd5ZfVOQe2gd2idfQd4EfX1l2ZUUwd+2SwSdbb7cG4rlwfnZckbzCAygm85xkpekRE5/wFw==", + "dev": true, + "optional": true + }, + "lightningcss-darwin-x64": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.24.0.tgz", + "integrity": "sha512-4KCeF2RJjzp9xdGY8zIH68CUtptEg8uz8PfkHvsIdrP4t9t5CIgfDBhiB8AmuO75N6SofdmZexDZIKdy9vA7Ww==", + "dev": true, + "optional": true + }, + "lightningcss-freebsd-x64": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.24.0.tgz", + "integrity": "sha512-FJAYlek1wXuVTsncNU0C6YD41q126dXcIUm97KAccMn9C4s/JfLSqGWT2gIzAblavPFkyGG2gIADTWp3uWfN1g==", + "dev": true, + "optional": true + }, + "lightningcss-linux-arm-gnueabihf": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.24.0.tgz", + "integrity": "sha512-N55K6JqzMx7C0hYUu1YmWqhkHwzEJlkQRMA6phY65noO0I1LOAvP4wBIoFWrzRE+O6zL0RmXJ2xppqyTbk3sYw==", + "dev": true, + "optional": true + }, + "lightningcss-linux-arm64-gnu": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.24.0.tgz", + "integrity": "sha512-MqqUB2TpYtFWeBvvf5KExDdClU3YGLW5bHKs50uKKootcvG9KoS7wYwd5UichS+W3mYLc5yXUPGD1DNWbLiYKw==", + "dev": true, + "optional": true + }, + "lightningcss-linux-arm64-musl": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.24.0.tgz", + "integrity": "sha512-5wn4d9tFwa5bS1ao9mLexYVJdh3nn09HNIipsII6ZF7z9ZA5J4dOEhMgKoeCl891axTGTUYd8Kxn+Hn3XUSYRQ==", + "dev": true, + "optional": true + }, + "lightningcss-linux-x64-gnu": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.24.0.tgz", + "integrity": "sha512-3j5MdTh+LSDF3o6uDwRjRUgw4J+IfDCVtdkUrJvKxL79qBLUujXY7CTe5X3IQDDLKEe/3wu49r8JKgxr0MfjbQ==", + "dev": true, + "optional": true + }, + "lightningcss-linux-x64-musl": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.24.0.tgz", + "integrity": "sha512-HI+rNnvaLz0o36z6Ki0gyG5igVGrJmzczxA5fznr6eFTj3cHORoR/j2q8ivMzNFR4UKJDkTWUH5LMhacwOHWBA==", + "dev": true, + "optional": true + }, + "lightningcss-win32-x64-msvc": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.24.0.tgz", + "integrity": "sha512-oeije/t7OZ5N9vSs6amyW/34wIYoBCpE6HUlsSKcP2SR1CVgx9oKEM00GtQmtqNnYiMIfsSm7+ppMb4NLtD5vg==", + "dev": true, + "optional": true + }, + "lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "lmdb": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/lmdb/-/lmdb-2.8.5.tgz", + "integrity": "sha512-9bMdFfc80S+vSldBmG3HOuLVHnxRdNTlpzR6QDnzqCQtCzGUEAGTzBKYMeIM+I/sU4oZfgbcbS7X7F65/z/oxQ==", + "dev": true, + "requires": { + "@lmdb/lmdb-darwin-arm64": "2.8.5", + "@lmdb/lmdb-darwin-x64": "2.8.5", + "@lmdb/lmdb-linux-arm": "2.8.5", + "@lmdb/lmdb-linux-arm64": "2.8.5", + "@lmdb/lmdb-linux-x64": "2.8.5", + "@lmdb/lmdb-win32-x64": "2.8.5", + "msgpackr": "^1.9.5", + "node-addon-api": "^6.1.0", + "node-gyp-build-optional-packages": "5.1.1", + "ordered-binary": "^1.4.1", + "weak-lru-cache": "^1.2.2" + }, + "dependencies": { + "node-addon-api": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", + "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", + "dev": true + } + } + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + } + }, + "loader-runner": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", + "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", + "dev": true + }, + "loader-utils": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", + "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^2.0.0", + "json5": "^1.0.1" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "map-obj": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.1.tgz", + "integrity": "sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ==", + "dev": true + }, + "mdn-data": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==", + "dev": true, + "optional": true, + "peer": true + }, + "memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=", + "dev": true + }, + "meow": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-10.0.1.tgz", + "integrity": "sha512-65vCCdUI8wS5upK24fDFo25FcViNExdTGAR/vaWN4E6fXsWQ8fGdbkjCWp3nDTuJMlIYuEoAEMiB2/b81DBJjg==", + "dev": true, + "requires": { + "@types/minimist": "^1.2.1", + "camelcase-keys": "^6.2.2", + "decamelize": "^5.0.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.2", + "read-pkg-up": "^8.0.0", + "redent": "^4.0.0", + "trim-newlines": "^4.0.1", + "type-fest": "^1.0.2", + "yargs-parser": "^20.2.7" + }, + "dependencies": { + "hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "normalize-package-data": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.2.tgz", + "integrity": "sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "resolve": "^1.20.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime-db": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", + "dev": true + }, + "mime-types": { + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", + "dev": true, + "requires": { + "mime-db": "1.48.0" + } + }, + "min-dash": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-4.2.1.tgz", + "integrity": "sha512-to+unsToePnm7cUeR9TrMzFlETHd/UXmU+ELTRfWZj5XGT41KF6X3L233o3E/GdEs3sk2Tbw/lOLD1avmWkg8A==" + }, + "min-dom": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/min-dom/-/min-dom-4.2.1.tgz", + "integrity": "sha512-TMoL8SEEIhUWYgkj7XMSgxmwSyGI+4fP2KFFGnN3FbHfbGHVdsLYSz8LoIsgPhz4dWRmLvxWWSMgzZMJW5sZuA==", + "requires": { + "component-event": "^0.2.1", + "domify": "^1.4.1", + "min-dash": "^4.2.1" + } + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + } + }, + "moddle": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/moddle/-/moddle-5.0.4.tgz", + "integrity": "sha512-Kjb+hjuzO+YlojNGxEUXvdhLYTHTtAABDlDcJTtTcn5MbJF9Zkv4I1Fyvp3Ypmfgg1EfHDZ3PsCQTuML9JD6wg==", + "requires": { + "min-dash": "^3.0.0" + }, + "dependencies": { + "min-dash": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-3.8.1.tgz", + "integrity": "sha512-evumdlmIlg9mbRVPbC4F5FuRhNmcMS5pvuBUbqb1G9v09Ro0ImPEgz5n3khir83lFok1inKqVDjnKEg3GpDxQg==" + } + } + }, + "moddle-xml": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/moddle-xml/-/moddle-xml-9.0.6.tgz", + "integrity": "sha512-tl0reHpsY/aKlLGhXeFlQWlYAQHFxTkFqC8tq8jXRYpQSnLVw13T6swMaourLd7EXqHdWsc+5ggsB+fEep6xZQ==", + "requires": { + "min-dash": "^3.5.2", + "moddle": "^5.0.2", + "saxen": "^8.1.2" + }, + "dependencies": { + "min-dash": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-3.8.1.tgz", + "integrity": "sha512-evumdlmIlg9mbRVPbC4F5FuRhNmcMS5pvuBUbqb1G9v09Ro0ImPEgz5n3khir83lFok1inKqVDjnKEg3GpDxQg==" + } + } + }, + "msgpackr": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.10.1.tgz", + "integrity": "sha512-r5VRLv9qouXuLiIBrLpl2d5ZvPt8svdQTl5/vMvE4nzDMyEX4sgW5yWhuBBj5UmgwOTWj8CIdSXn5sAfsHAWIQ==", + "dev": true, + "requires": { + "msgpackr-extract": "^3.0.2" + } + }, + "msgpackr-extract": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-3.0.2.tgz", + "integrity": "sha512-SdzXp4kD/Qf8agZ9+iTu6eql0m3kWm1A2y1hkpTeVNENutaB0BwHlSvAIaMxwntmRUAUjon2V4L8Z/njd0Ct8A==", + "dev": true, + "optional": true, + "requires": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.2", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.2", + "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.2", + "node-gyp-build-optional-packages": "5.0.7" + }, + "dependencies": { + "node-gyp-build-optional-packages": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.7.tgz", + "integrity": "sha512-YlCCc6Wffkx0kHkmam79GKvDQ6x+QZkMjFGrIMxgFNILFvGSbCp2fCBC55pGTT9gVaz8Na5CLmxt/urtzRv36w==", + "dev": true, + "optional": true + } + } + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node-addon-api": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", + "integrity": "sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==", + "dev": true + }, + "node-gyp-build-optional-packages": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.1.1.tgz", + "integrity": "sha512-+P72GAjVAbTxjjwUmwjVrqrdZROD4nf8KgpBoDxqXXTiYZZt/ud60dE5yvCSr9lRO8e8yv6kgJIC0K0PfZFVQw==", + "dev": true, + "requires": { + "detect-libc": "^2.0.1" + }, + "dependencies": { + "detect-libc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", + "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", + "dev": true + } + } + }, + "node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "npm-run-all": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", + "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "chalk": "^2.4.1", + "cross-spawn": "^6.0.5", + "memorystream": "^0.3.1", + "minimatch": "^3.0.4", + "pidtree": "^0.3.0", + "read-pkg": "^3.0.0", + "shell-quote": "^1.6.1", + "string.prototype.padend": "^3.0.0" + } + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "requires": { + "boolbase": "^1.0.0" + } + }, + "nullthrows": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", + "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", + "dev": true + }, + "object-inspect": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", + "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object-refs": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-refs/-/object-refs-0.4.0.tgz", + "integrity": "sha512-6kJqKWryKZmtte6QYvouas0/EIJKPI1/MMIuRsiBlNuhIMfqYTggzX2F1AJ2+cDs288xyi9GL7FyasHINR98BQ==" + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "open": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/open/-/open-8.2.1.tgz", + "integrity": "sha512-rXILpcQlkF/QuFez2BJDf3GsqpjGKbkUUToAIGo9A0Q6ZkoSGogZJulrUdwRkrAsoQvoZsrjCYt8+zblOk7JQQ==", + "dev": true, + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "open-cli": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/open-cli/-/open-cli-7.0.0.tgz", + "integrity": "sha512-VxL1HWSsufFSxdcOq5Ijkd1sjK7XnmCI1QF1bYk4va3JI2nl+wLTTgOZ4i1OyNljb9rLoqajtFNCl91DmiIkQw==", + "dev": true, + "requires": { + "file-type": "^16.5.0", + "get-stdin": "^9.0.0", + "meow": "^10.0.1", + "open": "^8.2.0", + "tempy": "^1.0.1" + } + }, + "opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==" + }, + "ordered-binary": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.5.1.tgz", + "integrity": "sha512-5VyHfHY3cd0iza71JepYG50My+YUbrFtGoUz2ooEydPyPM7Aai/JW098juLr+RG6+rDJuzNNTsEQu2DZa1A41A==", + "dev": true + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "requires": { + "p-limit": "^3.0.2" + } + }, + "p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "requires": { + "aggregate-error": "^3.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parcel": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/parcel/-/parcel-2.12.0.tgz", + "integrity": "sha512-W+gxAq7aQ9dJIg/XLKGcRT0cvnStFAQHPaI0pvD0U2l6IVLueUAm3nwN7lkY62zZNmlvNx6jNtE4wlbS+CyqSg==", + "dev": true, + "requires": { + "@parcel/config-default": "2.12.0", + "@parcel/core": "2.12.0", + "@parcel/diagnostic": "2.12.0", + "@parcel/events": "2.12.0", + "@parcel/fs": "2.12.0", + "@parcel/logger": "2.12.0", + "@parcel/package-manager": "2.12.0", + "@parcel/reporter-cli": "2.12.0", + "@parcel/reporter-dev-server": "2.12.0", + "@parcel/reporter-tracer": "2.12.0", + "@parcel/utils": "2.12.0", + "chalk": "^4.1.0", + "commander": "^7.0.0", + "get-port": "^4.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-intersection": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/path-intersection/-/path-intersection-3.1.0.tgz", + "integrity": "sha512-3xS3lvv/vuwm5aH2BVvNRvnvwR2Drde7jQClKpCXTYXIMMjcw/EnMhzCgeHwqbCpzi760PEfAkU53vSIlrNr9A==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "peek-readable": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-3.1.3.tgz", + "integrity": "sha512-mpAcysyRJxmICBcBa5IXH7SZPvWkcghm6Fk8RekoS3v+BpbSzlZzuWbMx+GXrlUwESi9qHar4nVEZNMKylIHvg==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "pidtree": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.0.tgz", + "integrity": "sha512-9CT4NFlDcosssyg8KVFltgokyKZIFjoBxw8CTGy+5F38Y1eQWrt8tRayiUOXE+zVKQnYu5BR8JjCtvK3BcnBhg==", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "posthtml": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.16.6.tgz", + "integrity": "sha512-JcEmHlyLK/o0uGAlj65vgg+7LIms0xKXe60lcDOTU7oVX/3LuEuLwrQpW3VJ7de5TaFKiW4kWkaIpJL42FEgxQ==", + "dev": true, + "requires": { + "posthtml-parser": "^0.11.0", + "posthtml-render": "^3.0.0" + }, + "dependencies": { + "posthtml-parser": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.11.0.tgz", + "integrity": "sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==", + "dev": true, + "requires": { + "htmlparser2": "^7.1.1" + } + } + } + }, + "posthtml-parser": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.10.2.tgz", + "integrity": "sha512-PId6zZ/2lyJi9LiKfe+i2xv57oEjJgWbsHGGANwos5AvdQp98i6AtamAl8gzSVFGfQ43Glb5D614cvZf012VKg==", + "dev": true, + "requires": { + "htmlparser2": "^7.1.1" + } + }, + "posthtml-render": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-3.0.0.tgz", + "integrity": "sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==", + "dev": true, + "requires": { + "is-json": "^2.0.1" + } + }, + "preact": { + "version": "10.22.1", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.22.1.tgz", + "integrity": "sha512-jRYbDDgMpIb5LHq3hkI0bbl+l/TQ9UnkdQ0ww+lp+4MMOdqaUYdFc5qeyP+IV8FAd/2Em7drVPeKdQxsiWCf/A==" + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, + "quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "raw-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.0.tgz", + "integrity": "sha512-iINUOYvl1cGEmfoaLjnZXt4bKfT2LJnZZib5N/LLyAphC+Dd11vNP9CNVb38j+SAJpFI1uo8j9frmih53ASy7Q==", + "dev": true, + "requires": { + "loader-utils": "^1.2.3", + "schema-utils": "^2.5.0" + } + }, + "react-error-overlay": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.9.tgz", + "integrity": "sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==", + "dev": true + }, + "react-refresh": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.9.0.tgz", + "integrity": "sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + } + }, + "read-pkg-up": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-8.0.0.tgz", + "integrity": "sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==", + "dev": true, + "requires": { + "find-up": "^5.0.0", + "read-pkg": "^6.0.0", + "type-fest": "^1.0.1" + }, + "dependencies": { + "hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "normalize-package-data": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.2.tgz", + "integrity": "sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "resolve": "^1.20.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "read-pkg": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-6.0.0.tgz", + "integrity": "sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^3.0.2", + "parse-json": "^5.2.0", + "type-fest": "^1.0.1" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readable-web-to-node-stream": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.1.tgz", + "integrity": "sha512-4zDC6CvjUyusN7V0QLsXVB7pJCD9+vtrM9bYDRv6uBQ+SKfx36rp5AFNPRgh9auKRul/a1iFZJYXcCbwRL+SaA==", + "dev": true, + "requires": { + "@types/readable-stream": "^2.3.9", + "readable-stream": "^3.6.0" + } + }, + "rechoir": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", + "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", + "dev": true, + "requires": { + "resolve": "^1.20.0" + } + }, + "redent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-4.0.0.tgz", + "integrity": "sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==", + "dev": true, + "requires": { + "indent-string": "^5.0.0", + "strip-indent": "^4.0.0" + } + }, + "regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "requires": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + }, + "saxen": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/saxen/-/saxen-8.1.2.tgz", + "integrity": "sha512-xUOiiFbc3Ow7p8KMxwsGICPx46ZQvy3+qfNVhrkwfz3Vvq45eGt98Ft5IQaA1R/7Tb5B5MKh9fUR9x3c3nDTxw==" + }, + "schema-utils": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.1.tgz", + "integrity": "sha512-0WXHDs1VDJyo+Zqs9TKLKyD/h7yDpHUhEFsM2CzkICFdoX1av+GBq/J2xRTFfsQO5kBfhZzANf2VcIm84jqDbg==", + "dev": true, + "requires": { + "ajv": "^6.10.2", + "ajv-keywords": "^3.4.1" + } + }, + "selection-ranges": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/selection-ranges/-/selection-ranges-3.0.3.tgz", + "integrity": "sha512-60Oqc07j16YCrp96uITgBFu7oT81JKMmL+cOOcxe3jvuGSiFSwsLpOSXNBAlITV9hGhEl1H6P/+g1bKnpfXoSw==", + "requires": { + "dom-iterator": "^1.0.0" + } + }, + "selection-update": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/selection-update/-/selection-update-0.1.2.tgz", + "integrity": "sha512-4jzoJNh7VT2s2tvm/kUSskSw7pD0BVcrrGccbfOMK+3AXLBPz6nIy1yo+pbXgvNoTNII96Pq92+sAY+rF0LUAA==" + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shell-quote": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz", + "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "optional": true, + "peer": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "dev": true + }, + "srcset": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/srcset/-/srcset-4.0.0.tgz", + "integrity": "sha512-wvLeHgcVHKO8Sc/H/5lkGreJQVeYMm9rlmt8PuR1xE31rIuXhuzznUUqAt8MqLhB3MqJdFzlNAfpcWnxiFUcPw==", + "dev": true + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string.prototype.padend": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.0.tgz", + "integrity": "sha512-3aIv8Ffdp8EZj8iLwREGpQaUZiPyrWrpzMBHvkiSW/bK/EGve9np07Vwy7IJ5waydpGXzQZu/F8Oze2/IWkBaA==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1" + } + }, + "string.prototype.trimleft": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", + "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, + "string.prototype.trimright": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", + "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz", + "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==", + "dev": true, + "requires": { + "min-indent": "^1.0.1" + } + }, + "strtok3": { + "version": "6.0.8", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.0.8.tgz", + "integrity": "sha512-QLgv+oiXwXgCgp2PdPPa+Jpp4D9imK9e/0BsyfeFMr6QL6wMVqoVn9+OXQ9I7MZbmUzN6lmitTJ09uwS2OmGcw==", + "dev": true, + "requires": { + "@tokenizer/token": "^0.1.1", + "@types/debug": "^4.1.5", + "peek-readable": "^3.1.3" + } + }, + "style-mod": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz", + "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==" + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "svgo": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.2.0.tgz", + "integrity": "sha512-4PP6CMW/V7l/GmKRKzsLR8xxjdHTV4IMvhTnpuHwwBazSIlw5W/5SmPjN8Dwyt7lKbSJrRDgp4t9ph0HgChFBQ==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^5.1.0", + "css-tree": "^2.3.1", + "css-what": "^6.1.0", + "csso": "^5.0.5", + "picocolors": "^1.0.0" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "optional": true, + "peer": true + } + } + }, + "table-js": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/table-js/-/table-js-9.1.0.tgz", + "integrity": "sha512-yxzIBXZe5pFHXBng8+Rz3dDGiO4anWptlWQXP4Pm1oIetgdG4nq+DkZkRG4Lq5L1HFu1OVif4h3YMI7rxudvPw==", + "requires": { + "didi": "^10.0.0", + "ids": "^1.0.0", + "min-dash": "^4.0.0", + "min-dom": "^4.0.3", + "selection-ranges": "^3.0.3" + } + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + }, + "temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "dev": true + }, + "tempy": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-1.0.1.tgz", + "integrity": "sha512-biM9brNqxSc04Ee71hzFbryD11nX7VPhQQY32AdDmjFvodsRFz/3ufeoTZ6uYkRFfGo188tENcASNs3vTdsM0w==", + "dev": true, + "requires": { + "del": "^6.0.0", + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "dependencies": { + "type-fest": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", + "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", + "dev": true + } + } + }, + "term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true + }, + "terser": { + "version": "5.29.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz", + "integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==", + "dev": true, + "requires": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + } + }, + "terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" + }, + "dependencies": { + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==", + "dev": true + }, + "tiny-svg": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/tiny-svg/-/tiny-svg-3.1.2.tgz", + "integrity": "sha512-qvNlv/4N48HqbNpwAhzQ9HKHlBUKgA4091x+aVfsrRXHIcQ9NA3W6ZYwdmYAIdwT+vfAAksrc9L/3RQBj5KwPw==" + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "token-types": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-2.1.1.tgz", + "integrity": "sha512-wnQcqlreS6VjthyHO3Y/kpK/emflxDBNhlNUPfh7wE39KnuDdOituXomIbyI79vBtF0Ninpkh72mcuRHo+RG3Q==", + "dev": true, + "requires": { + "@tokenizer/token": "^0.1.1", + "ieee754": "^1.2.1" + } + }, + "trim-newlines": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.0.2.tgz", + "integrity": "sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew==", + "dev": true + }, + "tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + }, + "type-fest": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.2.1.tgz", + "integrity": "sha512-SbmIRuXhJs8KTneu77Ecylt9zuqL683tuiLYpTRil4H++eIhqCmx6ko6KAFem9dty8sOdnEiX7j4K1nRE628fQ==", + "dev": true + }, + "unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "utility-types": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz", + "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==" + }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "weak-lru-cache": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz", + "integrity": "sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==", + "dev": true + }, + "webpack": { + "version": "5.90.3", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.3.tgz", + "integrity": "sha512-h6uDYlWCctQRuXBs1oYpVe6sFcWedl0dpcVaTf/YF67J9bKvwJajFulMVSYKHrksMB3I/pIagRzDxwxkebuzKA==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.21.10", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "webpack-cli": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.4.tgz", + "integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==", + "dev": true, + "requires": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^2.1.1", + "@webpack-cli/info": "^2.0.2", + "@webpack-cli/serve": "^2.0.5", + "colorette": "^2.0.14", + "commander": "^10.0.1", + "cross-spawn": "^7.0.3", + "envinfo": "^7.7.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^3.1.1", + "rechoir": "^0.8.0", + "webpack-merge": "^5.7.3" + }, + "dependencies": { + "commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + } + } +} diff --git a/bundling-modeler/package.json b/bundling-modeler/package.json new file mode 100644 index 0000000..faf56ac --- /dev/null +++ b/bundling-modeler/package.json @@ -0,0 +1,43 @@ +{ + "name": "dmn-js-example-bundling-modeler", + "version": "0.0.0", + "description": "An example how to use dmn-js modeler with npm + webpack", + "scripts": { + "all": "run-s bundle open", + "bundle": "webpack", + "bundle:watch": "webpack -w", + "open": "open-cli ./public/index.html", + "dev": "npm run bundle:watch" + }, + "repository": { + "type": "git", + "url": "https://github.com/bpmn-io/dmn-js-examples" + }, + "keywords": [ + "dmn-js-example" + ], + "author": { + "name": "Maciej Barelkowski", + "url": "https://github.com/barmac" + }, + "contributors": [ + { + "name": "bpmn.io contributors", + "url": "https://github.com/bpmn-io" + } + ], + "license": "MIT", + "devDependencies": { + "@parcel/transformer-inline-string": "^2.12.0", + "npm-run-all": "^4.1.5", + "open-cli": "^7.0.0", + "parcel": "^2.12.0", + "process": "^0.11.10", + "raw-loader": "^4.0.0", + "webpack": "^5.90.3", + "webpack-cli": "^5.1.4" + }, + "dependencies": { + "dmn-js": "^16.6.1" + } +} diff --git a/bundling-modeler/public/app.bundled.js b/bundling-modeler/public/app.bundled.js new file mode 100644 index 0000000..d6532b3 --- /dev/null +++ b/bundling-modeler/public/app.bundled.js @@ -0,0 +1,6742 @@ +/* + * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). + * This devtool is neither made for production nor for readable output files. + * It uses "eval()" calls to create a separate source file in the browser devtools. + * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) + * or disable the default devtool with "devtool: false". + * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). + */ +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ "./node_modules/@bpmn-io/dmn-variable-resolver/lib/DmnVariableProvider.js": +/*!********************************************************************************!*\ + !*** ./node_modules/@bpmn-io/dmn-variable-resolver/lib/DmnVariableProvider.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DmnVariableProvider: () => (/* binding */ DmnVariableProvider)\n/* harmony export */ });\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/core.js\");\n\n\nclass DmnVariableProvider {\n\n /**\n * @param {import('./VariableResolver').VariableResolver} variableResolver\n */\n constructor(variableResolver) {\n variableResolver.registerProvider(this);\n }\n\n getVariables(variables, element) {\n return variables.concat((0,_core__WEBPACK_IMPORTED_MODULE_0__.resolveVariables)(element));\n }\n}\n\nDmnVariableProvider.$inject = [ 'variableResolver' ];\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@bpmn-io/dmn-variable-resolver/lib/DmnVariableProvider.js?"); + +/***/ }), + +/***/ "./node_modules/@bpmn-io/dmn-variable-resolver/lib/VariableResolver.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/@bpmn-io/dmn-variable-resolver/lib/VariableResolver.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ VariableResolver: () => (/* binding */ VariableResolver)\n/* harmony export */ });\n/**\n * @typedef {import('@bpmn-io/feel-editor').Variable} Variable\n*/\n\n/**\n * @typedef VariableProvider\n * @property {(variables: Variable[], element) => Variable[]} getVariables\n */\n\nclass VariableResolver {\n constructor() {\n this._providers = [];\n }\n\n /**\n * @param {VariableProvider} provider\n */\n registerProvider(provider) {\n this._providers.push(provider);\n }\n\n getVariables(element) {\n return this._providers.reduce(\n (variables, provider) => provider.getVariables(variables, element), []\n );\n }\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@bpmn-io/dmn-variable-resolver/lib/VariableResolver.js?"); + +/***/ }), + +/***/ "./node_modules/@bpmn-io/dmn-variable-resolver/lib/core.js": +/*!*****************************************************************!*\ + !*** ./node_modules/@bpmn-io/dmn-variable-resolver/lib/core.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ resolveVariables: () => (/* binding */ resolveVariables)\n/* harmony export */ });\n/** @typedef {import('./VariableResolver').Variable} Variable */\n\n/**\n * @typedef Context\n * @property {Variable[]} variables\n * @property {*} rootElement\n */\n\n/**\n * Resolve variables available to a DMN element.\n * @param {*} moddleElement\n * @returns {Variable[]}\n */\nfunction resolveVariables(moddleElement) {\n const context = {\n variables: [],\n rootElement: getRootElement(moddleElement)\n };\n\n for (let current = moddleElement; current; current = current.$parent) {\n handle(current, context);\n }\n\n return context.variables;\n}\n\nfunction handle(element, context) {\n if (is(element, 'dmn:Decision')) {\n handleDecision(element, context);\n } else if (is(element, 'dmn:BusinessKnowledgeModel')) {\n handleBusinessKnowledgeModel(element, context);\n } else if (is(element, 'dmn:Expression')) {\n handleExpression(element, context);\n }\n}\n\nfunction handleDecision(decision, context) {\n for (const informationRequirement of decision.get('informationRequirement')) {\n handleInformationRequirement(informationRequirement, context);\n }\n\n for (const knowledgeRequirement of decision.get('knowledgeRequirement')) {\n handleKnowledgeRequirement(knowledgeRequirement, context);\n }\n}\n\nfunction handleBusinessKnowledgeModel(bkm, context) {\n for (const knowledgeRequirement of bkm.get('knowledgeRequirement')) {\n handleKnowledgeRequirement(knowledgeRequirement, context);\n }\n}\n\nfunction handleInformationRequirement(informationRequirement, context) {\n const requiredInput = informationRequirement.get('requiredInput');\n if (requiredInput) {\n handleRequiredInput(requiredInput, context);\n }\n\n const requiredDecision = informationRequirement.get('requiredDecision');\n if (requiredDecision) {\n handleRequiredDecision(requiredDecision, context);\n }\n}\n\nfunction handleRequiredInput(reference, context) {\n const input = getReferencedElement(reference, context.rootElement);\n\n if (!input) {\n return;\n }\n\n const name = input.get('name');\n\n // prevent invalid variables in suggestions\n if (!name) {\n return;\n }\n\n context.variables.push({\n name,\n origin: input\n });\n}\n\nfunction handleRequiredDecision(reference, context) {\n const decision = getReferencedElement(reference, context.rootElement);\n\n if (!decision) {\n return;\n }\n\n const name = decision.get('name');\n\n // prevent invalid variables in suggestions\n if (!name) {\n return;\n }\n\n /** @type Variable */\n const variable = {\n name,\n origin: decision\n };\n\n const decisionLogic = decision.get('decisionLogic');\n\n if (decisionLogic) {\n handleDecisionLogic(decisionLogic, variable, context);\n }\n\n context.variables.push(variable);\n}\n\n/**\n *\n * @param {*} decisionLogic\n * @param {Variable} currentVariable\n * @param {Context} context\n */\nfunction handleDecisionLogic(decisionLogic, currentVariable, context) {\n if (is(decisionLogic, 'dmn:DecisionTable')) {\n const outputs = decisionLogic.get('output');\n\n handleOutputs(outputs, currentVariable, context);\n }\n}\n\n/**\n *\n * @param {Array} outputs\n * @param {Variable} currentVariable\n * @param {Context} context\n */\nfunction handleOutputs(outputs, currentVariable, context) {\n\n // for single output name is ignored\n if (outputs.length === 1) {\n const outputVariable = { ...handleOutput(outputs[0]), name: currentVariable.name };\n Object.assign(currentVariable, outputVariable);\n return;\n }\n\n // in type it's schema but it's not handled in feel editor\n const outputsVariables = outputs.map(handleOutput);\n\n currentVariable.entries = outputsVariables.filter(variable => !!variable.name);\n}\n\nfunction handleOutput(output) {\n\n // unnamed output is OK for a single-output table\n const variable = {\n name: output.name\n };\n\n if (output.typeRef) {\n variable.detail = output.typeRef;\n }\n\n return variable;\n}\n\nfunction handleKnowledgeRequirement(knowledgeRequirement, context) {\n const requiredKnowledge = knowledgeRequirement.get('requiredKnowledge');\n\n if (requiredKnowledge) {\n handleRequiredKnowledge(requiredKnowledge, context);\n }\n}\n\nfunction handleRequiredKnowledge(reference, context) {\n const invocable = getReferencedElement(reference, context.rootElement);\n\n if (!invocable) {\n return;\n }\n\n if (is(invocable, 'dmn:BusinessKnowledgeModel')) {\n handleRequiredBusinessKnowledgeModel(invocable, context);\n }\n}\n\nfunction handleRequiredBusinessKnowledgeModel(bkm, context) {\n const name = bkm.get('name');\n\n // prevent invalid variables in suggestions\n if (!name) {\n return;\n }\n\n /** @type Variable */\n const variable = {\n name,\n origin: bkm\n };\n\n const encapsulatedLogic = bkm.get('encapsulatedLogic');\n if (encapsulatedLogic) {\n handleEncapsulatedLogic(encapsulatedLogic, variable);\n }\n\n context.variables.push(variable);\n}\n\nfunction handleEncapsulatedLogic(encapsulatedLogic, currentVariable, context) {\n const formalParameters = encapsulatedLogic.get('formalParameter');\n const params = formalParameters.map((parameter, index) => {\n const param = {\n name: parameter.get('name') || `param ${index + 1}`,\n type: parameter.get('typeRef')\n };\n\n if (!param.type) {\n delete param.type;\n }\n\n return param;\n });\n\n Object.assign(currentVariable, {\n type: 'function',\n params\n });\n}\n\nfunction handleExpression(expression, context) {\n if (is(expression, 'dmn:FunctionDefinition')) {\n handleFunctionDefinition(expression, context);\n }\n}\n\nfunction handleFunctionDefinition(functionDefinition, context) {\n const parameters = functionDefinition.get('formalParameter');\n\n for (const parameter of parameters) {\n handleFormalParameter(parameter, context);\n }\n}\n\nfunction handleFormalParameter(parameter, context) {\n const name = parameter.get('name');\n\n // prevent invalid variables in suggestions\n if (!name) {\n return;\n }\n\n /** @type Variable */\n const variable = {\n name,\n origin: parameter\n };\n\n if (parameter.get('typeRef')) {\n variable.detail = parameter.get('typeRef');\n }\n\n context.variables.push(variable);\n}\n\n\n// helpers //////////////////////\nfunction getRootElement(element) {\n let rootElement = element;\n\n while (rootElement.$parent) {\n rootElement = rootElement.$parent;\n }\n\n return rootElement;\n}\n\nfunction getReferencedElement(reference, rootElement) {\n const href = reference.get('href');\n\n if (!href || !href.startsWith('#')) {\n return;\n }\n\n const id = href.slice(1);\n const drgElements = rootElement.get('drgElement');\n\n return drgElements.find(drgElement => drgElement.get('id') === id);\n}\n\nfunction is(moddleElement, type) {\n return moddleElement.$instanceOf(type);\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@bpmn-io/dmn-variable-resolver/lib/core.js?"); + +/***/ }), + +/***/ "./node_modules/@bpmn-io/dmn-variable-resolver/lib/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/@bpmn-io/dmn-variable-resolver/lib/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DmnVariableResolverModule: () => (/* binding */ DmnVariableResolverModule),\n/* harmony export */ resolveVariables: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_2__.resolveVariables)\n/* harmony export */ });\n/* harmony import */ var _DmnVariableProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DmnVariableProvider */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/DmnVariableProvider.js\");\n/* harmony import */ var _VariableResolver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VariableResolver */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/VariableResolver.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/core.js\");\n\n\n\n\n\nconst DmnVariableResolverModule = {\n __init__: [ 'dmnVariableProvider' ],\n dmnVariableProvider: [ 'type', _DmnVariableProvider__WEBPACK_IMPORTED_MODULE_0__.DmnVariableProvider ],\n variableResolver: [ 'type', _VariableResolver__WEBPACK_IMPORTED_MODULE_1__.VariableResolver ]\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@bpmn-io/dmn-variable-resolver/lib/index.js?"); + +/***/ }), + +/***/ "./node_modules/@bpmn-io/feel-editor/dist/index.es.js": +/*!************************************************************!*\ + !*** ./node_modules/@bpmn-io/feel-editor/dist/index.es.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ FeelEditor)\n/* harmony export */ });\n/* harmony import */ var _codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @codemirror/autocomplete */ \"./node_modules/@codemirror/autocomplete/dist/index.js\");\n/* harmony import */ var _codemirror_commands__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @codemirror/commands */ \"./node_modules/@codemirror/commands/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n/* harmony import */ var _codemirror_lint__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/lint */ \"./node_modules/@codemirror/lint/dist/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _bpmn_io_feel_lint__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bpmn-io/feel-lint */ \"./node_modules/@bpmn-io/feel-lint/dist/index.esm.js\");\n/* harmony import */ var _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @lezer/highlight */ \"./node_modules/@lezer/highlight/dist/index.js\");\n/* harmony import */ var lang_feel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lang-feel */ \"./node_modules/lang-feel/dist/index.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar linter = [ (0,_codemirror_lint__WEBPACK_IMPORTED_MODULE_2__.linter)((0,_bpmn_io_feel_lint__WEBPACK_IMPORTED_MODULE_0__.cmFeelLinter)()) ];\n\nconst baseTheme = _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.theme({\n '& .cm-content': {\n padding: '0px',\n },\n '& .cm-line': {\n padding: '0px',\n },\n '&.cm-editor.cm-focused': {\n outline: 'none',\n },\n '& .cm-completionInfo': {\n whiteSpace: 'pre-wrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n\n // Don't wrap whitespace for custom HTML\n '& .cm-completionInfo > *': {\n whiteSpace: 'normal'\n },\n '& .cm-completionInfo ul': {\n margin: 0,\n paddingLeft: '15px'\n },\n '& .cm-completionInfo pre': {\n marginBottom: 0,\n whiteSpace: 'pre-wrap'\n },\n '& .cm-completionInfo p': {\n marginTop: 0,\n },\n '& .cm-completionInfo p:not(:last-of-type)': {\n marginBottom: 0,\n }\n});\n\nconst highlightTheme = _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.baseTheme({\n '& .variableName': {\n color: '#10f'\n },\n '& .number': {\n color: '#164'\n },\n '& .string': {\n color: '#a11'\n },\n '& .bool': {\n color: '#219'\n },\n '& .function': {\n color: '#aa3731',\n fontWeight: 'bold'\n },\n '& .control': {\n color: '#708'\n }\n});\n\nconst syntaxClasses = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_4__.syntaxHighlighting)(\n _codemirror_language__WEBPACK_IMPORTED_MODULE_4__.HighlightStyle.define([\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName, class: 'variableName' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.name, class: 'variableName' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.number, class: 'number' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string, class: 'string' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bool, class: 'bool' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.function(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName), class: 'function' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.function(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName)), class: 'function' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.controlKeyword, class: 'control' },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.operatorKeyword, class: 'control' }\n ])\n);\n\nvar theme = [ baseTheme, highlightTheme, syntaxClasses ];\n\n// helpers ///////////////////////////////\n\nfunction _isEmpty(node) {\n return node && node.from === node.to;\n}\n\n/**\n * @param {any} node\n * @param {number} pos\n *\n * @return {boolean}\n */\nfunction isEmpty(node, pos) {\n\n // For the special case of empty nodes, we need to check the current node\n // as well. The previous node could be part of another token, e.g.\n // when typing functions \"abs(\".\n const nextNode = node.nextSibling;\n\n return _isEmpty(node) || (\n nextNode && nextNode.from === pos && _isEmpty(nextNode)\n );\n}\n\nfunction isVariableName(node) {\n return node && node.parent && node.parent.name === 'VariableName';\n}\n\nfunction isPathExpression(node) {\n if (!node) {\n return false;\n }\n\n if (node.name === 'PathExpression') {\n return true;\n }\n\n return isPathExpression(node.parent);\n}\n\n/**\n * @typedef { import('../core').Variable } Variable\n * @typedef { import('@codemirror/autocomplete').CompletionSource } CompletionSource\n */\n\n/**\n * @param { {\n * variables?: Variable[],\n * } } options\n *\n * @return { CompletionSource }\n */\nfunction pathExpressionCompletion({ variables }) {\n\n return (context) => {\n\n const nodeBefore = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_4__.syntaxTree)(context.state).resolve(context.pos, -1);\n\n if (!isPathExpression(nodeBefore)) {\n return;\n }\n\n const expression = findPathExpression(nodeBefore);\n\n // if the cursor is directly after the `.`, variable starts at the cursor position\n const from = nodeBefore === expression ? context.pos : nodeBefore.from;\n\n const path = getPath(expression, context);\n\n let options = variables;\n for (var i = 0; i < path.length - 1; i++) {\n var childVar = options.find(val => val.name === path[i].name);\n\n if (!childVar) {\n return null;\n }\n\n // only suggest if variable type matches\n if (\n childVar.isList !== 'optional' &&\n !!childVar.isList !== path[i].isList\n ) {\n return;\n }\n\n options = childVar.entries;\n }\n\n if (!options) return;\n\n options = options.map(v => ({\n label: v.name,\n type: 'variable',\n info: v.info,\n detail: v.detail\n }));\n\n const result = {\n from: from,\n options: options\n };\n\n return result;\n };\n}\n\n\nfunction findPathExpression(node) {\n while (node) {\n if (node.name === 'PathExpression') {\n return node;\n }\n node = node.parent;\n }\n}\n\n// parses the path expression into a list of variable names with type information\n// e.g. foo[0].bar => [ { name: 'foo', isList: true }, { name: 'bar', isList: false } ]\nfunction getPath(node, context) {\n let path = [];\n\n for (let child = node.firstChild; child; child = child.nextSibling) {\n if (child.name === 'PathExpression') {\n path.push(...getPath(child, context));\n } else if (child.name === 'FilterExpression') {\n path.push(...getFilter(child, context));\n }\n else {\n path.push({\n name: getNodeContent(child, context),\n isList: false\n });\n }\n }\n return path;\n}\n\nfunction getFilter(node, context) {\n const list = node.firstChild;\n\n if (list.name === 'PathExpression') {\n const path = getPath(list, context);\n const last = path[path.length - 1];\n last.isList = true;\n\n return path;\n }\n\n return [ {\n name: getNodeContent(list, context),\n isList: true\n } ];\n}\n\nfunction getNodeContent(node, context) {\n return context.state.sliceDoc(node.from, node.to);\n}\n\n/**\n * @typedef { import('../core').Variable } Variable\n * @typedef { import('@codemirror/autocomplete').CompletionSource } CompletionSource\n */\n\n/**\n * @param { {\n * variables?: Variable[],\n * builtins?: Variable[]\n * } } options\n *\n * @return { CompletionSource }\n */\nfunction variableCompletion({ variables = [], builtins = [] }) {\n\n const options = getVariableSuggestions(variables, builtins);\n\n if (!options.length) {\n return (context) => null;\n }\n\n return (context) => {\n\n const {\n pos,\n state\n } = context;\n\n // in most cases, use what is typed before the cursor\n const nodeBefore = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_4__.syntaxTree)(state).resolve(pos, -1);\n\n if (isEmpty(nodeBefore, pos)) {\n return context.explicit ? {\n from: pos,\n options\n } : null;\n }\n\n // only auto-complete variables\n if (!isVariableName(nodeBefore) || isPathExpression(nodeBefore)) {\n return null;\n }\n\n return {\n from: nodeBefore.from,\n options\n };\n };\n}\n\n/**\n * @param { Variable[] } variables\n * @param { Variable[] } builtins\n *\n * @returns {import('@codemirror/autocomplete').Completion[]}\n */\nfunction getVariableSuggestions(variables, builtins) {\n return [].concat(\n variables.map(v => createVariableSuggestion(v)),\n builtins.map(b => createVariableSuggestion(b))\n );\n}\n\n/**\n * @param {import('..').Variable} variable\n * @param {number} boost\n\n * @returns {import('@codemirror/autocomplete').Completion}\n */\nfunction createVariableSuggestion(variable, boost) {\n if (variable.type === 'function') {\n return createFunctionVariable(variable, boost);\n }\n\n return {\n label: variable.name,\n type: 'variable',\n info: variable.info,\n detail: variable.detail,\n boost\n };\n}\n\n/**\n * @param {import('..').Variable} variable\n * @param {number} boost\n *\n * @returns {import('@codemirror/autocomplete').Completion}\n */\nfunction createFunctionVariable(variable, boost) {\n const {\n name,\n info,\n detail,\n params = []\n } = variable;\n\n const paramsWithNames = params.map(({ name, type }, index) => ({\n name: name || `param ${index + 1}`,\n type\n }));\n\n const template = `${name}(${paramsWithNames.map(p => '${' + p.name + '}').join(', ')})`;\n\n const paramsSignature = paramsWithNames.map(({ name, type }) => (\n type ? `${name}: ${type}` : name\n )).join(', ');\n const label = `${name}(${paramsSignature})`;\n\n return (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_5__.snippetCompletion)(template, {\n label,\n type: 'function',\n info,\n detail,\n boost\n });\n}\n\n/**\n * @typedef { import('../core').Variable } Variable\n * @typedef { import('@codemirror/autocomplete').CompletionSource } CompletionSource\n */\n\n/**\n * @param { {\n * variables?: Variable[],\n * builtins?: Variable[]\n * } } options\n *\n * @return { CompletionSource[] }\n */\nfunction completions({ variables = [], builtins = [] }) {\n\n return [\n pathExpressionCompletion({ variables }),\n variableCompletion({ variables, builtins }),\n (0,lang_feel__WEBPACK_IMPORTED_MODULE_6__.snippetCompletion)(lang_feel__WEBPACK_IMPORTED_MODULE_6__.snippets.map(snippet => ({ ...snippet, boost: -1 }))),\n ...lang_feel__WEBPACK_IMPORTED_MODULE_6__.keywordCompletions\n ];\n}\n\n/**\n * @typedef { 'expression' | 'unaryTests' } Dialect\n */\n\n/**\n * @param { {\n * dialect?: Dialect,\n * context?: Record,\n * completions?: import('@codemirror/autocomplete').CompletionSource[]\n * } } options\n *\n * @return { import('@codemirror/language').LanguageSupport }\n */\nfunction language(options) {\n return (0,lang_feel__WEBPACK_IMPORTED_MODULE_6__.feel)(options);\n}\n\n/**\n * @param { import('../core').Variable[] } variables\n *\n * @return {Record}\n */\nfunction createContext(variables, builtins) {\n return variables.slice().reverse().reduce((context, builtin) => {\n context[builtin.name] = () => {};\n\n return context;\n }, {});\n}\n\n/**\n * @typedef { 'expression' | 'unaryTests' } Dialect\n * @typedef { import('..').Variable } Variable\n */\n\n/**\n * @type {Facet}\n */\nconst builtinsFacet = _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Facet.define();\n\n/**\n * @type {Facet}\n */\nconst variablesFacet = _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Facet.define();\n\n/**\n * @type {Facet}\n */\nconst dialectFacet = _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Facet.define();\n\n/**\n * @typedef {object} Variable\n * @property {string} name name or key of the variable\n * @property {string} [info] short information about the variable, e.g. type\n * @property {string} [detail] longer description of the variable content\n * @property {boolean} [isList] whether the variable is a list\n * @property {Array} [schema] array of child variables if the variable is a context or list\n * @property {'function'|'variable'} [type] type of the variable\n * @property {Array<{name: string, type: string}>} [params] function parameters\n */\n\n/**\n * @typedef { {\n * dialect?: import('../language').Dialect,\n * variables?: Variable[],\n * builtins?: Variable[]\n * } } CoreConfig\n *\n * @typedef { import('@codemirror/autocomplete').CompletionSource } CompletionSource\n * @typedef { import('@codemirror/state').Extension } Extension\n */\n\n/**\n * @param { CoreConfig & { completions?: CompletionSource[] } } config\n *\n * @return { Extension }\n */\nfunction configure({\n dialect = 'expression',\n variables = [],\n builtins = [],\n completions: completions$1 = completions({ builtins, variables })\n}) {\n\n const context = createContext([ ...variables, ...builtins ]);\n\n return [\n dialectFacet.of(dialect),\n builtinsFacet.of(builtins),\n variablesFacet.of(variables),\n language({\n dialect,\n context,\n completions: completions$1\n })\n ];\n}\n\n/**\n * @param {import('@codemirror/state').EditorState } state\n *\n * @return { CoreConfig }\n */\nfunction get(state) {\n\n const builtins = state.facet(builtinsFacet)[0];\n const variables = state.facet(variablesFacet)[0];\n const dialect = state.facet(dialectFacet)[0];\n\n return {\n builtins,\n variables,\n dialect\n };\n}\n\nvar camundaTags = [\n\t{\n\t\tname: \"not(negand)\",\n\t\tdescription: \"

Returns the logical negation of the given value.

\\n

Function signature

\\n
not(negand: boolean): boolean\\n
\\n

Examples

\\n
not(true)\\n// false\\n\\nnot(null)\\n// null\\n
\\n\"\n\t},\n\t{\n\t\tname: \"is defined(value)\",\n\t\tdescription: \"

Camunda Extension

\\n

Checks if a given value is not null. If the value is null then the function returns false.\\nOtherwise, the function returns true.

\\n

Function signature

\\n
is defined(value: Any): boolean\\n
\\n

Examples

\\n
is defined(1)\\n// true\\n\\nis defined(null)\\n// false\\n\\nis defined(x)\\n// false - if no variable "x" exists\\n\\nis defined(x.y)\\n// false - if no variable "x" exists or it doesn't have a property "y"\\n
\\n

:::caution Breaking change

\\n

This function worked differently in previous versions. It returned true if the value was null.\\nSince this version, the function returns false if the value is null.

\\n

:::

\\n\"\n\t},\n\t{\n\t\tname: \"get or else(value, default)\",\n\t\tdescription: \"

Camunda Extension

\\n

Return the provided value parameter if not null, otherwise return the default parameter

\\n

Function signature

\\n
get or else(value: Any, default: Any): Any\\n
\\n

Examples

\\n
get or else("this", "default")\\n// "this"\\n\\nget or else(null, "default")\\n// "default"\\n\\nget or else(null, null)\\n// null\\n
\\n\"\n\t},\n\t{\n\t\tname: \"assert(value, condition)\",\n\t\tdescription: \"

Camunda Extension

\\n

Verify that the given condition is met. If the condition is true, the function returns the value.\\nOtherwise, the evaluation fails with an error.

\\n

Function signature

\\n
assert(value: Any, condition: Any)\\n
\\n

Examples

\\n
assert(x, x != null)\\n// "value" - if x is "value"\\n// error - if x is null or doesn't exist\\n\\nassert(x, x >= 0)\\n// 4 - if x is 4\\n// error - if x is less than zero\\n
\\n\"\n\t},\n\t{\n\t\tname: \"assert(value, condition, cause)\",\n\t\tdescription: \"

Camunda Extension

\\n

Verify that the given condition is met. If the condition is true, the function returns the value.\\nOtherwise, the evaluation fails with an error containing the given message.

\\n

Function signature

\\n
assert(value: Any, condition: Any, cause: String)\\n
\\n

Examples

\\n
assert(x, x != null, "'x' should not be null")\\n// "value" - if x is "value"\\n// error('x' should not be null) - if x is null or doesn't exist\\n\\nassert(x, x >= 0, "'x' should be positive")\\n// 4 - if x is 4\\n// error('x' should be positive) - if x is less than zero\\n
\\n\"\n\t},\n\t{\n\t\tname: \"get value(context, key)\",\n\t\tdescription: \"

Returns the value of the context entry with the given key.

\\n

Function signature

\\n
get value(context: context, key: string): Any\\n
\\n

Examples

\\n
get value({foo: 123}, "foo")\\n// 123\\n\\nget value({a: 1}, "b")\\n// null\\n
\\n\"\n\t},\n\t{\n\t\tname: \"get value(context, keys)\",\n\t\tdescription: \"

Camunda Extension

\\n

Returns the value of the context entry for a context path defined by the given keys.

\\n

If keys contains the keys [k1, k2] then it returns the value at the nested entry k1.k2 of the context.

\\n

If keys are empty or the nested entry defined by the keys doesn't exist in the context, it returns null.

\\n

Function signature

\\n
get value(context: context, keys: list<string>): Any\\n
\\n

Examples

\\n
get value({x:1, y: {z:0}}, ["y", "z"])\\n// 0\\n\\nget value({x: {y: {z:0}}}, ["x", "y"])\\n// {z:0}\\n\\nget value({a: {b: 3}}, ["b"])\\n// null\\n
\\n\"\n\t},\n\t{\n\t\tname: \"get entries(context)\",\n\t\tdescription: \"

Returns the entries of the context as a list of key-value-pairs.

\\n

Function signature

\\n
get entries(context: context): list<context>\\n
\\n

The return value is a list of contexts. Each context contains two entries for "key" and "value".

\\n

Examples

\\n
get entries({foo: 123})\\n// [{key: "foo", value: 123}]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"context put(context, key, value)\",\n\t\tdescription: \"

Adds a new entry with the given key and value to the context. Returns a new context that includes the entry.

\\n

If an entry for the same key already exists in the context, it overrides the value.

\\n

Function signature

\\n
context put(context: context, key: string, value: Any): context\\n
\\n

Examples

\\n
context put({x:1}, "y", 2)\\n// {x:1, y:2}\\n
\\n

:::info\\nThe function context put() replaced the previous function put() (Camunda Extension). The\\nprevious function is deprecated and should not be used anymore.\\n:::

\\n\"\n\t},\n\t{\n\t\tname: \"context put(context, keys, value)\",\n\t\tdescription: \"

Adds a new entry with the given value to the context. The path of the entry is defined by the keys. Returns a new context that includes the entry.

\\n

If keys contains the keys [k1, k2] then it adds the nested entry k1.k2 = value to the context.

\\n

If an entry for the same keys already exists in the context, it overrides the value.

\\n

If keys are empty, it returns null.

\\n

Function signature

\\n
context put(context: context, keys: list<string>, value: Any): context\\n
\\n

Examples

\\n
context put({x:1}, ["y"], 2)\\n// {x:1, y:2}\\n\\ncontext put({x:1, y: {z:0}}, ["y", "z"], 2)\\n// {x:1, y: {z:2}}\\n\\ncontext put({x:1}, ["y", "z"], 2)\\n// {x:1, y: {z:2}}\\n
\\n\"\n\t},\n\t{\n\t\tname: \"context merge(contexts)\",\n\t\tdescription: \"

Union the given contexts. Returns a new context that includes all entries of the given contexts.

\\n

If an entry for the same key already exists in a context, it overrides the value. The entries are overridden in the same order as in the list of contexts.

\\n

Function signature

\\n
context merge(contexts: list<context>): context\\n
\\n

Examples

\\n
context merge([{x:1}, {y:2}])\\n// {x:1, y:2}\\n\\ncontext merge([{x:1, y: 0}, {y:2}])\\n// {x:1, y:2}\\n
\\n

:::info\\nThe function context merge() replaced the previous function put all() (Camunda Extension). The\\nprevious function is deprecated and should not be used anymore.\\n:::

\\n\"\n\t},\n\t{\n\t\tname: \"string(from)\",\n\t\tdescription: \"

Returns the given value as a string representation.

\\n

Function signature

\\n
string(from: Any): string\\n
\\n

Examples

\\n
string(1.1)\\n// "1.1"\\n\\nstring(date("2012-12-25"))\\n// "2012-12-25"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"number(from)\",\n\t\tdescription: \"

Parses the given string to a number.

\\n

Function signature

\\n
number(from: string): number\\n
\\n

Examples

\\n
number("1500.5")\\n// 1500.5\\n
\\n\"\n\t},\n\t{\n\t\tname: \"context(entries)\",\n\t\tdescription: \"

Constructs a context of the given list of key-value pairs. It is the reverse function to get entries().

\\n

Each key-value pair must be a context with two entries: key and value. The entry with name key must have a value of the type string.

\\n

It might override context entries if the keys are equal. The entries are overridden in the same order as the contexts in the given list.

\\n

Returns null if one of the entries is not a context or if a context doesn't contain the required entries.

\\n

Function signature

\\n
context(entries: list<context>): context\\n
\\n

Examples

\\n
context([{"key":"a", "value":1}, {"key":"b", "value":2}])\\n// {a:1, b:2}\\n
\\n\"\n\t},\n\t{\n\t\tname: \"date(from)\",\n\t\tdescription: \"

Returns a date from the given value.

\\n

Function signature

\\n
date(from: string): date\\n
\\n

Parses the given string into a date.

\\n
date(from: date and time): date\\n
\\n

Extracts the date component from the given date and time.

\\n

Examples

\\n
date("2018-04-29")\\n// date("2018-04-29")\\n\\ndate(date and time("2012-12-25T11:00:00"))\\n// date("2012-12-25")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"date(year, month, day)\",\n\t\tdescription: \"

Returns a date from the given components.

\\n

Function signature

\\n
date(year: number, month: number, day: number): date\\n
\\n

Examples

\\n
date(2012, 12, 25)\\n// date("2012-12-25")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"time(from)\",\n\t\tdescription: \"

Returns a time from the given value.

\\n

Function signature

\\n
time(from: string): time\\n
\\n

Parses the given string into a time.

\\n
time(from: date and time): time\\n
\\n

Extracts the time component from the given date and time.

\\n

Examples

\\n
time("12:00:00")\\n// time("12:00:00")\\n\\ntime(date and time("2012-12-25T11:00:00"))\\n// time("11:00:00")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"time(hour, minute, second)\",\n\t\tdescription: \"

Returns a time from the given components.

\\n

Function signature

\\n
time(hour: number, minute: number, second: number): time\\n
\\n

Examples

\\n
time(23, 59, 0)\\n// time("23:59:00")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"time(hour, minute, second, offset)\",\n\t\tdescription: \"

Returns a time from the given components, including a timezone offset.

\\n

Function signature

\\n
time(hour: number, minute: number, second: number, offset: days and time duration): time\\n
\\n

Examples

\\n
time(14, 30, 0, duration("PT1H"))\\n// time("14:30:00+01:00")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"date and time(from)\",\n\t\tdescription: \"

Parses the given string into a date and time.

\\n

Function signature

\\n
date and time(from: string): date and time\\n
\\n

Examples

\\n
date and time("2018-04-29T09:30:00")\\n// date and time("2018-04-29T09:30:00")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"date and time(date, time)\",\n\t\tdescription: \"

Returns a date and time from the given components.

\\n

Function signature

\\n
date and time(date: date, time: time): date and time\\n
\\n
date and time(date: date and time, time: time): date and time\\n
\\n

Returns a date and time value that consists of the date component of date combined with time.

\\n

Examples

\\n
date and time(date("2012-12-24"),time("T23:59:00"))\\n// date and time("2012-12-24T23:59:00")\\n\\ndate and time(date and time("2012-12-25T11:00:00"),time("T23:59:00"))\\n// date and time("2012-12-25T23:59:00")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"date and time(date, timezone)\",\n\t\tdescription: \"

Camunda Extension

\\n

Returns the given date and time value at the given timezone.

\\n

If date has a different timezone than timezone then it adjusts the time to match the local time of timezone.

\\n

Function signature

\\n
date and time(date: date and time, timezone: string): date and time\\n
\\n

Examples

\\n
date and time(@"2020-07-31T14:27:30@Europe/Berlin", "America/Los_Angeles")\\n// date and time("2020-07-31T05:27:30@America/Los_Angeles")\\n\\ndate and time(@"2020-07-31T14:27:30", "Z")\\n// date and time("2020-07-31T12:27:30Z")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"duration(from)\",\n\t\tdescription: \"

Parses the given string into a duration. The duration is either a days and time duration or a years and months duration.

\\n

Function signature

\\n
duration(from: string): days and time duration\\n
\\n
duration(from: string): years and months duration\\n
\\n

Examples

\\n
duration("P5D")\\n// duration("P5D")\\n\\nduration("P32Y")\\n// duration("P32Y")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"years and months duration(from, to)\",\n\t\tdescription: \"

Returns the years and months duration between from and to.

\\n

Function signature

\\n
years and months duration(from: date, to: date): years and months duration\\n
\\n

Examples

\\n
years and months duration(date("2011-12-22"), date("2013-08-24"))\\n// duration("P1Y8M")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"list contains(list, element)\",\n\t\tdescription: \"

Returns true if the given list contains the element. Otherwise, returns false.

\\n

Function signature

\\n
list contains(list: list, element: Any): boolean\\n
\\n

Examples

\\n
list contains([1,2,3], 2)\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"count(list)\",\n\t\tdescription: \"

Returns the number of elements of the given list.

\\n

Function signature

\\n
count(list: list): number\\n
\\n

Examples

\\n
count([1,2,3])\\n// 3\\n
\\n\"\n\t},\n\t{\n\t\tname: \"min(list)\",\n\t\tdescription: \"

Returns the minimum of the given list.

\\n

Function signature

\\n
min(list: list): Any\\n
\\n

All elements in list should have the same type and be comparable.

\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
min([1,2,3])\\n// 1\\n\\nmin(1,2,3)\\n// 1\\n
\\n\"\n\t},\n\t{\n\t\tname: \"max(list)\",\n\t\tdescription: \"

Returns the maximum of the given list.

\\n

Function signature

\\n
max(list: list): Any\\n
\\n

All elements in list should have the same type and be comparable.

\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
max([1,2,3])\\n// 3\\n\\nmax(1,2,3)\\n// 3\\n
\\n\"\n\t},\n\t{\n\t\tname: \"sum(list)\",\n\t\tdescription: \"

Returns the sum of the given list of numbers.

\\n

Function signature

\\n
sum(list: list<number>): number\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
sum([1,2,3])\\n// 6\\n\\nsum(1,2,3)\\n// 6\\n
\\n\"\n\t},\n\t{\n\t\tname: \"product(list)\",\n\t\tdescription: \"

Returns the product of the given list of numbers.

\\n

Function signature

\\n
product(list: list<number>): number\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
product([2, 3, 4])\\n// 24\\n\\nproduct(2, 3, 4)\\n// 24\\n
\\n\"\n\t},\n\t{\n\t\tname: \"mean(list)\",\n\t\tdescription: \"

Returns the arithmetic mean (i.e. average) of the given list of numbers.

\\n

Function signature

\\n
mean(list: list<number>): number\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
mean([1,2,3])\\n// 2\\n\\nmean(1,2,3)\\n// 2\\n
\\n\"\n\t},\n\t{\n\t\tname: \"median(list)\",\n\t\tdescription: \"

Returns the median element of the given list of numbers.

\\n

Function signature

\\n
median(list: list<number>): number\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
median(8, 2, 5, 3, 4)\\n// 4\\n\\nmedian([6, 1, 2, 3])\\n// 2.5\\n
\\n\"\n\t},\n\t{\n\t\tname: \"stddev(list)\",\n\t\tdescription: \"

Returns the standard deviation of the given list of numbers.

\\n

Function signature

\\n
stddev(list: list<number>): number\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
stddev(2, 4, 7, 5)\\n// 2.0816659994661326\\n\\nstddev([2, 4, 7, 5])\\n// 2.0816659994661326\\n
\\n\"\n\t},\n\t{\n\t\tname: \"mode(list)\",\n\t\tdescription: \"

Returns the mode of the given list of numbers.

\\n

Function signature

\\n
mode(list: list<number>): number\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
mode(6, 3, 9, 6, 6)\\n// [6]\\n\\nmode([6, 1, 9, 6, 1])\\n// [1, 6]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"all(list)\",\n\t\tdescription: \"

Returns false if any element of the given list is false. Otherwise, returns true.

\\n

If the given list is empty, it returns true.

\\n

Function signature

\\n
all(list: list<boolean>): boolean\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
all([true,false])\\n// false\\n\\nall(false,null,true)\\n// false\\n
\\n

:::info\\nThe function all() replaced the previous function and(). The previous function is deprecated and\\nshould not be used anymore.\\n:::

\\n\"\n\t},\n\t{\n\t\tname: \"any(list)\",\n\t\tdescription: \"

Returns true if any element of the given list is true. Otherwise, returns false.

\\n

If the given list is empty, it returns false.

\\n

Function signature

\\n
any(list: list<boolean>): boolean\\n
\\n

The parameter list can be passed as a list or as a sequence of elements.

\\n

Examples

\\n
any([false,true])\\n// true\\n\\nany(false,null,true)\\n// true\\n
\\n

:::info\\nThe function any() replaced the previous function or(). The previous function is deprecated and\\nshould not be used anymore.\\n:::

\\n\"\n\t},\n\t{\n\t\tname: \"sublist(list, start position)\",\n\t\tdescription: \"

Returns a partial list of the given value starting at start position.

\\n

Function signature

\\n
sublist(list: list, start position: number): list\\n
\\n

The start position starts at the index 1. The last position is -1.

\\n

Examples

\\n
sublist([1,2,3], 2)\\n// [2,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"sublist(list, start position, length)\",\n\t\tdescription: \"

Returns a partial list of the given value starting at start position.

\\n

Function signature

\\n
sublist(list: list, start position: number, length: number): list\\n
\\n

The start position starts at the index 1. The last position is -1.

\\n

Examples

\\n
sublist([1,2,3], 1, 2)\\n// [1,2]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"append(list, items)\",\n\t\tdescription: \"

Returns the given list with all items appended.

\\n

Function signature

\\n
append(list: list, items: Any): list\\n
\\n

The parameter items can be a single element or a sequence of elements.

\\n

Examples

\\n
append([1], 2, 3)\\n// [1,2,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"concatenate(lists)\",\n\t\tdescription: \"

Returns a list that includes all elements of the given lists.

\\n

Function signature

\\n
concatenate(lists: list): list\\n
\\n

The parameter lists is a sequence of lists.

\\n

Examples

\\n
concatenate([1,2],[3])\\n// [1,2,3]\\n\\nconcatenate([1],[2],[3])\\n// [1,2,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"insert before(list, position, newItem)\",\n\t\tdescription: \"

Returns the given list with newItem inserted at position.

\\n

Function signature

\\n
insert before(list: list, position: number, newItem: Any): list\\n
\\n

The position starts at the index 1. The last position is -1.

\\n

Examples

\\n
insert before([1,3],1,2)\\n// [2,1,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"remove(list, position)\",\n\t\tdescription: \"

Returns the given list without the element at position.

\\n

Function signature

\\n
remove(list: list, position: number): list\\n
\\n

The position starts at the index 1. The last position is -1.

\\n

Examples

\\n
remove([1,2,3], 2)\\n// [1,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"reverse(list)\",\n\t\tdescription: \"

Returns the given list in revered order.

\\n

Function signature

\\n
reverse(list: list): list\\n
\\n

Examples

\\n
reverse([1,2,3])\\n// [3,2,1]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"index of(list, match)\",\n\t\tdescription: \"

Returns an ascending list of positions containing match.

\\n

Function signature

\\n
index of(list: list, match: Any): list<number>\\n
\\n

Examples

\\n
index of([1,2,3,2],2)\\n// [2,4]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"union(list)\",\n\t\tdescription: \"

Returns a list that includes all elements of the given lists without duplicates.

\\n

Function signature

\\n
union(list: list): list\\n
\\n

The parameter list is a sequence of lists.

\\n

Examples

\\n
union([1,2],[2,3])\\n// [1,2,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"distinct values(list)\",\n\t\tdescription: \"

Returns the given list without duplicates.

\\n

Function signature

\\n
distinct values(list: list): list\\n
\\n

Examples

\\n
distinct values([1,2,3,2,1])\\n// [1,2,3]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"duplicate values(list)\",\n\t\tdescription: \"

Camunda Extension

\\n

Returns all duplicate values of the given list.

\\n

Function signature

\\n
duplicate values(list: list): list\\n
\\n

Examples

\\n
duplicate values([1,2,3,2,1])\\n// [1,2]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"flatten(list)\",\n\t\tdescription: \"

Returns a list that includes all elements of the given list without nested lists.

\\n

Function signature

\\n
flatten(list: list): list\\n
\\n

Examples

\\n
flatten([[1,2],[[3]], 4])\\n// [1,2,3,4]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"sort(list, precedes)\",\n\t\tdescription: \"

Returns the given list sorted by the precedes function.

\\n

Function signature

\\n
sort(list: list, precedes: function<(Any, Any) -> boolean>): list\\n
\\n

Examples

\\n
sort(list: [3,1,4,5,2], precedes: function(x,y) x < y)\\n// [1,2,3,4,5]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"string join(list)\",\n\t\tdescription: \"

Joins a list of strings into a single string. This is similar to\\nJava's joining\\nfunction.

\\n

If an item of the list is null, the item is ignored for the result string. If an item is\\nneither a string nor null, the function returns null instead of a string.

\\n

Function signature

\\n
string join(list: list<string>): string\\n
\\n

Examples

\\n
string join(["a","b","c"])\\n// "abc"\\n\\nstring join(["a",null,"c"])\\n// "ac"\\n\\nstring join([])\\n// ""\\n
\\n\"\n\t},\n\t{\n\t\tname: \"string join(list, delimiter)\",\n\t\tdescription: \"

Joins a list of strings into a single string. This is similar to\\nJava's joining\\nfunction.

\\n

If an item of the list is null, the item is ignored for the result string. If an item is\\nneither a string nor null, the function returns null instead of a string.

\\n

The resulting string contains a delimiter between each element.

\\n

Function signature

\\n
string join(list: list<string>, delimiter: string): string\\n
\\n

Examples

\\n
string join(["a"], "X")\\n// "a"\\n\\nstring join(["a","b","c"], ", ")\\n// "a, b, c"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"string join(list, delimiter, prefix, suffix)\",\n\t\tdescription: \"

Camunda Extension

\\n

Joins a list of strings into a single string. This is similar to\\nJava's joining\\nfunction.

\\n

If an item of the list is null, the item is ignored for the result string. If an item is\\nneither a string nor null, the function returns null instead of a string.

\\n

The resulting string starts with prefix, contains a delimiter between each element, and ends\\nwith suffix.

\\n

Function signature

\\n
string join(list: list<string>, delimiter: string, prefix: string, suffix: string): string\\n
\\n

Examples

\\n
string join(["a","b","c"], ", ", "[", "]")\\n// "[a, b, c]"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"decimal(n, scale)\",\n\t\tdescription: \"

Rounds the given value at the given scale.

\\n

Function signature

\\n
decimal(n: number, scale: number): number\\n
\\n

Examples

\\n
decimal(1/3, 2)\\n// .33\\n\\ndecimal(1.5, 0)\\n// 2\\n
\\n\"\n\t},\n\t{\n\t\tname: \"floor(n)\",\n\t\tdescription: \"

Rounds the given value with rounding mode flooring.

\\n

Function signature

\\n
floor(n: number): number\\n
\\n

Examples

\\n
floor(1.5)\\n// 1\\n\\nfloor(-1.5)\\n// -2\\n
\\n\"\n\t},\n\t{\n\t\tname: \"floor(n, scale)\",\n\t\tdescription: \"

Rounds the given value with rounding mode flooring at the given scale.

\\n

Function signature

\\n
floor(n: number, scale: number): number\\n
\\n

Examples

\\n
floor(-1.56, 1)\\n// -1.6\\n
\\n\"\n\t},\n\t{\n\t\tname: \"ceiling(n)\",\n\t\tdescription: \"

Rounds the given value with rounding mode ceiling.

\\n

Function signature

\\n
ceiling(n: number): number\\n
\\n

Examples

\\n
ceiling(1.5)\\n// 2\\n\\nceiling(-1.5)\\n// -1\\n
\\n\"\n\t},\n\t{\n\t\tname: \"ceiling(n, scale)\",\n\t\tdescription: \"

Rounds the given value with rounding mode ceiling at the given scale.

\\n

Function signature

\\n
ceiling(n: number, scale: number): number\\n
\\n

Examples

\\n
ceiling(-1.56, 1)\\n// -1.5\\n
\\n\"\n\t},\n\t{\n\t\tname: \"round up(n, scale)\",\n\t\tdescription: \"

Rounds the given value with the rounding mode round-up at the given scale.

\\n

Function signature

\\n
round up(n: number, scale: number): number\\n
\\n

Examples

\\n
round up(5.5)\\n// 6\\n\\nround up(-5.5)\\n// -6\\n\\nround up(1.121, 2)\\n// 1.13\\n\\nround up(-1.126, 2)\\n// -1.13\\n
\\n\"\n\t},\n\t{\n\t\tname: \"round down(n, scale)\",\n\t\tdescription: \"

Rounds the given value with the rounding mode round-down at the given scale.

\\n

Function signature

\\n
round down(n: number, scale: number): number\\n
\\n

Examples

\\n
round down(5.5, 0)\\n// 5\\n\\nround down (-5.5, 0)\\n// -5\\n\\nround down (1.121, 2)\\n// 1.12\\n\\nround down (-1.126, 2)\\n// -1.12\\n
\\n\"\n\t},\n\t{\n\t\tname: \"round half up(n, scale)\",\n\t\tdescription: \"

Rounds the given value with the rounding mode round-half-up at the given scale.

\\n

Function signature

\\n
round half up(n: number, scale: number): number\\n
\\n

Examples

\\n
round half up(5.5, 0)\\n// 6\\n\\nround half up(-5.5, 0)\\n// -6\\n\\nround half up(1.121, 2)\\n// 1.12\\n\\nround half up(-1.126, 2)\\n// -1.13\\n
\\n\"\n\t},\n\t{\n\t\tname: \"round half down(n, scale)\",\n\t\tdescription: \"

Rounds the given value with the rounding mode round-half-down at the given scale.

\\n

Function signature

\\n
round half down(n: number, scale: number): number\\n
\\n

Examples

\\n
round half down (5.5, 0)\\n// 5\\n\\nround half down (-5.5, 0)\\n// -5\\n\\nround half down (1.121, 2)\\n// 1.12\\n\\nround half down (-1.126, 2)\\n// -1.13\\n
\\n\"\n\t},\n\t{\n\t\tname: \"abs(number)\",\n\t\tdescription: \"

Returns the absolute value of the given numeric value.

\\n

Function signature

\\n
abs(number: number): number\\n
\\n

Examples

\\n
abs(10)\\n// 10\\n\\nabs(-10)\\n// 10\\n
\\n\"\n\t},\n\t{\n\t\tname: \"modulo(dividend, divisor)\",\n\t\tdescription: \"

Returns the remainder of the division of dividend by divisor.

\\n

Function signature

\\n
modulo(dividend: number, divisor: number): number\\n
\\n

Examples

\\n
modulo(12, 5)\\n// 2\\n
\\n\"\n\t},\n\t{\n\t\tname: \"sqrt(number)\",\n\t\tdescription: \"

Returns the square root of the given value.

\\n

Function signature

\\n
sqrt(number: number): number\\n
\\n

Examples

\\n
sqrt(16)\\n// 4\\n
\\n\"\n\t},\n\t{\n\t\tname: \"log(number)\",\n\t\tdescription: \"

Returns the natural logarithm (base e) of the given value.

\\n

Function signature

\\n
log(number: number): number\\n
\\n

Examples

\\n
log(10)\\n// 2.302585092994046\\n
\\n\"\n\t},\n\t{\n\t\tname: \"exp(number)\",\n\t\tdescription: \"

Returns the Euler’s number e raised to the power of the given number .

\\n

Function signature

\\n
exp(number: number): number\\n
\\n

Examples

\\n
exp(5)\\n// 148.4131591025766\\n
\\n\"\n\t},\n\t{\n\t\tname: \"odd(number)\",\n\t\tdescription: \"

Returns true if the given value is odd. Otherwise, returns false.

\\n

Function signature

\\n
odd(number: number): boolean\\n
\\n

Examples

\\n
odd(5)\\n// true\\n\\nodd(2)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"even(number)\",\n\t\tdescription: \"

Returns true if the given is even. Otherwise, returns false.

\\n

Function signature

\\n
even(number: number): boolean\\n
\\n

Examples

\\n
even(5)\\n// false\\n\\neven(2)\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"random number()\",\n\t\tdescription: \"

Camunda Extension

\\n

Returns a random number between 0 and 1.

\\n

Function signature

\\n
random number(): number\\n
\\n

Examples

\\n
random number()\\n// 0.9701618132579795\\n
\\n\"\n\t},\n\t{\n\t\tname: \"before(point1, point2)\",\n\t\tdescription: \"

Function signature

\\n
before(point1: Any, point2: Any): boolean\\n
\\n

Examples

\\n
before(1, 10)\\n// true\\n\\nbefore(10, 1)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"before(range, point)\",\n\t\tdescription: \"

Function signature

\\n
before(range: range, point: Any): boolean\\n
\\n

Examples

\\n
before([1..5], 10)\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"before(point, range)\",\n\t\tdescription: \"

Function signature

\\n
before(point: Any, range: range): boolean\\n
\\n

Examples

\\n
before(1, [2..5])\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"before(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
before(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
before([1..5], [6..10])\\n// true\\n\\nbefore([1..5),[5..10])\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"after(point1, point2)\",\n\t\tdescription: \"

Function signature

\\n
after(point1: Any, point2: Any): boolean\\n
\\n

Examples

\\n
after(10, 1)\\n// true\\n\\nafter(1, 10)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"after(range, point)\",\n\t\tdescription: \"

Function signature

\\n
after(range: range, point: Any): boolean\\n
\\n

Examples

\\n
after([1..5], 10)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"after(point, range)\",\n\t\tdescription: \"

Function signature

\\n
after(point: Any, range: range): boolean\\n
\\n

Examples

\\n
after(12, [2..5])\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"after(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
after(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
after([6..10], [1..5])\\n// true\\n\\nafter([5..10], [1..5))\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"meets(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
meets(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
meets([1..5], [5..10])\\n// true\\n\\nmeets([1..3], [4..6])\\n// false\\n\\nmeets([1..3], [3..5])\\n// true\\n\\nmeets([1..5], (5..8])\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"met by(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
met by(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
met by([5..10], [1..5])\\n// true\\n\\nmet by([3..4], [1..2])\\n// false\\n\\nmet by([3..5], [1..3])\\n// true\\n\\nmet by((5..8], [1..5))\\n// false\\n\\nmet by([5..10], [1..5))\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"overlaps(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
overlaps(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
overlaps([5..10], [1..6])\\n// true\\n\\noverlaps((3..7], [1..4])\\n// true\\n\\noverlaps([1..3], (3..6])\\n// false\\n\\noverlaps((5..8], [1..5))\\n// false\\n\\noverlaps([4..10], [1..5))\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"overlaps before(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
overlaps before(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
overlaps before([1..5], [4..10])\\n// true\\n\\noverlaps before([3..4], [1..2])\\n// false\\n\\noverlaps before([1..3], (3..5])\\n// false\\n\\noverlaps before([1..5), (3..8])\\n// true\\n\\noverlaps before([1..5), [5..10])\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"overlaps after(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
overlaps after(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
overlaps after([4..10], [1..5])\\n// true\\n\\noverlaps after([3..4], [1..2])\\n// false\\n\\noverlaps after([3..5], [1..3))\\n// false\\n\\noverlaps after((5..8], [1..5))\\n// false\\n\\noverlaps after([4..10], [1..5))\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"finishes(point, range)\",\n\t\tdescription: \"

Function signature

\\n
finishes(point: Any, range: range): boolean\\n
\\n

Examples

\\n
finishes(5, [1..5])\\n// true\\n\\nfinishes(10, [1..7])\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"finishes(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
finishes(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
finishes([3..5], [1..5])\\n// true\\n\\nfinishes((1..5], [1..5))\\n// false\\n\\nfinishes([5..10], [1..10))\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"finished by(range, point)\",\n\t\tdescription: \"

Function signature

\\n
finished by(range: range, point: Any): boolean\\n
\\n

Examples

\\n
finished by([5..10], 10)\\n// true\\n\\nfinished by([3..4], 2)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"finished by(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
finished by(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
finished by([1..5], [3..5])\\n// true\\n\\nfinished by((5..8], [1..5))\\n// false\\n\\nfinished by([5..10], (1..10))\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"includes(range, point)\",\n\t\tdescription: \"

Function signature

\\n
includes(range: range, point: Any): boolean\\n
\\n

Examples

\\n
includes([5..10], 6)\\n// true\\n\\nincludes([3..4], 5)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"includes(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
includes(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
includes([1..10], [4..6])\\n// true\\n\\nincludes((5..8], [1..5))\\n// false\\n\\nincludes([1..10], [1..5))\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"during(point, range)\",\n\t\tdescription: \"

Function signature

\\n
during(point: Any, range: range): boolean\\n
\\n

Examples

\\n
during(5, [1..10])\\n// true\\n\\nduring(12, [1..10])\\n// false\\n\\nduring(1, (1..10])\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"during(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
during(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
during([4..6], [1..10))\\n// true\\n\\nduring((1..5], (1..10])\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"starts(point, range)\",\n\t\tdescription: \"

Function signature

\\n
starts(point: Any, range: range): boolean\\n
\\n

Examples

\\n
starts(1, [1..5])\\n// true\\n\\nstarts(1, (1..8])\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"starts(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
starts(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
starts((1..5], [1..5])\\n// false\\n\\nstarts([1..10], [1..5])\\n// false\\n\\nstarts((1..5), (1..10))\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"started by(range, point)\",\n\t\tdescription: \"

Function signature

\\n
started by(range: range, point: Any): boolean\\n
\\n

Examples

\\n
started by([1..10], 1)\\n// true\\n\\nstarted by((1..10], 1)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"started by(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
started by(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
started by([1..10], [1..5])\\n// true\\n\\nstarted by((1..10], [1..5))\\n// false\\n\\nstarted by([1..10], [1..10))\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"coincides(point1, point2)\",\n\t\tdescription: \"

Function signature

\\n
coincides(point1: Any, point2: Any): boolean\\n
\\n

Examples

\\n
coincides(5, 5)\\n// true\\n\\ncoincides(3, 4)\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"coincides(range1, range2)\",\n\t\tdescription: \"

Function signature

\\n
coincides(range1: range, range2: range): boolean\\n
\\n

Examples

\\n
coincides([1..5], [1..5])\\n// true\\n\\ncoincides((1..5], [1..5))\\n// false\\n\\ncoincides([1..5], [2..6])\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"substring(string, start position)\",\n\t\tdescription: \"

Returns a substring of the given value starting at start position.

\\n

Function signature

\\n
substring(string: string, start position: number): string\\n
\\n

The start position starts at the index 1. The last position is -1.

\\n

Examples

\\n
substring("foobar", 3)\\n// "obar"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"substring(string, start position, length)\",\n\t\tdescription: \"

Returns a substring of the given value starting at start position.

\\n

Function signature

\\n
substring(string: string, start position: number, length: number): string\\n
\\n

The start position starts at the index 1. The last position is -1.

\\n

Examples

\\n
substring("foobar", 3, 3)\\n// "oba"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"string length(string)\",\n\t\tdescription: \"

Returns the number of characters in the given value.

\\n

Function signature

\\n
string length(string: string): number\\n
\\n

Examples

\\n
string length("foo")\\n// 3\\n
\\n\"\n\t},\n\t{\n\t\tname: \"upper case(string)\",\n\t\tdescription: \"

Returns the given value with all characters are uppercase.

\\n

Function signature

\\n
upper case(string: string): string\\n
\\n

Examples

\\n
upper case("aBc4")\\n// "ABC4"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"lower case(string)\",\n\t\tdescription: \"

Returns the given value with all characters are lowercase.

\\n

Function signature

\\n
lower case(string: string): string\\n
\\n

Examples

\\n
lower case("aBc4")\\n// "abc4"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"substring before(string, match)\",\n\t\tdescription: \"

Returns a substring of the given value that contains all characters before match.

\\n

Function signature

\\n
substring before(string: string, match: string): string\\n
\\n

Examples

\\n
substring before("foobar", "bar")\\n// "foo"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"substring after(string, match)\",\n\t\tdescription: \"

Returns a substring of the given value that contains all characters after match.

\\n

Function signature

\\n
substring after(string: string, match: string): string\\n
\\n

Examples

\\n
substring after("foobar", "ob")\\n// "ar"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"contains(string, match)\",\n\t\tdescription: \"

Returns true if the given value contains the substring match. Otherwise, returns false.

\\n

Function signature

\\n
contains(string: string, match: string): boolean\\n
\\n

Examples

\\n
contains("foobar", "of")\\n// false\\n
\\n\"\n\t},\n\t{\n\t\tname: \"starts with(string, match)\",\n\t\tdescription: \"

Returns true if the given value starts with the substring match. Otherwise, returns false.

\\n

Function signature

\\n
starts with(string: string, match: string): boolean\\n
\\n

Examples

\\n
starts with("foobar", "fo")\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"ends with(string, match)\",\n\t\tdescription: \"

Returns true if the given value ends with the substring match. Otherwise, returns false.

\\n

Function signature

\\n
ends with(string: string, match: string): boolean\\n
\\n

Examples

\\n
ends with("foobar", "r")\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"matches(input, pattern)\",\n\t\tdescription: \"

Returns true if the given value matches the pattern. Otherwise, returns false.

\\n

Function signature

\\n
matches(input: string, pattern: string): boolean\\n
\\n

The pattern is a string that contains a regular expression.

\\n

Examples

\\n
matches("foobar", "^fo*bar")\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"matches(input, pattern, flags)\",\n\t\tdescription: \"

Returns true if the given value matches the pattern. Otherwise, returns false.

\\n

Function signature

\\n
matches(input: string, pattern: string, flags: string): boolean\\n
\\n

The pattern is a string that contains a regular expression.

\\n

The flags can contain one or more of the following characters:

\\n
    \\n
  • s (dot-all)
  • \\n
  • m (multi-line)
  • \\n
  • i (case insensitive)
  • \\n
  • x (comments)
  • \\n
\\n

Examples

\\n
matches("FooBar", "foo", "i")\\n// true\\n
\\n\"\n\t},\n\t{\n\t\tname: \"replace(input, pattern, replacement)\",\n\t\tdescription: \"

Returns the resulting string after replacing all occurrences of pattern with replacement.

\\n

Function signature

\\n
replace(input: string, pattern: string, replacement: string): string\\n
\\n

The pattern is a string that contains a regular expression.

\\n

The replacement can access the match groups by using $ and the number of the group, for example,\\n$1 to access the first group.

\\n

Examples

\\n
replace("abcd", "(ab)|(a)", "[1=$1][2=$2]")\\n// "[1=ab][2=]cd"\\n\\nreplace("0123456789", "(\\\\d{3})(\\\\d{3})(\\\\d{4})", "($1) $2-$3")\\n// "(012) 345-6789"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"replace(input, pattern, replacement, flags)\",\n\t\tdescription: \"

Returns the resulting string after replacing all occurrences of pattern with replacement.

\\n

Function signature

\\n
replace(input: string, pattern: string, replacement: string, flags: string): string\\n
\\n

The pattern is a string that contains a regular expression.

\\n

The replacement can access the match groups by using $ and the number of the group, for example,\\n$1 to access the first group.

\\n

The flags can contain one or more of the following characters:

\\n
    \\n
  • s (dot-all)
  • \\n
  • m (multi-line)
  • \\n
  • i (case insensitive)
  • \\n
  • x (comments)
  • \\n
\\n

Examples

\\n
replace("How do you feel?", "Feel", "FEEL", "i")\\n// "How do you FEEL?"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"split(string, delimiter)\",\n\t\tdescription: \"

Splits the given value into a list of substrings, breaking at each occurrence of the delimiter pattern.

\\n

Function signature

\\n
split(string: string, delimiter: string): list<string>\\n
\\n

The delimiter is a string that contains a regular expression.

\\n

Examples

\\n
split("John Doe", "\\\\s" )\\n// ["John", "Doe"]\\n\\nsplit("a;b;c;;", ";")\\n// ["a", "b", "c", "", ""]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"extract(string, pattern)\",\n\t\tdescription: \"

Camunda Extension

\\n

Returns all matches of the pattern in the given string. Returns an empty list if the pattern doesn't\\nmatch.

\\n

Function signature

\\n
extract(string: string, pattern: string): list<string>\\n
\\n

The pattern is a string that contains a regular expression.

\\n

Examples

\\n
extract("references are 1234, 1256, 1378", "12[0-9]*")\\n// ["1234","1256"]\\n
\\n\"\n\t},\n\t{\n\t\tname: \"now()\",\n\t\tdescription: \"

Returns the current date and time including the timezone.

\\n

Function signature

\\n
now(): date and time\\n
\\n

Examples

\\n
now()\\n// date and time("2020-07-31T14:27:30@Europe/Berlin")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"today()\",\n\t\tdescription: \"

Returns the current date.

\\n

Function signature

\\n
today(): date\\n
\\n

Examples

\\n
today()\\n// date("2020-07-31")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"day of week(date)\",\n\t\tdescription: \"

Returns the day of the week according to the Gregorian calendar. Note that it always returns the English name of the day.

\\n

Function signature

\\n
day of week(date: date): string\\n
\\n
day of week(date: date and time): string\\n
\\n

Examples

\\n
day of week(date("2019-09-17"))\\n// "Tuesday"\\n\\nday of week(date and time("2019-09-17T12:00:00"))\\n// "Tuesday"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"day of year(date)\",\n\t\tdescription: \"

Returns the Gregorian number of the day within the year.

\\n

Function signature

\\n
day of year(date: date): number\\n
\\n
day of year(date: date and time): number\\n
\\n

Examples

\\n
day of year(date("2019-09-17"))\\n// 260\\n\\nday of year(date and time("2019-09-17T12:00:00"))\\n// 260\\n
\\n\"\n\t},\n\t{\n\t\tname: \"week of year(date)\",\n\t\tdescription: \"

Returns the Gregorian number of the week within the year, according to ISO 8601.

\\n

Function signature

\\n
week of year(date: date): number\\n
\\n
week of year(date: date and time): number\\n
\\n

Examples

\\n
week of year(date("2019-09-17"))\\n// 38\\n\\nweek of year(date and time("2019-09-17T12:00:00"))\\n// 38\\n
\\n\"\n\t},\n\t{\n\t\tname: \"month of year(date)\",\n\t\tdescription: \"

Returns the month of the year according to the Gregorian calendar. Note that it always returns the English name of the month.

\\n

Function signature

\\n
month of year(date: date): string\\n
\\n
month of year(date: date and time): string\\n
\\n

Examples

\\n
month of year(date("2019-09-17"))\\n// "September"\\n\\nmonth of year(date and time("2019-09-17T12:00:00"))\\n// "September"\\n
\\n\"\n\t},\n\t{\n\t\tname: \"abs(n)\",\n\t\tdescription: \"

Returns the absolute value of a given duration.

\\n

Function signature

\\n
abs(n: days and time duration): days and time duration\\n
\\n
abs(n: years and months duration): years and months duration\\n
\\n

Examples

\\n
abs(duration("-PT5H"))\\n// "duration("PT5H")"\\n\\nabs(duration("PT5H"))\\n// "duration("PT5H")"\\n\\nabs(duration("-P2M"))\\n// duration("P2M")\\n
\\n\"\n\t},\n\t{\n\t\tname: \"last day of month(date)\",\n\t\tdescription: \"

Camunda Extension

\\n

Takes the month of the given date or date-time value and returns the last day of this month.

\\n

Function signature

\\n
last day of month(date: date): date\\n
\\n
last day of month(date: date and time): date\\n
\\n

Examples

\\n
last day of month(date("2022-10-01"))\\n// date("2022-10-31"))\\n\\nlast day of month(date and time("2022-10-16T12:00:00"))\\n// date("2022-10-31"))\\n
\\n\"\n\t}\n];\n\n/**\n * @param { import('..').Builtin[] } builtins\n *\n * @returns {import('..').Variable[] } variable\n */\nfunction parseBuiltins(builtins) {\n return builtins.map(parseBuiltin);\n}\n\n/**\n * @param { import('..').Builtin } builtin\n *\n * @returns { import('..').Variable } variable\n */\nfunction parseBuiltin(builtin) {\n\n const {\n name,\n description\n } = builtin;\n\n const match = name.match(/^([\\w\\s]+)\\((.*)\\)$/);\n const functionName = match[1];\n const functionArguments = match[2];\n\n const params = functionArguments.split(', ').map(name => ({ name }));\n\n return {\n name: functionName,\n type: 'function',\n params,\n info: () => {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_8__.domify)(`
${description}
`);\n },\n boost: 0\n };\n}\n\nconst camunda = parseBuiltins(camundaTags);\n\n/**\n * @typedef { import('./core').Variable } Variable\n */\n\n/**\n * @typedef {object} Builtin\n * @property {string} name\n * @property {string} description\n */\n\nconst coreConf = new _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Compartment();\nconst placeholderConf = new _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Compartment();\n\n\n/**\n * Creates a FEEL editor in the supplied container\n *\n * @param {Object} config\n * @param {DOMNode} config.container\n * @param {Extension[]} [config.extensions]\n * @param {Dialect} [config.dialect='expression']\n * @param {DOMNode|String} [config.tooltipContainer]\n * @param {Function} [config.onChange]\n * @param {Function} [config.onKeyDown]\n * @param {Function} [config.onLint]\n * @param {Boolean} [config.readOnly]\n * @param {String} [config.value]\n * @param {Variable[]} [config.variables]\n * @param {Variable[]} [config.builtins]\n *\n * @returns {Object} editor\n */\nfunction FeelEditor({\n extensions: editorExtensions = [],\n dialect = 'expression',\n container,\n contentAttributes = {},\n tooltipContainer,\n onChange = () => {},\n onKeyDown = () => {},\n onLint = () => {},\n placeholder: placeholder$1 = '',\n readOnly = false,\n value = '',\n builtins = camunda,\n variables = []\n}) {\n\n const changeHandler = _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.updateListener.of((update) => {\n if (update.docChanged) {\n onChange(update.state.doc.toString());\n }\n });\n\n const lintHandler = _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.updateListener.of((update) => {\n const diagnosticEffects = update.transactions\n .flatMap(t => t.effects)\n .filter(effect => effect.is(_codemirror_lint__WEBPACK_IMPORTED_MODULE_2__.setDiagnosticsEffect));\n\n if (!diagnosticEffects.length) {\n return;\n }\n\n const messages = diagnosticEffects.flatMap(effect => effect.value);\n\n onLint(messages);\n });\n\n const keyHandler = _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.domEventHandlers(\n {\n keydown: onKeyDown\n }\n );\n\n if (typeof tooltipContainer === 'string') {\n tooltipContainer = document.querySelector(tooltipContainer);\n }\n\n const tooltipLayout = tooltipContainer ? (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.tooltips)({\n tooltipSpace: function() {\n return tooltipContainer.getBoundingClientRect();\n }\n }) : [];\n\n const extensions = [\n (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_5__.autocompletion)(),\n coreConf.of(configure({\n dialect,\n builtins,\n variables\n })),\n (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_4__.bracketMatching)(),\n (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_4__.indentOnInput)(),\n (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_5__.closeBrackets)(),\n _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.contentAttributes.of(contentAttributes),\n changeHandler,\n keyHandler,\n _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.keymap.of([\n ..._codemirror_commands__WEBPACK_IMPORTED_MODULE_9__.defaultKeymap,\n ]),\n linter,\n lintHandler,\n tooltipLayout,\n placeholderConf.of((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.placeholder)(placeholder$1)),\n theme,\n ...editorExtensions\n ];\n\n if (readOnly) {\n extensions.push(_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView.editable.of(false));\n }\n\n this._cmEditor = new _codemirror_view__WEBPACK_IMPORTED_MODULE_3__.EditorView({\n state: _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.EditorState.create({\n doc: value,\n extensions\n }),\n parent: container\n });\n\n return this;\n}\n\n/**\n * Replaces the content of the Editor\n *\n * @param {String} value\n */\nFeelEditor.prototype.setValue = function(value) {\n this._cmEditor.dispatch({\n changes: {\n from: 0,\n to: this._cmEditor.state.doc.length,\n insert: value,\n }\n });\n};\n\n/**\n * Sets the focus in the editor.\n */\nFeelEditor.prototype.focus = function(position) {\n const cmEditor = this._cmEditor;\n\n // the Codemirror `focus` method always calls `focus` with `preventScroll`,\n // so we have to focus + scroll manually\n cmEditor.contentDOM.focus();\n cmEditor.focus();\n\n if (typeof position === 'number') {\n const end = cmEditor.state.doc.length;\n cmEditor.dispatch({ selection: { anchor: position <= end ? position : end } });\n }\n};\n\n/**\n * Returns the current selection ranges. If no text is selected, a single\n * range with the start and end index at the cursor position will be returned.\n *\n * @returns {Object} selection\n * @returns {Array} selection.ranges\n */\nFeelEditor.prototype.getSelection = function() {\n return this._cmEditor.state.selection;\n};\n\n/**\n * Set variables to be used for autocompletion.\n *\n * @param {Variable[]} variables\n */\nFeelEditor.prototype.setVariables = function(variables) {\n\n const {\n dialect,\n builtins\n } = get(this._cmEditor.state);\n\n this._cmEditor.dispatch({\n effects: [\n coreConf.reconfigure(configure({\n dialect,\n builtins,\n variables\n }))\n ]\n });\n};\n\n/**\n * Update placeholder text.\n *\n * @param {string} placeholder\n */\nFeelEditor.prototype.setPlaceholder = function(placeholder$1) {\n this._cmEditor.dispatch({\n effects: placeholderConf.reconfigure((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_3__.placeholder)(placeholder$1))\n });\n};\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@bpmn-io/feel-editor/dist/index.es.js?"); + +/***/ }), + +/***/ "./node_modules/@bpmn-io/feel-lint/dist/index.esm.js": +/*!***********************************************************!*\ + !*** ./node_modules/@bpmn-io/feel-lint/dist/index.esm.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cmFeelLinter: () => (/* binding */ cmFeelLinter),\n/* harmony export */ lintExpression: () => (/* binding */ lintExpression)\n/* harmony export */ });\n/* harmony import */ var lezer_feel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lezer-feel */ \"./node_modules/lezer-feel/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n\n\n\n/**\n * Create an array of syntax errors in the given tree.\n *\n * @param {Tree} syntaxTree\n * @returns {LintMessage[]} array of syntax errors\n */\nfunction lintSyntax(syntaxTree) {\n\n const lintMessages = [];\n\n syntaxTree.iterate({\n enter: ref => {\n const node = ref.node;\n\n if (!node.type.isError) {\n return;\n }\n\n const parent = node.parent;\n const next = getNextNode(node);\n\n const message = {\n from: node.from,\n to: node.to,\n severity: 'error',\n type: 'Syntax Error'\n };\n\n if (node.from !== node.to) {\n message.message = `Unrecognized token in <${parent.name}>`;\n } else if (next) {\n message.message = `Unrecognized token <${next.name}> in <${parent.name}>`;\n message.to = next.to;\n } else {\n const before = parent.enterUnfinishedNodesBefore(node.to);\n message.message = `Incomplete <${ (before || parent).name }>`;\n }\n\n lintMessages.push(message);\n }\n });\n\n return lintMessages;\n}\n\nfunction getNextNode(node) {\n if (!node) {\n return null;\n }\n\n return node.nextSibling || getNextNode(node.parent);\n}\n\n/**\n * Generates lint messages for the given syntax tree.\n *\n * @param {Tree} syntaxTree\n * @returns {LintMessage[]} array of all lint messages\n */\nfunction lintAll(syntaxTree) {\n\n const lintMessages = [\n ...lintSyntax(syntaxTree)\n ];\n\n return lintMessages;\n}\n\n/**\n * Create an array of syntax errors for the given expression.\n *\n * @param {String} expression\n * @returns {LintMessage[]} array of syntax errors\n */\nfunction lintExpression(expression) {\n\n const syntaxTree = lezer_feel__WEBPACK_IMPORTED_MODULE_0__.parser.parse(expression);\n\n const lintMessages = lintAll(syntaxTree);\n\n return lintMessages;\n}\n\n/**\n * CodeMirror extension that provides linting for FEEL expressions.\n *\n * @param {EditorView} editorView\n * @returns {Source} CodeMirror linting source\n */\nconst cmFeelLinter = () => editorView => {\n\n // don't lint if the Editor is empty\n if (editorView.state.doc.length === 0) {\n return [];\n }\n\n const tree = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.syntaxTree)(editorView.state);\n\n const messages = lintAll(tree);\n\n return messages.map(message => ({\n ...message,\n source: message.type\n }));\n};\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@bpmn-io/feel-lint/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/css.escape/css.escape.js": +/*!***********************************************!*\ + !*** ./node_modules/css.escape/css.escape.js ***! + \***********************************************/ +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +eval("/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */\n;(function(root, factory) {\n\t// https://github.com/umdjs/umd/blob/master/returnExports.js\n\tif (true) {\n\t\t// For Node.js.\n\t\tmodule.exports = factory(root);\n\t} else {}\n}(typeof __webpack_require__.g != 'undefined' ? __webpack_require__.g : this, function(root) {\n\n\tif (root.CSS && root.CSS.escape) {\n\t\treturn root.CSS.escape;\n\t}\n\n\t// https://drafts.csswg.org/cssom/#serialize-an-identifier\n\tvar cssEscape = function(value) {\n\t\tif (arguments.length == 0) {\n\t\t\tthrow new TypeError('`CSS.escape` requires an argument.');\n\t\t}\n\t\tvar string = String(value);\n\t\tvar length = string.length;\n\t\tvar index = -1;\n\t\tvar codeUnit;\n\t\tvar result = '';\n\t\tvar firstCodeUnit = string.charCodeAt(0);\n\t\twhile (++index < length) {\n\t\t\tcodeUnit = string.charCodeAt(index);\n\t\t\t// Note: there’s no need to special-case astral symbols, surrogate\n\t\t\t// pairs, or lone surrogates.\n\n\t\t\t// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER\n\t\t\t// (U+FFFD).\n\t\t\tif (codeUnit == 0x0000) {\n\t\t\t\tresult += '\\uFFFD';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is in the range [\\1-\\1F] (U+0001 to U+001F) or is\n\t\t\t\t// U+007F, […]\n\t\t\t\t(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||\n\t\t\t\t// If the character is the first character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039), […]\n\t\t\t\t(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||\n\t\t\t\t// If the character is the second character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]\n\t\t\t\t(\n\t\t\t\t\tindex == 1 &&\n\t\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 &&\n\t\t\t\t\tfirstCodeUnit == 0x002D\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point\n\t\t\t\tresult += '\\\\' + codeUnit.toString(16) + ' ';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is the first character and is a `-` (U+002D), and\n\t\t\t\t// there is no second character, […]\n\t\t\t\tindex == 0 &&\n\t\t\t\tlength == 1 &&\n\t\t\t\tcodeUnit == 0x002D\n\t\t\t) {\n\t\t\t\tresult += '\\\\' + string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the character is not handled by one of the above rules and is\n\t\t\t// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or\n\t\t\t// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to\n\t\t\t// U+005A), or [a-z] (U+0061 to U+007A), […]\n\t\t\tif (\n\t\t\t\tcodeUnit >= 0x0080 ||\n\t\t\t\tcodeUnit == 0x002D ||\n\t\t\t\tcodeUnit == 0x005F ||\n\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 ||\n\t\t\t\tcodeUnit >= 0x0041 && codeUnit <= 0x005A ||\n\t\t\t\tcodeUnit >= 0x0061 && codeUnit <= 0x007A\n\t\t\t) {\n\t\t\t\t// the character itself\n\t\t\t\tresult += string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Otherwise, the escaped character.\n\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character\n\t\t\tresult += '\\\\' + string.charAt(index);\n\n\t\t}\n\t\treturn result;\n\t};\n\n\tif (!root.CSS) {\n\t\troot.CSS = {};\n\t}\n\n\troot.CSS.escape = cssEscape;\n\treturn cssEscape;\n\n}));\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/css.escape/css.escape.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js-direct-editing/lib/DirectEditing.js": +/*!*********************************************************************!*\ + !*** ./node_modules/diagram-js-direct-editing/lib/DirectEditing.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DirectEditing)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _TextBox_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TextBox.js */ \"./node_modules/diagram-js-direct-editing/lib/TextBox.js\");\n\n\n\n\n\n/**\n * A direct editing component that allows users\n * to edit an elements text directly in the diagram\n *\n * @param {EventBus} eventBus the event bus\n */\nfunction DirectEditing(eventBus, canvas) {\n\n this._eventBus = eventBus;\n\n this._providers = [];\n this._textbox = new _TextBox_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n container: canvas.getContainer(),\n keyHandler: (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.bind)(this._handleKey, this),\n resizeHandler: (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.bind)(this._handleResize, this)\n });\n}\n\nDirectEditing.$inject = [ 'eventBus', 'canvas' ];\n\n\n/**\n * Register a direct editing provider\n\n * @param {Object} provider the provider, must expose an #activate(element) method that returns\n * an activation context ({ bounds: {x, y, width, height }, text }) if\n * direct editing is available for the given element.\n * Additionally the provider must expose a #update(element, value) method\n * to receive direct editing updates.\n */\nDirectEditing.prototype.registerProvider = function(provider) {\n this._providers.push(provider);\n};\n\n\n/**\n * Returns true if direct editing is currently active\n *\n * @param {djs.model.Base} [element]\n *\n * @return {boolean}\n */\nDirectEditing.prototype.isActive = function(element) {\n return !!(this._active && (!element || this._active.element === element));\n};\n\n\n/**\n * Cancel direct editing, if it is currently active\n */\nDirectEditing.prototype.cancel = function() {\n if (!this._active) {\n return;\n }\n\n this._fire('cancel');\n this.close();\n};\n\n\nDirectEditing.prototype._fire = function(event, context) {\n this._eventBus.fire('directEditing.' + event, context || { active: this._active });\n};\n\nDirectEditing.prototype.close = function() {\n this._textbox.destroy();\n\n this._fire('deactivate');\n\n this._active = null;\n\n this.resizable = undefined;\n};\n\n\nDirectEditing.prototype.complete = function() {\n\n var active = this._active;\n\n if (!active) {\n return;\n }\n\n var containerBounds,\n previousBounds = active.context.bounds,\n newBounds = this.$textbox.getBoundingClientRect(),\n newText = this.getValue(),\n previousText = active.context.text;\n\n if (\n newText !== previousText ||\n newBounds.height !== previousBounds.height ||\n newBounds.width !== previousBounds.width\n ) {\n containerBounds = this._textbox.container.getBoundingClientRect();\n\n active.provider.update(active.element, newText, active.context.text, {\n x: newBounds.left - containerBounds.left,\n y: newBounds.top - containerBounds.top,\n width: newBounds.width,\n height: newBounds.height\n });\n }\n\n this._fire('complete');\n\n this.close();\n};\n\n\nDirectEditing.prototype.getValue = function() {\n return this._textbox.getValue();\n};\n\n\nDirectEditing.prototype._handleKey = function(e) {\n\n // stop bubble\n e.stopPropagation();\n\n var key = e.keyCode || e.charCode;\n\n // ESC\n if (key === 27) {\n e.preventDefault();\n return this.cancel();\n }\n\n // Enter\n if (key === 13 && !e.shiftKey) {\n e.preventDefault();\n return this.complete();\n }\n};\n\n\nDirectEditing.prototype._handleResize = function(event) {\n this._fire('resize', event);\n};\n\n\n/**\n * Activate direct editing on the given element\n *\n * @param {Object} ElementDescriptor the descriptor for a shape or connection\n * @return {Boolean} true if the activation was possible\n */\nDirectEditing.prototype.activate = function(element) {\n if (this.isActive()) {\n this.cancel();\n }\n\n // the direct editing context\n var context;\n\n var provider = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.find)(this._providers, function(p) {\n return ((context = p.activate(element))) ? p : null;\n });\n\n // check if activation took place\n if (context) {\n this.$textbox = this._textbox.create(\n context.bounds,\n context.style,\n context.text,\n context.options\n );\n\n this._active = {\n element: element,\n context: context,\n provider: provider\n };\n\n if (context.options && context.options.resizable) {\n this.resizable = true;\n }\n\n this._fire('activate');\n }\n\n return !!context;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js-direct-editing/lib/DirectEditing.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js-direct-editing/lib/TextBox.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js-direct-editing/lib/TextBox.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TextBox)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\n\n\nvar min = Math.min,\n max = Math.max;\n\nfunction preventDefault(e) {\n e.preventDefault();\n}\n\nfunction stopPropagation(e) {\n e.stopPropagation();\n}\n\nfunction isTextNode(node) {\n return node.nodeType === Node.TEXT_NODE;\n}\n\nfunction toArray(nodeList) {\n return [].slice.call(nodeList);\n}\n\n/**\n * Initializes a container for a content editable div.\n *\n * Structure:\n *\n * container\n * parent\n * content\n * resize-handle\n *\n * @param {object} options\n * @param {DOMElement} options.container The DOM element to append the contentContainer to\n * @param {Function} options.keyHandler Handler for key events\n * @param {Function} options.resizeHandler Handler for resize events\n */\nfunction TextBox(options) {\n this.container = options.container;\n\n this.parent = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(\n '
' +\n '
' +\n '
'\n );\n\n this.content = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('[contenteditable]', this.parent);\n\n this.keyHandler = options.keyHandler || function() {};\n this.resizeHandler = options.resizeHandler || function() {};\n\n this.autoResize = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.bind)(this.autoResize, this);\n this.handlePaste = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.bind)(this.handlePaste, this);\n}\n\n\n/**\n * Create a text box with the given position, size, style and text content\n *\n * @param {Object} bounds\n * @param {Number} bounds.x absolute x position\n * @param {Number} bounds.y absolute y position\n * @param {Number} [bounds.width] fixed width value\n * @param {Number} [bounds.height] fixed height value\n * @param {Number} [bounds.maxWidth] maximum width value\n * @param {Number} [bounds.maxHeight] maximum height value\n * @param {Number} [bounds.minWidth] minimum width value\n * @param {Number} [bounds.minHeight] minimum height value\n * @param {Object} [style]\n * @param {String} value text content\n *\n * @return {DOMElement} The created content DOM element\n */\nTextBox.prototype.create = function(bounds, style, value, options) {\n var self = this;\n\n var parent = this.parent,\n content = this.content,\n container = this.container;\n\n options = this.options = options || {};\n\n style = this.style = style || {};\n\n var parentStyle = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.pick)(style, [\n 'width',\n 'height',\n 'maxWidth',\n 'maxHeight',\n 'minWidth',\n 'minHeight',\n 'left',\n 'top',\n 'backgroundColor',\n 'position',\n 'overflow',\n 'border',\n 'wordWrap',\n 'textAlign',\n 'outline',\n 'transform'\n ]);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(parent.style, {\n width: bounds.width + 'px',\n height: bounds.height + 'px',\n maxWidth: bounds.maxWidth + 'px',\n maxHeight: bounds.maxHeight + 'px',\n minWidth: bounds.minWidth + 'px',\n minHeight: bounds.minHeight + 'px',\n left: bounds.x + 'px',\n top: bounds.y + 'px',\n backgroundColor: '#ffffff',\n position: 'absolute',\n overflow: 'visible',\n border: '1px solid #ccc',\n boxSizing: 'border-box',\n wordWrap: 'normal',\n textAlign: 'center',\n outline: 'none'\n }, parentStyle);\n\n var contentStyle = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.pick)(style, [\n 'fontFamily',\n 'fontSize',\n 'fontWeight',\n 'lineHeight',\n 'padding',\n 'paddingTop',\n 'paddingRight',\n 'paddingBottom',\n 'paddingLeft'\n ]);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(content.style, {\n boxSizing: 'border-box',\n width: '100%',\n outline: 'none',\n wordWrap: 'break-word'\n }, contentStyle);\n\n if (options.centerVertically) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(content.style, {\n position: 'absolute',\n top: '50%',\n transform: 'translate(0, -50%)'\n }, contentStyle);\n }\n\n content.innerText = value;\n\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(content, 'keydown', this.keyHandler);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(content, 'mousedown', stopPropagation);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(content, 'paste', self.handlePaste);\n\n if (options.autoResize) {\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(content, 'input', this.autoResize);\n }\n\n if (options.resizable) {\n this.resizable(style);\n }\n\n container.appendChild(parent);\n\n // set selection to end of text\n this.setSelection(content.lastChild, content.lastChild && content.lastChild.length);\n\n return parent;\n};\n\n/**\n * Intercept paste events to remove formatting from pasted text.\n */\nTextBox.prototype.handlePaste = function(e) {\n var options = this.options,\n style = this.style;\n\n e.preventDefault();\n\n var text;\n\n if (e.clipboardData) {\n\n // Chrome, Firefox, Safari\n text = e.clipboardData.getData('text/plain');\n } else {\n\n // Internet Explorer\n text = window.clipboardData.getData('Text');\n }\n\n this.insertText(text);\n\n if (options.autoResize) {\n var hasResized = this.autoResize(style);\n\n if (hasResized) {\n this.resizeHandler(hasResized);\n }\n }\n};\n\nTextBox.prototype.insertText = function(text) {\n text = normalizeEndOfLineSequences(text);\n\n // insertText command not supported by Internet Explorer\n var success = document.execCommand('insertText', false, text);\n\n if (success) {\n return;\n }\n\n this._insertTextIE(text);\n};\n\nTextBox.prototype._insertTextIE = function(text) {\n\n // Internet Explorer\n var range = this.getSelection(),\n startContainer = range.startContainer,\n endContainer = range.endContainer,\n startOffset = range.startOffset,\n endOffset = range.endOffset,\n commonAncestorContainer = range.commonAncestorContainer;\n\n var childNodesArray = toArray(commonAncestorContainer.childNodes);\n\n var container,\n offset;\n\n if (isTextNode(commonAncestorContainer)) {\n var containerTextContent = startContainer.textContent;\n\n startContainer.textContent =\n containerTextContent.substring(0, startOffset)\n + text\n + containerTextContent.substring(endOffset);\n\n container = startContainer;\n offset = startOffset + text.length;\n\n } else if (startContainer === this.content && endContainer === this.content) {\n var textNode = document.createTextNode(text);\n\n this.content.insertBefore(textNode, childNodesArray[startOffset]);\n\n container = textNode;\n offset = textNode.textContent.length;\n } else {\n var startContainerChildIndex = childNodesArray.indexOf(startContainer),\n endContainerChildIndex = childNodesArray.indexOf(endContainer);\n\n childNodesArray.forEach(function(childNode, index) {\n\n if (index === startContainerChildIndex) {\n childNode.textContent =\n startContainer.textContent.substring(0, startOffset) +\n text +\n endContainer.textContent.substring(endOffset);\n } else if (index > startContainerChildIndex && index <= endContainerChildIndex) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.remove)(childNode);\n }\n });\n\n container = startContainer;\n offset = startOffset + text.length;\n }\n\n if (container && offset !== undefined) {\n\n // is necessary in Internet Explorer\n setTimeout(function() {\n self.setSelection(container, offset);\n });\n }\n};\n\n/**\n * Automatically resize element vertically to fit its content.\n */\nTextBox.prototype.autoResize = function() {\n var parent = this.parent,\n content = this.content;\n\n var fontSize = parseInt(this.style.fontSize) || 12;\n\n if (content.scrollHeight > parent.offsetHeight ||\n content.scrollHeight < parent.offsetHeight - fontSize) {\n var bounds = parent.getBoundingClientRect();\n\n var height = content.scrollHeight;\n parent.style.height = height + 'px';\n\n this.resizeHandler({\n width: bounds.width,\n height: bounds.height,\n dx: 0,\n dy: height - bounds.height\n });\n }\n};\n\n/**\n * Make an element resizable by adding a resize handle.\n */\nTextBox.prototype.resizable = function() {\n var self = this;\n\n var parent = this.parent,\n resizeHandle = this.resizeHandle;\n\n var minWidth = parseInt(this.style.minWidth) || 0,\n minHeight = parseInt(this.style.minHeight) || 0,\n maxWidth = parseInt(this.style.maxWidth) || Infinity,\n maxHeight = parseInt(this.style.maxHeight) || Infinity;\n\n if (!resizeHandle) {\n resizeHandle = this.resizeHandle = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(\n '
'\n );\n\n var startX, startY, startWidth, startHeight;\n\n var onMouseDown = function(e) {\n preventDefault(e);\n stopPropagation(e);\n\n startX = e.clientX;\n startY = e.clientY;\n\n var bounds = parent.getBoundingClientRect();\n\n startWidth = bounds.width;\n startHeight = bounds.height;\n\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(document, 'mousemove', onMouseMove);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(document, 'mouseup', onMouseUp);\n };\n\n var onMouseMove = function(e) {\n preventDefault(e);\n stopPropagation(e);\n\n var newWidth = min(max(startWidth + e.clientX - startX, minWidth), maxWidth);\n var newHeight = min(max(startHeight + e.clientY - startY, minHeight), maxHeight);\n\n parent.style.width = newWidth + 'px';\n parent.style.height = newHeight + 'px';\n\n self.resizeHandler({\n width: startWidth,\n height: startHeight,\n dx: e.clientX - startX,\n dy: e.clientY - startY\n });\n };\n\n var onMouseUp = function(e) {\n preventDefault(e);\n stopPropagation(e);\n\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(document,'mousemove', onMouseMove, false);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(document, 'mouseup', onMouseUp, false);\n };\n\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(resizeHandle, 'mousedown', onMouseDown);\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(resizeHandle.style, {\n position: 'absolute',\n bottom: '0px',\n right: '0px',\n cursor: 'nwse-resize',\n width: '0',\n height: '0',\n borderTop: (parseInt(this.style.fontSize) / 4 || 3) + 'px solid transparent',\n borderRight: (parseInt(this.style.fontSize) / 4 || 3) + 'px solid #ccc',\n borderBottom: (parseInt(this.style.fontSize) / 4 || 3) + 'px solid #ccc',\n borderLeft: (parseInt(this.style.fontSize) / 4 || 3) + 'px solid transparent'\n });\n\n parent.appendChild(resizeHandle);\n};\n\n\n/**\n * Clear content and style of the textbox, unbind listeners and\n * reset CSS style.\n */\nTextBox.prototype.destroy = function() {\n var parent = this.parent,\n content = this.content,\n resizeHandle = this.resizeHandle;\n\n // clear content\n content.innerText = '';\n\n // clear styles\n parent.removeAttribute('style');\n content.removeAttribute('style');\n\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(content, 'keydown', this.keyHandler);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(content, 'mousedown', stopPropagation);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(content, 'input', this.autoResize);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(content, 'paste', this.handlePaste);\n\n if (resizeHandle) {\n resizeHandle.removeAttribute('style');\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.remove)(resizeHandle);\n }\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.remove)(parent);\n};\n\n\nTextBox.prototype.getValue = function() {\n return this.content.innerText.trim();\n};\n\n\nTextBox.prototype.getSelection = function() {\n var selection = window.getSelection(),\n range = selection.getRangeAt(0);\n\n return range;\n};\n\n\nTextBox.prototype.setSelection = function(container, offset) {\n var range = document.createRange();\n\n if (container === null) {\n range.selectNodeContents(this.content);\n } else {\n range.setStart(container, offset);\n range.setEnd(container, offset);\n }\n\n var selection = window.getSelection();\n\n selection.removeAllRanges();\n selection.addRange(range);\n};\n\n// helpers //////////\n\nfunction normalizeEndOfLineSequences(string) {\n return string.replace(/\\r\\n|\\r|\\n/g, '\\n');\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js-direct-editing/lib/TextBox.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js-direct-editing/lib/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js-direct-editing/lib/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/interaction-events */ \"./node_modules/diagram-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var _DirectEditing_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DirectEditing.js */ \"./node_modules/diagram-js-direct-editing/lib/DirectEditing.js\");\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n diagram_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n ],\n __init__: [ 'directEditing' ],\n directEditing: [ 'type', _DirectEditing_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js-direct-editing/lib/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/Diagram.js": +/*!************************************************!*\ + !*** ./node_modules/diagram-js/lib/Diagram.js ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Diagram)\n/* harmony export */ });\n/* harmony import */ var didi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! didi */ \"./node_modules/didi/dist/index.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core */ \"./node_modules/diagram-js/lib/core/index.js\");\n\n\n\n\n/**\n * @typedef {import('didi').InjectionContext} InjectionContext\n * @typedef {import('didi').LocalsMap} LocalsMap\n * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration\n *\n * @typedef { {\n * modules?: ModuleDeclaration[];\n * } & Record } DiagramOptions\n */\n\n/**\n * @template T\n * @typedef {import('didi').FactoryFunction} FactoryFunction\n */\n\n/**\n * @template T\n * @typedef {import('didi').ArrayFunc} ArrayFunc\n */\n\n/**\n * Bootstrap an injector from a list of modules, instantiating a number of default components\n *\n * @param {ModuleDeclaration[]} modules\n *\n * @return {Injector} a injector to use to access the components\n */\nfunction bootstrap(modules) {\n var injector = new didi__WEBPACK_IMPORTED_MODULE_0__.Injector(modules);\n\n injector.init();\n\n return injector;\n}\n\n/**\n * Creates an injector from passed options.\n *\n * @template ServiceMap\n * @param {DiagramOptions} [options]\n *\n * @return {Injector}\n */\nfunction createInjector(options) {\n\n options = options || {};\n\n /**\n * @type { ModuleDeclaration }\n */\n var configModule = {\n 'config': [ 'value', options ]\n };\n\n var modules = [ configModule, _core__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ].concat(options.modules || []);\n\n return bootstrap(modules);\n}\n\n\n/**\n * The main diagram-js entry point that bootstraps the diagram with the given\n * configuration.\n *\n * To register extensions with the diagram, pass them as Array to the constructor.\n *\n * @class\n * @constructor\n * @template [ServiceMap=null]\n *\n * @example Creating a plug-in that logs whenever a shape is added to the canvas.\n *\n * ```javascript\n * // plug-in implementation\n * function MyLoggingPlugin(eventBus) {\n * eventBus.on('shape.added', function(event) {\n * console.log('shape ', event.shape, ' was added to the diagram');\n * });\n * }\n *\n * // export as module\n * export default {\n * __init__: [ 'myLoggingPlugin' ],\n * myLoggingPlugin: [ 'type', MyLoggingPlugin ]\n * };\n * ```\n *\n * Use the plug-in in a Diagram instance:\n *\n * ```javascript\n * import MyLoggingModule from 'path-to-my-logging-plugin';\n *\n * var diagram = new Diagram({\n * modules: [\n * MyLoggingModule\n * ]\n * });\n *\n * diagram.invoke([ 'canvas', function(canvas) {\n * // add shape to drawing canvas\n * canvas.addShape({ x: 10, y: 10 });\n * });\n *\n * // 'shape ... was added to the diagram' logged to console\n * ```\n *\n * @param {DiagramOptions} [options]\n * @param {Injector} [injector] An (optional) injector to bootstrap the diagram with.\n */\nfunction Diagram(options, injector) {\n\n /**\n * @type {Injector}\n */\n this._injector = injector || createInjector(options);\n\n // init\n\n /**\n * An event indicating that all plug-ins are loaded.\n *\n * Use this event to fire other events to interested plug-ins\n *\n * @memberOf Diagram\n *\n * @event diagram.init\n *\n * @example\n *\n * ```javascript\n * eventBus.on('diagram.init', function() {\n * eventBus.fire('my-custom-event', { foo: 'BAR' });\n * });\n * ```\n *\n * @type {Object}\n */\n this.get('eventBus').fire('diagram.init');\n}\n\n/**\n * @overlord\n *\n * Resolves a diagram service.\n *\n * @template T\n *\n * @param {string} name The name of the service to get.\n *\n * @return {T}\n */\n/**\n * @overlord\n *\n * Resolves a diagram service.\n *\n * @template T\n *\n * @param {string} name The name of the service to get.\n * @param {true} strict If false, resolve missing services to null.\n *\n * @return {T}\n */\n/**\n * @overlord\n *\n * Resolves a diagram service.\n *\n * @template T\n *\n * @param {string} name The name of the service to get.\n * @param {boolean} strict If false, resolve missing services to null.\n *\n * @return {T|null}\n */\n/**\n * Resolves a diagram service.\n *\n * @template {keyof ServiceMap} Name\n *\n * @param {Name} name The name of the service to get.\n *\n * @return {ServiceMap[Name]}\n */\nDiagram.prototype.get = function(name, strict) {\n return this._injector.get(name, strict);\n};\n\n/**\n * @overlord\n *\n * Invoke the given function, injecting dependencies. Return the result.\n *\n * @template T\n *\n * @param {FactoryFunction} func\n * @param {InjectionContext} [context]\n * @param {LocalsMap} [locals]\n *\n * @return {T}\n */\n/**\n * Invoke the given function, injecting dependencies provided in\n * array notation. Return the result.\n *\n * @template T\n *\n * @param {ArrayFunc} func function to be invoked\n * @param {InjectionContext} [context] context of the invocation\n * @param {LocalsMap} [locals] locals provided\n *\n * @return {T}\n */\nDiagram.prototype.invoke = function(func, context, locals) {\n return this._injector.invoke(func, context, locals);\n};\n\n/**\n * Destroys the diagram\n */\nDiagram.prototype.destroy = function() {\n this.get('eventBus').fire('diagram.destroy');\n};\n\n/**\n * Clear the diagram, removing all contents.\n */\nDiagram.prototype.clear = function() {\n this.get('eventBus').fire('diagram.clear');\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/Diagram.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/command/CommandInterceptor.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/command/CommandInterceptor.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CommandInterceptor)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../core/Types').ElementLike} ElementLike\n * @typedef {import('../core/EventBus').default} EventBus\n * @typedef {import('./CommandStack').CommandContext} CommandContext\n *\n * @typedef {string|string[]} Events\n * @typedef { (context: CommandContext) => ElementLike[] | void } HandlerFunction\n * @typedef { (context: CommandContext) => void } ComposeHandlerFunction\n */\n\nvar DEFAULT_PRIORITY = 1000;\n\n/**\n * A utility that can be used to plug into the command execution for\n * extension and/or validation.\n *\n * @class\n * @constructor\n *\n * @example\n *\n * ```javascript\n * import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';\n *\n * class CommandLogger extends CommandInterceptor {\n * constructor(eventBus) {\n * super(eventBus);\n *\n * this.preExecute('shape.create', (event) => {\n * console.log('commandStack.shape-create.preExecute', event);\n * });\n * }\n * ```\n *\n * @param {EventBus} eventBus\n */\nfunction CommandInterceptor(eventBus) {\n\n /**\n * @type {EventBus}\n */\n this._eventBus = eventBus;\n}\n\nCommandInterceptor.$inject = [ 'eventBus' ];\n\nfunction unwrapEvent(fn, that) {\n return function(event) {\n return fn.call(that || null, event.context, event.command, event);\n };\n}\n\n\n/**\n * Intercept a command during one of the phases.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {string} [hook] phase to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.on = function(events, hook, priority, handlerFn, unwrap, that) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(hook) || (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(hook)) {\n that = unwrap;\n unwrap = handlerFn;\n handlerFn = priority;\n priority = hook;\n hook = null;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(priority)) {\n that = unwrap;\n unwrap = handlerFn;\n handlerFn = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(unwrap)) {\n that = unwrap;\n unwrap = false;\n }\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerFn)) {\n throw new Error('handlerFn must be a function');\n }\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(events)) {\n events = [ events ];\n }\n\n var eventBus = this._eventBus;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(events, function(event) {\n\n // concat commandStack(.event)?(.hook)?\n var fullEvent = [ 'commandStack', event, hook ].filter(function(e) { return e; }).join('.');\n\n eventBus.on(fullEvent, priority, unwrap ? unwrapEvent(handlerFn, that) : handlerFn, that);\n });\n};\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.canExecute = createHook('canExecute');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.preExecute = createHook('preExecute');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.preExecuted = createHook('preExecuted');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.execute = createHook('execute');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.executed = createHook('executed');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.postExecute = createHook('postExecute');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.postExecuted = createHook('postExecuted');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.revert = createHook('revert');\n\n/**\n * Add a phase of command interceptor.\n *\n * @param {Events} [events] command(s) to intercept\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap] whether the event should be unwrapped\n * @param {any} [that]\n */\nCommandInterceptor.prototype.reverted = createHook('reverted');\n\n/*\n * Add prototype methods for each phase of command execution (e.g. execute,\n * revert).\n *\n * @param {string} hook\n *\n * @return { (\n * events?: Events,\n * priority?: number,\n * handlerFn: ComposeHandlerFunction|HandlerFunction,\n * unwrap?: boolean\n * ) => any }\n */\nfunction createHook(hook) {\n\n /**\n * @this {CommandInterceptor}\n *\n * @param {Events} [events]\n * @param {number} [priority]\n * @param {ComposeHandlerFunction|HandlerFunction} handlerFn\n * @param {boolean} [unwrap]\n * @param {any} [that]\n */\n const hookFn = function(events, priority, handlerFn, unwrap, that) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(events) || (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(events)) {\n that = unwrap;\n unwrap = handlerFn;\n handlerFn = priority;\n priority = events;\n events = null;\n }\n\n this.on(events, hook, priority, handlerFn, unwrap, that);\n };\n\n return hookFn;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/command/CommandInterceptor.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/command/CommandStack.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js/lib/command/CommandStack.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CommandStack)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('didi').Injector} Injector\n *\n * @typedef {import('../core/Types').ElementLike} ElementLike\n *\n * @typedef {import('../core/EventBus').default} EventBus\n * @typedef {import('./CommandHandler').default} CommandHandler\n *\n * @typedef { any } CommandContext\n * @typedef { {\n * new (...args: any[]) : CommandHandler\n * } } CommandHandlerConstructor\n * @typedef { {\n * [key: string]: CommandHandler;\n * } } CommandHandlerMap\n * @typedef { {\n * command: string;\n * context: any;\n * id?: any;\n * } } CommandStackAction\n * @typedef { {\n * actions: CommandStackAction[];\n * dirty: ElementLike[];\n * trigger: 'execute' | 'undo' | 'redo' | 'clear' | null;\n * atomic?: boolean;\n * } } CurrentExecution\n */\n\n/**\n * A service that offers un- and redoable execution of commands.\n *\n * The command stack is responsible for executing modeling actions\n * in a un- and redoable manner. To do this it delegates the actual\n * command execution to {@link CommandHandler}s.\n *\n * Command handlers provide {@link CommandHandler#execute(ctx)} and\n * {@link CommandHandler#revert(ctx)} methods to un- and redo a command\n * identified by a command context.\n *\n *\n * ## Life-Cycle events\n *\n * In the process the command stack fires a number of life-cycle events\n * that other components to participate in the command execution.\n *\n * * preExecute\n * * preExecuted\n * * execute\n * * executed\n * * postExecute\n * * postExecuted\n * * revert\n * * reverted\n *\n * A special event is used for validating, whether a command can be\n * performed prior to its execution.\n *\n * * canExecute\n *\n * Each of the events is fired as `commandStack.{eventName}` and\n * `commandStack.{commandName}.{eventName}`, respectively. This gives\n * components fine grained control on where to hook into.\n *\n * The event object fired transports `command`, the name of the\n * command and `context`, the command context.\n *\n *\n * ## Creating Command Handlers\n *\n * Command handlers should provide the {@link CommandHandler#execute(ctx)}\n * and {@link CommandHandler#revert(ctx)} methods to implement\n * redoing and undoing of a command.\n *\n * A command handler _must_ ensure undo is performed properly in order\n * not to break the undo chain. It must also return the shapes that\n * got changed during the `execute` and `revert` operations.\n *\n * Command handlers may execute other modeling operations (and thus\n * commands) in their `preExecute(d)` and `postExecute(d)` phases. The command\n * stack will properly group all commands together into a logical unit\n * that may be re- and undone atomically.\n *\n * Command handlers must not execute other commands from within their\n * core implementation (`execute`, `revert`).\n *\n *\n * ## Change Tracking\n *\n * During the execution of the CommandStack it will keep track of all\n * elements that have been touched during the command's execution.\n *\n * At the end of the CommandStack execution it will notify interested\n * components via an 'elements.changed' event with all the dirty\n * elements.\n *\n * The event can be picked up by components that are interested in the fact\n * that elements have been changed. One use case for this is updating\n * their graphical representation after moving / resizing or deletion.\n *\n * @see CommandHandler\n *\n * @param {EventBus} eventBus\n * @param {Injector} injector\n */\nfunction CommandStack(eventBus, injector) {\n\n /**\n * A map of all registered command handlers.\n *\n * @type {CommandHandlerMap}\n */\n this._handlerMap = {};\n\n /**\n * A stack containing all re/undoable actions on the diagram\n *\n * @type {CommandStackAction[]}\n */\n this._stack = [];\n\n /**\n * The current index on the stack\n *\n * @type {number}\n */\n this._stackIdx = -1;\n\n /**\n * Current active commandStack execution\n *\n * @type {CurrentExecution}\n */\n this._currentExecution = {\n actions: [],\n dirty: [],\n trigger: null\n };\n\n /**\n * @type {Injector}\n */\n this._injector = injector;\n\n /**\n * @type EventBus\n */\n this._eventBus = eventBus;\n\n /**\n * @type { number }\n */\n this._uid = 1;\n\n eventBus.on([\n 'diagram.destroy',\n 'diagram.clear'\n ], function() {\n this.clear(false);\n }, this);\n}\n\nCommandStack.$inject = [ 'eventBus', 'injector' ];\n\n\n/**\n * Execute a command.\n *\n * @param {string} command The command to execute.\n * @param {CommandContext} context The context with which to execute the command.\n */\nCommandStack.prototype.execute = function(command, context) {\n if (!command) {\n throw new Error('command required');\n }\n\n this._currentExecution.trigger = 'execute';\n\n const action = { command: command, context: context };\n\n this._pushAction(action);\n this._internalExecute(action);\n this._popAction();\n};\n\n\n/**\n * Check whether a command can be executed.\n *\n * Implementors may hook into the mechanism on two ways:\n *\n * * in event listeners:\n *\n * Users may prevent the execution via an event listener.\n * It must prevent the default action for `commandStack.(.)canExecute` events.\n *\n * * in command handlers:\n *\n * If the method {@link CommandHandler#canExecute} is implemented in a handler\n * it will be called to figure out whether the execution is allowed.\n *\n * @param {string} command The command to execute.\n * @param {CommandContext} context The context with which to execute the command.\n *\n * @return {boolean} Whether the command can be executed with the given context.\n */\nCommandStack.prototype.canExecute = function(command, context) {\n\n const action = { command: command, context: context };\n\n const handler = this._getHandler(command);\n\n let result = this._fire(command, 'canExecute', action);\n\n // handler#canExecute will only be called if no listener\n // decided on a result already\n if (result === undefined) {\n if (!handler) {\n return false;\n }\n\n if (handler.canExecute) {\n result = handler.canExecute(context);\n }\n }\n\n return result;\n};\n\n\n/**\n * Clear the command stack, erasing all undo / redo history.\n *\n * @param {boolean} [emit=true] Whether to fire an event. Defaults to `true`.\n */\nCommandStack.prototype.clear = function(emit) {\n this._stack.length = 0;\n this._stackIdx = -1;\n\n if (emit !== false) {\n this._fire('changed', { trigger: 'clear' });\n }\n};\n\n\n/**\n * Undo last command(s)\n */\nCommandStack.prototype.undo = function() {\n let action = this._getUndoAction(),\n next;\n\n if (action) {\n this._currentExecution.trigger = 'undo';\n\n this._pushAction(action);\n\n while (action) {\n this._internalUndo(action);\n next = this._getUndoAction();\n\n if (!next || next.id !== action.id) {\n break;\n }\n\n action = next;\n }\n\n this._popAction();\n }\n};\n\n\n/**\n * Redo last command(s)\n */\nCommandStack.prototype.redo = function() {\n let action = this._getRedoAction(),\n next;\n\n if (action) {\n this._currentExecution.trigger = 'redo';\n\n this._pushAction(action);\n\n while (action) {\n this._internalExecute(action, true);\n next = this._getRedoAction();\n\n if (!next || next.id !== action.id) {\n break;\n }\n\n action = next;\n }\n\n this._popAction();\n }\n};\n\n\n/**\n * Register a handler instance with the command stack.\n *\n * @param {string} command Command to be executed.\n * @param {CommandHandler} handler Handler to execute the command.\n */\nCommandStack.prototype.register = function(command, handler) {\n this._setHandler(command, handler);\n};\n\n\n/**\n * Register a handler type with the command stack by instantiating it and\n * injecting its dependencies.\n *\n * @param {string} command Command to be executed.\n * @param {CommandHandlerConstructor} handlerCls Constructor to instantiate a {@link CommandHandler}.\n */\nCommandStack.prototype.registerHandler = function(command, handlerCls) {\n\n if (!command || !handlerCls) {\n throw new Error('command and handlerCls must be defined');\n }\n\n const handler = this._injector.instantiate(handlerCls);\n this.register(command, handler);\n};\n\n/**\n * @return {boolean}\n */\nCommandStack.prototype.canUndo = function() {\n return !!this._getUndoAction();\n};\n\n/**\n * @return {boolean}\n */\nCommandStack.prototype.canRedo = function() {\n return !!this._getRedoAction();\n};\n\n// stack access //////////////////////\n\nCommandStack.prototype._getRedoAction = function() {\n return this._stack[this._stackIdx + 1];\n};\n\n\nCommandStack.prototype._getUndoAction = function() {\n return this._stack[this._stackIdx];\n};\n\n\n// internal functionality //////////////////////\n\nCommandStack.prototype._internalUndo = function(action) {\n const command = action.command,\n context = action.context;\n\n const handler = this._getHandler(command);\n\n // guard against illegal nested command stack invocations\n this._atomicDo(() => {\n this._fire(command, 'revert', action);\n\n if (handler.revert) {\n this._markDirty(handler.revert(context));\n }\n\n this._revertedAction(action);\n\n this._fire(command, 'reverted', action);\n });\n};\n\n\nCommandStack.prototype._fire = function(command, qualifier, event) {\n if (arguments.length < 3) {\n event = qualifier;\n qualifier = null;\n }\n\n const names = qualifier ? [ command + '.' + qualifier, qualifier ] : [ command ];\n let result;\n\n event = this._eventBus.createEvent(event);\n\n for (const name of names) {\n result = this._eventBus.fire('commandStack.' + name, event);\n\n if (event.cancelBubble) {\n break;\n }\n }\n\n return result;\n};\n\nCommandStack.prototype._createId = function() {\n return this._uid++;\n};\n\nCommandStack.prototype._atomicDo = function(fn) {\n\n const execution = this._currentExecution;\n\n execution.atomic = true;\n\n try {\n fn();\n } finally {\n execution.atomic = false;\n }\n};\n\nCommandStack.prototype._internalExecute = function(action, redo) {\n const command = action.command,\n context = action.context;\n\n const handler = this._getHandler(command);\n\n if (!handler) {\n throw new Error('no command handler registered for <' + command + '>');\n }\n\n this._pushAction(action);\n\n if (!redo) {\n this._fire(command, 'preExecute', action);\n\n if (handler.preExecute) {\n handler.preExecute(context);\n }\n\n this._fire(command, 'preExecuted', action);\n }\n\n // guard against illegal nested command stack invocations\n this._atomicDo(() => {\n\n this._fire(command, 'execute', action);\n\n if (handler.execute) {\n\n // actual execute + mark return results as dirty\n this._markDirty(handler.execute(context));\n }\n\n // log to stack\n this._executedAction(action, redo);\n\n this._fire(command, 'executed', action);\n });\n\n if (!redo) {\n this._fire(command, 'postExecute', action);\n\n if (handler.postExecute) {\n handler.postExecute(context);\n }\n\n this._fire(command, 'postExecuted', action);\n }\n\n this._popAction();\n};\n\n\nCommandStack.prototype._pushAction = function(action) {\n\n const execution = this._currentExecution,\n actions = execution.actions;\n\n const baseAction = actions[0];\n\n if (execution.atomic) {\n throw new Error('illegal invocation in or phase (action: ' + action.command + ')');\n }\n\n if (!action.id) {\n action.id = (baseAction && baseAction.id) || this._createId();\n }\n\n actions.push(action);\n};\n\n\nCommandStack.prototype._popAction = function() {\n const execution = this._currentExecution,\n trigger = execution.trigger,\n actions = execution.actions,\n dirty = execution.dirty;\n\n actions.pop();\n\n if (!actions.length) {\n this._eventBus.fire('elements.changed', { elements: (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.uniqueBy)('id', dirty.reverse()) });\n\n dirty.length = 0;\n\n this._fire('changed', { trigger: trigger });\n\n execution.trigger = null;\n }\n};\n\n\nCommandStack.prototype._markDirty = function(elements) {\n const execution = this._currentExecution;\n\n if (!elements) {\n return;\n }\n\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(elements) ? elements : [ elements ];\n\n execution.dirty = execution.dirty.concat(elements);\n};\n\n\nCommandStack.prototype._executedAction = function(action, redo) {\n const stackIdx = ++this._stackIdx;\n\n if (!redo) {\n this._stack.splice(stackIdx, this._stack.length, action);\n }\n};\n\n\nCommandStack.prototype._revertedAction = function(action) {\n this._stackIdx--;\n};\n\n\nCommandStack.prototype._getHandler = function(command) {\n return this._handlerMap[command];\n};\n\nCommandStack.prototype._setHandler = function(command, handler) {\n if (!command || !handler) {\n throw new Error('command and handler required');\n }\n\n if (this._handlerMap[command]) {\n throw new Error('overriding handler for command <' + command + '>');\n }\n\n this._handlerMap[command] = handler;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/command/CommandStack.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/command/index.js": +/*!******************************************************!*\ + !*** ./node_modules/diagram-js/lib/command/index.js ***! + \******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _CommandStack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CommandStack */ \"./node_modules/diagram-js/lib/command/CommandStack.js\");\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n commandStack: [ 'type', _CommandStack__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/command/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/core/Canvas.js": +/*!****************************************************!*\ + !*** ./node_modules/diagram-js/lib/core/Canvas.js ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Canvas)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Collections__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('./Types').ConnectionLike} ConnectionLike\n * @typedef {import('./Types').RootLike} RootLike\n * @typedef {import('./Types').ParentLike } ParentLike\n * @typedef {import('./Types').ShapeLike} ShapeLike\n *\n * @typedef { {\n * container?: HTMLElement;\n * deferUpdate?: boolean;\n * width?: number;\n * height?: number;\n * } } CanvasConfig\n * @typedef { {\n * group: SVGElement;\n * index: number;\n * visible: boolean;\n * } } CanvasLayer\n * @typedef { {\n * [key: string]: CanvasLayer;\n * } } CanvasLayers\n * @typedef { {\n * rootElement: ShapeLike;\n * layer: CanvasLayer;\n * } } CanvasPlane\n * @typedef { {\n * scale: number;\n * inner: Rect;\n * outer: Dimensions;\n * } & Rect } CanvasViewbox\n *\n * @typedef {import('./ElementRegistry').default} ElementRegistry\n * @typedef {import('./EventBus').default} EventBus\n * @typedef {import('./GraphicsFactory').default} GraphicsFactory\n *\n * @typedef {import('../util/Types').Dimensions} Dimensions\n * @typedef {import('../util/Types').Point} Point\n * @typedef {import('../util/Types').Rect} Rect\n * @typedef {import('../util/Types').RectTRBL} RectTRBL\n * @typedef {import('../util/Types').ScrollDelta} ScrollDelta\n */\n\nfunction round(number, resolution) {\n return Math.round(number * resolution) / resolution;\n}\n\nfunction ensurePx(number) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(number) ? number + 'px' : number;\n}\n\nfunction findRoot(element) {\n while (element.parent) {\n element = element.parent;\n }\n\n return element;\n}\n\n/**\n * Creates a HTML container element for a SVG element with\n * the given configuration\n *\n * @param {CanvasConfig} options\n *\n * @return {HTMLElement} the container element\n */\nfunction createContainer(options) {\n\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, { width: '100%', height: '100%' }, options);\n\n const container = options.container || document.body;\n\n // create a
around the svg element with the respective size\n // this way we can always get the correct container size\n // (this is impossible for elements at the moment)\n const parent = document.createElement('div');\n parent.setAttribute('class', 'djs-container djs-parent');\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.assignStyle)(parent, {\n position: 'relative',\n overflow: 'hidden',\n width: ensurePx(options.width),\n height: ensurePx(options.height)\n });\n\n container.appendChild(parent);\n\n return parent;\n}\n\nfunction createGroup(parent, cls, childIndex) {\n const group = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.create)('g');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.classes)(group).add(cls);\n\n const index = childIndex !== undefined ? childIndex : parent.childNodes.length - 1;\n\n // must ensure second argument is node or _null_\n // cf. https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore\n parent.insertBefore(group, parent.childNodes[index] || null);\n\n return group;\n}\n\nconst BASE_LAYER = 'base';\n\n// render plane contents behind utility layers\nconst PLANE_LAYER_INDEX = 0;\nconst UTILITY_LAYER_INDEX = 1;\n\n\nconst REQUIRED_MODEL_ATTRS = {\n shape: [ 'x', 'y', 'width', 'height' ],\n connection: [ 'waypoints' ]\n};\n\n/**\n * The main drawing canvas.\n *\n * @class\n * @constructor\n *\n * @emits Canvas#canvas.init\n *\n * @param {CanvasConfig|null} config\n * @param {EventBus} eventBus\n * @param {GraphicsFactory} graphicsFactory\n * @param {ElementRegistry} elementRegistry\n */\nfunction Canvas(config, eventBus, graphicsFactory, elementRegistry) {\n this._eventBus = eventBus;\n this._elementRegistry = elementRegistry;\n this._graphicsFactory = graphicsFactory;\n\n /**\n * @type {number}\n */\n this._rootsIdx = 0;\n\n /**\n * @type {CanvasLayers}\n */\n this._layers = {};\n\n /**\n * @type {CanvasPlane[]}\n */\n this._planes = [];\n\n /**\n * @type {RootLike|null}\n */\n this._rootElement = null;\n\n this._init(config || {});\n}\n\nCanvas.$inject = [\n 'config.canvas',\n 'eventBus',\n 'graphicsFactory',\n 'elementRegistry'\n];\n\n/**\n * Creates a element that is wrapped into a
.\n * This way we are always able to correctly figure out the size of the svg element\n * by querying the parent node.\n\n * (It is not possible to get the size of a svg element cross browser @ 2014-04-01)\n\n *
\n * \n * ...\n * \n *
\n *\n * @param {CanvasConfig} config\n */\nCanvas.prototype._init = function(config) {\n\n const eventBus = this._eventBus;\n\n // html container\n const container = this._container = createContainer(config);\n\n const svg = this._svg = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.create)('svg');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.attr)(svg, { width: '100%', height: '100%' });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.append)(container, svg);\n\n const viewport = this._viewport = createGroup(svg, 'viewport');\n\n // debounce canvas.viewbox.changed events when deferUpdate is set\n // to help with potential performance issues\n if (config.deferUpdate) {\n this._viewboxChanged = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.debounce)((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(this._viewboxChanged, this), 300);\n }\n\n eventBus.on('diagram.init', () => {\n\n /**\n * An event indicating that the canvas is ready to be drawn on.\n *\n * @memberOf Canvas\n *\n * @event canvas.init\n *\n * @type {Object}\n * @property {SVGElement} svg the created svg element\n * @property {SVGElement} viewport the direct parent of diagram elements and shapes\n */\n eventBus.fire('canvas.init', {\n svg: svg,\n viewport: viewport\n });\n\n });\n\n // reset viewbox on shape changes to\n // recompute the viewbox\n eventBus.on([\n 'shape.added',\n 'connection.added',\n 'shape.removed',\n 'connection.removed',\n 'elements.changed',\n 'root.set'\n ], () => {\n delete this._cachedViewbox;\n });\n\n eventBus.on('diagram.destroy', 500, this._destroy, this);\n eventBus.on('diagram.clear', 500, this._clear, this);\n};\n\nCanvas.prototype._destroy = function() {\n this._eventBus.fire('canvas.destroy', {\n svg: this._svg,\n viewport: this._viewport\n });\n\n const parent = this._container.parentNode;\n\n if (parent) {\n parent.removeChild(this._container);\n }\n\n delete this._svg;\n delete this._container;\n delete this._layers;\n delete this._planes;\n delete this._rootElement;\n delete this._viewport;\n};\n\nCanvas.prototype._clear = function() {\n\n const allElements = this._elementRegistry.getAll();\n\n // remove all elements\n allElements.forEach(element => {\n const type = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_3__.getType)(element);\n\n if (type === 'root') {\n this.removeRootElement(element);\n } else {\n this._removeElement(element, type);\n }\n });\n\n // remove all planes\n this._planes = [];\n this._rootElement = null;\n\n // force recomputation of view box\n delete this._cachedViewbox;\n};\n\n/**\n * Returns the default layer on which\n * all elements are drawn.\n *\n * @return {SVGElement} The SVG element of the layer.\n */\nCanvas.prototype.getDefaultLayer = function() {\n return this.getLayer(BASE_LAYER, PLANE_LAYER_INDEX);\n};\n\n/**\n * Returns a layer that is used to draw elements\n * or annotations on it.\n *\n * Non-existing layers retrieved through this method\n * will be created. During creation, the optional index\n * may be used to create layers below or above existing layers.\n * A layer with a certain index is always created above all\n * existing layers with the same index.\n *\n * @param {string} name The name of the layer.\n * @param {number} [index] The index of the layer.\n *\n * @return {SVGElement} The SVG element of the layer.\n */\nCanvas.prototype.getLayer = function(name, index) {\n\n if (!name) {\n throw new Error('must specify a name');\n }\n\n let layer = this._layers[name];\n\n if (!layer) {\n layer = this._layers[name] = this._createLayer(name, index);\n }\n\n // throw an error if layer creation / retrival is\n // requested on different index\n if (typeof index !== 'undefined' && layer.index !== index) {\n throw new Error('layer <' + name + '> already created at index <' + index + '>');\n }\n\n return layer.group;\n};\n\n/**\n * For a given index, return the number of layers that have a higher index and\n * are visible.\n *\n * This is used to determine the node a layer should be inserted at.\n *\n * @param {number} index\n *\n * @return {number}\n */\nCanvas.prototype._getChildIndex = function(index) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(this._layers, function(childIndex, layer) {\n if (layer.visible && index >= layer.index) {\n childIndex++;\n }\n\n return childIndex;\n }, 0);\n};\n\n/**\n * Creates a given layer and returns it.\n *\n * @param {string} name\n * @param {number} [index=0]\n *\n * @return {CanvasLayer}\n */\nCanvas.prototype._createLayer = function(name, index) {\n\n if (typeof index === 'undefined') {\n index = UTILITY_LAYER_INDEX;\n }\n\n const childIndex = this._getChildIndex(index);\n\n return {\n group: createGroup(this._viewport, 'layer-' + name, childIndex),\n index: index,\n visible: true\n };\n};\n\n\n/**\n * Shows a given layer.\n *\n * @param {string} name The name of the layer.\n *\n * @return {SVGElement} The SVG element of the layer.\n */\nCanvas.prototype.showLayer = function(name) {\n\n if (!name) {\n throw new Error('must specify a name');\n }\n\n const layer = this._layers[name];\n\n if (!layer) {\n throw new Error('layer <' + name + '> does not exist');\n }\n\n const viewport = this._viewport;\n const group = layer.group;\n const index = layer.index;\n\n if (layer.visible) {\n return group;\n }\n\n const childIndex = this._getChildIndex(index);\n\n viewport.insertBefore(group, viewport.childNodes[childIndex] || null);\n\n layer.visible = true;\n\n return group;\n};\n\n/**\n * Hides a given layer.\n *\n * @param {string} name The name of the layer.\n *\n * @return {SVGElement} The SVG element of the layer.\n */\nCanvas.prototype.hideLayer = function(name) {\n\n if (!name) {\n throw new Error('must specify a name');\n }\n\n const layer = this._layers[name];\n\n if (!layer) {\n throw new Error('layer <' + name + '> does not exist');\n }\n\n const group = layer.group;\n\n if (!layer.visible) {\n return group;\n }\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.remove)(group);\n\n layer.visible = false;\n\n return group;\n};\n\n\nCanvas.prototype._removeLayer = function(name) {\n\n const layer = this._layers[name];\n\n if (layer) {\n delete this._layers[name];\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.remove)(layer.group);\n }\n};\n\n/**\n * Returns the currently active layer. Can be null.\n *\n * @return {CanvasLayer|null} The active layer of `null`.\n */\nCanvas.prototype.getActiveLayer = function() {\n const plane = this._findPlaneForRoot(this.getRootElement());\n\n if (!plane) {\n return null;\n }\n\n return plane.layer;\n};\n\n\n/**\n * Returns the plane which contains the given element.\n *\n * @param {ShapeLike|ConnectionLike|string} element The element or its ID.\n *\n * @return {RootLike|undefined} The root of the element.\n */\nCanvas.prototype.findRoot = function(element) {\n if (typeof element === 'string') {\n element = this._elementRegistry.get(element);\n }\n\n if (!element) {\n return;\n }\n\n const plane = this._findPlaneForRoot(\n findRoot(element)\n ) || {};\n\n return plane.rootElement;\n};\n\n/**\n * Return a list of all root elements on the diagram.\n *\n * @return {(RootLike)[]} The list of root elements.\n */\nCanvas.prototype.getRootElements = function() {\n return this._planes.map(function(plane) {\n return plane.rootElement;\n });\n};\n\nCanvas.prototype._findPlaneForRoot = function(rootElement) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(this._planes, function(plane) {\n return plane.rootElement === rootElement;\n });\n};\n\n\n/**\n * Returns the html element that encloses the\n * drawing canvas.\n *\n * @return {HTMLElement} The HTML element of the container.\n */\nCanvas.prototype.getContainer = function() {\n return this._container;\n};\n\n\n// markers //////////////////////\n\nCanvas.prototype._updateMarker = function(element, marker, add) {\n let container;\n\n if (!element.id) {\n element = this._elementRegistry.get(element);\n }\n\n element.markers = element.markers || new Set();\n\n // we need to access all\n container = this._elementRegistry._elements[element.id];\n\n if (!container) {\n return;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)([ container.gfx, container.secondaryGfx ], function(gfx) {\n if (gfx) {\n\n // invoke either addClass or removeClass based on mode\n if (add) {\n element.markers.add(marker);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.classes)(gfx).add(marker);\n } else {\n element.markers.delete(marker);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.classes)(gfx).remove(marker);\n }\n }\n });\n\n /**\n * An event indicating that a marker has been updated for an element\n *\n * @event element.marker.update\n * @type {Object}\n * @property {Element} element the shape\n * @property {SVGElement} gfx the graphical representation of the shape\n * @property {string} marker\n * @property {boolean} add true if the marker was added, false if it got removed\n */\n this._eventBus.fire('element.marker.update', { element: element, gfx: container.gfx, marker: marker, add: !!add });\n};\n\n\n/**\n * Adds a marker to an element (basically a css class).\n *\n * Fires the element.marker.update event, making it possible to\n * integrate extension into the marker life-cycle, too.\n *\n * @example\n *\n * ```javascript\n * canvas.addMarker('foo', 'some-marker');\n *\n * const fooGfx = canvas.getGraphics('foo');\n *\n * fooGfx; // ... \n * ```\n *\n * @param {ShapeLike|ConnectionLike|string} element The element or its ID.\n * @param {string} marker The marker.\n */\nCanvas.prototype.addMarker = function(element, marker) {\n this._updateMarker(element, marker, true);\n};\n\n\n/**\n * Remove a marker from an element.\n *\n * Fires the element.marker.update event, making it possible to\n * integrate extension into the marker life-cycle, too.\n *\n * @param {ShapeLike|ConnectionLike|string} element The element or its ID.\n * @param {string} marker The marker.\n */\nCanvas.prototype.removeMarker = function(element, marker) {\n this._updateMarker(element, marker, false);\n};\n\n/**\n * Check whether an element has a given marker.\n *\n * @param {ShapeLike|ConnectionLike|string} element The element or its ID.\n * @param {string} marker The marker.\n */\nCanvas.prototype.hasMarker = function(element, marker) {\n if (!element.id) {\n element = this._elementRegistry.get(element);\n }\n\n if (!element.markers) {\n return false;\n }\n\n return element.markers.has(marker);\n};\n\n/**\n * Toggles a marker on an element.\n *\n * Fires the element.marker.update event, making it possible to\n * integrate extension into the marker life-cycle, too.\n *\n * @param {ShapeLike|ConnectionLike|string} element The element or its ID.\n * @param {string} marker The marker.\n */\nCanvas.prototype.toggleMarker = function(element, marker) {\n if (this.hasMarker(element, marker)) {\n this.removeMarker(element, marker);\n } else {\n this.addMarker(element, marker);\n }\n};\n\n/**\n * Returns the current root element.\n *\n * Supports two different modes for handling root elements:\n *\n * 1. if no root element has been added before, an implicit root will be added\n * and returned. This is used in applications that don't require explicit\n * root elements.\n *\n * 2. when root elements have been added before calling `getRootElement`,\n * root elements can be null. This is used for applications that want to manage\n * root elements themselves.\n *\n * @return {RootLike} The current root element.\n */\nCanvas.prototype.getRootElement = function() {\n const rootElement = this._rootElement;\n\n // can return null if root elements are present but none was set yet\n if (rootElement || this._planes.length) {\n return rootElement;\n }\n\n return this.setRootElement(this.addRootElement(null));\n};\n\n/**\n * Adds a given root element and returns it.\n *\n * @param {RootLike} [rootElement] The root element to be added.\n *\n * @return {RootLike} The added root element or an implicit root element.\n */\nCanvas.prototype.addRootElement = function(rootElement) {\n const idx = this._rootsIdx++;\n\n if (!rootElement) {\n rootElement = {\n id: '__implicitroot_' + idx,\n children: [],\n isImplicit: true\n };\n }\n\n const layerName = rootElement.layer = 'root-' + idx;\n\n this._ensureValid('root', rootElement);\n\n const layer = this.getLayer(layerName, PLANE_LAYER_INDEX);\n\n this.hideLayer(layerName);\n\n this._addRoot(rootElement, layer);\n\n this._planes.push({\n rootElement: rootElement,\n layer: layer\n });\n\n return rootElement;\n};\n\n/**\n * Removes a given root element and returns it.\n *\n * @param {RootLike|string} rootElement element or element ID\n *\n * @return {RootLike|undefined} removed element\n */\nCanvas.prototype.removeRootElement = function(rootElement) {\n\n if (typeof rootElement === 'string') {\n rootElement = this._elementRegistry.get(rootElement);\n }\n\n const plane = this._findPlaneForRoot(rootElement);\n\n if (!plane) {\n return;\n }\n\n // hook up life-cycle events\n this._removeRoot(rootElement);\n\n // clean up layer\n this._removeLayer(rootElement.layer);\n\n // clean up plane\n this._planes = this._planes.filter(function(plane) {\n return plane.rootElement !== rootElement;\n });\n\n // clean up active root\n if (this._rootElement === rootElement) {\n this._rootElement = null;\n }\n\n return rootElement;\n};\n\n\n/**\n * Sets a given element as the new root element for the canvas\n * and returns the new root element.\n *\n * @param {RootLike} rootElement The root element to be set.\n *\n * @return {RootLike} The set root element.\n */\nCanvas.prototype.setRootElement = function(rootElement) {\n\n if (rootElement === this._rootElement) {\n return rootElement;\n }\n\n let plane;\n\n if (!rootElement) {\n throw new Error('rootElement required');\n }\n\n plane = this._findPlaneForRoot(rootElement);\n\n // give set add semantics for backwards compatibility\n if (!plane) {\n rootElement = this.addRootElement(rootElement);\n }\n\n this._setRoot(rootElement);\n\n return rootElement;\n};\n\n\nCanvas.prototype._removeRoot = function(element) {\n const elementRegistry = this._elementRegistry,\n eventBus = this._eventBus;\n\n // simulate element remove event sequence\n eventBus.fire('root.remove', { element: element });\n eventBus.fire('root.removed', { element: element });\n\n elementRegistry.remove(element);\n};\n\n\nCanvas.prototype._addRoot = function(element, gfx) {\n const elementRegistry = this._elementRegistry,\n eventBus = this._eventBus;\n\n // resemble element add event sequence\n eventBus.fire('root.add', { element: element });\n\n elementRegistry.add(element, gfx);\n\n eventBus.fire('root.added', { element: element, gfx: gfx });\n};\n\n\nCanvas.prototype._setRoot = function(rootElement, layer) {\n\n const currentRoot = this._rootElement;\n\n if (currentRoot) {\n\n // un-associate previous root element \n this._elementRegistry.updateGraphics(currentRoot, null, true);\n\n // hide previous layer\n this.hideLayer(currentRoot.layer);\n }\n\n if (rootElement) {\n\n if (!layer) {\n layer = this._findPlaneForRoot(rootElement).layer;\n }\n\n // associate element with \n this._elementRegistry.updateGraphics(rootElement, this._svg, true);\n\n // show root layer\n this.showLayer(rootElement.layer);\n }\n\n this._rootElement = rootElement;\n\n this._eventBus.fire('root.set', { element: rootElement });\n};\n\nCanvas.prototype._ensureValid = function(type, element) {\n if (!element.id) {\n throw new Error('element must have an id');\n }\n\n if (this._elementRegistry.get(element.id)) {\n throw new Error('element <' + element.id + '> already exists');\n }\n\n const requiredAttrs = REQUIRED_MODEL_ATTRS[type];\n\n const valid = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.every)(requiredAttrs, function(attr) {\n return typeof element[attr] !== 'undefined';\n });\n\n if (!valid) {\n throw new Error(\n 'must supply { ' + requiredAttrs.join(', ') + ' } with ' + type);\n }\n};\n\nCanvas.prototype._setParent = function(element, parent, parentIndex) {\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_4__.add)(parent.children, element, parentIndex);\n element.parent = parent;\n};\n\n/**\n * Adds an element to the canvas.\n *\n * This wires the parent <-> child relationship between the element and\n * a explicitly specified parent or an implicit root element.\n *\n * During add it emits the events\n *\n * * <{type}.add> (element, parent)\n * * <{type}.added> (element, gfx)\n *\n * Extensions may hook into these events to perform their magic.\n *\n * @param {string} type\n * @param {ConnectionLike|ShapeLike} element\n * @param {ShapeLike} [parent]\n * @param {number} [parentIndex]\n *\n * @return {ConnectionLike|ShapeLike} The added element.\n */\nCanvas.prototype._addElement = function(type, element, parent, parentIndex) {\n\n parent = parent || this.getRootElement();\n\n const eventBus = this._eventBus,\n graphicsFactory = this._graphicsFactory;\n\n this._ensureValid(type, element);\n\n eventBus.fire(type + '.add', { element: element, parent: parent });\n\n this._setParent(element, parent, parentIndex);\n\n // create graphics\n const gfx = graphicsFactory.create(type, element, parentIndex);\n\n this._elementRegistry.add(element, gfx);\n\n // update its visual\n graphicsFactory.update(type, element, gfx);\n\n eventBus.fire(type + '.added', { element: element, gfx: gfx });\n\n return element;\n};\n\n/**\n * Adds a shape to the canvas.\n *\n * @param {ShapeLike} shape The shape to be added\n * @param {ParentLike} [parent] The shape's parent.\n * @param {number} [parentIndex] The index at which to add the shape to the parent's children.\n *\n * @return {ShapeLike} The added shape.\n */\nCanvas.prototype.addShape = function(shape, parent, parentIndex) {\n return this._addElement('shape', shape, parent, parentIndex);\n};\n\n/**\n * Adds a connection to the canvas.\n *\n * @param {ConnectionLike} connection The connection to be added.\n * @param {ParentLike} [parent] The connection's parent.\n * @param {number} [parentIndex] The index at which to add the connection to the parent's children.\n *\n * @return {ConnectionLike} The added connection.\n */\nCanvas.prototype.addConnection = function(connection, parent, parentIndex) {\n return this._addElement('connection', connection, parent, parentIndex);\n};\n\n\n/**\n * Internal remove element\n */\nCanvas.prototype._removeElement = function(element, type) {\n\n const elementRegistry = this._elementRegistry,\n graphicsFactory = this._graphicsFactory,\n eventBus = this._eventBus;\n\n element = elementRegistry.get(element.id || element);\n\n if (!element) {\n\n // element was removed already\n return;\n }\n\n eventBus.fire(type + '.remove', { element: element });\n\n graphicsFactory.remove(element);\n\n // unset parent <-> child relationship\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_4__.remove)(element.parent && element.parent.children, element);\n element.parent = null;\n\n eventBus.fire(type + '.removed', { element: element });\n\n elementRegistry.remove(element);\n\n return element;\n};\n\n\n/**\n * Removes a shape from the canvas.\n *\n * @fires ShapeRemoveEvent\n * @fires ShapeRemovedEvent\n *\n * @param {ShapeLike|string} shape The shape or its ID.\n *\n * @return {ShapeLike} The removed shape.\n */\nCanvas.prototype.removeShape = function(shape) {\n\n /**\n * An event indicating that a shape is about to be removed from the canvas.\n *\n * @memberOf Canvas\n *\n * @event ShapeRemoveEvent\n * @type {Object}\n * @property {ShapeLike} element The shape.\n * @property {SVGElement} gfx The graphical element.\n */\n\n /**\n * An event indicating that a shape has been removed from the canvas.\n *\n * @memberOf Canvas\n *\n * @event ShapeRemovedEvent\n * @type {Object}\n * @property {ShapeLike} element The shape.\n * @property {SVGElement} gfx The graphical element.\n */\n return this._removeElement(shape, 'shape');\n};\n\n\n/**\n * Removes a connection from the canvas.\n *\n * @fires ConnectionRemoveEvent\n * @fires ConnectionRemovedEvent\n *\n * @param {ConnectionLike|string} connection The connection or its ID.\n *\n * @return {ConnectionLike} The removed connection.\n */\nCanvas.prototype.removeConnection = function(connection) {\n\n /**\n * An event indicating that a connection is about to be removed from the canvas.\n *\n * @memberOf Canvas\n *\n * @event ConnectionRemoveEvent\n * @type {Object}\n * @property {ConnectionLike} element The connection.\n * @property {SVGElement} gfx The graphical element.\n */\n\n /**\n * An event indicating that a connection has been removed from the canvas.\n *\n * @memberOf Canvas\n *\n * @event ConnectionRemovedEvent\n * @type {Object}\n * @property {ConnectionLike} element The connection.\n * @property {SVGElement} gfx The graphical element.\n */\n return this._removeElement(connection, 'connection');\n};\n\n\n/**\n * Returns the graphical element of an element.\n *\n * @param {ShapeLike|ConnectionLike|string} element The element or its ID.\n * @param {boolean} [secondary=false] Whether to return the secondary graphical element.\n *\n * @return {SVGElement} The graphical element.\n */\nCanvas.prototype.getGraphics = function(element, secondary) {\n return this._elementRegistry.getGraphics(element, secondary);\n};\n\n\n/**\n * Perform a viewbox update via a given change function.\n *\n * @param {Function} changeFn\n */\nCanvas.prototype._changeViewbox = function(changeFn) {\n\n // notify others of the upcoming viewbox change\n this._eventBus.fire('canvas.viewbox.changing');\n\n // perform actual change\n changeFn.apply(this);\n\n // reset the cached viewbox so that\n // a new get operation on viewbox or zoom\n // triggers a viewbox re-computation\n this._cachedViewbox = null;\n\n // notify others of the change; this step\n // may or may not be debounced\n this._viewboxChanged();\n};\n\nCanvas.prototype._viewboxChanged = function() {\n this._eventBus.fire('canvas.viewbox.changed', { viewbox: this.viewbox() });\n};\n\n\n/**\n * Gets or sets the view box of the canvas, i.e. the\n * area that is currently displayed.\n *\n * The getter may return a cached viewbox (if it is currently\n * changing). To force a recomputation, pass `false` as the first argument.\n *\n * @example\n *\n * ```javascript\n * canvas.viewbox({ x: 100, y: 100, width: 500, height: 500 })\n *\n * // sets the visible area of the diagram to (100|100) -> (600|100)\n * // and and scales it according to the diagram width\n *\n * const viewbox = canvas.viewbox(); // pass `false` to force recomputing the box.\n *\n * console.log(viewbox);\n * // {\n * // inner: Dimensions,\n * // outer: Dimensions,\n * // scale,\n * // x, y,\n * // width, height\n * // }\n *\n * // if the current diagram is zoomed and scrolled, you may reset it to the\n * // default zoom via this method, too:\n *\n * const zoomedAndScrolledViewbox = canvas.viewbox();\n *\n * canvas.viewbox({\n * x: 0,\n * y: 0,\n * width: zoomedAndScrolledViewbox.outer.width,\n * height: zoomedAndScrolledViewbox.outer.height\n * });\n * ```\n *\n * @param {Rect} [box] The viewbox to be set.\n *\n * @return {CanvasViewbox} The set viewbox.\n */\nCanvas.prototype.viewbox = function(box) {\n\n if (box === undefined && this._cachedViewbox) {\n return this._cachedViewbox;\n }\n\n const viewport = this._viewport,\n outerBox = this.getSize();\n let innerBox,\n matrix,\n activeLayer,\n transform,\n scale,\n x, y;\n\n if (!box) {\n\n // compute the inner box based on the\n // diagrams active layer. This allows us to exclude\n // external components, such as overlays\n\n activeLayer = this._rootElement ? this.getActiveLayer() : null;\n innerBox = activeLayer && activeLayer.getBBox() || {};\n\n transform = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.transform)(viewport);\n matrix = transform ? transform.matrix : (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.createMatrix)();\n scale = round(matrix.a, 1000);\n\n x = round(-matrix.e || 0, 1000);\n y = round(-matrix.f || 0, 1000);\n\n box = this._cachedViewbox = {\n x: x ? x / scale : 0,\n y: y ? y / scale : 0,\n width: outerBox.width / scale,\n height: outerBox.height / scale,\n scale: scale,\n inner: {\n width: innerBox.width || 0,\n height: innerBox.height || 0,\n x: innerBox.x || 0,\n y: innerBox.y || 0\n },\n outer: outerBox\n };\n\n return box;\n } else {\n\n this._changeViewbox(function() {\n scale = Math.min(outerBox.width / box.width, outerBox.height / box.height);\n\n const matrix = this._svg.createSVGMatrix()\n .scale(scale)\n .translate(-box.x, -box.y);\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.transform)(viewport, matrix);\n });\n }\n\n return box;\n};\n\n\n/**\n * Gets or sets the scroll of the canvas.\n *\n * @param {ScrollDelta} [delta] The scroll to be set.\n *\n * @return {Point}\n */\nCanvas.prototype.scroll = function(delta) {\n\n const node = this._viewport;\n let matrix = node.getCTM();\n\n if (delta) {\n this._changeViewbox(function() {\n delta = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({ dx: 0, dy: 0 }, delta || {});\n\n matrix = this._svg.createSVGMatrix().translate(delta.dx, delta.dy).multiply(matrix);\n\n setCTM(node, matrix);\n });\n }\n\n return { x: matrix.e, y: matrix.f };\n};\n\n/**\n * Scrolls the viewbox to contain the given element.\n * Optionally specify a padding to be applied to the edges.\n *\n * @param {ShapeLike|ConnectionLike|string} element The element to scroll to or its ID.\n * @param {RectTRBL|number} [padding=100] The padding to be applied. Can also specify top, bottom, left and right.\n */\nCanvas.prototype.scrollToElement = function(element, padding) {\n let defaultPadding = 100;\n\n if (typeof element === 'string') {\n element = this._elementRegistry.get(element);\n }\n\n // set to correct rootElement\n const rootElement = this.findRoot(element);\n\n if (rootElement !== this.getRootElement()) {\n this.setRootElement(rootElement);\n }\n\n // element is rootElement, do not change viewport\n if (rootElement === element) {\n return;\n }\n\n if (!padding) {\n padding = {};\n }\n if (typeof padding === 'number') {\n defaultPadding = padding;\n }\n\n padding = {\n top: padding.top || defaultPadding,\n right: padding.right || defaultPadding,\n bottom: padding.bottom || defaultPadding,\n left: padding.left || defaultPadding\n };\n\n const elementBounds = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_3__.getBBox)(element),\n elementTrbl = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_5__.asTRBL)(elementBounds),\n viewboxBounds = this.viewbox(),\n zoom = this.zoom();\n let dx, dy;\n\n // shrink viewboxBounds with padding\n viewboxBounds.y += padding.top / zoom;\n viewboxBounds.x += padding.left / zoom;\n viewboxBounds.width -= (padding.right + padding.left) / zoom;\n viewboxBounds.height -= (padding.bottom + padding.top) / zoom;\n\n const viewboxTrbl = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_5__.asTRBL)(viewboxBounds);\n\n const canFit = elementBounds.width < viewboxBounds.width && elementBounds.height < viewboxBounds.height;\n\n if (!canFit) {\n\n // top-left when element can't fit\n dx = elementBounds.x - viewboxBounds.x;\n dy = elementBounds.y - viewboxBounds.y;\n\n } else {\n\n const dRight = Math.max(0, elementTrbl.right - viewboxTrbl.right),\n dLeft = Math.min(0, elementTrbl.left - viewboxTrbl.left),\n dBottom = Math.max(0, elementTrbl.bottom - viewboxTrbl.bottom),\n dTop = Math.min(0, elementTrbl.top - viewboxTrbl.top);\n\n dx = dRight || dLeft;\n dy = dBottom || dTop;\n\n }\n\n this.scroll({ dx: -dx * zoom, dy: -dy * zoom });\n};\n\n/**\n * Gets or sets the current zoom of the canvas, optionally zooming to the\n * specified position.\n *\n * The getter may return a cached zoom level. Call it with `false` as the first\n * argument to force recomputation of the current level.\n *\n * @param {number|'fit-viewport'} [newScale] The new zoom level, either a number,\n * i.e. 0.9, or `fit-viewport` to adjust the size to fit the current viewport.\n * @param {Point} [center] The reference point { x: ..., y: ...} to zoom to.\n *\n * @return {number} The set zoom level.\n */\nCanvas.prototype.zoom = function(newScale, center) {\n\n if (!newScale) {\n return this.viewbox(newScale).scale;\n }\n\n if (newScale === 'fit-viewport') {\n return this._fitViewport(center);\n }\n\n let outer,\n matrix;\n\n this._changeViewbox(function() {\n\n if (typeof center !== 'object') {\n outer = this.viewbox().outer;\n\n center = {\n x: outer.width / 2,\n y: outer.height / 2\n };\n }\n\n matrix = this._setZoom(newScale, center);\n });\n\n return round(matrix.a, 1000);\n};\n\nfunction setCTM(node, m) {\n const mstr = 'matrix(' + m.a + ',' + m.b + ',' + m.c + ',' + m.d + ',' + m.e + ',' + m.f + ')';\n node.setAttribute('transform', mstr);\n}\n\nCanvas.prototype._fitViewport = function(center) {\n\n const vbox = this.viewbox(),\n outer = vbox.outer,\n inner = vbox.inner;\n let newScale,\n newViewbox;\n\n // display the complete diagram without zooming in.\n // instead of relying on internal zoom, we perform a\n // hard reset on the canvas viewbox to realize this\n //\n // if diagram does not need to be zoomed in, we focus it around\n // the diagram origin instead\n\n if (inner.x >= 0 &&\n inner.y >= 0 &&\n inner.x + inner.width <= outer.width &&\n inner.y + inner.height <= outer.height &&\n !center) {\n\n newViewbox = {\n x: 0,\n y: 0,\n width: Math.max(inner.width + inner.x, outer.width),\n height: Math.max(inner.height + inner.y, outer.height)\n };\n } else {\n\n newScale = Math.min(1, outer.width / inner.width, outer.height / inner.height);\n newViewbox = {\n x: inner.x + (center ? inner.width / 2 - outer.width / newScale / 2 : 0),\n y: inner.y + (center ? inner.height / 2 - outer.height / newScale / 2 : 0),\n width: outer.width / newScale,\n height: outer.height / newScale\n };\n }\n\n this.viewbox(newViewbox);\n\n return this.viewbox(false).scale;\n};\n\n\nCanvas.prototype._setZoom = function(scale, center) {\n\n const svg = this._svg,\n viewport = this._viewport;\n\n const matrix = svg.createSVGMatrix();\n const point = svg.createSVGPoint();\n\n let centerPoint,\n originalPoint,\n currentMatrix,\n scaleMatrix,\n newMatrix;\n\n currentMatrix = viewport.getCTM();\n\n const currentScale = currentMatrix.a;\n\n if (center) {\n centerPoint = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(point, center);\n\n // revert applied viewport transformations\n originalPoint = centerPoint.matrixTransform(currentMatrix.inverse());\n\n // create scale matrix\n scaleMatrix = matrix\n .translate(originalPoint.x, originalPoint.y)\n .scale(1 / currentScale * scale)\n .translate(-originalPoint.x, -originalPoint.y);\n\n newMatrix = currentMatrix.multiply(scaleMatrix);\n } else {\n newMatrix = matrix.scale(scale);\n }\n\n setCTM(this._viewport, newMatrix);\n\n return newMatrix;\n};\n\n\n/**\n * Returns the size of the canvas.\n *\n * @return {Dimensions} The size of the canvas.\n */\nCanvas.prototype.getSize = function() {\n return {\n width: this._container.clientWidth,\n height: this._container.clientHeight\n };\n};\n\n\n/**\n * Returns the absolute bounding box of an element.\n *\n * The absolute bounding box may be used to display overlays in the callers\n * (browser) coordinate system rather than the zoomed in/out canvas coordinates.\n *\n * @param {ShapeLike|ConnectionLike} element The element.\n *\n * @return {Rect} The element's absolute bounding box.\n */\nCanvas.prototype.getAbsoluteBBox = function(element) {\n const vbox = this.viewbox();\n let bbox;\n\n // connection\n // use svg bbox\n if (element.waypoints) {\n const gfx = this.getGraphics(element);\n\n bbox = gfx.getBBox();\n }\n\n // shapes\n // use data\n else {\n bbox = element;\n }\n\n const x = bbox.x * vbox.scale - vbox.x * vbox.scale;\n const y = bbox.y * vbox.scale - vbox.y * vbox.scale;\n\n const width = bbox.width * vbox.scale;\n const height = bbox.height * vbox.scale;\n\n return {\n x: x,\n y: y,\n width: width,\n height: height\n };\n};\n\n/**\n * Fires an event so other modules can react to the canvas resizing.\n */\nCanvas.prototype.resized = function() {\n\n // force recomputation of view box\n delete this._cachedViewbox;\n\n this._eventBus.fire('canvas.resized');\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/core/Canvas.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/core/ElementFactory.js": +/*!************************************************************!*\ + !*** ./node_modules/diagram-js/lib/core/ElementFactory.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementFactory)\n/* harmony export */ });\n/* harmony import */ var _model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../model */ \"./node_modules/diagram-js/lib/model/index.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n/**\n * @typedef {import('../model/Types').Element} Element\n * @typedef {import('../model/Types').Connection} Connection\n * @typedef {import('../model/Types').Label} Label\n * @typedef {import('../model/Types').Root} Root\n * @typedef {import('../model/Types').Shape} Shape\n */\n\n/**\n * A factory for model elements.\n *\n * @template {Connection} [T=Connection]\n * @template {Label} [U=Label]\n * @template {Root} [V=Root]\n * @template {Shape} [W=Shape]\n */\nfunction ElementFactory() {\n this._uid = 12;\n}\n\n/**\n * Create a root element.\n *\n * @param {Partial} [attrs]\n *\n * @return {V} The created root element.\n */\nElementFactory.prototype.createRoot = function(attrs) {\n return this.create('root', attrs);\n};\n\n/**\n * Create a label.\n *\n * @param {Partial
    \n *
  • redrawing shapes and connections on change
  • \n *
\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {ElementRegistry} elementRegistry\n * @param {GraphicsFactory} graphicsFactory\n */\nfunction ChangeSupport(\n eventBus, canvas, elementRegistry,\n graphicsFactory) {\n\n\n // redraw shapes / connections on change\n\n eventBus.on('element.changed', function(event) {\n\n var element = event.element;\n\n // element might have been deleted and replaced by new element with same ID\n // thus check for parent of element except for root element\n if (element.parent || element === canvas.getRootElement()) {\n event.gfx = elementRegistry.getGraphics(element);\n }\n\n // shape + gfx may have been deleted\n if (!event.gfx) {\n return;\n }\n\n eventBus.fire((0,_util_Elements__WEBPACK_IMPORTED_MODULE_0__.getType)(element) + '.changed', event);\n });\n\n eventBus.on('elements.changed', function(event) {\n\n var elements = event.elements;\n\n elements.forEach(function(e) {\n eventBus.fire('element.changed', { element: e });\n });\n\n graphicsFactory.updateContainments(elements);\n });\n\n eventBus.on('shape.changed', function(event) {\n graphicsFactory.update('shape', event.element, event.gfx);\n });\n\n eventBus.on('connection.changed', function(event) {\n graphicsFactory.update('connection', event.element, event.gfx);\n });\n}\n\nChangeSupport.$inject = [\n 'eventBus',\n 'canvas',\n 'elementRegistry',\n 'graphicsFactory'\n];\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/change-support/ChangeSupport.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/change-support/index.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/change-support/index.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ChangeSupport__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ChangeSupport */ \"./node_modules/diagram-js/lib/features/change-support/ChangeSupport.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'changeSupport' ],\n changeSupport: [ 'type', _ChangeSupport__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/change-support/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/clipboard/Clipboard.js": +/*!*********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/clipboard/Clipboard.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Clipboard)\n/* harmony export */ });\n/**\n * A clip board stub\n */\nfunction Clipboard() {}\n\n\nClipboard.prototype.get = function() {\n return this._data;\n};\n\nClipboard.prototype.set = function(data) {\n this._data = data;\n};\n\nClipboard.prototype.clear = function() {\n var data = this._data;\n\n delete this._data;\n\n return data;\n};\n\nClipboard.prototype.isEmpty = function() {\n return !this._data;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/clipboard/Clipboard.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/clipboard/index.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/clipboard/index.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Clipboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Clipboard */ \"./node_modules/diagram-js/lib/features/clipboard/Clipboard.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n clipboard: [ 'type', _Clipboard__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/clipboard/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/connect/Connect.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/connect/Connect.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Connect),\n/* harmony export */ isReverse: () => (/* binding */ isReverse)\n/* harmony export */ });\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {import('../dragging/Dragging').default} Dragging\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../modeling/Modeling').default} Modeling\n * @typedef {import('../rules/Rules').default} Rules\n */\n\n/**\n * @param {EventBus} eventBus\n * @param {Dragging} dragging\n * @param {Modeling} modeling\n * @param {Rules} rules\n */\nfunction Connect(eventBus, dragging, modeling, rules) {\n\n // rules\n\n function canConnect(source, target) {\n return rules.allowed('connection.create', {\n source: source,\n target: target\n });\n }\n\n function canConnectReverse(source, target) {\n return canConnect(target, source);\n }\n\n\n // event handlers\n\n eventBus.on('connect.hover', function(event) {\n var context = event.context,\n start = context.start,\n hover = event.hover,\n canExecute;\n\n // cache hover state\n context.hover = hover;\n\n canExecute = context.canExecute = canConnect(start, hover);\n\n // ignore hover\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNil)(canExecute)) {\n return;\n }\n\n if (canExecute !== false) {\n context.source = start;\n context.target = hover;\n\n return;\n }\n\n canExecute = context.canExecute = canConnectReverse(start, hover);\n\n // ignore hover\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNil)(canExecute)) {\n return;\n }\n\n if (canExecute !== false) {\n context.source = hover;\n context.target = start;\n }\n });\n\n eventBus.on([ 'connect.out', 'connect.cleanup' ], function(event) {\n var context = event.context;\n\n context.hover = null;\n context.source = null;\n context.target = null;\n\n context.canExecute = false;\n });\n\n eventBus.on('connect.end', function(event) {\n var context = event.context,\n canExecute = context.canExecute,\n connectionStart = context.connectionStart,\n connectionEnd = {\n x: event.x,\n y: event.y\n },\n source = context.source,\n target = context.target;\n\n if (!canExecute) {\n return false;\n }\n\n var attrs = null,\n hints = {\n connectionStart: isReverse(context) ? connectionEnd : connectionStart,\n connectionEnd: isReverse(context) ? connectionStart : connectionEnd\n };\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(canExecute)) {\n attrs = canExecute;\n }\n\n context.connection = modeling.connect(source, target, attrs, hints);\n });\n\n\n // API\n\n /**\n * Start connect operation.\n *\n * @param {MouseEvent|TouchEvent} event\n * @param {Element} start\n * @param {Point} [connectionStart]\n * @param {boolean} [autoActivate=false]\n */\n this.start = function(event, start, connectionStart, autoActivate) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(connectionStart)) {\n autoActivate = connectionStart;\n connectionStart = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(start);\n }\n\n dragging.init(event, 'connect', {\n autoActivate: autoActivate,\n data: {\n shape: start,\n context: {\n start: start,\n connectionStart: connectionStart\n }\n }\n });\n };\n}\n\nConnect.$inject = [\n 'eventBus',\n 'dragging',\n 'modeling',\n 'rules'\n];\n\n\n// helpers //////////\n\nfunction isReverse(context) {\n var hover = context.hover,\n source = context.source,\n target = context.target;\n\n return hover && source && hover === source && source !== target;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/connect/Connect.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/connect/ConnectPreview.js": +/*!************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/connect/ConnectPreview.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ConnectPreview)\n/* harmony export */ });\n/* harmony import */ var _Connect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Connect */ \"./node_modules/diagram-js/lib/features/connect/Connect.js\");\n\n\n/**\n * @typedef {import('didi').Injector} Injector\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n */\n\nvar HIGH_PRIORITY = 1100,\n LOW_PRIORITY = 900;\n\nvar MARKER_OK = 'connect-ok',\n MARKER_NOT_OK = 'connect-not-ok';\n\n/**\n * Shows connection preview during connect.\n *\n * @param {Injector} injector\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n */\nfunction ConnectPreview(injector, eventBus, canvas) {\n var connectionPreview = injector.get('connectionPreview', false);\n\n connectionPreview && eventBus.on('connect.move', function(event) {\n var context = event.context,\n canConnect = context.canExecute,\n hover = context.hover,\n source = context.source,\n start = context.start,\n startPosition = context.startPosition,\n target = context.target,\n connectionStart = context.connectionStart || startPosition,\n connectionEnd = context.connectionEnd || {\n x: event.x,\n y: event.y\n },\n previewStart = connectionStart,\n previewEnd = connectionEnd;\n\n if ((0,_Connect__WEBPACK_IMPORTED_MODULE_0__.isReverse)(context)) {\n previewStart = connectionEnd;\n previewEnd = connectionStart;\n }\n\n connectionPreview.drawPreview(context, canConnect, {\n source: source || start,\n target: target || hover,\n connectionStart: previewStart,\n connectionEnd: previewEnd\n });\n });\n\n eventBus.on('connect.hover', LOW_PRIORITY, function(event) {\n var context = event.context,\n hover = event.hover,\n canExecute = context.canExecute;\n\n // ignore hover\n if (canExecute === null) {\n return;\n }\n\n canvas.addMarker(hover, canExecute ? MARKER_OK : MARKER_NOT_OK);\n });\n\n eventBus.on([\n 'connect.out',\n 'connect.cleanup'\n ], HIGH_PRIORITY, function(event) {\n var hover = event.hover;\n\n if (hover) {\n canvas.removeMarker(hover, MARKER_OK);\n canvas.removeMarker(hover, MARKER_NOT_OK);\n }\n });\n\n connectionPreview && eventBus.on('connect.cleanup', function(event) {\n connectionPreview.cleanUp(event.context);\n });\n}\n\nConnectPreview.$inject = [\n 'injector',\n 'eventBus',\n 'canvas'\n];\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/connect/ConnectPreview.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/connect/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/connect/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rules */ \"./node_modules/diagram-js/lib/features/rules/index.js\");\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dragging */ \"./node_modules/diagram-js/lib/features/dragging/index.js\");\n/* harmony import */ var _Connect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Connect */ \"./node_modules/diagram-js/lib/features/connect/Connect.js\");\n/* harmony import */ var _ConnectPreview__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ConnectPreview */ \"./node_modules/diagram-js/lib/features/connect/ConnectPreview.js\");\n\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _selection__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _rules__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _dragging__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n ],\n __init__: [\n 'connectPreview'\n ],\n connect: [ 'type', _Connect__WEBPACK_IMPORTED_MODULE_3__[\"default\"] ],\n connectPreview: [ 'type', _ConnectPreview__WEBPACK_IMPORTED_MODULE_4__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/connect/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/connection-preview/ConnectionPreview.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/connection-preview/ConnectionPreview.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ConnectionPreview)\n/* harmony export */ });\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var _util_RenderUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/RenderUtil */ \"./node_modules/diagram-js/lib/util/RenderUtil.js\");\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n * @typedef {import('../../model/Types').Connection} Connection\n * @typedef {import('../../model/Types').Shape} Shape\n *\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {import('didi').Injector} Injector\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/ElementFactory').default} ElementFactory\n * @typedef {import('../../core/GraphicsFactory').default} GraphicsFactory\n */\n\nvar MARKER_CONNECTION_PREVIEW = 'djs-dragger';\n\n/**\n * Draws connection preview. Optionally, this can use layouter and connection docking to draw\n * better looking previews.\n *\n * @param {Injector} injector\n * @param {Canvas} canvas\n * @param {GraphicsFactory} graphicsFactory\n * @param {ElementFactory} elementFactory\n */\nfunction ConnectionPreview(\n injector,\n canvas,\n graphicsFactory,\n elementFactory\n) {\n this._canvas = canvas;\n this._graphicsFactory = graphicsFactory;\n this._elementFactory = elementFactory;\n\n // optional components\n this._connectionDocking = injector.get('connectionDocking', false);\n this._layouter = injector.get('layouter', false);\n}\n\nConnectionPreview.$inject = [\n 'injector',\n 'canvas',\n 'graphicsFactory',\n 'elementFactory'\n];\n\n/**\n * Draw connection preview.\n *\n * Provide at least one of and to create a preview.\n * In the clean up stage, call `connectionPreview#cleanUp` with the context to remove preview.\n *\n * @param {Object} context\n * @param {Object|boolean} canConnect\n * @param {Object} hints\n * @param {Element} [hints.source] source element\n * @param {Element} [hints.target] target element\n * @param {Point} [hints.connectionStart] connection preview start\n * @param {Point} [hints.connectionEnd] connection preview end\n * @param {Point[]} [hints.waypoints] provided waypoints for preview\n * @param {boolean} [hints.noLayout] true if preview should not be laid out\n * @param {boolean} [hints.noCropping] true if preview should not be cropped\n * @param {boolean} [hints.noNoop] true if simple connection should not be drawn\n */\nConnectionPreview.prototype.drawPreview = function(context, canConnect, hints) {\n\n hints = hints || {};\n\n var connectionPreviewGfx = context.connectionPreviewGfx,\n getConnection = context.getConnection,\n source = hints.source,\n target = hints.target,\n waypoints = hints.waypoints,\n connectionStart = hints.connectionStart,\n connectionEnd = hints.connectionEnd,\n noLayout = hints.noLayout,\n noCropping = hints.noCropping,\n noNoop = hints.noNoop,\n connection;\n\n var self = this;\n\n if (!connectionPreviewGfx) {\n connectionPreviewGfx = context.connectionPreviewGfx = this.createConnectionPreviewGfx();\n }\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.clear)(connectionPreviewGfx);\n\n if (!getConnection) {\n getConnection = context.getConnection = cacheReturnValues(function(canConnect, source, target) {\n return self.getConnection(canConnect, source, target);\n });\n }\n\n if (canConnect) {\n connection = getConnection(canConnect, source, target);\n }\n\n if (!connection) {\n !noNoop && this.drawNoopPreview(connectionPreviewGfx, hints);\n return;\n }\n\n connection.waypoints = waypoints || [];\n\n // optional layout\n if (this._layouter && !noLayout) {\n connection.waypoints = this._layouter.layoutConnection(connection, {\n source: source,\n target: target,\n connectionStart: connectionStart,\n connectionEnd: connectionEnd,\n waypoints: hints.waypoints || connection.waypoints\n });\n }\n\n // fallback if no waypoints were provided nor created with layouter\n if (!connection.waypoints || !connection.waypoints.length) {\n connection.waypoints = [\n source ? (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(source) : connectionStart,\n target ? (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(target) : connectionEnd\n ];\n }\n\n // optional cropping\n if (this._connectionDocking && (source || target) && !noCropping) {\n connection.waypoints = this._connectionDocking.getCroppedWaypoints(connection, source, target);\n }\n\n this._graphicsFactory.drawConnection(connectionPreviewGfx, connection, {\n stroke: 'var(--element-dragger-color)'\n });\n};\n\n/**\n * Draw simple connection between source and target or provided points.\n *\n * @param {SVGElement} connectionPreviewGfx container for the connection\n * @param {Object} hints\n * @param {Element} [hints.source] source element\n * @param {Element} [hints.target] target element\n * @param {Point} [hints.connectionStart] required if source is not provided\n * @param {Point} [hints.connectionEnd] required if target is not provided\n */\nConnectionPreview.prototype.drawNoopPreview = function(connectionPreviewGfx, hints) {\n var source = hints.source,\n target = hints.target,\n start = hints.connectionStart || (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(source),\n end = hints.connectionEnd || (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(target);\n\n var waypoints = this.cropWaypoints(start, end, source, target);\n\n var connection = this.createNoopConnection(waypoints[0], waypoints[1]);\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.append)(connectionPreviewGfx, connection);\n};\n\n/**\n * Return cropped waypoints.\n *\n * @param {Point} start\n * @param {Point} end\n * @param {Element} source\n * @param {Element} target\n *\n * @return {Point[]}\n */\nConnectionPreview.prototype.cropWaypoints = function(start, end, source, target) {\n var graphicsFactory = this._graphicsFactory,\n sourcePath = source && graphicsFactory.getShapePath(source),\n targetPath = target && graphicsFactory.getShapePath(target),\n connectionPath = graphicsFactory.getConnectionPath({ waypoints: [ start, end ] });\n\n start = (source && (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getElementLineIntersection)(sourcePath, connectionPath, true)) || start;\n end = (target && (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getElementLineIntersection)(targetPath, connectionPath, false)) || end;\n\n return [ start, end ];\n};\n\n/**\n * Remove connection preview container if it exists.\n *\n * @param {Object} [context]\n * @param {SVGElement} [context.connectionPreviewGfx] preview container\n */\nConnectionPreview.prototype.cleanUp = function(context) {\n if (context && context.connectionPreviewGfx) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.remove)(context.connectionPreviewGfx);\n }\n};\n\n/**\n * Get connection that connects source and target.\n *\n * @param {Object|boolean} canConnect\n *\n * @return {Connection}\n */\nConnectionPreview.prototype.getConnection = function(canConnect) {\n var attrs = ensureConnectionAttrs(canConnect);\n\n return this._elementFactory.createConnection(attrs);\n};\n\n\n/**\n * Add and return preview graphics.\n *\n * @return {SVGElement}\n */\nConnectionPreview.prototype.createConnectionPreviewGfx = function() {\n var gfx = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.create)('g');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(gfx, {\n pointerEvents: 'none'\n });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.classes)(gfx).add(MARKER_CONNECTION_PREVIEW);\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.append)(this._canvas.getActiveLayer(), gfx);\n\n return gfx;\n};\n\n/**\n * Create and return simple connection.\n *\n * @param {Point} start\n * @param {Point} end\n *\n * @return {SVGElement}\n */\nConnectionPreview.prototype.createNoopConnection = function(start, end) {\n return (0,_util_RenderUtil__WEBPACK_IMPORTED_MODULE_2__.createLine)([ start, end ], {\n 'stroke': '#333',\n 'strokeDasharray': [ 1 ],\n 'strokeWidth': 2,\n 'pointer-events': 'none'\n });\n};\n\n// helpers //////////\n\n/**\n * Returns function that returns cached return values referenced by stringified first argument.\n *\n * @param {Function} fn\n *\n * @return {Function}\n */\nfunction cacheReturnValues(fn) {\n var returnValues = {};\n\n /**\n * Return cached return value referenced by stringified first argument.\n *\n * @return {*}\n */\n return function(firstArgument) {\n var key = JSON.stringify(firstArgument);\n\n var returnValue = returnValues[key];\n\n if (!returnValue) {\n returnValue = returnValues[key] = fn.apply(null, arguments);\n }\n\n return returnValue;\n };\n}\n\n/**\n * Ensure connection attributes is object.\n *\n * @param {Object|boolean} canConnect\n *\n * @return {Object}\n */\nfunction ensureConnectionAttrs(canConnect) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isObject)(canConnect)) {\n return canConnect;\n } else {\n return {};\n }\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/connection-preview/ConnectionPreview.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/connection-preview/index.js": +/*!**************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/connection-preview/index.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ConnectionPreview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ConnectionPreview */ \"./node_modules/diagram-js/lib/features/connection-preview/ConnectionPreview.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'connectionPreview' ],\n connectionPreview: [ 'type', _ConnectionPreview__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/connection-preview/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/context-pad/ContextPad.js": +/*!************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/context-pad/ContextPad.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContextPad)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_EscapeUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/EscapeUtil */ \"./node_modules/diagram-js/lib/util/EscapeUtil.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n\n\nvar MARKER_HIDDEN = 'djs-element-hidden';\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../util/Types').Rect} Rect\n * @typedef {import('../../util/Types').RectTRBL} RectTRBL\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../../scheduler/Scheduler').default} Scheduler\n *\n * @typedef {import('./ContextPadProvider').default} ContextPadProvider\n * @typedef {import('./ContextPadProvider').ContextPadEntries} ContextPadEntries\n *\n */\n\n/**\n * @template {Element} [ElementType=Element]\n *\n * @typedef {ElementType|ElementType[]} ContextPadTarget\n */\n\nvar entrySelector = '.entry';\n\nvar DEFAULT_PRIORITY = 1000;\nvar CONTEXT_PAD_MARGIN = 8;\nvar HOVER_DELAY = 300;\n\n/**\n * A context pad that displays element specific, contextual actions next\n * to a diagram element.\n *\n * @param {Canvas} canvas\n * @param {ElementRegistry} elementRegistry\n * @param {EventBus} eventBus\n * @param {Scheduler} scheduler\n */\nfunction ContextPad(canvas, elementRegistry, eventBus, scheduler) {\n\n this._canvas = canvas;\n this._elementRegistry = elementRegistry;\n this._eventBus = eventBus;\n this._scheduler = scheduler;\n\n this._current = null;\n\n this._init();\n}\n\nContextPad.$inject = [\n 'canvas',\n 'elementRegistry',\n 'eventBus',\n 'scheduler'\n];\n\n\n/**\n * Registers events needed for interaction with other components.\n */\nContextPad.prototype._init = function() {\n var self = this;\n\n this._eventBus.on('selection.changed', function(event) {\n\n var selection = event.newSelection;\n\n var target = selection.length\n ? selection.length === 1\n ? selection[0]\n : selection\n : null;\n\n if (target) {\n self.open(target, true);\n } else {\n self.close();\n }\n });\n\n this._eventBus.on('elements.changed', function(event) {\n var elements = event.elements,\n current = self._current;\n\n if (!current) {\n return;\n }\n\n var target = current.target;\n\n var targets = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? target : [ target ];\n\n var targetsChanged = targets.filter(function(element) {\n return elements.includes(element);\n });\n\n if (targetsChanged.length) {\n\n // (1) close\n self.close();\n\n var targetsNew = targets.filter(function(element) {\n return self._elementRegistry.get(element.id);\n });\n\n if (targetsNew.length) {\n\n // (2) re-open with new targets being all previous targets that still\n // exist\n self._updateAndOpen(targetsNew.length > 1 ? targetsNew : targetsNew[ 0 ]);\n }\n }\n });\n\n this._eventBus.on('canvas.viewbox.changed', function() {\n self._updatePosition();\n });\n\n this._eventBus.on('element.marker.update', function(event) {\n if (!self.isOpen()) {\n return;\n }\n\n var element = event.element;\n\n var current = self._current;\n\n var targets = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(current.target) ? current.target : [ current.target ];\n\n if (!targets.includes(element)) {\n return;\n }\n\n self._updateVisibility();\n });\n\n this._container = this._createContainer();\n};\n\nContextPad.prototype._createContainer = function() {\n var container = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)('
');\n\n this._canvas.getContainer().appendChild(container);\n\n return container;\n};\n\n/**\n * @overlord\n *\n * Register a context pad provider with the default priority. See\n * {@link ContextPadProvider} for examples.\n *\n * @param {ContextPadProvider} provider\n */\n\n/**\n * Register a context pad provider with the given priority. See\n * {@link ContextPadProvider} for examples.\n *\n * @param {number} priority\n * @param {ContextPadProvider} provider\n */\nContextPad.prototype.registerProvider = function(priority, provider) {\n if (!provider) {\n provider = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n this._eventBus.on('contextPad.getProviders', priority, function(event) {\n event.providers.push(provider);\n });\n};\n\n\n/**\n * Get context pad entries for given elements.\n *\n * @param {ContextPadTarget} target\n *\n * @return {ContextPadEntries} list of entries\n */\nContextPad.prototype.getEntries = function(target) {\n var providers = this._getProviders();\n\n var provideFn = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)\n ? 'getMultiElementContextPadEntries'\n : 'getContextPadEntries';\n\n var entries = {};\n\n // loop through all providers and their entries.\n // group entries by id so that overriding an entry is possible\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(providers, function(provider) {\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(provider[provideFn])) {\n return;\n }\n\n var entriesOrUpdater = provider[provideFn](target);\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(entriesOrUpdater)) {\n entries = entriesOrUpdater(entries);\n } else {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(entriesOrUpdater, function(entry, id) {\n entries[id] = entry;\n });\n }\n });\n\n return entries;\n};\n\n\n/**\n * Trigger context pad via DOM event.\n *\n * The entry to trigger is determined by the target element.\n *\n * @param {string} action\n * @param {Event} event\n * @param {boolean} [autoActivate=false]\n */\nContextPad.prototype.trigger = function(action, event, autoActivate) {\n var self = this;\n\n var entry,\n originalEvent,\n button = event.delegateTarget || event.target;\n\n if (!button) {\n return event.preventDefault();\n }\n\n entry = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.attr)(button, 'data-action');\n originalEvent = event.originalEvent || event;\n\n if (action === 'mouseover') {\n this._timeout = setTimeout(function() {\n self._mouseout = self.triggerEntry(entry, 'hover', originalEvent, autoActivate);\n }, HOVER_DELAY);\n\n return;\n } else if (action === 'mouseout') {\n clearTimeout(this._timeout);\n\n if (this._mouseout) {\n this._mouseout();\n\n this._mouseout = null;\n }\n\n return;\n }\n\n return this.triggerEntry(entry, action, originalEvent, autoActivate);\n};\n\n/**\n * Trigger action on context pad entry entry, e.g. click, mouseover or mouseout.\n *\n * @param {string} entryId\n * @param {string} action\n * @param {Event} event\n * @param {boolean} [autoActivate=false]\n */\nContextPad.prototype.triggerEntry = function(entryId, action, event, autoActivate) {\n\n if (!this.isShown()) {\n return;\n }\n\n var target = this._current.target,\n entries = this._current.entries;\n\n var entry = entries[entryId];\n\n if (!entry) {\n return;\n }\n\n var handler = entry.action;\n\n if (this._eventBus.fire('contextPad.trigger', { entry, event }) === false) {\n return;\n }\n\n // simple action (via callback function)\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handler)) {\n if (action === 'click') {\n return handler(event, target, autoActivate);\n }\n } else {\n if (handler[action]) {\n return handler[action](event, target, autoActivate);\n }\n }\n\n // silence other actions\n event.preventDefault();\n};\n\n\n/**\n * Open the context pad for given elements.\n *\n * @param {ContextPadTarget} target\n * @param {boolean} [force=false] - Force re-opening context pad.\n */\nContextPad.prototype.open = function(target, force) {\n if (!force && this.isOpen(target)) {\n return;\n }\n\n this.close();\n\n this._updateAndOpen(target);\n};\n\nContextPad.prototype._getProviders = function() {\n\n var event = this._eventBus.createEvent({\n type: 'contextPad.getProviders',\n providers: []\n });\n\n this._eventBus.fire(event);\n\n return event.providers;\n};\n\n\n/**\n * @param {ContextPadTarget} target\n */\nContextPad.prototype._updateAndOpen = function(target) {\n var entries = this.getEntries(target),\n html = this._createHtml(target),\n image;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(entries, function(entry, id) {\n var grouping = entry.group || 'default',\n control = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)(entry.html || '
'),\n container;\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.attr)(control, 'data-action', id);\n\n container = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.query)('[data-group=' + (0,_util_EscapeUtil__WEBPACK_IMPORTED_MODULE_2__.escapeCSS)(grouping) + ']', html);\n if (!container) {\n container = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)('
');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.attr)(container, 'data-group', grouping);\n\n html.appendChild(container);\n }\n\n container.appendChild(control);\n\n if (entry.className) {\n addClasses(control, entry.className);\n }\n\n if (entry.title) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.attr)(control, 'title', entry.title);\n }\n\n if (entry.imageUrl) {\n image = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)('');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'src', entry.imageUrl);\n image.style.width = '100%';\n image.style.height = '100%';\n\n control.appendChild(image);\n }\n });\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.classes)(html).add('open');\n\n this._current = {\n entries,\n html,\n target,\n };\n\n this._updatePosition();\n\n this._updateVisibility();\n\n this._eventBus.fire('contextPad.open', { current: this._current });\n};\n\n/**\n * @param {ContextPadTarget} target\n *\n * @return {HTMLElement}\n */\nContextPad.prototype._createHtml = function(target) {\n var self = this;\n\n var html = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)('
');\n\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(html, entrySelector, 'click', function(event) {\n self.trigger('click', event);\n });\n\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(html, entrySelector, 'dragstart', function(event) {\n self.trigger('dragstart', event);\n });\n\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(html, entrySelector, 'mouseover', function(event) {\n self.trigger('mouseover', event);\n });\n\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(html, entrySelector, 'mouseout', function(event) {\n self.trigger('mouseout', event);\n });\n\n // stop propagation of mouse events\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.bind(html, 'mousedown', function(event) {\n event.stopPropagation();\n });\n\n this._container.appendChild(html);\n\n this._eventBus.fire('contextPad.create', {\n target: target,\n pad: html\n });\n\n return html;\n};\n\n/**\n * @param {ContextPadTarget} target\n *\n * @return { { html: HTMLElement } }\n */\nContextPad.prototype.getPad = function(target) {\n console.warn(new Error('ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888'));\n\n let html;\n\n if (this.isOpen() && targetsEqual(this._current.target, target)) {\n html = this._current.html;\n } else {\n html = this._createHtml(target);\n }\n\n return { html };\n};\n\n\n/**\n * Close the context pad\n */\nContextPad.prototype.close = function() {\n if (!this.isOpen()) {\n return;\n }\n\n clearTimeout(this._timeout);\n\n this._container.innerHTML = '';\n\n this._eventBus.fire('contextPad.close', { current: this._current });\n\n this._current = null;\n};\n\n/**\n * Check if pad is open.\n *\n * If target is provided, check if it is opened\n * for the given target (single or multiple elements).\n *\n * @param {ContextPadTarget} [target]\n * @return {boolean}\n */\nContextPad.prototype.isOpen = function(target) {\n var current = this._current;\n\n if (!current) {\n return false;\n }\n\n // basic no-args is open check\n if (!target) {\n return true;\n }\n\n var currentTarget = current.target;\n\n // strict handling of single vs. multi-selection\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) !== (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(currentTarget)) {\n return false;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {\n return (\n target.length === currentTarget.length &&\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.every)(target, function(element) {\n return currentTarget.includes(element);\n })\n );\n } else {\n return currentTarget === target;\n }\n};\n\n\n/**\n * Check if pad is open and not hidden.\n *\n * @return {boolean}\n */\nContextPad.prototype.isShown = function() {\n return this.isOpen() && (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.classes)(this._current.html).has('open');\n};\n\n/**\n * Show context pad.\n */\nContextPad.prototype.show = function() {\n if (!this.isOpen()) {\n return;\n }\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.classes)(this._current.html).add('open');\n\n this._updatePosition();\n\n this._eventBus.fire('contextPad.show', { current: this._current });\n};\n\n/**\n * Hide context pad.\n */\nContextPad.prototype.hide = function() {\n if (!this.isOpen()) {\n return;\n }\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.classes)(this._current.html).remove('open');\n\n this._eventBus.fire('contextPad.hide', { current: this._current });\n};\n\n/**\n * Get context pad position.\n *\n * If target is connection context pad will be positioned at connection end.\n *\n * If multiple targets context pad will be placed at top right corner bounding\n * box.\n *\n * @param {ContextPadTarget} target\n *\n * @return {RectTRBL & { x: number, y: number }}\n */\nContextPad.prototype._getPosition = function(target) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && (0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__.isConnection)(target)) {\n var viewbox = this._canvas.viewbox();\n\n var lastWaypoint = getLastWaypoint(target);\n\n var x = lastWaypoint.x * viewbox.scale - viewbox.x * viewbox.scale,\n y = lastWaypoint.y * viewbox.scale - viewbox.y * viewbox.scale;\n\n return {\n left: x + CONTEXT_PAD_MARGIN * this._canvas.zoom(),\n top: y\n };\n }\n\n var container = this._canvas.getContainer();\n\n var containerBounds = container.getBoundingClientRect();\n\n var targetBounds = this._getTargetBounds(target);\n\n return {\n left: targetBounds.right - containerBounds.left + CONTEXT_PAD_MARGIN * this._canvas.zoom(),\n top: targetBounds.top - containerBounds.top\n };\n};\n\n/**\n * Update context pad position.\n */\nContextPad.prototype._updatePosition = function() {\n if (!this.isOpen()) {\n return;\n }\n\n var html = this._current.html;\n\n var position = this._getPosition(this._current.target);\n\n if ('x' in position && 'y' in position) {\n html.style.left = position.x + 'px';\n html.style.top = position.y + 'px';\n } else {\n [\n 'top',\n 'right',\n 'bottom',\n 'left'\n ].forEach(function(key) {\n if (key in position) {\n html.style[ key ] = position[ key ] + 'px';\n }\n });\n }\n};\n\n/**\n * Update context pad visibility. Hide if any of the target elements is hidden\n * using the `djs-element-hidden` or `djs-label-hidden` markers.\n */\nContextPad.prototype._updateVisibility = function() {\n\n const updateFn = () => {\n if (!this.isOpen()) {\n return;\n }\n\n var self = this;\n\n var target = this._current.target;\n\n var targets = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? target : [ target ];\n\n var isHidden = targets.some(function(target) {\n return self._canvas.hasMarker(target, MARKER_HIDDEN);\n });\n\n if (isHidden) {\n self.hide();\n } else {\n self.show();\n }\n };\n\n this._scheduler.schedule(updateFn, 'ContextPad#_updateVisibility');\n};\n\n/**\n * Get bounding client rect of target element(s).\n *\n * @param {ContextPadTarget} target\n *\n * @returns {Rect & RectTRBL}\n */\nContextPad.prototype._getTargetBounds = function(target) {\n var self = this;\n\n var elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? target : [ target ];\n\n var elementsGfx = elements.map(function(element) {\n return self._canvas.getGraphics(element);\n });\n\n return elementsGfx.reduce(function(bounds, elementGfx) {\n const elementBounds = elementGfx.getBoundingClientRect();\n\n bounds.top = Math.min(bounds.top, elementBounds.top);\n bounds.right = Math.max(bounds.right, elementBounds.right);\n bounds.bottom = Math.max(bounds.bottom, elementBounds.bottom);\n bounds.left = Math.min(bounds.left, elementBounds.left);\n\n bounds.x = bounds.left;\n bounds.y = bounds.top;\n\n bounds.width = bounds.right - bounds.left;\n bounds.height = bounds.bottom - bounds.top;\n\n return bounds;\n }, {\n top: Infinity,\n right: -Infinity,\n bottom: -Infinity,\n left: Infinity\n });\n};\n\n// helpers //////////\n\nfunction addClasses(element, classNames) {\n var classes = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.classes)(element);\n\n classNames = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(classNames) ? classNames : classNames.split(/\\s+/g);\n\n classNames.forEach(function(cls) {\n classes.add(cls);\n });\n}\n\nfunction getLastWaypoint(connection) {\n return connection.waypoints[connection.waypoints.length - 1];\n}\n\n/**\n * @param {ContextPadTarget} target\n * @param {ContextPadTarget} otherTarget\n *\n * @return {boolean}\n */\nfunction targetsEqual(target, otherTarget) {\n target = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? target : [ target ];\n otherTarget = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(otherTarget) ? otherTarget : [ otherTarget ];\n\n return target.length === otherTarget.length\n && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.every)(target, function(element) {\n return otherTarget.includes(element);\n });\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/context-pad/ContextPad.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/context-pad/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/context-pad/index.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _interaction_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interaction-events */ \"./node_modules/diagram-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var _overlays__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../overlays */ \"./node_modules/diagram-js/lib/features/overlays/index.js\");\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler */ \"./node_modules/diagram-js/lib/features/scheduler/index.js\");\n/* harmony import */ var _ContextPad__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextPad */ \"./node_modules/diagram-js/lib/features/context-pad/ContextPad.js\");\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _interaction_events__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _scheduler__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _overlays__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n ],\n contextPad: [ 'type', _ContextPad__WEBPACK_IMPORTED_MODULE_3__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/context-pad/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/create/Create.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/create/Create.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Create)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\nvar MARKER_OK = 'drop-ok',\n MARKER_NOT_OK = 'drop-not-ok',\n MARKER_ATTACH = 'attach-ok',\n MARKER_NEW_PARENT = 'new-parent';\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Types').ElementLike} Element\n * @typedef {import('../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../dragging/Dragging').default} Dragging\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../modeling/Modeling').default} Modeling\n * @typedef {import('../rules/Rules').default} Rules\n */\n\nvar PREFIX = 'create';\n\nvar HIGH_PRIORITY = 2000;\n\n\n/**\n * Create new elements through drag and drop.\n *\n * @param {Canvas} canvas\n * @param {Dragging} dragging\n * @param {EventBus} eventBus\n * @param {Modeling} modeling\n * @param {Rules} rules\n */\nfunction Create(\n canvas,\n dragging,\n eventBus,\n modeling,\n rules\n) {\n\n // rules //////////\n\n /**\n * Check wether elements can be created.\n *\n * @param {Element[]} elements\n * @param {Shape} target\n * @param {Point} position\n * @param {Element} [source]\n *\n * @return {boolean|null|Object}\n */\n function canCreate(elements, target, position, source, hints) {\n if (!target) {\n return false;\n }\n\n // ignore child elements and external labels\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.filter)(elements, function(element) {\n var labelTarget = element.labelTarget;\n\n return !element.parent && !((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isLabel)(element) && elements.indexOf(labelTarget) !== -1);\n });\n\n var shape = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(elements, function(element) {\n return !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(element);\n });\n\n var attach = false,\n connect = false,\n create = false;\n\n // (1) attaching single shapes\n if (isSingleShape(elements)) {\n attach = rules.allowed('shape.attach', {\n position: position,\n shape: shape,\n target: target\n });\n }\n\n if (!attach) {\n\n // (2) creating elements\n if (isSingleShape(elements)) {\n create = rules.allowed('shape.create', {\n position: position,\n shape: shape,\n source: source,\n target: target\n });\n } else {\n create = rules.allowed('elements.create', {\n elements: elements,\n position: position,\n target: target\n });\n }\n\n }\n\n var connectionTarget = hints.connectionTarget;\n\n // (3) appending single shapes\n if (create || attach) {\n if (shape && source) {\n connect = rules.allowed('connection.create', {\n source: connectionTarget === source ? shape : source,\n target: connectionTarget === source ? source : shape,\n hints: {\n targetParent: target,\n targetAttach: attach\n }\n });\n }\n\n return {\n attach: attach,\n connect: connect\n };\n }\n\n // ignore wether or not elements can be created\n if (create === null || attach === null) {\n return null;\n }\n\n return false;\n }\n\n function setMarker(element, marker) {\n [ MARKER_ATTACH, MARKER_OK, MARKER_NOT_OK, MARKER_NEW_PARENT ].forEach(function(m) {\n\n if (m === marker) {\n canvas.addMarker(element, m);\n } else {\n canvas.removeMarker(element, m);\n }\n });\n }\n\n // event handling //////////\n\n eventBus.on([ 'create.move', 'create.hover' ], function(event) {\n var context = event.context,\n elements = context.elements,\n hover = event.hover,\n source = context.source,\n hints = context.hints || {};\n\n if (!hover) {\n context.canExecute = false;\n context.target = null;\n\n return;\n }\n\n ensureConstraints(event);\n\n var position = {\n x: event.x,\n y: event.y\n };\n\n var canExecute = context.canExecute = hover && canCreate(elements, hover, position, source, hints);\n\n if (hover && canExecute !== null) {\n context.target = hover;\n\n if (canExecute && canExecute.attach) {\n setMarker(hover, MARKER_ATTACH);\n } else {\n setMarker(hover, canExecute ? MARKER_NEW_PARENT : MARKER_NOT_OK);\n }\n }\n });\n\n eventBus.on([ 'create.end', 'create.out', 'create.cleanup' ], function(event) {\n var hover = event.hover;\n\n if (hover) {\n setMarker(hover, null);\n }\n });\n\n eventBus.on('create.end', function(event) {\n var context = event.context,\n source = context.source,\n shape = context.shape,\n elements = context.elements,\n target = context.target,\n canExecute = context.canExecute,\n attach = canExecute && canExecute.attach,\n connect = canExecute && canExecute.connect,\n hints = context.hints || {};\n\n if (canExecute === false || !target) {\n return false;\n }\n\n ensureConstraints(event);\n\n var position = {\n x: event.x,\n y: event.y\n };\n\n if (connect) {\n shape = modeling.appendShape(source, shape, position, target, {\n attach: attach,\n connection: connect === true ? {} : connect,\n connectionTarget: hints.connectionTarget\n });\n } else {\n elements = modeling.createElements(elements, position, target, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, hints, {\n attach: attach\n }));\n\n // update shape\n shape = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(elements, function(element) {\n return !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(element);\n });\n }\n\n // update elements and shape\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(context, {\n elements: elements,\n shape: shape\n });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(event, {\n elements: elements,\n shape: shape\n });\n });\n\n function cancel() {\n var context = dragging.context();\n\n if (context && context.prefix === PREFIX) {\n dragging.cancel();\n }\n }\n\n // cancel on that is not result of \n eventBus.on('create.init', function() {\n eventBus.on('elements.changed', cancel);\n\n eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY, function() {\n eventBus.off('elements.changed', cancel);\n });\n });\n\n // API //////////\n\n /**\n * @param event\n * @param elements\n * @param {any} [context={}]\n */\n this.start = function(event, elements, context) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(elements)) {\n elements = [ elements ];\n }\n\n var shape = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(elements, function(element) {\n return !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(element);\n });\n\n if (!shape) {\n\n // at least one shape is required\n return;\n }\n\n context = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({\n elements: elements,\n hints: {},\n shape: shape\n }, context || {});\n\n // make sure each element has x and y\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(element.x)) {\n element.x = 0;\n }\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(element.y)) {\n element.y = 0;\n }\n });\n\n var visibleElements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.filter)(elements, function(element) {\n return !element.hidden;\n });\n\n var bbox = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_2__.getBBox)(visibleElements);\n\n // center elements around cursor\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(element)) {\n element.waypoints = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.map)(element.waypoints, function(waypoint) {\n return {\n x: waypoint.x - bbox.x - bbox.width / 2,\n y: waypoint.y - bbox.y - bbox.height / 2\n };\n });\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(element, {\n x: element.x - bbox.x - bbox.width / 2,\n y: element.y - bbox.y - bbox.height / 2\n });\n });\n\n dragging.init(event, PREFIX, {\n cursor: 'grabbing',\n autoActivate: true,\n data: {\n shape: shape,\n elements: elements,\n context: context\n }\n });\n };\n}\n\nCreate.$inject = [\n 'canvas',\n 'dragging',\n 'eventBus',\n 'modeling',\n 'rules'\n];\n\n// helpers //////////\n\nfunction ensureConstraints(event) {\n var context = event.context,\n createConstraints = context.createConstraints;\n\n if (!createConstraints) {\n return;\n }\n\n if (createConstraints.left) {\n event.x = Math.max(event.x, createConstraints.left);\n }\n\n if (createConstraints.right) {\n event.x = Math.min(event.x, createConstraints.right);\n }\n\n if (createConstraints.top) {\n event.y = Math.max(event.y, createConstraints.top);\n }\n\n if (createConstraints.bottom) {\n event.y = Math.min(event.y, createConstraints.bottom);\n }\n}\n\nfunction isSingleShape(elements) {\n return elements && elements.length === 1 && !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(elements[ 0 ]);\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/create/Create.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/create/CreatePreview.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/create/CreatePreview.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreatePreview)\n/* harmony export */ });\n/* harmony import */ var _util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/SvgTransformUtil */ \"./node_modules/diagram-js/lib/util/SvgTransformUtil.js\");\n/* harmony import */ var _util_GraphicsUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/GraphicsUtil */ \"./node_modules/diagram-js/lib/util/GraphicsUtil.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../../core/Canvas').default} Canvas\r\n * @typedef {import('../../core/EventBus').default} EventBus\r\n * @typedef {import('../../core/GraphicsFactory').default} GraphicsFactory\r\n * @typedef {import('../preview-support/PreviewSupport').default} PreviewSupport\r\n * @typedef {import('../../draw/Styles').default} Styles\r\n */\r\n\r\nvar LOW_PRIORITY = 750;\r\n\r\n/**\r\n * @param {Canvas} canvas\r\n * @param {EventBus} eventBus\r\n * @param {GraphicsFactory} graphicsFactory\r\n * @param {PreviewSupport} previewSupport\r\n * @param {Styles} styles\r\n */\r\nfunction CreatePreview(\r\n canvas,\r\n eventBus,\r\n graphicsFactory,\r\n previewSupport,\r\n styles\r\n) {\r\n function createDragGroup(elements) {\r\n var dragGroup = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.create)('g');\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(dragGroup, styles.cls('djs-drag-group', [ 'no-events' ]));\r\n\r\n var childrenGfx = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.create)('g');\r\n\r\n elements.forEach(function(element) {\r\n\r\n // create graphics\r\n var gfx;\r\n\r\n if (element.hidden) {\r\n return;\r\n }\r\n\r\n if (element.waypoints) {\r\n gfx = graphicsFactory._createContainer('connection', childrenGfx);\r\n\r\n graphicsFactory.drawConnection((0,_util_GraphicsUtil__WEBPACK_IMPORTED_MODULE_1__.getVisual)(gfx), element);\r\n } else {\r\n gfx = graphicsFactory._createContainer('shape', childrenGfx);\r\n\r\n graphicsFactory.drawShape((0,_util_GraphicsUtil__WEBPACK_IMPORTED_MODULE_1__.getVisual)(gfx), element);\r\n\r\n (0,_util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_2__.translate)(gfx, element.x, element.y);\r\n }\r\n\r\n // add preview\r\n previewSupport.addDragger(element, dragGroup, gfx);\r\n });\r\n\r\n return dragGroup;\r\n }\r\n\r\n eventBus.on('create.move', LOW_PRIORITY, function(event) {\r\n\r\n var hover = event.hover,\r\n context = event.context,\r\n elements = context.elements,\r\n dragGroup = context.dragGroup;\r\n\r\n // lazily create previews\r\n if (!dragGroup) {\r\n dragGroup = context.dragGroup = createDragGroup(elements);\r\n }\r\n\r\n var activeLayer;\r\n\r\n if (hover) {\r\n if (!dragGroup.parentNode) {\r\n activeLayer = canvas.getActiveLayer();\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.append)(activeLayer, dragGroup);\r\n }\r\n\r\n (0,_util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_2__.translate)(dragGroup, event.x, event.y);\r\n } else {\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.remove)(dragGroup);\r\n }\r\n });\r\n\r\n eventBus.on('create.cleanup', function(event) {\r\n var context = event.context,\r\n dragGroup = context.dragGroup;\r\n\r\n if (dragGroup) {\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.remove)(dragGroup);\r\n }\r\n });\r\n}\r\n\r\nCreatePreview.$inject = [\r\n 'canvas',\r\n 'eventBus',\r\n 'graphicsFactory',\r\n 'previewSupport',\r\n 'styles'\r\n];\r\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/create/CreatePreview.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/create/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/create/index.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dragging */ \"./node_modules/diagram-js/lib/features/dragging/index.js\");\n/* harmony import */ var _preview_support__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../preview-support */ \"./node_modules/diagram-js/lib/features/preview-support/index.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rules */ \"./node_modules/diagram-js/lib/features/rules/index.js\");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _Create__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Create */ \"./node_modules/diagram-js/lib/features/create/Create.js\");\n/* harmony import */ var _CreatePreview__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CreatePreview */ \"./node_modules/diagram-js/lib/features/create/CreatePreview.js\");\n\n\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _dragging__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _preview_support__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _rules__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n _selection__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n ],\n __init__: [\n 'create',\n 'createPreview'\n ],\n create: [ 'type', _Create__WEBPACK_IMPORTED_MODULE_4__[\"default\"] ],\n createPreview: [ 'type', _CreatePreview__WEBPACK_IMPORTED_MODULE_5__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/create/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/distribute-elements/DistributeElements.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/distribute-elements/DistributeElements.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DistributeElements)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../util/Types').Axis} Axis\n * @typedef {import('../../util/Types').Dimension} Dimension\n * @typedef {import('../../util/Types').Rect} Rect\n *\n * @typedef {import('../modeling/Modeling').default} Modeling\n * @typedef {import('../rules/Rules').default} Rules\n *\n * @typedef { {\n * min: number;\n * max: number;\n * } } Range\n *\n * @typedef { {\n * elements: Element[];\n * range: Range;\n * } } Group\n */\n\nvar AXIS_DIMENSIONS = {\n horizontal: [ 'x', 'width' ],\n vertical: [ 'y', 'height' ]\n};\n\nvar THRESHOLD = 5;\n\n\n/**\n * Groups and filters elements and then trigger even distribution.\n *\n * @param {Modeling} modeling\n * @param {Rules} rules\n */\nfunction DistributeElements(modeling, rules) {\n this._modeling = modeling;\n\n this._filters = [];\n\n this.registerFilter(function(elements) {\n var allowed = rules.allowed('elements.distribute', { elements: elements });\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(allowed)) {\n return allowed;\n }\n\n return allowed ? elements : [];\n });\n}\n\nDistributeElements.$inject = [ 'modeling', 'rules' ];\n\n\n/**\n * Registers filter functions that allow external parties to filter\n * out certain elements.\n *\n * @param {(distributableElements: Element[], axis: Axis, dimension: Dimension) => Element[]} filterFn\n */\nDistributeElements.prototype.registerFilter = function(filterFn) {\n if (typeof filterFn !== 'function') {\n throw new Error('the filter has to be a function');\n }\n\n this._filters.push(filterFn);\n};\n\n/**\n * Distributes the elements with a given orientation\n *\n * @param {Element[]} elements\n * @param {string} orientation\n */\nDistributeElements.prototype.trigger = function(elements, orientation) {\n var modeling = this._modeling;\n\n var groups,\n distributableElements;\n\n if (elements.length < 3) {\n return;\n }\n\n this._setOrientation(orientation);\n\n distributableElements = this._filterElements(elements);\n\n groups = this._createGroups(distributableElements);\n\n // nothing to distribute\n if (groups.length <= 2) {\n return;\n }\n\n modeling.distributeElements(groups, this._axis, this._dimension);\n\n return groups;\n};\n\n/**\n * Filters the elements with provided filters by external parties\n *\n * @param {Element[]} elements\n *\n * @return {Element[]}\n */\nDistributeElements.prototype._filterElements = function(elements) {\n var filters = this._filters,\n axis = this._axis,\n dimension = this._dimension,\n distributableElements = [].concat(elements);\n\n if (!filters.length) {\n return elements;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(filters, function(filterFn) {\n distributableElements = filterFn(distributableElements, axis, dimension);\n });\n\n return distributableElements;\n};\n\n\n/**\n * Create range (min, max) groups. Also tries to group elements\n * together that share the same range.\n *\n * @example\n *\n * ```javascript\n * const groups = [\n * {\n * range: { min: 100, max: 200 },\n * elements: [ { id: 'shape1', ... } ]\n * }\n * ]\n * ```\n *\n * @param {Element[]} elements\n *\n * @return {Group[]}\n */\nDistributeElements.prototype._createGroups = function(elements) {\n var rangeGroups = [],\n self = this,\n axis = this._axis,\n dimension = this._dimension;\n\n if (!axis) {\n throw new Error('must have a defined \"axis\" and \"dimension\"');\n }\n\n // sort by 'left->right' or 'top->bottom'\n var sortedElements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.sortBy)(elements, axis);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(sortedElements, function(element, idx) {\n var elementRange = self._findRange(element, axis, dimension),\n range;\n\n var previous = rangeGroups[rangeGroups.length - 1];\n\n if (previous && self._hasIntersection(previous.range, elementRange)) {\n rangeGroups[rangeGroups.length - 1].elements.push(element);\n } else {\n range = { range: elementRange, elements: [ element ] };\n\n rangeGroups.push(range);\n }\n });\n\n return rangeGroups;\n};\n\n\n/**\n * Maps a direction to the according axis and dimension.\n *\n * @param {'horizontal' | 'vertical'} direction 'horizontal' or 'vertical'\n */\nDistributeElements.prototype._setOrientation = function(direction) {\n var orientation = AXIS_DIMENSIONS[direction];\n\n this._axis = orientation[0];\n this._dimension = orientation[1];\n};\n\n\n/**\n * Checks if the two ranges intercept each other.\n *\n * @param {Range} rangeA\n * @param {Range} rangeB\n *\n * @return {boolean}\n */\nDistributeElements.prototype._hasIntersection = function(rangeA, rangeB) {\n return Math.max(rangeA.min, rangeA.max) >= Math.min(rangeB.min, rangeB.max) &&\n Math.min(rangeA.min, rangeA.max) <= Math.max(rangeB.min, rangeB.max);\n};\n\n\n/**\n * Returns the min and max values for an element\n *\n * @param {Element} element\n *\n * @return {Range}\n */\nDistributeElements.prototype._findRange = function(element) {\n var axis = element[this._axis],\n dimension = element[this._dimension];\n\n return {\n min: axis + THRESHOLD,\n max: axis + dimension - THRESHOLD\n };\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/distribute-elements/DistributeElements.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/distribute-elements/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/distribute-elements/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DistributeElements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DistributeElements */ \"./node_modules/diagram-js/lib/features/distribute-elements/DistributeElements.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'distributeElements' ],\n distributeElements: [ 'type', _DistributeElements__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/distribute-elements/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/dragging/Dragging.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/dragging/Dragging.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Dragging)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/Event */ \"./node_modules/diagram-js/lib/util/Event.js\");\n/* harmony import */ var _util_Cursor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/Cursor */ \"./node_modules/diagram-js/lib/util/Cursor.js\");\n/* harmony import */ var _util_ClickTrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/ClickTrap */ \"./node_modules/diagram-js/lib/util/ClickTrap.js\");\n/* harmony import */ var _util_PositionUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/PositionUtil */ \"./node_modules/diagram-js/lib/util/PositionUtil.js\");\n/* harmony import */ var _keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\nvar round = Math.round;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../selection/Selection').default} Selection\n */\n\nvar DRAG_ACTIVE_CLS = 'djs-drag-active';\n\n\nfunction preventDefault(event) {\n event.preventDefault();\n}\n\nfunction isTouchEvent(event) {\n\n // check for TouchEvent being available first\n // (i.e. not available on desktop Firefox)\n return typeof TouchEvent !== 'undefined' && event instanceof TouchEvent;\n}\n\nfunction getLength(point) {\n return Math.sqrt(Math.pow(point.x, 2) + Math.pow(point.y, 2));\n}\n\n/**\n * A helper that fires canvas localized drag events and realizes\n * the general \"drag-and-drop\" look and feel.\n *\n * Calling {@link Dragging#activate} activates dragging on a canvas.\n *\n * It provides the following:\n *\n * * emits life cycle events, namespaced with a prefix assigned\n * during dragging activation\n * * sets and restores the cursor\n * * sets and restores the selection if elements still exist\n * * ensures there can be only one drag operation active at a time\n *\n * Dragging may be canceled manually by calling {@link Dragging#cancel}\n * or by pressing ESC.\n *\n *\n * ## Life-cycle events\n *\n * Dragging can be in three different states, off, initialized\n * and active.\n *\n * (1) off: no dragging operation is in progress\n * (2) initialized: a new drag operation got initialized but not yet\n * started (i.e. because of no initial move)\n * (3) started: dragging is in progress\n *\n * Eventually dragging will be off again after a drag operation has\n * been ended or canceled via user click or ESC key press.\n *\n * To indicate transitions between these states dragging emits generic\n * life-cycle events with the `drag.` prefix _and_ events namespaced\n * to a prefix choosen by a user during drag initialization.\n *\n * The following events are emitted (appropriately prefixed) via\n * the {@link EventBus}.\n *\n * * `init`\n * * `start`\n * * `move`\n * * `end`\n * * `ended` (dragging already in off state)\n * * `cancel` (only if previously started)\n * * `canceled` (dragging already in off state, only if previously started)\n * * `cleanup`\n *\n *\n * @example\n *\n * ```javascript\n * function MyDragComponent(eventBus, dragging) {\n *\n * eventBus.on('mydrag.start', function(event) {\n * console.log('yes, we start dragging');\n * });\n *\n * eventBus.on('mydrag.move', function(event) {\n * console.log('canvas local coordinates', event.x, event.y, event.dx, event.dy);\n *\n * // local drag data is passed with the event\n * event.context.foo; // \"BAR\"\n *\n * // the original mouse event, too\n * event.originalEvent; // MouseEvent(...)\n * });\n *\n * eventBus.on('element.click', function(event) {\n * dragging.init(event, 'mydrag', {\n * cursor: 'grabbing',\n * data: {\n * context: {\n * foo: \"BAR\"\n * }\n * }\n * });\n * });\n * }\n * ```\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {Selection} selection\n * @param {ElementRegistry} elementRegistry\n */\nfunction Dragging(eventBus, canvas, selection, elementRegistry) {\n\n var defaultOptions = {\n threshold: 5,\n trapClick: true\n };\n\n // the currently active drag operation\n // dragging is active as soon as this context exists.\n //\n // it is visually _active_ only when a context.active flag is set to true.\n var context;\n\n /* convert a global event into local coordinates */\n function toLocalPoint(globalPosition) {\n\n var viewbox = canvas.viewbox();\n\n var clientRect = canvas._container.getBoundingClientRect();\n\n return {\n x: viewbox.x + (globalPosition.x - clientRect.left) / viewbox.scale,\n y: viewbox.y + (globalPosition.y - clientRect.top) / viewbox.scale\n };\n }\n\n // helpers\n\n function fire(type, dragContext) {\n dragContext = dragContext || context;\n\n var event = eventBus.createEvent(\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(\n {},\n dragContext.payload,\n dragContext.data,\n { isTouch: dragContext.isTouch }\n )\n );\n\n // default integration\n if (eventBus.fire('drag.' + type, event) === false) {\n return false;\n }\n\n return eventBus.fire(dragContext.prefix + '.' + type, event);\n }\n\n function restoreSelection(previousSelection) {\n var existingSelection = previousSelection.filter(function(element) {\n return elementRegistry.get(element.id);\n });\n\n existingSelection.length && selection.select(existingSelection);\n }\n\n // event listeners\n\n function move(event, activate) {\n var payload = context.payload,\n displacement = context.displacement;\n\n var globalStart = context.globalStart,\n globalCurrent = (0,_util_Event__WEBPACK_IMPORTED_MODULE_1__.toPoint)(event),\n globalDelta = (0,_util_PositionUtil__WEBPACK_IMPORTED_MODULE_2__.delta)(globalCurrent, globalStart);\n\n var localStart = context.localStart,\n localCurrent = toLocalPoint(globalCurrent),\n localDelta = (0,_util_PositionUtil__WEBPACK_IMPORTED_MODULE_2__.delta)(localCurrent, localStart);\n\n\n // activate context explicitly or once threshold is reached\n if (!context.active && (activate || getLength(globalDelta) > context.threshold)) {\n\n // fire start event with original\n // starting coordinates\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(payload, {\n x: round(localStart.x + displacement.x),\n y: round(localStart.y + displacement.y),\n dx: 0,\n dy: 0\n }, { originalEvent: event });\n\n if (false === fire('start')) {\n return cancel();\n }\n\n context.active = true;\n\n // unset selection and remember old selection\n // the previous (old) selection will always passed\n // with the event via the event.previousSelection property\n if (!context.keepSelection) {\n payload.previousSelection = selection.get();\n selection.select(null);\n }\n\n // allow custom cursor\n if (context.cursor) {\n (0,_util_Cursor__WEBPACK_IMPORTED_MODULE_3__.set)(context.cursor);\n }\n\n // indicate dragging via marker on root element\n canvas.addMarker(canvas.getRootElement(), DRAG_ACTIVE_CLS);\n }\n\n (0,_util_Event__WEBPACK_IMPORTED_MODULE_1__.stopPropagation)(event);\n\n if (context.active) {\n\n // update payload with actual coordinates\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(payload, {\n x: round(localCurrent.x + displacement.x),\n y: round(localCurrent.y + displacement.y),\n dx: round(localDelta.x),\n dy: round(localDelta.y)\n }, { originalEvent: event });\n\n // emit move event\n fire('move');\n }\n }\n\n function end(event) {\n var previousContext,\n returnValue = true;\n\n if (context.active) {\n\n if (event) {\n context.payload.originalEvent = event;\n\n // suppress original event (click, ...)\n // because we just ended a drag operation\n (0,_util_Event__WEBPACK_IMPORTED_MODULE_1__.stopPropagation)(event);\n }\n\n // implementations may stop restoring the\n // original state (selections, ...) by preventing the\n // end events default action\n returnValue = fire('end');\n }\n\n if (returnValue === false) {\n fire('rejected');\n }\n\n previousContext = cleanup(returnValue !== true);\n\n // last event to be fired when all drag operations are done\n // at this point in time no drag operation is in progress anymore\n fire('ended', previousContext);\n }\n\n\n // cancel active drag operation if the user presses\n // the ESC key on the keyboard\n\n function checkCancel(event) {\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_4__.isKey)('Escape', event)) {\n preventDefault(event);\n\n cancel();\n }\n }\n\n\n // prevent ghost click that might occur after a finished\n // drag and drop session\n\n function trapClickAndEnd(event) {\n\n var untrap;\n\n // trap the click in case we are part of an active\n // drag operation. This will effectively prevent\n // the ghost click that cannot be canceled otherwise.\n if (context.active) {\n\n untrap = (0,_util_ClickTrap__WEBPACK_IMPORTED_MODULE_5__.install)(eventBus);\n\n // remove trap after minimal delay\n setTimeout(untrap, 400);\n\n // prevent default action (click)\n preventDefault(event);\n }\n\n end(event);\n }\n\n function trapTouch(event) {\n move(event);\n }\n\n // update the drag events model element (`hover`) and graphical element (`hoverGfx`)\n // properties during hover and out and fire {prefix}.hover and {prefix}.out properties\n // respectively\n\n function hover(event) {\n var payload = context.payload;\n\n payload.hoverGfx = event.gfx;\n payload.hover = event.element;\n\n fire('hover');\n }\n\n function out(event) {\n fire('out');\n\n var payload = context.payload;\n\n payload.hoverGfx = null;\n payload.hover = null;\n }\n\n\n // life-cycle methods\n\n function cancel(restore) {\n var previousContext;\n\n if (!context) {\n return;\n }\n\n var wasActive = context.active;\n\n if (wasActive) {\n fire('cancel');\n }\n\n previousContext = cleanup(restore);\n\n if (wasActive) {\n\n // last event to be fired when all drag operations are done\n // at this point in time no drag operation is in progress anymore\n fire('canceled', previousContext);\n }\n }\n\n function cleanup(restore) {\n var previousContext,\n endDrag;\n\n fire('cleanup');\n\n // reset cursor\n (0,_util_Cursor__WEBPACK_IMPORTED_MODULE_3__.unset)();\n\n if (context.trapClick) {\n endDrag = trapClickAndEnd;\n } else {\n endDrag = end;\n }\n\n // reset dom listeners\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'mousemove', move);\n\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'dragstart', preventDefault);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'selectstart', preventDefault);\n\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'mousedown', endDrag, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'mouseup', endDrag, true);\n\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'keyup', checkCancel);\n\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'touchstart', trapTouch, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'touchcancel', cancel, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'touchmove', move, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.unbind(document, 'touchend', end, true);\n\n eventBus.off('element.hover', hover);\n eventBus.off('element.out', out);\n\n // remove drag marker on root element\n canvas.removeMarker(canvas.getRootElement(), DRAG_ACTIVE_CLS);\n\n // restore selection, unless it has changed\n var previousSelection = context.payload.previousSelection;\n\n if (restore !== false && previousSelection && !selection.get().length) {\n restoreSelection(previousSelection);\n }\n\n previousContext = context;\n\n context = null;\n\n return previousContext;\n }\n\n /**\n * Initialize a drag operation.\n *\n * If `localPosition` is given, drag events will be emitted\n * relative to it.\n *\n * @param {MouseEvent|TouchEvent} [event]\n * @param {Point} [relativeTo] actual diagram local position this drag operation should start at\n * @param {string} prefix\n * @param {Object} [options]\n */\n function init(event, relativeTo, prefix, options) {\n\n // only one drag operation may be active, at a time\n if (context) {\n cancel(false);\n }\n\n if (typeof relativeTo === 'string') {\n options = prefix;\n prefix = relativeTo;\n relativeTo = null;\n }\n\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, defaultOptions, options || {});\n\n var data = options.data || {},\n originalEvent,\n globalStart,\n localStart,\n endDrag,\n isTouch;\n\n if (options.trapClick) {\n endDrag = trapClickAndEnd;\n } else {\n endDrag = end;\n }\n\n if (event) {\n originalEvent = (0,_util_Event__WEBPACK_IMPORTED_MODULE_1__.getOriginal)(event) || event;\n globalStart = (0,_util_Event__WEBPACK_IMPORTED_MODULE_1__.toPoint)(event);\n\n (0,_util_Event__WEBPACK_IMPORTED_MODULE_1__.stopPropagation)(event);\n\n // prevent default browser dragging behavior\n if (originalEvent.type === 'dragstart') {\n preventDefault(originalEvent);\n }\n } else {\n originalEvent = null;\n globalStart = { x: 0, y: 0 };\n }\n\n localStart = toLocalPoint(globalStart);\n\n if (!relativeTo) {\n relativeTo = localStart;\n }\n\n isTouch = isTouchEvent(originalEvent);\n\n context = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({\n prefix: prefix,\n data: data,\n payload: {},\n globalStart: globalStart,\n displacement: (0,_util_PositionUtil__WEBPACK_IMPORTED_MODULE_2__.delta)(relativeTo, localStart),\n localStart: localStart,\n isTouch: isTouch\n }, options);\n\n // skip dom registration if trigger\n // is set to manual (during testing)\n if (!options.manual) {\n\n // add dom listeners\n\n if (isTouch) {\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'touchstart', trapTouch, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'touchcancel', cancel, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'touchmove', move, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'touchend', end, true);\n } else {\n\n // assume we use the mouse to interact per default\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'mousemove', move);\n\n // prevent default browser drag and text selection behavior\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'dragstart', preventDefault);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'selectstart', preventDefault);\n\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'mousedown', endDrag, true);\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'mouseup', endDrag, true);\n }\n\n min_dom__WEBPACK_IMPORTED_MODULE_6__.event.bind(document, 'keyup', checkCancel);\n\n eventBus.on('element.hover', hover);\n eventBus.on('element.out', out);\n }\n\n fire('init');\n\n if (options.autoActivate) {\n move(event, true);\n }\n }\n\n // cancel on diagram destruction\n eventBus.on('diagram.destroy', cancel);\n\n\n // API\n\n this.init = init;\n this.move = move;\n this.hover = hover;\n this.out = out;\n this.end = end;\n\n this.cancel = cancel;\n\n // for introspection\n\n this.context = function() {\n return context;\n };\n\n this.setOptions = function(options) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(defaultOptions, options);\n };\n}\n\nDragging.$inject = [\n 'eventBus',\n 'canvas',\n 'selection',\n 'elementRegistry'\n];\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/dragging/Dragging.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/dragging/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/dragging/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _hover_fix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../hover-fix */ \"./node_modules/diagram-js/lib/features/hover-fix/index.js\");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _Dragging__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dragging */ \"./node_modules/diagram-js/lib/features/dragging/Dragging.js\");\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _hover_fix__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _selection__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n ],\n dragging: [ 'type', _Dragging__WEBPACK_IMPORTED_MODULE_2__[\"default\"] ],\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/dragging/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/editor-actions/EditorActions.js": +/*!******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/editor-actions/EditorActions.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditorActions)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('didi').Injector} Injector\n *\n * @typedef {import('../../core/EventBus').default} EventBus\n */\n\nvar NOT_REGISTERED_ERROR = 'is not a registered action',\n IS_REGISTERED_ERROR = 'is already registered';\n\n\n/**\n * An interface that provides access to modeling actions by decoupling\n * the one who requests the action to be triggered and the trigger itself.\n *\n * It's possible to add new actions by registering them with ´registerAction´\n * and likewise unregister existing ones with ´unregisterAction´.\n *\n *\n * ## Life-Cycle and configuration\n *\n * The editor actions will wait for diagram initialization before\n * registering default actions _and_ firing an `editorActions.init` event.\n *\n * Interested parties may listen to the `editorActions.init` event with\n * low priority to check, which actions got registered. Other components\n * may use the event to register their own actions via `registerAction`.\n *\n * @param {EventBus} eventBus\n * @param {Injector} injector\n */\nfunction EditorActions(eventBus, injector) {\n\n // initialize actions\n this._actions = {};\n\n var self = this;\n\n eventBus.on('diagram.init', function() {\n\n // all diagram modules got loaded; check which ones\n // are available and register the respective default actions\n self._registerDefaultActions(injector);\n\n // ask interested parties to register available editor\n // actions on diagram initialization\n eventBus.fire('editorActions.init', {\n editorActions: self\n });\n });\n\n}\n\nEditorActions.$inject = [\n 'eventBus',\n 'injector'\n];\n\n/**\n * Register default actions.\n *\n * @param {Injector} injector\n */\nEditorActions.prototype._registerDefaultActions = function(injector) {\n\n // (1) retrieve optional components to integrate with\n\n var commandStack = injector.get('commandStack', false);\n var modeling = injector.get('modeling', false);\n var selection = injector.get('selection', false);\n var zoomScroll = injector.get('zoomScroll', false);\n var copyPaste = injector.get('copyPaste', false);\n var canvas = injector.get('canvas', false);\n var rules = injector.get('rules', false);\n var keyboardMove = injector.get('keyboardMove', false);\n var keyboardMoveSelection = injector.get('keyboardMoveSelection', false);\n\n // (2) check components and register actions\n\n if (commandStack) {\n this.register('undo', function() {\n commandStack.undo();\n });\n\n this.register('redo', function() {\n commandStack.redo();\n });\n }\n\n if (copyPaste && selection) {\n this.register('copy', function() {\n var selectedElements = selection.get();\n\n if (selectedElements.length) {\n return copyPaste.copy(selectedElements);\n }\n });\n }\n\n if (copyPaste) {\n this.register('paste', function() {\n copyPaste.paste();\n });\n }\n\n if (zoomScroll) {\n this.register('stepZoom', function(opts) {\n zoomScroll.stepZoom(opts.value);\n });\n }\n\n if (canvas) {\n this.register('zoom', function(opts) {\n canvas.zoom(opts.value);\n });\n }\n\n if (modeling && selection && rules) {\n this.register('removeSelection', function() {\n\n var selectedElements = selection.get();\n\n if (!selectedElements.length) {\n return;\n }\n\n var allowed = rules.allowed('elements.delete', { elements: selectedElements }),\n removableElements;\n\n if (allowed === false) {\n return;\n }\n else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(allowed)) {\n removableElements = allowed;\n }\n else {\n removableElements = selectedElements;\n }\n\n if (removableElements.length) {\n modeling.removeElements(removableElements.slice());\n }\n });\n }\n\n if (keyboardMove) {\n this.register('moveCanvas', function(opts) {\n keyboardMove.moveCanvas(opts);\n });\n }\n\n if (keyboardMoveSelection) {\n this.register('moveSelection', function(opts) {\n keyboardMoveSelection.moveSelection(opts.direction, opts.accelerated);\n });\n }\n\n};\n\n\n/**\n * Triggers a registered action\n *\n * @param {string} action\n * @param {Object} opts\n *\n * @return {unknown} Returns what the registered listener returns\n */\nEditorActions.prototype.trigger = function(action, opts) {\n if (!this._actions[action]) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n\n return this._actions[action](opts);\n};\n\n\n/**\n * Registers a collections of actions.\n * The key of the object will be the name of the action.\n *\n * @example\n *\n * ```javascript\n * var actions = {\n * spaceTool: function() {\n * spaceTool.activateSelection();\n * },\n * lassoTool: function() {\n * lassoTool.activateSelection();\n * }\n * ];\n *\n * editorActions.register(actions);\n *\n * editorActions.isRegistered('spaceTool'); // true\n * ```\n *\n * @param {Object} actions\n */\nEditorActions.prototype.register = function(actions, listener) {\n var self = this;\n\n if (typeof actions === 'string') {\n return this._registerAction(actions, listener);\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(actions, function(listener, action) {\n self._registerAction(action, listener);\n });\n};\n\n/**\n * Registers a listener to an action key\n *\n * @param {string} action\n * @param {Function} listener\n */\nEditorActions.prototype._registerAction = function(action, listener) {\n if (this.isRegistered(action)) {\n throw error(action, IS_REGISTERED_ERROR);\n }\n\n this._actions[action] = listener;\n};\n\n/**\n * Unregister an existing action\n *\n * @param {string} action\n */\nEditorActions.prototype.unregister = function(action) {\n if (!this.isRegistered(action)) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n\n this._actions[action] = undefined;\n};\n\n/**\n * Returns the identifiers of all currently registered editor actions\n *\n * @return {string[]}\n */\nEditorActions.prototype.getActions = function() {\n return Object.keys(this._actions);\n};\n\n/**\n * Checks wether the given action is registered\n *\n * @param {string} action\n *\n * @return {boolean}\n */\nEditorActions.prototype.isRegistered = function(action) {\n return !!this._actions[action];\n};\n\n\nfunction error(action, message) {\n return new Error(action + ' ' + message);\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/editor-actions/EditorActions.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/editor-actions/index.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/editor-actions/index.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _EditorActions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EditorActions */ \"./node_modules/diagram-js/lib/features/editor-actions/EditorActions.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'editorActions' ],\n editorActions: [ 'type', _EditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/editor-actions/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/grid-snapping/GridSnapping.js": +/*!****************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/grid-snapping/GridSnapping.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GridSnapping)\n/* harmony export */ });\n/* harmony import */ var _snapping_SnapUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../snapping/SnapUtil */ \"./node_modules/diagram-js/lib/features/snapping/SnapUtil.js\");\n/* harmony import */ var _keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _GridUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GridUtil */ \"./node_modules/diagram-js/lib/features/grid-snapping/GridUtil.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\r\n * @typedef {import('../../core/EventBus').default} EventBus\r\n */\r\n\r\nvar LOWER_PRIORITY = 1200;\r\nvar LOW_PRIORITY = 800;\r\n\r\n/**\r\n * Basic grid snapping that covers connecting, creating, moving, resizing shapes, moving bendpoints\r\n * and connection segments.\r\n *\r\n * @param {ElementRegistry} elementRegistry\r\n * @param {EventBus} eventBus\r\n * @param {Object} config\r\n */\r\nfunction GridSnapping(elementRegistry, eventBus, config) {\r\n\r\n var active = !config || config.active !== false;\r\n\r\n this._eventBus = eventBus;\r\n\r\n var self = this;\r\n\r\n eventBus.on('diagram.init', LOW_PRIORITY, function() {\r\n self.setActive(active);\r\n });\r\n\r\n eventBus.on([\r\n 'create.move',\r\n 'create.end',\r\n 'bendpoint.move.move',\r\n 'bendpoint.move.end',\r\n 'connect.move',\r\n 'connect.end',\r\n 'connectionSegment.move.move',\r\n 'connectionSegment.move.end',\r\n 'resize.move',\r\n 'resize.end',\r\n 'shape.move.move',\r\n 'shape.move.end'\r\n ], LOWER_PRIORITY, function(event) {\r\n var originalEvent = event.originalEvent;\r\n\r\n if (!self.active || (originalEvent && (0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(originalEvent))) {\r\n return;\r\n }\r\n\r\n var context = event.context,\r\n gridSnappingContext = context.gridSnappingContext;\r\n\r\n if (!gridSnappingContext) {\r\n gridSnappingContext = context.gridSnappingContext = {};\r\n }\r\n\r\n [ 'x', 'y' ].forEach(function(axis) {\r\n var options = {};\r\n\r\n // allow snapping with offset\r\n var snapOffset = getSnapOffset(event, axis, elementRegistry);\r\n\r\n if (snapOffset) {\r\n options.offset = snapOffset;\r\n }\r\n\r\n // allow snapping with min and max\r\n var snapConstraints = getSnapConstraints(event, axis);\r\n\r\n if (snapConstraints) {\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(options, snapConstraints);\r\n }\r\n\r\n if (!(0,_snapping_SnapUtil__WEBPACK_IMPORTED_MODULE_2__.isSnapped)(event, axis)) {\r\n self.snapEvent(event, axis, options);\r\n }\r\n });\r\n });\r\n}\r\n\r\n/**\r\n * Snap an events x or y with optional min, max and offset.\r\n *\r\n * @param {Object} event\r\n * @param {string} axis\r\n * @param {number} [options.min]\r\n * @param {number} [options.max]\r\n * @param {number} [options.offset]\r\n */\r\nGridSnapping.prototype.snapEvent = function(event, axis, options) {\r\n var snappedValue = this.snapValue(event[ axis ], options);\r\n\r\n (0,_snapping_SnapUtil__WEBPACK_IMPORTED_MODULE_2__.setSnapped)(event, axis, snappedValue);\r\n};\r\n\r\n/**\r\n * Expose grid spacing for third parties (i.e. extensions).\r\n *\r\n * @return {number} spacing of grid dots\r\n */\r\nGridSnapping.prototype.getGridSpacing = function() {\r\n return _GridUtil__WEBPACK_IMPORTED_MODULE_3__.SPACING;\r\n};\r\n\r\n/**\r\n * Snap value with optional min, max and offset.\r\n *\r\n * @param {number} value\r\n * @param {Object} options\r\n * @param {number} [options.min]\r\n * @param {number} [options.max]\r\n * @param {number} [options.offset]\r\n */\r\nGridSnapping.prototype.snapValue = function(value, options) {\r\n var offset = 0;\r\n\r\n if (options && options.offset) {\r\n offset = options.offset;\r\n }\r\n\r\n value += offset;\r\n\r\n value = (0,_GridUtil__WEBPACK_IMPORTED_MODULE_3__.quantize)(value, _GridUtil__WEBPACK_IMPORTED_MODULE_3__.SPACING);\r\n\r\n var min, max;\r\n\r\n if (options && options.min) {\r\n min = options.min;\r\n\r\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isNumber)(min)) {\r\n min = (0,_GridUtil__WEBPACK_IMPORTED_MODULE_3__.quantize)(min + offset, _GridUtil__WEBPACK_IMPORTED_MODULE_3__.SPACING, 'ceil');\r\n\r\n value = Math.max(value, min);\r\n }\r\n }\r\n\r\n if (options && options.max) {\r\n max = options.max;\r\n\r\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isNumber)(max)) {\r\n max = (0,_GridUtil__WEBPACK_IMPORTED_MODULE_3__.quantize)(max + offset, _GridUtil__WEBPACK_IMPORTED_MODULE_3__.SPACING, 'floor');\r\n\r\n value = Math.min(value, max);\r\n }\r\n }\r\n\r\n value -= offset;\r\n\r\n return value;\r\n};\r\n\r\nGridSnapping.prototype.isActive = function() {\r\n return this.active;\r\n};\r\n\r\nGridSnapping.prototype.setActive = function(active) {\r\n this.active = active;\r\n\r\n this._eventBus.fire('gridSnapping.toggle', { active: active });\r\n};\r\n\r\nGridSnapping.prototype.toggleActive = function() {\r\n this.setActive(!this.active);\r\n};\r\n\r\nGridSnapping.$inject = [\r\n 'elementRegistry',\r\n 'eventBus',\r\n 'config.gridSnapping'\r\n];\r\n\r\n// helpers //////////\r\n\r\n/**\r\n * Get minimum and maximum snap constraints.\r\n * Constraints are cached.\r\n *\r\n * @param {Object} event\r\n * @param {Object} event.context\r\n * @param {string} axis\r\n *\r\n * @return {boolean|Object}\r\n */\r\nfunction getSnapConstraints(event, axis) {\r\n var context = event.context,\r\n createConstraints = context.createConstraints,\r\n resizeConstraints = context.resizeConstraints || {},\r\n gridSnappingContext = context.gridSnappingContext,\r\n snapConstraints = gridSnappingContext.snapConstraints;\r\n\r\n // cache snap constraints\r\n if (snapConstraints && snapConstraints[ axis ]) {\r\n return snapConstraints[ axis ];\r\n }\r\n\r\n if (!snapConstraints) {\r\n snapConstraints = gridSnappingContext.snapConstraints = {};\r\n }\r\n\r\n if (!snapConstraints[ axis ]) {\r\n snapConstraints[ axis ] = {};\r\n }\r\n\r\n var direction = context.direction;\r\n\r\n // create\r\n if (createConstraints) {\r\n if (isHorizontal(axis)) {\r\n snapConstraints.x.min = createConstraints.left;\r\n snapConstraints.x.max = createConstraints.right;\r\n } else {\r\n snapConstraints.y.min = createConstraints.top;\r\n snapConstraints.y.max = createConstraints.bottom;\r\n }\r\n }\r\n\r\n // resize\r\n var minResizeConstraints = resizeConstraints.min,\r\n maxResizeConstraints = resizeConstraints.max;\r\n\r\n if (minResizeConstraints) {\r\n if (isHorizontal(axis)) {\r\n\r\n if (isWest(direction)) {\r\n snapConstraints.x.max = minResizeConstraints.left;\r\n } else {\r\n snapConstraints.x.min = minResizeConstraints.right;\r\n }\r\n\r\n } else {\r\n\r\n if (isNorth(direction)) {\r\n snapConstraints.y.max = minResizeConstraints.top;\r\n } else {\r\n snapConstraints.y.min = minResizeConstraints.bottom;\r\n }\r\n\r\n }\r\n }\r\n\r\n if (maxResizeConstraints) {\r\n if (isHorizontal(axis)) {\r\n\r\n if (isWest(direction)) {\r\n snapConstraints.x.min = maxResizeConstraints.left;\r\n } else {\r\n snapConstraints.x.max = maxResizeConstraints.right;\r\n }\r\n\r\n } else {\r\n\r\n if (isNorth(direction)) {\r\n snapConstraints.y.min = maxResizeConstraints.top;\r\n } else {\r\n snapConstraints.y.max = maxResizeConstraints.bottom;\r\n }\r\n\r\n }\r\n }\r\n\r\n return snapConstraints[ axis ];\r\n}\r\n\r\n/**\r\n * Get snap offset.\r\n * Offset is cached.\r\n *\r\n * @param {Object} event\r\n * @param {string} axis\r\n * @param {ElementRegistry} elementRegistry\r\n *\r\n * @return {number}\r\n */\r\nfunction getSnapOffset(event, axis, elementRegistry) {\r\n var context = event.context,\r\n shape = event.shape,\r\n gridSnappingContext = context.gridSnappingContext,\r\n snapLocation = gridSnappingContext.snapLocation,\r\n snapOffset = gridSnappingContext.snapOffset;\r\n\r\n // cache snap offset\r\n if (snapOffset && (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isNumber)(snapOffset[ axis ])) {\r\n return snapOffset[ axis ];\r\n }\r\n\r\n if (!snapOffset) {\r\n snapOffset = gridSnappingContext.snapOffset = {};\r\n }\r\n\r\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isNumber)(snapOffset[ axis ])) {\r\n snapOffset[ axis ] = 0;\r\n }\r\n\r\n if (!shape) {\r\n return snapOffset[ axis ];\r\n }\r\n\r\n if (!elementRegistry.get(shape.id)) {\r\n\r\n if (isHorizontal(axis)) {\r\n snapOffset[ axis ] += shape[ axis ] + shape.width / 2;\r\n } else {\r\n snapOffset[ axis ] += shape[ axis ] + shape.height / 2;\r\n }\r\n }\r\n\r\n if (!snapLocation) {\r\n return snapOffset[ axis ];\r\n }\r\n\r\n if (axis === 'x') {\r\n if (/left/.test(snapLocation)) {\r\n snapOffset[ axis ] -= shape.width / 2;\r\n } else if (/right/.test(snapLocation)) {\r\n snapOffset[ axis ] += shape.width / 2;\r\n }\r\n } else {\r\n if (/top/.test(snapLocation)) {\r\n snapOffset[ axis ] -= shape.height / 2;\r\n } else if (/bottom/.test(snapLocation)) {\r\n snapOffset[ axis ] += shape.height / 2;\r\n }\r\n }\r\n\r\n return snapOffset[ axis ];\r\n}\r\n\r\nfunction isHorizontal(axis) {\r\n return axis === 'x';\r\n}\r\n\r\nfunction isNorth(direction) {\r\n return direction.indexOf('n') !== -1;\r\n}\r\n\r\nfunction isWest(direction) {\r\n return direction.indexOf('w') !== -1;\r\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/grid-snapping/GridSnapping.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/grid-snapping/GridUtil.js": +/*!************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/grid-snapping/GridUtil.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SPACING: () => (/* binding */ SPACING),\n/* harmony export */ quantize: () => (/* binding */ quantize)\n/* harmony export */ });\nvar SPACING = 10;\n\nfunction quantize(value, quantum, fn) {\n if (!fn) {\n fn = 'round';\n }\n\n return Math[ fn ](value / quantum) * quantum;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/grid-snapping/GridUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/grid-snapping/behavior/ResizeBehavior.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/grid-snapping/behavior/ResizeBehavior.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ResizeBehavior)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var _command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../../../model/Types').Shape} Shape\r\n *\r\n * @typedef {import('../../../util/Types').Rect} Rect\r\n *\r\n * @typedef {import('../../../core/EventBus').default} EventBus\r\n * @typedef {import('../../grid-snapping/GridSnapping').default} GridSnapping\r\n */\r\n\r\n/**\r\n * Integrates resizing with grid snapping.\r\n *\r\n * @param {EventBus} eventBus\r\n * @param {GridSnapping} gridSnapping\r\n */\r\nfunction ResizeBehavior(eventBus, gridSnapping) {\r\n _command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, eventBus);\r\n\r\n this._gridSnapping = gridSnapping;\r\n\r\n var self = this;\r\n\r\n this.preExecute('shape.resize', function(event) {\r\n var context = event.context,\r\n hints = context.hints || {},\r\n autoResize = hints.autoResize;\r\n\r\n if (!autoResize) {\r\n return;\r\n }\r\n\r\n var shape = context.shape,\r\n newBounds = context.newBounds;\r\n\r\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isString)(autoResize)) {\r\n context.newBounds = self.snapComplex(newBounds, autoResize);\r\n } else {\r\n context.newBounds = self.snapSimple(shape, newBounds);\r\n }\r\n });\r\n}\r\n\r\nResizeBehavior.$inject = [\r\n 'eventBus',\r\n 'gridSnapping',\r\n 'modeling'\r\n];\r\n\r\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(ResizeBehavior, _command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\r\n\r\n/**\r\n * Snap width and height in relation to center.\r\n *\r\n * @param {Shape} shape\r\n * @param {Rect} newBounds\r\n *\r\n * @return {Rect} Snapped bounds.\r\n */\r\nResizeBehavior.prototype.snapSimple = function(shape, newBounds) {\r\n var gridSnapping = this._gridSnapping;\r\n\r\n newBounds.width = gridSnapping.snapValue(newBounds.width, {\r\n min: newBounds.width\r\n });\r\n\r\n newBounds.height = gridSnapping.snapValue(newBounds.height, {\r\n min: newBounds.height\r\n });\r\n\r\n newBounds.x = shape.x + (shape.width / 2) - (newBounds.width / 2);\r\n newBounds.y = shape.y + (shape.height / 2) - (newBounds.height / 2);\r\n\r\n return newBounds;\r\n};\r\n\r\n/**\r\n * Snap x, y, width and height according to given directions.\r\n *\r\n * @param {Rect} newBounds\r\n * @param {string} directions - Directions as {n|w|s|e}.\r\n *\r\n * @return {Rect} Snapped bounds.\r\n */\r\nResizeBehavior.prototype.snapComplex = function(newBounds, directions) {\r\n if (/w|e/.test(directions)) {\r\n newBounds = this.snapHorizontally(newBounds, directions);\r\n }\r\n\r\n if (/n|s/.test(directions)) {\r\n newBounds = this.snapVertically(newBounds, directions);\r\n }\r\n\r\n return newBounds;\r\n};\r\n\r\n/**\r\n * Snap in one or both directions horizontally.\r\n *\r\n * @param {Rect} newBounds\r\n * @param {string} directions - Directions as {n|w|s|e}.\r\n *\r\n * @return {Rect} Snapped bounds.\r\n */\r\nResizeBehavior.prototype.snapHorizontally = function(newBounds, directions) {\r\n var gridSnapping = this._gridSnapping,\r\n west = /w/.test(directions),\r\n east = /e/.test(directions);\r\n\r\n var snappedNewBounds = {};\r\n\r\n snappedNewBounds.width = gridSnapping.snapValue(newBounds.width, {\r\n min: newBounds.width\r\n });\r\n\r\n if (east) {\r\n\r\n // handle \r\n if (west) {\r\n snappedNewBounds.x = gridSnapping.snapValue(newBounds.x, {\r\n max: newBounds.x\r\n });\r\n\r\n snappedNewBounds.width += gridSnapping.snapValue(newBounds.x - snappedNewBounds.x, {\r\n min: newBounds.x - snappedNewBounds.x\r\n });\r\n }\r\n\r\n // handle \r\n else {\r\n newBounds.x = newBounds.x + newBounds.width - snappedNewBounds.width;\r\n }\r\n }\r\n\r\n // assign snapped x and width\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(newBounds, snappedNewBounds);\r\n\r\n return newBounds;\r\n};\r\n\r\n/**\r\n * Snap in one or both directions vertically.\r\n *\r\n * @param {Rect} newBounds\r\n * @param {string} directions - Directions as {n|w|s|e}.\r\n *\r\n * @return {Rect} Snapped bounds.\r\n */\r\nResizeBehavior.prototype.snapVertically = function(newBounds, directions) {\r\n var gridSnapping = this._gridSnapping,\r\n north = /n/.test(directions),\r\n south = /s/.test(directions);\r\n\r\n var snappedNewBounds = {};\r\n\r\n snappedNewBounds.height = gridSnapping.snapValue(newBounds.height, {\r\n min: newBounds.height\r\n });\r\n\r\n if (north) {\r\n\r\n // handle \r\n if (south) {\r\n snappedNewBounds.y = gridSnapping.snapValue(newBounds.y, {\r\n max: newBounds.y\r\n });\r\n\r\n snappedNewBounds.height += gridSnapping.snapValue(newBounds.y - snappedNewBounds.y, {\r\n min: newBounds.y - snappedNewBounds.y\r\n });\r\n }\r\n\r\n // handle \r\n else {\r\n newBounds.y = newBounds.y + newBounds.height - snappedNewBounds.height;\r\n }\r\n }\r\n\r\n // assign snapped y and height\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(newBounds, snappedNewBounds);\r\n\r\n return newBounds;\r\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/grid-snapping/behavior/ResizeBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/grid-snapping/behavior/SpaceToolBehavior.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/grid-snapping/behavior/SpaceToolBehavior.js ***! + \******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SpaceToolBehavior)\n/* harmony export */ });\n/**\r\n * @typedef {import('../../../core/EventBus').default} EventBus\r\n * @typedef {import('../../grid-snapping/GridSnapping').default} GridSnapping\r\n */\r\n\r\nvar HIGH_PRIORITY = 2000;\r\n\r\n/**\r\n * Integrates space tool with grid snapping.\r\n *\r\n * @param {EventBus} eventBus\r\n * @param {GridSnapping} gridSnapping\r\n */\r\nfunction SpaceToolBehavior(eventBus, gridSnapping) {\r\n eventBus.on([\r\n 'spaceTool.move',\r\n 'spaceTool.end'\r\n ], HIGH_PRIORITY, function(event) {\r\n var context = event.context;\r\n\r\n if (!context.initialized) {\r\n return;\r\n }\r\n\r\n var axis = context.axis;\r\n\r\n var snapped;\r\n\r\n if (axis === 'x') {\r\n\r\n // snap delta x to multiple of 10\r\n snapped = gridSnapping.snapValue(event.dx);\r\n\r\n event.x = event.x + snapped - event.dx;\r\n event.dx = snapped;\r\n } else {\r\n\r\n // snap delta y to multiple of 10\r\n snapped = gridSnapping.snapValue(event.dy);\r\n\r\n event.y = event.y + snapped - event.dy;\r\n event.dy = snapped;\r\n }\r\n });\r\n}\r\n\r\nSpaceToolBehavior.$inject = [\r\n 'eventBus',\r\n 'gridSnapping'\r\n];\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/grid-snapping/behavior/SpaceToolBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/grid-snapping/behavior/index.js": +/*!******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/grid-snapping/behavior/index.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ResizeBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ResizeBehavior */ \"./node_modules/diagram-js/lib/features/grid-snapping/behavior/ResizeBehavior.js\");\n/* harmony import */ var _SpaceToolBehavior__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SpaceToolBehavior */ \"./node_modules/diagram-js/lib/features/grid-snapping/behavior/SpaceToolBehavior.js\");\n\r\n\r\n\r\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\r\n __init__: [\r\n 'gridSnappingResizeBehavior',\r\n 'gridSnappingSpaceToolBehavior'\r\n ],\r\n gridSnappingResizeBehavior: [ 'type', _ResizeBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ],\r\n gridSnappingSpaceToolBehavior: [ 'type', _SpaceToolBehavior__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ]\r\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/grid-snapping/behavior/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/grid-snapping/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/grid-snapping/index.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _GridSnapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GridSnapping */ \"./node_modules/diagram-js/lib/features/grid-snapping/GridSnapping.js\");\n/* harmony import */ var _behavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./behavior */ \"./node_modules/diagram-js/lib/features/grid-snapping/behavior/index.js\");\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @type { import('didi').ModuleDeclaration }\r\n */\r\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\r\n __depends__: [ _behavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ],\r\n __init__: [ 'gridSnapping' ],\r\n gridSnapping: [ 'type', _GridSnapping__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ]\r\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/grid-snapping/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/hand-tool/HandTool.js": +/*!********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/hand-tool/HandTool.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ HandTool)\n/* harmony export */ });\n/* harmony import */ var _util_Mouse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n/* harmony import */ var _features_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../features/keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n\n\n\n\n/**\n * @typedef {import('didi').Injector} Injector\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../dragging/Dragging').default} Dragging\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../mouse/Mouse').default} Mouse\n * @typedef {import('../tool-manager/ToolManager').default} ToolManager\n */\n\nvar HIGH_PRIORITY = 1500;\nvar HAND_CURSOR = 'grab';\n\n/**\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {Dragging} dragging\n * @param {Injector} injector\n * @param {ToolManager} toolManager\n * @param {Mouse} mouse\n */\nfunction HandTool(\n eventBus, canvas, dragging,\n injector, toolManager, mouse) {\n\n this._dragging = dragging;\n this._mouse = mouse;\n\n var self = this,\n keyboard = injector.get('keyboard', false);\n\n toolManager.registerTool('hand', {\n tool: 'hand',\n dragging: 'hand.move'\n });\n\n eventBus.on('element.mousedown', HIGH_PRIORITY, function(event) {\n\n if (!(0,_util_Mouse__WEBPACK_IMPORTED_MODULE_0__.hasPrimaryModifier)(event)) {\n return;\n }\n\n self.activateMove(event.originalEvent, true);\n\n return false;\n });\n\n keyboard && keyboard.addListener(HIGH_PRIORITY, function(e) {\n if (!isSpace(e.keyEvent) || self.isActive()) {\n return;\n }\n\n var mouseEvent = self._mouse.getLastMoveEvent();\n\n self.activateMove(mouseEvent, !!mouseEvent);\n }, 'keyboard.keydown');\n\n keyboard && keyboard.addListener(HIGH_PRIORITY, function(e) {\n if (!isSpace(e.keyEvent) || !self.isActive()) {\n return;\n }\n\n self.toggle();\n }, 'keyboard.keyup');\n\n eventBus.on('hand.end', function(event) {\n var target = event.originalEvent.target;\n\n // only reactive on diagram click\n // on some occasions, event.hover is not set and we have to check if the target is an svg\n if (!event.hover && !(target instanceof SVGElement)) {\n return false;\n }\n\n eventBus.once('hand.ended', function() {\n self.activateMove(event.originalEvent, { reactivate: true });\n });\n\n });\n\n eventBus.on('hand.move.move', function(event) {\n var scale = canvas.viewbox().scale;\n\n canvas.scroll({\n dx: event.dx * scale,\n dy: event.dy * scale\n });\n });\n\n eventBus.on('hand.move.end', function(event) {\n var context = event.context,\n reactivate = context.reactivate;\n\n // Don't reactivate if the user is using the keyboard keybinding\n if (!(0,_util_Mouse__WEBPACK_IMPORTED_MODULE_0__.hasPrimaryModifier)(event) && reactivate) {\n\n eventBus.once('hand.move.ended', function(event) {\n self.activateHand(event.originalEvent, true, true);\n });\n\n }\n\n return false;\n });\n\n}\n\nHandTool.$inject = [\n 'eventBus',\n 'canvas',\n 'dragging',\n 'injector',\n 'toolManager',\n 'mouse'\n];\n\n/**\n *\n * @param event\n * @param {boolean} [autoActivate]\n * @param {object} [context]\n */\nHandTool.prototype.activateMove = function(event, autoActivate, context) {\n if (typeof autoActivate === 'object') {\n context = autoActivate;\n autoActivate = false;\n }\n\n this._dragging.init(event, 'hand.move', {\n autoActivate: autoActivate,\n cursor: HAND_CURSOR,\n data: {\n context: context || {}\n }\n });\n};\n\n/**\n *\n * @param event\n * @param {boolean} [autoActivate]\n * @param {boolean} [reactivate]\n */\nHandTool.prototype.activateHand = function(event, autoActivate, reactivate) {\n this._dragging.init(event, 'hand', {\n trapClick: false,\n autoActivate: autoActivate,\n cursor: HAND_CURSOR,\n data: {\n context: {\n reactivate: reactivate\n }\n }\n });\n};\n\nHandTool.prototype.toggle = function() {\n if (this.isActive()) {\n return this._dragging.cancel();\n }\n\n var mouseEvent = this._mouse.getLastMoveEvent();\n\n this.activateHand(mouseEvent, !!mouseEvent);\n};\n\nHandTool.prototype.isActive = function() {\n var context = this._dragging.context();\n\n if (context) {\n return /^(hand|hand\\.move)$/.test(context.prefix);\n }\n\n return false;\n};\n\n// helpers //////////\n\nfunction isSpace(keyEvent) {\n return (0,_features_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('Space', keyEvent);\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/hand-tool/HandTool.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/hand-tool/index.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/hand-tool/index.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _tool_manager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../tool-manager */ \"./node_modules/diagram-js/lib/features/tool-manager/index.js\");\n/* harmony import */ var _mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../mouse */ \"./node_modules/diagram-js/lib/features/mouse/index.js\");\n/* harmony import */ var _HandTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HandTool */ \"./node_modules/diagram-js/lib/features/hand-tool/HandTool.js\");\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _tool_manager__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _mouse__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n ],\n __init__: [ 'handTool' ],\n handTool: [ 'type', _HandTool__WEBPACK_IMPORTED_MODULE_2__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/hand-tool/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/hover-fix/HoverFix.js": +/*!********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/hover-fix/HoverFix.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ HoverFix)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/Event */ \"./node_modules/diagram-js/lib/util/Event.js\");\n\n\n\n\n/**\n * @typedef {import('didi').Injector} Injector\n *\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n */\n\nvar HIGH_PRIORITY = 1500;\n\n\n/**\n * Browsers may swallow certain events (hover, out ...) if users are to\n * fast with the mouse.\n *\n * @see http://stackoverflow.com/questions/7448468/why-cant-i-reliably-capture-a-mouseout-event\n *\n * The fix implemented in this component ensure that we\n *\n * 1) have a hover state after a successful drag.move event\n * 2) have an out event when dragging leaves an element\n *\n * @param {ElementRegistry} elementRegistry\n * @param {EventBus} eventBus\n * @param {Injector} injector\n */\nfunction HoverFix(elementRegistry, eventBus, injector) {\n\n var self = this;\n\n var dragging = injector.get('dragging', false);\n\n /**\n * Make sure we are god damn hovering!\n *\n * @param {Event} dragging event\n */\n function ensureHover(event) {\n\n if (event.hover) {\n return;\n }\n\n var originalEvent = event.originalEvent;\n\n var gfx = self._findTargetGfx(originalEvent);\n\n var element = gfx && elementRegistry.get(gfx);\n\n if (gfx && element) {\n\n // 1) cancel current mousemove\n event.stopPropagation();\n\n // 2) emit fake hover for new target\n dragging.hover({ element: element, gfx: gfx });\n\n // 3) re-trigger move event\n dragging.move(originalEvent);\n }\n }\n\n\n if (dragging) {\n\n /**\n * We wait for a specific sequence of events before\n * emitting a fake drag.hover event.\n *\n * Event Sequence:\n *\n * drag.start\n * drag.move >> ensure we are hovering\n */\n eventBus.on('drag.start', function(event) {\n\n eventBus.once('drag.move', HIGH_PRIORITY, function(event) {\n\n ensureHover(event);\n\n });\n\n });\n }\n\n\n /**\n * We make sure that element.out is always fired, even if the\n * browser swallows an element.out event.\n *\n * Event sequence:\n *\n * element.hover\n * (element.out >> sometimes swallowed)\n * element.hover >> ensure we fired element.out\n */\n (function() {\n var hoverGfx;\n var hover;\n\n eventBus.on('element.hover', function(event) {\n\n // (1) remember current hover element\n hoverGfx = event.gfx;\n hover = event.element;\n });\n\n eventBus.on('element.hover', HIGH_PRIORITY, function(event) {\n\n // (3) am I on an element still?\n if (hover) {\n\n // (4) that is a problem, gotta \"simulate the out\"\n eventBus.fire('element.out', {\n element: hover,\n gfx: hoverGfx\n });\n }\n\n });\n\n eventBus.on('element.out', function() {\n\n // (2) unset hover state if we correctly outed us *GG*\n hoverGfx = null;\n hover = null;\n });\n\n })();\n\n this._findTargetGfx = function(event) {\n var position,\n target;\n\n if (!(event instanceof MouseEvent)) {\n return;\n }\n\n position = (0,_util_Event__WEBPACK_IMPORTED_MODULE_0__.toPoint)(event);\n\n // damn expensive operation, ouch!\n target = document.elementFromPoint(position.x, position.y);\n\n return getGfx(target);\n };\n\n}\n\nHoverFix.$inject = [\n 'elementRegistry',\n 'eventBus',\n 'injector'\n];\n\n\n// helpers /////////////////////\n\nfunction getGfx(target) {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.closest)(target, 'svg, .djs-element', true);\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/hover-fix/HoverFix.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/hover-fix/index.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/hover-fix/index.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _HoverFix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HoverFix */ \"./node_modules/diagram-js/lib/features/hover-fix/HoverFix.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [\n 'hoverFix'\n ],\n hoverFix: [ 'type', _HoverFix__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ],\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/hover-fix/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/interaction-events/InteractionEvents.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/interaction-events/InteractionEvents.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InteractionEvents)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Mouse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var _util_RenderUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/RenderUtil */ \"./node_modules/diagram-js/lib/util/RenderUtil.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../../draw/Styles').default} Styles\n *\n * @typedef {import('../../util/Types').Point} Point\n */\n\nfunction allowAll(event) { return true; }\n\nfunction allowPrimaryAndAuxiliary(event) {\n return (0,_util_Mouse__WEBPACK_IMPORTED_MODULE_0__.isPrimaryButton)(event) || (0,_util_Mouse__WEBPACK_IMPORTED_MODULE_0__.isAuxiliaryButton)(event);\n}\n\nvar LOW_PRIORITY = 500;\n\n\n/**\n * A plugin that provides interaction events for diagram elements.\n *\n * It emits the following events:\n *\n * * element.click\n * * element.contextmenu\n * * element.dblclick\n * * element.hover\n * * element.mousedown\n * * element.mousemove\n * * element.mouseup\n * * element.out\n *\n * Each event is a tuple { element, gfx, originalEvent }.\n *\n * Canceling the event via Event#preventDefault()\n * prevents the original DOM operation.\n *\n * @param {EventBus} eventBus\n * @param {ElementRegistry} elementRegistry\n * @param {Styles} styles\n */\nfunction InteractionEvents(eventBus, elementRegistry, styles) {\n\n var self = this;\n\n /**\n * Fire an interaction event.\n *\n * @param {string} type local event name, e.g. element.click.\n * @param {MouseEvent|TouchEvent} event native event\n * @param {Element} [element] the diagram element to emit the event on;\n * defaults to the event target\n */\n function fire(type, event, element) {\n\n if (isIgnored(type, event)) {\n return;\n }\n\n var target, gfx, returnValue;\n\n if (!element) {\n target = event.delegateTarget || event.target;\n\n if (target) {\n gfx = target;\n element = elementRegistry.get(gfx);\n }\n } else {\n gfx = elementRegistry.getGraphics(element);\n }\n\n if (!gfx || !element) {\n return;\n }\n\n returnValue = eventBus.fire(type, {\n element: element,\n gfx: gfx,\n originalEvent: event\n });\n\n if (returnValue === false) {\n event.stopPropagation();\n event.preventDefault();\n }\n }\n\n // TODO(nikku): document this\n var handlers = {};\n\n function mouseHandler(localEventName) {\n return handlers[localEventName];\n }\n\n function isIgnored(localEventName, event) {\n\n var filter = ignoredFilters[localEventName] || _util_Mouse__WEBPACK_IMPORTED_MODULE_0__.isPrimaryButton;\n\n // only react on left mouse button interactions\n // except for interaction events that are enabled\n // for secundary mouse button\n return !filter(event);\n }\n\n var bindings = {\n click: 'element.click',\n contextmenu: 'element.contextmenu',\n dblclick: 'element.dblclick',\n mousedown: 'element.mousedown',\n mousemove: 'element.mousemove',\n mouseover: 'element.hover',\n mouseout: 'element.out',\n mouseup: 'element.mouseup',\n };\n\n var ignoredFilters = {\n 'element.contextmenu': allowAll,\n 'element.mousedown': allowPrimaryAndAuxiliary,\n 'element.mouseup': allowPrimaryAndAuxiliary,\n 'element.click': allowPrimaryAndAuxiliary,\n 'element.dblclick': allowPrimaryAndAuxiliary\n };\n\n\n // manual event trigger //////////\n\n /**\n * Trigger an interaction event (based on a native dom event)\n * on the target shape or connection.\n *\n * @param {string} eventName the name of the triggered DOM event\n * @param {MouseEvent|TouchEvent} event\n * @param {Element} targetElement\n */\n function triggerMouseEvent(eventName, event, targetElement) {\n\n // i.e. element.mousedown...\n var localEventName = bindings[eventName];\n\n if (!localEventName) {\n throw new Error('unmapped DOM event name <' + eventName + '>');\n }\n\n return fire(localEventName, event, targetElement);\n }\n\n\n var ELEMENT_SELECTOR = 'svg, .djs-element';\n\n // event handling ///////\n\n function registerEvent(node, event, localEvent, ignoredFilter) {\n\n var handler = handlers[localEvent] = function(event) {\n fire(localEvent, event);\n };\n\n if (ignoredFilter) {\n ignoredFilters[localEvent] = ignoredFilter;\n }\n\n handler.$delegate = min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(node, ELEMENT_SELECTOR, event, handler);\n }\n\n function unregisterEvent(node, event, localEvent) {\n\n var handler = mouseHandler(localEvent);\n\n if (!handler) {\n return;\n }\n\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.unbind(node, event, handler.$delegate);\n }\n\n function registerEvents(svg) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(bindings, function(val, key) {\n registerEvent(svg, key, val);\n });\n }\n\n function unregisterEvents(svg) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(bindings, function(val, key) {\n unregisterEvent(svg, key, val);\n });\n }\n\n eventBus.on('canvas.destroy', function(event) {\n unregisterEvents(event.svg);\n });\n\n eventBus.on('canvas.init', function(event) {\n registerEvents(event.svg);\n });\n\n\n // hit box updating ////////////////\n\n eventBus.on([ 'shape.added', 'connection.added' ], function(event) {\n var element = event.element,\n gfx = event.gfx;\n\n eventBus.fire('interactionEvents.createHit', { element: element, gfx: gfx });\n });\n\n // Update djs-hit on change.\n // A low priortity is necessary, because djs-hit of labels has to be updated\n // after the label bounds have been updated in the renderer.\n eventBus.on([\n 'shape.changed',\n 'connection.changed'\n ], LOW_PRIORITY, function(event) {\n\n var element = event.element,\n gfx = event.gfx;\n\n eventBus.fire('interactionEvents.updateHit', { element: element, gfx: gfx });\n });\n\n eventBus.on('interactionEvents.createHit', LOW_PRIORITY, function(event) {\n var element = event.element,\n gfx = event.gfx;\n\n self.createDefaultHit(element, gfx);\n });\n\n eventBus.on('interactionEvents.updateHit', function(event) {\n var element = event.element,\n gfx = event.gfx;\n\n self.updateDefaultHit(element, gfx);\n });\n\n\n // hit styles ////////////\n\n var STROKE_HIT_STYLE = createHitStyle('djs-hit djs-hit-stroke');\n\n var CLICK_STROKE_HIT_STYLE = createHitStyle('djs-hit djs-hit-click-stroke');\n\n var ALL_HIT_STYLE = createHitStyle('djs-hit djs-hit-all');\n\n var NO_MOVE_HIT_STYLE = createHitStyle('djs-hit djs-hit-no-move');\n\n var HIT_TYPES = {\n 'all': ALL_HIT_STYLE,\n 'click-stroke': CLICK_STROKE_HIT_STYLE,\n 'stroke': STROKE_HIT_STYLE,\n 'no-move': NO_MOVE_HIT_STYLE\n };\n\n function createHitStyle(classNames, attrs) {\n\n attrs = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({\n stroke: 'white',\n strokeWidth: 15\n }, attrs || {});\n\n return styles.cls(classNames, [ 'no-fill', 'no-border' ], attrs);\n }\n\n\n // style helpers ///////////////\n\n function applyStyle(hit, type) {\n\n var attrs = HIT_TYPES[type];\n\n if (!attrs) {\n throw new Error('invalid hit type <' + type + '>');\n }\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.attr)(hit, attrs);\n\n return hit;\n }\n\n function appendHit(gfx, hit) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.append)(gfx, hit);\n }\n\n\n // API\n\n /**\n * Remove hints on the given graphics.\n *\n * @param {SVGElement} gfx\n */\n this.removeHits = function(gfx) {\n var hits = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.queryAll)('.djs-hit', gfx);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(hits, tiny_svg__WEBPACK_IMPORTED_MODULE_3__.remove);\n };\n\n /**\n * Create default hit for the given element.\n *\n * @param {Element} element\n * @param {SVGElement} gfx\n *\n * @return {SVGElement} created hit\n */\n this.createDefaultHit = function(element, gfx) {\n var waypoints = element.waypoints,\n isFrame = element.isFrame,\n boxType;\n\n if (waypoints) {\n return this.createWaypointsHit(gfx, waypoints);\n } else {\n\n boxType = isFrame ? 'stroke' : 'all';\n\n return this.createBoxHit(gfx, boxType, {\n width: element.width,\n height: element.height\n });\n }\n };\n\n /**\n * Create hits for the given waypoints.\n *\n * @param {SVGElement} gfx\n * @param {Point[]} waypoints\n *\n * @return {SVGElement}\n */\n this.createWaypointsHit = function(gfx, waypoints) {\n\n var hit = (0,_util_RenderUtil__WEBPACK_IMPORTED_MODULE_4__.createLine)(waypoints);\n\n applyStyle(hit, 'stroke');\n\n appendHit(gfx, hit);\n\n return hit;\n };\n\n /**\n * Create hits for a box.\n *\n * @param {SVGElement} gfx\n * @param {string} type\n * @param {Object} attrs\n *\n * @return {SVGElement}\n */\n this.createBoxHit = function(gfx, type, attrs) {\n\n attrs = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({\n x: 0,\n y: 0\n }, attrs);\n\n var hit = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.create)('rect');\n\n applyStyle(hit, type);\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.attr)(hit, attrs);\n\n appendHit(gfx, hit);\n\n return hit;\n };\n\n /**\n * Update default hit of the element.\n *\n * @param {Element} element\n * @param {SVGElement} gfx\n *\n * @return {SVGElement} updated hit\n */\n this.updateDefaultHit = function(element, gfx) {\n\n var hit = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.query)('.djs-hit', gfx);\n\n if (!hit) {\n return;\n }\n\n if (element.waypoints) {\n (0,_util_RenderUtil__WEBPACK_IMPORTED_MODULE_4__.updateLine)(hit, element.waypoints);\n } else {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.attr)(hit, {\n width: element.width,\n height: element.height\n });\n }\n\n return hit;\n };\n\n this.fire = fire;\n\n this.triggerMouseEvent = triggerMouseEvent;\n\n this.mouseHandler = mouseHandler;\n\n this.registerEvent = registerEvent;\n this.unregisterEvent = unregisterEvent;\n}\n\n\nInteractionEvents.$inject = [\n 'eventBus',\n 'elementRegistry',\n 'styles'\n];\n\n\n/**\n * An event indicating that the mouse hovered over an element\n *\n * @event element.hover\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n/**\n * An event indicating that the mouse has left an element\n *\n * @event element.out\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n/**\n * An event indicating that the mouse has clicked an element\n *\n * @event element.click\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n/**\n * An event indicating that the mouse has double clicked an element\n *\n * @event element.dblclick\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n/**\n * An event indicating that the mouse has gone down on an element.\n *\n * @event element.mousedown\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n/**\n * An event indicating that the mouse has gone up on an element.\n *\n * @event element.mouseup\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n/**\n * An event indicating that the context menu action is triggered\n * via mouse or touch controls.\n *\n * @event element.contextmenu\n *\n * @type {Object}\n * @property {Element} element\n * @property {SVGElement} gfx\n * @property {Event} originalEvent\n */\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/interaction-events/InteractionEvents.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/interaction-events/index.js": +/*!**************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/interaction-events/index.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _InteractionEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InteractionEvents */ \"./node_modules/diagram-js/lib/features/interaction-events/InteractionEvents.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'interactionEvents' ],\n interactionEvents: [ 'type', _InteractionEvents__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/interaction-events/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/keyboard-move-selection/KeyboardMoveSelection.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/keyboard-move-selection/KeyboardMoveSelection.js ***! + \***********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ KeyboardMoveSelection)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../keyboard/Keyboard').default} Keyboard\n * @typedef {import('../modeling/Modeling').default} Modeling\n * @typedef {import('../rules/Rules').default} Rules\n * @typedef {import('../selection/Selection').default} Selection\n */\n\nvar DEFAULT_CONFIG = {\n moveSpeed: 1,\n moveSpeedAccelerated: 10\n};\n\nvar HIGHER_PRIORITY = 1500;\n\nvar LEFT = 'left';\nvar UP = 'up';\nvar RIGHT = 'right';\nvar DOWN = 'down';\n\nvar KEY_TO_DIRECTION = {\n ArrowLeft: LEFT,\n Left: LEFT,\n ArrowUp: UP,\n Up: UP,\n ArrowRight: RIGHT,\n Right: RIGHT,\n ArrowDown: DOWN,\n Down: DOWN\n};\n\nvar DIRECTIONS_DELTA = {\n left: function(speed) {\n return {\n x: -speed,\n y: 0\n };\n },\n up: function(speed) {\n return {\n x: 0,\n y: -speed\n };\n },\n right: function(speed) {\n return {\n x: speed,\n y: 0\n };\n },\n down: function(speed) {\n return {\n x: 0,\n y: speed\n };\n }\n};\n\n\n/**\n * Enables to move selection with keyboard arrows.\n * Use with Shift for modified speed (default=1, with Shift=10).\n * Pressed Cmd/Ctrl turns the feature off.\n *\n * @param {Object} config\n * @param {number} [config.moveSpeed=1]\n * @param {number} [config.moveSpeedAccelerated=10]\n * @param {Keyboard} keyboard\n * @param {Modeling} modeling\n * @param {Rules} rules\n * @param {Selection} selection\n */\nfunction KeyboardMoveSelection(\n config,\n keyboard,\n modeling,\n rules,\n selection\n) {\n\n var self = this;\n\n this._config = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, DEFAULT_CONFIG, config || {});\n\n keyboard.addListener(HIGHER_PRIORITY, function(event) {\n\n var keyEvent = event.keyEvent;\n\n var direction = KEY_TO_DIRECTION[keyEvent.key];\n\n if (!direction) {\n return;\n }\n\n if (keyboard.isCmd(keyEvent)) {\n return;\n }\n\n var accelerated = keyboard.isShift(keyEvent);\n\n self.moveSelection(direction, accelerated);\n\n return true;\n });\n\n\n /**\n * Move selected elements in the given direction,\n * optionally specifying accelerated movement.\n *\n * @param {string} direction\n * @param {boolean} [accelerated=false]\n */\n this.moveSelection = function(direction, accelerated) {\n\n var selectedElements = selection.get();\n\n if (!selectedElements.length) {\n return;\n }\n\n var speed = this._config[\n accelerated ?\n 'moveSpeedAccelerated' :\n 'moveSpeed'\n ];\n\n var delta = DIRECTIONS_DELTA[direction](speed);\n\n var canMove = rules.allowed('elements.move', {\n shapes: selectedElements\n });\n\n if (canMove) {\n modeling.moveElements(selectedElements, delta);\n }\n };\n\n}\n\nKeyboardMoveSelection.$inject = [\n 'config.keyboardMoveSelection',\n 'keyboard',\n 'modeling',\n 'rules',\n 'selection'\n];\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/keyboard-move-selection/KeyboardMoveSelection.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/keyboard-move-selection/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/keyboard-move-selection/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/diagram-js/lib/features/keyboard/index.js\");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _KeyboardMoveSelection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyboardMoveSelection */ \"./node_modules/diagram-js/lib/features/keyboard-move-selection/KeyboardMoveSelection.js\");\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _keyboard__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _selection__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n ],\n __init__: [\n 'keyboardMoveSelection'\n ],\n keyboardMoveSelection: [ 'type', _KeyboardMoveSelection__WEBPACK_IMPORTED_MODULE_2__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/keyboard-move-selection/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/keyboard/Keyboard.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/keyboard/Keyboard.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Keyboard)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {({ keyEvent: KeyboardEvent }) => any} Listener\n */\n\nvar KEYDOWN_EVENT = 'keyboard.keydown',\n KEYUP_EVENT = 'keyboard.keyup';\n\nvar HANDLE_MODIFIER_ATTRIBUTE = 'input-handle-modified-keys';\n\nvar DEFAULT_PRIORITY = 1000;\n\n/**\n * A keyboard abstraction that may be activated and\n * deactivated by users at will, consuming global key events\n * and triggering diagram actions.\n *\n * For keys pressed down, keyboard fires `keyboard.keydown` event.\n * The event context contains one field which is `KeyboardEvent` event.\n *\n * The implementation fires the following key events that allow\n * other components to hook into key handling:\n *\n * - keyboard.bind\n * - keyboard.unbind\n * - keyboard.init\n * - keyboard.destroy\n *\n * All events contain one field which is node.\n *\n * A default binding for the keyboard may be specified via the\n * `keyboard.bindTo` configuration option.\n *\n * @param {Object} config\n * @param {EventTarget} [config.bindTo]\n * @param {EventBus} eventBus\n */\nfunction Keyboard(config, eventBus) {\n var self = this;\n\n this._config = config || {};\n this._eventBus = eventBus;\n\n this._keydownHandler = this._keydownHandler.bind(this);\n this._keyupHandler = this._keyupHandler.bind(this);\n\n // properly clean dom registrations\n eventBus.on('diagram.destroy', function() {\n self._fire('destroy');\n\n self.unbind();\n });\n\n eventBus.on('diagram.init', function() {\n self._fire('init');\n });\n\n eventBus.on('attach', function() {\n if (config && config.bindTo) {\n self.bind(config.bindTo);\n }\n });\n\n eventBus.on('detach', function() {\n self.unbind();\n });\n}\n\nKeyboard.$inject = [\n 'config.keyboard',\n 'eventBus'\n];\n\nKeyboard.prototype._keydownHandler = function(event) {\n this._keyHandler(event, KEYDOWN_EVENT);\n};\n\nKeyboard.prototype._keyupHandler = function(event) {\n this._keyHandler(event, KEYUP_EVENT);\n};\n\nKeyboard.prototype._keyHandler = function(event, type) {\n var eventBusResult;\n\n if (this._isEventIgnored(event)) {\n return;\n }\n\n var context = {\n keyEvent: event\n };\n\n eventBusResult = this._eventBus.fire(type || KEYDOWN_EVENT, context);\n\n if (eventBusResult) {\n event.preventDefault();\n }\n};\n\nKeyboard.prototype._isEventIgnored = function(event) {\n if (event.defaultPrevented) {\n return true;\n }\n\n return (\n isInput(event.target) || (\n isButton(event.target) && (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isKey)([ ' ', 'Enter' ], event)\n )\n ) && this._isModifiedKeyIgnored(event);\n};\n\nKeyboard.prototype._isModifiedKeyIgnored = function(event) {\n if (!(0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(event)) {\n return true;\n }\n\n var allowedModifiers = this._getAllowedModifiers(event.target);\n return allowedModifiers.indexOf(event.key) === -1;\n};\n\nKeyboard.prototype._getAllowedModifiers = function(element) {\n var modifierContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.closest)(element, '[' + HANDLE_MODIFIER_ATTRIBUTE + ']', true);\n\n if (!modifierContainer || (this._node && !this._node.contains(modifierContainer))) {\n return [];\n }\n\n return modifierContainer.getAttribute(HANDLE_MODIFIER_ATTRIBUTE).split(',');\n};\n\n/**\n * Bind keyboard events to the given DOM node.\n *\n * @param {EventTarget} node\n */\nKeyboard.prototype.bind = function(node) {\n\n // make sure that the keyboard is only bound once to the DOM\n this.unbind();\n\n this._node = node;\n\n // bind key events\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.bind(node, 'keydown', this._keydownHandler);\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.bind(node, 'keyup', this._keyupHandler);\n\n this._fire('bind');\n};\n\n/**\n * @return {EventTarget}\n */\nKeyboard.prototype.getBinding = function() {\n return this._node;\n};\n\nKeyboard.prototype.unbind = function() {\n var node = this._node;\n\n if (node) {\n this._fire('unbind');\n\n // unbind key events\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.unbind(node, 'keydown', this._keydownHandler);\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.unbind(node, 'keyup', this._keyupHandler);\n }\n\n this._node = null;\n};\n\n/**\n * @param {string} event\n */\nKeyboard.prototype._fire = function(event) {\n this._eventBus.fire('keyboard.' + event, { node: this._node });\n};\n\n/**\n * Add a listener function that is notified with `KeyboardEvent` whenever\n * the keyboard is bound and the user presses a key. If no priority is\n * provided, the default value of 1000 is used.\n *\n * @param {number} [priority]\n * @param {Listener} listener\n * @param {string} [type='keyboard.keydown']\n */\nKeyboard.prototype.addListener = function(priority, listener, type) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(priority)) {\n type = listener;\n listener = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n this._eventBus.on(type || KEYDOWN_EVENT, priority, listener);\n};\n\n/**\n * Remove a listener function.\n *\n * @param {Listener} listener\n * @param {string} [type='keyboard.keydown']\n */\nKeyboard.prototype.removeListener = function(listener, type) {\n this._eventBus.off(type || KEYDOWN_EVENT, listener);\n};\n\nKeyboard.prototype.hasModifier = _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.hasModifier;\nKeyboard.prototype.isCmd = _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd;\nKeyboard.prototype.isShift = _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isShift;\nKeyboard.prototype.isKey = _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isKey;\n\n\n\n// helpers ///////\n\nfunction isInput(target) {\n return target && ((0,min_dom__WEBPACK_IMPORTED_MODULE_1__.matches)(target, 'input, textarea') || target.contentEditable === 'true');\n}\n\nfunction isButton(target) {\n return target && (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.matches)(target, 'button, input[type=submit], input[type=button], a[href], [aria-role=button]');\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/keyboard/Keyboard.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/keyboard/KeyboardBindings.js": +/*!***************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/keyboard/KeyboardBindings.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ KEYS_COPY: () => (/* reexport safe */ _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.KEYS_COPY),\n/* harmony export */ KEYS_PASTE: () => (/* reexport safe */ _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.KEYS_PASTE),\n/* harmony export */ KEYS_REDO: () => (/* reexport safe */ _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.KEYS_REDO),\n/* harmony export */ KEYS_UNDO: () => (/* reexport safe */ _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.KEYS_UNDO),\n/* harmony export */ \"default\": () => (/* binding */ KeyboardBindings)\n/* harmony export */ });\n/* harmony import */ var _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n\n\n/**\n * @typedef {import('../editor-actions/EditorActions').default} EditorActions\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('./Keyboard').default} Keyboard\n */\n\n\n\n\nvar LOW_PRIORITY = 500;\n\n\n/**\n * Adds default keyboard bindings.\n *\n * This does not pull in any features will bind only actions that\n * have previously been registered against the editorActions component.\n *\n * @param {EventBus} eventBus\n * @param {Keyboard} keyboard\n */\nfunction KeyboardBindings(eventBus, keyboard) {\n\n var self = this;\n\n eventBus.on('editorActions.init', LOW_PRIORITY, function(event) {\n\n var editorActions = event.editorActions;\n\n self.registerBindings(keyboard, editorActions);\n });\n}\n\nKeyboardBindings.$inject = [\n 'eventBus',\n 'keyboard'\n];\n\n\n/**\n * Register available keyboard bindings.\n *\n * @param {Keyboard} keyboard\n * @param {EditorActions} editorActions\n */\nKeyboardBindings.prototype.registerBindings = function(keyboard, editorActions) {\n\n /**\n * Add keyboard binding if respective editor action\n * is registered.\n *\n * @param {string} action name\n * @param {Function} fn that implements the key binding\n */\n function addListener(action, fn) {\n\n if (editorActions.isRegistered(action)) {\n keyboard.addListener(fn);\n }\n }\n\n\n // undo\n // (CTRL|CMD) + Z\n addListener('undo', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isUndo)(event)) {\n editorActions.trigger('undo');\n\n return true;\n }\n });\n\n // redo\n // CTRL + Y\n // CMD + SHIFT + Z\n addListener('redo', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isRedo)(event)) {\n editorActions.trigger('redo');\n\n return true;\n }\n });\n\n // copy\n // CTRL/CMD + C\n addListener('copy', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCopy)(event)) {\n editorActions.trigger('copy');\n\n return true;\n }\n });\n\n // paste\n // CTRL/CMD + V\n addListener('paste', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isPaste)(event)) {\n editorActions.trigger('paste');\n\n return true;\n }\n });\n\n // zoom in one step\n // CTRL/CMD + +\n addListener('stepZoom', function(context) {\n\n var event = context.keyEvent;\n\n // quirk: it has to be triggered by `=` as well to work on international keyboard layout\n // cf: https://github.com/bpmn-io/bpmn-js/issues/1362#issuecomment-722989754\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isKey)([ '+', 'Add', '=' ], event) && (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(event)) {\n editorActions.trigger('stepZoom', { value: 1 });\n\n return true;\n }\n });\n\n // zoom out one step\n // CTRL + -\n addListener('stepZoom', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isKey)([ '-', 'Subtract' ], event) && (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(event)) {\n editorActions.trigger('stepZoom', { value: -1 });\n\n return true;\n }\n });\n\n // zoom to the default level\n // CTRL + 0\n addListener('zoom', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isKey)('0', event) && (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(event)) {\n editorActions.trigger('zoom', { value: 1 });\n\n return true;\n }\n });\n\n // delete selected element\n // DEL\n addListener('removeSelection', function(context) {\n\n var event = context.keyEvent;\n\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isKey)([ 'Backspace', 'Delete', 'Del' ], event)) {\n editorActions.trigger('removeSelection');\n\n return true;\n }\n });\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/keyboard/KeyboardBindings.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js": +/*!***********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ KEYS_COPY: () => (/* binding */ KEYS_COPY),\n/* harmony export */ KEYS_PASTE: () => (/* binding */ KEYS_PASTE),\n/* harmony export */ KEYS_REDO: () => (/* binding */ KEYS_REDO),\n/* harmony export */ KEYS_UNDO: () => (/* binding */ KEYS_UNDO),\n/* harmony export */ hasModifier: () => (/* binding */ hasModifier),\n/* harmony export */ isCmd: () => (/* binding */ isCmd),\n/* harmony export */ isCopy: () => (/* binding */ isCopy),\n/* harmony export */ isKey: () => (/* binding */ isKey),\n/* harmony export */ isPaste: () => (/* binding */ isPaste),\n/* harmony export */ isRedo: () => (/* binding */ isRedo),\n/* harmony export */ isShift: () => (/* binding */ isShift),\n/* harmony export */ isUndo: () => (/* binding */ isUndo)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\r\n\r\nvar KEYS_COPY = [ 'c', 'C' ];\r\nvar KEYS_PASTE = [ 'v', 'V' ];\r\nvar KEYS_REDO = [ 'y', 'Y' ];\r\nvar KEYS_UNDO = [ 'z', 'Z' ];\r\n\r\n/**\r\n * Returns true if event was triggered with any modifier\r\n * @param {KeyboardEvent} event\r\n */\r\nfunction hasModifier(event) {\r\n return (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey);\r\n}\r\n\r\n/**\r\n * @param {KeyboardEvent} event\r\n * @return {boolean}\r\n */\r\nfunction isCmd(event) {\r\n\r\n // ensure we don't react to AltGr\r\n // (mapped to CTRL + ALT)\r\n if (event.altKey) {\r\n return false;\r\n }\r\n\r\n return event.ctrlKey || event.metaKey;\r\n}\r\n\r\n/**\r\n * Checks if key pressed is one of provided keys.\r\n *\r\n * @param {string|string[]} keys\r\n * @param {KeyboardEvent} event\r\n * @return {boolean}\r\n */\r\nfunction isKey(keys, event) {\r\n keys = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(keys) ? keys : [ keys ];\r\n\r\n return keys.indexOf(event.key) !== -1 || keys.indexOf(event.code) !== -1;\r\n}\r\n\r\n/**\r\n * @param {KeyboardEvent} event\r\n */\r\nfunction isShift(event) {\r\n return event.shiftKey;\r\n}\r\n\r\n/**\r\n * @param {KeyboardEvent} event\r\n */\r\nfunction isCopy(event) {\r\n return isCmd(event) && isKey(KEYS_COPY, event);\r\n}\r\n\r\n/**\r\n * @param {KeyboardEvent} event\r\n */\r\nfunction isPaste(event) {\r\n return isCmd(event) && isKey(KEYS_PASTE, event);\r\n}\r\n\r\n/**\r\n * @param {KeyboardEvent} event\r\n */\r\nfunction isUndo(event) {\r\n return isCmd(event) && !isShift(event) && isKey(KEYS_UNDO, event);\r\n}\r\n\r\n/**\r\n * @param {KeyboardEvent} event\r\n */\r\nfunction isRedo(event) {\r\n return isCmd(event) && (\r\n isKey(KEYS_REDO, event) || (\r\n isKey(KEYS_UNDO, event) && isShift(event)\r\n )\r\n );\r\n}\r\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/keyboard/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/keyboard/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Keyboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Keyboard */ \"./node_modules/diagram-js/lib/features/keyboard/Keyboard.js\");\n/* harmony import */ var _KeyboardBindings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./KeyboardBindings */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardBindings.js\");\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'keyboard', 'keyboardBindings' ],\n keyboard: [ 'type', _Keyboard__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ],\n keyboardBindings: [ 'type', _KeyboardBindings__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/keyboard/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/lasso-tool/LassoTool.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/lasso-tool/LassoTool.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LassoTool)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _util_Mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../dragging/Dragging').default} Dragging\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../mouse/Mouse').default} Mouse\n * @typedef {import('../selection/Selection').default} Selection\n * @typedef {import('../tool-manager/ToolManager').default} ToolManager\n *\n * @typedef {import('../../util/Types').Rect} Rect\n */\n\nvar LASSO_TOOL_CURSOR = 'crosshair';\n\n/**\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {Dragging} dragging\n * @param {ElementRegistry} elementRegistry\n * @param {Selection} selection\n * @param {ToolManager} toolManager\n * @param {Mouse} mouse\n */\nfunction LassoTool(\n eventBus, canvas, dragging,\n elementRegistry, selection, toolManager,\n mouse) {\n\n this._selection = selection;\n this._dragging = dragging;\n this._mouse = mouse;\n\n var self = this;\n\n // lasso visuals implementation\n\n /**\n * A helper that realizes the selection box visual\n */\n var visuals = {\n\n create: function(context) {\n var container = canvas.getActiveLayer(),\n frame;\n\n frame = context.frame = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.create)('rect');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(frame, {\n class: 'djs-lasso-overlay',\n width: 1,\n height: 1,\n x: 0,\n y: 0\n });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.append)(container, frame);\n },\n\n update: function(context) {\n var frame = context.frame,\n bbox = context.bbox;\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(frame, {\n x: bbox.x,\n y: bbox.y,\n width: bbox.width,\n height: bbox.height\n });\n },\n\n remove: function(context) {\n\n if (context.frame) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.remove)(context.frame);\n }\n }\n };\n\n toolManager.registerTool('lasso', {\n tool: 'lasso.selection',\n dragging: 'lasso'\n });\n\n eventBus.on('lasso.selection.end', function(event) {\n var target = event.originalEvent.target;\n\n // only reactive on diagram click\n // on some occasions, event.hover is not set and we have to check if the target is an svg\n if (!event.hover && !(target instanceof SVGElement)) {\n return;\n }\n\n eventBus.once('lasso.selection.ended', function() {\n self.activateLasso(event.originalEvent, true);\n });\n });\n\n // lasso interaction implementation\n\n eventBus.on('lasso.end', 0, function(event) {\n\n var context = event.context;\n\n var bbox = toBBox(event);\n\n var elements = elementRegistry.filter(function(element) {\n return element;\n });\n\n var add = (0,_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.hasSecondaryModifier)(event);\n\n self.select(elements, bbox, add ? context.selection : []);\n });\n\n eventBus.on('lasso.start', function(event) {\n\n var context = event.context;\n\n context.bbox = toBBox(event);\n visuals.create(context);\n\n context.selection = selection.get();\n });\n\n eventBus.on('lasso.move', function(event) {\n\n var context = event.context;\n\n context.bbox = toBBox(event);\n visuals.update(context);\n });\n\n eventBus.on('lasso.cleanup', function(event) {\n\n var context = event.context;\n\n visuals.remove(context);\n });\n\n\n // event integration\n\n eventBus.on('element.mousedown', 1500, function(event) {\n\n if (!(0,_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.hasSecondaryModifier)(event)) {\n return;\n }\n\n self.activateLasso(event.originalEvent);\n\n // we've handled the event\n return true;\n });\n}\n\nLassoTool.$inject = [\n 'eventBus',\n 'canvas',\n 'dragging',\n 'elementRegistry',\n 'selection',\n 'toolManager',\n 'mouse'\n];\n\n/**\n * Activate lasso.\n *\n * @param {MouseEvent} event\n * @param {boolean} [autoActivate=false]\n */\nLassoTool.prototype.activateLasso = function(event, autoActivate) {\n\n this._dragging.init(event, 'lasso', {\n autoActivate: autoActivate,\n cursor: LASSO_TOOL_CURSOR,\n data: {\n context: {}\n }\n });\n};\n\n/**\n * Activate selection.\n *\n * @param {MouseEvent} event\n * @param {boolean} [autoActivate=false]\n */\nLassoTool.prototype.activateSelection = function(event, autoActivate) {\n\n this._dragging.init(event, 'lasso.selection', {\n trapClick: false,\n autoActivate: autoActivate,\n cursor: LASSO_TOOL_CURSOR,\n data: {\n context: {}\n },\n keepSelection: true\n });\n};\n\n/**\n * Select elements within the given bounds.\n *\n * @param {Element[]} elements\n * @param {Rect} bbox\n * @param {Element[]} [previousSelection]\n */\nLassoTool.prototype.select = function(elements, bbox, previousSelection = []) {\n var selectedElements = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_2__.getEnclosedElements)(elements, bbox);\n\n this._selection.select([\n ...previousSelection,\n ...(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.values)(selectedElements)\n ]);\n};\n\n/**\n * Toggle the lasso tool.\n */\nLassoTool.prototype.toggle = function() {\n if (this.isActive()) {\n return this._dragging.cancel();\n }\n\n var mouseEvent = this._mouse.getLastMoveEvent();\n\n this.activateSelection(mouseEvent, !!mouseEvent);\n};\n\n/**\n * Check if the lasso tool is active.\n *\n * @returns {boolean}\n */\nLassoTool.prototype.isActive = function() {\n var context = this._dragging.context();\n\n return context && /^lasso/.test(context.prefix);\n};\n\n\nfunction toBBox(event) {\n\n var start = {\n\n x: event.x - event.dx,\n y: event.y - event.dy\n };\n\n var end = {\n x: event.x,\n y: event.y\n };\n\n var bbox;\n\n if ((start.x <= end.x && start.y < end.y) ||\n (start.x < end.x && start.y <= end.y)) {\n\n bbox = {\n x: start.x,\n y: start.y,\n width: end.x - start.x,\n height: end.y - start.y\n };\n } else if ((start.x >= end.x && start.y < end.y) ||\n (start.x > end.x && start.y <= end.y)) {\n\n bbox = {\n x: end.x,\n y: start.y,\n width: start.x - end.x,\n height: end.y - start.y\n };\n } else if ((start.x <= end.x && start.y > end.y) ||\n (start.x < end.x && start.y >= end.y)) {\n\n bbox = {\n x: start.x,\n y: end.y,\n width: end.x - start.x,\n height: start.y - end.y\n };\n } else if ((start.x >= end.x && start.y > end.y) ||\n (start.x > end.x && start.y >= end.y)) {\n\n bbox = {\n x: end.x,\n y: end.y,\n width: start.x - end.x,\n height: start.y - end.y\n };\n } else {\n\n bbox = {\n x: end.x,\n y: end.y,\n width: 0,\n height: 0\n };\n }\n return bbox;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/lasso-tool/LassoTool.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/lasso-tool/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/lasso-tool/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _tool_manager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../tool-manager */ \"./node_modules/diagram-js/lib/features/tool-manager/index.js\");\n/* harmony import */ var _mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../mouse */ \"./node_modules/diagram-js/lib/features/mouse/index.js\");\n/* harmony import */ var _LassoTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LassoTool */ \"./node_modules/diagram-js/lib/features/lasso-tool/LassoTool.js\");\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _tool_manager__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _mouse__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n ],\n __init__: [ 'lassoTool' ],\n lassoTool: [ 'type', _LassoTool__WEBPACK_IMPORTED_MODULE_2__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/lasso-tool/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/Modeling.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/Modeling.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeling)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _cmd_AlignElementsHandler__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./cmd/AlignElementsHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/AlignElementsHandler.js\");\n/* harmony import */ var _cmd_AppendShapeHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cmd/AppendShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/AppendShapeHandler.js\");\n/* harmony import */ var _cmd_CreateConnectionHandler__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./cmd/CreateConnectionHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/CreateConnectionHandler.js\");\n/* harmony import */ var _cmd_CreateElementsHandler__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./cmd/CreateElementsHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/CreateElementsHandler.js\");\n/* harmony import */ var _cmd_CreateLabelHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./cmd/CreateLabelHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/CreateLabelHandler.js\");\n/* harmony import */ var _cmd_CreateShapeHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cmd/CreateShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/CreateShapeHandler.js\");\n/* harmony import */ var _cmd_DeleteConnectionHandler__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./cmd/DeleteConnectionHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/DeleteConnectionHandler.js\");\n/* harmony import */ var _cmd_DeleteElementsHandler__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./cmd/DeleteElementsHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/DeleteElementsHandler.js\");\n/* harmony import */ var _cmd_DeleteShapeHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cmd/DeleteShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/DeleteShapeHandler.js\");\n/* harmony import */ var _cmd_DistributeElementsHandler__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./cmd/DistributeElementsHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/DistributeElementsHandler.js\");\n/* harmony import */ var _cmd_LayoutConnectionHandler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./cmd/LayoutConnectionHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/LayoutConnectionHandler.js\");\n/* harmony import */ var _cmd_MoveConnectionHandler__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./cmd/MoveConnectionHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/MoveConnectionHandler.js\");\n/* harmony import */ var _cmd_MoveElementsHandler__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./cmd/MoveElementsHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/MoveElementsHandler.js\");\n/* harmony import */ var _cmd_MoveShapeHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cmd/MoveShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/MoveShapeHandler.js\");\n/* harmony import */ var _cmd_ReconnectConnectionHandler__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./cmd/ReconnectConnectionHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/ReconnectConnectionHandler.js\");\n/* harmony import */ var _cmd_ReplaceShapeHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cmd/ReplaceShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/ReplaceShapeHandler.js\");\n/* harmony import */ var _cmd_ResizeShapeHandler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cmd/ResizeShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/ResizeShapeHandler.js\");\n/* harmony import */ var _cmd_SpaceToolHandler__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cmd/SpaceToolHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/SpaceToolHandler.js\");\n/* harmony import */ var _cmd_ToggleShapeCollapseHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cmd/ToggleShapeCollapseHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/ToggleShapeCollapseHandler.js\");\n/* harmony import */ var _cmd_UpdateAttachmentHandler__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./cmd/UpdateAttachmentHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/UpdateAttachmentHandler.js\");\n/* harmony import */ var _cmd_UpdateWaypointsHandler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./cmd/UpdateWaypointsHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/UpdateWaypointsHandler.js\");\n/* harmony import */ var _model__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../model */ \"./node_modules/diagram-js/lib/model/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n * @typedef {import('../../model/Types').Connection} Connection\n * @typedef {import('../../model/Types').Parent} Parent\n * @typedef {import('../../model/Types').Shape} Shape\n * @typedef {import('../../model/Types').Label} Label\n *\n * @typedef {import('../../command/CommandStack').default} CommandStack\n * @typedef {import('../../core/ElementFactory').default} ElementFactory\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {import('../../command/CommandStack').CommandHandlerConstructor} CommandHandlerConstructor\n *\n * @typedef {import('../../util/Types').Dimensions} Dimensions\n * @typedef {import('../../util/Types').Direction} Direction\n * @typedef {import('../../util/Types').Point} Point\n * @typedef {import('../../util/Types').Rect} Rect\n *\n * @typedef { 'x' | 'y' } ModelingDistributeAxis\n *\n * @typedef { 'width' | 'height' } ModelingDistributeDimension\n *\n * @typedef { {\n * bottom?: number;\n * center?: number;\n * left?: number;\n * middle?: number;\n * right?: number;\n * top?: number;\n * } } ModelingAlignAlignment\n *\n * @typedef { {\n * [key: string]: any;\n * } } ModelingHints\n *\n * @typedef { {\n * attach?: boolean;\n * } & ModelingHints } ModelingMoveElementsHints\n *\n * @typedef { {\n * attach?: boolean;\n * } & ModelingHints } ModelingCreateShapeHints\n */\n\n/**\n * @template {Element} U\n *\n * @typedef { {\n * elements: U[],\n * range: {\n * min: number;\n * max: number;\n * } }\n * } ModelingDistributeGroup\n */\n\n/**\n * The basic modeling entry point.\n *\n * @template {Connection} [T=Connection]\n * @template {Element} [U=Element]\n * @template {Label} [V=Label]\n * @template {Parent} [W=Parent]\n * @template {Shape} [X=Shape]\n *\n * @param {EventBus} eventBus\n * @param {ElementFactory} elementFactory\n * @param {CommandStack} commandStack\n */\nfunction Modeling(eventBus, elementFactory, commandStack) {\n this._eventBus = eventBus;\n this._elementFactory = elementFactory;\n this._commandStack = commandStack;\n\n var self = this;\n\n eventBus.on('diagram.init', function() {\n\n // register modeling handlers\n self.registerHandlers(commandStack);\n });\n}\n\nModeling.$inject = [ 'eventBus', 'elementFactory', 'commandStack' ];\n\n/**\n * Get a map of all command handlers.\n *\n * @return {Map}\n */\nModeling.prototype.getHandlers = function() {\n return {\n 'shape.append': _cmd_AppendShapeHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n 'shape.create': _cmd_CreateShapeHandler__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n 'shape.delete': _cmd_DeleteShapeHandler__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n 'shape.move': _cmd_MoveShapeHandler__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n 'shape.resize': _cmd_ResizeShapeHandler__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n 'shape.replace': _cmd_ReplaceShapeHandler__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n 'shape.toggleCollapse': _cmd_ToggleShapeCollapseHandler__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n\n 'spaceTool': _cmd_SpaceToolHandler__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n\n 'label.create': _cmd_CreateLabelHandler__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n\n 'connection.create': _cmd_CreateConnectionHandler__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n 'connection.delete': _cmd_DeleteConnectionHandler__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n 'connection.move': _cmd_MoveConnectionHandler__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n 'connection.layout': _cmd_LayoutConnectionHandler__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n\n 'connection.updateWaypoints': _cmd_UpdateWaypointsHandler__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n\n 'connection.reconnect': _cmd_ReconnectConnectionHandler__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n\n 'elements.create': _cmd_CreateElementsHandler__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n 'elements.move': _cmd_MoveElementsHandler__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n 'elements.delete': _cmd_DeleteElementsHandler__WEBPACK_IMPORTED_MODULE_17__[\"default\"],\n\n 'elements.distribute': _cmd_DistributeElementsHandler__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n 'elements.align': _cmd_AlignElementsHandler__WEBPACK_IMPORTED_MODULE_19__[\"default\"],\n\n 'element.updateAttachment': _cmd_UpdateAttachmentHandler__WEBPACK_IMPORTED_MODULE_20__[\"default\"]\n };\n};\n\n/**\n * Register handlers with the command stack\n *\n * @param {CommandStack} commandStack\n */\nModeling.prototype.registerHandlers = function(commandStack) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_21__.forEach)(this.getHandlers(), function(handler, id) {\n commandStack.registerHandler(id, handler);\n });\n};\n\n\n/**\n * Move a shape by the given delta and optionally to a new parent.\n *\n * @param {X} shape\n * @param {Point} delta\n * @param {W} [newParent]\n * @param {number} [newParentIndex]\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.moveShape = function(shape, delta, newParent, newParentIndex, hints) {\n\n if (typeof newParentIndex === 'object') {\n hints = newParentIndex;\n newParentIndex = null;\n }\n\n var context = {\n shape: shape,\n delta: delta,\n newParent: newParent,\n newParentIndex: newParentIndex,\n hints: hints || {}\n };\n\n this._commandStack.execute('shape.move', context);\n};\n\n\n/**\n * Update the attachment of a shape.\n *\n * @param {X} shape\n * @param {X} [newHost=undefined]\n */\nModeling.prototype.updateAttachment = function(shape, newHost) {\n var context = {\n shape: shape,\n newHost: newHost\n };\n\n this._commandStack.execute('element.updateAttachment', context);\n};\n\n\n/**\n * Move elements by a given delta and optionally to a new parent.\n *\n * @param {U[]} shapes\n * @param {Point} delta\n * @param {W} [target]\n * @param {ModelingMoveElementsHints} [hints]\n */\nModeling.prototype.moveElements = function(shapes, delta, target, hints) {\n\n hints = hints || {};\n\n var attach = hints.attach;\n\n var newParent = target,\n newHost;\n\n if (attach === true) {\n newHost = target;\n newParent = target.parent;\n } else if (attach === false) {\n newHost = null;\n }\n\n var context = {\n shapes: shapes,\n delta: delta,\n newParent: newParent,\n newHost: newHost,\n hints: hints\n };\n\n this._commandStack.execute('elements.move', context);\n};\n\n/**\n * Move a shape by the given delta and optionally to a new parent.\n *\n * @param {T} connection\n * @param {Point} delta\n * @param {W} [newParent]\n * @param {number} [newParentIndex]\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.moveConnection = function(connection, delta, newParent, newParentIndex, hints) {\n\n if (typeof newParentIndex === 'object') {\n hints = newParentIndex;\n newParentIndex = undefined;\n }\n\n var context = {\n connection: connection,\n delta: delta,\n newParent: newParent,\n newParentIndex: newParentIndex,\n hints: hints || {}\n };\n\n this._commandStack.execute('connection.move', context);\n};\n\n/**\n * Layout a connection.\n *\n * @param {T} connection\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.layoutConnection = function(connection, hints) {\n var context = {\n connection: connection,\n hints: hints || {}\n };\n\n this._commandStack.execute('connection.layout', context);\n};\n\n/**\n * Create a connection.\n *\n * @overlord\n *\n * @param {U} source\n * @param {U} target\n * @param {Partial} connection\n * @param {W} parent\n * @param {ModelingHints} [hints]\n *\n * @return {T}\n */\n\n/**\n * Create a connection.\n *\n * @param {U} source\n * @param {U} target\n * @param {number} parentIndex\n * @param {Partial} connection\n * @param {W} parent\n * @param {ModelingHints} [hints]\n *\n * @return {T}\n */\nModeling.prototype.createConnection = function(source, target, parentIndex, connection, parent, hints) {\n\n if (typeof parentIndex === 'object') {\n hints = parent;\n parent = connection;\n connection = parentIndex;\n parentIndex = undefined;\n }\n\n connection = this._create('connection', connection);\n\n var context = {\n source: source,\n target: target,\n parent: parent,\n parentIndex: parentIndex,\n connection: connection,\n hints: hints\n };\n\n this._commandStack.execute('connection.create', context);\n\n return context.connection;\n};\n\n\n/**\n * Create a shape.\n *\n * @overlord\n *\n * @param {Partial} shape\n * @param {Point} position\n * @param {W} target\n * @param {ModelingCreateShapeHints} [hints]\n *\n * @return {X}\n */\n\n/**\n * Create a shape.\n *\n * @param {Partial} shape\n * @param {Point} position\n * @param {W} target\n * @param {number} parentIndex\n * @param {ModelingCreateShapeHints} [hints]\n *\n * @return {X}\n */\nModeling.prototype.createShape = function(shape, position, target, parentIndex, hints) {\n\n if (typeof parentIndex !== 'number') {\n hints = parentIndex;\n parentIndex = undefined;\n }\n\n hints = hints || {};\n\n var attach = hints.attach,\n parent,\n host;\n\n shape = this._create('shape', shape);\n\n if (attach) {\n parent = target.parent;\n host = target;\n } else {\n parent = target;\n }\n\n var context = {\n position: position,\n shape: shape,\n parent: parent,\n parentIndex: parentIndex,\n host: host,\n hints: hints\n };\n\n this._commandStack.execute('shape.create', context);\n\n return context.shape;\n};\n\n/**\n * Create elements.\n *\n * @param {Partial[]} elements\n * @param {Point} position\n * @param {W} parent\n * @param {number} [parentIndex]\n * @param {ModelingHints} [hints]\n *\n * @return {U[]}\n */\nModeling.prototype.createElements = function(elements, position, parent, parentIndex, hints) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_21__.isArray)(elements)) {\n elements = [ elements ];\n }\n\n if (typeof parentIndex !== 'number') {\n hints = parentIndex;\n parentIndex = undefined;\n }\n\n hints = hints || {};\n\n var context = {\n position: position,\n elements: elements,\n parent: parent,\n parentIndex: parentIndex,\n hints: hints\n };\n\n this._commandStack.execute('elements.create', context);\n\n return context.elements;\n};\n\n/**\n * Create a label.\n *\n * @param {U} labelTarget\n * @param {Point} position\n * @param {Partial} label\n * @param {W} [parent]\n *\n * @return {V}\n */\nModeling.prototype.createLabel = function(labelTarget, position, label, parent) {\n\n label = this._create('label', label);\n\n var context = {\n labelTarget: labelTarget,\n position: position,\n parent: parent || labelTarget.parent,\n shape: label\n };\n\n this._commandStack.execute('label.create', context);\n\n return context.shape;\n};\n\n\n/**\n * Create and connect a shape to a source.\n *\n * @param {U} source\n * @param {Partial} shape\n * @param {Point} position\n * @param {W} target\n * @param {ModelingHints} [hints]\n *\n * @return {X}\n */\nModeling.prototype.appendShape = function(source, shape, position, target, hints) {\n\n hints = hints || {};\n\n shape = this._create('shape', shape);\n\n var context = {\n source: source,\n position: position,\n target: target,\n shape: shape,\n connection: hints.connection,\n connectionParent: hints.connectionParent,\n hints: hints\n };\n\n this._commandStack.execute('shape.append', context);\n\n return context.shape;\n};\n\n/**\n * Remove elements.\n *\n * @param {U[]} elements\n */\nModeling.prototype.removeElements = function(elements) {\n var context = {\n elements: elements\n };\n\n this._commandStack.execute('elements.delete', context);\n};\n\n/**\n * Distribute elements along a given axis.\n *\n * @param {ModelingDistributeGroup[]} groups\n * @param {ModelingDistributeAxis} axis\n * @param {ModelingDistributeDimension} dimension\n */\nModeling.prototype.distributeElements = function(groups, axis, dimension) {\n var context = {\n groups: groups,\n axis: axis,\n dimension: dimension\n };\n\n this._commandStack.execute('elements.distribute', context);\n};\n\n/**\n * Remove a shape.\n *\n * @param {X} shape\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.removeShape = function(shape, hints) {\n var context = {\n shape: shape,\n hints: hints || {}\n };\n\n this._commandStack.execute('shape.delete', context);\n};\n\n/**\n * Remove a connection.\n *\n * @param {T} connection\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.removeConnection = function(connection, hints) {\n var context = {\n connection: connection,\n hints: hints || {}\n };\n\n this._commandStack.execute('connection.delete', context);\n};\n\n/**\n * Replace a shape.\n *\n * @param {X} oldShape\n * @param {Partial} newShape\n * @param {ModelingHints} [hints]\n *\n * @return {X}\n */\nModeling.prototype.replaceShape = function(oldShape, newShape, hints) {\n var context = {\n oldShape: oldShape,\n newData: newShape,\n hints: hints || {}\n };\n\n this._commandStack.execute('shape.replace', context);\n\n return context.newShape;\n};\n\n/**\n * Align elements.\n *\n * @param {U[]} elements\n * @param {ModelingAlignAlignment} alignment\n */\nModeling.prototype.alignElements = function(elements, alignment) {\n var context = {\n elements: elements,\n alignment: alignment\n };\n\n this._commandStack.execute('elements.align', context);\n};\n\n/**\n * Resize a shape.\n *\n * @param {X} shape\n * @param {Rect} newBounds\n * @param {Dimensions} [minBounds]\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.resizeShape = function(shape, newBounds, minBounds, hints) {\n var context = {\n shape: shape,\n newBounds: newBounds,\n minBounds: minBounds,\n hints: hints\n };\n\n this._commandStack.execute('shape.resize', context);\n};\n\n/**\n * Create space along an horizontally or vertically.\n *\n * @param {X[]} movingShapes\n * @param {X[]} resizingShapes\n * @param {Point} delta\n * @param {Direction} direction\n * @param {number} start\n */\nModeling.prototype.createSpace = function(movingShapes, resizingShapes, delta, direction, start) {\n var context = {\n delta: delta,\n direction: direction,\n movingShapes: movingShapes,\n resizingShapes: resizingShapes,\n start: start\n };\n\n this._commandStack.execute('spaceTool', context);\n};\n\n/**\n * Update a connetions waypoints.\n *\n * @param {T} connection\n * @param {Point[]} newWaypoints\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.updateWaypoints = function(connection, newWaypoints, hints) {\n var context = {\n connection: connection,\n newWaypoints: newWaypoints,\n hints: hints || {}\n };\n\n this._commandStack.execute('connection.updateWaypoints', context);\n};\n\n/**\n * Reconnect a connections source and/or target.\n *\n * @param {T} connection\n * @param {U} source\n * @param {U} target\n * @param {Point|Point[]} dockingOrPoints\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.reconnect = function(connection, source, target, dockingOrPoints, hints) {\n var context = {\n connection: connection,\n newSource: source,\n newTarget: target,\n dockingOrPoints: dockingOrPoints,\n hints: hints || {}\n };\n\n this._commandStack.execute('connection.reconnect', context);\n};\n\n/**\n * Reconnect a connections source.\n *\n * @param {T} connection\n * @param {U} newSource\n * @param {Point|Point[]} dockingOrPoints\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.reconnectStart = function(connection, newSource, dockingOrPoints, hints) {\n if (!hints) {\n hints = {};\n }\n\n this.reconnect(connection, newSource, connection.target, dockingOrPoints, (0,min_dash__WEBPACK_IMPORTED_MODULE_21__.assign)(hints, {\n docking: 'source'\n }));\n};\n\n/**\n * Reconnect a connections target.\n *\n * @param {T} connection\n * @param {U} newTarget\n * @param {Point|Point[]} dockingOrPoints\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.reconnectEnd = function(connection, newTarget, dockingOrPoints, hints) {\n if (!hints) {\n hints = {};\n }\n\n this.reconnect(connection, connection.source, newTarget, dockingOrPoints, (0,min_dash__WEBPACK_IMPORTED_MODULE_21__.assign)(hints, {\n docking: 'target'\n }));\n};\n\n/**\n * Connect two elements.\n *\n * @param {U} source\n * @param {U} target\n * @param {Partial} [attrs]\n * @param {ModelingHints} [hints]\n *\n * @return {T}\n */\nModeling.prototype.connect = function(source, target, attrs, hints) {\n return this.createConnection(source, target, attrs || {}, source.parent, hints);\n};\n\nModeling.prototype._create = function(type, attrs) {\n if ((0,_model__WEBPACK_IMPORTED_MODULE_22__.isModelElement)(attrs)) {\n return attrs;\n } else {\n return this._elementFactory.create(type, attrs);\n }\n};\n\n/**\n * Collapse or expand a shape.\n *\n * @param {X} shape\n * @param {ModelingHints} [hints]\n */\nModeling.prototype.toggleCollapse = function(shape, hints) {\n var context = {\n shape: shape,\n hints: hints || {}\n };\n\n this._commandStack.execute('shape.toggleCollapse', context);\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/Modeling.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/AlignElementsHandler.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/AlignElementsHandler.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AlignElements)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../../core/Canvas').default} Canvas\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that align elements in a certain way.\n *\n * @param {Modeling} modeling\n * @param {Canvas} canvas\n */\nfunction AlignElements(modeling, canvas) {\n this._modeling = modeling;\n this._canvas = canvas;\n}\n\nAlignElements.$inject = [ 'modeling', 'canvas' ];\n\n\nAlignElements.prototype.preExecute = function(context) {\n var modeling = this._modeling;\n\n var elements = context.elements,\n alignment = context.alignment;\n\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n var delta = {\n x: 0,\n y: 0\n };\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(alignment.left)) {\n delta.x = alignment.left - element.x;\n\n } else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(alignment.right)) {\n delta.x = (alignment.right - element.width) - element.x;\n\n } else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(alignment.center)) {\n delta.x = (alignment.center - Math.round(element.width / 2)) - element.x;\n\n } else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(alignment.top)) {\n delta.y = alignment.top - element.y;\n\n } else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(alignment.bottom)) {\n delta.y = (alignment.bottom - element.height) - element.y;\n\n } else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(alignment.middle)) {\n delta.y = (alignment.middle - Math.round(element.height / 2)) - element.y;\n }\n\n modeling.moveElements([ element ], delta, element.parent);\n });\n};\n\nAlignElements.prototype.postExecute = function(context) {\n\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/AlignElementsHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/AppendShapeHandler.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/AppendShapeHandler.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AppendShapeHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../../model/Types').Element} Element\n * @typedef {import('../../../model/Types').Parent} Parent\n * @typedef {import('../../../model/Types').Shape} Shape\n *\n * @typedef {import('../../../util/Types').Point} Point\n *\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible appending of shapes\n * to a source shape.\n *\n * @param {Modeling} modeling\n */\nfunction AppendShapeHandler(modeling) {\n this._modeling = modeling;\n}\n\nAppendShapeHandler.$inject = [ 'modeling' ];\n\n\n// api //////////////////////\n\n\n/**\n * Creates a new shape.\n *\n * @param {Object} context\n * @param {Partial} context.shape The new shape.\n * @param {Element} context.source The element to which to append the new shape to.\n * @param {Parent} context.parent The parent.\n * @param {Point} context.position The position at which to create the new shape.\n */\nAppendShapeHandler.prototype.preExecute = function(context) {\n\n var source = context.source;\n\n if (!source) {\n throw new Error('source required');\n }\n\n var target = context.target || source.parent,\n shape = context.shape,\n hints = context.hints || {};\n\n shape = context.shape =\n this._modeling.createShape(\n shape,\n context.position,\n target, { attach: hints.attach });\n\n context.shape = shape;\n};\n\nAppendShapeHandler.prototype.postExecute = function(context) {\n var hints = context.hints || {};\n\n if (!existsConnection(context.source, context.shape)) {\n\n // create connection\n if (hints.connectionTarget === context.source) {\n this._modeling.connect(context.shape, context.source, context.connection);\n } else {\n this._modeling.connect(context.source, context.shape, context.connection);\n }\n }\n};\n\n\nfunction existsConnection(source, target) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.some)(source.outgoing, function(c) {\n return c.target === target;\n });\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/AppendShapeHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/CreateConnectionHandler.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/CreateConnectionHandler.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateConnectionHandler)\n/* harmony export */ });\n/**\n * @typedef {import('../../../model/Types').Element} Element\n * @typedef {import('../../../model/Types').Shape} Shape\n *\n * @typedef {import('../../../util/Types').Point} Point\n *\n * @typedef {import('../Modeling').ModelingHints} ModelingHints\n *\n * @typedef {import('../../../core/Canvas').default} Canvas\n * @typedef {import('../../../layout/BaseLayouter').default} Layouter\n */\n\n/**\n * @param {Canvas} canvas\n * @param {Layouter} layouter\n */\nfunction CreateConnectionHandler(canvas, layouter) {\n this._canvas = canvas;\n this._layouter = layouter;\n}\n\nCreateConnectionHandler.$inject = [ 'canvas', 'layouter' ];\n\n\n// api //////////////////////\n\n\n/**\n * Creates a new connection between two elements.\n *\n * @param {Object} context\n * @param {Element} context.source The source.\n * @param {Element} context.target The target.\n * @param {Shape} context.parent The parent.\n * @param {number} [context.parentIndex] The optional index at which to add the\n * connection to the parent's children.\n * @param {ModelingHints} [context.hints] The optional hints.\n */\nCreateConnectionHandler.prototype.execute = function(context) {\n\n var connection = context.connection,\n source = context.source,\n target = context.target,\n parent = context.parent,\n parentIndex = context.parentIndex,\n hints = context.hints;\n\n if (!source || !target) {\n throw new Error('source and target required');\n }\n\n if (!parent) {\n throw new Error('parent required');\n }\n\n connection.source = source;\n connection.target = target;\n\n if (!connection.waypoints) {\n connection.waypoints = this._layouter.layoutConnection(connection, hints);\n }\n\n // add connection\n this._canvas.addConnection(connection, parent, parentIndex);\n\n return connection;\n};\n\nCreateConnectionHandler.prototype.revert = function(context) {\n var connection = context.connection;\n\n this._canvas.removeConnection(connection);\n\n connection.source = null;\n connection.target = null;\n\n return connection;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/CreateConnectionHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/CreateElementsHandler.js": +/*!************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/CreateElementsHandler.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateElementsHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../Modeling').default} Modeling\r\n */\r\n\r\nvar round = Math.round;\r\n\r\n/**\r\n * @param {Modeling} modeling\r\n */\r\nfunction CreateElementsHandler(modeling) {\r\n this._modeling = modeling;\r\n}\r\n\r\nCreateElementsHandler.$inject = [\r\n 'modeling'\r\n];\r\n\r\nCreateElementsHandler.prototype.preExecute = function(context) {\r\n var elements = context.elements,\r\n parent = context.parent,\r\n parentIndex = context.parentIndex,\r\n position = context.position,\r\n hints = context.hints;\r\n\r\n var modeling = this._modeling;\r\n\r\n // make sure each element has x and y\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\r\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(element.x)) {\r\n element.x = 0;\r\n }\r\n\r\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(element.y)) {\r\n element.y = 0;\r\n }\r\n });\r\n\r\n var visibleElements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.filter)(elements, function(element) {\r\n return !element.hidden;\r\n });\r\n\r\n var bbox = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_1__.getBBox)(visibleElements);\r\n\r\n // center elements around position\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isConnection)(element)) {\r\n element.waypoints = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.map)(element.waypoints, function(waypoint) {\r\n return {\r\n x: round(waypoint.x - bbox.x - bbox.width / 2 + position.x),\r\n y: round(waypoint.y - bbox.y - bbox.height / 2 + position.y)\r\n };\r\n });\r\n }\r\n\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(element, {\r\n x: round(element.x - bbox.x - bbox.width / 2 + position.x),\r\n y: round(element.y - bbox.y - bbox.height / 2 + position.y)\r\n });\r\n });\r\n\r\n var parents = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_1__.getParents)(elements);\r\n\r\n var cache = {};\r\n\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isConnection)(element)) {\r\n cache[ element.id ] = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(parentIndex) ?\r\n modeling.createConnection(\r\n cache[ element.source.id ],\r\n cache[ element.target.id ],\r\n parentIndex,\r\n element,\r\n element.parent || parent,\r\n hints\r\n ) :\r\n modeling.createConnection(\r\n cache[ element.source.id ],\r\n cache[ element.target.id ],\r\n element,\r\n element.parent || parent,\r\n hints\r\n );\r\n\r\n return;\r\n }\r\n\r\n var createShapeHints = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, hints);\r\n\r\n if (parents.indexOf(element) === -1) {\r\n createShapeHints.autoResize = false;\r\n }\r\n\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isLabel)(element)) {\r\n createShapeHints = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.omit)(createShapeHints, [ 'attach' ]);\r\n }\r\n\r\n cache[ element.id ] = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(parentIndex) ?\r\n modeling.createShape(\r\n element,\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.pick)(element, [ 'x', 'y', 'width', 'height' ]),\r\n element.parent || parent,\r\n parentIndex,\r\n createShapeHints\r\n ) :\r\n modeling.createShape(\r\n element,\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.pick)(element, [ 'x', 'y', 'width', 'height' ]),\r\n element.parent || parent,\r\n createShapeHints\r\n );\r\n });\r\n\r\n context.elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.values)(cache);\r\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/CreateElementsHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/CreateLabelHandler.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/CreateLabelHandler.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateLabelHandler)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var _CreateShapeHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateShapeHandler */ \"./node_modules/diagram-js/lib/features/modeling/cmd/CreateShapeHandler.js\");\n\n\n\n\n/**\n * @typedef {import('../../../core/Canvas').default} Canvas\n *\n * @typedef {import('../../../model/Types').Element} Element\n * @typedef {import('../../../model/Types').Parent} Parent\n * @typedef {import('../../../model/Types').Shape} Shape\n * @typedef {import('../../../util/Types').Point} Point\n */\n\n/**\n * A handler that attaches a label to a given target shape.\n *\n * @param {Canvas} canvas\n */\nfunction CreateLabelHandler(canvas) {\n _CreateShapeHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, canvas);\n}\n\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(CreateLabelHandler, _CreateShapeHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\nCreateLabelHandler.$inject = [ 'canvas' ];\n\n\n// api //////////////////////\n\n\nvar originalExecute = _CreateShapeHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.execute;\n\n/**\n * Append label to element.\n *\n * @param { {\n * parent: Parent;\n * position: Point;\n * shape: Shape;\n * target: Element;\n * } } context\n */\nCreateLabelHandler.prototype.execute = function(context) {\n\n var label = context.shape;\n\n ensureValidDimensions(label);\n\n label.labelTarget = context.labelTarget;\n\n return originalExecute.call(this, context);\n};\n\nvar originalRevert = _CreateShapeHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.revert;\n\n/**\n * Revert appending by removing label.\n */\nCreateLabelHandler.prototype.revert = function(context) {\n context.shape.labelTarget = null;\n\n return originalRevert.call(this, context);\n};\n\n\n// helpers //////////////////////\n\nfunction ensureValidDimensions(label) {\n\n // make sure a label has valid { width, height } dimensions\n [ 'width', 'height' ].forEach(function(prop) {\n if (typeof label[prop] === 'undefined') {\n label[prop] = 0;\n }\n });\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/CreateLabelHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/CreateShapeHandler.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/CreateShapeHandler.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateShapeHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../../model/Types').Element} Element\n * @typedef {import('../../../util/Types').Point} Point\n *\n * @typedef {import('../../../core/Canvas').default} Canvas\n */\n\nvar round = Math.round;\n\n\n/**\n * A handler that implements reversible addition of shapes.\n *\n * @param {Canvas} canvas\n */\nfunction CreateShapeHandler(canvas) {\n this._canvas = canvas;\n}\n\nCreateShapeHandler.$inject = [ 'canvas' ];\n\n\n// api //////////////////////\n\n\n/**\n * Appends a shape to a target shape\n *\n * @param {Object} context\n * @param {Element} context.parent The parent.\n * @param {Point} context.position The position at which to create the new shape.\n * @param {number} [context.parentIndex] The optional index at which to add the\n * shape to the parent's children.\n */\nCreateShapeHandler.prototype.execute = function(context) {\n\n var shape = context.shape,\n positionOrBounds = context.position,\n parent = context.parent,\n parentIndex = context.parentIndex;\n\n if (!parent) {\n throw new Error('parent required');\n }\n\n if (!positionOrBounds) {\n throw new Error('position required');\n }\n\n // (1) add at event center position _or_ at given bounds\n if (positionOrBounds.width !== undefined) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(shape, positionOrBounds);\n } else {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(shape, {\n x: positionOrBounds.x - round(shape.width / 2),\n y: positionOrBounds.y - round(shape.height / 2)\n });\n }\n\n // (2) add to canvas\n this._canvas.addShape(shape, parent, parentIndex);\n\n return shape;\n};\n\n\n/**\n * Undo append by removing the shape\n */\nCreateShapeHandler.prototype.revert = function(context) {\n\n var shape = context.shape;\n\n // (3) remove form canvas\n this._canvas.removeShape(shape);\n\n return shape;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/CreateShapeHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/DeleteConnectionHandler.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/DeleteConnectionHandler.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DeleteConnectionHandler)\n/* harmony export */ });\n/* harmony import */ var _util_Collections__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n/* harmony import */ var _util_Removal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/Removal */ \"./node_modules/diagram-js/lib/util/Removal.js\");\n\n\n\n\n/**\n * @typedef {import('../../../core/Canvas').default} Canvas\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible deletion of Connections.\n */\nfunction DeleteConnectionHandler(canvas, modeling) {\n this._canvas = canvas;\n this._modeling = modeling;\n}\n\nDeleteConnectionHandler.$inject = [\n 'canvas',\n 'modeling'\n];\n\n\n/**\n * - Remove connections\n */\nDeleteConnectionHandler.prototype.preExecute = function(context) {\n\n var modeling = this._modeling;\n\n var connection = context.connection;\n\n // remove connections\n (0,_util_Removal__WEBPACK_IMPORTED_MODULE_0__.saveClear)(connection.incoming, function(connection) {\n\n // To make sure that the connection isn't removed twice\n // For example if a container is removed\n modeling.removeConnection(connection, { nested: true });\n });\n\n (0,_util_Removal__WEBPACK_IMPORTED_MODULE_0__.saveClear)(connection.outgoing, function(connection) {\n modeling.removeConnection(connection, { nested: true });\n });\n\n};\n\n\nDeleteConnectionHandler.prototype.execute = function(context) {\n\n var connection = context.connection,\n parent = connection.parent;\n\n context.parent = parent;\n\n // remember containment\n context.parentIndex = (0,_util_Collections__WEBPACK_IMPORTED_MODULE_1__.indexOf)(parent.children, connection);\n\n context.source = connection.source;\n context.target = connection.target;\n\n this._canvas.removeConnection(connection);\n\n connection.source = null;\n connection.target = null;\n\n return connection;\n};\n\n/**\n * Command revert implementation.\n */\nDeleteConnectionHandler.prototype.revert = function(context) {\n\n var connection = context.connection,\n parent = context.parent,\n parentIndex = context.parentIndex;\n\n connection.source = context.source;\n connection.target = context.target;\n\n // restore containment\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_1__.add)(parent.children, connection, parentIndex);\n\n this._canvas.addConnection(connection, parent);\n\n return connection;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/DeleteConnectionHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/DeleteElementsHandler.js": +/*!************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/DeleteElementsHandler.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DeleteElementsHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * @param {Modeling} modeling\n * @param {ElementRegistry} elementRegistry\n */\nfunction DeleteElementsHandler(modeling, elementRegistry) {\n this._modeling = modeling;\n this._elementRegistry = elementRegistry;\n}\n\nDeleteElementsHandler.$inject = [\n 'modeling',\n 'elementRegistry'\n];\n\n\nDeleteElementsHandler.prototype.postExecute = function(context) {\n\n var modeling = this._modeling,\n elementRegistry = this._elementRegistry,\n elements = context.elements;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n\n // element may have been removed with previous\n // remove operations already (e.g. in case of nesting)\n if (!elementRegistry.get(element.id)) {\n return;\n }\n\n if (element.waypoints) {\n modeling.removeConnection(element);\n } else {\n modeling.removeShape(element);\n }\n });\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/DeleteElementsHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/DeleteShapeHandler.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/DeleteShapeHandler.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DeleteShapeHandler)\n/* harmony export */ });\n/* harmony import */ var _util_Collections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n/* harmony import */ var _util_Removal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/Removal */ \"./node_modules/diagram-js/lib/util/Removal.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../../core/Canvas').default} Canvas\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible deletion of shapes.\n *\n * @param {Canvas} canvas\n * @param {Modeling} modeling\n */\nfunction DeleteShapeHandler(canvas, modeling) {\n this._canvas = canvas;\n this._modeling = modeling;\n}\n\nDeleteShapeHandler.$inject = [ 'canvas', 'modeling' ];\n\n\n/**\n * - Remove connections\n * - Remove all direct children\n */\nDeleteShapeHandler.prototype.preExecute = function(context) {\n\n var modeling = this._modeling;\n\n var shape = context.shape;\n\n // remove connections\n (0,_util_Removal__WEBPACK_IMPORTED_MODULE_0__.saveClear)(shape.incoming, function(connection) {\n\n // To make sure that the connection isn't removed twice\n // For example if a container is removed\n modeling.removeConnection(connection, { nested: true });\n });\n\n (0,_util_Removal__WEBPACK_IMPORTED_MODULE_0__.saveClear)(shape.outgoing, function(connection) {\n modeling.removeConnection(connection, { nested: true });\n });\n\n // remove child shapes and connections\n (0,_util_Removal__WEBPACK_IMPORTED_MODULE_0__.saveClear)(shape.children, function(child) {\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(child)) {\n modeling.removeConnection(child, { nested: true });\n } else {\n modeling.removeShape(child, { nested: true });\n }\n });\n};\n\n/**\n * Remove shape and remember the parent\n */\nDeleteShapeHandler.prototype.execute = function(context) {\n var canvas = this._canvas;\n\n var shape = context.shape,\n oldParent = shape.parent;\n\n context.oldParent = oldParent;\n\n // remove containment\n context.oldParentIndex = (0,_util_Collections__WEBPACK_IMPORTED_MODULE_2__.indexOf)(oldParent.children, shape);\n\n // remove shape\n canvas.removeShape(shape);\n\n return shape;\n};\n\n\n/**\n * Command revert implementation\n */\nDeleteShapeHandler.prototype.revert = function(context) {\n\n var canvas = this._canvas;\n\n var shape = context.shape,\n oldParent = context.oldParent,\n oldParentIndex = context.oldParentIndex;\n\n // restore containment\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_2__.add)(oldParent.children, shape, oldParentIndex);\n\n canvas.addShape(shape, oldParent);\n\n return shape;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/DeleteShapeHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/DistributeElementsHandler.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/DistributeElementsHandler.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DistributeElements)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that distributes elements evenly.\n *\n * @param {Modeling} modeling\n */\nfunction DistributeElements(modeling) {\n this._modeling = modeling;\n}\n\nDistributeElements.$inject = [ 'modeling' ];\n\nvar OFF_AXIS = {\n x: 'y',\n y: 'x'\n};\n\nDistributeElements.prototype.preExecute = function(context) {\n var modeling = this._modeling;\n\n var groups = context.groups,\n axis = context.axis,\n dimension = context.dimension;\n\n function updateRange(group, element) {\n group.range.min = Math.min(element[axis], group.range.min);\n group.range.max = Math.max(element[axis] + element[dimension], group.range.max);\n }\n\n function center(element) {\n return element[axis] + element[dimension] / 2;\n }\n\n function lastIdx(arr) {\n return arr.length - 1;\n }\n\n function rangeDiff(range) {\n return range.max - range.min;\n }\n\n function centerElement(refCenter, element) {\n var delta = { y: 0 };\n\n delta[axis] = refCenter - center(element);\n\n if (delta[axis]) {\n\n delta[OFF_AXIS[axis]] = 0;\n\n modeling.moveElements([ element ], delta, element.parent);\n }\n }\n\n var firstGroup = groups[0],\n lastGroupIdx = lastIdx(groups),\n lastGroup = groups[ lastGroupIdx ];\n\n var margin,\n spaceInBetween,\n groupsSize = 0; // the size of each range\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(groups, function(group, idx) {\n var sortedElements,\n refElem,\n refCenter;\n\n if (group.elements.length < 2) {\n if (idx && idx !== groups.length - 1) {\n updateRange(group, group.elements[0]);\n\n groupsSize += rangeDiff(group.range);\n }\n return;\n }\n\n sortedElements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.sortBy)(group.elements, axis);\n\n refElem = sortedElements[0];\n\n if (idx === lastGroupIdx) {\n refElem = sortedElements[lastIdx(sortedElements)];\n }\n\n refCenter = center(refElem);\n\n // wanna update the ranges after the shapes have been centered\n group.range = null;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(sortedElements, function(element) {\n\n centerElement(refCenter, element);\n\n if (group.range === null) {\n group.range = {\n min: element[axis],\n max: element[axis] + element[dimension]\n };\n\n return;\n }\n\n // update group's range after centering the range elements\n updateRange(group, element);\n });\n\n if (idx && idx !== groups.length - 1) {\n groupsSize += rangeDiff(group.range);\n }\n });\n\n spaceInBetween = Math.abs(lastGroup.range.min - firstGroup.range.max);\n\n margin = Math.round((spaceInBetween - groupsSize) / (groups.length - 1));\n\n if (margin < groups.length - 1) {\n return;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(groups, function(group, groupIdx) {\n var delta = {},\n prevGroup;\n\n if (group === firstGroup || group === lastGroup) {\n return;\n }\n\n prevGroup = groups[groupIdx - 1];\n\n group.range.max = 0;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(group.elements, function(element, idx) {\n delta[OFF_AXIS[axis]] = 0;\n delta[axis] = (prevGroup.range.max - element[axis]) + margin;\n\n if (group.range.min !== element[axis]) {\n delta[axis] += element[axis] - group.range.min;\n }\n\n if (delta[axis]) {\n modeling.moveElements([ element ], delta, element.parent);\n }\n\n group.range.max = Math.max(element[axis] + element[dimension], idx ? group.range.max : 0);\n });\n });\n};\n\nDistributeElements.prototype.postExecute = function(context) {\n\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/DistributeElementsHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/LayoutConnectionHandler.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/LayoutConnectionHandler.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LayoutConnectionHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../../core/Canvas').default} Canvas\n * @typedef {import('../../../layout/BaseLayouter').default} Layouter\n */\n\n/**\n * A handler that implements reversible moving of shapes.\n *\n * @param {Layouter} layouter\n * @param {Canvas} canvas\n */\nfunction LayoutConnectionHandler(layouter, canvas) {\n this._layouter = layouter;\n this._canvas = canvas;\n}\n\nLayoutConnectionHandler.$inject = [ 'layouter', 'canvas' ];\n\nLayoutConnectionHandler.prototype.execute = function(context) {\n\n var connection = context.connection;\n\n var oldWaypoints = connection.waypoints;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(context, {\n oldWaypoints: oldWaypoints\n });\n\n connection.waypoints = this._layouter.layoutConnection(connection, context.hints);\n\n return connection;\n};\n\nLayoutConnectionHandler.prototype.revert = function(context) {\n\n var connection = context.connection;\n\n connection.waypoints = context.oldWaypoints;\n\n return connection;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/LayoutConnectionHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/MoveConnectionHandler.js": +/*!************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/MoveConnectionHandler.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveConnectionHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Collections__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n\n\n\n\n\n\n/**\n * A handler that implements reversible moving of connections.\n *\n * The handler differs from the layout connection handler in a sense\n * that it preserves the connection layout.\n */\nfunction MoveConnectionHandler() { }\n\n\nMoveConnectionHandler.prototype.execute = function(context) {\n\n var connection = context.connection,\n delta = context.delta;\n\n var newParent = context.newParent || connection.parent,\n newParentIndex = context.newParentIndex,\n oldParent = connection.parent;\n\n // save old parent in context\n context.oldParent = oldParent;\n context.oldParentIndex = (0,_util_Collections__WEBPACK_IMPORTED_MODULE_0__.remove)(oldParent.children, connection);\n\n // add to new parent at position\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_0__.add)(newParent.children, connection, newParentIndex);\n\n // update parent\n connection.parent = newParent;\n\n // update waypoint positions\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(connection.waypoints, function(p) {\n p.x += delta.x;\n p.y += delta.y;\n\n if (p.original) {\n p.original.x += delta.x;\n p.original.y += delta.y;\n }\n });\n\n return connection;\n};\n\nMoveConnectionHandler.prototype.revert = function(context) {\n\n var connection = context.connection,\n newParent = connection.parent,\n oldParent = context.oldParent,\n oldParentIndex = context.oldParentIndex,\n delta = context.delta;\n\n // remove from newParent\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_0__.remove)(newParent.children, connection);\n\n // restore previous location in old parent\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_0__.add)(oldParent.children, connection, oldParentIndex);\n\n // restore parent\n connection.parent = oldParent;\n\n // revert to old waypoint positions\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(connection.waypoints, function(p) {\n p.x -= delta.x;\n p.y -= delta.y;\n\n if (p.original) {\n p.original.x -= delta.x;\n p.original.y -= delta.y;\n }\n });\n\n return connection;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/MoveConnectionHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/MoveElementsHandler.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/MoveElementsHandler.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveElementsHandler)\n/* harmony export */ });\n/* harmony import */ var _helper_MoveHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper/MoveHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveHelper.js\");\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible moving of shapes.\n *\n * @param {Modeling} modeling\n */\nfunction MoveElementsHandler(modeling) {\n this._helper = new _helper_MoveHelper__WEBPACK_IMPORTED_MODULE_0__[\"default\"](modeling);\n}\n\nMoveElementsHandler.$inject = [ 'modeling' ];\n\nMoveElementsHandler.prototype.preExecute = function(context) {\n context.closure = this._helper.getClosure(context.shapes);\n};\n\nMoveElementsHandler.prototype.postExecute = function(context) {\n\n var hints = context.hints,\n primaryShape;\n\n if (hints && hints.primaryShape) {\n primaryShape = hints.primaryShape;\n hints.oldParent = primaryShape.parent;\n }\n\n this._helper.moveClosure(\n context.closure,\n context.delta,\n context.newParent,\n context.newHost,\n primaryShape\n );\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/MoveElementsHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/MoveShapeHandler.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/MoveShapeHandler.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveShapeHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _helper_MoveHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper/MoveHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveHelper.js\");\n/* harmony import */ var _util_Collections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n/* harmony import */ var _helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper/AnchorsHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js\");\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible moving of shapes.\n *\n * @param {Modeling} modeling\n */\nfunction MoveShapeHandler(modeling) {\n this._modeling = modeling;\n\n this._helper = new _helper_MoveHelper__WEBPACK_IMPORTED_MODULE_0__[\"default\"](modeling);\n}\n\nMoveShapeHandler.$inject = [ 'modeling' ];\n\n\nMoveShapeHandler.prototype.execute = function(context) {\n\n var shape = context.shape,\n delta = context.delta,\n newParent = context.newParent || shape.parent,\n newParentIndex = context.newParentIndex,\n oldParent = shape.parent;\n\n context.oldBounds = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.pick)(shape, [ 'x', 'y', 'width', 'height' ]);\n\n // save old parent in context\n context.oldParent = oldParent;\n context.oldParentIndex = (0,_util_Collections__WEBPACK_IMPORTED_MODULE_2__.remove)(oldParent.children, shape);\n\n // add to new parent at position\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_2__.add)(newParent.children, shape, newParentIndex);\n\n // update shape parent + position\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(shape, {\n parent: newParent,\n x: shape.x + delta.x,\n y: shape.y + delta.y\n });\n\n return shape;\n};\n\nMoveShapeHandler.prototype.postExecute = function(context) {\n\n var shape = context.shape,\n delta = context.delta,\n hints = context.hints;\n\n var modeling = this._modeling;\n\n if (hints.layout !== false) {\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(shape.incoming, function(c) {\n modeling.layoutConnection(c, {\n connectionEnd: (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_3__.getMovedTargetAnchor)(c, shape, delta)\n });\n });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(shape.outgoing, function(c) {\n modeling.layoutConnection(c, {\n connectionStart: (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_3__.getMovedSourceAnchor)(c, shape, delta)\n });\n });\n }\n\n if (hints.recurse !== false) {\n this.moveChildren(context);\n }\n};\n\nMoveShapeHandler.prototype.revert = function(context) {\n\n var shape = context.shape,\n oldParent = context.oldParent,\n oldParentIndex = context.oldParentIndex,\n delta = context.delta;\n\n // restore previous location in old parent\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_2__.add)(oldParent.children, shape, oldParentIndex);\n\n // revert to old position and parent\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(shape, {\n parent: oldParent,\n x: shape.x - delta.x,\n y: shape.y - delta.y\n });\n\n return shape;\n};\n\nMoveShapeHandler.prototype.moveChildren = function(context) {\n\n var delta = context.delta,\n shape = context.shape;\n\n this._helper.moveRecursive(shape.children, delta, null);\n};\n\nMoveShapeHandler.prototype.getNewParent = function(context) {\n return context.newParent || context.shape.parent;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/MoveShapeHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/ReconnectConnectionHandler.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/ReconnectConnectionHandler.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ReconnectConnectionHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * Reconnect connection handler.\n *\n * @param {Modeling} modeling\n */\nfunction ReconnectConnectionHandler(modeling) {\n this._modeling = modeling;\n}\n\nReconnectConnectionHandler.$inject = [ 'modeling' ];\n\nReconnectConnectionHandler.prototype.execute = function(context) {\n var newSource = context.newSource,\n newTarget = context.newTarget,\n connection = context.connection,\n dockingOrPoints = context.dockingOrPoints;\n\n if (!newSource && !newTarget) {\n throw new Error('newSource or newTarget required');\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(dockingOrPoints)) {\n context.oldWaypoints = connection.waypoints;\n connection.waypoints = dockingOrPoints;\n }\n\n if (newSource) {\n context.oldSource = connection.source;\n connection.source = newSource;\n }\n\n if (newTarget) {\n context.oldTarget = connection.target;\n connection.target = newTarget;\n }\n\n return connection;\n};\n\nReconnectConnectionHandler.prototype.postExecute = function(context) {\n var connection = context.connection,\n newSource = context.newSource,\n newTarget = context.newTarget,\n dockingOrPoints = context.dockingOrPoints,\n hints = context.hints || {};\n\n var layoutConnectionHints = {};\n\n if (hints.connectionStart) {\n layoutConnectionHints.connectionStart = hints.connectionStart;\n }\n\n if (hints.connectionEnd) {\n layoutConnectionHints.connectionEnd = hints.connectionEnd;\n }\n\n if (hints.layoutConnection === false) {\n return;\n }\n\n if (newSource && (!newTarget || hints.docking === 'source')) {\n layoutConnectionHints.connectionStart = layoutConnectionHints.connectionStart\n || getDocking((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(dockingOrPoints) ? dockingOrPoints[ 0 ] : dockingOrPoints);\n }\n\n if (newTarget && (!newSource || hints.docking === 'target')) {\n layoutConnectionHints.connectionEnd = layoutConnectionHints.connectionEnd\n || getDocking((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(dockingOrPoints) ? dockingOrPoints[ dockingOrPoints.length - 1 ] : dockingOrPoints);\n }\n\n if (hints.newWaypoints) {\n layoutConnectionHints.waypoints = hints.newWaypoints;\n }\n\n this._modeling.layoutConnection(connection, layoutConnectionHints);\n};\n\nReconnectConnectionHandler.prototype.revert = function(context) {\n var oldSource = context.oldSource,\n oldTarget = context.oldTarget,\n oldWaypoints = context.oldWaypoints,\n connection = context.connection;\n\n if (oldSource) {\n connection.source = oldSource;\n }\n\n if (oldTarget) {\n connection.target = oldTarget;\n }\n\n if (oldWaypoints) {\n connection.waypoints = oldWaypoints;\n }\n\n return connection;\n};\n\n\n\n// helpers //////////\n\nfunction getDocking(point) {\n return point.original || point;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/ReconnectConnectionHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/ReplaceShapeHandler.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/ReplaceShapeHandler.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ReplaceShapeHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper/AnchorsHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js\");\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Shape} Shape\n *\n * @typedef {import('../Modeling').default} Modeling\n * @typedef {import('../../rules/Rules').default} Rules\n */\n\n/**\n * Replace shape by adding new shape and removing old shape. Incoming and outgoing connections will\n * be kept if possible.\n *\n * @class\n * @constructor\n *\n * @param {Modeling} modeling\n * @param {Rules} rules\n */\nfunction ReplaceShapeHandler(modeling, rules) {\n this._modeling = modeling;\n this._rules = rules;\n}\n\nReplaceShapeHandler.$inject = [ 'modeling', 'rules' ];\n\n\n/**\n * Add new shape.\n *\n * @param {Object} context\n * @param {Shape} context.oldShape\n * @param {Object} context.newData\n * @param {string} context.newData.type\n * @param {number} context.newData.x\n * @param {number} context.newData.y\n * @param {Object} [context.hints]\n */\nReplaceShapeHandler.prototype.preExecute = function(context) {\n var self = this,\n modeling = this._modeling,\n rules = this._rules;\n\n var oldShape = context.oldShape,\n newData = context.newData,\n hints = context.hints || {},\n newShape;\n\n function canReconnect(source, target, connection) {\n return rules.allowed('connection.reconnect', {\n connection: connection,\n source: source,\n target: target\n });\n }\n\n // (1) add new shape at given position\n var position = {\n x: newData.x,\n y: newData.y\n };\n\n var oldBounds = {\n x: oldShape.x,\n y: oldShape.y,\n width: oldShape.width,\n height: oldShape.height\n };\n\n newShape = context.newShape =\n context.newShape ||\n self.createShape(newData, position, oldShape.parent, hints);\n\n // (2) update host\n if (oldShape.host) {\n modeling.updateAttachment(newShape, oldShape.host);\n }\n\n // (3) adopt all children from old shape\n var children;\n\n if (hints.moveChildren !== false) {\n children = oldShape.children.slice();\n\n modeling.moveElements(children, { x: 0, y: 0 }, newShape, hints);\n }\n\n // (4) reconnect connections to new shape if possible\n var incoming = oldShape.incoming.slice(),\n outgoing = oldShape.outgoing.slice();\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(incoming, function(connection) {\n var source = connection.source,\n allowed = canReconnect(source, newShape, connection);\n\n if (allowed) {\n self.reconnectEnd(\n connection, newShape,\n (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__.getResizedTargetAnchor)(connection, newShape, oldBounds),\n hints\n );\n }\n });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(outgoing, function(connection) {\n var target = connection.target,\n allowed = canReconnect(newShape, target, connection);\n\n if (allowed) {\n self.reconnectStart(\n connection, newShape,\n (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__.getResizedSourceAnchor)(connection, newShape, oldBounds),\n hints\n );\n }\n });\n};\n\n\n/**\n * Remove old shape.\n */\nReplaceShapeHandler.prototype.postExecute = function(context) {\n var oldShape = context.oldShape;\n\n this._modeling.removeShape(oldShape);\n};\n\n\nReplaceShapeHandler.prototype.execute = function(context) {};\n\n\nReplaceShapeHandler.prototype.revert = function(context) {};\n\n\nReplaceShapeHandler.prototype.createShape = function(shape, position, target, hints) {\n return this._modeling.createShape(shape, position, target, hints);\n};\n\n\nReplaceShapeHandler.prototype.reconnectStart = function(connection, newSource, dockingPoint, hints) {\n this._modeling.reconnectStart(connection, newSource, dockingPoint, hints);\n};\n\n\nReplaceShapeHandler.prototype.reconnectEnd = function(connection, newTarget, dockingPoint, hints) {\n this._modeling.reconnectEnd(connection, newTarget, dockingPoint, hints);\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/ReplaceShapeHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/ResizeShapeHandler.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/ResizeShapeHandler.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ResizeShapeHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper/AnchorsHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js\");\n\n\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible resizing of shapes.\n *\n * @param {Modeling} modeling\n */\nfunction ResizeShapeHandler(modeling) {\n this._modeling = modeling;\n}\n\nResizeShapeHandler.$inject = [ 'modeling' ];\n\n/**\n * {\n * shape: {....}\n * newBounds: {\n * width: 20,\n * height: 40,\n * x: 5,\n * y: 10\n * }\n *\n * }\n */\nResizeShapeHandler.prototype.execute = function(context) {\n var shape = context.shape,\n newBounds = context.newBounds,\n minBounds = context.minBounds;\n\n if (newBounds.x === undefined || newBounds.y === undefined ||\n newBounds.width === undefined || newBounds.height === undefined) {\n throw new Error('newBounds must have {x, y, width, height} properties');\n }\n\n if (minBounds && (newBounds.width < minBounds.width\n || newBounds.height < minBounds.height)) {\n throw new Error('width and height cannot be less than minimum height and width');\n } else if (!minBounds\n && newBounds.width < 10 || newBounds.height < 10) {\n throw new Error('width and height cannot be less than 10px');\n }\n\n // save old bbox in context\n context.oldBounds = {\n width: shape.width,\n height: shape.height,\n x: shape.x,\n y: shape.y\n };\n\n // update shape\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(shape, {\n width: newBounds.width,\n height: newBounds.height,\n x: newBounds.x,\n y: newBounds.y\n });\n\n return shape;\n};\n\nResizeShapeHandler.prototype.postExecute = function(context) {\n var modeling = this._modeling;\n\n var shape = context.shape,\n oldBounds = context.oldBounds,\n hints = context.hints || {};\n\n if (hints.layout === false) {\n return;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(shape.incoming, function(c) {\n modeling.layoutConnection(c, {\n connectionEnd: (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__.getResizedTargetAnchor)(c, shape, oldBounds)\n });\n });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(shape.outgoing, function(c) {\n modeling.layoutConnection(c, {\n connectionStart: (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__.getResizedSourceAnchor)(c, shape, oldBounds)\n });\n });\n\n};\n\nResizeShapeHandler.prototype.revert = function(context) {\n\n var shape = context.shape,\n oldBounds = context.oldBounds;\n\n // restore previous bbox\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(shape, {\n width: oldBounds.width,\n height: oldBounds.height,\n x: oldBounds.x,\n y: oldBounds.y\n });\n\n return shape;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/ResizeShapeHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/SpaceToolHandler.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/SpaceToolHandler.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SpaceToolHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _space_tool_SpaceUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../space-tool/SpaceUtil */ \"./node_modules/diagram-js/lib/features/space-tool/SpaceUtil.js\");\n/* harmony import */ var _helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper/AnchorsHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * Add or remove space by moving and resizing shapes and updating connection waypoints.\n *\n * @param {Modeling} modeling\n */\nfunction SpaceToolHandler(modeling) {\n this._modeling = modeling;\n}\n\nSpaceToolHandler.$inject = [ 'modeling' ];\n\nSpaceToolHandler.prototype.preExecute = function(context) {\n var delta = context.delta,\n direction = context.direction,\n movingShapes = context.movingShapes,\n resizingShapes = context.resizingShapes,\n start = context.start,\n oldBounds = {};\n\n // (1) move shapes\n this.moveShapes(movingShapes, delta);\n\n // (2a) save old bounds of resized shapes\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(resizingShapes, function(shape) {\n oldBounds[shape.id] = getBounds(shape);\n });\n\n // (2b) resize shapes\n this.resizeShapes(resizingShapes, delta, direction);\n\n // (3) update connection waypoints\n this.updateConnectionWaypoints(\n (0,_space_tool_SpaceUtil__WEBPACK_IMPORTED_MODULE_1__.getWaypointsUpdatingConnections)(movingShapes, resizingShapes),\n delta,\n direction,\n start,\n movingShapes,\n resizingShapes,\n oldBounds\n );\n};\n\nSpaceToolHandler.prototype.execute = function() {};\nSpaceToolHandler.prototype.revert = function() {};\n\nSpaceToolHandler.prototype.moveShapes = function(shapes, delta) {\n var self = this;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(shapes, function(element) {\n self._modeling.moveShape(element, delta, null, {\n autoResize: false,\n layout: false,\n recurse: false\n });\n });\n};\n\nSpaceToolHandler.prototype.resizeShapes = function(shapes, delta, direction) {\n var self = this;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(shapes, function(shape) {\n var newBounds = (0,_space_tool_SpaceUtil__WEBPACK_IMPORTED_MODULE_1__.resizeBounds)(shape, direction, delta);\n\n self._modeling.resizeShape(shape, newBounds, null, {\n attachSupport: false,\n autoResize: false,\n layout: false\n });\n });\n};\n\n/**\n * Update connections waypoints according to the rules:\n * 1. Both source and target are moved/resized => move waypoints by the delta\n * 2. Only one of source and target is moved/resized => re-layout connection with moved start/end\n */\nSpaceToolHandler.prototype.updateConnectionWaypoints = function(\n connections,\n delta,\n direction,\n start,\n movingShapes,\n resizingShapes,\n oldBounds\n) {\n var self = this,\n affectedShapes = movingShapes.concat(resizingShapes);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(connections, function(connection) {\n var source = connection.source,\n target = connection.target,\n waypoints = copyWaypoints(connection),\n axis = getAxisFromDirection(direction),\n layoutHints = {};\n\n if (includes(affectedShapes, source) && includes(affectedShapes, target)) {\n\n // move waypoints\n waypoints = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.map)(waypoints, function(waypoint) {\n if (shouldMoveWaypoint(waypoint, start, direction)) {\n\n // move waypoint\n waypoint[ axis ] = waypoint[ axis ] + delta[ axis ];\n }\n\n if (waypoint.original && shouldMoveWaypoint(waypoint.original, start, direction)) {\n\n // move waypoint original\n waypoint.original[ axis ] = waypoint.original[ axis ] + delta[ axis ];\n }\n\n return waypoint;\n });\n\n self._modeling.updateWaypoints(connection, waypoints, {\n labelBehavior: false\n });\n } else if (includes(affectedShapes, source) || includes(affectedShapes, target)) {\n\n // re-layout connection with moved start/end\n if (includes(movingShapes, source)) {\n layoutHints.connectionStart = (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_2__.getMovedSourceAnchor)(connection, source, delta);\n } else if (includes(movingShapes, target)) {\n layoutHints.connectionEnd = (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_2__.getMovedTargetAnchor)(connection, target, delta);\n } else if (includes(resizingShapes, source)) {\n layoutHints.connectionStart = (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_2__.getResizedSourceAnchor)(\n connection, source, oldBounds[source.id]\n );\n } else if (includes(resizingShapes, target)) {\n layoutHints.connectionEnd = (0,_helper_AnchorsHelper__WEBPACK_IMPORTED_MODULE_2__.getResizedTargetAnchor)(\n connection, target, oldBounds[target.id]\n );\n }\n\n self._modeling.layoutConnection(connection, layoutHints);\n }\n });\n};\n\n\n// helpers //////////\n\nfunction copyWaypoint(waypoint) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, waypoint);\n}\n\nfunction copyWaypoints(connection) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.map)(connection.waypoints, function(waypoint) {\n\n waypoint = copyWaypoint(waypoint);\n\n if (waypoint.original) {\n waypoint.original = copyWaypoint(waypoint.original);\n }\n\n return waypoint;\n });\n}\n\nfunction getAxisFromDirection(direction) {\n switch (direction) {\n case 'n':\n return 'y';\n case 'w':\n return 'x';\n case 's':\n return 'y';\n case 'e':\n return 'x';\n }\n}\n\nfunction shouldMoveWaypoint(waypoint, start, direction) {\n var relevantAxis = getAxisFromDirection(direction);\n\n if (/e|s/.test(direction)) {\n return waypoint[ relevantAxis ] > start;\n } else if (/n|w/.test(direction)) {\n return waypoint[ relevantAxis ] < start;\n }\n}\n\nfunction includes(array, item) {\n return array.indexOf(item) !== -1;\n}\n\nfunction getBounds(shape) {\n return {\n x: shape.x,\n y: shape.y,\n height: shape.height,\n width: shape.width\n };\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/SpaceToolHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/ToggleShapeCollapseHandler.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/ToggleShapeCollapseHandler.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ToggleShapeCollapseHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../model/Types').Shape} Shape\n *\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that toggles the collapsed state of an element\n * and the visibility of all its children.\n *\n * @param {Modeling} modeling\n */\nfunction ToggleShapeCollapseHandler(modeling) {\n this._modeling = modeling;\n}\n\nToggleShapeCollapseHandler.$inject = [ 'modeling' ];\n\n\nToggleShapeCollapseHandler.prototype.execute = function(context) {\n\n var shape = context.shape,\n children = shape.children;\n\n // recursively remember previous visibility of children\n context.oldChildrenVisibility = getElementsVisibilityRecursive(children);\n\n // toggle state\n shape.collapsed = !shape.collapsed;\n\n // recursively hide/show children\n var result = setHiddenRecursive(children, shape.collapsed);\n\n return [ shape ].concat(result);\n};\n\n\nToggleShapeCollapseHandler.prototype.revert = function(context) {\n\n var shape = context.shape,\n oldChildrenVisibility = context.oldChildrenVisibility;\n\n var children = shape.children;\n\n // recursively set old visability of children\n var result = restoreVisibilityRecursive(children, oldChildrenVisibility);\n\n // retoggle state\n shape.collapsed = !shape.collapsed;\n\n return [ shape ].concat(result);\n};\n\n\n// helpers //////////////////////\n\n/**\n * Return a map { elementId -> hiddenState}.\n *\n * @param {Shape[]} elements\n *\n * @return {Object}\n */\nfunction getElementsVisibilityRecursive(elements) {\n\n var result = {};\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n result[element.id] = element.hidden;\n\n if (element.children) {\n result = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, result, getElementsVisibilityRecursive(element.children));\n }\n });\n\n return result;\n}\n\n\nfunction setHiddenRecursive(elements, newHidden) {\n var result = [];\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n element.hidden = newHidden;\n\n result = result.concat(element);\n\n if (element.children) {\n result = result.concat(setHiddenRecursive(element.children, element.collapsed || newHidden));\n }\n });\n\n return result;\n}\n\nfunction restoreVisibilityRecursive(elements, lastState) {\n var result = [];\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n element.hidden = lastState[element.id];\n\n result = result.concat(element);\n\n if (element.children) {\n result = result.concat(restoreVisibilityRecursive(element.children, lastState));\n }\n });\n\n return result;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/ToggleShapeCollapseHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/UpdateAttachmentHandler.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/UpdateAttachmentHandler.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateAttachmentHandler)\n/* harmony export */ });\n/* harmony import */ var _util_Collections__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n\n\n/**\n * @typedef {import('../Modeling').default} Modeling\n */\n\n/**\n * A handler that implements reversible attaching/detaching of shapes.\n *\n * @param {Modeling} modeling\n */\nfunction UpdateAttachmentHandler(modeling) {\n this._modeling = modeling;\n}\n\nUpdateAttachmentHandler.$inject = [ 'modeling' ];\n\n\nUpdateAttachmentHandler.prototype.execute = function(context) {\n var shape = context.shape,\n newHost = context.newHost,\n oldHost = shape.host;\n\n // (0) detach from old host\n context.oldHost = oldHost;\n context.attacherIdx = removeAttacher(oldHost, shape);\n\n // (1) attach to new host\n addAttacher(newHost, shape);\n\n // (2) update host\n shape.host = newHost;\n\n return shape;\n};\n\nUpdateAttachmentHandler.prototype.revert = function(context) {\n var shape = context.shape,\n newHost = context.newHost,\n oldHost = context.oldHost,\n attacherIdx = context.attacherIdx;\n\n // (2) update host\n shape.host = oldHost;\n\n // (1) attach to new host\n removeAttacher(newHost, shape);\n\n // (0) detach from old host\n addAttacher(oldHost, shape, attacherIdx);\n\n return shape;\n};\n\n\nfunction removeAttacher(host, attacher) {\n\n // remove attacher from host\n return (0,_util_Collections__WEBPACK_IMPORTED_MODULE_0__.remove)(host && host.attachers, attacher);\n}\n\nfunction addAttacher(host, attacher, idx) {\n\n if (!host) {\n return;\n }\n\n var attachers = host.attachers;\n\n if (!attachers) {\n host.attachers = attachers = [];\n }\n\n (0,_util_Collections__WEBPACK_IMPORTED_MODULE_0__.add)(attachers, attacher, idx);\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/UpdateAttachmentHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/UpdateWaypointsHandler.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/UpdateWaypointsHandler.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateWaypointsHandler)\n/* harmony export */ });\nfunction UpdateWaypointsHandler() { }\n\nUpdateWaypointsHandler.prototype.execute = function(context) {\n\n var connection = context.connection,\n newWaypoints = context.newWaypoints;\n\n context.oldWaypoints = connection.waypoints;\n\n connection.waypoints = newWaypoints;\n\n return connection;\n};\n\nUpdateWaypointsHandler.prototype.revert = function(context) {\n\n var connection = context.connection,\n oldWaypoints = context.oldWaypoints;\n\n connection.waypoints = oldWaypoints;\n\n return connection;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/UpdateWaypointsHandler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getMovedSourceAnchor: () => (/* binding */ getMovedSourceAnchor),\n/* harmony export */ getMovedTargetAnchor: () => (/* binding */ getMovedTargetAnchor),\n/* harmony export */ getResizedSourceAnchor: () => (/* binding */ getResizedSourceAnchor),\n/* harmony export */ getResizedTargetAnchor: () => (/* binding */ getResizedTargetAnchor)\n/* harmony export */ });\n/* harmony import */ var _util_AttachUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../util/AttachUtil */ \"./node_modules/diagram-js/lib/util/AttachUtil.js\");\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../../../core/Types').ConnectionLike} Connection\n * @typedef {import('../../../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../../../util/Types').Point} Point\n * @typedef {import('../../../../util/Types').Rect} Rect\n */\n\n/**\n * @param {Connection} connection\n * @param {Shape} shape\n * @param {Rect} oldBounds\n * @return {Point}\n */\nfunction getResizedSourceAnchor(connection, shape, oldBounds) {\n\n var waypoints = safeGetWaypoints(connection),\n waypointsInsideNewBounds = getWaypointsInsideBounds(waypoints, shape),\n oldAnchor = waypoints[0];\n\n // new anchor is the last waypoint enclosed be resized source\n if (waypointsInsideNewBounds.length) {\n return waypointsInsideNewBounds[ waypointsInsideNewBounds.length - 1 ];\n }\n\n return (0,_util_AttachUtil__WEBPACK_IMPORTED_MODULE_0__.getNewAttachPoint)(oldAnchor.original || oldAnchor, oldBounds, shape);\n}\n\n\nfunction getResizedTargetAnchor(connection, shape, oldBounds) {\n\n var waypoints = safeGetWaypoints(connection),\n waypointsInsideNewBounds = getWaypointsInsideBounds(waypoints, shape),\n oldAnchor = waypoints[waypoints.length - 1];\n\n // new anchor is the first waypoint enclosed be resized target\n if (waypointsInsideNewBounds.length) {\n return waypointsInsideNewBounds[ 0 ];\n }\n\n return (0,_util_AttachUtil__WEBPACK_IMPORTED_MODULE_0__.getNewAttachPoint)(oldAnchor.original || oldAnchor, oldBounds, shape);\n}\n\n\nfunction getMovedSourceAnchor(connection, source, moveDelta) {\n\n var waypoints = safeGetWaypoints(connection),\n oldBounds = subtract(source, moveDelta),\n oldAnchor = waypoints[ 0 ];\n\n return (0,_util_AttachUtil__WEBPACK_IMPORTED_MODULE_0__.getNewAttachPoint)(oldAnchor.original || oldAnchor, oldBounds, source);\n}\n\n\nfunction getMovedTargetAnchor(connection, target, moveDelta) {\n\n var waypoints = safeGetWaypoints(connection),\n oldBounds = subtract(target, moveDelta),\n oldAnchor = waypoints[ waypoints.length - 1 ];\n\n return (0,_util_AttachUtil__WEBPACK_IMPORTED_MODULE_0__.getNewAttachPoint)(oldAnchor.original || oldAnchor, oldBounds, target);\n}\n\n\n// helpers //////////////////////\n\nfunction subtract(bounds, delta) {\n return {\n x: bounds.x - delta.x,\n y: bounds.y - delta.y,\n width: bounds.width,\n height: bounds.height\n };\n}\n\n\n/**\n * Return waypoints of given connection; throw if non exists (should not happen!!).\n *\n * @param {Connection} connection\n *\n * @return {Point[]}\n */\nfunction safeGetWaypoints(connection) {\n\n var waypoints = connection.waypoints;\n\n if (!waypoints.length) {\n throw new Error('connection#' + connection.id + ': no waypoints');\n }\n\n return waypoints;\n}\n\nfunction getWaypointsInsideBounds(waypoints, bounds) {\n var originalWaypoints = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.map)(waypoints, getOriginal);\n\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(originalWaypoints, function(waypoint) {\n return isInsideBounds(waypoint, bounds);\n });\n}\n\n/**\n * Checks if point is inside bounds, incl. edges.\n *\n * @param {Point} point\n * @param {Rect} bounds\n */\nfunction isInsideBounds(point, bounds) {\n return (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(bounds, point, 1) === 'intersect';\n}\n\nfunction getOriginal(point) {\n return point.original || point;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveClosure.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveClosure.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveClosure)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n\n\n\n\n/**\n * @typedef {import('../../../../model/Types').Connection} Connection\n * @typedef {import('../../../../model/Types').Element} Element\n * @typedef {import('../../../../model/Types').Shape} Shape\n */\n\nfunction MoveClosure() {\n\n /**\n * @type {Record}\n */\n this.allShapes = {};\n\n /**\n * @type {Record}\n */\n this.allConnections = {};\n\n /**\n * @type {Record}\n */\n this.enclosedElements = {};\n\n /**\n * @type {Record}\n */\n this.enclosedConnections = {};\n\n /**\n * @type {Record}\n */\n this.topLevel = {};\n}\n\n/**\n * @param {Element} element\n * @param {boolean} [isTopLevel]\n *\n * @return {MoveClosure}\n */\nMoveClosure.prototype.add = function(element, isTopLevel) {\n return this.addAll([ element ], isTopLevel);\n};\n\n/**\n * @param {Element[]} elements\n * @param {boolean} [isTopLevel]\n *\n * @return {MoveClosure}\n */\nMoveClosure.prototype.addAll = function(elements, isTopLevel) {\n\n var newClosure = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_0__.getClosure)(elements, !!isTopLevel, this);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(this, newClosure);\n\n return this;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveClosure.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveHelper.js": +/*!********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveHelper.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveHelper)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnchorsHelper */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/AnchorsHelper.js\");\n/* harmony import */ var _MoveClosure__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MoveClosure */ \"./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveClosure.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../../../core/Types').ElementLike} Element\n * @typedef {import('../../../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../../../util/Types').Point} Point\n *\n * @typedef {import('../../Modeling').default} Modeling\n */\n\n/**\n * A helper that is able to carry out serialized move\n * operations on multiple elements.\n *\n * @param {Modeling} modeling\n */\nfunction MoveHelper(modeling) {\n this._modeling = modeling;\n}\n\n/**\n * Move the specified elements and all children by the given delta.\n *\n * This moves all enclosed connections, too and layouts all affected\n * external connections.\n *\n * @template {Element} T\n *\n * @param {T[]} elements\n * @param {Point} delta\n * @param {Shape} newParent The new parent of all elements that are not nested.\n *\n * @return {T[]}\n */\nMoveHelper.prototype.moveRecursive = function(elements, delta, newParent) {\n if (!elements) {\n return [];\n } else {\n return this.moveClosure(this.getClosure(elements), delta, newParent);\n }\n};\n\n/**\n * Move the given closure of elmements.\n *\n * @param {Object} closure\n * @param {Point} delta\n * @param {Shape} [newParent]\n * @param {Shape} [newHost]\n */\nMoveHelper.prototype.moveClosure = function(closure, delta, newParent, newHost, primaryShape) {\n var modeling = this._modeling;\n\n var allShapes = closure.allShapes,\n allConnections = closure.allConnections,\n enclosedConnections = closure.enclosedConnections,\n topLevel = closure.topLevel,\n keepParent = false;\n\n if (primaryShape && primaryShape.parent === newParent) {\n keepParent = true;\n }\n\n // move all shapes\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(allShapes, function(shape) {\n\n // move the element according to the given delta\n modeling.moveShape(shape, delta, topLevel[shape.id] && !keepParent && newParent, {\n recurse: false,\n layout: false\n });\n });\n\n // move all child connections / layout external connections\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(allConnections, function(c) {\n\n var sourceMoved = !!allShapes[c.source.id],\n targetMoved = !!allShapes[c.target.id];\n\n if (enclosedConnections[c.id] && sourceMoved && targetMoved) {\n modeling.moveConnection(c, delta, topLevel[c.id] && !keepParent && newParent);\n } else {\n modeling.layoutConnection(c, {\n connectionStart: sourceMoved && (0,_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__.getMovedSourceAnchor)(c, c.source, delta),\n connectionEnd: targetMoved && (0,_AnchorsHelper__WEBPACK_IMPORTED_MODULE_1__.getMovedTargetAnchor)(c, c.target, delta)\n });\n }\n });\n};\n\n/**\n * Returns the closure for the selected elements\n *\n * @param {Element[]} elements\n *\n * @return {MoveClosure}\n */\nMoveHelper.prototype.getClosure = function(elements) {\n return new _MoveClosure__WEBPACK_IMPORTED_MODULE_2__[\"default\"]().addAll(elements, true);\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/modeling/cmd/helper/MoveHelper.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/mouse/Mouse.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/mouse/Mouse.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createMoveEvent: () => (/* binding */ createMoveEvent),\n/* harmony export */ \"default\": () => (/* binding */ Mouse)\n/* harmony export */ });\n/**\r\n * @typedef {import('../../core/EventBus').default} EventBus\r\n */\r\n\r\n/**\r\n * @param {EventBus} eventBus\r\n */\r\nfunction Mouse(eventBus) {\r\n var self = this;\r\n\r\n this._lastMoveEvent = null;\r\n\r\n function setLastMoveEvent(mousemoveEvent) {\r\n self._lastMoveEvent = mousemoveEvent;\r\n }\r\n\r\n eventBus.on('canvas.init', function(context) {\r\n var svg = self._svg = context.svg;\r\n\r\n svg.addEventListener('mousemove', setLastMoveEvent);\r\n });\r\n\r\n eventBus.on('canvas.destroy', function() {\r\n self._lastMouseEvent = null;\r\n\r\n self._svg.removeEventListener('mousemove', setLastMoveEvent);\r\n });\r\n}\r\n\r\nMouse.$inject = [ 'eventBus' ];\r\n\r\nMouse.prototype.getLastMoveEvent = function() {\r\n return this._lastMoveEvent || createMoveEvent(0, 0);\r\n};\r\n\r\n// helpers //////////\r\n\r\nfunction createMoveEvent(x, y) {\r\n var event = document.createEvent('MouseEvent');\r\n\r\n var screenX = x,\r\n screenY = y,\r\n clientX = x,\r\n clientY = y;\r\n\r\n if (event.initMouseEvent) {\r\n event.initMouseEvent(\r\n 'mousemove',\r\n true,\r\n true,\r\n window,\r\n 0,\r\n screenX,\r\n screenY,\r\n clientX,\r\n clientY,\r\n false,\r\n false,\r\n false,\r\n false,\r\n 0,\r\n null\r\n );\r\n }\r\n\r\n return event;\r\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/mouse/Mouse.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/mouse/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/mouse/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Mouse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Mouse */ \"./node_modules/diagram-js/lib/features/mouse/Mouse.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'mouse' ],\n mouse: [ 'type', _Mouse__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/mouse/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/move/Move.js": +/*!***********************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/move/Move.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveEvents)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var _util_Event__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/Event */ \"./node_modules/diagram-js/lib/util/Event.js\");\n/* harmony import */ var _util_Mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n\n\n\n\n/**\n * @typedef {import('../../core/Types').ElementLike} Element\n * @typedef {import('../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../dragging/Dragging').default} Dragging\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../modeling/Modeling').default} Modeling\n * @typedef {import('../rules/Rules').default} Rules\n * @typedef {import('../selection/Selection').default} Selection\n */\n\nvar LOW_PRIORITY = 500,\n MEDIUM_PRIORITY = 1250,\n HIGH_PRIORITY = 1500;\n\n\n\n\n\nvar round = Math.round;\n\nfunction mid(element) {\n return {\n x: element.x + round(element.width / 2),\n y: element.y + round(element.height / 2)\n };\n}\n\n/**\n * A plugin that makes shapes draggable / droppable.\n *\n * @param {EventBus} eventBus\n * @param {Dragging} dragging\n * @param {Modeling} modeling\n * @param {Selection} selection\n * @param {Rules} rules\n */\nfunction MoveEvents(\n eventBus, dragging, modeling,\n selection, rules) {\n\n // rules\n\n function canMove(shapes, delta, position, target) {\n\n return rules.allowed('elements.move', {\n shapes: shapes,\n delta: delta,\n position: position,\n target: target\n });\n }\n\n\n // move events\n\n // assign a high priority to this handler to setup the environment\n // others may hook up later, e.g. at default priority and modify\n // the move environment.\n //\n // This sets up the context with\n //\n // * shape: the primary shape being moved\n // * shapes: a list of shapes to be moved\n // * validatedShapes: a list of shapes that are being checked\n // against the rules before and during move\n //\n eventBus.on('shape.move.start', HIGH_PRIORITY, function(event) {\n\n var context = event.context,\n shape = event.shape,\n shapes = selection.get().slice();\n\n // move only single shape if the dragged element\n // is not part of the current selection\n if (shapes.indexOf(shape) === -1) {\n shapes = [ shape ];\n }\n\n // ensure we remove nested elements in the collection\n // and add attachers for a proper dragger\n shapes = removeNested(shapes);\n\n // attach shapes to drag context\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(context, {\n shapes: shapes,\n validatedShapes: shapes,\n shape: shape\n });\n });\n\n\n // assign a high priority to this handler to setup the environment\n // others may hook up later, e.g. at default priority and modify\n // the move environment\n //\n eventBus.on('shape.move.start', MEDIUM_PRIORITY, function(event) {\n\n var context = event.context,\n validatedShapes = context.validatedShapes,\n canExecute;\n\n canExecute = context.canExecute = canMove(validatedShapes);\n\n // check if we can move the elements\n if (!canExecute) {\n return false;\n }\n });\n\n // assign a low priority to this handler\n // to let others modify the move event before we update\n // the context\n //\n eventBus.on('shape.move.move', LOW_PRIORITY, function(event) {\n\n var context = event.context,\n validatedShapes = context.validatedShapes,\n hover = event.hover,\n delta = { x: event.dx, y: event.dy },\n position = { x: event.x, y: event.y },\n canExecute;\n\n // check if we can move the elements\n canExecute = canMove(validatedShapes, delta, position, hover);\n\n context.delta = delta;\n context.canExecute = canExecute;\n\n // simply ignore move over\n if (canExecute === null) {\n context.target = null;\n\n return;\n }\n\n context.target = hover;\n });\n\n eventBus.on('shape.move.end', function(event) {\n\n var context = event.context;\n\n var delta = context.delta,\n canExecute = context.canExecute,\n isAttach = canExecute === 'attach',\n shapes = context.shapes;\n\n if (canExecute === false) {\n return false;\n }\n\n // ensure we have actual pixel values deltas\n // (important when zoom level was > 1 during move)\n delta.x = round(delta.x);\n delta.y = round(delta.y);\n\n if (delta.x === 0 && delta.y === 0) {\n\n // didn't move\n return;\n }\n\n modeling.moveElements(shapes, delta, context.target, {\n primaryShape: context.shape,\n attach: isAttach\n });\n });\n\n\n // move activation\n\n eventBus.on('element.mousedown', function(event) {\n\n if (!(0,_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.isPrimaryButton)(event)) {\n return;\n }\n\n var originalEvent = (0,_util_Event__WEBPACK_IMPORTED_MODULE_2__.getOriginal)(event);\n\n if (!originalEvent) {\n throw new Error('must supply DOM mousedown event');\n }\n\n return start(originalEvent, event.element);\n });\n\n /**\n * Start move.\n *\n * @param {MouseEvent|TouchEvent} event\n * @param {Shape} element\n * @param {boolean} [activate]\n * @param {Object} [context]\n */\n function start(event, element, activate, context) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(activate)) {\n context = activate;\n activate = false;\n }\n\n // do not move connections or the root element\n if (element.waypoints || !element.parent) {\n return;\n }\n\n // ignore non-draggable hits\n if ((0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.classes)(event.target).has('djs-hit-no-move')) {\n return;\n }\n\n var referencePoint = mid(element);\n\n dragging.init(event, referencePoint, 'shape.move', {\n cursor: 'grabbing',\n autoActivate: activate,\n data: {\n shape: element,\n context: context || {}\n }\n });\n\n // we've handled the event\n return true;\n }\n\n // API\n\n this.start = start;\n}\n\nMoveEvents.$inject = [\n 'eventBus',\n 'dragging',\n 'modeling',\n 'selection',\n 'rules'\n];\n\n\n/**\n * Return a filtered list of elements that do not contain\n * those nested into others.\n *\n * @param {Element[]} elements\n *\n * @return {Element[]} filtered\n */\nfunction removeNested(elements) {\n\n var ids = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.groupBy)(elements, 'id');\n\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.filter)(elements, function(element) {\n while ((element = element.parent)) {\n\n // parent in selection\n if (ids[element.id]) {\n return false;\n }\n }\n\n return true;\n });\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/move/Move.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/move/MovePreview.js": +/*!******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/move/MovePreview.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MovePreview)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var _util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/SvgTransformUtil */ \"./node_modules/diagram-js/lib/util/SvgTransformUtil.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../preview-support/PreviewSupport').default} PreviewSupport\n * @typedef {import('../../draw/Styles').default} Styles\n */\n\nvar LOW_PRIORITY = 499;\n\nvar MARKER_DRAGGING = 'djs-dragging',\n MARKER_OK = 'drop-ok',\n MARKER_NOT_OK = 'drop-not-ok',\n MARKER_NEW_PARENT = 'new-parent',\n MARKER_ATTACH = 'attach-ok';\n\n\n/**\n * Provides previews for moving shapes when moving.\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {Styles} styles\n * @param {PreviewSupport} previewSupport\n */\nfunction MovePreview(\n eventBus, canvas, styles, previewSupport) {\n\n function getVisualDragShapes(shapes) {\n var elements = getAllDraggedElements(shapes);\n\n var filteredElements = removeEdges(elements);\n\n return filteredElements;\n }\n\n function getAllDraggedElements(shapes) {\n var allShapes = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_0__.selfAndAllChildren)(shapes, true);\n\n var allConnections = allShapes.flatMap(shape =>\n (shape.incoming || []).concat(shape.outgoing || [])\n );\n\n var allElements = allShapes.concat(allConnections);\n var uniqueElements = [ ...new Set(allElements) ];\n\n return uniqueElements;\n }\n\n /**\n * Sets drop marker on an element.\n */\n function setMarker(element, marker) {\n\n [ MARKER_ATTACH, MARKER_OK, MARKER_NOT_OK, MARKER_NEW_PARENT ].forEach(function(m) {\n\n if (m === marker) {\n canvas.addMarker(element, m);\n } else {\n canvas.removeMarker(element, m);\n }\n });\n }\n\n /**\n * Make an element draggable.\n *\n * @param {Object} context\n * @param {Element} element\n * @param {boolean} addMarker\n */\n function makeDraggable(context, element, addMarker) {\n\n previewSupport.addDragger(element, context.dragGroup);\n\n if (addMarker) {\n canvas.addMarker(element, MARKER_DRAGGING);\n }\n\n if (context.allDraggedElements) {\n context.allDraggedElements.push(element);\n } else {\n context.allDraggedElements = [ element ];\n }\n }\n\n // assign a low priority to this handler\n // to let others modify the move context before\n // we draw things\n eventBus.on('shape.move.start', LOW_PRIORITY, function(event) {\n var context = event.context,\n dragShapes = context.shapes,\n allDraggedElements = context.allDraggedElements;\n\n var visuallyDraggedShapes = getVisualDragShapes(dragShapes);\n\n if (!context.dragGroup) {\n var dragGroup = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('g');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(dragGroup, styles.cls('djs-drag-group', [ 'no-events' ]));\n\n var activeLayer = canvas.getActiveLayer();\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(activeLayer, dragGroup);\n\n context.dragGroup = dragGroup;\n }\n\n // add previews\n visuallyDraggedShapes.forEach(function(shape) {\n previewSupport.addDragger(shape, context.dragGroup);\n });\n\n // cache all dragged elements / gfx\n // so that we can quickly undo their state changes later\n if (!allDraggedElements) {\n allDraggedElements = getAllDraggedElements(dragShapes);\n } else {\n allDraggedElements = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.flatten)([\n allDraggedElements,\n getAllDraggedElements(dragShapes)\n ]);\n }\n\n // add dragging marker\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(allDraggedElements, function(e) {\n canvas.addMarker(e, MARKER_DRAGGING);\n });\n\n context.allDraggedElements = allDraggedElements;\n\n // determine, if any of the dragged elements have different parents\n context.differentParents = haveDifferentParents(dragShapes);\n });\n\n // update previews\n eventBus.on('shape.move.move', LOW_PRIORITY, function(event) {\n\n var context = event.context,\n dragGroup = context.dragGroup,\n target = context.target,\n parent = context.shape.parent,\n canExecute = context.canExecute;\n\n if (target) {\n if (canExecute === 'attach') {\n setMarker(target, MARKER_ATTACH);\n } else if (context.canExecute && parent && target.id !== parent.id) {\n setMarker(target, MARKER_NEW_PARENT);\n } else {\n setMarker(target, context.canExecute ? MARKER_OK : MARKER_NOT_OK);\n }\n }\n\n (0,_util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_3__.translate)(dragGroup, event.dx, event.dy);\n });\n\n eventBus.on([ 'shape.move.out', 'shape.move.cleanup' ], function(event) {\n var context = event.context,\n target = context.target;\n\n if (target) {\n setMarker(target, null);\n }\n });\n\n // remove previews\n eventBus.on('shape.move.cleanup', function(event) {\n\n var context = event.context,\n allDraggedElements = context.allDraggedElements,\n dragGroup = context.dragGroup;\n\n\n // remove dragging marker\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(allDraggedElements, function(e) {\n canvas.removeMarker(e, MARKER_DRAGGING);\n });\n\n if (dragGroup) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.remove)(dragGroup);\n }\n });\n\n\n // API //////////////////////\n\n /**\n * Make an element draggable.\n *\n * @param {Object} context\n * @param {Element} element\n * @param {boolean} addMarker\n */\n this.makeDraggable = makeDraggable;\n}\n\nMovePreview.$inject = [\n 'eventBus',\n 'canvas',\n 'styles',\n 'previewSupport'\n];\n\n\n// helpers //////////////////////\n\n/**\n * returns elements minus all connections\n * where source or target is not elements\n */\nfunction removeEdges(elements) {\n\n var filteredElements = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.filter)(elements, function(element) {\n\n if (!(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isConnection)(element)) {\n return true;\n } else {\n\n return (\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.find)(elements, (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.matchPattern)({ id: element.source.id })) &&\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.find)(elements, (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.matchPattern)({ id: element.target.id }))\n );\n }\n });\n\n return filteredElements;\n}\n\nfunction haveDifferentParents(elements) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.size)((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.groupBy)(elements, function(e) { return e.parent && e.parent.id; })) !== 1;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/move/MovePreview.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/move/index.js": +/*!************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/move/index.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _interaction_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interaction-events */ \"./node_modules/diagram-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _outline__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../outline */ \"./node_modules/diagram-js/lib/features/outline/index.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../rules */ \"./node_modules/diagram-js/lib/features/rules/index.js\");\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dragging */ \"./node_modules/diagram-js/lib/features/dragging/index.js\");\n/* harmony import */ var _preview_support__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../preview-support */ \"./node_modules/diagram-js/lib/features/preview-support/index.js\");\n/* harmony import */ var _Move__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Move */ \"./node_modules/diagram-js/lib/features/move/Move.js\");\n/* harmony import */ var _MovePreview__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MovePreview */ \"./node_modules/diagram-js/lib/features/move/MovePreview.js\");\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _interaction_events__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _selection__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _outline__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n _rules__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n _dragging__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n _preview_support__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n ],\n __init__: [\n 'move',\n 'movePreview'\n ],\n move: [ 'type', _Move__WEBPACK_IMPORTED_MODULE_6__[\"default\"] ],\n movePreview: [ 'type', _MovePreview__WEBPACK_IMPORTED_MODULE_7__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/move/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/outline/Outline.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/outline/Outline.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Outline)\n/* harmony export */ });\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\nvar LOW_PRIORITY = 500;\n\n\n\n\n\n\n\nvar DEFAULT_PRIORITY = 1000;\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('./OutlineProvider').default} OutlineProvider\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../../draw/Styles').default} Styles\n */\n\n/**\n * @class\n *\n * A plugin that adds an outline to shapes and connections that may be activated and styled\n * via CSS classes.\n *\n * @param {EventBus} eventBus\n * @param {Styles} styles\n */\nfunction Outline(eventBus, styles) {\n\n this._eventBus = eventBus;\n\n this.offset = 5;\n\n var OUTLINE_STYLE = styles.cls('djs-outline', [ 'no-fill' ]);\n\n var self = this;\n\n /**\n * @param {SVGElement} gfx\n *\n * @return {SVGElement} outline\n */\n function createOutline(gfx) {\n var outline = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.create)('rect');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(outline, (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({\n x: 0,\n y: 0,\n rx: 4,\n width: 100,\n height: 100\n }, OUTLINE_STYLE));\n\n return outline;\n }\n\n // A low priortity is necessary, because outlines of labels have to be updated\n // after the label bounds have been updated in the renderer.\n eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY, function(event) {\n var element = event.element,\n gfx = event.gfx;\n\n var outline = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.djs-outline', gfx);\n\n if (!outline) {\n outline = self.getOutline(element) || createOutline(gfx);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.append)(gfx, outline);\n }\n\n self.updateShapeOutline(outline, element);\n });\n\n eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {\n var element = event.element,\n gfx = event.gfx;\n\n var outline = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.djs-outline', gfx);\n\n if (!outline) {\n outline = createOutline(gfx);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.append)(gfx, outline);\n }\n\n self.updateConnectionOutline(outline, element);\n });\n}\n\n\n/**\n * Updates the outline of a shape respecting the dimension of the\n * element and an outline offset.\n *\n * @param {SVGElement} outline\n * @param {Element} element\n */\nOutline.prototype.updateShapeOutline = function(outline, element) {\n\n var updated = false;\n var providers = this._getProviders();\n\n if (providers.length) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(providers, function(provider) {\n updated = updated || provider.updateOutline(element, outline);\n });\n }\n\n if (!updated) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(outline, {\n x: -this.offset,\n y: -this.offset,\n width: element.width + this.offset * 2,\n height: element.height + this.offset * 2\n });\n }\n};\n\n/**\n * Updates the outline of a connection respecting the bounding box of\n * the connection and an outline offset.\n * Register an outline provider with the given priority.\n *\n * @param {SVGElement} outline\n * @param {Element} connection\n */\nOutline.prototype.updateConnectionOutline = function(outline, connection) {\n var bbox = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_3__.getBBox)(connection);\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(outline, {\n x: bbox.x - this.offset,\n y: bbox.y - this.offset,\n width: bbox.width + this.offset * 2,\n height: bbox.height + this.offset * 2\n });\n};\n\n/**\n * Register an outline provider with the given priority.\n *\n * @param {number} priority\n * @param {OutlineProvider} provider\n */\nOutline.prototype.registerProvider = function(priority, provider) {\n if (!provider) {\n provider = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n this._eventBus.on('outline.getProviders', priority, function(event) {\n event.providers.push(provider);\n });\n};\n\n/**\n * Returns the registered outline providers.\n *\n * @returns {OutlineProvider[]}\n */\nOutline.prototype._getProviders = function() {\n var event = this._eventBus.createEvent({\n type: 'outline.getProviders',\n providers: []\n });\n\n this._eventBus.fire(event);\n\n return event.providers;\n};\n\n/**\n * Returns the outline for an element.\n *\n * @param {Element} element\n */\nOutline.prototype.getOutline = function(element) {\n var outline;\n var providers = this._getProviders();\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(providers, function(provider) {\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isFunction)(provider.getOutline)) {\n return;\n }\n\n outline = outline || provider.getOutline(element);\n });\n\n return outline;\n};\n\nOutline.$inject = [ 'eventBus', 'styles', 'elementRegistry' ];\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/outline/Outline.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/outline/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/outline/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Outline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Outline */ \"./node_modules/diagram-js/lib/features/outline/Outline.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'outline' ],\n outline: [ 'type', _Outline__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/outline/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/overlays/Overlays.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/overlays/Overlays.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Overlays)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _util_IdGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/IdGenerator */ \"./node_modules/diagram-js/lib/util/IdGenerator.js\");\n\n\n\n\n\n\n\n\n// document wide unique overlay ids\nvar ids = new _util_IdGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"]('ov');\n\nvar LOW_PRIORITY = 500;\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef { {\n * minZoom?: number,\n * maxZoom?: number\n * } } OverlaysConfigShow\n *\n * @typedef { {\n * min?: number,\n * max?: number\n * } } OverlaysConfigScale\n *\n * @typedef { {\n* id: string,\n* type: string | null,\n* element: Element | string\n* } & OverlayAttrs } Overlay\n*\n * @typedef { {\n * html: HTMLElement | string,\n * position: {\n * top?: number,\n * right?: number,\n * bottom?: number,\n * left?: number\n * }\n * } & OverlaysConfigDefault } OverlayAttrs\n *\n * @typedef { {\n * html: HTMLElement,\n * element: Element,\n * overlays: Overlay[]\n * } } OverlayContainer\n *\n * @typedef {{\n * defaults?: OverlaysConfigDefault\n * }} OverlaysConfig\n *\n * @typedef { {\n * show?: OverlaysConfigShow,\n * scale?: OverlaysConfigScale | boolean\n * } } OverlaysConfigDefault\n *\n * @typedef { {\n * id?: string;\n * element?: Element | string;\n * type?: string;\n * } | string } OverlaysFilter\n */\n\n/**\n * A service that allows users to attach overlays to diagram elements.\n *\n * The overlay service will take care of overlay positioning during updates.\n *\n * @example\n *\n * ```javascript\n * // add a pink badge on the top left of the shape\n *\n * overlays.add(someShape, {\n * position: {\n * top: -5,\n * left: -5\n * },\n * html: '
0
'\n * });\n *\n * // or add via shape id\n *\n * overlays.add('some-element-id', {\n * position: {\n * top: -5,\n * left: -5\n * }\n * html: '
0
'\n * });\n *\n * // or add with optional type\n *\n * overlays.add(someShape, 'badge', {\n * position: {\n * top: -5,\n * left: -5\n * }\n * html: '
0
'\n * });\n * ```\n *\n * ```javascript\n * // remove an overlay\n *\n * var id = overlays.add(...);\n * overlays.remove(id);\n *\n *\n * You may configure overlay defaults during tool by providing a `config` module\n * with `overlays.defaults` as an entry:\n *\n * {\n * overlays: {\n * defaults: {\n * show: {\n * minZoom: 0.7,\n * maxZoom: 5.0\n * },\n * scale: {\n * min: 1\n * }\n * }\n * }\n * ```\n *\n * @param {OverlaysConfig} config\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {ElementRegistry} elementRegistry\n */\nfunction Overlays(config, eventBus, canvas, elementRegistry) {\n this._eventBus = eventBus;\n this._canvas = canvas;\n this._elementRegistry = elementRegistry;\n\n this._ids = ids;\n\n /**\n * @type {OverlaysConfigDefault}\n */\n this._overlayDefaults = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({\n\n // no show constraints\n show: null,\n\n // always scale\n scale: true\n }, config && config.defaults);\n\n /**\n * @type {Record}\n */\n this._overlays = {};\n\n /**\n * @type {OverlayContainer[]}\n */\n this._overlayContainers = [];\n\n /**\n * @type {HTMLElement}\n */\n this._overlayRoot = createRoot(canvas.getContainer());\n\n this._init();\n}\n\n\nOverlays.$inject = [\n 'config.overlays',\n 'eventBus',\n 'canvas',\n 'elementRegistry'\n];\n\n\n/**\n * Returns the overlay with the specified ID or a list of overlays\n * for an element with a given type.\n *\n * @example\n *\n * ```javascript\n * // return the single overlay with the given ID\n * overlays.get('some-id');\n *\n * // return all overlays for the shape\n * overlays.get({ element: someShape });\n *\n * // return all overlays on shape with type 'badge'\n * overlays.get({ element: someShape, type: 'badge' });\n *\n * // shape can also be specified as ID\n * overlays.get({ element: 'element-id', type: 'badge' });\n * ```\n *\n * @param {OverlaysFilter} search The filter to be used to find the overlay(s).\n *\n * @return {Overlay|Overlay[]} The overlay(s).\n */\nOverlays.prototype.get = function(search) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isString)(search)) {\n search = { id: search };\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isString)(search.element)) {\n search.element = this._elementRegistry.get(search.element);\n }\n\n if (search.element) {\n var container = this._getOverlayContainer(search.element, true);\n\n // return a list of overlays when searching by element (+type)\n if (container) {\n return search.type ? (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(container.overlays, (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.matchPattern)({ type: search.type })) : container.overlays.slice();\n } else {\n return [];\n }\n } else if (search.type) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(this._overlays, (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.matchPattern)({ type: search.type }));\n } else {\n\n // return single element when searching by id\n return search.id ? this._overlays[search.id] : null;\n }\n};\n\n/**\n * Adds an HTML overlay to an element.\n *\n * @param {Element|string} element The element to add the overlay to.\n * @param {string} [type] An optional type that can be used to filter.\n * @param {OverlayAttrs} overlay The overlay.\n *\n * @return {string} The overlay's ID that can be used to get or remove it.\n */\nOverlays.prototype.add = function(element, type, overlay) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isObject)(type)) {\n overlay = type;\n type = null;\n }\n\n if (!element.id) {\n element = this._elementRegistry.get(element);\n }\n\n if (!overlay.position) {\n throw new Error('must specifiy overlay position');\n }\n\n if (!overlay.html) {\n throw new Error('must specifiy overlay html');\n }\n\n if (!element) {\n throw new Error('invalid element specified');\n }\n\n var id = this._ids.next();\n\n overlay = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({}, this._overlayDefaults, overlay, {\n id: id,\n type: type,\n element: element,\n html: overlay.html\n });\n\n this._addOverlay(overlay);\n\n return id;\n};\n\n\n/**\n * Remove an overlay with the given ID or all overlays matching the given filter.\n *\n * @see Overlays#get for filter options.\n *\n * @param {OverlaysFilter} filter The filter to be used to find the overlay.\n */\nOverlays.prototype.remove = function(filter) {\n\n var overlays = this.get(filter) || [];\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isArray)(overlays)) {\n overlays = [ overlays ];\n }\n\n var self = this;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(overlays, function(overlay) {\n\n var container = self._getOverlayContainer(overlay.element, true);\n\n if (overlay) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.remove)(overlay.html);\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.remove)(overlay.htmlContainer);\n\n delete overlay.htmlContainer;\n delete overlay.element;\n\n delete self._overlays[overlay.id];\n }\n\n if (container) {\n var idx = container.overlays.indexOf(overlay);\n if (idx !== -1) {\n container.overlays.splice(idx, 1);\n }\n }\n });\n\n};\n\n/**\n * Checks whether overlays are shown.\n *\n * @return {boolean} Whether overlays are shown.\n */\nOverlays.prototype.isShown = function() {\n return this._overlayRoot.style.display !== 'none';\n};\n\n/**\n * Show all overlays.\n */\nOverlays.prototype.show = function() {\n setVisible(this._overlayRoot);\n};\n\n/**\n * Hide all overlays.\n */\nOverlays.prototype.hide = function() {\n setVisible(this._overlayRoot, false);\n};\n\n/**\n * Remove all overlays and their container.\n */\nOverlays.prototype.clear = function() {\n this._overlays = {};\n\n this._overlayContainers = [];\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.clear)(this._overlayRoot);\n};\n\nOverlays.prototype._updateOverlayContainer = function(container) {\n var element = container.element,\n html = container.html;\n\n // update container left,top according to the elements x,y coordinates\n // this ensures we can attach child elements relative to this container\n\n var x = element.x,\n y = element.y;\n\n if (element.waypoints) {\n var bbox = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_3__.getBBox)(element);\n x = bbox.x;\n y = bbox.y;\n }\n\n setPosition(html, x, y);\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.attr)(container.html, 'data-container-id', element.id);\n};\n\n\nOverlays.prototype._updateOverlay = function(overlay) {\n\n var position = overlay.position,\n htmlContainer = overlay.htmlContainer,\n element = overlay.element;\n\n // update overlay html relative to shape because\n // it is already positioned on the element\n\n // update relative\n var left = position.left,\n top = position.top;\n\n if (position.right !== undefined) {\n\n var width;\n\n if (element.waypoints) {\n width = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_3__.getBBox)(element).width;\n } else {\n width = element.width;\n }\n\n left = position.right * -1 + width;\n }\n\n if (position.bottom !== undefined) {\n\n var height;\n\n if (element.waypoints) {\n height = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_3__.getBBox)(element).height;\n } else {\n height = element.height;\n }\n\n top = position.bottom * -1 + height;\n }\n\n setPosition(htmlContainer, left || 0, top || 0);\n this._updateOverlayVisibilty(overlay, this._canvas.viewbox());\n};\n\n\nOverlays.prototype._createOverlayContainer = function(element) {\n var html = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.domify)('
');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.assignStyle)(html, { position: 'absolute' });\n\n this._overlayRoot.appendChild(html);\n\n var container = {\n html: html,\n element: element,\n overlays: []\n };\n\n this._updateOverlayContainer(container);\n\n this._overlayContainers.push(container);\n\n return container;\n};\n\n\nOverlays.prototype._updateRoot = function(viewbox) {\n var scale = viewbox.scale || 1;\n\n var matrix = 'matrix(' +\n [\n scale,\n 0,\n 0,\n scale,\n -1 * viewbox.x * scale,\n -1 * viewbox.y * scale\n ].join(',') +\n ')';\n\n setTransform(this._overlayRoot, matrix);\n};\n\n\nOverlays.prototype._getOverlayContainer = function(element, raw) {\n var container = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.find)(this._overlayContainers, function(c) {\n return c.element === element;\n });\n\n\n if (!container && !raw) {\n return this._createOverlayContainer(element);\n }\n\n return container;\n};\n\n\nOverlays.prototype._addOverlay = function(overlay) {\n\n var id = overlay.id,\n element = overlay.element,\n html = overlay.html,\n htmlContainer,\n overlayContainer;\n\n // unwrap jquery (for those who need it)\n if (html.get && html.constructor.prototype.jquery) {\n html = html.get(0);\n }\n\n // create proper html elements from\n // overlay HTML strings\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isString)(html)) {\n html = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.domify)(html);\n }\n\n overlayContainer = this._getOverlayContainer(element);\n\n htmlContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.domify)('
');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.assignStyle)(htmlContainer, { position: 'absolute' });\n\n htmlContainer.appendChild(html);\n\n if (overlay.type) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.classes)(htmlContainer).add('djs-overlay-' + overlay.type);\n }\n\n var elementRoot = this._canvas.findRoot(element);\n var activeRoot = this._canvas.getRootElement();\n\n setVisible(htmlContainer, elementRoot === activeRoot);\n\n overlay.htmlContainer = htmlContainer;\n\n overlayContainer.overlays.push(overlay);\n overlayContainer.html.appendChild(htmlContainer);\n\n this._overlays[id] = overlay;\n\n this._updateOverlay(overlay);\n this._updateOverlayVisibilty(overlay, this._canvas.viewbox());\n};\n\n\nOverlays.prototype._updateOverlayVisibilty = function(overlay, viewbox) {\n var show = overlay.show,\n rootElement = this._canvas.findRoot(overlay.element),\n minZoom = show && show.minZoom,\n maxZoom = show && show.maxZoom,\n htmlContainer = overlay.htmlContainer,\n activeRootElement = this._canvas.getRootElement(),\n visible = true;\n\n if (rootElement !== activeRootElement) {\n visible = false;\n } else if (show) {\n if (\n ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isDefined)(minZoom) && minZoom > viewbox.scale) ||\n ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isDefined)(maxZoom) && maxZoom < viewbox.scale)\n ) {\n visible = false;\n }\n }\n\n setVisible(htmlContainer, visible);\n\n this._updateOverlayScale(overlay, viewbox);\n};\n\n\nOverlays.prototype._updateOverlayScale = function(overlay, viewbox) {\n var shouldScale = overlay.scale,\n minScale,\n maxScale,\n htmlContainer = overlay.htmlContainer;\n\n var scale, transform = '';\n\n if (shouldScale !== true) {\n\n if (shouldScale === false) {\n minScale = 1;\n maxScale = 1;\n } else {\n minScale = shouldScale.min;\n maxScale = shouldScale.max;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isDefined)(minScale) && viewbox.scale < minScale) {\n scale = (1 / viewbox.scale || 1) * minScale;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isDefined)(maxScale) && viewbox.scale > maxScale) {\n scale = (1 / viewbox.scale || 1) * maxScale;\n }\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isDefined)(scale)) {\n transform = 'scale(' + scale + ',' + scale + ')';\n }\n\n setTransform(htmlContainer, transform);\n};\n\n\nOverlays.prototype._updateOverlaysVisibilty = function(viewbox) {\n\n var self = this;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(this._overlays, function(overlay) {\n self._updateOverlayVisibilty(overlay, viewbox);\n });\n};\n\n\nOverlays.prototype._init = function() {\n\n var eventBus = this._eventBus;\n\n var self = this;\n\n\n // scroll/zoom integration\n\n function updateViewbox(viewbox) {\n self._updateRoot(viewbox);\n self._updateOverlaysVisibilty(viewbox);\n\n self.show();\n }\n\n eventBus.on('canvas.viewbox.changing', function(event) {\n self.hide();\n });\n\n eventBus.on('canvas.viewbox.changed', function(event) {\n updateViewbox(event.viewbox);\n });\n\n\n // remove integration\n\n eventBus.on([ 'shape.remove', 'connection.remove' ], function(e) {\n var element = e.element;\n var overlays = self.get({ element: element });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(overlays, function(o) {\n self.remove(o.id);\n });\n\n var container = self._getOverlayContainer(element);\n\n if (container) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.remove)(container.html);\n var i = self._overlayContainers.indexOf(container);\n if (i !== -1) {\n self._overlayContainers.splice(i, 1);\n }\n }\n });\n\n\n // move integration\n\n eventBus.on('element.changed', LOW_PRIORITY, function(e) {\n var element = e.element;\n\n var container = self._getOverlayContainer(element, true);\n\n if (container) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(container.overlays, function(overlay) {\n self._updateOverlay(overlay);\n });\n\n self._updateOverlayContainer(container);\n }\n });\n\n\n // marker integration, simply add them on the overlays as classes, too.\n\n eventBus.on('element.marker.update', function(e) {\n var container = self._getOverlayContainer(e.element, true);\n if (container) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.classes)(container.html)[e.add ? 'add' : 'remove'](e.marker);\n }\n });\n\n\n eventBus.on('root.set', function() {\n self._updateOverlaysVisibilty(self._canvas.viewbox());\n });\n\n // clear overlays with diagram\n\n eventBus.on('diagram.clear', this.clear, this);\n};\n\n\n\n// helpers /////////////////////////////\n\nfunction createRoot(parentNode) {\n var root = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.domify)(\n '
'\n );\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.assignStyle)(root, {\n position: 'absolute',\n width: 0,\n height: 0\n });\n\n parentNode.insertBefore(root, parentNode.firstChild);\n\n return root;\n}\n\nfunction setPosition(el, x, y) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.assignStyle)(el, { left: x + 'px', top: y + 'px' });\n}\n\n/**\n * Set element visible\n *\n * @param {DOMElement} el\n * @param {boolean} [visible=true]\n */\nfunction setVisible(el, visible) {\n el.style.display = visible === false ? 'none' : '';\n}\n\nfunction setTransform(el, transform) {\n\n el.style['transform-origin'] = 'top left';\n\n [ '', '-ms-', '-webkit-' ].forEach(function(prefix) {\n el.style[prefix + 'transform'] = transform;\n });\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/overlays/Overlays.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/overlays/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/overlays/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Overlays__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Overlays */ \"./node_modules/diagram-js/lib/features/overlays/Overlays.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'overlays' ],\n overlays: [ 'type', _Overlays__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/overlays/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/palette/Palette.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/palette/Palette.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Palette)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_EscapeUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/EscapeUtil */ \"./node_modules/diagram-js/lib/util/EscapeUtil.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {import('./PaletteProvider').PaletteEntries} PaletteEntries\n * @typedef {import('./PaletteProvider').default} PaletteProvider\n */\n\nvar TOGGLE_SELECTOR = '.djs-palette-toggle',\n ENTRY_SELECTOR = '.entry',\n ELEMENT_SELECTOR = TOGGLE_SELECTOR + ', ' + ENTRY_SELECTOR;\n\nvar PALETTE_PREFIX = 'djs-palette-',\n PALETTE_SHOWN_CLS = 'shown',\n PALETTE_OPEN_CLS = 'open',\n PALETTE_TWO_COLUMN_CLS = 'two-column';\n\nvar DEFAULT_PRIORITY = 1000;\n\n\n/**\n * A palette containing modeling elements.\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n */\nfunction Palette(eventBus, canvas) {\n\n this._eventBus = eventBus;\n this._canvas = canvas;\n\n var self = this;\n\n eventBus.on('tool-manager.update', function(event) {\n var tool = event.tool;\n\n self.updateToolHighlight(tool);\n });\n\n eventBus.on('i18n.changed', function() {\n self._update();\n });\n\n eventBus.on('diagram.init', function() {\n\n self._diagramInitialized = true;\n\n self._rebuild();\n });\n}\n\nPalette.$inject = [ 'eventBus', 'canvas' ];\n\n/**\n * @overlord\n *\n * Register a palette provider with default priority. See\n * {@link PaletteProvider} for examples.\n *\n * @param {PaletteProvider} provider\n */\n\n/**\n * Register a palette provider with the given priority. See\n * {@link PaletteProvider} for examples.\n *\n * @param {number} priority\n * @param {PaletteProvider} provider\n */\nPalette.prototype.registerProvider = function(priority, provider) {\n if (!provider) {\n provider = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n this._eventBus.on('palette.getProviders', priority, function(event) {\n event.providers.push(provider);\n });\n\n this._rebuild();\n};\n\n\n/**\n * Returns the palette entries.\n *\n * @return {PaletteEntries}\n */\nPalette.prototype.getEntries = function() {\n var providers = this._getProviders();\n\n return providers.reduce(addPaletteEntries, {});\n};\n\nPalette.prototype._rebuild = function() {\n\n if (!this._diagramInitialized) {\n return;\n }\n\n var providers = this._getProviders();\n\n if (!providers.length) {\n return;\n }\n\n if (!this._container) {\n this._init();\n }\n\n this._update();\n};\n\n/**\n * Initialize palette.\n */\nPalette.prototype._init = function() {\n\n var self = this;\n\n var eventBus = this._eventBus;\n\n var parentContainer = this._getParentContainer();\n\n var container = this._container = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(Palette.HTML_MARKUP);\n\n parentContainer.appendChild(container);\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(parentContainer).add(PALETTE_PREFIX + PALETTE_SHOWN_CLS);\n\n min_dom__WEBPACK_IMPORTED_MODULE_0__.delegate.bind(container, ELEMENT_SELECTOR, 'click', function(event) {\n\n var target = event.delegateTarget;\n\n if ((0,min_dom__WEBPACK_IMPORTED_MODULE_0__.matches)(target, TOGGLE_SELECTOR)) {\n return self.toggle();\n }\n\n self.trigger('click', event);\n });\n\n // prevent drag propagation\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(container, 'mousedown', function(event) {\n event.stopPropagation();\n });\n\n // prevent drag propagation\n min_dom__WEBPACK_IMPORTED_MODULE_0__.delegate.bind(container, ENTRY_SELECTOR, 'dragstart', function(event) {\n self.trigger('dragstart', event);\n });\n\n eventBus.on('canvas.resized', this._layoutChanged, this);\n\n eventBus.fire('palette.create', {\n container: container\n });\n};\n\nPalette.prototype._getProviders = function(id) {\n\n var event = this._eventBus.createEvent({\n type: 'palette.getProviders',\n providers: []\n });\n\n this._eventBus.fire(event);\n\n return event.providers;\n};\n\n/**\n * Update palette state.\n *\n * @param { {\n * open?: boolean;\n * twoColumn?: boolean;\n * } } [state]\n */\nPalette.prototype._toggleState = function(state) {\n\n state = state || {};\n\n var parent = this._getParentContainer(),\n container = this._container;\n\n var eventBus = this._eventBus;\n\n var twoColumn;\n\n var cls = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(container),\n parentCls = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(parent);\n\n if ('twoColumn' in state) {\n twoColumn = state.twoColumn;\n } else {\n twoColumn = this._needsCollapse(parent.clientHeight, this._entries || {});\n }\n\n // always update two column\n cls.toggle(PALETTE_TWO_COLUMN_CLS, twoColumn);\n parentCls.toggle(PALETTE_PREFIX + PALETTE_TWO_COLUMN_CLS, twoColumn);\n\n if ('open' in state) {\n cls.toggle(PALETTE_OPEN_CLS, state.open);\n parentCls.toggle(PALETTE_PREFIX + PALETTE_OPEN_CLS, state.open);\n }\n\n eventBus.fire('palette.changed', {\n twoColumn: twoColumn,\n open: this.isOpen()\n });\n};\n\nPalette.prototype._update = function() {\n\n var entriesContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('.djs-palette-entries', this._container),\n entries = this._entries = this.getEntries();\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.clear)(entriesContainer);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(entries, function(entry, id) {\n\n var grouping = entry.group || 'default';\n\n var container = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('[data-group=' + (0,_util_EscapeUtil__WEBPACK_IMPORTED_MODULE_2__.escapeCSS)(grouping) + ']', entriesContainer);\n if (!container) {\n container = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)('
');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(container, 'data-group', grouping);\n\n entriesContainer.appendChild(container);\n }\n\n var html = entry.html || (\n entry.separator ?\n '
' :\n '
');\n\n\n var control = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(html);\n container.appendChild(control);\n\n if (!entry.separator) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(control, 'data-action', id);\n\n if (entry.title) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(control, 'title', entry.title);\n }\n\n if (entry.className) {\n addClasses(control, entry.className);\n }\n\n if (entry.imageUrl) {\n var image = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)('');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(image, 'src', entry.imageUrl);\n\n control.appendChild(image);\n }\n }\n });\n\n // open after update\n this.open();\n};\n\n\n/**\n * Trigger an action available on the palette\n *\n * @param {string} action\n * @param {Event} event\n * @param {boolean} [autoActivate=false]\n */\nPalette.prototype.trigger = function(action, event, autoActivate) {\n var entry,\n originalEvent,\n button = event.delegateTarget || event.target;\n\n if (!button) {\n return event.preventDefault();\n }\n\n entry = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(button, 'data-action');\n originalEvent = event.originalEvent || event;\n\n return this.triggerEntry(entry, action, originalEvent, autoActivate);\n};\n\n/**\n * @param {string} entryId\n * @param {string} action\n * @param {Event} event\n * @param {boolean} [autoActivate=false]\n */\nPalette.prototype.triggerEntry = function(entryId, action, event, autoActivate) {\n var entries = this._entries,\n entry,\n handler;\n\n entry = entries[entryId];\n\n // when user clicks on the palette and not on an action\n if (!entry) {\n return;\n }\n\n handler = entry.action;\n\n if (this._eventBus.fire('palette.trigger', { entry, event }) === false) {\n return;\n }\n\n // simple action (via callback function)\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {\n if (action === 'click') {\n return handler(event, autoActivate);\n }\n } else {\n if (handler[action]) {\n return handler[action](event, autoActivate);\n }\n }\n\n // silence other actions\n event.preventDefault();\n};\n\nPalette.prototype._layoutChanged = function() {\n this._toggleState({});\n};\n\n/**\n * Do we need to collapse to two columns?\n *\n * @param {number} availableHeight\n * @param {PaletteEntries} entries\n *\n * @return {boolean}\n */\nPalette.prototype._needsCollapse = function(availableHeight, entries) {\n\n // top margin + bottom toggle + bottom margin\n // implementors must override this method if they\n // change the palette styles\n var margin = 20 + 10 + 20;\n\n var entriesHeight = Object.keys(entries).length * 46;\n\n return availableHeight < entriesHeight + margin;\n};\n\n/**\n * Close the palette.\n */\nPalette.prototype.close = function() {\n this._toggleState({\n open: false,\n twoColumn: false\n });\n};\n\n/**\n * Open the palette.\n */\nPalette.prototype.open = function() {\n this._toggleState({ open: true });\n};\n\n/**\n * Toggle the palette.\n */\nPalette.prototype.toggle = function() {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n};\n\n/**\n * @param {string} tool\n *\n * @return {boolean}\n */\nPalette.prototype.isActiveTool = function(tool) {\n return tool && this._activeTool === tool;\n};\n\n/**\n * @param {string} name\n */\nPalette.prototype.updateToolHighlight = function(name) {\n var entriesContainer,\n toolsContainer;\n\n if (!this._toolsContainer) {\n entriesContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('.djs-palette-entries', this._container);\n\n this._toolsContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('[data-group=tools]', entriesContainer);\n }\n\n toolsContainer = this._toolsContainer;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(toolsContainer.children, function(tool) {\n var actionName = tool.getAttribute('data-action');\n\n if (!actionName) {\n return;\n }\n\n var toolClasses = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(tool);\n\n actionName = actionName.replace('-tool', '');\n\n if (toolClasses.contains('entry') && actionName === name) {\n toolClasses.add('highlighted-entry');\n } else {\n toolClasses.remove('highlighted-entry');\n }\n });\n};\n\n\n/**\n * Return `true` if the palette is opened.\n *\n * @example\n *\n * ```javascript\n * palette.open();\n *\n * if (palette.isOpen()) {\n * // yes, we are open\n * }\n * ```\n *\n * @return {boolean}\n */\nPalette.prototype.isOpen = function() {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(this._container).has(PALETTE_OPEN_CLS);\n};\n\n/**\n * Get parent element of palette.\n *\n * @return {HTMLElement}\n */\nPalette.prototype._getParentContainer = function() {\n return this._canvas.getContainer();\n};\n\n\n/* markup definition */\n\nPalette.HTML_MARKUP =\n '
' +\n '
' +\n '
' +\n '
';\n\n\n// helpers //////////////////////\n\nfunction addClasses(element, classNames) {\n\n var classes = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(element);\n\n var actualClassNames = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isArray)(classNames) ? classNames : classNames.split(/\\s+/g);\n actualClassNames.forEach(function(cls) {\n classes.add(cls);\n });\n}\n\nfunction addPaletteEntries(entries, provider) {\n\n var entriesOrUpdater = provider.getPaletteEntries();\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isFunction)(entriesOrUpdater)) {\n return entriesOrUpdater(entries);\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(entriesOrUpdater, function(entry, id) {\n entries[id] = entry;\n });\n\n return entries;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/palette/Palette.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/palette/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/palette/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Palette__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Palette */ \"./node_modules/diagram-js/lib/features/palette/Palette.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'palette' ],\n palette: [ 'type', _Palette__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/palette/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PopupMenu)\n/* harmony export */ });\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ui */ \"./node_modules/preact/dist/preact.module.js\");\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../ui */ \"./node_modules/htm/preact/index.module.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _PopupMenuComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PopupMenuComponent */ \"./node_modules/diagram-js/lib/features/popup-menu/PopupMenuComponent.js\");\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {import('./PopupMenuProvider').PopupMenuEntries} PopupMenuEntries\n * @typedef {import('./PopupMenuProvider').PopupMenuEntry} PopupMenuEntry\n * @typedef {import('./PopupMenuProvider').PopupMenuHeaderEntries} PopupMenuHeaderEntries\n * @typedef {import('./PopupMenuProvider').PopupMenuHeaderEntry} PopupMenuHeaderEntry\n * @typedef {import('./PopupMenuProvider').default} PopupMenuProvider\n *\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef { {\n * scale?: {\n * min?: number;\n * max?: number;\n * } | boolean;\n * } } PopupMenuConfig\n *\n * @typedef {Element|Element[]} PopupMenuTarget;\n */\n\nvar DATA_REF = 'data-id';\n\nvar CLOSE_EVENTS = [\n 'contextPad.close',\n 'canvas.viewbox.changing',\n 'commandStack.changed'\n];\n\nvar DEFAULT_PRIORITY = 1000;\n\n/**\n * A popup menu to show a number of actions on the canvas.\n *\n * @param {PopupMenuConfig} config\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n */\nfunction PopupMenu(config, eventBus, canvas) {\n this._eventBus = eventBus;\n this._canvas = canvas;\n\n this._current = null;\n\n var scale = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(config && config.scale) ? config.scale : {\n min: 1,\n max: 1\n };\n\n this._config = {\n scale: scale\n };\n\n\n eventBus.on('diagram.destroy', () => {\n this.close();\n });\n\n eventBus.on('element.changed', event => {\n\n const element = this.isOpen() && this._current.target;\n\n if (event.element === element) {\n this.refresh();\n }\n });\n\n}\n\nPopupMenu.$inject = [\n 'config.popupMenu',\n 'eventBus',\n 'canvas'\n];\n\nPopupMenu.prototype._render = function() {\n\n const {\n position: _position,\n providerId: className,\n entries,\n headerEntries,\n emptyPlaceholder,\n options\n } = this._current;\n\n const entriesArray = Object.entries(entries).map(\n ([ key, value ]) => ({ id: key, ...value })\n );\n\n const headerEntriesArray = Object.entries(headerEntries).map(\n ([ key, value ]) => ({ id: key, ...value })\n );\n\n const position = _position && (\n (container) => this._ensureVisible(container, _position)\n );\n\n const scale = this._updateScale(this._current.container);\n\n const onClose = result => this.close(result);\n const onSelect = (event, entry, action) => this.trigger(event, entry, action);\n\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.render)(\n (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`\n <${_PopupMenuComponent__WEBPACK_IMPORTED_MODULE_3__[\"default\"]}\n onClose=${ onClose }\n onSelect=${ onSelect }\n position=${ position }\n className=${ className }\n entries=${ entriesArray }\n headerEntries=${ headerEntriesArray }\n emptyPlaceholder=${ emptyPlaceholder }\n scale=${ scale }\n onOpened=${ this._onOpened.bind(this) }\n onClosed=${ this._onClosed.bind(this) }\n ...${{ ...options }}\n />\n `,\n this._current.container\n );\n};\n\n\n/**\n * Open the popup menu at the given position.\n *\n * @param {PopupMenuTarget} target\n * @param {string} providerId\n * @param {Point} position\n * @param {Object} [options]\n */\nPopupMenu.prototype.open = function(target, providerId, position, options) {\n if (!target) {\n throw new Error('target is missing');\n }\n\n if (!providerId) {\n throw new Error('providers for <' + providerId + '> not found');\n }\n\n if (!position) {\n throw new Error('position is missing');\n }\n\n if (this.isOpen()) {\n this.close();\n }\n\n const {\n entries,\n headerEntries,\n emptyPlaceholder\n } = this._getContext(target, providerId);\n\n this._current = {\n position,\n providerId,\n target,\n entries,\n headerEntries,\n emptyPlaceholder,\n container: this._createContainer({ provider: providerId }),\n options\n };\n\n this._emit('open');\n\n this._bindAutoClose();\n\n this._render();\n};\n\n/**\n * Refresh the popup menu entries without changing the target or position.\n */\nPopupMenu.prototype.refresh = function() {\n if (!this.isOpen()) {\n return;\n }\n\n const {\n target,\n providerId\n } = this._current;\n\n const {\n entries,\n headerEntries,\n emptyPlaceholder\n } = this._getContext(target, providerId);\n\n this._current = {\n ...this._current,\n entries,\n headerEntries,\n emptyPlaceholder\n };\n\n this._emit('refresh');\n\n this._render();\n};\n\n\nPopupMenu.prototype._getContext = function(target, provider) {\n\n const providers = this._getProviders(provider);\n\n if (!providers || !providers.length) {\n throw new Error('provider for <' + provider + '> not found');\n }\n\n const entries = this._getEntries(target, providers);\n\n const headerEntries = this._getHeaderEntries(target, providers);\n\n const emptyPlaceholder = this._getEmptyPlaceholder(providers);\n\n return {\n entries,\n headerEntries,\n emptyPlaceholder,\n empty: !(\n Object.keys(entries).length ||\n Object.keys(headerEntries).length\n )\n };\n};\n\nPopupMenu.prototype.close = function() {\n\n if (!this.isOpen()) {\n return;\n }\n\n this._emit('close');\n\n this.reset();\n\n this._current = null;\n};\n\nPopupMenu.prototype.reset = function() {\n const container = this._current.container;\n\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.render)(null, container);\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.remove)(container);\n};\n\nPopupMenu.prototype._emit = function(event, payload) {\n this._eventBus.fire(`popupMenu.${ event }`, payload);\n};\n\nPopupMenu.prototype._onOpened = function() {\n this._emit('opened');\n};\n\nPopupMenu.prototype._onClosed = function() {\n this._emit('closed');\n};\n\nPopupMenu.prototype._createContainer = function(config) {\n\n var canvas = this._canvas,\n parent = canvas.getContainer();\n\n const container = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.domify)(`
`);\n\n parent.appendChild(container);\n\n return container;\n};\n\n/**\n * Set up listener to close popup automatically on certain events.\n */\nPopupMenu.prototype._bindAutoClose = function() {\n this._eventBus.once(CLOSE_EVENTS, this.close, this);\n};\n\n\n/**\n * Remove the auto-closing listener.\n*/\nPopupMenu.prototype._unbindAutoClose = function() {\n this._eventBus.off(CLOSE_EVENTS, this.close, this);\n};\n\n\n/**\n * Updates popup style.transform with respect to the config and zoom level.\n *\n * @return {number}\n */\nPopupMenu.prototype._updateScale = function() {\n var zoom = this._canvas.zoom();\n\n var scaleConfig = this._config.scale,\n minScale,\n maxScale,\n scale = zoom;\n\n if (scaleConfig !== true) {\n\n if (scaleConfig === false) {\n minScale = 1;\n maxScale = 1;\n } else {\n minScale = scaleConfig.min;\n maxScale = scaleConfig.max;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(minScale) && zoom < minScale) {\n scale = minScale;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isDefined)(maxScale) && zoom > maxScale) {\n scale = maxScale;\n }\n\n }\n\n return scale;\n};\n\nPopupMenu.prototype._ensureVisible = function(container, position) {\n var documentBounds = document.documentElement.getBoundingClientRect();\n var containerBounds = container.getBoundingClientRect();\n\n var overAxis = {},\n left = position.x,\n top = position.y;\n\n if (position.x + containerBounds.width > documentBounds.width) {\n overAxis.x = true;\n }\n\n if (position.y + containerBounds.height > documentBounds.height) {\n overAxis.y = true;\n }\n\n if (overAxis.x && overAxis.y) {\n left = position.x - containerBounds.width;\n top = position.y - containerBounds.height;\n } else if (overAxis.x) {\n left = position.x - containerBounds.width;\n top = position.y;\n } else if (overAxis.y && position.y < containerBounds.height) {\n left = position.x;\n top = 10;\n } else if (overAxis.y) {\n left = position.x;\n top = position.y - containerBounds.height;\n }\n\n // underAxis\n if (position.y < documentBounds.top) {\n top = position.y + containerBounds.height;\n }\n\n return {\n x: left,\n y: top\n };\n};\n\n/**\n * Check whether there are no popup menu providers or provided entries for the\n * given target.\n *\n * @param {PopupMenuTarget} target\n * @param {string} providerId\n *\n * @return {boolean}\n */\nPopupMenu.prototype.isEmpty = function(target, providerId) {\n if (!target) {\n throw new Error('target is missing');\n }\n\n if (!providerId) {\n throw new Error('provider ID is missing');\n }\n\n const providers = this._getProviders(providerId);\n\n if (!providers || !providers.length) {\n return true;\n }\n\n return this._getContext(target, providerId).empty;\n};\n\n/**\n * @overlord\n *\n * Register a popup menu provider with default priority. See\n * {@link PopupMenuProvider} for examples.\n *\n * @param {string} id\n * @param {PopupMenuProvider} provider\n */\n\n/**\n * Register a popup menu provider with the given priority. See\n * {@link PopupMenuProvider} for examples.\n *\n * @param {string} id\n * @param {number} priority\n * @param {PopupMenuProvider} provider\n */\nPopupMenu.prototype.registerProvider = function(id, priority, provider) {\n if (!provider) {\n provider = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n this._eventBus.on('popupMenu.getProviders.' + id, priority, function(event) {\n event.providers.push(provider);\n });\n};\n\n/**\n * @param {string} id\n *\n * @return {PopupMenuProvider[]}\n */\nPopupMenu.prototype._getProviders = function(id) {\n var event = this._eventBus.createEvent({\n type: 'popupMenu.getProviders.' + id,\n providers: []\n });\n\n this._eventBus.fire(event);\n\n return event.providers;\n};\n\n/**\n * @param {PopupMenuTarget} target\n * @param {PopupMenuProvider[]} providers\n *\n * @return {PopupMenuEntries}\n */\nPopupMenu.prototype._getEntries = function(target, providers) {\n var entries = {};\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(providers, function(provider) {\n\n // handle legacy method\n if (!provider.getPopupMenuEntries) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(provider.getEntries(target), function(entry) {\n var id = entry.id;\n\n if (!id) {\n throw new Error('entry ID is missing');\n }\n\n entries[id] = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.omit)(entry, [ 'id' ]);\n });\n\n return;\n }\n\n var entriesOrUpdater = provider.getPopupMenuEntries(target);\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(entriesOrUpdater)) {\n entries = entriesOrUpdater(entries);\n } else {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(entriesOrUpdater, function(entry, id) {\n entries[id] = entry;\n });\n }\n });\n\n return entries;\n};\n\n/**\n * @param {PopupMenuTarget} target\n * @param {PopupMenuProvider[]} providers\n *\n * @return {PopupMenuHeaderEntries}\n */\nPopupMenu.prototype._getHeaderEntries = function(target, providers) {\n var entries = {};\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(providers, function(provider) {\n\n // handle legacy method\n if (!provider.getPopupMenuHeaderEntries) {\n if (!provider.getHeaderEntries) {\n return;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(provider.getHeaderEntries(target), function(entry) {\n var id = entry.id;\n\n if (!id) {\n throw new Error('entry ID is missing');\n }\n\n entries[id] = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.omit)(entry, [ 'id' ]);\n });\n\n return;\n }\n\n var entriesOrUpdater = provider.getPopupMenuHeaderEntries(target);\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(entriesOrUpdater)) {\n entries = entriesOrUpdater(entries);\n } else {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(entriesOrUpdater, function(entry, id) {\n entries[id] = entry;\n });\n }\n });\n\n return entries;\n};\n\n\nPopupMenu.prototype._getEmptyPlaceholder = function(providers) {\n\n const provider = providers.find(\n provider => (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(provider.getEmptyPlaceholder)\n );\n\n return provider && provider.getEmptyPlaceholder();\n};\n\n\n/**\n * Check if the popup menu is open.\n *\n * @return {boolean}\n */\nPopupMenu.prototype.isOpen = function() {\n return !!this._current;\n};\n\n\n/**\n * Trigger an action associated with an entry.\n *\n * @param {Event} event\n * @param {PopupMenuEntry} entry\n * @param {string} [action='click']\n *\n * @return {any}\n */\nPopupMenu.prototype.trigger = function(event, entry, action = 'click') {\n\n // silence other actions\n event.preventDefault();\n\n if (!entry) {\n let element = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.closest)(event.delegateTarget || event.target, '.entry', true);\n let entryId = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.attr)(element, DATA_REF);\n\n entry = { id: entryId, ...this._getEntry(entryId) };\n }\n\n const handler = entry.action;\n\n if (this._emit('trigger', { entry, event }) === false) {\n return;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handler)) {\n if (action === 'click') {\n return handler(event, entry);\n }\n } else {\n if (handler[action]) {\n return handler[action](event, entry);\n }\n }\n};\n\n/**\n * Get the entry (entry or header entry) with the given ID.\n *\n * @param {string} entryId\n *\n * @return {PopupMenuEntry|PopupMenuHeaderEntry}\n */\nPopupMenu.prototype._getEntry = function(entryId) {\n\n var entry = this._current.entries[ entryId ] || this._current.headerEntries[ entryId ];\n\n\n if (!entry) {\n throw new Error('entry not found');\n }\n\n return entry;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/popup-menu/PopupMenuComponent.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/popup-menu/PopupMenuComponent.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PopupMenuComponent)\n/* harmony export */ });\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ui */ \"./node_modules/preact/hooks/dist/hooks.module.js\");\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../ui */ \"./node_modules/htm/preact/index.module.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _PopupMenuHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PopupMenuHeader */ \"./node_modules/diagram-js/lib/features/popup-menu/PopupMenuHeader.js\");\n/* harmony import */ var _PopupMenuList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PopupMenuList */ \"./node_modules/diagram-js/lib/features/popup-menu/PopupMenuList.js\");\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('./PopupMenuProvider').PopupMenuEntry} PopupMenuEntry\n * @typedef {import('./PopupMenuProvider').PopupMenuHeaderEntry} PopupMenuHeaderEntry\n * @typedef {import('./PopupMenuProvider').PopupMenuEmptyPlaceholderProvider | import('./PopupMenuProvider').PopupMenuEmptyPlaceholder} PopupMenuEmptyPlaceholder\n *\n * @typedef {import('../../util/Types').Point} Point\n */\n\n/**\n * A component that renders the popup menus.\n *\n * @param {Object} props\n * @param {() => void} props.onClose\n * @param {() => void} props.onSelect\n * @param {(element: HTMLElement) => Point} props.position\n * @param {string} props.className\n * @param {PopupMenuEntry[]} props.entries\n * @param {PopupMenuHeaderEntry[]} props.headerEntries\n * @param {number} props.scale\n * @param {string} [props.title]\n * @param {boolean} [props.search]\n * @param {PopupMenuEmptyPlaceholder} [props.emptyPlaceholder]\n * @param {number} [props.width]\n */\nfunction PopupMenuComponent(props) {\n const {\n onClose,\n onSelect,\n className,\n headerEntries,\n position,\n title,\n width,\n scale,\n search,\n emptyPlaceholder,\n entries: originalEntries,\n onOpened,\n onClosed\n } = props;\n\n const searchable = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isDefined)(search)) {\n return false;\n }\n\n return originalEntries.length > 5;\n }, [ search, originalEntries ]);\n\n const [ value, setValue ] = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useState)('');\n\n const filterEntries = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useCallback)((originalEntries, value) => {\n\n if (!searchable) {\n return originalEntries;\n }\n\n const filter = entry => {\n if (!value) {\n return (entry.rank || 0) >= 0;\n }\n\n if (entry.searchable === false) {\n return false;\n }\n\n const searchableFields = [\n entry.description || '',\n entry.label || '',\n entry.search || ''\n ].map(string => string.toLowerCase());\n\n // every word of `value` should be included in one of the searchable fields\n return value\n .toLowerCase()\n .split(/\\s/g)\n .every(word => searchableFields.some(field => field.includes(word)));\n };\n\n return originalEntries.filter(filter);\n }, [ searchable ]);\n\n const [ entries, setEntries ] = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useState)(filterEntries(originalEntries, value));\n const [ selectedEntry, setSelectedEntry ] = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useState)(entries[0]);\n\n const updateEntries = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useCallback)((newEntries) => {\n\n // select first entry if non is selected\n if (!selectedEntry || !newEntries.includes(selectedEntry)) {\n setSelectedEntry(newEntries[0]);\n }\n\n setEntries(newEntries);\n }, [ selectedEntry, setEntries, setSelectedEntry ]);\n\n // filter entries on value change\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {\n updateEntries(filterEntries(originalEntries, value));\n }, [ value, originalEntries ]);\n\n // handle keyboard seleciton\n const keyboardSelect = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useCallback)(direction => {\n const idx = entries.indexOf(selectedEntry);\n\n let nextIdx = idx + direction;\n\n if (nextIdx < 0) {\n nextIdx = entries.length - 1;\n }\n\n if (nextIdx >= entries.length) {\n nextIdx = 0;\n }\n\n setSelectedEntry(entries[nextIdx]);\n }, [ entries, selectedEntry, setSelectedEntry ]);\n\n const handleKeyDown = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useCallback)(event => {\n if (event.key === 'Enter' && selectedEntry) {\n return onSelect(event, selectedEntry);\n }\n\n // ARROW_UP\n if (event.key === 'ArrowUp') {\n keyboardSelect(-1);\n\n return event.preventDefault();\n }\n\n // ARROW_DOWN\n if (event.key === 'ArrowDown') {\n keyboardSelect(1);\n\n return event.preventDefault();\n }\n }, [ onSelect, selectedEntry, keyboardSelect ]);\n\n const handleKey = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useCallback)(event => {\n if ((0,min_dom__WEBPACK_IMPORTED_MODULE_3__.matches)(event.target, 'input')) {\n setValue(() => event.target.value);\n }\n }, [ setValue ]);\n\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {\n onOpened();\n\n return () => {\n onClosed();\n };\n }, []);\n\n const displayHeader = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => title || headerEntries.length > 0, [ title, headerEntries ]);\n\n return (0,_ui__WEBPACK_IMPORTED_MODULE_4__.html)`\n <${PopupMenuWrapper}\n onClose=${ onClose }\n onKeyup=${ handleKey }\n onKeydown=${ handleKeyDown }\n className=${ className }\n position=${ position }\n width=${ width }\n scale=${ scale }\n >\n ${ displayHeader && (0,_ui__WEBPACK_IMPORTED_MODULE_4__.html)`\n <${_PopupMenuHeader__WEBPACK_IMPORTED_MODULE_5__[\"default\"]}\n headerEntries=${ headerEntries }\n onSelect=${ onSelect }\n selectedEntry=${ selectedEntry }\n setSelectedEntry=${ setSelectedEntry }\n title=${ title }\n />\n ` }\n ${ originalEntries.length > 0 && (0,_ui__WEBPACK_IMPORTED_MODULE_4__.html)`\n
\n\n ${ searchable && (0,_ui__WEBPACK_IMPORTED_MODULE_4__.html)`\n
\n \n \n \n \n
\n ` }\n\n <${_PopupMenuList__WEBPACK_IMPORTED_MODULE_6__[\"default\"]}\n entries=${ entries }\n selectedEntry=${ selectedEntry }\n setSelectedEntry=${ setSelectedEntry }\n onAction=${ onSelect }\n />\n
\n ` }\n ${ emptyPlaceholder && entries.length === 0 && (0,_ui__WEBPACK_IMPORTED_MODULE_4__.html)`\n
${ (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(emptyPlaceholder) ? emptyPlaceholder(value) : emptyPlaceholder }
\n ` }\n \n `;\n}\n\n/**\n * A component that wraps the popup menu.\n *\n * @param {*} props\n */\nfunction PopupMenuWrapper(props) {\n const {\n onClose,\n onKeydown,\n onKeyup,\n className,\n children,\n position: positionGetter\n } = props;\n\n const popupRef = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useRef)();\n\n // initial position\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => {\n if (typeof positionGetter !== 'function') {\n return;\n }\n\n const popupEl = popupRef.current;\n const position = positionGetter(popupEl);\n\n popupEl.style.left = `${position.x}px`;\n popupEl.style.top = `${position.y}px`;\n }, [ popupRef.current, positionGetter ]);\n\n // initial focus\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => {\n const popupEl = popupRef.current;\n\n if (!popupEl) {\n return;\n }\n\n const inputEl = popupEl.querySelector('input');\n\n (inputEl || popupEl).focus();\n }, []);\n\n // global / blur handlers\n (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {\n const handleKeyDown = event => {\n if (event.key === 'Escape') {\n event.preventDefault();\n\n return onClose();\n }\n };\n\n const handleClick = event => {\n const popup = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.closest)(event.target, '.djs-popup', true);\n\n if (popup) {\n return;\n }\n\n return onClose();\n };\n\n document.documentElement.addEventListener('keydown', handleKeyDown);\n document.body.addEventListener('click', handleClick);\n\n return () => {\n document.documentElement.removeEventListener('keydown', handleKeyDown);\n document.body.removeEventListener('click', handleClick);\n };\n }, []);\n\n return (0,_ui__WEBPACK_IMPORTED_MODULE_4__.html)`\n \n ${ children }\n
\n `;\n}\n\n// helpers //////////////////////\n\nfunction getPopupStyle(props) {\n return {\n transform: `scale(${props.scale})`,\n width: `${props.width}px`,\n 'transform-origin': 'top left'\n };\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/popup-menu/PopupMenuComponent.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/popup-menu/PopupMenuHeader.js": +/*!****************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/popup-menu/PopupMenuHeader.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PopupMenuHeader)\n/* harmony export */ });\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ui */ \"./node_modules/preact/hooks/dist/hooks.module.js\");\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../ui */ \"./node_modules/htm/preact/index.module.js\");\n\n\n\n\n/**\n * @typedef {import('./PopupMenuProvider').PopupMenuHeaderEntry} PopupMenuHeaderEntry\n */\n\n/**\n * Component that renders a popup menu header.\n *\n * @param {Object} props\n * @param {PopupMenuHeaderEntry[]} props.headerEntries\n * @param {PopupMenuHeaderEntry} props.selectedEntry\n * @param {(event: MouseEvent, entry: PopupMenuHeaderEntry) => void} props.onSelect\n * @param {(entry: PopupMenuHeaderEntry | null) => void} props.setSelectedEntry\n * @param {string} props.title\n */\nfunction PopupMenuHeader(props) {\n const {\n headerEntries,\n onSelect,\n selectedEntry,\n setSelectedEntry,\n title\n } = props;\n\n const groups = (0,_ui__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => groupEntries(headerEntries), [ headerEntries ]);\n\n return (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`\n
\n

${ title }

\n ${ groups.map((group) => (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`\n
    \n\n ${ group.entries.map(entry => (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`\n
  • \n <${ entry.action ? 'button' : 'span' }\n class=${ getHeaderClasses(entry, entry === selectedEntry) }\n onClick=${ event => entry.action && onSelect(event, entry) }\n title=${ entry.title || entry.label }\n data-id=${ entry.id }\n onMouseEnter=${ () => entry.action && setSelectedEntry(entry) }\n onMouseLeave=${ () => entry.action && setSelectedEntry(null) }\n onFocus=${ () => entry.action && setSelectedEntry(entry) }\n onBlur=${ () => entry.action && setSelectedEntry(null) }\n >\n ${(entry.imageUrl && (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`\"\"`) ||\n (entry.imageHtml && (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`
    `)}\n ${ entry.label ? (0,_ui__WEBPACK_IMPORTED_MODULE_2__.html)`\n ${ entry.label }\n ` : null }\n \n
  • \n `) }\n
\n `) }\n
\n `;\n}\n\n\n// helpers\nfunction groupEntries(entries) {\n return entries.reduce((groups, entry) => {\n const groupId = entry.group || 'default';\n\n const group = groups.find(group => group.id === groupId);\n\n if (group) {\n group.entries.push(entry);\n } else {\n groups.push({\n id: groupId,\n entries: [ entry ]\n });\n }\n\n return groups;\n }, []);\n}\n\nfunction getHeaderClasses(entry, selected) {\n return (0,clsx__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\n 'entry',\n entry.className,\n entry.active ? 'active' : '',\n entry.disabled ? 'disabled' : '',\n selected ? 'selected' : ''\n );\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/popup-menu/PopupMenuHeader.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/popup-menu/PopupMenuItem.js": +/*!**************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/popup-menu/PopupMenuItem.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PopupMenuItem)\n/* harmony export */ });\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ui */ \"./node_modules/htm/preact/index.module.js\");\n\n\n\n\n/**\n * @typedef {import('./PopupMenuProvider').PopupMenuEntry} PopupMenuEntry\n */\n\n/**\n * Component that renders a popup menu entry.\n *\n * @param {Object} props\n * @param {string} props.key\n * @param {PopupMenuEntry} props.entry\n * @param {boolean} props.selected\n * @param {(event: MouseEvent) => void} props.onMouseEnter\n * @param {(event: MouseEvent) => void} props.onMouseLeave\n * @param {(event: MouseEvent, entry?: PopupMenuEntry, action?: string) => void} props.onAction\n */\nfunction PopupMenuItem(props) {\n const {\n entry,\n selected,\n onMouseEnter,\n onMouseLeave,\n onAction\n } = props;\n\n return (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n onAction(event, entry, 'dragstart') }\n draggable=${ true }\n >\n
\n \n ${(entry.imageUrl && (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\"\"`) ||\n (entry.imageHtml && (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`
`)}\n\n ${ entry.label ? (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n \n ${ entry.label }\n \n ` : null }\n \n ${ entry.description && (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n \n ${ entry.description }\n \n ` }\n
\n ${ entry.documentationRef && (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n
\n event.stopPropagation() }\n title=\"Open element documentation\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n \n \n \n \n
\n ` }\n \n `;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/popup-menu/PopupMenuItem.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/popup-menu/PopupMenuList.js": +/*!**************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/popup-menu/PopupMenuList.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PopupMenuList)\n/* harmony export */ });\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../ui */ \"./node_modules/preact/hooks/dist/hooks.module.js\");\n/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ui */ \"./node_modules/htm/preact/index.module.js\");\n/* harmony import */ var _PopupMenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PopupMenuItem */ \"./node_modules/diagram-js/lib/features/popup-menu/PopupMenuItem.js\");\n\n\n\n\n/**\n * @typedef {import('./PopupMenuProvider').PopupMenuEntry} PopupMenuEntry\n */\n\n/**\n * Component that renders a popup menu entry list.\n *\n * @param {Object} props\n * @param {PopupMenuEntry[]} props.entries\n * @param {PopupMenuEntry} props.selectedEntry\n * @param {(entry: PopupMenuEntry | null) => void} props.setSelectedEntry\n */\nfunction PopupMenuList(props) {\n const {\n selectedEntry,\n setSelectedEntry,\n entries,\n ...restProps\n } = props;\n\n const resultsRef = (0,_ui__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n\n const groups = (0,_ui__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => groupEntries(entries), [ entries ]);\n\n // scroll to selected result\n (0,_ui__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => {\n const containerEl = resultsRef.current;\n\n if (!containerEl)\n return;\n\n const selectedEl = containerEl.querySelector('.selected');\n\n if (selectedEl) {\n scrollIntoView(selectedEl);\n }\n }, [ selectedEntry ]);\n\n return (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n
\n ${ groups.map(group => (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n ${ group.name && (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n
\n ${ group.name }\n
\n ` }\n
    \n ${ group.entries.map(entry => (0,_ui__WEBPACK_IMPORTED_MODULE_1__.html)`\n <${_PopupMenuItem__WEBPACK_IMPORTED_MODULE_2__[\"default\"]}\n key=${ entry.id }\n entry=${ entry }\n selected=${ entry === selectedEntry }\n onMouseEnter=${ () => setSelectedEntry(entry) }\n onMouseLeave=${ () => setSelectedEntry(null) }\n ...${ restProps }\n />\n `) }\n
\n `) }\n
\n `;\n}\n\n\n// helpers\nfunction groupEntries(entries) {\n const groups = [];\n\n const getGroup = group => groups.find(elem => group.id === elem.id);\n\n const containsGroup = group => !!getGroup(group);\n\n // legacy support for provider built for the old popUp menu\n const formatGroup = group =>\n typeof group === 'string' ? { id: group } : group;\n\n entries.forEach(entry => {\n\n // assume a default group when none is provided\n const group = entry.group ? formatGroup(entry.group) : { id: 'default' };\n\n if (!containsGroup(group)) {\n groups.push({ ...group, entries: [ entry ] });\n } else {\n getGroup(group).entries.push(entry);\n }\n });\n\n return groups;\n}\n\n// helpers ////////////////\n\nfunction scrollIntoView(el) {\n if (typeof el.scrollIntoViewIfNeeded === 'function') {\n el.scrollIntoViewIfNeeded();\n } else {\n el.scrollIntoView({\n scrollMode: 'if-needed',\n block: 'nearest'\n });\n }\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/popup-menu/PopupMenuList.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/popup-menu/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/popup-menu/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _PopupMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PopupMenu */ \"./node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'popupMenu' ],\n popupMenu: [ 'type', _PopupMenu__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/popup-menu/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/preview-support/PreviewSupport.js": +/*!********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/preview-support/PreviewSupport.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PreviewSupport)\n/* harmony export */ });\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_GraphicsUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/GraphicsUtil */ \"./node_modules/diagram-js/lib/util/GraphicsUtil.js\");\n/* harmony import */ var _util_IdGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/IdGenerator */ \"./node_modules/diagram-js/lib/util/IdGenerator.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../../core/Types').ElementLike} Element\r\n * @typedef {import('../../core/Types').ShapeLike} Shape\r\n *\r\n * @typedef {import('../../core/Canvas').default} Canvas\r\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\r\n * @typedef {import('../../core/EventBus').default} EventBus\r\n * @typedef {import('../../draw/Styles').default} Styles\r\n */\r\n\r\nconst cloneIds = new _util_IdGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"]('ps');\r\n\r\nvar MARKER_TYPES = [\r\n 'marker-start',\r\n 'marker-mid',\r\n 'marker-end'\r\n];\r\n\r\nvar NODES_CAN_HAVE_MARKER = [\r\n 'circle',\r\n 'ellipse',\r\n 'line',\r\n 'path',\r\n 'polygon',\r\n 'polyline',\r\n 'path',\r\n 'rect'\r\n];\r\n\r\n\r\n/**\r\n * Adds support for previews of moving/resizing elements.\r\n *\r\n * @param {ElementRegistry} elementRegistry\r\n * @param {EventBus} eventBus\r\n * @param {Canvas} canvas\r\n * @param {Styles} styles\r\n */\r\nfunction PreviewSupport(elementRegistry, eventBus, canvas, styles) {\r\n this._elementRegistry = elementRegistry;\r\n this._canvas = canvas;\r\n this._styles = styles;\r\n}\r\n\r\nPreviewSupport.$inject = [\r\n 'elementRegistry',\r\n 'eventBus',\r\n 'canvas',\r\n 'styles'\r\n];\r\n\r\n// Markers are cleaned up with visuals, keep stub for compatibility\r\n// cf. https://github.com/camunda/camunda-modeler/issues/4307\r\nPreviewSupport.prototype.cleanUp = function() {\r\n console.warn('PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906');\r\n};\r\n\r\n/**\r\n * Returns graphics of an element.\r\n *\r\n * @param {Element} element\r\n *\r\n * @return {SVGElement}\r\n */\r\nPreviewSupport.prototype.getGfx = function(element) {\r\n return this._elementRegistry.getGraphics(element);\r\n};\r\n\r\n/**\r\n * Adds a move preview of a given shape to a given SVG group.\r\n *\r\n * @param {Element} element The element to be moved.\r\n * @param {SVGElement} group The SVG group to add the preview to.\r\n * @param {SVGElement} [gfx] The optional graphical element of the element.\r\n * @param {string} [className=\"djs-dragger\"] The optional class name to add to the preview.\r\n *\r\n * @return {SVGElement} The preview.\r\n */\r\nPreviewSupport.prototype.addDragger = function(element, group, gfx, className = 'djs-dragger') {\r\n gfx = gfx || this.getGfx(element);\r\n\r\n var dragger = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.clone)(gfx);\r\n var bbox = gfx.getBoundingClientRect();\r\n\r\n this._cloneMarkers((0,_util_GraphicsUtil__WEBPACK_IMPORTED_MODULE_2__.getVisual)(dragger), className);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(dragger, this._styles.cls(className, [], {\r\n x: bbox.top,\r\n y: bbox.left\r\n }));\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(group, dragger);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(dragger, 'data-preview-support-element-id', element.id);\r\n\r\n return dragger;\r\n};\r\n\r\n/**\r\n * Adds a resize preview of a given shape to a given SVG group.\r\n *\r\n * @param {Shape} shape The element to be resized.\r\n * @param {SVGElement} group The SVG group to add the preview to.\r\n *\r\n * @return {SVGElement} The preview.\r\n */\r\nPreviewSupport.prototype.addFrame = function(shape, group) {\r\n\r\n var frame = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('rect', {\r\n class: 'djs-resize-overlay',\r\n width: shape.width,\r\n height: shape.height,\r\n x: shape.x,\r\n y: shape.y\r\n });\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(group, frame);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(frame, 'data-preview-support-element-id', shape.id);\r\n\r\n return frame;\r\n};\r\n\r\n/**\r\n * Clone all markers referenced by a node and its child nodes.\r\n *\r\n * @param {SVGElement} gfx\r\n * @param {string} [className=\"djs-dragger\"]\r\n */\r\nPreviewSupport.prototype._cloneMarkers = function(gfx, className = 'djs-dragger', rootGfx = gfx) {\r\n var self = this;\r\n\r\n if (gfx.childNodes) {\r\n\r\n // TODO: use forEach once we drop PhantomJS\r\n for (var i = 0; i < gfx.childNodes.length; i++) {\r\n\r\n // recursively clone markers of child nodes\r\n self._cloneMarkers(gfx.childNodes[ i ], className, rootGfx);\r\n }\r\n }\r\n\r\n if (!canHaveMarker(gfx)) {\r\n return;\r\n }\r\n\r\n MARKER_TYPES.forEach(function(markerType) {\r\n if ((0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(gfx, markerType)) {\r\n var marker = getMarker(gfx, markerType, self._canvas.getContainer());\r\n\r\n // Only clone marker if it is already present on the DOM\r\n marker && self._cloneMarker(rootGfx, gfx, marker, markerType, className);\r\n }\r\n });\r\n};\r\n\r\n/**\r\n * Clone marker referenced by an element.\r\n *\r\n * @param {SVGElement} gfx\r\n * @param {SVGElement} marker\r\n * @param {string} markerType\r\n * @param {string} [className=\"djs-dragger\"]\r\n */\r\nPreviewSupport.prototype._cloneMarker = function(parentGfx, gfx, marker, markerType, className = 'djs-dragger') {\r\n\r\n // Add a random suffix to the marker ID in case the same marker is previewed multiple times\r\n var clonedMarkerId = [ marker.id, className, cloneIds.next() ].join('-');\r\n\r\n // reuse marker if it was part of original gfx\r\n var copiedMarker = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.query)('marker#' + marker.id, parentGfx);\r\n\r\n parentGfx = parentGfx || this._canvas._svg;\r\n\r\n var clonedMarker = copiedMarker || (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.clone)(marker);\r\n\r\n clonedMarker.id = clonedMarkerId;\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.classes)(clonedMarker).add(className);\r\n\r\n var defs = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.query)(':scope > defs', parentGfx);\r\n\r\n if (!defs) {\r\n defs = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('defs');\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(parentGfx, defs);\r\n }\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(defs, clonedMarker);\r\n\r\n var reference = idToReference(clonedMarker.id);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(gfx, markerType, reference);\r\n};\r\n\r\n// helpers //////////\r\n\r\n/**\r\n * Get marker of given type referenced by node.\r\n *\r\n * @param {HTMLElement} node\r\n * @param {string} markerType\r\n * @param {HTMLElement} [parentNode]\r\n *\r\n * @param {HTMLElement}\r\n */\r\nfunction getMarker(node, markerType, parentNode) {\r\n var id = referenceToId((0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(node, markerType));\r\n\r\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.query)('marker#' + id, parentNode || document);\r\n}\r\n\r\n/**\r\n * Get ID of fragment within current document from its functional IRI reference.\r\n * References may use single or double quotes.\r\n *\r\n * @param {string} reference\r\n *\r\n * @return {string}\r\n */\r\nfunction referenceToId(reference) {\r\n return reference.match(/url\\(['\"]?#([^'\"]*)['\"]?\\)/)[1];\r\n}\r\n\r\n/**\r\n * Get functional IRI reference for given ID of fragment within current document.\r\n *\r\n * @param {string} id\r\n *\r\n * @return {string}\r\n */\r\nfunction idToReference(id) {\r\n return 'url(#' + id + ')';\r\n}\r\n\r\n/**\r\n * Check wether node type can have marker attributes.\r\n *\r\n * @param {HTMLElement} node\r\n *\r\n * @return {boolean}\r\n */\r\nfunction canHaveMarker(node) {\r\n return NODES_CAN_HAVE_MARKER.indexOf(node.nodeName) !== -1;\r\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/preview-support/PreviewSupport.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/preview-support/index.js": +/*!***********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/preview-support/index.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _PreviewSupport__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PreviewSupport */ \"./node_modules/diagram-js/lib/features/preview-support/PreviewSupport.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'previewSupport' ],\n previewSupport: [ 'type', _PreviewSupport__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/preview-support/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/replace/Replace.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/replace/Replace.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Replace)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus\n * @typedef {import('../modeling/Modeling').default} Modeling\n *\n * @typedef {import('../../core/Types').ShapeLike} Shape\n */\n\nvar round = Math.round;\n\n/**\n * Service that allows replacing of elements.\n *\n * @param {Modeling} modeling\n * @param {EventBus} eventBus\n */\nfunction Replace(modeling, eventBus) {\n this._modeling = modeling;\n this._eventBus = eventBus;\n}\n\nReplace.$inject = [ 'modeling', 'eventBus' ];\n\n/**\n * Replace an element.\n *\n * @param {Shape} oldElement The element to be replaced.\n * @param {Object} attrs Containing information about the new element, for\n * example the new bounds and type.\n * @param {Object} hints Custom hints that will be attached to the context. It\n * can be used to inject data that is needed in the command chain. For example\n * it could be used in eventbus.on('commandStack.shape.replace.postExecute') to\n * change shape attributes after shape creation.\n *\n * @return {Shape}\n */\nReplace.prototype.replaceElement = function(oldElement, attrs, hints) {\n\n if (oldElement.waypoints) {\n\n // TODO(nikku): we do not replace connections, yet\n return null;\n }\n\n var modeling = this._modeling;\n var eventBus = this._eventBus;\n\n eventBus.fire('replace.start', {\n element: oldElement,\n attrs,\n hints\n });\n\n var width = attrs.width || oldElement.width,\n height = attrs.height || oldElement.height,\n x = attrs.x || oldElement.x,\n y = attrs.y || oldElement.y,\n centerX = round(x + width / 2),\n centerY = round(y + height / 2);\n\n // modeling API requires center coordinates,\n // account for that when handling shape bounds\n\n var newElement = modeling.replaceShape(\n oldElement,\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(\n {},\n attrs,\n {\n x: centerX,\n y: centerY,\n width: width,\n height: height\n }\n ),\n hints\n );\n\n eventBus.fire('replace.end', {\n element: oldElement,\n newElement,\n hints\n });\n\n return newElement;\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/replace/Replace.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/replace/ReplaceSelectionBehavior.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/replace/ReplaceSelectionBehavior.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ReplaceSelectionBehavior)\n/* harmony export */ });\nfunction ReplaceSelectionBehavior(selection, eventBus) {\n\n eventBus.on('replace.end', 500, function(event) {\n const {\n newElement,\n hints = {}\n } = event;\n\n if (hints.select === false) {\n return;\n }\n\n selection.select(newElement);\n });\n\n}\n\nReplaceSelectionBehavior.$inject = [ 'selection', 'eventBus' ];\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/replace/ReplaceSelectionBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/replace/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/replace/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Replace */ \"./node_modules/diagram-js/lib/features/replace/Replace.js\");\n/* harmony import */ var _ReplaceSelectionBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ReplaceSelectionBehavior */ \"./node_modules/diagram-js/lib/features/replace/ReplaceSelectionBehavior.js\");\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'replace', 'replaceSelectionBehavior' ],\n replaceSelectionBehavior: [ 'type', _ReplaceSelectionBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ],\n replace: [ 'type', _Replace__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/replace/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/resize/Resize.js": +/*!***************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/resize/Resize.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Resize),\n/* harmony export */ getReferencePoint: () => (/* binding */ getReferencePoint)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _ResizeUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ResizeUtil */ \"./node_modules/diagram-js/lib/features/resize/ResizeUtil.js\");\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../util/Types').Direction} Direction\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../dragging/Dragging').default} Dragging\n * @typedef {import('../modeling/Modeling').default} Modeling\n * @typedef {import('../rules/Rules').default} Rules\n */\n\nvar DEFAULT_MIN_WIDTH = 10;\n\n\n/**\n * A component that provides resizing of shapes on the canvas.\n *\n * The following components are part of shape resize:\n *\n * * adding resize handles,\n * * creating a visual during resize\n * * checking resize rules\n * * committing a change once finished\n *\n *\n * ## Customizing\n *\n * It's possible to customize the resizing behaviour by intercepting 'resize.start'\n * and providing the following parameters through the 'context':\n *\n * * minDimensions ({ width, height }): minimum shape dimensions\n *\n * * childrenBoxPadding ({ left, top, bottom, right } || number):\n * gap between the minimum bounding box and the container\n *\n * f.ex:\n *\n * ```javascript\n * eventBus.on('resize.start', 1500, function(event) {\n * var context = event.context,\n *\n * context.minDimensions = { width: 140, height: 120 };\n *\n * // Passing general padding\n * context.childrenBoxPadding = 30;\n *\n * // Passing padding to a specific side\n * context.childrenBoxPadding.left = 20;\n * });\n * ```\n *\n * @param {EventBus} eventBus\n * @param {Rules} rules\n * @param {Modeling} modeling\n * @param {Dragging} dragging\n */\nfunction Resize(eventBus, rules, modeling, dragging) {\n\n this._dragging = dragging;\n this._rules = rules;\n\n var self = this;\n\n\n /**\n * Handle resize move by specified delta.\n *\n * @param {Object} context\n * @param {Point} delta\n */\n function handleMove(context, delta) {\n\n var shape = context.shape,\n direction = context.direction,\n resizeConstraints = context.resizeConstraints,\n newBounds;\n\n context.delta = delta;\n\n newBounds = (0,_ResizeUtil__WEBPACK_IMPORTED_MODULE_0__.resizeBounds)(shape, direction, delta);\n\n // ensure constraints during resize\n context.newBounds = (0,_ResizeUtil__WEBPACK_IMPORTED_MODULE_0__.ensureConstraints)(newBounds, resizeConstraints);\n\n // update + cache executable state\n context.canExecute = self.canResize(context);\n }\n\n /**\n * Handle resize start.\n *\n * @param {Object} context\n */\n function handleStart(context) {\n\n var resizeConstraints = context.resizeConstraints,\n\n // evaluate minBounds for backwards compatibility\n minBounds = context.minBounds;\n\n if (resizeConstraints !== undefined) {\n return;\n }\n\n if (minBounds === undefined) {\n minBounds = self.computeMinResizeBox(context);\n }\n\n context.resizeConstraints = {\n min: (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(minBounds)\n };\n }\n\n /**\n * Handle resize end.\n *\n * @param {Object} context\n */\n function handleEnd(context) {\n var shape = context.shape,\n canExecute = context.canExecute,\n newBounds = context.newBounds;\n\n if (canExecute) {\n\n // ensure we have actual pixel values for new bounds\n // (important when zoom level was > 1 during move)\n newBounds = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.roundBounds)(newBounds);\n\n if (!boundsChanged(shape, newBounds)) {\n\n // no resize necessary\n return;\n }\n\n // perform the actual resize\n modeling.resizeShape(shape, newBounds);\n }\n }\n\n\n eventBus.on('resize.start', function(event) {\n handleStart(event.context);\n });\n\n eventBus.on('resize.move', function(event) {\n var delta = {\n x: event.dx,\n y: event.dy\n };\n\n handleMove(event.context, delta);\n });\n\n eventBus.on('resize.end', function(event) {\n handleEnd(event.context);\n });\n\n}\n\n\nResize.prototype.canResize = function(context) {\n var rules = this._rules;\n\n var ctx = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.pick)(context, [ 'newBounds', 'shape', 'delta', 'direction' ]);\n\n return rules.allowed('shape.resize', ctx);\n};\n\n/**\n * Activate a resize operation.\n *\n * You may specify additional contextual information and must specify a\n * resize direction during activation of the resize event.\n *\n * @param {MouseEvent|TouchEvent} event\n * @param {Shape} shape\n * @param {Object|Direction} contextOrDirection\n */\nResize.prototype.activate = function(event, shape, contextOrDirection) {\n var dragging = this._dragging,\n context,\n direction;\n\n if (typeof contextOrDirection === 'string') {\n contextOrDirection = {\n direction: contextOrDirection\n };\n }\n\n context = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({ shape: shape }, contextOrDirection);\n\n direction = context.direction;\n\n if (!direction) {\n throw new Error('must provide a direction (n|w|s|e|nw|se|ne|sw)');\n }\n\n dragging.init(event, getReferencePoint(shape, direction), 'resize', {\n autoActivate: true,\n cursor: getCursor(direction),\n data: {\n shape: shape,\n context: context\n }\n });\n};\n\nResize.prototype.computeMinResizeBox = function(context) {\n var shape = context.shape,\n direction = context.direction,\n minDimensions,\n childrenBounds;\n\n minDimensions = context.minDimensions || {\n width: DEFAULT_MIN_WIDTH,\n height: DEFAULT_MIN_WIDTH\n };\n\n // get children bounds\n childrenBounds = (0,_ResizeUtil__WEBPACK_IMPORTED_MODULE_0__.computeChildrenBBox)(shape, context.childrenBoxPadding);\n\n // get correct minimum bounds from given resize direction\n // basically ensures that the minBounds is max(childrenBounds, minDimensions)\n return (0,_ResizeUtil__WEBPACK_IMPORTED_MODULE_0__.getMinResizeBounds)(direction, shape, minDimensions, childrenBounds);\n};\n\n\nResize.$inject = [\n 'eventBus',\n 'rules',\n 'modeling',\n 'dragging'\n];\n\n// helpers //////////\n\nfunction boundsChanged(shape, newBounds) {\n return shape.x !== newBounds.x ||\n shape.y !== newBounds.y ||\n shape.width !== newBounds.width ||\n shape.height !== newBounds.height;\n}\n\nfunction getReferencePoint(shape, direction) {\n var mid = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(shape),\n trbl = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(shape);\n\n var referencePoint = {\n x: mid.x,\n y: mid.y\n };\n\n if (direction.indexOf('n') !== -1) {\n referencePoint.y = trbl.top;\n } else if (direction.indexOf('s') !== -1) {\n referencePoint.y = trbl.bottom;\n }\n\n if (direction.indexOf('e') !== -1) {\n referencePoint.x = trbl.right;\n } else if (direction.indexOf('w') !== -1) {\n referencePoint.x = trbl.left;\n }\n\n return referencePoint;\n}\n\nfunction getCursor(direction) {\n var prefix = 'resize-';\n\n if (direction === 'n' || direction === 's') {\n return prefix + 'ns';\n } else if (direction === 'e' || direction === 'w') {\n return prefix + 'ew';\n } else if (direction === 'nw' || direction === 'se') {\n return prefix + 'nwse';\n } else {\n return prefix + 'nesw';\n }\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/resize/Resize.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/resize/ResizeHandles.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/resize/ResizeHandles.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ResizeHandles)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n/* harmony import */ var _util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/SvgTransformUtil */ \"./node_modules/diagram-js/lib/util/SvgTransformUtil.js\");\n/* harmony import */ var _Resize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Resize */ \"./node_modules/diagram-js/lib/features/resize/Resize.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../resize/Resize').default} Resize\n * @typedef {import('../selection/Selection').default} Selection\n */\n\nvar HANDLE_OFFSET = -6,\n HANDLE_SIZE = 8,\n HANDLE_HIT_SIZE = 20;\n\nvar CLS_RESIZER = 'djs-resizer';\n\nvar directions = [ 'n', 'w', 's', 'e', 'nw', 'ne', 'se', 'sw' ];\n\n\n/**\n * This component is responsible for adding resize handles.\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {Selection} selection\n * @param {Resize} resize\n */\nfunction ResizeHandles(eventBus, canvas, selection, resize) {\n\n this._resize = resize;\n this._canvas = canvas;\n\n var self = this;\n\n eventBus.on('selection.changed', function(e) {\n var newSelection = e.newSelection;\n\n // remove old selection markers\n self.removeResizers();\n\n // add new selection markers ONLY if single selection\n if (newSelection.length === 1) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(newSelection, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(self.addResizer, self));\n }\n });\n\n eventBus.on('shape.changed', function(e) {\n var shape = e.element;\n\n if (selection.isSelected(shape)) {\n self.removeResizers();\n\n self.addResizer(shape);\n }\n });\n}\n\n\nResizeHandles.prototype.makeDraggable = function(element, gfx, direction) {\n var resize = this._resize;\n\n function startResize(event) {\n\n // only trigger on left mouse button\n if ((0,_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.isPrimaryButton)(event)) {\n resize.activate(event, element, direction);\n }\n }\n\n min_dom__WEBPACK_IMPORTED_MODULE_2__.event.bind(gfx, 'mousedown', startResize);\n min_dom__WEBPACK_IMPORTED_MODULE_2__.event.bind(gfx, 'touchstart', startResize);\n};\n\n\nResizeHandles.prototype._createResizer = function(element, x, y, direction) {\n var resizersParent = this._getResizersParent();\n\n var offset = getHandleOffset(direction);\n\n var group = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.create)('g');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.classes)(group).add(CLS_RESIZER);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.classes)(group).add(CLS_RESIZER + '-' + element.id);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.classes)(group).add(CLS_RESIZER + '-' + direction);\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.append)(resizersParent, group);\n\n var visual = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.create)('rect');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.attr)(visual, {\n x: -HANDLE_SIZE / 2 + offset.x,\n y: -HANDLE_SIZE / 2 + offset.y,\n width: HANDLE_SIZE,\n height: HANDLE_SIZE\n });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.classes)(visual).add(CLS_RESIZER + '-visual');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.append)(group, visual);\n\n var hit = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.create)('rect');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.attr)(hit, {\n x: -HANDLE_HIT_SIZE / 2 + offset.x,\n y: -HANDLE_HIT_SIZE / 2 + offset.y,\n width: HANDLE_HIT_SIZE,\n height: HANDLE_HIT_SIZE\n });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.classes)(hit).add(CLS_RESIZER + '-hit');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.append)(group, hit);\n\n (0,_util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_4__.transform)(group, x, y);\n\n return group;\n};\n\nResizeHandles.prototype.createResizer = function(element, direction) {\n var point = (0,_Resize__WEBPACK_IMPORTED_MODULE_5__.getReferencePoint)(element, direction);\n\n var resizer = this._createResizer(element, point.x, point.y, direction);\n\n this.makeDraggable(element, resizer, direction);\n};\n\n// resize handles implementation ///////////////////////////////\n\n/**\n * Add resizers for a given element.\n *\n * @param {Element} element\n */\nResizeHandles.prototype.addResizer = function(element) {\n var self = this;\n\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_6__.isConnection)(element) || !this._resize.canResize({ shape: element })) {\n return;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(directions, function(direction) {\n self.createResizer(element, direction);\n });\n};\n\n/**\n * Remove all resizers\n */\nResizeHandles.prototype.removeResizers = function() {\n var resizersParent = this._getResizersParent();\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_3__.clear)(resizersParent);\n};\n\nResizeHandles.prototype._getResizersParent = function() {\n return this._canvas.getLayer('resizers');\n};\n\nResizeHandles.$inject = [\n 'eventBus',\n 'canvas',\n 'selection',\n 'resize'\n];\n\n// helpers //////////\n\nfunction getHandleOffset(direction) {\n var offset = {\n x: 0,\n y: 0\n };\n\n if (direction.indexOf('e') !== -1) {\n offset.x = -HANDLE_OFFSET;\n } else if (direction.indexOf('w') !== -1) {\n offset.x = HANDLE_OFFSET;\n }\n\n if (direction.indexOf('s') !== -1) {\n offset.y = -HANDLE_OFFSET;\n } else if (direction.indexOf('n') !== -1) {\n offset.y = HANDLE_OFFSET;\n }\n\n return offset;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/resize/ResizeHandles.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/resize/ResizePreview.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/resize/ResizePreview.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ResizePreview)\n/* harmony export */ });\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\nvar MARKER_RESIZING = 'djs-resizing',\n MARKER_RESIZE_NOT_OK = 'resize-not-ok';\n\nvar LOW_PRIORITY = 500;\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../preview-support/PreviewSupport').default} PreviewSupport\n */\n\n/**\n * Provides previews for resizing shapes when resizing.\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n * @param {PreviewSupport} previewSupport\n */\nfunction ResizePreview(eventBus, canvas, previewSupport) {\n\n /**\n * Update resizer frame.\n *\n * @param {Object} context\n */\n function updateFrame(context) {\n\n var shape = context.shape,\n bounds = context.newBounds,\n frame = context.frame;\n\n if (!frame) {\n frame = context.frame = previewSupport.addFrame(shape, canvas.getActiveLayer());\n\n canvas.addMarker(shape, MARKER_RESIZING);\n }\n\n if (bounds.width > 5) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(frame, { x: bounds.x, width: bounds.width });\n }\n\n if (bounds.height > 5) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.attr)(frame, { y: bounds.y, height: bounds.height });\n }\n\n if (context.canExecute) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.classes)(frame).remove(MARKER_RESIZE_NOT_OK);\n } else {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.classes)(frame).add(MARKER_RESIZE_NOT_OK);\n }\n }\n\n /**\n * Remove resizer frame.\n *\n * @param {Object} context\n */\n function removeFrame(context) {\n var shape = context.shape,\n frame = context.frame;\n\n if (frame) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.remove)(context.frame);\n }\n\n canvas.removeMarker(shape, MARKER_RESIZING);\n }\n\n // add and update previews\n eventBus.on('resize.move', LOW_PRIORITY, function(event) {\n updateFrame(event.context);\n });\n\n // remove previews\n eventBus.on('resize.cleanup', function(event) {\n removeFrame(event.context);\n });\n\n}\n\nResizePreview.$inject = [\n 'eventBus',\n 'canvas',\n 'previewSupport'\n];\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/resize/ResizePreview.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/resize/ResizeUtil.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/resize/ResizeUtil.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addPadding: () => (/* binding */ addPadding),\n/* harmony export */ computeChildrenBBox: () => (/* binding */ computeChildrenBBox),\n/* harmony export */ ensureConstraints: () => (/* binding */ ensureConstraints),\n/* harmony export */ getMinResizeBounds: () => (/* binding */ getMinResizeBounds),\n/* harmony export */ reattachPoint: () => (/* binding */ reattachPoint),\n/* harmony export */ resizeBounds: () => (/* binding */ resizeBounds),\n/* harmony export */ resizeTRBL: () => (/* binding */ resizeTRBL),\n/* harmony export */ substractTRBL: () => (/* binding */ substractTRBL)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n\n\nvar max = Math.max,\n min = Math.min;\n\nvar DEFAULT_CHILD_BOX_PADDING = 20;\n\n\n\n\n\n/**\n * @typedef {import('../../core/Types').ElementLike} Element\n * @typedef {import('../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../util/Types').Direction} Direction\n * @typedef {import('../../util/Types').Point} Point\n * @typedef {import('../../util/Types').Rect} Rect\n * @typedef {import('../../util/Types').RectTRBL} RectTRBL\n */\n\n/**\n * Substract a TRBL from another\n *\n * @param {RectTRBL} trblA\n * @param {RectTRBL} trblB\n *\n * @return {RectTRBL}\n */\nfunction substractTRBL(trblA, trblB) {\n return {\n top: trblA.top - trblB.top,\n right: trblA.right - trblB.right,\n bottom: trblA.bottom - trblB.bottom,\n left: trblA.left - trblB.left\n };\n}\n\n/**\n * Resize the given bounds by the specified delta from a given anchor point.\n *\n * @param {Rect} bounds the bounding box that should be resized\n * @param {Direction} direction in which the element is resized (nw, ne, se, sw)\n * @param {Point} delta of the resize operation\n *\n * @return {Rect} resized bounding box\n */\nfunction resizeBounds(bounds, direction, delta) {\n var dx = delta.x,\n dy = delta.y;\n\n var newBounds = {\n x: bounds.x,\n y: bounds.y,\n width: bounds.width,\n height: bounds.height\n };\n\n if (direction.indexOf('n') !== -1) {\n newBounds.y = bounds.y + dy;\n newBounds.height = bounds.height - dy;\n } else if (direction.indexOf('s') !== -1) {\n newBounds.height = bounds.height + dy;\n }\n\n if (direction.indexOf('e') !== -1) {\n newBounds.width = bounds.width + dx;\n } else if (direction.indexOf('w') !== -1) {\n newBounds.x = bounds.x + dx;\n newBounds.width = bounds.width - dx;\n }\n\n return newBounds;\n}\n\n\n/**\n * Resize the given bounds by applying the passed\n * { top, right, bottom, left } delta.\n *\n * @param {Rect} bounds\n * @param {RectTRBL} resize\n *\n * @return {Rect}\n */\nfunction resizeTRBL(bounds, resize) {\n return {\n x: bounds.x + (resize.left || 0),\n y: bounds.y + (resize.top || 0),\n width: bounds.width - (resize.left || 0) + (resize.right || 0),\n height: bounds.height - (resize.top || 0) + (resize.bottom || 0)\n };\n}\n\n\nfunction reattachPoint(bounds, newBounds, point) {\n\n var sx = bounds.width / newBounds.width,\n sy = bounds.height / newBounds.height;\n\n return {\n x: Math.round((newBounds.x + newBounds.width / 2)) - Math.floor(((bounds.x + bounds.width / 2) - point.x) / sx),\n y: Math.round((newBounds.y + newBounds.height / 2)) - Math.floor(((bounds.y + bounds.height / 2) - point.y) / sy)\n };\n}\n\n\nfunction applyConstraints(attr, trbl, resizeConstraints) {\n\n var value = trbl[attr],\n minValue = resizeConstraints.min && resizeConstraints.min[attr],\n maxValue = resizeConstraints.max && resizeConstraints.max[attr];\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(minValue)) {\n value = (/top|left/.test(attr) ? min : max)(value, minValue);\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(maxValue)) {\n value = (/top|left/.test(attr) ? max : min)(value, maxValue);\n }\n\n return value;\n}\n\nfunction ensureConstraints(currentBounds, resizeConstraints) {\n\n if (!resizeConstraints) {\n return currentBounds;\n }\n\n var currentTrbl = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(currentBounds);\n\n return (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asBounds)({\n top: applyConstraints('top', currentTrbl, resizeConstraints),\n right: applyConstraints('right', currentTrbl, resizeConstraints),\n bottom: applyConstraints('bottom', currentTrbl, resizeConstraints),\n left: applyConstraints('left', currentTrbl, resizeConstraints)\n });\n}\n\n\nfunction getMinResizeBounds(direction, currentBounds, minDimensions, childrenBounds) {\n\n var currentBox = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(currentBounds);\n\n var minBox = {\n top: /n/.test(direction) ? currentBox.bottom - minDimensions.height : currentBox.top,\n left: /w/.test(direction) ? currentBox.right - minDimensions.width : currentBox.left,\n bottom: /s/.test(direction) ? currentBox.top + minDimensions.height : currentBox.bottom,\n right: /e/.test(direction) ? currentBox.left + minDimensions.width : currentBox.right\n };\n\n var childrenBox = childrenBounds ? (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(childrenBounds) : minBox;\n\n var combinedBox = {\n top: min(minBox.top, childrenBox.top),\n left: min(minBox.left, childrenBox.left),\n bottom: max(minBox.bottom, childrenBox.bottom),\n right: max(minBox.right, childrenBox.right)\n };\n\n return (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asBounds)(combinedBox);\n}\n\nfunction asPadding(mayBePadding, defaultValue) {\n if (typeof mayBePadding !== 'undefined') {\n return mayBePadding;\n } else {\n return DEFAULT_CHILD_BOX_PADDING;\n }\n}\n\nfunction addPadding(bbox, padding) {\n var left, right, top, bottom;\n\n if (typeof padding === 'object') {\n left = asPadding(padding.left);\n right = asPadding(padding.right);\n top = asPadding(padding.top);\n bottom = asPadding(padding.bottom);\n } else {\n left = right = top = bottom = asPadding(padding);\n }\n\n return {\n x: bbox.x - left,\n y: bbox.y - top,\n width: bbox.width + left + right,\n height: bbox.height + top + bottom\n };\n}\n\n\n/**\n * Is the given element part of the resize\n * targets min boundary box?\n *\n * This is the default implementation which excludes\n * connections and labels.\n *\n * @param {Element} element\n */\nfunction isBBoxChild(element) {\n\n // exclude connections\n if (element.waypoints) {\n return false;\n }\n\n // exclude labels\n if (element.type === 'label') {\n return false;\n }\n\n return true;\n}\n\n/**\n * Return children bounding computed from a shapes children\n * or a list of prefiltered children.\n *\n * @param {Shape|Shape[]} shapeOrChildren\n * @param {RectTRBL|number} padding\n *\n * @return {Rect}\n */\nfunction computeChildrenBBox(shapeOrChildren, padding) {\n\n var elements;\n\n // compute based on shape\n if (shapeOrChildren.length === undefined) {\n\n // grab all the children that are part of the\n // parents children box\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.filter)(shapeOrChildren.children, isBBoxChild);\n\n } else {\n elements = shapeOrChildren;\n }\n\n if (elements.length) {\n return addPadding((0,_util_Elements__WEBPACK_IMPORTED_MODULE_2__.getBBox)(elements), padding);\n }\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/resize/ResizeUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/resize/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/resize/index.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rules */ \"./node_modules/diagram-js/lib/features/rules/index.js\");\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dragging */ \"./node_modules/diagram-js/lib/features/dragging/index.js\");\n/* harmony import */ var _preview_support__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../preview-support */ \"./node_modules/diagram-js/lib/features/preview-support/index.js\");\n/* harmony import */ var _Resize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Resize */ \"./node_modules/diagram-js/lib/features/resize/Resize.js\");\n/* harmony import */ var _ResizePreview__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ResizePreview */ \"./node_modules/diagram-js/lib/features/resize/ResizePreview.js\");\n/* harmony import */ var _ResizeHandles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ResizeHandles */ \"./node_modules/diagram-js/lib/features/resize/ResizeHandles.js\");\n\n\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _rules__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _dragging__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _preview_support__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n ],\n __init__: [\n 'resize',\n 'resizePreview',\n 'resizeHandles'\n ],\n resize: [ 'type', _Resize__WEBPACK_IMPORTED_MODULE_3__[\"default\"] ],\n resizePreview: [ 'type', _ResizePreview__WEBPACK_IMPORTED_MODULE_4__[\"default\"] ],\n resizeHandles: [ 'type', _ResizeHandles__WEBPACK_IMPORTED_MODULE_5__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/resize/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/rules/RuleProvider.js": +/*!********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/rules/RuleProvider.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ RuleProvider)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var _command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n\n\n\n\n/**\n * @typedef {import('../../core/EventBus').default} EventBus\n */\n\n/**\n * A basic provider that may be extended to implement modeling rules.\n *\n * Extensions should implement the init method to actually add their custom\n * modeling checks. Checks may be added via the #addRule(action, fn) method.\n *\n * @class\n *\n * @param {EventBus} eventBus\n */\nfunction RuleProvider(eventBus) {\n _command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, eventBus);\n\n this.init();\n}\n\nRuleProvider.$inject = [ 'eventBus' ];\n\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(RuleProvider, _command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n/**\n * Adds a modeling rule for the given action, implemented through\n * a callback function.\n *\n * The callback receives a modeling specific action context\n * to perform its check. It must return `false` to disallow the\n * action from happening or `true` to allow the action. Usually returing\n * `null` denotes that a particular interaction shall be ignored.\n * By returning nothing or `undefined` you pass evaluation to lower\n * priority rules.\n *\n * @example\n *\n * ```javascript\n * ResizableRules.prototype.init = function() {\n *\n * \\/**\n * * Return `true`, `false` or nothing to denote\n * * _allowed_, _not allowed_ and _continue evaluating_.\n * *\\/\n * this.addRule('shape.resize', function(context) {\n *\n * var shape = context.shape;\n *\n * if (!context.newBounds) {\n * // check general resizability\n * if (!shape.resizable) {\n * return false;\n * }\n *\n * // not returning anything (read: undefined)\n * // will continue the evaluation of other rules\n * // (with lower priority)\n * return;\n * } else {\n * // element must have minimum size of 10*10 points\n * return context.newBounds.width > 10 && context.newBounds.height > 10;\n * }\n * });\n * };\n * ```\n *\n * @param {string|string[]} actions the identifier for the modeling action to check\n * @param {number} [priority] the priority at which this rule is being applied\n * @param {(any) => any} fn the callback function that performs the actual check\n */\nRuleProvider.prototype.addRule = function(actions, priority, fn) {\n\n var self = this;\n\n if (typeof actions === 'string') {\n actions = [ actions ];\n }\n\n actions.forEach(function(action) {\n\n self.canExecute(action, priority, function(context, action, event) {\n return fn(context);\n }, true);\n });\n};\n\n/**\n * Implement this method to add new rules during provider initialization.\n */\nRuleProvider.prototype.init = function() {};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/rules/RuleProvider.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/rules/Rules.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/rules/Rules.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Rules)\n/* harmony export */ });\n/**\n * @typedef {import('didi').Injector} Injector\n */\n\n/**\n * A service that provides rules for certain diagram actions.\n *\n * The default implementation will hook into the {@link CommandStack}\n * to perform the actual rule evaluation. Make sure to provide the\n * `commandStack` service with this module if you plan to use it.\n *\n * Together with this implementation you may use the {@link import('./RuleProvider').default}\n * to implement your own rule checkers.\n *\n * This module is ment to be easily replaced, thus the tiny foot print.\n *\n * @param {Injector} injector\n */\nfunction Rules(injector) {\n this._commandStack = injector.get('commandStack', false);\n}\n\nRules.$inject = [ 'injector' ];\n\n\n/**\n * Returns whether or not a given modeling action can be executed\n * in the specified context.\n *\n * This implementation will respond with allow unless anyone\n * objects.\n *\n * @param {string} action The action to be allowed or disallowed.\n * @param {Object} [context] The context for allowing or disallowing the action.\n *\n * @return {boolean|null} Wether the action is allowed. Returns `null` if the action\n * is to be ignored.\n */\nRules.prototype.allowed = function(action, context) {\n var allowed = true;\n\n var commandStack = this._commandStack;\n\n if (commandStack) {\n allowed = commandStack.canExecute(action, context);\n }\n\n // map undefined to true, i.e. no rules\n return allowed === undefined ? true : allowed;\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/rules/Rules.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/rules/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/rules/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Rules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Rules */ \"./node_modules/diagram-js/lib/features/rules/Rules.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'rules' ],\n rules: [ 'type', _Rules__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/rules/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/scheduler/Scheduler.js": +/*!*********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/scheduler/Scheduler.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Scheduler)\n/* harmony export */ });\n/* harmony import */ var _util_IdGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/IdGenerator */ \"./node_modules/diagram-js/lib/util/IdGenerator.js\");\n\n\nconst Ids = new _util_IdGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n\n\n/**\n * @typedef { {\n * promise: Promise,\n * executionId: number\n * } } ScheduledTask\n */\n\n/**\n * A utility that allows you to schedule async tasks.\n *\n * @class\n * @constructor\n *\n * @param { import('../core/EventBus').default } eventBus\n */\nfunction Scheduler(eventBus) {\n\n /**\n * @type { Record }\n */\n this._scheduled = {};\n\n eventBus.on('diagram.destroy', () => {\n Object.keys(this._scheduled).forEach(id => {\n this.cancel(id);\n });\n });\n}\n\nScheduler.$inject = [ 'eventBus' ];\n\n/**\n * Schedule execution of a task in the next tick.\n *\n * Call with an id to ensure only the latest call will be executed.\n *\n * @template T\n\n * @param {(...args: any[]) => T} taskFn function to be executed\n * @param {string} [id] identifying the task to ensure uniqueness\n *\n * @return Promise result of the executed task\n */\nScheduler.prototype.schedule = function(taskFn, id = Ids.next()) {\n\n this.cancel(id);\n\n const newScheduled = this._schedule(taskFn, id);\n\n this._scheduled[id] = newScheduled;\n\n return newScheduled.promise;\n};\n\nScheduler.prototype._schedule = function(taskFn, id) {\n\n const {\n promise,\n resolve,\n reject\n } = defer();\n\n const executionId = requestAnimationFrame(() => {\n try {\n resolve(taskFn());\n } catch (error) {\n reject(error);\n }\n });\n\n return {\n executionId,\n promise\n };\n};\n\n/**\n * Cancel a previously scheduled task.\n *\n * @param {string} id\n */\nScheduler.prototype.cancel = function(id) {\n\n const scheduled = this._scheduled[id];\n\n if (scheduled) {\n this._cancel(scheduled);\n\n this._scheduled[id] = null;\n }\n};\n\nScheduler.prototype._cancel = function(scheduled) {\n cancelAnimationFrame(scheduled.executionId);\n};\n\n/**\n * @return { {\n * promise: Promise,\n * resolve: Function,\n * reject: Function\n * } }\n */\nfunction defer() {\n\n let resolve;\n let reject;\n\n const promise = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n\n return {\n promise,\n resolve,\n reject\n };\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/scheduler/Scheduler.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/scheduler/index.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/scheduler/index.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Scheduler */ \"./node_modules/diagram-js/lib/features/scheduler/Scheduler.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n scheduler: [ 'type', _Scheduler__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/scheduler/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/search-pad/SearchPad.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/search-pad/SearchPad.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SearchPad)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n/* harmony import */ var _util_EscapeUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/EscapeUtil */ \"./node_modules/diagram-js/lib/util/EscapeUtil.js\");\n/* harmony import */ var _keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('../overlays/Overlays').default} Overlays\n * @typedef {import('../selection/Selection').default} Selection\n * @typedef {import('../../i18n/translate/translate.js').default} Translate\n *\n * @typedef {import('../overlays/Overlays').OverlayAttrs} OverlayAttrs\n *\n * @typedef {import('../../util/Types').Dimensions} Dimensions\n *\n * @typedef {import('./SearchPadProvider').default} SearchPadProvider\n * @typedef {import('./SearchPadProvider').SearchResult} SearchResult\n * @typedef {import('./SearchPadProvider').Token} Token\n */\n\n/**\n * Provides searching infrastructure.\n *\n * @param {Canvas} canvas\n * @param {EventBus} eventBus\n * @param {Overlays} overlays\n * @param {Selection} selection\n * @param {Translate} translate\n */\nfunction SearchPad(canvas, eventBus, overlays, selection, translate) {\n this._open = false;\n this._results = [];\n this._eventMaps = [];\n\n this._canvas = canvas;\n this._eventBus = eventBus;\n this._overlays = overlays;\n this._selection = selection;\n this._translate = translate;\n\n // setup elements\n this._container = this._getBoxHtml();\n this._searchInput = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)(SearchPad.INPUT_SELECTOR, this._container);\n this._resultsContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)(SearchPad.RESULTS_CONTAINER_SELECTOR, this._container);\n\n // attach search pad\n this._canvas.getContainer().appendChild(this._container);\n\n // cleanup on destroy\n eventBus.on([ 'canvas.destroy', 'diagram.destroy' ], this.close, this);\n}\n\n\nSearchPad.$inject = [\n 'canvas',\n 'eventBus',\n 'overlays',\n 'selection',\n 'translate'\n];\n\n\n/**\n * Binds and keeps track of all event listereners\n */\nSearchPad.prototype._bindEvents = function() {\n var self = this;\n\n function listen(el, selector, type, fn) {\n self._eventMaps.push({\n el: el,\n type: type,\n listener: min_dom__WEBPACK_IMPORTED_MODULE_0__.delegate.bind(el, selector, type, fn)\n });\n }\n\n // close search on clicking anywhere outside\n listen(document, 'html', 'click', function(e) {\n self.close();\n });\n\n // stop event from propagating and closing search\n // focus on input\n listen(this._container, SearchPad.INPUT_SELECTOR, 'click', function(e) {\n e.stopPropagation();\n e.delegateTarget.focus();\n });\n\n // preselect result on hover\n listen(this._container, SearchPad.RESULT_SELECTOR, 'mouseover', function(e) {\n e.stopPropagation();\n self._scrollToNode(e.delegateTarget);\n self._preselect(e.delegateTarget);\n });\n\n // selects desired result on mouse click\n listen(this._container, SearchPad.RESULT_SELECTOR, 'click', function(e) {\n e.stopPropagation();\n self._select(e.delegateTarget);\n });\n\n // prevent cursor in input from going left and right when using up/down to\n // navigate results\n listen(this._container, SearchPad.INPUT_SELECTOR, 'keydown', function(e) {\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('ArrowUp', e)) {\n e.preventDefault();\n }\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('ArrowDown', e)) {\n e.preventDefault();\n }\n });\n\n // handle keyboard input\n listen(this._container, SearchPad.INPUT_SELECTOR, 'keyup', function(e) {\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('Escape', e)) {\n return self.close();\n }\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('Enter', e)) {\n var selected = self._getCurrentResult();\n\n return selected ? self._select(selected) : self.close();\n }\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('ArrowUp', e)) {\n return self._scrollToDirection(true);\n }\n\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)('ArrowDown', e)) {\n return self._scrollToDirection();\n }\n\n // do not search while navigating text input\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isKey)([ 'ArrowLeft', 'ArrowRight' ], e)) {\n return;\n }\n\n // anything else\n self._search(e.delegateTarget.value);\n });\n};\n\n\n/**\n * Unbinds all previously established listeners\n */\nSearchPad.prototype._unbindEvents = function() {\n this._eventMaps.forEach(function(m) {\n min_dom__WEBPACK_IMPORTED_MODULE_0__.delegate.unbind(m.el, m.type, m.listener);\n });\n};\n\n\n/**\n * Performs a search for the given pattern.\n *\n * @param {string} pattern\n */\nSearchPad.prototype._search = function(pattern) {\n var self = this;\n\n this._clearResults();\n\n // do not search on empty query\n if (!pattern || pattern === '') {\n return;\n }\n\n var searchResults = this._searchProvider.find(pattern);\n\n if (!searchResults.length) {\n return;\n }\n\n // append new results\n searchResults.forEach(function(result) {\n var id = result.element.id;\n var node = self._createResultNode(result, id);\n self._results[id] = {\n element: result.element,\n node: node\n };\n });\n\n // preselect first result\n var node = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)(SearchPad.RESULT_SELECTOR, this._resultsContainer);\n this._scrollToNode(node);\n this._preselect(node);\n};\n\n\n/**\n * Navigate to the previous/next result. Defaults to next result.\n *\n * @param {boolean} previous\n */\nSearchPad.prototype._scrollToDirection = function(previous) {\n var selected = this._getCurrentResult();\n if (!selected) {\n return;\n }\n\n var node = previous ? selected.previousElementSibling : selected.nextElementSibling;\n if (node) {\n this._scrollToNode(node);\n this._preselect(node);\n }\n};\n\n\n/**\n * Scroll to the node if it is not visible.\n *\n * @param {HTMLElement} node\n */\nSearchPad.prototype._scrollToNode = function(node) {\n if (!node || node === this._getCurrentResult()) {\n return;\n }\n\n var nodeOffset = node.offsetTop;\n var containerScroll = this._resultsContainer.scrollTop;\n\n var bottomScroll = nodeOffset - this._resultsContainer.clientHeight + node.clientHeight;\n\n if (nodeOffset < containerScroll) {\n this._resultsContainer.scrollTop = nodeOffset;\n } else if (containerScroll < bottomScroll) {\n this._resultsContainer.scrollTop = bottomScroll;\n }\n};\n\n\n/**\n * Clears all results data.\n */\nSearchPad.prototype._clearResults = function() {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.clear)(this._resultsContainer);\n\n this._results = [];\n\n this._resetOverlay();\n\n this._eventBus.fire('searchPad.cleared');\n};\n\n\n/**\n * Get currently selected result.\n *\n * @return {HTMLElement}\n */\nSearchPad.prototype._getCurrentResult = function() {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)(SearchPad.RESULT_SELECTED_SELECTOR, this._resultsContainer);\n};\n\n\n/**\n * Create result DOM element within results container\n * that corresponds to a search result.\n *\n * 'result' : one of the elements returned by Pad\n * 'id' : id attribute value to assign to the new DOM node\n * return : created DOM element\n *\n * @param {SearchResult} result\n * @param {string} id\n *\n * @return {HTMLElement}\n */\nSearchPad.prototype._createResultNode = function(result, id) {\n var node = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(SearchPad.RESULT_HTML);\n\n // create only if available\n if (result.primaryTokens.length > 0) {\n createInnerTextNode(node, result.primaryTokens, SearchPad.RESULT_PRIMARY_HTML);\n }\n\n // secondary tokens (represent element ID) are allways available\n createInnerTextNode(node, result.secondaryTokens, SearchPad.RESULT_SECONDARY_HTML);\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(node, SearchPad.RESULT_ID_ATTRIBUTE, id);\n\n this._resultsContainer.appendChild(node);\n\n return node;\n};\n\n\n/**\n * Register search element provider.\n *\n * @param {SearchPadProvider} provider\n */\nSearchPad.prototype.registerProvider = function(provider) {\n this._searchProvider = provider;\n};\n\n\n/**\n * Open search pad.\n */\nSearchPad.prototype.open = function() {\n if (!this._searchProvider) {\n throw new Error('no search provider registered');\n }\n\n if (this.isOpen()) {\n return;\n }\n\n this._bindEvents();\n\n this._open = true;\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(this._container).add('open');\n\n this._searchInput.focus();\n\n this._eventBus.fire('searchPad.opened');\n};\n\n\n/**\n * Close search pad.\n */\nSearchPad.prototype.close = function() {\n if (!this.isOpen()) {\n return;\n }\n\n this._unbindEvents();\n\n this._open = false;\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(this._container).remove('open');\n\n this._clearResults();\n\n this._searchInput.value = '';\n this._searchInput.blur();\n\n this._resetOverlay();\n\n this._eventBus.fire('searchPad.closed');\n};\n\n\n/**\n * Toggles search pad on/off.\n */\nSearchPad.prototype.toggle = function() {\n this.isOpen() ? this.close() : this.open();\n};\n\n\n/**\n * Report state of search pad.\n */\nSearchPad.prototype.isOpen = function() {\n return this._open;\n};\n\n\n/**\n * Preselect result entry.\n *\n * @param {HTMLElement} element\n */\nSearchPad.prototype._preselect = function(node) {\n var selectedNode = this._getCurrentResult();\n\n // already selected\n if (node === selectedNode) {\n return;\n }\n\n // removing preselection from current node\n if (selectedNode) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(selectedNode).remove(SearchPad.RESULT_SELECTED_CLASS);\n }\n\n var id = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(node, SearchPad.RESULT_ID_ATTRIBUTE);\n var element = this._results[id].element;\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(node).add(SearchPad.RESULT_SELECTED_CLASS);\n\n this._resetOverlay(element);\n\n this._canvas.scrollToElement(element, { top: 400 });\n\n this._selection.select(element);\n\n this._eventBus.fire('searchPad.preselected', element);\n};\n\n\n/**\n * Select result node.\n *\n * @param {HTMLElement} element\n */\nSearchPad.prototype._select = function(node) {\n var id = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.attr)(node, SearchPad.RESULT_ID_ATTRIBUTE);\n var element = this._results[id].element;\n\n this.close();\n\n this._resetOverlay();\n\n this._canvas.scrollToElement(element, { top: 400 });\n\n this._selection.select(element);\n\n this._eventBus.fire('searchPad.selected', element);\n};\n\n\n/**\n * Reset overlay removes and, optionally, set\n * overlay to a new element.\n *\n * @param {HTMLElement} element\n */\nSearchPad.prototype._resetOverlay = function(element) {\n if (this._overlayId) {\n this._overlays.remove(this._overlayId);\n }\n\n if (element) {\n var box = (0,_util_Elements__WEBPACK_IMPORTED_MODULE_2__.getBBox)(element);\n var overlay = constructOverlay(box);\n this._overlayId = this._overlays.add(element, overlay);\n }\n};\n\nSearchPad.prototype._getBoxHtml = function() {\n const box = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(SearchPad.BOX_HTML);\n const input = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)(SearchPad.INPUT_SELECTOR, box);\n\n if (input) {\n input.setAttribute('aria-label', this._translate('Search in diagram'));\n }\n\n return box;\n};\n\n\n/**\n * Construct overlay object for the given bounding box.\n *\n * @param {Dimensions} box\n *\n * @return {OverlayAttrs}\n */\nfunction constructOverlay(box) {\n\n var offset = 6;\n var w = box.width + offset * 2;\n var h = box.height + offset * 2;\n\n var styles = {\n width: w + 'px',\n height: h + 'px'\n };\n\n var html = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)('
');\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.assignStyle)(html, styles);\n\n return {\n position: {\n bottom: h - offset,\n right: w - offset\n },\n show: true,\n html: html\n };\n}\n\n\n/**\n * Creates and appends child node from result tokens and HTML template.\n *\n * @param {HTMLElement} node\n * @param {Token[]} tokens\n * @param {string} template\n */\nfunction createInnerTextNode(parentNode, tokens, template) {\n var text = createHtmlText(tokens);\n var childNode = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(template);\n childNode.innerHTML = text;\n parentNode.appendChild(childNode);\n}\n\n/**\n * Create internal HTML markup from result tokens.\n * Caters for highlighting pattern matched tokens.\n *\n * @param {Token[]} tokens\n *\n * @return {string|null}\n */\nfunction createHtmlText(tokens) {\n var htmlText = '';\n\n tokens.forEach(function(t) {\n if (t.matched) {\n htmlText += '' + (0,_util_EscapeUtil__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(t.matched) + '';\n } else {\n htmlText += (0,_util_EscapeUtil__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(t.normal);\n }\n });\n\n return htmlText !== '' ? htmlText : null;\n}\n\n\n/**\n * CONSTANTS\n */\nSearchPad.CONTAINER_SELECTOR = '.djs-search-container';\nSearchPad.INPUT_SELECTOR = '.djs-search-input input';\nSearchPad.RESULTS_CONTAINER_SELECTOR = '.djs-search-results';\nSearchPad.RESULT_SELECTOR = '.djs-search-result';\nSearchPad.RESULT_SELECTED_CLASS = 'djs-search-result-selected';\nSearchPad.RESULT_SELECTED_SELECTOR = '.' + SearchPad.RESULT_SELECTED_CLASS;\nSearchPad.RESULT_ID_ATTRIBUTE = 'data-result-id';\nSearchPad.RESULT_HIGHLIGHT_CLASS = 'djs-search-highlight';\nSearchPad.OVERLAY_CLASS = 'djs-search-overlay';\n\nSearchPad.BOX_HTML =\n '
' +\n '
' +\n '' +\n '
' +\n '
' +\n '
';\n\nSearchPad.RESULT_HTML =\n '
';\n\nSearchPad.RESULT_PRIMARY_HTML =\n '
';\n\nSearchPad.RESULT_SECONDARY_HTML =\n '

';\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/search-pad/SearchPad.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/search-pad/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/search-pad/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _overlays__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../overlays */ \"./node_modules/diagram-js/lib/features/overlays/index.js\");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _i18n_translate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../i18n/translate/index.js */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var _SearchPad__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SearchPad */ \"./node_modules/diagram-js/lib/features/search-pad/SearchPad.js\");\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _i18n_translate_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _overlays__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _selection__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n ],\n searchPad: [ 'type', _SearchPad__WEBPACK_IMPORTED_MODULE_3__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/search-pad/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/selection/Selection.js": +/*!*********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/selection/Selection.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Selection)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n */\n\n/**\n * A service that offers the current selection in a diagram.\n * Offers the api to control the selection, too.\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n */\nfunction Selection(eventBus, canvas) {\n\n this._eventBus = eventBus;\n this._canvas = canvas;\n\n /**\n * @type {Object[]}\n */\n this._selectedElements = [];\n\n var self = this;\n\n eventBus.on([ 'shape.remove', 'connection.remove' ], function(e) {\n var element = e.element;\n self.deselect(element);\n });\n\n eventBus.on([ 'diagram.clear', 'root.set' ], function(e) {\n self.select(null);\n });\n}\n\nSelection.$inject = [ 'eventBus', 'canvas' ];\n\n/**\n * Deselect an element.\n *\n * @param {Object} element The element to deselect.\n */\nSelection.prototype.deselect = function(element) {\n var selectedElements = this._selectedElements;\n\n var idx = selectedElements.indexOf(element);\n\n if (idx !== -1) {\n var oldSelection = selectedElements.slice();\n\n selectedElements.splice(idx, 1);\n\n this._eventBus.fire('selection.changed', { oldSelection: oldSelection, newSelection: selectedElements });\n }\n};\n\n/**\n * Get the selected elements.\n *\n * @return {Object[]} The selected elements.\n */\nSelection.prototype.get = function() {\n return this._selectedElements;\n};\n\n/**\n * Check whether an element is selected.\n *\n * @param {Object} element The element.\n *\n * @return {boolean} Whether the element is selected.\n */\nSelection.prototype.isSelected = function(element) {\n return this._selectedElements.indexOf(element) !== -1;\n};\n\n\n/**\n * Select one or many elements.\n *\n * @param {Object|Object[]} elements The element(s) to select.\n * @param {boolean} [add] Whether to add the element(s) to the selected elements.\n * Defaults to `false`.\n */\nSelection.prototype.select = function(elements, add) {\n var selectedElements = this._selectedElements,\n oldSelection = selectedElements.slice();\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(elements)) {\n elements = elements ? [ elements ] : [];\n }\n\n var canvas = this._canvas;\n\n var rootElement = canvas.getRootElement();\n\n elements = elements.filter(function(element) {\n var elementRoot = canvas.findRoot(element);\n\n return rootElement === elementRoot;\n });\n\n // selection may be cleared by passing an empty array or null\n // to the method\n if (add) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n if (selectedElements.indexOf(element) !== -1) {\n\n // already selected\n return;\n } else {\n selectedElements.push(element);\n }\n });\n } else {\n this._selectedElements = selectedElements = elements.slice();\n }\n\n this._eventBus.fire('selection.changed', { oldSelection: oldSelection, newSelection: selectedElements });\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/selection/Selection.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/selection/SelectionBehavior.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/selection/SelectionBehavior.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SelectionBehavior)\n/* harmony export */ });\n/* harmony import */ var _util_Mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('./Selection').default} Selection\n */\n\n/**\n * @param {EventBus} eventBus\n * @param {Selection} selection\n * @param {Canvas} canvas\n * @param {ElementRegistry} elementRegistry\n */\nfunction SelectionBehavior(eventBus, selection, canvas, elementRegistry) {\n\n // Select elements on create\n eventBus.on('create.end', 500, function(event) {\n var context = event.context,\n canExecute = context.canExecute,\n elements = context.elements,\n hints = context.hints || {},\n autoSelect = hints.autoSelect;\n\n if (canExecute) {\n if (autoSelect === false) {\n\n // Select no elements\n return;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(autoSelect)) {\n selection.select(autoSelect);\n } else {\n\n // Select all elements by default\n selection.select(elements.filter(isShown));\n }\n }\n });\n\n // Select connection targets on connect\n eventBus.on('connect.end', 500, function(event) {\n var context = event.context,\n connection = context.connection;\n\n if (connection) {\n selection.select(connection);\n }\n });\n\n // Select shapes on move\n eventBus.on('shape.move.end', 500, function(event) {\n var previousSelection = event.previousSelection || [];\n\n var shape = elementRegistry.get(event.context.shape.id);\n\n // Always select main shape on move\n var isSelected = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(previousSelection, function(selectedShape) {\n return shape.id === selectedShape.id;\n });\n\n if (!isSelected) {\n selection.select(shape);\n }\n });\n\n // Select elements on click\n eventBus.on('element.click', function(event) {\n\n if (!(0,_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.isPrimaryButton)(event)) {\n return;\n }\n\n var element = event.element;\n\n if (element === canvas.getRootElement()) {\n element = null;\n }\n\n var isSelected = selection.isSelected(element),\n isMultiSelect = selection.get().length > 1;\n\n // Add to selection if SHIFT pressed\n var add = (0,_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.hasSecondaryModifier)(event);\n\n if (isSelected && isMultiSelect) {\n if (add) {\n\n // Deselect element\n return selection.deselect(element);\n } else {\n\n // Select element only\n return selection.select(element);\n }\n } else if (!isSelected) {\n\n // Select element\n selection.select(element, add);\n } else {\n\n // Deselect element\n selection.deselect(element);\n }\n });\n}\n\nSelectionBehavior.$inject = [\n 'eventBus',\n 'selection',\n 'canvas',\n 'elementRegistry'\n];\n\n\nfunction isShown(element) {\n return !element.hidden;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/selection/SelectionBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/selection/SelectionVisuals.js": +/*!****************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/selection/SelectionVisuals.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SelectionVisuals)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var _util_Elements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/Elements */ \"./node_modules/diagram-js/lib/util/Elements.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n * @typedef {import('./Selection').default} Selection\n */\n\nvar MARKER_HOVER = 'hover',\n MARKER_SELECTED = 'selected';\n\nvar SELECTION_OUTLINE_PADDING = 6;\n\n\n/**\n * A plugin that adds a visible selection UI to shapes and connections\n * by appending the hover and selected classes to them.\n *\n * @class\n *\n * Makes elements selectable, too.\n *\n * @param {Canvas} canvas\n * @param {EventBus} eventBus\n * @param {Selection} selection\n */\nfunction SelectionVisuals(canvas, eventBus, selection) {\n this._canvas = canvas;\n\n var self = this;\n\n this._multiSelectionBox = null;\n\n function addMarker(e, cls) {\n canvas.addMarker(e, cls);\n }\n\n function removeMarker(e, cls) {\n canvas.removeMarker(e, cls);\n }\n\n eventBus.on('element.hover', function(event) {\n addMarker(event.element, MARKER_HOVER);\n });\n\n eventBus.on('element.out', function(event) {\n removeMarker(event.element, MARKER_HOVER);\n });\n\n eventBus.on('selection.changed', function(event) {\n\n function deselect(s) {\n removeMarker(s, MARKER_SELECTED);\n }\n\n function select(s) {\n addMarker(s, MARKER_SELECTED);\n }\n\n var oldSelection = event.oldSelection,\n newSelection = event.newSelection;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(oldSelection, function(e) {\n if (newSelection.indexOf(e) === -1) {\n deselect(e);\n }\n });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(newSelection, function(e) {\n if (oldSelection.indexOf(e) === -1) {\n select(e);\n }\n });\n\n self._updateSelectionOutline(newSelection);\n });\n\n\n eventBus.on('element.changed', function(event) {\n if (selection.isSelected(event.element)) {\n self._updateSelectionOutline(selection.get());\n }\n });\n}\n\nSelectionVisuals.$inject = [\n 'canvas',\n 'eventBus',\n 'selection'\n];\n\nSelectionVisuals.prototype._updateSelectionOutline = function(selection) {\n var layer = this._canvas.getLayer('selectionOutline');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.clear)(layer);\n\n var enabled = selection.length > 1;\n\n var container = this._canvas.getContainer();\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.classes)(container)[enabled ? 'add' : 'remove']('djs-multi-select');\n\n if (!enabled) {\n return;\n }\n\n var bBox = addSelectionOutlinePadding((0,_util_Elements__WEBPACK_IMPORTED_MODULE_2__.getBBox)(selection));\n\n var rect = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('rect');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(rect, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({\n rx: 3\n }, bBox));\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.classes)(rect).add('djs-selection-outline');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(layer, rect);\n};\n\n// helpers //////////\n\nfunction addSelectionOutlinePadding(bBox) {\n return {\n x: bBox.x - SELECTION_OUTLINE_PADDING,\n y: bBox.y - SELECTION_OUTLINE_PADDING,\n width: bBox.width + SELECTION_OUTLINE_PADDING * 2,\n height: bBox.height + SELECTION_OUTLINE_PADDING * 2\n };\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/selection/SelectionVisuals.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/selection/index.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/selection/index.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _interaction_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interaction-events */ \"./node_modules/diagram-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var _outline__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../outline */ \"./node_modules/diagram-js/lib/features/outline/index.js\");\n/* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Selection */ \"./node_modules/diagram-js/lib/features/selection/Selection.js\");\n/* harmony import */ var _SelectionVisuals__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SelectionVisuals */ \"./node_modules/diagram-js/lib/features/selection/SelectionVisuals.js\");\n/* harmony import */ var _SelectionBehavior__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SelectionBehavior */ \"./node_modules/diagram-js/lib/features/selection/SelectionBehavior.js\");\n\n\n\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'selectionVisuals', 'selectionBehavior' ],\n __depends__: [\n _interaction_events__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n _outline__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n ],\n selection: [ 'type', _Selection__WEBPACK_IMPORTED_MODULE_2__[\"default\"] ],\n selectionVisuals: [ 'type', _SelectionVisuals__WEBPACK_IMPORTED_MODULE_3__[\"default\"] ],\n selectionBehavior: [ 'type', _SelectionBehavior__WEBPACK_IMPORTED_MODULE_4__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/selection/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/snapping/CreateMoveSnapping.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/snapping/CreateMoveSnapping.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateMoveSnapping)\n/* harmony export */ });\n/* harmony import */ var _SnapContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SnapContext */ \"./node_modules/diagram-js/lib/features/snapping/SnapContext.js\");\n/* harmony import */ var _SnapUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SnapUtil */ \"./node_modules/diagram-js/lib/features/snapping/SnapUtil.js\");\n/* harmony import */ var _keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../../core/ElementRegistry').default} ElementRegistry\r\n * @typedef {import('../../core/EventBus').default} EventBus\r\n * @typedef {import('./Snapping').default} Snapping\r\n */\r\n\r\nvar HIGHER_PRIORITY = 1250;\r\n\r\n\r\n/**\r\n * Snap during create and move.\r\n *\r\n * @param {ElementRegistry} elementRegistry\r\n * @param {EventBus} eventBus\r\n * @param {Snapping} snapping\r\n */\r\nfunction CreateMoveSnapping(elementRegistry, eventBus, snapping) {\r\n var self = this;\r\n\r\n this._elementRegistry = elementRegistry;\r\n\r\n eventBus.on([\r\n 'create.start',\r\n 'shape.move.start'\r\n ], function(event) {\r\n self.initSnap(event);\r\n });\r\n\r\n eventBus.on([\r\n 'create.move',\r\n 'create.end',\r\n 'shape.move.move',\r\n 'shape.move.end'\r\n ], HIGHER_PRIORITY, function(event) {\r\n var context = event.context,\r\n shape = context.shape,\r\n snapContext = context.snapContext,\r\n target = context.target;\r\n\r\n if (event.originalEvent && (0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(event.originalEvent)) {\r\n return;\r\n }\r\n\r\n if ((0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.isSnapped)(event) || !target) {\r\n return;\r\n }\r\n\r\n var snapPoints = snapContext.pointsForTarget(target);\r\n\r\n if (!snapPoints.initialized) {\r\n snapPoints = self.addSnapTargetPoints(snapPoints, shape, target);\r\n\r\n snapPoints.initialized = true;\r\n }\r\n\r\n snapping.snap(event, snapPoints);\r\n });\r\n\r\n eventBus.on([\r\n 'create.cleanup',\r\n 'shape.move.cleanup'\r\n ], function() {\r\n snapping.hide();\r\n });\r\n}\r\n\r\nCreateMoveSnapping.$inject = [\r\n 'elementRegistry',\r\n 'eventBus',\r\n 'snapping'\r\n];\r\n\r\nCreateMoveSnapping.prototype.initSnap = function(event) {\r\n var elementRegistry = this._elementRegistry;\r\n\r\n var context = event.context,\r\n shape = context.shape,\r\n snapContext = context.snapContext;\r\n\r\n if (!snapContext) {\r\n snapContext = context.snapContext = new _SnapContext__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\r\n }\r\n\r\n var shapeMid;\r\n\r\n if (elementRegistry.get(shape.id)) {\r\n\r\n // move\r\n shapeMid = (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.mid)(shape, event);\r\n } else {\r\n\r\n // create\r\n shapeMid = {\r\n x: event.x + (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.mid)(shape).x,\r\n y: event.y + (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.mid)(shape).y\r\n };\r\n }\r\n\r\n var shapeTopLeft = {\r\n x: shapeMid.x - shape.width / 2,\r\n y: shapeMid.y - shape.height / 2\r\n },\r\n shapeBottomRight = {\r\n x: shapeMid.x + shape.width / 2,\r\n y: shapeMid.y + shape.height / 2\r\n };\r\n\r\n snapContext.setSnapOrigin('mid', {\r\n x: shapeMid.x - event.x,\r\n y: shapeMid.y - event.y\r\n });\r\n\r\n // snap labels to mid only\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__.isLabel)(shape)) {\r\n return snapContext;\r\n }\r\n\r\n snapContext.setSnapOrigin('top-left', {\r\n x: shapeTopLeft.x - event.x,\r\n y: shapeTopLeft.y - event.y\r\n });\r\n\r\n snapContext.setSnapOrigin('bottom-right', {\r\n x: shapeBottomRight.x - event.x,\r\n y: shapeBottomRight.y - event.y\r\n });\r\n\r\n return snapContext;\r\n};\r\n\r\nCreateMoveSnapping.prototype.addSnapTargetPoints = function(snapPoints, shape, target) {\r\n var snapTargets = this.getSnapTargets(shape, target);\r\n\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(snapTargets, function(snapTarget) {\r\n\r\n // handle labels\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__.isLabel)(snapTarget)) {\r\n\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__.isLabel)(shape)) {\r\n snapPoints.add('mid', (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.mid)(snapTarget));\r\n }\r\n\r\n return;\r\n }\r\n\r\n // handle connections\r\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_3__.isConnection)(snapTarget)) {\r\n\r\n // ignore single segment connections\r\n if (snapTarget.waypoints.length < 3) {\r\n return;\r\n }\r\n\r\n // ignore first and last waypoint\r\n var waypoints = snapTarget.waypoints.slice(1, -1);\r\n\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(waypoints, function(waypoint) {\r\n snapPoints.add('mid', waypoint);\r\n });\r\n\r\n return;\r\n }\r\n\r\n // handle shapes\r\n snapPoints.add('mid', (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.mid)(snapTarget));\r\n });\r\n\r\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_4__.isNumber)(shape.x) || !(0,min_dash__WEBPACK_IMPORTED_MODULE_4__.isNumber)(shape.y)) {\r\n return snapPoints;\r\n }\r\n\r\n // snap to original position when moving\r\n if (this._elementRegistry.get(shape.id)) {\r\n snapPoints.add('mid', (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.mid)(shape));\r\n }\r\n\r\n return snapPoints;\r\n};\r\n\r\nCreateMoveSnapping.prototype.getSnapTargets = function(shape, target) {\r\n return (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.getChildren)(target).filter(function(child) {\r\n return !isHidden(child);\r\n });\r\n};\r\n\r\n// helpers //////////\r\n\r\nfunction isHidden(element) {\r\n return !!element.hidden;\r\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/snapping/CreateMoveSnapping.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/snapping/ResizeSnapping.js": +/*!*************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/snapping/ResizeSnapping.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ResizeSnapping)\n/* harmony export */ });\n/* harmony import */ var _SnapContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SnapContext */ \"./node_modules/diagram-js/lib/features/snapping/SnapContext.js\");\n/* harmony import */ var _SnapUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SnapUtil */ \"./node_modules/diagram-js/lib/features/snapping/SnapUtil.js\");\n/* harmony import */ var _keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @typedef {import('../../core/EventBus').default} EventBus\r\n * @typedef {import('./Snapping').default} Snapping\r\n */\r\n\r\nvar HIGHER_PRIORITY = 1250;\r\n\r\n\r\n/**\r\n * Snap during resize.\r\n *\r\n * @param {EventBus} eventBus\r\n * @param {Snapping} snapping\r\n */\r\nfunction ResizeSnapping(eventBus, snapping) {\r\n var self = this;\r\n\r\n eventBus.on([ 'resize.start' ], function(event) {\r\n self.initSnap(event);\r\n });\r\n\r\n eventBus.on([\r\n 'resize.move',\r\n 'resize.end',\r\n ], HIGHER_PRIORITY, function(event) {\r\n var context = event.context,\r\n shape = context.shape,\r\n parent = shape.parent,\r\n direction = context.direction,\r\n snapContext = context.snapContext;\r\n\r\n if (event.originalEvent && (0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(event.originalEvent)) {\r\n return;\r\n }\r\n\r\n if ((0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.isSnapped)(event)) {\r\n return;\r\n }\r\n\r\n var snapPoints = snapContext.pointsForTarget(parent);\r\n\r\n if (!snapPoints.initialized) {\r\n snapPoints = self.addSnapTargetPoints(snapPoints, shape, parent, direction);\r\n\r\n snapPoints.initialized = true;\r\n }\r\n\r\n if (isHorizontal(direction)) {\r\n (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.setSnapped)(event, 'x', event.x);\r\n }\r\n\r\n if (isVertical(direction)) {\r\n (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.setSnapped)(event, 'y', event.y);\r\n }\r\n\r\n snapping.snap(event, snapPoints);\r\n });\r\n\r\n eventBus.on([ 'resize.cleanup' ], function() {\r\n snapping.hide();\r\n });\r\n}\r\n\r\nResizeSnapping.prototype.initSnap = function(event) {\r\n var context = event.context,\r\n shape = context.shape,\r\n direction = context.direction,\r\n snapContext = context.snapContext;\r\n\r\n if (!snapContext) {\r\n snapContext = context.snapContext = new _SnapContext__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\r\n }\r\n\r\n var snapOrigin = getSnapOrigin(shape, direction);\r\n\r\n snapContext.setSnapOrigin('corner', {\r\n x: snapOrigin.x - event.x,\r\n y: snapOrigin.y - event.y\r\n });\r\n\r\n return snapContext;\r\n};\r\n\r\nResizeSnapping.prototype.addSnapTargetPoints = function(snapPoints, shape, target, direction) {\r\n var snapTargets = this.getSnapTargets(shape, target);\r\n\r\n (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.forEach)(snapTargets, function(snapTarget) {\r\n snapPoints.add('corner', (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.bottomRight)(snapTarget));\r\n snapPoints.add('corner', (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.topLeft)(snapTarget));\r\n });\r\n\r\n snapPoints.add('corner', getSnapOrigin(shape, direction));\r\n\r\n return snapPoints;\r\n};\r\n\r\nResizeSnapping.$inject = [\r\n 'eventBus',\r\n 'snapping'\r\n];\r\n\r\nResizeSnapping.prototype.getSnapTargets = function(shape, target) {\r\n return (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.getChildren)(target).filter(function(child) {\r\n return !isAttached(child, shape)\r\n && !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isConnection)(child)\r\n && !isHidden(child)\r\n && !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isLabel)(child);\r\n });\r\n};\r\n\r\n// helpers //////////\r\n\r\nfunction getSnapOrigin(shape, direction) {\r\n var mid = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_5__.getMid)(shape),\r\n trbl = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_5__.asTRBL)(shape);\r\n\r\n var snapOrigin = {\r\n x: mid.x,\r\n y: mid.y\r\n };\r\n\r\n if (direction.indexOf('n') !== -1) {\r\n snapOrigin.y = trbl.top;\r\n } else if (direction.indexOf('s') !== -1) {\r\n snapOrigin.y = trbl.bottom;\r\n }\r\n\r\n if (direction.indexOf('e') !== -1) {\r\n snapOrigin.x = trbl.right;\r\n } else if (direction.indexOf('w') !== -1) {\r\n snapOrigin.x = trbl.left;\r\n }\r\n\r\n return snapOrigin;\r\n}\r\n\r\nfunction isAttached(element, host) {\r\n return element.host === host;\r\n}\r\n\r\nfunction isHidden(element) {\r\n return !!element.hidden;\r\n}\r\n\r\nfunction isHorizontal(direction) {\r\n return direction === 'n' || direction === 's';\r\n}\r\n\r\nfunction isVertical(direction) {\r\n return direction === 'e' || direction === 'w';\r\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/snapping/ResizeSnapping.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/snapping/SnapContext.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/snapping/SnapContext.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SnapPoints: () => (/* binding */ SnapPoints),\n/* harmony export */ \"default\": () => (/* binding */ SnapContext)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _SnapUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SnapUtil */ \"./node_modules/diagram-js/lib/features/snapping/SnapUtil.js\");\n\n\n\n\n/**\n * @typedef {import('../../model/Types').Element} Element\n *\n * @typedef {import('../../util/Types').Axis} Axis\n * @typedef {import('../../util/Types').DirectionTRBL} DirectionTRBL\n * @typedef {import('../../util/Types').Point} Point\n *\n * @typedef {DirectionTRBL & 'mid'} SnapLocation\n */\n\n/**\n * A snap context, containing the (possibly incomplete)\n * mappings of drop targets (to identify the snapping)\n * to computed snap points.\n */\nfunction SnapContext() {\n\n /**\n * @type {Record}\n */\n this._targets = {};\n\n /**\n * @type {Record}\n */\n this._snapOrigins = {};\n\n /**\n * @type {SnapLocation[]}\n */\n this._snapLocations = [];\n\n /**\n * @type {Record}\n */\n this._defaultSnaps = {};\n}\n\n/**\n * Get the snap origin for a given location.\n *\n * @param {SnapLocation} snapLocation\n *\n * @return {Point}\n */\nSnapContext.prototype.getSnapOrigin = function(snapLocation) {\n return this._snapOrigins[snapLocation];\n};\n\n/**\n * Set the snap origin for a given location.\n *\n * @param {SnapLocation} snapLocation\n * @param {Point} snapOrigin\n */\nSnapContext.prototype.setSnapOrigin = function(snapLocation, snapOrigin) {\n this._snapOrigins[snapLocation] = snapOrigin;\n\n if (this._snapLocations.indexOf(snapLocation) === -1) {\n this._snapLocations.push(snapLocation);\n }\n};\n\n/**\n * Add a default snap point.\n *\n * @param {SnapLocation} snapLocation\n * @param {Point} point\n */\nSnapContext.prototype.addDefaultSnap = function(snapLocation, point) {\n\n var snapValues = this._defaultSnaps[snapLocation];\n\n if (!snapValues) {\n snapValues = this._defaultSnaps[snapLocation] = [];\n }\n\n snapValues.push(point);\n};\n\n/**\n * Get the snap locations for this context.\n *\n * @return {SnapLocation[]}\n */\nSnapContext.prototype.getSnapLocations = function() {\n return this._snapLocations;\n};\n\n/**\n * Set the snap locations for this context.\n *\n * The order of locations determines precedence.\n *\n * @param {SnapLocation[]} snapLocations\n */\nSnapContext.prototype.setSnapLocations = function(snapLocations) {\n this._snapLocations = snapLocations;\n};\n\n/**\n * Get snap points for the given target.\n *\n * @param {Element|string} target\n *\n * @return {SnapPoints}\n */\nSnapContext.prototype.pointsForTarget = function(target) {\n\n var targetId = target.id || target;\n\n var snapPoints = this._targets[targetId];\n\n if (!snapPoints) {\n snapPoints = this._targets[targetId] = new SnapPoints();\n snapPoints.initDefaults(this._defaultSnaps);\n }\n\n return snapPoints;\n};\n\n\n/**\n * Add points to snap to.\n */\nfunction SnapPoints() {\n\n /**\n * Example:\n *\n * ```javascript\n * {\n * 'top-right': {\n * x: [ 100, 200, 300 ]\n * y: [ 100, 200, 300 ]\n * }\n * }\n * ```\n *\n * @type {Record>}\n */\n this._snapValues = {};\n}\n\n/**\n * Add a snap point.\n *\n * @param {SnapLocation} snapLocation\n * @param {Point} point\n */\nSnapPoints.prototype.add = function(snapLocation, point) {\n\n var snapValues = this._snapValues[snapLocation];\n\n if (!snapValues) {\n snapValues = this._snapValues[snapLocation] = { x: [], y: [] };\n }\n\n if (snapValues.x.indexOf(point.x) === -1) {\n snapValues.x.push(point.x);\n }\n\n if (snapValues.y.indexOf(point.y) === -1) {\n snapValues.y.push(point.y);\n }\n};\n\n/**\n * Snap a point's x or y value.\n *\n * @param {Point} point\n * @param {SnapLocation} snapLocation\n * @param {Axis} axis\n * @param {number} tolerance\n *\n * @return {number}\n */\nSnapPoints.prototype.snap = function(point, snapLocation, axis, tolerance) {\n var snappingValues = this._snapValues[snapLocation];\n\n return snappingValues && (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_0__.snapTo)(point[axis], snappingValues[axis], tolerance);\n};\n\n/**\n * Initialize default snap points.\n *\n * @param {Record} defaultSnaps\n */\nSnapPoints.prototype.initDefaults = function(defaultSnaps) {\n\n var self = this;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(defaultSnaps || {}, function(snapPoints, snapLocation) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(snapPoints, function(point) {\n self.add(snapLocation, point);\n });\n });\n};\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/snapping/SnapContext.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/snapping/SnapUtil.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/snapping/SnapUtil.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ bottomLeft: () => (/* binding */ bottomLeft),\n/* harmony export */ bottomRight: () => (/* binding */ bottomRight),\n/* harmony export */ getChildren: () => (/* binding */ getChildren),\n/* harmony export */ isSnapped: () => (/* binding */ isSnapped),\n/* harmony export */ mid: () => (/* binding */ mid),\n/* harmony export */ setSnapped: () => (/* binding */ setSnapped),\n/* harmony export */ snapTo: () => (/* binding */ snapTo),\n/* harmony export */ topLeft: () => (/* binding */ topLeft),\n/* harmony export */ topRight: () => (/* binding */ topRight)\n/* harmony export */ });\n/**\n * @typedef {import('../../core/Types').ConnectionLike} Connection\n * @typedef {import('../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../core/EventBus').Event} Event\n *\n * @typedef {import('../../util/Types').Axis} Axis\n */\n\nvar abs = Math.abs,\n round = Math.round;\n\n\n/**\n * Snap value to a collection of reference values.\n *\n * @param {number} value\n * @param {Array} values\n * @param {number} [tolerance=10]\n *\n * @return {number} the value we snapped to or null, if none snapped\n */\nfunction snapTo(value, values, tolerance) {\n tolerance = tolerance === undefined ? 10 : tolerance;\n\n var idx, snapValue;\n\n for (idx = 0; idx < values.length; idx++) {\n snapValue = values[idx];\n\n if (abs(snapValue - value) <= tolerance) {\n return snapValue;\n }\n }\n}\n\n\nfunction topLeft(bounds) {\n return {\n x: bounds.x,\n y: bounds.y\n };\n}\n\nfunction topRight(bounds) {\n return {\n x: bounds.x + bounds.width,\n y: bounds.y\n };\n}\n\nfunction bottomLeft(bounds) {\n return {\n x: bounds.x,\n y: bounds.y + bounds.height\n };\n}\n\nfunction bottomRight(bounds) {\n return {\n x: bounds.x + bounds.width,\n y: bounds.y + bounds.height\n };\n}\n\nfunction mid(bounds, defaultValue) {\n\n if (!bounds || isNaN(bounds.x) || isNaN(bounds.y)) {\n return defaultValue;\n }\n\n return {\n x: round(bounds.x + bounds.width / 2),\n y: round(bounds.y + bounds.height / 2)\n };\n}\n\n\n/**\n * Retrieve the snap state of the given event.\n *\n * @param {Event} event\n * @param {Axis} axis\n *\n * @return {boolean} the snapped state\n *\n */\nfunction isSnapped(event, axis) {\n var snapped = event.snapped;\n\n if (!snapped) {\n return false;\n }\n\n if (typeof axis === 'string') {\n return snapped[axis];\n }\n\n return snapped.x && snapped.y;\n}\n\n\n/**\n * Set the given event as snapped.\n *\n * This method may change the x and/or y position of the shape\n * from the given event!\n *\n * @param {Event} event\n * @param {Axis} axis\n * @param {number|boolean} value\n *\n * @return {number} old value\n */\nfunction setSnapped(event, axis, value) {\n if (typeof axis !== 'string') {\n throw new Error('axis must be in [x, y]');\n }\n\n if (typeof value !== 'number' && value !== false) {\n throw new Error('value must be Number or false');\n }\n\n var delta,\n previousValue = event[axis];\n\n var snapped = event.snapped = (event.snapped || {});\n\n\n if (value === false) {\n snapped[axis] = false;\n } else {\n snapped[axis] = true;\n\n delta = value - previousValue;\n\n event[axis] += delta;\n event['d' + axis] += delta;\n }\n\n return previousValue;\n}\n\n/**\n * Get children of a shape.\n *\n * @param {Shape} parent\n *\n * @return {Array}\n */\nfunction getChildren(parent) {\n return parent.children || [];\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/snapping/SnapUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/snapping/Snapping.js": +/*!*******************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/snapping/Snapping.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SNAP_LINE_HIDE_DELAY: () => (/* binding */ SNAP_LINE_HIDE_DELAY),\n/* harmony export */ \"default\": () => (/* binding */ Snapping)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _SnapUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SnapUtil */ \"./node_modules/diagram-js/lib/features/snapping/SnapUtil.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n *\n * @typedef {import('../../core/EventBus').Event} Event\n *\n * @typedef {import('./SnapContext').SnapPoints} SnapPoints\n */\n\nvar SNAP_TOLERANCE = 7;\n\nvar SNAP_LINE_HIDE_DELAY = 1000;\n\n\n/**\n * Generic snapping feature.\n *\n * @param {Canvas} canvas\n */\nfunction Snapping(canvas) {\n this._canvas = canvas;\n\n // delay hide by 1000 seconds since last snap\n this._asyncHide = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.debounce)((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(this.hide, this), SNAP_LINE_HIDE_DELAY);\n}\n\nSnapping.$inject = [ 'canvas' ];\n\n/**\n * Snap an event to given snap points.\n *\n * @param {Event} event\n * @param {SnapPoints} snapPoints\n */\nSnapping.prototype.snap = function(event, snapPoints) {\n var context = event.context,\n snapContext = context.snapContext,\n snapLocations = snapContext.getSnapLocations();\n\n var snapping = {\n x: (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.isSnapped)(event, 'x'),\n y: (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.isSnapped)(event, 'y')\n };\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(snapLocations, function(location) {\n var snapOrigin = snapContext.getSnapOrigin(location);\n\n var snapCurrent = {\n x: event.x + snapOrigin.x,\n y: event.y + snapOrigin.y\n };\n\n // snap both axis if not snapped already\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)([ 'x', 'y' ], function(axis) {\n var locationSnapping;\n\n if (!snapping[axis]) {\n locationSnapping = snapPoints.snap(snapCurrent, location, axis, SNAP_TOLERANCE);\n\n if (locationSnapping !== undefined) {\n snapping[axis] = {\n value: locationSnapping,\n originValue: locationSnapping - snapOrigin[axis]\n };\n }\n }\n });\n\n // no need to continue snapping\n if (snapping.x && snapping.y) {\n return false;\n }\n });\n\n // show snap lines\n this.showSnapLine('vertical', snapping.x && snapping.x.value);\n this.showSnapLine('horizontal', snapping.y && snapping.y.value);\n\n // snap event\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)([ 'x', 'y' ], function(axis) {\n var axisSnapping = snapping[axis];\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(axisSnapping)) {\n (0,_SnapUtil__WEBPACK_IMPORTED_MODULE_1__.setSnapped)(event, axis, axisSnapping.originValue);\n }\n });\n};\n\nSnapping.prototype._createLine = function(orientation) {\n var root = this._canvas.getLayer('snap');\n\n var line = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.create)('path');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.attr)(line, { d: 'M0,0 L0,0' });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.classes)(line).add('djs-snap-line');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.append)(root, line);\n\n return {\n update: function(position) {\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(position)) {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.attr)(line, { display: 'none' });\n } else {\n if (orientation === 'horizontal') {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.attr)(line, {\n d: 'M-100000,' + position + ' L+100000,' + position,\n display: ''\n });\n } else {\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.attr)(line, {\n d: 'M ' + position + ',-100000 L ' + position + ', +100000',\n display: ''\n });\n }\n }\n }\n };\n};\n\nSnapping.prototype._createSnapLines = function() {\n this._snapLines = {\n horizontal: this._createLine('horizontal'),\n vertical: this._createLine('vertical')\n };\n};\n\nSnapping.prototype.showSnapLine = function(orientation, position) {\n\n var line = this.getSnapLine(orientation);\n\n if (line) {\n line.update(position);\n }\n\n this._asyncHide();\n};\n\nSnapping.prototype.getSnapLine = function(orientation) {\n if (!this._snapLines) {\n this._createSnapLines();\n }\n\n return this._snapLines[orientation];\n};\n\nSnapping.prototype.hide = function() {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(this._snapLines, function(snapLine) {\n snapLine.update();\n });\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/snapping/Snapping.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/snapping/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/snapping/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _CreateMoveSnapping__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateMoveSnapping */ \"./node_modules/diagram-js/lib/features/snapping/CreateMoveSnapping.js\");\n/* harmony import */ var _ResizeSnapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ResizeSnapping */ \"./node_modules/diagram-js/lib/features/snapping/ResizeSnapping.js\");\n/* harmony import */ var _Snapping__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Snapping */ \"./node_modules/diagram-js/lib/features/snapping/Snapping.js\");\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [\n 'createMoveSnapping',\n 'resizeSnapping',\n 'snapping'\n ],\n createMoveSnapping: [ 'type', _CreateMoveSnapping__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ],\n resizeSnapping: [ 'type', _ResizeSnapping__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ],\n snapping: [ 'type', _Snapping__WEBPACK_IMPORTED_MODULE_2__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/snapping/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/space-tool/SpaceUtil.js": +/*!**********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/space-tool/SpaceUtil.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getDirection: () => (/* binding */ getDirection),\n/* harmony export */ getWaypointsUpdatingConnections: () => (/* binding */ getWaypointsUpdatingConnections),\n/* harmony export */ resizeBounds: () => (/* binding */ resizeBounds)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/**\n * @typedef {import('../../core/Types').ConnectionLike} Connection\n * @typedef {import('../../core/Types').ShapeLike} Shape\n *\n * @typedef {import('../../util/Types').Axis} Axis\n * @typedef {import('../../util/Types').Direction} Direction\n * @typedef {import('../../util/Types').Point} Point\n * @typedef {import('../../util/Types').Rect} Rect\n */\n\n\n\n/**\n * Return direction given axis and delta.\n *\n * @param {Axis} axis\n * @param {number} delta\n *\n * @return {Direction}\n */\nfunction getDirection(axis, delta) {\n\n if (axis === 'x') {\n if (delta > 0) {\n return 'e';\n }\n\n if (delta < 0) {\n return 'w';\n }\n }\n\n if (axis === 'y') {\n if (delta > 0) {\n return 's';\n }\n\n if (delta < 0) {\n return 'n';\n }\n }\n\n return null;\n}\n\n/**\n * Returns connections whose waypoints are to be updated. Waypoints are to be updated if start\n * or end is to be moved or resized.\n *\n * @param {Array} movingShapes\n * @param {Array} resizingShapes\n *\n * @return {Array}\n */\nfunction getWaypointsUpdatingConnections(movingShapes, resizingShapes) {\n var waypointsUpdatingConnections = [];\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(movingShapes.concat(resizingShapes), function(shape) {\n var incoming = shape.incoming,\n outgoing = shape.outgoing;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(incoming.concat(outgoing), function(connection) {\n var source = connection.source,\n target = connection.target;\n\n if (includes(movingShapes, source) ||\n includes(movingShapes, target) ||\n includes(resizingShapes, source) ||\n includes(resizingShapes, target)) {\n\n if (!includes(waypointsUpdatingConnections, connection)) {\n waypointsUpdatingConnections.push(connection);\n }\n }\n });\n });\n\n return waypointsUpdatingConnections;\n}\n\nfunction includes(array, item) {\n return array.indexOf(item) !== -1;\n}\n\n/**\n * Resize bounds.\n *\n * @param {Rect} bounds\n * @param {Direction} direction\n * @param {Point} delta\n *\n * @return {Rect}\n */\nfunction resizeBounds(bounds, direction, delta) {\n var x = bounds.x,\n y = bounds.y,\n width = bounds.width,\n height = bounds.height,\n dx = delta.x,\n dy = delta.y;\n\n switch (direction) {\n case 'n':\n return {\n x: x,\n y: y + dy,\n width: width,\n height: height - dy\n };\n case 's':\n return {\n x: x,\n y: y,\n width: width,\n height: height + dy\n };\n case 'w':\n return {\n x: x + dx,\n y: y,\n width: width - dx,\n height: height\n };\n case 'e':\n return {\n x: x,\n y: y,\n width: width + dx,\n height: height\n };\n default:\n throw new Error('unknown direction: ' + direction);\n }\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/space-tool/SpaceUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/tool-manager/ToolManager.js": +/*!**************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/tool-manager/ToolManager.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ToolManager)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\n\n\n/**\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {import('../../core/EventBus').Event} Event\n */\n\nvar LOW_PRIORITY = 250;\n\n/**\n * The tool manager acts as middle-man between the available tool's and the Palette,\n * it takes care of making sure that the correct active state is set.\n *\n * @param {EventBus} eventBus\n */\nfunction ToolManager(eventBus) {\n this._eventBus = eventBus;\n\n this._tools = [];\n this._active = null;\n}\n\nToolManager.$inject = [ 'eventBus' ];\n\n/**\n * Register a tool.\n *\n * @param {string} name\n * @param { {\n * tool: string;\n * } } events\n */\nToolManager.prototype.registerTool = function(name, events) {\n var tools = this._tools;\n\n if (!events) {\n throw new Error('A tool has to be registered with it\\'s \"events\"');\n }\n\n tools.push(name);\n this.bindEvents(name, events);\n};\n\nToolManager.prototype.isActive = function(tool) {\n return tool && this._active === tool;\n};\n\nToolManager.prototype.length = function(tool) {\n return this._tools.length;\n};\n\nToolManager.prototype.setActive = function(tool) {\n var eventBus = this._eventBus;\n\n if (this._active !== tool) {\n this._active = tool;\n\n eventBus.fire('tool-manager.update', { tool: tool });\n }\n};\n\nToolManager.prototype.bindEvents = function(name, events) {\n var eventBus = this._eventBus;\n\n var eventsToRegister = [];\n\n eventBus.on(events.tool + '.init', function(event) {\n var context = event.context;\n\n // Active tools that want to reactivate themselves must do this explicitly\n if (!context.reactivate && this.isActive(name)) {\n this.setActive(null);\n\n return;\n }\n\n this.setActive(name);\n\n }, this);\n\n // TODO: add test cases\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(events, function(event) {\n eventsToRegister.push(event + '.ended');\n eventsToRegister.push(event + '.canceled');\n });\n\n eventBus.on(eventsToRegister, LOW_PRIORITY, function(event) {\n\n // We defer the de-activation of the tool to the .activate phase,\n // so we're able to check if we want to toggle off the current\n // active tool or switch to a new one\n if (!this._active) {\n return;\n }\n\n if (isPaletteClick(event)) {\n return;\n }\n\n this.setActive(null);\n }, this);\n\n};\n\n\n// helpers ///////////////\n\n/**\n * Check if a given event is a palette click event.\n *\n * @param {Event} event\n *\n * @return {boolean}\n */\nfunction isPaletteClick(event) {\n var target = event.originalEvent && event.originalEvent.target;\n\n return target && (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.closest)(target, '.group[data-group=\"tools\"]');\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/tool-manager/ToolManager.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/features/tool-manager/index.js": +/*!********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/features/tool-manager/index.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dragging */ \"./node_modules/diagram-js/lib/features/dragging/index.js\");\n/* harmony import */ var _ToolManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ToolManager */ \"./node_modules/diagram-js/lib/features/tool-manager/ToolManager.js\");\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _dragging__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n ],\n __init__: [ 'toolManager' ],\n toolManager: [ 'type', _ToolManager__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ]\n});\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/features/tool-manager/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/i18n/translate/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/diagram-js/lib/i18n/translate/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _translate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./translate */ \"./node_modules/diagram-js/lib/i18n/translate/translate.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n translate: [ 'value', _translate__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/i18n/translate/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/i18n/translate/translate.js": +/*!*****************************************************************!*\ + !*** ./node_modules/diagram-js/lib/i18n/translate/translate.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ translate)\n/* harmony export */ });\n/**\n * @typedef { {\n * [key: string]: string;\n * } } TranslateReplacements\n */\n\n/**\n * A simple translation stub to be used for multi-language support\n * in diagrams. Can be easily replaced with a more sophisticated\n * solution.\n *\n * @example\n *\n * ```javascript\n * // use it inside any diagram component by injecting `translate`.\n *\n * function MyService(translate) {\n * alert(translate('HELLO {you}', { you: 'You!' }));\n * }\n * ```\n *\n * @param {string} template to interpolate\n * @param {TranslateReplacements} [replacements] a map with substitutes\n *\n * @return {string} the translated string\n */\nfunction translate(template, replacements) {\n\n replacements = replacements || {};\n\n return template.replace(/{([^}]+)}/g, function(_, key) {\n return replacements[key] || '{' + key + '}';\n });\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/i18n/translate/translate.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/layout/BaseLayouter.js": +/*!************************************************************!*\ + !*** ./node_modules/diagram-js/lib/layout/BaseLayouter.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ BaseLayouter)\n/* harmony export */ });\n/* harmony import */ var _LayoutUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/**\n * @typedef {import('../core/Types').ElementLike} Element\n * @typedef {import('../core/Types').ConnectionLike} Connection\n *\n * @typedef {import('../util').Point} Point\n *\n * @typedef { {\n * connectionStart?: Point;\n * connectionEnd?: Point;\n * source?: Element;\n * target?: Element;\n * } } LayoutConnectionHints\n */\n\n\n\n\n/**\n * A base connection layouter implementation\n * that layouts the connection by directly connecting\n * mid(source) + mid(target).\n */\nfunction BaseLayouter() {}\n\n\n/**\n * Return the new layouted waypoints for the given connection.\n *\n * The connection passed is still unchanged; you may figure out about\n * the new connection start / end via the layout hints provided.\n *\n * @param {Connection} connection\n * @param {LayoutConnectionHints} [hints]\n *\n * @return {Point[]} The waypoints of the laid out connection.\n */\nBaseLayouter.prototype.layoutConnection = function(connection, hints) {\n\n hints = hints || {};\n\n return [\n hints.connectionStart || (0,_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.getMid)(hints.source || connection.source),\n hints.connectionEnd || (0,_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.getMid)(hints.target || connection.target)\n ];\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/layout/BaseLayouter.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/layout/CroppingConnectionDocking.js": +/*!*************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/layout/CroppingConnectionDocking.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CroppingConnectionDocking)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n\n\n\n\n/**\n * @typedef {import('../core/ElementRegistry').default} ElementRegistry\n * @typedef {import('../core/GraphicsFactory').default} GraphicsFactory\n */\n\nfunction dockingToPoint(docking) {\n\n // use the dockings actual point and\n // retain the original docking\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({ original: docking.point.original || docking.point }, docking.actual);\n}\n\n\n/**\n * A {@link ConnectionDocking} that crops connection waypoints based on\n * the path(s) of the connection source and target.\n *\n * @param {ElementRegistry} elementRegistry\n * @param {GraphicsFactory} graphicsFactory\n */\nfunction CroppingConnectionDocking(elementRegistry, graphicsFactory) {\n this._elementRegistry = elementRegistry;\n this._graphicsFactory = graphicsFactory;\n}\n\nCroppingConnectionDocking.$inject = [ 'elementRegistry', 'graphicsFactory' ];\n\n\n/**\n * @inheritDoc ConnectionDocking#getCroppedWaypoints\n */\nCroppingConnectionDocking.prototype.getCroppedWaypoints = function(connection, source, target) {\n\n source = source || connection.source;\n target = target || connection.target;\n\n var sourceDocking = this.getDockingPoint(connection, source, true),\n targetDocking = this.getDockingPoint(connection, target);\n\n var croppedWaypoints = connection.waypoints.slice(sourceDocking.idx + 1, targetDocking.idx);\n\n croppedWaypoints.unshift(dockingToPoint(sourceDocking));\n croppedWaypoints.push(dockingToPoint(targetDocking));\n\n return croppedWaypoints;\n};\n\n/**\n * Return the connection docking point on the specified shape\n *\n * @inheritDoc ConnectionDocking#getDockingPoint\n */\nCroppingConnectionDocking.prototype.getDockingPoint = function(connection, shape, dockStart) {\n\n var waypoints = connection.waypoints,\n dockingIdx,\n dockingPoint,\n croppedPoint;\n\n dockingIdx = dockStart ? 0 : waypoints.length - 1;\n dockingPoint = waypoints[dockingIdx];\n\n croppedPoint = this._getIntersection(shape, connection, dockStart);\n\n return {\n point: dockingPoint,\n actual: croppedPoint || dockingPoint,\n idx: dockingIdx\n };\n};\n\n\n// helpers //////////////////////\n\nCroppingConnectionDocking.prototype._getIntersection = function(shape, connection, takeFirst) {\n\n var shapePath = this._getShapePath(shape),\n connectionPath = this._getConnectionPath(connection);\n\n return (0,_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getElementLineIntersection)(shapePath, connectionPath, takeFirst);\n};\n\nCroppingConnectionDocking.prototype._getConnectionPath = function(connection) {\n return this._graphicsFactory.getConnectionPath(connection);\n};\n\nCroppingConnectionDocking.prototype._getShapePath = function(shape) {\n return this._graphicsFactory.getShapePath(shape);\n};\n\nCroppingConnectionDocking.prototype._getGfx = function(element) {\n return this._elementRegistry.getGraphics(element);\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/layout/CroppingConnectionDocking.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/layout/LayoutUtil.js": +/*!**********************************************************!*\ + !*** ./node_modules/diagram-js/lib/layout/LayoutUtil.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ asBounds: () => (/* binding */ asBounds),\n/* harmony export */ asTRBL: () => (/* binding */ asTRBL),\n/* harmony export */ filterRedundantWaypoints: () => (/* binding */ filterRedundantWaypoints),\n/* harmony export */ getBoundsMid: () => (/* binding */ getBoundsMid),\n/* harmony export */ getConnectionMid: () => (/* binding */ getConnectionMid),\n/* harmony export */ getElementLineIntersection: () => (/* binding */ getElementLineIntersection),\n/* harmony export */ getIntersections: () => (/* binding */ getIntersections),\n/* harmony export */ getMid: () => (/* binding */ getMid),\n/* harmony export */ getOrientation: () => (/* binding */ getOrientation),\n/* harmony export */ roundBounds: () => (/* binding */ roundBounds),\n/* harmony export */ roundPoint: () => (/* binding */ roundPoint)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_Geometry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/Geometry */ \"./node_modules/diagram-js/lib/util/Geometry.js\");\n/* harmony import */ var path_intersection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path-intersection */ \"./node_modules/path-intersection/intersect.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/ModelUtil */ \"./node_modules/diagram-js/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../core/Types').ElementLike} Element\n * @typedef {import('../core/Types').ConnectionLike} Connection\n *\n * @typedef {import('../util/Types').DirectionTRBL} DirectionTRBL\n * @typedef {import('../util/Types').Intersection} Intersection\n * @typedef {import('../util/Types').Point} Point\n * @typedef {import('../util/Types').Rect} Rect\n * @typedef {import('../util/Types').RectTRBL} RectTRBL\n */\n\n/**\n * @param {Rect} bounds\n *\n * @returns {Rect}\n */\nfunction roundBounds(bounds) {\n return {\n x: Math.round(bounds.x),\n y: Math.round(bounds.y),\n width: Math.round(bounds.width),\n height: Math.round(bounds.height)\n };\n}\n\n/**\n * @param {Point} point\n *\n * @returns {Point}\n */\nfunction roundPoint(point) {\n\n return {\n x: Math.round(point.x),\n y: Math.round(point.y)\n };\n}\n\n\n/**\n * Convert the given bounds to a { top, left, bottom, right } descriptor.\n *\n * @param {Point|Rect} bounds\n *\n * @return {RectTRBL}\n */\nfunction asTRBL(bounds) {\n return {\n top: bounds.y,\n right: bounds.x + (bounds.width || 0),\n bottom: bounds.y + (bounds.height || 0),\n left: bounds.x\n };\n}\n\n\n/**\n * Convert a { top, left, bottom, right } to an objects bounds.\n *\n * @param {RectTRBL} trbl\n *\n * @return {Rect}\n */\nfunction asBounds(trbl) {\n return {\n x: trbl.left,\n y: trbl.top,\n width: trbl.right - trbl.left,\n height: trbl.bottom - trbl.top\n };\n}\n\n\n/**\n * Get the mid of the given bounds or point.\n *\n * @param {Point|Rect} bounds\n *\n * @return {Point}\n */\nfunction getBoundsMid(bounds) {\n return roundPoint({\n x: bounds.x + (bounds.width || 0) / 2,\n y: bounds.y + (bounds.height || 0) / 2\n });\n}\n\n\n/**\n * Get the mid of the given Connection.\n *\n * @param {Connection} connection\n *\n * @return {Point}\n */\nfunction getConnectionMid(connection) {\n var waypoints = connection.waypoints;\n\n // calculate total length and length of each segment\n var parts = waypoints.reduce(function(parts, point, index) {\n\n var lastPoint = waypoints[index - 1];\n\n if (lastPoint) {\n var lastPart = parts[parts.length - 1];\n\n var startLength = lastPart && lastPart.endLength || 0;\n var length = distance(lastPoint, point);\n\n parts.push({\n start: lastPoint,\n end: point,\n startLength: startLength,\n endLength: startLength + length,\n length: length\n });\n }\n\n return parts;\n }, []);\n\n var totalLength = parts.reduce(function(length, part) {\n return length + part.length;\n }, 0);\n\n // find which segement contains middle point\n var midLength = totalLength / 2;\n\n var i = 0;\n var midSegment = parts[i];\n\n while (midSegment.endLength < midLength) {\n midSegment = parts[++i];\n }\n\n // calculate relative position on mid segment\n var segmentProgress = (midLength - midSegment.startLength) / midSegment.length;\n\n var midPoint = {\n x: midSegment.start.x + (midSegment.end.x - midSegment.start.x) * segmentProgress,\n y: midSegment.start.y + (midSegment.end.y - midSegment.start.y) * segmentProgress\n };\n\n return midPoint;\n}\n\n\n/**\n * Get the mid of the given Element.\n *\n * @param {Element} element\n *\n * @return {Point}\n */\nfunction getMid(element) {\n if ((0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isConnection)(element)) {\n return getConnectionMid(element);\n }\n\n return getBoundsMid(element);\n}\n\n// orientation utils //////////////////////\n\n/**\n * Get orientation of the given rectangle with respect to\n * the reference rectangle.\n *\n * A padding (positive or negative) may be passed to influence\n * horizontal / vertical orientation and intersection.\n *\n * @param {Rect} rect\n * @param {Rect} reference\n * @param {Point|number} padding\n *\n * @return {DirectionTRBL|Intersection} the orientation; one of top, top-left, left, ..., bottom, right or intersect.\n */\nfunction getOrientation(rect, reference, padding) {\n\n padding = padding || 0;\n\n // make sure we can use an object, too\n // for individual { x, y } padding\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isObject)(padding)) {\n padding = { x: padding, y: padding };\n }\n\n\n var rectOrientation = asTRBL(rect),\n referenceOrientation = asTRBL(reference);\n\n var top = rectOrientation.bottom + padding.y <= referenceOrientation.top,\n right = rectOrientation.left - padding.x >= referenceOrientation.right,\n bottom = rectOrientation.top - padding.y >= referenceOrientation.bottom,\n left = rectOrientation.right + padding.x <= referenceOrientation.left;\n\n var vertical = top ? 'top' : (bottom ? 'bottom' : null),\n horizontal = left ? 'left' : (right ? 'right' : null);\n\n if (horizontal && vertical) {\n return vertical + '-' + horizontal;\n } else {\n return horizontal || vertical || 'intersect';\n }\n}\n\n\n// intersection utils //////////////////////\n\n/**\n * Get intersection between an element and a line path.\n *\n * @param {string} elementPath\n * @param {string} linePath\n * @param {boolean} cropStart Whether to crop start or end.\n *\n * @return {Point}\n */\nfunction getElementLineIntersection(elementPath, linePath, cropStart) {\n\n var intersections = getIntersections(elementPath, linePath);\n\n // recognize intersections\n // only one -> choose\n // two close together -> choose first\n // two or more distinct -> pull out appropriate one\n // none -> ok (fallback to point itself)\n if (intersections.length === 1) {\n return roundPoint(intersections[0]);\n } else if (intersections.length === 2 && (0,_util_Geometry__WEBPACK_IMPORTED_MODULE_3__.pointDistance)(intersections[0], intersections[1]) < 1) {\n return roundPoint(intersections[0]);\n } else if (intersections.length > 1) {\n\n // sort by intersections based on connection segment +\n // distance from start\n intersections = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.sortBy)(intersections, function(i) {\n var distance = Math.floor(i.t2 * 100) || 1;\n\n distance = 100 - distance;\n\n distance = (distance < 10 ? '0' : '') + distance;\n\n // create a sort string that makes sure we sort\n // line segment ASC + line segment position DESC (for cropStart)\n // line segment ASC + line segment position ASC (for cropEnd)\n return i.segment2 + '#' + distance;\n });\n\n return roundPoint(intersections[cropStart ? 0 : intersections.length - 1]);\n }\n\n return null;\n}\n\n\nfunction getIntersections(a, b) {\n return (0,path_intersection__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(a, b);\n}\n\n\nfunction filterRedundantWaypoints(waypoints) {\n\n // alter copy of waypoints, not original\n waypoints = waypoints.slice();\n\n var idx = 0,\n point,\n previousPoint,\n nextPoint;\n\n while (waypoints[idx]) {\n point = waypoints[idx];\n previousPoint = waypoints[idx - 1];\n nextPoint = waypoints[idx + 1];\n\n if ((0,_util_Geometry__WEBPACK_IMPORTED_MODULE_3__.pointDistance)(point, nextPoint) === 0 ||\n (0,_util_Geometry__WEBPACK_IMPORTED_MODULE_3__.pointsOnLine)(previousPoint, nextPoint, point)) {\n\n // remove point, if overlapping with {nextPoint}\n // or on line with {previousPoint} -> {point} -> {nextPoint}\n waypoints.splice(idx, 1);\n } else {\n idx++;\n }\n }\n\n return waypoints;\n}\n\n// helpers //////////////////////\n\nfunction distance(a, b) {\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/layout/LayoutUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/model/index.js": +/*!****************************************************!*\ + !*** ./node_modules/diagram-js/lib/model/index.js ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ create: () => (/* binding */ create),\n/* harmony export */ isModelElement: () => (/* binding */ isModelElement)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var object_refs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! object-refs */ \"./node_modules/object-refs/dist/index.js\");\n\n\n\n\n\nvar parentRefs = new object_refs__WEBPACK_IMPORTED_MODULE_0__.Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),\n labelRefs = new object_refs__WEBPACK_IMPORTED_MODULE_0__.Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget' }),\n attacherRefs = new object_refs__WEBPACK_IMPORTED_MODULE_0__.Refs({ name: 'attachers', collection: true }, { name: 'host' }),\n outgoingRefs = new object_refs__WEBPACK_IMPORTED_MODULE_0__.Refs({ name: 'outgoing', collection: true }, { name: 'source' }),\n incomingRefs = new object_refs__WEBPACK_IMPORTED_MODULE_0__.Refs({ name: 'incoming', collection: true }, { name: 'target' });\n\n/**\n * @typedef {import('./Types').Element} Element\n * @typedef {import('./Types').Shape} Shape\n * @typedef {import('./Types').Root} Root\n * @typedef {import('./Types').Label} Label\n * @typedef {import('./Types').Connection} Connection\n */\n\n/**\n * The basic graphical representation\n *\n * @class\n * @constructor\n */\nfunction ElementImpl() {\n\n /**\n * The object that backs up the shape\n *\n * @name Element#businessObject\n * @type Object\n */\n Object.defineProperty(this, 'businessObject', {\n writable: true\n });\n\n\n /**\n * Single label support, will mapped to multi label array\n *\n * @name Element#label\n * @type Object\n */\n Object.defineProperty(this, 'label', {\n get: function() {\n return this.labels[0];\n },\n set: function(newLabel) {\n\n var label = this.label,\n labels = this.labels;\n\n if (!newLabel && label) {\n labels.remove(label);\n } else {\n labels.add(newLabel, 0);\n }\n }\n });\n\n /**\n * The parent shape\n *\n * @name Element#parent\n * @type Shape\n */\n parentRefs.bind(this, 'parent');\n\n /**\n * The list of labels\n *\n * @name Element#labels\n * @type Label\n */\n labelRefs.bind(this, 'labels');\n\n /**\n * The list of outgoing connections\n *\n * @name Element#outgoing\n * @type Array\n */\n outgoingRefs.bind(this, 'outgoing');\n\n /**\n * The list of incoming connections\n *\n * @name Element#incoming\n * @type Array\n */\n incomingRefs.bind(this, 'incoming');\n}\n\n\n/**\n * A graphical object\n *\n * @class\n * @constructor\n *\n * @extends ElementImpl\n */\nfunction ShapeImpl() {\n ElementImpl.call(this);\n\n /**\n * Indicates frame shapes\n *\n * @name ShapeImpl#isFrame\n * @type boolean\n */\n\n /**\n * The list of children\n *\n * @name ShapeImpl#children\n * @type Element[]\n */\n parentRefs.bind(this, 'children');\n\n /**\n * @name ShapeImpl#host\n * @type Shape\n */\n attacherRefs.bind(this, 'host');\n\n /**\n * @name ShapeImpl#attachers\n * @type Shape\n */\n attacherRefs.bind(this, 'attachers');\n}\n\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(ShapeImpl, ElementImpl);\n\n\n/**\n * A root graphical object\n *\n * @class\n * @constructor\n *\n * @extends ElementImpl\n */\nfunction RootImpl() {\n ElementImpl.call(this);\n\n /**\n * The list of children\n *\n * @name RootImpl#children\n * @type Element[]\n */\n parentRefs.bind(this, 'children');\n}\n\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(RootImpl, ShapeImpl);\n\n\n/**\n * A label for an element\n *\n * @class\n * @constructor\n *\n * @extends ShapeImpl\n */\nfunction LabelImpl() {\n ShapeImpl.call(this);\n\n /**\n * The labeled element\n *\n * @name LabelImpl#labelTarget\n * @type Element\n */\n labelRefs.bind(this, 'labelTarget');\n}\n\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(LabelImpl, ShapeImpl);\n\n\n/**\n * A connection between two elements\n *\n * @class\n * @constructor\n *\n * @extends ElementImpl\n */\nfunction ConnectionImpl() {\n ElementImpl.call(this);\n\n /**\n * The element this connection originates from\n *\n * @name ConnectionImpl#source\n * @type Element\n */\n outgoingRefs.bind(this, 'source');\n\n /**\n * The element this connection points to\n *\n * @name ConnectionImpl#target\n * @type Element\n */\n incomingRefs.bind(this, 'target');\n}\n\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(ConnectionImpl, ElementImpl);\n\n\nvar types = {\n connection: ConnectionImpl,\n shape: ShapeImpl,\n label: LabelImpl,\n root: RootImpl\n};\n\n/**\n * Creates a root element.\n *\n * @overlord\n *\n * @example\n *\n * ```javascript\n * import * as Model from 'diagram-js/lib/model';\n *\n * const root = Model.create('root', {\n * x: 100,\n * y: 100,\n * width: 100,\n * height: 100\n * });\n * ```\n *\n * @param {'root'} type\n * @param {any} [attrs]\n *\n * @return {Root}\n */\n\n/**\n * Creates a connection.\n *\n * @overlord\n *\n * @example\n *\n * ```javascript\n * import * as Model from 'diagram-js/lib/model';\n *\n * const connection = Model.create('connection', {\n * waypoints: [\n * { x: 100, y: 100 },\n * { x: 200, y: 100 }\n * ]\n * });\n * ```\n *\n * @param {'connection'} type\n * @param {any} [attrs]\n *\n * @return {Connection}\n */\n\n/**\n * Creates a shape.\n *\n * @overlord\n *\n * @example\n *\n * ```javascript\n * import * as Model from 'diagram-js/lib/model';\n *\n * const shape = Model.create('shape', {\n * x: 100,\n * y: 100,\n * width: 100,\n * height: 100\n * });\n * ```\n *\n * @param {'shape'} type\n * @param {any} [attrs]\n *\n * @return {Shape}\n */\n\n/**\n * Creates a label.\n *\n * @example\n *\n * ```javascript\n * import * as Model from 'diagram-js/lib/model';\n *\n * const label = Model.create('label', {\n * x: 100,\n * y: 100,\n * width: 100,\n * height: 100,\n * labelTarget: shape\n * });\n * ```\n *\n * @param {'label'} type\n * @param {Object} [attrs]\n *\n * @return {Label}\n */\nfunction create(type, attrs) {\n var Type = types[type];\n if (!Type) {\n throw new Error('unknown type: <' + type + '>');\n }\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(new Type(), attrs);\n}\n\n/**\n * Checks whether an object is a model instance.\n *\n * @param {any} obj\n *\n * @return {boolean}\n */\nfunction isModelElement(obj) {\n return obj instanceof ElementImpl;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/model/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/keyboard-move/KeyboardMove.js": +/*!******************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/keyboard-move/KeyboardMove.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ KeyboardMove)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../features/keyboard/Keyboard').default} Keyboard\n */\n\nvar DEFAULT_CONFIG = {\n moveSpeed: 50,\n moveSpeedAccelerated: 200\n};\n\n\n/**\n * A feature that allows users to move the canvas using the keyboard.\n *\n * @param {Object} config\n * @param {number} [config.moveSpeed=50]\n * @param {number} [config.moveSpeedAccelerated=200]\n * @param {Keyboard} keyboard\n * @param {Canvas} canvas\n */\nfunction KeyboardMove(\n config,\n keyboard,\n canvas\n) {\n\n var self = this;\n\n this._config = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, DEFAULT_CONFIG, config || {});\n\n keyboard.addListener(arrowsListener);\n\n\n function arrowsListener(context) {\n\n var event = context.keyEvent,\n config = self._config;\n\n if (!keyboard.isCmd(event)) {\n return;\n }\n\n if (keyboard.isKey([\n 'ArrowLeft', 'Left',\n 'ArrowUp', 'Up',\n 'ArrowDown', 'Down',\n 'ArrowRight', 'Right'\n ], event)) {\n\n var speed = (\n keyboard.isShift(event) ?\n config.moveSpeedAccelerated :\n config.moveSpeed\n );\n\n var direction;\n\n switch (event.key) {\n case 'ArrowLeft':\n case 'Left':\n direction = 'left';\n break;\n case 'ArrowUp':\n case 'Up':\n direction = 'up';\n break;\n case 'ArrowRight':\n case 'Right':\n direction = 'right';\n break;\n case 'ArrowDown':\n case 'Down':\n direction = 'down';\n break;\n }\n\n self.moveCanvas({\n speed: speed,\n direction: direction\n });\n\n return true;\n }\n }\n\n /**\n * @param {{\n * direction: 'up' | 'down' | 'left' | 'right';\n * speed: number;\n * }} options\n */\n this.moveCanvas = function(options) {\n\n var dx = 0,\n dy = 0,\n speed = options.speed;\n\n var actualSpeed = speed / Math.min(Math.sqrt(canvas.viewbox().scale), 1);\n\n switch (options.direction) {\n case 'left': // Left\n dx = actualSpeed;\n break;\n case 'up': // Up\n dy = actualSpeed;\n break;\n case 'right': // Right\n dx = -actualSpeed;\n break;\n case 'down': // Down\n dy = -actualSpeed;\n break;\n }\n\n canvas.scroll({\n dx: dx,\n dy: dy\n });\n };\n\n}\n\n\nKeyboardMove.$inject = [\n 'config.keyboardMove',\n 'keyboard',\n 'canvas'\n];\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/keyboard-move/KeyboardMove.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/keyboard-move/index.js": +/*!***********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/keyboard-move/index.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _features_keyboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../features/keyboard */ \"./node_modules/diagram-js/lib/features/keyboard/index.js\");\n/* harmony import */ var _KeyboardMove__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./KeyboardMove */ \"./node_modules/diagram-js/lib/navigation/keyboard-move/KeyboardMove.js\");\n\n\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [\n _features_keyboard__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n ],\n __init__: [ 'keyboardMove' ],\n keyboardMove: [ 'type', _KeyboardMove__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/keyboard-move/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js": +/*!*************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveCanvas)\n/* harmony export */ });\n/* harmony import */ var _util_Cursor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/Cursor */ \"./node_modules/diagram-js/lib/util/Cursor.js\");\n/* harmony import */ var _util_ClickTrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/ClickTrap */ \"./node_modules/diagram-js/lib/util/ClickTrap.js\");\n/* harmony import */ var _util_PositionUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/PositionUtil */ \"./node_modules/diagram-js/lib/util/PositionUtil.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _util_Event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/Event */ \"./node_modules/diagram-js/lib/util/Event.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n */\n\nvar THRESHOLD = 15;\n\n\n/**\n * Move the canvas via mouse.\n *\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n */\nfunction MoveCanvas(eventBus, canvas) {\n\n var context;\n\n\n // listen for move on element mouse down;\n // allow others to hook into the event before us though\n // (dragging / element moving will do this)\n eventBus.on('element.mousedown', 500, function(e) {\n return handleStart(e.originalEvent);\n });\n\n\n function handleMove(event) {\n\n var start = context.start,\n button = context.button,\n position = (0,_util_Event__WEBPACK_IMPORTED_MODULE_0__.toPoint)(event),\n delta = (0,_util_PositionUtil__WEBPACK_IMPORTED_MODULE_1__.delta)(position, start);\n\n if (!context.dragging && length(delta) > THRESHOLD) {\n context.dragging = true;\n\n if (button === 0) {\n (0,_util_ClickTrap__WEBPACK_IMPORTED_MODULE_2__.install)(eventBus);\n }\n\n (0,_util_Cursor__WEBPACK_IMPORTED_MODULE_3__.set)('grab');\n }\n\n if (context.dragging) {\n\n var lastPosition = context.last || context.start;\n\n delta = (0,_util_PositionUtil__WEBPACK_IMPORTED_MODULE_1__.delta)(position, lastPosition);\n\n canvas.scroll({\n dx: delta.x,\n dy: delta.y\n });\n\n context.last = position;\n }\n\n // prevent select\n event.preventDefault();\n }\n\n\n function handleEnd(event) {\n min_dom__WEBPACK_IMPORTED_MODULE_4__.event.unbind(document, 'mousemove', handleMove);\n min_dom__WEBPACK_IMPORTED_MODULE_4__.event.unbind(document, 'mouseup', handleEnd);\n\n context = null;\n\n (0,_util_Cursor__WEBPACK_IMPORTED_MODULE_3__.unset)();\n }\n\n function handleStart(event) {\n\n // event is already handled by '.djs-draggable'\n if ((0,min_dom__WEBPACK_IMPORTED_MODULE_4__.closest)(event.target, '.djs-draggable')) {\n return;\n }\n\n var button = event.button;\n\n // reject right mouse button or modifier key\n if (button >= 2 || event.ctrlKey || event.shiftKey || event.altKey) {\n return;\n }\n\n context = {\n button: button,\n start: (0,_util_Event__WEBPACK_IMPORTED_MODULE_0__.toPoint)(event)\n };\n\n min_dom__WEBPACK_IMPORTED_MODULE_4__.event.bind(document, 'mousemove', handleMove);\n min_dom__WEBPACK_IMPORTED_MODULE_4__.event.bind(document, 'mouseup', handleEnd);\n\n // we've handled the event\n return true;\n }\n\n this.isActive = function() {\n return !!context;\n };\n\n}\n\n\nMoveCanvas.$inject = [\n 'eventBus',\n 'canvas'\n];\n\n\n\n// helpers ///////\n\nfunction length(point) {\n return Math.sqrt(Math.pow(point.x, 2) + Math.pow(point.y, 2));\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/movecanvas/index.js": +/*!********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/movecanvas/index.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _MoveCanvas__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MoveCanvas */ \"./node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'moveCanvas' ],\n moveCanvas: [ 'type', _MoveCanvas__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/movecanvas/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js": +/*!*************************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ZoomScroll)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _ZoomUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ZoomUtil */ \"./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js\");\n/* harmony import */ var _util_Math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/Math */ \"./node_modules/diagram-js/lib/util/Math.js\");\n/* harmony import */ var _util_Platform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/Platform */ \"./node_modules/diagram-js/lib/util/Platform.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('../../core/Canvas').default} Canvas\n * @typedef {import('../../core/EventBus').default} EventBus\n *\n * @typedef {import('../../util/Types').Point} Point\n * @typedef {import('../../util/Types').ScrollDelta} ScrollDelta\n */\n\nvar sign = Math.sign || function(n) {\n return n >= 0 ? 1 : -1;\n};\n\nvar RANGE = { min: 0.2, max: 4 },\n NUM_STEPS = 10;\n\nvar DELTA_THRESHOLD = 0.1;\n\nvar DEFAULT_SCALE = 0.75;\n\n/**\n * An implementation of zooming and scrolling within the\n * {@link Canvas} via the mouse wheel.\n *\n * Mouse wheel zooming / scrolling may be disabled using\n * the {@link toggle(enabled)} method.\n *\n * @param {Object} [config]\n * @param {boolean} [config.enabled=true] default enabled state\n * @param {number} [config.scale=.75] scroll sensivity\n * @param {EventBus} eventBus\n * @param {Canvas} canvas\n */\nfunction ZoomScroll(config, eventBus, canvas) {\n\n config = config || {};\n\n this._enabled = false;\n\n this._canvas = canvas;\n this._container = canvas._container;\n\n this._handleWheel = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(this._handleWheel, this);\n\n this._totalDelta = 0;\n this._scale = config.scale || DEFAULT_SCALE;\n\n var self = this;\n\n eventBus.on('canvas.init', function(e) {\n self._init(config.enabled !== false);\n });\n}\n\nZoomScroll.$inject = [\n 'config.zoomScroll',\n 'eventBus',\n 'canvas'\n];\n\n/**\n * @param {ScrollDelta} delta\n */\nZoomScroll.prototype.scroll = function scroll(delta) {\n this._canvas.scroll(delta);\n};\n\n\nZoomScroll.prototype.reset = function reset() {\n this._canvas.zoom('fit-viewport');\n};\n\n/**\n * Zoom depending on delta.\n *\n * @param {number} delta\n * @param {Point} position\n */\nZoomScroll.prototype.zoom = function zoom(delta, position) {\n\n // zoom with half the step size of stepZoom\n var stepSize = (0,_ZoomUtil__WEBPACK_IMPORTED_MODULE_1__.getStepSize)(RANGE, NUM_STEPS * 2);\n\n // add until threshold reached\n this._totalDelta += delta;\n\n if (Math.abs(this._totalDelta) > DELTA_THRESHOLD) {\n this._zoom(delta, position, stepSize);\n\n // reset\n this._totalDelta = 0;\n }\n};\n\n\nZoomScroll.prototype._handleWheel = function handleWheel(event) {\n\n // event is already handled by '.djs-scrollable'\n if ((0,min_dom__WEBPACK_IMPORTED_MODULE_2__.closest)(event.target, '.djs-scrollable', true)) {\n return;\n }\n\n var element = this._container;\n\n event.preventDefault();\n\n // pinch to zoom is mapped to wheel + ctrlKey = true\n // in modern browsers (!)\n\n var isZoom = event.ctrlKey || ((0,_util_Platform__WEBPACK_IMPORTED_MODULE_3__.isMac)() && event.metaKey);\n\n var isHorizontalScroll = event.shiftKey;\n\n var factor = -1 * this._scale,\n delta;\n\n if (isZoom) {\n factor *= event.deltaMode === 0 ? 0.020 : 0.32;\n } else {\n factor *= event.deltaMode === 0 ? 1.0 : 16.0;\n }\n\n if (isZoom) {\n var elementRect = element.getBoundingClientRect();\n\n var offset = {\n x: event.clientX - elementRect.left,\n y: event.clientY - elementRect.top\n };\n\n delta = (\n Math.sqrt(\n Math.pow(event.deltaY, 2) +\n Math.pow(event.deltaX, 2)\n ) * sign(event.deltaY) * factor\n );\n\n // zoom in relative to diagram {x,y} coordinates\n this.zoom(delta, offset);\n } else {\n\n if (isHorizontalScroll) {\n delta = {\n dx: factor * event.deltaY,\n dy: 0\n };\n } else {\n delta = {\n dx: factor * event.deltaX,\n dy: factor * event.deltaY\n };\n }\n\n this.scroll(delta);\n }\n};\n\n/**\n * Zoom with fixed step size.\n *\n * @param {number} delta Zoom delta (1 for zooming in, -1 for zooming out).\n * @param {Point} [position]\n */\nZoomScroll.prototype.stepZoom = function stepZoom(delta, position) {\n\n var stepSize = (0,_ZoomUtil__WEBPACK_IMPORTED_MODULE_1__.getStepSize)(RANGE, NUM_STEPS);\n\n this._zoom(delta, position, stepSize);\n};\n\n\n/**\n * Zoom in/out given a step size.\n *\n * @param {number} delta\n * @param {Point} [position]\n * @param {number} stepSize\n */\nZoomScroll.prototype._zoom = function(delta, position, stepSize) {\n var canvas = this._canvas;\n\n var direction = delta > 0 ? 1 : -1;\n\n var currentLinearZoomLevel = (0,_util_Math__WEBPACK_IMPORTED_MODULE_4__.log10)(canvas.zoom());\n\n // snap to a proximate zoom step\n var newLinearZoomLevel = Math.round(currentLinearZoomLevel / stepSize) * stepSize;\n\n // increase or decrease one zoom step in the given direction\n newLinearZoomLevel += stepSize * direction;\n\n // calculate the absolute logarithmic zoom level based on the linear zoom level\n // (e.g. 2 for an absolute x2 zoom)\n var newLogZoomLevel = Math.pow(10, newLinearZoomLevel);\n\n canvas.zoom((0,_ZoomUtil__WEBPACK_IMPORTED_MODULE_1__.cap)(RANGE, newLogZoomLevel), position);\n};\n\n\n/**\n * Toggle the zoom scroll ability via mouse wheel.\n *\n * @param {boolean} [newEnabled] new enabled state\n */\nZoomScroll.prototype.toggle = function toggle(newEnabled) {\n\n var element = this._container;\n var handleWheel = this._handleWheel;\n\n var oldEnabled = this._enabled;\n\n if (typeof newEnabled === 'undefined') {\n newEnabled = !oldEnabled;\n }\n\n // only react on actual changes\n if (oldEnabled !== newEnabled) {\n\n // add or remove wheel listener based on\n // changed enabled state\n min_dom__WEBPACK_IMPORTED_MODULE_2__.event[newEnabled ? 'bind' : 'unbind'](element, 'wheel', handleWheel, false);\n }\n\n this._enabled = newEnabled;\n\n return newEnabled;\n};\n\n\nZoomScroll.prototype._init = function(newEnabled) {\n this.toggle(newEnabled);\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js": +/*!***********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cap: () => (/* binding */ cap),\n/* harmony export */ getStepSize: () => (/* binding */ getStepSize)\n/* harmony export */ });\n/* harmony import */ var _util_Math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/Math */ \"./node_modules/diagram-js/lib/util/Math.js\");\n\n\n/**\n * Get step size for given range and number of steps.\n *\n * @param {Object} range\n * @param {number} range.min\n * @param {number} range.max\n * @param {number} steps\n */\nfunction getStepSize(range, steps) {\n\n var minLinearRange = (0,_util_Math__WEBPACK_IMPORTED_MODULE_0__.log10)(range.min),\n maxLinearRange = (0,_util_Math__WEBPACK_IMPORTED_MODULE_0__.log10)(range.max);\n\n var absoluteLinearRange = Math.abs(minLinearRange) + Math.abs(maxLinearRange);\n\n return absoluteLinearRange / steps;\n}\n\n/**\n * @param {Object} range\n * @param {number} range.min\n * @param {number} range.max\n * @param {number} scale\n */\nfunction cap(range, scale) {\n return Math.max(range.min, Math.min(range.max, scale));\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/navigation/zoomscroll/index.js": +/*!********************************************************************!*\ + !*** ./node_modules/diagram-js/lib/navigation/zoomscroll/index.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ZoomScroll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ZoomScroll */ \"./node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js\");\n\n\n\n/**\n * @type { import('didi').ModuleDeclaration }\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: [ 'zoomScroll' ],\n zoomScroll: [ 'type', _ZoomScroll__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ]\n});\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/navigation/zoomscroll/index.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/AttachUtil.js": +/*!********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/AttachUtil.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getNewAttachPoint: () => (/* binding */ getNewAttachPoint),\n/* harmony export */ getNewAttachShapeDelta: () => (/* binding */ getNewAttachShapeDelta)\n/* harmony export */ });\n/* harmony import */ var _layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var _PositionUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PositionUtil */ \"./node_modules/diagram-js/lib/util/PositionUtil.js\");\n\n\n\n\n/**\n * @typedef {import('../model/Types').Shape} Shape\n *\n * @typedef {import('../util/Types').Point} Point\n * @typedef {import('../util/Types').Rect} Rect\n */\n\n/**\n * Calculates the absolute point relative to the new element's position.\n *\n * @param {Point} point [absolute]\n * @param {Rect} oldBounds\n * @param {Rect} newBounds\n *\n * @return {Point} point [absolute]\n */\nfunction getNewAttachPoint(point, oldBounds, newBounds) {\n var oldCenter = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.center)(oldBounds),\n newCenter = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.center)(newBounds),\n oldDelta = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.delta)(point, oldCenter);\n\n var newDelta = {\n x: oldDelta.x * (newBounds.width / oldBounds.width),\n y: oldDelta.y * (newBounds.height / oldBounds.height)\n };\n\n return (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.roundPoint)({\n x: newCenter.x + newDelta.x,\n y: newCenter.y + newDelta.y\n });\n}\n\n\n/**\n * Calculates the shape's delta relative to a new position\n * of a certain element's bounds.\n *\n * @param {Shape} shape\n * @param {Rect} oldBounds\n * @param {Rect} newBounds\n *\n * @return {Point} delta\n */\nfunction getNewAttachShapeDelta(shape, oldBounds, newBounds) {\n var shapeCenter = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.center)(shape),\n oldCenter = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.center)(oldBounds),\n newCenter = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.center)(newBounds),\n shapeDelta = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.delta)(shape, shapeCenter),\n oldCenterDelta = (0,_PositionUtil__WEBPACK_IMPORTED_MODULE_0__.delta)(shapeCenter, oldCenter),\n stickyPositionDelta = getStickyPositionDelta(shapeCenter, oldBounds, newBounds);\n\n if (stickyPositionDelta) {\n return stickyPositionDelta;\n }\n\n var newCenterDelta = {\n x: oldCenterDelta.x * (newBounds.width / oldBounds.width),\n y: oldCenterDelta.y * (newBounds.height / oldBounds.height)\n };\n\n var newShapeCenter = {\n x: newCenter.x + newCenterDelta.x,\n y: newCenter.y + newCenterDelta.y\n };\n\n return (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.roundPoint)({\n x: newShapeCenter.x + shapeDelta.x - shape.x,\n y: newShapeCenter.y + shapeDelta.y - shape.y\n });\n}\n\nfunction getStickyPositionDelta(oldShapeCenter, oldBounds, newBounds) {\n var oldTRBL = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(oldBounds),\n newTRBL = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(newBounds);\n\n if (isMoved(oldTRBL, newTRBL)) {\n return null;\n }\n\n var oldOrientation = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getOrientation)(oldBounds, oldShapeCenter),\n stickyPositionDelta,\n newShapeCenter,\n newOrientation;\n\n if (oldOrientation === 'top') {\n stickyPositionDelta = {\n x: 0,\n y: newTRBL.bottom - oldTRBL.bottom\n };\n } else if (oldOrientation === 'bottom') {\n stickyPositionDelta = {\n x: 0,\n y: newTRBL.top - oldTRBL.top\n };\n } else if (oldOrientation === 'right') {\n stickyPositionDelta = {\n x: newTRBL.left - oldTRBL.left,\n y: 0\n };\n } else if (oldOrientation === 'left') {\n stickyPositionDelta = {\n x: newTRBL.right - oldTRBL.right,\n y: 0\n };\n } else {\n\n // fallback to proportional movement for corner-placed attachments\n return null;\n }\n\n newShapeCenter = {\n x: oldShapeCenter.x + stickyPositionDelta.x,\n y: oldShapeCenter.y + stickyPositionDelta.y\n };\n\n newOrientation = (0,_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getOrientation)(newBounds, newShapeCenter);\n\n if (newOrientation !== oldOrientation) {\n\n // fallback to proportional movement if orientation would otherwise change\n return null;\n }\n\n return stickyPositionDelta;\n}\n\nfunction isMoved(oldTRBL, newTRBL) {\n return isHorizontallyMoved(oldTRBL, newTRBL) || isVerticallyMoved(oldTRBL, newTRBL);\n}\n\nfunction isHorizontallyMoved(oldTRBL, newTRBL) {\n return oldTRBL.right !== newTRBL.right && oldTRBL.left !== newTRBL.left;\n}\n\nfunction isVerticallyMoved(oldTRBL, newTRBL) {\n return oldTRBL.top !== newTRBL.top && oldTRBL.bottom !== newTRBL.bottom;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/AttachUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/ClickTrap.js": +/*!*******************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/ClickTrap.js ***! + \*******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ install: () => (/* binding */ install)\n/* harmony export */ });\n/**\n * @typedef {import('../core/EventBus').default} EventBus\n */\n\nvar TRAP_PRIORITY = 5000;\n\n/**\n * Installs a click trap that prevents a ghost click following a dragging operation.\n *\n * @param {EventBus} eventBus\n * @param {string} [eventName='element.click']\n *\n * @return {() => void} a function to immediately remove the installed trap.\n */\nfunction install(eventBus, eventName) {\n\n eventName = eventName || 'element.click';\n\n function trap() {\n return false;\n }\n\n eventBus.once(eventName, TRAP_PRIORITY, trap);\n\n return function() {\n eventBus.off(eventName, trap);\n };\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/ClickTrap.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Collections.js": +/*!*********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Collections.js ***! + \*********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ add: () => (/* binding */ add),\n/* harmony export */ indexOf: () => (/* binding */ indexOf),\n/* harmony export */ remove: () => (/* binding */ remove)\n/* harmony export */ });\n/**\n * Failsafe remove an element from a collection\n *\n * @param {Array} [collection]\n * @param {Object} [element]\n *\n * @return {number} the previous index of the element\n */\nfunction remove(collection, element) {\n\n if (!collection || !element) {\n return -1;\n }\n\n var idx = collection.indexOf(element);\n\n if (idx !== -1) {\n collection.splice(idx, 1);\n }\n\n return idx;\n}\n\n/**\n * Fail save add an element to the given connection, ensuring\n * it does not yet exist.\n *\n * @param {Array} collection\n * @param {Object} element\n * @param {number} [idx]\n */\nfunction add(collection, element, idx) {\n\n if (!collection || !element) {\n return;\n }\n\n if (typeof idx !== 'number') {\n idx = -1;\n }\n\n var currentIdx = collection.indexOf(element);\n\n if (currentIdx !== -1) {\n\n if (currentIdx === idx) {\n\n // nothing to do, position has not changed\n return;\n } else {\n\n if (idx !== -1) {\n\n // remove from current position\n collection.splice(currentIdx, 1);\n } else {\n\n // already exists in collection\n return;\n }\n }\n }\n\n if (idx !== -1) {\n\n // insert at specified position\n collection.splice(idx, 0, element);\n } else {\n\n // push to end\n collection.push(element);\n }\n}\n\n\n/**\n * Fail save get the index of an element in a collection.\n *\n * @param {Array} collection\n * @param {Object} element\n *\n * @return {number} the index or -1 if collection or element do\n * not exist or the element is not contained.\n */\nfunction indexOf(collection, element) {\n\n if (!collection || !element) {\n return -1;\n }\n\n return collection.indexOf(element);\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Collections.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Cursor.js": +/*!****************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Cursor.js ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ has: () => (/* binding */ has),\n/* harmony export */ set: () => (/* binding */ set),\n/* harmony export */ unset: () => (/* binding */ unset)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\nvar CURSOR_CLS_PATTERN = /^djs-cursor-.*$/;\n\n/**\n * @param {string} mode\n */\nfunction set(mode) {\n var classes = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(document.body);\n\n classes.removeMatching(CURSOR_CLS_PATTERN);\n\n if (mode) {\n classes.add('djs-cursor-' + mode);\n }\n}\n\nfunction unset() {\n set(null);\n}\n\n/**\n * @param {string} mode\n *\n * @return {boolean}\n */\nfunction has(mode) {\n var classes = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(document.body);\n\n return classes.has('djs-cursor-' + mode);\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Cursor.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Elements.js": +/*!******************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Elements.js ***! + \******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ add: () => (/* binding */ add),\n/* harmony export */ eachElement: () => (/* binding */ eachElement),\n/* harmony export */ getBBox: () => (/* binding */ getBBox),\n/* harmony export */ getClosure: () => (/* binding */ getClosure),\n/* harmony export */ getEnclosedElements: () => (/* binding */ getEnclosedElements),\n/* harmony export */ getParents: () => (/* binding */ getParents),\n/* harmony export */ getType: () => (/* binding */ getType),\n/* harmony export */ isFrameElement: () => (/* binding */ isFrameElement),\n/* harmony export */ selfAndAllChildren: () => (/* binding */ selfAndAllChildren),\n/* harmony export */ selfAndChildren: () => (/* binding */ selfAndChildren),\n/* harmony export */ selfAndDirectChildren: () => (/* binding */ selfAndDirectChildren)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../model/Types').Connection} Connection\n * @typedef {import('../model/Types').Element} Element\n * @typedef {import('../model/Types').Shape} Shape\n *\n * @typedef {import('../util/Types').Rect} Rect\n *\n * @typedef { {\n * allShapes: Record,\n * allConnections: Record,\n * topLevel: Record,\n * enclosedConnections: Record,\n * enclosedElements: Record\n * } } Closure\n */\n\n/**\n * Get parent elements.\n *\n * @param {Element[]} elements\n *\n * @return {Element[]}\n */\nfunction getParents(elements) {\n\n // find elements that are not children of any other elements\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.filter)(elements, function(element) {\n return !(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(elements, function(e) {\n return e !== element && getParent(element, e);\n });\n });\n}\n\n\nfunction getParent(element, parent) {\n if (!parent) {\n return;\n }\n\n if (element === parent) {\n return parent;\n }\n\n if (!element.parent) {\n return;\n }\n\n return getParent(element.parent, parent);\n}\n\n\n/**\n * Adds an element to a collection and returns true if the\n * element was added.\n *\n * @param {Object[]} elements\n * @param {Object} element\n * @param {boolean} [unique]\n */\nfunction add(elements, element, unique) {\n var canAdd = !unique || elements.indexOf(element) === -1;\n\n if (canAdd) {\n elements.push(element);\n }\n\n return canAdd;\n}\n\n\n/**\n * Iterate over each element in a collection, calling the iterator function `fn`\n * with (element, index, recursionDepth).\n *\n * Recurse into all elements that are returned by `fn`.\n *\n * @param {Element|Element[]} elements\n * @param {(element: Element, index: number, depth: number) => Element[] | boolean | undefined} fn\n * @param {number} [depth] maximum recursion depth\n */\nfunction eachElement(elements, fn, depth) {\n\n depth = depth || 0;\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(elements)) {\n elements = [ elements ];\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(s, i) {\n var filter = fn(s, i, depth);\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(filter) && filter.length) {\n eachElement(filter, fn, depth + 1);\n }\n });\n}\n\n\n/**\n * Collects self + child elements up to a given depth from a list of elements.\n *\n * @param {Element|Element[]} elements the elements to select the children from\n * @param {boolean} unique whether to return a unique result set (no duplicates)\n * @param {number} maxDepth the depth to search through or -1 for infinite\n *\n * @return {Element[]} found elements\n */\nfunction selfAndChildren(elements, unique, maxDepth) {\n var result = [],\n processedChildren = [];\n\n eachElement(elements, function(element, i, depth) {\n add(result, element, unique);\n\n var children = element.children;\n\n // max traversal depth not reached yet\n if (maxDepth === -1 || depth < maxDepth) {\n\n // children exist && children not yet processed\n if (children && add(processedChildren, children, unique)) {\n return children;\n }\n }\n });\n\n return result;\n}\n\n/**\n * Return self + direct children for a number of elements\n *\n * @param {Element[]} elements to query\n * @param {boolean} [allowDuplicates] to allow duplicates in the result set\n *\n * @return {Element[]} the collected elements\n */\nfunction selfAndDirectChildren(elements, allowDuplicates) {\n return selfAndChildren(elements, !allowDuplicates, 1);\n}\n\n\n/**\n * Return self + ALL children for a number of elements\n *\n * @param {Element[]} elements to query\n * @param {boolean} [allowDuplicates] to allow duplicates in the result set\n *\n * @return {Element[]} the collected elements\n */\nfunction selfAndAllChildren(elements, allowDuplicates) {\n return selfAndChildren(elements, !allowDuplicates, -1);\n}\n\n\n/**\n * Gets the the closure for all selected elements,\n * their enclosed children and connections.\n *\n * @param {Element[]} elements\n * @param {boolean} [isTopLevel=true]\n * @param {Closure} [closure]\n *\n * @return {Closure} newClosure\n */\nfunction getClosure(elements, isTopLevel, closure) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(isTopLevel)) {\n isTopLevel = true;\n }\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(isTopLevel)) {\n closure = isTopLevel;\n isTopLevel = true;\n }\n\n\n closure = closure || {};\n\n var allShapes = copyObject(closure.allShapes),\n allConnections = copyObject(closure.allConnections),\n enclosedElements = copyObject(closure.enclosedElements),\n enclosedConnections = copyObject(closure.enclosedConnections);\n\n var topLevel = copyObject(\n closure.topLevel,\n isTopLevel && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.groupBy)(elements, function(e) { return e.id; })\n );\n\n\n function handleConnection(c) {\n if (topLevel[c.source.id] && topLevel[c.target.id]) {\n topLevel[c.id] = [ c ];\n }\n\n // not enclosed as a child, but maybe logically\n // (connecting two moved elements?)\n if (allShapes[c.source.id] && allShapes[c.target.id]) {\n enclosedConnections[c.id] = enclosedElements[c.id] = c;\n }\n\n allConnections[c.id] = c;\n }\n\n function handleElement(element) {\n\n enclosedElements[element.id] = element;\n\n if (element.waypoints) {\n\n // remember connection\n enclosedConnections[element.id] = allConnections[element.id] = element;\n } else {\n\n // remember shape\n allShapes[element.id] = element;\n\n // remember all connections\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(element.incoming, handleConnection);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(element.outgoing, handleConnection);\n\n // recurse into children\n return element.children;\n }\n }\n\n eachElement(elements, handleElement);\n\n return {\n allShapes: allShapes,\n allConnections: allConnections,\n topLevel: topLevel,\n enclosedConnections: enclosedConnections,\n enclosedElements: enclosedElements\n };\n}\n\n/**\n * Returns the surrounding bbox for all elements in\n * the array or the element primitive.\n *\n * @param {Element|Element[]} elements\n * @param {boolean} [stopRecursion=false]\n *\n * @return {Rect}\n */\nfunction getBBox(elements, stopRecursion) {\n\n stopRecursion = !!stopRecursion;\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(elements)) {\n elements = [ elements ];\n }\n\n var minX,\n minY,\n maxX,\n maxY;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n\n // If element is a connection the bbox must be computed first\n var bbox = element;\n if (element.waypoints && !stopRecursion) {\n bbox = getBBox(element.waypoints, true);\n }\n\n var x = bbox.x,\n y = bbox.y,\n height = bbox.height || 0,\n width = bbox.width || 0;\n\n if (x < minX || minX === undefined) {\n minX = x;\n }\n if (y < minY || minY === undefined) {\n minY = y;\n }\n\n if ((x + width) > maxX || maxX === undefined) {\n maxX = x + width;\n }\n if ((y + height) > maxY || maxY === undefined) {\n maxY = y + height;\n }\n });\n\n return {\n x: minX,\n y: minY,\n height: maxY - minY,\n width: maxX - minX\n };\n}\n\n\n/**\n * Returns all elements that are enclosed from the bounding box.\n *\n * * If bbox.(width|height) is not specified the method returns\n * all elements with element.x/y > bbox.x/y\n * * If only bbox.x or bbox.y is specified, method return all elements with\n * e.x > bbox.x or e.y > bbox.y\n *\n * @param {Element[]} elements List of Elements to search through\n * @param {Rect} bbox the enclosing bbox.\n *\n * @return {Element[]} enclosed elements\n */\nfunction getEnclosedElements(elements, bbox) {\n\n var filteredElements = {};\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(elements, function(element) {\n\n var e = element;\n\n if (e.waypoints) {\n e = getBBox(e);\n }\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(bbox.y) && (e.x > bbox.x)) {\n filteredElements[element.id] = element;\n }\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(bbox.x) && (e.y > bbox.y)) {\n filteredElements[element.id] = element;\n }\n if (e.x > bbox.x && e.y > bbox.y) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(bbox.width) && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(bbox.height) &&\n e.width + e.x < bbox.width + bbox.x &&\n e.height + e.y < bbox.height + bbox.y) {\n\n filteredElements[element.id] = element;\n } else if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(bbox.width) || !(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(bbox.height)) {\n filteredElements[element.id] = element;\n }\n }\n });\n\n return filteredElements;\n}\n\n/**\n * Get the element's type\n *\n * @param {Element} element\n *\n * @return {'connection' | 'shape' | 'root'}\n */\nfunction getType(element) {\n\n if ('waypoints' in element) {\n return 'connection';\n }\n\n if ('x' in element) {\n return 'shape';\n }\n\n return 'root';\n}\n\n/**\n * @param {Element} element\n *\n * @return {boolean}\n */\nfunction isFrameElement(element) {\n return !!(element && element.isFrame);\n}\n\n// helpers ///////////////////////////////\n\nfunction copyObject(src1, src2) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, src1 || {}, src2 || {});\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Elements.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/EscapeUtil.js": +/*!********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/EscapeUtil.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ escapeCSS: () => (/* binding */ escapeCSS),\n/* harmony export */ escapeHTML: () => (/* binding */ escapeHTML)\n/* harmony export */ });\n/**\n * @param {string} str\n *\n * @return {string}\n */\nfunction escapeCSS(str) {\n return CSS.escape(str);\n}\n\nvar HTML_ESCAPE_MAP = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n};\n\n/**\n * @param {string} str\n *\n * @return {string}\n */\nfunction escapeHTML(str) {\n str = '' + str;\n\n return str && str.replace(/[&<>\"']/g, function(match) {\n return HTML_ESCAPE_MAP[match];\n });\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/EscapeUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Event.js": +/*!***************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Event.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getOriginal: () => (/* binding */ getOriginal),\n/* harmony export */ stopPropagation: () => (/* binding */ stopPropagation),\n/* harmony export */ toPoint: () => (/* binding */ toPoint)\n/* harmony export */ });\n/**\n * @typedef {import('../util/Types').Point} Point\n */\n\nfunction __stopPropagation(event) {\n if (!event || typeof event.stopPropagation !== 'function') {\n return;\n }\n\n event.stopPropagation();\n}\n\n/**\n * @param {import('../core/EventBus').Event} event\n *\n * @return {Event}\n */\nfunction getOriginal(event) {\n return event.originalEvent || event.srcEvent;\n}\n\n/**\n * @param {Event|import('../core/EventBus').Event} event\n */\nfunction stopPropagation(event) {\n __stopPropagation(event);\n __stopPropagation(getOriginal(event));\n}\n\n/**\n * @param {Event} event\n *\n * @return {Point|null}\n */\nfunction toPoint(event) {\n\n if (event.pointers && event.pointers.length) {\n event = event.pointers[0];\n }\n\n if (event.touches && event.touches.length) {\n event = event.touches[0];\n }\n\n return event ? {\n x: event.clientX,\n y: event.clientY\n } : null;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Event.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Geometry.js": +/*!******************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Geometry.js ***! + \******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getMidPoint: () => (/* binding */ getMidPoint),\n/* harmony export */ pointDistance: () => (/* binding */ pointDistance),\n/* harmony export */ pointInRect: () => (/* binding */ pointInRect),\n/* harmony export */ pointsAligned: () => (/* binding */ pointsAligned),\n/* harmony export */ pointsAlignedOnAxis: () => (/* binding */ pointsAlignedOnAxis),\n/* harmony export */ pointsOnLine: () => (/* binding */ pointsOnLine)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * @typedef {import('../util/Types').Axis} Axis\n * @typedef {import('../util/Types').Point} Point\n * @typedef {import('../util/Types').Rect} Rect\n */\n\n/**\n * Computes the distance between two points.\n *\n * @param {Point} a\n * @param {Point} b\n *\n * @return {number} The distance between the two points.\n */\nfunction pointDistance(a, b) {\n if (!a || !b) {\n return -1;\n }\n\n return Math.sqrt(\n Math.pow(a.x - b.x, 2) +\n Math.pow(a.y - b.y, 2)\n );\n}\n\n\n/**\n * Returns true if the point r is on the line between p and q.\n *\n * @param {Point} p\n * @param {Point} q\n * @param {Point} r\n * @param {number} [accuracy=5] The accuracy with which to check (lower is better).\n *\n * @return {boolean}\n */\nfunction pointsOnLine(p, q, r, accuracy) {\n\n if (typeof accuracy === 'undefined') {\n accuracy = 5;\n }\n\n if (!p || !q || !r) {\n return false;\n }\n\n var val = (q.x - p.x) * (r.y - p.y) - (q.y - p.y) * (r.x - p.x),\n dist = pointDistance(p, q);\n\n // @see http://stackoverflow.com/a/907491/412190\n return Math.abs(val / dist) <= accuracy;\n}\n\n\nvar ALIGNED_THRESHOLD = 2;\n\n/**\n * Check whether two points are horizontally or vertically aligned.\n *\n * @param {Point[]|Point} a\n * @param {Point} [b]\n *\n * @return {string|boolean} If and how the two points are aligned ('h', 'v' or `false`).\n */\nfunction pointsAligned(a, b) {\n var points = Array.from(arguments).flat();\n\n const axisMap = {\n 'x': 'v',\n 'y': 'h'\n };\n\n for (const [ axis, orientation ] of Object.entries(axisMap)) {\n if (pointsAlignedOnAxis(axis, points)) {\n return orientation;\n }\n }\n\n return false;\n}\n\n/**\n * @param {Axis} axis\n * @param {Point[]} points\n *\n * @return {boolean}\n */\nfunction pointsAlignedOnAxis(axis, points) {\n const referencePoint = points[0];\n\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.every)(points, function(point) {\n return Math.abs(referencePoint[axis] - point[axis]) <= ALIGNED_THRESHOLD;\n });\n}\n\n/**\n * Returns true if the point p is inside the rectangle rect\n *\n * @param {Point} p\n * @param {Rect} rect\n * @param {number} tolerance\n *\n * @return {boolean}\n */\nfunction pointInRect(p, rect, tolerance) {\n tolerance = tolerance || 0;\n\n return p.x > rect.x - tolerance &&\n p.y > rect.y - tolerance &&\n p.x < rect.x + rect.width + tolerance &&\n p.y < rect.y + rect.height + tolerance;\n}\n\n/**\n * Returns a point in the middle of points p and q\n *\n * @param {Point} p\n * @param {Point} q\n *\n * @return {Point} The mid point between the two points.\n */\nfunction getMidPoint(p, q) {\n return {\n x: Math.round(p.x + ((q.x - p.x) / 2.0)),\n y: Math.round(p.y + ((q.y - p.y) / 2.0))\n };\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Geometry.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/GraphicsUtil.js": +/*!**********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/GraphicsUtil.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getChildren: () => (/* binding */ getChildren),\n/* harmony export */ getVisual: () => (/* binding */ getVisual)\n/* harmony export */ });\n/**\n * SVGs for elements are generated by the {@link GraphicsFactory}.\n *\n * This utility gives quick access to the important semantic\n * parts of an element.\n */\n\n/**\n * Returns the visual part of a diagram element.\n *\n * @param {SVGElement} gfx\n *\n * @return {SVGElement}\n */\nfunction getVisual(gfx) {\n return gfx.childNodes[0];\n}\n\n/**\n * Returns the children for a given diagram element.\n *\n * @param {SVGElement} gfx\n * @return {SVGElement}\n */\nfunction getChildren(gfx) {\n return gfx.parentNode.childNodes[1];\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/GraphicsUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/IdGenerator.js": +/*!*********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/IdGenerator.js ***! + \*********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IdGenerator)\n/* harmony export */ });\n/**\n * Util that provides unique IDs.\n *\n * @class\n * @constructor\n *\n * The ids can be customized via a given prefix and contain a random value to avoid collisions.\n *\n * @param {string} [prefix] a prefix to prepend to generated ids (for better readability)\n */\nfunction IdGenerator(prefix) {\n\n this._counter = 0;\n this._prefix = (prefix ? prefix + '-' : '') + Math.floor(Math.random() * 1000000000) + '-';\n}\n\n/**\n * Returns a next unique ID.\n *\n * @return {string} the id\n */\nIdGenerator.prototype.next = function() {\n return this._prefix + (++this._counter);\n};\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/IdGenerator.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/LineIntersection.js": +/*!**************************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/LineIntersection.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getApproxIntersection: () => (/* binding */ getApproxIntersection)\n/* harmony export */ });\n/* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Geometry */ \"./node_modules/diagram-js/lib/util/Geometry.js\");\n/* harmony import */ var path_intersection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path-intersection */ \"./node_modules/path-intersection/intersect.js\");\n\n\n\n\n/**\n * @typedef {import('../util/Types').Point} Point\n *\n * @typedef { {\n * bendpoint?: boolean;\n * index: number;\n * point: Point;\n * } } Intersection\n */\n\nvar round = Math.round,\n max = Math.max;\n\n\nfunction circlePath(center, r) {\n var x = center.x,\n y = center.y;\n\n return [\n [ 'M', x, y ],\n [ 'm', 0, -r ],\n [ 'a', r, r, 0, 1, 1, 0, 2 * r ],\n [ 'a', r, r, 0, 1, 1, 0, -2 * r ],\n [ 'z' ]\n ];\n}\n\nfunction linePath(points) {\n var segments = [];\n\n points.forEach(function(p, idx) {\n segments.push([ idx === 0 ? 'M' : 'L', p.x, p.y ]);\n });\n\n return segments;\n}\n\n\nvar INTERSECTION_THRESHOLD = 10;\n\n/**\n * @param {Point[]} waypoints\n * @param {Point} reference\n *\n * @return {Intersection|null}\n */\nfunction getBendpointIntersection(waypoints, reference) {\n\n var i, w;\n\n for (i = 0; (w = waypoints[i]); i++) {\n\n if ((0,_Geometry__WEBPACK_IMPORTED_MODULE_1__.pointDistance)(w, reference) <= INTERSECTION_THRESHOLD) {\n return {\n point: waypoints[i],\n bendpoint: true,\n index: i\n };\n }\n }\n\n return null;\n}\n\n/**\n * @param {Point[]} waypoints\n * @param {Point} reference\n *\n * @return {Intersection|null}\n */\nfunction getPathIntersection(waypoints, reference) {\n\n var intersections = (0,path_intersection__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(circlePath(reference, INTERSECTION_THRESHOLD), linePath(waypoints));\n\n var a = intersections[0],\n b = intersections[intersections.length - 1],\n idx;\n\n if (!a) {\n\n // no intersection\n return null;\n }\n\n if (a !== b) {\n\n if (a.segment2 !== b.segment2) {\n\n // we use the bendpoint in between both segments\n // as the intersection point\n\n idx = max(a.segment2, b.segment2) - 1;\n\n return {\n point: waypoints[idx],\n bendpoint: true,\n index: idx\n };\n }\n\n return {\n point: {\n x: (round(a.x + b.x) / 2),\n y: (round(a.y + b.y) / 2)\n },\n index: a.segment2\n };\n }\n\n return {\n point: {\n x: round(a.x),\n y: round(a.y)\n },\n index: a.segment2\n };\n}\n\n/**\n * Returns the closest point on the connection towards a given reference point.\n *\n * @param {Point[]} waypoints\n * @param {Point} reference\n *\n * @return {Intersection|null}\n */\nfunction getApproxIntersection(waypoints, reference) {\n return getBendpointIntersection(waypoints, reference) || getPathIntersection(waypoints, reference);\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/LineIntersection.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Math.js": +/*!**************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Math.js ***! + \**************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ log10: () => (/* binding */ log10),\n/* harmony export */ substract: () => (/* reexport safe */ _PositionUtil__WEBPACK_IMPORTED_MODULE_0__.delta)\n/* harmony export */ });\n/* harmony import */ var _PositionUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PositionUtil */ \"./node_modules/diagram-js/lib/util/PositionUtil.js\");\n/**\n * Get the logarithm of x with base 10.\n *\n * @param {number} x\n */\nfunction log10(x) {\n return Math.log(x) / Math.log(10);\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Math.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/ModelUtil.js": +/*!*******************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/ModelUtil.js ***! + \*******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ isConnection: () => (/* binding */ isConnection),\n/* harmony export */ isLabel: () => (/* binding */ isLabel),\n/* harmony export */ isRoot: () => (/* binding */ isRoot)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * Checks whether a value is an instance of Connection.\n *\n * @param {any} value\n *\n * @return {boolean}\n */\nfunction isConnection(value) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.has)(value, 'waypoints');\n}\n\n/**\n * Checks whether a value is an instance of Label.\n *\n * @param {any} value\n *\n * @return {boolean}\n */\nfunction isLabel(value) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.has)(value, 'labelTarget');\n}\n\n/**\n * Checks whether a value is an instance of Root.\n *\n * @param {any} value\n *\n * @return {boolean}\n */\nfunction isRoot(value) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNil)(value.parent);\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/ModelUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Mouse.js": +/*!***************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Mouse.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ hasPrimaryModifier: () => (/* binding */ hasPrimaryModifier),\n/* harmony export */ hasSecondaryModifier: () => (/* binding */ hasSecondaryModifier),\n/* harmony export */ isAuxiliaryButton: () => (/* binding */ isAuxiliaryButton),\n/* harmony export */ isButton: () => (/* binding */ isButton),\n/* harmony export */ isMac: () => (/* reexport safe */ _Platform__WEBPACK_IMPORTED_MODULE_0__.isMac),\n/* harmony export */ isPrimaryButton: () => (/* binding */ isPrimaryButton),\n/* harmony export */ isSecondaryButton: () => (/* binding */ isSecondaryButton)\n/* harmony export */ });\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Event */ \"./node_modules/diagram-js/lib/util/Event.js\");\n/* harmony import */ var _Platform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Platform */ \"./node_modules/diagram-js/lib/util/Platform.js\");\n\n\n\n\n\n\n/**\n * @param {MouseEvent} event\n * @param {string} button\n *\n * @return {boolean}\n */\nfunction isButton(event, button) {\n return ((0,_Event__WEBPACK_IMPORTED_MODULE_1__.getOriginal)(event) || event).button === button;\n}\n\n/**\n * @param {MouseEvent} event\n *\n * @return {boolean}\n */\nfunction isPrimaryButton(event) {\n\n // button === 0 -> left áka primary mouse button\n return isButton(event, 0);\n}\n\n/**\n * @param {MouseEvent} event\n *\n * @return {boolean}\n */\nfunction isAuxiliaryButton(event) {\n\n // button === 1 -> auxiliary áka wheel button\n return isButton(event, 1);\n}\n\n/**\n * @param {MouseEvent} event\n *\n * @return {boolean}\n */\nfunction isSecondaryButton(event) {\n\n // button === 2 -> right áka secondary button\n return isButton(event, 2);\n}\n\n/**\n * @param {MouseEvent} event\n *\n * @return {boolean}\n */\nfunction hasPrimaryModifier(event) {\n var originalEvent = (0,_Event__WEBPACK_IMPORTED_MODULE_1__.getOriginal)(event) || event;\n\n if (!isPrimaryButton(event)) {\n return false;\n }\n\n // Use cmd as primary modifier key for mac OS\n if ((0,_Platform__WEBPACK_IMPORTED_MODULE_0__.isMac)()) {\n return originalEvent.metaKey;\n } else {\n return originalEvent.ctrlKey;\n }\n}\n\n/**\n * @param {MouseEvent} event\n *\n * @return {boolean}\n */\nfunction hasSecondaryModifier(event) {\n var originalEvent = (0,_Event__WEBPACK_IMPORTED_MODULE_1__.getOriginal)(event) || event;\n\n return isPrimaryButton(event) && originalEvent.shiftKey;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Mouse.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Platform.js": +/*!******************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Platform.js ***! + \******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ isMac: () => (/* binding */ isMac)\n/* harmony export */ });\nfunction isMac() {\n return (/mac/i).test(navigator.platform);\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Platform.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/PositionUtil.js": +/*!**********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/PositionUtil.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ center: () => (/* binding */ center),\n/* harmony export */ delta: () => (/* binding */ delta)\n/* harmony export */ });\n/**\n * @typedef {import('../util/Types').Point} Point\n * @typedef {import('../util/Types').Rect} Rect\n */\n\n/**\n * @param {Rect} bounds\n * @return {Point}\n */\nfunction center(bounds) {\n return {\n x: bounds.x + (bounds.width / 2),\n y: bounds.y + (bounds.height / 2)\n };\n}\n\n\n/**\n * @param {Point} a\n * @param {Point} b\n * @return {Point}\n */\nfunction delta(a, b) {\n return {\n x: a.x - b.x,\n y: a.y - b.y\n };\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/PositionUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Removal.js": +/*!*****************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Removal.js ***! + \*****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ saveClear: () => (/* binding */ saveClear)\n/* harmony export */ });\n/**\n * Remove from the beginning of a collection until it is empty.\n *\n * This is a null-safe operation that ensures elements\n * are being removed from the given collection until the\n * collection is empty.\n *\n * The implementation deals with the fact that a remove operation\n * may touch, i.e. remove multiple elements in the collection\n * at a time.\n *\n * @param {Object[]} [collection]\n * @param {(element: Object) => void} removeFn\n *\n * @return {Object[]} the cleared collection\n */\nfunction saveClear(collection, removeFn) {\n\n if (typeof removeFn !== 'function') {\n throw new Error('removeFn iterator must be a function');\n }\n\n if (!collection) {\n return;\n }\n\n var e;\n\n while ((e = collection[0])) {\n removeFn(e);\n }\n\n return collection;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Removal.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/RenderUtil.js": +/*!********************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/RenderUtil.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ componentsToPath: () => (/* binding */ componentsToPath),\n/* harmony export */ createLine: () => (/* binding */ createLine),\n/* harmony export */ toSVGPoints: () => (/* binding */ toSVGPoints),\n/* harmony export */ updateLine: () => (/* binding */ updateLine)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\n\n\n\n\n/**\n * @typedef {(string|number)[]} Component\n *\n * @typedef {import('../util/Types').Point} Point\n */\n\n/**\n * @param {Component[] | Component[][]} elements\n *\n * @return {string}\n */\nfunction componentsToPath(elements) {\n return elements.flat().join(',').replace(/,?([A-z]),?/g, '$1');\n}\n\n/**\n * @param {Point[]} points\n *\n * @return {string}\n */\nfunction toSVGPoints(points) {\n var result = '';\n\n for (var i = 0, p; (p = points[i]); i++) {\n result += p.x + ',' + p.y + ' ';\n }\n\n return result;\n}\n\n/**\n * @param {Point} point\n *\n * @return {Component[]}\n */\nfunction move(point) {\n return [ 'M', point.x, point.y ];\n}\n\n/**\n * @param {Point} point\n *\n * @return {Component[]}\n */\nfunction lineTo(point) {\n return [ 'L', point.x, point.y ];\n}\n\n/**\n * @param {Point} p1\n * @param {Point} p2\n * @param {Point} p3\n *\n * @return {Component[]}\n */\nfunction curveTo(p1, p2, p3) {\n return [ 'C', p1.x, p1.y, p2.x, p2.y, p3.x, p3.y ];\n}\n\n/**\n * @param {Point[]} waypoints\n * @param {number} [cornerRadius]\n * @return {Component[][]}\n */\nfunction drawPath(waypoints, cornerRadius) {\n const pointCount = waypoints.length;\n\n const path = [ move(waypoints[0]) ];\n\n for (let i = 1; i < pointCount; i++) {\n\n const pointBefore = waypoints[i - 1];\n const point = waypoints[i];\n const pointAfter = waypoints[i + 1];\n\n if (!pointAfter || !cornerRadius) {\n path.push(lineTo(point));\n\n continue;\n }\n\n const effectiveRadius = Math.min(\n cornerRadius,\n vectorLength(point.x - pointBefore.x, point.y - pointBefore.y),\n vectorLength(pointAfter.x - point.x, pointAfter.y - point.y)\n );\n\n if (!effectiveRadius) {\n path.push(lineTo(point));\n\n continue;\n }\n\n const beforePoint = getPointAtLength(point, pointBefore, effectiveRadius);\n const beforePoint2 = getPointAtLength(point, pointBefore, effectiveRadius * .5);\n\n const afterPoint = getPointAtLength(point, pointAfter, effectiveRadius);\n const afterPoint2 = getPointAtLength(point, pointAfter, effectiveRadius * .5);\n\n path.push(lineTo(beforePoint));\n path.push(curveTo(beforePoint2, afterPoint2, afterPoint));\n }\n\n return path;\n}\n\nfunction getPointAtLength(start, end, length) {\n\n const deltaX = end.x - start.x;\n const deltaY = end.y - start.y;\n\n const totalLength = vectorLength(deltaX, deltaY);\n\n const percent = length / totalLength;\n\n return {\n x: start.x + deltaX * percent,\n y: start.y + deltaY * percent\n };\n}\n\nfunction vectorLength(x, y) {\n return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n}\n\n/**\n * @param {Point[]} points\n * @param {number|Object} [attrs]\n * @param {number} [radius]\n *\n * @return {SVGElement}\n */\nfunction createLine(points, attrs, radius) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(attrs)) {\n radius = attrs;\n attrs = null;\n }\n\n if (!attrs) {\n attrs = {};\n }\n\n const line = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('path', attrs);\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(radius)) {\n line.dataset.cornerRadius = String(radius);\n }\n\n return updateLine(line, points);\n}\n\n/**\n * @param {SVGElement} gfx\n * @param {Point[]} points\n *\n * @return {SVGElement}\n */\nfunction updateLine(gfx, points) {\n\n const cornerRadius = parseInt(gfx.dataset.cornerRadius, 10) || 0;\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(gfx, {\n d: componentsToPath(drawPath(points, cornerRadius))\n });\n\n return gfx;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/RenderUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/SvgTransformUtil.js": +/*!**************************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/SvgTransformUtil.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ rotate: () => (/* binding */ rotate),\n/* harmony export */ scale: () => (/* binding */ scale),\n/* harmony export */ transform: () => (/* binding */ transform),\n/* harmony export */ translate: () => (/* binding */ translate)\n/* harmony export */ });\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\r\n\r\n\r\n/**\r\n * @param {SVGElement} gfx\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} [angle]\r\n * @param {number} [amount]\r\n */\r\nfunction transform(gfx, x, y, angle, amount) {\r\n var translate = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.createTransform)();\r\n translate.setTranslate(x, y);\r\n\r\n var rotate = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.createTransform)();\r\n rotate.setRotate(angle || 0, 0, 0);\r\n\r\n var scale = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.createTransform)();\r\n scale.setScale(amount || 1, amount || 1);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.transform)(gfx, [ translate, rotate, scale ]);\r\n}\r\n\r\n\r\n/**\r\n * @param {SVGElement} gfx\r\n * @param {number} x\r\n * @param {number} y\r\n */\r\nfunction translate(gfx, x, y) {\r\n var translate = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.createTransform)();\r\n translate.setTranslate(x, y);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.transform)(gfx, translate);\r\n}\r\n\r\n\r\n/**\r\n * @param {SVGElement} gfx\r\n * @param {number} angle\r\n */\r\nfunction rotate(gfx, angle) {\r\n var rotate = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.createTransform)();\r\n rotate.setRotate(angle, 0, 0);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.transform)(gfx, rotate);\r\n}\r\n\r\n\r\n/**\r\n * @param {SVGElement} gfx\r\n * @param {number} amount\r\n */\r\nfunction scale(gfx, amount) {\r\n var scale = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.createTransform)();\r\n scale.setScale(amount, amount);\r\n\r\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.transform)(gfx, scale);\r\n}\r\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/SvgTransformUtil.js?"); + +/***/ }), + +/***/ "./node_modules/diagram-js/lib/util/Text.js": +/*!**************************************************!*\ + !*** ./node_modules/diagram-js/lib/util/Text.js ***! + \**************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Text)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\n\n\n\n\n\n/**\n * @typedef {import('../util/Types').Dimensions} Dimensions\n *\n * @typedef { {\n * top: number;\n * left: number;\n * right: number;\n * bottom: number;\n * } } Padding\n *\n * @typedef { number | Partial } PaddingConfig\n *\n * @typedef { {\n * horizontal: 'center' | 'left' | 'right';\n * vertical: 'top' | 'middle';\n * } } Alignment\n *\n * @typedef { 'center-middle' | 'center-top' } AlignmentConfig\n *\n * @typedef { Partial<{\n * align: AlignmentConfig;\n * style: Record;\n * padding: PaddingConfig;\n * }> } BaseTextConfig\n *\n * @typedef { BaseTextConfig & Partial<{\n * size: Dimensions;\n * }> } TextConfig\n *\n * @typedef { BaseTextConfig & Partial<{\n * box: Dimensions;\n * fitBox: boolean;\n * }> } TextLayoutConfig\n *\n * @typedef { Dimensions & {\n * text: string;\n * } } LineDescriptor\n */\n\nvar DEFAULT_BOX_PADDING = 0;\n\nvar DEFAULT_LABEL_SIZE = {\n width: 150,\n height: 50\n};\n\n\n/**\n * @param {AlignmentConfig} align\n * @return {Alignment}\n */\nfunction parseAlign(align) {\n\n var parts = align.split('-');\n\n return {\n horizontal: parts[0] || 'center',\n vertical: parts[1] || 'top'\n };\n}\n\n/**\n * @param {PaddingConfig} padding\n *\n * @return {Padding}\n */\nfunction parsePadding(padding) {\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(padding)) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({ top: 0, left: 0, right: 0, bottom: 0 }, padding);\n } else {\n return {\n top: padding,\n left: padding,\n right: padding,\n bottom: padding\n };\n }\n}\n\n/**\n * @param {string} text\n * @param {SVGTextElement} fakeText\n *\n * @return {import('../util/Types').Dimensions}\n */\nfunction getTextBBox(text, fakeText) {\n\n fakeText.textContent = text;\n\n var textBBox;\n\n try {\n var bbox,\n emptyLine = text === '';\n\n // add dummy text, when line is empty to\n // determine correct height\n fakeText.textContent = emptyLine ? 'dummy' : text;\n\n textBBox = fakeText.getBBox();\n\n // take text rendering related horizontal\n // padding into account\n bbox = {\n width: textBBox.width + textBBox.x * 2,\n height: textBBox.height\n };\n\n if (emptyLine) {\n\n // correct width\n bbox.width = 0;\n }\n\n return bbox;\n } catch (e) {\n return { width: 0, height: 0 };\n }\n}\n\n\n/**\n * Layout the next line and return the layouted element.\n *\n * Alters the lines passed.\n *\n * @param {string[]} lines\n * @param {number} maxWidth\n * @param {SVGTextElement} fakeText\n *\n * @return {LineDescriptor} the line descriptor\n */\nfunction layoutNext(lines, maxWidth, fakeText) {\n\n var originalLine = lines.shift(),\n fitLine = originalLine;\n\n var textBBox;\n\n for (;;) {\n textBBox = getTextBBox(fitLine, fakeText);\n\n textBBox.width = fitLine ? textBBox.width : 0;\n\n // try to fit\n if (fitLine === ' ' || fitLine === '' || textBBox.width < Math.round(maxWidth) || fitLine.length < 2) {\n return fit(lines, fitLine, originalLine, textBBox);\n }\n\n fitLine = shortenLine(fitLine, textBBox.width, maxWidth);\n }\n}\n\n/**\n * @param {string[]} lines\n * @param {string} fitLine\n * @param {string} originalLine\n * @param {Dimensions} textBBox\n *\n * @return {LineDescriptor}\n */\nfunction fit(lines, fitLine, originalLine, textBBox) {\n if (fitLine.length < originalLine.length) {\n var remainder = originalLine.slice(fitLine.length).trim();\n\n lines.unshift(remainder);\n }\n\n return {\n width: textBBox.width,\n height: textBBox.height,\n text: fitLine\n };\n}\n\nvar SOFT_BREAK = '\\u00AD';\n\n\n/**\n * Shortens a line based on spacing and hyphens.\n * Returns the shortened result on success.\n *\n * @param {string} line\n * @param {number} maxLength the maximum characters of the string\n *\n * @return {string} the shortened string\n */\nfunction semanticShorten(line, maxLength) {\n\n var parts = line.split(/(\\s|-|\\u00AD)/g),\n part,\n shortenedParts = [],\n length = 0;\n\n // try to shorten via break chars\n if (parts.length > 1) {\n\n while ((part = parts.shift())) {\n if (part.length + length < maxLength) {\n shortenedParts.push(part);\n length += part.length;\n } else {\n\n // remove previous part, too if hyphen does not fit anymore\n if (part === '-' || part === SOFT_BREAK) {\n shortenedParts.pop();\n }\n\n break;\n }\n }\n }\n\n var last = shortenedParts[shortenedParts.length - 1];\n\n // translate trailing soft break to actual hyphen\n if (last && last === SOFT_BREAK) {\n shortenedParts[shortenedParts.length - 1] = '-';\n }\n\n return shortenedParts.join('');\n}\n\n\n/**\n * @param {string} line\n * @param {number} width\n * @param {number} maxWidth\n *\n * @return {string}\n */\nfunction shortenLine(line, width, maxWidth) {\n var length = Math.max(line.length * (maxWidth / width), 1);\n\n // try to shorten semantically (i.e. based on spaces and hyphens)\n var shortenedLine = semanticShorten(line, length);\n\n if (!shortenedLine) {\n\n // force shorten by cutting the long word\n shortenedLine = line.slice(0, Math.max(Math.round(length - 1), 1));\n }\n\n return shortenedLine;\n}\n\n\n/**\n * @return {SVGSVGElement}\n */\nfunction getHelperSvg() {\n var helperSvg = document.getElementById('helper-svg');\n\n if (!helperSvg) {\n helperSvg = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('svg');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(helperSvg, {\n id: 'helper-svg'\n });\n\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.assignStyle)(helperSvg, {\n visibility: 'hidden',\n position: 'fixed',\n width: 0,\n height: 0\n });\n\n document.body.appendChild(helperSvg);\n }\n\n return helperSvg;\n}\n\n\n/**\n * Creates a new label utility\n *\n * @param {TextConfig} [config]\n */\nfunction Text(config) {\n\n this._config = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, {\n size: DEFAULT_LABEL_SIZE,\n padding: DEFAULT_BOX_PADDING,\n style: {},\n align: 'center-top'\n }, config || {});\n}\n\n/**\n * Returns the layouted text as an SVG element.\n *\n * @param {string} text\n * @param {TextLayoutConfig} options\n *\n * @return {SVGElement}\n */\nText.prototype.createText = function(text, options) {\n return this.layoutText(text, options).element;\n};\n\n/**\n * Returns a labels layouted dimensions.\n *\n * @param {string} text to layout\n * @param {TextLayoutConfig} options\n *\n * @return {Dimensions}\n */\nText.prototype.getDimensions = function(text, options) {\n return this.layoutText(text, options).dimensions;\n};\n\n/**\n * Creates and returns a label and its bounding box.\n *\n * @param {string} text the text to render on the label\n * @param {TextLayoutConfig} options\n *\n * @return { {\n * element: SVGElement,\n * dimensions: Dimensions\n * } }\n */\nText.prototype.layoutText = function(text, options) {\n var box = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, this._config.size, options.box),\n style = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, this._config.style, options.style),\n align = parseAlign(options.align || this._config.align),\n padding = parsePadding(options.padding !== undefined ? options.padding : this._config.padding),\n fitBox = options.fitBox || false;\n\n var lineHeight = getLineHeight(style);\n\n // we split text by lines and normalize\n // {soft break} + {line break} => { line break }\n var lines = text.split(/\\u00AD?\\r?\\n/),\n layouted = [];\n\n var maxWidth = box.width - padding.left - padding.right;\n\n // ensure correct rendering by attaching helper text node to invisible SVG\n var helperText = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('text');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(helperText, { x: 0, y: 0 });\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(helperText, style);\n\n var helperSvg = getHelperSvg();\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(helperSvg, helperText);\n\n while (lines.length) {\n layouted.push(layoutNext(lines, maxWidth, helperText));\n }\n\n if (align.vertical === 'middle') {\n padding.top = padding.bottom = 0;\n }\n\n var totalHeight = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(layouted, function(sum, line, idx) {\n return sum + (lineHeight || line.height);\n }, 0) + padding.top + padding.bottom;\n\n var maxLineWidth = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(layouted, function(sum, line, idx) {\n return line.width > sum ? line.width : sum;\n }, 0);\n\n // the y position of the next line\n var y = padding.top;\n\n if (align.vertical === 'middle') {\n y += (box.height - totalHeight) / 2;\n }\n\n // magic number initial offset\n y -= (lineHeight || layouted[0].height) / 4;\n\n\n var textElement = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('text');\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(textElement, style);\n\n // layout each line taking into account that parent\n // shape might resize to fit text size\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(layouted, function(line) {\n\n var x;\n\n y += (lineHeight || line.height);\n\n switch (align.horizontal) {\n case 'left':\n x = padding.left;\n break;\n\n case 'right':\n x = ((fitBox ? maxLineWidth : maxWidth)\n - padding.right - line.width);\n break;\n\n default:\n\n // aka center\n x = Math.max((((fitBox ? maxLineWidth : maxWidth)\n - line.width) / 2 + padding.left), 0);\n }\n\n var tspan = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.create)('tspan');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.attr)(tspan, { x: x, y: y });\n\n tspan.textContent = line.text;\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.append)(textElement, tspan);\n });\n\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_1__.remove)(helperText);\n\n var dimensions = {\n width: maxLineWidth,\n height: totalHeight\n };\n\n return {\n dimensions: dimensions,\n element: textElement\n };\n};\n\n\nfunction getLineHeight(style) {\n if ('fontSize' in style && 'lineHeight' in style) {\n return style.lineHeight * parseInt(style.fontSize, 10);\n }\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/diagram-js/lib/util/Text.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/Editor.js": +/*!************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/Editor.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Editor: () => (/* binding */ Editor)\n/* harmony export */ });\n/* harmony import */ var _bpmn_io_dmn_variable_resolver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bpmn-io/dmn-variable-resolver */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/features/data-types */ \"./node_modules/dmn-js-shared/lib/features/data-types/index.js\");\n/* harmony import */ var _Viewer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Viewer */ \"./node_modules/dmn-js-boxed-expression/lib/Viewer.js\");\n/* harmony import */ var _features_keyboard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/keyboard */ \"./node_modules/dmn-js-boxed-expression/lib/features/keyboard/index.js\");\n/* harmony import */ var _features_modeling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/modeling */ \"./node_modules/dmn-js-boxed-expression/lib/features/modeling/index.js\");\n/* harmony import */ var _features_literal_expression_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/literal-expression/editor */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/editor.js\");\n/* harmony import */ var _features_function_definition_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./features/function-definition/editor */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/editor.js\");\n/* harmony import */ var _features_element_properties_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/element-properties/editor */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-properties/editor.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./core */ \"./node_modules/dmn-js-boxed-expression/lib/core/index.js\");\n/* harmony import */ var _features_element_variable_editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./features/element-variable/editor */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/editor.js\");\n/* harmony import */ var _features_editor_actions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./features/editor-actions */ \"./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\nclass Editor extends _Viewer__WEBPACK_IMPORTED_MODULE_3__.Viewer {\n getModules() {\n return [...super.getModules(), _core__WEBPACK_IMPORTED_MODULE_9__[\"default\"], _features_modeling__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_editor_actions__WEBPACK_IMPORTED_MODULE_11__[\"default\"], _features_element_properties_editor__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _features_function_definition_editor__WEBPACK_IMPORTED_MODULE_7__[\"default\"], dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _features_literal_expression_editor__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _features_keyboard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _features_element_variable_editor__WEBPACK_IMPORTED_MODULE_10__[\"default\"], _bpmn_io_dmn_variable_resolver__WEBPACK_IMPORTED_MODULE_0__.DmnVariableResolverModule];\n }\n}\n//# sourceMappingURL=Editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/Editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/Viewer.js": +/*!************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/Viewer.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Viewer: () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_base_viewer_Viewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/base/viewer/Viewer */ \"./node_modules/dmn-js-shared/lib/base/viewer/Viewer.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./render */ \"./node_modules/dmn-js-boxed-expression/lib/render/index.js\");\n/* harmony import */ var _features_powered_by__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./features/powered-by */ \"./node_modules/dmn-js-boxed-expression/lib/features/powered-by/index.js\");\n/* harmony import */ var _features_literal_expression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./features/literal-expression */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/index.js\");\n/* harmony import */ var _features_function_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/function-definition */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/index.js\");\n/* harmony import */ var _features_view_drd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/view-drd */ \"./node_modules/dmn-js-boxed-expression/lib/features/view-drd/index.js\");\n/* harmony import */ var _features_element_properties__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/element-properties */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-properties/index.js\");\n/* harmony import */ var _features_element_logic__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./features/element-logic */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-logic/index.js\");\n/* harmony import */ var _features_element_variable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/element-variable */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @typedef {import('dmn-js-shared/lib/base/View).OpenResult} OpenResult\r\n */\n\n/**\r\n * @typedef {import('dmn-js-shared/lib/base/View).OpenError} OpenError\r\n */\n\nclass Viewer extends dmn_js_shared_lib_base_viewer_Viewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor(options = {}) {\n const container = Viewer._createContainer();\n super((0,min_dash__WEBPACK_IMPORTED_MODULE_9__.assign)(options, {\n renderer: {\n container\n }\n }));\n this._container = container;\n }\n\n /**\r\n * Open diagram element.\r\n *\r\n * @param {ModdleElement} element\r\n * @returns {Promise} Resolves with {OpenResult} when successful\r\n * or rejects with {OpenError}\r\n */\n open(element) {\n const eventBus = this.get('eventBus');\n return new Promise((resolve, reject) => {\n let err;\n\n // use try/catch to not swallow synchronous exceptions\n // that may be raised during model parsing\n try {\n const rootElement = this.getRootElement();\n if (rootElement) {\n // clear existing literal expression\n this.clear();\n\n // unmount first\n eventBus.fire('renderer.unmount');\n }\n\n // update literal expression\n this._setRootElement(element);\n\n // let others know about import\n eventBus.fire('import', element);\n eventBus.fire('renderer.mount');\n } catch (e) {\n err = e;\n }\n\n // handle synchronously thrown exception\n if (err) {\n err.warnings = err.warnings || [];\n reject(err);\n } else {\n resolve({\n warnings: []\n });\n }\n });\n }\n\n /**\r\n * Initialize the viewer, returning { modules: [], config }.\r\n *\r\n * @param {Object} options\r\n *\r\n * @return {Object} init config\r\n */\n _init(options) {\n let {\n modules,\n additionalModules,\n ...config\n } = options;\n let baseModules = modules || this.getModules();\n let extraModules = additionalModules || [];\n let staticModules = [{\n viewer: ['value', this]\n }];\n let allModules = [...baseModules, ...extraModules, ...staticModules];\n return {\n modules: allModules,\n config\n };\n }\n\n /**\r\n * Register an event listener\r\n *\r\n * Remove a previously added listener via {@link #off(event, callback)}.\r\n *\r\n * @param {string} event\r\n * @param {number} [priority]\r\n * @param {Function} callback\r\n * @param {Object} [that]\r\n */\n on(event, priority, callback, target) {\n return this.get('eventBus').on(event, priority, callback, target);\n }\n\n /**\r\n * De-register an event listener\r\n *\r\n * @param {string} event\r\n * @param {Function} callback\r\n */\n off(event, callback) {\n this.get('eventBus').off(event, callback);\n }\n\n /**\r\n * Emit an event on the underlying {@link EventBus}\r\n *\r\n * @param {string} type\r\n * @param {Object} event\r\n *\r\n * @return {Object} event processing result (if any)\r\n */\n _emit(type, event) {\n return this.get('eventBus').fire(type, event);\n }\n\n /**\r\n * Returns the currently displayed element.\r\n *\r\n * @return {ModdleElement}\r\n */\n getRootElement() {\n return this._root;\n }\n _setRootElement(element) {\n this._root = element;\n }\n\n /**\r\n * Attach viewer to given parent node.\r\n *\r\n * @param {Element} parentNode\r\n */\n attachTo(parentNode) {\n if (!parentNode) {\n throw new Error('parentNode required');\n }\n\n // ensure we detach from the\n // previous, old parent\n this.detach();\n parentNode.appendChild(this._container);\n this._emit('attach', {});\n }\n\n /**\r\n * Detach viewer from parent node, if attached.\r\n */\n detach() {\n const container = this._container,\n parentNode = container.parentNode;\n if (!parentNode) {\n return;\n }\n this._emit('detach', {});\n (0,min_dom__WEBPACK_IMPORTED_MODULE_10__.remove)(container);\n }\n destroy() {\n super.destroy();\n this.detach();\n }\n getModules() {\n return [_render__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_11__[\"default\"], _features_powered_by__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _features_view_drd__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_element_properties__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _features_element_logic__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _features_function_definition__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_literal_expression__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _features_element_variable__WEBPACK_IMPORTED_MODULE_8__[\"default\"]];\n }\n static _createContainer() {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_10__.domify)('
');\n }\n}\n//# sourceMappingURL=Viewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/Viewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/components/EditButton.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/components/EditButton.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EditButton: () => (/* binding */ EditButton)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\nfunction EditButton({\n label,\n onClick\n}) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"edit-button dmn-icon-edit\", null, 1, {\n \"aria-label\": label,\n \"type\": \"button\",\n \"onClick\": onClick\n });\n}\n//# sourceMappingURL=EditButton.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/components/EditButton.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/core/DmnFactory.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/core/DmnFactory.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DmnFactory: () => (/* binding */ DmnFactory)\n/* harmony export */ });\nclass DmnFactory {\n static $inject = ['moddle'];\n constructor(moddle) {\n this._moddle = moddle;\n }\n create(type, attrs = {}) {\n return this._moddle.create(type, attrs);\n }\n}\n//# sourceMappingURL=DmnFactory.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/core/DmnFactory.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/core/ElementRegistry.js": +/*!**************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/core/ElementRegistry.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementRegistry)\n/* harmony export */ });\n/**\n * A single decision element registry.\n *\n * The sole purpose of this service is to provide the necessary API\n * to serve shared components, i.e. the UpdatePropertiesHandler.\n */\nclass ElementRegistry {\n constructor(viewer, eventBus) {\n this._eventBus = eventBus;\n this._viewer = viewer;\n }\n updateId(element, newId) {\n const rootElement = this._viewer.getRootElement();\n if (element !== rootElement) {\n throw new Error('element !== rootElement');\n }\n this._eventBus.fire('element.updateId', {\n element: element,\n newId: newId\n });\n element.id = newId;\n }\n}\nElementRegistry.$inject = ['viewer', 'eventBus'];\n//# sourceMappingURL=ElementRegistry.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/core/ElementRegistry.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/core/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/core/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementRegistry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementRegistry */ \"./node_modules/dmn-js-boxed-expression/lib/core/ElementRegistry.js\");\n/* harmony import */ var _DmnFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DmnFactory */ \"./node_modules/dmn-js-boxed-expression/lib/core/DmnFactory.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['elementRegistry'],\n elementRegistry: ['type', _ElementRegistry__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n dmnFactory: ['type', _DmnFactory__WEBPACK_IMPORTED_MODULE_1__.DmnFactory]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/core/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/EditorActions.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/EditorActions.js ***! + \*******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditorActions)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst NOT_REGISTERED_ERROR = 'is not a registered action',\n IS_REGISTERED_ERROR = 'is already registered';\n\n/**\n * An interface that provides access to modeling actions by decoupling\n * the one who requests the action to be triggered and the trigger itself.\n *\n * It's possible to add new actions by registering them with ´registerAction´ and likewise\n * unregister existing ones with ´unregisterAction´.\n *\n */\nclass EditorActions {\n constructor(commandStack, eventBus) {\n this._actions = {\n undo() {\n commandStack.undo();\n },\n redo() {\n commandStack.redo();\n }\n };\n }\n\n /**\n * Triggers a registered action\n *\n * @param {string} action\n * @param {Object} opts\n *\n * @return {Unknown} Returns what the registered listener returns\n */\n trigger(action, opts) {\n if (!this._actions[action]) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n return this._actions[action](opts);\n }\n\n /**\n * Registers a collections of actions.\n * The key of the object will be the name of the action.\n *\n * @param {Object} actions\n */\n register(actions, listener) {\n if (typeof actions === 'string') {\n return this._registerAction(actions, listener);\n }\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(actions, (listener, action) => {\n this._registerAction(action, listener);\n }, this);\n }\n\n /**\n * Registers a listener to an action key\n *\n * @param {string} action\n * @param {Function} listener\n */\n _registerAction(action, listener) {\n if (this.isRegistered(action)) {\n throw error(action, IS_REGISTERED_ERROR);\n }\n this._actions[action] = listener;\n }\n\n /**\n * Unregister an existing action\n *\n * @param {string} action\n */\n unregister(action) {\n if (!this.isRegistered(action)) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n this._actions[action] = undefined;\n }\n\n /**\n * Checks wether the given action is registered\n *\n * @param {string} action\n *\n * @return {boolean}\n */\n isRegistered(action) {\n return !!this._actions[action];\n }\n}\nEditorActions.$inject = ['commandStack', 'eventBus'];\n\n// helpers /////////////\n\nfunction error(action, message) {\n return new Error(action + ' ' + message);\n}\n//# sourceMappingURL=EditorActions.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/EditorActions.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/index.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/index.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _EditorActions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EditorActions */ \"./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/EditorActions.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['editorActions'],\n editorActions: ['type', _EditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/editor-actions/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-logic/ElementLogic.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-logic/ElementLogic.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementLogic)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nconst FALLBACK_PRIORITY = 100;\nclass ElementLogic {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('body', () => {\n return LogicComponent;\n });\n components.onGetComponent('expression', FALLBACK_PRIORITY, () => FallbackExpression);\n }\n}\nfunction LogicComponent(_, {\n injector\n}) {\n const components = injector.get('components');\n const viewer = injector.get('viewer');\n const rootElement = viewer.getRootElement();\n const expression = getLogic(rootElement);\n const Expression = components.getComponent('expression', {\n expression\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Expression, {\n \"expression\": expression\n });\n}\nfunction getLogic(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:Decision')) {\n return element.get('decisionLogic');\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:BusinessKnowledgeModel')) {\n return element.get('encapsulatedLogic');\n }\n}\nfunction FallbackExpression({\n expression\n}) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Expression of type \"), expression.$type, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\" is not supported.\")], 0, {\n \"style\": \"color:red;\"\n }), 2);\n}\n//# sourceMappingURL=ElementLogic.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-logic/ElementLogic.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-logic/index.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-logic/index.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementLogic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementLogic */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-logic/ElementLogic.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['elementLogic'],\n elementLogic: ['type', _ElementLogic__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-logic/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementProperties.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementProperties.js ***! + \***************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementProperties)\n/* harmony export */ });\n/* harmony import */ var _components_ElementPropertiesComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ElementPropertiesComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesComponent.js\");\n\nclass ElementProperties {\n constructor(components) {\n components.onGetComponent('header', () => _components_ElementPropertiesComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n }\n}\nElementProperties.$inject = ['components'];\n//# sourceMappingURL=ElementProperties.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementProperties.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementPropertiesEditor.js": +/*!*********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementPropertiesEditor.js ***! + \*********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementPropertiesEditor)\n/* harmony export */ });\n/* harmony import */ var _components_ElementPropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ElementPropertiesEditorComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesEditorComponent.js\");\n\nclass ElementPropertiesEditor {\n constructor(components) {\n components.onGetComponent('header', () => {\n return _components_ElementPropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n }\n}\nElementPropertiesEditor.$inject = ['components'];\n//# sourceMappingURL=ElementPropertiesEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementPropertiesEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesComponent.js": +/*!***********************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesComponent.js ***! + \***********************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementPropertiesComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\nfunction ElementPropertiesComponent(_, context) {\n const viewer = context.injector.get('viewer');\n\n // there is only one single element\n const {\n name\n } = viewer.getRootElement();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-properties\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h2\", \"element-name\", name, 0), 2);\n}\n//# sourceMappingURL=ElementPropertiesComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesEditorComponent.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesEditorComponent.js ***! + \*****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementPropertiesEditorComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n/* harmony import */ var _util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/withChangeSupport */ \"./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js\");\n\n\n\nconst ElementName = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__.withChangeSupport)(function (props, context) {\n const {\n element\n } = props;\n const modeling = context.injector.get('modeling');\n const translate = context.injector.get('translate');\n const name = element.get('name');\n const onChange = name => {\n modeling.updateProperties(element, {\n name\n });\n };\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": translate('Element name'),\n \"className\": \"element-name editor\",\n \"value\": name,\n \"onChange\": onChange\n });\n}, props => [props.element]);\nfunction ElementPropertiesEditorComponent(_, context) {\n const viewer = context.injector.get('viewer');\n const rootElement = viewer.getRootElement();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-properties\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, ElementName, {\n \"element\": rootElement\n }), 2);\n}\n//# sourceMappingURL=ElementPropertiesEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-properties/components/ElementPropertiesEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-properties/editor.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-properties/editor.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementPropertiesEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementPropertiesEditor */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementPropertiesEditor.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['elementProperties'],\n elementProperties: ['type', _ElementPropertiesEditor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-properties/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-properties/index.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-properties/index.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementProperties */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-properties/ElementProperties.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['elementProperties'],\n elementProperties: ['type', _ElementProperties__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-properties/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariable.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariable.js ***! + \***********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementVariable)\n/* harmony export */ });\nclass ElementVariable {\n static $inject = ['viewer'];\n constructor(viewer) {\n this._viewer = viewer;\n }\n getName() {\n const variable = this.getVariable(),\n element = this._getElement();\n const variableName = variable ? variable.get('name') : null;\n return variableName || element.get('name');\n }\n getType() {\n const variable = this.getVariable();\n return variable ? variable.get('typeRef') : 'Any';\n }\n _getElement() {\n return this._viewer.getRootElement();\n }\n getVariable() {\n return this._getElement().get('variable');\n }\n}\n//# sourceMappingURL=ElementVariable.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariable.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariableEditor.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariableEditor.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementVariableEditor)\n/* harmony export */ });\n/* harmony import */ var _ElementVariable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementVariable */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariable.js\");\n\nclass ElementVariableEditor extends _ElementVariable__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n static $inject = ['viewer', 'modeling', 'dmnFactory'];\n constructor(viewer, modeling, dmnFactory) {\n super(viewer);\n this._modeling = modeling;\n this._dmnFactory = dmnFactory;\n }\n setType(typeRef) {\n const variable = this.getVariable();\n if (!variable) {\n const element = this._getElement();\n this._modeling.updateProperties(element, {\n variable: this._dmnFactory.create('dmn:InformationItem', {\n name: element.get('name'),\n typeRef\n })\n });\n return;\n }\n this._modeling.updateProperties(variable, {\n typeRef\n });\n }\n}\n//# sourceMappingURL=ElementVariableEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariableEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableComponent.js": +/*!*******************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableComponent.js ***! + \*******************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementVariableComponentProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\nclass ElementVariableComponentProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('footer', () => ElementVariableComponent);\n }\n}\nfunction ElementVariableComponent(_, context) {\n const elementVariable = context.injector.get('elementVariable');\n const translate = context.injector.get('translate');\n\n // there is only one single element\n const name = elementVariable.getName();\n const type = elementVariable.getType();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-variable\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h2\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Result\"), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-variable-name\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"element-variable-name-label\", translate('Variable name'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, name, 0)], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-variable-type\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"element-variable-type-label\", translate('Variable type'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, type, 0)], 4)], 4);\n}\n//# sourceMappingURL=ElementVariableComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableEditorComponent.js": +/*!*************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableEditorComponent.js ***! + \*************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementVariableComponentProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/withChangeSupport */ \"./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js\");\n\n\n\nconst VARIABLE_TYPE_ID = 'dmn-boxed-expression-variable-type';\nclass ElementVariableComponentProvider {\n static $inject = ['components', 'elementVariable'];\n constructor(components, elementVariable) {\n const component = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__.withChangeSupport)(ElementVariableComponent, () => [elementVariable.getVariable()]);\n components.onGetComponent('footer', () => component);\n }\n}\nfunction ElementVariableComponent(_, context) {\n const elementVariable = context.injector.get('elementVariable');\n const translate = context.injector.get('translate');\n const name = elementVariable.getName();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-variable\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h2\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Result\"), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-variable-name\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"element-variable-name-label\", translate('Variable name'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, name, 0)], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"element-variable-type\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"element-variable-type-label\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Result type\"), 2, {\n \"for\": VARIABLE_TYPE_ID\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, VariableTypeEditor)], 4)], 4);\n}\nfunction VariableTypeEditor(_, context) {\n const elementVariable = context.injector.get('elementVariable');\n const dataTypes = context.injector.get('dataTypes');\n const translate = context.injector.get('translate');\n const type = elementVariable.getType();\n const onChange = type => elementVariable.setType(type);\n const typeRefOptions = dataTypes.getAll().map(t => {\n return {\n label: translate(t),\n value: t\n };\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"value\": type,\n \"onChange\": onChange,\n \"options\": typeRefOptions,\n \"id\": VARIABLE_TYPE_ID\n });\n}\n//# sourceMappingURL=ElementVariableEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-variable/editor.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-variable/editor.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementVariableEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementVariableEditor */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariableEditor.js\");\n/* harmony import */ var _components_ElementVariableEditorComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/ElementVariableEditorComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableEditorComponent.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['elementVariableComponent'],\n elementVariable: ['type', _ElementVariableEditor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n elementVariableComponent: ['type', _components_ElementVariableEditorComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-variable/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/element-variable/index.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/element-variable/index.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementVariable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementVariable */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/ElementVariable.js\");\n/* harmony import */ var _components_ElementVariableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/ElementVariableComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/element-variable/components/ElementVariableComponent.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['elementVariableComponent'],\n elementVariable: ['type', _ElementVariable__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n elementVariableComponent: ['type', _components_ElementVariableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/element-variable/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinition.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinition.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FunctionDefinition: () => (/* binding */ FunctionDefinition)\n/* harmony export */ });\nclass FunctionDefinition {\n getParameters(element) {\n return element.get('formalParameter');\n }\n getBody(element) {\n return element.get('body');\n }\n getKind(element) {\n return element.get('kind') || 'FEEL';\n }\n}\n//# sourceMappingURL=FunctionDefinition.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinition.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinitionEditor.js": +/*!***********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinitionEditor.js ***! + \***********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FunctionDefinitionEditor: () => (/* binding */ FunctionDefinitionEditor)\n/* harmony export */ });\n/* harmony import */ var _FunctionDefinition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FunctionDefinition */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinition.js\");\n\nclass FunctionDefinitionEditor extends _FunctionDefinition__WEBPACK_IMPORTED_MODULE_0__.FunctionDefinition {\n static $inject = ['modeling', 'dmnFactory'];\n constructor(modeling, dmnFactory) {\n super();\n this._modeling = modeling;\n this._dmnFactory = dmnFactory;\n }\n addParameter(functionDefinition) {\n this._modeling.updateProperties(functionDefinition, {\n formalParameter: [...this.getParameters(functionDefinition), this._dmnFactory.create('dmn:InformationItem', {\n name: '',\n typeRef: ''\n })]\n });\n }\n removeParameter(functionDefinition, parameter) {\n this._modeling.updateProperties(functionDefinition, {\n formalParameter: this.getParameters(functionDefinition).filter(p => p !== parameter)\n });\n }\n updateParameter(parameter, properties) {\n this._modeling.updateProperties(parameter, properties);\n }\n setKind(functionDefinition, kind) {\n this._modeling.updateProperties(functionDefinition, {\n kind\n });\n }\n}\n//# sourceMappingURL=FunctionDefinitionEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinitionEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FormalParametersEditor.js": +/*!********************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FormalParametersEditor.js ***! + \********************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FormalParametersEditorProvider: () => (/* binding */ FormalParametersEditorProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n/* harmony import */ var _util_withChangeSupport__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util/withChangeSupport */ \"./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js\");\n\n\n\n\nclass FormalParametersEditorProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'formal-parameters-editor') {\n return FormalParametersEditor;\n }\n });\n }\n}\nconst FormalParametersEditor = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_3__.withChangeSupport)(_FormalParametersEditor, props => [props.context.expression]);\nfunction _FormalParametersEditor({\n context: {\n expression\n }\n}, context) {\n const functionDefinition = context.injector.get('functionDefinition');\n const translate = context.injector.get('translate');\n const parameters = functionDefinition.getParameters(expression);\n const remove = parameter => {\n functionDefinition.removeParameter(expression, parameter);\n };\n const add = () => {\n functionDefinition.addParameter(expression);\n };\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container formal-parameters\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", null, translate('Edit formal parameters'), 0), parameters.length ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"table\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"thead\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Name\"), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Type\"), 2)], 4), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tbody\", null, parameters.map((parameter, idx) => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Parameter, {\n \"parameter\": parameter,\n \"remove\": () => remove(parameter)\n }, idx)), 0)], 4) : null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"add-parameter\", translate('Add parameter'), 0, {\n \"type\": \"button\",\n \"onClick\": add\n })], 0);\n}\nconst Parameter = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_3__.withChangeSupport)(function ({\n parameter,\n remove\n}, context) {\n const dataTypes = context.injector.get('dataTypes');\n const translate = context.injector.get('translate');\n const functionDefinition = context.injector.get('functionDefinition');\n const {\n name,\n typeRef\n } = parameter;\n const onNameChange = name => {\n functionDefinition.updateParameter(parameter, {\n name\n });\n };\n const onTypeRefChange = typeRef => {\n functionDefinition.updateParameter(parameter, {\n typeRef\n });\n };\n const typeRefOptions = dataTypes.getAll().map(t => {\n return {\n label: translate(t),\n value: t\n };\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", \"function-definition-parameter\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"onChange\": onNameChange,\n \"value\": name\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"onChange\": onTypeRefChange,\n \"value\": typeRef,\n \"options\": typeRefOptions\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"dmn-icon-trash\", null, 1, {\n \"type\": \"button\",\n \"onClick\": remove,\n \"aria-label\": translate('Remove parameter')\n }), 2)], 4);\n}, props => [props.parameter]);\n//# sourceMappingURL=FormalParametersEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FormalParametersEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionComponent.js": +/*!*************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionComponent.js ***! + \*************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FunctionDefinitionComponentProvider: () => (/* binding */ FunctionDefinitionComponentProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nclass FunctionDefinitionComponentProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('expression', ({\n expression\n }) => {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(expression, 'dmn:FunctionDefinition')) {\n return FunctionDefinitionComponent;\n }\n });\n }\n}\nfunction FunctionDefinitionComponent({\n expression\n}, context) {\n const functionDefinition = context.injector.get('functionDefinition');\n const kind = functionDefinition.getKind(expression);\n const parameters = functionDefinition.getParameters(expression);\n const body = functionDefinition.getBody(expression);\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Kind, {\n \"kind\": kind\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, FormalParameters, {\n \"parameters\": parameters\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, BodyExpression, {\n \"expression\": body\n })], 4);\n}\nconst KIND_MAP = {\n 'FEEL': 'F',\n 'Java': 'J',\n 'PMML': 'P'\n};\nfunction Kind({\n kind\n}, context) {\n const translate = context.injector.get('translate');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition-kind\", KIND_MAP[kind], 0, {\n \"title\": translate('Function kind: {kind}', {\n kind\n })\n });\n}\nfunction FormalParameters({\n parameters\n}) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition-parameters\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"(\"), parameters.reduce((acc, parameter) => {\n return acc.concat((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Parameter, {\n \"parameter\": parameter\n }), ', ');\n }, []).slice(0, -1), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\")\")], 0), 2);\n}\nfunction Parameter({\n parameter\n}) {\n const {\n name,\n typeRef\n } = parameter;\n const displayedName = name || '';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, typeRef ? `${displayedName}: ${typeRef}` : displayedName, 0);\n}\nfunction BodyExpression({\n expression\n}, context) {\n const Expression = context.components.getComponent('expression', {\n expression\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition-body\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Expression, {\n \"expression\": expression\n }), 2);\n}\n//# sourceMappingURL=FunctionDefinitionComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionEditorComponent.js": +/*!*******************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionEditorComponent.js ***! + \*******************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FunctionDefinitionComponentProvider: () => (/* binding */ FunctionDefinitionComponentProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var _util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/withChangeSupport */ \"./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js\");\n/* harmony import */ var _components_EditButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../components/EditButton */ \"./node_modules/dmn-js-boxed-expression/lib/components/EditButton.js\");\n\n\n\n\nclass FunctionDefinitionComponentProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('expression', ({\n expression\n }) => {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(expression, 'dmn:FunctionDefinition')) {\n return FunctionDefinitionEditorComponent;\n }\n });\n }\n}\nconst FunctionDefinitionEditorComponent = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__.withChangeSupport)(_FunctionDefinitionEditorComponent, props => [props.expression]);\nfunction _FunctionDefinitionEditorComponent({\n expression\n}, context) {\n const functionDefinition = context.injector.get('functionDefinition');\n const contextMenu = context.injector.get('contextMenu');\n const kind = functionDefinition.getKind(expression);\n const parameters = functionDefinition.getParameters(expression);\n const body = functionDefinition.getBody(expression);\n const openKindEditor = event => {\n const position = getParentPosition(event);\n contextMenu.open(position, {\n contextMenuType: 'kind-editor',\n expression\n });\n };\n const openFormalParametersEditor = event => {\n const position = getParentPosition(event);\n contextMenu.open(position, {\n contextMenuType: 'formal-parameters-editor',\n expression\n });\n };\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Kind, {\n \"kind\": kind,\n \"openEditor\": openKindEditor\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, FormalParameters, {\n \"parameters\": parameters,\n \"openEditor\": openFormalParametersEditor\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, BodyExpression, {\n \"expression\": body\n })], 4);\n}\nconst KIND_MAP = {\n 'FEEL': 'F',\n 'Java': 'J',\n 'PMML': 'P'\n};\nfunction Kind({\n kind,\n openEditor\n}, context) {\n const translate = context.injector.get('translate');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition-kind\", [KIND_MAP[kind], (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _components_EditButton__WEBPACK_IMPORTED_MODULE_3__.EditButton, {\n \"label\": translate('Edit function kind'),\n \"onClick\": openEditor\n })], 0);\n}\nfunction FormalParameters({\n openEditor,\n parameters\n}, context) {\n const translate = context.injector.get('translate');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition-parameters\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"(\"), parameters.reduce((acc, parameter) => {\n return acc.concat((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Parameter, {\n \"parameter\": parameter\n }), ', ');\n }, []).slice(0, -1), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\")\")], 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _components_EditButton__WEBPACK_IMPORTED_MODULE_3__.EditButton, {\n \"label\": translate('Edit formal parameters'),\n \"onClick\": openEditor\n })], 4);\n}\nconst Parameter = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_2__.withChangeSupport)(_Parameter, props => [props.parameter]);\nfunction _Parameter({\n parameter\n}) {\n const {\n name,\n typeRef\n } = parameter;\n const displayedName = name || '';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, typeRef ? `${displayedName}: ${typeRef}` : displayedName, 0);\n}\nfunction BodyExpression({\n expression\n}, context) {\n const Expression = context.components.getComponent('expression', {\n expression\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"function-definition-body\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Expression, {\n \"expression\": expression\n }), 2);\n}\nfunction getParentPosition(event) {\n const parent = event.target.parentElement,\n bbox = parent.getBoundingClientRect();\n return {\n x: bbox.x,\n y: bbox.y\n };\n}\n//# sourceMappingURL=FunctionDefinitionEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/KindEditor.js": +/*!********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/KindEditor.js ***! + \********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ KindEditorProvider: () => (/* binding */ KindEditorProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n\n\nconst KIND_OPTIONS = [{\n value: 'FEEL',\n label: 'FEEL'\n}, {\n value: 'Java',\n label: 'Java'\n}, {\n value: 'PMML',\n label: 'PMML'\n}];\nclass KindEditorProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'kind-editor') {\n return KindEditor;\n }\n });\n }\n}\nfunction KindEditor({\n context: {\n expression\n }\n}, context) {\n const functionDefinition = context.injector.get('functionDefinition');\n const translate = context.injector.get('translate');\n const kind = functionDefinition.getKind(expression);\n const setKind = value => {\n functionDefinition.setKind(expression, value);\n };\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", null, translate('Edit function kind'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": translate('Kind'),\n \"options\": KIND_OPTIONS,\n \"value\": kind,\n \"onChange\": setKind,\n \"noInput\": true\n })], 4);\n}\n//# sourceMappingURL=KindEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/KindEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/editor.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/editor.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _FunctionDefinitionEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FunctionDefinitionEditor */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinitionEditor.js\");\n/* harmony import */ var _components_FunctionDefinitionEditorComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/FunctionDefinitionEditorComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionEditorComponent.js\");\n/* harmony import */ var _components_KindEditor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/KindEditor */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/KindEditor.js\");\n/* harmony import */ var _components_FormalParametersEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/FormalParametersEditor */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FormalParametersEditor.js\");\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['formalParametersEditorComponent', 'functionDefinitionComponent', 'kindEditorComponent'],\n __depends__: [table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n formalParametersEditorComponent: ['type', _components_FormalParametersEditor__WEBPACK_IMPORTED_MODULE_3__.FormalParametersEditorProvider],\n functionDefinition: ['type', _FunctionDefinitionEditor__WEBPACK_IMPORTED_MODULE_0__.FunctionDefinitionEditor],\n functionDefinitionComponent: ['type', _components_FunctionDefinitionEditorComponent__WEBPACK_IMPORTED_MODULE_1__.FunctionDefinitionComponentProvider],\n kindEditorComponent: ['type', _components_KindEditor__WEBPACK_IMPORTED_MODULE_2__.KindEditorProvider]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/function-definition/index.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/function-definition/index.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _FunctionDefinition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FunctionDefinition */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/FunctionDefinition.js\");\n/* harmony import */ var _components_FunctionDefinitionComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/FunctionDefinitionComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/function-definition/components/FunctionDefinitionComponent.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['functionDefinitionComponent'],\n functionDefinition: ['type', _FunctionDefinition__WEBPACK_IMPORTED_MODULE_0__.FunctionDefinition],\n functionDefinitionComponent: ['type', _components_FunctionDefinitionComponent__WEBPACK_IMPORTED_MODULE_1__.FunctionDefinitionComponentProvider]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/function-definition/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/keyboard/KeyboardBindings.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/keyboard/KeyboardBindings.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ KeyboardBindings: () => (/* binding */ KeyboardBindings)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/features/keyboard/KeyboardUtil */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardUtil.js\");\n\nclass KeyboardBindings {\n static $inject = ['editorActions', 'keyboard'];\n constructor(editorActions, keyboard) {\n this.registerBindings(keyboard, editorActions);\n }\n\n /**\n * Register available keyboard bindings.\n *\n * @param {Keyboard} keyboard\n * @param {EditorActions} editorActions\n */\n registerBindings(keyboard, editorActions) {\n /**\n * Add keyboard binding if respective editor action\n * is registered.\n *\n * @param {string} action name\n * @param {Function} fn that implements the key binding\n */\n function addListener(action, fn) {\n if (editorActions.isRegistered(action)) {\n keyboard.addListener(fn);\n }\n }\n\n // undo\n // (CTRL|CMD) + Z\n addListener('undo', function (context) {\n const event = context.keyEvent;\n if ((0,diagram_js_lib_features_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isUndo)(event)) {\n editorActions.trigger('undo');\n return true;\n }\n });\n\n // redo\n // CTRL + Y\n // CMD + SHIFT + Z\n addListener('redo', function (context) {\n const event = context.keyEvent;\n if ((0,diagram_js_lib_features_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isRedo)(event)) {\n editorActions.trigger('redo');\n return true;\n }\n });\n }\n}\n//# sourceMappingURL=KeyboardBindings.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/keyboard/KeyboardBindings.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/keyboard/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/keyboard/index.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/keyboard */ \"./node_modules/diagram-js/lib/features/keyboard/index.js\");\n/* harmony import */ var _KeyboardBindings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardBindings */ \"./node_modules/dmn-js-boxed-expression/lib/features/keyboard/KeyboardBindings.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_keyboard__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['keyboardBindings'],\n keyboardBindings: ['type', _KeyboardBindings__WEBPACK_IMPORTED_MODULE_0__.KeyboardBindings]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/keyboard/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpression.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpression.js ***! + \***************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LiteralExpression)\n/* harmony export */ });\nclass LiteralExpression {\n getText(literalExpression) {\n return literalExpression.get('text');\n }\n}\n//# sourceMappingURL=LiteralExpression.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpression.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpressionEditor.js": +/*!*********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpressionEditor.js ***! + \*********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LiteralExpressionEditor)\n/* harmony export */ });\n/* harmony import */ var _LiteralExpression__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LiteralExpression */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpression.js\");\n\nclass LiteralExpressionEditor extends _LiteralExpression__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor(modeling) {\n super();\n this._modeling = modeling;\n }\n setText(literalExpression, value) {\n this._modeling.updateProperties(literalExpression, {\n text: value\n });\n }\n}\nLiteralExpressionEditor.$inject = ['modeling'];\n//# sourceMappingURL=LiteralExpressionEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpressionEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionComponent.js": +/*!***********************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionComponent.js ***! + \***********************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LiteralExpressionComponentProvider: () => (/* binding */ LiteralExpressionComponentProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nclass LiteralExpressionComponentProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('expression', ({\n expression\n }) => {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(expression, 'dmn:LiteralExpression')) {\n return LiteralExpressionComponent;\n }\n });\n }\n}\nfunction LiteralExpressionComponent({\n expression\n}, context) {\n const literalExpression = context.injector.get('literalExpression');\n const text = literalExpression.getText(expression);\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"textarea\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"content\", text, 0), 2);\n}\n//# sourceMappingURL=LiteralExpressionComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionEditorComponent.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionEditorComponent.js ***! + \*****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LiteralExpressionEditorComponentProvider: () => (/* binding */ LiteralExpressionEditorComponentProvider)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/EditableComponent */ \"./node_modules/dmn-js-shared/lib/components/EditableComponent.js\");\n/* harmony import */ var dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-shared/lib/components/LiteralExpression */ \"./node_modules/dmn-js-shared/lib/components/LiteralExpression.js\");\n/* harmony import */ var _util_withChangeSupport__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../util/withChangeSupport */ \"./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js\");\n\n\n\n\n\n\nclass _LiteralExpressionEditorComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._literalExpression = context.injector.get('literalExpression');\n this._translate = context.injector.get('translate');\n this._expressionLanguages = context.injector.get('expressionLanguages');\n this._variableResolver = context.injector.get('variableResolver', false);\n }\n getLiteralExpression() {\n return this.props.expression;\n }\n editLiteralExpressionText = text => {\n const literalExpression = this.getLiteralExpression();\n this._literalExpression.setText(literalExpression, text);\n };\n getEditor() {\n return this.isFeel() ? FeelEditor : TextEditor;\n }\n isFeel() {\n const businessObject = this.getLiteralExpression();\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isFeel)(businessObject);\n }\n _getVariables() {\n const businessObject = this.getLiteralExpression();\n return this._variableResolver && this._variableResolver.getVariables(businessObject);\n }\n render() {\n // there is only one single element\n const {\n text\n } = this.getLiteralExpression();\n const Editor = this.getEditor();\n const variables = this._getVariables();\n const label = this._translate('Literal expression');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Editor, {\n \"label\": label,\n \"className\": \"textarea editor\",\n \"value\": text,\n \"onChange\": this.editLiteralExpressionText,\n \"variables\": variables\n });\n }\n}\nfunction FeelEditor(props) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n ...props,\n \"onChange\": props.onChange\n }));\n}\nclass TextEditor extends dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_2__[\"default\"] {\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", this.getClassName(), this.getEditor(), 0);\n }\n}\nconst LiteralExpressionEditorComponent = (0,_util_withChangeSupport__WEBPACK_IMPORTED_MODULE_4__.withChangeSupport)(_LiteralExpressionEditorComponent, props => [props.expression]);\nclass LiteralExpressionEditorComponentProvider {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('expression', ({\n expression\n }) => {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(expression, 'dmn:LiteralExpression')) {\n return LiteralExpressionEditorComponent;\n }\n });\n }\n}\n//# sourceMappingURL=LiteralExpressionEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/editor.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/editor.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_LiteralExpressionEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/LiteralExpressionEditorComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionEditorComponent.js\");\n/* harmony import */ var _LiteralExpressionEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LiteralExpressionEditor */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpressionEditor.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['literalExpressionComponent'],\n literalExpressionComponent: ['type', _components_LiteralExpressionEditorComponent__WEBPACK_IMPORTED_MODULE_0__.LiteralExpressionEditorComponentProvider],\n literalExpression: ['type', _LiteralExpressionEditor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/index.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/index.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_LiteralExpressionComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/LiteralExpressionComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/components/LiteralExpressionComponent.js\");\n/* harmony import */ var _LiteralExpression__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LiteralExpression */ \"./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/LiteralExpression.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['literalExpressionComponent'],\n literalExpressionComponent: ['type', _components_LiteralExpressionComponent__WEBPACK_IMPORTED_MODULE_0__.LiteralExpressionComponentProvider],\n literalExpression: ['type', _LiteralExpression__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/literal-expression/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/modeling/Modeling.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/modeling/Modeling.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeling)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_cmd_UpdatePropertiesHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler */ \"./node_modules/dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler.js\");\n\n\nclass Modeling {\n constructor(commandStack, viewer, eventBus) {\n this._commandStack = commandStack;\n this._viewer = viewer;\n this._eventBus = eventBus;\n\n // register modeling handlers\n registerHandlers(this._getHandlers(), commandStack);\n }\n _getHandlers() {\n return {\n 'element.updateProperties': dmn_js_shared_lib_features_modeling_cmd_UpdatePropertiesHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n };\n }\n updateProperties(element, properties) {\n const context = {\n element,\n properties\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n}\nModeling.$inject = ['commandStack', 'viewer', 'eventBus'];\n\n// helpers //////////////////////\n\n/**\r\n * Register handlers with the command stack\r\n *\r\n * @param {Object} handlers { id -> Handler } map\r\n * @param {CommandStack} commandStack\r\n */\nfunction registerHandlers(handlers, commandStack) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(handlers, function (handler, id) {\n commandStack.registerHandler(id, handler);\n });\n}\n//# sourceMappingURL=Modeling.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/modeling/Modeling.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/modeling/behavior/NameChangeBehavior.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/modeling/behavior/NameChangeBehavior.js ***! + \***************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ NameChangeBehavior)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nclass NameChangeBehavior extends diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n static $inject = ['eventBus', 'modeling'];\n constructor(eventBus, modeling) {\n super(eventBus);\n this._modeling = modeling;\n this.postExecuted('element.updateProperties', this.updateName);\n }\n updateName = ({\n context\n }) => {\n const {\n element,\n properties\n } = context;\n if (!this.isNameChanged(properties)) {\n return;\n }\n if (this.isVariable(element)) {\n this.handleVariableNameChange(element);\n } else if (this.isVariableContainer(element)) {\n this.handleVariableContainerNameChange(element);\n }\n };\n isNameChanged(properties) {\n return 'name' in properties;\n }\n isVariable(element) {\n const parent = getParent(element);\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InformationItem') && parent && parent.get('variable') === element;\n }\n isVariableContainer(element) {\n const variable = element.get('variable');\n return variable && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(variable, 'dmn:InformationItem');\n }\n handleVariableNameChange(variable) {\n const parent = getParent(variable),\n newName = variable.get('name');\n if (newName === parent.get('name')) {\n return;\n }\n this._modeling.updateProperties(parent, {\n name: newName\n });\n }\n handleVariableContainerNameChange(container) {\n const variable = container.get('variable'),\n newName = container.get('name');\n if (variable && newName !== variable.get('name')) {\n this._modeling.updateProperties(variable, {\n name: newName\n });\n }\n }\n}\n\n// helpers //////////////////////\n\nfunction getParent(element) {\n return element.$parent;\n}\n//# sourceMappingURL=NameChangeBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/modeling/behavior/NameChangeBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/modeling/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/modeling/index.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command_CommandStack__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/command/CommandStack */ \"./node_modules/diagram-js/lib/command/CommandStack.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior */ \"./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js\");\n/* harmony import */ var _behavior_NameChangeBehavior__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./behavior/NameChangeBehavior */ \"./node_modules/dmn-js-boxed-expression/lib/features/modeling/behavior/NameChangeBehavior.js\");\n/* harmony import */ var _Modeling__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Modeling */ \"./node_modules/dmn-js-boxed-expression/lib/features/modeling/Modeling.js\");\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['idChangeBehavior', 'modeling', 'nameChangeBehavior'],\n commandStack: ['type', diagram_js_lib_command_CommandStack__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n idChangeBehavior: ['type', dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n modeling: ['type', _Modeling__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n nameChangeBehavior: ['type', _behavior_NameChangeBehavior__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/modeling/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/powered-by/PoweredBy.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/powered-by/PoweredBy.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PoweredBy)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/PoweredByUtil */ \"./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js\");\n\nconst HIGHER_PRIORITY = 2000;\nclass PoweredBy {\n constructor(components) {\n components.onGetComponent('viewer', HIGHER_PRIORITY, () => {\n return dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_0__.PoweredByComponent;\n });\n }\n}\nPoweredBy.$inject = ['components'];\n//# sourceMappingURL=PoweredBy.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/powered-by/PoweredBy.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/powered-by/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/powered-by/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _PoweredBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PoweredBy */ \"./node_modules/dmn-js-boxed-expression/lib/features/powered-by/PoweredBy.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['poweredBy'],\n poweredBy: ['type', _PoweredBy__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/powered-by/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/view-drd/ViewDrd.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/view-drd/ViewDrd.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewDrd)\n/* harmony export */ });\n/* harmony import */ var _components_ViewDrdComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ViewDrdComponent */ \"./node_modules/dmn-js-boxed-expression/lib/features/view-drd/components/ViewDrdComponent.js\");\n\nconst VERY_HIGH_PRIORITY = 2000;\nclass ViewDrd {\n constructor(components, eventBus, injector) {\n this._injector = injector;\n components.onGetComponent('viewer', VERY_HIGH_PRIORITY, () => {\n if (this.canViewDrd()) {\n return _components_ViewDrdComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n eventBus.on('showDrd', () => {\n const parent = injector.get('_parent', false);\n\n // there is only one single element\n const definitions = parent.getDefinitions();\n\n // open definitions\n const view = parent.getView(definitions);\n parent.open(view);\n });\n }\n canViewDrd() {\n const parent = this._injector.get('_parent', false);\n if (!parent) {\n return;\n }\n\n // there is only one single element\n const definitions = parent.getDefinitions();\n return !!parent.getView(definitions);\n }\n}\nViewDrd.$inject = ['components', 'eventBus', 'injector'];\n//# sourceMappingURL=ViewDrd.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/view-drd/ViewDrd.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/view-drd/components/ViewDrdComponent.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/view-drd/components/ViewDrdComponent.js ***! + \***************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewDrdComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass ViewDrdComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n const {\n injector\n } = context;\n this._translate = injector.get('translate');\n this._eventBus = injector.get('eventBus');\n }\n onClick = () => {\n this._eventBus.fire('showDrd');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"view-drd\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"view-drd-button\", this._translate('View DRD'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onClick\n }), 2, null, null, node => this.node = node);\n }\n}\nViewDrdComponent.$inject = ['translate'];\n//# sourceMappingURL=ViewDrdComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/view-drd/components/ViewDrdComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/features/view-drd/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/features/view-drd/index.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ViewDrd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ViewDrd */ \"./node_modules/dmn-js-boxed-expression/lib/features/view-drd/ViewDrd.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['viewDrd'],\n viewDrd: ['type', _ViewDrd__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/features/view-drd/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/index.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Editor: () => (/* reexport safe */ _Editor__WEBPACK_IMPORTED_MODULE_1__.Editor),\n/* harmony export */ Viewer: () => (/* reexport safe */ _Viewer__WEBPACK_IMPORTED_MODULE_0__.Viewer)\n/* harmony export */ });\n/* harmony import */ var _Viewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Viewer */ \"./node_modules/dmn-js-boxed-expression/lib/Viewer.js\");\n/* harmony import */ var _Editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Editor */ \"./node_modules/dmn-js-boxed-expression/lib/Editor.js\");\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/render/TableJsSupport.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/render/TableJsSupport.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TableJsSupport: () => (/* binding */ TableJsSupport)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n/**\n * Allows to use modules from `table-js` which depend on `table.*` components.\n * @TODO(barmac): This is a temporary solution until we move context menu out of table-js.\n */\nclass TableJsSupport {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('viewer', () => {\n const children = components.getComponents('table.before') || [];\n return () => {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, children.map((Component, index) => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index)), 0);\n };\n });\n }\n}\n//# sourceMappingURL=TableJsSupport.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/render/TableJsSupport.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/render/ViewRenderer.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/render/ViewRenderer.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ViewRenderer: () => (/* binding */ ViewRenderer)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\nclass ViewRenderer {\n static $inject = ['components'];\n constructor(components) {\n components.onGetComponent('viewer', () => {\n return Header;\n });\n components.onGetComponent('viewer', () => {\n return Body;\n });\n components.onGetComponent('viewer', () => {\n return Footer;\n });\n }\n}\nfunction Header(_, {\n injector\n}) {\n const components = injector.get('components');\n const headerComponents = components.getComponents('header');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dmn-boxed-expression-section dmn-boxed-expression-header\", headerComponents && headerComponents.map((Component, index) => {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index);\n }), 0);\n}\nfunction Body(_, {\n injector\n}) {\n const components = injector.get('components');\n const bodyComponents = components.getComponents('body');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dmn-boxed-expression-section dmn-boxed-expression-body\", bodyComponents && bodyComponents.map((Component, index) => {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index);\n }), 0);\n}\nfunction Footer(_, {\n injector\n}) {\n const components = injector.get('components');\n const footerComponents = components.getComponents('footer');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dmn-boxed-expression-section dmn-boxed-expression-footer\", footerComponents && footerComponents.map((Component, index) => {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index);\n }), 0);\n}\n//# sourceMappingURL=ViewRenderer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/render/ViewRenderer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/render/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/render/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ViewRenderer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ViewRenderer */ \"./node_modules/dmn-js-boxed-expression/lib/render/ViewRenderer.js\");\n/* harmony import */ var _TableJsSupport__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TableJsSupport */ \"./node_modules/dmn-js-boxed-expression/lib/render/TableJsSupport.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['viewRenderer', 'tableJsSupport'],\n 'viewRenderer': ['type', _ViewRenderer__WEBPACK_IMPORTED_MODULE_0__.ViewRenderer],\n 'tableJsSupport': ['type', _TableJsSupport__WEBPACK_IMPORTED_MODULE_1__.TableJsSupport]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/render/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js": +/*!****************************************************************************!*\ + !*** ./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ withChangeSupport: () => (/* binding */ withChangeSupport)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\n\n/**\n *\n *\n * @param {*} WrappedComponent\n * @param {() => []} selectDependencies\n * @returns\n */\nfunction withChangeSupport(WrappedComponent, selectDependencies) {\n return function (props) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Wrapper, {\n ...props,\n \"_component\": WrappedComponent,\n \"_selectDependencies\": selectDependencies\n }));\n };\n}\nclass Wrapper extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._eventBus = context.injector.get('eventBus');\n }\n componentDidMount() {\n this._subscribe();\n }\n componentWillUnmount() {\n this._unsubscribe();\n }\n _subscribe() {\n this._eventBus.on('elements.changed', this.onChange);\n }\n _unsubscribe() {\n this._eventBus.off('elements.changed', this.onChange);\n }\n onChange = ({\n elements\n }) => {\n const dependencies = this.props._selectDependencies(this.props);\n if (dependencies.some(dep => elements.includes(dep))) {\n this.forceUpdate();\n }\n };\n render() {\n const WrappedComponent = this.props._component;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, WrappedComponent, {\n ...this.props\n }));\n }\n}\n//# sourceMappingURL=withChangeSupport.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-boxed-expression/lib/util/withChangeSupport.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/Editor.js": +/*!**********************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/Editor.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Editor)\n/* harmony export */ });\n/* harmony import */ var _bpmn_io_dmn_variable_resolver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bpmn-io/dmn-variable-resolver */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/index.js\");\n/* harmony import */ var _Viewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Viewer */ \"./node_modules/dmn-js-decision-table/lib/Viewer.js\");\n/* harmony import */ var _features_add_rule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./features/add-rule */ \"./node_modules/dmn-js-decision-table/lib/features/add-rule/index.js\");\n/* harmony import */ var _features_annotations_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./features/annotations/editor */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/editor/index.js\");\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _features_copy_cut_paste__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/copy-cut-paste */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/index.js\");\n/* harmony import */ var _features_copy_cut_paste_key_bindings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/copy-cut-paste/key-bindings */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/index.js\");\n/* harmony import */ var _features_create_inputs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/create-inputs */ \"./node_modules/dmn-js-decision-table/lib/features/create-inputs/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! dmn-js-shared/lib/features/data-types */ \"./node_modules/dmn-js-shared/lib/features/data-types/index.js\");\n/* harmony import */ var _features_context_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/context-menu */ \"./node_modules/dmn-js-decision-table/lib/features/context-menu/index.js\");\n/* harmony import */ var _features_editor_actions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./features/editor-actions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js\");\n/* harmony import */ var _features_decision_table_head_editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./features/decision-table-head/editor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/index.js\");\n/* harmony import */ var _features_drag_and_drop__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./features/drag-and-drop */ \"./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/index.js\");\n/* harmony import */ var _features_description__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./features/description */ \"./node_modules/dmn-js-decision-table/lib/features/description/index.js\");\n/* harmony import */ var _features_expression_language__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./features/expression-language */ \"./node_modules/dmn-js-decision-table/lib/features/expression-language/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var _features_decision_table_properties_editor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./features/decision-table-properties/editor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/editor.js\");\n/* harmony import */ var table_js_lib_features_editor_actions__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! table-js/lib/features/editor-actions */ \"./node_modules/table-js/lib/features/editor-actions/index.js\");\n/* harmony import */ var _features_hit_policy_editor__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./features/hit-policy/editor */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/index.js\");\n/* harmony import */ var table_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! table-js/lib/features/interaction-events */ \"./node_modules/table-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var _features_keyboard__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./features/keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n/* harmony import */ var _features_modeling__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./features/modeling */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/index.js\");\n/* harmony import */ var _features_decision_rules_editor__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./features/decision-rules/editor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/editor.js\");\n/* harmony import */ var table_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! table-js/lib/features/selection */ \"./node_modules/table-js/lib/features/selection/index.js\");\n/* harmony import */ var _features_simple_mode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./features/simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _features_simple_boolean_edit__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./features/simple-boolean-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/index.js\");\n/* harmony import */ var _features_simple_date_edit__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./features/simple-date-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/index.js\");\n/* harmony import */ var _features_simple_date_time_edit__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./features/simple-date-time-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/index.js\");\n/* harmony import */ var _features_simple_duration_edit__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./features/simple-duration-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/index.js\");\n/* harmony import */ var _features_simple_number_edit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./features/simple-number-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/index.js\");\n/* harmony import */ var _features_simple_string_edit__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./features/simple-string-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/index.js\");\n/* harmony import */ var _features_simple_time_edit__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./features/simple-time-edit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/index.js\");\n/* harmony import */ var _features_cell_selection__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./features/cell-selection */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js\");\n/* harmony import */ var _features_column_resize__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./features/column-resize */ \"./node_modules/dmn-js-decision-table/lib/features/column-resize/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass Editor extends _Viewer__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n getModules() {\n return [..._Viewer__WEBPACK_IMPORTED_MODULE_1__[\"default\"]._getModules(), ...Editor._getModules()];\n }\n static _getModules() {\n return [_features_add_rule__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _features_annotations_editor__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _features_cell_selection__WEBPACK_IMPORTED_MODULE_28__[\"default\"], table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_30__[\"default\"], _features_copy_cut_paste__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_copy_cut_paste_key_bindings__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_create_inputs__WEBPACK_IMPORTED_MODULE_6__[\"default\"], dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _features_context_menu__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _features_editor_actions__WEBPACK_IMPORTED_MODULE_9__[\"default\"], _features_decision_table_head_editor__WEBPACK_IMPORTED_MODULE_10__[\"default\"], _features_column_resize__WEBPACK_IMPORTED_MODULE_29__[\"default\"], _features_drag_and_drop__WEBPACK_IMPORTED_MODULE_11__[\"default\"], _features_description__WEBPACK_IMPORTED_MODULE_12__[\"default\"], _features_expression_language__WEBPACK_IMPORTED_MODULE_13__[\"default\"], dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_14__[\"default\"], _features_keyboard__WEBPACK_IMPORTED_MODULE_17__[\"default\"], _features_decision_table_properties_editor__WEBPACK_IMPORTED_MODULE_15__[\"default\"], table_js_lib_features_editor_actions__WEBPACK_IMPORTED_MODULE_31__[\"default\"], _features_hit_policy_editor__WEBPACK_IMPORTED_MODULE_16__[\"default\"], table_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_32__[\"default\"], _features_modeling__WEBPACK_IMPORTED_MODULE_18__[\"default\"], _features_decision_rules_editor__WEBPACK_IMPORTED_MODULE_19__[\"default\"], table_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_33__[\"default\"], _features_simple_mode__WEBPACK_IMPORTED_MODULE_20__[\"default\"], _features_simple_boolean_edit__WEBPACK_IMPORTED_MODULE_21__[\"default\"], _features_simple_date_edit__WEBPACK_IMPORTED_MODULE_22__[\"default\"], _features_simple_date_time_edit__WEBPACK_IMPORTED_MODULE_23__[\"default\"], _features_simple_duration_edit__WEBPACK_IMPORTED_MODULE_24__[\"default\"], _features_simple_number_edit__WEBPACK_IMPORTED_MODULE_25__[\"default\"], _features_simple_string_edit__WEBPACK_IMPORTED_MODULE_26__[\"default\"], _features_simple_time_edit__WEBPACK_IMPORTED_MODULE_27__[\"default\"], _bpmn_io_dmn_variable_resolver__WEBPACK_IMPORTED_MODULE_0__.DmnVariableResolverModule];\n }\n}\n//# sourceMappingURL=Editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/Editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/Viewer.js": +/*!**********************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/Viewer.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var table_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! table-js */ \"./node_modules/table-js/lib/index.js\");\n/* harmony import */ var _import_Importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./import/Importer */ \"./node_modules/dmn-js-decision-table/lib/import/Importer.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var _features_annotations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./features/annotations */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/index.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core */ \"./node_modules/dmn-js-decision-table/lib/core/index.js\");\n/* harmony import */ var _features_decision_table_head__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./features/decision-table-head */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/index.js\");\n/* harmony import */ var _features_decision_table_properties__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/decision-table-properties */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/index.js\");\n/* harmony import */ var _features_decision_rule_indices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/decision-rule-indices */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/index.js\");\n/* harmony import */ var _features_decision_rules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/decision-rules */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/index.js\");\n/* harmony import */ var _features_hit_policy__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./features/hit-policy */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/index.js\");\n/* harmony import */ var _features_view_drd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/view-drd */ \"./node_modules/dmn-js-decision-table/lib/features/view-drd/index.js\");\n/* harmony import */ var _features_powered_by__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./features/powered-by */ \"./node_modules/dmn-js-decision-table/lib/features/powered-by/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('dmn-js-shared/lib/base/View).OpenResult} OpenResult\n */\n\n/**\n * @typedef {import('dmn-js-shared/lib/base/View).OpenError} OpenError\n */\n\nclass Viewer extends table_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"] {\n constructor(options = {}) {\n const container = Viewer._createContainer();\n super((0,min_dash__WEBPACK_IMPORTED_MODULE_11__.assign)(options, {\n renderer: {\n container\n }\n }));\n this._container = container;\n }\n\n /**\n * Open diagram element.\n *\n * @param {ModdleElement} decision\n * @returns {Promise} Resolves with {OpenResult} when successful\n * or rejects with {OpenError}\n */\n open(decision) {\n var self = this;\n return new Promise((resolve, reject) => {\n var err;\n\n // use try/catch to not swallow synchronous exceptions\n // that may be raised during model parsing\n try {\n if (self._decision) {\n // clear existing rendered diagram\n self.clear();\n }\n\n // update decision\n self._decision = decision;\n\n // perform import\n return (0,_import_Importer__WEBPACK_IMPORTED_MODULE_0__.importDecision)(self, decision, function (err, warnings) {\n if (err) {\n err.warnings = warnings || [];\n reject(err);\n } else {\n resolve({\n warnings: warnings || []\n });\n }\n });\n } catch (e) {\n err = e;\n }\n\n // handle synchronously thrown exception\n if (err) {\n err.warnings = err.warnings || [];\n reject(err);\n } else {\n resolve({\n warnings: []\n });\n }\n });\n }\n\n /**\n * Initialize the table, returning { modules: [], config }.\n *\n * @param {Object} options\n *\n * @return {Object} init config\n */\n _init(options) {\n let {\n modules,\n additionalModules,\n ...config\n } = options;\n let baseModules = modules || this.getModules();\n let extraModules = additionalModules || [];\n let staticModules = [{\n decisionTable: ['value', this]\n }];\n let allModules = [_features_powered_by__WEBPACK_IMPORTED_MODULE_9__[\"default\"], ...baseModules, ...extraModules, ...staticModules];\n return {\n modules: allModules,\n config\n };\n }\n\n /**\n * Register an event listener\n *\n * Remove a previously added listener via {@link #off(event, callback)}.\n *\n * @param {string} event\n * @param {number} [priority]\n * @param {Function} callback\n * @param {Object} [that]\n */\n on(event, priority, callback, target) {\n return this.get('eventBus').on(event, priority, callback, target);\n }\n\n /**\n * De-register an event listener\n *\n * @param {string} event\n * @param {Function} callback\n */\n off(event, callback) {\n this.get('eventBus').off(event, callback);\n }\n\n /**\n * Emit an event on the underlying {@link EventBus}\n *\n * @param {string} type\n * @param {Object} event\n *\n * @return {Object} event processing result (if any)\n */\n _emit(type, event) {\n return this.get('eventBus').fire(type, event);\n }\n\n /**\n * Attach viewer to given parent node.\n *\n * @param {Element} parentNode\n */\n attachTo(parentNode) {\n if (!parentNode) {\n throw new Error('parentNode required');\n }\n\n // ensure we detach from the\n // previous, old parent\n this.detach();\n const container = this._container;\n parentNode.appendChild(container);\n this._emit('attach', {});\n }\n\n /**\n * Detach viewer from parent node, if attached.\n */\n detach() {\n const container = this._container,\n parentNode = container.parentNode;\n if (!parentNode) {\n return;\n }\n this._emit('detach', {});\n (0,min_dom__WEBPACK_IMPORTED_MODULE_12__.remove)(container);\n }\n destroy() {\n super.destroy();\n this.detach();\n }\n getModules() {\n return Viewer._getModules();\n }\n static _getModules() {\n return [_features_annotations__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _core__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_13__[\"default\"], _features_decision_table_head__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _features_decision_table_properties__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_decision_rule_indices__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_decision_rules__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _features_hit_policy__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _features_view_drd__WEBPACK_IMPORTED_MODULE_8__[\"default\"]];\n }\n static _createContainer() {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_12__.domify)('
');\n }\n}\n//# sourceMappingURL=Viewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/Viewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/core/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/core/index.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _import__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../import */ \"./node_modules/dmn-js-decision-table/lib/import/index.js\");\n/* harmony import */ var table_js_lib_render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/render */ \"./node_modules/table-js/lib/render/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_import__WEBPACK_IMPORTED_MODULE_0__[\"default\"], table_js_lib_render__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/core/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-input-output/AddInputOutputProvider.js": +/*!****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-input-output/AddInputOutputProvider.js ***! + \****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddInputOutputProvider)\n/* harmony export */ });\n/* harmony import */ var _components_AddInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/AddInput */ \"./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddInput.js\");\n/* harmony import */ var _components_AddOutput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/AddOutput */ \"./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddOutput.js\");\n\n\nfunction AddInputOutputProvider(components, editorActions, eventBus) {\n components.onGetComponent('cell-inner', (context = {}) => {\n const {\n cellType,\n index,\n inputsLength,\n outputsLength\n } = context;\n if (cellType === 'input-cell' && index === inputsLength - 1) {\n return _components_AddInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n if (cellType === 'output-cell' && index === outputsLength - 1) {\n return _components_AddOutput__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n eventBus.on('addInput', () => {\n editorActions.trigger('addInput');\n });\n eventBus.on('addOutput', () => {\n editorActions.trigger('addOutput');\n });\n}\nAddInputOutputProvider.$inject = ['components', 'editorActions', 'eventBus'];\n//# sourceMappingURL=AddInputOutputProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-input-output/AddInputOutputProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddInput.js": +/*!*************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddInput.js ***! + \*************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddInput)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass AddInput extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._sheet = context.injector.get('sheet');\n this._eventBus = context.injector.get('eventBus');\n this._changeSupport = context.changeSupport;\n this._translate = context.injector.get('translate');\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n const root = this.getRoot();\n this._changeSupport.onElementsChanged(root.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const root = this.getRoot();\n this._changeSupport.offElementsChanged(root.id, this.onElementsChanged);\n }\n getRoot() {\n return this._sheet.getRoot();\n }\n handleClick = e => {\n e.stopPropagation();\n this.add();\n };\n add = () => {\n this._eventBus.fire('addInput');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"add-input actionable\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"dmn-icon-plus action-icon\", null, 1, {\n \"title\": this._translate('Add input')\n }), 2, {\n \"onClick\": this.handleClick\n });\n }\n}\n//# sourceMappingURL=AddInput.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddInput.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddOutput.js": +/*!**************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddOutput.js ***! + \**************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddOutput)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass AddOutput extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._sheet = context.injector.get('sheet');\n this._eventBus = context.injector.get('eventBus');\n this._changeSupport = context.changeSupport;\n this._translate = context.injector.get('translate');\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n const root = this.getRoot();\n this._changeSupport.onElementsChanged(root.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const root = this.getRoot();\n this._changeSupport.offElementsChanged(root.id, this.onElementsChanged);\n }\n getRoot() {\n return this._sheet.getRoot();\n }\n handleClick = e => {\n e.stopPropagation();\n this.add();\n };\n add = () => {\n this._eventBus.fire('addOutput');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"add-output actionable\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"dmn-icon-plus action-icon\", null, 1, {\n \"title\": this._translate('Add output')\n }), 2, {\n \"onClick\": this.handleClick\n });\n }\n}\n//# sourceMappingURL=AddOutput.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-input-output/components/AddOutput.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-input-output/index.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-input-output/index.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _AddInputOutputProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AddInputOutputProvider */ \"./node_modules/dmn-js-decision-table/lib/features/add-input-output/AddInputOutputProvider.js\");\n/* harmony import */ var _editor_actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editor-actions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_editor_actions__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['addInputOutputProvider'],\n addInputOutputProvider: ['type', _AddInputOutputProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-input-output/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-rule/AddRule.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-rule/AddRule.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddRule)\n/* harmony export */ });\n/* harmony import */ var _components_AddRuleFootComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/AddRuleFootComponent */ \"./node_modules/dmn-js-decision-table/lib/features/add-rule/components/AddRuleFootComponent.js\");\n\nclass AddRule {\n constructor(components, editorActions, eventBus, selection) {\n components.onGetComponent('table.foot', () => _components_AddRuleFootComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n eventBus.on('addRule', (e, context) => {\n const rule = editorActions.trigger('addRule');\n const colIndex = context.colIndex;\n if (rule.cells[colIndex]) {\n selection.select(rule.cells[colIndex]);\n } else {\n selection.select(rule.cells[0]);\n }\n });\n }\n}\nAddRule.$inject = ['components', 'editorActions', 'eventBus', 'selection'];\n//# sourceMappingURL=AddRule.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-rule/AddRule.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-rule/components/AddRuleFootComponent.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-rule/components/AddRuleFootComponent.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddRuleFootComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n\nclass AddRuleFootComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__.inject)(this);\n this.addRule = this.addRule.bind(this);\n }\n componentWillMount() {\n this._eventBus = this.context.injector.get('eventBus');\n }\n handleClick = e => {\n e.stopPropagation();\n this.addRule(e.target.dataset.colIndex);\n };\n addRule(colIndex) {\n this._eventBus.fire('addRule', {\n colIndex\n });\n }\n render() {\n const {\n cols\n } = this.props;\n const cells = [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", \"add-rule-add\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"dmn-icon-plus action-icon\", null, 1, {\n \"title\": this.translate('Add rule')\n }), 2)];\n const {\n businessObject\n } = this.sheet.getRoot();\n if (!businessObject.input || !businessObject.input.length) {\n cells.push((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", \"input-cell\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"-\"), 2));\n }\n for (let i = 0; i < cols.length + 1; i++) {\n let className = 'add-rule';\n const businessObject = cols[i] && cols[i].businessObject;\n let placeholder = '';\n if (businessObject) {\n if (businessObject.$instanceOf('dmn:InputClause')) {\n className += ' input-cell';\n placeholder = '-';\n }\n if (businessObject.$instanceOf('dmn:OutputClause')) {\n className += ' output-cell';\n }\n } else {\n className += ' annotation';\n }\n cells.push((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", className, placeholder, 0, {\n \"data-col-index\": i\n }));\n }\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tfoot\", \"actionable add-rule\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, cells, 0), 2, {\n \"onClick\": this.handleClick\n });\n }\n}\nAddRuleFootComponent.$inject = ['sheet', 'translate'];\n//# sourceMappingURL=AddRuleFootComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-rule/components/AddRuleFootComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/add-rule/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/add-rule/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _AddRule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AddRule */ \"./node_modules/dmn-js-decision-table/lib/features/add-rule/AddRule.js\");\n/* harmony import */ var _editor_actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editor-actions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_editor_actions__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['addRule'],\n addRule: ['type', _AddRule__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/add-rule/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/allowed-values/AllowedValuesEditingProvider.js": +/*!********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/allowed-values/AllowedValuesEditingProvider.js ***! + \********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputOutputValues)\n/* harmony export */ });\n/* harmony import */ var _components_AllowedValuesEditing__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/AllowedValuesEditing */ \"./node_modules/dmn-js-decision-table/lib/features/allowed-values/components/AllowedValuesEditing.js\");\n\nconst LOW_PRIORITY = 500;\nclass InputOutputValues {\n constructor(components) {\n components.onGetComponent('context-menu', LOW_PRIORITY, (context = {}) => {\n const {\n contextMenuType\n } = context;\n if (contextMenuType === 'input-edit' || contextMenuType === 'output-edit') {\n return _components_AllowedValuesEditing__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n }\n}\nInputOutputValues.$inject = ['components'];\n//# sourceMappingURL=AllowedValuesEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/allowed-values/AllowedValuesEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/allowed-values/Utils.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/allowed-values/Utils.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getValuesArray: () => (/* binding */ getValuesArray),\n/* harmony export */ parseString: () => (/* binding */ parseString)\n/* harmony export */ });\nfunction parseString(string) {\n // empty string or no string at all\n if (!string || isEmptyString(string.trim())) {\n return {\n values: []\n };\n }\n\n // disjunction\n let values = string.split(',');\n const result = {\n values: []\n };\n let openString = '';\n values.forEach(value => {\n openString += value;\n if (/^\"[^\"]*\"$/.test(openString.trim())) {\n result.values.push(openString.trim());\n openString = '';\n } else {\n openString += ',';\n }\n });\n if (!openString) {\n return result;\n }\n}\nfunction isEmptyString(string) {\n return string === '';\n}\nfunction getValuesArray(values) {\n return values.map(value => value.value);\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/allowed-values/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/allowed-values/behavior/AllowedValuesUpdateBehavior.js": +/*!****************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/allowed-values/behavior/AllowedValuesUpdateBehavior.js ***! + \****************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AllowedValuesUpdateBehavior)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n/**\n * Makes sure allowed values are removed if type is set to\n * something other than string.\n */\nclass AllowedValuesUpdateBehavior extends diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(eventBus, modeling) {\n super(eventBus);\n this.postExecuted('element.updateProperties', event => {\n const {\n element,\n properties\n } = event.context;\n const actualProperties = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isInput)(element) ? properties.inputExpression : properties;\n if (actualProperties && actualProperties.typeRef && actualProperties.typeRef !== 'string') {\n const target = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:LiteralExpression') ? element.$parent : element;\n\n // delete allowed values\n modeling.editAllowedValues(target, null);\n }\n });\n }\n}\nAllowedValuesUpdateBehavior.$inject = ['eventBus', 'modeling'];\n//# sourceMappingURL=AllowedValuesUpdateBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/allowed-values/behavior/AllowedValuesUpdateBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/allowed-values/components/AllowedValuesEditing.js": +/*!***********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/allowed-values/components/AllowedValuesEditing.js ***! + \***********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AllowedValuesEditing)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_components_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/List */ \"./node_modules/dmn-js-shared/lib/components/List.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/allowed-values/Utils.js\");\n\n\n\n\n\n\nclass AllowedValuesEditing extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n this._changeSupport = context.changeSupport;\n const target = this.getAllowedValuesTarget();\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_4__.parseString)(target.inputValues && target.inputValues.text || target.outputValues && target.outputValues.text || '');\n if (parsedString) {\n this.state = {\n values: parsedString.values.map(value => {\n return {\n value,\n isCheckable: false,\n isRemovable: true,\n group: this._translate('Predefined values')\n };\n }),\n inputValue: ''\n };\n } else {\n this.state = {\n values: null,\n inputValue: ''\n };\n }\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n const target = this.getAllowedValuesTarget();\n this._changeSupport.onElementsChanged(target.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const target = this.getAllowedValuesTarget();\n this._changeSupport.offElementsChanged(target.id, this.onElementsChanged);\n }\n setPredefinedValues = values => {\n // inputClause or outputClause\n const target = this.getAllowedValuesTarget();\n this.setState({\n values\n });\n this._modeling.editAllowedValues(target, values && (0,_Utils__WEBPACK_IMPORTED_MODULE_4__.getValuesArray)(values));\n };\n onListChange = values => {\n this.setPredefinedValues(values);\n };\n getAllowedValuesTarget() {\n const element = this.getElement();\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:LiteralExpression')) {\n return element.$parent;\n } else {\n return element;\n }\n }\n onInput = ({\n isValid,\n value\n }) => {\n this.setState({\n inputValue: value\n });\n };\n\n /**\n * Add new value on ENTER.\n */\n onKeyDown = ({\n isValid,\n event\n }) => {\n if (!isEnter(event.keyCode)) {\n return;\n }\n event.stopPropagation();\n event.preventDefault();\n if (isValid) {\n const {\n inputValue,\n values\n } = this.state;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_4__.parseString)(inputValue);\n this.onListChange((values || []).concat(parsedString.values.map(value => {\n return {\n value,\n isCheckable: false,\n isRemovable: true,\n group: this._translate('Predefined values')\n };\n })));\n this.setState({\n inputValue: ''\n });\n }\n };\n handleRemovePredifinedValuesClick = e => {\n e.stopPropagation();\n this.removePredefinedValues();\n };\n removePredefinedValues = () => {\n this.setPredefinedValues(null);\n };\n getElement() {\n return this.props.context.output || this.props.context.input.inputExpression;\n }\n render() {\n const element = this.getElement();\n const {\n inputValue,\n values\n } = this.state;\n return element.typeRef === 'string' ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container allowed-values-edit\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", [!isNull(values) && values.length > 0 && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_List__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"labelComponent\": Label,\n \"items\": values,\n \"onChange\": this.onListChange\n }), !isNull(values) && !values.length && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", this._translate('Predefined values'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"placeholder\", this._translate('No values'), 0)], 4), !isNull(values) && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"del-values\", this._translate('Clear predefined values'), 0, {\n \"type\": \"button\",\n \"onClick\": this.handleRemovePredifinedValuesClick\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", this._translate('Add predefined values'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n \"onInput\": this.onInput,\n \"onKeyDown\": this.onKeyDown,\n \"placeholder\": this._translate('\"value\", \"value\", ...'),\n \"type\": \"text\",\n \"validate\": value => {\n if (!(0,_Utils__WEBPACK_IMPORTED_MODULE_4__.parseString)(value)) {\n return this._translate('Strings must be in double quotes');\n }\n },\n \"value\": inputValue\n })], 0), 2) : null;\n }\n}\nfunction Label(label) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", label, 0);\n}\n\n// helpers //////////////////////\n\nfunction isEnter(keyCode) {\n return keyCode === 13;\n}\nfunction isNull(value) {\n return value === null;\n}\n//# sourceMappingURL=AllowedValuesEditing.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/allowed-values/components/AllowedValuesEditing.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/allowed-values/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/allowed-values/index.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _behavior_AllowedValuesUpdateBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./behavior/AllowedValuesUpdateBehavior */ \"./node_modules/dmn-js-decision-table/lib/features/allowed-values/behavior/AllowedValuesUpdateBehavior.js\");\n/* harmony import */ var _AllowedValuesEditingProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AllowedValuesEditingProvider */ \"./node_modules/dmn-js-decision-table/lib/features/allowed-values/AllowedValuesEditingProvider.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['allowedValuesUpdateBehavior', 'allowedValuesEditingProvider'],\n allowedValuesUpdateBehavior: ['type', _behavior_AllowedValuesUpdateBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n allowedValuesEditingProvider: ['type', _AllowedValuesEditingProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/allowed-values/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/AnnotationsProvider.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/AnnotationsProvider.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AnnotationsProvider)\n/* harmony export */ });\n/* harmony import */ var _components_AnnotationHeader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/AnnotationHeader */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationHeader.js\");\n/* harmony import */ var _components_AnnotationCell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/AnnotationCell */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationCell.js\");\n\n\nfunction AnnotationsProvider(components) {\n components.onGetComponent('cell', ({\n cellType\n }) => {\n if (cellType === 'after-label-cells') {\n return _components_AnnotationHeader__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if (cellType === 'after-rule-cells') {\n return _components_AnnotationCell__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n}\nAnnotationsProvider.$inject = ['components'];\n//# sourceMappingURL=AnnotationsProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/AnnotationsProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationCell.js": +/*!**************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationCell.js ***! + \**************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AnnotationCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/Cell.js\");\n\n\nfunction AnnotationCell(props) {\n const {\n row\n } = props;\n const {\n id,\n description\n } = row.businessObject;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"className\": \"annotation\",\n \"elementId\": id,\n children: description || '-'\n });\n}\n//# sourceMappingURL=AnnotationCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationCell.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationHeader.js": +/*!****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationHeader.js ***! + \****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AnnotationHeader)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/mixins */ \"./node_modules/dmn-js-shared/lib/components/mixins/index.js\");\n\n\n\n\nconst MIN_WIDTH = 400;\nclass AnnotationHeader extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__.ComponentWithSlots);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__.inject)(this);\n }\n componentDidMount() {\n this.changeSupport.onElementsChanged(this.getRoot(), this.onElementsChanged);\n }\n componentWillUnmount() {\n this.changeSupport.offElementsChanged(this.getRoot(), this.onElementsChanged);\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n getRoot() {\n return this.sheet.getRoot();\n }\n render() {\n const decisionTable = this.getRoot();\n const annotationsWidth = decisionTable.businessObject.get('annotationsWidth');\n const width = (annotationsWidth || MIN_WIDTH) + 'px';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", \"annotation header\", [this.slotFills({\n type: 'cell-inner',\n context: {\n cellType: 'annotations',\n col: this.sheet.getRoot(),\n minWidth: MIN_WIDTH\n }\n }), this.translate('Annotations')], 0, {\n \"style\": {\n width\n }\n });\n }\n}\nAnnotationHeader.$inject = ['changeSupport', 'sheet', 'translate'];\n//# sourceMappingURL=AnnotationHeader.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationHeader.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/editor/AnnotationsEditingProvider.js": +/*!**********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/editor/AnnotationsEditingProvider.js ***! + \**********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AnnotationsEditingProvider)\n/* harmony export */ });\n/* harmony import */ var _components_AnnotationHeader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/AnnotationHeader */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/components/AnnotationHeader.js\");\n/* harmony import */ var _components_AnnotationCell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/AnnotationCell */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/editor/components/AnnotationCell.js\");\n\n\nfunction AnnotationsEditingProvider(components) {\n components.onGetComponent('cell', ({\n cellType\n }) => {\n if (cellType === 'after-label-cells') {\n return _components_AnnotationHeader__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if (cellType === 'after-rule-cells') {\n return _components_AnnotationCell__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n}\nAnnotationsEditingProvider.$inject = ['components'];\n//# sourceMappingURL=AnnotationsEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/editor/AnnotationsEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/editor/components/AnnotationCell.js": +/*!*********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/editor/components/AnnotationCell.js ***! + \*********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditableAnnotationCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/EditableComponent */ \"./node_modules/dmn-js-shared/lib/components/EditableComponent.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/Cell.js\");\n\n\n\n\nclass EditableAnnotationCell extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n componentWillMount() {\n const {\n row\n } = this.props;\n this.changeSupport.onElementsChanged(row.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const {\n row\n } = this.props;\n this.changeSupport.offElementsChanged(row.id, this.onElementsChanged);\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n setAnnotationValue = text => {\n const {\n row\n } = this.props;\n this.modeling.editAnnotation(row.businessObject, text);\n };\n render() {\n const {\n row,\n rowIndex\n } = this.props;\n const {\n description,\n id\n } = row.businessObject;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n \"className\": \"annotation\",\n \"onChange\": this.setAnnotationValue,\n \"coords\": `${rowIndex}:annotation`,\n \"value\": description,\n \"elementId\": id,\n \"data-row-id\": row.id,\n children: (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, AnnotationEditor, {\n \"label\": this.translate('Annotation'),\n \"ctrlForNewline\": true,\n \"className\": \"annotation-editor\",\n \"onChange\": this.setAnnotationValue,\n \"value\": description\n })\n });\n }\n}\nEditableAnnotationCell.$inject = ['changeSupport', 'modeling', 'translate'];\nclass AnnotationEditor extends dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", this.getClassName(), this.getEditor(), 0);\n }\n}\n//# sourceMappingURL=AnnotationCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/editor/components/AnnotationCell.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/editor/index.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/editor/index.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _AnnotationsEditingProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AnnotationsEditingProvider */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/editor/AnnotationsEditingProvider.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['annotationsProvider'],\n annotationsProvider: ['type', _AnnotationsEditingProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/editor/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/annotations/index.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/annotations/index.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _AnnotationsProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AnnotationsProvider */ \"./node_modules/dmn-js-decision-table/lib/features/annotations/AnnotationsProvider.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['annotationsProvider'],\n annotationsProvider: ['type', _AnnotationsProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/annotations/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelection.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelection.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CellSelection)\n/* harmony export */ });\n/* harmony import */ var _CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CellSelectionUtil */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js\");\n\nconst LOW_PRIORITY = 500;\nconst VALID_DIRECTIONS = {\n above: true,\n below: true,\n right: true,\n left: true\n};\n\n/**\n * A cell selection utlity; allows selection of elements, independent from\n * whether they are backed by a business object or not.\n *\n * Works together with the {@link SelectionAware} trait.\n *\n * @param {RenderConfig} config\n * @param {EventBus} eventBus\n * @param {Sheet} sheet\n * @param {Selection} selection\n * @param {ElementRegistry} elementRegistry\n */\nfunction CellSelection(config, eventBus, sheet, selection, elementRegistry) {\n const {\n container\n } = config;\n let lastSelection = null;\n function emit(elementId, newSelection) {\n eventBus.fire('selection.' + elementId + '.changed', newSelection);\n eventBus.fire('cellSelection.changed', {\n elementId: elementId,\n selection: newSelection\n });\n }\n function click(event) {\n const target = event.target;\n if ((0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.isUnselectableNode)(target)) {\n return;\n }\n const selectableNode = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.findSelectableAncestor)(target);\n const elementId = selectableNode && (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getElementId)(selectableNode);\n const focussed = !event.defaultPrevented;\n realSelect(elementId, focussed);\n }\n function focus(event) {\n const elementId = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getElementId)(event.target);\n const focussed = !event.defaultPrevented;\n event.stopPropagation();\n return realSelect(elementId, focussed);\n }\n function unfocus(event) {\n const elementId = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getElementId)(event.target);\n emit(elementId, {\n focussed: false\n });\n }\n function realSelect(elementId, focussed = true) {\n if (lastSelection !== elementId) {\n emit(lastSelection, {\n selected: false,\n focussed: false\n });\n }\n lastSelection = elementId;\n if (elementId) {\n emit(elementId, {\n selected: true,\n focussed\n });\n }\n if (elementId) {\n selection.select(elementId);\n } else {\n selection.deselect();\n }\n }\n eventBus.on('cell.click', LOW_PRIORITY, click);\n eventBus.on('cell.focusin', LOW_PRIORITY, focus);\n eventBus.on('cell.focusout', LOW_PRIORITY, unfocus);\n eventBus.on('cellSelection.changed', function (event) {\n const {\n elementId,\n selection\n } = event;\n const actualElement = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getNodeById)(elementId, container);\n if (selection.focussed && actualElement) {\n (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.ensureFocus)(actualElement);\n }\n });\n eventBus.on('selection.changed', function (event) {\n const {\n selection,\n oldSelection\n } = event;\n var elementId = selection && selection.id;\n var oldElementId = oldSelection && oldSelection.id;\n\n // select new element\n if (elementId && elementId !== lastSelection) {\n realSelect(selection.id);\n } else if (oldElementId && oldElementId === lastSelection) {\n // deselect old element\n realSelect();\n }\n });\n\n // API //////////////////////\n\n /**\n * Return true if a cell is currently selected.\n *\n * @return {boolean}\n */\n this.isCellSelected = function () {\n return !!lastSelection;\n };\n\n /**\n * Get the currently active cellSelection.\n *\n * @return {string} selection\n */\n this.getCellSelection = function () {\n return lastSelection;\n };\n\n /**\n * Select next cell in given direction.\n *\n * Returns true on success; false on fail (i.e. if no next selection\n * in direction could be found).\n *\n * @param {string} direction\n *\n * @return {boolean}\n */\n this.selectCell = function (direction) {\n if (!lastSelection) {\n return;\n }\n if (!(direction in VALID_DIRECTIONS)) {\n throw new Error('direction must be any of { above, below, left, right }');\n }\n var selectionEl = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getNodeById)(lastSelection, container);\n const coords = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getElementCoords)(selectionEl);\n if (!coords) {\n return false;\n }\n const nextCoords = getNextCoords(coords, direction);\n const nextNode = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getNodeByCoords)(nextCoords, container);\n if (!nextNode) {\n return false;\n }\n const nextElId = (0,_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.getElementId)(nextNode);\n if (nextElId) {\n realSelect(nextElId, {\n focussed: true,\n selected: true\n });\n }\n return true;\n };\n eventBus.on('contextMenu.close', function () {\n if (lastSelection) {\n return realSelect(lastSelection);\n }\n });\n}\nCellSelection.$inject = ['config.renderer', 'eventBus', 'sheet', 'selection', 'elementRegistry'];\n\n// helpers ////////////////\n\nfunction getNextCoords(coords, direction) {\n const {\n row,\n col\n } = coords;\n if (direction === 'above' || direction === 'below') {\n const rowIndex = parseInt(row, 10);\n if (isNaN(rowIndex)) {\n return coords;\n }\n const nextRowIndex = direction === 'above' ? rowIndex - 1 : rowIndex + 1;\n return {\n col,\n row: nextRowIndex\n };\n }\n if (direction === 'left' || direction === 'right') {\n const colIndex = parseInt(col, 10);\n if (isNaN(colIndex)) {\n return coords;\n }\n const nextColIndex = direction === 'left' ? colIndex - 1 : colIndex + 1;\n return {\n row,\n col: nextColIndex\n };\n }\n throw new Error('invalid direction <' + direction + '>');\n}\n//# sourceMappingURL=CellSelection.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelection.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ELEMENT_SELECTOR: () => (/* binding */ ELEMENT_SELECTOR),\n/* harmony export */ SELECTABLE_SELECTOR: () => (/* binding */ SELECTABLE_SELECTOR),\n/* harmony export */ ensureFocus: () => (/* binding */ ensureFocus),\n/* harmony export */ findSelectableAncestor: () => (/* binding */ findSelectableAncestor),\n/* harmony export */ getElementCoords: () => (/* binding */ getElementCoords),\n/* harmony export */ getElementId: () => (/* binding */ getElementId),\n/* harmony export */ getFocusableNode: () => (/* binding */ getFocusableNode),\n/* harmony export */ getNodeByCoords: () => (/* binding */ getNodeByCoords),\n/* harmony export */ getNodeById: () => (/* binding */ getNodeById),\n/* harmony export */ isUnselectableNode: () => (/* binding */ isUnselectableNode)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var css_escape__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! css.escape */ \"./node_modules/css.escape/css.escape.js\");\n/* harmony import */ var css_escape__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(css_escape__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var selection_ranges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! selection-ranges */ \"./node_modules/selection-ranges/dist/index.esm.js\");\n\n\n\nconst SELECTABLE_SELECTOR = '[contenteditable]';\nconst ELEMENT_SELECTOR = '[data-element-id]';\nfunction getElementId(node) {\n return node.getAttribute('data-element-id');\n}\nfunction getElementCoords(node) {\n const coordsAttr = node.getAttribute('data-coords');\n if (!coordsAttr) {\n return null;\n }\n const [row, col] = coordsAttr.split(':');\n return {\n row,\n col\n };\n}\nfunction getNodeByCoords(elementCoords, container) {\n const coordsAttr = `${elementCoords.row}:${elementCoords.col}`;\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)(`[data-coords=\"${css_escape__WEBPACK_IMPORTED_MODULE_0___default()(coordsAttr)}\"]`, container);\n}\nfunction getNodeById(elementId, container) {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)(`[data-element-id=\"${css_escape__WEBPACK_IMPORTED_MODULE_0___default()(elementId)}\"]`, container);\n}\nfunction isUnselectableNode(node) {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.closest)(node, '.no-deselect', true);\n}\n\n/**\n * Find semantically _selectable_ element in the nodes ancestors.\n *\n * @param {Element} node\n *\n * @return {Element} node\n */\nfunction findSelectableAncestor(node) {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.closest)(node, ELEMENT_SELECTOR, true);\n}\n\n/**\n * Return focusable node in selectable el.\n *\n * @param {Element} el\n *\n * @return {Element}\n */\nfunction getFocusableNode(el) {\n const selector = SELECTABLE_SELECTOR;\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.matches)(el, selector) ? el : (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)(selector, el);\n}\n\n/**\n * Ensure element or element childNode has the proper focus.\n *\n * @param {Element} el\n */\nfunction ensureFocus(el) {\n const focusEl = getFocusableNode(el);\n if (!focusEl) {\n return;\n }\n\n // QUIRK: otherwise range and focus related actions may\n // yield errors in older browsers (PhantomJS / IE)\n if (!document.body.contains(focusEl)) {\n return;\n }\n\n // nothing to do, if element already has focus\n if (document.activeElement === focusEl) {\n return;\n }\n\n // (1) focus\n focusEl.focus();\n\n // (2) set cursor to element end\n const range = (0,selection_ranges__WEBPACK_IMPORTED_MODULE_1__.getRange)(focusEl);\n if (!range || range.end === 0) {\n window.getSelection().setPosition(focusEl.firstChild, focusEl.firstChild.length);\n }\n}\n//# sourceMappingURL=CellSelectionUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/features/selection */ \"./node_modules/table-js/lib/features/selection/index.js\");\n/* harmony import */ var table_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/features/interaction-events */ \"./node_modules/table-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var _CellSelection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CellSelection */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelection.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_1__[\"default\"], table_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['cellSelection'],\n cellSelection: ['type', _CellSelection__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/column-resize/ColumnResizeProvider.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/column-resize/ColumnResizeProvider.js ***! + \***********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ColumnResizeProvider)\n/* harmony export */ });\n/* harmony import */ var _components_ResizeColumn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ResizeColumn */ \"./node_modules/dmn-js-decision-table/lib/features/column-resize/components/ResizeColumn.js\");\n\nfunction ColumnResizeProvider(components) {\n components.onGetComponent('cell-inner', (context = {}) => {\n const {\n cellType\n } = context;\n if (cellType === 'input-cell' || cellType === 'output-cell' || cellType === 'annotations') {\n return _components_ResizeColumn__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n}\nColumnResizeProvider.$inject = ['components'];\n//# sourceMappingURL=ColumnResizeProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/column-resize/ColumnResizeProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/column-resize/components/ResizeColumn.js": +/*!**************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/column-resize/components/ResizeColumn.js ***! + \**************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ResizeColumn)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n\n\nclass ResizeColumn extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n componentDidMount() {\n const root = this.getRoot();\n this.changeSupport.onElementsChanged(root, this.onElementsChanged);\n }\n componentWillUnmount() {\n const root = this.getRoot();\n this.changeSupport.offElementsChanged(root, this.onElementsChanged);\n }\n getRoot() {\n return this.sheet.getRoot();\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n handleMouseDown = event => {\n const cell = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.closest)(event.target, 'th', false);\n startResize({\n node: cell,\n event,\n minWidth: this.props.minWidth || 150,\n onEnd: this.saveWidth\n });\n };\n saveWidth = newWidth => {\n const {\n col\n } = this.props;\n const update = {};\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(col, 'dmn:DecisionTable')) {\n update.annotationsWidth = newWidth;\n } else {\n update.width = newWidth;\n }\n this.modeling.updateProperties(col, update);\n };\n isLastInputOrOutput() {\n const {\n col\n } = this.props,\n root = this.getRoot(),\n bo = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.getBusinessObject)(root);\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(col, 'dmn:InputClause')) {\n const inputs = bo.get('input');\n return inputs.indexOf(col) === inputs.length - 1;\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(col, 'dmn:OutputClause')) {\n const outputs = bo.get('output');\n return outputs.indexOf(col) === outputs.length - 1;\n }\n }\n render() {\n const style = this.isLastInputOrOutput() ? {\n right: '-7px',\n width: '27px'\n } : null;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"resize-column-handle\", null, 1, {\n \"onMouseDown\": this.handleMouseDown,\n \"title\": this.translate('Resize'),\n \"style\": style\n });\n }\n}\nResizeColumn.$inject = ['sheet', 'changeSupport', 'translate', 'modeling'];\n\n// helper\nfunction startResize({\n node,\n event,\n minWidth,\n onEnd = noop\n}) {\n event.preventDefault();\n const initialWidth = node.getBoundingClientRect().width;\n const initialX = event.clientX;\n let currentUpdate;\n document.addEventListener('mousemove', handleMouseMove);\n document.addEventListener('mouseup', handleMouseUp);\n function handleMouseMove(event) {\n event.preventDefault();\n const currentWidth = getResizedWidth(event.clientX);\n if (currentUpdate) {\n cancelAnimationFrame(currentUpdate);\n }\n currentUpdate = requestAnimationFrame(() => {\n node.style.width = currentWidth + 'px';\n });\n }\n function handleMouseUp(event) {\n event.preventDefault();\n document.removeEventListener('mousemove', handleMouseMove);\n document.removeEventListener('mouseup', handleMouseUp);\n const currentWidth = getResizedWidth(event.clientX);\n onEnd(currentWidth);\n }\n function getResizedWidth(currentX) {\n const delta = currentX - initialX;\n return Math.max(initialWidth + delta, minWidth);\n }\n}\nfunction noop() {}\n//# sourceMappingURL=ResizeColumn.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/column-resize/components/ResizeColumn.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/column-resize/index.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/column-resize/index.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ColumnResizeProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ColumnResizeProvider */ \"./node_modules/dmn-js-decision-table/lib/features/column-resize/ColumnResizeProvider.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['columnResizeProvider'],\n columnResizeProvider: ['type', _ColumnResizeProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/column-resize/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenu.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenu.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContextMenu)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/model */ \"./node_modules/table-js/lib/model/index.js\");\n\n/* eslint-disable max-len */\n\n\n\nclass ContextMenu {\n constructor(components, contextMenu, clipboard, editorActions, eventBus, elementRegistry, modeling, selection, sheet, rules, translate) {\n this._contextMenu = contextMenu;\n this._clipboard = clipboard;\n this._editorActions = editorActions;\n this._elementRegistry = elementRegistry;\n this._eventBus = eventBus;\n this._modeling = modeling;\n this._selection = selection;\n this._sheet = sheet;\n this._rules = rules;\n this._translate = translate;\n this._getEntries = this._getEntries.bind(this);\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'context-menu') {\n const entries = this._getEntries(context);\n const element = this._elementRegistry.get(context.id);\n const additionalCellEntries = isCell(element) && components.getComponents('context-menu-cell-additional', context);\n if (additionalCellEntries && additionalCellEntries.length) {\n const cellEntriesGroup = (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group context-menu-group-cell\", additionalCellEntries, 0);\n return () => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-flex\", (entries || []).concat(cellEntriesGroup), 0);\n } else {\n return () => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-flex\", entries || [], 0);\n }\n }\n });\n eventBus.on('cell.contextmenu', ({\n event,\n id,\n node\n }) => {\n event.preventDefault();\n contextMenu.open({\n x: event.pageX,\n y: event.pageY\n }, {\n contextMenuType: 'context-menu',\n event,\n id\n });\n });\n }\n _getEntries(context) {\n const handlers = {\n addRuleAbove: rule => {\n const selectedIndex = rule.cells.map(cell => cell.id).indexOf(context.id);\n const newRule = this._editorActions.trigger('addRuleAbove', {\n rule\n });\n if (newRule.cells[selectedIndex]) {\n this._selection.select(newRule.cells[selectedIndex]);\n } else {\n this._selection.select(newRule.cells[0]);\n }\n this._contextMenu.close();\n },\n addRuleBelow: rule => {\n const selectedIndex = rule.cells.map(cell => cell.id).indexOf(context.id);\n const newRule = this._editorActions.trigger('addRuleBelow', {\n rule\n });\n if (newRule.cells[selectedIndex]) {\n this._selection.select(newRule.cells[selectedIndex]);\n } else {\n this._selection.select(newRule.cells[0]);\n }\n this._contextMenu.close();\n },\n removeRule: rule => {\n this._editorActions.trigger('removeRule', {\n rule\n });\n this._contextMenu.close();\n },\n addInputLeft: input => {\n this._editorActions.trigger('addInputLeft', {\n input\n });\n this._contextMenu.close();\n },\n addInputRight: input => {\n this._editorActions.trigger('addInputRight', {\n input\n });\n this._contextMenu.close();\n },\n removeInput: input => {\n this._editorActions.trigger('removeInput', {\n input\n });\n this._contextMenu.close();\n },\n addOutputLeft: output => {\n this._editorActions.trigger('addOutputLeft', {\n output\n });\n this._contextMenu.close();\n },\n addOutputRight: output => {\n this._editorActions.trigger('addOutputRight', {\n output\n });\n this._contextMenu.close();\n },\n removeOutput: output => {\n this._editorActions.trigger('removeOutput', {\n output\n });\n this._contextMenu.close();\n },\n copy: element => {\n this._editorActions.trigger('copy', {\n element\n });\n this._contextMenu.close();\n },\n cut: element => {\n this._editorActions.trigger('cut', {\n element\n });\n this._contextMenu.close();\n },\n pasteBefore: element => {\n this._editorActions.trigger('pasteBefore', {\n element\n });\n this._contextMenu.close();\n },\n pasteAfter: element => {\n this._editorActions.trigger('pasteAfter', {\n element\n });\n this._contextMenu.close();\n }\n };\n const id = context && context.id;\n if (!id) {\n return null;\n }\n const element = this._elementRegistry.get(id);\n if (!element) {\n return null;\n }\n const clipboardData = this._clipboard.get() || {};\n const entries = [];\n const row = element.row || element;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(row, 'dmn:DecisionRule')) {\n const canPaste = this._rules.allowed('paste', {\n data: clipboardData.elements,\n target: row\n });\n entries.push((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-copy-rule\", this._translate('Copy rule'), 0, {\n \"onClick\": () => handlers.copy(row)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-cut-rule\", this._translate('Cut rule'), 0, {\n \"onClick\": () => handlers.cut(row)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canPaste ? '' : 'disabled'} context-menu-entry-paste-rule-above`, this._translate('Paste rule above'), 0, {\n \"onClick\": () => handlers.pasteBefore(row)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canPaste ? '' : 'disabled'} context-menu-entry-paste-rule-below`, this._translate('Paste rule below'), 0, {\n \"onClick\": () => handlers.pasteAfter(row)\n })], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-add-rule-above\", this._translate('Add rule above'), 0, {\n \"onClick\": () => handlers.addRuleAbove(row)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-add-rule-below\", this._translate('Add rule below'), 0, {\n \"onClick\": () => handlers.addRuleBelow(row)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-remove-rule\", this._translate('Remove rule'), 0, {\n \"onClick\": () => handlers.removeRule(row)\n })], 4));\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:InputClause')) {\n const actualElement = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:InputClause') ? element : element.col;\n const canRemove = this._rules.allowed('col.remove', {\n col: element.col || element\n });\n const canPaste = this._rules.allowed('paste', {\n data: clipboardData.elements,\n target: element.col || element\n });\n entries.push((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-copy-input\", this._translate('Copy input column'), 0, {\n \"onClick\": () => handlers.copy(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canRemove ? '' : 'disabled'} context-menu-entry-cut-input`, this._translate('Cut input column'), 0, {\n \"onClick\": () => handlers.cut(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canPaste ? '' : 'disabled'} context-menu-entry-paste-input-left`, this._translate('Paste input column left'), 0, {\n \"onClick\": () => handlers.pasteBefore(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canPaste ? '' : 'disabled'} context-menu-entry-paste-input-right`, this._translate('Paste input column right'), 0, {\n \"onClick\": () => handlers.pasteAfter(actualElement)\n })], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-add-input-left\", this._translate('Add input column left'), 0, {\n \"onClick\": () => handlers.addInputLeft(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-add-input-right\", this._translate('Add input column right'), 0, {\n \"onClick\": () => handlers.addInputRight(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canRemove ? '' : 'disabled'} context-menu-entry-remove-input`, this._translate('Remove input column'), 0, {\n \"onClick\": () => handlers.removeInput(actualElement)\n })], 4));\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:OutputClause') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element.col, 'dmn:OutputClause')) {\n const actualElement = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:OutputClause') ? element : element.col;\n const canRemove = this._rules.allowed('col.remove', {\n col: element.col || element\n });\n const canPaste = this._rules.allowed('paste', {\n data: clipboardData.elements,\n target: element.col || element\n });\n entries.push((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-copy-output\", this._translate('Copy output column'), 0, {\n \"onClick\": () => handlers.copy(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canRemove ? '' : 'disabled'} context-menu-entry-cut-output`, this._translate('Cut output column'), 0, {\n \"onClick\": () => handlers.cut(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canPaste ? '' : 'disabled'} context-menu-entry-paste-output-left`, this._translate('Paste output column left'), 0, {\n \"onClick\": () => handlers.pasteBefore(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canPaste ? '' : 'disabled'} context-menu-entry-paste-output-right`, this._translate('Paste output column right'), 0, {\n \"onClick\": () => handlers.pasteAfter(actualElement)\n })], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-add-output-left\", this._translate('Add output column left'), 0, {\n \"onClick\": () => handlers.addOutputLeft(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry context-menu-entry-add-output-right\", this._translate('Add output column right'), 0, {\n \"onClick\": () => handlers.addOutputRight(actualElement)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${canRemove ? '' : 'disabled'} context-menu-entry-remove-output`, this._translate('Remove output column'), 0, {\n \"onClick\": () => handlers.removeOutput(actualElement)\n })], 4));\n }\n return entries;\n }\n}\nContextMenu.$inject = ['components', 'contextMenu', 'clipboard', 'editorActions', 'eventBus', 'elementRegistry', 'modeling', 'selection', 'sheet', 'rules', 'translate'];\n\n// helpers ///////////\n\nfunction isCell(element) {\n return element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Cell;\n}\n//# sourceMappingURL=ContextMenu.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenu.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenuCloseBehavior.js": +/*!**************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenuCloseBehavior.js ***! + \**************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContextMenuCloseBehavior)\n/* harmony export */ });\nconst COMMANDS = ['row.add', 'row.remove', 'col.add', 'col.remove'];\nclass ContextMenuCloseBehavior {\n constructor(contextMenu, eventBus) {\n eventBus.on('commandStack.executed', ({\n command\n }) => {\n // close on certain modeling operations\n if (COMMANDS.indexOf(command) !== -1) {\n contextMenu.close();\n }\n });\n\n // always close on undo\n eventBus.on('commandStack.reverted', () => {\n contextMenu.close();\n });\n }\n}\nContextMenuCloseBehavior.$inject = ['contextMenu', 'eventBus'];\n//# sourceMappingURL=ContextMenuCloseBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenuCloseBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/context-menu/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/context-menu/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ContextMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContextMenu */ \"./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenu.js\");\n/* harmony import */ var _editor_actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editor-actions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js\");\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rules */ \"./node_modules/dmn-js-decision-table/lib/features/rules/index.js\");\n/* harmony import */ var _ContextMenuCloseBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextMenuCloseBehavior */ \"./node_modules/dmn-js-decision-table/lib/features/context-menu/ContextMenuCloseBehavior.js\");\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_editor_actions__WEBPACK_IMPORTED_MODULE_1__[\"default\"], table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _rules__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['decisionTableContextMenu', 'contextMenuCloseBehavior'],\n decisionTableContextMenu: ['type', _ContextMenu__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n contextMenuCloseBehavior: ['type', _ContextMenuCloseBehavior__WEBPACK_IMPORTED_MODULE_3__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/context-menu/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/CopyCutPaste.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/CopyCutPaste.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CutPaste)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _cmd_CutHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cmd/CutHandler */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/CutHandler.js\");\n/* harmony import */ var _cmd_PasteHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cmd/PasteHandler */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/PasteHandler.js\");\n/* harmony import */ var _DescriptorUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DescriptorUtil */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/DescriptorUtil.js\");\n\n\n\n\nclass CutPaste {\n constructor(clipboard, commandStack, eventBus, modeling, sheet, rules) {\n this._clipboard = clipboard;\n this._commandStack = commandStack;\n this._eventBus = eventBus;\n this._modeling = modeling;\n this._sheet = sheet;\n this._rules = rules;\n commandStack.registerHandler('cut', _cmd_CutHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n commandStack.registerHandler('paste', _cmd_PasteHandler__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n }\n\n /**\r\n * Copy elements.\r\n *\r\n * @param {Array} elements - Elements to be copied.\r\n */\n copy(elements) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isArray)(elements)) {\n elements = [elements];\n }\n const data = {\n elements: (0,_DescriptorUtil__WEBPACK_IMPORTED_MODULE_2__.createDescriptor)(elements)\n };\n this._eventBus.fire('copyCutPaste.copy', {\n data\n });\n this._clipboard.set(data);\n }\n\n /**\r\n * Cut elements thereby removing them temporarily.\r\n *\r\n * @param {Array} elements - Elements to be cut.\r\n */\n cut(elements) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isArray)(elements)) {\n elements = [elements];\n }\n const data = {\n elements: (0,_DescriptorUtil__WEBPACK_IMPORTED_MODULE_2__.createDescriptor)(elements),\n keepIds: true\n };\n const context = {\n elements,\n data\n };\n this._eventBus.fire('copyCutPaste.cut', {\n data\n });\n this._commandStack.execute('cut', context);\n }\n\n /**\r\n * Paste rows or cols before row or col.\r\n *\r\n * @param {Row|Col} element - Row or col to paste elements before.\r\n */\n pasteBefore(element) {\n return this._paste(element, {\n before: true\n });\n }\n\n /**\r\n * Paste rows or cols after row or col.\r\n *\r\n * @param {Row|Col} element - Row or col to paste elements after.\r\n */\n pasteAfter(element) {\n return this._paste(element, {\n after: true\n });\n }\n\n /**\r\n * Basic paste onto given target element.\r\n */\n _paste(target, position) {\n const clipboardData = this._clipboard.get();\n if (!clipboardData) {\n return undefined;\n }\n const allowed = this._rules.allowed('paste', {\n data: clipboardData.elements,\n target\n });\n if (!allowed) {\n return false;\n }\n this._commandStack.execute('paste', {\n element: target,\n ...position\n });\n\n // @bpmn-io: Clear clipboard to work around\n // https://github.com/camunda/camunda-modeler/issues/1246 which breaks native copy &\n // paste when row or column is copied or cut\n this._clipboard.clear();\n\n // Return true to stop propagation and prevent native paste\n return true;\n }\n\n /**\r\n * Paste elements at.\r\n */\n pasteAt(element) {\n\n // TODO: implement for pasting cells\n }\n}\nCutPaste.$inject = ['clipboard', 'commandStack', 'eventBus', 'modeling', 'sheet', 'rules'];\n//# sourceMappingURL=CopyCutPaste.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/CopyCutPaste.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/DescriptorUtil.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/DescriptorUtil.js ***! + \******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createDescriptor: () => (/* binding */ createDescriptor),\n/* harmony export */ reviveDescriptor: () => (/* binding */ reviveDescriptor)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/model */ \"./node_modules/table-js/lib/model/index.js\");\n\n\n// creating descriptors //////////\n\nconst createHooks = [copyTableProperties, copyBusinessObjectProperties];\nconst reviveHooks = [reviveBusinessObject, reviveTableElement];\n\n/**\n * Return a serializable snapshot of the given elements.\n *\n * @param {Array} elements list of table elements\n *\n * @return {Tree} descriptor tree\n */\nfunction createDescriptor(element, cache, hooks) {\n hooks = hooks || createHooks;\n cache = cache || {};\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(element)) {\n return createDescriptors0(element, cache, hooks);\n } else {\n return createDescriptor0(element, cache, hooks);\n }\n}\n\n/**\n * Create descriptors of elements, returning { descriptors: [], descriptorCache }.\n *\n * @param {Array} elements list of table elements\n * @param {Object} cache the create cache\n *\n * @return {Object} new descriptors + updated cache\n */\nfunction createDescriptors0(elements, cache, hooks) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(elements, (result, element) => {\n var currentCache = result.descriptorCache,\n currentDescriptors = result.root;\n let {\n root,\n descriptorCache\n } = createDescriptor0(element, currentCache, hooks);\n return {\n root: [...currentDescriptors, root],\n descriptorCache: {\n ...currentCache,\n ...descriptorCache\n }\n };\n }, {\n root: [],\n descriptorCache: cache\n });\n}\nfunction createDescriptor0(element, cache, hooks) {\n var id = element.id;\n var descriptor = {\n id: id\n };\n var elements = cache.elements || {};\n var existingDescriptor = elements[id];\n\n // element already created; nothing to do\n if (existingDescriptor) {\n return {\n root: existingDescriptor,\n descriptorCache: cache\n };\n }\n\n // we're new; need to initialize element via hooks\n // we assume we're not handling recursive data structures\n // here. Otherwise we'd need to pre-populate the cache\n // with the given element\n let element0 = evaluateHooks(element, descriptor, hooks, {\n ...cache,\n elements\n });\n return {\n root: element0.root,\n descriptorCache: {\n ...element0.descriptorCache,\n elements: {\n ...element0.descriptorCache.elements,\n [id]: element0.root\n }\n }\n };\n}\nfunction evaluateHooks(element, descriptor, hooks, cache) {\n function create(element, descriptorCache) {\n return createDescriptor(element, descriptorCache, hooks);\n }\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(hooks, function (result, hook) {\n return hook(element, result.root, result.descriptorCache, create);\n }, {\n root: descriptor,\n descriptorCache: cache\n });\n}\n\nfunction copyTableProperties(element, descriptor, cache, create) {\n var descriptorCache = cache;\n var newDesc = {\n ...descriptor,\n type: getType(element)\n };\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Row || element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Col) {\n let cells0 = create(element.cells, descriptorCache);\n newDesc.cells = cells0.root;\n descriptorCache = cells0.descriptorCache;\n }\n return {\n root: newDesc,\n descriptorCache\n };\n}\nfunction copyBusinessObjectProperties(element, descriptor, cache) {\n var businessObject = element.businessObject;\n if (!businessObject) {\n return {\n root: descriptor,\n descriptorCache: cache\n };\n }\n\n // need to clone businessObject\n var bo0 = createBoDescriptor(businessObject, cache);\n return {\n root: {\n ...descriptor,\n businessObject: bo0.root\n },\n descriptorCache: bo0.descriptorCache\n };\n}\nfunction getType(element) {\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Row) {\n return 'row';\n }\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Col) {\n return 'col';\n }\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Cell) {\n return 'cell';\n }\n throw new Error('cannot deduce element type: #' + element.id);\n}\nfunction createBoDescriptor(bo, cache) {\n var boCache, existingBoDesc;\n var id = bo.id;\n if (id) {\n boCache = cache.boCache || {};\n existingBoDesc = boCache[id];\n\n // businessObject already created; nothing to do\n if (existingBoDesc) {\n return {\n root: existingBoDesc,\n descriptorCache: cache\n };\n }\n }\n var descriptor = {\n $type: bo.$type\n };\n if (id) {\n descriptor.id = id;\n boCache = {\n ...boCache,\n [id]: descriptor\n };\n cache = {\n ...cache,\n boCache\n };\n }\n\n // TODO(nikku): distinguish relations and containment\n // Need to build up the whole tree and revive relations afterwards\n\n // ITERATE OVER ALL SET PROPERTIES\n // (Object.keys(bo) or via bo.$descriptor....)\n\n bo.$descriptor.properties.forEach(function (property) {\n var value = bo[property.name];\n\n // const propertyDescriptor = bo.$model.getPropertyDescriptor(bo, property.name),\n // isId = propertyDescriptor.isId,\n // isReference = propertyDescriptor.isReference;\n\n // not set\n if (!value) {\n return;\n }\n\n // arrays of moddle elements\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(value)) {\n value = value.map(b => {\n var value0 = createBoDescriptor(b, cache);\n cache = value0.descriptorCache;\n return value0.root;\n });\n }\n\n // moddle elements\n if (value.$type) {\n let value0 = createBoDescriptor(value, cache);\n cache = value0.descriptorCache;\n value = value0.root;\n }\n\n // other values\n descriptor[property.name] = value;\n });\n return {\n root: descriptor,\n descriptorCache: cache\n };\n}\n\n// reviving //////////\n\nfunction reviveDescriptor(entry, reviveCache, hooks) {\n hooks = hooks || reviveHooks;\n reviveCache = reviveCache || {};\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(entry.root)) {\n return reviveDescriptors0(entry, reviveCache, hooks);\n } else {\n return reviveDescriptor0(entry, reviveCache, hooks);\n }\n}\n\n/**\n * TBD: document this!\n *\n * @param {[type]} entry [description]\n * @param {[type]} reviveCache [description]\n * @param {[type]} hooks [description]\n * @return {[type]} [description]\n */\nfunction reviveDescriptors0(entry, reviveCache, hooks) {\n let descriptors = entry.root;\n let descriptorCache = entry.descriptorCache;\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(descriptors, (result, element) => {\n var currentCache = result.reviveCache,\n currentDescriptors = result.root;\n let {\n root,\n reviveCache\n } = reviveDescriptor0({\n root: element,\n descriptorCache\n }, currentCache, hooks);\n return {\n root: [...currentDescriptors, root],\n reviveCache\n };\n }, {\n root: [],\n reviveCache\n });\n}\n\n/**\n * TBD: document this!\n *\n * @param {[type]} entry [description]\n * @param {[type]} cache [description]\n * @param {[type]} hooks [description]\n * @return {[type]} [description]\n */\nfunction reviveDescriptor0(entry, reviveCache, hooks) {\n var descriptor = entry.root;\n var id = descriptor.id;\n var elements = reviveCache.elements || {};\n var existingElement = elements[id];\n\n // element already created; nothing to do\n if (existingElement) {\n return {\n root: existingElement,\n reviveCache: reviveCache\n };\n }\n\n // start with a fake element; haha <3\n var element = {\n id: id\n };\n\n // we're new; need to initialize element via hooks\n let element0 = evaluateReviveHooks(entry, element, hooks, {\n ...reviveCache,\n elements\n });\n return {\n root: element0.root,\n reviveCache: {\n ...element0.reviveCache,\n elements: {\n ...element0.reviveCache.elements,\n [id]: element0.root\n }\n }\n };\n}\n\n// entry = { root, descriptorCache }\n// element = { id: foo }\n// hooks = [ ... ]\n// reviveCache = { ... }\nfunction evaluateReviveHooks(entry, element, hooks, reviveCache) {\n function revive(entry, reviveCache) {\n return reviveDescriptor(entry, reviveCache, hooks);\n }\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(hooks, function (result, hook) {\n return hook(entry, result.root, result.reviveCache, revive);\n }, {\n root: element,\n reviveCache: reviveCache\n });\n}\nfunction reviveTableElement(entry, element, reviveCache, revive) {\n var descriptor = entry.root;\n var createCache = entry.descriptorCache;\n var elementAttrs = {\n ...element\n };\n\n // make sure table element ID is same as moddle element ID\n if (element.businessObject && element.businessObject.id) {\n elementAttrs.id = element.businessObject.id;\n }\n if (descriptor.type === 'row' || descriptor.type === 'col') {\n let cells0 = revive({\n root: descriptor.cells,\n descriptorCache: createCache\n }, reviveCache);\n elementAttrs.cells = cells0.root;\n reviveCache = cells0.reviveCache;\n }\n var Constructor = getConstructor(descriptor);\n var newElement = new Constructor(elementAttrs);\n\n // set parent row or col\n if (newElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Row) {\n newElement.cells.forEach(cell => {\n cell.row = newElement;\n });\n } else if (newElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Col) {\n newElement.cells.forEach(cell => {\n cell.col = newElement;\n });\n }\n return {\n root: newElement,\n reviveCache\n };\n}\nfunction reviveBusinessObject(entry, element, reviveCache) {\n var businessObject = entry.root.businessObject;\n if (!businessObject) {\n return {\n root: element,\n reviveCache\n };\n }\n\n // need to clone businessObject\n var bo0 = createBo({\n root: businessObject,\n descriptorCache: entry.descriptorCache\n }, reviveCache);\n return {\n root: {\n ...element,\n businessObject: bo0.root\n },\n reviveCache: bo0.reviveCache\n };\n}\nfunction getConstructor(descriptor) {\n switch (descriptor.type) {\n case 'row':\n return table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Row;\n case 'cell':\n return table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Cell;\n case 'col':\n return table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Col;\n default:\n throw new Error('unknown element type: #' + descriptor.type);\n }\n}\nfunction createBo(entry, reviveCache) {\n var boDescriptor = entry.root;\n var id = boDescriptor.id;\n let boCache, existingBo;\n if (id) {\n boCache = reviveCache.boCache || {};\n existingBo = boCache[id];\n\n // businessObject already created; nothing to do\n if (existingBo) {\n return {\n root: existingBo,\n reviveCache\n };\n }\n }\n var newBoAttrs = {};\n\n // set attrs for new business object (might include creating other business objects)\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.keys)(boDescriptor).forEach(key => {\n let val, val0;\n if (boDescriptor[key].$type) {\n val0 = createBo({\n root: boDescriptor[key]\n }, reviveCache);\n val = val0.root;\n reviveCache = val0.reviveCache;\n boCache = reviveCache.boCache || {};\n } else if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(boDescriptor[key])) {\n val = boDescriptor[key].map(b => {\n val0 = createBo({\n root: b\n }, reviveCache);\n reviveCache = val0.reviveCache;\n boCache = reviveCache.boCache || {};\n return val0.root;\n });\n } else {\n val = boDescriptor[key];\n }\n newBoAttrs[key] = val;\n });\n const type = newBoAttrs.$type;\n delete newBoAttrs.$type;\n\n // generate new ID if not supposed to be kept or already assigned\n if (!reviveCache._keepIds || reviveCache._model.ids.assigned(newBoAttrs.id)) {\n delete newBoAttrs.id;\n }\n var newBo = reviveCache._dmnFactory.create(type, newBoAttrs);\n\n // set up $parent relationships for moddle elements\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(newBoAttrs, newBoAttr => {\n if (newBoAttr.$type) {\n newBoAttr.$parent = newBo;\n }\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isArray)(newBoAttr)) {\n newBoAttr.forEach(a => a.$parent = newBo);\n }\n });\n if (id) {\n boCache = {\n ...boCache,\n [id]: newBo\n };\n reviveCache = {\n ...reviveCache,\n boCache\n };\n }\n return {\n root: newBo,\n reviveCache\n };\n}\n//# sourceMappingURL=DescriptorUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/DescriptorUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/CutHandler.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/CutHandler.js ***! + \******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CutHandler)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! table-js/lib/model */ \"./node_modules/table-js/lib/model/index.js\");\n\n\n/**\r\n * A handler that implements cutting a row or col.\r\n * Cutting of cells doesn't make sense.\r\n */\nclass CutHandler {\n constructor(clipboard, modeling, sheet) {\n this._clipboard = clipboard;\n this._modeling = modeling;\n this._sheet = sheet;\n }\n\n /**\r\n * \r\n */\n execute(context) {\n let {\n data\n } = context;\n context.oldData = this._clipboard.get();\n this._clipboard.set(data);\n return this._sheet.getRoot();\n }\n postExecute(context) {\n let {\n elements\n } = context;\n elements.forEach(element => {\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_0__.Row) {\n this._modeling.removeRow(element);\n } else if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_0__.Col) {\n this._modeling.removeCol(element);\n }\n });\n }\n\n /**\r\n * \r\n */\n revert(context) {\n const {\n oldData\n } = context;\n this._clipboard.set(oldData);\n return this._sheet.getRoot();\n }\n}\nCutHandler.$inject = ['clipboard', 'modeling', 'sheet'];\n//# sourceMappingURL=CutHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/CutHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/PasteHandler.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/PasteHandler.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PasteHandler)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/model */ \"./node_modules/table-js/lib/model/index.js\");\n/* harmony import */ var _DescriptorUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../DescriptorUtil */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/DescriptorUtil.js\");\n\n\n\n/**\r\n * A handler that implements pasting elements.\r\n */\nclass PasteHandler {\n constructor(clipboard, dmnFactory, elementFactory, elementRegistry, eventBus, moddle, modeling, sheet) {\n this._clipboard = clipboard;\n this._dmnFactory = dmnFactory;\n this._elementFactory = elementFactory;\n this._elementRegistry = elementRegistry;\n this._eventBus = eventBus;\n this._model = moddle;\n this._modeling = modeling;\n this._sheet = sheet;\n }\n\n /**\r\n * \r\n */\n postExecute(context) {\n let {\n element,\n after\n } = context;\n const data = this._clipboard.get();\n if (!data) {\n throw new Error('missing clipboard data');\n }\n const root = this._sheet.getRoot();\n\n // (1) create elements from descriptors\n const elements = (0,_DescriptorUtil__WEBPACK_IMPORTED_MODULE_0__.reviveDescriptor)(data.elements, {\n _dmnFactory: this._dmnFactory,\n _keepIds: data.keepIds,\n _model: this._model\n }).root;\n\n // (2) add elements to sheet\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Row) {\n let index = root.rows.indexOf(element);\n if (index === -1) {\n return;\n }\n elements.forEach(element => {\n if (after) {\n index++;\n }\n this._modeling.addRow(element, index);\n });\n } else if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_1__.Col) {\n let index = root.cols.indexOf(element);\n if (index === -1) {\n return;\n }\n elements.forEach(element => {\n if (after) {\n index++;\n }\n this._modeling.addCol(element, index);\n });\n }\n context.oldElements = this._clipboard.get();\n return this._sheet.getRoot();\n }\n\n /**\r\n * \r\n */\n revert(context) {}\n}\nPasteHandler.$inject = ['clipboard', 'dmnFactory', 'elementFactory', 'elementRegistry', 'eventBus', 'moddle', 'modeling', 'sheet'];\n//# sourceMappingURL=PasteHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/cmd/PasteHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/index.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_clipboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/features/clipboard */ \"./node_modules/diagram-js/lib/features/clipboard/index.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rules */ \"./node_modules/dmn-js-decision-table/lib/features/rules/index.js\");\n/* harmony import */ var _CopyCutPaste__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CopyCutPaste */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/CopyCutPaste.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_clipboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _rules__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['copyCutPaste'],\n copyCutPaste: ['type', _CopyCutPaste__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/CopyCutPasteKeyBindings.js": +/*!****************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/CopyCutPasteKeyBindings.js ***! + \****************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CopyPasteKeyBindings)\n/* harmony export */ });\n/* harmony import */ var selection_ranges__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! selection-ranges */ \"./node_modules/selection-ranges/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../cell-selection/CellSelectionUtil */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js\");\n/* harmony import */ var _keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../keyboard/KeyboardUtil */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/KeyboardUtil.js\");\n\n\n\n\n\n/**\n * Keybindings for Copy + Paste\n */\nclass CopyPasteKeyBindings {\n constructor(injector, eventBus, clipboard, cellSelection, elementRegistry, editorActions, renderer) {\n this._clipboard = clipboard;\n this._cellSelection = cellSelection;\n this._elementRegistry = elementRegistry;\n this._editorActions = editorActions;\n this._keyboard = injector.get('keyboard', false);\n this._renderer = renderer;\n if (!this._keyboard) {\n return;\n }\n eventBus.on('keyboard.init', this._registerBindings);\n eventBus.on('keyboard.bind', () => {\n min_dom__WEBPACK_IMPORTED_MODULE_3__.event.bind(document, 'copy', this._clearClipboard, true);\n min_dom__WEBPACK_IMPORTED_MODULE_3__.event.bind(document, 'cut', this._clearClipboard, true);\n });\n eventBus.on('keyboard.unbind', () => {\n min_dom__WEBPACK_IMPORTED_MODULE_3__.event.unbind(document, 'copy', this._clearClipboard, true);\n min_dom__WEBPACK_IMPORTED_MODULE_3__.event.unbind(document, 'cut', this._clearClipboard, true);\n });\n }\n _clearClipboard = () => {\n this._clipboard.clear();\n };\n\n /**\n * Return the selected cell within the decision table.\n *\n * This verifies that a cell ready for copy-or-paste is\n * actual selected by the user, in the Browser UI.\n *\n * @return {Cell}\n */\n _getSelectedCell() {\n const elementId = this._cellSelection.getCellSelection();\n\n // we may have no selection\n if (!elementId) {\n return;\n }\n const cell = this._elementRegistry.get(elementId);\n\n // selection may not be a cell\n if (!cell) {\n return;\n }\n const container = this._renderer.getContainer();\n const node = (0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_1__.getNodeById)(elementId, container);\n const focusableNode = (0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_1__.getFocusableNode)(node);\n\n // focusable element in selection may not be actual\n // browser focus, i.e. when a menu is open\n if (document.activeElement !== focusableNode) {\n return;\n }\n const range = (0,selection_ranges__WEBPACK_IMPORTED_MODULE_0__.getRange)(node);\n\n // user may attempt native copy-paste operation right now\n // don't interfere with normal text copying\n if (range && range.start !== range.end) {\n return;\n }\n return cell;\n }\n _registerBindings = () => {\n // copy\n // CTRL/CMD + C\n const copy = (key, modifiers) => {\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__.isCmd)(modifiers) && key === 67) {\n const cell = this._getSelectedCell();\n if (!cell) {\n return;\n }\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__.isShift)(modifiers)) {\n this._editorActions.trigger('copy', {\n element: cell.col\n });\n } else {\n this._editorActions.trigger('copy', {\n element: cell.row\n });\n }\n return true;\n }\n };\n\n // cut\n // CTRL/CMD + X\n const cut = (key, modifiers) => {\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__.isCmd)(modifiers) && key === 88) {\n const cell = this._getSelectedCell();\n if (!cell) {\n return;\n }\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__.isShift)(modifiers)) {\n this._editorActions.trigger('cut', {\n element: cell.col\n });\n } else {\n this._editorActions.trigger('cut', {\n element: cell.row\n });\n }\n return true;\n }\n };\n\n // paste\n // CTRL/CMD + V\n const paste = (key, modifiers) => {\n let pasted;\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__.isCmd)(modifiers) && key === 86) {\n const cell = this._getSelectedCell();\n if (!cell) {\n return;\n }\n if ((0,_keyboard_KeyboardUtil__WEBPACK_IMPORTED_MODULE_2__.isShift)(modifiers)) {\n pasted = this._editorActions.trigger('pasteAfter', {\n element: cell.col\n });\n if (pasted) {\n this._cellSelection.selectCell('right');\n }\n } else {\n pasted = this._editorActions.trigger('pasteAfter', {\n element: cell.row\n });\n if (pasted) {\n this._cellSelection.selectCell('below');\n }\n }\n }\n\n // indicate, whether we could paste\n return typeof pasted !== 'undefined';\n };\n\n // register listeners\n [copy, cut, paste].forEach(l => {\n this._keyboard.addListener(l);\n });\n };\n}\nCopyPasteKeyBindings.$inject = ['injector', 'eventBus', 'clipboard', 'cellSelection', 'elementRegistry', 'editorActions', 'renderer'];\n//# sourceMappingURL=CopyCutPasteKeyBindings.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/CopyCutPasteKeyBindings.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/index.js": +/*!**********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/index.js ***! + \**********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_clipboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/features/clipboard */ \"./node_modules/diagram-js/lib/features/clipboard/index.js\");\n/* harmony import */ var _cell_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../cell-selection */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js\");\n/* harmony import */ var _CopyCutPasteKeyBindings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CopyCutPasteKeyBindings */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/CopyCutPasteKeyBindings.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_clipboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _cell_selection__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['copyCutPasteKeyBindings'],\n copyCutPasteKeyBindings: ['type', _CopyCutPasteKeyBindings__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/key-bindings/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/create-inputs/CreateInputsProvider.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/create-inputs/CreateInputsProvider.js ***! + \***********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateInputsProvider)\n/* harmony export */ });\n/* harmony import */ var _components_CreateInputHeaderCell__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/CreateInputHeaderCell */ \"./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputHeaderCell.js\");\n/* harmony import */ var _components_CreateInputCell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/CreateInputCell */ \"./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputCell.js\");\n\n\nconst LOW_PRIORITY = 500;\nclass CreateInputsProvider {\n constructor(components, sheet) {\n components.onGetComponent('cell', LOW_PRIORITY, ({\n cellType\n }) => {\n const {\n businessObject\n } = sheet.getRoot();\n if (businessObject.input && businessObject.input.length) {\n return;\n }\n if (cellType === 'before-label-cells') {\n return _components_CreateInputHeaderCell__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if (cellType === 'before-rule-cells') {\n return _components_CreateInputCell__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n }\n}\nCreateInputsProvider.$inject = ['components', 'sheet'];\n//# sourceMappingURL=CreateInputsProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/create-inputs/CreateInputsProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputCell.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputCell.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateInputsCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n\nclass CreateInputsCell extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__.inject)(this);\n }\n onClick = event => {\n this.editorActions.trigger('addInput');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", \"input-cell create-inputs\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"-\"), 2, {\n \"onClick\": this.onClick,\n \"title\": this.translate('Add input')\n });\n }\n}\nCreateInputsCell.$inject = ['editorActions', 'translate'];\n//# sourceMappingURL=CreateInputCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputCell.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputHeaderCell.js": +/*!***********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputHeaderCell.js ***! + \***********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateInputsHeaderCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n\nclass CreateInputsHeaderCell extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__.inject)(this);\n }\n onClick = event => {\n this.editorActions.trigger('addInput');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", \"input-cell create-inputs header actionable\", [this.translate('Input'), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\" \"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"add-input dmn-icon-plus action-icon\", null, 1, {\n \"title\": this.translate('Add input')\n })], 0, {\n \"onClick\": this.onClick,\n \"title\": this.translate('Add input')\n });\n }\n}\nCreateInputsHeaderCell.$inject = ['editorActions', 'translate'];\n//# sourceMappingURL=CreateInputHeaderCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/create-inputs/components/CreateInputHeaderCell.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/create-inputs/index.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/create-inputs/index.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _CreateInputsProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateInputsProvider */ \"./node_modules/dmn-js-decision-table/lib/features/create-inputs/CreateInputsProvider.js\");\n/* harmony import */ var _editor_actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editor-actions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_editor_actions__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['createInputsProvider'],\n createInputsProvider: ['type', _CreateInputsProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/create-inputs/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/DecisionRuleIndices.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/DecisionRuleIndices.js ***! + \******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionRuleIndices)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionRuleIndexCellComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionRuleIndexCellComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/components/DecisionRuleIndexCellComponent.js\");\n\nclass DecisionRuleIndices {\n constructor(components) {\n components.onGetComponent('cell', ({\n cellType\n }) => {\n if (cellType === 'before-rule-cells') {\n return _components_DecisionRuleIndexCellComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n }\n}\nDecisionRuleIndices.$inject = ['components'];\n//# sourceMappingURL=DecisionRuleIndices.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/DecisionRuleIndices.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/components/DecisionRuleIndexCellComponent.js": +/*!****************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/components/DecisionRuleIndexCellComponent.js ***! + \****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionRulesIndexCellComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass DecisionRulesIndexCellComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n render() {\n const {\n row,\n rowIndex\n } = this.props;\n const {\n components\n } = this.context;\n const innerComponents = components.getComponents('cell-inner', {\n cellType: 'rule-index',\n row,\n rowIndex\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", \"rule-index\", [innerComponents && innerComponents.map(InnerComponent => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, InnerComponent, {\n \"row\": row,\n \"rowIndex\": rowIndex\n })), rowIndex + 1], 0, {\n \"data-element-id\": row.id,\n \"data-row-id\": row.id\n });\n }\n}\n//# sourceMappingURL=DecisionRuleIndexCellComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/components/DecisionRuleIndexCellComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/index.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/index.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DecisionRuleIndices__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionRuleIndices */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/DecisionRuleIndices.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['decisionRuleIndices'],\n decisionRuleIndices: ['type', _DecisionRuleIndices__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rule-indices/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRules.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRules.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Rules)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionRulesBodyComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionRulesBodyComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesBodyComponent.js\");\n/* harmony import */ var _components_DecisionRulesRowComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/DecisionRulesRowComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesRowComponent.js\");\n/* harmony import */ var _components_DecisionRulesCellComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/DecisionRulesCellComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellComponent.js\");\n\n\n\nclass Rules {\n constructor(components) {\n components.onGetComponent('table.body', () => _components_DecisionRulesBodyComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n components.onGetComponent('row', ({\n rowType\n }) => {\n if (rowType === 'rule') {\n return _components_DecisionRulesRowComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n components.onGetComponent('cell', ({\n cellType\n }) => {\n if (cellType === 'rule') {\n return _components_DecisionRulesCellComponent__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n }\n });\n }\n}\nRules.$inject = ['components'];\n//# sourceMappingURL=DecisionRules.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRules.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRulesEditor.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRulesEditor.js ***! + \***********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ RulesEditor)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionRulesCellEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionRulesCellEditorComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellEditorComponent.js\");\n\nconst HIGH_PRIORITY = 1500;\nclass RulesEditor {\n constructor(components) {\n components.onGetComponent('cell', HIGH_PRIORITY, ({\n cellType\n }) => {\n if (cellType === 'rule') {\n return _components_DecisionRulesCellEditorComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n }\n}\nRulesEditor.$inject = ['components'];\n//# sourceMappingURL=DecisionRulesEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRulesEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesBodyComponent.js": +/*!*****************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesBodyComponent.js ***! + \*****************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionRulesBodyComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass DecisionRulesBodyComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n render({\n rows,\n cols\n }) {\n const {\n components\n } = this.context;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tbody\", null, rows.map((row, rowIndex) => {\n const RowComponent = components.getComponent('row', {\n rowType: 'rule'\n });\n return RowComponent && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, RowComponent, {\n \"row\": row,\n \"rowIndex\": rowIndex,\n \"cols\": cols\n }, row.id);\n }), 0);\n }\n}\n//# sourceMappingURL=DecisionRulesBodyComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesBodyComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellComponent.js": +/*!*****************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellComponent.js ***! + \*****************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionRulesCellComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/Cell.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n\nclass DecisionRulesCellComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n render() {\n const {\n cell,\n row,\n col\n } = this.props;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(cell, 'dmn:UnaryTests')) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"className\": \"input-cell\",\n \"elementId\": cell.id,\n \"data-row-id\": row.id,\n \"data-col-id\": col.id,\n children: cell.businessObject.text\n });\n } else {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"className\": \"output-cell\",\n \"elementId\": cell.id,\n \"data-row-id\": row.id,\n \"data-col-id\": col.id,\n children: cell.businessObject.text\n });\n }\n }\n}\n//# sourceMappingURL=DecisionRulesCellComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellEditorComponent.js": +/*!***********************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellEditorComponent.js ***! + \***********************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionRulesCellEditorComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/ContentEditable */ \"./node_modules/dmn-js-shared/lib/components/ContentEditable.js\");\n/* harmony import */ var dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-shared/lib/components/LiteralExpression */ \"./node_modules/dmn-js-shared/lib/components/LiteralExpression.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/Cell.js\");\n\n\n\n\n\n\n\nclass DecisionRulesCellEditorComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.changeCellValue = this.changeCellValue.bind(this);\n this.onElementsChanged = this.onElementsChanged.bind(this);\n }\n onElementsChanged() {\n this.forceUpdate();\n }\n componentWillMount() {\n const {\n injector\n } = this.context;\n const {\n cell\n } = this.props;\n const changeSupport = this._changeSupport = this.context.changeSupport;\n this._modeling = injector.get('modeling');\n changeSupport.onElementsChanged(cell.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const {\n cell\n } = this.props;\n this._changeSupport.offElementsChanged(cell.id, this.onElementsChanged);\n }\n changeCellValue(value) {\n const {\n cell\n } = this.props;\n this._modeling.editCell(cell.businessObject, value);\n }\n render() {\n const {\n cell,\n rowIndex,\n row,\n col,\n colIndex\n } = this.props;\n const isUnaryTest = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(cell, 'dmn:UnaryTests');\n const businessObject = cell.businessObject;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, table_js_lib_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n \"className\": isUnaryTest ? 'input-cell' : 'output-cell',\n \"elementId\": cell.id,\n \"coords\": `${rowIndex}:${colIndex}`,\n \"data-row-id\": row.id,\n \"data-col-id\": col.id,\n children: (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, TableCellEditor, {\n \"placeholder\": isUnaryTest ? '-' : '',\n \"onChange\": this.changeCellValue,\n \"value\": businessObject.text,\n \"businessObject\": businessObject\n })\n });\n }\n}\nclass FeelEditor extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n focussed: false\n };\n this.onFocus = this.onFocus.bind(this);\n this.onBlur = this.onBlur.bind(this);\n }\n onFocus() {\n this.setState({\n focussed: true\n });\n }\n onBlur() {\n this.setState({\n focussed: false\n });\n }\n render() {\n const {\n focussed\n } = this.state;\n const className = `feel-editor${focussed ? ' focussed' : ''}`;\n\n // TODO(@barmac): display only a single editor;\n // required to workaround \"replaceChild\" error\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", className, [focussed && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n ...this.props,\n \"autoFocus\": true,\n \"onBlur\": this.onBlur\n })), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n ...this.props,\n \"onInput\": () => {},\n \"onFocus\": this.onFocus\n }))], 0, {\n \"onClick\": this.onFocus\n });\n }\n}\nclass TableCellEditor extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._expressionLanguages = context.injector.get('expressionLanguages');\n this._translate = context.injector.get('translate');\n this._variableResolver = context.injector.get('variableResolver', false);\n }\n isDefaultExpressionLanguage(businessObject) {\n const {\n expressionLanguage\n } = businessObject;\n const defaultExpressionLanguage = this.getDefaultExpressionLanguage().value;\n return !expressionLanguage || expressionLanguage === defaultExpressionLanguage;\n }\n getDescription(businessObject) {\n return businessObject.description;\n }\n getExpressionLanguageLabel(businessObject) {\n const {\n expressionLanguage\n } = businessObject;\n const defaultExpressionLanguage = this.getDefaultExpressionLanguage();\n return this._expressionLanguages.getLabel(expressionLanguage) || defaultExpressionLanguage.label;\n }\n isScript() {\n const {\n businessObject\n } = this.props;\n const defaultExpressionLanguage = this.getDefaultExpressionLanguage();\n if (!this._isInputCell()) {\n return false;\n }\n if (businessObject.text.indexOf('\\n') !== -1) {\n return true;\n }\n return businessObject.expressionLanguage && businessObject.expressionLanguage !== defaultExpressionLanguage;\n }\n _isInputCell() {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(this.props.businessObject, 'dmn:UnaryTests');\n }\n getDefaultExpressionLanguage() {\n const elementType = this._isInputCell() ? 'inputCell' : 'outputCell';\n return this._expressionLanguages.getDefault(elementType);\n }\n getEditor() {\n return this.isFEEL() ? FeelEditor : dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n }\n isFEEL() {\n return this.getExpressionLanguage() === 'feel';\n }\n getExpressionLanguage() {\n const {\n businessObject\n } = this.props;\n return businessObject.expressionLanguage || this.getDefaultExpressionLanguage().value;\n }\n _getVariables() {\n const {\n businessObject\n } = this.props;\n return this._variableResolver && this._variableResolver.getVariables(businessObject);\n }\n _getLabel() {\n return this._isInputCell() ? this._translate('Input') : this._translate('Output');\n }\n render() {\n const {\n businessObject,\n placeholder,\n value,\n onChange\n } = this.props;\n const description = this.getDescription(businessObject);\n const isDefaultExpressionLanguage = this.isDefaultExpressionLanguage(businessObject);\n const expressionLanguageLabel = this.getExpressionLanguageLabel(businessObject);\n const isScript = this.isScript();\n const Editor = this.getEditor();\n const variables = this._getVariables();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"cell-editor\", [(0,min_dash__WEBPACK_IMPORTED_MODULE_5__.isString)(description) && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"description-indicator\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Editor, {\n \"label\": this._getLabel(),\n \"className\": isScript ? 'script-editor' : '',\n \"ctrlForNewline\": true,\n \"onInput\": onChange,\n \"value\": value,\n \"placeholder\": placeholder,\n \"variables\": variables\n }), !isDefaultExpressionLanguage && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"dms-badge dmn-expression-language\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"dms-badge-icon dmn-icon-file-code\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"dms-badge-label\", expressionLanguageLabel, 0)], 4, {\n \"title\": this._translate('Expression language: {expressionLanguageLabel}', {\n expressionLanguageLabel\n })\n })], 0);\n }\n}\n//# sourceMappingURL=DecisionRulesCellEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesCellEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesRowComponent.js": +/*!****************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesRowComponent.js ***! + \****************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionRulesRowComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/mixins */ \"./node_modules/dmn-js-shared/lib/components/mixins/index.js\");\n\n\n\n\nclass DecisionRulesRowComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__.ComponentWithSlots);\n }\n render() {\n const {\n row,\n rowIndex,\n cols\n } = this.props;\n const {\n cells\n } = row;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [this.slotFills({\n type: 'cell',\n context: {\n cellType: 'before-rule-cells',\n row,\n rowIndex\n }\n }), cells.map((cell, colIndex) => {\n return this.slotFill({\n type: 'cell',\n context: {\n cellType: 'rule',\n cell,\n rowIndex: rowIndex,\n colIndex: colIndex\n },\n key: cell.id,\n row,\n col: cols[colIndex]\n });\n }), this.slotFills({\n type: 'cell',\n context: {\n cellType: 'after-rule-cells',\n row,\n rowIndex\n }\n })], 0);\n }\n}\n//# sourceMappingURL=DecisionRulesRowComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/components/DecisionRulesRowComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/editor.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/editor.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n/* harmony import */ var _DecisionRulesEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DecisionRulesEditor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRulesEditor.js\");\n/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_0__[\"default\"], _index__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['decisionRulesEditor'],\n decisionRulesEditor: ['type', _DecisionRulesEditor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-rules/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-rules/index.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var _DecisionRules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DecisionRules */ \"./node_modules/dmn-js-decision-table/lib/features/decision-rules/DecisionRules.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['decisionRules'],\n decisionRules: ['type', _DecisionRules__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-rules/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/DecisionTableHeadProvider.js": +/*!**********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/DecisionTableHeadProvider.js ***! + \**********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTableHeadProvider)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionTableHead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionTableHead */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/components/DecisionTableHead.js\");\n\nfunction DecisionTableHeadProvider(components) {\n components.onGetComponent('table.head', () => _components_DecisionTableHead__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n}\nDecisionTableHeadProvider.$inject = ['components'];\n//# sourceMappingURL=DecisionTableHeadProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/DecisionTableHeadProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/components/DecisionTableHead.js": +/*!*************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/components/DecisionTableHead.js ***! + \*************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTableHead)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/mixins */ \"./node_modules/dmn-js-shared/lib/components/mixins/index.js\");\n\n\n\n\n\nclass DecisionTableHead extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_2__.ComponentWithSlots);\n this._sheet = context.injector.get('sheet');\n this._changeSupport = context.changeSupport;\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n const root = this._sheet.getRoot();\n this._changeSupport.onElementsChanged(root.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const root = this._sheet.getRoot();\n this._changeSupport.offElementsChanged(root.id, this.onElementsChanged);\n }\n render() {\n const root = this._sheet.getRoot();\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(root, 'dmn:DMNElement')) {\n return null;\n }\n const businessObject = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.getBusinessObject)(root);\n const inputs = businessObject.input,\n outputs = businessObject.output;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"thead\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", \"index-column\"), this.slotFills({\n type: 'cell',\n context: {\n cellType: 'before-label-cells'\n }\n }), inputs && inputs.map((input, index) => {\n const width = input.width || '192px';\n return this.slotFill({\n type: 'cell',\n context: {\n cellType: 'input-header',\n input,\n index,\n inputsLength: inputs.length,\n width\n },\n key: input.id\n }, DefaultInputHeaderCell);\n }), outputs.map((output, index) => {\n return this.slotFill({\n type: 'cell',\n context: {\n cellType: 'output-header',\n output,\n index,\n outputsLength: outputs.length\n },\n key: output.id\n }, DefaultOutputHeaderCell);\n }), this.slotFills({\n type: 'cell',\n context: {\n cellType: 'after-label-cells'\n }\n })], 0), 2);\n }\n}\n\n// default components ///////////////////////\n\nfunction DefaultInputHeaderCell(props, context) {\n const {\n input,\n className,\n index\n } = props;\n const {\n label,\n inputExpression,\n inputValues\n } = input;\n const translate = context.injector.get('translate');\n const actualClassName = (className || '') + ' input-cell';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", actualClassName, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"clause\", index === 0 ? translate('When') : translate('And'), 0), label ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"input-label\", label, 0, {\n \"title\": translate('Input label: ') + label\n }) : (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"input-expression\", inputExpression.text, 0, {\n \"title\": translate('Input expression: ') + inputExpression.text\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"input-variable\", inputValues && inputValues.text || inputExpression.typeRef, 0, {\n \"title\": inputValues && inputValues.text ? translate('Input values') : translate('Input type')\n })], 0, {\n \"data-col-id\": input.id\n }, input.id);\n}\nfunction DefaultOutputHeaderCell(props, context) {\n const {\n output,\n className,\n index\n } = props;\n const {\n label,\n name,\n outputValues,\n typeRef\n } = output;\n const translate = context.injector.get('translate');\n const actualClassName = (className || '') + ' output-cell';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", actualClassName, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"clause\", index === 0 ? translate('Then') : translate('And'), 0), label ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"output-label\", label, 0, {\n \"title\": translate('Output label')\n }) : (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"output-name\", name, 0, {\n \"title\": translate('Output name')\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"output-variable\", outputValues && outputValues.text || typeRef, 0, {\n \"title\": outputValues && outputValues.text ? translate('Output values') : translate('Output type')\n })], 0, null, output.id);\n}\n//# sourceMappingURL=DecisionTableHead.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/components/DecisionTableHead.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/InputEditingProvider.js": +/*!************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/InputEditingProvider.js ***! + \************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputCellProvider)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _components_InputCell__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/InputCell */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCell.js\");\n/* harmony import */ var _components_InputCellContextMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/InputCellContextMenu */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCellContextMenu.js\");\n/* harmony import */ var _components_InputEditButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/InputEditButton */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditButton.js\");\n\n\n\n\nclass InputCellProvider {\n constructor(components, contextMenu, eventBus, renderer) {\n components.onGetComponent('cell', ({\n cellType\n }) => {\n if (cellType === 'input-header') {\n return _components_InputCell__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType === 'input-edit') {\n return _components_InputCellContextMenu__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n components.onGetComponent('cell-inner', (context = {}) => {\n const {\n cellType\n } = context;\n if (cellType === 'input-cell') {\n return _components_InputEditButton__WEBPACK_IMPORTED_MODULE_2__.InputEditButton;\n }\n });\n eventBus.on('input.edit', ({\n event,\n input\n }) => {\n const {\n target\n } = event;\n const node = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.closest)(target, 'th', true);\n const {\n left,\n top\n } = node.getBoundingClientRect();\n contextMenu.open({\n x: left,\n y: top,\n align: 'bottom-right'\n }, {\n contextMenuType: 'input-edit',\n input\n });\n });\n }\n}\nInputCellProvider.$inject = ['components', 'contextMenu', 'eventBus', 'renderer'];\n//# sourceMappingURL=InputEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/InputEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/OutputEditingProvider.js": +/*!*************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/OutputEditingProvider.js ***! + \*************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputEditingProvider)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _components_OutputCell__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/OutputCell */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCell.js\");\n/* harmony import */ var _components_OutputCellContextMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/OutputCellContextMenu */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCellContextMenu.js\");\n/* harmony import */ var _components_OutputEditButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/OutputEditButton */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditButton.js\");\n\n\n\n\nclass OutputEditingProvider {\n constructor(components, contextMenu, eventBus, renderer) {\n components.onGetComponent('cell', ({\n cellType\n }) => {\n if (cellType === 'output-header') {\n return _components_OutputCell__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType === 'output-edit') {\n return _components_OutputCellContextMenu__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n });\n components.onGetComponent('cell-inner', (context = {}) => {\n const {\n cellType\n } = context;\n if (cellType === 'output-cell') {\n return _components_OutputEditButton__WEBPACK_IMPORTED_MODULE_2__.OutputEditButton;\n }\n });\n eventBus.on('output.edit', ({\n event,\n output\n }) => {\n const {\n target\n } = event;\n const node = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.closest)(target, 'th', true);\n const {\n left,\n top\n } = node.getBoundingClientRect();\n const offset = getOffset(node);\n contextMenu.open({\n x: left,\n y: top,\n align: 'bottom-right'\n }, {\n contextMenuType: 'output-edit',\n output,\n offset\n });\n });\n }\n}\nOutputEditingProvider.$inject = ['components', 'contextMenu', 'eventBus', 'renderer'];\nfunction getOffset(element) {\n if (!(0,min_dom__WEBPACK_IMPORTED_MODULE_3__.matches)(element, '.output-cell + .output-cell')) {\n return {\n x: -1,\n y: 0\n };\n }\n}\n//# sourceMappingURL=OutputEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/OutputEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCell.js": +/*!************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCell.js ***! + \************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/mixins */ \"./node_modules/dmn-js-shared/lib/components/mixins/index.js\");\n\n\n\n\nclass InputCell extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__.ComponentWithSlots);\n this._translate = context.injector.get('translate');\n }\n onClick = event => {\n const {\n input\n } = this.props;\n this._eventBus.fire('input.edit', {\n event,\n input\n });\n };\n onContextmenu = event => {\n const {\n id\n } = this.props.input;\n this._eventBus.fire('cell.contextmenu', {\n event,\n id\n });\n };\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n const {\n injector\n } = this.context;\n this._changeSupport = this.context.changeSupport;\n this._sheet = injector.get('sheet');\n this._eventBus = injector.get('eventBus');\n this._elementRegistry = injector.get('elementRegistry');\n const root = this._sheet.getRoot();\n const {\n input\n } = this.props;\n this._changeSupport.onElementsChanged(root.id, this.onElementsChanged);\n this._changeSupport.onElementsChanged(input.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const root = this._sheet.getRoot();\n const {\n input\n } = this.props;\n this._changeSupport.offElementsChanged(root.id, this.onElementsChanged);\n this._changeSupport.offElementsChanged(input.id, this.onElementsChanged);\n }\n render() {\n const {\n input,\n index,\n inputsLength\n } = this.props;\n const {\n inputExpression,\n inputValues\n } = input;\n const label = input.get('label');\n const width = input.width ? input.width + 'px' : '192px';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", \"input-cell input-editor\", [this.slotFills({\n type: 'cell-inner',\n context: {\n cellType: 'input-cell',\n col: this._elementRegistry.get(input.id),\n index,\n inputsLength\n },\n col: input\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"clause\", index === 0 ? this._translate('When') : this._translate('And'), 0), label ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"input-label\", label, 0, {\n \"title\": this._translate('Input label: ') + label\n }) : (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"input-expression\", inputExpression.text, 0, {\n \"title\": this._translate('Input expression: ') + inputExpression.text\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"input-variable\", inputValues && inputValues.text || this._translate(inputExpression.typeRef || ''), 0, {\n \"title\": inputValues && inputValues.text ? this._translate('Input values') : this._translate('Input type')\n })], 0, {\n \"data-col-id\": input.id,\n \"onDblClick\": this.onClick,\n \"onContextmenu\": this.onContextmenu,\n \"style\": {\n width\n }\n });\n }\n}\n//# sourceMappingURL=InputCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCell.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCellContextMenu.js": +/*!***********************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCellContextMenu.js ***! + \***********************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputCellContextMenu)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _InputEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InputEditor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditor.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n\n\nclass InputCellContextMenu extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.state = {};\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n this.persistChanges = this.debounceInput(this.persistChanges);\n }\n persistChanges = () => {\n const {\n input\n } = this.props.context;\n const {\n unsaved\n } = this.state;\n if (!unsaved) {\n return;\n }\n const {\n label,\n ...inputExpressionProperties\n } = unsaved;\n var changes = {};\n if ('label' in unsaved) {\n changes.label = label;\n }\n if (hasKeys(inputExpressionProperties)) {\n changes.inputExpression = inputExpressionProperties;\n }\n this.modeling.updateProperties(input, changes);\n this.setState({\n unsaved: false\n });\n };\n handleChange = changes => {\n this.setState({\n unsaved: {\n ...this.state.unsaved,\n ...changes\n }\n }, this.persistChanges);\n };\n getValue(attr) {\n let {\n input\n } = this.props.context;\n const {\n unsaved\n } = this.state;\n let target = input;\n\n // input variable stored in parent\n if (attr === 'text') {\n target = target.inputExpression;\n }\n return unsaved && attr in unsaved ? unsaved[attr] : target.get(attr);\n }\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _InputEditor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this.getValue('label'),\n \"text\": this.getValue('text'),\n \"element\": this.props.context.input,\n \"onChange\": this.handleChange\n });\n }\n}\nInputCellContextMenu.$inject = ['debounceInput', 'modeling', 'injector'];\n\n// helpers //////////////////////\n\nfunction hasKeys(obj) {\n return Object.keys(obj).length;\n}\n//# sourceMappingURL=InputCellContextMenu.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputCellContextMenu.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditButton.js": +/*!******************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditButton.js ***! + \******************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InputEditButton: () => (/* binding */ InputEditButton)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass InputEditButton extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._eventBus = context.injector.get('eventBus');\n }\n onClick = event => {\n const {\n col: input\n } = this.props;\n this._eventBus.fire('input.edit', {\n event,\n input\n });\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"edit-button dmn-icon-edit\", null, 1, {\n \"aria-label\": this._translate('Edit input'),\n \"type\": \"button\",\n \"onClick\": this.onClick\n });\n }\n}\n//# sourceMappingURL=InputEditButton.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditButton.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditor.js": +/*!**************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditor.js ***! + \**************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputEditor)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ContentEditable */ \"./node_modules/dmn-js-shared/lib/components/ContentEditable.js\");\n/* harmony import */ var dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/LiteralExpression */ \"./node_modules/dmn-js-shared/lib/components/LiteralExpression.js\");\n\n\n\n\nclass InputEditor extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.translate = context.injector.get('translate');\n this.expressionLanguages = context.injector.get('expressionLanguages', false);\n this.variableResolver = context.injector.get('variableResolver', false);\n this.handleValue = text => {\n let change = {\n text\n };\n this.handleChange(change);\n };\n this.handleLabelChange = value => {\n // default to for empty string\n var label = value || undefined;\n this.handleChange({\n label\n });\n };\n }\n handleChange(changes) {\n var {\n onChange\n } = this.props;\n if (typeof onChange === 'function') {\n onChange(changes);\n }\n }\n getExpressionEditorComponent() {\n if (this.expressionLanguages && this.expressionLanguages.getDefault('inputCell').value !== 'feel') {\n return dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n return dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n }\n\n /**\n * Supress default menu closure on enter.\n * @param {KeyboardEvent} event\n */\n handleKeyDown = event => {\n if (event.key === 'Enter') {\n event.stopPropagation();\n }\n };\n _getVariables() {\n return this.variableResolver && this.variableResolver.getVariables(this.props.element);\n }\n render() {\n const {\n label,\n text\n } = this.props;\n const ExpressionEditor = this.getExpressionEditorComponent();\n const variables = this._getVariables();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container ref-input-editor input-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this.translate('Input label'),\n \"className\": \"dms-input-label\",\n \"value\": label || '',\n \"placeholder\": this.translate('Input'),\n \"singleLine\": true,\n \"onInput\": this.handleLabelChange\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", this.translate('Expression'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, ExpressionEditor, {\n \"label\": this.translate('Input expression'),\n \"placeholder\": this.translate('Enter expression'),\n \"className\": ['ref-text', 'dms-input'].join(' '),\n \"onInput\": this.handleValue,\n \"value\": text || '',\n \"variables\": variables\n })], 4)], 4, {\n \"onKeyDown\": this.handleKeyDown\n });\n }\n}\n//# sourceMappingURL=InputEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/InputEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCell.js": +/*!*************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCell.js ***! + \*************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/mixins */ \"./node_modules/dmn-js-shared/lib/components/mixins/index.js\");\n\n\n\n\nclass OutputCell extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, dmn_js_shared_lib_components_mixins__WEBPACK_IMPORTED_MODULE_1__.ComponentWithSlots);\n this._translate = context.injector.get('translate');\n }\n onClick = event => {\n const {\n output\n } = this.props;\n this._eventBus.fire('output.edit', {\n event,\n output\n });\n };\n onContextmenu = event => {\n const {\n id\n } = this.props.output;\n this._eventBus.fire('cell.contextmenu', {\n event,\n id\n });\n };\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n const {\n injector\n } = this.context;\n this._changeSupport = this.context.changeSupport;\n this._eventBus = injector.get('eventBus');\n this._elementRegistry = injector.get('elementRegistry');\n const {\n output\n } = this.props;\n this._changeSupport.onElementsChanged(output.id, this.onElementsChanged);\n }\n componentWillUnmount() {\n const {\n output\n } = this.props;\n this._changeSupport.offElementsChanged(output.id, this.onElementsChanged);\n }\n render() {\n const {\n output,\n index,\n outputsLength\n } = this.props;\n const {\n label,\n name,\n outputValues,\n typeRef\n } = output;\n const width = output.width ? output.width + 'px' : '192px';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"th\", \"output-cell output-editor\", [this.slotFills({\n type: 'cell-inner',\n context: {\n cellType: 'output-cell',\n col: this._elementRegistry.get(output.id),\n index,\n outputsLength\n },\n col: output\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"clause\", index === 0 ? this._translate('Then') : this._translate('And'), 0), label ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"output-label\", label, 0, {\n \"title\": this._translate('Output label: ') + label\n }) : (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"output-name\", name, 0, {\n \"title\": this._translate('Output name: ') + name\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"output-variable\", outputValues && outputValues.text || this._translate(typeRef || ''), 0, {\n \"title\": outputValues && outputValues.text ? this._translate('Output values') : this._translate('Output type')\n })], 0, {\n \"data-col-id\": output.id,\n \"onDblClick\": this.onClick,\n \"onContextmenu\": this.onContextmenu,\n \"style\": {\n width\n }\n });\n }\n}\n//# sourceMappingURL=OutputCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCell.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCellContextMenu.js": +/*!************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCellContextMenu.js ***! + \************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputCellContextMenu)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _OutputEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OutputEditor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditor.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n\n\nclass OutputCellContextMenu extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.state = {};\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n this.persistChanges = this.debounceInput(this.persistChanges);\n }\n persistChanges = () => {\n const {\n output\n } = this.props.context;\n const {\n unsaved\n } = this.state;\n if (!unsaved) {\n return;\n }\n this.modeling.updateProperties(output, unsaved);\n this.setState({\n unsaved: false\n });\n };\n handleChange = changes => {\n this.setState({\n unsaved: {\n ...this.state.unsaved,\n ...changes\n }\n }, this.persistChanges);\n };\n getValue(attr) {\n const {\n output\n } = this.props.context;\n const {\n unsaved\n } = this.state;\n return unsaved && attr in unsaved ? unsaved[attr] : output.get(attr);\n }\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _OutputEditor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"name\": this.getValue('name'),\n \"label\": this.getValue('label'),\n \"onChange\": this.handleChange\n });\n }\n}\nOutputCellContextMenu.$inject = ['debounceInput', 'modeling'];\n//# sourceMappingURL=OutputCellContextMenu.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputCellContextMenu.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditButton.js": +/*!*******************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditButton.js ***! + \*******************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OutputEditButton: () => (/* binding */ OutputEditButton)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass OutputEditButton extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._eventBus = context.injector.get('eventBus');\n }\n onClick = event => {\n const {\n col: output\n } = this.props;\n this._eventBus.fire('output.edit', {\n event,\n output\n });\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"edit-button dmn-icon-edit\", null, 1, {\n \"aria-label\": this._translate('Edit output'),\n \"type\": \"button\",\n \"onClick\": this.onClick\n });\n }\n}\n//# sourceMappingURL=OutputEditButton.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditButton.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditor.js": +/*!***************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditor.js ***! + \***************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputEditor)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ContentEditable */ \"./node_modules/dmn-js-shared/lib/components/ContentEditable.js\");\n/* harmony import */ var dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n\n\n\n\nclass OutputEditor extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.translate = context.injector ? context.injector.get('translate') : noopTranslate;\n this.setName = name => {\n name = name || undefined;\n this.handleChange({\n name\n });\n };\n this.setLabel = label => {\n label = label || undefined;\n this.handleChange({\n label\n });\n };\n }\n handleChange(changes) {\n var {\n onChange\n } = this.props;\n if (typeof onChange === 'function') {\n onChange(changes);\n }\n }\n render() {\n const {\n name,\n label\n } = this.props;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container ref-output-editor output-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ContentEditable__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this.translate('Output label'),\n \"className\": \"dms-output-label\",\n \"value\": label || '',\n \"placeholder\": this.translate('Output'),\n \"singleLine\": true,\n \"onInput\": this.setLabel\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", this.translate('Output name'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this.translate('Output name'),\n \"className\": \"ref-output-name\",\n \"value\": name || '',\n \"onInput\": this.setName\n })], 4)], 4);\n }\n}\nfunction noopTranslate(str) {\n return str;\n}\n//# sourceMappingURL=OutputEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/components/OutputEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/index.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/index.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var _OutputEditingProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OutputEditingProvider */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/OutputEditingProvider.js\");\n/* harmony import */ var _InputEditingProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InputEditingProvider */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/InputEditingProvider.js\");\n/* harmony import */ var _type_ref__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../type-ref */ \"./node_modules/dmn-js-decision-table/lib/features/type-ref/index.js\");\n/* harmony import */ var _allowed_values__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../allowed-values */ \"./node_modules/dmn-js-decision-table/lib/features/allowed-values/index.js\");\n/* harmony import */ var _add_input_output__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../add-input-output */ \"./node_modules/dmn-js-decision-table/lib/features/add-input-output/index.js\");\n/* harmony import */ var _features_keyboard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../features/keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_add_input_output__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _allowed_values__WEBPACK_IMPORTED_MODULE_5__[\"default\"], table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_8__[\"default\"], dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_0__[\"default\"], dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _features_keyboard__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _type_ref__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n __init__: ['inputEditingProvider', 'outputEditingProvider'],\n inputEditingProvider: ['type', _InputEditingProvider__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n outputEditingProvider: ['type', _OutputEditingProvider__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/editor/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-head/index.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-head/index.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DecisionTableHeadProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionTableHeadProvider */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-head/DecisionTableHeadProvider.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['decisionTableHeadProvider'],\n decisionTableHeadProvider: ['type', _DecisionTableHeadProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-head/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTableProperties.js": +/*!**************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTableProperties.js ***! + \**************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTableProperties)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionTablePropertiesComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionTablePropertiesComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesComponent.js\");\n\nconst LOW_PRIORITY = 500;\nclass DecisionTableProperties {\n constructor(components) {\n components.onGetComponent('table.before', LOW_PRIORITY, () => {\n return _components_DecisionTablePropertiesComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n }\n}\nDecisionTableProperties.$inject = ['components'];\n//# sourceMappingURL=DecisionTableProperties.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTableProperties.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTablePropertiesEditor.js": +/*!********************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTablePropertiesEditor.js ***! + \********************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTableProperties)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionTablePropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionTablePropertiesEditorComponent */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesEditorComponent.js\");\n\nconst LOW_PRIORITY = 500;\nclass DecisionTableProperties {\n constructor(components) {\n components.onGetComponent('table.before', LOW_PRIORITY, () => {\n return _components_DecisionTablePropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n }\n}\nDecisionTableProperties.$inject = ['components'];\n//# sourceMappingURL=DecisionTablePropertiesEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTablePropertiesEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesComponent.js": +/*!**********************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesComponent.js ***! + \**********************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTablePropertiesComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n\n\nclass DecisionTablePropertiesComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n render() {\n const root = this.sheet.getRoot();\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(root, 'dmn:DMNElement')) {\n return null;\n }\n const {\n name\n } = root.businessObject.$parent;\n const HitPolicy = this.components.getComponent('hit-policy') || NullComponent;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"decision-table-properties\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"decision-table-name\", name, 0, {\n \"title\": this._translate('Decision name: ') + name\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"decision-table-header-separator\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, HitPolicy)], 4);\n }\n}\nDecisionTablePropertiesComponent.$inject = ['sheet', 'components'];\nfunction NullComponent() {\n return null;\n}\n//# sourceMappingURL=DecisionTablePropertiesComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesEditorComponent.js": +/*!****************************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesEditorComponent.js ***! + \****************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTablePropertiesComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/EditableComponent */ \"./node_modules/dmn-js-shared/lib/components/EditableComponent.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/mixins/SelectionAware.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/classNames.js\");\n\n\n\n\nclass DecisionTablePropertiesComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n componentWillMount() {\n this.setupChangeListeners({\n bind: this.getBusinessObject().id\n });\n }\n componentWillUnmount() {\n this.setupChangeListeners({\n unbind: this.getBusinessObject().id\n });\n }\n setupChangeListeners({\n bind,\n unbind\n }) {\n if (typeof unbind === 'string') {\n this.changeSupport.offElementsChanged(unbind, this.onElementsChanged);\n }\n if (typeof bind === 'string') {\n this.changeSupport.onElementsChanged(bind, this.onElementsChanged);\n }\n }\n getBusinessObject() {\n return this.sheet.getRoot().businessObject.$parent;\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n setDecisionTableName = name => {\n this.modeling.editDecisionTableName(name);\n };\n render() {\n const bo = this.getBusinessObject();\n const {\n name\n } = bo;\n const HitPolicy = this.components.getComponent('hit-policy') || NullComponent;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"decision-table-properties\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, DecisionTableName, {\n \"label\": this.translate('Decision name'),\n \"className\": \"decision-table-name\",\n \"value\": name,\n \"ctrlForNewline\": true,\n \"onBlur\": resetScroll,\n \"onChange\": this.setDecisionTableName,\n \"elementId\": '__decisionProperties_name',\n \"coords\": '0:__decisionProperties'\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"decision-table-header-separator\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, HitPolicy)], 4);\n }\n}\nDecisionTablePropertiesComponent.$inject = ['sheet', 'modeling', 'changeSupport', 'components', 'translate'];\nclass DecisionTableName extends dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, table_js_lib_components__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n }\n render() {\n const name = this.props.value;\n const className = (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this.getSelectionClasses(), this.getClassName());\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", className, this.getEditor(), 0, {\n \"data-element-id\": this.props.elementId,\n \"data-coords\": this.props.coords,\n \"title\": this._translate('Decision name: ') + name\n });\n }\n}\nfunction NullComponent() {\n return null;\n}\nfunction resetScroll(event) {\n event.target.scroll(0, 0);\n}\n//# sourceMappingURL=DecisionTablePropertiesEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/components/DecisionTablePropertiesEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/editor.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/editor.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DecisionTablePropertiesEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionTablePropertiesEditor */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTablePropertiesEditor.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['decisionTableProperties'],\n decisionTableProperties: ['type', _DecisionTablePropertiesEditor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/index.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/index.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DecisionTableProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionTableProperties */ \"./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/DecisionTableProperties.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['decisionTableProperties'],\n decisionTableProperties: ['type', _DecisionTableProperties__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/decision-table-properties/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/description/Description.js": +/*!************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/description/Description.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Description)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var _cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../cell-selection/CellSelectionUtil */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js\");\n/* harmony import */ var _components_DescriptionEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/DescriptionEditor */ \"./node_modules/dmn-js-decision-table/lib/features/description/components/DescriptionEditor.js\");\n\n\n\n\n\nconst LOW_PRIORITY = 500;\nconst LOWER_PRIORITY = 750;\nconst OFFSET_X = 26;\nclass Description {\n constructor(components, contextMenu, elementRegistry, eventBus, modeling, renderer, translate) {\n this._contextMenu = contextMenu;\n this._modeling = modeling;\n this._renderer = renderer;\n this._translate = translate;\n eventBus.on('cell.click', LOWER_PRIORITY, event => {\n if (event.defaultPrevented) {\n return;\n }\n const {\n target,\n id\n } = event;\n const element = elementRegistry.get(id);\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isAny)(element, ['dmn:UnaryTests', 'dmn:LiteralExpression'])) {\n return;\n }\n const description = getDescription(element);\n if (!description) {\n // prevent focus\n event.preventDefault();\n }\n const container = renderer.getContainer(),\n bounds = target.getBoundingClientRect();\n const position = getPosition(container, bounds);\n contextMenu.open(position, {\n contextMenuType: 'cell-description',\n autoFocus: false,\n id,\n offset: {\n x: 4,\n y: 4\n }\n });\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'cell-description') {\n const element = elementRegistry.get(context.id);\n const description = getDescription(element);\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_4__.isString)(description)) {\n return _components_DescriptionEditor__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n }\n }\n });\n components.onGetComponent('context-menu-cell-additional', LOW_PRIORITY, (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'context-menu') {\n const {\n id\n } = context;\n if (!id) {\n return;\n }\n const element = elementRegistry.get(id);\n\n // element might not be in element registry (e.g. cut)\n if (!element) {\n return;\n }\n const {\n businessObject\n } = element;\n const {\n description\n } = businessObject;\n const existingDescription = (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.isString)(description);\n const className = existingDescription ? 'remove-description' : 'add-description';\n const onClick = existingDescription ? () => this.removeDescription(element) : () => this.addDescription(element);\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", `context-menu-group-entry ${className}`, (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.isString)(description) ? this._translate('Remove cell description') : this._translate('Add cell description'), 0, {\n \"onClick\": onClick\n });\n }\n });\n }\n addDescription = cell => {\n this._modeling.updateProperties(cell, {\n description: ''\n });\n const container = this._renderer.getContainer();\n const node = (0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_2__.getNodeById)(cell.id, container);\n const bounds = node.getBoundingClientRect();\n const position = getPosition(container, bounds);\n this._contextMenu.open(position, {\n contextMenuType: 'cell-description',\n id: cell.id,\n autoFocus: true,\n offset: {\n x: 4,\n y: 4\n }\n });\n };\n removeDescription = cell => {\n this._modeling.updateProperties(cell, {\n description: null\n });\n this._contextMenu.close();\n };\n}\nDescription.$inject = ['components', 'contextMenu', 'elementRegistry', 'eventBus', 'modeling', 'renderer', 'translate'];\n\n// helpers //////////\n\nfunction getPosition(container, bounds) {\n const {\n top,\n left,\n width,\n height\n } = bounds;\n return {\n x: left + container.parentNode.scrollLeft - OFFSET_X,\n y: top + container.parentNode.scrollTop,\n width: width + 2 * OFFSET_X,\n height\n };\n}\nfunction getDescription(element) {\n return element && element.businessObject && element.businessObject.description;\n}\n//# sourceMappingURL=Description.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/description/Description.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/description/components/DescriptionEditor.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/description/components/DescriptionEditor.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DescriptionEditor)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/EditableComponent */ \"./node_modules/dmn-js-shared/lib/components/EditableComponent.js\");\n\n\n\n\n\nclass DescriptionEditor extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._elementRegistry = context.injector.get('elementRegistry');\n this._modeling = context.injector.get('modeling');\n this._changeSupport = this.context.changeSupport;\n const {\n id\n } = this.props.context;\n this._element = this._elementRegistry.get(id);\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentWillMount() {\n if (this._element) {\n this._changeSupport.onElementsChanged(this._element.id, this.onElementsChanged);\n }\n }\n componentDidMount() {\n const {\n autoFocus\n } = this.props.context;\n if (autoFocus && this.node) {\n const editor = getEditor(this.node);\n editor.focus();\n }\n }\n componentWillUnmount() {\n if (this._element) {\n this._changeSupport.offElementsChanged(this._element.id, this.onElementsChanged);\n const {\n businessObject\n } = this._element;\n const {\n description\n } = businessObject;\n\n // if empty description remove description\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isString)(description) && !description.length) {\n this.changeDescription(null);\n }\n }\n }\n changeDescription = value => {\n this._modeling.updateProperties(this._element, {\n description: value\n });\n };\n render() {\n if (!this._element) {\n return;\n }\n const {\n businessObject\n } = this._element;\n const {\n description\n } = businessObject;\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isString)(description)) {\n return;\n }\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container description-editor\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Editor, {\n \"className\": \"dms-input\",\n \"onChange\": this.changeDescription,\n \"value\": description\n }), 2, null, null, node => this.node = node);\n }\n}\nclass Editor extends dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", this.getClassName(), this.getEditor(), 0);\n }\n}\n\n// helpers //////////\n\nfunction getEditor(container) {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.query)('.content-editable', container);\n}\n//# sourceMappingURL=DescriptionEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/description/components/DescriptionEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/description/index.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/description/index.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/features/interaction-events */ \"./node_modules/table-js/lib/features/interaction-events/index.js\");\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _Description__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Description */ \"./node_modules/dmn-js-decision-table/lib/features/description/Description.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_1__[\"default\"], table_js_lib_features_interaction_events__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['description'],\n description: ['type', _Description__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/description/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/DragAndDrop.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/DragAndDrop.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DragAndDrop)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/model */ \"./node_modules/table-js/lib/model/index.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\nconst TOP = 'top',\n RIGHT = 'right',\n BOTTOM = 'bottom',\n LEFT = 'left';\nclass DragAndDrop {\n constructor(components, elementRegistry, eventBus, dragAndDrop, renderer, rules, sheet, translate) {\n this._elementRegistry = elementRegistry;\n this._dragAndDrop = dragAndDrop;\n this._renderer = renderer;\n this._rules = rules;\n this._sheet = sheet;\n this._translate = translate;\n\n // provide drag handle for drag and drop\n components.onGetComponent('cell-inner', ({\n cellType,\n col,\n row\n }) => {\n if (cellType === 'rule-index') {\n return () => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"dmn-icon-drag vertical\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), 2, {\n \"draggable\": \"true\",\n \"onDragStart\": e => this.startDrag(row, e),\n \"title\": this._translate('Move rule')\n });\n } else if (cellType === 'input-cell' || cellType === 'output-cell') {\n let title = `Move ${(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(col) ? 'Input' : 'Output'}`;\n return () => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"dmn-icon-drag horizontal\", null, 1, {\n \"draggable\": \"true\",\n \"onDragStart\": e => this.startDrag(col, e),\n \"title\": title\n });\n }\n });\n\n // validate allowed rules\n eventBus.on('dragAndDrop.dragEnter', event => {\n const {\n dragContext\n } = event;\n const {\n draggedElement,\n hoverEl\n } = dragContext;\n\n // can always drag rows\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Row) {\n return true;\n }\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Col) {\n const dropIndex = getTargetColIndex(hoverEl, this._elementRegistry, this._sheet);\n\n // cannot drop as we cannot compute the drop index\n if (dropIndex === -1) {\n return false;\n }\n const allowed = this._rules.allowed('col.move', {\n col: draggedElement,\n index: dropIndex\n });\n return allowed;\n }\n return false;\n });\n\n // clear previous UI\n eventBus.on('dragAndDrop.dragLeave', event => {\n const {\n dragContext\n } = event;\n const {\n targetEl\n } = dragContext;\n if (!targetEl) {\n return;\n }\n const container = this._renderer.getContainer();\n removeHighlight(container);\n });\n\n // update UI\n eventBus.on('dragAndDrop.dragOver', event => {\n const {\n dragContext,\n originalEvent\n } = event;\n const {\n draggedElement,\n lastPosition,\n targetEl\n } = dragContext;\n const container = this._renderer.getContainer();\n if (!targetEl) {\n return false;\n }\n let newPosition;\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Row) {\n newPosition = getVerticalPosition(originalEvent, targetEl);\n }\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Col) {\n newPosition = getHorizontalPosition(originalEvent, targetEl);\n }\n\n // nothing to do\n if (lastPosition === newPosition) {\n return true;\n }\n\n // remove old highlight\n removeHighlight(container);\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Row) {\n if (newPosition === TOP) {\n // drop above\n highlightRow(targetEl, container, 'top');\n } else {\n // drop below\n highlightRow(targetEl, container, 'bottom');\n }\n }\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Col) {\n if (newPosition === LEFT) {\n // drop left\n highlightCol(targetEl, container, 'left');\n } else {\n // drop right\n highlightCol(targetEl, container, 'right');\n }\n }\n\n // remember position\n dragContext.lastPosition = newPosition;\n\n // allowed\n return true;\n });\n\n // perform drop operation\n eventBus.on('dragAndDrop.drop', event => {\n const {\n dragContext,\n originalEvent\n } = event;\n const {\n draggedElement,\n targetEl\n } = dragContext;\n if (!targetEl) {\n return false;\n }\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Row) {\n const verticalPosition = getVerticalPosition(originalEvent, targetEl);\n const rowId = targetEl.dataset.rowId,\n row = this._elementRegistry.get(rowId);\n if (!row || row === draggedElement) {\n return;\n }\n const targetRow = getTargetRow(draggedElement, row, verticalPosition, this._sheet.getRoot().rows);\n if (targetRow === draggedElement) {\n return;\n }\n return targetRow;\n }\n if (draggedElement instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Col) {\n const horizontalPosition = getHorizontalPosition(originalEvent, targetEl);\n\n // no need to check rules; we verified on\n // dragEnter that dropping is O.K.\n const colId = targetEl.dataset.colId,\n col = this._elementRegistry.get(colId);\n if (!col || col === draggedElement) {\n return;\n }\n const targetCol = getTargetCol(draggedElement, col, horizontalPosition, this._sheet.getRoot().cols);\n if (targetCol === draggedElement) {\n return;\n }\n return targetCol;\n }\n });\n eventBus.on('dragAndDrop.dragEnd', this._cleanup);\n }\n startDrag(element, event) {\n const container = this._renderer.getContainer();\n this._dragImage = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.domify)(``);\n\n // needs to be present in DOM\n document.body.appendChild(this._dragImage);\n\n // QUIRK: not supported by Edge and Internet Explorer\n if (event.dataTransfer.setDragImage) {\n event.dataTransfer.setDragImage(this._dragImage, 0, 0);\n }\n if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Row) {\n fadeOutRow(element, container);\n } else if (element instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Col) {\n fadeOutCol(element, container);\n }\n this._dragAndDrop.startDrag(element, event);\n }\n _cleanup = () => {\n const container = this._renderer.getContainer();\n removeHighlight(container);\n removeFadeOut(container);\n if (this._dragImage) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.remove)(this._dragImage);\n this._dragImage = null;\n }\n };\n}\nDragAndDrop.$inject = ['components', 'elementRegistry', 'eventBus', 'dragAndDrop', 'renderer', 'rules', 'sheet', 'translate'];\n\n// helpers //////////\n\nfunction getTargetColIndex(cellEl, elementRegistry, sheet) {\n const targetCol = elementRegistry.get(cellEl.dataset.colId);\n if (!targetCol) {\n return -1;\n }\n const {\n cols\n } = sheet.getRoot();\n return cols.indexOf(targetCol);\n}\nfunction highlightRow(dragOverCell, container, position) {\n const rowId = dragOverCell.dataset.rowId;\n if (!rowId) {\n return;\n }\n const cells = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.queryAll)(`[data-row-id=${rowId}]`, container);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(cells, cell => {\n // QUIRK: PhantomJS might return object instead of NodeList\n if (isNode(cell)) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).add('dragover');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).add(position);\n }\n });\n}\nfunction highlightCol(dragOverCell, container, position) {\n const colId = dragOverCell.dataset.colId;\n if (!colId) {\n return;\n }\n const cells = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.queryAll)(`[data-col-id=${colId}]`, container);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(cells, cell => {\n // QUIRK: PhantomJS might return object instead of NodeList\n if (isNode(cell)) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).add('dragover');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).add(position);\n }\n });\n}\nfunction removeHighlight(container) {\n const cells = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.queryAll)('.dragover', container);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(cells, cell => {\n // QUIRK: PhantomJS might return object instead of NodeList\n if (isNode(cell)) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).remove('dragover');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).remove('top');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).remove('right');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).remove('bottom');\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).remove('left');\n }\n });\n}\nfunction fadeOutRow(row, container) {\n const cells = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.queryAll)(`[data-row-id=${row.id}]`, container);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(cells, cell => {\n // QUIRK: PhantomJS might return object instead of NodeList\n if (isNode(cell)) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).add('dragged');\n }\n });\n}\nfunction fadeOutCol(col, container) {\n const cells = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.queryAll)(`[data-col-id=${col.id}]`, container);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(cells, cell => {\n // QUIRK: PhantomJS might return object instead of NodeList\n if (isNode(cell)) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).add('dragged');\n }\n });\n}\nfunction removeFadeOut(container) {\n const cells = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.queryAll)('.dragged', container);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.forEach)(cells, cell => {\n // QUIRK: PhantomJS might return object instead of NodeList\n if (isNode(cell)) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.classes)(cell).remove('dragged');\n }\n });\n}\nfunction getHorizontalPosition(event, dragOverElement) {\n const bounds = dragOverElement.getBoundingClientRect();\n return event.clientX < bounds.left + bounds.width / 2 ? LEFT : RIGHT;\n}\nfunction getVerticalPosition(event, dragOverElement) {\n const bounds = dragOverElement.getBoundingClientRect();\n return event.clientY < bounds.top + bounds.height / 2 ? TOP : BOTTOM;\n}\nfunction getTargetRow(draggedRow, targetRow, verticalPosition, rows) {\n if (rows.indexOf(draggedRow) > rows.indexOf(targetRow)) {\n targetRow = getRowBelow(targetRow, rows);\n }\n if (verticalPosition === TOP) {\n // return row above or row\n return getRowAbove(targetRow, rows);\n } else {\n // return row\n return targetRow;\n }\n}\nfunction getTargetCol(draggedCol, targetCol, horizontalPosition, cols) {\n if (cols.indexOf(draggedCol) > cols.indexOf(targetCol)) {\n targetCol = getColRight(targetCol, cols);\n }\n if (horizontalPosition === LEFT) {\n // return col left or col\n return getColLeft(targetCol, cols);\n } else {\n // return col\n return targetCol;\n }\n}\nfunction getRowAbove(row, rows) {\n const index = rows.indexOf(row);\n return rows[Math.max(0, index - 1)];\n}\nfunction getRowBelow(row, rows) {\n const index = rows.indexOf(row);\n return rows[Math.min(rows.length - 1, index + 1)];\n}\nfunction getColLeft(col, cols) {\n const index = cols.indexOf(col);\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isOutput)(col)) {\n const firstOutput = cols.filter(col => (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isOutput)(col))[0];\n const firstOutputIndex = cols.indexOf(firstOutput);\n return cols[Math.max(firstOutputIndex, index - 1)];\n }\n return cols[Math.max(0, index - 1)];\n}\nfunction getColRight(col, cols) {\n const index = cols.indexOf(col);\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(col)) {\n const inputs = cols.filter(col => (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(col));\n const lastInput = inputs[inputs.length - 1];\n const lastInputIndex = cols.indexOf(lastInput);\n return cols[Math.min(lastInputIndex, index + 1)];\n }\n return cols[Math.min(cols.length - 1, index + 1)];\n}\n\n// QUIRK: PhantomJS requires check if actual DOM node\nfunction isNode(node) {\n return node && (node.nodeType === 1 || node.nodeType == 11);\n}\n//# sourceMappingURL=DragAndDrop.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/DragAndDrop.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/index.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/index.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_drag_and_drop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/features/drag-and-drop */ \"./node_modules/table-js/lib/features/drag-and-drop/index.js\");\n/* harmony import */ var _DragAndDrop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DragAndDrop */ \"./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/DragAndDrop.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rules */ \"./node_modules/dmn-js-decision-table/lib/features/rules/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_drag_and_drop__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _rules__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['dmnDragAndDrop'],\n dmnDragAndDrop: ['type', _DragAndDrop__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/drag-and-drop/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/editor-actions/DecisionTableEditorActions.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/editor-actions/DecisionTableEditorActions.js ***! + \******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTableEditorActions)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\nclass DecisionTableEditorActions {\n constructor(copyCutPaste, editorActions, modeling, selection, cellSelection, sheet) {\n const actions = {\n addRule() {\n return modeling.addRow({\n type: 'dmn:DecisionRule'\n });\n },\n addRuleAbove(context) {\n let rule = context && context.rule;\n if (!rule && !selection.hasSelection()) {\n return;\n }\n rule = rule || selection.get().row;\n const root = sheet.getRoot(),\n index = root.rows.indexOf(rule);\n if (index === -1) {\n return;\n }\n return modeling.addRow({\n type: 'dmn:DecisionRule'\n }, index);\n },\n addRuleBelow(context) {\n let rule = context && context.rule;\n if (!rule && !selection.hasSelection()) {\n return;\n }\n rule = rule || selection.get().row;\n const root = sheet.getRoot(),\n index = root.rows.indexOf(rule);\n if (index === -1) {\n return;\n }\n return modeling.addRow({\n type: 'dmn:DecisionRule'\n }, index + 1);\n },\n removeRule(context) {\n let rule = context && context.rule;\n if (!rule && !selection.hasSelection()) {\n return;\n }\n rule = rule || selection.get().row;\n modeling.removeRow(rule);\n },\n addInput() {\n const root = sheet.getRoot(),\n businessObject = root.businessObject;\n const {\n input\n } = businessObject;\n return modeling.addCol({\n type: 'dmn:InputClause'\n }, input ? input.length : 0);\n },\n addInputLeft(context) {\n let input = context && context.input;\n if (!input && !selection.hasSelection()) {\n return;\n }\n input = input || selection.get().col;\n const root = sheet.getRoot(),\n index = root.cols.indexOf(input);\n if (index === -1) {\n return;\n }\n return modeling.addCol({\n type: 'dmn:InputClause'\n }, index);\n },\n addInputRight(context) {\n let input = context && context.input;\n if (!input && !selection.hasSelection()) {\n return;\n }\n input = input || selection.get().col;\n const root = sheet.getRoot(),\n index = root.cols.indexOf(input);\n if (index === -1) {\n return;\n }\n return modeling.addCol({\n type: 'dmn:InputClause'\n }, index + 1);\n },\n removeInput(context) {\n let input = context && context.input;\n if (!input && !selection.hasSelection()) {\n return;\n }\n input = input || selection.get().col;\n modeling.removeCol(input);\n },\n addOutput() {\n const root = sheet.getRoot(),\n businessObject = root.businessObject;\n const input = businessObject.get('input'),\n output = businessObject.get('output');\n return modeling.addCol({\n type: 'dmn:OutputClause'\n }, input.length + output.length);\n },\n addOutputLeft(context) {\n let output = context && context.output;\n if (!output && !selection.hasSelection()) {\n return;\n }\n output = output || selection.get().col;\n const root = sheet.getRoot(),\n index = root.cols.indexOf(output);\n if (index === -1) {\n return;\n }\n return modeling.addCol({\n type: 'dmn:OutputClause'\n }, index);\n },\n addOutputRight(context) {\n let output = context && context.output;\n if (!output && !selection.hasSelection()) {\n return;\n }\n output = output || selection.get().col;\n const root = sheet.getRoot(),\n index = root.cols.indexOf(output);\n if (index === -1) {\n return;\n }\n return modeling.addCol({\n type: 'dmn:OutputClause'\n }, index + 1);\n },\n removeOutput(context) {\n let output = context && context.output;\n if (!output && !selection.hasSelection()) {\n return;\n }\n output = output || selection.get().col;\n modeling.removeCol(output);\n },\n addClause() {\n if (!selection.hasSelection()) {\n return;\n }\n const clause = selection.get().col;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:InputClause')) {\n return actions.addInput({\n input: clause\n });\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:OutputClause')) {\n return actions.addOutput({\n output: clause\n });\n }\n },\n addClauseLeft() {\n if (!selection.hasSelection()) {\n return;\n }\n const clause = selection.get().col;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:InputClause')) {\n return actions.addInputLeft({\n input: clause\n });\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:OutputClause')) {\n return actions.addOutputLeft({\n output: clause\n });\n }\n },\n addClauseRight() {\n if (!selection.hasSelection()) {\n return;\n }\n const clause = selection.get().col;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:InputClause')) {\n return actions.addInputRight({\n input: clause\n });\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:OutputClause')) {\n return actions.addOutputRight({\n output: clause\n });\n }\n },\n removeClause() {\n if (!selection.hasSelection()) {\n return;\n }\n const clause = selection.get().col;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:InputClause')) {\n return actions.removeInput({\n input: clause\n });\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(clause, 'dmn:OutputClause')) {\n return actions.removeOutput({\n output: clause\n });\n }\n },\n selectCellAbove() {\n return cellSelection.selectCell('above');\n },\n selectCellBelow() {\n return cellSelection.selectCell('below');\n },\n copy({\n element\n }) {\n copyCutPaste.copy(element);\n },\n cut({\n element\n }) {\n copyCutPaste.cut(element);\n },\n pasteBefore({\n element\n }) {\n return copyCutPaste.pasteBefore(element);\n },\n pasteAfter({\n element\n }) {\n return copyCutPaste.pasteAfter(element);\n }\n };\n editorActions.register(actions);\n }\n}\nDecisionTableEditorActions.$inject = ['copyCutPaste', 'editorActions', 'modeling', 'selection', 'cellSelection', 'sheet'];\n//# sourceMappingURL=DecisionTableEditorActions.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/editor-actions/DecisionTableEditorActions.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _cell_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cell-selection */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js\");\n/* harmony import */ var _copy_cut_paste__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../copy-cut-paste */ \"./node_modules/dmn-js-decision-table/lib/features/copy-cut-paste/index.js\");\n/* harmony import */ var _DecisionTableEditorActions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DecisionTableEditorActions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/DecisionTableEditorActions.js\");\n/* harmony import */ var table_js_lib_features_editor_actions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/features/editor-actions */ \"./node_modules/table-js/lib/features/editor-actions/index.js\");\n/* harmony import */ var table_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! table-js/lib/features/selection */ \"./node_modules/table-js/lib/features/selection/index.js\");\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_cell_selection__WEBPACK_IMPORTED_MODULE_0__[\"default\"], _copy_cut_paste__WEBPACK_IMPORTED_MODULE_1__[\"default\"], table_js_lib_features_editor_actions__WEBPACK_IMPORTED_MODULE_3__[\"default\"], table_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n __init__: ['decisionTableEditorActions'],\n decisionTableEditorActions: ['type', _DecisionTableEditorActions__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/expression-language/ExpressionLanguage.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/expression-language/ExpressionLanguage.js ***! + \***************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ExpressionLanguage)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass ExpressionLanguage {\n constructor(components, elementRegistry, modeling, expressionLanguages, translate, contextMenu) {\n this._modeling = modeling;\n this._translate = translate;\n this._expressionLanguages = expressionLanguages;\n components.onGetComponent('context-menu-cell-additional', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'context-menu') {\n const {\n event,\n id\n } = context;\n if (!id) {\n return;\n }\n const element = elementRegistry.get(id);\n\n // element might not be in element registry (e.g. cut)\n if (!element) {\n return;\n }\n if (!this._shouldDisplayContextMenuEntry(element)) {\n return;\n }\n const openMenu = clickEvent => {\n contextMenu.open({\n x: (event || clickEvent).pageX,\n y: (event || clickEvent).pageY\n }, {\n contextMenuType: 'expression-language',\n id\n });\n };\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group-entry\", this._translate('Change cell expression language'), 0, {\n \"onClick\": openMenu\n });\n }\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'expression-language') {\n const {\n id\n } = context;\n if (!id) {\n return;\n }\n const element = elementRegistry.get(id);\n\n // element might not be in element registry (e.g. cut)\n if (!element) {\n return;\n }\n const expressionLanguage = this._getElementExpressionLanguage(element);\n const options = expressionLanguages.getAll();\n const className = 'context-menu-group-entry ' + 'context-menu-entry-set-expression-language';\n const label = this._translate('Expression language');\n return () => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-flex\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-group\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", className, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, label, 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": label,\n \"className\": \"expression-language\",\n \"onChange\": value => this.onChange(element, value),\n \"options\": options,\n \"value\": expressionLanguage\n })], 4), 2), 2);\n }\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType === 'input-edit') {\n return () => {\n const {\n inputExpression\n } = context.input;\n if (!this._shouldDisplayContextMenuEntry(inputExpression)) {\n return;\n }\n const expressionLanguage = this._getElementExpressionLanguage(inputExpression);\n const options = expressionLanguages.getAll();\n const label = this._translate('Expression language');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container ref-language\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", label, 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": label,\n \"className\": \"ref-language\",\n \"value\": expressionLanguage || '',\n \"onChange\": value => this.onChange(inputExpression, value),\n \"options\": options\n })], 4), 2);\n };\n }\n });\n }\n onChange(element, expressionLanguage) {\n this._modeling.editExpressionLanguage(element, expressionLanguage);\n }\n _shouldDisplayContextMenuEntry(element) {\n const expressionLanguages = this._expressionLanguages.getAll();\n if (expressionLanguages.length > 1) {\n return true;\n }\n const expressionLanguage = this._getElementExpressionLanguage(element);\n return expressionLanguage !== this._getDefaultElementExpressionLanguage(element);\n }\n _getElementExpressionLanguage(element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.getBusinessObject)(element).expressionLanguage || this._getDefaultElementExpressionLanguage(element);\n }\n _getDefaultElementExpressionLanguage(element) {\n return this._expressionLanguages.getDefault((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col) ? 'inputCell' : 'outputCell').value;\n }\n}\nExpressionLanguage.$inject = ['components', 'elementRegistry', 'modeling', 'expressionLanguages', 'translate', 'contextMenu'];\n//# sourceMappingURL=ExpressionLanguage.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/expression-language/ExpressionLanguage.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/expression-language/index.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/expression-language/index.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var _ExpressionLanguage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExpressionLanguage */ \"./node_modules/dmn-js-decision-table/lib/features/expression-language/ExpressionLanguage.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['expressionLanguage'],\n expressionLanguage: ['type', _ExpressionLanguage__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/expression-language/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicies.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicies.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ HIT_POLICIES: () => (/* binding */ HIT_POLICIES)\n/* harmony export */ });\n/* eslint max-len: 0 */\nconst HIT_POLICIES = [{\n label: 'Unique',\n value: {\n hitPolicy: 'UNIQUE',\n aggregation: undefined\n },\n explanation: 'No overlap is possible and all rules are disjoint. Only a single rule can be matched'\n}, {\n label: 'First',\n value: {\n hitPolicy: 'FIRST',\n aggregation: undefined\n },\n explanation: 'Rules may overlap. The first matching rule will be chosen'\n}, {\n label: 'Priority',\n value: {\n hitPolicy: 'PRIORITY',\n aggregation: undefined\n },\n explanation: 'Rules may overlap. The one with the highest priority will be chosen'\n}, {\n label: 'Any',\n value: {\n hitPolicy: 'ANY',\n aggregation: undefined\n },\n explanation: 'Rules may overlap. Their output have to match'\n}, {\n label: 'Collect',\n value: {\n hitPolicy: 'COLLECT',\n aggregation: undefined\n },\n explanation: 'Collects the values of all matching rules'\n}, {\n label: 'Collect (Sum)',\n value: {\n hitPolicy: 'COLLECT',\n aggregation: 'SUM'\n },\n explanation: 'Collects the values of all matching rules and sums up to a single value'\n}, {\n label: 'Collect (Min)',\n value: {\n hitPolicy: 'COLLECT',\n aggregation: 'MIN'\n },\n explanation: 'Collects the values of all matching rules and uses the lowest value'\n}, {\n label: 'Collect (Max)',\n value: {\n hitPolicy: 'COLLECT',\n aggregation: 'MAX'\n },\n explanation: 'Collects the values of all matching rules and uses the highest value'\n}, {\n label: 'Collect (Count)',\n value: {\n hitPolicy: 'COLLECT',\n aggregation: 'COUNT'\n },\n explanation: 'Collects the values of all matching rules and counts the number of them'\n}, {\n label: 'Rule order',\n value: {\n hitPolicy: 'RULE ORDER',\n aggregation: undefined\n },\n explanation: 'Collects the values of all matching rules in rule order'\n}, {\n label: 'Output order',\n value: {\n hitPolicy: 'OUTPUT ORDER',\n aggregation: undefined\n },\n explanation: 'Collects the values of all matching rules in decreasing output priority order'\n}];\n//# sourceMappingURL=HitPolicies.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicies.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicyProvider.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicyProvider.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ HitPolicyProvider)\n/* harmony export */ });\n/* harmony import */ var _components_HitPolicy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/HitPolicy */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/components/HitPolicy.js\");\n\nfunction HitPolicyProvider(components) {\n components.onGetComponent('hit-policy', () => {\n return _components_HitPolicy__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n}\nHitPolicyProvider.$inject = ['components'];\n//# sourceMappingURL=HitPolicyProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicyProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/components/HitPolicy.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/components/HitPolicy.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ HitPolicy)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var _HitPolicies__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../HitPolicies */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicies.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\nclass HitPolicy extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n getRoot() {\n return this.sheet.getRoot();\n }\n render() {\n const root = this.getRoot(),\n businessObject = root.businessObject;\n const {\n aggregation,\n hitPolicy\n } = businessObject;\n const hitPolicyEntry = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(_HitPolicies__WEBPACK_IMPORTED_MODULE_1__.HIT_POLICIES, entry => {\n return isEqualHitPolicy(entry.value, {\n aggregation,\n hitPolicy\n });\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"hit-policy header\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", this._translate('Hit policy:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"hit-policy-value\", this._translate(hitPolicyEntry.label), 0)], 4, {\n \"title\": this._translate(hitPolicyEntry.explanation)\n });\n }\n}\nHitPolicy.$inject = ['sheet'];\n\n// helpers //////////////////////\nfunction isEqualHitPolicy(a, b) {\n return a.hitPolicy === b.hitPolicy && a.aggregation === b.aggregation;\n}\n//# sourceMappingURL=HitPolicy.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/components/HitPolicy.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/HitPolicyEditingProvider.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/HitPolicyEditingProvider.js ***! + \*******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ HitPolicyEditingProvider)\n/* harmony export */ });\n/* harmony import */ var _components_EditableHitPolicy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/EditableHitPolicy */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/components/EditableHitPolicy.js\");\n\nfunction HitPolicyEditingProvider(components) {\n components.onGetComponent('hit-policy', () => {\n return _components_EditableHitPolicy__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n}\nHitPolicyEditingProvider.$inject = ['components'];\n//# sourceMappingURL=HitPolicyEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/HitPolicyEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/components/EditableHitPolicy.js": +/*!***********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/components/EditableHitPolicy.js ***! + \***********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditableHitPolicy)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var _HitPolicies__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../HitPolicies */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicies.js\");\n\n\n\n\n\n\nclass EditableHitPolicy extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__.inject)(this);\n }\n onChange = ({\n aggregation,\n hitPolicy\n }) => {\n this.modeling.editHitPolicy(hitPolicy, aggregation);\n };\n onElementsChanged = () => {\n this.forceUpdate();\n };\n componentDidMount() {\n this.changeSupport.onElementsChanged(this.getRoot().id, this.onElementsChanged);\n }\n componentWillUnmount() {\n this.changeSupport.offElementsChanged(this.getRoot().id, this.onElementsChanged);\n }\n getRoot() {\n return this.sheet.getRoot();\n }\n render() {\n const root = this.getRoot(),\n businessObject = root.businessObject;\n const {\n aggregation,\n hitPolicy\n } = businessObject;\n const hitPolicyEntry = (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.find)(_HitPolicies__WEBPACK_IMPORTED_MODULE_2__.HIT_POLICIES, entry => {\n return isEqualHitPolicy(entry.value, {\n aggregation,\n hitPolicy\n });\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"hit-policy\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", this._translate('Hit policy:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"className\": \"hit-policy-edit-policy-select\",\n \"label\": this._translate('Hit policy'),\n \"onChange\": this.onChange,\n \"options\": _HitPolicies__WEBPACK_IMPORTED_MODULE_2__.HIT_POLICIES.map(entry => ({\n ...entry,\n label: this._translate(entry.label)\n })),\n \"value\": hitPolicyEntry.value,\n \"data-hit-policy\": \"true\",\n \"noInput\": true\n })], 4, {\n \"title\": this._translate(hitPolicyEntry.explanation)\n });\n }\n}\nEditableHitPolicy.$inject = ['changeSupport', 'sheet', 'modeling'];\n\n// helpers //////////////////////\nfunction isEqualHitPolicy(a, b) {\n return a.hitPolicy === b.hitPolicy && a.aggregation === b.aggregation;\n}\n//# sourceMappingURL=EditableHitPolicy.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/components/EditableHitPolicy.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/index.js": +/*!************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/index.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _HitPolicyEditingProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HitPolicyEditingProvider */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/HitPolicyEditingProvider.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['hitPolicyProvider'],\n hitPolicyProvider: ['type', _HitPolicyEditingProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/editor/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/hit-policy/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/hit-policy/index.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _HitPolicyProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HitPolicyProvider */ \"./node_modules/dmn-js-decision-table/lib/features/hit-policy/HitPolicyProvider.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['hitPolicyProvider'],\n hitPolicyProvider: ['type', _HitPolicyProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/hit-policy/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/keyboard/Keyboard.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/keyboard/Keyboard.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Keyboard)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cell-selection/CellSelectionUtil */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js\");\n/* harmony import */ var _KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./KeyboardUtil */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/KeyboardUtil.js\");\n\n\n\n\n/**\n * A keyboard abstraction that may be activated and\n * deactivated by users at will, consuming key events\n * and triggering diagram actions.\n *\n * The implementation fires the following key events that allow\n * other components to hook into key handling:\n *\n * - keyboard.bind\n * - keyboard.unbind\n * - keyboard.init\n * - keyboard.destroy\n *\n * All events contain the fields (node, listeners).\n *\n * A default binding for the keyboard may be specified via the\n * `keyboard.bindTo` configuration option.\n *\n * @param {Config} config\n * @param {EventBus} eventBus\n * @param {EditorActions} editorActions\n * @param {CellSelection} cellSelection\n */\nclass Keyboard {\n constructor(config, eventBus, editorActions, cellSelection) {\n this._config = config || {};\n this._editorActions = editorActions;\n this._eventBus = eventBus;\n this._cellSelection = cellSelection;\n this._listeners = [];\n eventBus.on('table.destroy', this._destroy);\n eventBus.on('table.init', this._init);\n eventBus.on('attach', () => {\n if (this._config.bindTo) {\n this.bind(config.bindTo);\n }\n });\n eventBus.on('detach', this.unbind);\n }\n _init = () => {\n this._registerDefaultBindings();\n this._fire('init');\n };\n _destroy = () => {\n this._fire('destroy');\n this.unbind();\n this._listeners = null;\n };\n\n // our key handler is a singleton that passes\n // (keycode, modifiers) to each listener.\n //\n // listeners must indicate that they handled a key event\n // by returning true. This stops the event propagation.\n //\n _keyHandler = event => {\n var i,\n l,\n listeners = this._listeners,\n code = event.keyCode || event.charCode || -1;\n for (i = 0; l = listeners[i]; i++) {\n if (l(code, event)) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n }\n };\n bind(node) {\n // make sure that the keyboard is only bound once to the DOM\n this.unbind();\n this._node = node;\n\n // bind key events\n min_dom__WEBPACK_IMPORTED_MODULE_2__.event.bind(node, 'keydown', this._keyHandler);\n this._fire('bind');\n }\n getBinding() {\n return this._node;\n }\n unbind = () => {\n var node = this._node;\n if (node) {\n this._fire('unbind');\n\n // unbind key events\n min_dom__WEBPACK_IMPORTED_MODULE_2__.event.unbind(node, 'keydown', this._keyHandler);\n }\n this._node = null;\n };\n _fire(event) {\n this._eventBus.fire('keyboard.' + event, {\n node: this._node,\n listeners: this._listeners\n });\n }\n _registerDefaultBindings() {\n var listeners = this._listeners;\n var editorActions = this._editorActions;\n var cellSelection = this._cellSelection;\n\n // init default listeners\n\n // undo\n // (CTRL|CMD) + Z\n function undo(key, modifiers) {\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isCmd)(modifiers) && !(0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isShift)(modifiers) && key === 90) {\n editorActions.trigger('undo');\n return true;\n }\n }\n\n // redo\n // CTRL + Y\n // CMD + SHIFT + Z\n function redo(key, modifiers) {\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isCmd)(modifiers) && (key === 89 || key === 90 && (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isShift)(modifiers))) {\n editorActions.trigger('redo');\n return true;\n }\n }\n listeners.push(undo);\n listeners.push(redo);\n function selectCellAbove(key, event) {\n if (key !== 13 || (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isCmd)(event) || !(0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isShift)(event)) {\n return;\n }\n if (!(0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.findSelectableAncestor)(event.target)) {\n return;\n }\n editorActions.trigger('selectCellAbove');\n return true;\n }\n listeners.push(selectCellAbove);\n function selectCellBelow(key, event) {\n if (key !== 13 || (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isCmd)(event) || (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_1__.isShift)(event)) {\n return;\n }\n if (!(0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_0__.findSelectableAncestor)(event.target)) {\n return;\n }\n const changed = editorActions.trigger('selectCellBelow');\n const selectedCell = cellSelection.getCellSelection();\n\n // add new rule if no next rule\n if (!changed && selectedCell && !isDecisionNameCell(selectedCell)) {\n const rule = editorActions.trigger('addRule');\n editorActions.trigger('selectCellBelow');\n return rule;\n }\n return true;\n }\n listeners.push(selectCellBelow);\n }\n\n /**\n * Add a listener function that is notified with (key, modifiers) whenever\n * the keyboard is bound and the user presses a key.\n *\n * @param {Function} listenerFn\n */\n addListener(listenerFn) {\n this._listeners.unshift(listenerFn);\n }\n removeListener(listenerFn) {\n this._listeners = this._listeners.filter(l => l !== listenerFn);\n }\n}\nKeyboard.$inject = ['config.keyboard', 'eventBus', 'editorActions', 'cellSelection'];\n\n// helper /////\nfunction isDecisionNameCell(cell) {\n return cell === '__decisionProperties_name';\n}\n//# sourceMappingURL=Keyboard.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/keyboard/Keyboard.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/keyboard/KeyboardUtil.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/keyboard/KeyboardUtil.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ hasModifier: () => (/* binding */ hasModifier),\n/* harmony export */ isCmd: () => (/* binding */ isCmd),\n/* harmony export */ isShift: () => (/* binding */ isShift)\n/* harmony export */ });\nfunction hasModifier(modifiers) {\n return modifiers.ctrlKey || modifiers.metaKey || modifiers.shiftKey || modifiers.altKey;\n}\nfunction isCmd(modifiers) {\n // ensure we don't react to AltGr\n // (mapped to CTRL + ALT)\n if (modifiers.altKey) {\n return false;\n }\n return modifiers.ctrlKey || modifiers.metaKey;\n}\nfunction isShift(modifiers) {\n return modifiers.shiftKey;\n}\n//# sourceMappingURL=KeyboardUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/keyboard/KeyboardUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _editor_actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../editor-actions */ \"./node_modules/dmn-js-decision-table/lib/features/editor-actions/index.js\");\n/* harmony import */ var _Keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/Keyboard.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_editor_actions__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['keyboard'],\n keyboard: ['type', _Keyboard__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/DmnFactory.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/DmnFactory.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DmnFactory)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\nclass DmnFactory {\n constructor(moddle) {\n this._model = moddle;\n }\n create(type, attrs = {}) {\n var element = this._model.create(type, attrs || {});\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputClause')) {\n if (attrs.inputExpression) {\n element.inputExpression = attrs.inputExpression;\n } else {\n element.inputExpression = this.create('dmn:LiteralExpression', {\n typeRef: 'string'\n });\n element.inputExpression.$parent = element;\n }\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:OutputClause')) {\n element.typeRef = attrs.typeRef || 'string';\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:UnaryTests') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:LiteralExpression')) {\n element.text = attrs.text || '';\n }\n this._ensureId(element);\n return element;\n }\n _needsId(element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:DMNElement');\n }\n _ensureId(element) {\n // generate semantic ids for elements\n // dmn:UnaryTests -> UnaryTests_ID\n var prefix = (element.$type || '').replace(/^[^:]*:/g, '') + '_';\n if (!element.id && this._needsId(element)) {\n element.id = this._model.ids.nextPrefixed(prefix, element);\n }\n }\n}\nDmnFactory.$inject = ['moddle'];\n//# sourceMappingURL=DmnFactory.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/DmnFactory.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/DmnUpdater.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/DmnUpdater.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DmnUpdater)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n\n\n\n/**\n * A handler responsible for updating the underlying DMN\n * once changes on the table happen.\n */\nclass DmnUpdater extends diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(eventBus, sheet) {\n super(eventBus);\n this.executed(['row.add', 'row.remove', 'col.add', 'col.remove'], ifDmn(e => {\n var context = e.context;\n var element = context.row || context.col;\n this.updateRoot(element, context.oldRoot);\n }));\n this.reverted(['row.add', 'row.remove', 'col.add', 'col.remove'], ifDmn(e => {\n var context = e.context;\n var element = context.row || context.col;\n this.updateRoot(element, context.newRoot);\n }));\n }\n updateRoot(element, oldRoot) {\n var newRoot = element.root;\n var businessObject = element.businessObject;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:DecisionRule')) {\n // we're removing\n if (oldRoot) {\n let oldTable = oldRoot.businessObject;\n let oldRules = oldTable.get('rule');\n let oldIdx = oldRules.indexOf(businessObject);\n\n // unwire Row <-> Table\n oldRules.splice(oldIdx, 1);\n businessObject.$parent = null;\n }\n\n // we're adding\n if (newRoot) {\n let newTable = newRoot.businessObject;\n let newIdx = newRoot.rows.indexOf(element);\n\n // wire Row <-> Table\n newTable.get('rule').splice(newIdx, 0, businessObject);\n businessObject.$parent = newTable;\n element.cells.forEach((cell, idx) => {\n // wire Cell <-> Row\n this.wireCell(cell, element, idx);\n });\n }\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputClause') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:OutputClause')) {\n let collection, collectionIdx;\n\n // we're removing\n if (oldRoot) {\n let oldTable = oldRoot.businessObject;\n let inputs = oldTable.get('input');\n let outputs = oldTable.get('output');\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputClause')) {\n collection = inputs;\n collectionIdx = inputs.indexOf(businessObject);\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:OutputClause')) {\n collection = outputs;\n collectionIdx = outputs.indexOf(businessObject);\n }\n if (collectionIdx === -1) {\n throw new Error('inconsistent model: clause not in table');\n }\n\n // unwire Col <-> Table\n collection.splice(collectionIdx, 1);\n businessObject.$parent = null;\n element.cells.forEach((cel, rowIdx) => {\n // unwire Cell <-> Row\n this.unwireCell(cel, oldRoot.rows[rowIdx]);\n });\n }\n if (newRoot) {\n let newTable = newRoot.businessObject;\n let inputs = newTable.get('input');\n let outputs = newTable.get('output');\n let colIdx = newRoot.cols.indexOf(element);\n let collectionIdx, collection;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputClause')) {\n collection = inputs;\n collectionIdx = colIdx;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:OutputClause')) {\n collection = outputs;\n collectionIdx = colIdx - inputs.length;\n }\n\n // wire Col <-> Table\n collection.splice(collectionIdx, 0, businessObject);\n businessObject.$parent = newTable;\n element.cells.forEach((cell, rowIdx) => {\n // wire Cell <-> Row\n this.wireCell(cell, newRoot.rows[rowIdx], colIdx);\n });\n }\n }\n }\n unwireCell(cell, oldRow) {\n var cellBo = cell.businessObject;\n let oldRowBo = oldRow.businessObject;\n let inputEntries = oldRowBo.get('inputEntry');\n let outputEntries = oldRowBo.get('outputEntry');\n let collection, collectionIdx;\n\n // remove from inputEntries\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(cell, 'dmn:UnaryTests')) {\n collection = inputEntries;\n }\n\n // remove from outputEntries\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(cell, 'dmn:LiteralExpression')) {\n collection = outputEntries;\n }\n collectionIdx = collection.indexOf(cellBo);\n if (collectionIdx === -1) {\n throw new Error('cell not in row');\n }\n\n // unwire Cell <-> Row relationship\n collection.splice(collectionIdx, 1);\n cellBo.$parent = null;\n }\n wireCell(cell, row, colIdx) {\n var cellBo = cell.businessObject;\n let rowBo = row.businessObject;\n let inputEntries = rowBo.get('inputEntry');\n let outputEntries = rowBo.get('outputEntry');\n let collection, collectionIdx;\n\n // ensure we handle already wired cells\n if (cellBo.$parent === rowBo) {\n return;\n }\n\n // add to inputEntries\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(cell, 'dmn:UnaryTests')) {\n collection = inputEntries;\n collectionIdx = colIdx;\n }\n\n // add to outputEntries\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(cell, 'dmn:LiteralExpression')) {\n collection = outputEntries;\n collectionIdx = colIdx - inputEntries.length;\n }\n\n // wire Cell <-> Row relationship\n collection.splice(collectionIdx, 0, cellBo);\n cellBo.$parent = rowBo;\n }\n}\nDmnUpdater.$inject = ['eventBus', 'sheet'];\n\n// helpers //////////////////////\n\n/**\n * Make sure the event listener is only called\n * if the touched element is a DMN element.\n *\n * @param {Function} fn\n * @return {Function} guarded function\n */\nfunction ifDmn(fn) {\n return function (event) {\n var context = event.context,\n element = context.row || context.col;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:DMNElement')) {\n fn(event);\n }\n };\n}\n//# sourceMappingURL=DmnUpdater.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/DmnUpdater.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/ElementFactory.js": +/*!************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/ElementFactory.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementFactory)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var table_js_lib_core_ElementFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/core/ElementFactory */ \"./node_modules/table-js/lib/core/ElementFactory.js\");\n\n\nclass ElementFactory extends table_js_lib_core_ElementFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(dmnFactory) {\n super();\n this._dmnFactory = dmnFactory;\n }\n create(tType, attrs) {\n const dmnFactory = this._dmnFactory;\n let {\n businessObject,\n type,\n ...additionalAttrs\n } = attrs;\n if (!businessObject) {\n if (!type) {\n if (tType === 'root') {\n type = 'dmn:DecisionTable';\n } else if (tType === 'cell') {\n let {\n col\n } = additionalAttrs;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(col, 'dmn:OutputClause')) {\n type = 'dmn:LiteralExpression';\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(col, 'dmn:InputClause')) {\n type = 'dmn:UnaryTests';\n }\n }\n if (!type) {\n throw new Error('cannot guess ');\n }\n }\n businessObject = dmnFactory.create(type);\n }\n return super.create(tType, {\n businessObject,\n id: businessObject.id,\n ...additionalAttrs\n });\n }\n}\nElementFactory.$inject = ['dmnFactory'];\n//# sourceMappingURL=ElementFactory.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/ElementFactory.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/Modeling.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/Modeling.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeling)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var table_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/features/modeling/Modeling */ \"./node_modules/table-js/lib/features/modeling/Modeling.js\");\n/* harmony import */ var _cmd_UpdateAllowedValuesHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cmd/UpdateAllowedValuesHandler */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/UpdateAllowedValuesHandler.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_cmd_UpdatePropertiesHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler */ \"./node_modules/dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler.js\");\n/* harmony import */ var _cmd_IdClaimHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cmd/IdClaimHandler */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/IdClaimHandler.js\");\n\n\n\n\n\nclass Modeling extends table_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_3__[\"default\"] {\n constructor(eventBus, elementFactory, commandStack, sheet) {\n super(eventBus, elementFactory, commandStack);\n this._eventBus = eventBus;\n this._elementFactory = elementFactory;\n this._commandStack = commandStack;\n this._sheet = sheet;\n }\n getHandlers() {\n return Modeling._getHandlers();\n }\n static _getHandlers() {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)({}, super._getHandlers(), {\n 'editAllowedValues': _cmd_UpdateAllowedValuesHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n 'element.updateProperties': dmn_js_shared_lib_features_modeling_cmd_UpdatePropertiesHandler__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n 'id.updateClaim': _cmd_IdClaimHandler__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n });\n }\n editDecisionTableName(name) {\n const root = this._sheet.getRoot(),\n businessObject = root.businessObject,\n parentBusinessObject = businessObject.$parent;\n const context = {\n element: parentBusinessObject,\n properties: {\n name\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editDecisionTableId(id) {\n const root = this._sheet.getRoot(),\n businessObject = root.businessObject,\n parentBusinessObject = businessObject.$parent;\n const context = {\n element: parentBusinessObject,\n properties: {\n id\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editHitPolicy(hitPolicy, aggregation) {\n const root = this._sheet.getRoot(),\n businessObject = root.businessObject;\n const context = {\n element: businessObject,\n properties: {\n hitPolicy,\n aggregation\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n updateProperties(el, props) {\n const context = {\n element: el,\n properties: props\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editInputExpression(inputExpression, props) {\n const context = {\n element: inputExpression,\n properties: props\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editOutputName(output, name) {\n const context = {\n element: output,\n properties: {\n name\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editInputExpressionTypeRef(inputExpression, typeRef) {\n const context = {\n element: inputExpression,\n properties: {\n typeRef\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editOutputTypeRef(output, typeRef) {\n const context = {\n element: output,\n properties: {\n typeRef\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editCell(cell, text) {\n const context = {\n element: cell,\n properties: {\n text\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editAnnotation(rule, description) {\n const context = {\n element: rule,\n properties: {\n description\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editAllowedValues(element, allowedValues) {\n const context = {\n element,\n allowedValues\n };\n this._commandStack.execute('editAllowedValues', context);\n }\n editExpressionLanguage(element, expressionLanguage) {\n const context = {\n element,\n properties: {\n expressionLanguage\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n claimId(id, moddleElement) {\n const context = {\n id: id,\n element: moddleElement,\n claiming: true\n };\n this._commandStack.execute('id.updateClaim', context);\n }\n unclaimId(id, moddleElement) {\n const context = {\n id: id,\n element: moddleElement\n };\n this._commandStack.execute('id.updateClaim', context);\n }\n}\nModeling.$inject = ['eventBus', 'elementFactory', 'commandStack', 'sheet'];\n//# sourceMappingURL=Modeling.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/Modeling.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdClaimBehavior.js": +/*!**********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdClaimBehavior.js ***! + \**********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IdClaimBehavior)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\nclass IdClaimBehavior extends diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor(eventBus, moddle, modeling) {\n super(eventBus);\n this._ids = moddle.ids;\n this._modeling = modeling;\n this.preExecute(['row.add', 'col.add'], event => {\n const context = event.context,\n element = context.row || context.col;\n this.claimId(element.businessObject);\n if (element.cells) {\n element.cells.forEach(cell => this.claimId(cell.businessObject));\n }\n });\n }\n claimId(businessObject) {\n if (businessObject.id && !this._ids.assigned(businessObject.id)) {\n this._modeling.claimId(businessObject.id, businessObject);\n }\n businessObject.$descriptor.properties.forEach(property => {\n const value = businessObject[property.name];\n\n // not set\n if (!value) {\n return;\n }\n\n // array of moddle elements\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {\n value.forEach(v => this.claimId(v));\n }\n\n // moddle element\n if (value.$type) {\n this.claimId(value);\n }\n });\n }\n}\nIdClaimBehavior.$inject = ['eventBus', 'moddle', 'modeling'];\n//# sourceMappingURL=IdClaimBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdClaimBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdUnclaimBehavior.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdUnclaimBehavior.js ***! + \************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IdUnclaimBehavior)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\nclass IdUnclaimBehavior extends diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor(eventBus, modeling) {\n super(eventBus);\n this._modeling = modeling;\n this.preExecute(['row.remove', 'col.remove'], event => {\n const context = event.context,\n element = context.row || context.col;\n this.unclaimId(element.businessObject);\n if (element.cells) {\n element.cells.forEach(cell => this.unclaimId(cell.businessObject));\n }\n });\n }\n unclaimId(businessObject) {\n if (businessObject.id) {\n this._modeling.unclaimId(businessObject.id, businessObject);\n }\n businessObject.$descriptor.properties.forEach(property => {\n const value = businessObject[property.name];\n\n // not set\n if (!value) {\n return;\n }\n\n // array of moddle elements\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {\n value.forEach(v => this.unclaimId(v));\n }\n\n // moddle element\n if (value.$type) {\n this.unclaimId(value);\n }\n });\n }\n}\nIdUnclaimBehavior.$inject = ['eventBus', 'modeling'];\n//# sourceMappingURL=IdUnclaimBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdUnclaimBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/index.js": +/*!************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/index.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _IdClaimBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IdClaimBehavior */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdClaimBehavior.js\");\n/* harmony import */ var _IdUnclaimBehavior__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IdUnclaimBehavior */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/IdUnclaimBehavior.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['idClaimBehavior', 'idUnclaimBehavior'],\n idClaimBehavior: ['type', _IdClaimBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n idUnclaimBehavior: ['type', _IdUnclaimBehavior__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/IdClaimHandler.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/IdClaimHandler.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IdClaimHandler)\n/* harmony export */ });\nclass IdClaimHandler {\n constructor(moddle) {\n this._moddle = moddle;\n }\n\n /**\r\n * \r\n */\n execute(context) {\n const ids = this._moddle.ids,\n id = context.id,\n element = context.element,\n claiming = context.claiming;\n if (claiming) {\n ids.claim(id, element);\n } else {\n ids.unclaim(id);\n }\n }\n\n /**\r\n * \r\n */\n revert(context) {\n const ids = this._moddle.ids,\n id = context.id,\n element = context.element,\n claiming = context.claiming;\n if (claiming) {\n ids.unclaim(id);\n } else {\n ids.claim(id, element);\n }\n }\n}\nIdClaimHandler.$inject = ['moddle'];\n//# sourceMappingURL=IdClaimHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/IdClaimHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/UpdateAllowedValuesHandler.js": +/*!****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/UpdateAllowedValuesHandler.js ***! + \****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateAllowedValuesHandler)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n/**\n * A handler that implements adding/removing allowed values.\n */\nclass UpdateAllowedValuesHandler {\n constructor(dmnFactory, moddle, modeling) {\n this._dmnFactory = dmnFactory;\n this._moddle = moddle;\n this._modeling = modeling;\n }\n\n /**\n * \n */\n execute(context) {\n const {\n element,\n allowedValues\n } = context;\n const isInput = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputClause');\n if (isInput) {\n if (element.inputValues) {\n context.oldAllowedValues = element.inputValues.text;\n } else {\n if (!isNull(allowedValues)) {\n element.inputValues = this._dmnFactory.create('dmn:UnaryTests', {\n text: ''\n });\n }\n }\n if (isNull(allowedValues)) {\n if (element.inputValues) {\n delete element.inputValues;\n }\n } else {\n element.inputValues.text = allowedValues.join(',');\n }\n } else {\n if (element.outputValues && element) {\n context.oldAllowedValues = element.outputValues.text;\n } else {\n if (!isNull(allowedValues)) {\n element.outputValues = this._dmnFactory.create('dmn:UnaryTests', {\n text: ''\n });\n }\n }\n if (isNull(allowedValues)) {\n if (element.outputValues) {\n delete element.outputValues;\n }\n } else {\n element.outputValues.text = allowedValues.join(',');\n }\n }\n return element;\n }\n\n /**\n * \n */\n revert(context) {\n const {\n element,\n oldAllowedValues\n } = context;\n const isInput = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputClause');\n if (isInput) {\n if (oldAllowedValues) {\n if (!element.inputValues) {\n element.inputValues = this._dmnFactory.create('dmn:UnaryTests', {\n text: ''\n });\n }\n element.inputValues.text = oldAllowedValues;\n } else {\n delete element.inputValues;\n }\n } else {\n if (oldAllowedValues) {\n if (!element.outputValues) {\n element.outputValues = this._dmnFactory.create('dmn:UnaryTests', {\n text: ''\n });\n }\n element.outputValues.text = oldAllowedValues;\n } else {\n delete element.outputValues;\n }\n }\n return element;\n }\n}\nUpdateAllowedValuesHandler.$inject = ['dmnFactory', 'moddle', 'modeling'];\n\n// helpers //////////////////////\n\nfunction isNull(value) {\n return value === null;\n}\n//# sourceMappingURL=UpdateAllowedValuesHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/cmd/UpdateAllowedValuesHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/modeling/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/modeling/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_command__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! table-js/lib/command */ \"./node_modules/diagram-js/lib/command/index.js\");\n/* harmony import */ var _DmnUpdater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DmnUpdater */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/DmnUpdater.js\");\n/* harmony import */ var _DmnFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DmnFactory */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/DmnFactory.js\");\n/* harmony import */ var _ElementFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ElementFactory */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/ElementFactory.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior */ \"./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js\");\n/* harmony import */ var _Modeling__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Modeling */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/Modeling.js\");\n/* harmony import */ var _behavior__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./behavior */ \"./node_modules/dmn-js-decision-table/lib/features/modeling/behavior/index.js\");\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['dmnUpdater', 'idChangeBehavior', 'modeling'],\n __depends__: [_behavior__WEBPACK_IMPORTED_MODULE_5__[\"default\"], table_js_lib_command__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n dmnUpdater: ['type', _DmnUpdater__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n dmnFactory: ['type', _DmnFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n elementFactory: ['type', _ElementFactory__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n idChangeBehavior: ['type', dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n modeling: ['type', _Modeling__WEBPACK_IMPORTED_MODULE_4__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/modeling/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/powered-by/PoweredBy.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/powered-by/PoweredBy.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PoweredBy)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/PoweredByUtil */ \"./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js\");\n\nclass PoweredBy {\n constructor(components) {\n components.onGetComponent('table.before', () => {\n return dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_0__.PoweredByComponent;\n });\n }\n}\nPoweredBy.$inject = ['components'];\n//# sourceMappingURL=PoweredBy.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/powered-by/PoweredBy.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/powered-by/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/powered-by/index.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _PoweredBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PoweredBy */ \"./node_modules/dmn-js-decision-table/lib/features/powered-by/PoweredBy.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['poweredBy'],\n poweredBy: ['type', _PoweredBy__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/powered-by/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/rules/DecisionTableModelingRules.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/rules/DecisionTableModelingRules.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionTableModelingRules)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/model */ \"./node_modules/table-js/lib/model/index.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_features_rules_RuleProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/rules/RuleProvider */ \"./node_modules/diagram-js/lib/features/rules/RuleProvider.js\");\n\n\n\n\nconst HIGH_PRIORITY = 2000;\nclass DecisionTableModelingRules extends diagram_js_lib_features_rules_RuleProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(eventBus, sheet) {\n super(eventBus);\n this._sheet = sheet;\n }\n init() {\n this.addRule('col.move', HIGH_PRIORITY, ({\n col,\n index\n }) => {\n const {\n businessObject\n } = this._sheet.getRoot(),\n {\n input\n } = businessObject;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isInput)(col)) {\n return index < input.length;\n } else {\n return index >= input.length;\n }\n });\n this.addRule('col.remove', HIGH_PRIORITY, ({\n col\n }) => {\n const {\n cols\n } = this._sheet.getRoot();\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isOutput)(col)) {\n return cols.filter(c => (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isOutput)(c)).length > 1;\n }\n return true;\n });\n\n // a rule that is aware of the data structure coming from copy and paste\n this.addRule('paste', HIGH_PRIORITY, ({\n data,\n target\n }) => {\n if (!data || !target) {\n return false;\n }\n const {\n root\n } = data;\n if (target instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Row) {\n return this.canPasteRows(root);\n }\n if (target instanceof table_js_lib_model__WEBPACK_IMPORTED_MODULE_2__.Col) {\n return this.canPasteCols(root, target);\n }\n return false;\n });\n }\n canPasteRows(root) {\n const {\n cols\n } = this._sheet.getRoot();\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.every)(root, descriptor => {\n if (descriptor.type !== 'row') {\n return false;\n }\n if (descriptor.cells.length !== cols.length) {\n return false;\n }\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.every)(descriptor.cells, (cellDescriptor, index) => {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isInput)(cols[index])) {\n return cellDescriptor.businessObject.$type === 'dmn:UnaryTests';\n } else {\n return cellDescriptor.businessObject.$type === 'dmn:LiteralExpression';\n }\n });\n });\n }\n canPasteCols(root, targetCol) {\n const {\n rows\n } = this._sheet.getRoot();\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.every)(root, descriptor => {\n if (descriptor.type !== 'col') {\n return false;\n }\n if (descriptor.cells.length !== rows.length) {\n return false;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isInput)(targetCol)) {\n return descriptor.businessObject.$type === 'dmn:InputClause';\n } else {\n return descriptor.businessObject.$type === 'dmn:OutputClause';\n }\n });\n }\n}\nDecisionTableModelingRules.$inject = ['eventBus', 'sheet'];\n//# sourceMappingURL=DecisionTableModelingRules.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/rules/DecisionTableModelingRules.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/rules/index.js": +/*!************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/rules/index.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DecisionTableModelingRules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionTableModelingRules */ \"./node_modules/dmn-js-decision-table/lib/features/rules/DecisionTableModelingRules.js\");\n/* harmony import */ var table_js_lib_features_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/features/rules */ \"./node_modules/table-js/lib/features/rules/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_rules__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['decisionTableModelingRules'],\n decisionTableModelingRules: ['type', _DecisionTableModelingRules__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/rules/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/SimpleBooleanEdit.js": +/*!**************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/SimpleBooleanEdit.js ***! + \**************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleBooleanEdit)\n/* harmony export */ });\n/* harmony import */ var _components_BooleanEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/BooleanEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/components/BooleanEdit.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nclass SimpleBooleanEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isOutput)(element.col)) && getTypeRef(element) === 'boolean';\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (typeRef === 'boolean') {\n return _components_BooleanEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n }\n });\n }\n}\nSimpleBooleanEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\n//# sourceMappingURL=SimpleBooleanEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/SimpleBooleanEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/Utils.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/Utils.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ parseString: () => (/* binding */ parseString)\n/* harmony export */ });\nfunction parseString(string) {\n if (!string || isEmptyString(string)) {\n return 'none';\n } else if (string.trim() === 'true') {\n return 'true';\n } else if (string.trim() === 'false') {\n return 'false';\n }\n}\nfunction isEmptyString(string) {\n return string === '';\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/components/BooleanEdit.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/components/BooleanEdit.js ***! + \*******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ BooleanEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/Utils.js\");\n\n\n\n\nconst TRUE = 'true',\n FALSE = 'false',\n NONE = 'none';\nclass BooleanEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.parseString)(element.businessObject.text);\n this.state = {\n value: parsedString || NONE\n };\n this.editCell = this.editCell.bind(this);\n this.onChange = this.onChange.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onChange(value) {\n const {\n element\n } = this.props.context;\n this.editCell(element.businessObject, value === NONE ? '' : value);\n this.setState({\n value\n });\n }\n render() {\n const {\n value\n } = this.state;\n const options = [{\n label: '-',\n value: NONE\n }, {\n label: this._translate('Yes'),\n value: TRUE\n }, {\n label: this._translate('No'),\n value: FALSE\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"simple-boolean-edit context-menu-container\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit boolean'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Boolean value'),\n \"noInput\": true,\n \"className\": \"dms-block\",\n \"onChange\": this.onChange,\n \"options\": options,\n \"value\": value\n })], 4);\n }\n}\n//# sourceMappingURL=BooleanEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/components/BooleanEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/index.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/index.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleBooleanEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleBooleanEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/SimpleBooleanEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleBooleanEdit'],\n simpleBooleanEdit: ['type', _SimpleBooleanEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-boolean-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/SimpleDateEdit.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/SimpleDateEdit.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleDateEdit)\n/* harmony export */ });\n/* harmony import */ var _components_InputDateEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/InputDateEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/InputDateEdit.js\");\n/* harmony import */ var _components_OutputDateEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/OutputDateEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/OutputDateEdit.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass SimpleDateEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n const typeRef = getTypeRef(element);\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(element.col)) && isDate(typeRef);\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (isDate(typeRef)) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(context.element.col)) {\n return _components_InputDateEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(context.element.col)) {\n return _components_OutputDateEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }\n }\n });\n }\n}\nSimpleDateEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\nfunction isDate(typeRef) {\n return typeRef === 'date';\n}\n//# sourceMappingURL=SimpleDateEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/SimpleDateEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getDateString: () => (/* binding */ getDateString),\n/* harmony export */ getSampleDate: () => (/* binding */ getSampleDate),\n/* harmony export */ parseString: () => (/* binding */ parseString),\n/* harmony export */ validateISOString: () => (/* binding */ validateISOString)\n/* harmony export */ });\nconst ISO_DATE_REGEX = /^\\d{4}(?:-\\d\\d){2}$/;\n\n// eslint-disable-next-line\nconst BETWEEN_DATE_REGEX = /^\\[date\\(\"([^\"]*)\"\\)..date\\(\"([^\"]*)\"\\)\\]$/;\n\n// eslint-disable-next-line\nconst BEFORE_AFTER_DATE_REGEX = /^(<|>)\\s*date\\(\"([^\"]*)\"\\)$/;\nconst EXACT_DATE_REGEX = /^date\\(\"([^\"]*)\"\\)$/;\nconst EXACT = 'exact',\n BEFORE = 'before',\n AFTER = 'after',\n BETWEEN = 'between';\nfunction validateISOString(string) {\n if (!ISO_DATE_REGEX.test(string.trim())) {\n return 'Date must match pattern yyyy-MM-dd';\n }\n}\nfunction getDateString(type, dates) {\n if (type === EXACT) {\n return `date(\"${dates[0]}\")`;\n } else if (type === BEFORE) {\n return `< date(\"${dates[0]}\")`;\n } else if (type === AFTER) {\n return `> date(\"${dates[0]}\")`;\n } else if (type === BETWEEN) {\n return `[date(\"${dates[0]}\")..date(\"${dates[1]}\")]`;\n }\n}\nfunction getSampleDate() {\n const date = new Date();\n date.setUTCHours(0, 0, 0, 0);\n return date.toISOString().slice(0, 10);\n}\nfunction parseString(string) {\n // emtpy\n if (!string || string.trim() === '') {\n return {\n type: 'exact',\n date: ''\n };\n }\n\n // between\n let matches = string.match(BETWEEN_DATE_REGEX);\n if (matches) {\n return {\n type: 'between',\n dates: [matches[1], matches[2]]\n };\n }\n\n // before or after\n matches = string.match(BEFORE_AFTER_DATE_REGEX);\n if (matches) {\n return {\n type: matches[1] === '<' ? 'before' : 'after',\n date: matches[2]\n };\n }\n\n // exact\n matches = string.match(EXACT_DATE_REGEX);\n if (matches) {\n return {\n type: 'exact',\n date: matches[1]\n };\n }\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/InputDateEdit.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/InputDateEdit.js ***! + \******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputDateEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js\");\n\n\n\n\n\nconst EXACT = 'exact',\n BEFORE = 'before',\n AFTER = 'after',\n BETWEEN = 'between';\nclass InputDateEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)(element.businessObject.text);\n if (parsedString) {\n let dates;\n if (parsedString.date) {\n dates = [parsedString.date, ''];\n } else if (parsedString.dates) {\n dates = parsedString.dates;\n } else {\n dates = ['', ''];\n }\n this.state = {\n type: parsedString.type,\n dates\n };\n } else {\n this.state = {\n type: EXACT,\n dates: ['', '']\n };\n }\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onTypeChange = this.onTypeChange.bind(this);\n this.onSetStartDateTodayClick = this.onSetStartDateTodayClick.bind(this);\n this.onSetEndDateTodayClick = this.onSetEndDateTodayClick.bind(this);\n this.onStartDateInput = this.onStartDateInput.bind(this);\n this.onEndDateInput = this.onEndDateInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n dates\n } = this.state;\n this.setState({\n type: value\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(value, dates))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(value, dates));\n }\n }\n onSetStartDateTodayClick() {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)();\n this.setState({\n dates: [date, dates[1]]\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [date, dates[1]]))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [date, dates[1]]));\n }\n }\n onSetEndDateTodayClick() {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)();\n this.setState({\n dates: [dates[0], date]\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [dates[0], date]))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [dates[0], date]));\n }\n }\n onStartDateInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n this.setState({\n dates: [value, dates[1]]\n });\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [value, dates[1]]));\n }\n onEndDateInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n this.setState({\n dates: [dates[0], value]\n });\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [dates[0], value]));\n }\n render() {\n const {\n dates,\n type\n } = this.state;\n const options = [{\n label: this._translate('Exactly'),\n value: EXACT\n }, {\n label: this._translate('Before'),\n value: BEFORE\n }, {\n label: this._translate('After'),\n value: AFTER\n }, {\n label: this._translate('Between'),\n value: BETWEEN\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-date-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit date'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Test type'),\n \"noInput\": true,\n \"onChange\": this.onTypeChange,\n \"options\": options,\n \"value\": type\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", type === BETWEEN ? this._translate('Edit start date') : this._translate('Set date'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": type === BETWEEN ? this._translate('Start date') : this._translate('Date'),\n \"className\": \"start-date-input dms-block\",\n \"onInput\": this.onStartDateInput,\n \"placeholder\": this._translate('e.g. { sample }', {\n sample: (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string)),\n \"value\": dates[0]\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-today\", this._translate('Use today'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onSetStartDateTodayClick\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\".\")], 4)], 4), type === BETWEEN && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Edit end date'), 0), type === BETWEEN && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('End date'),\n \"className\": \"end-date-input dms-block\",\n \"onInput\": this.onEndDateInput,\n \"placeholder\": this._translate('e.g. { sample }', {\n sample: (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string)),\n \"value\": dates[1]\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-today\", this._translate('Use today'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onSetEndDateTodayClick\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\".\")], 4)], 4)], 0);\n }\n}\n//# sourceMappingURL=InputDateEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/InputDateEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/OutputDateEdit.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/OutputDateEdit.js ***! + \*******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputDateEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js\");\n\n\n\n\nclass OutputDateEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.parseString)(element.businessObject.text);\n this.state = {\n date: parsedString ? parsedString.date : ''\n };\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onClick = this.onClick.bind(this);\n this.onInput = this.onInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onClick() {\n const {\n element\n } = this.props.context;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.getSampleDate)();\n this.setState({\n date\n });\n this.editCell(element.businessObject, `date(\"${date}\")`);\n }\n onInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n this.setState({\n date: value\n });\n this.debouncedEditCell(element.businessObject, `date(\"${value}\")`);\n }\n render() {\n const {\n date\n } = this.state;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-date-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit date'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set date'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Date value'),\n \"onInput\": this.onInput,\n \"placeholder\": this._translate('e.g. { example } ', {\n example: (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateISOString)(string)),\n \"value\": date,\n \"className\": \"dms-block\"\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-today\", this._translate('Use today'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onClick\n }), 2)], 4)], 4);\n }\n}\n//# sourceMappingURL=OutputDateEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/components/OutputDateEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/index.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/index.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleDateEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleDateEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/SimpleDateEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleDateEdit'],\n simpleDateEdit: ['type', _SimpleDateEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/SimpleDateTimeEdit.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/SimpleDateTimeEdit.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleDateEdit)\n/* harmony export */ });\n/* harmony import */ var _components_InputDateTimeEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/InputDateTimeEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/InputDateTimeEdit.js\");\n/* harmony import */ var _components_OutputDateTimeEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/OutputDateTimeEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/OutputDateTimeEdit.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass SimpleDateEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n const typeRef = getTypeRef(element);\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(element.col)) && isDateTime(typeRef);\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (isDateTime(typeRef)) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(context.element.col)) {\n return _components_InputDateTimeEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(context.element.col)) {\n return _components_OutputDateTimeEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }\n }\n });\n }\n}\nSimpleDateEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\nfunction isDateTime(typeRef) {\n return typeRef === 'dateTime';\n}\n//# sourceMappingURL=SimpleDateTimeEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/SimpleDateTimeEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/Utils.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/Utils.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getDateString: () => (/* binding */ getDateString),\n/* harmony export */ getSampleDate: () => (/* binding */ getSampleDate),\n/* harmony export */ parseString: () => (/* binding */ parseString),\n/* harmony export */ validateISOString: () => (/* binding */ validateISOString)\n/* harmony export */ });\nconst ISO_DATE_REGEX = /^\\d{4}(?:-\\d\\d){2}T(?:\\d\\d:){2}\\d\\d(?:Z|(?:[@+-][^\")]+))?$/;\n\n// eslint-disable-next-line\nconst BETWEEN_DATE_REGEX = /^\\[date and time\\(\"([^\"]*)\"\\)..date and time\\(\"([^\"]*)\"\\)\\]$/;\n\n// eslint-disable-next-line\nconst BEFORE_AFTER_DATE_REGEX = /^(<|>)\\s*date and time\\(\"([^\"]*)\"\\)$/;\n\n// eslint-disable-next-line\nconst EXACT_DATE_REGEX = /^date and time\\(\"([^\"]*)\"\\)$/;\nconst EXACT = 'exact',\n BEFORE = 'before',\n AFTER = 'after',\n BETWEEN = 'between';\nfunction validateISOString(string) {\n if (!ISO_DATE_REGEX.test(string.trim())) {\n return 'Date and time must match pattern yyyy-MM-ddTHH:mm:ss[time zone]';\n }\n}\nfunction getDateString(type, dates) {\n if (type === EXACT) {\n return `date and time(\"${dates[0]}\")`;\n } else if (type === BEFORE) {\n return `< date and time(\"${dates[0]}\")`;\n } else if (type === AFTER) {\n return `> date and time(\"${dates[0]}\")`;\n } else if (type === BETWEEN) {\n return `[date and time(\"${dates[0]}\")..date and time(\"${dates[1]}\")]`;\n }\n}\nfunction getSampleDate() {\n const date = new Date();\n date.setUTCHours(0, 0, 0, 0);\n return date.toISOString().replace('.000Z', 'Z');\n}\nfunction parseString(string) {\n // emtpy\n if (!string || string.trim() === '') {\n return {\n type: 'exact',\n date: ''\n };\n }\n\n // between\n let matches = string.match(BETWEEN_DATE_REGEX);\n if (matches) {\n return {\n type: 'between',\n dates: [matches[1], matches[2]]\n };\n }\n\n // before or after\n matches = string.match(BEFORE_AFTER_DATE_REGEX);\n if (matches) {\n return {\n type: matches[1] === '<' ? 'before' : 'after',\n date: matches[2]\n };\n }\n\n // exact\n matches = string.match(EXACT_DATE_REGEX);\n if (matches) {\n return {\n type: 'exact',\n date: matches[1]\n };\n }\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/InputDateTimeEdit.js": +/*!***************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/InputDateTimeEdit.js ***! + \***************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputDateEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/Utils.js\");\n\n\n\n\n\nconst EXACT = 'exact',\n BEFORE = 'before',\n AFTER = 'after',\n BETWEEN = 'between';\nclass InputDateEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)(element.businessObject.text);\n if (parsedString) {\n let dates;\n if (parsedString.date) {\n dates = [parsedString.date, ''];\n } else if (parsedString.dates) {\n dates = parsedString.dates;\n } else {\n dates = ['', ''];\n }\n this.state = {\n type: parsedString.type,\n dates\n };\n } else {\n this.state = {\n type: EXACT,\n dates: ['', '']\n };\n }\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onTypeChange = this.onTypeChange.bind(this);\n this.onSetStartDateTodayClick = this.onSetStartDateTodayClick.bind(this);\n this.onSetEndDateTodayClick = this.onSetEndDateTodayClick.bind(this);\n this.onStartDateInput = this.onStartDateInput.bind(this);\n this.onEndDateInput = this.onEndDateInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n dates\n } = this.state;\n this.setState({\n type: value\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(value, dates))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(value, dates));\n }\n }\n onSetStartDateTodayClick() {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)();\n this.setState({\n dates: [date, dates[1]]\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [date, dates[1]]))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [date, dates[1]]));\n }\n }\n onSetEndDateTodayClick() {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)();\n this.setState({\n dates: [dates[0], date]\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [dates[0], date]))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [dates[0], date]));\n }\n }\n onStartDateInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n this.setState({\n dates: [value, dates[1]]\n });\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [value, dates[1]]));\n }\n onEndDateInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n const {\n dates,\n type\n } = this.state;\n this.setState({\n dates: [dates[0], value]\n });\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getDateString)(type, [dates[0], value]));\n }\n render() {\n const {\n dates,\n type\n } = this.state;\n const options = [{\n label: this._translate('Exactly'),\n value: EXACT\n }, {\n label: this._translate('Before'),\n value: BEFORE\n }, {\n label: this._translate('After'),\n value: AFTER\n }, {\n label: this._translate('Between'),\n value: BETWEEN\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-date-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit date and time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Test type'),\n \"noInput\": true,\n \"onChange\": this.onTypeChange,\n \"options\": options,\n \"value\": type\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", type === BETWEEN ? this._translate('Edit start date and time') : this._translate('Set date and time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": type === BETWEEN ? this._translate('Start date and time') : this._translate('Date and time'),\n \"className\": \"start-date-input dms-block\",\n \"onInput\": this.onStartDateInput,\n \"placeholder\": this._translate('e.g. { sample }', {\n sample: (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string)),\n \"value\": dates[0]\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-today\", this._translate('Use today'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onSetStartDateTodayClick\n }), 2)], 4), type === BETWEEN && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Edit end date and time'), 0), type === BETWEEN && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('End date and time'),\n \"className\": \"end-date-input dms-block\",\n \"onInput\": this.onEndDateInput,\n \"placeholder\": this._translate('e.g. { sample }', {\n sample: (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string)),\n \"value\": dates[1]\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-today\", this._translate('Use today'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onSetEndDateTodayClick\n }), 2)], 4)], 0);\n }\n}\n//# sourceMappingURL=InputDateTimeEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/InputDateTimeEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/OutputDateTimeEdit.js": +/*!****************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/OutputDateTimeEdit.js ***! + \****************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputDateEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/Utils.js\");\n\n\n\n\nclass OutputDateEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.parseString)(element.businessObject.text);\n this.state = {\n date: parsedString ? parsedString.date : ''\n };\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onClick = this.onClick.bind(this);\n this.onInput = this.onInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onClick() {\n const {\n element\n } = this.props.context;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.getSampleDate)();\n this.setState({\n date\n });\n this.editCell(element.businessObject, `date and time(\"${date}\")`);\n }\n onInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n this.setState({\n date: value\n });\n this.debouncedEditCell(element.businessObject, `date and time(\"${value}\")`);\n }\n render() {\n const {\n date\n } = this.state;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-date-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit date and time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set date and time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Date and time value'),\n \"onInput\": this.onInput,\n \"placeholder\": this._translate('e.g. { sample }', {\n sample: (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateISOString)(string)),\n \"value\": date,\n \"className\": \"dms-block\"\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-today\", this._translate('Use today'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onClick\n }), 2)], 4)], 4);\n }\n}\n//# sourceMappingURL=OutputDateTimeEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/components/OutputDateTimeEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/index.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/index.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleDateTimeEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleDateTimeEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/SimpleDateTimeEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleDateTimeEdit'],\n simpleDateTimeEdit: ['type', _SimpleDateTimeEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-date-time-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/SimpleDurationEdit.js": +/*!****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/SimpleDurationEdit.js ***! + \****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleDurationEdit)\n/* harmony export */ });\n/* harmony import */ var _components_InputDurationEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/InputDurationEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/InputDurationEdit.js\");\n/* harmony import */ var _components_OutputDurationEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/OutputDurationEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/OutputDurationEdit.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass SimpleDurationEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n const typeRef = getTypeRef(element);\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(element.col)) && isDuration(typeRef);\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (isDuration(typeRef)) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(context.element.col)) {\n return _components_InputDurationEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(context.element.col)) {\n return _components_OutputDurationEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }\n }\n });\n }\n}\nSimpleDurationEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\nconst durations = ['yearMonthDuration', 'dayTimeDuration'];\nfunction isDuration(typeRef) {\n return durations.includes(typeRef);\n}\n//# sourceMappingURL=SimpleDurationEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/SimpleDurationEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/Utils.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/Utils.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getComparisonString: () => (/* binding */ getComparisonString),\n/* harmony export */ getRangeString: () => (/* binding */ getRangeString),\n/* harmony export */ isEmptyString: () => (/* binding */ isEmptyString),\n/* harmony export */ operators: () => (/* binding */ operators),\n/* harmony export */ parseDuration: () => (/* binding */ parseDuration),\n/* harmony export */ validateDuration: () => (/* binding */ validateDuration),\n/* harmony export */ withoutDurationCall: () => (/* binding */ withoutDurationCall)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst operators = {\n equals: '=',\n less: '<',\n lessEquals: '<=',\n greater: '>',\n greaterEquals: '>='\n};\nfunction getOperatorName(string) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.keys)(operators).filter(key => {\n return string === operators[key];\n })[0];\n}\nfunction parseDuration(text) {\n if (!text || isEmptyString(text.trim())) {\n return {\n type: 'comparison',\n values: []\n };\n }\n const parsedComparison = parseComparison(text);\n if (parsedComparison) {\n return parsedComparison;\n }\n const parsedRange = parseRange(text);\n if (parsedRange) {\n return parsedRange;\n }\n}\nfunction isEmptyString(string) {\n return string === '';\n}\nfunction getComparisonString(comparisonOperator, comparisonValue) {\n if (comparisonOperator === 'equals') {\n return `duration(\"${comparisonValue}\")`;\n } else {\n return `${operators[comparisonOperator]} duration(\"${comparisonValue}\")`;\n }\n}\nfunction getRangeString(rangeStartValue, rangeEndValue, rangeStartType, rangeEndType) {\n const rangeStartChar = rangeStartType === 'exclude' ? ']' : '[',\n rangeEndChar = rangeEndType === 'exclude' ? '[' : ']';\n return `${rangeStartChar}duration(\"${rangeStartValue}\")` + `..duration(\"${rangeEndValue}\")${rangeEndChar}`;\n}\nfunction validateDuration(type, value) {\n if (type === 'yearMonthDuration') {\n return validateYearMonthDuration(value);\n } else if (type === 'dayTimeDuration') {\n return validateDayTimeDuration(value);\n }\n}\nfunction validateYearMonthDuration(value) {\n return /^P(\\d+Y\\d+M|\\d+Y|\\d+M)$/.test(value);\n}\nfunction validateDayTimeDuration(value) {\n return /^P(\\d+DT\\d+H|\\d+D|T\\d+H)$/.test(value);\n}\nfunction withoutDurationCall(text) {\n const result = /^duration\\(\"([^\"]*)\"\\)$/.exec(text);\n return result && result[1];\n}\nfunction parseComparison(text) {\n const exactValue = withoutDurationCall(text);\n if (exactValue) {\n return {\n type: 'comparison',\n operator: 'equals',\n values: [exactValue]\n };\n }\n const {\n operator,\n value\n } = match(/^(?=|(:?<|>)=?)\\s*duration\\(\"(?[^\"]*)\"\\)$/, text);\n if (operator && value) {\n return {\n type: 'comparison',\n values: [value],\n operator: getOperatorName(operator)\n };\n }\n}\nfunction parseRange(text) {\n const {\n start,\n end,\n firstValue,\n secondValue\n // eslint-disable-next-line\n } = match(/^(?[[\\]])duration\\(\"(?[^\"]*)\"\\)\\.\\.duration\\(\"(?[^\"]*)\"\\)(?[[\\]])$/, text);\n if (start && end) {\n return {\n type: 'range',\n values: [firstValue, secondValue],\n start: start === ']' ? 'exclude' : 'include',\n end: end === '[' ? 'exclude' : 'include'\n };\n }\n}\nfunction match(regex, input) {\n const {\n groups\n } = regex.exec(input) || {\n groups: {}\n };\n return groups;\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/DurationInput.js": +/*!**********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/DurationInput.js ***! + \**********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DurationInput: () => (/* binding */ DurationInput)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/Utils.js\");\n\n\n\n\nconst ERROR_MESSAGE = {\n yearMonthDuration: 'Must match PnYnM',\n dayTimeDuration: 'Must match PnDTnH'\n};\nclass DurationInput extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._type = props.type;\n this.onInput = this.onInput.bind(this);\n this.validate = this.validate.bind(this);\n this.state = {\n value: props.value\n };\n }\n onInput({\n value\n }) {\n this.setState({\n value\n });\n this.props.onInput(value);\n }\n validate(value) {\n if (!(0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateDuration)(this._type, value)) {\n return this._translate(ERROR_MESSAGE[this._type]);\n }\n }\n _getPlaceholder() {\n if (this._type === 'yearMonthDuration') {\n return this._translate('e.g. { sample }', {\n sample: 'P1Y2M'\n });\n } else if (this._type === 'dayTimeDuration') {\n this._translate('e.g. { sample }', {\n sample: 'P1DT2H'\n });\n }\n }\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this.props.label,\n \"type\": \"text\",\n \"onInput\": this.onInput,\n \"placeholder\": this._getPlaceholder(),\n \"validate\": this.validate,\n \"value\": this.state.value,\n \"className\": this.props.className\n });\n }\n}\n//# sourceMappingURL=DurationInput.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/DurationInput.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/InputDurationEdit.js": +/*!**************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/InputDurationEdit.js ***! + \**************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputDurationEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _DurationInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DurationInput */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/DurationInput.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/Utils.js\");\n\n\n\n\n\nconst COMPARISON = 'comparison',\n RANGE = 'range';\n\n// adapted from InputNumberEdit\nclass InputDurationEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n this._type = getTypeRef(element);\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseDuration)(element.businessObject.text, this._type);\n if (parsedString) {\n this.state = {\n type: parsedString.type,\n comparisonOperator: parsedString.operator || 'equals',\n startValue: parsedString.values[0] || '',\n endValue: parsedString.values[1] || '',\n rangeStartType: parsedString.start || 'include',\n rangeEndType: parsedString.end || 'include'\n };\n } else {\n this.state = {\n type: COMPARISON,\n comparisonOperator: 'equals',\n startValue: '',\n endValue: '',\n rangeStartType: 'include',\n rangeEndType: 'include'\n };\n }\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onComparisonOperatorChange = this.onComparisonOperatorChange.bind(this);\n this.onComparisonValueChange = this.onComparisonValueChange.bind(this);\n this.onTypeChange = this.onTypeChange.bind(this);\n this.onRangeStartTypeChange = this.onRangeStartTypeChange.bind(this);\n this.onRangeStartValueChange = this.onRangeStartValueChange.bind(this);\n this.onRangeEndTypeChange = this.onRangeEndTypeChange.bind(this);\n this.onRangeEndValueChange = this.onRangeEndValueChange.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n comparisonOperator,\n startValue,\n endValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n if (value === COMPARISON) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getComparisonString)(comparisonOperator, startValue));\n } else {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(startValue, endValue, rangeStartType, rangeEndType));\n }\n this.setState({\n type: value\n });\n }\n onComparisonOperatorChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n startValue\n } = this.state;\n if (type === COMPARISON) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getComparisonString)(value, startValue));\n this.setState({\n comparisonOperator: value\n });\n }\n }\n onComparisonValueChange(comparisonValue) {\n const {\n element\n } = this.props.context;\n const {\n type,\n comparisonOperator\n } = this.state;\n if (type === COMPARISON) {\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getComparisonString)(comparisonOperator, comparisonValue));\n this.setState({\n startValue: comparisonValue\n });\n }\n }\n onRangeStartTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n startValue,\n endValue,\n rangeEndType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(startValue, endValue, value, rangeEndType));\n this.setState({\n rangeStartType: value\n });\n }\n }\n onRangeStartValueChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n endValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(value, endValue, rangeStartType, rangeEndType));\n this.setState({\n startValue: value\n });\n }\n }\n onRangeEndTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n startValue,\n endValue,\n rangeStartType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(startValue, endValue, rangeStartType, value));\n this.setState({\n rangeEndType: value\n });\n }\n }\n onRangeEndValueChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n startValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(startValue, value, rangeStartType, rangeEndType));\n this.setState({\n endValue: value\n });\n }\n }\n renderComparison(comparisonOperator, comparisonValue) {\n const comparisonOperatorOptions = [{\n label: this._translate('Equals'),\n value: 'equals'\n }, {\n label: this._translate('Less'),\n value: 'less'\n }, {\n label: this._translate('Less or equals'),\n value: 'lessEquals'\n }, {\n label: this._translate('Greater'),\n value: 'greater'\n }, {\n label: this._translate('Greater or equals'),\n value: 'greaterEquals'\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"comparison\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"Value\"), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row dms-input-duration-edit-row\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Comparison operator'),\n \"noInput\": true,\n \"onChange\": this.onComparisonOperatorChange,\n \"options\": comparisonOperatorOptions,\n \"value\": comparisonOperator\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _DurationInput__WEBPACK_IMPORTED_MODULE_2__.DurationInput, {\n \"label\": this._translate('Duration value'),\n \"type\": this._type,\n \"className\": \"comparison-duration-input\",\n \"onInput\": this.onComparisonValueChange,\n \"value\": comparisonValue\n })], 4)], 4);\n }\n renderRange(rangeStartValue, rangeEndValue, rangeStartType, rangeEndType) {\n const rangeTypeOptions = [{\n label: this._translate('Include'),\n value: 'include'\n }, {\n label: this._translate('Exclude'),\n value: 'exclude'\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"range\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Start value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row dms-input-duration-edit-row\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Range start operator'),\n \"noInput\": true,\n \"onChange\": this.onRangeStartTypeChange,\n \"options\": rangeTypeOptions,\n \"value\": rangeStartType\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _DurationInput__WEBPACK_IMPORTED_MODULE_2__.DurationInput, {\n \"label\": this._translate('Range start value'),\n \"type\": this._type,\n \"className\": \"range-start-duration-input\",\n \"onInput\": this.onRangeStartValueChange,\n \"value\": rangeStartValue\n })], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('End value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row dms-input-duration-edit-row\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Range end operator'),\n \"noInput\": true,\n \"onChange\": this.onRangeEndTypeChange,\n \"options\": rangeTypeOptions,\n \"value\": rangeEndType\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _DurationInput__WEBPACK_IMPORTED_MODULE_2__.DurationInput, {\n \"label\": this._translate('Range end value'),\n \"type\": this._type,\n \"className\": \"range-end-duration-input\",\n \"onInput\": this.onRangeEndValueChange,\n \"value\": rangeEndValue\n })], 4)], 4);\n }\n render() {\n const {\n type,\n comparisonOperator,\n startValue,\n endValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n const typeOptions = [{\n label: this._translate('Comparison'),\n value: COMPARISON\n }, {\n label: this._translate('Range'),\n value: RANGE\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-duration-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit duration'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Test type'),\n \"noInput\": true,\n \"onChange\": this.onTypeChange,\n \"options\": typeOptions,\n \"value\": type\n }), 2), type === COMPARISON && this.renderComparison(comparisonOperator, startValue), type === RANGE && this.renderRange(startValue, endValue, rangeStartType, rangeEndType)], 0);\n }\n}\nfunction getTypeRef(element) {\n return element.col.businessObject.inputExpression.typeRef;\n}\n//# sourceMappingURL=InputDurationEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/InputDurationEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/OutputDurationEdit.js": +/*!***************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/OutputDurationEdit.js ***! + \***************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputDurationEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/Utils.js\");\n/* harmony import */ var _DurationInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DurationInput */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/DurationInput.js\");\n\n\n\n\nclass OutputDurationEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n this._type = getTypeRef(element);\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onInput = this.onInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onInput(value) {\n const {\n element\n } = this.props.context;\n this.debouncedEditCell(element.businessObject, `duration(\"${value}\")`);\n }\n render() {\n const value = (0,_Utils__WEBPACK_IMPORTED_MODULE_1__.withoutDurationCall)(this.props.context.element.businessObject.text, this._type);\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-duration-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit duration'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set duration'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _DurationInput__WEBPACK_IMPORTED_MODULE_2__.DurationInput, {\n \"label\": this._translate('Duration value'),\n \"onInput\": this.onInput,\n \"value\": value,\n \"type\": this._type,\n \"className\": \"dms-block\"\n })], 4);\n }\n}\nfunction getTypeRef(element) {\n return element.col.businessObject.typeRef;\n}\n//# sourceMappingURL=OutputDurationEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/components/OutputDurationEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/index.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/index.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleDurationEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleDurationEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/SimpleDurationEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleDurationEdit'],\n simpleDurationEdit: ['type', _SimpleDurationEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-duration-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-mode/SimpleMode.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-mode/SimpleMode.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleMode),\n/* harmony export */ isCmd: () => (/* binding */ isCmd)\n/* harmony export */ });\n/* harmony import */ var _components_SimpleModeButtonComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/SimpleModeButtonComponent */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/components/SimpleModeButtonComponent.js\");\n\nclass SimpleMode {\n constructor(components, contextMenu, elementRegistry, eventBus, renderer) {\n this._providers = [];\n components.onGetComponent('table.before', () => {\n return _components_SimpleModeButtonComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n eventBus.on('simpleMode.open', ({\n element,\n node\n }) => {\n const {\n left,\n top,\n width,\n height\n } = node.getBoundingClientRect();\n const container = renderer.getContainer();\n contextMenu.open({\n x: left + container.parentNode.scrollLeft,\n y: top + container.parentNode.scrollTop,\n width,\n height\n }, {\n contextMenuType: 'simple-mode-edit',\n element,\n offset: {\n x: 4,\n y: 4\n }\n });\n });\n eventBus.on('cell.click', e => {\n const {\n event,\n node,\n id\n } = e;\n if (isCmd(event)) {\n const element = elementRegistry.get(id);\n if (element) {\n eventBus.fire('simpleMode.open', {\n node,\n element\n });\n }\n\n // prevent focus\n e.preventDefault();\n }\n });\n }\n registerProvider(provider) {\n this._providers.push(provider);\n }\n canSimpleEdit(element) {\n return this._providers.reduce((canSimpleEdit, provider) => {\n return canSimpleEdit || provider(element);\n }, false);\n }\n}\nSimpleMode.$inject = ['components', 'contextMenu', 'elementRegistry', 'eventBus', 'renderer'];\n\n// helpers //////////\n\nfunction isCmd(event) {\n // ensure we don't react to AltGr\n // (mapped to CTRL + ALT)\n if (event.altKey) {\n return false;\n }\n return event.ctrlKey || event.metaKey;\n}\n//# sourceMappingURL=SimpleMode.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-mode/SimpleMode.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-mode/components/SimpleModeButtonComponent.js": +/*!*************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-mode/components/SimpleModeButtonComponent.js ***! + \*************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleModeButtonComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var _cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../cell-selection/CellSelectionUtil */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/CellSelectionUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n\nconst OFFSET = 4;\nclass SimpleModeButtonComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this.state = {\n top: 0,\n left: 0,\n isVisible: false,\n isDisabled: false,\n selection: null\n };\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_3__.inject)(this);\n const {\n debounceInput\n } = this;\n this.onClick = this.onClick.bind(this);\n this.handleSelectionChanged = this.handleSelectionChanged.bind(this);\n this.hideAndShowDebounced = this.hideAndShowDebounced.bind(this);\n this.showDebounced = debounceInput(this.showDebounced.bind(this));\n this.updatePosition = this.updatePosition.bind(this);\n }\n componentDidMount() {\n const {\n eventBus\n } = this;\n eventBus.on('cellSelection.changed', this.handleSelectionChanged);\n eventBus.on('commandStack.changed', this.updatePosition);\n eventBus.on('sheet.scroll', this.hideAndShowDebounced);\n }\n componentWillUnmount() {\n const {\n eventBus\n } = this;\n eventBus.off('cellSelection.changed', this.handleSelectionChanged);\n eventBus.off('commandStack.changed', this.updatePosition);\n eventBus.off('sheet.scroll', this.hideAndShowDebounced);\n }\n hideAndShowDebounced() {\n if (this.state.isVisible) {\n this.hide();\n this.showDebounced();\n }\n }\n showDebounced() {\n this.show();\n }\n hide(state = {}) {\n this.setState({\n ...state,\n isVisible: false\n });\n }\n show(state = {}) {\n this.setState({\n ...state,\n isVisible: true\n });\n this.updatePosition();\n }\n handleSelectionChanged({\n elementId\n }) {\n const {\n elementRegistry,\n expressionLanguages,\n simpleMode\n } = this;\n const selection = elementRegistry.get(elementId);\n if (!selection || !simpleMode.canSimpleEdit(selection)) {\n this.hide({\n isDisabled: false,\n selection: null\n });\n return;\n }\n const expressionLanguage = getExpressionLanguage(selection);\n const isDisabled = !isDefaultExpressionLanguage(selection, expressionLanguage, expressionLanguages);\n this.show({\n isDisabled,\n selection\n });\n }\n\n // position button always on opposite site of context menu\n updatePosition() {\n const {\n selection\n } = this.state;\n const {\n node\n } = this;\n if (!selection || !node) {\n return;\n }\n const {\n renderer\n } = this;\n const container = renderer.getContainer(),\n containerBounds = container.getBoundingClientRect();\n const cellNode = (0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_1__.getNodeById)(selection.id, container);\n const cellBounds = cellNode.getBoundingClientRect();\n const nodeBounds = this.node.getBoundingClientRect();\n const {\n scrollLeft,\n scrollTop\n } = getTableContainerScroll(node);\n const nodePosition = {};\n if (cellBounds.left + cellBounds.width / 2 > containerBounds.width / 2) {\n // left\n nodePosition.left = -containerBounds.left + cellBounds.left - nodeBounds.width + OFFSET + scrollLeft + 'px';\n node.classList.remove('right');\n node.classList.add('left');\n } else {\n // right\n nodePosition.left = -containerBounds.left + cellBounds.left + cellBounds.width - OFFSET + scrollLeft + 'px';\n node.classList.remove('left');\n node.classList.add('right');\n }\n if (cellBounds.top + cellBounds.height / 2 > containerBounds.height / 2) {\n // bottom\n nodePosition.top = -containerBounds.top + cellBounds.top - nodeBounds.height + OFFSET + scrollTop + 'px';\n node.classList.remove('top');\n node.classList.add('bottom');\n } else {\n // top\n nodePosition.top = -containerBounds.top + cellBounds.top - OFFSET + scrollTop + 'px';\n node.classList.remove('bottom');\n node.classList.add('top');\n }\n (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(this.node.style, nodePosition);\n }\n onClick() {\n const {\n eventBus\n } = this;\n const {\n isDisabled\n } = this.state;\n if (isDisabled) {\n return;\n }\n const {\n selection\n } = this;\n const element = selection.get();\n if (!element) {\n return;\n }\n eventBus.fire('simpleMode.open', {\n element,\n node: (0,_cell_selection_CellSelectionUtil__WEBPACK_IMPORTED_MODULE_1__.getNodeById)(element.id, this._container)\n });\n this.hide();\n }\n render() {\n const {\n isDisabled,\n isVisible,\n top,\n left\n } = this.state;\n const classes = ['simple-mode-button', 'no-deselect'];\n if (isDisabled) {\n classes.push('disabled');\n }\n return isVisible ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", classes.join(' '), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", \"dmn-icon-edit\"), 2, {\n \"onClick\": this.onClick,\n \"style\": {\n top,\n left\n },\n \"title\": isDisabled ? this._translate('Editing not supported for set expression language') : this._translate('Edit')\n }, null, node => this.node = node) : null;\n }\n}\nSimpleModeButtonComponent.$inject = ['debounceInput', 'elementRegistry', 'eventBus', 'expressionLanguages', 'renderer', 'selection', 'simpleMode'];\n\n// helpers //////////////////////\n\n/**\r\n * Return set expression language if found.\r\n *\r\n * @param {Cell} cell - Cell.\r\n */\nfunction getExpressionLanguage(cell) {\n return cell.businessObject.expressionLanguage;\n}\nfunction isDefaultExpressionLanguage(cell, expressionLanguage, expressionLanguages) {\n return !expressionLanguage || expressionLanguage === getDefaultExpressionLanguage(cell, expressionLanguages);\n}\nfunction getDefaultExpressionLanguage(cell, expressionLanguages) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(cell.col)) {\n return expressionLanguages.getDefault('inputCell').value;\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(cell.col)) {\n return expressionLanguages.getDefault('outputCell').value;\n }\n}\nfunction getTableContainerScroll(node) {\n const tableContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_5__.closest)(node, '.tjs-table-container');\n if (!tableContainer) {\n return {\n scrollTop: 0,\n scrollLeft: 0\n };\n }\n const {\n scrollLeft,\n scrollTop\n } = tableContainer;\n return {\n scrollTop,\n scrollLeft\n };\n}\n//# sourceMappingURL=SimpleModeButtonComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-mode/components/SimpleModeButtonComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _cell_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cell-selection */ \"./node_modules/dmn-js-decision-table/lib/features/cell-selection/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var _SimpleMode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SimpleMode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/SimpleMode.js\");\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _cell_selection__WEBPACK_IMPORTED_MODULE_0__[\"default\"], dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['simpleMode'],\n simpleMode: ['type', _SimpleMode__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/SimpleNumberEdit.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/SimpleNumberEdit.js ***! + \************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleNumberEdit)\n/* harmony export */ });\n/* harmony import */ var _components_InputNumberEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/InputNumberEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/InputNumberEdit.js\");\n/* harmony import */ var _components_OutputNumberEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/OutputNumberEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/OutputNumberEdit.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass SimpleNumberEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n const typeRef = getTypeRef(element);\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(element.col)) && isNumber(typeRef);\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (isNumber(typeRef)) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(context.element.col)) {\n return _components_InputNumberEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(context.element.col)) {\n return _components_OutputNumberEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }\n }\n });\n }\n}\nSimpleNumberEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\nconst numberTypes = ['number', 'integer', 'long', 'double'];\nfunction isNumber(typeRef) {\n return numberTypes.includes(typeRef);\n}\n//# sourceMappingURL=SimpleNumberEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/SimpleNumberEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/Utils.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/Utils.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getComparisonString: () => (/* binding */ getComparisonString),\n/* harmony export */ getRangeString: () => (/* binding */ getRangeString),\n/* harmony export */ isEmptyString: () => (/* binding */ isEmptyString),\n/* harmony export */ operators: () => (/* binding */ operators),\n/* harmony export */ parseString: () => (/* binding */ parseString)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n// eslint-disable-next-line\nconst COMPARISON_REGULAR_EXPRESSION = /^(-?(?:[0-9]|\\.[0-9])+)$|^((?:<|>|=){0,2})\\s*(-?(?:[0-9]|\\.[0-9])+)$/;\n\n// eslint-disable-next-line\nconst RANGE_REGULAR_EXPRESSION = /^(\\[|\\]){1}(-?(?:[0-9]|\\.[0-9])+){1,}\\.\\.(-?(?:[0-9]|\\.[0-9])+){1,}(\\[|\\]){1}$/;\nconst operators = {\n equals: '=',\n less: '<',\n lessEquals: '<=',\n greater: '>',\n greaterEquals: '>='\n};\nfunction getOperatorName(string) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.keys)(operators).filter(key => {\n return string === operators[key];\n })[0];\n}\nfunction parseString(string) {\n if (!string || isEmptyString(string.trim())) {\n return {\n type: 'comparison'\n };\n }\n const comparisonMatches = string.match(COMPARISON_REGULAR_EXPRESSION),\n rangeMatches = string.match(RANGE_REGULAR_EXPRESSION);\n if (comparisonMatches) {\n if (isNumber(comparisonMatches)) {\n return {\n type: 'comparison',\n value: parseFloat(comparisonMatches[1]),\n operator: 'equals'\n };\n } else if (isComparison(comparisonMatches)) {\n return {\n type: 'comparison',\n value: parseFloat(comparisonMatches[3]),\n operator: getOperatorName(comparisonMatches[2])\n };\n }\n } else if (rangeMatches) {\n return {\n type: 'range',\n values: [rangeMatches[2], rangeMatches[3]].map(value => parseFloat(value)),\n start: rangeMatches[1] === ']' ? 'exclude' : 'include',\n end: rangeMatches[4] === '[' ? 'exclude' : 'include'\n };\n }\n}\nfunction isEmptyString(string) {\n return string === '';\n}\nfunction isNumber(matches) {\n return matches[0] && matches[1] && !matches[2] && !matches[3];\n}\nfunction isComparison(matches) {\n return matches[0] && !matches[1] && matches[2] && matches[3];\n}\nfunction getComparisonString(comparisonOperator, comparisonValue) {\n if (comparisonOperator === 'equals') {\n return `${comparisonValue}`;\n } else {\n return `${operators[comparisonOperator]} ${comparisonValue}`;\n }\n}\nfunction getRangeString(rangeStartValue, rangeEndValue, rangeStartType, rangeEndType) {\n const rangeStartChar = rangeStartType === 'exclude' ? ']' : '[',\n rangeEndChar = rangeEndType === 'exclude' ? '[' : ']';\n return `${rangeStartChar}${rangeStartValue}..${rangeEndValue}${rangeEndChar}`;\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/InputNumberEdit.js": +/*!**********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/InputNumberEdit.js ***! + \**********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputNumberEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/Utils.js\");\n\n\n\n\n\nconst COMPARISON = 'comparison',\n RANGE = 'range';\nclass InputNumberEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)(element.businessObject.text);\n if (parsedString) {\n this.state = {\n type: parsedString.type,\n comparisonOperator: parsedString.operator || 'equals',\n comparisonValue: parsedString.value || 0,\n rangeStartValue: parsedString.values ? parsedString.values[0] : 0,\n rangeEndValue: parsedString.values ? parsedString.values[1] : 0,\n rangeStartType: parsedString.start || 'include',\n rangeEndType: parsedString.end || 'include'\n };\n } else {\n this.state = {\n type: COMPARISON,\n comparisonOperator: 'equals',\n comparisonValue: 0,\n rangeStartValue: 0,\n rangeEndValue: 0,\n rangeStartType: 'include',\n rangeEndType: 'include'\n };\n }\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onComparisonOperatorChange = this.onComparisonOperatorChange.bind(this);\n this.onComparisonValueChange = this.onComparisonValueChange.bind(this);\n this.onTypeChange = this.onTypeChange.bind(this);\n this.onRangeStartTypeChange = this.onRangeStartTypeChange.bind(this);\n this.onRangeStartValueChange = this.onRangeStartValueChange.bind(this);\n this.onRangeEndTypeChange = this.onRangeEndTypeChange.bind(this);\n this.onRangeEndValueChange = this.onRangeEndValueChange.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n comparisonOperator,\n comparisonValue,\n rangeStartValue,\n rangeEndValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n if (value === COMPARISON) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getComparisonString)(comparisonOperator, comparisonValue));\n } else {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(rangeStartValue, rangeEndValue, rangeStartType, rangeEndType));\n }\n this.setState({\n type: value\n });\n }\n onComparisonOperatorChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n comparisonValue\n } = this.state;\n if (type === COMPARISON) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getComparisonString)(value, comparisonValue));\n this.setState({\n comparisonOperator: value\n });\n }\n }\n onComparisonValueChange(comparisonValue) {\n const {\n element\n } = this.props.context;\n const {\n type,\n comparisonOperator\n } = this.state;\n if (type === COMPARISON) {\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getComparisonString)(comparisonOperator, comparisonValue));\n this.setState({\n comparisonValue\n });\n }\n }\n onRangeStartTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n rangeStartValue,\n rangeEndValue,\n rangeEndType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(rangeStartValue, rangeEndValue, value, rangeEndType));\n this.setState({\n rangeStartType: value\n });\n }\n }\n onRangeStartValueChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n rangeEndValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(value, rangeEndValue, rangeStartType, rangeEndType));\n this.setState({\n rangeStartValue: value\n });\n }\n }\n onRangeEndTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n rangeStartValue,\n rangeEndValue,\n rangeStartType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(rangeStartValue, rangeEndValue, rangeStartType, value));\n this.setState({\n rangeEndType: value\n });\n }\n }\n onRangeEndValueChange(value) {\n const {\n element\n } = this.props.context;\n const {\n type,\n rangeStartValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n if (type === RANGE) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getRangeString)(rangeStartValue, value, rangeStartType, rangeEndType));\n this.setState({\n rangeEndValue: value\n });\n }\n }\n renderComparison(comparisonOperator, comparisonValue) {\n const comparisonOperatorOptions = [{\n label: this._translate('Equals'),\n value: 'equals'\n }, {\n label: this._translate('Less'),\n value: 'less'\n }, {\n label: this._translate('Less or equals'),\n value: 'lessEquals'\n }, {\n label: this._translate('Greater'),\n value: 'greater'\n }, {\n label: this._translate('Greater or equals'),\n value: 'greaterEquals'\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"comparison\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Comparison operator'),\n \"noInput\": true,\n \"onChange\": this.onComparisonOperatorChange,\n \"options\": comparisonOperatorOptions,\n \"value\": comparisonOperator\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Value'),\n \"className\": \"comparison-number-input\",\n \"onInput\": this.onComparisonValueChange,\n \"type\": \"number\",\n \"value\": comparisonValue\n })], 4)], 4);\n }\n renderRange(rangeStartValue, rangeEndValue, rangeStartType, rangeEndType) {\n const rangeTypeOptions = [{\n label: this._translate('Include'),\n value: 'include'\n }, {\n label: this._translate('Exclude'),\n value: 'exclude'\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"range\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Start value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Start value'),\n \"noInput\": true,\n \"onChange\": this.onRangeStartTypeChange,\n \"options\": rangeTypeOptions,\n \"value\": rangeStartType\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"className\": \"range-start-number-input\",\n \"onInput\": this.onRangeStartValueChange,\n \"type\": \"number\",\n \"value\": rangeStartValue\n })], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('End value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('End value'),\n \"noInput\": true,\n \"onChange\": this.onRangeEndTypeChange,\n \"options\": rangeTypeOptions,\n \"value\": rangeEndType\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"className\": \"range-end-number-input\",\n \"onInput\": this.onRangeEndValueChange,\n \"type\": \"number\",\n \"value\": rangeEndValue\n })], 4)], 4);\n }\n render() {\n const {\n type,\n comparisonOperator,\n comparisonValue,\n rangeStartValue,\n rangeEndValue,\n rangeStartType,\n rangeEndType\n } = this.state;\n const typeOptions = [{\n label: this._translate('Comparison'),\n value: COMPARISON\n }, {\n label: this._translate('Range'),\n value: RANGE\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-number-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit number'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Test type'),\n \"noInput\": true,\n \"onChange\": this.onTypeChange,\n \"options\": typeOptions,\n \"value\": type\n }), 2), type === COMPARISON && this.renderComparison(comparisonOperator, comparisonValue), type === RANGE && this.renderRange(rangeStartValue, rangeEndValue, rangeStartType, rangeEndType)], 0);\n }\n}\n//# sourceMappingURL=InputNumberEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/InputNumberEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/OutputNumberEdit.js": +/*!***********************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/OutputNumberEdit.js ***! + \***********************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputNumberEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/Utils.js\");\n\n\n\n\nclass OutputNumberEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.parseString)(element.businessObject.text);\n if (parsedString) {\n this.state = {\n value: parsedString.value\n };\n } else {\n this.state = {\n value: ''\n };\n }\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onInput = this.onInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onInput(value) {\n const {\n element\n } = this.props.context;\n this.debouncedEditCell(element.businessObject, value);\n this.setState({\n value\n });\n }\n render() {\n const {\n value\n } = this.state;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-number-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit number'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"onInput\": this.onInput,\n \"type\": \"number\",\n \"value\": value\n })], 4);\n }\n}\n//# sourceMappingURL=OutputNumberEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/components/OutputNumberEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/index.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/index.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleNumberEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleNumberEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/SimpleNumberEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleNumberEdit'],\n simpleNumberEdit: ['type', _SimpleNumberEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-number-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/SimpleStringEdit.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/SimpleStringEdit.js ***! + \************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleStringEdit)\n/* harmony export */ });\n/* harmony import */ var _components_SimpleStringEditContextMenuComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/SimpleStringEditContextMenuComponent */ \"./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/components/SimpleStringEditContextMenuComponent.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nclass SimpleStringEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isOutput)(element.col)) && getTypeRef(element) === 'string';\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (typeRef === 'string') {\n return _components_SimpleStringEditContextMenuComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n }\n });\n }\n}\nSimpleStringEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\n//# sourceMappingURL=SimpleStringEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/SimpleStringEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/Utils.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/Utils.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getInputOrOutputValues: () => (/* binding */ getInputOrOutputValues),\n/* harmony export */ parseString: () => (/* binding */ parseString)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n/**\r\n * Parse input/output entry string to unary tests and type of unary tests.\r\n *\r\n * Example:\r\n *\r\n * not(\"foo\", \"bar\")\r\n *\r\n * returns\r\n *\r\n * {\r\n * type: 'negation',\r\n * values: [ \"foo\", \"bar, baz\" ]\r\n * }\r\n *\r\n * @param {string} string - Input/Output entry as string e.g. \"foo\", \"bar\".\r\n */\nfunction parseString(string) {\n // empty string or no string at all\n if (!string || isEmptyString(string.trim())) {\n return {\n type: 'disjunction',\n values: []\n };\n }\n\n // disjunction\n let values = string.split(',');\n const result = {\n type: 'disjunction',\n values: []\n };\n let openString = '';\n values.forEach(value => {\n openString += value;\n if (/^\"[^\"]*\"$/.test(openString.trim())) {\n result.values.push(openString.trim());\n openString = '';\n } else {\n openString += ',';\n }\n });\n if (!openString) {\n return result;\n }\n\n // negation\n result.type = 'negation';\n result.values = [];\n openString = '';\n const matches = string.match(/^\\s*not\\((.*)\\)\\s*$/);\n if (matches) {\n values = matches[1].split(',');\n values.forEach(value => {\n openString += value;\n if (/^\"[^\"]*\"$/.test(openString.trim())) {\n result.values.push(openString.trim());\n openString = '';\n } else {\n openString += ',';\n }\n });\n if (!openString) {\n return result;\n }\n }\n}\n\n// TODO(philippfromme): seperate when refactoring component\nfunction getInputOrOutputValues(inputOrOutput) {\n const inputOrOutputValues = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isInput)(inputOrOutput) ? inputOrOutput.inputValues : inputOrOutput.outputValues;\n if (!inputOrOutputValues || isEmptyString(inputOrOutputValues.text)) {\n return [];\n } else {\n return inputOrOutputValues.text.split(',').map(value => value.trim());\n }\n}\nfunction isEmptyString(string) {\n return string === '';\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/components/SimpleStringEditContextMenuComponent.js": +/*!*******************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/components/SimpleStringEditContextMenuComponent.js ***! + \*******************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleStringEditContextMenuComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var dmn_js_shared_lib_components_List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/List */ \"./node_modules/dmn-js-shared/lib/components/List.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/Utils.js\");\n\n\n\n\n\n\n\nconst DISJUNCTION = 'disjunction',\n NEGATION = 'negation';\nconst INPUT_VALUES_LABEL = 'Predefined values',\n OUTPUT_VALUES_LABEL = 'Predefined values',\n INPUT_ENTRY_VALUES_LABEL = 'Custom values';\nclass SimpleStringEditContextMenuComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n let parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.parseString)(props.context.element.businessObject.text);\n\n // could not parse\n if (!parsedString) {\n parsedString = {\n values: [],\n type: DISJUNCTION\n };\n }\n const inputOrOutputValues = (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.getInputOrOutputValues)(props.context.element.col.businessObject);\n const filteredValues = parsedString.values.filter(value => {\n return !includes(inputOrOutputValues, value);\n });\n const isInputClause = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isInput)(props.context.element.col);\n let items = inputOrOutputValues.map(value => {\n return {\n value,\n isChecked: includes(parsedString.values, value),\n isRemovable: false,\n group: isInputClause ? this._translate(INPUT_VALUES_LABEL) : this._translate(OUTPUT_VALUES_LABEL)\n };\n });\n if (isInputClause) {\n items = items.concat(filteredValues.map(value => {\n return {\n value,\n isChecked: true,\n isRemovable: true,\n group: this._translate(INPUT_ENTRY_VALUES_LABEL)\n };\n }));\n }\n let inputValue = '';\n if (!isInputClause && parsedString.values.length && !includes(inputOrOutputValues, parsedString.values[0])) {\n inputValue = parsedString.values[0];\n }\n this.state = {\n items,\n unaryTestsType: parsedString.type,\n inputValue,\n isOutputValueInputChecked: inputValue !== ''\n };\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.addUnaryTestsListItem = this.addUnaryTestsListItem.bind(this);\n this.onInput = this.onInput.bind(this);\n this.onKeyDown = this.onKeyDown.bind(this);\n this.onOutputValueInputClick = this.onOutputValueInputClick.bind(this);\n this.onUnaryTestsListChanged = this.onUnaryTestsListChanged.bind(this);\n this.onUnaryTestsTypeChange = this.onUnaryTestsTypeChange.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n\n /**\r\n * Change type of unary tests.\r\n */\n onUnaryTestsTypeChange(value) {\n const {\n items\n } = this.state;\n const values = getValues(items);\n const {\n element\n } = this.props.context;\n if (value === DISJUNCTION) {\n this.editCell(element.businessObject, values.join(','));\n this.setState({\n unaryTestsType: DISJUNCTION\n });\n } else {\n this.editCell(element.businessObject, `not(${values.join(',')})`);\n this.setState({\n unaryTestsType: NEGATION\n });\n }\n }\n\n /**\r\n * Change list of unary tests.\r\n */\n onUnaryTestsListChanged(items) {\n // get checked items\n const values = getValues(items);\n const {\n element\n } = this.props.context;\n const {\n unaryTestsType\n } = this.state;\n if (unaryTestsType === DISJUNCTION) {\n this.editCell(element.businessObject, values.join(','));\n } else {\n this.editCell(element.businessObject, `not(${values.join(',')})`);\n }\n this.setState({\n items,\n isOutputValueInputChecked: false\n });\n }\n\n /**\r\n * Set output value to input value.\r\n */\n onOutputValueInputClick() {\n const {\n element\n } = this.props.context;\n const {\n inputValue,\n items\n } = this.state;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.parseString)(inputValue);\n if (!parsedString || parsedString.values.length > 1) {\n return;\n }\n this.editCell(element.businessObject, `${parsedString.values.join('')}`);\n\n // uncheck all other values\n this.setState({\n items: items.map(item => {\n item.isChecked = false;\n return item;\n }),\n isOutputValueInputChecked: true\n });\n }\n\n /**\r\n * Set output value if valid.\r\n */\n onInput({\n isValid,\n value\n }) {\n const {\n isOutputValueInputChecked\n } = this.state;\n this.setState({\n inputValue: value\n });\n const {\n element\n } = this.props.context;\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isInput)(element) && isValid && isOutputValueInputChecked) {\n this.debouncedEditCell(element.businessObject, value);\n }\n }\n\n /**\r\n * Add new value on ENTER.\r\n */\n onKeyDown({\n isValid,\n event\n }) {\n if (!isEnter(event.keyCode)) {\n return;\n }\n const {\n element\n } = this.props.context;\n const isInputClause = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isInput)(element.col);\n\n // stop ENTER propagation (and ContextMenu close)\n if (isInputClause || !isValid) {\n event.stopPropagation();\n event.preventDefault();\n }\n if (isValid) {\n if (isInputClause) {\n this.addUnaryTestsListItem();\n } else {\n this.onOutputValueInputClick();\n }\n }\n }\n\n /**\r\n * Add unary tests to list.\r\n */\n addUnaryTestsListItem() {\n const {\n inputValue,\n items,\n unaryTestsType\n } = this.state;\n const parsedInput = (0,_Utils__WEBPACK_IMPORTED_MODULE_5__.parseString)(inputValue);\n if (!parsedInput) {\n return;\n }\n const {\n element\n } = this.props.context;\n const values = getValues(items);\n const newValues = [].concat(values, parsedInput.values);\n if (unaryTestsType === DISJUNCTION) {\n this.editCell(element.businessObject, newValues.join(','));\n } else {\n this.editCell(element.businessObject, `not(${newValues.join(',')})`);\n }\n const newItems = items.concat(parsedInput.values.map(value => {\n return {\n value,\n isChecked: true,\n isRemovable: true,\n group: this._translate('Custom values')\n };\n }));\n this.setState({\n items: newItems,\n inputValue: ''\n });\n }\n render() {\n const {\n element\n } = this.props.context;\n const {\n inputValue,\n isOutputValueInputChecked,\n items,\n unaryTestsType\n } = this.state;\n const options = [{\n label: this._translate('Match one'),\n value: DISJUNCTION\n }, {\n label: this._translate('Match none'),\n value: NEGATION\n }];\n const isInputClause = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_4__.isInput)(element.col);\n const isNegation = unaryTestsType === NEGATION;\n const showRadio = !isInputClause && items.length > 0;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"simple-string-edit context-menu-container\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit string'), 0), isInputClause && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('String value'),\n \"noInput\": true,\n \"onChange\": this.onUnaryTestsTypeChange,\n \"options\": options,\n \"value\": isNegation ? NEGATION : DISJUNCTION\n }, null, node => this.selectNode = node), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_List__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"onChange\": this.onUnaryTestsListChanged,\n \"items\": items,\n \"type\": isInputClause ? 'checkbox' : 'radio'\n }), isInputClause ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Add values'), 0) : (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set value'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", [showRadio && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(64, \"input\", \"cursor-pointer\", null, 1, {\n \"checked\": isOutputValueInputChecked,\n \"onClick\": this.onOutputValueInputClick,\n \"type\": \"radio\",\n \"style\": {\n marginRight: '8px'\n }\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n \"label\": isInputClause ? this._translate('Values') : this._translate('Value'),\n \"className\": \"dms-block\",\n \"onKeyDown\": this.onKeyDown,\n \"onInput\": this.onInput,\n \"placeholder\": isInputClause ? this._translate('\"value\", \"value\", ...') : this._translate('\"value\"'),\n \"type\": \"text\",\n \"validate\": value => {\n if (!(0,_Utils__WEBPACK_IMPORTED_MODULE_5__.parseString)(value)) {\n return this._translate('Strings must be in double quotes');\n }\n },\n \"value\": inputValue\n })], 0)], 0);\n }\n}\n\n// helpers //////////////////////\n\nfunction isEnter(keyCode) {\n return keyCode === 13;\n}\n\n/**\r\n * Get array of actual values from array of items.\r\n *\r\n * @param {Array} items - Array of items.\r\n */\nfunction getValues(items) {\n return items.filter(item => item.isChecked).map(item => item.value);\n}\nfunction includes(array, value) {\n return array.indexOf(value) !== -1;\n}\n//# sourceMappingURL=SimpleStringEditContextMenuComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/components/SimpleStringEditContextMenuComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/index.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/index.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleStringEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleStringEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/SimpleStringEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleStringEdit'],\n simpleStringEdit: ['type', _SimpleStringEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-string-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/SimpleTimeEdit.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/SimpleTimeEdit.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SimpleDateEdit)\n/* harmony export */ });\n/* harmony import */ var _components_InputTimeEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/InputTimeEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/InputTimeEdit.js\");\n/* harmony import */ var _components_OutputTimeEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/OutputTimeEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/OutputTimeEdit.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass SimpleDateEdit {\n constructor(components, simpleMode) {\n simpleMode.registerProvider(element => {\n const typeRef = getTypeRef(element);\n return ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col) || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(element.col)) && isTime(typeRef);\n });\n components.onGetComponent('context-menu', (context = {}) => {\n if (context.contextMenuType && context.contextMenuType === 'simple-mode-edit') {\n if (!context.element) {\n return;\n }\n const typeRef = getTypeRef(context.element);\n if (isTime(typeRef)) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(context.element.col)) {\n return _components_InputTimeEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isOutput)(context.element.col)) {\n return _components_OutputTimeEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n }\n }\n }\n });\n }\n}\nSimpleDateEdit.$inject = ['components', 'simpleMode'];\n\n// helpers //////////////////////\n\nfunction getTypeRef(element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isInput)(element.col)) {\n return element.col && element.col.businessObject.inputExpression.typeRef;\n } else {\n return element.col && element.col.businessObject.typeRef;\n }\n}\nfunction isTime(typeRef) {\n return typeRef === 'time';\n}\n//# sourceMappingURL=SimpleTimeEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/SimpleTimeEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/Utils.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/Utils.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getSampleTime: () => (/* binding */ getSampleTime),\n/* harmony export */ getTimeString: () => (/* binding */ getTimeString),\n/* harmony export */ parseString: () => (/* binding */ parseString),\n/* harmony export */ validateISOString: () => (/* binding */ validateISOString)\n/* harmony export */ });\nconst ISO_TIME_REGEX = /^(?:\\d\\d:){2}\\d\\d(?:Z|(?:[@+-][^\")]+))?$/;\nconst BETWEEN_TIME_REGEX = /^\\[time\\(\"([^\"]*)\"\\)..time\\(\"([^\"]*)\"\\)\\]$/;\nconst BEFORE_AFTER_TIME_REGEX = /^(<|>)\\s*time\\(\"([^\"]*)\"\\)$/;\nconst EXACT_TIME_REGEX = /^time\\(\"([^\"]*)\"\\)$/;\nconst EXACT = 'exact',\n BEFORE = 'before',\n AFTER = 'after',\n BETWEEN = 'between';\nfunction validateISOString(string) {\n if (!ISO_TIME_REGEX.test(string.trim())) {\n return 'Time must match pattern hh:mm:ss[time zone]';\n }\n}\nfunction getTimeString(type, times) {\n if (type === EXACT) {\n return `time(\"${times[0]}\")`;\n } else if (type === BEFORE) {\n return `< time(\"${times[0]}\")`;\n } else if (type === AFTER) {\n return `> time(\"${times[0]}\")`;\n } else if (type === BETWEEN) {\n return `[time(\"${times[0]}\")..time(\"${times[1]}\")]`;\n }\n}\nfunction getSampleTime() {\n const time = new Date();\n return time.toISOString().slice(11, -5) + 'Z';\n}\nfunction parseString(string) {\n // emtpy\n if (!string || string.trim() === '') {\n return {\n type: 'exact',\n time: ''\n };\n }\n\n // between\n let matches = string.match(BETWEEN_TIME_REGEX);\n if (matches) {\n return {\n type: 'between',\n times: [matches[1], matches[2]]\n };\n }\n\n // before or after\n matches = string.match(BEFORE_AFTER_TIME_REGEX);\n if (matches) {\n return {\n type: matches[1] === '<' ? 'before' : 'after',\n time: matches[2]\n };\n }\n\n // exact\n matches = string.match(EXACT_TIME_REGEX);\n if (matches) {\n return {\n type: 'exact',\n time: matches[1]\n };\n }\n}\n//# sourceMappingURL=Utils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/Utils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/InputTimeEdit.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/InputTimeEdit.js ***! + \******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputTimeEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/Utils.js\");\n/* harmony import */ var _simple_date_edit_Utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../simple-date-edit/Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js\");\n\n\n\n\n\n\nconst EXACT = 'exact',\n BEFORE = 'before',\n AFTER = 'after',\n BETWEEN = 'between';\nclass InputTimeEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)(element.businessObject.text);\n if (parsedString) {\n let times;\n if (parsedString.time) {\n times = [parsedString.time, ''];\n } else if (parsedString.times) {\n times = parsedString.times;\n } else {\n times = ['', ''];\n }\n this.state = {\n type: parsedString.type,\n times: times\n };\n } else {\n this.state = {\n type: EXACT,\n times: ['', '']\n };\n }\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onTypeChange = this.onTypeChange.bind(this);\n this.onSetStartTimeNowClick = this.onSetStartTimeNowClick.bind(this);\n this.onSetEndTimeNowClick = this.onSetEndTimeNowClick.bind(this);\n this.onStartTimeInput = this.onStartTimeInput.bind(this);\n this.onEndTimeInput = this.onEndTimeInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onTypeChange(value) {\n const {\n element\n } = this.props.context;\n const {\n times\n } = this.state;\n this.setState({\n type: value\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(value, times))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(value, times));\n }\n }\n onSetStartTimeNowClick() {\n const {\n element\n } = this.props.context;\n const {\n times,\n type\n } = this.state;\n const time = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleTime)();\n this.setState({\n times: [time, times[1]]\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(type, [time, times[1]]))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(type, [time, times[1]]));\n }\n }\n onSetEndTimeNowClick() {\n const {\n element\n } = this.props.context;\n const {\n times,\n type\n } = this.state;\n const time = (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleTime)();\n this.setState({\n times: [times[0], time]\n });\n if ((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.parseString)((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(type, [times[0], time]))) {\n this.editCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(type, [times[0], time]));\n }\n }\n onStartTimeInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n const {\n times,\n type\n } = this.state;\n this.setState({\n times: [value, times[1]]\n });\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(type, [value, times[1]]));\n }\n onEndTimeInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n const {\n times,\n type\n } = this.state;\n this.setState({\n times: [times[0], value]\n });\n this.debouncedEditCell(element.businessObject, (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.getTimeString)(type, [times[0], value]));\n }\n render() {\n const {\n times,\n type\n } = this.state;\n const options = [{\n label: this._translate('Exactly'),\n value: EXACT\n }, {\n label: this._translate('Before'),\n value: BEFORE\n }, {\n label: this._translate('After'),\n value: AFTER\n }, {\n label: this._translate('Between'),\n value: BETWEEN\n }];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-time-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Time'),\n \"noInput\": true,\n \"onChange\": this.onTypeChange,\n \"options\": options,\n \"value\": type\n }), 2), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", type === BETWEEN ? this._translate('Edit start time') : this._translate('Set time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Start time'),\n \"className\": \"start-time-input dms-block\",\n \"onInput\": this.onStartTimeInput,\n \"placeholder\": this._translate('e.g. { example } ', {\n example: (0,_simple_date_edit_Utils__WEBPACK_IMPORTED_MODULE_4__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string)),\n \"value\": times[0]\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-now\", this._translate('Use now'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onSetStartTimeNowClick\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\".\")], 4)], 4), type === BETWEEN && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Edit end time'), 0), type === BETWEEN && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('End time'),\n \"className\": \"end-time-input dms-block\",\n \"onInput\": this.onEndTimeInput,\n \"placeholder\": this._translate('e.g. { example } ', {\n example: (0,_simple_date_edit_Utils__WEBPACK_IMPORTED_MODULE_4__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_3__.validateISOString)(string)),\n \"value\": times[1]\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-now\", this._translate('Use now'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onSetEndTimeNowClick\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\".\")], 4)], 4)], 0);\n }\n}\n//# sourceMappingURL=InputTimeEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/InputTimeEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/OutputTimeEdit.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/OutputTimeEdit.js ***! + \*******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutputTimeEdit)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/ValidatedInput */ \"./node_modules/dmn-js-shared/lib/components/ValidatedInput.js\");\n/* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/Utils.js\");\n/* harmony import */ var _simple_date_edit_Utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../simple-date-edit/Utils */ \"./node_modules/dmn-js-decision-table/lib/features/simple-date-edit/Utils.js\");\n\n\n\n\n\nclass OutputTimeEdit extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n const {\n element\n } = this.props.context;\n const parsedString = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.parseString)(element.businessObject.text);\n this.state = {\n date: parsedString ? parsedString.date : ''\n };\n const debounceInput = context.injector.get('debounceInput');\n this.debouncedEditCell = debounceInput(this.editCell.bind(this));\n this.editCell = this.editCell.bind(this);\n this.onClick = this.onClick.bind(this);\n this.onInput = this.onInput.bind(this);\n }\n editCell(cell, text) {\n this._modeling.editCell(cell, text);\n }\n onClick() {\n const {\n element\n } = this.props.context;\n const date = (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.getSampleTime)();\n this.setState({\n date\n });\n this.editCell(element.businessObject, `time(\"${date}\")`);\n }\n onInput({\n value\n }) {\n const {\n element\n } = this.props.context;\n this.setState({\n date: value\n });\n this.debouncedEditCell(element.businessObject, `time(\"${value}\")`);\n }\n render() {\n const {\n date\n } = this.state;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"context-menu-container simple-time-edit\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"dms-heading\", this._translate('Edit time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", this._translate('Set time'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_ValidatedInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Time value'),\n \"onInput\": this.onInput,\n \"placeholder\": this._translate('e.g. { example } ', {\n example: (0,_simple_date_edit_Utils__WEBPACK_IMPORTED_MODULE_3__.getSampleDate)()\n }),\n \"validate\": string => (0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateISOString)(string) && this._translate((0,_Utils__WEBPACK_IMPORTED_MODULE_2__.validateISOString)(string)),\n \"value\": date,\n \"className\": \"dms-block\"\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"use-now\", this._translate('Use now'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onClick\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\".\")], 4)], 4)], 4);\n }\n}\n//# sourceMappingURL=OutputTimeEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/components/OutputTimeEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/index.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/index.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _simple_mode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../simple-mode */ \"./node_modules/dmn-js-decision-table/lib/features/simple-mode/index.js\");\n/* harmony import */ var _SimpleTimeEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SimpleTimeEdit */ \"./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/SimpleTimeEdit.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-decision-table/lib/features/keyboard/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _simple_mode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['simpleTimeEdit'],\n simpleTimeEdit: ['type', _SimpleTimeEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/simple-time-edit/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/type-ref/TypeRefEditingProvider.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/type-ref/TypeRefEditingProvider.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TypeRef)\n/* harmony export */ });\n/* harmony import */ var _components_TypeRefCellContextMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/TypeRefCellContextMenu */ \"./node_modules/dmn-js-decision-table/lib/features/type-ref/components/TypeRefCellContextMenu.js\");\n\nconst LOW_PRIORITY = 750;\nclass TypeRef {\n constructor(components) {\n components.onGetComponent('context-menu', LOW_PRIORITY, (context = {}) => {\n const {\n contextMenuType\n } = context;\n if (contextMenuType === 'input-edit' || contextMenuType === 'output-edit') {\n return _components_TypeRefCellContextMenu__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n }\n}\nTypeRef.$inject = ['components'];\n//# sourceMappingURL=TypeRefEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/type-ref/TypeRefEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/type-ref/components/TypeRefCellContextMenu.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/type-ref/components/TypeRefCellContextMenu.js ***! + \*******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TypeRefCellContextMenu)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n\n\n\n\nclass TypeRefCellContextMenu extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props);\n this._translate = context.injector.get('translate');\n this._modeling = context.injector.get('modeling');\n this._dataTypes = context.injector.get('dataTypes');\n }\n onTypeChange = value => {\n const element = this.getElement();\n const actualElement = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:LiteralExpression') ? element.$parent : element;\n let newProperties;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isInput)(actualElement)) {\n newProperties = {\n inputExpression: {\n typeRef: value\n }\n };\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.isOutput)(actualElement)) {\n newProperties = {\n typeRef: value\n };\n }\n this._modeling.updateProperties(actualElement, newProperties);\n };\n getElement() {\n return this.props.context.input || this.props.context.output;\n }\n render() {\n const element = this.getElement();\n const typeRef = ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:InputClause') ? element.inputExpression : element).typeRef;\n const typeRefOptions = this._dataTypes.getAll().map(t => {\n return {\n label: this._translate(t),\n value: t\n };\n });\n const label = this._translate('Type');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"type-ref-edit context-menu-container\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-form-control\", [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"label\", \"dms-label\", [label, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\":\")], 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"className\": \"type-ref-edit-select\",\n \"label\": label,\n \"onChange\": this.onTypeChange,\n \"options\": typeRefOptions,\n \"value\": typeRef\n })], 4), 2);\n }\n}\n//# sourceMappingURL=TypeRefCellContextMenu.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/type-ref/components/TypeRefCellContextMenu.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/type-ref/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/type-ref/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/data-types */ \"./node_modules/dmn-js-shared/lib/features/data-types/index.js\");\n/* harmony import */ var table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! table-js/lib/features/context-menu */ \"./node_modules/table-js/lib/features/context-menu/index.js\");\n/* harmony import */ var _TypeRefEditingProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TypeRefEditingProvider */ \"./node_modules/dmn-js-decision-table/lib/features/type-ref/TypeRefEditingProvider.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [table_js_lib_features_context_menu__WEBPACK_IMPORTED_MODULE_2__[\"default\"], dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['typeRefEditingProvider'],\n typeRefEditingProvider: ['type', _TypeRefEditingProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/type-ref/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/view-drd/ViewDrd.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/view-drd/ViewDrd.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewDrd)\n/* harmony export */ });\n/* harmony import */ var _components_ViewDrdComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ViewDrdComponent */ \"./node_modules/dmn-js-decision-table/lib/features/view-drd/components/ViewDrdComponent.js\");\n\nclass ViewDrd {\n constructor(components, eventBus, injector, sheet) {\n this._injector = injector;\n this._sheet = sheet;\n components.onGetComponent('table.before', () => {\n if (this.canViewDrd()) {\n return _components_ViewDrdComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n eventBus.on('showDrd', () => {\n const parent = injector.get('_parent', false);\n const root = sheet.getRoot();\n const definitions = getDefinitions(root);\n if (!definitions) {\n return;\n }\n\n // open definitions\n const view = parent.getView(definitions);\n parent.open(view);\n });\n }\n canViewDrd() {\n const parent = this._injector.get('_parent', false);\n if (!parent) {\n return false;\n }\n const root = this._sheet.getRoot();\n const definitions = getDefinitions(root);\n return !!parent.getView(definitions);\n }\n}\nViewDrd.$inject = ['components', 'eventBus', 'injector', 'sheet'];\n\n// helpers //////////////////////\n\nfunction getDefinitions(root) {\n const {\n businessObject\n } = root;\n\n // root might not have business object\n if (!businessObject) {\n return;\n }\n const decision = businessObject.$parent;\n const definitions = decision.$parent;\n return definitions;\n}\n//# sourceMappingURL=ViewDrd.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/view-drd/ViewDrd.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/view-drd/components/ViewDrdComponent.js": +/*!*************************************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/view-drd/components/ViewDrdComponent.js ***! + \*************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewDrdComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass ViewDrdComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n const {\n injector\n } = context;\n this._translate = injector.get('translate');\n this._eventBus = injector.get('eventBus');\n }\n onClick = () => {\n this._eventBus.fire('showDrd');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"view-drd\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"view-drd-button\", this._translate('View DRD'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onClick\n }), 2, null, null, node => this.node = node);\n }\n}\n//# sourceMappingURL=ViewDrdComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/view-drd/components/ViewDrdComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/features/view-drd/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/features/view-drd/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ViewDrd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ViewDrd */ \"./node_modules/dmn-js-decision-table/lib/features/view-drd/ViewDrd.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['viewDrd'],\n viewDrd: ['type', _ViewDrd__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/features/view-drd/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/import/Importer.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/import/Importer.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ importDecision: () => (/* binding */ importDecision)\n/* harmony export */ });\n/* harmony import */ var _TableTreeWalker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TableTreeWalker */ \"./node_modules/dmn-js-decision-table/lib/import/TableTreeWalker.js\");\n\n\n/**\n * Import the decision table into a table.\n *\n * Errors and warnings are reported through the specified callback.\n *\n * @param {decisionTable} decisionTable instance of DecisionTable\n * @param {ModdleElement} decision moddle element\n * @param {Function} done\n * the callback, invoked with (err, [ warning ]) once the import is done\n */\nfunction importDecision(decisionTable, decision, done) {\n const importer = decisionTable.get('tableImporter'),\n eventBus = decisionTable.get('eventBus'),\n sheet = decisionTable.get('sheet');\n let hasModeling = decisionTable.get('modeling', false);\n let error,\n warnings = [];\n function render(decision) {\n const visitor = {\n create(type, parent, clause, rule) {\n return importer.create(type, parent, clause, rule);\n },\n table(element) {\n return importer.add(element);\n },\n element(element, parentShape, definitions) {\n return importer.add(element, parentShape, definitions);\n },\n error(message, context) {\n warnings.push({\n message: message,\n context: context\n });\n }\n };\n const walker = new _TableTreeWalker__WEBPACK_IMPORTED_MODULE_0__[\"default\"](visitor, {\n canAddMissingEntries: hasModeling\n });\n\n // import\n walker.handleDecision(decision);\n }\n eventBus.fire('import.render.start', {\n decision: decision\n });\n try {\n render(decision);\n } catch (e) {\n error = e;\n }\n eventBus.fire('import.render.complete', {\n error: error,\n warnings: warnings\n });\n eventBus.fire('elements.changed', {\n elements: [sheet.getRoot()]\n });\n done(error, warnings);\n}\n//# sourceMappingURL=Importer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/import/Importer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/import/TableImporter.js": +/*!************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/import/TableImporter.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TableImporter)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nfunction elementData(semantic, attrs) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({\n id: semantic.id,\n type: semantic.$type,\n businessObject: semantic\n }, attrs);\n}\nclass TableImporter {\n constructor(elementFactory, eventBus, sheet) {\n this._elementFactory = elementFactory;\n this._eventBus = eventBus;\n this._sheet = sheet;\n }\n\n /**\n * Add DMN element.\n */\n add(semantic) {\n let element;\n\n // decision table\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:DecisionTable')) {\n element = this._elementFactory.createRoot(elementData(semantic));\n this._sheet.setRoot(element);\n }\n\n // input clause\n else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:InputClause')) {\n element = this._elementFactory.createCol(elementData(semantic));\n this._sheet.addCol(element);\n }\n\n // output clause\n else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:OutputClause')) {\n element = this._elementFactory.createCol(elementData(semantic));\n this._sheet.addCol(element);\n }\n\n // rule\n else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:DecisionRule')) {\n if (!semantic.inputEntry) {\n semantic.inputEntry = [];\n }\n if (!semantic.outputEntry) {\n semantic.outputEntry = [];\n }\n const cells = [...semantic.inputEntry, ...semantic.outputEntry].map(entry => {\n return this._elementFactory.createCell(elementData(entry));\n });\n element = this._elementFactory.createRow((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)(elementData(semantic), {\n cells\n }));\n this._sheet.addRow(element);\n }\n this._eventBus.fire('dmnElement.added', {\n element: element\n });\n return element;\n }\n}\nTableImporter.$inject = ['elementFactory', 'eventBus', 'sheet'];\n//# sourceMappingURL=TableImporter.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/import/TableImporter.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/import/TableTreeWalker.js": +/*!**************************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/import/TableTreeWalker.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TableTreeWalker)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Util */ \"./node_modules/dmn-js-decision-table/lib/import/Util.js\");\n\n\nfunction TableTreeWalker(handler, options) {\n function visit(element, ctx, definitions) {\n var gfx = element.gfx;\n\n // avoid multiple rendering of elements\n if (gfx) {\n throw new Error(`already rendered ${(0,_Util__WEBPACK_IMPORTED_MODULE_0__.elementToString)(element)}`);\n }\n\n // call handler\n return handler.element(element, ctx, definitions);\n }\n function visitTable(element) {\n return handler.table(element);\n }\n\n // Semantic handling //////////////////////\n\n function handleDecision(decision) {\n if (!decision.id) {\n decision.id = 'decision';\n }\n const table = decision.decisionLogic;\n if (table) {\n if (!table.output) {\n throw new Error(`missing output for ${(0,_Util__WEBPACK_IMPORTED_MODULE_0__.elementToString)(table)}`);\n }\n const ctx = visitTable(table);\n if (table.input) {\n handleClauses(table.input, ctx, table);\n }\n handleClauses(table.output, ctx, table);\n\n // if any input or output clauses (columns) were added\n // make sure that for each rule the according input/output entry is created\n handleRules(table.rule, ctx, table);\n } else {\n throw new Error(`no table for ${(0,_Util__WEBPACK_IMPORTED_MODULE_0__.elementToString)(decision)}`);\n }\n }\n function handleClauses(clauses, context, definitions) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(clauses, function (e) {\n visit(e, context, definitions);\n });\n }\n function handleRules(rules, context, definitions) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(rules, function (e) {\n visit(e, context, definitions);\n handleEntry(e.inputEntry, e);\n handleEntry(e.outputEntry, e);\n });\n }\n function handleEntry(entry, context, definitions) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(entry, function (e) {\n visit(e, context, definitions);\n });\n }\n\n // API //////////////////////\n\n return {\n handleDecision: handleDecision\n };\n}\n//# sourceMappingURL=TableTreeWalker.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/import/TableTreeWalker.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/import/Util.js": +/*!***************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/import/Util.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ elementToString: () => (/* binding */ elementToString)\n/* harmony export */ });\nfunction elementToString(element) {\n if (!element) {\n return '';\n }\n const id = element.id ? ` id=\"${element.id}\"` : '';\n return `<${element.$type}${id} />`;\n}\n//# sourceMappingURL=Util.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/import/Util.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-decision-table/lib/import/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/dmn-js-decision-table/lib/import/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _TableImporter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TableImporter */ \"./node_modules/dmn-js-decision-table/lib/import/TableImporter.js\");\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n tableImporter: ['type', _TableImporter__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-decision-table/lib/import/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/Modeler.js": +/*!************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/Modeler.js ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeler)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var _NavigatedViewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NavigatedViewer */ \"./node_modules/dmn-js-drd/lib/NavigatedViewer.js\");\n/* harmony import */ var diagram_js_lib_features_align_elements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! diagram-js/lib/features/align-elements */ \"./node_modules/diagram-js/lib/features/align-elements/index.js\");\n/* harmony import */ var _features_auto_place__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./features/auto-place */ \"./node_modules/dmn-js-drd/lib/features/auto-place/index.js\");\n/* harmony import */ var diagram_js_lib_features_auto_scroll__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! diagram-js/lib/features/auto-scroll */ \"./node_modules/diagram-js/lib/features/auto-scroll/index.js\");\n/* harmony import */ var diagram_js_lib_features_bendpoints__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! diagram-js/lib/features/bendpoints */ \"./node_modules/diagram-js/lib/features/bendpoints/index.js\");\n/* harmony import */ var _features_context_pad__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./features/context-pad */ \"./node_modules/dmn-js-drd/lib/features/context-pad/index.js\");\n/* harmony import */ var diagram_js_lib_features_connection_preview__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! diagram-js/lib/features/connection-preview */ \"./node_modules/diagram-js/lib/features/connection-preview/index.js\");\n/* harmony import */ var _features_definition_properties_modeler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./features/definition-properties/modeler */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/modeler.js\");\n/* harmony import */ var _features_distribute_elements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/distribute-elements */ \"./node_modules/dmn-js-drd/lib/features/distribute-elements/index.js\");\n/* harmony import */ var _features_editor_actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/editor-actions */ \"./node_modules/dmn-js-drd/lib/features/editor-actions/index.js\");\n/* harmony import */ var _features_generate_di__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/generate-di */ \"./node_modules/dmn-js-drd/lib/features/generate-di/index.js\");\n/* harmony import */ var diagram_js_lib_features_grid_snapping__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! diagram-js/lib/features/grid-snapping */ \"./node_modules/diagram-js/lib/features/grid-snapping/index.js\");\n/* harmony import */ var _features_keyboard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./features/keyboard */ \"./node_modules/dmn-js-drd/lib/features/keyboard/index.js\");\n/* harmony import */ var diagram_js_lib_navigation_keyboard_move__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! diagram-js/lib/navigation/keyboard-move */ \"./node_modules/diagram-js/lib/navigation/keyboard-move/index.js\");\n/* harmony import */ var diagram_js_lib_features_keyboard_move_selection__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! diagram-js/lib/features/keyboard-move-selection */ \"./node_modules/diagram-js/lib/features/keyboard-move-selection/index.js\");\n/* harmony import */ var _features_label_editing__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/label-editing */ \"./node_modules/dmn-js-drd/lib/features/label-editing/index.js\");\n/* harmony import */ var _features_modeling__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./features/modeling */ \"./node_modules/dmn-js-drd/lib/features/modeling/index.js\");\n/* harmony import */ var diagram_js_lib_features_move__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! diagram-js/lib/features/move */ \"./node_modules/diagram-js/lib/features/move/index.js\");\n/* harmony import */ var _features_outline__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./features/outline */ \"./node_modules/dmn-js-drd/lib/features/outline/index.js\");\n/* harmony import */ var _features_palette__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./features/palette */ \"./node_modules/dmn-js-drd/lib/features/palette/index.js\");\n/* harmony import */ var diagram_js_lib_features_resize__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! diagram-js/lib/features/resize */ \"./node_modules/diagram-js/lib/features/resize/index.js\");\n/* harmony import */ var _features_snapping__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./features/snapping */ \"./node_modules/dmn-js-drd/lib/features/snapping/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * A modeler for DMN tables.\n *\n *\n * ## Extending the Modeler\n *\n * In order to extend the viewer pass extension modules to bootstrap via the\n * `additionalModules` option. An extension module is an object that exposes\n * named services.\n *\n * The following example depicts the integration of a simple\n * logging component that integrates with interaction events:\n *\n *\n * ```javascript\n *\n * // logging component\n * function InteractionLogger(eventBus) {\n * eventBus.on('element.hover', function(event) {\n * console.log()\n * })\n * }\n *\n * InteractionLogger.$inject = [ 'eventBus' ]; // minification save\n *\n * // extension module\n * var extensionModule = {\n * __init__: [ 'interactionLogger' ],\n * interactionLogger: [ 'type', InteractionLogger ]\n * };\n *\n * // extend the viewer\n * var dmnModeler = new Modeler({ additionalModules: [ extensionModule ] });\n * dmnModeler.importXML(...);\n * ```\n *\n *\n * ## Customizing / Replacing Components\n *\n * You can replace individual table components by redefining them in override modules.\n * This works for all components, including those defined in the core.\n *\n * Pass in override modules via the `options.additionalModules` flag like this:\n *\n * ```javascript\n * function CustomContextPadProvider(contextPad) {\n *\n * contextPad.registerProvider(this);\n *\n * this.getContextPadEntries = function(element) {\n * // no entries, effectively disable the context pad\n * return {};\n * };\n * }\n *\n * CustomContextPadProvider.$inject = [ 'contextPad' ];\n *\n * var overrideModule = {\n * contextPadProvider: [ 'type', CustomContextPadProvider ]\n * };\n *\n * var dmnModeler = new Modeler({ additionalModules: [ overrideModule ]});\n * ```\n *\n * @param {Object} [options] configuration options to pass to the viewer\n * @param {DOMElement} [options.container]\n * the container to render the viewer in, defaults to body.\n * @param {string|number} [options.width] the width of the viewer\n * @param {string|number} [options.height] the height of the viewer\n * @param {Object} [options.moddleExtensions]\n * extension packages to provide\n * @param {Array} [options.modules]\n * a list of modules to override the default modules\n * @param {Array} [options.additionalModules]\n * a list of modules to use with the default modules\n */\nfunction Modeler(options) {\n _NavigatedViewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, options);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(Modeler, _NavigatedViewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n// modules the modeler is composed of\n//\n// - viewer + navigation modules\n// - modeling modules\n\nModeler.prototype._modelingModules = [\n// modeling components\ndiagram_js_lib_features_align_elements__WEBPACK_IMPORTED_MODULE_14__[\"default\"], _features_auto_place__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_features_auto_scroll__WEBPACK_IMPORTED_MODULE_15__[\"default\"], diagram_js_lib_features_bendpoints__WEBPACK_IMPORTED_MODULE_16__[\"default\"], _features_context_pad__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_features_connection_preview__WEBPACK_IMPORTED_MODULE_17__[\"default\"], _features_definition_properties_modeler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _features_distribute_elements__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_editor_actions__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_generate_di__WEBPACK_IMPORTED_MODULE_6__[\"default\"], diagram_js_lib_features_grid_snapping__WEBPACK_IMPORTED_MODULE_18__[\"default\"], _features_keyboard__WEBPACK_IMPORTED_MODULE_7__[\"default\"], diagram_js_lib_navigation_keyboard_move__WEBPACK_IMPORTED_MODULE_19__[\"default\"], diagram_js_lib_features_keyboard_move_selection__WEBPACK_IMPORTED_MODULE_20__[\"default\"], _features_label_editing__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _features_modeling__WEBPACK_IMPORTED_MODULE_9__[\"default\"], diagram_js_lib_features_move__WEBPACK_IMPORTED_MODULE_21__[\"default\"], _features_outline__WEBPACK_IMPORTED_MODULE_10__[\"default\"], _features_palette__WEBPACK_IMPORTED_MODULE_11__[\"default\"], diagram_js_lib_features_resize__WEBPACK_IMPORTED_MODULE_22__[\"default\"], _features_snapping__WEBPACK_IMPORTED_MODULE_12__[\"default\"]];\nModeler.prototype._modules = [].concat(Modeler.prototype._modules, Modeler.prototype._modelingModules);\n//# sourceMappingURL=Modeler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/Modeler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/NavigatedViewer.js": +/*!********************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/NavigatedViewer.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ NavigatedViewer)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var _Viewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Viewer */ \"./node_modules/dmn-js-drd/lib/Viewer.js\");\n/* harmony import */ var diagram_js_lib_navigation_zoomscroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/navigation/zoomscroll */ \"./node_modules/diagram-js/lib/navigation/zoomscroll/index.js\");\n/* harmony import */ var diagram_js_lib_navigation_movecanvas__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! diagram-js/lib/navigation/movecanvas */ \"./node_modules/diagram-js/lib/navigation/movecanvas/index.js\");\n/* harmony import */ var _features_search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./features/search */ \"./node_modules/dmn-js-drd/lib/features/search/index.js\");\n\n\n\n\n\n\n/**\n * A viewer that includes mouse navigation facilities\n *\n * @param {Object} options\n */\nfunction NavigatedViewer(options) {\n _Viewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, options);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(NavigatedViewer, _Viewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\nNavigatedViewer.prototype._navigationModules = [diagram_js_lib_navigation_zoomscroll__WEBPACK_IMPORTED_MODULE_3__[\"default\"], diagram_js_lib_navigation_movecanvas__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_search__WEBPACK_IMPORTED_MODULE_1__[\"default\"]];\nNavigatedViewer.prototype._modules = [].concat(NavigatedViewer.prototype._modules, NavigatedViewer.prototype._navigationModules);\n//# sourceMappingURL=NavigatedViewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/NavigatedViewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/Viewer.js": +/*!***********************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/Viewer.js ***! + \***********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var diagram_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! diagram-js */ \"./node_modules/diagram-js/lib/Diagram.js\");\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var _import_Importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./import/Importer */ \"./node_modules/dmn-js-drd/lib/import/Importer.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_CompatibilityUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/CompatibilityUtils */ \"./node_modules/dmn-js-shared/lib/util/CompatibilityUtils.js\");\n/* harmony import */ var dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/util/PoweredByUtil */ \"./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./core */ \"./node_modules/dmn-js-drd/lib/core/index.js\");\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! diagram-js/lib/features/selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var diagram_js_lib_features_overlays__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! diagram-js/lib/features/overlays */ \"./node_modules/diagram-js/lib/features/overlays/index.js\");\n/* harmony import */ var _features_definition_properties_viewer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/definition-properties/viewer */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/viewer.js\");\n/* harmony import */ var _features_drill_down__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./features/drill-down */ \"./node_modules/dmn-js-drd/lib/features/drill-down/index.js\");\n/**\n * The code in the area\n * must not be changed.\n *\n * @see http://bpmn.io/license for more information.\n */\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import('dmn-js-shared/lib/base/View).OpenResult} OpenResult\n */\n\n/**\n * @typedef {import('dmn-js-shared/lib/base/View).OpenError} OpenError\n */\n\n/**\n * A viewer for DMN diagrams.\n *\n * Have a look at {@link NavigatedViewer} or {@link Modeler} for bundles that include\n * additional features.\n *\n *\n * ## Extending the Viewer\n *\n * In order to extend the viewer pass extension modules to bootstrap via the\n * `additionalModules` option. An extension module is an object that exposes\n * named services.\n *\n * The following example depicts the integration of a simple\n * logging component that integrates with interaction events:\n *\n *\n * ```javascript\n *\n * // logging component\n * function InteractionLogger(eventBus) {\n * eventBus.on('element.hover', function(event) {\n * console.log()\n * })\n * }\n *\n * InteractionLogger.$inject = [ 'eventBus' ]; // minification save\n *\n * // extension module\n * var extensionModule = {\n * __init__: [ 'interactionLogger' ],\n * interactionLogger: [ 'type', InteractionLogger ]\n * };\n *\n * // extend the viewer\n * var drdViewer = new Viewer({ additionalModules: [ extensionModule ] });\n * drdViewer.importXML(...);\n * ```\n *\n * @param {Object} options configuration options to pass to the viewer\n * @param {DOMElement} [options.container]\n * the container to render the viewer in, defaults to body\n * @param {Array} [options.modules]\n * a list of modules to override the default modules\n * @param {Array} [options.additionalModules]\n * a list of modules to use with the default modules\n */\nfunction Viewer(options) {\n this._container = this._createContainer();\n\n /* */\n\n (0,dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_2__.addProjectLogo)(this._container);\n\n /* */\n\n this._init(this._container, options);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(Viewer, diagram_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n\n/**\n * The saveSVG result.\n *\n * @typedef {Object} SaveSVGResult\n *\n * @property {string} svg\n */\n\n/**\n * Export the currently displayed DMN diagram as\n * an SVG image.\n *\n * @param {Object} [options]\n *\n * @return {Promise}\n */\nViewer.prototype.saveSVG = (0,dmn_js_shared_lib_util_CompatibilityUtils__WEBPACK_IMPORTED_MODULE_1__.wrapForCompatibility)(function (options) {\n var self = this;\n return new Promise(function (resolve) {\n var canvas = self.get('canvas');\n var contentNode = canvas.getActiveLayer(),\n defsNode = (0,min_dom__WEBPACK_IMPORTED_MODULE_5__.query)('defs', canvas._svg);\n var contents = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_6__.innerSVG)(contentNode),\n defs = defsNode && defsNode.outerHTML || '';\n var bbox = contentNode.getBBox();\n\n /* eslint-disable max-len */\n var svg = '\\n' + '\\n' + '\\n' + '' + defs + contents + '';\n /* eslint-enable */\n\n resolve({\n svg\n });\n });\n});\nViewer.prototype.getModules = function () {\n return this._modules;\n};\n\n/**\n * Destroy the viewer instance and remove all its\n * remainders from the document tree.\n */\nViewer.prototype.destroy = function () {\n // diagram destroy\n diagram_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].prototype.destroy.call(this);\n\n // dom detach\n (0,min_dom__WEBPACK_IMPORTED_MODULE_5__.remove)(this._container);\n};\n\n/**\n * Register an event listener\n *\n * Remove a previously added listener via {@link #off(event, callback)}.\n *\n * @param {string} event\n * @param {number} [priority]\n * @param {Function} callback\n * @param {Object} [that]\n */\nViewer.prototype.on = function (event, priority, callback, target) {\n return this.get('eventBus').on(event, priority, callback, target);\n};\n\n/**\n * De-register an event listener\n *\n * @param {string} event\n * @param {Function} callback\n */\nViewer.prototype.off = function (event, callback) {\n this.get('eventBus').off(event, callback);\n};\nViewer.prototype._init = function (container, options) {\n var {\n additionalModules,\n canvas,\n ...additionalOptions\n } = options;\n var baseModules = options.modules || this.getModules(),\n staticModules = [{\n drd: ['value', this]\n }];\n var modules = [...staticModules, ...baseModules, ...(additionalModules || [])];\n var diagramOptions = {\n ...additionalOptions,\n canvas: {\n ...canvas,\n container\n },\n modules\n };\n\n // invoke diagram constructor\n diagram_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].call(this, diagramOptions);\n if (options && options.container) {\n this.attachTo(options.container);\n }\n};\n\n/**\n * Emit an event on the underlying {@link EventBus}\n *\n * @param {string} type\n * @param {Object} event\n *\n * @return {Object} event processing result (if any)\n */\nViewer.prototype._emit = function (type, event) {\n return this.get('eventBus').fire(type, event);\n};\nViewer.prototype._createContainer = function () {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_5__.domify)('
');\n};\n\n/**\n * Open diagram element.\n *\n * @param {ModdleElement} definitions\n * @returns {Promise} Resolves with {OpenResult} when successful\n * or rejects with {OpenError}\n */\nViewer.prototype.open = function (definitions) {\n var self = this;\n return new Promise((resolve, reject) => {\n var err;\n\n // use try/catch to not swallow synchronous exceptions\n // that may be raised during model parsing\n try {\n if (self._definitions) {\n // clear existing rendered diagram\n self.clear();\n }\n\n // update definitions\n self._definitions = definitions;\n\n // perform graphical import\n return (0,_import_Importer__WEBPACK_IMPORTED_MODULE_0__.importDRD)(self, definitions, function (err, warnings) {\n if (err) {\n err.warnings = warnings || [];\n reject(err);\n } else {\n resolve({\n warnings: warnings || []\n });\n }\n });\n } catch (e) {\n err = e;\n }\n if (err) {\n err.warnings = err.warnings || [];\n reject(err);\n } else {\n resolve({\n warnings: []\n });\n }\n });\n};\n\n/**\n * Attach viewer to given parent node.\n *\n * @param {Element} parentNode\n */\nViewer.prototype.attachTo = function (parentNode) {\n if (!parentNode) {\n throw new Error('parentNode required');\n }\n\n // ensure we detach from the\n // previous, old parent\n this.detach();\n var container = this._container;\n parentNode.appendChild(container);\n this._emit('attach', {});\n this.get('canvas').resized();\n};\n\n/**\n * Detach viewer from parent node, if attached.\n */\nViewer.prototype.detach = function () {\n var container = this._container,\n parentNode = container.parentNode;\n if (!parentNode) {\n return;\n }\n this._emit('detach', {});\n parentNode.removeChild(container);\n};\n\n\n\n\n\n\nViewer.prototype._modules = [_core__WEBPACK_IMPORTED_MODULE_7__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_10__[\"default\"], diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_11__[\"default\"], diagram_js_lib_features_overlays__WEBPACK_IMPORTED_MODULE_12__[\"default\"], _features_definition_properties_viewer__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _features_drill_down__WEBPACK_IMPORTED_MODULE_9__[\"default\"]];\n//# sourceMappingURL=Viewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/Viewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/core/index.js": +/*!***************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/core/index.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _draw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../draw */ \"./node_modules/dmn-js-drd/lib/draw/index.js\");\n/* harmony import */ var _import__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../import */ \"./node_modules/dmn-js-drd/lib/import/index.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_draw__WEBPACK_IMPORTED_MODULE_0__[\"default\"], _import__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/core/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/draw/DrdRenderer.js": +/*!*********************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/draw/DrdRenderer.js ***! + \*********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdRenderer)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var ids__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ids */ \"./node_modules/ids/dist/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var diagram_js_lib_draw_BaseRenderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/draw/BaseRenderer */ \"./node_modules/diagram-js/lib/draw/BaseRenderer.js\");\n/* harmony import */ var diagram_js_lib_util_RenderUtil__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! diagram-js/lib/util/RenderUtil */ \"./node_modules/diagram-js/lib/util/RenderUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n\n\n\n\n\nvar RENDERER_IDS = new ids__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\nvar black = 'hsl(225, 10%, 15%)';\n\n/**\n * Renderer for the DRD view. The default colors are configurable.\n * When default label color is not provided, it will take the default\n * stroke color.\n *\n * @example\n * ```javascript\n * // for simple DRD viewer\n * const viewer = new DrdViewer({\n * drdRenderer: {\n * defaultFillColor: '#ffd700',\n * defaultStrokeColor: '#0057b8',\n * defaultLabelColor: '#0057b8'\n * }\n * });\n *\n * // in dmn-js\n * const modeler = new DmnModeler({\n * drd: {\n * drdRenderer: {\n * defaultFillColor: '#ffd700',\n * defaultStrokeColor: '#0057b8',\n * defaultLabelColor: '#0057b8'\n * }\n * }\n * });\n * ```\n */\nfunction DrdRenderer(config, eventBus, pathMap, styles, textRenderer, canvas) {\n diagram_js_lib_draw_BaseRenderer__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(this, eventBus);\n var rendererId = RENDERER_IDS.next();\n var computeStyle = styles.computeStyle;\n var markers = {};\n var defaultFillColor = config && config.defaultFillColor || 'white',\n defaultStrokeColor = config && config.defaultStrokeColor || black,\n defaultLabelColor = config && config.defaultLabelColor;\n function marker(type, fill, stroke) {\n var id = type + '-' + colorEscape(fill) + '-' + colorEscape(stroke) + '-' + rendererId;\n if (!markers[id]) {\n createMarker(id, type, fill, stroke);\n }\n return 'url(#' + id + ')';\n }\n function addMarker(id, options) {\n var attrs = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)({\n strokeWidth: 1,\n strokeLinecap: 'round',\n strokeDasharray: 'none'\n }, options.attrs);\n var ref = options.ref || {\n x: 0,\n y: 0\n };\n var scale = options.scale || 1;\n\n // fix for safari / chrome / firefox bug not correctly\n // resetting stroke dash array\n if (attrs.strokeDasharray === 'none') {\n attrs.strokeDasharray = [10000, 1];\n }\n var marker = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('marker');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(options.element, attrs);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(marker, options.element);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(marker, {\n id: id,\n viewBox: '0 0 20 20',\n refX: ref.x,\n refY: ref.y,\n markerWidth: 20 * scale,\n markerHeight: 20 * scale,\n orient: 'auto'\n });\n var defs = (0,min_dom__WEBPACK_IMPORTED_MODULE_5__.query)('defs', canvas._svg);\n if (!defs) {\n defs = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('defs');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(canvas._svg, defs);\n }\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(defs, marker);\n markers[id] = marker;\n }\n function createMarker(id, type, fill, stroke) {\n if (type === 'association-start') {\n var associationStart = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('path');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(associationStart, {\n d: 'M 11 5 L 1 10 L 11 15'\n });\n addMarker(id, {\n element: associationStart,\n attrs: {\n fill: 'none',\n stroke: stroke,\n strokeWidth: 1.5\n },\n ref: {\n x: 1,\n y: 10\n },\n scale: 0.5\n });\n } else if (type === 'association-end') {\n var associationEnd = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('path');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(associationEnd, {\n d: 'M 1 5 L 11 10 L 1 15'\n });\n addMarker(id, {\n element: associationEnd,\n attrs: {\n fill: 'none',\n stroke: stroke,\n strokeWidth: 1.5\n },\n ref: {\n x: 12,\n y: 10\n },\n scale: 0.5\n });\n } else if (type === 'information-requirement-end') {\n var informationRequirementEnd = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('path');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(informationRequirementEnd, {\n d: 'M 1 5 L 11 10 L 1 15 Z'\n });\n addMarker(id, {\n element: informationRequirementEnd,\n attrs: {\n fill: stroke,\n stroke: 'none'\n },\n ref: {\n x: 11,\n y: 10\n },\n scale: 1\n });\n } else if (type === 'knowledge-requirement-end') {\n var knowledgeRequirementEnd = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('path');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(knowledgeRequirementEnd, {\n d: 'M 1 3 L 11 10 L 1 17'\n });\n addMarker(id, {\n element: knowledgeRequirementEnd,\n attrs: {\n fill: 'none',\n stroke: stroke,\n strokeWidth: 2\n },\n ref: {\n x: 11,\n y: 10\n },\n scale: 0.8\n });\n } else if (type === 'authority-requirement-end') {\n var authorityRequirementEnd = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('circle');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(authorityRequirementEnd, {\n cx: 3,\n cy: 3,\n r: 3\n });\n addMarker(id, {\n element: authorityRequirementEnd,\n attrs: {\n fill: stroke,\n stroke: 'none'\n },\n ref: {\n x: 3,\n y: 3\n },\n scale: 0.9\n });\n }\n }\n function drawRect(p, width, height, r, offset, attrs) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isObject)(offset)) {\n attrs = offset;\n offset = 0;\n }\n offset = offset || 0;\n attrs = computeStyle(attrs, {\n stroke: black,\n strokeWidth: 2,\n fill: 'white'\n });\n var rect = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('rect');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(rect, {\n x: offset,\n y: offset,\n width: width - offset * 2,\n height: height - offset * 2,\n rx: r,\n ry: r\n });\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(rect, attrs);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(p, rect);\n return rect;\n }\n function renderLabel(p, label, options) {\n var text = textRenderer.createText(label || '', options);\n (0,min_dom__WEBPACK_IMPORTED_MODULE_5__.attr)(text, 'class', 'djs-label');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(p, text);\n return text;\n }\n function renderEmbeddedLabel(p, element, align, options) {\n var name = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.getName)(element);\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)({\n box: element,\n align: align,\n padding: 5,\n style: {\n fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)\n }\n }, options);\n return renderLabel(p, name, options);\n }\n function drawPath(p, d, attrs) {\n attrs = computeStyle(attrs, ['no-fill'], {\n strokeWidth: 2,\n stroke: black\n });\n var path = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.create)('path');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(path, {\n d: d\n });\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.attr)(path, attrs);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(p, path);\n return path;\n }\n var handlers = {\n 'dmn:Decision': function (p, element) {\n var rect = drawRect(p, element.width, element.height, 0, {\n stroke: getStrokeColor(element, defaultStrokeColor),\n fill: getFillColor(element, defaultFillColor)\n });\n renderEmbeddedLabel(p, element, 'center-middle');\n return rect;\n },\n 'dmn:KnowledgeSource': function (p, element) {\n var pathData = pathMap.getScaledPath('KNOWLEDGE_SOURCE', {\n xScaleFactor: 1.021,\n yScaleFactor: 1,\n containerWidth: element.width,\n containerHeight: element.height,\n position: {\n mx: 0.0,\n my: 0.075\n }\n });\n var knowledgeSource = drawPath(p, pathData, {\n strokeWidth: 2,\n fill: getFillColor(element, defaultFillColor),\n stroke: getStrokeColor(element, defaultStrokeColor)\n });\n renderEmbeddedLabel(p, element, 'center-middle');\n return knowledgeSource;\n },\n 'dmn:BusinessKnowledgeModel': function (p, element) {\n var pathData = pathMap.getScaledPath('BUSINESS_KNOWLEDGE_MODEL', {\n xScaleFactor: 1,\n yScaleFactor: 1,\n containerWidth: element.width,\n containerHeight: element.height,\n position: {\n mx: 0.0,\n my: 0.3\n }\n });\n var businessKnowledge = drawPath(p, pathData, {\n strokeWidth: 2,\n fill: getFillColor(element, defaultFillColor),\n stroke: getStrokeColor(element, defaultStrokeColor)\n });\n renderEmbeddedLabel(p, element, 'center-middle');\n return businessKnowledge;\n },\n 'dmn:InputData': function (p, element) {\n var rect = drawRect(p, element.width, element.height, 22, {\n stroke: getStrokeColor(element, defaultStrokeColor),\n fill: getFillColor(element, defaultFillColor)\n });\n renderEmbeddedLabel(p, element, 'center-middle');\n return rect;\n },\n 'dmn:TextAnnotation': function (p, element) {\n var style = {\n 'fill': 'none',\n 'stroke': 'none'\n };\n var textElement = drawRect(p, element.width, element.height, 0, 0, style);\n var textPathData = pathMap.getScaledPath('TEXT_ANNOTATION', {\n xScaleFactor: 1,\n yScaleFactor: 1,\n containerWidth: element.width,\n containerHeight: element.height,\n position: {\n mx: 0.0,\n my: 0.0\n }\n });\n drawPath(p, textPathData, {\n stroke: getStrokeColor(element, defaultStrokeColor)\n });\n var text = getSemantic(element).text || '';\n renderLabel(p, text, {\n style: {\n fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)\n },\n box: element,\n align: 'left-top',\n padding: 5\n });\n return textElement;\n },\n 'dmn:Association': function (p, element) {\n var semantic = getSemantic(element);\n var fill = getFillColor(element, defaultFillColor),\n stroke = getStrokeColor(element, defaultStrokeColor),\n attrs = {\n stroke: stroke,\n strokeDasharray: '0.5, 5',\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n fill: 'none'\n };\n if (semantic.associationDirection === 'One' || semantic.associationDirection === 'Both') {\n attrs.markerEnd = marker('association-end', fill, stroke);\n }\n if (semantic.associationDirection === 'Both') {\n attrs.markerStart = marker('association-start', fill, stroke);\n }\n return drawLine(p, element.waypoints, attrs);\n },\n 'dmn:InformationRequirement': function (p, element) {\n var fill = getFillColor(element, defaultFillColor),\n stroke = getStrokeColor(element, defaultStrokeColor),\n attrs = {\n stroke: stroke,\n strokeWidth: 1,\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n markerEnd: marker('information-requirement-end', fill, stroke)\n };\n return drawLine(p, element.waypoints, attrs);\n },\n 'dmn:KnowledgeRequirement': function (p, element) {\n var fill = getFillColor(element, defaultFillColor),\n stroke = getStrokeColor(element, defaultStrokeColor);\n var attrs = {\n stroke: stroke,\n strokeWidth: 1,\n strokeDasharray: 5,\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n markerEnd: marker('knowledge-requirement-end', fill, stroke)\n };\n return drawLine(p, element.waypoints, attrs);\n },\n 'dmn:AuthorityRequirement': function (p, element) {\n var fill = getFillColor(element, defaultFillColor),\n stroke = getStrokeColor(element, defaultStrokeColor),\n attrs = {\n stroke: stroke,\n strokeWidth: 1.5,\n strokeDasharray: 5,\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n markerEnd: marker('authority-requirement-end', fill, stroke)\n };\n return drawLine(p, element.waypoints, attrs);\n }\n };\n\n // draw shape and connection //////////////////\n\n function drawShape(parent, element) {\n var h = handlers[element.type];\n if (!h) {\n return diagram_js_lib_draw_BaseRenderer__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.drawShape.apply(this, [parent, element]);\n } else {\n return h(parent, element);\n }\n }\n function drawConnection(parent, element) {\n var type = element.type;\n var h = handlers[type];\n if (!h) {\n return diagram_js_lib_draw_BaseRenderer__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.drawConnection.apply(this, [parent, element]);\n } else {\n return h(parent, element);\n }\n }\n function drawLine(p, waypoints, attrs) {\n attrs = computeStyle(attrs, ['no-fill'], {\n stroke: black,\n strokeWidth: 2,\n fill: 'none'\n });\n var line = (0,diagram_js_lib_util_RenderUtil__WEBPACK_IMPORTED_MODULE_6__.createLine)(waypoints, attrs);\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_4__.append)(p, line);\n return line;\n }\n this.canRender = function (element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:DMNElement') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:InformationRequirement') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:KnowledgeRequirement') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:AuthorityRequirement');\n };\n this.drawShape = drawShape;\n this.drawConnection = drawConnection;\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(DrdRenderer, diagram_js_lib_draw_BaseRenderer__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\nDrdRenderer.$inject = ['config.drdRenderer', 'eventBus', 'pathMap', 'styles', 'textRenderer', 'canvas'];\n\n// helper functions //////////////////////\n\nfunction getSemantic(element) {\n return element.businessObject;\n}\nfunction colorEscape(str) {\n // only allow characters and numbers\n return str.replace(/[^0-9a-zA-z]+/g, '_');\n}\nfunction getStrokeColor(element, defaultColor) {\n return defaultColor;\n}\nfunction getFillColor(element, defaultColor) {\n return defaultColor;\n}\nfunction getLabelColor(element, defaultColor, defaultStrokeColor) {\n return defaultColor || getStrokeColor(element, defaultStrokeColor);\n}\n//# sourceMappingURL=DrdRenderer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/draw/DrdRenderer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/draw/PathMap.js": +/*!*****************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/draw/PathMap.js ***! + \*****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PathMap)\n/* harmony export */ });\n/* eslint-disable max-len */\n\n/**\n * Map containing SVG paths needed by BpmnRenderer.\n */\n\nfunction PathMap() {\n /**\n * Contains a map of path elements\n *\n *

Path definition

\n * A parameterized path is defined like this:\n *
\n   * 'GATEWAY_PARALLEL': {\n   *   d: 'm {mx},{my} {e.x0},0 0,{e.x1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} ' +\n          '-{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z',\n   *   height: 17.5,\n   *   width:  17.5,\n   *   heightElements: [2.5, 7.5],\n   *   widthElements: [2.5, 7.5]\n   * }\n   * 
\n *

It's important to specify a correct height and width for the path as the scaling\n * is based on the ratio between the specified height and width in this object and the\n * height and width that is set as scale target (Note x,y coordinates will be scaled with\n * individual ratios).

\n *

The 'heightElements' and 'widthElements' array must contain the values that will be scaled.\n * The scaling is based on the computed ratios.\n * Coordinates on the y axis should be in the heightElement's array, they will be scaled using\n * the computed ratio coefficient.\n * In the parameterized path the scaled values can be accessed through the 'e' object in {} brackets.\n *

    \n *
  • The values for the y axis can be accessed in the path string using {e.y0}, {e.y1}, ....
  • \n *
  • The values for the x axis can be accessed in the path string using {e.x0}, {e.x1}, ....
  • \n *
\n * The numbers x0, x1 respectively y0, y1, ... map to the corresponding array index.\n *

\n m1,1\n l 0,55.3\n c 29.8,19.7 48.4,-4.2 67.2,-6.7\n c 12.2,-2.3 19.8,1.6 30.8,6.2\n l 0,-54.6\n z\n */\n this.pathMap = {\n 'KNOWLEDGE_SOURCE': {\n d: 'm {mx},{my} ' + 'l 0,{e.y0} ' + 'c {e.x0},{e.y1} {e.x1},-{e.y2} {e.x2},-{e.y3} ' + 'c {e.x3},-{e.y4} {e.x4},{e.y5} {e.x5},{e.y6} ' + 'l 0,-{e.y7}z',\n width: 100,\n height: 65,\n widthElements: [29.8, 48.4, 67.2, 12.2, 19.8, 30.8],\n heightElements: [55.3, 19.7, 4.2, 6.7, 2.3, 1.6, 6.2, 54.6]\n },\n 'BUSINESS_KNOWLEDGE_MODEL': {\n d: 'm {mx},{my} l {e.x0},-{e.y0} l {e.x1},0 l 0,{e.y1} l -{e.x2},{e.y2} l -{e.x3},0z',\n width: 125,\n height: 45,\n widthElements: [13.8, 109.2, 13.8, 109.1],\n heightElements: [13.2, 29.8, 13.2]\n },\n 'TEXT_ANNOTATION': {\n d: 'm {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0',\n width: 10,\n height: 30,\n widthElements: [10],\n heightElements: [30]\n }\n };\n this.getRawPath = function getRawPath(pathId) {\n return this.pathMap[pathId].d;\n };\n\n /**\n * Scales the path to the given height and width.\n *

Use case

\n *

Use case is to scale the content of elements (event, gateways) based\n * on the element bounding box's size.\n *

\n *

Why not transform

\n *

Scaling a path with transform() will also scale the stroke and IE does not support\n * the option 'non-scaling-stroke' to prevent this.\n * Also there are use cases where only some parts of a path should be\n * scaled.

\n *\n * @param {string} pathId The ID of the path.\n * @param {Object} param

\n * Example param object scales the path to 60% size of the container (data.width, data.height).\n *

\n   *   {\n   *     xScaleFactor: 0.6,\n   *     yScaleFactor:0.6,\n   *     containerWidth: data.width,\n   *     containerHeight: data.height,\n   *     position: {\n   *       mx: 0.46,\n   *       my: 0.2,\n   *     }\n   *   }\n   *   
\n *
    \n *
  • targetpathwidth = xScaleFactor * containerWidth
  • \n *
  • targetpathheight = yScaleFactor * containerHeight
  • \n *
  • Position is used to set the starting coordinate of the path. M is computed:\n *
      \n *
    • position.x * containerWidth
    • \n *
    • position.y * containerHeight
    • \n *
    \n * Center of the container
     position: {\n   *       mx: 0.5,\n   *       my: 0.5,\n   *     }
    \n * Upper left corner of the container\n *
     position: {\n   *       mx: 0.0,\n   *       my: 0.0,\n   *     }
    \n *
  • \n *
\n *

\n *\n */\n this.getScaledPath = function getScaledPath(pathId, param) {\n var rawPath = this.pathMap[pathId];\n\n // positioning\n // compute the start point of the path\n var mx, my;\n if (param.abspos) {\n mx = param.abspos.x;\n my = param.abspos.y;\n } else {\n mx = param.containerWidth * param.position.mx;\n my = param.containerHeight * param.position.my;\n }\n var coordinates = {}; // map for the scaled coordinates\n if (param.position) {\n // path\n var heightRatio = param.containerHeight / rawPath.height * param.yScaleFactor;\n var widthRatio = param.containerWidth / rawPath.width * param.xScaleFactor;\n\n // Apply height ratio\n for (var heightIndex = 0; heightIndex < rawPath.heightElements.length; heightIndex++) {\n coordinates['y' + heightIndex] = rawPath.heightElements[heightIndex] * heightRatio;\n }\n\n // Apply width ratio\n for (var widthIndex = 0; widthIndex < rawPath.widthElements.length; widthIndex++) {\n coordinates['x' + widthIndex] = rawPath.widthElements[widthIndex] * widthRatio;\n }\n }\n\n // Apply value to raw path\n var path = format(rawPath.d, {\n mx: mx,\n my: my,\n e: coordinates\n });\n return path;\n };\n}\n\n// helpers //////////////////////\n\n// copied and adjusted from https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js\nvar tokenRegex = /\\{([^{}]+)\\}/g,\n objNotationRegex = /(?:(?:^|\\.)(.+?)(?=\\[|\\.|$|\\()|\\[('|\")(.+?)\\2\\])(\\(\\))?/g; // matches .xxxxx or [\"xxxxx\"] to run over object properties\n\nfunction replacer(all, key, obj) {\n var res = obj;\n key.replace(objNotationRegex, function (all, name, quote, quotedName, isFunc) {\n name = name || quotedName;\n if (res) {\n if (name in res) {\n res = res[name];\n }\n typeof res == 'function' && isFunc && (res = res());\n }\n });\n res = (res == null || res == obj ? all : res) + '';\n return res;\n}\nfunction format(str, obj) {\n return String(str).replace(tokenRegex, function (all, key) {\n return replacer(all, key, obj);\n });\n}\n//# sourceMappingURL=PathMap.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/draw/PathMap.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/draw/TextRenderer.js": +/*!**********************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/draw/TextRenderer.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TextRenderer)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var diagram_js_lib_util_Text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/util/Text */ \"./node_modules/diagram-js/lib/util/Text.js\");\n\n\nvar DEFAULT_FONT_SIZE = 12;\nvar LINE_HEIGHT_RATIO = 1.2;\nvar MIN_TEXT_ANNOTATION_HEIGHT = 30;\nfunction TextRenderer(config) {\n var defaultStyle = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({\n fontFamily: 'Arial, sans-serif',\n fontSize: DEFAULT_FONT_SIZE,\n fontWeight: 'normal',\n lineHeight: LINE_HEIGHT_RATIO\n }, config && config.defaultStyle || {});\n var fontSize = parseInt(defaultStyle.fontSize, 10) - 1;\n var externalStyle = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, defaultStyle, {\n fontSize: fontSize\n }, config && config.externalStyle || {});\n var textUtil = new diagram_js_lib_util_Text__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n style: defaultStyle\n });\n\n /**\n * Get the new bounds of an externally rendered,\n * layouted label.\n *\n * @param {Bounds} bounds\n * @param {string} text\n *\n * @return {Bounds}\n */\n this.getExternalLabelBounds = function (bounds, text) {\n var layoutedDimensions = textUtil.getDimensions(text, {\n box: {\n width: 90,\n height: 30,\n x: bounds.width / 2 + bounds.x,\n y: bounds.height / 2 + bounds.y\n },\n style: externalStyle\n });\n\n // resize label shape to fit label text\n return {\n x: Math.round(bounds.x + bounds.width / 2 - layoutedDimensions.width / 2),\n y: Math.round(bounds.y),\n width: Math.ceil(layoutedDimensions.width),\n height: Math.ceil(layoutedDimensions.height)\n };\n };\n\n /**\n * Get the new bounds of text annotation.\n *\n * @param {Bounds} bounds\n * @param {string} text\n *\n * @return {Bounds}\n */\n this.getTextAnnotationBounds = function (bounds, text) {\n var layoutedDimensions = textUtil.getDimensions(text, {\n box: bounds,\n style: defaultStyle,\n align: 'left-top',\n padding: 5\n });\n return {\n x: bounds.x,\n y: bounds.y,\n width: bounds.width,\n height: Math.max(MIN_TEXT_ANNOTATION_HEIGHT, Math.round(layoutedDimensions.height))\n };\n };\n\n /**\n * Create a layouted text element.\n *\n * @param {string} text\n * @param {Object} [options]\n *\n * @return {SVGElement} rendered text\n */\n this.createText = function (text, options) {\n return textUtil.createText(text, options || {});\n };\n\n /**\n * Get default text style.\n */\n this.getDefaultStyle = function () {\n return defaultStyle;\n };\n\n /**\n * Get the external text style.\n */\n this.getExternalStyle = function () {\n return externalStyle;\n };\n}\nTextRenderer.$inject = ['config.textRenderer'];\n//# sourceMappingURL=TextRenderer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/draw/TextRenderer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/draw/index.js": +/*!***************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/draw/index.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DrdRenderer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdRenderer */ \"./node_modules/dmn-js-drd/lib/draw/DrdRenderer.js\");\n/* harmony import */ var _TextRenderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TextRenderer */ \"./node_modules/dmn-js-drd/lib/draw/TextRenderer.js\");\n/* harmony import */ var _PathMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PathMap */ \"./node_modules/dmn-js-drd/lib/draw/PathMap.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['drdRenderer'],\n drdRenderer: ['type', _DrdRenderer__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n textRenderer: ['type', _TextRenderer__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n pathMap: ['type', _PathMap__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/draw/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlace.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlace.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AutoPlace)\n/* harmony export */ });\n/* harmony import */ var _DmnAutoPlaceUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DmnAutoPlaceUtil */ \"./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlaceUtil.js\");\n\n\n/**\r\n * DMN auto-place behavior.\r\n *\r\n * @param {EventBus} eventBus\r\n */\nfunction AutoPlace(eventBus) {\n eventBus.on('autoPlace', function (context) {\n var shape = context.shape,\n source = context.source;\n return (0,_DmnAutoPlaceUtil__WEBPACK_IMPORTED_MODULE_0__.getNewShapePosition)(source, shape);\n });\n}\nAutoPlace.$inject = ['eventBus'];\n//# sourceMappingURL=DmnAutoPlace.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlace.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlaceUtil.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlaceUtil.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getNewShapePosition: () => (/* binding */ getNewShapePosition)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_features_auto_place_AutoPlaceUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/features/auto-place/AutoPlaceUtil */ \"./node_modules/diagram-js/lib/features/auto-place/AutoPlaceUtil.js\");\n/* harmony import */ var diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var _modeling_ElementFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modeling/ElementFactory */ \"./node_modules/dmn-js-drd/lib/features/modeling/ElementFactory.js\");\n\n\n\n\nvar DIRECTION_LEFT = 'left',\n DIRECTION_RIGHT = 'right';\nvar DRG_ELEMENT_MARGIN = 60,\n DRG_ELEMENT_ROW_SIZE = _modeling_ElementFactory__WEBPACK_IMPORTED_MODULE_1__.DECISION_SIZE.width;\nfunction getNewShapePosition(source, element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:TextAnnotation')) {\n return getTextAnnotationPosition(source, element);\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:DRGElement')) {\n return getDRGElementPosition(source, element);\n }\n}\n\n/**\r\n * Always try to place text annotations top right of source.\r\n */\nfunction getTextAnnotationPosition(source, element) {\n var sourceTrbl = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.asTRBL)(source);\n var position = {\n x: sourceTrbl.right + element.width / 2,\n y: sourceTrbl.top - 50 - element.height / 2\n };\n var nextPositionDirection = {\n y: {\n margin: -30,\n minDistance: 20\n }\n };\n return (0,diagram_js_lib_features_auto_place_AutoPlaceUtil__WEBPACK_IMPORTED_MODULE_3__.findFreePosition)(source, element, position, (0,diagram_js_lib_features_auto_place_AutoPlaceUtil__WEBPACK_IMPORTED_MODULE_3__.generateGetNextPosition)(nextPositionDirection));\n}\n\n/**\r\n * Get position for DRG elements.\r\n *\r\n * @param {djs.model.Shape} source\r\n * @param {djs.model.Shape} element\r\n *\r\n * @returns {Point}\r\n */\nfunction getDRGElementPosition(source, element) {\n var sourceTrbl = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.asTRBL)(source),\n sourceMid = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(source);\n function getWeight(connection) {\n return connection.target === source ? 1 : -1;\n }\n var verticalDistance = (0,diagram_js_lib_features_auto_place_AutoPlaceUtil__WEBPACK_IMPORTED_MODULE_3__.getConnectedDistance)(source, {\n defaultDistance: 180,\n direction: 's',\n getWeight: getWeight,\n filter: filter,\n reference: 'center'\n });\n var position = {\n x: sourceMid.x,\n y: sourceTrbl.bottom + verticalDistance\n };\n return (0,diagram_js_lib_features_auto_place_AutoPlaceUtil__WEBPACK_IMPORTED_MODULE_3__.findFreePosition)(source, element, position, generateGetNextDRGElementPosition(source));\n}\n\n// helpers //////////\n\nfunction filter(connection) {\n return !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:Association');\n}\nfunction getHorizontalDistance(a, b) {\n return Math.abs(b.x - a.x);\n}\nfunction generateGetNextDRGElementPosition(source) {\n var sourceMid = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(source);\n var connectedAtPositionLeft, connectedAtPositionRight;\n return function (element, previousPosition, connectedAtPreviousPosition) {\n var direction;\n\n // (1) get direction\n if (!connectedAtPositionLeft) {\n connectedAtPositionLeft = connectedAtPreviousPosition;\n connectedAtPositionRight = connectedAtPreviousPosition;\n if ((0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(connectedAtPreviousPosition).x - sourceMid.x > 0) {\n direction = DIRECTION_LEFT;\n } else {\n direction = DIRECTION_RIGHT;\n }\n } else {\n if (previousPosition.x < sourceMid.x) {\n connectedAtPositionLeft = connectedAtPreviousPosition;\n } else {\n connectedAtPositionRight = connectedAtPreviousPosition;\n }\n if (getHorizontalDistance(sourceMid, (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(connectedAtPositionLeft)) < getHorizontalDistance(sourceMid, (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(connectedAtPositionRight))) {\n direction = DIRECTION_LEFT;\n } else {\n direction = DIRECTION_RIGHT;\n }\n }\n\n // (2) get next position\n if (direction === DIRECTION_LEFT) {\n return {\n x: Math.min((0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(connectedAtPositionLeft).x - DRG_ELEMENT_ROW_SIZE - DRG_ELEMENT_MARGIN, (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.asTRBL)(connectedAtPositionLeft).left - DRG_ELEMENT_MARGIN - element.width / 2),\n y: previousPosition.y\n };\n } else {\n return {\n x: Math.max((0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(connectedAtPositionRight).x + DRG_ELEMENT_ROW_SIZE + DRG_ELEMENT_MARGIN, (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.asTRBL)(connectedAtPositionRight).right + DRG_ELEMENT_MARGIN + element.width / 2),\n y: previousPosition.y\n };\n }\n };\n}\n//# sourceMappingURL=DmnAutoPlaceUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlaceUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/auto-place/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/auto-place/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_auto_place__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/auto-place */ \"./node_modules/diagram-js/lib/features/auto-place/index.js\");\n/* harmony import */ var _DmnAutoPlace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DmnAutoPlace */ \"./node_modules/dmn-js-drd/lib/features/auto-place/DmnAutoPlace.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_auto_place__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['dmnAutoPlace'],\n dmnAutoPlace: ['type', _DmnAutoPlace__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/auto-place/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/context-pad/ContextPadProvider.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/context-pad/ContextPadProvider.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContextPadProvider)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_util_Mouse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/util/Mouse */ \"./node_modules/diagram-js/lib/util/Mouse.js\");\n\n\n\n\n/**\n* A provider for DMN elements context pad\n*/\nfunction ContextPadProvider(eventBus, contextPad, modeling, elementFactory, connect, create, rules, popupMenu, canvas, translate, config, injector) {\n config = config || {};\n contextPad.registerProvider(this);\n this._contextPad = contextPad;\n this._modeling = modeling;\n this._elementFactory = elementFactory;\n this._connect = connect;\n this._create = create;\n this._rules = rules;\n this._popupMenu = popupMenu;\n this._canvas = canvas;\n this._translate = translate;\n if (config.autoPlace !== false) {\n this._autoPlace = injector.get('autoPlace', false);\n }\n eventBus.on('create.end', 250, function (event) {\n var shape = event.context.shape;\n if (!(0,diagram_js_lib_util_Mouse__WEBPACK_IMPORTED_MODULE_1__.hasPrimaryModifier)(event)) {\n return;\n }\n var entries = contextPad.getEntries(shape);\n if (entries.replace) {\n entries.replace.action.click(event, shape);\n }\n });\n}\nContextPadProvider.$inject = ['eventBus', 'contextPad', 'modeling', 'elementFactory', 'connect', 'create', 'rules', 'popupMenu', 'canvas', 'translate', 'config.contextPad', 'injector'];\nContextPadProvider.prototype.getContextPadEntries = function (element) {\n var modeling = this._modeling,\n elementFactory = this._elementFactory,\n connect = this._connect,\n create = this._create,\n popupMenu = this._popupMenu,\n contextPad = this._contextPad,\n rules = this._rules,\n translate = this._translate,\n autoPlace = this._autoPlace;\n var actions = {};\n if (element.type === 'label') {\n return actions;\n }\n var businessObject = element.businessObject;\n function startConnect(event, element, autoActivate) {\n connect.start(event, element, autoActivate);\n }\n function removeElement(e) {\n modeling.removeElements([element]);\n }\n function getReplaceMenuPosition(element) {\n var Y_OFFSET = 5;\n var pad = contextPad.getPad(element).html;\n var padRect = pad.getBoundingClientRect();\n var pos = {\n x: padRect.left,\n y: padRect.bottom + Y_OFFSET\n };\n return pos;\n }\n\n /**\n * Create an append action\n *\n * @param {string} type\n * @param {string} className\n * @param {string} title\n * @param {Object} [options]\n *\n * @return {Object} descriptor\n */\n function appendAction(type, className, title, options) {\n function appendStart(event, element) {\n var shape = elementFactory.createShape((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({\n type: type\n }, options));\n create.start(event, shape, {\n source: element,\n hints: {\n connectionTarget: element\n }\n });\n }\n var append = autoPlace ? function (event, element) {\n var shape = elementFactory.createShape((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({\n type: type\n }, options));\n autoPlace.append(element, shape, {\n connectionTarget: element\n });\n } : appendStart;\n return {\n group: 'model',\n className: className,\n title: title,\n action: {\n dragstart: appendStart,\n click: append\n }\n };\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:Decision')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'append.decision': appendAction('dmn:Decision', 'dmn-icon-decision', translate('Append decision'))\n });\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(businessObject, ['dmn:BusinessKnowledgeModel', 'dmn:Decision', 'dmn:KnowledgeSource'])) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'append.knowledge-source': appendAction('dmn:KnowledgeSource', 'dmn-icon-knowledge-source', translate('Append knowledge source'))\n });\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(businessObject, ['dmn:BusinessKnowledgeModel', 'dmn:Decision'])) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'append.business-knowledge-model': appendAction('dmn:BusinessKnowledgeModel', 'dmn-icon-business-knowledge', translate('Append business knowledge model'))\n });\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(businessObject, ['dmn:Decision', 'dmn:KnowledgeSource'])) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'append.input-data': appendAction('dmn:InputData', 'dmn-icon-input-data', translate('Append input data'))\n });\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:DRGElement')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'append.text-annotation': appendAction('dmn:TextAnnotation', 'dmn-icon-text-annotation', translate('Add text annotation')),\n 'connect': {\n group: 'connect',\n className: 'dmn-icon-connection-multi',\n title: translate('Connect to other element'),\n action: {\n click: startConnect,\n dragstart: startConnect\n }\n }\n });\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:TextAnnotation')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'connect': {\n group: 'connect',\n className: 'dmn-icon-connection-multi',\n title: translate('Connect to other element'),\n action: {\n click: startConnect,\n dragstart: startConnect\n }\n }\n });\n }\n if (!popupMenu.isEmpty(element, 'dmn-replace')) {\n // Replace menu entry\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'replace': {\n group: 'edit',\n className: 'dmn-icon-screw-wrench',\n title: translate('Change type'),\n action: {\n click: function (event, element) {\n var position = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(getReplaceMenuPosition(element), {\n cursor: {\n x: event.x,\n y: event.y\n }\n });\n popupMenu.open(element, 'dmn-replace', position);\n }\n }\n }\n });\n }\n\n // delete element entry, only show if allowed by rules\n var deleteAllowed = rules.allowed('elements.delete', {\n elements: [element]\n });\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isArray)(deleteAllowed)) {\n // was the element returned as a deletion candidate?\n deleteAllowed = deleteAllowed[0] === element;\n }\n if (deleteAllowed) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {\n 'delete': {\n group: 'edit',\n className: 'dmn-icon-trash',\n title: translate('Delete'),\n action: {\n click: removeElement\n }\n }\n });\n }\n return actions;\n};\n//# sourceMappingURL=ContextPadProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/context-pad/ContextPadProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/context-pad/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/context-pad/index.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var diagram_js_lib_features_context_pad__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/features/context-pad */ \"./node_modules/diagram-js/lib/features/context-pad/index.js\");\n/* harmony import */ var diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! diagram-js/lib/features/selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var diagram_js_lib_features_connect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! diagram-js/lib/features/connect */ \"./node_modules/diagram-js/lib/features/connect/index.js\");\n/* harmony import */ var diagram_js_lib_features_create__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! diagram-js/lib/features/create */ \"./node_modules/diagram-js/lib/features/create/index.js\");\n/* harmony import */ var _popup_menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../popup-menu */ \"./node_modules/dmn-js-drd/lib/features/popup-menu/index.js\");\n/* harmony import */ var _ContextPadProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextPadProvider */ \"./node_modules/dmn-js-drd/lib/features/context-pad/ContextPadProvider.js\");\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_features_context_pad__WEBPACK_IMPORTED_MODULE_3__[\"default\"], diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_4__[\"default\"], diagram_js_lib_features_connect__WEBPACK_IMPORTED_MODULE_5__[\"default\"], diagram_js_lib_features_create__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _popup_menu__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['contextPadProvider'],\n contextPadProvider: ['type', _ContextPadProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/context-pad/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesEdit.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesEdit.js ***! + \************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DefinitionIdEdit)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_IdsUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/IdsUtil */ \"./node_modules/dmn-js-shared/lib/util/IdsUtil.js\");\n\nvar DEBOUNCE_DELAY = 300;\n\n\n\nfunction DefinitionIdEdit(eventBus, modeling, canvas, definitionPropertiesView, translate) {\n this._eventBus = eventBus;\n this._modeling = modeling;\n this._canvas = canvas;\n this._definitionPropertiesView = definitionPropertiesView;\n this._translate = translate;\n eventBus.on('definitionIdView.create', function (event) {\n this._container = event.html;\n var nameElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.dmn-definitions-name', this._container),\n idElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.dmn-definitions-id', this._container);\n this._setup(nameElement, 'name');\n this._setup(idElement, 'id');\n }, this);\n}\nDefinitionIdEdit.$inject = ['eventBus', 'modeling', 'canvas', 'definitionPropertiesView', 'translate'];\nDefinitionIdEdit.prototype.update = function (type, newValue) {\n var element = this._canvas.getRootElement();\n var newProperties = {};\n newProperties[type] = newValue;\n if (type === 'id') {\n var errorMessage = (0,dmn_js_shared_lib_util_IdsUtil__WEBPACK_IMPORTED_MODULE_1__.validateId)((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBusinessObject)(element), newValue);\n if (errorMessage) {\n this._addErrorMessage(errorMessage);\n return;\n }\n this._clearErrorMessage();\n }\n this._modeling.updateProperties(element, newProperties);\n};\nDefinitionIdEdit.prototype._setup = function (node, type) {\n var self = this;\n node.setAttribute('contenteditable', true);\n node.addEventListener('input', (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.debounce)(function (evt) {\n var value = evt.target.value || evt.target.textContent;\n self.update(type, value.trim());\n }, DEBOUNCE_DELAY));\n node.addEventListener('keydown', function (evt) {\n if (evt.keyCode === 13) {\n node.blur();\n window.getSelection().removeAllRanges();\n }\n });\n node.addEventListener('blur', function () {\n self._clearErrorMessage();\n self._definitionPropertiesView.update();\n });\n};\nDefinitionIdEdit.prototype._addErrorMessage = function (errorMessage) {\n const errorHTML = '' + this._translate(errorMessage) + '';\n var idElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.dmn-definitions-id', this._container);\n\n // clear previous error message\n this._clearErrorMessage();\n\n // add current error message\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.classes)(idElement).add('dmn-definitions-error');\n idElement.parentElement.appendChild((0,min_dom__WEBPACK_IMPORTED_MODULE_2__.domify)(errorHTML));\n};\nDefinitionIdEdit.prototype._clearErrorMessage = function () {\n var idElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.dmn-definitions-id', this._container);\n if ((0,min_dom__WEBPACK_IMPORTED_MODULE_2__.classes)(idElement).has('dmn-definitions-error')) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.classes)(idElement).remove('dmn-definitions-error');\n const errorLabel = (0,min_dom__WEBPACK_IMPORTED_MODULE_2__.query)('.dmn-definitions-error-message', this._container);\n idElement.parentNode.removeChild(errorLabel);\n }\n};\n//# sourceMappingURL=DefinitionPropertiesEdit.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesEdit.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesView.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesView.js ***! + \************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DefinitionPropertiesView)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\nfunction DefinitionPropertiesView(eventBus, canvas, translate) {\n this._eventBus = eventBus;\n this._canvas = canvas;\n this._translate = translate;\n eventBus.on('diagram.init', function () {\n this._init();\n }, this);\n eventBus.on('import.done', function (event) {\n if (!event.error) {\n this.update();\n }\n }, this);\n\n /* markup definition */\n\n this.HTML_MARKUP = '
' + '
' + '
' + '
' + '
' + '
';\n}\nDefinitionPropertiesView.$inject = ['eventBus', 'canvas', 'translate'];\n\n/**\n * Initialize\n */\nDefinitionPropertiesView.prototype._init = function () {\n var canvas = this._canvas,\n eventBus = this._eventBus;\n var parent = canvas.getContainer(),\n container = this._container = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.domify)(this.HTML_MARKUP);\n parent.appendChild(container);\n this.nameElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('.dmn-definitions-name', this._container);\n this.idElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.query)('.dmn-definitions-id', this._container);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.delegate.bind(container, '.dmn-definitions-name, .dmn-definitions-id', 'mousedown', function (event) {\n event.stopPropagation();\n });\n eventBus.fire('definitionIdView.create', {\n html: container\n });\n};\nDefinitionPropertiesView.prototype.update = function () {\n var businessObject = this._canvas.getRootElement().businessObject;\n this.nameElement.textContent = businessObject.name;\n this.idElement.textContent = businessObject.id;\n};\n//# sourceMappingURL=DefinitionPropertiesView.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesView.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/definition-properties/PaletteAdapter.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/definition-properties/PaletteAdapter.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PaletteAdapter)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\nfunction PaletteAdapter(eventBus, canvas) {\n function toggleMarker(cls, on) {\n var container = canvas.getContainer();\n (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.classes)(container).toggle(cls, on);\n }\n eventBus.on('palette.create', function () {\n toggleMarker('with-palette', true);\n });\n eventBus.on('palette.changed', function (event) {\n toggleMarker('with-palette-two-column', event.twoColumn);\n });\n}\nPaletteAdapter.$inject = ['eventBus', 'canvas'];\n//# sourceMappingURL=PaletteAdapter.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/definition-properties/PaletteAdapter.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/definition-properties/modeler.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/definition-properties/modeler.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _viewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./viewer */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/viewer.js\");\n/* harmony import */ var _DefinitionPropertiesEdit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefinitionPropertiesEdit */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesEdit.js\");\n/* harmony import */ var _PaletteAdapter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PaletteAdapter */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/PaletteAdapter.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_viewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['definitionPropertiesEdit', 'definitionPropertiesPaletteAdapter'],\n definitionPropertiesEdit: ['type', _DefinitionPropertiesEdit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n definitionPropertiesPaletteAdapter: ['type', _PaletteAdapter__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=modeler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/definition-properties/modeler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/definition-properties/viewer.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/definition-properties/viewer.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DefinitionPropertiesView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DefinitionPropertiesView */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/DefinitionPropertiesView.js\");\n/* harmony import */ var _PaletteAdapter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaletteAdapter */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/PaletteAdapter.js\");\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['definitionPropertiesView', 'definitionPropertiesPaletteAdapter'],\n definitionPropertiesView: ['type', _DefinitionPropertiesView__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n definitionPropertiesPaletteAdapter: ['type', _PaletteAdapter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=viewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/definition-properties/viewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/distribute-elements/DrdDistributeElements.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/distribute-elements/DrdDistributeElements.js ***! + \*******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdDistributeElements)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n/**\n * Registers element exclude filters for elements that\n * currently do not support distribution.\n */\nfunction DrdDistributeElements(distributeElements) {\n distributeElements.registerFilter(function (elements) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(elements, function (element) {\n var cannotDistribute = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(element, ['dmn:AuthorityRequirement', 'dmn:InformationRequirement', 'dmn:KnowledgeRequirement', 'dmn:Association', 'dmn:TextAnnotation']);\n return !(element.labelTarget || cannotDistribute);\n });\n });\n}\nDrdDistributeElements.$inject = ['distributeElements'];\n//# sourceMappingURL=DrdDistributeElements.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/distribute-elements/DrdDistributeElements.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/distribute-elements/index.js": +/*!***************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/distribute-elements/index.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_distribute_elements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/distribute-elements */ \"./node_modules/diagram-js/lib/features/distribute-elements/index.js\");\n/* harmony import */ var _DrdDistributeElements__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdDistributeElements */ \"./node_modules/dmn-js-drd/lib/features/distribute-elements/DrdDistributeElements.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_distribute_elements__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['drdDistributeElements'],\n drdDistributeElements: ['type', _DrdDistributeElements__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/distribute-elements/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/drill-down/DrillDown.js": +/*!**********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/drill-down/DrillDown.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrillDown)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\nvar PROVIDERS = [{\n className: 'dmn-icon-decision-table',\n matches: function (el) {\n var businessObject = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBusinessObject)(el);\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:Decision') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject.decisionLogic, 'dmn:DecisionTable');\n },\n title: 'Open decision table'\n}, {\n className: 'dmn-icon-literal-expression',\n matches: function (el) {\n var boxedExpression = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBoxedExpression)(el);\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(boxedExpression, 'dmn:LiteralExpression');\n },\n title: 'Open literal expression'\n}];\n\n/**\n * Displays overlays that can be clicked in order to drill\n * down into a DMN element.\n */\nclass DrillDown {\n constructor(injector, eventBus, overlays, config, translate) {\n this._injector = injector;\n this._eventBus = eventBus;\n this._overlays = overlays;\n this._translate = translate;\n this._config = config || {\n enabled: true\n };\n eventBus.on(['shape.added'], ({\n element\n }) => {\n for (let i = 0; i < PROVIDERS.length; i++) {\n const {\n matches,\n className,\n title\n } = PROVIDERS[i];\n var editable = matches && matches(element);\n if (editable) {\n this.addOverlay(element, className, title);\n }\n }\n });\n }\n\n /**\n * Add overlay to an element that enables drill down.\n *\n * @param {Object} element Element to add overlay to.\n * @param {string} className\n * CSS class that will be added to overlay in order to display icon.\n * @param {string} title added to the button\n */\n addOverlay(element, className, title) {\n const enabled = this._config.enabled !== false;\n const node = this._getOverlayNode(className, title, enabled);\n const overlayId = this._overlays.add(element, {\n position: {\n top: 2,\n left: 2\n },\n html: node\n });\n\n // TODO(nikku): can we remove renamed to drillDown.enabled\n if (enabled) {\n (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.classes)(node).add('interactive');\n this.bindEventListener(element, node, overlayId);\n }\n }\n _getOverlayNode(className, title, enabled) {\n const container = document.createElement('div');\n container.className = 'drill-down-overlay';\n if (!enabled) {\n const icon = document.createElement('span');\n icon.className = className;\n container.appendChild(icon);\n return container;\n }\n const button = document.createElement('button');\n button.type = 'button';\n button.className = className;\n button.title = this._translate(title);\n container.appendChild(button);\n return container;\n }\n\n /**\n * @param {Object} element\n * @param {Object} overlay\n * @param {string} id\n */\n bindEventListener(element, overlay, id) {\n const overlays = this._overlays,\n eventBus = this._eventBus;\n const overlaysRoot = overlays._overlayRoot;\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(overlaysRoot, '[data-overlay-id=\"' + id + '\"]', 'click', () => {\n const triggerDefault = eventBus.fire('drillDown.click', {\n element\n });\n if (triggerDefault === false) {\n return;\n }\n this.drillDown(element);\n });\n }\n\n /**\n * Drill down into the specific element.\n *\n * @param {djs.model.Base} element\n *\n * @return {boolean} whether drill down was executed\n */\n drillDown(element) {\n const parent = this._injector.get('_parent', false);\n\n // no parent; skip drill down\n if (!parent) {\n return false;\n }\n const view = parent.getView(element.businessObject);\n\n // no view to drill down to\n if (!view) {\n return false;\n }\n parent.open(view);\n return true;\n }\n}\nDrillDown.$inject = ['injector', 'eventBus', 'overlays', 'config.drillDown', 'translate'];\n//# sourceMappingURL=DrillDown.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/drill-down/DrillDown.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/drill-down/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/drill-down/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var diagram_js_lib_features_overlays__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/overlays */ \"./node_modules/diagram-js/lib/features/overlays/index.js\");\n/* harmony import */ var _DrillDown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrillDown */ \"./node_modules/dmn-js-drd/lib/features/drill-down/DrillDown.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_overlays__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['drillDown'],\n drillDown: ['type', _DrillDown__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/drill-down/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/editor-actions/DrdEditorActions.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/editor-actions/DrdEditorActions.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdEditorActions)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_features_editor_actions_EditorActions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/features/editor-actions/EditorActions */ \"./node_modules/diagram-js/lib/features/editor-actions/EditorActions.js\");\n\n\nfunction DrdEditorActions(injector) {\n injector.invoke(diagram_js_lib_features_editor_actions_EditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"], this);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(DrdEditorActions, diagram_js_lib_features_editor_actions_EditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\nDrdEditorActions.$inject = ['injector'];\n\n/**\n * Register default actions.\n *\n * @param {Injector} injector\n */\nDrdEditorActions.prototype._registerDefaultActions = function (injector) {\n // (0) invoke super method\n\n diagram_js_lib_features_editor_actions_EditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype._registerDefaultActions.call(this, injector);\n\n // (1) retrieve optional components to integrate with\n\n const canvas = injector.get('canvas', false),\n elementRegistry = injector.get('elementRegistry', false),\n selection = injector.get('selection', false),\n lassoTool = injector.get('lassoTool', false),\n handTool = injector.get('handTool', false),\n directEditing = injector.get('directEditing', false),\n distributeElements = injector.get('distributeElements', false),\n alignElements = injector.get('alignElements', false),\n searchPad = injector.get('searchPad', false);\n\n // (2) check components and register actions\n\n if (canvas && elementRegistry && selection) {\n this._registerAction('selectElements', function () {\n // select all elements except for the invisible\n // root element\n var rootElement = canvas.getRootElement();\n var elements = elementRegistry.filter(function (element) {\n return element !== rootElement;\n });\n selection.select(elements);\n return elements;\n });\n }\n if (selection && distributeElements) {\n this._registerAction('distributeElements', function (opts) {\n var currentSelection = selection.get(),\n type = opts.type;\n if (currentSelection.length > 2) {\n distributeElements.trigger(currentSelection, type);\n }\n });\n }\n if (selection && alignElements) {\n this._registerAction('alignElements', function (opts) {\n var currentSelection = selection.get(),\n type = opts.type;\n if (currentSelection.length > 1) {\n alignElements.trigger(currentSelection, type);\n }\n });\n }\n if (lassoTool) {\n this._registerAction('lassoTool', function () {\n lassoTool.toggle();\n });\n }\n if (handTool) {\n this._registerAction('handTool', function () {\n handTool.toggle();\n });\n }\n if (selection && directEditing) {\n this._registerAction('directEditing', function () {\n var currentSelection = selection.get();\n if (currentSelection.length) {\n directEditing.activate(currentSelection[0]);\n }\n });\n }\n if (selection && searchPad) {\n this._registerAction('find', function () {\n searchPad.toggle();\n });\n }\n};\n//# sourceMappingURL=DrdEditorActions.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/editor-actions/DrdEditorActions.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/editor-actions/index.js": +/*!**********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/editor-actions/index.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_editor_actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/editor-actions */ \"./node_modules/diagram-js/lib/features/editor-actions/index.js\");\n/* harmony import */ var _DrdEditorActions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdEditorActions */ \"./node_modules/dmn-js-drd/lib/features/editor-actions/DrdEditorActions.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_editor_actions__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n editorActions: ['type', _DrdEditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/editor-actions/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/generate-di/DiGenerator.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/generate-di/DiGenerator.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DiGenerator)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_DiUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/DiUtil */ \"./node_modules/dmn-js-shared/lib/util/DiUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n\n/**\n * Generates missing DI on import.\n *\n * @param {DrdFactory} drdFactory\n * @param {ElementFactory} elementFactory\n * @param {EventBus} eventBus\n */\nfunction DiGenerator(drdFactory, elementFactory, eventBus, drdUpdater) {\n function createDi(definitions) {\n // retrieve or create dmnDI\n var dmnDI = definitions.dmnDI;\n if (!dmnDI) {\n dmnDI = drdFactory.create('dmndi:DMNDI');\n definitions.set('dmnDI', dmnDI);\n }\n var diagram = drdFactory.create('dmndi:DMNDiagram');\n dmnDI.set('diagrams', [diagram]);\n var index = 0;\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(definitions.get('drgElement'), function (drgElement) {\n // generate DI for decisions only\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(drgElement, 'dmn:Decision')) {\n return;\n }\n var dimensions = elementFactory._getDefaultSize(drgElement);\n var di = drdFactory.createDiShape(drgElement, {\n x: 150 + index * 30,\n y: 150 + index * 30,\n width: dimensions.width,\n height: dimensions.height\n });\n drdUpdater.updateDiParent(di, diagram);\n index++;\n });\n }\n eventBus.on('import.start', ({\n definitions\n }) => {\n if (!(0,dmn_js_shared_lib_util_DiUtil__WEBPACK_IMPORTED_MODULE_0__.containsDi)(definitions)) {\n createDi(definitions);\n }\n });\n}\nDiGenerator.$inject = ['drdFactory', 'elementFactory', 'eventBus', 'drdUpdater'];\n//# sourceMappingURL=DiGenerator.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/generate-di/DiGenerator.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/generate-di/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/generate-di/index.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DiGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DiGenerator */ \"./node_modules/dmn-js-drd/lib/features/generate-di/DiGenerator.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['diGenerator'],\n diGenerator: ['type', _DiGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/generate-di/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/keyboard/DrdKeyboardBindings.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/keyboard/DrdKeyboardBindings.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdKeyboardBindings)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_features_keyboard_KeyboardBindings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/features/keyboard/KeyboardBindings */ \"./node_modules/diagram-js/lib/features/keyboard/KeyboardBindings.js\");\n\n\n\n/**\n * DRD specific key bindings.\n *\n * @param {Keyboard} keyboard\n * @param {EditorActions} editorActions\n */\nfunction DrdKeyboardBindings(injector) {\n injector.invoke(diagram_js_lib_features_keyboard_KeyboardBindings__WEBPACK_IMPORTED_MODULE_0__[\"default\"], this);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(DrdKeyboardBindings, diagram_js_lib_features_keyboard_KeyboardBindings__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\nDrdKeyboardBindings.$inject = ['injector'];\n\n/**\n * Register available keyboard bindings.\n *\n * @param {Keyboard} keyboard\n * @param {EditorActions} editorActions\n */\nDrdKeyboardBindings.prototype.registerBindings = function (keyboard, editorActions) {\n // inherit default bindings\n diagram_js_lib_features_keyboard_KeyboardBindings__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.registerBindings.call(this, keyboard, editorActions);\n\n /**\n * Add keyboard binding if respective editor action\n * is registered.\n *\n * @param {string} action name\n * @param {Function} fn that implements the key binding\n */\n function addListener(action, fn) {\n if (editorActions.isRegistered(action)) {\n keyboard.addListener(fn);\n }\n }\n\n // select all elements\n // CTRL + A\n addListener('selectElements', function (context) {\n var event = context.keyEvent;\n if (keyboard.isKey(['a', 'A'], event) && keyboard.isCmd(event)) {\n editorActions.trigger('selectElements');\n return true;\n }\n });\n\n // activate lasso tool\n // L\n addListener('lassoTool', function (context) {\n var event = context.keyEvent;\n if (keyboard.hasModifier(event)) {\n return;\n }\n if (keyboard.isKey(['l', 'L'], event)) {\n editorActions.trigger('lassoTool');\n return true;\n }\n });\n\n // activate hand tool\n // H\n addListener('handTool', function (context) {\n var event = context.keyEvent;\n if (keyboard.hasModifier(event)) {\n return;\n }\n if (keyboard.isKey(['h', 'H'], event)) {\n editorActions.trigger('handTool');\n return true;\n }\n });\n\n // activate direct editing\n // E\n addListener('directEditing', function (context) {\n var event = context.keyEvent;\n if (keyboard.hasModifier(event)) {\n return;\n }\n if (keyboard.isKey(['e', 'E'], event)) {\n editorActions.trigger('directEditing');\n return true;\n }\n });\n\n // search labels\n // CTRL + F\n addListener('find', function (context) {\n var event = context.keyEvent;\n if (keyboard.isKey(['f', 'F'], event) && keyboard.isCmd(event)) {\n editorActions.trigger('find');\n return true;\n }\n });\n};\n//# sourceMappingURL=DrdKeyboardBindings.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/keyboard/DrdKeyboardBindings.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/keyboard/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/keyboard/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/keyboard */ \"./node_modules/diagram-js/lib/features/keyboard/index.js\");\n/* harmony import */ var _DrdKeyboardBindings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdKeyboardBindings */ \"./node_modules/dmn-js-drd/lib/features/keyboard/DrdKeyboardBindings.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_keyboard__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['keyboardBindings'],\n keyboardBindings: ['type', _DrdKeyboardBindings__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/keyboard/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/label-editing/LabelEditingProvider.js": +/*!************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/label-editing/LabelEditingProvider.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LabelEditingProvider)\n/* harmony export */ });\n/* harmony import */ var _LabelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LabelUtil */ \"./node_modules/dmn-js-drd/lib/features/label-editing/LabelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\nvar MARKER_LABEL_HIDDEN = 'djs-label-hidden';\nfunction LabelEditingProvider(canvas, directEditing, eventBus, modeling, textRenderer) {\n this._canvas = canvas;\n this._modeling = modeling;\n this._textRenderer = textRenderer;\n this._eventBus = eventBus;\n directEditing.registerProvider(this);\n\n // listen to dblclick on non-root elements\n eventBus.on('element.dblclick', function (event) {\n directEditing.activate(event.element);\n });\n\n // complete on followup canvas operation\n eventBus.on(['autoPlace.start', 'canvas.viewbox.changing', 'drag.init', 'drillDown.click', 'element.mousedown', 'popupMenu.open', 'selection.changed'], function () {\n directEditing.complete();\n });\n\n // cancel on command stack changes\n eventBus.on(['commandStack.changed'], function () {\n directEditing.cancel();\n });\n eventBus.on('create.end', 500, function (e) {\n var element = e.shape;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:Decision') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:InputData') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:BusinessKnowledgeModel') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:KnowledgeSource') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:TextAnnotation')) {\n directEditing.activate(element);\n }\n });\n eventBus.on('autoPlace.end', 500, function (event) {\n directEditing.activate(event.shape);\n });\n this._eventBus.on(['directEditing.complete', 'directEditing.cancel'], function (context) {\n var activeProvider = context.active;\n if (activeProvider) {\n var element = activeProvider.element.label || activeProvider.element;\n canvas.removeMarker(element, MARKER_LABEL_HIDDEN);\n }\n });\n}\nLabelEditingProvider.$inject = ['canvas', 'directEditing', 'eventBus', 'modeling', 'textRenderer'];\n\n/**\n * Activate direct editing for drgs and text annotations.\n *\n * @param {djs.model.Base} element\n *\n * @return {Object} an object with properties bounds (position and size) and text\n */\nLabelEditingProvider.prototype.activate = function (element) {\n var text = (0,_LabelUtil__WEBPACK_IMPORTED_MODULE_0__.getLabel)(element);\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isDefined)(text)) {\n return;\n }\n var context = {\n text: text\n };\n var editingBBox = this.getEditingBBox(element);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(context, editingBBox);\n var options = {};\n var style = context.style || {};\n\n // DRG elements\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:DRGElement')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(options, {\n centerVertically: true\n });\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(style, {\n backgroundColor: null,\n border: null\n });\n }\n\n // text annotations\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:TextAnnotation')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(options, {\n resizable: true\n });\n }\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(context, {\n options: options,\n style: style\n });\n this._canvas.addMarker(element, MARKER_LABEL_HIDDEN);\n return context;\n};\n\n/**\n * Get the editing bounding box based on the element's size and position\n *\n * @param {djs.model.Base} element\n *\n * @return {Object}\n * an object containing information about position and\n * size (fixed or minimum and/or maximum)\n */\nLabelEditingProvider.prototype.getEditingBBox = function (element) {\n var canvas = this._canvas;\n var target = element.label || element;\n var bbox = canvas.getAbsoluteBBox(target);\n\n // default position\n var bounds = {\n x: bbox.x,\n y: bbox.y\n };\n var zoom = canvas.zoom();\n var defaultStyle = this._textRenderer.getDefaultStyle();\n\n // take zoom into account\n var defaultFontSize = defaultStyle.fontSize * zoom,\n defaultLineHeight = defaultStyle.lineHeight;\n var style = {\n fontFamily: this._textRenderer.getDefaultStyle().fontFamily,\n fontWeight: this._textRenderer.getDefaultStyle().fontWeight\n };\n\n // DRG elements\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:DRGElement')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(bounds, {\n width: bbox.width,\n height: bbox.height\n });\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(style, {\n fontSize: defaultFontSize + 'px',\n lineHeight: defaultLineHeight,\n paddingTop: 7 * zoom + 'px',\n paddingBottom: 7 * zoom + 'px',\n paddingLeft: 5 * zoom + 'px',\n paddingRight: 5 * zoom + 'px'\n });\n }\n\n // text annotations\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:TextAnnotation')) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(bounds, {\n width: bbox.width,\n height: bbox.height,\n minWidth: 30 * zoom,\n minHeight: 10 * zoom\n });\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(style, {\n textAlign: 'left',\n paddingTop: 5 * zoom + 'px',\n paddingBottom: 7 * zoom + 'px',\n paddingLeft: 7 * zoom + 'px',\n paddingRight: 5 * zoom + 'px',\n fontSize: defaultFontSize + 'px',\n lineHeight: defaultLineHeight\n });\n }\n return {\n bounds: bounds,\n style: style\n };\n};\nLabelEditingProvider.prototype.update = function (element, newLabel, activeContextText, bounds) {\n var newBounds, bbox;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:TextAnnotation')) {\n bbox = this._canvas.getAbsoluteBBox(element);\n newBounds = {\n x: element.x,\n y: element.y,\n width: element.width / bbox.width * bounds.width,\n height: element.height / bbox.height * bounds.height\n };\n }\n if (isEmptyText(newLabel)) {\n newLabel = null;\n }\n this._modeling.updateLabel(element, newLabel, newBounds);\n};\n\n// helpers //////////\n\nfunction isEmptyText(label) {\n return !label || !label.trim();\n}\n//# sourceMappingURL=LabelEditingProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/label-editing/LabelEditingProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/label-editing/LabelUtil.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/label-editing/LabelUtil.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getLabel: () => (/* binding */ getLabel),\n/* harmony export */ setLabel: () => (/* binding */ setLabel)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\nfunction getLabelAttr(semantic) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:Decision') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:BusinessKnowledgeModel') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:InputData') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:KnowledgeSource')) {\n return 'name';\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:TextAnnotation')) {\n return 'text';\n }\n}\nfunction getLabel(element) {\n var semantic = element.businessObject,\n attr = getLabelAttr(semantic);\n if (attr) {\n return semantic[attr] || '';\n }\n}\nfunction setLabel(element, text, isExternal) {\n var semantic = element.businessObject,\n attr = getLabelAttr(semantic);\n if (attr) {\n semantic[attr] = text;\n }\n\n // show external label if not empty\n if (isExternal) {\n element.hidden = !text;\n }\n return element;\n}\n//# sourceMappingURL=LabelUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/label-editing/LabelUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/label-editing/cmd/UpdateLabelHandler.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/label-editing/cmd/UpdateLabelHandler.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateLabelHandler)\n/* harmony export */ });\n/* harmony import */ var _LabelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../LabelUtil */ \"./node_modules/dmn-js-drd/lib/features/label-editing/LabelUtil.js\");\n\n\n/**\n * A handler that updates the name of a DMN element.\n */\nfunction UpdateLabelHandler() {\n /**\n * Set the label and return the changed elements.\n *\n * Element parameter can be label itself or connection (i.e. sequence flow).\n *\n * @param {djs.model.Base} element\n * @param {string} text\n */\n function setText(element, text) {\n // external label if present\n var label = element.label || element;\n var labelTarget = element.labelTarget || element;\n (0,_LabelUtil__WEBPACK_IMPORTED_MODULE_0__.setLabel)(label, text, labelTarget !== label);\n return [label, labelTarget];\n }\n function execute(ctx) {\n ctx.oldLabel = (0,_LabelUtil__WEBPACK_IMPORTED_MODULE_0__.getLabel)(ctx.element);\n return setText(ctx.element, ctx.newLabel);\n }\n function revert(ctx) {\n return setText(ctx.element, ctx.oldLabel);\n }\n\n // API\n\n this.execute = execute;\n this.revert = revert;\n}\n//# sourceMappingURL=UpdateLabelHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/label-editing/cmd/UpdateLabelHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/label-editing/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/label-editing/index.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/command */ \"./node_modules/diagram-js/lib/command/index.js\");\n/* harmony import */ var diagram_js_lib_features_change_support__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/features/change-support */ \"./node_modules/diagram-js/lib/features/change-support/index.js\");\n/* harmony import */ var diagram_js_direct_editing__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js-direct-editing */ \"./node_modules/diagram-js-direct-editing/lib/index.js\");\n/* harmony import */ var _LabelEditingProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LabelEditingProvider */ \"./node_modules/dmn-js-drd/lib/features/label-editing/LabelEditingProvider.js\");\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_command__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_features_change_support__WEBPACK_IMPORTED_MODULE_3__[\"default\"], diagram_js_direct_editing__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['labelEditingProvider'],\n labelEditingProvider: ['type', _LabelEditingProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/label-editing/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/DrdFactory.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/DrdFactory.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdFactory)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nfunction DrdFactory(moddle) {\n this._model = moddle;\n}\nDrdFactory.$inject = ['moddle'];\nDrdFactory.prototype._needsId = function (element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(element, ['dmn:Artifact', 'dmn:DMNElement', 'dmn:DRGElement', 'dmndi:DMNDiagram', 'dmndi:DMNDiagramElement']);\n};\nDrdFactory.prototype._ensureId = function (element) {\n var prefix = (element.$type || '').replace(/^[^:]*:/g, '') + '_';\n if (!element.id && this._needsId(element)) {\n element.id = this._model.ids.nextPrefixed(prefix, element);\n }\n};\nDrdFactory.prototype.create = function (type, attrs) {\n var element = this._model.create(type, attrs || {});\n this._ensureId(element);\n return element;\n};\nDrdFactory.prototype.createDiShape = function (semantic, bounds, attrs) {\n return this.create('dmndi:DMNShape', (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({\n dmnElementRef: semantic,\n bounds: this.createDiBounds(bounds)\n }, attrs));\n};\nDrdFactory.prototype.createDiBounds = function (bounds) {\n return this.create('dc:Bounds', bounds);\n};\nDrdFactory.prototype.createDiEdge = function (semantic, waypoints, attrs) {\n return this.create('dmndi:DMNEdge', {\n dmnElementRef: semantic,\n waypoint: this.createDiWaypoints(waypoints)\n }, attrs);\n};\nDrdFactory.prototype.createDiWaypoints = function (waypoints) {\n var self = this;\n return waypoints.map(function (waypoint) {\n return self.createDiWaypoint(waypoint);\n });\n};\nDrdFactory.prototype.createDiWaypoint = function (waypoint) {\n return this.create('dc:Point', (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.pick)(waypoint, ['x', 'y']));\n};\nDrdFactory.prototype.createExtensionElements = function () {\n return this.create('dmn:ExtensionElements', {\n values: []\n });\n};\n//# sourceMappingURL=DrdFactory.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/DrdFactory.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/DrdLayouter.js": +/*!**********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/DrdLayouter.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdLayouter)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_layout_BaseLayouter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/layout/BaseLayouter */ \"./node_modules/diagram-js/lib/layout/BaseLayouter.js\");\n/* harmony import */ var diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\nvar ADDITIONAL_WAYPOINT_DISTANCE = 20;\nfunction DrdLayouter(connectionDocking) {\n this._connectionDocking = connectionDocking;\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(DrdLayouter, diagram_js_lib_layout_BaseLayouter__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\nDrdLayouter.$inject = ['connectionDocking'];\nDrdLayouter.prototype.layoutConnection = function (connection, hints) {\n var connectionDocking = this._connectionDocking;\n if (!hints) {\n hints = {};\n }\n var source = hints.source || connection.source,\n target = hints.target || connection.target,\n waypoints = hints.waypoints || connection.waypoints || [],\n connectionStart = hints.connectionStart,\n connectionEnd = hints.connectionEnd,\n orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_3__.getOrientation)(source, target);\n if (!connectionStart) {\n connectionStart = getConnectionDocking(waypoints[0], source);\n }\n if (!connectionEnd) {\n connectionEnd = getConnectionDocking(waypoints[waypoints.length - 1], target);\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:InformationRequirement')) {\n waypoints = [connectionStart, connectionEnd];\n var croppedWaypoints = connectionDocking.getCroppedWaypoints((0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)({}, connection, {\n waypoints: waypoints\n }), source, target);\n connectionEnd = croppedWaypoints.pop();\n var additionalWaypoint = {\n x: connectionEnd.x,\n y: connectionEnd.y\n };\n if (orientation.includes('bottom')) {\n additionalWaypoint.y += ADDITIONAL_WAYPOINT_DISTANCE;\n } else if (orientation.includes('top')) {\n additionalWaypoint.y -= ADDITIONAL_WAYPOINT_DISTANCE;\n } else if (orientation.includes('right')) {\n additionalWaypoint.x += ADDITIONAL_WAYPOINT_DISTANCE;\n } else {\n additionalWaypoint.x -= ADDITIONAL_WAYPOINT_DISTANCE;\n }\n waypoints = croppedWaypoints.concat([additionalWaypoint, connectionEnd]);\n return waypoints;\n }\n return [connectionStart, connectionEnd];\n};\nfunction getConnectionDocking(point, shape) {\n return point ? point.original || point : (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_3__.getMid)(shape);\n}\n//# sourceMappingURL=DrdLayouter.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/DrdLayouter.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/DrdUpdater.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/DrdUpdater.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdUpdater)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_util_Collections__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! diagram-js/lib/util/Collections */ \"./node_modules/diagram-js/lib/util/Collections.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n\n\n\n\n\n\n/**\n * Update DMN 1.3 information.\n */\nfunction DrdUpdater(connectionDocking, definitionPropertiesView, drdFactory, drdRules, injector) {\n injector.invoke(diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], this);\n this._definitionPropertiesView = definitionPropertiesView;\n this._drdFactory = drdFactory;\n this._drdRules = drdRules;\n var self = this;\n function cropConnection(context) {\n var connection = context.connection,\n cropped = context.cropped;\n if (!cropped) {\n connection.waypoints = connectionDocking.getCroppedWaypoints(connection);\n context.cropped = true;\n }\n }\n this.executed(['connection.create', 'connection.layout'], cropConnection, true);\n this.reverted(['connection.layout'], function (context) {\n delete context.cropped;\n }, true);\n function updateParent(context) {\n var connection = context.connection,\n parent = context.parent,\n shape = context.shape;\n if (connection && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:Association')) {\n parent = connection.target;\n }\n self.updateParent(shape || connection, parent);\n }\n function reverseUpdateParent(context) {\n var connection = context.connection,\n shape = context.shape;\n var oldParent = context.parent || context.newParent;\n if (connection && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:Association')) {\n oldParent = connection.target;\n }\n self.updateParent(shape || connection, oldParent);\n }\n this.executed(['connection.create', 'connection.delete', 'connection.move', 'shape.create', 'shape.delete'], updateParent, true);\n this.reverted(['connection.create', 'connection.delete', 'connection.move', 'shape.create', 'shape.delete'], reverseUpdateParent, true);\n function updateBounds(context) {\n var shape = context.shape;\n if (!((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(shape, 'dmn:DRGElement') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(shape, 'dmn:TextAnnotation'))) {\n return;\n }\n self.updateBounds(shape);\n }\n this.executed(['shape.create', 'shape.move', 'shape.resize'], updateBounds, true);\n this.reverted(['shape.create', 'shape.move', 'shape.resize'], updateBounds, true);\n function updateConnectionWaypoints(context) {\n self.updateConnectionWaypoints(context);\n }\n this.executed(['connection.create', 'connection.layout', 'connection.move', 'connection.updateWaypoints'], updateConnectionWaypoints, true);\n this.reverted(['connection.create', 'connection.layout', 'connection.move', 'connection.updateWaypoints'], updateConnectionWaypoints, true);\n this.executed('connection.create', function (context) {\n var connection = context.connection,\n connectionBo = connection.businessObject,\n target = context.target,\n targetBo = target.businessObject;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:Association')) {\n updateParent(context);\n } else {\n // parent is target\n self.updateSemanticParent(connectionBo, targetBo);\n }\n }, true);\n this.reverted('connection.create', function (context) {\n reverseUpdateParent(context);\n }, true);\n this.executed('connection.reconnect', function (context) {\n var connection = context.connection,\n connectionBo = connection.businessObject,\n newTarget = context.newTarget,\n newTargetBo = newTarget.businessObject;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connectionBo, 'dmn:Association')) {\n return;\n }\n self.updateSemanticParent(connectionBo, newTargetBo);\n }, true);\n this.reverted('connection.reconnect', function (context) {\n var connection = context.connection,\n connectionBo = connection.businessObject,\n oldTarget = context.oldTarget,\n oldTargetBo = oldTarget.businessObject;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connectionBo, 'dmn:Association')) {\n return;\n }\n self.updateSemanticParent(connectionBo, oldTargetBo);\n }, true);\n this.executed('element.updateProperties', function (context) {\n definitionPropertiesView.update();\n }, true);\n this.reverted('element.updateProperties', function (context) {\n definitionPropertiesView.update();\n }, true);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(DrdUpdater, diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\nDrdUpdater.$inject = ['connectionDocking', 'definitionPropertiesView', 'drdFactory', 'drdRules', 'injector'];\nDrdUpdater.prototype.updateBounds = function (shape) {\n var businessObject = shape.businessObject,\n bounds = businessObject.di.bounds;\n\n // update bounds\n (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(bounds, {\n x: shape.x,\n y: shape.y,\n width: shape.width,\n height: shape.height\n });\n};\nDrdUpdater.prototype.updateConnectionWaypoints = function (context) {\n var drdFactory = this._drdFactory;\n var connection = context.connection,\n businessObject = connection.businessObject,\n edge = businessObject.di;\n edge.waypoint = drdFactory.createDiWaypoints(connection.waypoints).map(function (waypoint) {\n waypoint.$parent = edge;\n return waypoint;\n });\n};\nDrdUpdater.prototype.updateParent = function (element, oldParent) {\n var parent = element.parent;\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:DRGElement') && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:Artifact')) {\n parent = oldParent;\n }\n var businessObject = element.businessObject,\n parentBo = parent && parent.businessObject;\n this.updateSemanticParent(businessObject, parentBo);\n this.updateDiParent(businessObject.di, parentBo && parentBo.di);\n};\nDrdUpdater.prototype.updateSemanticParent = function (businessObject, parent) {\n var children, containment;\n if (businessObject.$parent === parent) {\n return;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:DRGElement')) {\n containment = 'drgElement';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:Artifact')) {\n containment = 'artifact';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:InformationRequirement')) {\n containment = 'informationRequirement';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:AuthorityRequirement')) {\n containment = 'authorityRequirement';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:KnowledgeRequirement')) {\n containment = 'knowledgeRequirement';\n }\n if (businessObject.$parent) {\n // remove from old parent\n children = businessObject.$parent.get(containment);\n (0,diagram_js_lib_util_Collections__WEBPACK_IMPORTED_MODULE_4__.remove)(children, businessObject);\n }\n if (parent) {\n // add to new parent\n children = parent.get(containment);\n if (children) {\n children.push(businessObject);\n businessObject.$parent = parent;\n }\n } else {\n businessObject.$parent = null;\n }\n};\nDrdUpdater.prototype.updateDiParent = function (di, parentDi) {\n if (di.$parent === parentDi) {\n return;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(di, ['dmndi:DMNEdge', 'dmndi:DMNShape'])) {\n var diagram = parentDi || di;\n while (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(diagram, 'dmndi:DMNDiagram')) {\n diagram = diagram.$parent;\n }\n var diagramElements = diagram.get('diagramElements');\n if (parentDi) {\n di.$parent = diagram;\n (0,diagram_js_lib_util_Collections__WEBPACK_IMPORTED_MODULE_4__.add)(diagramElements, di);\n } else {\n di.$parent = null;\n (0,diagram_js_lib_util_Collections__WEBPACK_IMPORTED_MODULE_4__.remove)(diagramElements, di);\n }\n } else {\n throw new Error('unsupported');\n }\n};\n//# sourceMappingURL=DrdUpdater.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/DrdUpdater.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/ElementFactory.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/ElementFactory.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ BUSINESS_KNOWLEDGE_MODEL_SIZE: () => (/* binding */ BUSINESS_KNOWLEDGE_MODEL_SIZE),\n/* harmony export */ DECISION_SIZE: () => (/* binding */ DECISION_SIZE),\n/* harmony export */ INPUT_DATA_SIZE: () => (/* binding */ INPUT_DATA_SIZE),\n/* harmony export */ KNOWLEDGE_SOURCE_SIZE: () => (/* binding */ KNOWLEDGE_SOURCE_SIZE),\n/* harmony export */ \"default\": () => (/* binding */ ElementFactory)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_core_ElementFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/core/ElementFactory */ \"./node_modules/diagram-js/lib/core/ElementFactory.js\");\n\n\n\n\nvar BUSINESS_KNOWLEDGE_MODEL_SIZE = {\n width: 135,\n height: 46\n};\nvar DECISION_SIZE = {\n width: 180,\n height: 80\n};\nvar INPUT_DATA_SIZE = {\n width: 125,\n height: 45\n};\nvar KNOWLEDGE_SOURCE_SIZE = {\n width: 100,\n height: 63\n};\n\n/**\n * A drd-aware factory for diagram-js shapes\n */\nfunction ElementFactory(drdFactory) {\n diagram_js_lib_core_ElementFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"].call(this);\n this._drdFactory = drdFactory;\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(ElementFactory, diagram_js_lib_core_ElementFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\nElementFactory.$inject = ['drdFactory'];\nElementFactory.prototype.baseCreate = diagram_js_lib_core_ElementFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"].prototype.create;\nElementFactory.prototype.create = function (elementType, attrs) {\n return this.createDrdElement(elementType, attrs);\n};\nElementFactory.prototype.createDrdElement = function (elementType, attrs) {\n var drdFactory = this._drdFactory;\n var size;\n attrs = attrs || {};\n var businessObject = attrs.businessObject;\n if (!businessObject) {\n if (!attrs.type) {\n throw new Error('no shape type specified');\n }\n businessObject = drdFactory.create(attrs.type);\n }\n if (!businessObject.di) {\n if (elementType === 'connection') {\n businessObject.di = drdFactory.createDiEdge(businessObject, []);\n } else if (elementType === 'shape') {\n businessObject.di = drdFactory.createDiShape(businessObject, {});\n }\n }\n size = this._getDefaultSize(businessObject);\n attrs = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)({\n businessObject: businessObject,\n id: businessObject.id\n }, size, attrs);\n return this.baseCreate(elementType, attrs);\n};\nElementFactory.prototype._getDefaultSize = function (semantic) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:BusinessKnowledgeModel')) {\n return BUSINESS_KNOWLEDGE_MODEL_SIZE;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:Decision')) {\n return DECISION_SIZE;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:InputData')) {\n return INPUT_DATA_SIZE;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:KnowledgeSource')) {\n return KNOWLEDGE_SOURCE_SIZE;\n }\n return {\n width: 100,\n height: 80\n };\n};\n//# sourceMappingURL=ElementFactory.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/ElementFactory.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/Modeling.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/Modeling.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeling)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! diagram-js/lib/features/modeling/Modeling */ \"./node_modules/diagram-js/lib/features/modeling/Modeling.js\");\n/* harmony import */ var _cmd_IdClaimHandler_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cmd/IdClaimHandler.js */ \"./node_modules/dmn-js-drd/lib/features/modeling/cmd/IdClaimHandler.js\");\n/* harmony import */ var _label_editing_cmd_UpdateLabelHandler_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../label-editing/cmd/UpdateLabelHandler.js */ \"./node_modules/dmn-js-drd/lib/features/label-editing/cmd/UpdateLabelHandler.js\");\n/* harmony import */ var _cmd_UpdatePropertiesHandler_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cmd/UpdatePropertiesHandler.js */ \"./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdatePropertiesHandler.js\");\n/* harmony import */ var _cmd_UpdateModdlePropertiesHandler_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cmd/UpdateModdlePropertiesHandler.js */ \"./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js\");\n\n\n\n\n\n\n\n/**\n * DMN modeling.\n *\n * @param {Canvas} canvas\n * @param {CommandStack} commandStack\n * @param {DrdRules} drdRules\n * @param {ElementFactory} elementFactory\n * @param {EventBus} eventBus\n */\nfunction Modeling(canvas, drdRules, injector) {\n this._canvas = canvas;\n this._drdRules = drdRules;\n injector.invoke(diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_4__[\"default\"], this);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(Modeling, diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\nModeling.$inject = ['canvas', 'drdRules', 'injector'];\nModeling.prototype.claimId = function (id, moddleElement) {\n this._commandStack.execute('id.updateClaim', {\n id: id,\n element: moddleElement,\n claiming: true\n });\n};\nModeling.prototype.connect = function (source, target, attrs, hints) {\n var drdRules = this._drdRules,\n rootElement = this._canvas.getRootElement();\n if (!attrs) {\n attrs = drdRules.canConnect(source, target) || {\n type: 'dmn:Association'\n };\n }\n return this.createConnection(source, target, attrs, rootElement, hints);\n};\nModeling.prototype.getHandlers = function () {\n var handlers = diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_4__[\"default\"].prototype.getHandlers.call(this);\n handlers['id.updateClaim'] = _cmd_IdClaimHandler_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n handlers['element.updateLabel'] = _label_editing_cmd_UpdateLabelHandler_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n handlers['element.updateProperties'] = _cmd_UpdatePropertiesHandler_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n handlers['element.updateModdleProperties'] = _cmd_UpdateModdlePropertiesHandler_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return handlers;\n};\nModeling.prototype.unclaimId = function (id, moddleElement) {\n this._commandStack.execute('id.updateClaim', {\n id: id,\n element: moddleElement\n });\n};\nModeling.prototype.updateModdleProperties = function (element, moddleElement, properties) {\n this._commandStack.execute('element.updateModdleProperties', {\n element: element,\n moddleElement: moddleElement,\n properties: properties\n });\n};\nModeling.prototype.updateProperties = function (element, properties) {\n this._commandStack.execute('element.updateProperties', {\n element: element,\n properties: properties\n });\n};\nModeling.prototype.updateLabel = function (element, newLabel, newBounds, hints) {\n this._commandStack.execute('element.updateLabel', {\n element: element,\n newLabel: newLabel,\n newBounds: newBounds,\n hints: hints || {}\n });\n};\n//# sourceMappingURL=Modeling.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/Modeling.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/behavior/CreateConnectionBehavior.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/behavior/CreateConnectionBehavior.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateConnectionBehavior)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\n\n/**\n * Creates DMN-specific refs for new connection.\n *\n * @param {DrdFactory} drdFactory\n * @param {Injector} injector\n */\nfunction CreateConnectionBehavior(drdFactory, injector) {\n injector.invoke(diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], this);\n this.preExecute('connection.create', function (context) {\n var connection = context.connection,\n connectionBo = connection.businessObject,\n source = context.source,\n target = context.target,\n elementRef,\n sourceRef,\n targetRef;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:Association')) {\n sourceRef = connectionBo.sourceRef = drdFactory.create('dmn:DMNElementReference', {\n href: '#' + source.id\n });\n sourceRef.$parent = connectionBo;\n targetRef = connectionBo.targetRef = drdFactory.create('dmn:DMNElementReference', {\n href: '#' + target.id\n });\n targetRef.$parent = connectionBo;\n } else {\n elementRef = connectionBo['required' + getRequirementType(source)] = drdFactory.create('dmn:DMNElementReference', {\n href: '#' + source.id\n });\n elementRef.$parent = connectionBo;\n }\n }, true);\n}\nCreateConnectionBehavior.$inject = ['drdFactory', 'injector'];\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(CreateConnectionBehavior, diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n\n// helpers //////////\n\nfunction getRequirementType(source) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:BusinessKnowledgeModel')) {\n return 'Knowledge';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:Decision')) {\n return 'Decision';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:InputData')) {\n return 'Input';\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:KnowledgeSource')) {\n return 'Authority';\n }\n}\n//# sourceMappingURL=CreateConnectionBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/behavior/CreateConnectionBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/behavior/LayoutConnectionBehavior.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/behavior/LayoutConnectionBehavior.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LayoutConnectionBehavior)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\nvar LOW_PRIORITY = 500;\nfunction LayoutConnectionBehavior(injector, layouter, modeling, rules) {\n injector.invoke(diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], this);\n\n // specify connection start and end on connection create\n this.preExecute(['connection.create', 'connection.reconnect'], function (context) {\n var connection = context.connection,\n source = context.newSource || context.source,\n target = context.newTarget || context.target;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:InformationRequirement') && !rules.allowed('connection.connect', {\n connection: connection,\n source: source,\n target: target\n })) {\n return;\n }\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:InformationRequirement')) {\n return;\n }\n var orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(source, target);\n if (!context.hints) {\n context.hints = {};\n }\n (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(context.hints, getConnectionHints(source, target, orientation));\n }, true);\n\n /**\r\n * Update incoming information requirements.\r\n *\r\n * @param {djs.model.Shape} target\r\n * @param {Array} [informationRequirements]\r\n * @param {string} [orientation]\r\n */\n function updateInformationRequirements(target, informationRequirements, orientation) {\n // (1) get information requirements\n if (!informationRequirements) {\n informationRequirements = target.incoming.filter(function (incoming) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(incoming, 'dmn:InformationRequirement');\n });\n }\n var incomingInformationRequirementsByOrientation = {};\n\n // (2) get information requirements per orientation\n if (orientation) {\n incomingInformationRequirementsByOrientation[orientation] = informationRequirements;\n } else {\n incomingInformationRequirementsByOrientation = getInformationRequirementsByOrientation(target, informationRequirements);\n }\n\n // (3) update information requirements per orientation\n (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.forEach)(incomingInformationRequirementsByOrientation, function (informationRequirements, orientation) {\n // (3.1) sort information requirements\n informationRequirements = sortInformationRequirements(informationRequirements, orientation);\n\n // (3.2) get new connection start and end\n var connectionStartEnd = getConnectionsStartEnd(informationRequirements, target, orientation);\n\n // (3.3) update information requirements\n informationRequirements.forEach((informationRequirement, index) => {\n var connectionStart = connectionStartEnd[index].start,\n connectionEnd = connectionStartEnd[index].end;\n var waypoints = layouter.layoutConnection(informationRequirement, {\n connectionStart: connectionStart,\n connectionEnd: connectionEnd\n });\n modeling.updateWaypoints(informationRequirement, waypoints);\n });\n });\n }\n\n // update information requirements on connection create and delete\n // update information requirements of new target on connection reconnect\n this.postExecuted(['connection.create', 'connection.delete', 'connection.reconnect'], function (context) {\n var connection = context.connection,\n source = connection.source || context.source,\n target = connection.target || context.target;\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:InformationRequirement')) {\n return;\n }\n var orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(source, target);\n\n // update all information requirements with same orientation\n var informationRequirements = target.incoming.filter(incoming => {\n var incomingOrientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(incoming.source, incoming.target);\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(incoming, 'dmn:InformationRequirement') && isSameOrientation(incomingOrientation, orientation);\n });\n if (!informationRequirements.length) {\n return;\n }\n updateInformationRequirements(target, informationRequirements, orientation);\n }, true);\n\n // update information requirements of old target on connection reconnect\n this.preExecute('connection.reconnect', function (context) {\n var connection = context.connection,\n source = connection.source,\n target = connection.target;\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(connection, 'dmn:InformationRequirement')) {\n return;\n }\n var orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(source, target);\n\n // update all information requirements with same orientation except reconnected\n var informationRequirements = target.incoming.filter(incoming => {\n var incomingOrientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(incoming.source, incoming.target);\n return incoming !== connection && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(incoming, 'dmn:InformationRequirement') && isSameOrientation(incomingOrientation, orientation);\n });\n if (!informationRequirements.length) {\n return;\n }\n updateInformationRequirements(target, informationRequirements, orientation);\n }, true);\n\n // update information requirements on elements move\n this.postExecuted('elements.move', LOW_PRIORITY, function (context) {\n var shapes = context.shapes,\n closure = context.closure,\n enclosedConnections = closure.enclosedConnections;\n shapes.forEach(function (shape) {\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(shape, ['dmn:Decision', 'dmn:InputData'])) {\n return;\n }\n\n // (1) update incoming information requirements\n var incomingInformationRequirements = shape.incoming.filter(function (incoming) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(incoming, 'dmn:InformationRequirement') && !enclosedConnections[incoming.id];\n });\n if (incomingInformationRequirements.length) {\n updateInformationRequirements(shape, incomingInformationRequirements);\n }\n\n // (2) update outgoing information requirements\n shape.outgoing.forEach(function (outgoing) {\n if (!(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(outgoing, 'dmn:InformationRequirement') || enclosedConnections[outgoing.id]) {\n return;\n }\n updateInformationRequirements(outgoing.target);\n });\n });\n }, true);\n}\nLayoutConnectionBehavior.$inject = ['injector', 'layouter', 'modeling', 'rules'];\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(LayoutConnectionBehavior, diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n\n// helpers //////////\n\nfunction getConnectionHints(source, target, orientation) {\n var connectionStart = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(source),\n connectionEnd = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(target);\n if (orientation.includes('bottom')) {\n connectionStart.y = source.y;\n connectionEnd.y = target.y + target.height;\n } else if (orientation.includes('top')) {\n connectionStart.y = source.y + source.height;\n connectionEnd.y = target.y;\n } else if (orientation.includes('right')) {\n connectionStart.x = source.x;\n connectionEnd.x = target.x + target.width;\n } else {\n connectionStart.x = source.x + source.width;\n connectionEnd.x = target.x;\n }\n return {\n connectionStart: connectionStart,\n connectionEnd: connectionEnd\n };\n}\n\n/**\r\n * Get connections start and end based on number of information requirements and\r\n * orientation.\r\n *\r\n * @param {Array} informationRequirements\r\n * @param {djs.model.Shape} target\r\n * @param {string} orientation\r\n *\r\n * @returns {Array}\r\n */\nfunction getConnectionsStartEnd(informationRequirements, target, orientation) {\n return informationRequirements.map(function (informationRequirement, index) {\n var source = informationRequirement.source,\n sourceMid = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(source),\n sourceTrbl = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.asTRBL)(source),\n targetTrbl = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.asTRBL)(target);\n var length = informationRequirements.length;\n if (orientation.includes('bottom')) {\n return {\n start: {\n x: sourceMid.x,\n y: sourceTrbl.top\n },\n end: {\n x: targetTrbl.left + target.width / (length + 1) * (index + 1),\n y: targetTrbl.bottom\n }\n };\n } else if (orientation.includes('top')) {\n return {\n start: {\n x: sourceMid.x,\n y: sourceTrbl.bottom\n },\n end: {\n x: targetTrbl.left + target.width / (length + 1) * (index + 1),\n y: targetTrbl.top\n }\n };\n } else if (orientation.includes('right')) {\n return {\n start: {\n x: sourceTrbl.left,\n y: sourceMid.y\n },\n end: {\n x: targetTrbl.right,\n y: targetTrbl.top + target.height / (length + 1) * (index + 1)\n }\n };\n } else {\n return {\n start: {\n x: sourceTrbl.right,\n y: sourceMid.y\n },\n end: {\n x: targetTrbl.left,\n y: targetTrbl.top + target.height / (length + 1) * (index + 1)\n }\n };\n }\n });\n}\n\n/**\r\n * Get information requirements by orientation.\r\n *\r\n * @param {djs.model.shape} target\r\n * @param {Array} informationRequirements\r\n *\r\n * @returns {Object}\r\n */\nfunction getInformationRequirementsByOrientation(target, informationRequirements) {\n var incomingInformationRequirementsByOrientation = {};\n informationRequirements.forEach(function (incoming) {\n var orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getOrientation)(incoming.source, target).split('-').shift();\n if (!incomingInformationRequirementsByOrientation[orientation]) {\n incomingInformationRequirementsByOrientation[orientation] = [];\n }\n incomingInformationRequirementsByOrientation[orientation].push(incoming);\n });\n return incomingInformationRequirementsByOrientation;\n}\nfunction isSameOrientation(orientationA, orientationB) {\n return orientationA && orientationB && orientationA.split('-').shift() === orientationB.split('-').shift();\n}\nfunction sortInformationRequirements(informationRequirements, orientation) {\n var axis;\n if (orientation.includes('top') || orientation.includes('bottom')) {\n axis = 'x';\n } else {\n axis = 'y';\n }\n return informationRequirements.sort(function (a, b) {\n return (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(a.source)[axis] - (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_2__.getMid)(b.source)[axis];\n });\n}\n//# sourceMappingURL=LayoutConnectionBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/behavior/LayoutConnectionBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceConnectionBehavior.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceConnectionBehavior.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ReplaceConnectionBehavior)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n\n\nfunction ReplaceConnectionBehavior(injector, modeling, rules) {\n injector.invoke(diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"], this);\n this.preExecute('connection.reconnect', function (context) {\n var connection = context.connection,\n source = context.newSource || connection.source,\n target = context.newTarget || connection.target,\n waypoints = connection.waypoints.slice();\n var allowed = rules.allowed('connection.reconnect', {\n connection: connection,\n source: source,\n target: target\n });\n if (!allowed || allowed.type === connection.type) {\n return;\n }\n context.connection = modeling.connect(source, target, {\n type: allowed.type,\n waypoints: waypoints\n });\n modeling.removeConnection(connection);\n }, true);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(ReplaceConnectionBehavior, diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\nReplaceConnectionBehavior.$inject = ['injector', 'modeling', 'rules'];\n//# sourceMappingURL=ReplaceConnectionBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceConnectionBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceElementBehavior.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceElementBehavior.js ***! + \******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ReplaceElementBehaviour)\n/* harmony export */ });\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n\n\n\n/**\n * Defines the behaviour of what happens to the elements inside a container\n * that morphs into another DRD element\n */\nfunction ReplaceElementBehaviour(eventBus, modeling, selection) {\n diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, eventBus);\n this._modeling = modeling;\n this.postExecuted(['shape.replace'], 1500, function (e) {\n var context = e.context,\n oldShape = context.oldShape,\n newShape = context.newShape;\n modeling.unclaimId(oldShape.businessObject.id, oldShape.businessObject);\n modeling.updateProperties(newShape, {\n id: oldShape.id\n });\n selection.select(newShape);\n });\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(ReplaceElementBehaviour, diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\nReplaceElementBehaviour.$inject = ['eventBus', 'modeling', 'selection'];\n//# sourceMappingURL=ReplaceElementBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceElementBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/behavior/index.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/behavior/index.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _CreateConnectionBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateConnectionBehavior */ \"./node_modules/dmn-js-drd/lib/features/modeling/behavior/CreateConnectionBehavior.js\");\n/* harmony import */ var _LayoutConnectionBehavior__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LayoutConnectionBehavior */ \"./node_modules/dmn-js-drd/lib/features/modeling/behavior/LayoutConnectionBehavior.js\");\n/* harmony import */ var _ReplaceConnectionBehavior__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ReplaceConnectionBehavior */ \"./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceConnectionBehavior.js\");\n/* harmony import */ var _ReplaceElementBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ReplaceElementBehavior */ \"./node_modules/dmn-js-drd/lib/features/modeling/behavior/ReplaceElementBehavior.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior */ \"./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js\");\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['createConnectionBehavior', 'idChangeBehavior', 'layoutConnectionBehavior', 'replaceConnectionBehavior', 'replaceElementBehavior'],\n createConnectionBehavior: ['type', _CreateConnectionBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n idChangeBehavior: ['type', dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n layoutConnectionBehavior: ['type', _LayoutConnectionBehavior__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n replaceConnectionBehavior: ['type', _ReplaceConnectionBehavior__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n replaceElementBehavior: ['type', _ReplaceElementBehavior__WEBPACK_IMPORTED_MODULE_3__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/behavior/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/cmd/IdClaimHandler.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/cmd/IdClaimHandler.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IdClaimHandler)\n/* harmony export */ });\nfunction IdClaimHandler(moddle) {\n this._moddle = moddle;\n}\nIdClaimHandler.$inject = ['moddle'];\nIdClaimHandler.prototype.execute = function (context) {\n var ids = this._moddle.ids,\n id = context.id,\n element = context.element,\n claiming = context.claiming;\n if (claiming) {\n ids.claim(id, element);\n } else {\n ids.unclaim(id);\n }\n};\n\n/**\n * Command revert implementation.\n */\nIdClaimHandler.prototype.revert = function (context) {\n var ids = this._moddle.ids,\n id = context.id,\n element = context.element,\n claiming = context.claiming;\n if (claiming) {\n ids.unclaim(id);\n } else {\n ids.claim(id, element);\n }\n};\n//# sourceMappingURL=IdClaimHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/cmd/IdClaimHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateModdlePropertiesHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nfunction UpdateModdlePropertiesHandler(elementRegistry) {\n this._elementRegistry = elementRegistry;\n}\nUpdateModdlePropertiesHandler.$inject = ['elementRegistry'];\nUpdateModdlePropertiesHandler.prototype.execute = function (context) {\n var element = context.element,\n moddleElement = context.moddleElement,\n properties = context.properties;\n if (!moddleElement) {\n throw new Error(' required');\n }\n\n // TODO(nikku): we need to ensure that ID properties\n // are properly registered / unregistered via\n // this._moddle.ids.assigned(id)\n var changed = context.changed || [element];\n var oldProperties = context.oldProperties || getModdleProperties(moddleElement, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.keys)(properties));\n setModdleProperties(moddleElement, properties);\n context.oldProperties = oldProperties;\n context.changed = changed;\n return changed;\n};\nUpdateModdlePropertiesHandler.prototype.revert = function (context) {\n var oldProperties = context.oldProperties,\n moddleElement = context.moddleElement,\n changed = context.changed;\n setModdleProperties(moddleElement, oldProperties);\n return changed;\n};\n\n// helpers /////////////////\n\nfunction getModdleProperties(moddleElement, propertyNames) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(propertyNames, function (result, key) {\n result[key] = moddleElement.get(key);\n return result;\n }, {});\n}\nfunction setModdleProperties(moddleElement, properties) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(properties, function (value, key) {\n moddleElement.set(key, value);\n });\n}\n//# sourceMappingURL=UpdateModdlePropertiesHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdatePropertiesHandler.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdatePropertiesHandler.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdatePropertiesHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nvar NAME = 'name',\n ID = 'id';\n\n/**\n * A handler that implements a DMN property update.\n *\n * This should be used to set simple properties on elements with\n * an underlying DMN business object.\n *\n * Use respective diagram-js provided handlers if you would\n * like to perform automated modeling.\n */\nfunction UpdatePropertiesHandler(elementRegistry, moddle) {\n this._elementRegistry = elementRegistry;\n this._moddle = moddle;\n}\nUpdatePropertiesHandler.$inject = ['elementRegistry', 'moddle'];\n\n/**\n * Updates a DMN element with a list of new properties\n *\n * @param {Object} context\n * @param {djs.model.Base} context.element the element to update\n * @param {Object} context.properties a list of properties to set on the element's\n * businessObject (the DMN model element)\n *\n * @return {Array} the updated element\n */\nUpdatePropertiesHandler.prototype.execute = function (context) {\n var element = context.element,\n changed = [element];\n if (!element) {\n throw new Error('element required');\n }\n var elementRegistry = this._elementRegistry,\n ids = this._moddle.ids;\n var businessObject = element.businessObject,\n properties = context.properties,\n oldProperties = context.oldProperties || getProperties(businessObject, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.keys)(properties));\n if (isIdChange(properties, businessObject)) {\n ids.unclaim(businessObject[ID]);\n elementRegistry.updateId(element, properties[ID]);\n ids.claim(properties[ID], businessObject);\n }\n if (NAME in properties && element.label) {\n changed.push(element.label);\n }\n\n // update properties\n setProperties(businessObject, properties);\n\n // store old values\n context.oldProperties = oldProperties;\n context.changed = changed;\n\n // indicate changed on objects affected by the update\n return changed;\n};\n\n/**\n * Reverts the update on a DMN elements properties.\n *\n * @param {Object} context\n *\n * @return {djs.model.Base} the updated element\n */\nUpdatePropertiesHandler.prototype.revert = function (context) {\n var element = context.element,\n properties = context.properties,\n oldProperties = context.oldProperties,\n businessObject = element.businessObject,\n elementRegistry = this._elementRegistry,\n ids = this._moddle.ids;\n\n // update properties\n setProperties(businessObject, oldProperties);\n if (isIdChange(properties, businessObject)) {\n ids.unclaim(properties[ID]);\n elementRegistry.updateId(element, oldProperties[ID]);\n ids.claim(oldProperties[ID], businessObject);\n }\n return context.changed;\n};\nfunction isIdChange(properties, businessObject) {\n return ID in properties && properties[ID] !== businessObject[ID];\n}\nfunction getProperties(businessObject, propertyNames) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.reduce)(propertyNames, function (result, key) {\n result[key] = businessObject.get(key);\n return result;\n }, {});\n}\nfunction setProperties(businessObject, properties) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(properties, function (value, key) {\n businessObject.set(key, value);\n });\n}\n//# sourceMappingURL=UpdatePropertiesHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/cmd/UpdatePropertiesHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/modeling/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/modeling/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _behavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./behavior */ \"./node_modules/dmn-js-drd/lib/features/modeling/behavior/index.js\");\n/* harmony import */ var _rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rules */ \"./node_modules/dmn-js-drd/lib/features/rules/index.js\");\n/* harmony import */ var _definition_properties_viewer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../definition-properties/viewer */ \"./node_modules/dmn-js-drd/lib/features/definition-properties/viewer.js\");\n/* harmony import */ var diagram_js_lib_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! diagram-js/lib/command */ \"./node_modules/diagram-js/lib/command/index.js\");\n/* harmony import */ var diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! diagram-js/lib/features/selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var diagram_js_lib_features_change_support__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! diagram-js/lib/features/change-support */ \"./node_modules/diagram-js/lib/features/change-support/index.js\");\n/* harmony import */ var _DrdFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DrdFactory */ \"./node_modules/dmn-js-drd/lib/features/modeling/DrdFactory.js\");\n/* harmony import */ var _DrdUpdater__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DrdUpdater */ \"./node_modules/dmn-js-drd/lib/features/modeling/DrdUpdater.js\");\n/* harmony import */ var _ElementFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ElementFactory */ \"./node_modules/dmn-js-drd/lib/features/modeling/ElementFactory.js\");\n/* harmony import */ var _Modeling__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Modeling */ \"./node_modules/dmn-js-drd/lib/features/modeling/Modeling.js\");\n/* harmony import */ var _DrdLayouter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DrdLayouter */ \"./node_modules/dmn-js-drd/lib/features/modeling/DrdLayouter.js\");\n/* harmony import */ var diagram_js_lib_layout_CroppingConnectionDocking__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! diagram-js/lib/layout/CroppingConnectionDocking */ \"./node_modules/diagram-js/lib/layout/CroppingConnectionDocking.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['modeling', 'drdUpdater'],\n __depends__: [_behavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"], _rules__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _definition_properties_viewer__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_command__WEBPACK_IMPORTED_MODULE_8__[\"default\"], diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_9__[\"default\"], diagram_js_lib_features_change_support__WEBPACK_IMPORTED_MODULE_10__[\"default\"]],\n drdFactory: ['type', _DrdFactory__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n drdUpdater: ['type', _DrdUpdater__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n elementFactory: ['type', _ElementFactory__WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n modeling: ['type', _Modeling__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n layouter: ['type', _DrdLayouter__WEBPACK_IMPORTED_MODULE_7__[\"default\"]],\n connectionDocking: ['type', diagram_js_lib_layout_CroppingConnectionDocking__WEBPACK_IMPORTED_MODULE_11__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/modeling/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/outline/OutlineProvider.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/outline/OutlineProvider.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ OutlineProvider)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var _OutlineUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OutlineUtil */ \"./node_modules/dmn-js-drd/lib/features/outline/OutlineUtil.js\");\n\n\n\n\nconst DEFAULT_OFFSET = 5;\n\n/**\n * DMN-specific outline provider.\n *\n * @implements {BaseOutlineProvider}\n *\n * @param {Outline} outline\n * @param {Styles} styles\n */\nfunction OutlineProvider(outline, styles) {\n this._styles = styles;\n outline.registerProvider(this);\n}\nOutlineProvider.$inject = ['outline', 'styles'];\n\n/**\n * Returns outline for a given element.\n *\n * @param {Element} element\n *\n * @return {Outline}\n */\nOutlineProvider.prototype.getOutline = function (element) {\n const OUTLINE_STYLE = this._styles.cls('djs-outline', ['no-fill']);\n var outline;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:InputData')) {\n outline = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.create)('rect');\n (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.attr)(outline, (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)({\n x: -DEFAULT_OFFSET,\n y: -DEFAULT_OFFSET,\n rx: 27,\n width: element.width + DEFAULT_OFFSET * 2,\n height: element.height + DEFAULT_OFFSET * 2\n }, OUTLINE_STYLE));\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:BusinessKnowledgeModel') && isStandardSize(element, 'dmn:BusinessKnowledgeModel')) {\n outline = (0,_OutlineUtil__WEBPACK_IMPORTED_MODULE_1__.createPath)(_OutlineUtil__WEBPACK_IMPORTED_MODULE_1__.BUSINESS_KNOWLEDGE_MODEL_OUTLINE_PATH, {\n x: -6,\n y: -6\n }, OUTLINE_STYLE);\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(element, 'dmn:KnowledgeSource') && isStandardSize(element, 'dmn:KnowledgeSource')) {\n outline = (0,_OutlineUtil__WEBPACK_IMPORTED_MODULE_1__.createPath)(_OutlineUtil__WEBPACK_IMPORTED_MODULE_1__.KNOWLEDGE_SOURCE_OUTLINE_PATH, {\n x: -6,\n y: -1.5\n }, OUTLINE_STYLE);\n }\n return outline;\n};\n\n/**\n * Updates the outline for a given element.\n * Returns true if the update for the given element was handled by this provider.\n *\n * @param {Element} element\n * @param {Outline} outline\n * @returns {boolean}\n */\nOutlineProvider.prototype.updateOutline = function (element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(element, ['dmn:InputData', 'dmn:BusinessKnowledgeModel', 'dmn:KnowledgeSource'])) {\n return true;\n }\n return false;\n};\n\n// helpers //////////\n\nfunction isStandardSize(element, type) {\n var standardSize;\n if (type === 'dmn:BusinessKnowledgeModel') {\n standardSize = _OutlineUtil__WEBPACK_IMPORTED_MODULE_1__.BUSINESS_KNOWLEDGE_MODEL_STANDARD_SIZE;\n } else if (type === 'dmn:KnowledgeSource') {\n standardSize = _OutlineUtil__WEBPACK_IMPORTED_MODULE_1__.KNOWLEDGE_SOURCE_STANDARD_SIZE;\n }\n return element.width === standardSize.width && element.height === standardSize.height;\n}\n//# sourceMappingURL=OutlineProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/outline/OutlineProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/outline/OutlineUtil.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/outline/OutlineUtil.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ BUSINESS_KNOWLEDGE_MODEL_OUTLINE_PATH: () => (/* binding */ BUSINESS_KNOWLEDGE_MODEL_OUTLINE_PATH),\n/* harmony export */ BUSINESS_KNOWLEDGE_MODEL_STANDARD_SIZE: () => (/* binding */ BUSINESS_KNOWLEDGE_MODEL_STANDARD_SIZE),\n/* harmony export */ KNOWLEDGE_SOURCE_OUTLINE_PATH: () => (/* binding */ KNOWLEDGE_SOURCE_OUTLINE_PATH),\n/* harmony export */ KNOWLEDGE_SOURCE_STANDARD_SIZE: () => (/* binding */ KNOWLEDGE_SOURCE_STANDARD_SIZE),\n/* harmony export */ createPath: () => (/* binding */ createPath)\n/* harmony export */ });\n/* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tiny-svg */ \"./node_modules/tiny-svg/dist/index.esm.js\");\n\nconst BUSINESS_KNOWLEDGE_MODEL_OUTLINE_PATH = `\nM2.45221 16.0068L18.7175 1.74436L18.0615 0.996331L18.7175 1.74436C19.2646 1.26455 19.9676 \n1 20.6953 1H140.926C142.583 1 143.926 2.34295 143.926 3.99967L143.93 37.5457C143.93 \n38.3668 143.593 39.152 142.999 39.7183L143.689 40.4424L142.999 39.7183L127.299 \n54.6723C126.741 55.2036 126 55.5 125.23 55.5H4.53787C2.88599 55.5 1.54491 54.1646 1.5379 \n52.5127L1.43066 27.229L1.43065 27.2248L1.4301 18.2626C1.43005 \n17.3986 1.80255 16.5765 2.45221 16.0068Z\n`;\nconst KNOWLEDGE_SOURCE_OUTLINE_PATH = `\nM1.79494 63.0032L1.2941 63.6423L1.79493 63.0032C1.71778 62.9427 1.6428 62.8741 1.57288 \n62.8L1.01736 63.3241L1.57288 62.8C1.20495 62.41 1 61.8941 1 61.3579V2.65067C1 1.74066 \n1.73867 1.00345 2.64868 1.00526L108.006 1.2145C109.66 1.21778 111 2.55996 111 \n4.21449V21.7015V61.6762C111 63.3188 109.679 64.656 108.037 64.676L107.06 64.6879C106.66 \n64.6927 106.26 64.6165 105.89 64.4652C105.04 64.1176 104.222 63.78 103.43 \n63.4531C93.4866 59.3517 87.6891 56.9603 76.3991 58.1057C71.7035 58.5821 66.8747 60.74 \n61.5721 63.1744C61.3243 63.2881 61.0753 63.4026 60.825 63.5177C55.6712 65.8868 49.9696 \n68.5077 43.2365 70.3468C31.101 73.6617 15.2135 73.5179 1.79494 63.0032Z\n`;\n\n/**\n * @type {Dimensions}\n */\nconst BUSINESS_KNOWLEDGE_MODEL_STANDARD_SIZE = {\n width: 135,\n height: 46\n};\n\n/**\n * @type {Dimensions}\n */\nconst KNOWLEDGE_SOURCE_STANDARD_SIZE = {\n width: 100,\n height: 63\n};\n\n/**\n * Create a path element with given attributes.\n * @param {string} path\n * @param {Object} attrs\n * @param {Object} OUTLINE_STYLE\n * @return {SVGElement}\n */\nfunction createPath(path, attrs, OUTLINE_STYLE) {\n return (0,tiny_svg__WEBPACK_IMPORTED_MODULE_0__.create)('path', {\n d: path,\n strokeWidth: 2,\n transform: `translate(${attrs.x}, ${attrs.y})`,\n ...OUTLINE_STYLE\n });\n}\n//# sourceMappingURL=OutlineUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/outline/OutlineUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/outline/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/outline/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_outline__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/outline */ \"./node_modules/diagram-js/lib/features/outline/index.js\");\n/* harmony import */ var _OutlineProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OutlineProvider */ \"./node_modules/dmn-js-drd/lib/features/outline/OutlineProvider.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_outline__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['outlineProvider'],\n outlineProvider: ['type', _OutlineProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/outline/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/palette/PaletteProvider.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/palette/PaletteProvider.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PaletteProvider)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * A palette provider for DMN elements.\n */\nfunction PaletteProvider(palette, create, elementFactory, handTool, lassoTool, translate) {\n this._palette = palette;\n this._create = create;\n this._elementFactory = elementFactory;\n this._handTool = handTool;\n this._lassoTool = lassoTool;\n this._translate = translate;\n palette.registerProvider(this);\n}\nPaletteProvider.$inject = ['palette', 'create', 'elementFactory', 'handTool', 'lassoTool', 'translate'];\nPaletteProvider.prototype.getPaletteEntries = function (element) {\n var actions = {},\n create = this._create,\n elementFactory = this._elementFactory,\n handTool = this._handTool,\n lassoTool = this._lassoTool,\n translate = this._translate;\n function createAction(type, group, className, title, options) {\n function createListener(event) {\n var shape = elementFactory.createShape((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({\n type: type\n }, options));\n create.start(event, shape);\n }\n return {\n group: group,\n className: className,\n title: title,\n action: {\n dragstart: createListener,\n click: createListener\n }\n };\n }\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(actions, {\n 'hand-tool': {\n group: 'tools',\n className: 'dmn-icon-hand-tool',\n title: translate('Activate hand tool'),\n action: {\n click: function (event) {\n handTool.activateHand(event);\n }\n }\n },\n 'lasso-tool': {\n group: 'tools',\n className: 'dmn-icon-lasso-tool',\n title: translate('Activate lasso tool'),\n action: {\n click: function (event) {\n lassoTool.activateSelection(event);\n }\n }\n },\n 'tool-separator': {\n group: 'tools',\n separator: true\n },\n 'create.decision': createAction('dmn:Decision', 'drd', 'dmn-icon-decision', translate('Create decision')),\n 'create.input-data': createAction('dmn:InputData', 'drd', 'dmn-icon-input-data', translate('Create input data')),\n 'create.knowledge-source': createAction('dmn:KnowledgeSource', 'drd', 'dmn-icon-knowledge-source', translate('Create knowledge source')),\n 'create.business-knowledge-model': createAction('dmn:BusinessKnowledgeModel', 'drd', 'dmn-icon-business-knowledge', translate('Create knowledge model'))\n });\n return actions;\n};\n//# sourceMappingURL=PaletteProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/palette/PaletteProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/palette/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/palette/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var diagram_js_lib_features_palette__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/features/palette */ \"./node_modules/diagram-js/lib/features/palette/index.js\");\n/* harmony import */ var diagram_js_lib_features_create__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/features/create */ \"./node_modules/diagram-js/lib/features/create/index.js\");\n/* harmony import */ var diagram_js_lib_features_lasso_tool__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! diagram-js/lib/features/lasso-tool */ \"./node_modules/diagram-js/lib/features/lasso-tool/index.js\");\n/* harmony import */ var diagram_js_lib_features_hand_tool__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! diagram-js/lib/features/hand-tool */ \"./node_modules/diagram-js/lib/features/hand-tool/index.js\");\n/* harmony import */ var _PaletteProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PaletteProvider */ \"./node_modules/dmn-js-drd/lib/features/palette/PaletteProvider.js\");\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_features_palette__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_features_create__WEBPACK_IMPORTED_MODULE_3__[\"default\"], diagram_js_lib_features_lasso_tool__WEBPACK_IMPORTED_MODULE_4__[\"default\"], diagram_js_lib_features_hand_tool__WEBPACK_IMPORTED_MODULE_5__[\"default\"]],\n __init__: ['paletteProvider'],\n paletteProvider: ['type', _PaletteProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/palette/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/popup-menu/ReplaceMenuProvider.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/popup-menu/ReplaceMenuProvider.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ReplaceMenuProvider)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _replace_ReplaceOptions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../replace/ReplaceOptions */ \"./node_modules/dmn-js-drd/lib/features/replace/ReplaceOptions.js\");\n\n\n\n\n/**\n * This module is an element agnostic replace menu provider for the popup menu.\n */\nfunction ReplaceMenuProvider(popupMenu, modeling, moddle, drdReplace, rules, translate) {\n this._popupMenu = popupMenu;\n this._modeling = modeling;\n this._moddle = moddle;\n this._drdReplace = drdReplace;\n this._rules = rules;\n this._translate = translate;\n this.register();\n}\nReplaceMenuProvider.$inject = ['popupMenu', 'modeling', 'moddle', 'drdReplace', 'rules', 'translate'];\n\n/**\n * Register replace menu provider in the popup menu\n */\nReplaceMenuProvider.prototype.register = function () {\n this._popupMenu.registerProvider('dmn-replace', this);\n};\n\n/**\n * Get all entries from replaceOptions for the given element.\n *\n * @param {djs.model.Base} element\n *\n * @return {Array} a list of menu entry items\n */\nReplaceMenuProvider.prototype.getEntries = function (element) {\n var businessObject = element.businessObject;\n var rules = this._rules,\n options,\n boxedExpression;\n if (!rules.allowed('shape.replace', {\n element: element\n })) {\n return [];\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:Decision')) {\n boxedExpression = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBoxedExpression)(businessObject);\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.filter)(_replace_ReplaceOptions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].DECISION, function (option) {\n var notEmpty = option.actionName === 'replace-with-empty-decision' && boxedExpression;\n var notTable = option.actionName === 'replace-with-decision-table' && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(boxedExpression, 'dmn:DecisionTable');\n var notExp = option.actionName === 'replace-with-literal-expression' && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(boxedExpression, 'dmn:LiteralExpression');\n return notEmpty || notTable || notExp;\n });\n return this._createEntries(element, options);\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(businessObject, 'dmn:BusinessKnowledgeModel')) {\n boxedExpression = (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBoxedExpression)(businessObject);\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.filter)(_replace_ReplaceOptions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].BKM, function (option) {\n var notEmpty = option.actionName === 'replace-with-empty' && boxedExpression;\n var notTable = option.actionName === 'replace-with-decision-table' && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(boxedExpression, 'dmn:DecisionTable');\n var notExp = option.actionName === 'replace-with-literal-expression' && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(boxedExpression, 'dmn:LiteralExpression');\n return notEmpty || notTable || notExp;\n });\n return this._createEntries(element, options);\n }\n return [];\n};\n\n/**\n * Creates an array of menu entry objects for a given element.\n *\n * @param {djs.model.Base} element\n * @param {Object} replaceOptions\n *\n * @return {Array} a list of menu items\n */\nReplaceMenuProvider.prototype._createEntries = function (element, replaceOptions) {\n var menuEntries = [];\n var self = this;\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(replaceOptions, function (definition) {\n var entry = self._createMenuEntry(definition, element);\n menuEntries.push(entry);\n });\n return menuEntries;\n};\n\n/**\n * Creates and returns a single menu entry item.\n *\n * @param {Object} definition a single replace options definition object\n * @param {djs.model.Base} element\n * @param {Function} [action] an action callback function which gets called when\n * the menu entry is being triggered.\n *\n * @return {Object} menu entry item\n */\nReplaceMenuProvider.prototype._createMenuEntry = function (definition, element, action) {\n var replaceElement = this._drdReplace.replaceElement;\n var translate = this._translate;\n var replaceAction = function () {\n return replaceElement(element, definition.target);\n };\n action = action || replaceAction;\n var menuEntry = {\n label: translate(definition.label),\n className: definition.className,\n id: definition.actionName,\n action: action\n };\n return menuEntry;\n};\nReplaceMenuProvider.prototype.getHeaderEntries = function (element) {\n return [];\n};\n//# sourceMappingURL=ReplaceMenuProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/popup-menu/ReplaceMenuProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/popup-menu/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/popup-menu/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var diagram_js_lib_features_popup_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/features/popup-menu */ \"./node_modules/diagram-js/lib/features/popup-menu/index.js\");\n/* harmony import */ var _replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../replace */ \"./node_modules/dmn-js-drd/lib/features/replace/index.js\");\n/* harmony import */ var _ReplaceMenuProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ReplaceMenuProvider */ \"./node_modules/dmn-js-drd/lib/features/popup-menu/ReplaceMenuProvider.js\");\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__[\"default\"], diagram_js_lib_features_popup_menu__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _replace__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['replaceMenuProvider'],\n replaceMenuProvider: ['type', _ReplaceMenuProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/popup-menu/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/replace/DrdReplace.js": +/*!********************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/replace/DrdReplace.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdReplace)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n/**\n * This module takes care of replacing DRD elements\n */\nfunction DrdReplace(drdFactory, replace, selection, modeling) {\n /**\n * Prepares a new business object for the replacement element\n * and triggers the replace operation.\n *\n * @param {djs.model.Base} element\n * @param {Object} target\n * @param {Object} [hints]\n *\n * @return {djs.model.Base} the newly created element\n */\n function replaceElement(element, target, hints) {\n hints = hints || {};\n var type = target.type,\n oldBusinessObject = element.businessObject;\n var newBusinessObject = drdFactory.create(type);\n var newElement = {\n type: type,\n businessObject: newBusinessObject\n };\n newElement.width = element.width;\n newElement.height = element.height;\n newBusinessObject.name = oldBusinessObject.name;\n if (target.table) {\n var table = drdFactory.create('dmn:DecisionTable');\n table.$parent = newBusinessObject;\n var output = drdFactory.create('dmn:OutputClause');\n output.typeRef = 'string';\n output.$parent = table;\n table.output = [output];\n var input = drdFactory.create('dmn:InputClause');\n input.$parent = table;\n var inputExpression = drdFactory.create('dmn:LiteralExpression', {\n typeRef: 'string'\n });\n input.inputExpression = inputExpression;\n inputExpression.$parent = input;\n table.input = [input];\n setBoxedExpression(newBusinessObject, table, drdFactory);\n }\n if (target.expression) {\n var literalExpression = drdFactory.create('dmn:LiteralExpression'),\n variable = drdFactory.create('dmn:InformationItem');\n setBoxedExpression(newBusinessObject, literalExpression, drdFactory, variable);\n }\n return replace.replaceElement(element, newElement, hints);\n }\n this.replaceElement = replaceElement;\n}\nDrdReplace.$inject = ['drdFactory', 'replace', 'selection', 'modeling'];\n\n// helper //////////////////////////////////////////////////////////////\nfunction setBoxedExpression(bo, expression, drdFactory, variable) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(bo, 'dmn:Decision')) {\n bo.decisionLogic = expression;\n expression.$parent = bo;\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(bo, 'dmn:BusinessKnowledgeModel')) {\n var encapsulatedLogic = drdFactory.create('dmn:FunctionDefinition', {\n body: expression\n });\n bo.encapsulatedLogic = encapsulatedLogic;\n encapsulatedLogic.$parent = bo;\n expression.$parent = encapsulatedLogic;\n }\n if (variable) {\n bo.variable = variable;\n variable.$parent = bo;\n }\n}\n//# sourceMappingURL=DrdReplace.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/replace/DrdReplace.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/replace/ReplaceOptions.js": +/*!************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/replace/ReplaceOptions.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n DECISION: [{\n label: 'Empty',\n actionName: 'replace-with-empty-decision',\n className: 'dmn-icon-clear',\n target: {\n type: 'dmn:Decision',\n table: false,\n expression: false\n }\n }, {\n label: 'Decision table',\n actionName: 'replace-with-decision-table',\n className: 'dmn-icon-decision-table',\n target: {\n type: 'dmn:Decision',\n table: true,\n expression: false\n }\n }, {\n label: 'Literal expression',\n actionName: 'replace-with-literal-expression',\n className: 'dmn-icon-literal-expression',\n target: {\n type: 'dmn:Decision',\n table: false,\n expression: true\n }\n }],\n BKM: [{\n label: 'Empty',\n actionName: 'replace-with-empty',\n className: 'dmn-icon-clear',\n target: {\n type: 'dmn:BusinessKnowledgeModel',\n table: false,\n expression: false\n }\n }, {\n label: 'Literal Expression',\n actionName: 'replace-with-literal-expression',\n className: 'dmn-icon-literal-expression',\n target: {\n type: 'dmn:BusinessKnowledgeModel',\n table: false,\n expression: true\n }\n }]\n});\n//# sourceMappingURL=ReplaceOptions.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/replace/ReplaceOptions.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/replace/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/replace/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/replace */ \"./node_modules/diagram-js/lib/features/replace/index.js\");\n/* harmony import */ var diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/features/selection */ \"./node_modules/diagram-js/lib/features/selection/index.js\");\n/* harmony import */ var _DrdReplace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdReplace */ \"./node_modules/dmn-js-drd/lib/features/replace/DrdReplace.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_replace__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_features_selection__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n drdReplace: ['type', _DrdReplace__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/replace/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/rules/DrdRules.js": +/*!****************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/rules/DrdRules.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdRules),\n/* harmony export */ isLabel: () => (/* binding */ isLabel)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var inherits_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inherits-browser */ \"./node_modules/inherits-browser/dist/index.es.js\");\n/* harmony import */ var diagram_js_lib_features_rules_RuleProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/rules/RuleProvider */ \"./node_modules/diagram-js/lib/features/rules/RuleProvider.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\n/**\n * DRD modeling rules.\n */\nfunction DrdRules(injector) {\n injector.invoke(diagram_js_lib_features_rules_RuleProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"], this);\n}\n(0,inherits_browser__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(DrdRules, diagram_js_lib_features_rules_RuleProvider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\nDrdRules.$inject = ['injector'];\nDrdRules.prototype.init = function () {\n this.addRule('connection.create', function (context) {\n var source = context.source,\n target = context.target;\n return canConnect(source, target);\n });\n this.addRule('connection.reconnect', function (context) {\n var connection = context.connection,\n source = context.source,\n target = context.target;\n return canConnect(source, target, connection);\n });\n this.addRule('connection.updateWaypoints', function (context) {\n const connection = context.connection;\n return {\n type: connection.type,\n businessObject: connection.businessObject\n };\n });\n this.addRule('elements.move', function (context) {\n var target = context.target,\n shapes = context.shapes,\n position = context.position;\n return canMove(shapes, target, position);\n });\n this.addRule('shape.create', function (context) {\n var shape = context.shape,\n target = context.target;\n return canCreate(shape, target);\n });\n this.addRule('shape.resize', function (context) {\n var shape = context.shape;\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(shape, 'dmn:TextAnnotation');\n });\n};\nDrdRules.prototype.canConnect = canConnect;\nDrdRules.prototype.canCreate = canCreate;\nDrdRules.prototype.canMove = canMove;\nfunction canConnect(source, target) {\n if (!source || isLabel(source) || !target || isLabel(target)) {\n return null;\n }\n if (source === target) {\n return false;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:BusinessKnowledgeModel') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(target, ['dmn:BusinessKnowledgeModel', 'dmn:Decision'])) {\n return {\n type: 'dmn:KnowledgeRequirement'\n };\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:Decision')) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:Decision')) {\n return {\n type: 'dmn:InformationRequirement'\n };\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:KnowledgeSource')) {\n return {\n type: 'dmn:AuthorityRequirement'\n };\n }\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:Definitions') || (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:Definitions')) {\n return false;\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:InputData')) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:Decision')) {\n return {\n type: 'dmn:InformationRequirement'\n };\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:KnowledgeSource')) {\n return {\n type: 'dmn:AuthorityRequirement'\n };\n }\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:KnowledgeSource') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(target, ['dmn:BusinessKnowledgeModel', 'dmn:Decision', 'dmn:KnowledgeSource'])) {\n return {\n type: 'dmn:AuthorityRequirement'\n };\n }\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:TextAnnotation') && !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:TextAnnotation') || !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(source, 'dmn:TextAnnotation') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:TextAnnotation')) {\n return {\n type: 'dmn:Association'\n };\n }\n return false;\n}\nfunction canCreate(shape, target) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(shape, ['dmn:BusinessKnowledgeModel', 'dmn:Decision', 'dmn:InputData', 'dmn:KnowledgeSource', 'dmn:TextAnnotation']) && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:Definitions');\n}\nfunction canMove(elements, target) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isArray)(elements)) {\n elements = [elements];\n }\n\n // allow default move check to start move operation\n if (!target) {\n return true;\n }\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_3__.every)(elements, function (element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(element, ['dmn:BusinessKnowledgeModel', 'dmn:Decision', 'dmn:InputData', 'dmn:KnowledgeSource', 'dmn:TextAnnotation', 'dmn:InformationRequirement', 'dmn:AuthorityRequirement', 'dmn:KnowledgeRequirement', 'dmn:Association']);\n }) && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(target, 'dmn:Definitions')) {\n return true;\n }\n return false;\n}\nfunction isLabel(element) {\n return !!element.labelTarget;\n}\n//# sourceMappingURL=DrdRules.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/rules/DrdRules.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/rules/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/rules/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/rules */ \"./node_modules/diagram-js/lib/features/rules/index.js\");\n/* harmony import */ var _DrdRules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdRules */ \"./node_modules/dmn-js-drd/lib/features/rules/DrdRules.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_rules__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['drdRules'],\n drdRules: ['type', _DrdRules__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/rules/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/search/DmnSearchProvider.js": +/*!**************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/search/DmnSearchProvider.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DmnSearchProvider)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _label_editing_LabelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../label-editing/LabelUtil */ \"./node_modules/dmn-js-drd/lib/features/label-editing/LabelUtil.js\");\n\n\n\n/**\n * @typedef {import('diagram-js/lib/core/Canvas').default} Canvas\n * @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry\n * @typedef {import('diagram-js/lib/features/search-pad/SearchPad').default} SearchPad\n *\n * @typedef {import('diagram-js/lib/features/search-pad/SearchPadProvider').default\n * } SearchPadProvider\n * @typedef {import('diagram-js/lib/features/search-pad/SearchPadProvider').SearchResult\n * } SearchResult\n */\n\n/**\n * Provides ability to search for DMN elements.\n *\n * @implements {SearchPadProvider}\n *\n * @param {ElementRegistry} elementRegistry\n * @param {SearchPad} searchPad\n * @param {Canvas} canvas\n */\nfunction DmnSearchProvider(elementRegistry, searchPad, canvas) {\n this._elementRegistry = elementRegistry;\n this._canvas = canvas;\n searchPad.registerProvider(this);\n}\nDmnSearchProvider.$inject = ['elementRegistry', 'searchPad', 'canvas'];\n\n/**\n * @param {string} pattern\n *\n * @return {SearchResult[]}\n */\nDmnSearchProvider.prototype.find = function (pattern) {\n const rootElement = this._canvas.getRootElement();\n let elements = this._elementRegistry.filter(function (element) {\n if (element.labelTarget) {\n return false;\n }\n return true;\n });\n\n // do not include root element\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(elements, function (element) {\n return element !== rootElement;\n });\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.map)(elements, function (element) {\n return {\n primaryTokens: matchAndSplit((0,_label_editing_LabelUtil__WEBPACK_IMPORTED_MODULE_0__.getLabel)(element), pattern),\n secondaryTokens: matchAndSplit(element.id, pattern),\n element: element\n };\n });\n\n // exclude non-matched elements\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(elements, function (element) {\n return hasMatched(element.primaryTokens) || hasMatched(element.secondaryTokens);\n });\n elements = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.sortBy)(elements, function (element) {\n return (0,_label_editing_LabelUtil__WEBPACK_IMPORTED_MODULE_0__.getLabel)(element.element) + element.element.id;\n });\n return elements;\n};\n\n/**\n * @param {Token[]} tokens\n *\n * @return {boolean}\n */\nfunction hasMatched(tokens) {\n const matched = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.filter)(tokens, function (token) {\n return !!token.matched;\n });\n return matched.length > 0;\n}\n\n/**\n * @param {string} text\n * @param {string} pattern\n *\n * @return {Token[]}\n */\nfunction matchAndSplit(text, pattern) {\n const tokens = [],\n originalText = text;\n if (!text) {\n return tokens;\n }\n text = text.toLowerCase();\n pattern = pattern.toLowerCase();\n const i = text.indexOf(pattern);\n if (i > -1) {\n if (i !== 0) {\n tokens.push({\n normal: originalText.substr(0, i)\n });\n }\n tokens.push({\n matched: originalText.substr(i, pattern.length)\n });\n if (pattern.length + i < text.length) {\n tokens.push({\n normal: originalText.substr(pattern.length + i, text.length)\n });\n }\n } else {\n tokens.push({\n normal: originalText\n });\n }\n return tokens;\n}\n//# sourceMappingURL=DmnSearchProvider.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/search/DmnSearchProvider.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/search/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/search/index.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_search_pad__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/features/search-pad */ \"./node_modules/diagram-js/lib/features/search-pad/index.js\");\n/* harmony import */ var _DmnSearchProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DmnSearchProvider */ \"./node_modules/dmn-js-drd/lib/features/search/DmnSearchProvider.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_search_pad__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n __init__: ['dmnSearch'],\n dmnSearch: ['type', _DmnSearchProvider__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/search/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/snapping/DrdBendpointSnapping.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/snapping/DrdBendpointSnapping.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdBendpointSnapping)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nvar RECONNECT_START = 'reconnectStart',\n RECONNECT_END = 'reconnectEnd';\nvar HIGH_PRIORITY = 2000;\nfunction DrdBendpointSnapping(eventBus) {\n eventBus.on(['bendpoint.move.move', 'bendpoint.move.end'], HIGH_PRIORITY, function (event) {\n var context = event.context,\n allowed = context.allowed,\n hover = context.hover,\n source = context.source,\n target = context.target,\n type = context.type;\n if (!context.hints) {\n context.hints = {};\n }\n delete context.hints.connectionStart;\n delete context.hints.connectionEnd;\n if (allowed && allowed.type !== 'dmn:InformationRequirement') {\n return;\n }\n if (!hover || !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.isAny)(hover, ['dmn:Decision', 'dmn:InputData'])) {\n return;\n }\n if (source === target) {\n return;\n }\n var reconnect = type === RECONNECT_START || type === RECONNECT_END;\n var orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getOrientation)(source, target);\n if (reconnect && hover === source) {\n // (1) snap event to source\n snapToSource(event, orientation);\n\n // (2) set connection end to target\n context.hints.connectionEnd = getConnectionEnd(target, orientation);\n } else if (reconnect && hover === target) {\n // (1) set connection start to source\n context.hints.connectionStart = getConnectionStart(source, orientation);\n\n // (2) snap event to target\n snapToTarget(event, orientation);\n }\n });\n}\nDrdBendpointSnapping.$inject = ['eventBus'];\n\n// helpers //////////\n\nfunction getConnectionStart(source, orientation) {\n var sourceTrbl = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(source);\n var connectionStart = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(source);\n if (orientation.includes('bottom')) {\n connectionStart.y = sourceTrbl.top;\n } else if (orientation.includes('top')) {\n connectionStart.y = sourceTrbl.bottom;\n } else if (orientation.includes('right')) {\n connectionStart.x = sourceTrbl.left;\n } else {\n connectionStart.x = sourceTrbl.right;\n }\n return connectionStart;\n}\nfunction getConnectionEnd(target, orientation) {\n var targetTrbl = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.asTRBL)(target);\n var connectionEnd = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_1__.getMid)(target);\n if (orientation.includes('bottom')) {\n connectionEnd.y = targetTrbl.bottom;\n } else if (orientation.includes('top')) {\n connectionEnd.y = targetTrbl.top;\n } else if (orientation.includes('right')) {\n connectionEnd.x = targetTrbl.right;\n } else {\n connectionEnd.x = targetTrbl.left;\n }\n return connectionEnd;\n}\nfunction snapToSource(event, orientation) {\n var context = event.context,\n source = context.source;\n var connectionStart = getConnectionStart(source, orientation);\n var dx = event.x - connectionStart.x,\n dy = event.y - connectionStart.y;\n event.x -= dx;\n event.y -= dy;\n event.dx -= dx;\n event.dy -= dy;\n}\nfunction snapToTarget(event, orientation) {\n var context = event.context,\n target = context.target;\n var connectionEnd = getConnectionEnd(target, orientation);\n var dx = 0,\n dy = 0;\n if (orientation.includes('top') || orientation.includes('bottom')) {\n dy = event.y - connectionEnd.y;\n } else {\n dx = event.x - connectionEnd.x;\n }\n event.x -= dx;\n event.y -= dy;\n event.dx -= dx;\n event.dy -= dy;\n}\n//# sourceMappingURL=DrdBendpointSnapping.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/snapping/DrdBendpointSnapping.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/snapping/DrdConnectSnapping.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/snapping/DrdConnectSnapping.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdConnectSnapping)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/layout/LayoutUtil */ \"./node_modules/diagram-js/lib/layout/LayoutUtil.js\");\n\nvar LOW_PRIORITY = 250;\nfunction DrdConnectSnapping(eventBus) {\n eventBus.on(['connect.hover', 'connect.move', 'connect.end'], LOW_PRIORITY, function (event) {\n var context = event.context,\n canExecute = context.canExecute,\n hover = context.hover,\n source = context.source,\n target = context.target;\n if (canExecute && canExecute.type === 'dmn:InformationRequirement') {\n var orientation = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.getOrientation)(source, target);\n\n // snap source\n context.connectionStart = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.getMid)(source);\n\n // snap target\n if (hover === source) {\n context.connectionEnd = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.getMid)(target);\n } else {\n context.connectionEnd = {\n x: event.x,\n y: event.y\n };\n }\n if (orientation.includes('bottom')) {\n context.connectionStart.y = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(source).top;\n context.connectionEnd.y = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(target).bottom;\n } else if (orientation.includes('top')) {\n context.connectionStart.y = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(source).bottom;\n context.connectionEnd.y = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(target).top;\n } else if (orientation.includes('right')) {\n context.connectionStart.x = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(source).left;\n context.connectionEnd.x = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(target).right;\n } else {\n context.connectionStart.x = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(source).right;\n context.connectionEnd.x = (0,diagram_js_lib_layout_LayoutUtil__WEBPACK_IMPORTED_MODULE_0__.asTRBL)(target).left;\n }\n } else {\n delete context.connectionStart;\n delete context.connectionEnd;\n }\n });\n}\nDrdConnectSnapping.$inject = ['eventBus'];\n//# sourceMappingURL=DrdConnectSnapping.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/snapping/DrdConnectSnapping.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/features/snapping/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/features/snapping/index.js ***! + \****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DrdBendpointSnapping__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdBendpointSnapping */ \"./node_modules/dmn-js-drd/lib/features/snapping/DrdBendpointSnapping.js\");\n/* harmony import */ var _DrdConnectSnapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DrdConnectSnapping */ \"./node_modules/dmn-js-drd/lib/features/snapping/DrdConnectSnapping.js\");\n/* harmony import */ var diagram_js_lib_features_snapping__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/features/snapping */ \"./node_modules/diagram-js/lib/features/snapping/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_snapping__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['bendpointSnapping', 'connectSnapping'],\n bendpointSnapping: ['type', _DrdBendpointSnapping__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n connectSnapping: ['type', _DrdConnectSnapping__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/features/snapping/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/import/DrdImporter.js": +/*!***********************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/import/DrdImporter.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DrdImporter)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nfunction DrdImporter(eventBus, canvas, elementFactory, elementRegistry) {\n this._eventBus = eventBus;\n this._canvas = canvas;\n this._elementRegistry = elementRegistry;\n this._elementFactory = elementFactory;\n}\nDrdImporter.$inject = ['eventBus', 'canvas', 'elementFactory', 'elementRegistry'];\nDrdImporter.prototype.root = function (semantic) {\n var element = this._elementFactory.createRoot(elementData(semantic));\n this._canvas.setRootElement(element);\n return element;\n};\n\n/**\n * Add drd element (semantic) to the canvas.\n */\nDrdImporter.prototype.add = function (semantic) {\n var elementFactory = this._elementFactory,\n canvas = this._canvas,\n eventBus = this._eventBus,\n di = semantic.di;\n var element, waypoints, source, target, elementDefinition, bounds;\n if (di.$instanceOf('dmndi:DMNShape')) {\n bounds = di.bounds;\n elementDefinition = elementData(semantic, {\n x: Math.round(bounds.x),\n y: Math.round(bounds.y),\n width: Math.round(bounds.width),\n height: Math.round(bounds.height)\n });\n element = elementFactory.createShape(elementDefinition);\n canvas.addShape(element);\n eventBus.fire('drdElement.added', {\n element: element,\n di: di\n });\n } else if (di.$instanceOf('dmndi:DMNEdge')) {\n waypoints = collectWaypoints(di);\n source = this._getSource(semantic);\n target = this._getTarget(semantic);\n if (source && target) {\n elementDefinition = elementData(semantic, {\n hidden: false,\n source: source,\n target: target,\n waypoints: waypoints\n });\n element = elementFactory.createConnection(elementDefinition);\n canvas.addConnection(element);\n eventBus.fire('drdElement.added', {\n element: element,\n di: di\n });\n }\n } else {\n throw new Error('unknown di for element ' + semantic.id);\n }\n return element;\n};\nDrdImporter.prototype._getSource = function (semantic) {\n var href, elementReference;\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:Association')) {\n elementReference = semantic.sourceRef;\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:InformationRequirement')) {\n elementReference = semantic.requiredDecision || semantic.requiredInput;\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:KnowledgeRequirement')) {\n elementReference = semantic.requiredKnowledge;\n } else if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:AuthorityRequirement')) {\n elementReference = semantic.requiredDecision || semantic.requiredInput || semantic.requiredAuthority;\n }\n if (elementReference) {\n href = elementReference.href;\n }\n if (href) {\n return this._getShape(getIdFromHref(href));\n }\n};\nDrdImporter.prototype._getTarget = function (semantic) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(semantic, 'dmn:Association')) {\n return semantic.targetRef && this._getShape(getIdFromHref(semantic.targetRef.href));\n }\n return this._getShape(semantic.$parent.id);\n};\nDrdImporter.prototype._getShape = function (id) {\n return this._elementRegistry.get(id);\n};\n\n// helper /////\nfunction elementData(semantic, attrs) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({\n id: semantic.id,\n type: semantic.$type,\n businessObject: semantic\n }, attrs);\n}\nfunction collectWaypoints(edge) {\n var waypoints = edge.waypoint;\n if (waypoints) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.map)(waypoints, function (waypoint) {\n var position = {\n x: waypoint.x,\n y: waypoint.y\n };\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({\n original: position\n }, position);\n });\n }\n}\nfunction getIdFromHref(href) {\n return href.split('#').pop();\n}\n//# sourceMappingURL=DrdImporter.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/import/DrdImporter.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/import/DrdTreeWalker.js": +/*!*************************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/import/DrdTreeWalker.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DRDTreeWalker)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var object_refs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! object-refs */ \"./node_modules/object-refs/dist/index.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nvar diRefs = new object_refs__WEBPACK_IMPORTED_MODULE_0__.Refs({\n name: 'dmnElementRef',\n enumerable: true\n}, {\n name: 'di',\n configurable: true\n});\nfunction DRDTreeWalker(handler, options) {\n // list of elements to handle deferred to ensure\n // prerequisites are drawn\n var deferred = [];\n function visit(element) {\n var gfx = element.gfx;\n\n // avoid multiple rendering of elements\n if (gfx) {\n throw new Error('already rendered ' + element.id);\n }\n\n // call handler\n return handler.element(element);\n }\n function visitRoot(element) {\n return handler.root(element);\n }\n function visitIfDi(element) {\n try {\n var gfx = element.di && visit(element);\n return gfx;\n } catch (e) {\n logError(e.message, {\n element: element,\n error: e\n });\n }\n }\n\n // Semantic handling //////////////////////\n\n /**\n * Handle definitions and return the rendered diagram (if any)\n *\n * @param {ModdleElement} definitions to walk and import\n * @param {ModdleElement} [diagram] specific diagram to import and display\n *\n * @throws {Error} if no diagram to display could be found\n */\n function handleDefinitions(definitions, diagram) {\n // make sure we walk the correct dmnElement\n var dmnDI = definitions.dmnDI;\n if (!dmnDI) {\n throw new Error('no dmndi:DMNDI');\n }\n var diagrams = dmnDI.diagrams || [];\n if (diagram && diagrams.indexOf(diagram) === -1) {\n throw new Error('diagram not part of dmndi:DMNDI');\n }\n if (!diagram && diagrams && diagrams.length) {\n diagram = diagrams[0];\n }\n\n // no diagram -> nothing to import\n if (!diagram) {\n throw new Error('no diagram to display');\n }\n\n // assign current diagram to definitions so that it can accessed later\n definitions.di = diagram;\n\n // load DI from selected diagram only\n handleDiagram(diagram);\n visitRoot(definitions);\n handleDrgElements(definitions.get('drgElement'));\n handleArtifacts(definitions.get('artifact'));\n handleDeferred();\n }\n function handleDrgElements(elements) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(elements, function (element) {\n visitIfDi(element);\n handleRequirements(element);\n });\n }\n function handleArtifacts(elements) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(elements, function (element) {\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_1__.is)(element, 'dmn:Association')) {\n handleAssociation(element);\n } else {\n visitIfDi(element);\n }\n });\n }\n\n /**\n * Defer association visit until all shapes are visited.\n *\n * @param {ModdleElement} element\n */\n function handleAssociation(element) {\n defer(function () {\n visitIfDi(element);\n });\n }\n\n /**\n * Defer requirements visiting until all shapes are visited.\n *\n * @param {ModdleElement} element\n */\n function handleRequirements(element) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(['informationRequirement', 'knowledgeRequirement', 'authorityRequirement'], function (requirements) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(element[requirements], function (requirement) {\n defer(function () {\n visitIfDi(requirement);\n });\n });\n });\n }\n\n // DI handling //////////////////////\n function handleDiagram(diagram) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(diagram.diagramElements, handleDiagramElement);\n }\n function handleDiagramElement(diagramElement) {\n registerDi(diagramElement);\n }\n function registerDi(di) {\n var dmnElement = di.dmnElementRef;\n if (dmnElement) {\n if (dmnElement.di) {\n logError('multiple DI elements defined for element', {\n element: dmnElement\n });\n } else {\n diRefs.bind(dmnElement, 'di');\n dmnElement.di = di;\n }\n } else {\n logError('no DMN element referenced in element', {\n element: di\n });\n }\n }\n function defer(fn) {\n deferred.push(fn);\n }\n function handleDeferred() {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(deferred, function (d) {\n d();\n });\n }\n function logError(message, context) {\n handler.error(message, context);\n }\n\n // API //////////////////////\n\n return {\n handleDefinitions: handleDefinitions\n };\n}\n//# sourceMappingURL=DrdTreeWalker.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/import/DrdTreeWalker.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/import/Importer.js": +/*!********************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/import/Importer.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ importDRD: () => (/* binding */ importDRD)\n/* harmony export */ });\n/* harmony import */ var _DrdTreeWalker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdTreeWalker */ \"./node_modules/dmn-js-drd/lib/import/DrdTreeWalker.js\");\n\n\n/**\n * Import the definitions into a diagram.\n *\n * Errors and warnings are reported through the specified callback.\n *\n * @param {Drd} drd\n * @param {ModdleElement} definitions\n * @param {Function} done\n * the callback, invoked with (err, [ warning ]) once the import is done\n */\nfunction importDRD(drd, definitions, done) {\n var importer = drd.get('drdImporter'),\n eventBus = drd.get('eventBus');\n var error,\n warnings = [];\n function render(definitions) {\n var visitor = {\n root: function (element) {\n return importer.root(element);\n },\n element: function (element, di) {\n return importer.add(element, di);\n },\n error: function (message, context) {\n warnings.push({\n message: message,\n context: context\n });\n }\n };\n var walker = new _DrdTreeWalker__WEBPACK_IMPORTED_MODULE_0__[\"default\"](visitor);\n\n // import\n walker.handleDefinitions(definitions);\n }\n eventBus.fire('import.start', {\n definitions: definitions\n });\n try {\n render(definitions);\n } catch (e) {\n error = e;\n }\n eventBus.fire('import.done', {\n error: error,\n warnings: warnings\n });\n done(error, warnings);\n}\n//# sourceMappingURL=Importer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/import/Importer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-drd/lib/import/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/dmn-js-drd/lib/import/index.js ***! + \*****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DrdImporter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrdImporter */ \"./node_modules/dmn-js-drd/lib/import/DrdImporter.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n drdImporter: ['type', _DrdImporter__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-drd/lib/import/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/Editor.js": +/*!**************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/Editor.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Editor)\n/* harmony export */ });\n/* harmony import */ var _bpmn_io_dmn_variable_resolver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bpmn-io/dmn-variable-resolver */ \"./node_modules/@bpmn-io/dmn-variable-resolver/lib/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/features/data-types */ \"./node_modules/dmn-js-shared/lib/features/data-types/index.js\");\n/* harmony import */ var _Viewer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Viewer */ \"./node_modules/dmn-js-literal-expression/lib/Viewer.js\");\n/* harmony import */ var _features_decision_properties_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/decision-properties/editor */ \"./node_modules/dmn-js-literal-expression/lib/features/decision-properties/editor.js\");\n/* harmony import */ var _features_keyboard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/keyboard */ \"./node_modules/dmn-js-literal-expression/lib/features/keyboard/index.js\");\n/* harmony import */ var _features_literal_expression_properties_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/literal-expression-properties/editor */ \"./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/editor.js\");\n/* harmony import */ var _features_modeling__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./features/modeling */ \"./node_modules/dmn-js-literal-expression/lib/features/modeling/index.js\");\n/* harmony import */ var _features_textarea_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./features/textarea/editor */ \"./node_modules/dmn-js-literal-expression/lib/features/textarea/editor.js\");\n\n\n\n\n\n\n\n\n\nclass Editor extends _Viewer__WEBPACK_IMPORTED_MODULE_3__[\"default\"] {\n getModules() {\n return [..._Viewer__WEBPACK_IMPORTED_MODULE_3__[\"default\"]._getModules(), ...Editor._getModules()];\n }\n static _getModules() {\n return [_features_decision_properties_editor__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_keyboard__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_literal_expression_properties_editor__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _features_modeling__WEBPACK_IMPORTED_MODULE_7__[\"default\"], dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_1__[\"default\"], dmn_js_shared_lib_features_data_types__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _features_textarea_editor__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _bpmn_io_dmn_variable_resolver__WEBPACK_IMPORTED_MODULE_0__.DmnVariableResolverModule];\n }\n}\n//# sourceMappingURL=Editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/Editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/Viewer.js": +/*!**************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/Viewer.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_base_viewer_Viewer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/base/viewer/Viewer */ \"./node_modules/dmn-js-shared/lib/base/viewer/Viewer.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core */ \"./node_modules/dmn-js-literal-expression/lib/core/index.js\");\n/* harmony import */ var _features_decision_properties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./features/decision-properties */ \"./node_modules/dmn-js-literal-expression/lib/features/decision-properties/index.js\");\n/* harmony import */ var _features_literal_expression_properties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./features/literal-expression-properties */ \"./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/index.js\");\n/* harmony import */ var _features_powered_by__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./features/powered-by */ \"./node_modules/dmn-js-literal-expression/lib/features/powered-by/index.js\");\n/* harmony import */ var _features_textarea__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./features/textarea */ \"./node_modules/dmn-js-literal-expression/lib/features/textarea/index.js\");\n/* harmony import */ var _features_view_drd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./features/view-drd */ \"./node_modules/dmn-js-literal-expression/lib/features/view-drd/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @typedef {import('dmn-js-shared/lib/base/View).OpenResult} OpenResult\r\n */\n\n/**\r\n * @typedef {import('dmn-js-shared/lib/base/View).OpenError} OpenError\r\n */\n\nclass Viewer extends dmn_js_shared_lib_base_viewer_Viewer__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor(options = {}) {\n const container = Viewer._createContainer();\n super((0,min_dash__WEBPACK_IMPORTED_MODULE_7__.assign)(options, {\n renderer: {\n container\n }\n }));\n this._container = container;\n }\n\n /**\r\n * Open diagram element.\r\n *\r\n * @param {ModdleElement} decision\r\n * @returns {Promise} Resolves with {OpenResult} when successful\r\n * or rejects with {OpenError}\r\n */\n open(decision) {\n var self = this;\n return new Promise(function (resolve, reject) {\n var err;\n\n // use try/catch to not swallow synchronous exceptions\n // that may be raised during model parsing\n try {\n if (self._decision) {\n // clear existing literal expression\n self.clear();\n\n // unmount first\n self.get('eventBus').fire('renderer.unmount');\n }\n\n // update literal expression\n self._decision = decision;\n\n // let others know about import\n self.get('eventBus').fire('import', decision);\n self.get('eventBus').fire('renderer.mount');\n } catch (e) {\n err = e;\n }\n\n // handle synchronously thrown exception\n if (err) {\n err.warnings = err.warnings || [];\n reject(err);\n } else {\n resolve({\n warnings: []\n });\n }\n });\n }\n\n /**\r\n * Initialize the literal expression, returning { modules: [], config }.\r\n *\r\n * @param {Object} options\r\n *\r\n * @return {Object} init config\r\n */\n _init(options) {\n let {\n modules,\n additionalModules,\n ...config\n } = options;\n let baseModules = modules || this.getModules();\n let extraModules = additionalModules || [];\n let staticModules = [{\n viewer: ['value', this]\n }];\n let allModules = [...baseModules, ...extraModules, ...staticModules];\n return {\n modules: allModules,\n config\n };\n }\n\n /**\r\n * Register an event listener\r\n *\r\n * Remove a previously added listener via {@link #off(event, callback)}.\r\n *\r\n * @param {string} event\r\n * @param {number} [priority]\r\n * @param {Function} callback\r\n * @param {Object} [that]\r\n */\n on(event, priority, callback, target) {\n return this.get('eventBus').on(event, priority, callback, target);\n }\n\n /**\r\n * De-register an event listener\r\n *\r\n * @param {string} event\r\n * @param {Function} callback\r\n */\n off(event, callback) {\n this.get('eventBus').off(event, callback);\n }\n\n /**\r\n * Emit an event on the underlying {@link EventBus}\r\n *\r\n * @param {string} type\r\n * @param {Object} event\r\n *\r\n * @return {Object} event processing result (if any)\r\n */\n _emit(type, event) {\n return this.get('eventBus').fire(type, event);\n }\n\n /**\r\n * Returns the currently displayed decision.\r\n *\r\n * @return {ModdleElement}\r\n */\n getDecision() {\n return this._decision;\n }\n\n /**\r\n * Attach viewer to given parent node.\r\n *\r\n * @param {Element} parentNode\r\n */\n attachTo(parentNode) {\n if (!parentNode) {\n throw new Error('parentNode required');\n }\n\n // ensure we detach from the\n // previous, old parent\n this.detach();\n parentNode.appendChild(this._container);\n this._emit('attach', {});\n }\n\n /**\r\n * Detach viewer from parent node, if attached.\r\n */\n detach() {\n const container = this._container,\n parentNode = container.parentNode;\n if (!parentNode) {\n return;\n }\n this._emit('detach', {});\n (0,min_dom__WEBPACK_IMPORTED_MODULE_8__.remove)(container);\n }\n destroy() {\n super.destroy();\n this.detach();\n }\n getModules() {\n return Viewer._getModules();\n }\n static _getModules() {\n return [_core__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_9__[\"default\"], _features_decision_properties__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _features_literal_expression_properties__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _features_powered_by__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _features_textarea__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _features_view_drd__WEBPACK_IMPORTED_MODULE_6__[\"default\"]];\n }\n static _createContainer() {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_8__.domify)('
');\n }\n}\n//# sourceMappingURL=Viewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/Viewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/core/ElementRegistry.js": +/*!****************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/core/ElementRegistry.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementRegistry)\n/* harmony export */ });\n/**\n * A single decision element registry.\n *\n * The sole purpose of this service is to provide the necessary API\n * to serve shared components, i.e. the UpdatePropertiesHandler.\n */\nclass ElementRegistry {\n constructor(viewer, eventBus) {\n this._eventBus = eventBus;\n this._viewer = viewer;\n }\n getDecision() {\n return this._viewer.getDecision();\n }\n updateId(element, newId) {\n var decision = this.getDecision();\n if (element !== decision) {\n throw new Error('element !== decision');\n }\n this._eventBus.fire('element.updateId', {\n element: element,\n newId: newId\n });\n element.id = newId;\n }\n}\nElementRegistry.$inject = ['viewer', 'eventBus'];\n//# sourceMappingURL=ElementRegistry.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/core/ElementRegistry.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/core/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/core/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementRegistry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ElementRegistry */ \"./node_modules/dmn-js-literal-expression/lib/core/ElementRegistry.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['elementRegistry'],\n elementRegistry: ['type', _ElementRegistry__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/core/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionProperties.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionProperties.js ***! + \*******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionProperties)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionPropertiesComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionPropertiesComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesComponent.js\");\n\nconst HIGH_PRIORITY = 1500;\nclass DecisionProperties {\n constructor(components) {\n components.onGetComponent('viewer', HIGH_PRIORITY, () => _components_DecisionPropertiesComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n }\n}\nDecisionProperties.$inject = ['components'];\n//# sourceMappingURL=DecisionProperties.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionProperties.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionPropertiesEditor.js": +/*!*************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionPropertiesEditor.js ***! + \*************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionPropertiesEditor)\n/* harmony export */ });\n/* harmony import */ var _components_DecisionPropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DecisionPropertiesEditorComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesEditorComponent.js\");\n\nconst HIGH_PRIORITY = 1500;\nclass DecisionPropertiesEditor {\n constructor(components) {\n components.onGetComponent('viewer', HIGH_PRIORITY, () => {\n return _components_DecisionPropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n }\n}\nDecisionPropertiesEditor.$inject = ['components'];\n//# sourceMappingURL=DecisionPropertiesEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionPropertiesEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesComponent.js": +/*!***************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesComponent.js ***! + \***************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionPropertiesComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass DecisionPropertiesComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._viewer = context.injector.get('viewer');\n }\n render() {\n // there is only one single element\n const {\n name\n } = this._viewer.getDecision();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"decision-properties\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", \"decision-name\", name, 0), 2);\n }\n}\n//# sourceMappingURL=DecisionPropertiesComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesEditorComponent.js": +/*!*********************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesEditorComponent.js ***! + \*********************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionPropertiesEditorComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/EditableComponent */ \"./node_modules/dmn-js-shared/lib/components/EditableComponent.js\");\n\n\n\nclass DecisionPropertiesEditorComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._viewer = context.injector.get('viewer');\n this._modeling = context.injector.get('modeling');\n this._translate = context.injector.get('translate');\n this.setupChangeListeners({\n bind: this.getDecision().id\n });\n }\n componentWillUnmount() {\n this.setupChangeListeners({\n unbind: this.getDecision().id\n });\n }\n getDecision() {\n return this._viewer.getDecision();\n }\n onElementsChanged = () => {\n this.forceUpdate();\n };\n setupChangeListeners({\n bind,\n unbind\n }) {\n const {\n changeSupport\n } = this.context;\n if (typeof unbind === 'string') {\n changeSupport.offElementsChanged(unbind, this.onElementsChanged);\n }\n if (typeof bind === 'string') {\n changeSupport.onElementsChanged(bind, this.onElementsChanged);\n }\n }\n setDecisionName = name => {\n this._modeling.editDecisionName(name);\n };\n render() {\n const {\n name\n } = this.getDecision();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"header\", \"decision-properties\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, DecisionName, {\n \"label\": this._translate('Decision name'),\n \"className\": \"decision-name editor\",\n \"value\": name,\n \"onBlur\": resetScroll,\n \"onChange\": this.setDecisionName\n }), 2);\n }\n}\nclass DecisionName extends dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h3\", this.getClassName(), this.getEditor(), 0);\n }\n}\nfunction resetScroll(event) {\n event.target.scroll(0, 0);\n}\n//# sourceMappingURL=DecisionPropertiesEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/decision-properties/components/DecisionPropertiesEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/decision-properties/editor.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/decision-properties/editor.js ***! + \*******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var _DecisionPropertiesEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionPropertiesEditor */ \"./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionPropertiesEditor.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['decisionProperties'],\n decisionProperties: ['type', _DecisionPropertiesEditor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/decision-properties/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/decision-properties/index.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/decision-properties/index.js ***! + \******************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DecisionProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DecisionProperties */ \"./node_modules/dmn-js-literal-expression/lib/features/decision-properties/DecisionProperties.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['decisionProperties'],\n decisionProperties: ['type', _DecisionProperties__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/decision-properties/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/editor-actions/EditorActions.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/editor-actions/EditorActions.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditorActions)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst NOT_REGISTERED_ERROR = 'is not a registered action',\n IS_REGISTERED_ERROR = 'is already registered';\n\n/**\n * An interface that provides access to modeling actions by decoupling\n * the one who requests the action to be triggered and the trigger itself.\n *\n * It's possible to add new actions by registering them with ´registerAction´ and likewise\n * unregister existing ones with ´unregisterAction´.\n *\n */\nclass EditorActions {\n constructor(commandStack, eventBus) {\n this._actions = {\n undo() {\n commandStack.undo();\n },\n redo() {\n commandStack.redo();\n }\n };\n }\n\n /**\n * Triggers a registered action\n *\n * @param {string} action\n * @param {Object} opts\n *\n * @return {Unknown} Returns what the registered listener returns\n */\n trigger(action, opts) {\n if (!this._actions[action]) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n return this._actions[action](opts);\n }\n\n /**\n * Registers a collections of actions.\n * The key of the object will be the name of the action.\n *\n * @param {Object} actions\n */\n register(actions, listener) {\n if (typeof actions === 'string') {\n return this._registerAction(actions, listener);\n }\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(actions, (listener, action) => {\n this._registerAction(action, listener);\n }, this);\n }\n\n /**\n * Registers a listener to an action key\n *\n * @param {string} action\n * @param {Function} listener\n */\n _registerAction(action, listener) {\n if (this.isRegistered(action)) {\n throw error(action, IS_REGISTERED_ERROR);\n }\n this._actions[action] = listener;\n }\n\n /**\n * Unregister an existing action\n *\n * @param {string} action\n */\n unregister(action) {\n if (!this.isRegistered(action)) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n this._actions[action] = undefined;\n }\n\n /**\n * Checks wether the given action is registered\n *\n * @param {string} action\n *\n * @return {boolean}\n */\n isRegistered(action) {\n return !!this._actions[action];\n }\n}\nEditorActions.$inject = ['commandStack', 'eventBus'];\n\n// helpers /////////////\n\nfunction error(action, message) {\n return new Error(action + ' ' + message);\n}\n//# sourceMappingURL=EditorActions.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/editor-actions/EditorActions.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/editor-actions/index.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/editor-actions/index.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _EditorActions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EditorActions */ \"./node_modules/dmn-js-literal-expression/lib/features/editor-actions/EditorActions.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['editorActions'],\n editorActions: ['type', _EditorActions__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/editor-actions/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/keyboard/Keyboard.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/keyboard/Keyboard.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Keyboard)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var _KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardUtil */ \"./node_modules/dmn-js-literal-expression/lib/features/keyboard/KeyboardUtil.js\");\n\n\n\n/**\n * A keyboard abstraction that may be activated and\n * deactivated by users at will, consuming key events\n * and triggering diagram actions.\n *\n * The implementation fires the following key events that allow\n * other components to hook into key handling:\n *\n * - keyboard.bind\n * - keyboard.unbind\n * - keyboard.init\n * - keyboard.destroy\n *\n * All events contain the fields (node, listeners).\n *\n * A default binding for the keyboard may be specified via the\n * `keyboard.bindTo` configuration option.\n *\n * @param {Config} config\n * @param {EventBus} eventBus\n * @param {EditorActions} editorActions\n */\nclass Keyboard {\n constructor(config, eventBus, editorActions) {\n this._config = config || {};\n this._eventBus = eventBus;\n this._editorActions = editorActions;\n this._listeners = [];\n eventBus.on('viewer.destroy', this._destroy);\n eventBus.on('viewer.init', this._init);\n eventBus.on('attach', () => {\n if (this._config.bindTo) {\n this.bind(config.bindTo);\n }\n });\n eventBus.on('detach', this.unbind);\n }\n _init = () => {\n this._registerDefaultBindings();\n this._fire('init');\n };\n _destroy = () => {\n this._fire('destroy');\n this.unbind();\n this._listeners = null;\n };\n\n // our key handler is a singleton that passes\n // (keycode, modifiers) to each listener.\n //\n // listeners must indicate that they handled a key event\n // by returning true. This stops the event propagation.\n //\n _keyHandler = event => {\n var i,\n l,\n listeners = this._listeners,\n code = event.keyCode || event.charCode || -1;\n for (i = 0; l = listeners[i]; i++) {\n if (l(code, event)) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n }\n };\n bind(node) {\n // make sure that the keyboard is only bound once to the DOM\n this.unbind();\n this._node = node;\n\n // bind key events\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.bind(node, 'keydown', this._keyHandler, true);\n this._fire('bind');\n }\n getBinding() {\n return this._node;\n }\n unbind = () => {\n var node = this._node;\n if (node) {\n this._fire('unbind');\n\n // unbind key events\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.unbind(node, 'keydown', this._keyHandler, true);\n }\n this._node = null;\n };\n _fire(event) {\n this._eventBus.fire('keyboard.' + event, {\n node: this._node,\n listeners: this._listeners\n });\n }\n _registerDefaultBindings() {\n var listeners = this._listeners;\n var editorActions = this._editorActions;\n\n // init default listeners\n\n // undo\n // (CTRL|CMD) + Z\n function undo(key, modifiers) {\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(modifiers) && !(0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isShift)(modifiers) && key === 90) {\n editorActions.trigger('undo');\n return true;\n }\n }\n\n // redo\n // CTRL + Y\n // CMD + SHIFT + Z\n function redo(key, modifiers) {\n if ((0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isCmd)(modifiers) && (key === 89 || key === 90 && (0,_KeyboardUtil__WEBPACK_IMPORTED_MODULE_0__.isShift)(modifiers))) {\n editorActions.trigger('redo');\n return true;\n }\n }\n listeners.push(undo);\n listeners.push(redo);\n }\n\n /**\n * Add a listener function that is notified with (key, modifiers) whenever\n * the keyboard is bound and the user presses a key.\n *\n * @param {Function} listenerFn\n */\n addListener(listenerFn) {\n this._listeners.unshift(listenerFn);\n }\n removeListener(listenerFn) {\n this._listeners = this._listeners.filter(l => l !== listenerFn);\n }\n}\nKeyboard.$inject = ['config.keyboard', 'eventBus', 'editorActions'];\n//# sourceMappingURL=Keyboard.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/keyboard/Keyboard.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/keyboard/KeyboardUtil.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/keyboard/KeyboardUtil.js ***! + \**************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ hasModifier: () => (/* binding */ hasModifier),\n/* harmony export */ isCmd: () => (/* binding */ isCmd),\n/* harmony export */ isShift: () => (/* binding */ isShift)\n/* harmony export */ });\nfunction hasModifier(modifiers) {\n return modifiers.ctrlKey || modifiers.metaKey || modifiers.shiftKey || modifiers.altKey;\n}\nfunction isCmd(modifiers) {\n // ensure we don't react to AltGr\n // (mapped to CTRL + ALT)\n if (modifiers.altKey) {\n return false;\n }\n return modifiers.ctrlKey || modifiers.metaKey;\n}\nfunction isShift(modifiers) {\n return modifiers.shiftKey;\n}\n//# sourceMappingURL=KeyboardUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/keyboard/KeyboardUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/keyboard/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/keyboard/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _editor_actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../editor-actions */ \"./node_modules/dmn-js-literal-expression/lib/features/editor-actions/index.js\");\n/* harmony import */ var _Keyboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Keyboard */ \"./node_modules/dmn-js-literal-expression/lib/features/keyboard/Keyboard.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_editor_actions__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['keyboard'],\n keyboard: ['type', _Keyboard__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/keyboard/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionProperties.js": +/*!**************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionProperties.js ***! + \**************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DecisionProperties)\n/* harmony export */ });\n/* harmony import */ var _components_LiteralExpressionPropertiesComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/LiteralExpressionPropertiesComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesComponent.js\");\n\nconst LOW_PRIORITY = 500;\nclass DecisionProperties {\n constructor(components) {\n components.onGetComponent('viewer', LOW_PRIORITY, () => {\n return _components_LiteralExpressionPropertiesComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n }\n}\nDecisionProperties.$inject = ['components'];\n//# sourceMappingURL=LiteralExpressionProperties.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionProperties.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionPropertiesEditor.js": +/*!********************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionPropertiesEditor.js ***! + \********************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LiteralExpressionPropertiesEditor)\n/* harmony export */ });\n/* harmony import */ var _components_LiteralExpressionPropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/LiteralExpressionPropertiesEditorComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesEditorComponent.js\");\n\nconst LOW_PRIORITY = 500;\nclass LiteralExpressionPropertiesEditor {\n constructor(components) {\n components.onGetComponent('viewer', LOW_PRIORITY, () => {\n return _components_LiteralExpressionPropertiesEditorComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n });\n }\n}\nLiteralExpressionPropertiesEditor.$inject = ['components'];\n//# sourceMappingURL=LiteralExpressionPropertiesEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionPropertiesEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesComponent.js": +/*!**********************************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesComponent.js ***! + \**********************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LiteralExpressionPropertiesComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass LiteralExpressionPropertiesComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._viewer = context.injector.get('viewer');\n }\n render() {\n const {\n decisionLogic: literalExpression,\n variable\n } = this._viewer.getDecision();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"literal-expression-properties\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"table\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, this._translate('Variable name:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, variable.name || '-', 0), 2)], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, this._translate('Variable type:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, this._translate(variable.typeRef || '') || '-', 0), 2)], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, this._translate('Expression language:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", null, literalExpression.expressionLanguage || '-', 0), 2)], 4)], 4), 2);\n }\n}\n//# sourceMappingURL=LiteralExpressionPropertiesComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesEditorComponent.js": +/*!****************************************************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesEditorComponent.js ***! + \****************************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LiteralExpressionPropertiesComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n/* harmony import */ var dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/InputSelect */ \"./node_modules/dmn-js-shared/lib/components/InputSelect.js\");\n\n\n\n\nclass LiteralExpressionPropertiesComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._viewer = context.injector.get('viewer');\n this._modeling = context.injector.get('modeling');\n this._dataTypes = context.injector.get('dataTypes');\n const decision = this._viewer.getDecision();\n this.state = {\n name: decision.variable.name,\n typeRef: decision.variable.typeRef\n };\n this.setVariableName = this.setVariableName.bind(this);\n this.setVariableType = this.setVariableType.bind(this);\n }\n setVariableName(name) {\n this._modeling.editVariableName(name);\n this.setState({\n name\n });\n }\n setVariableType(typeRef) {\n if (typeRef === '') {\n this._modeling.editVariableType(undefined);\n this.setState({\n typeRef: undefined\n });\n } else {\n this._modeling.editVariableType(typeRef);\n this.setState({\n typeRef\n });\n }\n }\n render() {\n const {\n name,\n typeRef\n } = this.state;\n const typeRefOptions = this._dataTypes.getAll().map(t => {\n return {\n label: this._translate(t),\n value: t\n };\n });\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"literal-expression-properties\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"table\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, this._translate('Variable name:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"label\": this._translate('Variable name'),\n \"className\": \"variable-name-input\",\n \"onInput\": this.setVariableName,\n \"placeholder\": this._translate('name'),\n \"value\": name || ''\n }), 2)], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, this._translate('Variable type:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Variable type'),\n \"onChange\": this.setVariableType,\n \"options\": typeRefOptions,\n \"value\": typeRef,\n \"className\": \"variable-type-select dms-block\"\n }), 2), 2)], 4), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, ExpressionLanguage)], 4), 2);\n }\n}\nclass ExpressionLanguage extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._translate = context.injector.get('translate');\n this._viewer = context.injector.get('viewer');\n this._modeling = context.injector.get('modeling');\n this._expressionLanguages = context.injector.get('expressionLanguages');\n this.setExpressionLanguage = this.setExpressionLanguage.bind(this);\n }\n setExpressionLanguage(expressionLanguage) {\n if (expressionLanguage === '') {\n this._modeling.editExpressionLanguage(undefined);\n } else {\n this._modeling.editExpressionLanguage(expressionLanguage);\n }\n }\n _getExpressionLanguage() {\n const decision = this._viewer.getDecision();\n const literalExpression = decision.decisionLogic;\n return literalExpression && literalExpression.expressionLanguage ? literalExpression.expressionLanguage.toLowerCase() : this._getDefaultExpressionLanguage();\n }\n _getDefaultExpressionLanguage() {\n return this._expressionLanguages.getDefault().value;\n }\n _shouldRender() {\n const expressionLanguages = this._expressionLanguages.getAll();\n if (expressionLanguages.length > 1) {\n return true;\n }\n const expressionLanguage = this._getExpressionLanguage();\n return expressionLanguage !== this._getDefaultExpressionLanguage();\n }\n render() {\n if (!this._shouldRender()) {\n return null;\n }\n const expressionLanguage = this._getExpressionLanguage();\n const languageOptions = this._expressionLanguages.getAll();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"tr\", null, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, this._translate('Expression language:'), 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-fill-row\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_InputSelect__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this._translate('Expression language'),\n \"onChange\": this.setExpressionLanguage,\n \"options\": languageOptions,\n \"value\": expressionLanguage,\n \"className\": \"expression-language-select dms-block\"\n }), 2), 2)], 4);\n }\n}\n//# sourceMappingURL=LiteralExpressionPropertiesEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/components/LiteralExpressionPropertiesEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/editor.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/editor.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LiteralExpressionPropertiesEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LiteralExpressionPropertiesEditor */ \"./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionPropertiesEditor.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n/* harmony import */ var _keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../keyboard */ \"./node_modules/dmn-js-literal-expression/lib/features/keyboard/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_data_types_DataTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-shared/lib/features/data-types/DataTypes */ \"./node_modules/dmn-js-shared/lib/features/data-types/DataTypes.js\");\n/* harmony import */ var dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dmn-js-shared/lib/features/expression-languages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/index.js\");\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _keyboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"], dmn_js_shared_lib_features_expression_languages__WEBPACK_IMPORTED_MODULE_4__[\"default\"], dmn_js_shared_lib_features_data_types_DataTypes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n __init__: ['literalExpressionProperties'],\n literalExpressionProperties: ['type', _LiteralExpressionPropertiesEditor__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/index.js": +/*!****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/index.js ***! + \****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _LiteralExpressionProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LiteralExpressionProperties */ \"./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/LiteralExpressionProperties.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [],\n __init__: ['literalExpressionProperties'],\n literalExpressionProperties: ['type', _LiteralExpressionProperties__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/literal-expression-properties/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/modeling/Modeling.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/modeling/Modeling.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeling)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_cmd_UpdatePropertiesHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler */ \"./node_modules/dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler.js\");\n\n\nclass Modeling {\n constructor(commandStack, viewer, eventBus) {\n this._commandStack = commandStack;\n this._viewer = viewer;\n this._eventBus = eventBus;\n eventBus.on('viewer.init', () => {\n // register modeling handlers\n registerHandlers(this.getHandlers(), commandStack);\n });\n }\n getHandlers() {\n return Modeling._getHandlers();\n }\n static _getHandlers() {\n return {\n 'element.updateProperties': dmn_js_shared_lib_features_modeling_cmd_UpdatePropertiesHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n };\n }\n getDecision() {\n return this._viewer.getDecision();\n }\n editDecisionName(name) {\n const decision = this.getDecision();\n const context = {\n element: decision,\n properties: {\n name\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editDecisionId(id) {\n const decision = this.getDecision();\n const context = {\n element: decision,\n properties: {\n id\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editLiteralExpressionText(text) {\n const decision = this.getDecision(),\n literalExpression = decision.decisionLogic;\n const context = {\n element: literalExpression,\n properties: {\n text\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editExpressionLanguage(expressionLanguage) {\n const decision = this.getDecision(),\n literalExpression = decision.decisionLogic;\n const context = {\n element: literalExpression,\n properties: {\n expressionLanguage\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editVariableName(name) {\n const decision = this.getDecision(),\n variable = decision.variable;\n const context = {\n element: variable,\n properties: {\n name\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n editVariableType(typeRef) {\n const decision = this.getDecision(),\n variable = decision.variable;\n const context = {\n element: variable,\n properties: {\n typeRef\n }\n };\n this._commandStack.execute('element.updateProperties', context);\n }\n}\nModeling.$inject = ['commandStack', 'viewer', 'eventBus'];\n\n// helpers //////////////////////\n\n/**\r\n * Register handlers with the command stack\r\n *\r\n * @param {Object} handlers { id -> Handler } map\r\n * @param {CommandStack} commandStack\r\n */\nfunction registerHandlers(handlers, commandStack) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.forEach)(handlers, function (handler, id) {\n commandStack.registerHandler(id, handler);\n });\n}\n//# sourceMappingURL=Modeling.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/modeling/Modeling.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/modeling/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/modeling/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_command_CommandStack__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/command/CommandStack */ \"./node_modules/diagram-js/lib/command/CommandStack.js\");\n/* harmony import */ var dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior */ \"./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js\");\n/* harmony import */ var _Modeling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Modeling */ \"./node_modules/dmn-js-literal-expression/lib/features/modeling/Modeling.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['idChangeBehavior', 'modeling'],\n commandStack: ['type', diagram_js_lib_command_CommandStack__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n idChangeBehavior: ['type', dmn_js_shared_lib_features_modeling_behavior_IdChangeBehavior__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n modeling: ['type', _Modeling__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/modeling/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/powered-by/PoweredBy.js": +/*!*************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/powered-by/PoweredBy.js ***! + \*************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PoweredBy)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/util/PoweredByUtil */ \"./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js\");\n\nconst HIGHER_PRIORITY = 2000;\nclass PoweredBy {\n constructor(components) {\n components.onGetComponent('viewer', HIGHER_PRIORITY, () => {\n return dmn_js_shared_lib_util_PoweredByUtil__WEBPACK_IMPORTED_MODULE_0__.PoweredByComponent;\n });\n }\n}\nPoweredBy.$inject = ['components'];\n//# sourceMappingURL=PoweredBy.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/powered-by/PoweredBy.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/powered-by/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/powered-by/index.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _PoweredBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PoweredBy */ \"./node_modules/dmn-js-literal-expression/lib/features/powered-by/PoweredBy.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['poweredBy'],\n poweredBy: ['type', _PoweredBy__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/powered-by/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/textarea/Textarea.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/textarea/Textarea.js ***! + \**********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Textarea)\n/* harmony export */ });\n/* harmony import */ var _components_TextareaComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/TextareaComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaComponent.js\");\n\nclass Textarea {\n constructor(components) {\n components.onGetComponent('viewer', () => _components_TextareaComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n }\n}\nTextarea.$inject = ['components'];\n//# sourceMappingURL=Textarea.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/textarea/Textarea.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/textarea/TextareaEditor.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/textarea/TextareaEditor.js ***! + \****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Textarea)\n/* harmony export */ });\n/* harmony import */ var _components_TextareaEditorComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/TextareaEditorComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaEditorComponent.js\");\n\nclass Textarea {\n constructor(components) {\n components.onGetComponent('viewer', () => _components_TextareaEditorComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n }\n}\nTextarea.$inject = ['components'];\n//# sourceMappingURL=TextareaEditor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/textarea/TextareaEditor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaComponent.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaComponent.js ***! + \******************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TextareaComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass TextareaComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._viewer = context.injector.get('viewer');\n }\n render() {\n const {\n text\n } = this._viewer.getDecision().decisionLogic;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"textarea\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"content\", text, 0), 2);\n }\n}\n//# sourceMappingURL=TextareaComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaEditorComponent.js": +/*!************************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaEditorComponent.js ***! + \************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TextareaEditorComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-shared/lib/components/EditableComponent */ \"./node_modules/dmn-js-shared/lib/components/EditableComponent.js\");\n/* harmony import */ var dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-shared/lib/components/LiteralExpression */ \"./node_modules/dmn-js-shared/lib/components/LiteralExpression.js\");\n\n\n\n\nclass TextareaEditorComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this._modeling = context.injector.get('modeling');\n this._viewer = context.injector.get('viewer');\n this._expressionLanguages = context.injector.get('expressionLanguages');\n this._variableResolver = context.injector.get('variableResolver', false);\n this._translate = context.injector.get('translate');\n this.editLiteralExpressionText = this.editLiteralExpressionText.bind(this);\n this.onElementsChanged = this.onElementsChanged.bind(this);\n\n // there is only one single element\n const {\n id\n } = this.getLiteralExpression();\n context.changeSupport.onElementsChanged(id, this.onElementsChanged);\n }\n getLiteralExpression() {\n return this._viewer.getDecision().decisionLogic;\n }\n onElementsChanged() {\n this.forceUpdate();\n }\n editLiteralExpressionText(text) {\n this._modeling.editLiteralExpressionText(text);\n }\n getEditor() {\n return this.isFeel() ? FeelEditor : Editor;\n }\n isFeel() {\n return this.getExpressionLanguage() === 'feel';\n }\n getExpressionLanguage() {\n const businessObject = this.getLiteralExpression();\n return businessObject.expressionLanguage || this._expressionLanguages.getDefault().value;\n }\n _getVariables() {\n const businessObject = this.getLiteralExpression();\n return this._variableResolver && this._variableResolver.getVariables(businessObject);\n }\n render() {\n // there is only one single element\n const {\n text\n } = this.getLiteralExpression();\n const Editor = this.getEditor();\n const variables = this._getVariables();\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Editor, {\n \"label\": this._translate('Literal expression editor'),\n \"className\": \"textarea editor\",\n \"value\": text,\n \"onChange\": this.editLiteralExpressionText,\n \"variables\": variables\n });\n }\n}\nclass FeelEditor extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, dmn_js_shared_lib_components_LiteralExpression__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n \"label\": this.props.label,\n \"className\": this.props.className,\n \"value\": this.props.value,\n \"onInput\": this.props.onChange,\n \"variables\": this.props.variables\n });\n }\n}\nclass Editor extends dmn_js_shared_lib_components_EditableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", this.getClassName(), this.getEditor(), 0);\n }\n}\n//# sourceMappingURL=TextareaEditorComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/textarea/components/TextareaEditorComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/textarea/editor.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/textarea/editor.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/i18n/translate */ \"./node_modules/diagram-js/lib/i18n/translate/index.js\");\n/* harmony import */ var dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/features/debounce-input */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/index.js\");\n/* harmony import */ var _TextareaEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TextareaEditor */ \"./node_modules/dmn-js-literal-expression/lib/features/textarea/TextareaEditor.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [dmn_js_shared_lib_features_debounce_input__WEBPACK_IMPORTED_MODULE_0__[\"default\"], diagram_js_lib_i18n_translate__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n __init__: ['textarea'],\n textarea: ['type', _TextareaEditor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=editor.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/textarea/editor.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/textarea/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/textarea/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Textarea__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Textarea */ \"./node_modules/dmn-js-literal-expression/lib/features/textarea/Textarea.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['textarea'],\n textarea: ['type', _Textarea__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/textarea/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/view-drd/ViewDrd.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/view-drd/ViewDrd.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewDrd)\n/* harmony export */ });\n/* harmony import */ var _components_ViewDrdComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ViewDrdComponent */ \"./node_modules/dmn-js-literal-expression/lib/features/view-drd/components/ViewDrdComponent.js\");\n\nconst VERY_HIGH_PRIORITY = 2000;\nclass ViewDrd {\n constructor(components, viewer, eventBus, injector) {\n this._injector = injector;\n this._viewer = viewer;\n components.onGetComponent('viewer', VERY_HIGH_PRIORITY, () => {\n if (this.canViewDrd()) {\n return _components_ViewDrdComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n }\n });\n eventBus.on('showDrd', () => {\n const parent = injector.get('_parent', false);\n\n // there is only one single element\n const definitions = this.getDefinitions();\n\n // open definitions\n const view = parent.getView(definitions);\n parent.open(view);\n });\n }\n canViewDrd() {\n const parent = this._injector.get('_parent', false);\n if (!parent) {\n return;\n }\n\n // there is only one single element\n const definitions = this.getDefinitions();\n return !!parent.getView(definitions);\n }\n getDefinitions() {\n return getDefinitions(this._viewer.getDecision());\n }\n}\nViewDrd.$inject = ['components', 'viewer', 'eventBus', 'injector'];\n\n// helpers //////////////////////\n\nfunction getDefinitions(decision) {\n const definitions = decision.$parent;\n return definitions;\n}\n//# sourceMappingURL=ViewDrd.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/view-drd/ViewDrd.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/view-drd/components/ViewDrdComponent.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/view-drd/components/ViewDrdComponent.js ***! + \*****************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewDrdComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass ViewDrdComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n const {\n injector\n } = context;\n this._translate = injector.get('translate');\n this._eventBus = injector.get('eventBus');\n }\n onClick = () => {\n this._eventBus.fire('showDrd');\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"view-drd\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"button\", \"view-drd-button\", this._translate('View DRD'), 0, {\n \"type\": \"button\",\n \"onClick\": this.onClick\n }), 2, null, null, node => this.node = node);\n }\n}\nViewDrdComponent.$inject = ['translate'];\n//# sourceMappingURL=ViewDrdComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/view-drd/components/ViewDrdComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-literal-expression/lib/features/view-drd/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-literal-expression/lib/features/view-drd/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ViewDrd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ViewDrd */ \"./node_modules/dmn-js-literal-expression/lib/features/view-drd/ViewDrd.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['viewDrd'],\n viewDrd: ['type', _ViewDrd__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-literal-expression/lib/features/view-drd/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/EditingManager.js": +/*!***************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/EditingManager.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditingManager)\n/* harmony export */ });\n/* harmony import */ var _Manager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Manager */ \"./node_modules/dmn-js-shared/lib/base/Manager.js\");\n/* harmony import */ var ids__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ids */ \"./node_modules/ids/dist/index.esm.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nclass EditingManager extends _Manager__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n _init(options) {\n super._init(options);\n\n // hook ID collection into the modeler\n this.on('import.parse.complete', event => {\n if (!event.error) {\n this._collectIds(event.definitions, event.elementsById);\n }\n });\n this.on('destroy', () => {\n this._moddle.ids.clear();\n });\n this.on('viewer.created', ({\n viewer\n }) => {\n viewer.on('elements.changed', ({\n elements\n }) => {\n var viewsChanged = elements.some(function (e) {\n return (0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_2__.isAny)(e, ['dmn:Decision', 'dmn:Definitions', 'dmn:BusinessKnowledgeModel']);\n });\n if (viewsChanged) {\n this._updateViews();\n }\n });\n });\n }\n\n /**\n * Collect ids processed during parsing of the\n * definitions object.\n *\n * @param {ModdleElement} definitions\n * @param {Array} elementsById\n */\n _collectIds(definitions, elementsById) {\n var moddle = definitions.$model,\n ids = moddle.ids,\n id;\n\n // remove references from previous import\n ids.clear();\n for (id in elementsById) {\n ids.claim(id, elementsById[id]);\n }\n }\n _createModdle(options) {\n var moddle = super._createModdle(options);\n\n // attach ids to moddle to be able to track\n // and validated ids in the DMN XML document\n // tree\n moddle.ids = new ids__WEBPACK_IMPORTED_MODULE_1__[\"default\"]([32, 36, 1]);\n return moddle;\n }\n}\n//# sourceMappingURL=EditingManager.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/EditingManager.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/Manager.js": +/*!********************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/Manager.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Manager)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_core_EventBus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! diagram-js/lib/core/EventBus */ \"./node_modules/diagram-js/lib/core/EventBus.js\");\n/* harmony import */ var dmn_moddle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-moddle */ \"./node_modules/dmn-moddle/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_CompatibilityUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/CompatibilityUtils */ \"./node_modules/dmn-js-shared/lib/util/CompatibilityUtils.js\");\n\n\n\n\n\n\n/**\n * @typedef {import('./View').OpenResult} OpenResult\n */\n\n/**\n * @typedef {import('./View').OpenError} OpenError\n */\n\nconst DEFAULT_CONTAINER_OPTIONS = {\n width: '100%',\n height: '100%',\n position: 'relative'\n};\n\n/**\n * The base class for DMN viewers and editors.\n *\n * @abstract\n */\nclass Manager {\n /**\n * Create a new instance with the given options.\n *\n * @param {Object} options\n *\n * @return {Manager}\n */\n constructor(options = {}) {\n this._eventBus = new diagram_js_lib_core_EventBus__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n this._viewsChanged = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.debounce)(this._viewsChanged, 0);\n this._views = [];\n this._viewers = {};\n\n // keep support for callbacks\n this.open = (0,_util_CompatibilityUtils__WEBPACK_IMPORTED_MODULE_1__.wrapForCompatibility)(this.open.bind(this));\n this.importXML = (0,_util_CompatibilityUtils__WEBPACK_IMPORTED_MODULE_1__.wrapForCompatibility)(this.importXML.bind(this));\n this.saveXML = (0,_util_CompatibilityUtils__WEBPACK_IMPORTED_MODULE_1__.wrapForCompatibility)(this.saveXML.bind(this));\n this._init(options);\n }\n\n /**\n * The importXML result.\n *\n * @typedef {Object} ImportXMLResult\n *\n * @property {Array} warnings\n */\n\n /**\n * The importXML error.\n *\n * @typedef {Error} ImportXMLError\n *\n * @property {Array} warnings\n */\n\n /**\n * Parse and render a DMN diagram.\n *\n * Once finished the viewer reports back the result to the\n * provided callback function with (err, warnings).\n *\n * ## Life-Cycle Events\n *\n * During import the viewer will fire life-cycle events:\n *\n * * import.parse.start (about to read model from xml)\n * * import.parse.complete (model read; may have worked or not)\n * * import.render.start (graphical import start)\n * * import.render.complete (graphical import finished)\n * * import.done (everything done)\n *\n * You can use these events to hook into the life-cycle.\n *\n * @param {string} xml the DMN xml\n * @param {Object} [options]\n * @param {boolean} [options.open=true]\n *\n * @return {Promise}\n */\n importXML(xml, options) {\n var self = this;\n options = options || {\n open: true\n };\n return new Promise(function (resolve, reject) {\n var previousActiveView = self._activeView;\n\n // clean up previously rendered diagram before new import\n self._clear().then(() => {\n // hook in pre-parse listeners +\n // allow xml manipulation\n xml = self._emit('import.parse.start', {\n xml: xml\n }) || xml;\n var parseWarnings;\n self._moddle.fromXML(xml, 'dmn:Definitions').then(parseResult => {\n var definitions = parseResult.rootElement;\n var references = parseResult.references;\n var elementsById = parseResult.elementsById;\n parseWarnings = parseResult.warnings;\n\n // hook in post parse listeners +\n // allow definitions manipulation\n definitions = self._emit('import.parse.complete', ParseCompleteEvent({\n error: null,\n definitions: definitions,\n elementsById: elementsById,\n references: references,\n warnings: parseWarnings\n })) || definitions;\n self._setDefinitions(definitions);\n if (!options.open) {\n self._emit('import.done', {\n error: null,\n warnings: parseWarnings\n });\n resolve({\n warnings: parseWarnings\n });\n return;\n }\n\n // open either previously active view or view of the same type if available\n var view = self._getInitialView(self._views, previousActiveView);\n if (!view) {\n var noDisplayableContentsErr = new Error('no displayable contents');\n self._emit('import.done', {\n error: noDisplayableContentsErr,\n warnings: parseWarnings\n });\n noDisplayableContentsErr.warnings = parseWarnings;\n return reject(noDisplayableContentsErr);\n }\n self.open(view).then(result => ({\n warnings: result.warnings\n })).catch(error => ({\n error: error,\n warnings: error.warnings\n })).then(result => {\n var allWarnings = [].concat(parseWarnings, result.warnings);\n self._emit('import.done', {\n error: result.error,\n warnings: allWarnings\n });\n if (result.error) {\n result.error.warnings = allWarnings;\n reject(result.error);\n } else {\n resolve({\n warnings: allWarnings\n });\n }\n });\n }).catch(parseError => {\n parseWarnings = parseError.warnings;\n parseError = checkDMNCompatibilityError(parseError, xml) || checkValidationError(parseError) || parseError;\n self._emit('import.parse.complete', ParseCompleteEvent({\n error: parseError,\n warnings: parseWarnings\n }));\n self._emit('import.done', {\n error: parseError,\n warnings: parseWarnings\n });\n parseError.warnings = parseWarnings;\n return reject(parseError);\n });\n }).catch(clearError => {\n self._emit('import.done', {\n error: clearError,\n warnings: []\n });\n clearError.warnings = [];\n return reject(clearError);\n });\n });\n\n // TODO: remove with future dmn-js version\n function ParseCompleteEvent(data) {\n var event = self._eventBus.createEvent(data);\n Object.defineProperty(event, 'context', {\n enumerable: true,\n get: function () {\n console.warn(new Error('import.parse.complete is deprecated ' + 'and will be removed in future library versions'));\n return {\n warnings: data.warnings,\n references: data.references,\n elementsById: data.elementsById\n };\n }\n });\n return event;\n }\n }\n getDefinitions() {\n return this._definitions;\n }\n\n /**\n * Return active view.\n *\n * @return {View}\n */\n getActiveView() {\n return this._activeView;\n }\n\n /**\n * Get the currently active viewer instance.\n *\n * @return {View}\n */\n getActiveViewer() {\n var activeView = this.getActiveView();\n return activeView && this._getViewer(activeView);\n }\n getView(element) {\n return this._views.filter(function (v) {\n return v.element === element;\n })[0];\n }\n getViews() {\n return this._views;\n }\n\n /**\n * The saveXML result.\n *\n * @typedef {Object} SaveXMLResult\n *\n * @property {string} xml\n */\n\n /**\n * Export the currently displayed DMN diagram as\n * a DMN XML document.\n *\n * ## Life-Cycle Events\n *\n * During XML saving the viewer will fire life-cycle events:\n *\n * * saveXML.start (before serialization)\n * * saveXML.serialized (after xml generation)\n * * saveXML.done (everything done)\n *\n * You can use these events to hook into the life-cycle.\n *\n * @param {Object} [options] export options\n * @param {boolean} [options.format=false] output formated XML\n * @param {boolean} [options.preamble=true] output preamble\n *\n * @return {Promise}\n */\n saveXML(options) {\n var self = this;\n options = options || {};\n var definitions = this._definitions;\n return new Promise(function (resolve, reject) {\n if (!definitions) {\n reject(new Error('no definitions loaded'));\n return;\n }\n\n // allow to fiddle around with definitions\n definitions = self._emit('saveXML.start', {\n definitions: definitions\n }) || definitions;\n self._moddle.toXML(definitions, options).then(function (result) {\n var xml = result.xml;\n xml = self._emit('saveXML.serialized', {\n xml: xml\n }) || xml;\n return {\n xml\n };\n }).catch(error => ({\n error\n })).then(result => {\n self._emit('saveXML.done', result);\n if (result.error) {\n reject(result.error);\n } else {\n resolve({\n xml: result.xml\n });\n }\n });\n });\n }\n\n /**\n * Register an event listener\n *\n * Remove a previously added listener via {@link #off(event, callback)}.\n *\n * @param {string} event\n * @param {number} [priority]\n * @param {Function} callback\n * @param {Object} [that]\n */\n on(...args) {\n this._eventBus.on(...args);\n }\n\n /**\n * De-register an event listener\n *\n * @param {string} event\n * @param {Function} callback\n */\n off(...args) {\n this._eventBus.off(...args);\n }\n\n /**\n * Register a listener to be invoked once only.\n *\n * @param {string} event\n * @param {number} [priority]\n * @param {Function} callback\n * @param {Object} [that]\n */\n once(...args) {\n this._eventBus.once(...args);\n }\n attachTo(parentNode) {\n // unwrap jQuery if provided\n if (parentNode.get && parentNode.constructor.prototype.jquery) {\n parentNode = parentNode.get(0);\n }\n if (typeof parentNode === 'string') {\n parentNode = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.query)(parentNode);\n }\n parentNode.appendChild(this._container);\n this._emit('attach', {});\n }\n detach() {\n this._emit('detach', {});\n (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.remove)(this._container);\n }\n destroy() {\n Object.keys(this._viewers).forEach(viewerId => {\n var viewer = this._viewers[viewerId];\n safeExecute(viewer, 'destroy');\n });\n (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.remove)(this._container);\n }\n _init(options) {\n this._options = options;\n this._moddle = this._createModdle(options);\n this._viewers = {};\n this._views = [];\n const container = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.domify)('
');\n const containerOptions = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)({}, DEFAULT_CONTAINER_OPTIONS, options);\n (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(container.style, {\n width: ensureUnit(containerOptions.width),\n height: ensureUnit(containerOptions.height),\n position: containerOptions.position\n });\n this._container = container;\n if (options.container) {\n this.attachTo(options.container);\n }\n }\n _clear() {\n return this._switchView(null);\n }\n\n /**\n * Open diagram view.\n *\n * @param {View} view\n * @returns {Promise} Resolves with {OpenResult} when successful\n * or rejects with {OpenError}\n */\n open(view) {\n return this._switchView(view);\n }\n _setDefinitions(definitions) {\n this._definitions = definitions;\n this._updateViews();\n }\n _viewsChanged = () => {\n this._emit('views.changed', {\n views: this._views,\n activeView: this._activeView\n });\n };\n\n /**\n * Recompute changed views after elements in\n * the DMN diagram have changed.\n */\n _updateViews() {\n var definitions = this._definitions;\n if (!definitions) {\n this._views = [];\n this._switchView(null);\n return;\n }\n var viewProviders = this._getViewProviders();\n var displayableElements = [definitions, ...(definitions.drgElement || [])];\n\n // compute list of available views\n var views = this._views,\n newViews = [];\n for (var element of displayableElements) {\n var provider = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(viewProviders, function (provider) {\n if (typeof provider.opens === 'string') {\n return provider.opens === element.$type;\n } else {\n return provider.opens(element);\n }\n });\n if (!provider) {\n continue;\n }\n var view = {\n element,\n id: element.id,\n name: element.name,\n type: provider.id\n };\n newViews.push(view);\n }\n var activeView = this._activeView,\n newActiveView;\n if (activeView) {\n // check the new active view\n newActiveView = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(newViews, function (view) {\n return viewsEqual(activeView, view);\n }) || this._getInitialView(newViews);\n if (!newActiveView) {\n this._switchView(null);\n return;\n }\n }\n\n // Views have changed if\n // active view has changed OR\n // number of views has changed OR\n // not all views equal\n var activeViewChanged = !viewsEqual(activeView, newActiveView) || viewNameChanged(activeView, newActiveView);\n var viewsChanged = views.length !== newViews.length || !(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.every)(newViews, function (newView) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(views, function (view) {\n return viewsEqual(view, newView) && !viewNameChanged(view, newView);\n });\n });\n this._activeView = newActiveView;\n this._views = newViews;\n if (activeViewChanged || viewsChanged) {\n this._viewsChanged();\n }\n }\n _getInitialView(views, preferredView) {\n var initialView;\n if (preferredView) {\n initialView = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(views, function (view) {\n return viewsEqual(view, preferredView);\n }) || (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(views, function (view) {\n return view.type === preferredView;\n });\n }\n return initialView || views[0];\n }\n\n /**\n * Switch to another view.\n *\n * @param {View} newView\n * @returns {Promise} Resolves with {OpenResult} when successful\n * or rejects with {OpenError}\n */\n _switchView(newView) {\n var self = this;\n return new Promise(function (resolve, reject) {\n var complete = (openError, openResult) => {\n self._viewsChanged();\n if (openError) {\n reject(openError);\n } else {\n resolve(openResult);\n }\n };\n var activeView = self.getActiveView(),\n activeViewer;\n var newViewer = newView && self._getViewer(newView),\n element = newView && newView.element;\n if (activeView) {\n activeViewer = self._getViewer(activeView);\n if (activeViewer !== newViewer) {\n safeExecute(activeViewer, 'clear');\n activeViewer.detach();\n }\n }\n self._activeView = newView;\n if (newViewer) {\n if (activeViewer !== newViewer) {\n newViewer.attachTo(self._container);\n }\n self._emit('import.render.start', {\n view: newView,\n element: element\n });\n newViewer.open(element).then(result => {\n self._emit('import.render.complete', {\n view: newView,\n error: null,\n warnings: result.warnings\n });\n complete(null, result);\n }).catch(error => {\n self._emit('import.render.complete', {\n view: newView,\n error: error,\n warnings: error.warnings\n });\n complete(error, null);\n });\n return;\n }\n\n // no active view\n complete();\n });\n }\n _getViewer(view) {\n var type = view.type;\n var viewer = this._viewers[type];\n if (!viewer) {\n viewer = this._viewers[type] = this._createViewer(view.type);\n this._emit('viewer.created', {\n type: type,\n viewer: viewer\n });\n }\n return viewer;\n }\n _createViewer(id) {\n var provider = (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.find)(this._getViewProviders(), function (provider) {\n return provider.id === id;\n });\n if (!provider) {\n throw new Error('no provider for view type <' + id + '>');\n }\n var Viewer = provider.constructor;\n var providerOptions = this._options[id] || {};\n var commonOptions = this._options.common || {};\n return new Viewer({\n ...commonOptions,\n ...providerOptions,\n additionalModules: [...(providerOptions.additionalModules || []), {\n _parent: ['value', this],\n moddle: ['value', this._moddle]\n }]\n });\n }\n\n /**\n * Emit an event.\n */\n _emit(...args) {\n return this._eventBus.fire(...args);\n }\n _createModdle(options) {\n return new dmn_moddle__WEBPACK_IMPORTED_MODULE_0__[\"default\"](options.moddleExtensions);\n }\n\n /**\n * Return the list of available view providers.\n *\n * @abstract\n *\n * @return {Array}\n */\n _getViewProviders() {\n return [];\n }\n}\n\n// helpers //////////////////////\n\n/**\n * Ensure the passed argument is a proper unit (defaulting to px)\n */\nfunction ensureUnit(val) {\n return val + ((0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isNumber)(val) ? 'px' : '');\n}\nfunction checkDMNCompatibilityError(err, xml) {\n // check if we can indicate opening of old DMN 1.1 or DMN 1.2 diagrams\n\n if (err.message !== 'failed to parse document as ') {\n return null;\n }\n var olderDMNVersion = xml.indexOf('\"http://www.omg.org/spec/DMN/20151101/dmn.xsd\"') !== -1 && '1.1' || xml.indexOf('\"http://www.omg.org/spec/DMN/20180521/MODEL/\"') !== -1 && '1.2';\n if (!olderDMNVersion) {\n return null;\n }\n err = new Error('unsupported DMN ' + olderDMNVersion + ' file detected; ' + 'only DMN 1.3 files can be opened');\n console.error('Cannot open what looks like a DMN ' + olderDMNVersion + ' diagram. ' + 'Please refer to https://bpmn.io/l/dmn-compatibility.html ' + 'to learn how to make the toolkit compatible with older DMN files', err);\n return err;\n}\nfunction checkValidationError(err) {\n // check if we can help the user by indicating wrong DMN 1.3 xml\n // (in case he or the exporting tool did not get that right)\n\n var pattern = /unparsable content <([^>]+)> detected([\\s\\S]*)$/,\n match = pattern.exec(err.message);\n if (!match) {\n return null;\n }\n err.message = 'unparsable content <' + match[1] + '> detected; ' + 'this may indicate an invalid DMN 1.3 diagram file' + match[2];\n return err;\n}\nfunction viewsEqual(a, b) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isDefined)(a)) {\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isDefined)(b)) {\n return true;\n } else {\n return false;\n }\n }\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isDefined)(b)) {\n return false;\n }\n\n // compare by element OR element ID equality\n return a.element === b.element || a.id === b.id;\n}\nfunction viewNameChanged(a, b) {\n return !a || !b || a.name !== b.name;\n}\nfunction safeExecute(viewer, method) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isFunction)(viewer[method])) {\n viewer[method]();\n }\n}\n//# sourceMappingURL=Manager.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/Manager.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/viewer/Viewer.js": +/*!**************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/viewer/Viewer.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Viewer)\n/* harmony export */ });\n/* harmony import */ var didi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! didi */ \"./node_modules/didi/dist/index.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ \"./node_modules/dmn-js-shared/lib/base/viewer/core/index.js\");\n\n\n\n/**\r\n * A base for React-style viewers.\r\n */\nclass Viewer {\n constructor(options = {}) {\n let {\n injector\n } = options;\n if (!injector) {\n let {\n modules,\n config\n } = this._init(options);\n injector = createInjector(config, modules);\n }\n this.get = injector.get;\n this.invoke = injector.invoke;\n this.get('eventBus').fire('viewer.init');\n }\n\n /**\r\n * Intialize and return modules and config used for creation.\r\n *\r\n * @param {Object} options\r\n *\r\n * @return {Object} { modules=[], config }\r\n */\n _init(options) {\n let {\n modules,\n ...config\n } = options;\n return {\n modules,\n config\n };\n }\n\n /**\r\n * Destroy. This results in removing the attachment from the container.\r\n */\n destroy() {\n const eventBus = this.get('eventBus');\n eventBus.fire('viewer.destroy');\n }\n\n /**\r\n * Clear. Should be used to reset the state of any stateful services.\r\n */\n clear() {\n const eventBus = this.get('eventBus');\n eventBus.fire('viewer.clear');\n }\n}\n\n// helpers //////////////////////\n\nfunction createInjector(config, modules) {\n const bootstrapModules = [{\n config: ['value', config]\n }, _core__WEBPACK_IMPORTED_MODULE_0__[\"default\"]].concat(modules || []);\n const injector = new didi__WEBPACK_IMPORTED_MODULE_1__.Injector(bootstrapModules);\n injector.init();\n return injector;\n}\n//# sourceMappingURL=Viewer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/viewer/Viewer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/viewer/core/ChangeSupport.js": +/*!**************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/viewer/core/ChangeSupport.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ChangeSupport)\n/* harmony export */ });\nclass ChangeSupport {\n constructor(eventBus) {\n this._listeners = {};\n eventBus.on('elements.changed', ({\n elements\n }) => {\n this.elementsChanged(elements);\n });\n eventBus.on('element.updateId', ({\n element,\n newId\n }) => {\n this.updateId(element.id, newId);\n });\n }\n elementsChanged(elements) {\n const invoked = {};\n const elementsLength = elements.length;\n for (let i = 0; i < elementsLength; i++) {\n const {\n id\n } = elements[i];\n if (invoked[id]) {\n return;\n }\n invoked[id] = true;\n const listenersLength = this._listeners[id] && this._listeners[id].length;\n if (listenersLength) {\n for (let j = 0; j < listenersLength; j++) {\n // listeners might remove themselves before they get called\n this._listeners[id][j] && this._listeners[id][j]();\n }\n }\n }\n }\n onElementsChanged(id, listener) {\n if (!this._listeners[id]) {\n this._listeners[id] = [];\n }\n\n // avoid push for better performance\n this._listeners[id][this._listeners[id].length] = listener;\n }\n offElementsChanged(id, listener) {\n if (!this._listeners[id]) {\n return;\n }\n if (listener) {\n const idx = this._listeners[id].indexOf(listener);\n if (idx !== -1) {\n this._listeners[id].splice(idx, 1);\n }\n } else {\n this._listeners[id].length = 0;\n }\n }\n updateId(oldId, newId) {\n if (this._listeners[oldId]) {\n this._listeners[newId] = this._listeners[oldId];\n delete this._listeners[oldId];\n }\n }\n}\nChangeSupport.$inject = ['eventBus'];\n//# sourceMappingURL=ChangeSupport.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/viewer/core/ChangeSupport.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/viewer/core/Components.js": +/*!***********************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/viewer/core/Components.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Components)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst DEFAULT_PRIORITY = 1000;\nclass Components {\n constructor() {\n this._listeners = {};\n }\n getComponent(type, context) {\n const listeners = this._listeners[type];\n if (!listeners) {\n return;\n }\n let component;\n for (let i = 0; i < listeners.length; i++) {\n component = listeners[i].callback(context);\n if (component) {\n break;\n }\n }\n return component;\n }\n getComponents(type, context) {\n const listeners = this._listeners[type];\n if (!listeners) {\n return;\n }\n const components = [];\n for (let i = 0; i < listeners.length; i++) {\n const component = listeners[i].callback(context);\n if (component) {\n components.push(component);\n }\n }\n if (!components.length) {\n return;\n }\n return components;\n }\n onGetComponent(type, priority, callback) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(priority)) {\n callback = priority;\n priority = DEFAULT_PRIORITY;\n }\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(priority)) {\n throw new Error('priority must be a number');\n }\n const listeners = this._getListeners(type);\n let existingListener, idx;\n const newListener = {\n priority,\n callback\n };\n for (idx = 0; existingListener = listeners[idx]; idx++) {\n if (existingListener.priority < priority) {\n // prepend newListener at before existingListener\n listeners.splice(idx, 0, newListener);\n return;\n }\n }\n listeners.push(newListener);\n }\n offGetComponent(type, callback) {\n const listeners = this._getListeners(type);\n let listener, listenerCallback, idx;\n if (callback) {\n // move through listeners from back to front\n // and remove matching listeners\n for (idx = listeners.length - 1; listener = listeners[idx]; idx--) {\n listenerCallback = listener.callback;\n if (listenerCallback === callback) {\n listeners.splice(idx, 1);\n }\n }\n } else {\n // clear listeners\n listeners.length = 0;\n }\n }\n _getListeners(type) {\n let listeners = this._listeners[type];\n if (!listeners) {\n this._listeners[type] = listeners = [];\n }\n return listeners;\n }\n}\n//# sourceMappingURL=Components.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/viewer/core/Components.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/viewer/core/Renderer.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/viewer/core/Renderer.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Renderer)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _components_ViewerComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/ViewerComponent */ \"./node_modules/dmn-js-shared/lib/base/viewer/core/components/ViewerComponent.js\");\n\n\n\nclass Renderer {\n constructor(changeSupport, components, config, eventBus, injector) {\n const {\n container\n } = config;\n this._container = container;\n eventBus.on('renderer.mount', () => {\n (0,inferno__WEBPACK_IMPORTED_MODULE_0__.render)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _components_ViewerComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"injector\": injector\n }), container);\n });\n eventBus.on('renderer.unmount', () => {\n (0,inferno__WEBPACK_IMPORTED_MODULE_0__.render)(null, container);\n });\n }\n getContainer() {\n return this._container;\n }\n}\nRenderer.$inject = ['changeSupport', 'components', 'config.renderer', 'eventBus', 'injector'];\n//# sourceMappingURL=Renderer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/viewer/core/Renderer.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/viewer/core/components/ViewerComponent.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/viewer/core/components/ViewerComponent.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ViewerComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass ViewerComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props) {\n super(props);\n const injector = this._injector = props.injector;\n this._changeSupport = injector.get('changeSupport');\n this._components = injector.get('components');\n this._renderer = injector.get('renderer');\n }\n getChildContext() {\n return {\n changeSupport: this._changeSupport,\n components: this._components,\n renderer: this._renderer,\n injector: this._injector\n };\n }\n render() {\n const components = this._components.getComponents('viewer');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"viewer-container\", components && components.map((Component, index) => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index)), 0);\n }\n}\n//# sourceMappingURL=ViewerComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/viewer/core/components/ViewerComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/base/viewer/core/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/base/viewer/core/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ChangeSupport__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ChangeSupport */ \"./node_modules/dmn-js-shared/lib/base/viewer/core/ChangeSupport.js\");\n/* harmony import */ var _Components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components */ \"./node_modules/dmn-js-shared/lib/base/viewer/core/Components.js\");\n/* harmony import */ var diagram_js_lib_core_EventBus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/core/EventBus */ \"./node_modules/diagram-js/lib/core/EventBus.js\");\n/* harmony import */ var _Renderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Renderer */ \"./node_modules/dmn-js-shared/lib/base/viewer/core/Renderer.js\");\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['changeSupport', 'components', 'renderer'],\n changeSupport: ['type', _ChangeSupport__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n components: ['type', _Components__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n eventBus: ['type', diagram_js_lib_core_EventBus__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n renderer: ['type', _Renderer__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/base/viewer/core/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/ContentEditable.js": +/*!**********************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/ContentEditable.js ***! + \**********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContentEditable)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! escape-html */ \"./node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var selection_ranges__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! selection-ranges */ \"./node_modules/selection-ranges/dist/index.esm.js\");\n/* harmony import */ var selection_update__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! selection-update */ \"./node_modules/selection-update/index.js\");\n/* harmony import */ var selection_update__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(selection_update__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n\n\n/**\n * A content ediable that performs proper selection updates on\n * editable changes. It normalizes editor operations by allowing\n * only
and plain text to be inserted.\n *\n * The callback `onInput(text)` recieves text (including line breaks)\n * only. Updating the value via props will update the selection\n * if needed, too.\n *\n * @example\n *\n * class SomeComponent extends Component {\n *\n * render() {\n * return (\n * \n * );\n * }\n *\n * }\n *\n */\nclass ContentEditable extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.state = {};\n\n // TODO(nikku): remove once we drop IE 11 support\n if (isIE()) {\n // onInput shim for IE <= 11\n this.onInputIEPolyfill = event => {\n var oldText = this.node.innerHTML;\n setTimeout(() => {\n var text = this.node.innerHTML;\n if (oldText !== text) {\n this.onInput(event);\n }\n }, 0);\n };\n }\n }\n componentWillUpdate(newProps, newState) {\n // save old selection + text for later\n var node = this.node;\n var range = newState.focussed && (0,selection_ranges__WEBPACK_IMPORTED_MODULE_2__.getRange)(node);\n this.selected = range && {\n range: range,\n text: innerText(node)\n };\n }\n componentDidUpdate() {\n var selected = this.selected;\n if (!selected) {\n return;\n }\n\n // compute and restore selection based on\n // (possibly new) text\n\n const range = selected.range;\n const text = selected.text;\n const node = this.node;\n const newText = innerText(node);\n const newRange = newText !== text ? selection_update__WEBPACK_IMPORTED_MODULE_3___default()(range, text, newText) : range;\n (0,selection_ranges__WEBPACK_IMPORTED_MODULE_2__.setRange)(node, newRange);\n }\n onFocus = event => {\n var propsFocus = this.props.onFocus;\n this.setState({\n focussed: true\n });\n if (typeof propsFocus === 'function') {\n propsFocus(event);\n }\n };\n onBlur = event => {\n const {\n onBlur,\n onChange,\n value\n } = this.props;\n this.setState({\n focussed: false\n });\n if (typeof onChange === 'function' && this.node) {\n const currentValue = innerText(this.node);\n if (currentValue !== value) {\n onChange(currentValue);\n }\n }\n if (typeof onBlur === 'function') {\n onBlur(event);\n }\n };\n onKeydown = event => {\n // enter\n if (event.which === 13) {\n // prevent default action (
insert)\n event.preventDefault();\n if (this.props.ctrlForNewline && !isCmd(event)) {\n return;\n }\n if (this.props.singleLine) {\n return;\n }\n event.stopPropagation();\n insertLineBreak();\n this.onInput(event);\n }\n };\n onInput = event => {\n var propsInput = this.props.onInput;\n if (typeof propsInput !== 'function') {\n return;\n }\n var text = innerText(this.node);\n propsInput(text);\n };\n\n // TODO(barmac): remove once we drop IE 11 support\n onKeyPress = event => {\n if (this.onInputIEPolyfill) {\n this.onInputIEPolyfill(event);\n }\n };\n onPaste = event => {\n // TODO(barmac): remove once we drop IE 11 support\n if (this.onInputIEPolyfill) {\n this.onInputIEPolyfill(event);\n }\n if (this.props.singleLine) {\n const text = (event.clipboardData || window.clipboardData).getData('text');\n\n // replace newline with space\n document.execCommand('insertText', false, text.replace(/\\n/g, ' '));\n event.preventDefault();\n }\n };\n getClassName() {\n const {\n className,\n placeholder,\n value\n } = this.props;\n return [className || '', 'content-editable', !value && placeholder ? 'placeholder' : ''].join(' ');\n }\n render(props) {\n var {\n label,\n value,\n placeholder\n } = props;\n\n // QUIRK: must add trailing
for line\n // breaks to properly work\n value = escape_html__WEBPACK_IMPORTED_MODULE_1___default()(value).replace(/\\r?\\n/g, '
') + '
';\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", this.getClassName(), null, 1, {\n \"aria-label\": label,\n \"role\": \"textbox\",\n \"aria-multiline\": !this.props.singleLine,\n \"tabIndex\": \"0\",\n \"contentEditable\": \"true\",\n \"spellcheck\": \"false\",\n \"data-placeholder\": placeholder || '',\n \"onInput\": this.onInput,\n \"onKeypress\": this.onKeypress,\n \"onPaste\": this.onPaste,\n \"onFocus\": this.onFocus,\n \"onBlur\": this.onBlur,\n \"onKeydown\": this.onKeydown,\n \"dangerouslySetInnerHTML\": {\n __html: value\n }\n }, null, node => this.node = node);\n }\n}\nfunction brTag() {\n return document.createElement('br');\n}\nfunction innerText(node) {\n // QUIRK: we must remove the last trailing
, if any\n return node.innerText.replace(/\\n$/, '');\n}\nfunction insertLineBreak() {\n // insert line break at current insertation\n // point; this assumes that the correct element, i.e.\n // a is currently focussed\n var selection = (0,selection_ranges__WEBPACK_IMPORTED_MODULE_2__.getWindowSelection)();\n var range = selection.getRangeAt(0);\n if (!range) {\n return;\n }\n var newRange = range.cloneRange();\n var br = brTag();\n newRange.deleteContents();\n newRange.insertNode(br);\n newRange.setStartAfter(br);\n newRange.setEndAfter(br);\n (0,selection_ranges__WEBPACK_IMPORTED_MODULE_2__.applyRange)(newRange);\n}\nfunction isIE() {\n var ua = window.navigator.userAgent;\n return (\n // IE 10 or older\n ua.indexOf('MSIE ') > 0 ||\n // IE 11\n ua.indexOf('Trident/') > 0\n );\n}\nfunction isCmd(event) {\n return event.metaKey || event.ctrlKey;\n}\n//# sourceMappingURL=ContentEditable.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/ContentEditable.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/EditableComponent.js": +/*!************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/EditableComponent.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditableComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _ContentEditable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContentEditable */ \"./node_modules/dmn-js-shared/lib/components/ContentEditable.js\");\n\n\n\n\n/**\n * A base component for interactivity.\n *\n * @example\n *\n * class Foo extends EditableComponent {\n *\n * render() {\n * return (\n *
{ this.getEditor() }
\n * );\n * }\n * }\n *\n * And in use:\n *\n * { ... }\n * onFocus={ () => { ... } }\n * onBlur={ () => { ... } }\n * validate={ (newValue) => { return 'some-error'; } }\n * className=\"...\" } />\n *\n * Special classes added:\n *\n * * focused\n * * invalid\n *\n */\nclass EditableComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n changing: false,\n focussed: false\n };\n const {\n injector\n } = context;\n const debounceInput = injector.get('debounceInput');\n this.inputChanged = debounceInput(value => {\n const {\n onChange\n } = this.props;\n if (typeof onChange === 'function') {\n onChange(value);\n }\n\n // only unset changed if user input and\n // committed changed value equal. This prevents the\n // input jumping back to the saved, good value.\n const currentValue = this.state.changing;\n this.setState({\n changing: currentValue === value ? false : currentValue\n });\n });\n this.onInput = value => {\n var validate = this.props.validate || function () {};\n var invalid = validate(value);\n this.setState({\n changing: value,\n invalid: invalid\n });\n if (!invalid) {\n this.inputChanged(value);\n }\n };\n }\n onFocus = event => {\n this.setState({\n focussed: true\n });\n var {\n onFocus\n } = this.props;\n if (typeof onFocus === 'function') {\n onFocus(event);\n }\n };\n onBlur = event => {\n this.setState({\n focussed: false\n });\n const {\n invalid\n } = this.state;\n if (invalid) {\n this.setState({\n changing: false,\n invalid: false\n });\n }\n const {\n onBlur\n } = this.props;\n if (typeof onBlur === 'function') {\n onBlur(event);\n }\n };\n getClassName() {\n var {\n className,\n value\n } = this.props;\n var {\n changing,\n focussed,\n invalid\n } = this.state;\n className += ' editable';\n if (focussed) {\n className += ' focussed';\n }\n if (invalid) {\n className += ' invalid';\n }\n if (!value && !changing) {\n className += ' empty';\n }\n return className;\n }\n getDisplayValue() {\n var {\n value,\n placeholder\n } = this.props;\n var {\n focussed,\n changing\n } = this.state;\n if (typeof changing === 'string') {\n value = changing;\n }\n if (!value) {\n value = focussed ? '' : placeholder || '';\n }\n return value;\n }\n getEditor(props = {}) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _ContentEditable__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"className\": props.className,\n \"ctrlForNewline\": this.props.ctrlForNewline,\n \"label\": this.props.label,\n \"onFocus\": this.onFocus,\n \"onBlur\": this.onBlur,\n \"onInput\": this.onInput,\n \"value\": this.getDisplayValue()\n });\n }\n}\n//# sourceMappingURL=EditableComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/EditableComponent.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/Input.js": +/*!************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/Input.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Input)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass Input extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n value: props.value\n };\n }\n onInput = event => {\n const {\n onInput\n } = this.props;\n const value = event.target.value;\n this.setState({\n value\n }, () => {\n if (typeof onInput !== 'function') {\n return;\n }\n onInput(value);\n });\n };\n onChange = event => {\n const {\n onChange\n } = this.props;\n if (typeof onChange !== 'function') {\n return;\n }\n onChange(event.target.value);\n };\n onKeyDown = event => {\n const {\n onKeyDown\n } = this.props;\n if (typeof onKeyDown !== 'function') {\n return;\n }\n onKeyDown(event);\n };\n onKeyUp = event => {\n const {\n onKeyUp\n } = this.props;\n if (typeof onKeyUp !== 'function') {\n return;\n }\n onKeyUp(event);\n };\n componentDidUpdate(prevProps) {\n const {\n value\n } = this.props;\n if (value !== prevProps.value && value !== this.state.value) {\n this.setState({\n value\n });\n }\n }\n render() {\n const {\n className,\n label,\n id,\n placeholder,\n type\n } = this.props;\n const {\n value\n } = this.state;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(64, \"input\", [className || '', 'dms-input'].join(' '), null, 1, {\n \"aria-label\": label,\n \"placeholder\": placeholder || '',\n \"onChange\": this.onChange,\n \"onInput\": this.onInput,\n \"onKeyDown\": this.onKeyDown,\n \"onKeyUp\": this.onKeyUp,\n \"spellcheck\": \"false\",\n \"type\": type || 'text',\n \"value\": value,\n \"id\": id\n });\n }\n}\n//# sourceMappingURL=Input.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/Input.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/InputSelect.js": +/*!******************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/InputSelect.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InputSelect)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! table-js/lib/components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n\n\n\n\nclass InputSelect extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,table_js_lib_components__WEBPACK_IMPORTED_MODULE_1__.inject)(this);\n const {\n value\n } = props;\n this.state = {\n value,\n optionsVisible: false\n };\n this._portalEl = null;\n }\n componentDidMount() {\n document.addEventListener('mousedown', this.onGlobalClick);\n document.addEventListener('focusin', this.onFocusChanged);\n this.keyboard.addListener(this.onKeyboard);\n }\n componentWillUnmount() {\n document.removeEventListener('focusin', this.onFocusChanged);\n document.removeEventListener('mousedown', this.onGlobalClick);\n this.keyboard.removeListener(this.onKeyboard);\n this.removePortalEl();\n }\n componentWillReceiveProps(props) {\n const {\n value\n } = props;\n this.setState({\n value\n });\n }\n componentWillUpdate(nextProps, nextState) {\n const {\n optionsVisible\n } = nextState;\n if (optionsVisible) {\n if (!this._portalEl) {\n this.addPortalEl();\n }\n } else {\n if (this._portalEl) {\n this.removePortalEl();\n }\n }\n }\n componentDidUpdate() {\n const {\n optionsVisible\n } = this.state;\n if (!optionsVisible || !this.inputNode) {\n return;\n }\n const optionsBounds = this.getOptionsBounds();\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(this._portalEl.style, optionsBounds);\n }\n getOptionsBounds() {\n const container = this.renderer.getContainer();\n const {\n top: containerTop,\n left: containerLeft,\n bottom: containerBottom\n } = container.getBoundingClientRect();\n const {\n top: inputTop,\n left: inputLeft,\n width,\n height,\n bottom: inputBottom\n } = this.inputNode.getBoundingClientRect();\n const top = inputTop + height - containerTop + container.scrollTop;\n const left = inputLeft - containerLeft + container.scrollLeft;\n const bounds = {\n top: `${top}px`,\n left: `${left}px`,\n width: `${width}px`,\n 'max-height': `calc(100% - ${top}px)`\n };\n\n // open the options upwards when not even one option (=input height) fits\n if (containerBottom - inputBottom < height) {\n const bottom = containerBottom - inputTop;\n bounds.bottom = `${bottom}px`;\n bounds['max-height'] = `calc(100% - ${bottom})`;\n delete bounds.top;\n }\n return bounds;\n }\n addPortalEl() {\n this._portalEl = (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.domify)('
');\n const container = this.renderer.getContainer();\n container.appendChild(this._portalEl);\n\n // suppress mousedown event propagation to handle click events inside the component\n this._portalEl.addEventListener('mousedown', stopPropagation);\n }\n removePortalEl() {\n if (this._portalEl) {\n this._portalEl.removeEventListener('mousedown', stopPropagation);\n (0,min_dom__WEBPACK_IMPORTED_MODULE_3__.remove)(this._portalEl);\n this._portalEl = null;\n }\n }\n onChange = value => {\n this.setState({\n value\n });\n const {\n onChange\n } = this.props;\n if (typeof onChange !== 'function') {\n return;\n }\n onChange(value);\n };\n onInputClick = event => {\n event.preventDefault();\n event.stopPropagation();\n this.setOptionsVisible(!this.state.optionsVisible);\n this.focusInput();\n };\n onInput = event => {\n const {\n value\n } = event.target;\n this.onChange(value);\n };\n onOptionClick = (value, event) => {\n event.preventDefault();\n event.stopPropagation();\n this.setOptionsVisible(false);\n this.onChange(value);\n this.focusInput();\n };\n\n /**\r\n * Focus input node\r\n */\n focusInput() {\n const node = this.inputNode;\n node.focus();\n\n // move cursor to end of input\n if ('selectionStart' in node) {\n node.selectionStart = 100000;\n }\n }\n checkClose(focusTarget) {\n if (this._portalEl && !this._portalEl.contains(focusTarget) && !this.parentNode.contains(focusTarget)) {\n this.setOptionsVisible(false);\n }\n }\n onFocusChanged = evt => {\n this.checkClose(evt.target);\n };\n onGlobalClick = evt => {\n this.checkClose(evt.target);\n };\n select(direction) {\n const {\n options\n } = this.props;\n const {\n value\n } = this.state;\n if (!options) {\n return;\n }\n const option = options.filter(o => o.value === value)[0];\n const idx = option ? options.indexOf(option) : -1;\n const nextIdx = idx === -1 ? direction === 1 ? 0 : options.length - 1 : (idx + direction) % options.length;\n const nextOption = options[nextIdx < 0 ? options.length + nextIdx : nextIdx];\n this.onChange(nextOption.value);\n }\n setOptionsVisible(optionsVisible) {\n this.setState({\n optionsVisible\n });\n }\n onKeyDown = evt => {\n const {\n optionsVisible\n } = this.state;\n var code = evt.which;\n\n // DOWN or UP\n if (code === 40 || code === 38) {\n evt.stopPropagation();\n evt.preventDefault();\n if (!optionsVisible) {\n this.setOptionsVisible(true);\n } else {\n this.select(code === 40 ? 1 : -1);\n }\n }\n if (optionsVisible) {\n // ENTER\n // ESC\n if (code === 13 || code === 27) {\n evt.stopPropagation();\n evt.preventDefault();\n this.setOptionsVisible(false);\n }\n }\n };\n onKeyboard = keycode => {\n const {\n optionsVisible\n } = this.state;\n if (!optionsVisible) {\n return;\n }\n\n // close on ESC\n if (keycode === 27) {\n this.setOptionsVisible(false);\n return true;\n }\n };\n renderOptions(options, activeOption) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"options\", options.map(option => {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", ['option', activeOption === option ? 'active' : ''].join(' '), option.label, 0, {\n \"data-value\": option.value,\n \"onClick\": e => this.onOptionClick(option.value, e)\n });\n }), 0);\n }\n render() {\n const {\n className,\n label: inputLabel,\n id,\n options,\n noInput,\n title\n } = this.props;\n const {\n optionsVisible,\n value\n } = this.state;\n const option = options ? options.filter(o => o.value === value)[0] : false;\n const label = option ? option.label : value;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", [className || '', 'dms-input-select'].join(' '), [noInput ? (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"dms-input\", label, 0, {\n \"aria-label\": inputLabel,\n \"tabindex\": \"0\",\n \"onKeyDown\": this.onKeyDown\n }, null, node => this.inputNode = node) : (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(64, \"input\", \"dms-input\", null, 1, {\n \"aria-label\": inputLabel,\n \"onInput\": this.onInput,\n \"onKeyDown\": this.onKeyDown,\n \"spellcheck\": \"false\",\n \"type\": \"text\",\n \"value\": value,\n \"id\": id\n }, null, node => this.inputNode = node), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", ['dms-input-select-icon', optionsVisible ? 'dmn-icon-up' : 'dmn-icon-down'].join(' ')), optionsVisible && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createPortal)(this.renderOptions(options, option), this._portalEl)], 0, {\n \"title\": title,\n \"onClick\": this.onInputClick\n }, null, node => this.parentNode = node);\n }\n}\nInputSelect.$inject = ['keyboard', 'renderer'];\n\n// helper ////\nfunction stopPropagation(event) {\n event.stopPropagation();\n}\n//# sourceMappingURL=InputSelect.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/InputSelect.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/List.js": +/*!***********************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/List.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ List)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\nconst RADIO = 'radio';\nconst REMOVE_BTN_CLS = 'remove dmn-icon-clear';\n\n/**\n * Shows a list of grouped items that can be checked\n * (checkboxes or radio buttons), removed.\n *\n * Example list of items:\n *\n * [\n * { value: 'foo', isChecked: true, isRemovable: false, group: 'foo' },\n * { value: 'bar', isChecked: false, isRemovable: true, group: 'bar' },\n * { value: 'baz', isCheckable: false, group: 'baz' }\n * ]\n */\nclass List extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n const {\n items\n } = props;\n this.state = {\n items\n };\n }\n componentWillReceiveProps(props) {\n const {\n items\n } = props;\n this.setState({\n items\n });\n }\n getRemoveClickHandler = item => {\n return e => {\n e.stopPropagation();\n this.removeItem(item);\n };\n };\n getToggleClickHandler = item => {\n return e => {\n e.stopPropagation();\n this.toggleItem(item);\n };\n };\n removeItem = item => {\n const {\n onChange\n } = this.props;\n\n // remove item\n const newItems = this.state.items.filter(i => i !== item);\n this.setState({\n items: newItems\n });\n onChange && onChange(newItems);\n };\n toggleItem = item => {\n const {\n onChange,\n type\n } = this.props;\n\n // toggle item\n const newItems = this.state.items.map(i => {\n if (i === item) {\n i.isChecked = !i.isChecked;\n } else {\n if (type === RADIO) {\n i.isChecked = false;\n }\n }\n return i;\n });\n this.setState({\n items: newItems\n });\n onChange && onChange(newItems);\n };\n render() {\n const {\n className,\n items,\n type,\n labelComponent\n } = this.props;\n const classes = ['dms-list-component'];\n if (className) {\n classes.push(className);\n }\n\n // group items by group title\n const groupedItems = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.groupBy)(items, 'group');\n const asPairs = toPairs(groupedItems);\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", classes.join(' '), asPairs.map(pair => {\n const groupTitle = pair[0],\n groupItems = pair[1];\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"group\", [labelComponent && labelComponent(groupTitle) || (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"h4\", \"dms-heading\", groupTitle, 0), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"ul\", \"items no-wrap\", groupItems.map(item => {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"li\", \"item\", [type && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(64, \"input\", \"item-toggle\", null, 1, {\n \"type\": type,\n \"checked\": item.isChecked,\n \"onClick\": this.getToggleClickHandler(item)\n }), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(\"\\xA0\"), item.value, item.isRemovable && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"span\", REMOVE_BTN_CLS, null, 1, {\n \"title\": \"Remove item\",\n \"onClick\": this.getRemoveClickHandler(item)\n })], 0);\n }), 0)], 0);\n }), 0);\n }\n}\n\n// helpers ////////////\n\nfunction toPairs(object) {\n const entrys = [];\n for (let key in object) {\n entrys.push([key, object[key]]);\n }\n return entrys;\n}\n//# sourceMappingURL=List.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/List.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/LiteralExpression.js": +/*!************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/LiteralExpression.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LiteralExpression)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _bpmn_io_feel_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bpmn-io/feel-editor */ \"./node_modules/@bpmn-io/feel-editor/dist/index.es.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n\n\n\n\n\n/**\n * A drop-in replacement for ContentEditable which uses FEEL editor under the hood.\n * It does not support placeholder.\n *\n * The callback `onInput(text)` receives text (including line breaks)\n * only. Updating the value via props will update the selection\n * if needed, too.\n *\n * @example\n *\n * class SomeComponent extends Component {\n *\n * render() {\n * return (\n * \n * );\n * }\n *\n * }\n *\n */\nclass LiteralExpression extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n\n /** @type {HTMLElement} */\n this.node = null;\n this.editor = null;\n this.state = {\n value: props.value\n };\n }\n componentDidMount() {\n this.editor = new _bpmn_io_feel_editor__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n contentAttributes: {\n 'aria-label': this.props.label\n },\n container: this.node,\n onChange: this.handleChange,\n value: this.state.value,\n variables: this.props.variables || [],\n extensions: [_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.lineWrapping]\n });\n this.node.addEventListener('mousedown', this.handleMouseEvent);\n\n // `capture: true` is needed to precede Keyboard handlers\n this.node.addEventListener('keydown', this.handleKeyDownCapture, true);\n this.node.addEventListener('keydown', this.handleKeyDown);\n if (this.props.autoFocus) {\n this.editor.focus(this.state.value.length);\n }\n }\n componentDidUpdate(prevProps) {\n const {\n value\n } = this.props;\n if (prevProps.value !== value && value !== this.state.value) {\n this.setState({\n value\n }, () => {\n this.editor.setValue(value);\n });\n }\n if (!deepEqual(prevProps.variables, this.props.variables)) {\n this.editor.setVariables(this.props.variables);\n }\n }\n componentWillUnmount() {\n this.node.removeEventListener('mousedown', this.handleMouseEvent);\n\n // `capture: true` is needed to precede FEEL editor default handling\n this.node.removeEventListener('keydown', this.handleKeyDownCapture, true);\n this.node.removeEventListener('keydown', this.handleKeyDown);\n }\n handleMouseEvent = event => {\n event.stopPropagation();\n };\n handleKeyDownCapture = event => {\n if (event.key === 'Enter') {\n if (isAutocompleteOpen(this.node)) {\n event.triggeredFromAutocomplete = true;\n return;\n }\n\n // supress non cmd+enter newline\n if (this.props.ctrlForNewline && !isCmd(event)) {\n event.preventDefault();\n }\n if (this.props.singleLine) {\n event.preventDefault();\n }\n }\n };\n\n /**\n * @param {KeyboardEvent} event\n */\n handleKeyDown = event => {\n // contain the event in the component to not trigger global handlers\n if (['Enter', 'Escape'].includes(event.key) && event.triggeredFromAutocomplete) {\n event.stopPropagation();\n }\n };\n handleChange = value => {\n const {\n onInput\n } = this.props;\n this.setState({\n value\n });\n if (onInput) {\n onInput(value);\n }\n };\n handleBlur = () => {\n const {\n onBlur,\n onChange\n } = this.props;\n if (onChange && this.state.value !== this.props.value) {\n onChange(this.state.value);\n }\n if (onBlur) {\n onBlur();\n }\n };\n setNode = node => {\n this.node = node;\n };\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", ['literal-expression', this.props.className || ''].join(' '), null, 1, {\n \"onClick\": this.handleMouseEvent,\n \"onFocusIn\": this.props.onFocus,\n \"onFocusOut\": this.handleBlur\n }, null, this.setNode);\n }\n}\nfunction isCmd(event) {\n return event.metaKey || event.ctrlKey;\n}\nfunction isAutocompleteOpen(node) {\n return node.querySelector('.cm-tooltip-autocomplete');\n}\nfunction deepEqual(a, b) {\n return JSON.stringify(a) === JSON.stringify(b);\n}\n//# sourceMappingURL=LiteralExpression.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/LiteralExpression.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/ValidatedInput.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/ValidatedInput.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidatedInput)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Input */ \"./node_modules/dmn-js-shared/lib/components/Input.js\");\n\n\n\n// eslint-disable-next-line\n\n\n/**\r\n * Input with optional validation.\r\n */\nclass ValidatedInput extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n const {\n validate,\n value\n } = props;\n const validationWarning = validate ? validate(value || '') : undefined;\n this.state = {\n validationWarning,\n value\n };\n this.onInput = this.onInput.bind(this);\n this.onKeyDown = this.onKeyDown.bind(this);\n this.onKeyUp = this.onKeyUp.bind(this);\n }\n componentWillReceiveProps(props) {\n const {\n validate,\n value\n } = props;\n const validationWarning = validate ? validate(value || '') : undefined;\n this.setState({\n validationWarning,\n value\n });\n }\n onInput(value) {\n const {\n onInput,\n validate\n } = this.props;\n const validationWarning = validate ? validate(value) : undefined;\n this.setState({\n validationWarning,\n value\n });\n if (typeof onInput !== 'function') {\n return;\n }\n onInput && onInput({\n isValid: !validationWarning,\n value\n });\n }\n onKeyDown(event) {\n const {\n target\n } = event,\n {\n value\n } = target;\n const {\n onKeyDown,\n validate\n } = this.props;\n const validationWarning = validate ? validate(value) : undefined;\n if (typeof onKeyDown !== 'function') {\n return;\n }\n onKeyDown({\n isValid: !validationWarning,\n value,\n event\n });\n }\n onKeyUp(event) {\n const {\n target\n } = event,\n {\n value\n } = target;\n const {\n onKeyUp,\n validate\n } = this.props;\n const validationWarning = validate ? validate(value) : undefined;\n if (typeof onKeyUp !== 'function') {\n return;\n }\n onKeyUp({\n isValid: !validationWarning,\n value,\n event\n });\n }\n render() {\n const {\n placeholder,\n type,\n className,\n label\n } = this.props;\n const {\n validationWarning,\n value\n } = this.state;\n const parentClasses = ['dms-validated-input', className].join(' ');\n const inputClasses = [];\n if (validationWarning) {\n inputClasses.push('invalid');\n }\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", parentClasses, [(0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _Input__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"className\": inputClasses,\n \"label\": label,\n \"onInput\": this.onInput,\n \"onKeyDown\": this.onKeyDown,\n \"onKeyUp\": this.onKeyUp,\n \"placeholder\": placeholder || '',\n \"type\": type,\n \"value\": value || ''\n }), validationWarning && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"p\", \"dms-hint dms-validation-warning\", validationWarning, 0)], 0);\n }\n}\n//# sourceMappingURL=ValidatedInput.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/ValidatedInput.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/mixins/ComponentWithSlots.js": +/*!********************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/mixins/ComponentWithSlots.js ***! + \********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n/**\n * A simple slot extension, built upon the components service.\n *\n * @type {Object}\n */\nconst ComponentWithSlots = {\n slotFill(slotProps, DefaultFill) {\n const {\n type,\n context,\n ...props\n } = slotProps;\n const Fill = this.components.getComponent(type, context) || DefaultFill;\n if (Fill) {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Fill, {\n ...context,\n ...props\n }));\n }\n return null;\n },\n slotFills(slotProps) {\n const {\n type,\n context,\n ...props\n } = slotProps;\n const fills = this.components.getComponents(type, context);\n return fills.map(Fill => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Fill, {\n ...context,\n ...props\n })));\n }\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ComponentWithSlots);\nComponentWithSlots.$inject = ['components'];\n//# sourceMappingURL=ComponentWithSlots.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/mixins/ComponentWithSlots.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/components/mixins/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/components/mixins/index.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ComponentWithSlots: () => (/* reexport safe */ _ComponentWithSlots__WEBPACK_IMPORTED_MODULE_0__[\"default\"])\n/* harmony export */ });\n/* harmony import */ var _ComponentWithSlots__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ComponentWithSlots */ \"./node_modules/dmn-js-shared/lib/components/mixins/ComponentWithSlots.js\");\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/components/mixins/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/data-types/DataTypes.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/data-types/DataTypes.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DataTypes)\n/* harmony export */ });\nconst DEFAULT_DATA_TYPES = ['string', 'boolean', 'number', 'date', 'time', 'dateTime', 'dayTimeDuration', 'yearMonthDuration', 'Any'];\n\n/**\n * Provide data types via config.\n *\n * @example\n *\n * // The data types will include multiple number types: integer, long, and double.\n * const editor = new DmnJS({\n * common: {\n * dataTypes: [\n * 'string',\n * 'boolean',\n * 'integer',\n * 'long',\n * 'double',\n * 'date'\n * ]\n * }\n * })\n */\nclass DataTypes {\n /**\n * @param {string[]} configuredDataTypes\n */\n constructor(configuredDataTypes) {\n this._dataTypes = configuredDataTypes || DEFAULT_DATA_TYPES;\n }\n\n /**\n * Get list of configured data types.\n *\n * @returns {string[]}\n */\n getAll() {\n return this._dataTypes;\n }\n}\nDataTypes.$inject = ['config.dataTypes'];\n//# sourceMappingURL=DataTypes.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/data-types/DataTypes.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/data-types/index.js": +/*!*********************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/data-types/index.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DataTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DataTypes */ \"./node_modules/dmn-js-shared/lib/features/data-types/DataTypes.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['dataTypes'],\n dataTypes: ['type', _DataTypes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/data-types/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/debounce-input/debounceInput.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/debounce-input/debounceInput.js ***! + \*********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ debounceInput)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst DEFAULT_DEBOUNCE_TIME = 300;\nfunction debounceInput(shouldDebounce) {\n return function _debounceInput(fn) {\n if (shouldDebounce !== false) {\n var debounceTime = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(shouldDebounce) ? shouldDebounce : DEFAULT_DEBOUNCE_TIME;\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.debounce)(fn, debounceTime);\n } else {\n return fn;\n }\n };\n}\ndebounceInput.$inject = ['config.debounceInput'];\n//# sourceMappingURL=debounceInput.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/debounce-input/debounceInput.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/debounce-input/index.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/debounce-input/index.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _debounceInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./debounceInput */ \"./node_modules/dmn-js-shared/lib/features/debounce-input/debounceInput.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n debounceInput: ['factory', _debounceInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/debounce-input/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/expression-languages/ExpressionLanguages.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/expression-languages/ExpressionLanguages.js ***! + \*********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ExpressionLanguages)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst EXPRESSION_LANGUAGE_OPTIONS = [{\n label: 'FEEL',\n value: 'feel'\n}];\n\n/**\n * @typedef ExpressionLanguageDescriptor\n * @property {string} value - value inserted into XML\n * @property {string} label - human-readable label\n */\n\n/**\n * Provide options and defaults of expression languages via config.\n *\n * @example\n *\n * // there will be two languages available with FEEL as default\n * const editor = new DmnJS({\n * common: {\n * expressionLanguages: {\n * options: [{\n * value: 'feel',\n * label: 'FEEL'\n * }, {\n * value: 'juel',\n * label: 'JUEL'\n * }],\n * defaults: {\n * editor: 'feel'\n * }\n * }\n * }\n * })\n */\nclass ExpressionLanguages {\n constructor(injector) {\n this._injector = injector;\n const config = injector.get('config.expressionLanguages') || {};\n this._config = {\n options: EXPRESSION_LANGUAGE_OPTIONS,\n defaults: {\n editor: 'feel'\n }\n };\n\n // first assign the list of languages as it might be required for the legacy defaults\n if (config.options) {\n this._config.options = config.options;\n }\n const legacyDefaults = this._getLegacyDefaults();\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(this._config.defaults, legacyDefaults, config.defaults);\n }\n\n /**\n * Get default expression language for a component or the editor if `componentName`\n * is not provided.\n *\n * @param {string} [componentName]\n * @returns {ExpressionLanguageDescriptor}\n */\n getDefault(componentName) {\n const {\n defaults\n } = this._config;\n const defaultFromConfig = defaults[componentName] || defaults.editor;\n return this._getLanguageByValue(defaultFromConfig) || this.getAll()[0];\n }\n\n /**\n * Get label for provided expression language.\n *\n * @param {string} expressionLanguageValue - value from XML\n * @returns {string}\n */\n getLabel(expressionLanguageValue) {\n const langauge = this._getLanguageByValue(expressionLanguageValue);\n return langauge ? langauge.label : expressionLanguageValue;\n }\n\n /**\n * Get list of configured expression languages.\n *\n * @returns {ExpressionLanguageDescriptor[]}\n */\n getAll() {\n return this._config.options;\n }\n _getLegacyDefaults() {\n const defaults = {},\n injector = this._injector;\n const inputCellValue = injector.get('config.defaultInputExpressionLanguage');\n const outputCellValue = injector.get('config.defaultOutputExpressionLanguage');\n if (inputCellValue) {\n defaults.inputCell = inputCellValue;\n }\n if (outputCellValue) {\n defaults.outputCell = outputCellValue;\n }\n return defaults;\n }\n _getLanguageByValue(value) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.find)(this.getAll(), language => value === language.value);\n }\n}\nExpressionLanguages.$inject = ['injector'];\n//# sourceMappingURL=ExpressionLanguages.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/expression-languages/ExpressionLanguages.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/expression-languages/index.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/expression-languages/index.js ***! + \*******************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ExpressionLanguages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ExpressionLanguages */ \"./node_modules/dmn-js-shared/lib/features/expression-languages/ExpressionLanguages.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['expressionLanguages'],\n expressionLanguages: ['type', _ExpressionLanguages__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/expression-languages/index.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js ***! + \***************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IdChangeBehavior)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! diagram-js/lib/command/CommandInterceptor */ \"./node_modules/diagram-js/lib/command/CommandInterceptor.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\n\nconst ID = 'id';\nclass IdChangeBehavior extends diagram_js_lib_command_CommandInterceptor__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(eventBus) {\n super(eventBus);\n this.executed('element.updateProperties', this.updateIds.bind(this));\n }\n updateIds({\n context\n }) {\n const {\n element,\n oldProperties,\n properties\n } = context;\n const bo = (0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBusinessObject)(element);\n if (this.shouldSkipUpdate(bo, oldProperties, properties)) {\n return;\n }\n const definitions = getDefinitions(bo);\n const drgElements = definitions.get('drgElement');\n drgElements.forEach(drgElement => {\n updateElementReferences(drgElement, oldProperties.id, properties.id);\n });\n const artifacts = definitions.get('artifact');\n artifacts.forEach(artifact => {\n updateAssociationReferences(artifact, oldProperties.id, properties.id);\n });\n }\n shouldSkipUpdate(bo, oldProperties, newProperties) {\n return !isIdChange(oldProperties, newProperties) || !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(bo, 'dmn:DRGElement') && !(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(bo, 'dmn:TextAnnotation');\n }\n}\nIdChangeBehavior.$inject = ['eventBus'];\n\n// helpers //////////////////////\n\nfunction isIdChange(oldProperties, properties) {\n return ID in oldProperties && ID in properties;\n}\n\n/**\r\n * Walk up the tree until at the root to get to dmn:Definitions.\r\n *\r\n * @param {ModdleElement} element\r\n */\nfunction getDefinitions(element) {\n let definitions = element;\n while (!(0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.is)(definitions, 'dmn:Definitions')) {\n definitions = definitions.$parent;\n }\n return definitions;\n}\nfunction updateElementReferences(element, oldId, id) {\n const handlers = {\n authorityRequirement: () => {\n element.authorityRequirement.forEach(authorityRequirement => {\n const {\n requiredAuthority,\n requiredDecision,\n requiredInput\n } = authorityRequirement;\n if (requiredAuthority && requiredAuthority.href === `#${oldId}`) {\n requiredAuthority.href = `#${id}`;\n }\n if (requiredDecision && requiredDecision.href === `#${oldId}`) {\n requiredDecision.href = `#${id}`;\n }\n if (requiredInput && requiredInput.href === `#${oldId}`) {\n requiredInput.href = `#${id}`;\n }\n });\n },\n informationRequirement: () => {\n element.informationRequirement.forEach(informationRequirement => {\n const {\n requiredDecision,\n requiredInput\n } = informationRequirement;\n if (requiredDecision && requiredDecision.href === `#${oldId}`) {\n requiredDecision.href = `#${id}`;\n }\n if (requiredInput && requiredInput.href === `#${oldId}`) {\n requiredInput.href = `#${id}`;\n }\n });\n },\n knowledgeRequirement: () => {\n element.knowledgeRequirement.forEach(knowledgeRequirement => {\n const {\n requiredKnowledge\n } = knowledgeRequirement;\n if (requiredKnowledge && requiredKnowledge.href === `#${oldId}`) {\n requiredKnowledge.href = `#${id}`;\n }\n });\n }\n };\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(handlers, (handler, key) => {\n if (element[key]) {\n handler();\n }\n });\n}\nfunction updateAssociationReferences(element, oldId, id) {\n const handlers = {\n sourceRef: () => {\n const {\n sourceRef\n } = element;\n if (sourceRef.href === `#${oldId}`) {\n sourceRef.href = `#${id}`;\n }\n },\n targetRef: () => {\n const {\n targetRef\n } = element;\n if (targetRef.href === `#${oldId}`) {\n targetRef.href = `#${id}`;\n }\n }\n };\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(handlers, (handler, key) => {\n if (element[key]) {\n handler();\n }\n });\n}\n//# sourceMappingURL=IdChangeBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditPropertiesHandler)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n\n\nconst ID = 'id';\n\n/**\n * A generic handler that implements property editing.\n */\nclass EditPropertiesHandler {\n constructor(elementRegistry, moddle) {\n this._elementRegistry = elementRegistry;\n this._moddle = moddle;\n }\n\n /**\n * \n */\n execute(context) {\n const {\n element,\n properties\n } = context;\n const bo = (0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBusinessObject)(element);\n const {\n changed,\n oldProperties\n } = this.updateProperties(bo, properties);\n context.oldProperties = oldProperties;\n return [...changed, element];\n }\n\n /**\n * \n */\n revert(context) {\n const {\n element,\n oldProperties\n } = context;\n var bo = (0,_util_ModelUtil__WEBPACK_IMPORTED_MODULE_0__.getBusinessObject)(element);\n var {\n changed\n } = this.updateProperties(bo, oldProperties);\n return [...changed, element];\n }\n\n /**\n * Update properties of the given business object\n * and return { changed, oldProperties }.\n */\n updateProperties(bo, newProps) {\n const ids = this._moddle.ids;\n\n // Reduce over all new properties and return\n //\n // {\n // changed,\n // oldProperties\n // }\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.reduce)(newProps, (result, value, key) => {\n const propertyValue = bo.get(key);\n\n // handle nested update\n if (isContainer(value)) {\n if (!isContainer(propertyValue)) {\n throw new Error(`non-existing property <${key}>: cannot update values`);\n }\n let {\n changed,\n oldProperties\n } = this.updateProperties(propertyValue, value);\n return {\n changed: [...result.changed, ...changed, propertyValue],\n oldProperties: {\n ...result.oldProperties,\n [key]: oldProperties\n }\n };\n }\n\n // handle ID change\n if (key === ID && isIdChange(bo, value)) {\n ids.unclaim(bo[ID]);\n this._elementRegistry.updateId(bo, value);\n ids.claim(value, bo);\n }\n\n // handle plain update\n bo.set(key, value);\n return {\n changed: result.changed,\n oldProperties: {\n ...result.oldProperties,\n [key]: propertyValue\n }\n };\n }, {\n changed: [],\n oldProperties: {}\n });\n }\n}\nEditPropertiesHandler.$inject = ['elementRegistry', 'moddle'];\n\n// helpers //////////////////////\n\nfunction isIdChange(element, newId) {\n return element[ID] !== newId;\n}\nfunction isContainer(o) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isDefined)(o) && (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isObject)(o);\n}\n//# sourceMappingURL=UpdatePropertiesHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/features/modeling/cmd/UpdatePropertiesHandler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/util/CompatibilityUtils.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/util/CompatibilityUtils.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ wrapForCompatibility: () => (/* binding */ wrapForCompatibility)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n// TODO: remove with future dmn-js version\n\n/**\n * Wraps APIs to check:\n *\n * 1) If a callback is passed -> Warn users about callback deprecation.\n * 2) If Promise class is implemented in current environment.\n *\n * @private\n */\nfunction wrapForCompatibility(api) {\n return function () {\n if (!window.Promise) {\n throw new Error('Promises is not supported in this environment.' + ' Please polyfill Promise.');\n }\n var argLen = arguments.length;\n if (argLen >= 1 && (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(arguments[argLen - 1])) {\n var callback = arguments[argLen - 1];\n console.warn(new Error('Passing callbacks to ' + replaceBoundPrefix(api.name) + ' is deprecated and will be removed in a future major release. ' + 'Please switch to promises: https://bpmn.io/l/moving-to-promises.html'));\n var argsWithoutCallback = Array.prototype.slice.call(arguments, 0, -1);\n api.apply(this, argsWithoutCallback).then(function (result) {\n var firstKey = Object.keys(result)[0];\n\n // The APIs we are wrapping all resolve a single item depending on the API.\n // For instance, importXML resolves { warnings } and saveXML returns { xml }.\n // That's why we can call the callback with the first item of result.\n return callback(null, result[firstKey]);\n\n // Passing a second paramter instead of catch because we don't want to\n // catch errors thrown by callback().\n }, function (err) {\n return callback(err, err.warnings);\n });\n } else {\n return api.apply(this, arguments);\n }\n };\n}\n\n// helper ////////\n\n/**\n * replaceBoundPrefix - replace the prefix from a string. Can be used\n * when logging the name of an API, not being sure whether is was bound or not.\n *\n * @param {string} string\n * @return {string} the string without the prefix. If no prefix\n * was present, the same string will be returned.\n */\nfunction replaceBoundPrefix(string) {\n return string.replace('bound ', '');\n}\n//# sourceMappingURL=CompatibilityUtils.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/util/CompatibilityUtils.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/util/DiUtil.js": +/*!*******************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/util/DiUtil.js ***! + \*******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ containsDi: () => (/* binding */ containsDi),\n/* harmony export */ hasDi: () => (/* binding */ hasDi)\n/* harmony export */ });\n/**\n * Does the definitions element contain graphical information?\n *\n * @param {ModdleElement} definitions\n *\n * @return {boolean} true, if the definitions contains graphical information\n */\nfunction containsDi(definitions) {\n return definitions.dmnDI && definitions.dmnDI.diagrams && definitions.dmnDI.diagrams[0];\n}\nfunction hasDi(element) {\n return !!element.di;\n}\n//# sourceMappingURL=DiUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/util/DiUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/util/IdsUtil.js": +/*!********************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/util/IdsUtil.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ validateId: () => (/* binding */ validateId)\n/* harmony export */ });\nconst SPACE_REGEX = /\\s/;\n\n// for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar\nconst QNAME_REGEX = /^([a-z][\\w-.]*:)?[a-z_][\\w-.]*$/i;\n\n// for ID validation as per BPMN Schema (QName - Namespace)\nconst ID_REGEX = /^[a-z_][\\w-.]*$/i;\nconst PLACEHOLDER_REGEX = /\\$\\{([^}]*)\\}/g;\n\n/**\n * Validates an ID.\n *\n * @param {ModdleElement} businessObject\n * @param {string} id\n *\n * @return {string} error message\n */\nfunction validateId(businessObject, id) {\n const assigned = businessObject.$model.ids.assigned(id);\n const idExists = assigned && assigned !== businessObject;\n if (!id) {\n return 'Element must have ID.';\n }\n if (idExists) {\n return 'Element must have unique ID.';\n }\n return validateIdFormat(id);\n}\nfunction validateIdFormat(id) {\n id = stripPlaceholders(id);\n if (containsSpace(id)) {\n return 'Id must not contain spaces.';\n }\n if (!ID_REGEX.test(id)) {\n if (QNAME_REGEX.test(id)) {\n return 'Id must not contain prefix.';\n }\n return 'Id must be a valid QName.';\n }\n}\nfunction containsSpace(value) {\n return SPACE_REGEX.test(value);\n}\nfunction stripPlaceholders(id) {\n // replace expression e.g. ${VERSION_TAG}\n // use only the content between ${}\n // for the REGEX check\n return id.replace(PLACEHOLDER_REGEX, '$1');\n}\n//# sourceMappingURL=IdsUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/util/IdsUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/util/ModelUtil.js": +/*!**********************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/util/ModelUtil.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getBoxedExpression: () => (/* binding */ getBoxedExpression),\n/* harmony export */ getBusinessObject: () => (/* binding */ getBusinessObject),\n/* harmony export */ getName: () => (/* binding */ getName),\n/* harmony export */ is: () => (/* binding */ is),\n/* harmony export */ isAny: () => (/* binding */ isAny),\n/* harmony export */ isFeel: () => (/* binding */ isFeel),\n/* harmony export */ isInput: () => (/* binding */ isInput),\n/* harmony export */ isOutput: () => (/* binding */ isOutput),\n/* harmony export */ isRule: () => (/* binding */ isRule)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * Is an element of the given DMN type?\n *\n * @param {tjs.model.Base|ModdleElement} element\n * @param {string} type\n *\n * @return {boolean}\n */\nfunction is(element, type) {\n var bo = getBusinessObject(element);\n return bo && typeof bo.$instanceOf === 'function' && bo.$instanceOf(type);\n}\nfunction isInput(element) {\n return is(element, 'dmn:InputClause');\n}\nfunction isOutput(element) {\n return is(element, 'dmn:OutputClause');\n}\nfunction isRule(element) {\n return is(element, 'dmn:DecisionRule');\n}\n\n/**\n * Return the business object for a given element.\n *\n * @param {tjs.model.Base|ModdleElement} element\n *\n * @return {ModdleElement}\n */\nfunction getBusinessObject(element) {\n return element && element.businessObject || element;\n}\nfunction getName(element) {\n return getBusinessObject(element).name;\n}\n\n/**\n * Return true if element has any of the given types.\n *\n * @param {djs.model.Base} element\n * @param {Array} types\n *\n * @return {boolean}\n */\nfunction isAny(element, types) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.some)(types, function (t) {\n return is(element, t);\n });\n}\n\n/**\n * Return main boxed expression of a given decision or BKM.\n *\n * @param {ModdleElement} decisionOrBkm - the decision or business knowledge model\n * @returns {ModdleElement|undefined}\n */\nfunction getBoxedExpression(decisionOrBkm) {\n var bo = getBusinessObject(decisionOrBkm);\n if (is(bo, 'dmn:Decision')) {\n return bo.get('decisionLogic');\n } else if (is(bo, 'dmn:BusinessKnowledgeModel')) {\n var encapsulatedLogic = bo.get('encapsulatedLogic');\n return encapsulatedLogic && encapsulatedLogic.get('body');\n }\n}\nconst FEEL_NAMESPACE = 'https://www.omg.org/spec/DMN/20191111/FEEL/';\n\n/**\n * Return `true` if the expression language for a given element is FEEL.\n *\n * @param {ModdleElement} element\n * @returns {string}\n */\nfunction isFeel(element) {\n for (let current = element; current; current = current.$parent) {\n const expressionLanguage = current.get('expressionLanguage');\n if (expressionLanguage) {\n if (expressionLanguage === FEEL_NAMESPACE || /feel/i.test(expressionLanguage)) {\n return true;\n } else {\n return false;\n }\n }\n if (is(current, 'dmn:FunctionDefinition')) {\n // TODO(@barmac): remove fallback when moddle assures the default value\n const kind = current.get('kind') || 'FEEL';\n return kind === 'FEEL';\n }\n }\n return true;\n}\n//# sourceMappingURL=ModelUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/util/ModelUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js": +/*!**************************************************************!*\ + !*** ./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PoweredByComponent: () => (/* binding */ PoweredByComponent),\n/* harmony export */ addProjectLogo: () => (/* binding */ addProjectLogo)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n\n/**\n * This file must not be changed or exchanged.\n *\n * @see http://bpmn.io/license for more information.\n */\n\n\n\n\n// inlined ../../../../resources/logo.svg\n// eslint-disable-next-line\nvar BPMNIO_IMG = '';\n\n/**\n * Adds the project logo to the diagram container as\n * required by the bpmn.io license.\n *\n * @see http://bpmn.io/license\n *\n * @param {Element} container\n */\nfunction addProjectLogo(container) {\n var linkMarkup = '' + BPMNIO_IMG + '';\n var linkElement = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)(linkMarkup);\n container.appendChild(linkElement);\n min_dom__WEBPACK_IMPORTED_MODULE_1__.event.bind(linkElement, 'click', function (event) {\n open();\n event.preventDefault();\n });\n}\nclass PoweredByComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n this.node = null;\n }\n componentDidMount() {\n addProjectLogo(this.node);\n }\n render() {\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", null, null, 1, null, null, node => this.node = node);\n }\n}\nfunction css(attrs) {\n return attrs.join(';');\n}\nvar LIGHTBOX_STYLES = css(['z-index: 1001', 'position: fixed', 'top: 0', 'left: 0', 'right: 0', 'bottom: 0']);\nvar BACKDROP_STYLES = css(['width: 100%', 'height: 100%', 'background: rgba(40,40,40,0.2)']);\nvar NOTICE_STYLES = css(['position: absolute', 'left: 50%', 'top: 40%', 'transform: translate(-50%)', 'width: 260px', 'padding: 10px', 'background: white', 'box-shadow: 0 1px 4px rgba(0,0,0,0.3)', 'font-family: Helvetica, Arial, sans-serif', 'font-size: 14px', 'display: flex', 'line-height: 1.3']);\n\n/* eslint-disable max-len */\nvar LIGHTBOX_MARKUP = '
' + '
' + '
' + '' + BPMNIO_IMG + '' + '' + 'Web-based tooling for BPMN, DMN and CMMN diagrams ' + 'powered by bpmn.io.' + '' + '
' + '
';\n/* eslint-enable */\n\nvar lightbox;\nfunction open() {\n if (!lightbox) {\n lightbox = (0,min_dom__WEBPACK_IMPORTED_MODULE_1__.domify)(LIGHTBOX_MARKUP);\n min_dom__WEBPACK_IMPORTED_MODULE_1__.delegate.bind(lightbox, '.backdrop', 'click', function (event) {\n document.body.removeChild(lightbox);\n });\n }\n document.body.appendChild(lightbox);\n}\n//# sourceMappingURL=PoweredByUtil.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js-shared/lib/util/PoweredByUtil.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-js/lib/Modeler.js": +/*!********************************************!*\ + !*** ./node_modules/dmn-js/lib/Modeler.js ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeler)\n/* harmony export */ });\n/* harmony import */ var dmn_js_shared_lib_base_EditingManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dmn-js-shared/lib/base/EditingManager */ \"./node_modules/dmn-js-shared/lib/base/EditingManager.js\");\n/* harmony import */ var dmn_js_drd_lib_Modeler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js-drd/lib/Modeler */ \"./node_modules/dmn-js-drd/lib/Modeler.js\");\n/* harmony import */ var dmn_js_decision_table_lib_Editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dmn-js-decision-table/lib/Editor */ \"./node_modules/dmn-js-decision-table/lib/Editor.js\");\n/* harmony import */ var dmn_js_literal_expression_lib_Editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dmn-js-literal-expression/lib/Editor */ \"./node_modules/dmn-js-literal-expression/lib/Editor.js\");\n/* harmony import */ var dmn_js_boxed_expression__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dmn-js-boxed-expression */ \"./node_modules/dmn-js-boxed-expression/lib/index.js\");\n/* harmony import */ var dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dmn-js-shared/lib/util/ModelUtil */ \"./node_modules/dmn-js-shared/lib/util/ModelUtil.js\");\n/* harmony import */ var dmn_js_shared_lib_util_DiUtil__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dmn-js-shared/lib/util/DiUtil */ \"./node_modules/dmn-js-shared/lib/util/DiUtil.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n\n\n\n\n\n\n\n\n/**\r\n * The dmn editor.\r\n */\nclass Modeler extends dmn_js_shared_lib_base_EditingManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n _getViewProviders() {\n return [{\n id: 'drd',\n constructor: dmn_js_drd_lib_Modeler__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n opens: 'dmn:Definitions'\n }, {\n id: 'decisionTable',\n constructor: dmn_js_decision_table_lib_Editor__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n opens(element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(element, 'dmn:Decision') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(element.decisionLogic, 'dmn:DecisionTable');\n }\n }, {\n id: 'literalExpression',\n constructor: dmn_js_literal_expression_lib_Editor__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n opens(element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(element, 'dmn:Decision') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(element.decisionLogic, 'dmn:LiteralExpression');\n }\n }, {\n id: 'boxedExpression',\n constructor: dmn_js_boxed_expression__WEBPACK_IMPORTED_MODULE_4__.Editor,\n opens(element) {\n return (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(element, 'dmn:BusinessKnowledgeModel') && (0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.getBoxedExpression)(element);\n }\n }];\n }\n _getInitialView(views, ...rest) {\n let initialView = super._getInitialView(views, ...rest);\n if (!initialView) {\n return;\n }\n const element = initialView.element;\n\n // if initial view is definitions without DI, try to open another view\n if ((0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(element, 'dmn:Definitions') && !(0,dmn_js_shared_lib_util_DiUtil__WEBPACK_IMPORTED_MODULE_6__.containsDi)(element)) {\n initialView = (0,min_dash__WEBPACK_IMPORTED_MODULE_7__.find)(views, view => !(0,dmn_js_shared_lib_util_ModelUtil__WEBPACK_IMPORTED_MODULE_5__.is)(view.element, 'dmn:Definitions')) || initialView;\n }\n return initialView;\n }\n}\n//# sourceMappingURL=Modeler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-js/lib/Modeler.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-moddle/dist/index.esm.js": +/*!***************************************************!*\ + !*** ./node_modules/dmn-moddle/dist/index.esm.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! min-dash */ \"./node_modules/dmn-moddle/node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var moddle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moddle */ \"./node_modules/moddle/dist/index.esm.js\");\n/* harmony import */ var moddle_xml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moddle-xml */ \"./node_modules/moddle-xml/dist/index.esm.js\");\n\n\n\n\n/**\n * A sub class of {@link Moddle} with support for import and export of DMN xml files.\n *\n * @class DmnModdle\n * @extends Moddle\n *\n * @param {Object|Array} packages to use for instantiating the model\n * @param {Object} [options] additional options to pass over\n */\nfunction DmnModdle(packages, options) {\n moddle__WEBPACK_IMPORTED_MODULE_0__.Moddle.call(this, packages, options);\n}\n\nDmnModdle.prototype = Object.create(moddle__WEBPACK_IMPORTED_MODULE_0__.Moddle.prototype);\n\n/**\n * The fromXML result.\n *\n * @typedef {Object} ParseResult\n *\n * @property {ModdleElement} rootElement\n * @property {Array} references\n * @property {Array} warnings\n * @property {Object} elementsById - a mapping containing each ID -> ModdleElement\n */\n\n/**\n * The fromXML error.\n *\n * @typedef {Error} ParseError\n *\n * @property {Array} warnings\n */\n\n/**\n * Instantiates a DMN model tree from a given xml string.\n *\n * @param {String} xmlStr\n * @param {String} [typeName='dmn:Definitions'] name of the root element\n * @param {Object} [options] options to pass to the underlying reader\n *\n * @returns {Promise}\n */\nDmnModdle.prototype.fromXML = function(xmlStr, typeName, options) {\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_1__.isString)(typeName)) {\n options = typeName;\n typeName = 'dmn:Definitions';\n }\n\n var reader = new moddle_xml__WEBPACK_IMPORTED_MODULE_2__.Reader((0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({ model: this, lax: true }, options));\n var rootHandler = reader.handler(typeName);\n\n return reader.fromXML(xmlStr, rootHandler);\n};\n\n/**\n * The toXML result.\n *\n * @typedef {Object} SerializationResult\n *\n * @property {String} xml\n */\n\n/**\n * Serializes a DMN object tree to XML.\n *\n * @param {String} element the root element, typically an instance of `Definitions`\n * @param {Object} [options] to pass to the underlying writer\n *\n * @returns {Promise}\n */\nDmnModdle.prototype.toXML = function(element, options) {\n\n var writer = new moddle_xml__WEBPACK_IMPORTED_MODULE_2__.Writer(options);\n\n return new Promise(function(resolve, reject) {\n try {\n var result = writer.toXML(element);\n\n return resolve({\n xml: result\n });\n } catch (err) {\n return reject(err);\n }\n });\n};\n\nvar name$4 = \"DC\";\nvar prefix$4 = \"dc\";\nvar uri$4 = \"http://www.omg.org/spec/DMN/20180521/DC/\";\nvar types$4 = [\n\t{\n\t\tname: \"Dimension\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"width\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"height\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Bounds\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"height\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"width\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"x\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"y\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Point\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"x\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"y\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Color\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"red\",\n\t\t\t\ttype: \"UML_Standard_Profile.mdzip:eee_1045467100323_917313_65\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"green\",\n\t\t\t\ttype: \"UML_Standard_Profile.mdzip:eee_1045467100323_917313_65\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"blue\",\n\t\t\t\ttype: \"UML_Standard_Profile.mdzip:eee_1045467100323_917313_65\"\n\t\t\t}\n\t\t]\n\t}\n];\nvar associations$3 = [\n];\nvar enumerations$3 = [\n\t{\n\t\tname: \"AlignmentKind\",\n\t\tliteralValues: [\n\t\t\t{\n\t\t\t\tname: \"start\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"center\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"end\"\n\t\t\t}\n\t\t]\n\t}\n];\nvar DcPackage = {\n\tname: name$4,\n\tprefix: prefix$4,\n\turi: uri$4,\n\ttypes: types$4,\n\tassociations: associations$3,\n\tenumerations: enumerations$3\n};\n\nvar name$3 = \"DI\";\nvar prefix$3 = \"di\";\nvar uri$3 = \"http://www.omg.org/spec/DMN/20180521/DI/\";\nvar types$3 = [\n\t{\n\t\tname: \"DiagramElement\",\n\t\tisAbstract: true,\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"extension\",\n\t\t\t\ttype: \"Extension\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"id\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisId: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"style\",\n\t\t\t\tisReference: true,\n\t\t\t\ttype: \"Style\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"sharedStyle\",\n\t\t\t\tisReference: true,\n\t\t\t\tisVirtual: true,\n\t\t\t\ttype: \"Style\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Diagram\",\n\t\tsuperClass: [\n\t\t\t\"DiagramElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"name\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"documentation\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"resolution\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Shape\",\n\t\tisAbstract: true,\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"bounds\",\n\t\t\t\ttype: \"dc:Bounds\"\n\t\t\t}\n\t\t],\n\t\tsuperClass: [\n\t\t\t\"DiagramElement\"\n\t\t]\n\t},\n\t{\n\t\tname: \"Edge\",\n\t\tisAbstract: true,\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"waypoint\",\n\t\t\t\ttype: \"dc:Point\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\tsuperClass: [\n\t\t\t\"DiagramElement\"\n\t\t]\n\t},\n\t{\n\t\tname: \"Style\",\n\t\tisAbstract: true,\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"id\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisId: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Extension\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"values\",\n\t\t\t\tisMany: true,\n\t\t\t\ttype: \"Element\"\n\t\t\t}\n\t\t]\n\t}\n];\nvar associations$2 = [\n];\nvar enumerations$2 = [\n];\nvar xml$2 = {\n\ttagAlias: \"lowerCase\"\n};\nvar DiPackage = {\n\tname: name$3,\n\tprefix: prefix$3,\n\turi: uri$3,\n\ttypes: types$3,\n\tassociations: associations$2,\n\tenumerations: enumerations$2,\n\txml: xml$2\n};\n\nvar name$2 = \"DMN\";\nvar prefix$2 = \"dmn\";\nvar uri$2 = \"https://www.omg.org/spec/DMN/20191111/MODEL/\";\nvar types$2 = [\n\t{\n\t\tname: \"AuthorityRequirement\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"requiredAuthority\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"requiredDecision\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"requiredInput\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"ItemDefinition\",\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"typeRef\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"allowedValues\",\n\t\t\t\ttype: \"UnaryTests\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"typeLanguage\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"itemComponent\",\n\t\t\t\ttype: \"ItemDefinition\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"functionItem\",\n\t\t\t\ttype: \"FunctionItem\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"isCollection\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Definitions\",\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"import\",\n\t\t\t\ttype: \"Import\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"itemDefinition\",\n\t\t\t\ttype: \"ItemDefinition\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"drgElement\",\n\t\t\t\ttype: \"DRGElement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"artifact\",\n\t\t\t\ttype: \"Artifact\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"elementCollection\",\n\t\t\t\ttype: \"ElementCollection\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"businessContextElement\",\n\t\t\t\ttype: \"BusinessContextElement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"namespace\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"expressionLanguage\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"typeLanguage\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"exporter\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"exporterVersion\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"dmnDI\",\n\t\t\t\ttype: \"dmndi:DMNDI\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"KnowledgeSource\",\n\t\tsuperClass: [\n\t\t\t\"DRGElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"authorityRequirement\",\n\t\t\t\ttype: \"AuthorityRequirement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"type\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"owner\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"locationURI\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DecisionRule\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"inputEntry\",\n\t\t\t\ttype: \"UnaryTests\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"outputEntry\",\n\t\t\t\ttype: \"LiteralExpression\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"annotationEntry\",\n\t\t\t\ttype: \"RuleAnnotation\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Expression\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"typeRef\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"InformationItem\",\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"typeRef\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Decision\",\n\t\tsuperClass: [\n\t\t\t\"DRGElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"question\",\n\t\t\t\ttype: \"String\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"allowedAnswers\",\n\t\t\t\ttype: \"String\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"variable\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"informationRequirement\",\n\t\t\t\ttype: \"InformationRequirement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"knowledgeRequirement\",\n\t\t\t\ttype: \"KnowledgeRequirement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"authorityRequirement\",\n\t\t\t\ttype: \"AuthorityRequirement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"supportedObjective\",\n\t\t\t\tisMany: true,\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"impactedPerformanceIndicator\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"decisionMaker\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"decisionOwner\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"usingProcess\",\n\t\t\t\tisMany: true,\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"usingTask\",\n\t\t\t\tisMany: true,\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"decisionLogic\",\n\t\t\t\ttype: \"Expression\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Invocation\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"calledFunction\",\n\t\t\t\ttype: \"Expression\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"binding\",\n\t\t\t\ttype: \"Binding\",\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"OrganisationalUnit\",\n\t\tsuperClass: [\n\t\t\t\"BusinessContextElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"decisionMade\",\n\t\t\t\ttype: \"Decision\",\n\t\t\t\tisReference: true,\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"decisionOwned\",\n\t\t\t\ttype: \"Decision\",\n\t\t\t\tisReference: true,\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Import\",\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"importType\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"locationURI\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"namespace\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"InformationRequirement\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"requiredDecision\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"requiredInput\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"ElementCollection\",\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"drgElement\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DRGElement\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t]\n\t},\n\t{\n\t\tname: \"InputData\",\n\t\tsuperClass: [\n\t\t\t\"DRGElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"variable\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNElement\",\n\t\tisAbstract: true,\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"description\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"extensionElements\",\n\t\t\t\ttype: \"ExtensionElements\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"id\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisId: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"extensionAttribute\",\n\t\t\t\ttype: \"ExtensionAttribute\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"label\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"InputClause\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"inputExpression\",\n\t\t\t\ttype: \"LiteralExpression\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"inputValues\",\n\t\t\t\ttype: \"UnaryTests\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DecisionTable\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"input\",\n\t\t\t\ttype: \"InputClause\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"output\",\n\t\t\t\ttype: \"OutputClause\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"annotation\",\n\t\t\t\ttype: \"RuleAnnotationClause\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"rule\",\n\t\t\t\ttype: \"DecisionRule\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"hitPolicy\",\n\t\t\t\ttype: \"HitPolicy\",\n\t\t\t\tisAttr: true,\n\t\t\t\t\"default\": \"UNIQUE\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"aggregation\",\n\t\t\t\ttype: \"BuiltinAggregator\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"preferredOrientation\",\n\t\t\t\ttype: \"DecisionTableOrientation\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"outputLabel\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"LiteralExpression\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"expressionLanguage\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"text\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"importedValues\",\n\t\t\t\ttype: \"ImportedValues\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Binding\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"parameter\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"bindingFormula\",\n\t\t\t\ttype: \"Expression\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"KnowledgeRequirement\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"requiredKnowledge\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"BusinessKnowledgeModel\",\n\t\tsuperClass: [\n\t\t\t\"Invocable\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"encapsulatedLogic\",\n\t\t\t\ttype: \"FunctionDefinition\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"knowledgeRequirement\",\n\t\t\t\ttype: \"KnowledgeRequirement\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"authorityRequirement\",\n\t\t\t\ttype: \"AuthorityRequirement\",\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"BusinessContextElement\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"NamedElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"URI\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"PerformanceIndicator\",\n\t\tsuperClass: [\n\t\t\t\"BusinessContextElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"impactingDecision\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"FunctionDefinition\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"formalParameter\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"body\",\n\t\t\t\ttype: \"Expression\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"kind\",\n\t\t\t\ttype: \"FunctionKind\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Context\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"contextEntry\",\n\t\t\t\ttype: \"ContextEntry\",\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"ContextEntry\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"variable\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"value\",\n\t\t\t\ttype: \"Expression\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"List\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"elements\",\n\t\t\t\tisMany: true,\n\t\t\t\ttype: \"Expression\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Relation\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"column\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"row\",\n\t\t\t\ttype: \"List\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"OutputClause\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"outputValues\",\n\t\t\t\ttype: \"UnaryTests\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"defaultOutputEntry\",\n\t\t\t\ttype: \"LiteralExpression\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"name\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"typeRef\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"UnaryTests\",\n\t\tsuperClass: [\n\t\t\t\"Expression\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"text\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"expressionLanguage\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"NamedElement\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"name\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"ImportedValues\",\n\t\tsuperClass: [\n\t\t\t\"Import\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"importedElement\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"expressionLanguage\",\n\t\t\t\ttype: \"String\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DecisionService\",\n\t\tsuperClass: [\n\t\t\t\"Invocable\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"outputDecision\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"encapsulatedDecision\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"inputDecision\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"inputData\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\tisMany: true,\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"ExtensionElements\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"values\",\n\t\t\t\ttype: \"Element\",\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"ExtensionAttribute\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"value\",\n\t\t\t\ttype: \"Element\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"valueRef\",\n\t\t\t\ttype: \"Element\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"name\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Element\",\n\t\tisAbstract: true,\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"extensionAttribute\",\n\t\t\t\ttype: \"ExtensionAttribute\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"elements\",\n\t\t\t\ttype: \"ExtensionElements\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Artifact\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t]\n\t},\n\t{\n\t\tname: \"Association\",\n\t\tsuperClass: [\n\t\t\t\"Artifact\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"sourceRef\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"targetRef\",\n\t\t\t\ttype: \"DMNElementReference\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"associationDirection\",\n\t\t\t\ttype: \"AssociationDirection\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"TextAnnotation\",\n\t\tsuperClass: [\n\t\t\t\"Artifact\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"text\",\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"textFormat\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\",\n\t\t\t\t\"default\": \"text/plain\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"RuleAnnotationClause\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"name\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"RuleAnnotation\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"text\",\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Invocable\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"DRGElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"variable\",\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Group\",\n\t\tsuperClass: [\n\t\t\t\"Artifact\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"name\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"FunctionItem\",\n\t\tsuperClass: [\n\t\t\t\"DMNElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"parameters\",\n\t\t\t\tisMany: true,\n\t\t\t\ttype: \"InformationItem\",\n\t\t\t\txml: {\n\t\t\t\t\tserialize: \"property\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"outputTypeRef\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNElementReference\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tisAttr: true,\n\t\t\t\tname: \"href\",\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t}\n];\nvar enumerations$1 = [\n\t{\n\t\tname: \"HitPolicy\",\n\t\tliteralValues: [\n\t\t\t{\n\t\t\t\tname: \"UNIQUE\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"FIRST\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"PRIORITY\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"ANY\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"COLLECT\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"RULE ORDER\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"OUTPUT ORDER\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"BuiltinAggregator\",\n\t\tliteralValues: [\n\t\t\t{\n\t\t\t\tname: \"SUM\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"COUNT\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"MIN\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"MAX\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DecisionTableOrientation\",\n\t\tliteralValues: [\n\t\t\t{\n\t\t\t\tname: \"Rule-as-Row\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Rule-as-Column\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"CrossTable\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"AssociationDirection\",\n\t\tliteralValues: [\n\t\t\t{\n\t\t\t\tname: \"None\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"One\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Both\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"FunctionKind\",\n\t\tliteralValues: [\n\t\t\t{\n\t\t\t\tname: \"FEEL\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Java\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"PMML\"\n\t\t\t}\n\t\t]\n\t}\n];\nvar associations$1 = [\n];\nvar xml$1 = {\n\ttagAlias: \"lowerCase\"\n};\nvar DmnPackage = {\n\tname: name$2,\n\tprefix: prefix$2,\n\turi: uri$2,\n\ttypes: types$2,\n\tenumerations: enumerations$1,\n\tassociations: associations$1,\n\txml: xml$1\n};\n\nvar name$1 = \"DMNDI\";\nvar prefix$1 = \"dmndi\";\nvar uri$1 = \"https://www.omg.org/spec/DMN/20191111/DMNDI/\";\nvar types$1 = [\n\t{\n\t\tname: \"DMNDI\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"diagrams\",\n\t\t\t\ttype: \"DMNDiagram\",\n\t\t\t\tisMany: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"styles\",\n\t\t\t\ttype: \"DMNStyle\",\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNStyle\",\n\t\tsuperClass: [\n\t\t\t\"di:Style\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"fillColor\",\n\t\t\t\ttype: \"dc:Color\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"strokeColor\",\n\t\t\t\ttype: \"dc:Color\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontColor\",\n\t\t\t\ttype: \"dc:Color\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontSize\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Real\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontFamily\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"String\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontItalic\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontBold\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontUnderline\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"fontStrikeThrough\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"labelHorizontalAlignment\",\n\t\t\t\ttype: \"dc:AlignmentKind\",\n\t\t\t\tisAttr: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"labelVerticalAlignment\",\n\t\t\t\ttype: \"dc:AlignmentKind\",\n\t\t\t\tisAttr: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNDiagram\",\n\t\tsuperClass: [\n\t\t\t\"di:Diagram\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"dmnElementRef\",\n\t\t\t\ttype: \"dmn:DMNElement\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"size\",\n\t\t\t\ttype: \"Size\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"localStyle\",\n\t\t\t\ttype: \"DMNStyle\",\n\t\t\t\tisVirtual: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"sharedStyle\",\n\t\t\t\ttype: \"DMNStyle\",\n\t\t\t\tisVirtual: true,\n\t\t\t\tisReference: true,\n\t\t\t\tredefines: \"di:DiagramElement#sharedStyle\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"diagramElements\",\n\t\t\t\ttype: \"DMNDiagramElement\",\n\t\t\t\tisMany: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNDiagramElement\",\n\t\tisAbstract: true,\n\t\tsuperClass: [\n\t\t\t\"di:DiagramElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"dmnElementRef\",\n\t\t\t\ttype: \"dmn:DMNElement\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"sharedStyle\",\n\t\t\t\ttype: \"DMNStyle\",\n\t\t\t\tisVirtual: true,\n\t\t\t\tisReference: true,\n\t\t\t\tredefines: \"di:DiagramElement#sharedStyle\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"localStyle\",\n\t\t\t\ttype: \"DMNStyle\",\n\t\t\t\tisVirtual: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"label\",\n\t\t\t\ttype: \"DMNLabel\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNLabel\",\n\t\tsuperClass: [\n\t\t\t\"di:Shape\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"text\",\n\t\t\t\ttype: \"Text\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNShape\",\n\t\tsuperClass: [\n\t\t\t\"di:Shape\",\n\t\t\t\"DMNDiagramElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"isListedInputData\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"decisionServiceDividerLine\",\n\t\t\t\ttype: \"DMNDecisionServiceDividerLine\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"isCollapsed\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNEdge\",\n\t\tsuperClass: [\n\t\t\t\"di:Edge\",\n\t\t\t\"DMNDiagramElement\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"sourceElement\",\n\t\t\t\ttype: \"DMNDiagramElement\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"targetElement\",\n\t\t\t\ttype: \"DMNDiagramElement\",\n\t\t\t\tisAttr: true,\n\t\t\t\tisReference: true\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"DMNDecisionServiceDividerLine\",\n\t\tsuperClass: [\n\t\t\t\"di:Edge\"\n\t\t]\n\t},\n\t{\n\t\tname: \"Text\",\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"text\",\n\t\t\t\tisBody: true,\n\t\t\t\ttype: \"String\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"Size\",\n\t\tsuperClass: [\n\t\t\t\"dc:Dimension\"\n\t\t]\n\t}\n];\nvar associations = [\n];\nvar enumerations = [\n];\nvar DmnDiPackage = {\n\tname: name$1,\n\tprefix: prefix$1,\n\turi: uri$1,\n\ttypes: types$1,\n\tassociations: associations,\n\tenumerations: enumerations\n};\n\nvar name = \"bpmn.io DI for DMN\";\nvar uri = \"http://bpmn.io/schema/dmn/biodi/2.0\";\nvar prefix = \"biodi\";\nvar xml = {\n\ttagAlias: \"lowerCase\"\n};\nvar types = [\n\t{\n\t\tname: \"DecisionTable\",\n\t\tisAbstract: true,\n\t\t\"extends\": [\n\t\t\t\"dmn:DecisionTable\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"annotationsWidth\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Integer\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"OutputClause\",\n\t\tisAbstract: true,\n\t\t\"extends\": [\n\t\t\t\"dmn:OutputClause\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"width\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Integer\"\n\t\t\t}\n\t\t]\n\t},\n\t{\n\t\tname: \"InputClause\",\n\t\tisAbstract: true,\n\t\t\"extends\": [\n\t\t\t\"dmn:InputClause\"\n\t\t],\n\t\tproperties: [\n\t\t\t{\n\t\t\t\tname: \"width\",\n\t\t\t\tisAttr: true,\n\t\t\t\ttype: \"Integer\"\n\t\t\t}\n\t\t]\n\t}\n];\nvar BioDiPackage = {\n\tname: name,\n\turi: uri,\n\tprefix: prefix,\n\txml: xml,\n\ttypes: types\n};\n\nvar packages = {\n dc: DcPackage,\n di: DiPackage,\n dmn: DmnPackage,\n dmndi: DmnDiPackage,\n biodi: BioDiPackage\n};\n\nfunction simple(additionalPackages, options) {\n var pks = (0,min_dash__WEBPACK_IMPORTED_MODULE_1__.assign)({}, packages, additionalPackages);\n\n return new DmnModdle(pks, options);\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (simple);\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-moddle/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/dmn-moddle/node_modules/min-dash/dist/index.esm.js": +/*!*************************************************************************!*\ + !*** ./node_modules/dmn-moddle/node_modules/min-dash/dist/index.esm.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ assign: () => (/* binding */ assign),\n/* harmony export */ bind: () => (/* binding */ bind),\n/* harmony export */ debounce: () => (/* binding */ debounce),\n/* harmony export */ ensureArray: () => (/* binding */ ensureArray),\n/* harmony export */ every: () => (/* binding */ every),\n/* harmony export */ filter: () => (/* binding */ filter),\n/* harmony export */ find: () => (/* binding */ find),\n/* harmony export */ findIndex: () => (/* binding */ findIndex),\n/* harmony export */ flatten: () => (/* binding */ flatten),\n/* harmony export */ forEach: () => (/* binding */ forEach),\n/* harmony export */ get: () => (/* binding */ get),\n/* harmony export */ groupBy: () => (/* binding */ groupBy),\n/* harmony export */ has: () => (/* binding */ has),\n/* harmony export */ isArray: () => (/* binding */ isArray),\n/* harmony export */ isDefined: () => (/* binding */ isDefined),\n/* harmony export */ isFunction: () => (/* binding */ isFunction),\n/* harmony export */ isNil: () => (/* binding */ isNil),\n/* harmony export */ isNumber: () => (/* binding */ isNumber),\n/* harmony export */ isObject: () => (/* binding */ isObject),\n/* harmony export */ isString: () => (/* binding */ isString),\n/* harmony export */ isUndefined: () => (/* binding */ isUndefined),\n/* harmony export */ keys: () => (/* binding */ keys),\n/* harmony export */ map: () => (/* binding */ map),\n/* harmony export */ matchPattern: () => (/* binding */ matchPattern),\n/* harmony export */ merge: () => (/* binding */ merge),\n/* harmony export */ omit: () => (/* binding */ omit),\n/* harmony export */ pick: () => (/* binding */ pick),\n/* harmony export */ reduce: () => (/* binding */ reduce),\n/* harmony export */ set: () => (/* binding */ set),\n/* harmony export */ size: () => (/* binding */ size),\n/* harmony export */ some: () => (/* binding */ some),\n/* harmony export */ sortBy: () => (/* binding */ sortBy),\n/* harmony export */ throttle: () => (/* binding */ throttle),\n/* harmony export */ unionBy: () => (/* binding */ unionBy),\n/* harmony export */ uniqueBy: () => (/* binding */ uniqueBy),\n/* harmony export */ values: () => (/* binding */ values),\n/* harmony export */ without: () => (/* binding */ without)\n/* harmony export */ });\n/**\n * Flatten array, one level deep.\n *\n * @param {Array} arr\n *\n * @return {Array}\n */\nfunction flatten(arr) {\n return Array.prototype.concat.apply([], arr);\n}\n\nvar nativeToString = Object.prototype.toString;\nvar nativeHasOwnProperty = Object.prototype.hasOwnProperty;\nfunction isUndefined(obj) {\n return obj === undefined;\n}\nfunction isDefined(obj) {\n return obj !== undefined;\n}\nfunction isNil(obj) {\n return obj == null;\n}\nfunction isArray(obj) {\n return nativeToString.call(obj) === '[object Array]';\n}\nfunction isObject(obj) {\n return nativeToString.call(obj) === '[object Object]';\n}\nfunction isNumber(obj) {\n return nativeToString.call(obj) === '[object Number]';\n}\nfunction isFunction(obj) {\n var tag = nativeToString.call(obj);\n return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';\n}\nfunction isString(obj) {\n return nativeToString.call(obj) === '[object String]';\n}\n/**\n * Ensure collection is an array.\n *\n * @param {Object} obj\n */\n\nfunction ensureArray(obj) {\n if (isArray(obj)) {\n return;\n }\n\n throw new Error('must supply array');\n}\n/**\n * Return true, if target owns a property with the given key.\n *\n * @param {Object} target\n * @param {String} key\n *\n * @return {Boolean}\n */\n\nfunction has(target, key) {\n return nativeHasOwnProperty.call(target, key);\n}\n\n/**\n * Find element in collection.\n *\n * @param {Array|Object} collection\n * @param {Function|Object} matcher\n *\n * @return {Object}\n */\n\nfunction find(collection, matcher) {\n matcher = toMatcher(matcher);\n var match;\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n match = val;\n return false;\n }\n });\n return match;\n}\n/**\n * Find element index in collection.\n *\n * @param {Array|Object} collection\n * @param {Function} matcher\n *\n * @return {Object}\n */\n\nfunction findIndex(collection, matcher) {\n matcher = toMatcher(matcher);\n var idx = isArray(collection) ? -1 : undefined;\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n idx = key;\n return false;\n }\n });\n return idx;\n}\n/**\n * Find element in collection.\n *\n * @param {Array|Object} collection\n * @param {Function} matcher\n *\n * @return {Array} result\n */\n\nfunction filter(collection, matcher) {\n var result = [];\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n result.push(val);\n }\n });\n return result;\n}\n/**\n * Iterate over collection; returning something\n * (non-undefined) will stop iteration.\n *\n * @param {Array|Object} collection\n * @param {Function} iterator\n *\n * @return {Object} return result that stopped the iteration\n */\n\nfunction forEach(collection, iterator) {\n var val, result;\n\n if (isUndefined(collection)) {\n return;\n }\n\n var convertKey = isArray(collection) ? toNum : identity;\n\n for (var key in collection) {\n if (has(collection, key)) {\n val = collection[key];\n result = iterator(val, convertKey(key));\n\n if (result === false) {\n return val;\n }\n }\n }\n}\n/**\n * Return collection without element.\n *\n * @param {Array} arr\n * @param {Function} matcher\n *\n * @return {Array}\n */\n\nfunction without(arr, matcher) {\n if (isUndefined(arr)) {\n return [];\n }\n\n ensureArray(arr);\n matcher = toMatcher(matcher);\n return arr.filter(function (el, idx) {\n return !matcher(el, idx);\n });\n}\n/**\n * Reduce collection, returning a single result.\n *\n * @param {Object|Array} collection\n * @param {Function} iterator\n * @param {Any} result\n *\n * @return {Any} result returned from last iterator\n */\n\nfunction reduce(collection, iterator, result) {\n forEach(collection, function (value, idx) {\n result = iterator(result, value, idx);\n });\n return result;\n}\n/**\n * Return true if every element in the collection\n * matches the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\n\nfunction every(collection, matcher) {\n return !!reduce(collection, function (matches, val, key) {\n return matches && matcher(val, key);\n }, true);\n}\n/**\n * Return true if some elements in the collection\n * match the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\n\nfunction some(collection, matcher) {\n return !!find(collection, matcher);\n}\n/**\n * Transform a collection into another collection\n * by piping each member through the given fn.\n *\n * @param {Object|Array} collection\n * @param {Function} fn\n *\n * @return {Array} transformed collection\n */\n\nfunction map(collection, fn) {\n var result = [];\n forEach(collection, function (val, key) {\n result.push(fn(val, key));\n });\n return result;\n}\n/**\n * Get the collections keys.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\n\nfunction keys(collection) {\n return collection && Object.keys(collection) || [];\n}\n/**\n * Shorthand for `keys(o).length`.\n *\n * @param {Object|Array} collection\n *\n * @return {Number}\n */\n\nfunction size(collection) {\n return keys(collection).length;\n}\n/**\n * Get the values in the collection.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\n\nfunction values(collection) {\n return map(collection, function (val) {\n return val;\n });\n}\n/**\n * Group collection members by attribute.\n *\n * @param {Object|Array} collection\n * @param {Function} extractor\n *\n * @return {Object} map with { attrValue => [ a, b, c ] }\n */\n\nfunction groupBy(collection, extractor) {\n var grouped = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n extractor = toExtractor(extractor);\n forEach(collection, function (val) {\n var discriminator = extractor(val) || '_';\n var group = grouped[discriminator];\n\n if (!group) {\n group = grouped[discriminator] = [];\n }\n\n group.push(val);\n });\n return grouped;\n}\nfunction uniqueBy(extractor) {\n extractor = toExtractor(extractor);\n var grouped = {};\n\n for (var _len = arguments.length, collections = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n collections[_key - 1] = arguments[_key];\n }\n\n forEach(collections, function (c) {\n return groupBy(c, extractor, grouped);\n });\n var result = map(grouped, function (val, key) {\n return val[0];\n });\n return result;\n}\nvar unionBy = uniqueBy;\n/**\n * Sort collection by criteria.\n *\n * @param {Object|Array} collection\n * @param {String|Function} extractor\n *\n * @return {Array}\n */\n\nfunction sortBy(collection, extractor) {\n extractor = toExtractor(extractor);\n var sorted = [];\n forEach(collection, function (value, key) {\n var disc = extractor(value, key);\n var entry = {\n d: disc,\n v: value\n };\n\n for (var idx = 0; idx < sorted.length; idx++) {\n var d = sorted[idx].d;\n\n if (disc < d) {\n sorted.splice(idx, 0, entry);\n return;\n }\n } // not inserted, append (!)\n\n\n sorted.push(entry);\n });\n return map(sorted, function (e) {\n return e.v;\n });\n}\n/**\n * Create an object pattern matcher.\n *\n * @example\n *\n * const matcher = matchPattern({ id: 1 });\n *\n * let element = find(elements, matcher);\n *\n * @param {Object} pattern\n *\n * @return {Function} matcherFn\n */\n\nfunction matchPattern(pattern) {\n return function (el) {\n return every(pattern, function (val, key) {\n return el[key] === val;\n });\n };\n}\n\nfunction toExtractor(extractor) {\n return isFunction(extractor) ? extractor : function (e) {\n return e[extractor];\n };\n}\n\nfunction toMatcher(matcher) {\n return isFunction(matcher) ? matcher : function (e) {\n return e === matcher;\n };\n}\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction toNum(arg) {\n return Number(arg);\n}\n\n/**\n * Debounce fn, calling it only once if the given time\n * elapsed between calls.\n *\n * Lodash-style the function exposes methods to `#clear`\n * and `#flush` to control internal behavior.\n *\n * @param {Function} fn\n * @param {Number} timeout\n *\n * @return {Function} debounced function\n */\nfunction debounce(fn, timeout) {\n var timer;\n var lastArgs;\n var lastThis;\n var lastNow;\n\n function fire(force) {\n var now = Date.now();\n var scheduledDiff = force ? 0 : lastNow + timeout - now;\n\n if (scheduledDiff > 0) {\n return schedule(scheduledDiff);\n }\n\n fn.apply(lastThis, lastArgs);\n clear();\n }\n\n function schedule(timeout) {\n timer = setTimeout(fire, timeout);\n }\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = lastNow = lastArgs = lastThis = undefined;\n }\n\n function flush() {\n if (timer) {\n fire(true);\n }\n\n clear();\n }\n\n function callback() {\n lastNow = Date.now();\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n lastArgs = args;\n lastThis = this; // ensure an execution is scheduled\n\n if (!timer) {\n schedule(timeout);\n }\n }\n\n callback.flush = flush;\n callback.cancel = clear;\n return callback;\n}\n/**\n * Throttle fn, calling at most once\n * in the given interval.\n *\n * @param {Function} fn\n * @param {Number} interval\n *\n * @return {Function} throttled function\n */\n\nfunction throttle(fn, interval) {\n var throttling = false;\n return function () {\n if (throttling) {\n return;\n }\n\n fn.apply(void 0, arguments);\n throttling = true;\n setTimeout(function () {\n throttling = false;\n }, interval);\n };\n}\n/**\n * Bind function against target .\n *\n * @param {Function} fn\n * @param {Object} target\n *\n * @return {Function} bound function\n */\n\nfunction bind(fn, target) {\n return fn.bind(target);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n/**\n * Convenience wrapper for `Object.assign`.\n *\n * @param {Object} target\n * @param {...Object} others\n *\n * @return {Object} the target\n */\n\nfunction assign(target) {\n for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n others[_key - 1] = arguments[_key];\n }\n\n return _extends.apply(void 0, [target].concat(others));\n}\n/**\n * Sets a nested property of a given object to the specified value.\n *\n * This mutates the object and returns it.\n *\n * @param {Object} target The target of the set operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} value The value to set.\n */\n\nfunction set(target, path, value) {\n var currentTarget = target;\n forEach(path, function (key, idx) {\n if (typeof key !== 'number' && typeof key !== 'string') {\n throw new Error('illegal key type: ' + _typeof(key) + '. Key should be of type number or string.');\n }\n\n if (key === 'constructor') {\n throw new Error('illegal key: constructor');\n }\n\n if (key === '__proto__') {\n throw new Error('illegal key: __proto__');\n }\n\n var nextKey = path[idx + 1];\n var nextTarget = currentTarget[key];\n\n if (isDefined(nextKey) && isNil(nextTarget)) {\n nextTarget = currentTarget[key] = isNaN(+nextKey) ? {} : [];\n }\n\n if (isUndefined(nextKey)) {\n if (isUndefined(value)) {\n delete currentTarget[key];\n } else {\n currentTarget[key] = value;\n }\n } else {\n currentTarget = nextTarget;\n }\n });\n return target;\n}\n/**\n * Gets a nested property of a given object.\n *\n * @param {Object} target The target of the get operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} [defaultValue] The value to return if no value exists.\n */\n\nfunction get(target, path, defaultValue) {\n var currentTarget = target;\n forEach(path, function (key) {\n // accessing nil property yields \n if (isNil(currentTarget)) {\n currentTarget = undefined;\n return false;\n }\n\n currentTarget = currentTarget[key];\n });\n return isUndefined(currentTarget) ? defaultValue : currentTarget;\n}\n/**\n * Pick given properties from the target object.\n *\n * @param {Object} target\n * @param {Array} properties\n *\n * @return {Object} target\n */\n\nfunction pick(target, properties) {\n var result = {};\n var obj = Object(target);\n forEach(properties, function (prop) {\n if (prop in obj) {\n result[prop] = target[prop];\n }\n });\n return result;\n}\n/**\n * Pick all target properties, excluding the given ones.\n *\n * @param {Object} target\n * @param {Array} properties\n *\n * @return {Object} target\n */\n\nfunction omit(target, properties) {\n var result = {};\n var obj = Object(target);\n forEach(obj, function (prop, key) {\n if (properties.indexOf(key) === -1) {\n result[key] = prop;\n }\n });\n return result;\n}\n/**\n * Recursively merge `...sources` into given target.\n *\n * Does support merging objects; does not support merging arrays.\n *\n * @param {Object} target\n * @param {...Object} sources\n *\n * @return {Object} the target\n */\n\nfunction merge(target) {\n for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n sources[_key2 - 1] = arguments[_key2];\n }\n\n if (!sources.length) {\n return target;\n }\n\n forEach(sources, function (source) {\n // skip non-obj sources, i.e. null\n if (!source || !isObject(source)) {\n return;\n }\n\n forEach(source, function (sourceVal, key) {\n if (key === '__proto__') {\n return;\n }\n\n var targetVal = target[key];\n\n if (isObject(sourceVal)) {\n if (!isObject(targetVal)) {\n // override target[key] with object\n targetVal = {};\n }\n\n target[key] = merge(targetVal, sourceVal);\n } else {\n target[key] = sourceVal;\n }\n });\n });\n return target;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/dmn-moddle/node_modules/min-dash/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/escape-html/index.js": +/*!*******************************************!*\ + !*** ./node_modules/escape-html/index.js ***! + \*******************************************/ +/***/ ((module) => { + +"use strict"; +eval("/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escape = '"';\n break;\n case 38: // &\n escape = '&';\n break;\n case 39: // '\n escape = ''';\n break;\n case 60: // <\n escape = '<';\n break;\n case 62: // >\n escape = '>';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index\n ? html + str.substring(lastIndex, index)\n : html;\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/escape-html/index.js?"); + +/***/ }), + +/***/ "./node_modules/htm/dist/htm.module.js": +/*!*********************************************!*\ + !*** ./node_modules/htm/dist/htm.module.js ***! + \*********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nvar n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h=5&&((e||!n&&5===r)&&(h.push(r,0,e,s),r=6),n&&(h.push(r,n,0,s),r=6)),e=\"\"},a=0;a\"===t?(r=1,e=\"\"):e=t+e[0]:u?t===u?u=\"\":e+=t:'\"'===t||\"'\"===t?u=t:\">\"===t?(p(),r=1):r&&(\"=\"===t?(r=5,s=e,e=\"\"):\"/\"===t&&(r<5||\">\"===n[a][l+1])?(p(),3===r&&(h=h[0]),r=h,(h=h[0]).push(2,0,r),r=0):\" \"===t||\"\\t\"===t||\"\\n\"===t||\"\\r\"===t?(p(),r=2):e+=t),3===r&&\"!--\"===e&&(r=4,h=h[0])}return p(),h}(s)),r),arguments,[])).length>1?r:r[0]}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/htm/dist/htm.module.js?"); + +/***/ }), + +/***/ "./node_modules/htm/preact/index.module.js": +/*!*************************************************!*\ + !*** ./node_modules/htm/preact/index.module.js ***! + \*************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Component: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),\n/* harmony export */ h: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.h),\n/* harmony export */ html: () => (/* binding */ m),\n/* harmony export */ render: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.render)\n/* harmony export */ });\n/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ \"./node_modules/preact/dist/preact.module.js\");\n/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! htm */ \"./node_modules/htm/dist/htm.module.js\");\nvar m=htm__WEBPACK_IMPORTED_MODULE_1__[\"default\"].bind(preact__WEBPACK_IMPORTED_MODULE_0__.h);\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/htm/preact/index.module.js?"); + +/***/ }), + +/***/ "./node_modules/ids/dist/index.esm.js": +/*!********************************************!*\ + !*** ./node_modules/ids/dist/index.esm.js ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar hat_1 = createCommonjsModule(function (module) {\nvar hat = module.exports = function (bits, base) {\n if (!base) base = 16;\n if (bits === undefined) bits = 128;\n if (bits <= 0) return '0';\n \n var digits = Math.log(Math.pow(2, bits)) / Math.log(base);\n for (var i = 2; digits === Infinity; i *= 2) {\n digits = Math.log(Math.pow(2, bits / i)) / Math.log(base) * i;\n }\n \n var rem = digits - Math.floor(digits);\n \n var res = '';\n \n for (var i = 0; i < Math.floor(digits); i++) {\n var x = Math.floor(Math.random() * base).toString(base);\n res = x + res;\n }\n \n if (rem) {\n var b = Math.pow(base, rem);\n var x = Math.floor(Math.random() * b).toString(base);\n res = x + res;\n }\n \n var parsed = parseInt(res, base);\n if (parsed !== Infinity && parsed >= Math.pow(2, bits)) {\n return hat(bits, base)\n }\n else return res;\n};\n\nhat.rack = function (bits, base, expandBy) {\n var fn = function (data) {\n var iters = 0;\n do {\n if (iters ++ > 10) {\n if (expandBy) bits += expandBy;\n else throw new Error('too many ID collisions, use more bits')\n }\n \n var id = hat(bits, base);\n } while (Object.hasOwnProperty.call(hats, id));\n \n hats[id] = data;\n return id;\n };\n var hats = fn.hats = {};\n \n fn.get = function (id) {\n return fn.hats[id];\n };\n \n fn.set = function (id, value) {\n fn.hats[id] = value;\n return fn;\n };\n \n fn.bits = bits || 128;\n fn.base = base || 16;\n return fn;\n};\n});\n\n/**\n * Create a new id generator / cache instance.\n *\n * You may optionally provide a seed that is used internally.\n *\n * @param {Seed} seed\n */\nfunction Ids(seed) {\n if (!(this instanceof Ids)) {\n return new Ids(seed);\n }\n seed = seed || [128, 36, 1];\n this._seed = seed.length ? hat_1.rack(seed[0], seed[1], seed[2]) : seed;\n}\n\n/**\n * Generate a next id.\n *\n * @param {Object} [element] element to bind the id to\n *\n * @return {String} id\n */\nIds.prototype.next = function (element) {\n return this._seed(element || true);\n};\n\n/**\n * Generate a next id with a given prefix.\n *\n * @param {Object} [element] element to bind the id to\n *\n * @return {String} id\n */\nIds.prototype.nextPrefixed = function (prefix, element) {\n var id;\n do {\n id = prefix + this.next(true);\n } while (this.assigned(id));\n\n // claim {prefix}{random}\n this.claim(id, element);\n\n // return\n return id;\n};\n\n/**\n * Manually claim an existing id.\n *\n * @param {String} id\n * @param {String} [element] element the id is claimed by\n */\nIds.prototype.claim = function (id, element) {\n this._seed.set(id, element || true);\n};\n\n/**\n * Returns true if the given id has already been assigned.\n *\n * @param {String} id\n * @return {Boolean}\n */\nIds.prototype.assigned = function (id) {\n return this._seed.get(id) || false;\n};\n\n/**\n * Unclaim an id.\n *\n * @param {String} id the id to unclaim\n */\nIds.prototype.unclaim = function (id) {\n delete this._seed.hats[id];\n};\n\n/**\n * Clear all claimed ids.\n */\nIds.prototype.clear = function () {\n var hats = this._seed.hats,\n id;\n for (id in hats) {\n this.unclaim(id);\n }\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ids);\n//# sourceMappingURL=index.esm.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/ids/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/inferno/dist/index.esm.js": +/*!************************************************!*\ + !*** ./node_modules/inferno/dist/index.esm.js ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Component: () => (/* binding */ Component),\n/* harmony export */ EMPTY_OBJ: () => (/* binding */ EMPTY_OBJ),\n/* harmony export */ JSX: () => (/* binding */ JSX),\n/* harmony export */ NO_OP: () => (/* binding */ NO_OP),\n/* harmony export */ createComponentVNode: () => (/* binding */ createComponentVNode),\n/* harmony export */ createPortal: () => (/* binding */ createPortal),\n/* harmony export */ createRenderer: () => (/* binding */ createRenderer),\n/* harmony export */ createTextVNode: () => (/* binding */ createTextVNode),\n/* harmony export */ createVNode: () => (/* binding */ createVNode),\n/* harmony export */ directClone: () => (/* binding */ directClone),\n/* harmony export */ getFlagsForElementVnode: () => (/* binding */ getFlagsForElementVnode),\n/* harmony export */ getNumberStyleValue: () => (/* binding */ getNumberStyleValue),\n/* harmony export */ hydrate: () => (/* binding */ hydrate),\n/* harmony export */ linkEvent: () => (/* binding */ linkEvent),\n/* harmony export */ normalizeProps: () => (/* binding */ normalizeProps),\n/* harmony export */ options: () => (/* binding */ options),\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ version: () => (/* binding */ version)\n/* harmony export */ });\nvar NO_OP = '$NO_OP';\nvar ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';\nvar isArray = Array.isArray;\nfunction isStringOrNumber(o) {\n var type = typeof o;\n return type === 'string' || type === 'number';\n}\nfunction isNullOrUndef(o) {\n return isUndefined(o) || isNull(o);\n}\nfunction isInvalid(o) {\n return isNull(o) || o === false || isTrue(o) || isUndefined(o);\n}\nfunction isFunction(o) {\n return typeof o === 'function';\n}\nfunction isString(o) {\n return typeof o === 'string';\n}\nfunction isNumber(o) {\n return typeof o === 'number';\n}\nfunction isNull(o) {\n return o === null;\n}\nfunction isTrue(o) {\n return o === true;\n}\nfunction isUndefined(o) {\n return o === void 0;\n}\nfunction throwError(message) {\n if (!message) {\n message = ERROR_MSG;\n }\n throw new Error(\"Inferno Error: \" + message);\n}\nfunction combineFrom(first, second) {\n var out = {};\n if (first) {\n for (var key in first) {\n out[key] = first[key];\n }\n }\n if (second) {\n for (var _key in second) {\n out[_key] = second[_key];\n }\n }\n return out;\n}\n\nvar keyPrefix = '$';\nfunction getVNode(childFlags, children, className, flags, key, props, ref, type) {\n return {\n childFlags: childFlags,\n children: children,\n className: className,\n dom: null,\n flags: flags,\n key: key === void 0 ? null : key,\n parentVNode: null,\n props: props === void 0 ? null : props,\n ref: ref === void 0 ? null : ref,\n type: type\n };\n}\nfunction createVNode(flags, type, className, children, childFlags, props, key, ref) {\n var childFlag = childFlags === void 0 ? 1 /* ChildFlags.HasInvalidChildren */ : childFlags;\n var vNode = getVNode(childFlag, children, className, flags, key, props, ref, type);\n var optsVNode = options.createVNode;\n if (typeof optsVNode === 'function') {\n optsVNode(vNode);\n }\n if (childFlag === 0 /* ChildFlags.UnknownChildren */) {\n normalizeChildren(vNode, vNode.children);\n }\n return vNode;\n}\nfunction createComponentVNode(flags, type, props, key, ref) {\n if ((flags & 2 /* VNodeFlags.ComponentUnknown */) > 0) {\n flags = type.prototype && isFunction(type.prototype.render) ? 4 /* VNodeFlags.ComponentClass */ : 8 /* VNodeFlags.ComponentFunction */;\n }\n // set default props\n var defaultProps = type.defaultProps;\n if (!isNullOrUndef(defaultProps)) {\n if (!props) {\n props = {}; // Props can be referenced and modified at application level so always create new object\n }\n for (var prop in defaultProps) {\n if (isUndefined(props[prop])) {\n props[prop] = defaultProps[prop];\n }\n }\n }\n if ((flags & 8 /* VNodeFlags.ComponentFunction */) > 0) {\n var defaultHooks = type.defaultHooks;\n if (!isNullOrUndef(defaultHooks)) {\n if (!ref) {\n // As ref cannot be referenced from application level, we can use the same refs object\n ref = defaultHooks;\n } else {\n for (var _prop in defaultHooks) {\n if (isUndefined(ref[_prop])) {\n ref[_prop] = defaultHooks[_prop];\n }\n }\n }\n }\n }\n var vNode = getVNode(1 /* ChildFlags.HasInvalidChildren */, null, null, flags, key, props, ref, type);\n var optsVNode = options.createVNode;\n if (isFunction(optsVNode)) {\n optsVNode(vNode);\n }\n return vNode;\n}\nfunction createTextVNode(text, key) {\n return getVNode(1 /* ChildFlags.HasInvalidChildren */, isNullOrUndef(text) ? '' : text, null, 16 /* VNodeFlags.Text */, key, null, null, null);\n}\nfunction normalizeProps(vNode) {\n var props = vNode.props;\n if (props) {\n var flags = vNode.flags;\n if (flags & 481 /* VNodeFlags.Element */) {\n if (props.children !== void 0 && isNullOrUndef(vNode.children)) {\n normalizeChildren(vNode, props.children);\n }\n if (props.className !== void 0) {\n vNode.className = props.className || null;\n props.className = undefined;\n }\n }\n if (props.key !== void 0) {\n vNode.key = props.key;\n props.key = undefined;\n }\n if (props.ref !== void 0) {\n if (flags & 8 /* VNodeFlags.ComponentFunction */) {\n vNode.ref = combineFrom(vNode.ref, props.ref);\n } else {\n vNode.ref = props.ref;\n }\n props.ref = undefined;\n }\n }\n return vNode;\n}\nfunction directClone(vNodeToClone) {\n var newVNode;\n var flags = vNodeToClone.flags;\n if (flags & 14 /* VNodeFlags.Component */) {\n var props;\n var propsToClone = vNodeToClone.props;\n if (!isNull(propsToClone)) {\n props = {};\n for (var key in propsToClone) {\n props[key] = propsToClone[key];\n }\n }\n newVNode = createComponentVNode(flags, vNodeToClone.type, props, vNodeToClone.key, vNodeToClone.ref);\n } else if (flags & 481 /* VNodeFlags.Element */) {\n newVNode = createVNode(flags, vNodeToClone.type, vNodeToClone.className, vNodeToClone.children, vNodeToClone.childFlags, vNodeToClone.props, vNodeToClone.key, vNodeToClone.ref);\n } else if (flags & 16 /* VNodeFlags.Text */) {\n newVNode = createTextVNode(vNodeToClone.children, vNodeToClone.key);\n } else if (flags & 1024 /* VNodeFlags.Portal */) {\n newVNode = vNodeToClone;\n }\n return newVNode;\n}\nfunction createVoidVNode() {\n return createTextVNode('', null);\n}\nfunction _normalizeVNodes(nodes, result, index, currentKey) {\n for (var len = nodes.length; index < len; index++) {\n var n = nodes[index];\n if (!isInvalid(n)) {\n var newKey = currentKey + keyPrefix + index;\n if (isArray(n)) {\n _normalizeVNodes(n, result, 0, newKey);\n } else {\n if (isStringOrNumber(n)) {\n n = createTextVNode(n, newKey);\n } else {\n var oldKey = n.key;\n var isPrefixedKey = isString(oldKey) && oldKey[0] === keyPrefix;\n if (!isNull(n.dom) || isPrefixedKey) {\n n = directClone(n);\n }\n if (isNull(oldKey) || isPrefixedKey) {\n n.key = newKey;\n } else {\n n.key = currentKey + oldKey;\n }\n }\n result.push(n);\n }\n }\n }\n}\nfunction getFlagsForElementVnode(type) {\n if (type === 'svg') {\n return 32 /* VNodeFlags.SvgElement */;\n }\n if (type === 'input') {\n return 64 /* VNodeFlags.InputElement */;\n }\n if (type === 'select') {\n return 256 /* VNodeFlags.SelectElement */;\n }\n if (type === 'textarea') {\n return 128 /* VNodeFlags.TextareaElement */;\n }\n return 1 /* VNodeFlags.HtmlElement */;\n}\nfunction normalizeChildren(vNode, children) {\n var newChildren;\n var newChildFlags = 1 /* ChildFlags.HasInvalidChildren */;\n // Don't change children to match strict equal (===) true in patching\n if (isInvalid(children)) {\n newChildren = children;\n } else if (isString(children)) {\n newChildFlags = 2 /* ChildFlags.HasVNodeChildren */;\n newChildren = createTextVNode(children);\n } else if (isNumber(children)) {\n newChildFlags = 2 /* ChildFlags.HasVNodeChildren */;\n newChildren = createTextVNode(children + '');\n } else if (isArray(children)) {\n var len = children.length;\n if (len === 0) {\n newChildren = null;\n newChildFlags = 1 /* ChildFlags.HasInvalidChildren */;\n } else {\n // we assign $ which basically means we've flagged this array for future note\n // if it comes back again, we need to clone it, as people are using it\n // in an immutable way\n // tslint:disable-next-line\n if (Object.isFrozen(children) || children['$'] === true) {\n children = children.slice();\n }\n newChildFlags = 8 /* ChildFlags.HasKeyedChildren */;\n for (var i = 0; i < len; i++) {\n var n = children[i];\n if (isInvalid(n) || isArray(n)) {\n newChildren = newChildren || children.slice(0, i);\n _normalizeVNodes(children, newChildren, i, '');\n break;\n } else if (isStringOrNumber(n)) {\n newChildren = newChildren || children.slice(0, i);\n newChildren.push(createTextVNode(n, keyPrefix + i));\n } else {\n var key = n.key;\n var isNullDom = isNull(n.dom);\n var isNullKey = isNull(key);\n var isPrefixed = !isNullKey && isString(key) && key[0] === keyPrefix;\n if (!isNullDom || isNullKey || isPrefixed) {\n newChildren = newChildren || children.slice(0, i);\n if (!isNullDom || isPrefixed) {\n n = directClone(n);\n }\n if (isNullKey || isPrefixed) {\n n.key = keyPrefix + i;\n }\n newChildren.push(n);\n } else if (newChildren) {\n newChildren.push(n);\n }\n }\n }\n newChildren = newChildren || children;\n newChildren.$ = true;\n }\n } else {\n newChildren = children;\n if (!isNull(children.dom)) {\n newChildren = directClone(children);\n }\n newChildFlags = 2 /* ChildFlags.HasVNodeChildren */;\n }\n vNode.children = newChildren;\n vNode.childFlags = newChildFlags;\n return vNode;\n}\nvar options = {\n afterRender: null,\n beforeRender: null,\n createVNode: null,\n renderComplete: null\n};\n\n/**\n * Links given data to event as first parameter\n * @param {*} data data to be linked, it will be available in function as first parameter\n * @param {Function} event Function to be called when event occurs\n * @returns {{data: *, event: Function}}\n */\nfunction linkEvent(data, event) {\n if (isFunction(event)) {\n return {\n data: data,\n event: event\n };\n }\n return null; // Return null when event is invalid, to avoid creating unnecessary event handlers\n}\n\nvar xlinkNS = 'http://www.w3.org/1999/xlink';\nvar xmlNS = 'http://www.w3.org/XML/1998/namespace';\nvar svgNS = 'http://www.w3.org/2000/svg';\nvar namespaces = {\n 'xlink:actuate': xlinkNS,\n 'xlink:arcrole': xlinkNS,\n 'xlink:href': xlinkNS,\n 'xlink:role': xlinkNS,\n 'xlink:show': xlinkNS,\n 'xlink:title': xlinkNS,\n 'xlink:type': xlinkNS,\n 'xml:base': xmlNS,\n 'xml:lang': xmlNS,\n 'xml:space': xmlNS\n};\n\n// We need EMPTY_OBJ defined in one place.\n// Its used for comparison so we cant inline it into shared\nvar EMPTY_OBJ = {};\nvar LIFECYCLE = [];\nfunction appendChild(parentDom, dom) {\n parentDom.appendChild(dom);\n}\nfunction insertOrAppend(parentDom, newNode, nextNode) {\n if (isNullOrUndef(nextNode)) {\n appendChild(parentDom, newNode);\n } else {\n parentDom.insertBefore(newNode, nextNode);\n }\n}\nfunction documentCreateElement(tag, isSVG) {\n if (isSVG) {\n return document.createElementNS(svgNS, tag);\n }\n return document.createElement(tag);\n}\nfunction replaceChild(parentDom, newDom, lastDom) {\n parentDom.replaceChild(newDom, lastDom);\n}\nfunction removeChild(parentDom, dom) {\n parentDom.removeChild(dom);\n}\nfunction callAll(arrayFn) {\n var listener;\n while ((listener = arrayFn.shift()) !== undefined) {\n listener();\n }\n}\n\nvar attachedEventCounts = {};\nvar attachedEvents = {};\nfunction handleEvent(name, nextEvent, dom) {\n var eventsLeft = attachedEventCounts[name];\n var eventsObject = dom.$EV;\n if (nextEvent) {\n if (!eventsLeft) {\n attachedEvents[name] = attachEventToDocument(name);\n attachedEventCounts[name] = 0;\n }\n if (!eventsObject) {\n eventsObject = dom.$EV = {};\n }\n if (!eventsObject[name]) {\n attachedEventCounts[name]++;\n }\n eventsObject[name] = nextEvent;\n } else if (eventsObject && eventsObject[name]) {\n attachedEventCounts[name]--;\n if (eventsLeft === 1) {\n document.removeEventListener(normalizeEventName(name), attachedEvents[name]);\n attachedEvents[name] = null;\n }\n eventsObject[name] = nextEvent;\n }\n}\n// When browsers fully support event.composedPath we could loop it through instead of using parentNode property\nfunction getTargetNode(event) {\n return isFunction(event.composedPath) ? event.composedPath()[0] : event.target;\n}\nfunction dispatchEvents(event, isClick, name, eventData) {\n var dom = getTargetNode(event);\n while (!isNull(dom)) {\n // Html Nodes can be nested fe: span inside button in that scenario browser does not handle disabled attribute on parent,\n // because the event listener is on document.body\n // Don't process clicks on disabled elements\n if (isClick && dom.disabled) {\n return;\n }\n var eventsObject = dom.$EV;\n if (eventsObject) {\n var currentEvent = eventsObject[name];\n if (currentEvent) {\n // linkEvent object\n eventData.dom = dom;\n if (currentEvent.event) {\n currentEvent.event(currentEvent.data, event);\n } else {\n currentEvent(event);\n }\n if (event.cancelBubble) {\n return;\n }\n }\n }\n dom = dom.parentNode;\n }\n}\nfunction normalizeEventName(name) {\n return name.substr(2).toLowerCase();\n}\nfunction stopPropagation() {\n this.cancelBubble = true;\n if (!this.immediatePropagationStopped) {\n this.stopImmediatePropagation();\n }\n}\nfunction attachEventToDocument(name) {\n var docEvent = function docEvent(event) {\n var type = event.type;\n var isClick = type === 'click' || type === 'dblclick';\n if (isClick && event.button !== 0) {\n // Firefox incorrectly triggers click event for mid/right mouse buttons.\n // This bug has been active for 12 years.\n // https://bugzilla.mozilla.org/show_bug.cgi?id=184051\n event.stopPropagation();\n return false;\n }\n event.stopPropagation = stopPropagation;\n // Event data needs to be object to save reference to currentTarget getter\n var eventData = {\n dom: document\n };\n Object.defineProperty(event, 'currentTarget', {\n configurable: true,\n get: function get() {\n return eventData.dom;\n }\n });\n dispatchEvents(event, isClick, name, eventData);\n return;\n };\n document.addEventListener(normalizeEventName(name), docEvent);\n return docEvent;\n}\n\nfunction isSameInnerHTML(dom, innerHTML) {\n var tempdom = document.createElement('i');\n tempdom.innerHTML = innerHTML;\n return tempdom.innerHTML === dom.innerHTML;\n}\nfunction isSamePropsInnerHTML(dom, props) {\n return Boolean(props && props.dangerouslySetInnerHTML && props.dangerouslySetInnerHTML.__html && isSameInnerHTML(dom, props.dangerouslySetInnerHTML.__html));\n}\n\nfunction triggerEventListener(props, methodName, e) {\n if (props[methodName]) {\n var listener = props[methodName];\n if (listener.event) {\n listener.event(listener.data, e);\n } else {\n listener(e);\n }\n } else {\n var nativeListenerName = methodName.toLowerCase();\n if (props[nativeListenerName]) {\n props[nativeListenerName](e);\n }\n }\n}\nfunction createWrappedFunction(methodName, applyValue) {\n var fnMethod = function fnMethod(e) {\n e.stopPropagation();\n var vNode = this.$V;\n // If vNode is gone by the time event fires, no-op\n if (!vNode) {\n return;\n }\n var props = vNode.props || EMPTY_OBJ;\n var dom = vNode.dom;\n if (isString(methodName)) {\n triggerEventListener(props, methodName, e);\n } else {\n for (var i = 0; i < methodName.length; i++) {\n triggerEventListener(props, methodName[i], e);\n }\n }\n if (isFunction(applyValue)) {\n var newVNode = this.$V;\n var newProps = newVNode.props || EMPTY_OBJ;\n applyValue(newProps, dom, false, newVNode);\n }\n };\n Object.defineProperty(fnMethod, 'wrapped', {\n configurable: false,\n enumerable: false,\n value: true,\n writable: false\n });\n return fnMethod;\n}\n\nfunction isCheckedType(type) {\n return type === 'checkbox' || type === 'radio';\n}\nvar onTextInputChange = createWrappedFunction('onInput', applyValueInput);\nvar wrappedOnChange$1 = createWrappedFunction(['onClick', 'onChange'], applyValueInput);\n/* tslint:disable-next-line:no-empty */\nfunction emptywrapper(event) {\n event.stopPropagation();\n}\nemptywrapper.wrapped = true;\nfunction inputEvents(dom, nextPropsOrEmpty) {\n if (isCheckedType(nextPropsOrEmpty.type)) {\n dom.onchange = wrappedOnChange$1;\n dom.onclick = emptywrapper;\n } else {\n dom.oninput = onTextInputChange;\n }\n}\nfunction applyValueInput(nextPropsOrEmpty, dom) {\n var type = nextPropsOrEmpty.type;\n var value = nextPropsOrEmpty.value;\n var checked = nextPropsOrEmpty.checked;\n var multiple = nextPropsOrEmpty.multiple;\n var defaultValue = nextPropsOrEmpty.defaultValue;\n var hasValue = !isNullOrUndef(value);\n if (type && type !== dom.type) {\n dom.setAttribute('type', type);\n }\n if (!isNullOrUndef(multiple) && multiple !== dom.multiple) {\n dom.multiple = multiple;\n }\n if (!isNullOrUndef(defaultValue) && !hasValue) {\n dom.defaultValue = defaultValue + '';\n }\n if (isCheckedType(type)) {\n if (hasValue) {\n dom.value = value;\n }\n if (!isNullOrUndef(checked)) {\n dom.checked = checked;\n }\n } else {\n if (hasValue && dom.value !== value) {\n dom.defaultValue = value;\n dom.value = value;\n } else if (!isNullOrUndef(checked)) {\n dom.checked = checked;\n }\n }\n}\n\nfunction updateChildOptionGroup(vNode, value) {\n var type = vNode.type;\n if (type === 'optgroup') {\n var children = vNode.children;\n var childFlags = vNode.childFlags;\n if (childFlags & 12 /* ChildFlags.MultipleChildren */) {\n for (var i = 0, len = children.length; i < len; i++) {\n updateChildOption(children[i], value);\n }\n } else if (childFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n updateChildOption(children, value);\n }\n } else {\n updateChildOption(vNode, value);\n }\n}\nfunction updateChildOption(vNode, value) {\n var props = vNode.props || EMPTY_OBJ;\n var dom = vNode.dom;\n // we do this as multiple may have changed\n dom.value = props.value;\n if (isArray(value) && value.indexOf(props.value) !== -1 || props.value === value) {\n dom.selected = true;\n } else if (!isNullOrUndef(value) || !isNullOrUndef(props.selected)) {\n dom.selected = props.selected || false;\n }\n}\nvar onSelectChange = createWrappedFunction('onChange', applyValueSelect);\nfunction selectEvents(dom) {\n dom.onchange = onSelectChange;\n}\nfunction applyValueSelect(nextPropsOrEmpty, dom, mounting, vNode) {\n var multiplePropInBoolean = Boolean(nextPropsOrEmpty.multiple);\n if (!isNullOrUndef(nextPropsOrEmpty.multiple) && multiplePropInBoolean !== dom.multiple) {\n dom.multiple = multiplePropInBoolean;\n }\n var childFlags = vNode.childFlags;\n if ((childFlags & 1 /* ChildFlags.HasInvalidChildren */) === 0) {\n var children = vNode.children;\n var value = nextPropsOrEmpty.value;\n if (mounting && isNullOrUndef(value)) {\n value = nextPropsOrEmpty.defaultValue;\n }\n if (childFlags & 12 /* ChildFlags.MultipleChildren */) {\n for (var i = 0, len = children.length; i < len; i++) {\n updateChildOptionGroup(children[i], value);\n }\n } else if (childFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n updateChildOptionGroup(children, value);\n }\n }\n}\n\nvar onTextareaInputChange = createWrappedFunction('onInput', applyValueTextArea);\nvar wrappedOnChange = createWrappedFunction('onChange');\nfunction textAreaEvents(dom, nextPropsOrEmpty) {\n dom.oninput = onTextareaInputChange;\n if (nextPropsOrEmpty.onChange) {\n dom.onchange = wrappedOnChange;\n }\n}\nfunction applyValueTextArea(nextPropsOrEmpty, dom, mounting) {\n var value = nextPropsOrEmpty.value;\n var domValue = dom.value;\n if (isNullOrUndef(value)) {\n if (mounting) {\n var defaultValue = nextPropsOrEmpty.defaultValue;\n if (!isNullOrUndef(defaultValue) && defaultValue !== domValue) {\n dom.defaultValue = defaultValue;\n dom.value = defaultValue;\n }\n }\n } else if (domValue !== value) {\n /* There is value so keep it controlled */\n dom.defaultValue = value;\n dom.value = value;\n }\n}\n\n/**\n * There is currently no support for switching same input between controlled and nonControlled\n * If that ever becomes a real issue, then re design controlled elements\n * Currently user must choose either controlled or non-controlled and stick with that\n */\nfunction processElement(flags, vNode, dom, nextPropsOrEmpty, mounting, isControlled) {\n if (flags & 64 /* VNodeFlags.InputElement */) {\n applyValueInput(nextPropsOrEmpty, dom);\n } else if (flags & 256 /* VNodeFlags.SelectElement */) {\n applyValueSelect(nextPropsOrEmpty, dom, mounting, vNode);\n } else if (flags & 128 /* VNodeFlags.TextareaElement */) {\n applyValueTextArea(nextPropsOrEmpty, dom, mounting);\n }\n if (isControlled) {\n dom.$V = vNode;\n }\n}\nfunction addFormElementEventHandlers(flags, dom, nextPropsOrEmpty) {\n if (flags & 64 /* VNodeFlags.InputElement */) {\n inputEvents(dom, nextPropsOrEmpty);\n } else if (flags & 256 /* VNodeFlags.SelectElement */) {\n selectEvents(dom);\n } else if (flags & 128 /* VNodeFlags.TextareaElement */) {\n textAreaEvents(dom, nextPropsOrEmpty);\n }\n}\nfunction isControlledFormElement(nextPropsOrEmpty) {\n return nextPropsOrEmpty.type && isCheckedType(nextPropsOrEmpty.type) ? !isNullOrUndef(nextPropsOrEmpty.checked) : !isNullOrUndef(nextPropsOrEmpty.value);\n}\n\nfunction remove(vNode, parentDom) {\n unmount(vNode);\n if (parentDom && vNode.dom) {\n removeChild(parentDom, vNode.dom);\n // Let carbage collector free memory\n vNode.dom = null;\n }\n}\nfunction unmount(vNode) {\n var flags = vNode.flags;\n if (flags & 481 /* VNodeFlags.Element */) {\n var ref = vNode.ref;\n var props = vNode.props;\n if (isFunction(ref)) {\n ref(null);\n }\n var children = vNode.children;\n var childFlags = vNode.childFlags;\n if (childFlags & 12 /* ChildFlags.MultipleChildren */) {\n unmountAllChildren(children);\n } else if (childFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n unmount(children);\n }\n if (!isNull(props)) {\n for (var name in props) {\n switch (name) {\n case 'onClick':\n case 'onDblClick':\n case 'onFocusIn':\n case 'onFocusOut':\n case 'onKeyDown':\n case 'onKeyPress':\n case 'onKeyUp':\n case 'onMouseDown':\n case 'onMouseMove':\n case 'onMouseUp':\n case 'onSubmit':\n case 'onTouchEnd':\n case 'onTouchMove':\n case 'onTouchStart':\n handleEvent(name, null, vNode.dom);\n break;\n }\n }\n }\n } else {\n var _children = vNode.children;\n // Safe guard for crashed VNode\n if (_children) {\n if (flags & 14 /* VNodeFlags.Component */) {\n var _ref = vNode.ref;\n if (flags & 4 /* VNodeFlags.ComponentClass */) {\n if (isFunction(_children.componentWillUnmount)) {\n _children.componentWillUnmount();\n }\n if (isFunction(_ref)) {\n _ref(null);\n }\n _children.$UN = true;\n if (_children.$LI) {\n unmount(_children.$LI);\n }\n } else {\n if (!isNullOrUndef(_ref) && isFunction(_ref.onComponentWillUnmount)) {\n _ref.onComponentWillUnmount(vNode.dom, vNode.props || EMPTY_OBJ);\n }\n unmount(_children);\n }\n } else if (flags & 1024 /* VNodeFlags.Portal */) {\n remove(_children, vNode.type);\n }\n }\n }\n}\nfunction unmountAllChildren(children) {\n for (var i = 0, len = children.length; i < len; i++) {\n unmount(children[i]);\n }\n}\nfunction removeAllChildren(dom, children) {\n unmountAllChildren(children);\n dom.textContent = '';\n}\n\nfunction createLinkEvent(linkEvent, nextValue) {\n return function (e) {\n linkEvent(nextValue.data, e);\n };\n}\nfunction patchEvent(name, nextValue, dom) {\n var nameLowerCase = name.toLowerCase();\n if (!isFunction(nextValue) && !isNullOrUndef(nextValue)) {\n var linkEvent = nextValue.event;\n if (linkEvent && isFunction(linkEvent)) {\n dom[nameLowerCase] = createLinkEvent(linkEvent, nextValue);\n }\n } else {\n var domEvent = dom[nameLowerCase];\n // if the function is wrapped, that means it's been controlled by a wrapper\n if (!domEvent || !domEvent.wrapped) {\n dom[nameLowerCase] = nextValue;\n }\n }\n}\nfunction getNumberStyleValue(style, value) {\n switch (style) {\n case 'animationIterationCount':\n case 'borderImageOutset':\n case 'borderImageSlice':\n case 'borderImageWidth':\n case 'boxFlex':\n case 'boxFlexGroup':\n case 'boxOrdinalGroup':\n case 'columnCount':\n case 'fillOpacity':\n case 'flex':\n case 'flexGrow':\n case 'flexNegative':\n case 'flexOrder':\n case 'flexPositive':\n case 'flexShrink':\n case 'floodOpacity':\n case 'fontWeight':\n case 'gridColumn':\n case 'gridRow':\n case 'lineClamp':\n case 'lineHeight':\n case 'opacity':\n case 'order':\n case 'orphans':\n case 'stopOpacity':\n case 'strokeDasharray':\n case 'strokeDashoffset':\n case 'strokeMiterlimit':\n case 'strokeOpacity':\n case 'strokeWidth':\n case 'tabSize':\n case 'widows':\n case 'zIndex':\n case 'zoom':\n return value;\n default:\n return value + 'px';\n }\n}\n// We are assuming here that we come from patchProp routine\n// -nextAttrValue cannot be null or undefined\nfunction patchStyle(lastAttrValue, nextAttrValue, dom) {\n var domStyle = dom.style;\n var style;\n var value;\n if (isString(nextAttrValue)) {\n domStyle.cssText = nextAttrValue;\n return;\n }\n if (!isNullOrUndef(lastAttrValue) && !isString(lastAttrValue)) {\n for (style in nextAttrValue) {\n // do not add a hasOwnProperty check here, it affects performance\n value = nextAttrValue[style];\n if (value !== lastAttrValue[style]) {\n domStyle[style] = isNumber(value) ? getNumberStyleValue(style, value) : value;\n }\n }\n for (style in lastAttrValue) {\n if (isNullOrUndef(nextAttrValue[style])) {\n domStyle[style] = '';\n }\n }\n } else {\n for (style in nextAttrValue) {\n value = nextAttrValue[style];\n domStyle[style] = isNumber(value) ? getNumberStyleValue(style, value) : value;\n }\n }\n}\nfunction patchProp(prop, lastValue, nextValue, dom, isSVG, hasControlledValue, lastVNode) {\n switch (prop) {\n case 'onClick':\n case 'onDblClick':\n case 'onFocusIn':\n case 'onFocusOut':\n case 'onKeyDown':\n case 'onKeyPress':\n case 'onKeyUp':\n case 'onMouseDown':\n case 'onMouseMove':\n case 'onMouseUp':\n case 'onSubmit':\n case 'onTouchEnd':\n case 'onTouchMove':\n case 'onTouchStart':\n handleEvent(prop, nextValue, dom);\n break;\n case 'children':\n case 'childrenType':\n case 'className':\n case 'defaultValue':\n case 'key':\n case 'multiple':\n case 'ref':\n break;\n case 'autoFocus':\n dom.autofocus = !!nextValue;\n break;\n case 'allowfullscreen':\n case 'autoplay':\n case 'capture':\n case 'checked':\n case 'controls':\n case 'default':\n case 'disabled':\n case 'hidden':\n case 'indeterminate':\n case 'loop':\n case 'muted':\n case 'novalidate':\n case 'open':\n case 'readOnly':\n case 'required':\n case 'reversed':\n case 'scoped':\n case 'seamless':\n case 'selected':\n dom[prop] = !!nextValue;\n break;\n case 'defaultChecked':\n case 'value':\n case 'volume':\n if (hasControlledValue && prop === 'value') {\n return;\n }\n var value = isNullOrUndef(nextValue) ? '' : nextValue;\n if (dom[prop] !== value) {\n dom[prop] = value;\n }\n break;\n case 'dangerouslySetInnerHTML':\n var lastHtml = lastValue && lastValue.__html || '';\n var nextHtml = nextValue && nextValue.__html || '';\n if (lastHtml !== nextHtml) {\n if (!isNullOrUndef(nextHtml) && !isSameInnerHTML(dom, nextHtml)) {\n if (!isNull(lastVNode)) {\n if (lastVNode.childFlags & 12 /* ChildFlags.MultipleChildren */) {\n unmountAllChildren(lastVNode.children);\n } else if (lastVNode.childFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n unmount(lastVNode.children);\n }\n lastVNode.children = null;\n lastVNode.childFlags = 1 /* ChildFlags.HasInvalidChildren */;\n }\n dom.innerHTML = nextHtml;\n }\n }\n break;\n default:\n if (prop[0] === 'o' && prop[1] === 'n') {\n patchEvent(prop, nextValue, dom);\n } else if (isNullOrUndef(nextValue)) {\n dom.removeAttribute(prop);\n } else if (prop === 'style') {\n patchStyle(lastValue, nextValue, dom);\n } else if (isSVG && namespaces[prop]) {\n // We optimize for isSVG being false\n // If we end up in this path we can read property again\n dom.setAttributeNS(namespaces[prop], prop, nextValue);\n } else {\n dom.setAttribute(prop, nextValue);\n }\n break;\n }\n}\nfunction mountProps(vNode, flags, props, dom, isSVG) {\n var hasControlledValue = false;\n var isFormElement = (flags & 448 /* VNodeFlags.FormElement */) > 0;\n if (isFormElement) {\n hasControlledValue = isControlledFormElement(props);\n if (hasControlledValue) {\n addFormElementEventHandlers(flags, dom, props);\n }\n }\n for (var prop in props) {\n // do not add a hasOwnProperty check here, it affects performance\n patchProp(prop, null, props[prop], dom, isSVG, hasControlledValue, null);\n }\n if (isFormElement) {\n processElement(flags, vNode, dom, props, true, hasControlledValue);\n }\n}\n\nfunction createClassComponentInstance(vNode, Component, props, context) {\n var instance = new Component(props, context);\n vNode.children = instance;\n instance.$V = vNode;\n instance.$BS = false;\n instance.context = context;\n if (instance.props === EMPTY_OBJ) {\n instance.props = props;\n }\n instance.$UN = false;\n if (isFunction(instance.componentWillMount)) {\n instance.$BR = true;\n instance.componentWillMount();\n if (instance.$PSS) {\n var state = instance.state;\n var pending = instance.$PS;\n if (isNull(state)) {\n instance.state = pending;\n } else {\n for (var key in pending) {\n state[key] = pending[key];\n }\n }\n instance.$PSS = false;\n instance.$PS = null;\n }\n instance.$BR = false;\n }\n if (isFunction(options.beforeRender)) {\n options.beforeRender(instance);\n }\n var input = handleComponentInput(instance.render(props, instance.state, context), vNode);\n var childContext;\n if (isFunction(instance.getChildContext)) {\n childContext = instance.getChildContext();\n }\n if (isNullOrUndef(childContext)) {\n instance.$CX = context;\n } else {\n instance.$CX = combineFrom(context, childContext);\n }\n if (isFunction(options.afterRender)) {\n options.afterRender(instance);\n }\n instance.$LI = input;\n return instance;\n}\nfunction handleComponentInput(input, componentVNode) {\n if (isInvalid(input)) {\n input = createVoidVNode();\n } else if (isStringOrNumber(input)) {\n input = createTextVNode(input, null);\n } else {\n if (input.dom) {\n input = directClone(input);\n }\n if (input.flags & 14 /* VNodeFlags.Component */) {\n // if we have an input that is also a component, we run into a tricky situation\n // where the root vNode needs to always have the correct DOM entry\n // we can optimise this in the future, but this gets us out of a lot of issues\n input.parentVNode = componentVNode;\n }\n }\n return input;\n}\n\nfunction mount(vNode, parentDom, context, isSVG) {\n var flags = vNode.flags;\n if (flags & 481 /* VNodeFlags.Element */) {\n return mountElement(vNode, parentDom, context, isSVG);\n }\n if (flags & 14 /* VNodeFlags.Component */) {\n return mountComponent(vNode, parentDom, context, isSVG, (flags & 4 /* VNodeFlags.ComponentClass */) > 0);\n }\n if (flags & 512 /* VNodeFlags.Void */ || flags & 16 /* VNodeFlags.Text */) {\n return mountText(vNode, parentDom);\n }\n if (flags & 1024 /* VNodeFlags.Portal */) {\n mount(vNode.children, vNode.type, context, false);\n return vNode.dom = mountText(createVoidVNode(), parentDom);\n }\n}\nfunction mountText(vNode, parentDom) {\n var dom = vNode.dom = document.createTextNode(vNode.children);\n if (!isNull(parentDom)) {\n appendChild(parentDom, dom);\n }\n return dom;\n}\nfunction mountElement(vNode, parentDom, context, isSVG) {\n var flags = vNode.flags;\n var children = vNode.children;\n var props = vNode.props;\n var className = vNode.className;\n var ref = vNode.ref;\n var childFlags = vNode.childFlags;\n isSVG = isSVG || (flags & 32 /* VNodeFlags.SvgElement */) > 0;\n var dom = documentCreateElement(vNode.type, isSVG);\n vNode.dom = dom;\n if (!isNullOrUndef(className) && className !== '') {\n if (isSVG) {\n dom.setAttribute('class', className);\n } else {\n dom.className = className;\n }\n }\n if (!isNull(parentDom)) {\n appendChild(parentDom, dom);\n }\n if ((childFlags & 1 /* ChildFlags.HasInvalidChildren */) === 0) {\n var childrenIsSVG = isSVG === true && vNode.type !== 'foreignObject';\n if (childFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n mount(children, dom, context, childrenIsSVG);\n } else if (childFlags & 12 /* ChildFlags.MultipleChildren */) {\n mountArrayChildren(children, dom, context, childrenIsSVG);\n }\n }\n if (!isNull(props)) {\n mountProps(vNode, flags, props, dom, isSVG);\n }\n if (isFunction(ref)) {\n mountRef(dom, ref);\n }\n return dom;\n}\nfunction mountArrayChildren(children, dom, context, isSVG) {\n for (var i = 0, len = children.length; i < len; i++) {\n var child = children[i];\n if (!isNull(child.dom)) {\n children[i] = child = directClone(child);\n }\n mount(child, dom, context, isSVG);\n }\n}\nfunction mountComponent(vNode, parentDom, context, isSVG, isClass) {\n var dom;\n var type = vNode.type;\n var props = vNode.props || EMPTY_OBJ;\n var ref = vNode.ref;\n if (isClass) {\n var instance = createClassComponentInstance(vNode, type, props, context);\n vNode.dom = dom = mount(instance.$LI, null, instance.$CX, isSVG);\n mountClassComponentCallbacks(vNode, ref, instance);\n instance.$UPD = false;\n } else {\n var input = handleComponentInput(type(props, context), vNode);\n vNode.children = input;\n vNode.dom = dom = mount(input, null, context, isSVG);\n mountFunctionalComponentCallbacks(props, ref, dom);\n }\n if (!isNull(parentDom)) {\n appendChild(parentDom, dom);\n }\n return dom;\n}\nfunction createClassMountCallback(instance) {\n return function () {\n instance.$UPD = true;\n instance.componentDidMount();\n instance.$UPD = false;\n };\n}\nfunction mountClassComponentCallbacks(vNode, ref, instance) {\n if (isFunction(ref)) {\n ref(instance);\n }\n if (isFunction(instance.componentDidMount)) {\n LIFECYCLE.push(createClassMountCallback(instance));\n }\n}\nfunction createOnMountCallback(ref, dom, props) {\n return function () {\n return ref.onComponentDidMount(dom, props);\n };\n}\nfunction mountFunctionalComponentCallbacks(props, ref, dom) {\n if (!isNullOrUndef(ref)) {\n if (isFunction(ref.onComponentWillMount)) {\n ref.onComponentWillMount(props);\n }\n if (isFunction(ref.onComponentDidMount)) {\n LIFECYCLE.push(createOnMountCallback(ref, dom, props));\n }\n }\n}\nfunction mountRef(dom, value) {\n LIFECYCLE.push(function () {\n return value(dom);\n });\n}\n\nfunction hydrateComponent(vNode, dom, context, isSVG, isClass) {\n var type = vNode.type;\n var ref = vNode.ref;\n var props = vNode.props || EMPTY_OBJ;\n if (isClass) {\n var instance = createClassComponentInstance(vNode, type, props, context);\n var input = instance.$LI;\n hydrateVNode(input, dom, instance.$CX, isSVG);\n vNode.dom = input.dom;\n mountClassComponentCallbacks(vNode, ref, instance);\n instance.$UPD = false; // Mount finished allow going sync\n } else {\n var _input = handleComponentInput(type(props, context), vNode);\n hydrateVNode(_input, dom, context, isSVG);\n vNode.children = _input;\n vNode.dom = _input.dom;\n mountFunctionalComponentCallbacks(props, ref, dom);\n }\n}\nfunction hydrateElement(vNode, dom, context, isSVG) {\n var children = vNode.children;\n var props = vNode.props;\n var className = vNode.className;\n var flags = vNode.flags;\n var ref = vNode.ref;\n isSVG = isSVG || (flags & 32 /* VNodeFlags.SvgElement */) > 0;\n if (dom.nodeType !== 1 || dom.tagName.toLowerCase() !== vNode.type) {\n var newDom = mountElement(vNode, null, context, isSVG);\n vNode.dom = newDom;\n replaceChild(dom.parentNode, newDom, dom);\n } else {\n vNode.dom = dom;\n var childNode = dom.firstChild;\n var childFlags = vNode.childFlags;\n if ((childFlags & 1 /* ChildFlags.HasInvalidChildren */) === 0) {\n var nextSibling = null;\n while (childNode) {\n nextSibling = childNode.nextSibling;\n if (childNode.nodeType === 8) {\n if (childNode.data === '!') {\n dom.replaceChild(document.createTextNode(''), childNode);\n } else {\n dom.removeChild(childNode);\n }\n }\n childNode = nextSibling;\n }\n childNode = dom.firstChild;\n if (childFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n if (isNull(childNode)) {\n mount(children, dom, context, isSVG);\n } else {\n nextSibling = childNode.nextSibling;\n hydrateVNode(children, childNode, context, isSVG);\n childNode = nextSibling;\n }\n } else if (childFlags & 12 /* ChildFlags.MultipleChildren */) {\n for (var i = 0, len = children.length; i < len; i++) {\n var child = children[i];\n if (isNull(childNode)) {\n mount(child, dom, context, isSVG);\n } else {\n nextSibling = childNode.nextSibling;\n hydrateVNode(child, childNode, context, isSVG);\n childNode = nextSibling;\n }\n }\n }\n // clear any other DOM nodes, there should be only a single entry for the root\n while (childNode) {\n nextSibling = childNode.nextSibling;\n dom.removeChild(childNode);\n childNode = nextSibling;\n }\n } else if (!isNull(dom.firstChild) && !isSamePropsInnerHTML(dom, props)) {\n dom.textContent = ''; // dom has content, but VNode has no children remove everything from DOM\n if (flags & 448 /* VNodeFlags.FormElement */) {\n // If element is form element, we need to clear defaultValue also\n dom.defaultValue = '';\n }\n }\n if (!isNull(props)) {\n mountProps(vNode, flags, props, dom, isSVG);\n }\n if (isNullOrUndef(className)) {\n if (dom.className !== '') {\n dom.removeAttribute('class');\n }\n } else if (isSVG) {\n dom.setAttribute('class', className);\n } else {\n dom.className = className;\n }\n if (isFunction(ref)) {\n mountRef(dom, ref);\n }\n }\n}\nfunction hydrateText(vNode, dom) {\n if (dom.nodeType !== 3) {\n var newDom = mountText(vNode, null);\n vNode.dom = newDom;\n replaceChild(dom.parentNode, newDom, dom);\n } else {\n var text = vNode.children;\n if (dom.nodeValue !== text) {\n dom.nodeValue = text;\n }\n vNode.dom = dom;\n }\n}\nfunction hydrateVNode(vNode, dom, context, isSVG) {\n var flags = vNode.flags;\n if (flags & 14 /* VNodeFlags.Component */) {\n hydrateComponent(vNode, dom, context, isSVG, (flags & 4 /* VNodeFlags.ComponentClass */) > 0);\n } else if (flags & 481 /* VNodeFlags.Element */) {\n hydrateElement(vNode, dom, context, isSVG);\n } else if (flags & 16 /* VNodeFlags.Text */) {\n hydrateText(vNode, dom);\n } else if (flags & 512 /* VNodeFlags.Void */) {\n vNode.dom = dom;\n } else {\n throwError();\n }\n}\nfunction hydrate(input, parentDom, callback) {\n var dom = parentDom.firstChild;\n if (!isNull(dom)) {\n if (!isInvalid(input)) {\n hydrateVNode(input, dom, EMPTY_OBJ, false);\n }\n dom = parentDom.firstChild;\n // clear any other DOM nodes, there should be only a single entry for the root\n while (dom = dom.nextSibling) {\n parentDom.removeChild(dom);\n }\n }\n if (LIFECYCLE.length > 0) {\n callAll(LIFECYCLE);\n }\n parentDom.$V = input;\n if (isFunction(callback)) {\n callback();\n }\n}\n\nfunction replaceWithNewNode(lastNode, nextNode, parentDom, context, isSVG) {\n unmount(lastNode);\n replaceChild(parentDom, mount(nextNode, null, context, isSVG), lastNode.dom);\n}\nfunction patch(lastVNode, nextVNode, parentDom, context, isSVG) {\n var nextFlags = nextVNode.flags | 0;\n if (lastVNode.flags !== nextFlags || nextFlags & 2048 /* VNodeFlags.ReCreate */) {\n replaceWithNewNode(lastVNode, nextVNode, parentDom, context, isSVG);\n } else if (nextFlags & 481 /* VNodeFlags.Element */) {\n patchElement(lastVNode, nextVNode, parentDom, context, isSVG, nextFlags);\n } else if (nextFlags & 14 /* VNodeFlags.Component */) {\n patchComponent(lastVNode, nextVNode, parentDom, context, isSVG, (nextFlags & 4 /* VNodeFlags.ComponentClass */) > 0);\n } else if (nextFlags & 16 /* VNodeFlags.Text */) {\n patchText(lastVNode, nextVNode);\n } else if (nextFlags & 512 /* VNodeFlags.Void */) {\n nextVNode.dom = lastVNode.dom;\n } else {\n patchPortal(lastVNode, nextVNode, context);\n }\n}\nfunction patchContentEditableChildren(dom, nextVNode) {\n if (dom.textContent !== nextVNode.children) {\n dom.textContent = nextVNode.children;\n }\n}\nfunction patchPortal(lastVNode, nextVNode, context) {\n var lastContainer = lastVNode.type;\n var nextContainer = nextVNode.type;\n var nextChildren = nextVNode.children;\n patchChildren(lastVNode.childFlags, nextVNode.childFlags, lastVNode.children, nextChildren, lastContainer, context, false);\n nextVNode.dom = lastVNode.dom;\n if (lastContainer !== nextContainer && !isInvalid(nextChildren)) {\n var node = nextChildren.dom;\n lastContainer.removeChild(node);\n nextContainer.appendChild(node);\n }\n}\nfunction patchElement(lastVNode, nextVNode, parentDom, context, isSVG, nextFlags) {\n var nextTag = nextVNode.type;\n if (lastVNode.type !== nextTag) {\n replaceWithNewNode(lastVNode, nextVNode, parentDom, context, isSVG);\n } else {\n var dom = lastVNode.dom;\n var lastProps = lastVNode.props;\n var nextProps = nextVNode.props;\n var isFormElement = false;\n var hasControlledValue = false;\n var nextPropsOrEmpty;\n nextVNode.dom = dom;\n isSVG = isSVG || (nextFlags & 32 /* VNodeFlags.SvgElement */) > 0;\n // inlined patchProps -- starts --\n if (lastProps !== nextProps) {\n var lastPropsOrEmpty = lastProps || EMPTY_OBJ;\n nextPropsOrEmpty = nextProps || EMPTY_OBJ;\n if (nextPropsOrEmpty !== EMPTY_OBJ) {\n isFormElement = (nextFlags & 448 /* VNodeFlags.FormElement */) > 0;\n if (isFormElement) {\n hasControlledValue = isControlledFormElement(nextPropsOrEmpty);\n }\n for (var prop in nextPropsOrEmpty) {\n var lastValue = lastPropsOrEmpty[prop];\n var nextValue = nextPropsOrEmpty[prop];\n if (lastValue !== nextValue) {\n patchProp(prop, lastValue, nextValue, dom, isSVG, hasControlledValue, lastVNode);\n }\n }\n }\n if (lastPropsOrEmpty !== EMPTY_OBJ) {\n for (var _prop in lastPropsOrEmpty) {\n if (!nextPropsOrEmpty.hasOwnProperty(_prop) && !isNullOrUndef(lastPropsOrEmpty[_prop])) {\n patchProp(_prop, lastPropsOrEmpty[_prop], null, dom, isSVG, hasControlledValue, lastVNode);\n }\n }\n }\n }\n var lastChildren = lastVNode.children;\n var nextChildren = nextVNode.children;\n var nextRef = nextVNode.ref;\n var lastClassName = lastVNode.className;\n var nextClassName = nextVNode.className;\n if (nextFlags & 4096 /* VNodeFlags.ContentEditable */) {\n patchContentEditableChildren(dom, nextChildren);\n } else {\n patchChildren(lastVNode.childFlags, nextVNode.childFlags, lastChildren, nextChildren, dom, context, isSVG && nextTag !== 'foreignObject');\n }\n if (isFormElement) {\n processElement(nextFlags, nextVNode, dom, nextPropsOrEmpty, false, hasControlledValue);\n }\n // inlined patchProps -- ends --\n if (lastClassName !== nextClassName) {\n if (isNullOrUndef(nextClassName)) {\n dom.removeAttribute('class');\n } else if (isSVG) {\n dom.setAttribute('class', nextClassName);\n } else {\n dom.className = nextClassName;\n }\n }\n if (isFunction(nextRef) && lastVNode.ref !== nextRef) {\n mountRef(dom, nextRef);\n }\n }\n}\nfunction patchChildren(lastChildFlags, nextChildFlags, lastChildren, nextChildren, parentDOM, context, isSVG) {\n switch (lastChildFlags) {\n case 2 /* ChildFlags.HasVNodeChildren */:\n switch (nextChildFlags) {\n case 2 /* ChildFlags.HasVNodeChildren */:\n patch(lastChildren, nextChildren, parentDOM, context, isSVG);\n break;\n case 1 /* ChildFlags.HasInvalidChildren */:\n remove(lastChildren, parentDOM);\n break;\n default:\n remove(lastChildren, parentDOM);\n mountArrayChildren(nextChildren, parentDOM, context, isSVG);\n break;\n }\n break;\n case 1 /* ChildFlags.HasInvalidChildren */:\n switch (nextChildFlags) {\n case 2 /* ChildFlags.HasVNodeChildren */:\n mount(nextChildren, parentDOM, context, isSVG);\n break;\n case 1 /* ChildFlags.HasInvalidChildren */:\n break;\n default:\n mountArrayChildren(nextChildren, parentDOM, context, isSVG);\n break;\n }\n break;\n default:\n if (nextChildFlags & 12 /* ChildFlags.MultipleChildren */) {\n var lastLength = lastChildren.length;\n var nextLength = nextChildren.length;\n // Fast path's for both algorithms\n if (lastLength === 0) {\n if (nextLength > 0) {\n mountArrayChildren(nextChildren, parentDOM, context, isSVG);\n }\n } else if (nextLength === 0) {\n removeAllChildren(parentDOM, lastChildren);\n } else if (nextChildFlags === 8 /* ChildFlags.HasKeyedChildren */ && lastChildFlags === 8 /* ChildFlags.HasKeyedChildren */) {\n patchKeyedChildren(lastChildren, nextChildren, parentDOM, context, isSVG, lastLength, nextLength);\n } else {\n patchNonKeyedChildren(lastChildren, nextChildren, parentDOM, context, isSVG, lastLength, nextLength);\n }\n } else if (nextChildFlags === 1 /* ChildFlags.HasInvalidChildren */) {\n removeAllChildren(parentDOM, lastChildren);\n } else if (nextChildFlags === 2 /* ChildFlags.HasVNodeChildren */) {\n removeAllChildren(parentDOM, lastChildren);\n mount(nextChildren, parentDOM, context, isSVG);\n }\n break;\n }\n}\nfunction updateClassComponent(instance, nextState, nextVNode, nextProps, parentDom, context, isSVG, force, fromSetState) {\n var lastState = instance.state;\n var lastProps = instance.props;\n nextVNode.children = instance;\n var renderOutput;\n if (instance.$UN) {\n return;\n }\n if (lastProps !== nextProps || nextProps === EMPTY_OBJ) {\n if (!fromSetState && isFunction(instance.componentWillReceiveProps)) {\n instance.$BR = true;\n instance.componentWillReceiveProps(nextProps, context);\n // If instance component was removed during its own update do nothing.\n if (instance.$UN) {\n return;\n }\n instance.$BR = false;\n }\n if (instance.$PSS) {\n nextState = combineFrom(nextState, instance.$PS);\n instance.$PSS = false;\n instance.$PS = null;\n }\n }\n /* Update if scu is not defined, or it returns truthy value or force */\n var hasSCU = Boolean(instance.shouldComponentUpdate);\n if (force || !hasSCU || hasSCU && instance.shouldComponentUpdate(nextProps, nextState, context)) {\n if (isFunction(instance.componentWillUpdate)) {\n instance.$BS = true;\n instance.componentWillUpdate(nextProps, nextState, context);\n instance.$BS = false;\n }\n instance.props = nextProps;\n instance.state = nextState;\n instance.context = context;\n if (isFunction(options.beforeRender)) {\n options.beforeRender(instance);\n }\n renderOutput = instance.render(nextProps, nextState, context);\n if (isFunction(options.afterRender)) {\n options.afterRender(instance);\n }\n var didUpdate = renderOutput !== NO_OP;\n var childContext;\n if (isFunction(instance.getChildContext)) {\n childContext = instance.getChildContext();\n }\n if (isNullOrUndef(childContext)) {\n childContext = context;\n } else {\n childContext = combineFrom(context, childContext);\n }\n instance.$CX = childContext;\n if (didUpdate) {\n var lastInput = instance.$LI;\n var nextInput = handleComponentInput(renderOutput, nextVNode);\n patch(lastInput, nextInput, parentDom, childContext, isSVG);\n instance.$LI = nextInput;\n if (isFunction(instance.componentDidUpdate)) {\n instance.componentDidUpdate(lastProps, lastState);\n }\n }\n } else {\n instance.props = nextProps;\n instance.state = nextState;\n instance.context = context;\n }\n nextVNode.dom = instance.$LI.dom;\n}\nfunction patchComponent(lastVNode, nextVNode, parentDom, context, isSVG, isClass) {\n var nextType = nextVNode.type;\n var lastKey = lastVNode.key;\n var nextKey = nextVNode.key;\n if (lastVNode.type !== nextType || lastKey !== nextKey) {\n replaceWithNewNode(lastVNode, nextVNode, parentDom, context, isSVG);\n } else {\n var nextProps = nextVNode.props || EMPTY_OBJ;\n if (isClass) {\n var instance = lastVNode.children;\n instance.$UPD = true;\n instance.$V = nextVNode;\n updateClassComponent(instance, instance.state, nextVNode, nextProps, parentDom, context, isSVG, false, false);\n instance.$UPD = false;\n } else {\n var shouldUpdate = true;\n var lastProps = lastVNode.props;\n var nextHooks = nextVNode.ref;\n var nextHooksDefined = !isNullOrUndef(nextHooks);\n var lastInput = lastVNode.children;\n nextVNode.dom = lastVNode.dom;\n nextVNode.children = lastInput;\n if (nextHooksDefined && isFunction(nextHooks.onComponentShouldUpdate)) {\n shouldUpdate = nextHooks.onComponentShouldUpdate(lastProps, nextProps);\n }\n if (shouldUpdate !== false) {\n if (nextHooksDefined && isFunction(nextHooks.onComponentWillUpdate)) {\n nextHooks.onComponentWillUpdate(lastProps, nextProps);\n }\n var nextInput = nextType(nextProps, context);\n if (nextInput !== NO_OP) {\n nextInput = handleComponentInput(nextInput, nextVNode);\n patch(lastInput, nextInput, parentDom, context, isSVG);\n nextVNode.children = nextInput;\n nextVNode.dom = nextInput.dom;\n if (nextHooksDefined && isFunction(nextHooks.onComponentDidUpdate)) {\n nextHooks.onComponentDidUpdate(lastProps, nextProps);\n }\n }\n } else if (lastInput.flags & 14 /* VNodeFlags.Component */) {\n lastInput.parentVNode = nextVNode;\n }\n }\n }\n}\nfunction patchText(lastVNode, nextVNode) {\n var nextText = nextVNode.children;\n var dom = lastVNode.dom;\n if (nextText !== lastVNode.children) {\n dom.nodeValue = nextText;\n }\n nextVNode.dom = dom;\n}\nfunction patchNonKeyedChildren(lastChildren, nextChildren, dom, context, isSVG, lastChildrenLength, nextChildrenLength) {\n var commonLength = lastChildrenLength > nextChildrenLength ? nextChildrenLength : lastChildrenLength;\n var i = 0;\n var nextChild;\n var lastChild;\n for (; i < commonLength; i++) {\n nextChild = nextChildren[i];\n lastChild = lastChildren[i];\n if (nextChild.dom) {\n nextChild = nextChildren[i] = directClone(nextChild);\n }\n patch(lastChild, nextChild, dom, context, isSVG);\n lastChildren[i] = nextChild;\n }\n if (lastChildrenLength < nextChildrenLength) {\n for (i = commonLength; i < nextChildrenLength; i++) {\n nextChild = nextChildren[i];\n if (nextChild.dom) {\n nextChild = nextChildren[i] = directClone(nextChild);\n }\n mount(nextChild, dom, context, isSVG);\n }\n } else if (lastChildrenLength > nextChildrenLength) {\n for (i = commonLength; i < lastChildrenLength; i++) {\n remove(lastChildren[i], dom);\n }\n }\n}\nfunction patchKeyedChildren(a, b, dom, context, isSVG, aLength, bLength) {\n var aEnd = aLength - 1;\n var bEnd = bLength - 1;\n var i;\n var j = 0;\n var aNode = a[j];\n var bNode = b[j];\n var nextPos;\n // Step 1\n // tslint:disable-next-line\n outer: {\n // Sync nodes with the same key at the beginning.\n while (aNode.key === bNode.key) {\n if (bNode.dom) {\n b[j] = bNode = directClone(bNode);\n }\n patch(aNode, bNode, dom, context, isSVG);\n a[j] = bNode;\n j++;\n if (j > aEnd || j > bEnd) {\n break outer;\n }\n aNode = a[j];\n bNode = b[j];\n }\n aNode = a[aEnd];\n bNode = b[bEnd];\n // Sync nodes with the same key at the end.\n while (aNode.key === bNode.key) {\n if (bNode.dom) {\n b[bEnd] = bNode = directClone(bNode);\n }\n patch(aNode, bNode, dom, context, isSVG);\n a[aEnd] = bNode;\n aEnd--;\n bEnd--;\n if (j > aEnd || j > bEnd) {\n break outer;\n }\n aNode = a[aEnd];\n bNode = b[bEnd];\n }\n }\n if (j > aEnd) {\n if (j <= bEnd) {\n nextPos = bEnd + 1;\n var nextNode = nextPos < bLength ? b[nextPos].dom : null;\n while (j <= bEnd) {\n bNode = b[j];\n if (bNode.dom) {\n b[j] = bNode = directClone(bNode);\n }\n j++;\n insertOrAppend(dom, mount(bNode, null, context, isSVG), nextNode);\n }\n }\n } else if (j > bEnd) {\n while (j <= aEnd) {\n remove(a[j++], dom);\n }\n } else {\n var aStart = j;\n var bStart = j;\n var aLeft = aEnd - j + 1;\n var bLeft = bEnd - j + 1;\n var sources = [];\n for (i = 0; i < bLeft; i++) {\n sources.push(0);\n }\n // Keep track if its possible to remove whole DOM using textContent = '';\n var canRemoveWholeContent = aLeft === aLength;\n var moved = false;\n var pos = 0;\n var patched = 0;\n // When sizes are small, just loop them through\n if (bLength < 4 || (aLeft | bLeft) < 32) {\n for (i = aStart; i <= aEnd; i++) {\n aNode = a[i];\n if (patched < bLeft) {\n for (j = bStart; j <= bEnd; j++) {\n bNode = b[j];\n if (aNode.key === bNode.key) {\n sources[j - bStart] = i + 1;\n if (canRemoveWholeContent) {\n canRemoveWholeContent = false;\n while (i > aStart) {\n remove(a[aStart++], dom);\n }\n }\n if (pos > j) {\n moved = true;\n } else {\n pos = j;\n }\n if (bNode.dom) {\n b[j] = bNode = directClone(bNode);\n }\n patch(aNode, bNode, dom, context, isSVG);\n patched++;\n break;\n }\n }\n if (!canRemoveWholeContent && j > bEnd) {\n remove(aNode, dom);\n }\n } else if (!canRemoveWholeContent) {\n remove(aNode, dom);\n }\n }\n } else {\n var keyIndex = {};\n // Map keys by their index\n for (i = bStart; i <= bEnd; i++) {\n keyIndex[b[i].key] = i;\n }\n // Try to patch same keys\n for (i = aStart; i <= aEnd; i++) {\n aNode = a[i];\n if (patched < bLeft) {\n j = keyIndex[aNode.key];\n if (j !== void 0) {\n if (canRemoveWholeContent) {\n canRemoveWholeContent = false;\n while (i > aStart) {\n remove(a[aStart++], dom);\n }\n }\n bNode = b[j];\n sources[j - bStart] = i + 1;\n if (pos > j) {\n moved = true;\n } else {\n pos = j;\n }\n if (bNode.dom) {\n b[j] = bNode = directClone(bNode);\n }\n patch(aNode, bNode, dom, context, isSVG);\n patched++;\n } else if (!canRemoveWholeContent) {\n remove(aNode, dom);\n }\n } else if (!canRemoveWholeContent) {\n remove(aNode, dom);\n }\n }\n }\n // fast-path: if nothing patched remove all old and add all new\n if (canRemoveWholeContent) {\n removeAllChildren(dom, a);\n mountArrayChildren(b, dom, context, isSVG);\n } else {\n if (moved) {\n var seq = lis_algorithm(sources);\n j = seq.length - 1;\n for (i = bLeft - 1; i >= 0; i--) {\n if (sources[i] === 0) {\n pos = i + bStart;\n bNode = b[pos];\n if (bNode.dom) {\n b[pos] = bNode = directClone(bNode);\n }\n nextPos = pos + 1;\n insertOrAppend(dom, mount(bNode, null, context, isSVG), nextPos < bLength ? b[nextPos].dom : null);\n } else if (j < 0 || i !== seq[j]) {\n pos = i + bStart;\n bNode = b[pos];\n nextPos = pos + 1;\n insertOrAppend(dom, bNode.dom, nextPos < bLength ? b[nextPos].dom : null);\n } else {\n j--;\n }\n }\n } else if (patched !== bLeft) {\n // when patched count doesn't match b length we need to insert those new ones\n // loop backwards so we can use insertBefore\n for (i = bLeft - 1; i >= 0; i--) {\n if (sources[i] === 0) {\n pos = i + bStart;\n bNode = b[pos];\n if (bNode.dom) {\n b[pos] = bNode = directClone(bNode);\n }\n nextPos = pos + 1;\n insertOrAppend(dom, mount(bNode, null, context, isSVG), nextPos < bLength ? b[nextPos].dom : null);\n }\n }\n }\n }\n }\n}\n// https://en.wikipedia.org/wiki/Longest_increasing_subsequence\nfunction lis_algorithm(arr) {\n var p = arr.slice();\n var result = [0];\n var i;\n var j;\n var u;\n var v;\n var c;\n var len = arr.length;\n for (i = 0; i < len; i++) {\n var arrI = arr[i];\n if (arrI !== 0) {\n j = result[result.length - 1];\n if (arr[j] < arrI) {\n p[i] = j;\n result.push(i);\n continue;\n }\n u = 0;\n v = result.length - 1;\n while (u < v) {\n c = (u + v) / 2 | 0;\n if (arr[result[c]] < arrI) {\n u = c + 1;\n } else {\n v = c;\n }\n }\n if (arrI < arr[result[u]]) {\n if (u > 0) {\n p[i] = result[u - 1];\n }\n result[u] = i;\n }\n }\n }\n u = result.length;\n v = result[u - 1];\n while (u-- > 0) {\n result[u] = v;\n v = p[v];\n }\n return result;\n}\n\nfunction render(input, parentDom, callback) {\n if (input === NO_OP) {\n return;\n }\n var rootInput = parentDom.$V;\n if (isNullOrUndef(rootInput)) {\n if (!isInvalid(input)) {\n if (input.dom) {\n input = directClone(input);\n }\n if (isNull(parentDom.firstChild)) {\n mount(input, parentDom, EMPTY_OBJ, false);\n parentDom.$V = input;\n } else {\n hydrate(input, parentDom);\n }\n rootInput = input;\n }\n } else {\n if (isNullOrUndef(input)) {\n remove(rootInput, parentDom);\n parentDom.$V = null;\n } else {\n if (input.dom) {\n input = directClone(input);\n }\n patch(rootInput, input, parentDom, EMPTY_OBJ, false);\n rootInput = parentDom.$V = input;\n }\n }\n if (LIFECYCLE.length > 0) {\n callAll(LIFECYCLE);\n }\n if (isFunction(callback)) {\n callback();\n }\n if (isFunction(options.renderComplete)) {\n options.renderComplete(rootInput);\n }\n if (rootInput && rootInput.flags & 14 /* VNodeFlags.Component */) {\n return rootInput.children;\n }\n}\nfunction createRenderer(parentDom) {\n return function renderer(lastInput, nextInput) {\n if (!parentDom) {\n parentDom = lastInput;\n }\n render(nextInput, parentDom);\n };\n}\nfunction createPortal(children, container) {\n return createVNode(1024 /* VNodeFlags.Portal */, container, null, children, 0 /* ChildFlags.UnknownChildren */, null, isInvalid(children) ? null : children.key, null);\n}\n\nvar resolvedPromise = typeof Promise === 'undefined' ? null : Promise.resolve();\n// raf.bind(window) is needed to work around bug in IE10-IE11 strict mode (TypeError: Invalid calling object)\nvar fallbackMethod = typeof requestAnimationFrame === 'undefined' ? setTimeout : requestAnimationFrame.bind(window);\nfunction nextTick(fn) {\n if (resolvedPromise) {\n return resolvedPromise.then(fn);\n }\n return fallbackMethod(fn);\n}\nfunction queueStateChanges(component, newState, callback, force) {\n if (isFunction(newState)) {\n newState = newState(component.state, component.props, component.context);\n }\n var pending = component.$PS;\n if (isNullOrUndef(pending)) {\n component.$PS = newState;\n } else {\n for (var stateKey in newState) {\n pending[stateKey] = newState[stateKey];\n }\n }\n if (!component.$PSS && !component.$BR) {\n if (!component.$UPD) {\n component.$PSS = true;\n component.$UPD = true;\n applyState(component, force, callback);\n component.$UPD = false;\n } else {\n // Async\n var queue = component.$QU;\n if (isNull(queue)) {\n queue = component.$QU = [];\n nextTick(promiseCallback(component, queue));\n }\n if (isFunction(callback)) {\n queue.push(callback);\n }\n }\n } else {\n component.$PSS = true;\n if (component.$BR && isFunction(callback)) {\n LIFECYCLE.push(callback.bind(component));\n }\n }\n}\nfunction promiseCallback(component, queue) {\n return function () {\n component.$QU = null;\n component.$UPD = true;\n applyState(component, false, function () {\n for (var i = 0, len = queue.length; i < len; i++) {\n queue[i].call(component);\n }\n });\n component.$UPD = false;\n };\n}\nfunction applyState(component, force, callback) {\n if (component.$UN) {\n return;\n }\n if (force || !component.$BR) {\n component.$PSS = false;\n var pendingState = component.$PS;\n var prevState = component.state;\n var nextState = combineFrom(prevState, pendingState);\n var props = component.props;\n var context = component.context;\n component.$PS = null;\n var vNode = component.$V;\n var lastInput = component.$LI;\n var parentDom = lastInput.dom && lastInput.dom.parentNode;\n updateClassComponent(component, nextState, vNode, props, parentDom, context, (vNode.flags & 32 /* VNodeFlags.SvgElement */) > 0, force, true);\n if (component.$UN) {\n return;\n }\n if ((component.$LI.flags & 1024 /* VNodeFlags.Portal */) === 0) {\n var dom = component.$LI.dom;\n while (!isNull(vNode = vNode.parentVNode)) {\n if ((vNode.flags & 14 /* VNodeFlags.Component */) > 0) {\n vNode.dom = dom;\n }\n }\n }\n if (LIFECYCLE.length > 0) {\n callAll(LIFECYCLE);\n }\n } else {\n component.state = component.$PS;\n component.$PS = null;\n }\n if (isFunction(callback)) {\n callback.call(component);\n }\n}\nvar Component = /*#__PURE__*/function () {\n // QUEUE\n function Component(props, context) {\n this.state = null;\n this.props = void 0;\n this.context = void 0;\n this.refs = void 0;\n // Internal properties\n this.$BR = false;\n // BLOCK RENDER\n this.$BS = true;\n // BLOCK STATE\n this.$PSS = false;\n // PENDING SET STATE\n this.$PS = null;\n // PENDING STATE (PARTIAL or FULL)\n this.$LI = null;\n // LAST INPUT\n this.$V = null;\n // VNODE\n this.$UN = false;\n // UNMOUNTED\n this.$CX = null;\n // CHILDCONTEXT\n this.$UPD = true;\n // UPDATING\n this.$QU = null;\n /** @type {object} */\n this.props = props || EMPTY_OBJ;\n /** @type {object} */\n this.context = context || EMPTY_OBJ; // context should not be mutable\n }\n var _proto = Component.prototype;\n _proto.forceUpdate = function forceUpdate(callback) {\n if (this.$UN) {\n return;\n }\n // Do not allow double render during force update\n queueStateChanges(this, {}, callback, true);\n };\n _proto.setState = function setState(newState, callback) {\n if (this.$UN) {\n return;\n }\n if (!this.$BS) {\n queueStateChanges(this, newState, callback, false);\n } else {\n return;\n }\n }\n // tslint:disable-next-line:no-empty\n ;\n _proto.render = function render(_nextProps, _nextState, _nextContext) {};\n return Component;\n}();\n// Public\nComponent.defaultProps = void 0;\n\nvar JSX = /*#__PURE__*/Object.freeze({\n __proto__: null\n});\n\nvar version = \"5.6.3\";\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/inferno/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/inferno/index.esm.js": +/*!*******************************************!*\ + !*** ./node_modules/inferno/index.esm.js ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Component: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.Component),\n/* harmony export */ EMPTY_OBJ: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.EMPTY_OBJ),\n/* harmony export */ JSX: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.JSX),\n/* harmony export */ NO_OP: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.NO_OP),\n/* harmony export */ createComponentVNode: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode),\n/* harmony export */ createPortal: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.createPortal),\n/* harmony export */ createRenderer: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.createRenderer),\n/* harmony export */ createTextVNode: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),\n/* harmony export */ createVNode: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.createVNode),\n/* harmony export */ directClone: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.directClone),\n/* harmony export */ getFlagsForElementVnode: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.getFlagsForElementVnode),\n/* harmony export */ getNumberStyleValue: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.getNumberStyleValue),\n/* harmony export */ hydrate: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.hydrate),\n/* harmony export */ linkEvent: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.linkEvent),\n/* harmony export */ normalizeProps: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),\n/* harmony export */ options: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.options),\n/* harmony export */ render: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.render),\n/* harmony export */ version: () => (/* reexport safe */ _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__.version)\n/* harmony export */ });\n/* harmony import */ var _dist_index_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dist/index.esm.js */ \"./node_modules/inferno/dist/index.esm.js\");\n\n\nif (true) {\n console.warn('You are running production build of Inferno in development mode. Use dev:module entry point.');\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/inferno/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/inherits-browser/dist/index.es.js": +/*!********************************************************!*\ + !*** ./node_modules/inherits-browser/dist/index.es.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ e)\n/* harmony export */ });\nfunction e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}\n//# sourceMappingURL=index.es.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/inherits-browser/dist/index.es.js?"); + +/***/ }), + +/***/ "./node_modules/min-dom/dist/index.esm.js": +/*!************************************************!*\ + !*** ./node_modules/min-dom/dist/index.esm.js ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ assignStyle: () => (/* binding */ assign),\n/* harmony export */ attr: () => (/* binding */ attr),\n/* harmony export */ classes: () => (/* binding */ classes),\n/* harmony export */ clear: () => (/* binding */ clear),\n/* harmony export */ closest: () => (/* binding */ closest),\n/* harmony export */ delegate: () => (/* binding */ delegate),\n/* harmony export */ domify: () => (/* binding */ domify$1),\n/* harmony export */ event: () => (/* binding */ event),\n/* harmony export */ matches: () => (/* binding */ matches),\n/* harmony export */ query: () => (/* binding */ query),\n/* harmony export */ queryAll: () => (/* binding */ all),\n/* harmony export */ remove: () => (/* binding */ remove)\n/* harmony export */ });\nfunction _mergeNamespaces(n, m) {\n m.forEach(function (e) {\n e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {\n if (k !== 'default' && !(k in n)) {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () { return e[k]; }\n });\n }\n });\n });\n return Object.freeze(n);\n}\n\n/**\n * Flatten array, one level deep.\n *\n * @template T\n *\n * @param {T[][] | T[] | null} [arr]\n *\n * @return {T[]}\n */\n\nconst nativeToString = Object.prototype.toString;\nconst nativeHasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction isUndefined(obj) {\n return obj === undefined;\n}\n\nfunction isArray(obj) {\n return nativeToString.call(obj) === '[object Array]';\n}\n\n/**\n * Return true, if target owns a property with the given key.\n *\n * @param {Object} target\n * @param {String} key\n *\n * @return {Boolean}\n */\nfunction has(target, key) {\n return nativeHasOwnProperty.call(target, key);\n}\n\n\n/**\n * Iterate over collection; returning something\n * (non-undefined) will stop iteration.\n *\n * @template T\n * @param {Collection} collection\n * @param { ((item: T, idx: number) => (boolean|void)) | ((item: T, key: string) => (boolean|void)) } iterator\n *\n * @return {T} return result that stopped the iteration\n */\nfunction forEach(collection, iterator) {\n\n let val,\n result;\n\n if (isUndefined(collection)) {\n return;\n }\n\n const convertKey = isArray(collection) ? toNum : identity;\n\n for (let key in collection) {\n\n if (has(collection, key)) {\n val = collection[key];\n\n result = iterator(val, convertKey(key));\n\n if (result === false) {\n return val;\n }\n }\n }\n}\n\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction toNum(arg) {\n return Number(arg);\n}\n\n/**\n * Assigns style attributes in a style-src compliant way.\n *\n * @param {Element} element\n * @param {...Object} styleSources\n *\n * @return {Element} the element\n */\nfunction assign(element, ...styleSources) {\n const target = element.style;\n\n forEach(styleSources, function(style) {\n if (!style) {\n return;\n }\n\n forEach(style, function(value, key) {\n target[key] = value;\n });\n });\n\n return element;\n}\n\n/**\n * Set attribute `name` to `val`, or get attr `name`.\n *\n * @param {Element} el\n * @param {String} name\n * @param {String} [val]\n * @api public\n */\nfunction attr(el, name, val) {\n\n // get\n if (arguments.length == 2) {\n return el.getAttribute(name);\n }\n\n // remove\n if (val === null) {\n return el.removeAttribute(name);\n }\n\n // set\n el.setAttribute(name, val);\n\n return el;\n}\n\n/**\n * Taken from https://github.com/component/classes\n *\n * Without the component bits.\n */\n\n/**\n * toString reference.\n */\n\nconst toString = Object.prototype.toString;\n\n/**\n * Wrap `el` in a `ClassList`.\n *\n * @param {Element} el\n * @return {ClassList}\n * @api public\n */\n\nfunction classes(el) {\n return new ClassList(el);\n}\n\n/**\n * Initialize a new ClassList for `el`.\n *\n * @param {Element} el\n * @api private\n */\n\nfunction ClassList(el) {\n if (!el || !el.nodeType) {\n throw new Error('A DOM element reference is required');\n }\n this.el = el;\n this.list = el.classList;\n}\n\n/**\n * Add class `name` if not already present.\n *\n * @param {String} name\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.add = function(name) {\n this.list.add(name);\n return this;\n};\n\n/**\n * Remove class `name` when present, or\n * pass a regular expression to remove\n * any which match.\n *\n * @param {String|RegExp} name\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.remove = function(name) {\n if ('[object RegExp]' == toString.call(name)) {\n return this.removeMatching(name);\n }\n\n this.list.remove(name);\n return this;\n};\n\n/**\n * Remove all classes matching `re`.\n *\n * @param {RegExp} re\n * @return {ClassList}\n * @api private\n */\n\nClassList.prototype.removeMatching = function(re) {\n const arr = this.array();\n for (let i = 0; i < arr.length; i++) {\n if (re.test(arr[i])) {\n this.remove(arr[i]);\n }\n }\n return this;\n};\n\n/**\n * Toggle class `name`, can force state via `force`.\n *\n * For browsers that support classList, but do not support `force` yet,\n * the mistake will be detected and corrected.\n *\n * @param {String} name\n * @param {Boolean} force\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.toggle = function(name, force) {\n if ('undefined' !== typeof force) {\n if (force !== this.list.toggle(name, force)) {\n this.list.toggle(name); // toggle again to correct\n }\n } else {\n this.list.toggle(name);\n }\n return this;\n};\n\n/**\n * Return an array of classes.\n *\n * @return {Array}\n * @api public\n */\n\nClassList.prototype.array = function() {\n return Array.from(this.list);\n};\n\n/**\n * Check if class `name` is present.\n *\n * @param {String} name\n * @return {ClassList}\n * @api public\n */\n\nClassList.prototype.has =\nClassList.prototype.contains = function(name) {\n return this.list.contains(name);\n};\n\n/**\n * Clear utility\n */\n\n/**\n * Removes all children from the given element\n *\n * @param {Element} element\n *\n * @return {Element} the element (for chaining)\n */\nfunction clear(element) {\n var child;\n\n while ((child = element.firstChild)) {\n element.removeChild(child);\n }\n\n return element;\n}\n\n/**\n * Closest\n *\n * @param {Element} el\n * @param {string} selector\n * @param {boolean} checkYourSelf (optional)\n */\nfunction closest(element, selector, checkYourSelf) {\n var actualElement = checkYourSelf ? element : element.parentNode;\n\n return actualElement && typeof actualElement.closest === 'function' && actualElement.closest(selector) || null;\n}\n\nvar componentEvent = {};\n\nvar bind$1, unbind$1, prefix;\n\nfunction detect () {\n bind$1 = window.addEventListener ? 'addEventListener' : 'attachEvent';\n unbind$1 = window.removeEventListener ? 'removeEventListener' : 'detachEvent';\n prefix = bind$1 !== 'addEventListener' ? 'on' : '';\n}\n\n/**\n * Bind `el` event `type` to `fn`.\n *\n * @param {Element} el\n * @param {String} type\n * @param {Function} fn\n * @param {Boolean} capture\n * @return {Function}\n * @api public\n */\n\nvar bind_1 = componentEvent.bind = function(el, type, fn, capture){\n if (!bind$1) detect();\n el[bind$1](prefix + type, fn, capture || false);\n return fn;\n};\n\n/**\n * Unbind `el` event `type`'s callback `fn`.\n *\n * @param {Element} el\n * @param {String} type\n * @param {Function} fn\n * @param {Boolean} capture\n * @return {Function}\n * @api public\n */\n\nvar unbind_1 = componentEvent.unbind = function(el, type, fn, capture){\n if (!unbind$1) detect();\n el[unbind$1](prefix + type, fn, capture || false);\n return fn;\n};\n\nvar event = /*#__PURE__*/_mergeNamespaces({\n __proto__: null,\n bind: bind_1,\n unbind: unbind_1,\n 'default': componentEvent\n}, [componentEvent]);\n\n/**\n * Module dependencies.\n */\n\n/**\n * Delegate event `type` to `selector`\n * and invoke `fn(e)`. A callback function\n * is returned which may be passed to `.unbind()`.\n *\n * @param {Element} el\n * @param {String} selector\n * @param {String} type\n * @param {Function} fn\n * @param {Boolean} capture\n * @return {Function}\n * @api public\n */\n\n// Some events don't bubble, so we want to bind to the capture phase instead\n// when delegating.\nvar forceCaptureEvents = [ 'focus', 'blur' ];\n\nfunction bind(el, selector, type, fn, capture) {\n if (forceCaptureEvents.indexOf(type) !== -1) {\n capture = true;\n }\n\n return event.bind(el, type, function(e) {\n var target = e.target || e.srcElement;\n e.delegateTarget = closest(target, selector, true);\n if (e.delegateTarget) {\n fn.call(el, e);\n }\n }, capture);\n}\n\n/**\n * Unbind event `type`'s callback `fn`.\n *\n * @param {Element} el\n * @param {String} type\n * @param {Function} fn\n * @param {Boolean} capture\n * @api public\n */\nfunction unbind(el, type, fn, capture) {\n if (forceCaptureEvents.indexOf(type) !== -1) {\n capture = true;\n }\n\n return event.unbind(el, type, fn, capture);\n}\n\nvar delegate = {\n bind,\n unbind\n};\n\n/**\n * Expose `parse`.\n */\n\nvar domify = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, '
', '
'],\n tr: [2, '', '
'],\n col: [2, '', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
', '
'] : [0, '', '']\n};\n\nmap.td =\nmap.th = [3, '', '
'];\n\nmap.option =\nmap.optgroup = [1, ''];\n\nmap.thead =\nmap.tbody =\nmap.colgroup =\nmap.caption =\nmap.tfoot = [1, '', '
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, '',''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = Object.prototype.hasOwnProperty.call(map, tag) ? map[tag] : map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\nvar domify$1 = domify;\n\n/**\n * @param { HTMLElement } element\n * @param { String } selector\n *\n * @return { boolean }\n */\nfunction matches(element, selector) {\n return element && typeof element.matches === 'function' && element.matches(selector) || false;\n}\n\nfunction query(selector, el) {\n el = el || document;\n\n return el.querySelector(selector);\n}\n\nfunction all(selector, el) {\n el = el || document;\n\n return el.querySelectorAll(selector);\n}\n\nfunction remove(el) {\n el.parentNode && el.parentNode.removeChild(el);\n}\n\n\n//# sourceMappingURL=index.esm.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/min-dom/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/moddle-xml/dist/index.esm.js": +/*!***************************************************!*\ + !*** ./node_modules/moddle-xml/dist/index.esm.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Reader: () => (/* binding */ Reader),\n/* harmony export */ Writer: () => (/* binding */ Writer)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ \"./node_modules/moddle-xml/node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var saxen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! saxen */ \"./node_modules/saxen/dist/index.esm.js\");\n/* harmony import */ var moddle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moddle */ \"./node_modules/moddle/dist/index.esm.js\");\n\n\n\n\nfunction hasLowerCaseAlias(pkg) {\n return pkg.xml && pkg.xml.tagAlias === 'lowerCase';\n}\n\nvar DEFAULT_NS_MAP = {\n 'xsi': 'http://www.w3.org/2001/XMLSchema-instance',\n 'xml': 'http://www.w3.org/XML/1998/namespace'\n};\n\nvar XSI_TYPE = 'xsi:type';\n\nfunction serializeFormat(element) {\n return element.xml && element.xml.serialize;\n}\n\nfunction serializeAsType(element) {\n return serializeFormat(element) === XSI_TYPE;\n}\n\nfunction serializeAsProperty(element) {\n return serializeFormat(element) === 'property';\n}\n\nfunction capitalize(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nfunction aliasToName(aliasNs, pkg) {\n\n if (!hasLowerCaseAlias(pkg)) {\n return aliasNs.name;\n }\n\n return aliasNs.prefix + ':' + capitalize(aliasNs.localName);\n}\n\nfunction prefixedToName(nameNs, pkg) {\n\n var name = nameNs.name,\n localName = nameNs.localName;\n\n var typePrefix = pkg.xml && pkg.xml.typePrefix;\n\n if (typePrefix && localName.indexOf(typePrefix) === 0) {\n return nameNs.prefix + ':' + localName.slice(typePrefix.length);\n } else {\n return name;\n }\n}\n\nfunction normalizeXsiTypeName(name, model) {\n\n var nameNs = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(name);\n var pkg = model.getPackage(nameNs.prefix);\n\n return prefixedToName(nameNs, pkg);\n}\n\nfunction error(message) {\n return new Error(message);\n}\n\n/**\n * Get the moddle descriptor for a given instance or type.\n *\n * @param {ModdleElement|Function} element\n *\n * @return {Object} the moddle descriptor\n */\nfunction getModdleDescriptor(element) {\n return element.$descriptor;\n}\n\n\n/**\n * A parse context.\n *\n * @class\n *\n * @param {Object} options\n * @param {ElementHandler} options.rootHandler the root handler for parsing a document\n * @param {boolean} [options.lax=false] whether or not to ignore invalid elements\n */\nfunction Context(options) {\n\n /**\n * @property {ElementHandler} rootHandler\n */\n\n /**\n * @property {Boolean} lax\n */\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(this, options);\n\n this.elementsById = {};\n this.references = [];\n this.warnings = [];\n\n /**\n * Add an unresolved reference.\n *\n * @param {Object} reference\n */\n this.addReference = function(reference) {\n this.references.push(reference);\n };\n\n /**\n * Add a processed element.\n *\n * @param {ModdleElement} element\n */\n this.addElement = function(element) {\n\n if (!element) {\n throw error('expected element');\n }\n\n var elementsById = this.elementsById;\n\n var descriptor = getModdleDescriptor(element);\n\n var idProperty = descriptor.idProperty,\n id;\n\n if (idProperty) {\n id = element.get(idProperty.name);\n\n if (id) {\n\n // for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar\n if (!/^([a-z][\\w-.]*:)?[a-z_][\\w-.]*$/i.test(id)) {\n throw new Error('illegal ID <' + id + '>');\n }\n\n if (elementsById[id]) {\n throw error('duplicate ID <' + id + '>');\n }\n\n elementsById[id] = element;\n }\n }\n };\n\n /**\n * Add an import warning.\n *\n * @param {Object} warning\n * @param {String} warning.message\n * @param {Error} [warning.error]\n */\n this.addWarning = function(warning) {\n this.warnings.push(warning);\n };\n}\n\nfunction BaseHandler() {}\n\nBaseHandler.prototype.handleEnd = function() {};\nBaseHandler.prototype.handleText = function() {};\nBaseHandler.prototype.handleNode = function() {};\n\n\n/**\n * A simple pass through handler that does nothing except for\n * ignoring all input it receives.\n *\n * This is used to ignore unknown elements and\n * attributes.\n */\nfunction NoopHandler() { }\n\nNoopHandler.prototype = Object.create(BaseHandler.prototype);\n\nNoopHandler.prototype.handleNode = function() {\n return this;\n};\n\nfunction BodyHandler() {}\n\nBodyHandler.prototype = Object.create(BaseHandler.prototype);\n\nBodyHandler.prototype.handleText = function(text) {\n this.body = (this.body || '') + text;\n};\n\nfunction ReferenceHandler(property, context) {\n this.property = property;\n this.context = context;\n}\n\nReferenceHandler.prototype = Object.create(BodyHandler.prototype);\n\nReferenceHandler.prototype.handleNode = function(node) {\n\n if (this.element) {\n throw error('expected no sub nodes');\n } else {\n this.element = this.createReference(node);\n }\n\n return this;\n};\n\nReferenceHandler.prototype.handleEnd = function() {\n this.element.id = this.body;\n};\n\nReferenceHandler.prototype.createReference = function(node) {\n return {\n property: this.property.ns.name,\n id: ''\n };\n};\n\nfunction ValueHandler(propertyDesc, element) {\n this.element = element;\n this.propertyDesc = propertyDesc;\n}\n\nValueHandler.prototype = Object.create(BodyHandler.prototype);\n\nValueHandler.prototype.handleEnd = function() {\n\n var value = this.body || '',\n element = this.element,\n propertyDesc = this.propertyDesc;\n\n value = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.coerceType)(propertyDesc.type, value);\n\n if (propertyDesc.isMany) {\n element.get(propertyDesc.name).push(value);\n } else {\n element.set(propertyDesc.name, value);\n }\n};\n\n\nfunction BaseElementHandler() {}\n\nBaseElementHandler.prototype = Object.create(BodyHandler.prototype);\n\nBaseElementHandler.prototype.handleNode = function(node) {\n var parser = this,\n element = this.element;\n\n if (!element) {\n element = this.element = this.createElement(node);\n\n this.context.addElement(element);\n } else {\n parser = this.handleChild(node);\n }\n\n return parser;\n};\n\n/**\n * @class Reader.ElementHandler\n *\n */\nfunction ElementHandler(model, typeName, context) {\n this.model = model;\n this.type = model.getType(typeName);\n this.context = context;\n}\n\nElementHandler.prototype = Object.create(BaseElementHandler.prototype);\n\nElementHandler.prototype.addReference = function(reference) {\n this.context.addReference(reference);\n};\n\nElementHandler.prototype.handleText = function(text) {\n\n var element = this.element,\n descriptor = getModdleDescriptor(element),\n bodyProperty = descriptor.bodyProperty;\n\n if (!bodyProperty) {\n throw error('unexpected body text <' + text + '>');\n }\n\n BodyHandler.prototype.handleText.call(this, text);\n};\n\nElementHandler.prototype.handleEnd = function() {\n\n var value = this.body,\n element = this.element,\n descriptor = getModdleDescriptor(element),\n bodyProperty = descriptor.bodyProperty;\n\n if (bodyProperty && value !== undefined) {\n value = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.coerceType)(bodyProperty.type, value);\n element.set(bodyProperty.name, value);\n }\n};\n\n/**\n * Create an instance of the model from the given node.\n *\n * @param {Element} node the xml node\n */\nElementHandler.prototype.createElement = function(node) {\n var attributes = node.attributes,\n Type = this.type,\n descriptor = getModdleDescriptor(Type),\n context = this.context,\n instance = new Type({}),\n model = this.model,\n propNameNs;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(attributes, function(value, name) {\n\n var prop = descriptor.propertiesByName[name],\n values;\n\n if (prop && prop.isReference) {\n\n if (!prop.isMany) {\n context.addReference({\n element: instance,\n property: prop.ns.name,\n id: value\n });\n } else {\n\n // IDREFS: parse references as whitespace-separated list\n values = value.split(' ');\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(values, function(v) {\n context.addReference({\n element: instance,\n property: prop.ns.name,\n id: v\n });\n });\n }\n\n } else {\n if (prop) {\n value = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.coerceType)(prop.type, value);\n } else\n if (name !== 'xmlns') {\n propNameNs = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(name, descriptor.ns.prefix);\n\n // check whether attribute is defined in a well-known namespace\n // if that is the case we emit a warning to indicate potential misuse\n if (model.getPackage(propNameNs.prefix)) {\n\n context.addWarning({\n message: 'unknown attribute <' + name + '>',\n element: instance,\n property: name,\n value: value\n });\n }\n }\n\n instance.set(name, value);\n }\n });\n\n return instance;\n};\n\nElementHandler.prototype.getPropertyForNode = function(node) {\n\n var name = node.name;\n var nameNs = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(name);\n\n var type = this.type,\n model = this.model,\n descriptor = getModdleDescriptor(type);\n\n var propertyName = nameNs.name,\n property = descriptor.propertiesByName[propertyName],\n elementTypeName,\n elementType;\n\n // search for properties by name first\n\n if (property && !property.isAttr) {\n\n if (serializeAsType(property)) {\n elementTypeName = node.attributes[XSI_TYPE];\n\n // xsi type is optional, if it does not exists the\n // default type is assumed\n if (elementTypeName) {\n\n // take possible type prefixes from XML\n // into account, i.e.: xsi:type=\"t{ActualType}\"\n elementTypeName = normalizeXsiTypeName(elementTypeName, model);\n\n elementType = model.getType(elementTypeName);\n\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({}, property, {\n effectiveType: getModdleDescriptor(elementType).name\n });\n }\n }\n\n // search for properties by name first\n return property;\n }\n\n var pkg = model.getPackage(nameNs.prefix);\n\n if (pkg) {\n elementTypeName = aliasToName(nameNs, pkg);\n elementType = model.getType(elementTypeName);\n\n // search for collection members later\n property = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.find)(descriptor.properties, function(p) {\n return !p.isVirtual && !p.isReference && !p.isAttribute && elementType.hasType(p.type);\n });\n\n if (property) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({}, property, {\n effectiveType: getModdleDescriptor(elementType).name\n });\n }\n } else {\n\n // parse unknown element (maybe extension)\n property = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.find)(descriptor.properties, function(p) {\n return !p.isReference && !p.isAttribute && p.type === 'Element';\n });\n\n if (property) {\n return property;\n }\n }\n\n throw error('unrecognized element <' + nameNs.name + '>');\n};\n\nElementHandler.prototype.toString = function() {\n return 'ElementDescriptor[' + getModdleDescriptor(this.type).name + ']';\n};\n\nElementHandler.prototype.valueHandler = function(propertyDesc, element) {\n return new ValueHandler(propertyDesc, element);\n};\n\nElementHandler.prototype.referenceHandler = function(propertyDesc) {\n return new ReferenceHandler(propertyDesc, this.context);\n};\n\nElementHandler.prototype.handler = function(type) {\n if (type === 'Element') {\n return new GenericElementHandler(this.model, type, this.context);\n } else {\n return new ElementHandler(this.model, type, this.context);\n }\n};\n\n/**\n * Handle the child element parsing\n *\n * @param {Element} node the xml node\n */\nElementHandler.prototype.handleChild = function(node) {\n var propertyDesc, type, element, childHandler;\n\n propertyDesc = this.getPropertyForNode(node);\n element = this.element;\n\n type = propertyDesc.effectiveType || propertyDesc.type;\n\n if ((0,moddle__WEBPACK_IMPORTED_MODULE_1__.isSimpleType)(type)) {\n return this.valueHandler(propertyDesc, element);\n }\n\n if (propertyDesc.isReference) {\n childHandler = this.referenceHandler(propertyDesc).handleNode(node);\n } else {\n childHandler = this.handler(type).handleNode(node);\n }\n\n var newElement = childHandler.element;\n\n // child handles may decide to skip elements\n // by not returning anything\n if (newElement !== undefined) {\n\n if (propertyDesc.isMany) {\n element.get(propertyDesc.name).push(newElement);\n } else {\n element.set(propertyDesc.name, newElement);\n }\n\n if (propertyDesc.isReference) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(newElement, {\n element: element\n });\n\n this.context.addReference(newElement);\n } else {\n\n // establish child -> parent relationship\n newElement.$parent = element;\n }\n }\n\n return childHandler;\n};\n\n/**\n * An element handler that performs special validation\n * to ensure the node it gets initialized with matches\n * the handlers type (namespace wise).\n *\n * @param {Moddle} model\n * @param {String} typeName\n * @param {Context} context\n */\nfunction RootElementHandler(model, typeName, context) {\n ElementHandler.call(this, model, typeName, context);\n}\n\nRootElementHandler.prototype = Object.create(ElementHandler.prototype);\n\nRootElementHandler.prototype.createElement = function(node) {\n\n var name = node.name,\n nameNs = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(name),\n model = this.model,\n type = this.type,\n pkg = model.getPackage(nameNs.prefix),\n typeName = pkg && aliasToName(nameNs, pkg) || name;\n\n // verify the correct namespace if we parse\n // the first element in the handler tree\n //\n // this ensures we don't mistakenly import wrong namespace elements\n if (!type.hasType(typeName)) {\n throw error('unexpected element <' + node.originalName + '>');\n }\n\n return ElementHandler.prototype.createElement.call(this, node);\n};\n\n\nfunction GenericElementHandler(model, typeName, context) {\n this.model = model;\n this.context = context;\n}\n\nGenericElementHandler.prototype = Object.create(BaseElementHandler.prototype);\n\nGenericElementHandler.prototype.createElement = function(node) {\n\n var name = node.name,\n ns = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(name),\n prefix = ns.prefix,\n uri = node.ns[prefix + '$uri'],\n attributes = node.attributes;\n\n return this.model.createAny(name, uri, attributes);\n};\n\nGenericElementHandler.prototype.handleChild = function(node) {\n\n var handler = new GenericElementHandler(this.model, 'Element', this.context).handleNode(node),\n element = this.element;\n\n var newElement = handler.element,\n children;\n\n if (newElement !== undefined) {\n children = element.$children = element.$children || [];\n children.push(newElement);\n\n // establish child -> parent relationship\n newElement.$parent = element;\n }\n\n return handler;\n};\n\nGenericElementHandler.prototype.handleEnd = function() {\n if (this.body) {\n this.element.$body = this.body;\n }\n};\n\n/**\n * A reader for a meta-model\n *\n * @param {Object} options\n * @param {Model} options.model used to read xml files\n * @param {Boolean} options.lax whether to make parse errors warnings\n */\nfunction Reader(options) {\n\n if (options instanceof moddle__WEBPACK_IMPORTED_MODULE_1__.Moddle) {\n options = {\n model: options\n };\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(this, { lax: false }, options);\n}\n\n/**\n * The fromXML result.\n *\n * @typedef {Object} ParseResult\n *\n * @property {ModdleElement} rootElement\n * @property {Array} references\n * @property {Array} warnings\n * @property {Object} elementsById - a mapping containing each ID -> ModdleElement\n */\n\n/**\n * The fromXML result.\n *\n * @typedef {Error} ParseError\n *\n * @property {Array} warnings\n */\n\n/**\n * Parse the given XML into a moddle document tree.\n *\n * @param {String} xml\n * @param {ElementHandler|Object} options or rootHandler\n *\n * @returns {Promise}\n */\nReader.prototype.fromXML = function(xml, options, done) {\n\n var rootHandler = options.rootHandler;\n\n if (options instanceof ElementHandler) {\n\n // root handler passed via (xml, { rootHandler: ElementHandler }, ...)\n rootHandler = options;\n options = {};\n } else {\n if (typeof options === 'string') {\n\n // rootHandler passed via (xml, 'someString', ...)\n rootHandler = this.handler(options);\n options = {};\n } else if (typeof rootHandler === 'string') {\n\n // rootHandler passed via (xml, { rootHandler: 'someString' }, ...)\n rootHandler = this.handler(rootHandler);\n }\n }\n\n var model = this.model,\n lax = this.lax;\n\n var context = new Context((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({}, options, { rootHandler: rootHandler })),\n parser = new saxen__WEBPACK_IMPORTED_MODULE_0__.Parser({ proxy: true }),\n stack = createStack();\n\n rootHandler.context = context;\n\n // push root handler\n stack.push(rootHandler);\n\n\n /**\n * Handle error.\n *\n * @param {Error} err\n * @param {Function} getContext\n * @param {boolean} lax\n *\n * @return {boolean} true if handled\n */\n function handleError(err, getContext, lax) {\n\n var ctx = getContext();\n\n var line = ctx.line,\n column = ctx.column,\n data = ctx.data;\n\n // we receive the full context data here,\n // for elements trim down the information\n // to the tag name, only\n if (data.charAt(0) === '<' && data.indexOf(' ') !== -1) {\n data = data.slice(0, data.indexOf(' ')) + '>';\n }\n\n var message =\n 'unparsable content ' + (data ? data + ' ' : '') + 'detected\\n\\t' +\n 'line: ' + line + '\\n\\t' +\n 'column: ' + column + '\\n\\t' +\n 'nested error: ' + err.message;\n\n if (lax) {\n context.addWarning({\n message: message,\n error: err\n });\n\n return true;\n } else {\n throw error(message);\n }\n }\n\n function handleWarning(err, getContext) {\n\n // just like handling errors in mode\n return handleError(err, getContext, true);\n }\n\n /**\n * Resolve collected references on parse end.\n */\n function resolveReferences() {\n\n var elementsById = context.elementsById;\n var references = context.references;\n\n var i, r;\n\n for (i = 0; (r = references[i]); i++) {\n var element = r.element;\n var reference = elementsById[r.id];\n var property = getModdleDescriptor(element).propertiesByName[r.property];\n\n if (!reference) {\n context.addWarning({\n message: 'unresolved reference <' + r.id + '>',\n element: r.element,\n property: r.property,\n value: r.id\n });\n }\n\n if (property.isMany) {\n var collection = element.get(property.name),\n idx = collection.indexOf(r);\n\n // we replace an existing place holder (idx != -1) or\n // append to the collection instead\n if (idx === -1) {\n idx = collection.length;\n }\n\n if (!reference) {\n\n // remove unresolvable reference\n collection.splice(idx, 1);\n } else {\n\n // add or update reference in collection\n collection[idx] = reference;\n }\n } else {\n element.set(property.name, reference);\n }\n }\n }\n\n function handleClose() {\n stack.pop().handleEnd();\n }\n\n var PREAMBLE_START_PATTERN = /^<\\?xml /i;\n\n var ENCODING_PATTERN = / encoding=\"([^\"]+)\"/i;\n\n var UTF_8_PATTERN = /^utf-8$/i;\n\n function handleQuestion(question) {\n\n if (!PREAMBLE_START_PATTERN.test(question)) {\n return;\n }\n\n var match = ENCODING_PATTERN.exec(question);\n var encoding = match && match[1];\n\n if (!encoding || UTF_8_PATTERN.test(encoding)) {\n return;\n }\n\n context.addWarning({\n message:\n 'unsupported document encoding <' + encoding + '>, ' +\n 'falling back to UTF-8'\n });\n }\n\n function handleOpen(node, getContext) {\n var handler = stack.peek();\n\n try {\n stack.push(handler.handleNode(node));\n } catch (err) {\n\n if (handleError(err, getContext, lax)) {\n stack.push(new NoopHandler());\n }\n }\n }\n\n function handleCData(text, getContext) {\n\n try {\n stack.peek().handleText(text);\n } catch (err) {\n handleWarning(err, getContext);\n }\n }\n\n function handleText(text, getContext) {\n\n // strip whitespace only nodes, i.e. before\n // sections and in between tags\n\n if (!text.trim()) {\n return;\n }\n\n handleCData(text, getContext);\n }\n\n var uriMap = model.getPackages().reduce(function(uriMap, p) {\n uriMap[p.uri] = p.prefix;\n\n return uriMap;\n }, {\n 'http://www.w3.org/XML/1998/namespace': 'xml' // add default xml ns\n });\n parser\n .ns(uriMap)\n .on('openTag', function(obj, decodeStr, selfClosing, getContext) {\n\n // gracefully handle unparsable attributes (attrs=false)\n var attrs = obj.attrs || {};\n\n var decodedAttrs = Object.keys(attrs).reduce(function(d, key) {\n var value = decodeStr(attrs[key]);\n\n d[key] = value;\n\n return d;\n }, {});\n\n var node = {\n name: obj.name,\n originalName: obj.originalName,\n attributes: decodedAttrs,\n ns: obj.ns\n };\n\n handleOpen(node, getContext);\n })\n .on('question', handleQuestion)\n .on('closeTag', handleClose)\n .on('cdata', handleCData)\n .on('text', function(text, decodeEntities, getContext) {\n handleText(decodeEntities(text), getContext);\n })\n .on('error', handleError)\n .on('warn', handleWarning);\n\n // async XML parsing to make sure the execution environment\n // (node or brower) is kept responsive and that certain optimization\n // strategies can kick in.\n return new Promise(function(resolve, reject) {\n\n var err;\n\n try {\n parser.parse(xml);\n\n resolveReferences();\n } catch (e) {\n err = e;\n }\n\n var rootElement = rootHandler.element;\n\n if (!err && !rootElement) {\n err = error('failed to parse document as <' + rootHandler.type.$descriptor.name + '>');\n }\n\n var warnings = context.warnings;\n var references = context.references;\n var elementsById = context.elementsById;\n\n if (err) {\n err.warnings = warnings;\n\n return reject(err);\n } else {\n return resolve({\n rootElement: rootElement,\n elementsById: elementsById,\n references: references,\n warnings: warnings\n });\n }\n });\n};\n\nReader.prototype.handler = function(name) {\n return new RootElementHandler(this.model, name);\n};\n\n\n// helpers //////////////////////////\n\nfunction createStack() {\n var stack = [];\n\n Object.defineProperty(stack, 'peek', {\n value: function() {\n return this[this.length - 1];\n }\n });\n\n return stack;\n}\n\nvar XML_PREAMBLE = '\\n';\n\nvar ESCAPE_ATTR_CHARS = /<|>|'|\"|&|\\n\\r|\\n/g;\nvar ESCAPE_CHARS = /<|>|&/g;\n\n\nfunction Namespaces(parent) {\n\n var prefixMap = {};\n var uriMap = {};\n var used = {};\n\n var wellknown = [];\n var custom = [];\n\n // API\n\n this.byUri = function(uri) {\n return uriMap[uri] || (\n parent && parent.byUri(uri)\n );\n };\n\n this.add = function(ns, isWellknown) {\n\n uriMap[ns.uri] = ns;\n\n if (isWellknown) {\n wellknown.push(ns);\n } else {\n custom.push(ns);\n }\n\n this.mapPrefix(ns.prefix, ns.uri);\n };\n\n this.uriByPrefix = function(prefix) {\n return prefixMap[prefix || 'xmlns'];\n };\n\n this.mapPrefix = function(prefix, uri) {\n prefixMap[prefix || 'xmlns'] = uri;\n };\n\n this.getNSKey = function(ns) {\n return (ns.prefix !== undefined) ? (ns.uri + '|' + ns.prefix) : ns.uri;\n };\n\n this.logUsed = function(ns) {\n\n var uri = ns.uri;\n var nsKey = this.getNSKey(ns);\n\n used[nsKey] = this.byUri(uri);\n\n // Inform parent recursively about the usage of this NS\n if (parent) {\n parent.logUsed(ns);\n }\n };\n\n this.getUsed = function(ns) {\n\n function isUsed(ns) {\n var nsKey = self.getNSKey(ns);\n\n return used[nsKey];\n }\n\n var self = this;\n\n var allNs = [].concat(wellknown, custom);\n\n return allNs.filter(isUsed);\n };\n\n}\n\nfunction lower(string) {\n return string.charAt(0).toLowerCase() + string.slice(1);\n}\n\nfunction nameToAlias(name, pkg) {\n if (hasLowerCaseAlias(pkg)) {\n return lower(name);\n } else {\n return name;\n }\n}\n\nfunction inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n}\n\nfunction nsName(ns) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isString)(ns)) {\n return ns;\n } else {\n return (ns.prefix ? ns.prefix + ':' : '') + ns.localName;\n }\n}\n\nfunction getNsAttrs(namespaces) {\n\n return namespaces.getUsed().filter(function(ns) {\n\n // do not serialize built in namespace\n return ns.prefix !== 'xml';\n }).map(function(ns) {\n var name = 'xmlns' + (ns.prefix ? ':' + ns.prefix : '');\n return { name: name, value: ns.uri };\n });\n\n}\n\nfunction getElementNs(ns, descriptor) {\n if (descriptor.isGeneric) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({ localName: descriptor.ns.localName }, ns);\n } else {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({ localName: nameToAlias(descriptor.ns.localName, descriptor.$pkg) }, ns);\n }\n}\n\nfunction getPropertyNs(ns, descriptor) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({ localName: descriptor.ns.localName }, ns);\n}\n\nfunction getSerializableProperties(element) {\n var descriptor = element.$descriptor;\n\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.filter)(descriptor.properties, function(p) {\n var name = p.name;\n\n if (p.isVirtual) {\n return false;\n }\n\n // do not serialize defaults\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.has)(element, name)) {\n return false;\n }\n\n var value = element[name];\n\n // do not serialize default equals\n if (value === p.default) {\n return false;\n }\n\n // do not serialize null properties\n if (value === null) {\n return false;\n }\n\n return p.isMany ? value.length : true;\n });\n}\n\nvar ESCAPE_ATTR_MAP = {\n '\\n': '#10',\n '\\n\\r': '#10',\n '\"': '#34',\n '\\'': '#39',\n '<': '#60',\n '>': '#62',\n '&': '#38'\n};\n\nvar ESCAPE_MAP = {\n '<': 'lt',\n '>': 'gt',\n '&': 'amp'\n};\n\nfunction escape(str, charPattern, replaceMap) {\n\n // ensure we are handling strings here\n str = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isString)(str) ? str : '' + str;\n\n return str.replace(charPattern, function(s) {\n return '&' + replaceMap[s] + ';';\n });\n}\n\n/**\n * Escape a string attribute to not contain any bad values (line breaks, '\"', ...)\n *\n * @param {String} str the string to escape\n * @return {String} the escaped string\n */\nfunction escapeAttr(str) {\n return escape(str, ESCAPE_ATTR_CHARS, ESCAPE_ATTR_MAP);\n}\n\nfunction escapeBody(str) {\n return escape(str, ESCAPE_CHARS, ESCAPE_MAP);\n}\n\nfunction filterAttributes(props) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.filter)(props, function(p) { return p.isAttr; });\n}\n\nfunction filterContained(props) {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.filter)(props, function(p) { return !p.isAttr; });\n}\n\n\nfunction ReferenceSerializer(tagName) {\n this.tagName = tagName;\n}\n\nReferenceSerializer.prototype.build = function(element) {\n this.element = element;\n return this;\n};\n\nReferenceSerializer.prototype.serializeTo = function(writer) {\n writer\n .appendIndent()\n .append('<' + this.tagName + '>' + this.element.id + '')\n .appendNewLine();\n};\n\nfunction BodySerializer() {}\n\nBodySerializer.prototype.serializeValue =\nBodySerializer.prototype.serializeTo = function(writer) {\n writer.append(\n this.escape\n ? escapeBody(this.value)\n : this.value\n );\n};\n\nBodySerializer.prototype.build = function(prop, value) {\n this.value = value;\n\n if (prop.type === 'String' && value.search(ESCAPE_CHARS) !== -1) {\n this.escape = true;\n }\n\n return this;\n};\n\nfunction ValueSerializer(tagName) {\n this.tagName = tagName;\n}\n\ninherits(ValueSerializer, BodySerializer);\n\nValueSerializer.prototype.serializeTo = function(writer) {\n\n writer\n .appendIndent()\n .append('<' + this.tagName + '>');\n\n this.serializeValue(writer);\n\n writer\n .append('')\n .appendNewLine();\n};\n\nfunction ElementSerializer(parent, propertyDescriptor) {\n this.body = [];\n this.attrs = [];\n\n this.parent = parent;\n this.propertyDescriptor = propertyDescriptor;\n}\n\nElementSerializer.prototype.build = function(element) {\n this.element = element;\n\n var elementDescriptor = element.$descriptor,\n propertyDescriptor = this.propertyDescriptor;\n\n var otherAttrs,\n properties;\n\n var isGeneric = elementDescriptor.isGeneric;\n\n if (isGeneric) {\n otherAttrs = this.parseGeneric(element);\n } else {\n otherAttrs = this.parseNsAttributes(element);\n }\n\n if (propertyDescriptor) {\n this.ns = this.nsPropertyTagName(propertyDescriptor);\n } else {\n this.ns = this.nsTagName(elementDescriptor);\n }\n\n // compute tag name\n this.tagName = this.addTagName(this.ns);\n\n if (!isGeneric) {\n properties = getSerializableProperties(element);\n\n this.parseAttributes(filterAttributes(properties));\n this.parseContainments(filterContained(properties));\n }\n\n this.parseGenericAttributes(element, otherAttrs);\n\n return this;\n};\n\nElementSerializer.prototype.nsTagName = function(descriptor) {\n var effectiveNs = this.logNamespaceUsed(descriptor.ns);\n return getElementNs(effectiveNs, descriptor);\n};\n\nElementSerializer.prototype.nsPropertyTagName = function(descriptor) {\n var effectiveNs = this.logNamespaceUsed(descriptor.ns);\n return getPropertyNs(effectiveNs, descriptor);\n};\n\nElementSerializer.prototype.isLocalNs = function(ns) {\n return ns.uri === this.ns.uri;\n};\n\n/**\n * Get the actual ns attribute name for the given element.\n *\n * @param {Object} element\n * @param {Boolean} [element.inherited=false]\n *\n * @return {Object} nsName\n */\nElementSerializer.prototype.nsAttributeName = function(element) {\n\n var ns;\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isString)(element)) {\n ns = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(element);\n } else {\n ns = element.ns;\n }\n\n // return just local name for inherited attributes\n if (element.inherited) {\n return { localName: ns.localName };\n }\n\n // parse + log effective ns\n var effectiveNs = this.logNamespaceUsed(ns);\n\n // LOG ACTUAL namespace use\n this.getNamespaces().logUsed(effectiveNs);\n\n // strip prefix if same namespace like parent\n if (this.isLocalNs(effectiveNs)) {\n return { localName: ns.localName };\n } else {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({ localName: ns.localName }, effectiveNs);\n }\n};\n\nElementSerializer.prototype.parseGeneric = function(element) {\n\n var self = this,\n body = this.body;\n\n var attributes = [];\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(element, function(val, key) {\n\n var nonNsAttr;\n\n if (key === '$body') {\n body.push(new BodySerializer().build({ type: 'String' }, val));\n } else\n if (key === '$children') {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(val, function(child) {\n body.push(new ElementSerializer(self).build(child));\n });\n } else\n if (key.indexOf('$') !== 0) {\n nonNsAttr = self.parseNsAttribute(element, key, val);\n\n if (nonNsAttr) {\n attributes.push({ name: key, value: val });\n }\n }\n });\n\n return attributes;\n};\n\nElementSerializer.prototype.parseNsAttribute = function(element, name, value) {\n var model = element.$model;\n\n var nameNs = (0,moddle__WEBPACK_IMPORTED_MODULE_1__.parseNameNS)(name);\n\n var ns;\n\n // parse xmlns:foo=\"http://foo.bar\"\n if (nameNs.prefix === 'xmlns') {\n ns = { prefix: nameNs.localName, uri: value };\n }\n\n // parse xmlns=\"http://foo.bar\"\n if (!nameNs.prefix && nameNs.localName === 'xmlns') {\n ns = { uri: value };\n }\n\n if (!ns) {\n return {\n name: name,\n value: value\n };\n }\n\n if (model && model.getPackage(value)) {\n\n // register well known namespace\n this.logNamespace(ns, true, true);\n } else {\n\n // log custom namespace directly as used\n var actualNs = this.logNamespaceUsed(ns, true);\n\n this.getNamespaces().logUsed(actualNs);\n }\n};\n\n\n/**\n * Parse namespaces and return a list of left over generic attributes\n *\n * @param {Object} element\n * @return {Array}\n */\nElementSerializer.prototype.parseNsAttributes = function(element, attrs) {\n var self = this;\n\n var genericAttrs = element.$attrs;\n\n var attributes = [];\n\n // parse namespace attributes first\n // and log them. push non namespace attributes to a list\n // and process them later\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(genericAttrs, function(value, name) {\n\n var nonNsAttr = self.parseNsAttribute(element, name, value);\n\n if (nonNsAttr) {\n attributes.push(nonNsAttr);\n }\n });\n\n return attributes;\n};\n\nElementSerializer.prototype.parseGenericAttributes = function(element, attributes) {\n\n var self = this;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(attributes, function(attr) {\n\n // do not serialize xsi:type attribute\n // it is set manually based on the actual implementation type\n if (attr.name === XSI_TYPE) {\n return;\n }\n\n try {\n self.addAttribute(self.nsAttributeName(attr.name), attr.value);\n } catch (e) {\n console.warn(\n 'missing namespace information for ',\n attr.name, '=', attr.value, 'on', element,\n e);\n }\n });\n};\n\nElementSerializer.prototype.parseContainments = function(properties) {\n\n var self = this,\n body = this.body,\n element = this.element;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(properties, function(p) {\n var value = element.get(p.name),\n isReference = p.isReference,\n isMany = p.isMany;\n\n if (!isMany) {\n value = [ value ];\n }\n\n if (p.isBody) {\n body.push(new BodySerializer().build(p, value[0]));\n } else\n if ((0,moddle__WEBPACK_IMPORTED_MODULE_1__.isSimpleType)(p.type)) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(value, function(v) {\n body.push(new ValueSerializer(self.addTagName(self.nsPropertyTagName(p))).build(p, v));\n });\n } else\n if (isReference) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(value, function(v) {\n body.push(new ReferenceSerializer(self.addTagName(self.nsPropertyTagName(p))).build(v));\n });\n } else {\n\n // allow serialization via type\n // rather than element name\n var asType = serializeAsType(p),\n asProperty = serializeAsProperty(p);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(value, function(v) {\n var serializer;\n\n if (asType) {\n serializer = new TypeSerializer(self, p);\n } else\n if (asProperty) {\n serializer = new ElementSerializer(self, p);\n } else {\n serializer = new ElementSerializer(self);\n }\n\n body.push(serializer.build(v));\n });\n }\n });\n};\n\nElementSerializer.prototype.getNamespaces = function(local) {\n\n var namespaces = this.namespaces,\n parent = this.parent,\n parentNamespaces;\n\n if (!namespaces) {\n parentNamespaces = parent && parent.getNamespaces();\n\n if (local || !parentNamespaces) {\n this.namespaces = namespaces = new Namespaces(parentNamespaces);\n } else {\n namespaces = parentNamespaces;\n }\n }\n\n return namespaces;\n};\n\nElementSerializer.prototype.logNamespace = function(ns, wellknown, local) {\n var namespaces = this.getNamespaces(local);\n\n var nsUri = ns.uri,\n nsPrefix = ns.prefix;\n\n var existing = namespaces.byUri(nsUri);\n\n if (!existing || local) {\n namespaces.add(ns, wellknown);\n }\n\n namespaces.mapPrefix(nsPrefix, nsUri);\n\n return ns;\n};\n\nElementSerializer.prototype.logNamespaceUsed = function(ns, local) {\n var element = this.element,\n model = element.$model,\n namespaces = this.getNamespaces(local);\n\n // ns may be\n //\n // * prefix only\n // * prefix:uri\n // * localName only\n\n var prefix = ns.prefix,\n uri = ns.uri,\n newPrefix, idx,\n wellknownUri;\n\n // handle anonymous namespaces (elementForm=unqualified), cf. #23\n if (!prefix && !uri) {\n return { localName: ns.localName };\n }\n\n wellknownUri = DEFAULT_NS_MAP[prefix] || model && (model.getPackage(prefix) || {}).uri;\n\n uri = uri || wellknownUri || namespaces.uriByPrefix(prefix);\n\n if (!uri) {\n throw new Error('no namespace uri given for prefix <' + prefix + '>');\n }\n\n ns = namespaces.byUri(uri);\n\n if (!ns) {\n newPrefix = prefix;\n idx = 1;\n\n // find a prefix that is not mapped yet\n while (namespaces.uriByPrefix(newPrefix)) {\n newPrefix = prefix + '_' + idx++;\n }\n\n ns = this.logNamespace({ prefix: newPrefix, uri: uri }, wellknownUri === uri);\n }\n\n if (prefix) {\n namespaces.mapPrefix(prefix, uri);\n }\n\n return ns;\n};\n\nElementSerializer.prototype.parseAttributes = function(properties) {\n var self = this,\n element = this.element;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(properties, function(p) {\n\n var value = element.get(p.name);\n\n if (p.isReference) {\n\n if (!p.isMany) {\n value = value.id;\n }\n else {\n var values = [];\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(value, function(v) {\n values.push(v.id);\n });\n\n // IDREFS is a whitespace-separated list of references.\n value = values.join(' ');\n }\n\n }\n\n self.addAttribute(self.nsAttributeName(p), value);\n });\n};\n\nElementSerializer.prototype.addTagName = function(nsTagName) {\n var actualNs = this.logNamespaceUsed(nsTagName);\n\n this.getNamespaces().logUsed(actualNs);\n\n return nsName(nsTagName);\n};\n\nElementSerializer.prototype.addAttribute = function(name, value) {\n var attrs = this.attrs;\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.isString)(value)) {\n value = escapeAttr(value);\n }\n\n // de-duplicate attributes\n // https://github.com/bpmn-io/moddle-xml/issues/66\n var idx = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.findIndex)(attrs, function(element) {\n return (\n element.name.localName === name.localName &&\n element.name.uri === name.uri &&\n element.name.prefix === name.prefix\n );\n });\n\n var attr = { name: name, value: value };\n\n if (idx !== -1) {\n attrs.splice(idx, 1, attr);\n } else {\n attrs.push(attr);\n }\n};\n\nElementSerializer.prototype.serializeAttributes = function(writer) {\n var attrs = this.attrs,\n namespaces = this.namespaces;\n\n if (namespaces) {\n attrs = getNsAttrs(namespaces).concat(attrs);\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(attrs, function(a) {\n writer\n .append(' ')\n .append(nsName(a.name)).append('=\"').append(a.value).append('\"');\n });\n};\n\nElementSerializer.prototype.serializeTo = function(writer) {\n var firstBody = this.body[0],\n indent = firstBody && firstBody.constructor !== BodySerializer;\n\n writer\n .appendIndent()\n .append('<' + this.tagName);\n\n this.serializeAttributes(writer);\n\n writer.append(firstBody ? '>' : ' />');\n\n if (firstBody) {\n\n if (indent) {\n writer\n .appendNewLine()\n .indent();\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(this.body, function(b) {\n b.serializeTo(writer);\n });\n\n if (indent) {\n writer\n .unindent()\n .appendIndent();\n }\n\n writer.append('');\n }\n\n writer.appendNewLine();\n};\n\n/**\n * A serializer for types that handles serialization of data types\n */\nfunction TypeSerializer(parent, propertyDescriptor) {\n ElementSerializer.call(this, parent, propertyDescriptor);\n}\n\ninherits(TypeSerializer, ElementSerializer);\n\nTypeSerializer.prototype.parseNsAttributes = function(element) {\n\n // extracted attributes\n var attributes = ElementSerializer.prototype.parseNsAttributes.call(this, element);\n\n var descriptor = element.$descriptor;\n\n // only serialize xsi:type if necessary\n if (descriptor.name === this.propertyDescriptor.type) {\n return attributes;\n }\n\n var typeNs = this.typeNs = this.nsTagName(descriptor);\n this.getNamespaces().logUsed(this.typeNs);\n\n // add xsi:type attribute to represent the elements\n // actual type\n\n var pkg = element.$model.getPackage(typeNs.uri),\n typePrefix = (pkg.xml && pkg.xml.typePrefix) || '';\n\n this.addAttribute(\n this.nsAttributeName(XSI_TYPE),\n (typeNs.prefix ? typeNs.prefix + ':' : '') + typePrefix + descriptor.ns.localName\n );\n\n return attributes;\n};\n\nTypeSerializer.prototype.isLocalNs = function(ns) {\n return ns.uri === (this.typeNs || this.ns).uri;\n};\n\nfunction SavingWriter() {\n this.value = '';\n\n this.write = function(str) {\n this.value += str;\n };\n}\n\nfunction FormatingWriter(out, format) {\n\n var indent = [''];\n\n this.append = function(str) {\n out.write(str);\n\n return this;\n };\n\n this.appendNewLine = function() {\n if (format) {\n out.write('\\n');\n }\n\n return this;\n };\n\n this.appendIndent = function() {\n if (format) {\n out.write(indent.join(' '));\n }\n\n return this;\n };\n\n this.indent = function() {\n indent.push('');\n return this;\n };\n\n this.unindent = function() {\n indent.pop();\n return this;\n };\n}\n\n/**\n * A writer for meta-model backed document trees\n *\n * @param {Object} options output options to pass into the writer\n */\nfunction Writer(options) {\n\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({ format: false, preamble: true }, options || {});\n\n function toXML(tree, writer) {\n var internalWriter = writer || new SavingWriter();\n var formatingWriter = new FormatingWriter(internalWriter, options.format);\n\n if (options.preamble) {\n formatingWriter.append(XML_PREAMBLE);\n }\n\n new ElementSerializer().build(tree).serializeTo(formatingWriter);\n\n if (!writer) {\n return internalWriter.value;\n }\n }\n\n return {\n toXML: toXML\n };\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/moddle-xml/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/moddle-xml/node_modules/min-dash/dist/index.esm.js": +/*!*************************************************************************!*\ + !*** ./node_modules/moddle-xml/node_modules/min-dash/dist/index.esm.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ assign: () => (/* binding */ assign),\n/* harmony export */ bind: () => (/* binding */ bind),\n/* harmony export */ debounce: () => (/* binding */ debounce),\n/* harmony export */ ensureArray: () => (/* binding */ ensureArray),\n/* harmony export */ every: () => (/* binding */ every),\n/* harmony export */ filter: () => (/* binding */ filter),\n/* harmony export */ find: () => (/* binding */ find),\n/* harmony export */ findIndex: () => (/* binding */ findIndex),\n/* harmony export */ flatten: () => (/* binding */ flatten),\n/* harmony export */ forEach: () => (/* binding */ forEach),\n/* harmony export */ get: () => (/* binding */ get),\n/* harmony export */ groupBy: () => (/* binding */ groupBy),\n/* harmony export */ has: () => (/* binding */ has),\n/* harmony export */ isArray: () => (/* binding */ isArray),\n/* harmony export */ isDefined: () => (/* binding */ isDefined),\n/* harmony export */ isFunction: () => (/* binding */ isFunction),\n/* harmony export */ isNil: () => (/* binding */ isNil),\n/* harmony export */ isNumber: () => (/* binding */ isNumber),\n/* harmony export */ isObject: () => (/* binding */ isObject),\n/* harmony export */ isString: () => (/* binding */ isString),\n/* harmony export */ isUndefined: () => (/* binding */ isUndefined),\n/* harmony export */ keys: () => (/* binding */ keys),\n/* harmony export */ map: () => (/* binding */ map),\n/* harmony export */ matchPattern: () => (/* binding */ matchPattern),\n/* harmony export */ merge: () => (/* binding */ merge),\n/* harmony export */ omit: () => (/* binding */ omit),\n/* harmony export */ pick: () => (/* binding */ pick),\n/* harmony export */ reduce: () => (/* binding */ reduce),\n/* harmony export */ set: () => (/* binding */ set),\n/* harmony export */ size: () => (/* binding */ size),\n/* harmony export */ some: () => (/* binding */ some),\n/* harmony export */ sortBy: () => (/* binding */ sortBy),\n/* harmony export */ throttle: () => (/* binding */ throttle),\n/* harmony export */ unionBy: () => (/* binding */ unionBy),\n/* harmony export */ uniqueBy: () => (/* binding */ uniqueBy),\n/* harmony export */ values: () => (/* binding */ values),\n/* harmony export */ without: () => (/* binding */ without)\n/* harmony export */ });\n/**\n * Flatten array, one level deep.\n *\n * @param {Array} arr\n *\n * @return {Array}\n */\nfunction flatten(arr) {\n return Array.prototype.concat.apply([], arr);\n}\n\nvar nativeToString = Object.prototype.toString;\nvar nativeHasOwnProperty = Object.prototype.hasOwnProperty;\nfunction isUndefined(obj) {\n return obj === undefined;\n}\nfunction isDefined(obj) {\n return obj !== undefined;\n}\nfunction isNil(obj) {\n return obj == null;\n}\nfunction isArray(obj) {\n return nativeToString.call(obj) === '[object Array]';\n}\nfunction isObject(obj) {\n return nativeToString.call(obj) === '[object Object]';\n}\nfunction isNumber(obj) {\n return nativeToString.call(obj) === '[object Number]';\n}\nfunction isFunction(obj) {\n var tag = nativeToString.call(obj);\n return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';\n}\nfunction isString(obj) {\n return nativeToString.call(obj) === '[object String]';\n}\n/**\n * Ensure collection is an array.\n *\n * @param {Object} obj\n */\n\nfunction ensureArray(obj) {\n if (isArray(obj)) {\n return;\n }\n\n throw new Error('must supply array');\n}\n/**\n * Return true, if target owns a property with the given key.\n *\n * @param {Object} target\n * @param {String} key\n *\n * @return {Boolean}\n */\n\nfunction has(target, key) {\n return nativeHasOwnProperty.call(target, key);\n}\n\n/**\n * Find element in collection.\n *\n * @param {Array|Object} collection\n * @param {Function|Object} matcher\n *\n * @return {Object}\n */\n\nfunction find(collection, matcher) {\n matcher = toMatcher(matcher);\n var match;\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n match = val;\n return false;\n }\n });\n return match;\n}\n/**\n * Find element index in collection.\n *\n * @param {Array|Object} collection\n * @param {Function} matcher\n *\n * @return {Object}\n */\n\nfunction findIndex(collection, matcher) {\n matcher = toMatcher(matcher);\n var idx = isArray(collection) ? -1 : undefined;\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n idx = key;\n return false;\n }\n });\n return idx;\n}\n/**\n * Find element in collection.\n *\n * @param {Array|Object} collection\n * @param {Function} matcher\n *\n * @return {Array} result\n */\n\nfunction filter(collection, matcher) {\n var result = [];\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n result.push(val);\n }\n });\n return result;\n}\n/**\n * Iterate over collection; returning something\n * (non-undefined) will stop iteration.\n *\n * @param {Array|Object} collection\n * @param {Function} iterator\n *\n * @return {Object} return result that stopped the iteration\n */\n\nfunction forEach(collection, iterator) {\n var val, result;\n\n if (isUndefined(collection)) {\n return;\n }\n\n var convertKey = isArray(collection) ? toNum : identity;\n\n for (var key in collection) {\n if (has(collection, key)) {\n val = collection[key];\n result = iterator(val, convertKey(key));\n\n if (result === false) {\n return val;\n }\n }\n }\n}\n/**\n * Return collection without element.\n *\n * @param {Array} arr\n * @param {Function} matcher\n *\n * @return {Array}\n */\n\nfunction without(arr, matcher) {\n if (isUndefined(arr)) {\n return [];\n }\n\n ensureArray(arr);\n matcher = toMatcher(matcher);\n return arr.filter(function (el, idx) {\n return !matcher(el, idx);\n });\n}\n/**\n * Reduce collection, returning a single result.\n *\n * @param {Object|Array} collection\n * @param {Function} iterator\n * @param {Any} result\n *\n * @return {Any} result returned from last iterator\n */\n\nfunction reduce(collection, iterator, result) {\n forEach(collection, function (value, idx) {\n result = iterator(result, value, idx);\n });\n return result;\n}\n/**\n * Return true if every element in the collection\n * matches the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\n\nfunction every(collection, matcher) {\n return !!reduce(collection, function (matches, val, key) {\n return matches && matcher(val, key);\n }, true);\n}\n/**\n * Return true if some elements in the collection\n * match the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\n\nfunction some(collection, matcher) {\n return !!find(collection, matcher);\n}\n/**\n * Transform a collection into another collection\n * by piping each member through the given fn.\n *\n * @param {Object|Array} collection\n * @param {Function} fn\n *\n * @return {Array} transformed collection\n */\n\nfunction map(collection, fn) {\n var result = [];\n forEach(collection, function (val, key) {\n result.push(fn(val, key));\n });\n return result;\n}\n/**\n * Get the collections keys.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\n\nfunction keys(collection) {\n return collection && Object.keys(collection) || [];\n}\n/**\n * Shorthand for `keys(o).length`.\n *\n * @param {Object|Array} collection\n *\n * @return {Number}\n */\n\nfunction size(collection) {\n return keys(collection).length;\n}\n/**\n * Get the values in the collection.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\n\nfunction values(collection) {\n return map(collection, function (val) {\n return val;\n });\n}\n/**\n * Group collection members by attribute.\n *\n * @param {Object|Array} collection\n * @param {Function} extractor\n *\n * @return {Object} map with { attrValue => [ a, b, c ] }\n */\n\nfunction groupBy(collection, extractor) {\n var grouped = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n extractor = toExtractor(extractor);\n forEach(collection, function (val) {\n var discriminator = extractor(val) || '_';\n var group = grouped[discriminator];\n\n if (!group) {\n group = grouped[discriminator] = [];\n }\n\n group.push(val);\n });\n return grouped;\n}\nfunction uniqueBy(extractor) {\n extractor = toExtractor(extractor);\n var grouped = {};\n\n for (var _len = arguments.length, collections = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n collections[_key - 1] = arguments[_key];\n }\n\n forEach(collections, function (c) {\n return groupBy(c, extractor, grouped);\n });\n var result = map(grouped, function (val, key) {\n return val[0];\n });\n return result;\n}\nvar unionBy = uniqueBy;\n/**\n * Sort collection by criteria.\n *\n * @param {Object|Array} collection\n * @param {String|Function} extractor\n *\n * @return {Array}\n */\n\nfunction sortBy(collection, extractor) {\n extractor = toExtractor(extractor);\n var sorted = [];\n forEach(collection, function (value, key) {\n var disc = extractor(value, key);\n var entry = {\n d: disc,\n v: value\n };\n\n for (var idx = 0; idx < sorted.length; idx++) {\n var d = sorted[idx].d;\n\n if (disc < d) {\n sorted.splice(idx, 0, entry);\n return;\n }\n } // not inserted, append (!)\n\n\n sorted.push(entry);\n });\n return map(sorted, function (e) {\n return e.v;\n });\n}\n/**\n * Create an object pattern matcher.\n *\n * @example\n *\n * const matcher = matchPattern({ id: 1 });\n *\n * let element = find(elements, matcher);\n *\n * @param {Object} pattern\n *\n * @return {Function} matcherFn\n */\n\nfunction matchPattern(pattern) {\n return function (el) {\n return every(pattern, function (val, key) {\n return el[key] === val;\n });\n };\n}\n\nfunction toExtractor(extractor) {\n return isFunction(extractor) ? extractor : function (e) {\n return e[extractor];\n };\n}\n\nfunction toMatcher(matcher) {\n return isFunction(matcher) ? matcher : function (e) {\n return e === matcher;\n };\n}\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction toNum(arg) {\n return Number(arg);\n}\n\n/**\n * Debounce fn, calling it only once if the given time\n * elapsed between calls.\n *\n * Lodash-style the function exposes methods to `#clear`\n * and `#flush` to control internal behavior.\n *\n * @param {Function} fn\n * @param {Number} timeout\n *\n * @return {Function} debounced function\n */\nfunction debounce(fn, timeout) {\n var timer;\n var lastArgs;\n var lastThis;\n var lastNow;\n\n function fire(force) {\n var now = Date.now();\n var scheduledDiff = force ? 0 : lastNow + timeout - now;\n\n if (scheduledDiff > 0) {\n return schedule(scheduledDiff);\n }\n\n fn.apply(lastThis, lastArgs);\n clear();\n }\n\n function schedule(timeout) {\n timer = setTimeout(fire, timeout);\n }\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = lastNow = lastArgs = lastThis = undefined;\n }\n\n function flush() {\n if (timer) {\n fire(true);\n }\n\n clear();\n }\n\n function callback() {\n lastNow = Date.now();\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n lastArgs = args;\n lastThis = this; // ensure an execution is scheduled\n\n if (!timer) {\n schedule(timeout);\n }\n }\n\n callback.flush = flush;\n callback.cancel = clear;\n return callback;\n}\n/**\n * Throttle fn, calling at most once\n * in the given interval.\n *\n * @param {Function} fn\n * @param {Number} interval\n *\n * @return {Function} throttled function\n */\n\nfunction throttle(fn, interval) {\n var throttling = false;\n return function () {\n if (throttling) {\n return;\n }\n\n fn.apply(void 0, arguments);\n throttling = true;\n setTimeout(function () {\n throttling = false;\n }, interval);\n };\n}\n/**\n * Bind function against target .\n *\n * @param {Function} fn\n * @param {Object} target\n *\n * @return {Function} bound function\n */\n\nfunction bind(fn, target) {\n return fn.bind(target);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n/**\n * Convenience wrapper for `Object.assign`.\n *\n * @param {Object} target\n * @param {...Object} others\n *\n * @return {Object} the target\n */\n\nfunction assign(target) {\n for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n others[_key - 1] = arguments[_key];\n }\n\n return _extends.apply(void 0, [target].concat(others));\n}\n/**\n * Sets a nested property of a given object to the specified value.\n *\n * This mutates the object and returns it.\n *\n * @param {Object} target The target of the set operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} value The value to set.\n */\n\nfunction set(target, path, value) {\n var currentTarget = target;\n forEach(path, function (key, idx) {\n if (typeof key !== 'number' && typeof key !== 'string') {\n throw new Error('illegal key type: ' + _typeof(key) + '. Key should be of type number or string.');\n }\n\n if (key === 'constructor') {\n throw new Error('illegal key: constructor');\n }\n\n if (key === '__proto__') {\n throw new Error('illegal key: __proto__');\n }\n\n var nextKey = path[idx + 1];\n var nextTarget = currentTarget[key];\n\n if (isDefined(nextKey) && isNil(nextTarget)) {\n nextTarget = currentTarget[key] = isNaN(+nextKey) ? {} : [];\n }\n\n if (isUndefined(nextKey)) {\n if (isUndefined(value)) {\n delete currentTarget[key];\n } else {\n currentTarget[key] = value;\n }\n } else {\n currentTarget = nextTarget;\n }\n });\n return target;\n}\n/**\n * Gets a nested property of a given object.\n *\n * @param {Object} target The target of the get operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} [defaultValue] The value to return if no value exists.\n */\n\nfunction get(target, path, defaultValue) {\n var currentTarget = target;\n forEach(path, function (key) {\n // accessing nil property yields \n if (isNil(currentTarget)) {\n currentTarget = undefined;\n return false;\n }\n\n currentTarget = currentTarget[key];\n });\n return isUndefined(currentTarget) ? defaultValue : currentTarget;\n}\n/**\n * Pick given properties from the target object.\n *\n * @param {Object} target\n * @param {Array} properties\n *\n * @return {Object} target\n */\n\nfunction pick(target, properties) {\n var result = {};\n var obj = Object(target);\n forEach(properties, function (prop) {\n if (prop in obj) {\n result[prop] = target[prop];\n }\n });\n return result;\n}\n/**\n * Pick all target properties, excluding the given ones.\n *\n * @param {Object} target\n * @param {Array} properties\n *\n * @return {Object} target\n */\n\nfunction omit(target, properties) {\n var result = {};\n var obj = Object(target);\n forEach(obj, function (prop, key) {\n if (properties.indexOf(key) === -1) {\n result[key] = prop;\n }\n });\n return result;\n}\n/**\n * Recursively merge `...sources` into given target.\n *\n * Does support merging objects; does not support merging arrays.\n *\n * @param {Object} target\n * @param {...Object} sources\n *\n * @return {Object} the target\n */\n\nfunction merge(target) {\n for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n sources[_key2 - 1] = arguments[_key2];\n }\n\n if (!sources.length) {\n return target;\n }\n\n forEach(sources, function (source) {\n // skip non-obj sources, i.e. null\n if (!source || !isObject(source)) {\n return;\n }\n\n forEach(source, function (sourceVal, key) {\n if (key === '__proto__') {\n return;\n }\n\n var targetVal = target[key];\n\n if (isObject(sourceVal)) {\n if (!isObject(targetVal)) {\n // override target[key] with object\n targetVal = {};\n }\n\n target[key] = merge(targetVal, sourceVal);\n } else {\n target[key] = sourceVal;\n }\n });\n });\n return target;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/moddle-xml/node_modules/min-dash/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/moddle/dist/index.esm.js": +/*!***********************************************!*\ + !*** ./node_modules/moddle/dist/index.esm.js ***! + \***********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Moddle: () => (/* binding */ Moddle),\n/* harmony export */ coerceType: () => (/* binding */ coerceType),\n/* harmony export */ isBuiltInType: () => (/* binding */ isBuiltIn),\n/* harmony export */ isSimpleType: () => (/* binding */ isSimple),\n/* harmony export */ parseNameNS: () => (/* binding */ parseName)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/moddle/node_modules/min-dash/dist/index.esm.js\");\n\n\n/**\n * Moddle base element.\n */\nfunction Base() { }\n\nBase.prototype.get = function(name) {\n return this.$model.properties.get(this, name);\n};\n\nBase.prototype.set = function(name, value) {\n this.$model.properties.set(this, name, value);\n};\n\n/**\n * A model element factory.\n *\n * @param {Moddle} model\n * @param {Properties} properties\n */\nfunction Factory(model, properties) {\n this.model = model;\n this.properties = properties;\n}\n\n\nFactory.prototype.createType = function(descriptor) {\n\n var model = this.model;\n\n var props = this.properties,\n prototype = Object.create(Base.prototype);\n\n // initialize default values\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(descriptor.properties, function(p) {\n if (!p.isMany && p.default !== undefined) {\n prototype[p.name] = p.default;\n }\n });\n\n props.defineModel(prototype, model);\n props.defineDescriptor(prototype, descriptor);\n\n var name = descriptor.ns.name;\n\n /**\n * The new type constructor\n */\n function ModdleElement(attrs) {\n props.define(this, '$type', { value: name, enumerable: true });\n props.define(this, '$attrs', { value: {} });\n props.define(this, '$parent', { writable: true });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(attrs, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(function(val, key) {\n this.set(key, val);\n }, this));\n }\n\n ModdleElement.prototype = prototype;\n\n ModdleElement.hasType = prototype.$instanceOf = this.model.hasType;\n\n // static links\n props.defineModel(ModdleElement, model);\n props.defineDescriptor(ModdleElement, descriptor);\n\n return ModdleElement;\n};\n\n/**\n * Built-in moddle types\n */\nvar BUILTINS = {\n String: true,\n Boolean: true,\n Integer: true,\n Real: true,\n Element: true\n};\n\n/**\n * Converters for built in types from string representations\n */\nvar TYPE_CONVERTERS = {\n String: function(s) { return s; },\n Boolean: function(s) { return s === 'true'; },\n Integer: function(s) { return parseInt(s, 10); },\n Real: function(s) { return parseFloat(s); }\n};\n\n/**\n * Convert a type to its real representation\n */\nfunction coerceType(type, value) {\n\n var converter = TYPE_CONVERTERS[type];\n\n if (converter) {\n return converter(value);\n } else {\n return value;\n }\n}\n\n/**\n * Return whether the given type is built-in\n */\nfunction isBuiltIn(type) {\n return !!BUILTINS[type];\n}\n\n/**\n * Return whether the given type is simple\n */\nfunction isSimple(type) {\n return !!TYPE_CONVERTERS[type];\n}\n\n/**\n * Parses a namespaced attribute name of the form (ns:)localName to an object,\n * given a default prefix to assume in case no explicit namespace is given.\n *\n * @param {String} name\n * @param {String} [defaultPrefix] the default prefix to take, if none is present.\n *\n * @return {Object} the parsed name\n */\nfunction parseName(name, defaultPrefix) {\n var parts = name.split(/:/),\n localName, prefix;\n\n // no prefix (i.e. only local name)\n if (parts.length === 1) {\n localName = name;\n prefix = defaultPrefix;\n } else\n // prefix + local name\n if (parts.length === 2) {\n localName = parts[1];\n prefix = parts[0];\n } else {\n throw new Error('expected or , got ' + name);\n }\n\n name = (prefix ? prefix + ':' : '') + localName;\n\n return {\n name: name,\n prefix: prefix,\n localName: localName\n };\n}\n\n/**\n * A utility to build element descriptors.\n */\nfunction DescriptorBuilder(nameNs) {\n this.ns = nameNs;\n this.name = nameNs.name;\n this.allTypes = [];\n this.allTypesByName = {};\n this.properties = [];\n this.propertiesByName = {};\n}\n\n\nDescriptorBuilder.prototype.build = function() {\n return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.pick)(this, [\n 'ns',\n 'name',\n 'allTypes',\n 'allTypesByName',\n 'properties',\n 'propertiesByName',\n 'bodyProperty',\n 'idProperty'\n ]);\n};\n\n/**\n * Add property at given index.\n *\n * @param {Object} p\n * @param {Number} [idx]\n * @param {Boolean} [validate=true]\n */\nDescriptorBuilder.prototype.addProperty = function(p, idx, validate) {\n\n if (typeof idx === 'boolean') {\n validate = idx;\n idx = undefined;\n }\n\n this.addNamedProperty(p, validate !== false);\n\n var properties = this.properties;\n\n if (idx !== undefined) {\n properties.splice(idx, 0, p);\n } else {\n properties.push(p);\n }\n};\n\n\nDescriptorBuilder.prototype.replaceProperty = function(oldProperty, newProperty, replace) {\n var oldNameNs = oldProperty.ns;\n\n var props = this.properties,\n propertiesByName = this.propertiesByName,\n rename = oldProperty.name !== newProperty.name;\n\n if (oldProperty.isId) {\n if (!newProperty.isId) {\n throw new Error(\n 'property <' + newProperty.ns.name + '> must be id property ' +\n 'to refine <' + oldProperty.ns.name + '>');\n }\n\n this.setIdProperty(newProperty, false);\n }\n\n if (oldProperty.isBody) {\n\n if (!newProperty.isBody) {\n throw new Error(\n 'property <' + newProperty.ns.name + '> must be body property ' +\n 'to refine <' + oldProperty.ns.name + '>');\n }\n\n // TODO: Check compatibility\n this.setBodyProperty(newProperty, false);\n }\n\n // validate existence and get location of old property\n var idx = props.indexOf(oldProperty);\n if (idx === -1) {\n throw new Error('property <' + oldNameNs.name + '> not found in property list');\n }\n\n // remove old property\n props.splice(idx, 1);\n\n // replacing the named property is intentional\n //\n // * validate only if this is a \"rename\" operation\n // * add at specific index unless we \"replace\"\n //\n this.addProperty(newProperty, replace ? undefined : idx, rename);\n\n // make new property available under old name\n propertiesByName[oldNameNs.name] = propertiesByName[oldNameNs.localName] = newProperty;\n};\n\n\nDescriptorBuilder.prototype.redefineProperty = function(p, targetPropertyName, replace) {\n\n var nsPrefix = p.ns.prefix;\n var parts = targetPropertyName.split('#');\n\n var name = parseName(parts[0], nsPrefix);\n var attrName = parseName(parts[1], name.prefix).name;\n\n var redefinedProperty = this.propertiesByName[attrName];\n if (!redefinedProperty) {\n throw new Error('refined property <' + attrName + '> not found');\n } else {\n this.replaceProperty(redefinedProperty, p, replace);\n }\n\n delete p.redefines;\n};\n\nDescriptorBuilder.prototype.addNamedProperty = function(p, validate) {\n var ns = p.ns,\n propsByName = this.propertiesByName;\n\n if (validate) {\n this.assertNotDefined(p, ns.name);\n this.assertNotDefined(p, ns.localName);\n }\n\n propsByName[ns.name] = propsByName[ns.localName] = p;\n};\n\nDescriptorBuilder.prototype.removeNamedProperty = function(p) {\n var ns = p.ns,\n propsByName = this.propertiesByName;\n\n delete propsByName[ns.name];\n delete propsByName[ns.localName];\n};\n\nDescriptorBuilder.prototype.setBodyProperty = function(p, validate) {\n\n if (validate && this.bodyProperty) {\n throw new Error(\n 'body property defined multiple times ' +\n '(<' + this.bodyProperty.ns.name + '>, <' + p.ns.name + '>)');\n }\n\n this.bodyProperty = p;\n};\n\nDescriptorBuilder.prototype.setIdProperty = function(p, validate) {\n\n if (validate && this.idProperty) {\n throw new Error(\n 'id property defined multiple times ' +\n '(<' + this.idProperty.ns.name + '>, <' + p.ns.name + '>)');\n }\n\n this.idProperty = p;\n};\n\nDescriptorBuilder.prototype.assertNotDefined = function(p, name) {\n var propertyName = p.name,\n definedProperty = this.propertiesByName[propertyName];\n\n if (definedProperty) {\n throw new Error(\n 'property <' + propertyName + '> already defined; ' +\n 'override of <' + definedProperty.definedBy.ns.name + '#' + definedProperty.ns.name + '> by ' +\n '<' + p.definedBy.ns.name + '#' + p.ns.name + '> not allowed without redefines');\n }\n};\n\nDescriptorBuilder.prototype.hasProperty = function(name) {\n return this.propertiesByName[name];\n};\n\nDescriptorBuilder.prototype.addTrait = function(t, inherited) {\n\n var typesByName = this.allTypesByName,\n types = this.allTypes;\n\n var typeName = t.name;\n\n if (typeName in typesByName) {\n return;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(t.properties, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(function(p) {\n\n // clone property to allow extensions\n p = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, p, {\n name: p.ns.localName,\n inherited: inherited\n });\n\n Object.defineProperty(p, 'definedBy', {\n value: t\n });\n\n var replaces = p.replaces,\n redefines = p.redefines;\n\n // add replace/redefine support\n if (replaces || redefines) {\n this.redefineProperty(p, replaces || redefines, replaces);\n } else {\n if (p.isBody) {\n this.setBodyProperty(p);\n }\n if (p.isId) {\n this.setIdProperty(p);\n }\n this.addProperty(p);\n }\n }, this));\n\n types.push(t);\n typesByName[typeName] = t;\n};\n\n/**\n * A registry of Moddle packages.\n *\n * @param {Array} packages\n * @param {Properties} properties\n */\nfunction Registry(packages, properties) {\n this.packageMap = {};\n this.typeMap = {};\n\n this.packages = [];\n\n this.properties = properties;\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(packages, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(this.registerPackage, this));\n}\n\n\nRegistry.prototype.getPackage = function(uriOrPrefix) {\n return this.packageMap[uriOrPrefix];\n};\n\nRegistry.prototype.getPackages = function() {\n return this.packages;\n};\n\n\nRegistry.prototype.registerPackage = function(pkg) {\n\n // copy package\n pkg = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, pkg);\n\n var pkgMap = this.packageMap;\n\n ensureAvailable(pkgMap, pkg, 'prefix');\n ensureAvailable(pkgMap, pkg, 'uri');\n\n // register types\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(pkg.types, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(function(descriptor) {\n this.registerType(descriptor, pkg);\n }, this));\n\n pkgMap[pkg.uri] = pkgMap[pkg.prefix] = pkg;\n this.packages.push(pkg);\n};\n\n\n/**\n * Register a type from a specific package with us\n */\nRegistry.prototype.registerType = function(type, pkg) {\n\n type = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, type, {\n superClass: (type.superClass || []).slice(),\n extends: (type.extends || []).slice(),\n properties: (type.properties || []).slice(),\n meta: (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)((type.meta || {}))\n });\n\n var ns = parseName(type.name, pkg.prefix),\n name = ns.name,\n propertiesByName = {};\n\n // parse properties\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(type.properties, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(function(p) {\n\n // namespace property names\n var propertyNs = parseName(p.name, ns.prefix),\n propertyName = propertyNs.name;\n\n // namespace property types\n if (!isBuiltIn(p.type)) {\n p.type = parseName(p.type, propertyNs.prefix).name;\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(p, {\n ns: propertyNs,\n name: propertyName\n });\n\n propertiesByName[propertyName] = p;\n }, this));\n\n // update ns + name\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(type, {\n ns: ns,\n name: name,\n propertiesByName: propertiesByName\n });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(type.extends, (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.bind)(function(extendsName) {\n var extended = this.typeMap[extendsName];\n\n extended.traits = extended.traits || [];\n extended.traits.push(name);\n }, this));\n\n // link to package\n this.definePackage(type, pkg);\n\n // register\n this.typeMap[name] = type;\n};\n\n\n/**\n * Traverse the type hierarchy from bottom to top,\n * calling iterator with (type, inherited) for all elements in\n * the inheritance chain.\n *\n * @param {Object} nsName\n * @param {Function} iterator\n * @param {Boolean} [trait=false]\n */\nRegistry.prototype.mapTypes = function(nsName, iterator, trait) {\n\n var type = isBuiltIn(nsName.name) ? { name: nsName.name } : this.typeMap[nsName.name];\n\n var self = this;\n\n /**\n * Traverse the selected trait.\n *\n * @param {String} cls\n */\n function traverseTrait(cls) {\n return traverseSuper(cls, true);\n }\n\n /**\n * Traverse the selected super type or trait\n *\n * @param {String} cls\n * @param {Boolean} [trait=false]\n */\n function traverseSuper(cls, trait) {\n var parentNs = parseName(cls, isBuiltIn(cls) ? '' : nsName.prefix);\n self.mapTypes(parentNs, iterator, trait);\n }\n\n if (!type) {\n throw new Error('unknown type <' + nsName.name + '>');\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(type.superClass, trait ? traverseTrait : traverseSuper);\n\n // call iterator with (type, inherited=!trait)\n iterator(type, !trait);\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(type.traits, traverseTrait);\n};\n\n\n/**\n * Returns the effective descriptor for a type.\n *\n * @param {String} type the namespaced name (ns:localName) of the type\n *\n * @return {Descriptor} the resulting effective descriptor\n */\nRegistry.prototype.getEffectiveDescriptor = function(name) {\n\n var nsName = parseName(name);\n\n var builder = new DescriptorBuilder(nsName);\n\n this.mapTypes(nsName, function(type, inherited) {\n builder.addTrait(type, inherited);\n });\n\n var descriptor = builder.build();\n\n // define package link\n this.definePackage(descriptor, descriptor.allTypes[descriptor.allTypes.length - 1].$pkg);\n\n return descriptor;\n};\n\n\nRegistry.prototype.definePackage = function(target, pkg) {\n this.properties.define(target, '$pkg', { value: pkg });\n};\n\n\n\n///////// helpers ////////////////////////////\n\nfunction ensureAvailable(packageMap, pkg, identifierKey) {\n\n var value = pkg[identifierKey];\n\n if (value in packageMap) {\n throw new Error('package with ' + identifierKey + ' <' + value + '> already defined');\n }\n}\n\n/**\n * A utility that gets and sets properties of model elements.\n *\n * @param {Model} model\n */\nfunction Properties(model) {\n this.model = model;\n}\n\n\n/**\n * Sets a named property on the target element.\n * If the value is undefined, the property gets deleted.\n *\n * @param {Object} target\n * @param {String} name\n * @param {Object} value\n */\nProperties.prototype.set = function(target, name, value) {\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isString)(name) || !name.length) {\n throw new TypeError('property name must be a non-empty string');\n }\n\n var property = this.model.getPropertyDescriptor(target, name);\n\n var propertyName = property && property.name;\n\n if (isUndefined(value)) {\n // unset the property, if the specified value is undefined;\n // delete from $attrs (for extensions) or the target itself\n if (property) {\n delete target[propertyName];\n } else {\n delete target.$attrs[name];\n }\n } else {\n // set the property, defining well defined properties on the fly\n // or simply updating them in target.$attrs (for extensions)\n if (property) {\n if (propertyName in target) {\n target[propertyName] = value;\n } else {\n defineProperty(target, property, value);\n }\n } else {\n target.$attrs[name] = value;\n }\n }\n};\n\n/**\n * Returns the named property of the given element\n *\n * @param {Object} target\n * @param {String} name\n *\n * @return {Object}\n */\nProperties.prototype.get = function(target, name) {\n\n var property = this.model.getPropertyDescriptor(target, name);\n\n if (!property) {\n return target.$attrs[name];\n }\n\n var propertyName = property.name;\n\n // check if access to collection property and lazily initialize it\n if (!target[propertyName] && property.isMany) {\n defineProperty(target, property, []);\n }\n\n return target[propertyName];\n};\n\n\n/**\n * Define a property on the target element\n *\n * @param {Object} target\n * @param {String} name\n * @param {Object} options\n */\nProperties.prototype.define = function(target, name, options) {\n\n if (!options.writable) {\n\n var value = options.value;\n\n // use getters for read-only variables to support ES6 proxies\n // cf. https://github.com/bpmn-io/internal-docs/issues/386\n options = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)({}, options, {\n get: function() { return value; }\n });\n\n delete options.value;\n }\n\n Object.defineProperty(target, name, options);\n};\n\n\n/**\n * Define the descriptor for an element\n */\nProperties.prototype.defineDescriptor = function(target, descriptor) {\n this.define(target, '$descriptor', { value: descriptor });\n};\n\n/**\n * Define the model for an element\n */\nProperties.prototype.defineModel = function(target, model) {\n this.define(target, '$model', { value: model });\n};\n\n\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\nfunction defineProperty(target, property, value) {\n Object.defineProperty(target, property.name, {\n enumerable: !property.isReference,\n writable: true,\n value: value,\n configurable: true\n });\n}\n\n//// Moddle implementation /////////////////////////////////////////////////\n\n/**\n * @class Moddle\n *\n * A model that can be used to create elements of a specific type.\n *\n * @example\n *\n * var Moddle = require('moddle');\n *\n * var pkg = {\n * name: 'mypackage',\n * prefix: 'my',\n * types: [\n * { name: 'Root' }\n * ]\n * };\n *\n * var moddle = new Moddle([pkg]);\n *\n * @param {Array} packages the packages to contain\n */\nfunction Moddle(packages) {\n\n this.properties = new Properties(this);\n\n this.factory = new Factory(this, this.properties);\n this.registry = new Registry(packages, this.properties);\n\n this.typeCache = {};\n}\n\n\n/**\n * Create an instance of the specified type.\n *\n * @method Moddle#create\n *\n * @example\n *\n * var foo = moddle.create('my:Foo');\n * var bar = moddle.create('my:Bar', { id: 'BAR_1' });\n *\n * @param {String|Object} descriptor the type descriptor or name know to the model\n * @param {Object} attrs a number of attributes to initialize the model instance with\n * @return {Object} model instance\n */\nModdle.prototype.create = function(descriptor, attrs) {\n var Type = this.getType(descriptor);\n\n if (!Type) {\n throw new Error('unknown type <' + descriptor + '>');\n }\n\n return new Type(attrs);\n};\n\n\n/**\n * Returns the type representing a given descriptor\n *\n * @method Moddle#getType\n *\n * @example\n *\n * var Foo = moddle.getType('my:Foo');\n * var foo = new Foo({ 'id' : 'FOO_1' });\n *\n * @param {String|Object} descriptor the type descriptor or name know to the model\n * @return {Object} the type representing the descriptor\n */\nModdle.prototype.getType = function(descriptor) {\n\n var cache = this.typeCache;\n\n var name = (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isString)(descriptor) ? descriptor : descriptor.ns.name;\n\n var type = cache[name];\n\n if (!type) {\n descriptor = this.registry.getEffectiveDescriptor(name);\n type = cache[name] = this.factory.createType(descriptor);\n }\n\n return type;\n};\n\n\n/**\n * Creates an any-element type to be used within model instances.\n *\n * This can be used to create custom elements that lie outside the meta-model.\n * The created element contains all the meta-data required to serialize it\n * as part of meta-model elements.\n *\n * @method Moddle#createAny\n *\n * @example\n *\n * var foo = moddle.createAny('vendor:Foo', 'http://vendor', {\n * value: 'bar'\n * });\n *\n * var container = moddle.create('my:Container', 'http://my', {\n * any: [ foo ]\n * });\n *\n * // go ahead and serialize the stuff\n *\n *\n * @param {String} name the name of the element\n * @param {String} nsUri the namespace uri of the element\n * @param {Object} [properties] a map of properties to initialize the instance with\n * @return {Object} the any type instance\n */\nModdle.prototype.createAny = function(name, nsUri, properties) {\n\n var nameNs = parseName(name);\n\n var element = {\n $type: name,\n $instanceOf: function(type) {\n return type === this.$type;\n }\n };\n\n var descriptor = {\n name: name,\n isGeneric: true,\n ns: {\n prefix: nameNs.prefix,\n localName: nameNs.localName,\n uri: nsUri\n }\n };\n\n this.properties.defineDescriptor(element, descriptor);\n this.properties.defineModel(element, this);\n this.properties.define(element, '$parent', { enumerable: false, writable: true });\n this.properties.define(element, '$instanceOf', { enumerable: false, writable: true });\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(properties, function(a, key) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isObject)(a) && a.value !== undefined) {\n element[a.name] = a.value;\n } else {\n element[key] = a;\n }\n });\n\n return element;\n};\n\n/**\n * Returns a registered package by uri or prefix\n *\n * @return {Object} the package\n */\nModdle.prototype.getPackage = function(uriOrPrefix) {\n return this.registry.getPackage(uriOrPrefix);\n};\n\n/**\n * Returns a snapshot of all known packages\n *\n * @return {Object} the package\n */\nModdle.prototype.getPackages = function() {\n return this.registry.getPackages();\n};\n\n/**\n * Returns the descriptor for an element\n */\nModdle.prototype.getElementDescriptor = function(element) {\n return element.$descriptor;\n};\n\n/**\n * Returns true if the given descriptor or instance\n * represents the given type.\n *\n * May be applied to this, if element is omitted.\n */\nModdle.prototype.hasType = function(element, type) {\n if (type === undefined) {\n type = element;\n element = this;\n }\n\n var descriptor = element.$model.getElementDescriptor(element);\n\n return (type in descriptor.allTypesByName);\n};\n\n/**\n * Returns the descriptor of an elements named property\n */\nModdle.prototype.getPropertyDescriptor = function(element, property) {\n return this.getElementDescriptor(element).propertiesByName[property];\n};\n\n/**\n * Returns a mapped type's descriptor\n */\nModdle.prototype.getTypeDescriptor = function(type) {\n return this.registry.typeMap[type];\n};\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/moddle/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/moddle/node_modules/min-dash/dist/index.esm.js": +/*!*********************************************************************!*\ + !*** ./node_modules/moddle/node_modules/min-dash/dist/index.esm.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ assign: () => (/* binding */ assign),\n/* harmony export */ bind: () => (/* binding */ bind),\n/* harmony export */ debounce: () => (/* binding */ debounce),\n/* harmony export */ ensureArray: () => (/* binding */ ensureArray),\n/* harmony export */ every: () => (/* binding */ every),\n/* harmony export */ filter: () => (/* binding */ filter),\n/* harmony export */ find: () => (/* binding */ find),\n/* harmony export */ findIndex: () => (/* binding */ findIndex),\n/* harmony export */ flatten: () => (/* binding */ flatten),\n/* harmony export */ forEach: () => (/* binding */ forEach),\n/* harmony export */ get: () => (/* binding */ get),\n/* harmony export */ groupBy: () => (/* binding */ groupBy),\n/* harmony export */ has: () => (/* binding */ has),\n/* harmony export */ isArray: () => (/* binding */ isArray),\n/* harmony export */ isDefined: () => (/* binding */ isDefined),\n/* harmony export */ isFunction: () => (/* binding */ isFunction),\n/* harmony export */ isNil: () => (/* binding */ isNil),\n/* harmony export */ isNumber: () => (/* binding */ isNumber),\n/* harmony export */ isObject: () => (/* binding */ isObject),\n/* harmony export */ isString: () => (/* binding */ isString),\n/* harmony export */ isUndefined: () => (/* binding */ isUndefined),\n/* harmony export */ keys: () => (/* binding */ keys),\n/* harmony export */ map: () => (/* binding */ map),\n/* harmony export */ matchPattern: () => (/* binding */ matchPattern),\n/* harmony export */ merge: () => (/* binding */ merge),\n/* harmony export */ omit: () => (/* binding */ omit),\n/* harmony export */ pick: () => (/* binding */ pick),\n/* harmony export */ reduce: () => (/* binding */ reduce),\n/* harmony export */ set: () => (/* binding */ set),\n/* harmony export */ size: () => (/* binding */ size),\n/* harmony export */ some: () => (/* binding */ some),\n/* harmony export */ sortBy: () => (/* binding */ sortBy),\n/* harmony export */ throttle: () => (/* binding */ throttle),\n/* harmony export */ unionBy: () => (/* binding */ unionBy),\n/* harmony export */ uniqueBy: () => (/* binding */ uniqueBy),\n/* harmony export */ values: () => (/* binding */ values),\n/* harmony export */ without: () => (/* binding */ without)\n/* harmony export */ });\n/**\n * Flatten array, one level deep.\n *\n * @param {Array} arr\n *\n * @return {Array}\n */\nfunction flatten(arr) {\n return Array.prototype.concat.apply([], arr);\n}\n\nvar nativeToString = Object.prototype.toString;\nvar nativeHasOwnProperty = Object.prototype.hasOwnProperty;\nfunction isUndefined(obj) {\n return obj === undefined;\n}\nfunction isDefined(obj) {\n return obj !== undefined;\n}\nfunction isNil(obj) {\n return obj == null;\n}\nfunction isArray(obj) {\n return nativeToString.call(obj) === '[object Array]';\n}\nfunction isObject(obj) {\n return nativeToString.call(obj) === '[object Object]';\n}\nfunction isNumber(obj) {\n return nativeToString.call(obj) === '[object Number]';\n}\nfunction isFunction(obj) {\n var tag = nativeToString.call(obj);\n return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';\n}\nfunction isString(obj) {\n return nativeToString.call(obj) === '[object String]';\n}\n/**\n * Ensure collection is an array.\n *\n * @param {Object} obj\n */\n\nfunction ensureArray(obj) {\n if (isArray(obj)) {\n return;\n }\n\n throw new Error('must supply array');\n}\n/**\n * Return true, if target owns a property with the given key.\n *\n * @param {Object} target\n * @param {String} key\n *\n * @return {Boolean}\n */\n\nfunction has(target, key) {\n return nativeHasOwnProperty.call(target, key);\n}\n\n/**\n * Find element in collection.\n *\n * @param {Array|Object} collection\n * @param {Function|Object} matcher\n *\n * @return {Object}\n */\n\nfunction find(collection, matcher) {\n matcher = toMatcher(matcher);\n var match;\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n match = val;\n return false;\n }\n });\n return match;\n}\n/**\n * Find element index in collection.\n *\n * @param {Array|Object} collection\n * @param {Function} matcher\n *\n * @return {Object}\n */\n\nfunction findIndex(collection, matcher) {\n matcher = toMatcher(matcher);\n var idx = isArray(collection) ? -1 : undefined;\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n idx = key;\n return false;\n }\n });\n return idx;\n}\n/**\n * Find element in collection.\n *\n * @param {Array|Object} collection\n * @param {Function} matcher\n *\n * @return {Array} result\n */\n\nfunction filter(collection, matcher) {\n var result = [];\n forEach(collection, function (val, key) {\n if (matcher(val, key)) {\n result.push(val);\n }\n });\n return result;\n}\n/**\n * Iterate over collection; returning something\n * (non-undefined) will stop iteration.\n *\n * @param {Array|Object} collection\n * @param {Function} iterator\n *\n * @return {Object} return result that stopped the iteration\n */\n\nfunction forEach(collection, iterator) {\n var val, result;\n\n if (isUndefined(collection)) {\n return;\n }\n\n var convertKey = isArray(collection) ? toNum : identity;\n\n for (var key in collection) {\n if (has(collection, key)) {\n val = collection[key];\n result = iterator(val, convertKey(key));\n\n if (result === false) {\n return val;\n }\n }\n }\n}\n/**\n * Return collection without element.\n *\n * @param {Array} arr\n * @param {Function} matcher\n *\n * @return {Array}\n */\n\nfunction without(arr, matcher) {\n if (isUndefined(arr)) {\n return [];\n }\n\n ensureArray(arr);\n matcher = toMatcher(matcher);\n return arr.filter(function (el, idx) {\n return !matcher(el, idx);\n });\n}\n/**\n * Reduce collection, returning a single result.\n *\n * @param {Object|Array} collection\n * @param {Function} iterator\n * @param {Any} result\n *\n * @return {Any} result returned from last iterator\n */\n\nfunction reduce(collection, iterator, result) {\n forEach(collection, function (value, idx) {\n result = iterator(result, value, idx);\n });\n return result;\n}\n/**\n * Return true if every element in the collection\n * matches the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\n\nfunction every(collection, matcher) {\n return !!reduce(collection, function (matches, val, key) {\n return matches && matcher(val, key);\n }, true);\n}\n/**\n * Return true if some elements in the collection\n * match the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\n\nfunction some(collection, matcher) {\n return !!find(collection, matcher);\n}\n/**\n * Transform a collection into another collection\n * by piping each member through the given fn.\n *\n * @param {Object|Array} collection\n * @param {Function} fn\n *\n * @return {Array} transformed collection\n */\n\nfunction map(collection, fn) {\n var result = [];\n forEach(collection, function (val, key) {\n result.push(fn(val, key));\n });\n return result;\n}\n/**\n * Get the collections keys.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\n\nfunction keys(collection) {\n return collection && Object.keys(collection) || [];\n}\n/**\n * Shorthand for `keys(o).length`.\n *\n * @param {Object|Array} collection\n *\n * @return {Number}\n */\n\nfunction size(collection) {\n return keys(collection).length;\n}\n/**\n * Get the values in the collection.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\n\nfunction values(collection) {\n return map(collection, function (val) {\n return val;\n });\n}\n/**\n * Group collection members by attribute.\n *\n * @param {Object|Array} collection\n * @param {Function} extractor\n *\n * @return {Object} map with { attrValue => [ a, b, c ] }\n */\n\nfunction groupBy(collection, extractor) {\n var grouped = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n extractor = toExtractor(extractor);\n forEach(collection, function (val) {\n var discriminator = extractor(val) || '_';\n var group = grouped[discriminator];\n\n if (!group) {\n group = grouped[discriminator] = [];\n }\n\n group.push(val);\n });\n return grouped;\n}\nfunction uniqueBy(extractor) {\n extractor = toExtractor(extractor);\n var grouped = {};\n\n for (var _len = arguments.length, collections = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n collections[_key - 1] = arguments[_key];\n }\n\n forEach(collections, function (c) {\n return groupBy(c, extractor, grouped);\n });\n var result = map(grouped, function (val, key) {\n return val[0];\n });\n return result;\n}\nvar unionBy = uniqueBy;\n/**\n * Sort collection by criteria.\n *\n * @param {Object|Array} collection\n * @param {String|Function} extractor\n *\n * @return {Array}\n */\n\nfunction sortBy(collection, extractor) {\n extractor = toExtractor(extractor);\n var sorted = [];\n forEach(collection, function (value, key) {\n var disc = extractor(value, key);\n var entry = {\n d: disc,\n v: value\n };\n\n for (var idx = 0; idx < sorted.length; idx++) {\n var d = sorted[idx].d;\n\n if (disc < d) {\n sorted.splice(idx, 0, entry);\n return;\n }\n } // not inserted, append (!)\n\n\n sorted.push(entry);\n });\n return map(sorted, function (e) {\n return e.v;\n });\n}\n/**\n * Create an object pattern matcher.\n *\n * @example\n *\n * const matcher = matchPattern({ id: 1 });\n *\n * let element = find(elements, matcher);\n *\n * @param {Object} pattern\n *\n * @return {Function} matcherFn\n */\n\nfunction matchPattern(pattern) {\n return function (el) {\n return every(pattern, function (val, key) {\n return el[key] === val;\n });\n };\n}\n\nfunction toExtractor(extractor) {\n return isFunction(extractor) ? extractor : function (e) {\n return e[extractor];\n };\n}\n\nfunction toMatcher(matcher) {\n return isFunction(matcher) ? matcher : function (e) {\n return e === matcher;\n };\n}\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction toNum(arg) {\n return Number(arg);\n}\n\n/**\n * Debounce fn, calling it only once if the given time\n * elapsed between calls.\n *\n * Lodash-style the function exposes methods to `#clear`\n * and `#flush` to control internal behavior.\n *\n * @param {Function} fn\n * @param {Number} timeout\n *\n * @return {Function} debounced function\n */\nfunction debounce(fn, timeout) {\n var timer;\n var lastArgs;\n var lastThis;\n var lastNow;\n\n function fire(force) {\n var now = Date.now();\n var scheduledDiff = force ? 0 : lastNow + timeout - now;\n\n if (scheduledDiff > 0) {\n return schedule(scheduledDiff);\n }\n\n fn.apply(lastThis, lastArgs);\n clear();\n }\n\n function schedule(timeout) {\n timer = setTimeout(fire, timeout);\n }\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = lastNow = lastArgs = lastThis = undefined;\n }\n\n function flush() {\n if (timer) {\n fire(true);\n }\n\n clear();\n }\n\n function callback() {\n lastNow = Date.now();\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n lastArgs = args;\n lastThis = this; // ensure an execution is scheduled\n\n if (!timer) {\n schedule(timeout);\n }\n }\n\n callback.flush = flush;\n callback.cancel = clear;\n return callback;\n}\n/**\n * Throttle fn, calling at most once\n * in the given interval.\n *\n * @param {Function} fn\n * @param {Number} interval\n *\n * @return {Function} throttled function\n */\n\nfunction throttle(fn, interval) {\n var throttling = false;\n return function () {\n if (throttling) {\n return;\n }\n\n fn.apply(void 0, arguments);\n throttling = true;\n setTimeout(function () {\n throttling = false;\n }, interval);\n };\n}\n/**\n * Bind function against target .\n *\n * @param {Function} fn\n * @param {Object} target\n *\n * @return {Function} bound function\n */\n\nfunction bind(fn, target) {\n return fn.bind(target);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n/**\n * Convenience wrapper for `Object.assign`.\n *\n * @param {Object} target\n * @param {...Object} others\n *\n * @return {Object} the target\n */\n\nfunction assign(target) {\n for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n others[_key - 1] = arguments[_key];\n }\n\n return _extends.apply(void 0, [target].concat(others));\n}\n/**\n * Sets a nested property of a given object to the specified value.\n *\n * This mutates the object and returns it.\n *\n * @param {Object} target The target of the set operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} value The value to set.\n */\n\nfunction set(target, path, value) {\n var currentTarget = target;\n forEach(path, function (key, idx) {\n if (typeof key !== 'number' && typeof key !== 'string') {\n throw new Error('illegal key type: ' + _typeof(key) + '. Key should be of type number or string.');\n }\n\n if (key === 'constructor') {\n throw new Error('illegal key: constructor');\n }\n\n if (key === '__proto__') {\n throw new Error('illegal key: __proto__');\n }\n\n var nextKey = path[idx + 1];\n var nextTarget = currentTarget[key];\n\n if (isDefined(nextKey) && isNil(nextTarget)) {\n nextTarget = currentTarget[key] = isNaN(+nextKey) ? {} : [];\n }\n\n if (isUndefined(nextKey)) {\n if (isUndefined(value)) {\n delete currentTarget[key];\n } else {\n currentTarget[key] = value;\n }\n } else {\n currentTarget = nextTarget;\n }\n });\n return target;\n}\n/**\n * Gets a nested property of a given object.\n *\n * @param {Object} target The target of the get operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} [defaultValue] The value to return if no value exists.\n */\n\nfunction get(target, path, defaultValue) {\n var currentTarget = target;\n forEach(path, function (key) {\n // accessing nil property yields \n if (isNil(currentTarget)) {\n currentTarget = undefined;\n return false;\n }\n\n currentTarget = currentTarget[key];\n });\n return isUndefined(currentTarget) ? defaultValue : currentTarget;\n}\n/**\n * Pick given properties from the target object.\n *\n * @param {Object} target\n * @param {Array} properties\n *\n * @return {Object} target\n */\n\nfunction pick(target, properties) {\n var result = {};\n var obj = Object(target);\n forEach(properties, function (prop) {\n if (prop in obj) {\n result[prop] = target[prop];\n }\n });\n return result;\n}\n/**\n * Pick all target properties, excluding the given ones.\n *\n * @param {Object} target\n * @param {Array} properties\n *\n * @return {Object} target\n */\n\nfunction omit(target, properties) {\n var result = {};\n var obj = Object(target);\n forEach(obj, function (prop, key) {\n if (properties.indexOf(key) === -1) {\n result[key] = prop;\n }\n });\n return result;\n}\n/**\n * Recursively merge `...sources` into given target.\n *\n * Does support merging objects; does not support merging arrays.\n *\n * @param {Object} target\n * @param {...Object} sources\n *\n * @return {Object} the target\n */\n\nfunction merge(target) {\n for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n sources[_key2 - 1] = arguments[_key2];\n }\n\n if (!sources.length) {\n return target;\n }\n\n forEach(sources, function (source) {\n // skip non-obj sources, i.e. null\n if (!source || !isObject(source)) {\n return;\n }\n\n forEach(source, function (sourceVal, key) {\n if (key === '__proto__') {\n return;\n }\n\n var targetVal = target[key];\n\n if (isObject(sourceVal)) {\n if (!isObject(targetVal)) {\n // override target[key] with object\n targetVal = {};\n }\n\n target[key] = merge(targetVal, sourceVal);\n } else {\n target[key] = sourceVal;\n }\n });\n });\n return target;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/moddle/node_modules/min-dash/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/preact/dist/preact.module.js": +/*!***************************************************!*\ + !*** ./node_modules/preact/dist/preact.module.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Component: () => (/* binding */ b),\n/* harmony export */ Fragment: () => (/* binding */ k),\n/* harmony export */ cloneElement: () => (/* binding */ E),\n/* harmony export */ createContext: () => (/* binding */ G),\n/* harmony export */ createElement: () => (/* binding */ _),\n/* harmony export */ createRef: () => (/* binding */ m),\n/* harmony export */ h: () => (/* binding */ _),\n/* harmony export */ hydrate: () => (/* binding */ D),\n/* harmony export */ isValidElement: () => (/* binding */ t),\n/* harmony export */ options: () => (/* binding */ l),\n/* harmony export */ render: () => (/* binding */ B),\n/* harmony export */ toChildArray: () => (/* binding */ H)\n/* harmony export */ });\nvar n,l,u,t,i,o,r,f,e,c,s,a,h={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){var l=n.parentNode;l&&l.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)\"key\"==r?i=u[r]:\"ref\"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),\"function\"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function k(n){return n.children}function b(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;lu&&i.sort(f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,\"function\"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a=f-r:f==r+1?a++:f>r?s>e-r?a+=f-r:a--:f(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f2&&(e.children=arguments.length>3?n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l=\"__cC\"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=p.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),\"function\"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=k,i=[],r=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e=0,c=F(!1),s=F(!0),a=0;\n//# sourceMappingURL=preact.module.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/preact/dist/preact.module.js?"); + +/***/ }), + +/***/ "./node_modules/preact/hooks/dist/hooks.module.js": +/*!********************************************************!*\ + !*** ./node_modules/preact/hooks/dist/hooks.module.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ useCallback: () => (/* binding */ q),\n/* harmony export */ useContext: () => (/* binding */ x),\n/* harmony export */ useDebugValue: () => (/* binding */ P),\n/* harmony export */ useEffect: () => (/* binding */ y),\n/* harmony export */ useErrorBoundary: () => (/* binding */ b),\n/* harmony export */ useId: () => (/* binding */ g),\n/* harmony export */ useImperativeHandle: () => (/* binding */ F),\n/* harmony export */ useLayoutEffect: () => (/* binding */ _),\n/* harmony export */ useMemo: () => (/* binding */ T),\n/* harmony export */ useReducer: () => (/* binding */ p),\n/* harmony export */ useRef: () => (/* binding */ A),\n/* harmony export */ useState: () => (/* binding */ h)\n/* harmony export */ });\n/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ \"./node_modules/preact/dist/preact.module.js\");\nvar t,r,u,i,o=0,f=[],c=preact__WEBPACK_IMPORTED_MODULE_0__.options,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function d(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return o=1,p(D,n)}function p(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=d(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i))}function _(n,u){var i=d(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__h.push(i))}function A(n){return o=5,T(function(){return{current:n}},[])}function F(n,t,r){o=6,_(function(){return\"function\"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function T(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n)}function b(n){var u=d(t++,10),i=h();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__=\"P\"+i[0]+\"-\"+i[1]++}return n.__}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],c.__e(t,n.__v)}}c.__b=function(n){r=null,e&&e(n)},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),u=r=null},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],c.__e(r,n.__v)}}),l&&l(n,t)},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&c.__e(t,r.__v))};var k=\"function\"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;\"function\"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return\"function\"==typeof t?t(n):t}\n//# sourceMappingURL=hooks.module.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/preact/hooks/dist/hooks.module.js?"); + +/***/ }), + +/***/ "./resources/dish-decision.dmn": +/*!*************************************!*\ + !*** ./resources/dish-decision.dmn ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (\"\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n NESTED\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n season\\n \\n \\n \\n \\n guestCount\\n \\n \\n \\n \\n \\n \\\"Winter\\\"\\n \\n \\n <= 8\\n \\n \\n \\\"Spareribs\\\"\\n \\n \\n \\n \\n \\\"Winter\\\"\\n \\n \\n > 8\\n \\n \\n \\\"Pasta\\\"\\n \\n \\n \\n \\n \\\"Summer\\\"\\n \\n \\n > 10\\n \\n \\n \\\"Light salad\\\"\\n \\n \\n \\n \\n \\\"Summer\\\"\\n \\n \\n <= 10\\n \\n \\n \\\"Beans salad\\\"\\n \\n \\n \\n \\n \\\"Spring\\\"\\n \\n \\n < 10\\n \\n \\n \\\"Stew\\\"\\n \\n \\n \\n \\n \\\"Spring\\\"\\n \\n \\n >= 10\\n \\n \\n \\\"Steak\\\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n temperature\\n \\n \\n \\n \\n \\n >30\\n \\n \\n \\\"Summer\\\"\\n \\n \\n \\n \\n <10\\n \\n \\n \\\"Winter\\\"\\n \\n \\n \\n \\n [10..30]\\n \\n \\n \\\"Spring\\\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n dayType\\n \\n \\n \\n \\n \\n \\\"Weekday\\\"\\n \\n \\n 4\\n \\n \\n \\n \\n \\\"Holiday\\\"\\n \\n \\n 10\\n \\n \\n \\n \\n \\\"Weekend\\\"\\n \\n \\n 15\\n \\n \\n \\n \\n \\n Week day or week end\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n\");\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./resources/dish-decision.dmn?"); + +/***/ }), + +/***/ "./node_modules/saxen/dist/index.esm.js": +/*!**********************************************!*\ + !*** ./node_modules/saxen/dist/index.esm.js ***! + \**********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Parser: () => (/* binding */ Parser),\n/* harmony export */ decode: () => (/* binding */ decodeEntities)\n/* harmony export */ });\nvar fromCharCode = String.fromCharCode;\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar ENTITY_PATTERN = /&#(\\d+);|&#x([0-9a-f]+);|&(\\w+);/ig;\n\nvar ENTITY_MAPPING = {\n 'amp': '&',\n 'apos': '\\'',\n 'gt': '>',\n 'lt': '<',\n 'quot': '\"'\n};\n\n// map UPPERCASE variants of supported special chars\nObject.keys(ENTITY_MAPPING).forEach(function(k) {\n ENTITY_MAPPING[k.toUpperCase()] = ENTITY_MAPPING[k];\n});\n\n\nfunction replaceEntities(_, d, x, z) {\n\n // reserved names, i.e.  \n if (z) {\n if (hasOwnProperty.call(ENTITY_MAPPING, z)) {\n return ENTITY_MAPPING[z];\n } else {\n\n // fall back to original value\n return '&' + z + ';';\n }\n }\n\n // decimal encoded char\n if (d) {\n return fromCharCode(d);\n }\n\n // hex encoded char\n return fromCharCode(parseInt(x, 16));\n}\n\n\n/**\n * A basic entity decoder that can decode a minimal\n * sub-set of reserved names (&) as well as\n * hex (ય) and decimal (ӏ) encoded characters.\n *\n * @param {string} str\n *\n * @return {string} decoded string\n */\nfunction decodeEntities(s) {\n if (s.length > 3 && s.indexOf('&') !== -1) {\n return s.replace(ENTITY_PATTERN, replaceEntities);\n }\n\n return s;\n}\n\nvar XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance';\nvar XSI_PREFIX = 'xsi';\nvar XSI_TYPE = 'xsi:type';\n\nvar NON_WHITESPACE_OUTSIDE_ROOT_NODE = 'non-whitespace outside of root node';\n\nfunction error(msg) {\n return new Error(msg);\n}\n\nfunction missingNamespaceForPrefix(prefix) {\n return 'missing namespace for prefix <' + prefix + '>';\n}\n\nfunction getter(getFn) {\n return {\n 'get': getFn,\n 'enumerable': true\n };\n}\n\nfunction cloneNsMatrix(nsMatrix) {\n var clone = {}, key;\n for (key in nsMatrix) {\n clone[key] = nsMatrix[key];\n }\n return clone;\n}\n\nfunction uriPrefix(prefix) {\n return prefix + '$uri';\n}\n\nfunction buildNsMatrix(nsUriToPrefix) {\n var nsMatrix = {},\n uri,\n prefix;\n\n for (uri in nsUriToPrefix) {\n prefix = nsUriToPrefix[uri];\n nsMatrix[prefix] = prefix;\n nsMatrix[uriPrefix(prefix)] = uri;\n }\n\n return nsMatrix;\n}\n\nfunction noopGetContext() {\n return { 'line': 0, 'column': 0 };\n}\n\nfunction throwFunc(err) {\n throw err;\n}\n\n/**\n * Creates a new parser with the given options.\n *\n * @constructor\n *\n * @param {!Object=} options\n */\nfunction Parser(options) {\n\n if (!this) {\n return new Parser(options);\n }\n\n var proxy = options && options['proxy'];\n\n var onText,\n onOpenTag,\n onCloseTag,\n onCDATA,\n onError = throwFunc,\n onWarning,\n onComment,\n onQuestion,\n onAttention;\n\n var getContext = noopGetContext;\n\n /**\n * Do we need to parse the current elements attributes for namespaces?\n *\n * @type {boolean}\n */\n var maybeNS = false;\n\n /**\n * Do we process namespaces at all?\n *\n * @type {boolean}\n */\n var isNamespace = false;\n\n /**\n * The caught error returned on parse end\n *\n * @type {Error}\n */\n var returnError = null;\n\n /**\n * Should we stop parsing?\n *\n * @type {boolean}\n */\n var parseStop = false;\n\n /**\n * A map of { uri: prefix } used by the parser.\n *\n * This map will ensure we can normalize prefixes during processing;\n * for each uri, only one prefix will be exposed to the handlers.\n *\n * @type {!Object}}\n */\n var nsUriToPrefix;\n\n /**\n * Handle parse error.\n *\n * @param {string|Error} err\n */\n function handleError(err) {\n if (!(err instanceof Error)) {\n err = error(err);\n }\n\n returnError = err;\n\n onError(err, getContext);\n }\n\n /**\n * Handle parse error.\n *\n * @param {string|Error} err\n */\n function handleWarning(err) {\n\n if (!onWarning) {\n return;\n }\n\n if (!(err instanceof Error)) {\n err = error(err);\n }\n\n onWarning(err, getContext);\n }\n\n /**\n * Register parse listener.\n *\n * @param {string} name\n * @param {Function} cb\n *\n * @return {Parser}\n */\n this['on'] = function(name, cb) {\n\n if (typeof cb !== 'function') {\n throw error('required args ');\n }\n\n switch (name) {\n case 'openTag': onOpenTag = cb; break;\n case 'text': onText = cb; break;\n case 'closeTag': onCloseTag = cb; break;\n case 'error': onError = cb; break;\n case 'warn': onWarning = cb; break;\n case 'cdata': onCDATA = cb; break;\n case 'attention': onAttention = cb; break; // \n case 'question': onQuestion = cb; break; // \n case 'comment': onComment = cb; break;\n default:\n throw error('unsupported event: ' + name);\n }\n\n return this;\n };\n\n /**\n * Set the namespace to prefix mapping.\n *\n * @example\n *\n * parser.ns({\n * 'http://foo': 'foo',\n * 'http://bar': 'bar'\n * });\n *\n * @param {!Object} nsMap\n *\n * @return {Parser}\n */\n this['ns'] = function(nsMap) {\n\n if (typeof nsMap === 'undefined') {\n nsMap = {};\n }\n\n if (typeof nsMap !== 'object') {\n throw error('required args ');\n }\n\n var _nsUriToPrefix = {}, k;\n\n for (k in nsMap) {\n _nsUriToPrefix[k] = nsMap[k];\n }\n\n // FORCE default mapping for schema instance\n _nsUriToPrefix[XSI_URI] = XSI_PREFIX;\n\n isNamespace = true;\n nsUriToPrefix = _nsUriToPrefix;\n\n return this;\n };\n\n /**\n * Parse xml string.\n *\n * @param {string} xml\n *\n * @return {Error} returnError, if not thrown\n */\n this['parse'] = function(xml) {\n if (typeof xml !== 'string') {\n throw error('required args ');\n }\n\n returnError = null;\n\n parse(xml);\n\n getContext = noopGetContext;\n parseStop = false;\n\n return returnError;\n };\n\n /**\n * Stop parsing.\n */\n this['stop'] = function() {\n parseStop = true;\n };\n\n /**\n * Parse string, invoking configured listeners on element.\n *\n * @param {string} xml\n */\n function parse(xml) {\n var nsMatrixStack = isNamespace ? [] : null,\n nsMatrix = isNamespace ? buildNsMatrix(nsUriToPrefix) : null,\n _nsMatrix,\n nodeStack = [],\n anonymousNsCount = 0,\n tagStart = false,\n tagEnd = false,\n i = 0, j = 0,\n x, y, q, w, v,\n xmlns,\n elementName,\n _elementName,\n elementProxy\n ;\n\n var attrsString = '',\n attrsStart = 0,\n cachedAttrs // false = parsed with errors, null = needs parsing\n ;\n\n /**\n * Parse attributes on demand and returns the parsed attributes.\n *\n * Return semantics: (1) `false` on attribute parse error,\n * (2) object hash on extracted attrs.\n *\n * @return {boolean|Object}\n */\n function getAttrs() {\n if (cachedAttrs !== null) {\n return cachedAttrs;\n }\n\n var nsUri,\n nsUriPrefix,\n nsName,\n defaultAlias = isNamespace && nsMatrix['xmlns'],\n attrList = isNamespace && maybeNS ? [] : null,\n i = attrsStart,\n s = attrsString,\n l = s.length,\n hasNewMatrix,\n newalias,\n value,\n alias,\n name,\n attrs = {},\n seenAttrs = {},\n skipAttr,\n w,\n j;\n\n parseAttr:\n for (; i < l; i++) {\n skipAttr = false;\n w = s.charCodeAt(i);\n\n if (w === 32 || (w < 14 && w > 8)) { // WHITESPACE={ \\f\\n\\r\\t\\v}\n continue;\n }\n\n // wait for non whitespace character\n if (w < 65 || w > 122 || (w > 90 && w < 97)) {\n if (w !== 95 && w !== 58) { // char 95\"_\" 58\":\"\n handleWarning('illegal first char attribute name');\n skipAttr = true;\n }\n }\n\n // parse attribute name\n for (j = i + 1; j < l; j++) {\n w = s.charCodeAt(j);\n\n if (\n w > 96 && w < 123 ||\n w > 64 && w < 91 ||\n w > 47 && w < 59 ||\n w === 46 || // '.'\n w === 45 || // '-'\n w === 95 // '_'\n ) {\n continue;\n }\n\n // unexpected whitespace\n if (w === 32 || (w < 14 && w > 8)) { // WHITESPACE\n handleWarning('missing attribute value');\n i = j;\n\n continue parseAttr;\n }\n\n // expected \"=\"\n if (w === 61) { // \"=\" == 61\n break;\n }\n\n handleWarning('illegal attribute name char');\n skipAttr = true;\n }\n\n name = s.substring(i, j);\n\n if (name === 'xmlns:xmlns') {\n handleWarning('illegal declaration of xmlns');\n skipAttr = true;\n }\n\n w = s.charCodeAt(j + 1);\n\n if (w === 34) { // '\"'\n j = s.indexOf('\"', i = j + 2);\n\n if (j === -1) {\n j = s.indexOf('\\'', i);\n\n if (j !== -1) {\n handleWarning('attribute value quote missmatch');\n skipAttr = true;\n }\n }\n\n } else if (w === 39) { // \"'\"\n j = s.indexOf('\\'', i = j + 2);\n\n if (j === -1) {\n j = s.indexOf('\"', i);\n\n if (j !== -1) {\n handleWarning('attribute value quote missmatch');\n skipAttr = true;\n }\n }\n\n } else {\n handleWarning('missing attribute value quotes');\n skipAttr = true;\n\n // skip to next space\n for (j = j + 1; j < l; j++) {\n w = s.charCodeAt(j + 1);\n\n if (w === 32 || (w < 14 && w > 8)) { // WHITESPACE\n break;\n }\n }\n\n }\n\n if (j === -1) {\n handleWarning('missing closing quotes');\n\n j = l;\n skipAttr = true;\n }\n\n if (!skipAttr) {\n value = s.substring(i, j);\n }\n\n i = j;\n\n // ensure SPACE follows attribute\n // skip illegal content otherwise\n // example a=\"b\"c\n for (; j + 1 < l; j++) {\n w = s.charCodeAt(j + 1);\n\n if (w === 32 || (w < 14 && w > 8)) { // WHITESPACE\n break;\n }\n\n // FIRST ILLEGAL CHAR\n if (i === j) {\n handleWarning('illegal character after attribute end');\n skipAttr = true;\n }\n }\n\n // advance cursor to next attribute\n i = j + 1;\n\n if (skipAttr) {\n continue parseAttr;\n }\n\n // check attribute re-declaration\n if (name in seenAttrs) {\n handleWarning('attribute <' + name + '> already defined');\n continue;\n }\n\n seenAttrs[name] = true;\n\n if (!isNamespace) {\n attrs[name] = value;\n continue;\n }\n\n // try to extract namespace information\n if (maybeNS) {\n newalias = (\n name === 'xmlns'\n ? 'xmlns'\n : (name.charCodeAt(0) === 120 && name.substr(0, 6) === 'xmlns:')\n ? name.substr(6)\n : null\n );\n\n // handle xmlns(:alias) assignment\n if (newalias !== null) {\n nsUri = decodeEntities(value);\n nsUriPrefix = uriPrefix(newalias);\n\n alias = nsUriToPrefix[nsUri];\n\n if (!alias) {\n\n // no prefix defined or prefix collision\n if (\n (newalias === 'xmlns') ||\n (nsUriPrefix in nsMatrix && nsMatrix[nsUriPrefix] !== nsUri)\n ) {\n\n // alocate free ns prefix\n do {\n alias = 'ns' + (anonymousNsCount++);\n } while (typeof nsMatrix[alias] !== 'undefined');\n } else {\n alias = newalias;\n }\n\n nsUriToPrefix[nsUri] = alias;\n }\n\n if (nsMatrix[newalias] !== alias) {\n if (!hasNewMatrix) {\n nsMatrix = cloneNsMatrix(nsMatrix);\n hasNewMatrix = true;\n }\n\n nsMatrix[newalias] = alias;\n if (newalias === 'xmlns') {\n nsMatrix[uriPrefix(alias)] = nsUri;\n defaultAlias = alias;\n }\n\n nsMatrix[nsUriPrefix] = nsUri;\n }\n\n // expose xmlns(:asd)=\"...\" in attributes\n attrs[name] = value;\n continue;\n }\n\n // collect attributes until all namespace\n // declarations are processed\n attrList.push(name, value);\n continue;\n\n } /** end if (maybeNs) */\n\n // handle attributes on element without\n // namespace declarations\n w = name.indexOf(':');\n if (w === -1) {\n attrs[name] = value;\n continue;\n }\n\n // normalize ns attribute name\n if (!(nsName = nsMatrix[name.substring(0, w)])) {\n handleWarning(missingNamespaceForPrefix(name.substring(0, w)));\n continue;\n }\n\n name = defaultAlias === nsName\n ? name.substr(w + 1)\n : nsName + name.substr(w);\n\n // end: normalize ns attribute name\n\n // normalize xsi:type ns attribute value\n if (name === XSI_TYPE) {\n w = value.indexOf(':');\n\n if (w !== -1) {\n nsName = value.substring(0, w);\n\n // handle default prefixes, i.e. xs:String gracefully\n nsName = nsMatrix[nsName] || nsName;\n value = nsName + value.substring(w);\n } else {\n value = defaultAlias + ':' + value;\n }\n }\n\n // end: normalize xsi:type ns attribute value\n\n attrs[name] = value;\n }\n\n\n // handle deferred, possibly namespaced attributes\n if (maybeNS) {\n\n // normalize captured attributes\n for (i = 0, l = attrList.length; i < l; i++) {\n\n name = attrList[i++];\n value = attrList[i];\n\n w = name.indexOf(':');\n\n if (w !== -1) {\n\n // normalize ns attribute name\n if (!(nsName = nsMatrix[name.substring(0, w)])) {\n handleWarning(missingNamespaceForPrefix(name.substring(0, w)));\n continue;\n }\n\n name = defaultAlias === nsName\n ? name.substr(w + 1)\n : nsName + name.substr(w);\n\n // end: normalize ns attribute name\n\n // normalize xsi:type ns attribute value\n if (name === XSI_TYPE) {\n w = value.indexOf(':');\n\n if (w !== -1) {\n nsName = value.substring(0, w);\n\n // handle default prefixes, i.e. xs:String gracefully\n nsName = nsMatrix[nsName] || nsName;\n value = nsName + value.substring(w);\n } else {\n value = defaultAlias + ':' + value;\n }\n }\n\n // end: normalize xsi:type ns attribute value\n }\n\n attrs[name] = value;\n }\n\n // end: normalize captured attributes\n }\n\n return cachedAttrs = attrs;\n }\n\n /**\n * Extract the parse context { line, column, part }\n * from the current parser position.\n *\n * @return {Object} parse context\n */\n function getParseContext() {\n var splitsRe = /(\\r\\n|\\r|\\n)/g;\n\n var line = 0;\n var column = 0;\n var startOfLine = 0;\n var endOfLine = j;\n var match;\n var data;\n\n while (i >= startOfLine) {\n\n match = splitsRe.exec(xml);\n\n if (!match) {\n break;\n }\n\n // end of line = (break idx + break chars)\n endOfLine = match[0].length + match.index;\n\n if (endOfLine > i) {\n break;\n }\n\n // advance to next line\n line += 1;\n\n startOfLine = endOfLine;\n }\n\n // EOF errors\n if (i == -1) {\n column = endOfLine;\n data = xml.substring(j);\n } else\n\n // start errors\n if (j === 0) {\n data = xml.substring(j, i);\n }\n\n // other errors\n else {\n column = i - startOfLine;\n data = (j == -1 ? xml.substring(i) : xml.substring(i, j + 1));\n }\n\n return {\n 'data': data,\n 'line': line,\n 'column': column\n };\n }\n\n getContext = getParseContext;\n\n\n if (proxy) {\n elementProxy = Object.create({}, {\n 'name': getter(function() {\n return elementName;\n }),\n 'originalName': getter(function() {\n return _elementName;\n }),\n 'attrs': getter(getAttrs),\n 'ns': getter(function() {\n return nsMatrix;\n })\n });\n }\n\n // actual parse logic\n while (j !== -1) {\n\n if (xml.charCodeAt(j) === 60) { // \"<\"\n i = j;\n } else {\n i = xml.indexOf('<', j);\n }\n\n // parse end\n if (i === -1) {\n if (nodeStack.length) {\n return handleError('unexpected end of file');\n }\n\n if (j === 0) {\n return handleError('missing start tag');\n }\n\n if (j < xml.length) {\n if (xml.substring(j).trim()) {\n handleWarning(NON_WHITESPACE_OUTSIDE_ROOT_NODE);\n }\n }\n\n return;\n }\n\n // parse text\n if (j !== i) {\n\n if (nodeStack.length) {\n if (onText) {\n onText(xml.substring(j, i), decodeEntities, getContext);\n\n if (parseStop) {\n return;\n }\n }\n } else {\n if (xml.substring(j, i).trim()) {\n handleWarning(NON_WHITESPACE_OUTSIDE_ROOT_NODE);\n\n if (parseStop) {\n return;\n }\n }\n }\n }\n\n w = xml.charCodeAt(i+1);\n\n // parse comments + CDATA\n if (w === 33) { // \"!\"\n q = xml.charCodeAt(i+2);\n\n // CDATA section\n if (q === 91 && xml.substr(i + 3, 6) === 'CDATA[') { // 91 == \"[\"\n j = xml.indexOf(']]>', i);\n if (j === -1) {\n return handleError('unclosed cdata');\n }\n\n if (onCDATA) {\n onCDATA(xml.substring(i + 9, j), getContext);\n if (parseStop) {\n return;\n }\n }\n\n j += 3;\n continue;\n }\n\n // comment\n if (q === 45 && xml.charCodeAt(i + 3) === 45) { // 45 == \"-\"\n j = xml.indexOf('-->', i);\n if (j === -1) {\n return handleError('unclosed comment');\n }\n\n\n if (onComment) {\n onComment(xml.substring(i + 4, j), decodeEntities, getContext);\n if (parseStop) {\n return;\n }\n }\n\n j += 3;\n continue;\n }\n }\n\n // parse question \n if (w === 63) { // \"?\"\n j = xml.indexOf('?>', i);\n if (j === -1) {\n return handleError('unclosed question');\n }\n\n if (onQuestion) {\n onQuestion(xml.substring(i, j + 2), getContext);\n if (parseStop) {\n return;\n }\n }\n\n j += 2;\n continue;\n }\n\n // find matching closing tag for attention or standard tags\n // for that we must skip through attribute values\n // (enclosed in single or double quotes)\n for (x = i + 1; ; x++) {\n v = xml.charCodeAt(x);\n if (isNaN(v)) {\n j = -1;\n return handleError('unclosed tag');\n }\n\n // [10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"\n // skips the quoted string\n // (double quotes) does not appear in a literal enclosed by (double quotes)\n // (single quote) does not appear in a literal enclosed by (single quote)\n if (v === 34) { // '\"'\n q = xml.indexOf('\"', x + 1);\n x = q !== -1 ? q : x;\n } else if (v === 39) { // \"'\"\n q = xml.indexOf(\"'\", x + 1);\n x = q !== -1 ? q : x;\n } else if (v === 62) { // '>'\n j = x;\n break;\n }\n }\n\n\n // parse attention \n // previously comment and CDATA have already been parsed\n if (w === 33) { // \"!\"\n\n if (onAttention) {\n onAttention(xml.substring(i, j + 1), decodeEntities, getContext);\n if (parseStop) {\n return;\n }\n }\n\n j += 1;\n continue;\n }\n\n // don't process attributes;\n // there are none\n cachedAttrs = {};\n\n // if (xml.charCodeAt(i+1) === 47) { // close tag match\n x = elementName = nodeStack.pop();\n q = i + 2 + x.length;\n\n if (xml.substring(i + 2, q) !== x) {\n return handleError('closing tag mismatch');\n }\n\n // verify chars in close tag\n for (; q < j; q++) {\n w = xml.charCodeAt(q);\n\n if (w === 32 || (w > 8 && w < 14)) { // \\f\\n\\r\\t\\v space\n continue;\n }\n\n return handleError('close tag');\n }\n\n } else {\n if (xml.charCodeAt(j - 1) === 47) { // .../>\n x = elementName = xml.substring(i + 1, j - 1);\n\n tagStart = true;\n tagEnd = true;\n\n } else {\n x = elementName = xml.substring(i + 1, j);\n\n tagStart = true;\n tagEnd = false;\n }\n\n if (!(w > 96 && w < 123 || w > 64 && w < 91 || w === 95 || w === 58)) { // char 95\"_\" 58\":\"\n return handleError('illegal first char nodeName');\n }\n\n for (q = 1, y = x.length; q < y; q++) {\n w = x.charCodeAt(q);\n\n if (w > 96 && w < 123 || w > 64 && w < 91 || w > 47 && w < 59 || w === 45 || w === 95 || w == 46) {\n continue;\n }\n\n if (w === 32 || (w < 14 && w > 8)) { // \\f\\n\\r\\t\\v space\n elementName = x.substring(0, q);\n\n // maybe there are attributes\n cachedAttrs = null;\n break;\n }\n\n return handleError('invalid nodeName');\n }\n\n if (!tagEnd) {\n nodeStack.push(elementName);\n }\n }\n\n if (isNamespace) {\n\n _nsMatrix = nsMatrix;\n\n if (tagStart) {\n\n // remember old namespace\n // unless we're self-closing\n if (!tagEnd) {\n nsMatrixStack.push(_nsMatrix);\n }\n\n if (cachedAttrs === null) {\n\n // quick check, whether there may be namespace\n // declarations on the node; if that is the case\n // we need to eagerly parse the node attributes\n if ((maybeNS = x.indexOf('xmlns', q) !== -1)) {\n attrsStart = q;\n attrsString = x;\n\n getAttrs();\n\n maybeNS = false;\n }\n }\n }\n\n _elementName = elementName;\n\n w = elementName.indexOf(':');\n if (w !== -1) {\n xmlns = nsMatrix[elementName.substring(0, w)];\n\n // prefix given; namespace must exist\n if (!xmlns) {\n return handleError('missing namespace on <' + _elementName + '>');\n }\n\n elementName = elementName.substr(w + 1);\n } else {\n xmlns = nsMatrix['xmlns'];\n\n // if no default namespace is defined,\n // we'll import the element as anonymous.\n //\n // it is up to users to correct that to the document defined\n // targetNamespace, or whatever their undersanding of the\n // XML spec mandates.\n }\n\n // adjust namespace prefixs as configured\n if (xmlns) {\n elementName = xmlns + ':' + elementName;\n }\n\n }\n\n if (tagStart) {\n attrsStart = q;\n attrsString = x;\n\n if (onOpenTag) {\n if (proxy) {\n onOpenTag(elementProxy, decodeEntities, tagEnd, getContext);\n } else {\n onOpenTag(elementName, getAttrs, decodeEntities, tagEnd, getContext);\n }\n\n if (parseStop) {\n return;\n }\n }\n\n }\n\n if (tagEnd) {\n\n if (onCloseTag) {\n onCloseTag(proxy ? elementProxy : elementName, decodeEntities, tagStart, getContext);\n\n if (parseStop) {\n return;\n }\n }\n\n // restore old namespace\n if (isNamespace) {\n if (!tagStart) {\n nsMatrix = nsMatrixStack.pop();\n } else {\n nsMatrix = _nsMatrix;\n }\n }\n }\n\n j += 1;\n }\n } /** end parse */\n\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/saxen/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/selection-ranges/dist/index.esm.js": +/*!*********************************************************!*\ + !*** ./node_modules/selection-ranges/dist/index.esm.js ***! + \*********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ annotateRange: () => (/* binding */ annotateRange),\n/* harmony export */ applyRange: () => (/* binding */ applyRange),\n/* harmony export */ getRange: () => (/* binding */ getRange),\n/* harmony export */ getWindowSelection: () => (/* binding */ getWindowSelection),\n/* harmony export */ isSelected: () => (/* binding */ isSelected),\n/* harmony export */ setRange: () => (/* binding */ setRange)\n/* harmony export */ });\n/**\n * Expose `xor`\n */\n\nvar componentXor = xor;\n\n/**\n * XOR utility\n *\n * T T F\n * T F T\n * F T T\n * F F F\n *\n * @param {Boolean} a\n * @param {Boolean} b\n * @return {Boolean}\n */\n\nfunction xor(a, b) {\n return a ^ b;\n}\n\n/**\n * Global Names\n */\n\nvar globals = /\\b(Array|Date|Object|Math|JSON)\\b/g;\n\n/**\n * Return immediate identifiers parsed from `str`.\n *\n * @param {String} str\n * @param {String|Function} map function or prefix\n * @return {Array}\n * @api public\n */\n\nvar componentProps = function(str, fn){\n var p = unique(props(str));\n if (fn && 'string' == typeof fn) fn = prefixed(fn);\n if (fn) return map(str, p, fn);\n return p;\n};\n\n/**\n * Return immediate identifiers in `str`.\n *\n * @param {String} str\n * @return {Array}\n * @api private\n */\n\nfunction props(str) {\n return str\n .replace(/\\.\\w+|\\w+ *\\(|\"[^\"]*\"|'[^']*'|\\/([^/]+)\\//g, '')\n .replace(globals, '')\n .match(/[a-zA-Z_]\\w*/g)\n || [];\n}\n\n/**\n * Return `str` with `props` mapped with `fn`.\n *\n * @param {String} str\n * @param {Array} props\n * @param {Function} fn\n * @return {String}\n * @api private\n */\n\nfunction map(str, props, fn) {\n var re = /\\.\\w+|\\w+ *\\(|\"[^\"]*\"|'[^']*'|\\/([^/]+)\\/|[a-zA-Z_]\\w*/g;\n return str.replace(re, function(_){\n if ('(' == _[_.length - 1]) return fn(_);\n if (!~props.indexOf(_)) return _;\n return fn(_);\n });\n}\n\n/**\n * Return unique array.\n *\n * @param {Array} arr\n * @return {Array}\n * @api private\n */\n\nfunction unique(arr) {\n var ret = [];\n\n for (var i = 0; i < arr.length; i++) {\n if (~ret.indexOf(arr[i])) continue;\n ret.push(arr[i]);\n }\n\n return ret;\n}\n\n/**\n * Map with prefix `str`.\n */\n\nfunction prefixed(str) {\n return function(_){\n return str + _;\n };\n}\n\n/**\n * Module Dependencies\n */\n\n\n\n\n\n/**\n * Export `Iterator`\n */\n\nvar domIterator = Iterator;\n\n/**\n * Initialize `Iterator`\n *\n * @param {Node} node\n * @param {Node} root\n * @return {Iterator} self\n * @api public\n */\n\nfunction Iterator(node, root) {\n if (!(this instanceof Iterator)) return new Iterator(node, root);\n this.node = this.start = this.peeked = node;\n this.root = root;\n this.closingTag = false;\n this._revisit = true;\n this._selects = [];\n this._rejects = [];\n\n if (node && this.higher(node)) {\n throw new Error('root must be a parent or ancestor to node');\n }\n}\n\n/**\n * Reset the Iterator\n *\n * @param {Node} node (optional)\n * @return {Iterator} self\n * @api public\n */\n\nIterator.prototype.reset = function(node) {\n this.node = node || this.start;\n return this;\n};\n\n/**\n * Revisit element nodes. Defaults to `true`\n */\n\nIterator.prototype.revisit = function(revisit) {\n this._revisit = undefined == revisit ? true : revisit;\n return this;\n};\n\n/**\n * Jump to the opening tag\n */\n\nIterator.prototype.opening = function() {\n if (1 == this.node.nodeType) this.closingTag = false;\n return this;\n};\n\n/**\n * Jump to the closing tag\n */\n\nIterator.prototype.atOpening = function() {\n return !this.closingTag;\n};\n\n\n/**\n * Jump to the closing tag\n */\n\nIterator.prototype.closing = function() {\n if (1 == this.node.nodeType) this.closingTag = true;\n return this;\n};\n\n/**\n * Jump to the closing tag\n */\n\nIterator.prototype.atClosing = function() {\n return this.closingTag;\n};\n\n/**\n * Next node\n *\n * @param {Number} type\n * @return {Node|null}\n * @api public\n */\n\nIterator.prototype.next = traverse('nextSibling', 'firstChild');\n\n/**\n * Previous node\n *\n * @param {Number} type\n * @return {Node|null}\n * @api public\n */\n\nIterator.prototype.previous =\nIterator.prototype.prev = traverse('previousSibling', 'lastChild');\n\n/**\n * Make traverse function\n *\n * @param {String} dir\n * @param {String} child\n * @return {Function}\n * @api private\n */\n\nfunction traverse(dir, child) {\n var next = dir == 'nextSibling';\n return function walk(expr, n, peek) {\n expr = this.compile(expr);\n n = n && n > 0 ? n : 1;\n var node = this.node;\n var closing = this.closingTag;\n var revisit = this._revisit;\n\n while (node) {\n if (componentXor(next, closing) && node[child]) {\n // element with children: ...\n node = node[child];\n closing = !next;\n } else if (1 == node.nodeType && !node[child] && componentXor(next, closing)) {\n // empty element tag: \n closing = next;\n if (!revisit) continue;\n } else if (node[dir]) {\n // element has a neighbor: ......\n node = node[dir];\n closing = !next;\n } else {\n // done with current layer, move up.\n node = node.parentNode;\n closing = next;\n if (!revisit) continue;\n }\n\n if (!node || this.higher(node, this.root)) break;\n\n if (expr(node) && this.selects(node, peek) && this.rejects(node, peek)) {\n if (--n) continue;\n if (!peek) this.node = node;\n this.closingTag = closing;\n return node;\n }\n }\n\n return null;\n };\n}\n\n/**\n * Select nodes that cause `expr(node)`\n * to be truthy\n *\n * @param {Number|String|Function} expr\n * @return {Iterator} self\n * @api public\n */\n\nIterator.prototype.select = function(expr) {\n expr = this.compile(expr);\n this._selects.push(expr);\n return this;\n};\n\n/**\n * Run through the selects ORing each\n *\n * @param {Node} node\n * @param {Boolean} peek\n * @return {Boolean}\n * @api private\n */\n\nIterator.prototype.selects = function(node, peek) {\n var exprs = this._selects;\n var len = exprs.length;\n if (!len) return true;\n\n for (var i = 0; i < len; i++) {\n if (exprs[i].call(this, node, peek)) return true;\n }\n return false;\n};\n\n/**\n * Select nodes that cause `expr(node)`\n * to be falsy\n *\n * @param {Number|String|Function} expr\n * @return {Iterator} self\n * @api public\n */\n\nIterator.prototype.reject = function(expr) {\n expr = this.compile(expr);\n this._rejects.push(expr);\n return this;\n};\n\n/**\n * Run through the reject expressions ANDing each\n *\n * @param {Node} node\n * @param {Boolean} peek\n * @return {Boolean}\n * @api private\n */\n\nIterator.prototype.rejects = function(node, peek) {\n var exprs = this._rejects;\n var len = exprs.length;\n if (!len) return true;\n\n for (var i = 0; i < len; i++) {\n if (exprs[i].call(this, node, peek)) return false;\n }\n return true;\n};\n\n/**\n * Check if node is higher\n * than root.\n *\n * @param {Node} node\n * @param {Node} root\n * @return {Boolean}\n * @api private\n */\n\nIterator.prototype.higher = function(node) {\n var root = this.root;\n if (!root) return false;\n node = node.parentNode;\n while (node && node != root) node = node.parentNode;\n return node != root;\n};\n\n/**\n * Compile an expression\n *\n * @param {String|Function|Number} expr\n * @return {Function}\n */\n\nIterator.prototype.compile = function(expr) {\n switch (typeof expr) {\n case 'number':\n return function(node) { return expr == node.nodeType; };\n case 'string':\n return new Function('node', 'return ' + componentProps(expr, 'node.'));\n case 'function':\n return expr;\n default:\n return function() { return true; };\n }\n};\n\n/**\n * Peek in either direction\n * `n` nodes. Peek backwards\n * using negative numbers.\n *\n * @param {Number} n (optional)\n * @return {Node|null}\n * @api public\n */\n\nIterator.prototype.peak =\nIterator.prototype.peek = function(expr, n) {\n if (arguments.length == 1) n = expr, expr = true;\n n = undefined == n ? 1 : n;\n if (!n) return this.node;\n else if (n > 0) return this.next(expr, n, true);\n else return this.prev(expr, Math.abs(n), true);\n};\n\n/**\n * Add a plugin\n *\n * @param {Function} fn\n * @return {Iterator}\n * @api public\n */\n\nIterator.prototype.use = function(fn) {\n fn(this);\n return this;\n};\n\nvar selection = window.getSelection();\n\n\n/**\n * Add selection / insert cursor.\n *\n * @param {Range} range\n */\nfunction applyRange(range) {\n selection.removeAllRanges();\n selection.addRange(range);\n}\n\n\n/**\n * Get current document selection.\n *\n * @return {Selection}\n */\nfunction getWindowSelection() {\n return selection;\n}\n\n\n/**\n * Return true if element is part of window selection.\n *\n * @param {Element} el\n * @return {Boolean}\n */\nfunction isSelected(el) {\n\n if (!selection.rangeCount) {\n return null;\n }\n\n var focusNode = selection.focusNode;\n\n // IE supports Node#contains for elements only\n // thus we ensure we check against an actual Element node\n if (isText(focusNode)) {\n focusNode = focusNode.parentNode;\n }\n\n return el == focusNode || el.contains(focusNode);\n}\n\n\n/**\n * Set cursor or selection position.\n *\n * @param {Element} el\n * @param {SelectionRange} selection\n */\nfunction setRange(el, selection) {\n\n var range = createRange(el, selection);\n\n applyRange(range);\n}\n\n\n/**\n * Get cursor or selection position.\n *\n * @param {Element} el\n */\nfunction getRange(el) {\n\n if (!isSelected(el)) {\n return null;\n }\n\n var range = selection.getRangeAt(0);\n\n var startContainer = range.startContainer;\n var endContainer = range.endContainer;\n var startOffset = range.startOffset;\n var endOffset = range.endOffset;\n\n var i = domIterator(el.firstChild, el);\n\n var next = i.node;\n var last;\n\n var isClosing = false;\n\n var selectionStart;\n var count = 0;\n\n function isBeforeEnd(node, referenceNode) {\n\n if (arguments.length === 1) {\n referenceNode = node;\n }\n\n return (\n node.parentNode === endContainer &&\n referenceNode == endContainer.childNodes[endOffset]\n );\n\n }\n\n function isBeforeStart(node, referenceNode) {\n\n if (arguments.length === 1) {\n referenceNode = node;\n }\n\n return (\n node.parentNode === startContainer &&\n referenceNode == startContainer.childNodes[startOffset]\n );\n\n }\n\n while (next) {\n\n // start before node\n if (isBeforeStart(next)) {\n selectionStart = count;\n }\n\n // end before node\n if (isBeforeEnd(next)) {\n break;\n }\n\n if (!isClosing) {\n if (\n isBr(next) || (\n last && (last.nextSibling == next) && (\n isDiv(next) ||\n isParagraph(next)\n )\n )\n ) {\n count++;\n }\n }\n\n\n if (isText(next)) {\n\n // #text node\n if (startContainer === next) {\n selectionStart = count + startOffset;\n }\n\n if (endContainer === next) {\n count += endOffset;\n break;\n }\n\n count += next.textContent.length;\n }\n\n if (isText(next) || isClosing) {\n\n // start before node\n if (isBeforeStart(next, next.nextSibling)) {\n selectionStart = count;\n }\n\n // end before node\n if (isBeforeEnd(next, next.nextSibling)) {\n break;\n }\n\n }\n\n last = next;\n next = i.next();\n isClosing = i.closingTag;\n }\n\n // selection until end of text\n return {\n start: typeof selectionStart === 'undefined' ? count : selectionStart,\n end: count\n };\n}\n\n\n/**\n * Annotate the given text with markers based on the\n * given range.\n *\n * @param {String} text\n * @param {SelectionRange} range\n *\n * @return {String} annotated text\n */\nfunction annotateRange(text, range) {\n var str;\n\n if (range.start === range.end) {\n str = (\n text.substring(0, range.start) +\n '|' +\n text.substring(range.start)\n );\n } else {\n str = (\n text.substring(0, range.start) +\n '<' +\n text.substring(range.start, range.end) +\n '>' +\n text.substring(range.end)\n );\n }\n\n return str;\n}\n\n\n// helpers ///////////////////////////\n\nfunction createRange(el, selection) {\n\n var start = selection.start;\n var end = selection.end;\n\n var range = document.createRange();\n\n var i = domIterator(el.firstChild, el);\n\n var next = i.node;\n var isClosing = false;\n\n var count = 0;\n var length;\n\n while (next) {\n\n if (count === start) {\n if (isClosing) {\n range.setStartAfter(next);\n } else {\n range.setStartBefore(next);\n }\n }\n\n if (count === end) {\n if (isClosing) {\n range.setEndAfter(next);\n } else {\n range.setEndBefore(next);\n }\n\n return range;\n }\n\n if (!isClosing) {\n if (\n isBr(next) || (\n next.previousSibling && (\n isDiv(next) ||\n isParagraph(next)\n )\n )\n ) {\n count++;\n }\n }\n\n if (isText(next)) {\n\n length = next.textContent.length;\n\n if (count <= start && count + length > start) {\n range.setStart(next, start - count);\n }\n\n if (count + length > end) {\n range.setEnd(next, end - count);\n\n return range;\n }\n\n count += length;\n }\n\n next = i.next();\n isClosing = i.closingTag;\n }\n\n // out of range\n if (count <= start) {\n if (el.lastChild) {\n range.setStartAfter(el.lastChild);\n } else {\n range.setStart(el, 0);\n }\n }\n\n if (el.lastChild) {\n range.setEndAfter(el.lastChild);\n } else {\n range.setEnd(el, 0);\n }\n\n return range;\n}\n\nfunction isText(node) {\n return node.nodeType === 3;\n}\n\nfunction isBr(node) {\n return (\n node.nodeType === 1 &&\n node.nodeName === 'BR'\n );\n}\n\nfunction isDiv(node) {\n return (\n node.nodeType === 1 &&\n node.nodeName === 'DIV'\n );\n}\n\nfunction isParagraph(node) {\n return (\n node.nodeType === 1 &&\n node.nodeName === 'P'\n );\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/selection-ranges/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/selection-update/index.js": +/*!************************************************!*\ + !*** ./node_modules/selection-update/index.js ***! + \************************************************/ +/***/ ((module) => { + +"use strict"; +eval("\n\n/**\n * Calculate the selection update for the given\n * current and new input values.\n *\n * @param {Object} currentSelection as {start, end}\n * @param {String} currentValue\n * @param {String} newValue\n *\n * @return {Object} newSelection as {start, end}\n */\nfunction calculateUpdate(currentSelection, currentValue, newValue) {\n\n var currentCursor = currentSelection.start,\n newCursor = currentCursor,\n diff = newValue.length - currentValue.length,\n idx;\n\n var lengthDelta = newValue.length - currentValue.length;\n\n var currentTail = currentValue.substring(currentCursor);\n\n // check if we can remove common ending from the equation\n // to be able to properly detect a selection change for\n // the following scenarios:\n //\n // * (AAATTT|TF) => (AAAT|TF)\n // * (AAAT|TF) => (AAATTT|TF)\n //\n if (newValue.lastIndexOf(currentTail) === newValue.length - currentTail.length) {\n currentValue = currentValue.substring(0, currentValue.length - currentTail.length);\n newValue = newValue.substring(0, newValue.length - currentTail.length);\n }\n\n // diff\n var diff = createDiff(currentValue, newValue);\n\n if (diff) {\n if (diff.type === 'remove') {\n newCursor = diff.newStart;\n } else {\n newCursor = diff.newEnd;\n }\n }\n\n return range(newCursor);\n}\n\nmodule.exports = calculateUpdate;\n\n\nfunction createDiff(currentValue, newValue) {\n\n var insert;\n\n var l_str, l_char, l_idx = 0,\n s_str, s_char, s_idx = 0;\n\n if (newValue.length > currentValue.length) {\n l_str = newValue;\n s_str = currentValue;\n } else {\n l_str = currentValue;\n s_str = newValue;\n }\n\n // assume there will be only one insert / remove and\n // detect that _first_ edit operation only\n while (l_idx < l_str.length) {\n\n l_char = l_str.charAt(l_idx);\n s_char = s_str.charAt(s_idx);\n\n // chars no not equal\n if (l_char !== s_char) {\n\n if (!insert) {\n insert = {\n l_start: l_idx,\n s_start: s_idx\n };\n }\n\n l_idx++;\n }\n\n // chars equal (again?)\n else {\n\n if (insert && !insert.complete) {\n insert.l_end = l_idx;\n insert.s_end = s_idx;\n insert.complete = true;\n }\n\n s_idx++;\n l_idx++;\n }\n }\n\n if (insert && !insert.complete) {\n insert.complete = true;\n insert.s_end = s_str.length;\n insert.l_end = l_str.length;\n }\n\n // no diff\n if (!insert) {\n return;\n }\n\n if (newValue.length > currentValue.length) {\n return {\n newStart: insert.l_start,\n newEnd: insert.l_end,\n type: 'add'\n };\n } else {\n return {\n newStart: insert.s_start,\n newEnd: insert.s_end,\n type: newValue.length < currentValue.length ? 'remove' : 'replace'\n };\n }\n}\n\n/**\n * Utility method for creating a new selection range {start, end} object.\n *\n * @param {Number} start\n * @param {Number} [end]\n *\n * @return {Object} selection range as {start, end}\n */\nfunction range(start, end) {\n return {\n start: start,\n end: end === undefined ? start : end\n };\n}\n\nmodule.exports.range = range;\n\n\nfunction splitStr(str, position) {\n return {\n before: str.substring(0, position),\n after: str.substring(position)\n };\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/selection-update/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/Table.js": +/*!********************************************!*\ + !*** ./node_modules/table-js/lib/Table.js ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Table)\n/* harmony export */ });\n/* harmony import */ var didi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! didi */ \"./node_modules/didi/dist/index.js\");\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ \"./node_modules/table-js/lib/core/index.js\");\n\n\nclass Table {\n constructor(options = {}) {\n let {\n injector\n } = options;\n\n if (!injector) {\n let {\n modules,\n config\n } = this._init(options);\n\n injector = createInjector(config, modules);\n }\n\n this.get = injector.get;\n this.invoke = injector.invoke;\n this.get('eventBus').fire('table.init');\n this.get('eventBus').fire('diagram.init');\n }\n /**\n * Intialize table and return modules and config used for creation.\n *\n * @param {Object} options\n *\n * @return {Object} { modules=[], config }\n */\n\n\n _init(options) {\n let {\n modules,\n ...config\n } = options;\n return {\n modules,\n config\n };\n }\n /**\n * Destroys the table. This results in removing the attachment from the container.\n */\n\n\n destroy() {\n const eventBus = this.get('eventBus');\n eventBus.fire('table.destroy');\n eventBus.fire('diagram.destroy');\n }\n /**\n * Clears the table. Should be used to reset the state of any stateful services.\n */\n\n\n clear() {\n const eventBus = this.get('eventBus');\n eventBus.fire('table.clear');\n eventBus.fire('diagram.clear');\n }\n\n}\n\nfunction createInjector(config, modules) {\n const bootstrapModules = [{\n config: ['value', config]\n }, _core__WEBPACK_IMPORTED_MODULE_0__[\"default\"]].concat(modules || []);\n const injector = new didi__WEBPACK_IMPORTED_MODULE_1__.Injector(bootstrapModules);\n injector.init();\n return injector;\n}\n//# sourceMappingURL=Table.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/Table.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/BaseCell.js": +/*!**********************************************************!*\ + !*** ./node_modules/table-js/lib/components/BaseCell.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ BaseCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./node_modules/table-js/lib/components/utils/mixin.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ \"./node_modules/table-js/lib/components/utils/classNames.js\");\n/* harmony import */ var _mixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixins */ \"./node_modules/table-js/lib/components/mixins/SelectionAware.js\");\n\n\n\nclass BaseCell extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, _mixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n (0,_utils__WEBPACK_IMPORTED_MODULE_3__.inject)(this);\n }\n\n getRenderProps(...cls) {\n const {\n className,\n elementId,\n coords,\n ...props\n } = this.props;\n const baseProps = {\n className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(...cls, this.getSelectionClasses(), className)\n };\n\n if (elementId) {\n baseProps['data-element-id'] = elementId;\n }\n\n if (coords) {\n baseProps['data-coords'] = coords;\n }\n\n return { ...baseProps,\n ...props\n };\n }\n\n}\n//# sourceMappingURL=BaseCell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/BaseCell.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/Cell.js": +/*!******************************************************!*\ + !*** ./node_modules/table-js/lib/components/Cell.js ***! + \******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ HeaderCell)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _BaseCell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseCell */ \"./node_modules/table-js/lib/components/BaseCell.js\");\n\n\nclass HeaderCell extends _BaseCell__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n constructor(props, context) {\n super(props, context);\n this.state = {};\n }\n\n render() {\n const {\n children\n } = this.props;\n const props = this.getRenderProps('cell');\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"td\", null, children, 0, { ...props\n }));\n }\n\n}\n//# sourceMappingURL=Cell.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/Cell.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/mixins/SelectionAware.js": +/*!***********************************************************************!*\ + !*** ./node_modules/table-js/lib/components/mixins/SelectionAware.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ \"./node_modules/table-js/lib/components/utils/classNames.js\");\n\n/**\n * A mixin to make an element _selection aware_.\n */\n\nconst SelectionAware = {\n getSelectionClasses() {\n const {\n selected,\n selectedSecondary,\n focussed\n } = this.state;\n return (0,_utils__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n 'selected': selected,\n 'selected-secondary': selectedSecondary,\n 'focussed': focussed\n });\n },\n\n selectionChanged(newSelection) {\n // newSelection = { selected, selectedSecondary, focussed }\n this.setState(newSelection);\n },\n\n componentWillUpdate(newProps) {\n if (newProps.elementId !== this.props.elementId) {\n this.updateSelectionSubscription(false);\n }\n },\n\n componentDidUpdate(oldProps) {\n if (oldProps.elementId !== this.props.elementId) {\n this.updateSelectionSubscription(true);\n }\n },\n\n componentDidMount() {\n this.updateSelectionSubscription(true);\n },\n\n componentWillUnmount() {\n this.updateSelectionSubscription(false);\n },\n\n updateSelectionSubscription(enable) {\n const {\n elementId\n } = this.props;\n\n if (!elementId) {\n return;\n }\n\n if (elementId) {\n this.eventBus[enable ? 'on' : 'off'](`selection.${elementId}.changed`, this.selectionChanged);\n }\n }\n\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SelectionAware);\nSelectionAware.$inject = ['eventBus'];\n//# sourceMappingURL=SelectionAware.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/mixins/SelectionAware.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/utils/classNames.js": +/*!******************************************************************!*\ + !*** ./node_modules/table-js/lib/components/utils/classNames.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ classNames)\n/* harmony export */ });\nfunction newSet() {\n return {\n elements: [],\n index: {}\n };\n}\n\nfunction add(set, element) {\n const {\n elements,\n index\n } = set;\n\n if (index[element]) {\n return set;\n } else {\n return {\n elements: [...elements, element],\n index: { ...index,\n [element]: true\n }\n };\n }\n}\n\nfunction join(set, separator) {\n return set.elements.join(separator);\n}\n\nfunction classNames(...args) {\n let set = newSet();\n args.forEach(function (item) {\n const type = typeof item;\n\n if (type === 'string' && item.length > 0) {\n set = add(set, item);\n } else if (type === 'object' && item !== null) {\n Object.keys(item).forEach(function (key) {\n const value = item[key];\n\n if (value) {\n set = add(set, key);\n }\n });\n }\n });\n return join(set, ' ');\n}\n//# sourceMappingURL=classNames.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/utils/classNames.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/utils/compose.js": +/*!***************************************************************!*\ + !*** ./node_modules/table-js/lib/components/utils/compose.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ compose)\n/* harmony export */ });\n/**\n * Composes a number of functions.\n *\n * All receive the the same arguments; the chain is interruped as soon\n * as one function returns a value.\n *\n * @param {Object} self\n * @param {...Function} fns\n *\n * @return {Object}\n */\nfunction compose(self, ...fns) {\n return function (...args) {\n let result;\n fns.forEach(function (fn) {\n result = fn.call(self, ...args);\n\n if (typeof result !== 'undefined') {\n return false;\n }\n });\n return result;\n }.bind(self);\n}\n//# sourceMappingURL=compose.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/utils/compose.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/utils/inject.js": +/*!**************************************************************!*\ + !*** ./node_modules/table-js/lib/components/utils/inject.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ inject: () => (/* binding */ inject),\n/* harmony export */ injectType: () => (/* binding */ injectType)\n/* harmony export */ });\nfunction inject(component) {\n const Type = component.constructor;\n return injectType(Type, component);\n}\nfunction injectType(Type, component) {\n const annotation = Type.$inject;\n\n if (!annotation) {\n return;\n }\n\n const {\n injector\n } = component.context;\n const setupFn = [...annotation, function (...args) {\n for (const idx in args) {\n const name = annotation[idx];\n const value = args[idx];\n component[name] = value;\n }\n }];\n injector.invoke(setupFn);\n}\n//# sourceMappingURL=inject.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/utils/inject.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/components/utils/mixin.js": +/*!*************************************************************!*\ + !*** ./node_modules/table-js/lib/components/utils/mixin.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ mixin)\n/* harmony export */ });\n/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compose */ \"./node_modules/table-js/lib/components/utils/compose.js\");\n/* harmony import */ var _inject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inject */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n\n\n/**\n * A Component and injection aware mixin mechanism.\n *\n * @param {Component} component\n * @param {Object|Function} mixinDef\n */\n\nfunction mixin(component, mixinDef) {\n Object.keys(mixinDef).forEach(function (key) {\n if (key === '$inject' || key === '__init') {\n return;\n }\n\n const mixinFn = mixinDef[key];\n\n if (key === 'constructor') {\n mixinFn.call(component, component.props, component.context);\n }\n\n const componentFn = component[key];\n\n if (typeof componentFn !== 'undefined') {\n if (typeof componentFn !== 'function') {\n throw new Error(`failed to mixin <${key}>: cannot combine with non-fn component value`);\n }\n\n component[key] = (0,_compose__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(component, componentFn, mixinFn);\n } else {\n component[key] = mixinFn.bind(component);\n }\n });\n\n if ('$inject' in mixinDef) {\n (0,_inject__WEBPACK_IMPORTED_MODULE_1__.injectType)(mixinDef, component);\n } // call initializer\n\n\n if ('__init' in mixinDef) {\n mixinDef.__init.call(component, component.props, component.context);\n }\n}\n//# sourceMappingURL=mixin.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/components/utils/mixin.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/core/ElementFactory.js": +/*!**********************************************************!*\ + !*** ./node_modules/table-js/lib/core/ElementFactory.js ***! + \**********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementFactory)\n/* harmony export */ });\n/* harmony import */ var _model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../model */ \"./node_modules/table-js/lib/model/index.js\");\n\nclass ElementFactory {\n constructor() {\n this._uid = 12;\n }\n\n create(type, attrs = {}) {\n if (!attrs.id) {\n attrs.id = type + '_' + this._uid++;\n }\n\n return (0,_model__WEBPACK_IMPORTED_MODULE_0__.create)(type, attrs);\n }\n\n createRoot(attrs) {\n return this.create('root', attrs);\n }\n\n createRow(attrs) {\n return this.create('row', attrs);\n }\n\n createCol(attrs) {\n return this.create('col', attrs);\n }\n\n createCell(attrs) {\n return this.create('cell', attrs);\n }\n\n}\n//# sourceMappingURL=ElementFactory.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/core/ElementFactory.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/core/ElementRegistry.js": +/*!***********************************************************!*\ + !*** ./node_modules/table-js/lib/core/ElementRegistry.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ElementRegistry)\n/* harmony export */ });\nclass ElementRegistry {\n constructor(eventBus) {\n this._eventBus = eventBus;\n this._elements = {};\n eventBus.on('table.clear', this.clear.bind(this));\n }\n\n add(element, type) {\n const {\n id\n } = element;\n this._elements[id] = element;\n }\n\n remove(element) {\n const id = element.id || element;\n delete this._elements[id];\n }\n\n get(id) {\n return this._elements[id];\n }\n\n getAll() {\n return values(this._elements);\n }\n\n forEach(fn) {\n values(this._elements).forEach(element => fn(element));\n }\n\n filter(fn) {\n return values(this._elements).filter(element => fn(element));\n }\n\n clear() {\n this._elements = {};\n }\n\n updateId(element, newId) {\n this._validateId(newId);\n\n if (typeof element === 'string') {\n element = this.get(element);\n }\n\n this._eventBus.fire('element.updateId', {\n element: element,\n newId: newId\n });\n\n this.remove(element);\n element.id = newId;\n this.add(element);\n }\n /**\n * Validate the suitability of the given id and signals a problem\n * with an exception.\n *\n * @param {String} id\n *\n * @throws {Error} if id is empty or already assigned\n */\n\n\n _validateId(id) {\n if (!id) {\n throw new Error('element must have an id');\n }\n\n if (this._elements[id]) {\n throw new Error('element with id ' + id + ' already added');\n }\n }\n\n}\nElementRegistry.$inject = ['eventBus']; // helpers\n\nfunction values(obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n}\n//# sourceMappingURL=ElementRegistry.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/core/ElementRegistry.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/core/Sheet.js": +/*!*************************************************!*\ + !*** ./node_modules/table-js/lib/core/Sheet.js ***! + \*************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Sheet)\n/* harmony export */ });\nclass Sheet {\n constructor(elementRegistry, eventBus) {\n this._elementRegistry = elementRegistry;\n this._eventBus = eventBus;\n this._root = null;\n eventBus.on('table.clear', () => {\n this.setRoot(null);\n });\n }\n\n setRoot(root) {\n if (this._root) {\n const oldRoot = this._root;\n\n this._eventBus.fire('root.remove', {\n root: oldRoot\n });\n\n this._root = null;\n\n this._eventBus.fire('root.removed', {\n root: oldRoot\n });\n }\n\n if (root) {\n this._eventBus.fire('root.add', {\n root\n });\n }\n\n this._root = root;\n\n if (root) {\n this._eventBus.fire('root.added', {\n root\n });\n }\n }\n\n getRoot() {\n if (!this._root) {\n this.setRoot({\n id: '__implicitroot',\n rows: [],\n cols: []\n });\n }\n\n return this._root;\n }\n /**\n * Add row to sheet.\n *\n * @param {Object} row - Row.\n */\n\n\n addRow(row, index) {\n const root = this.getRoot();\n\n if (root.cols.length != row.cells.length) {\n throw new Error('number of cells is not equal to number of cols');\n }\n\n if (typeof index === 'undefined') {\n index = root.rows.length;\n }\n\n addAtIndex(index, root.rows, row);\n row.root = root;\n\n this._elementRegistry.add(row);\n\n row.cells.forEach((cell, idx) => {\n this._elementRegistry.add(cell);\n\n cell.row = row;\n cell.col = root.cols[idx];\n addAtIndex(index, root.cols[idx].cells, cell);\n });\n\n this._eventBus.fire('row.add', {\n row\n });\n\n return row;\n }\n /**\n * Remove row from sheet.\n *\n * @param {Object|string} row - Row or row ID.\n */\n\n\n removeRow(row) {\n const root = this.getRoot();\n\n if (typeof row === 'string') {\n row = this._elementRegistry.get(row);\n }\n\n const index = root.rows.indexOf(row);\n\n if (index === -1) {\n return;\n }\n\n removeAtIndex(index, root.rows);\n row.root = undefined;\n\n this._elementRegistry.remove(row);\n\n row.cells.forEach((cell, idx) => {\n this._elementRegistry.remove(cell);\n\n cell.col = undefined;\n removeAtIndex(index, root.cols[idx].cells);\n });\n\n this._eventBus.fire('row.remove', {\n row\n });\n }\n /**\n * Add col to sheet.\n *\n * @param {Object} col\n * @param {Number} [index]\n */\n\n\n addCol(col, index) {\n const root = this.getRoot();\n\n this._elementRegistry.add(col);\n\n if (root.rows.length != col.cells.length) {\n throw new Error('number of cells is not equal to number of rows');\n }\n\n if (typeof index === 'undefined') {\n index = root.cols.length;\n }\n\n addAtIndex(index, root.cols, col);\n col.root = root;\n col.cells.forEach((cell, idx) => {\n this._elementRegistry.add(cell);\n\n cell.col = col;\n cell.row = root.rows[idx];\n addAtIndex(index, root.rows[idx].cells, cell);\n });\n\n this._eventBus.fire('col.add', {\n col\n });\n\n return col;\n }\n /**\n * Remove col from sheet.\n *\n * @param {Object|string} col - Col or col ID.\n */\n\n\n removeCol(col) {\n const root = this.getRoot();\n\n if (typeof col === 'string') {\n col = this._elementRegistry.get(col);\n }\n\n const index = root.cols.indexOf(col);\n\n if (index === -1) {\n return;\n }\n\n removeAtIndex(index, root.cols);\n col.root = undefined;\n\n this._elementRegistry.remove(col);\n\n col.cells.forEach((cell, idx) => {\n this._elementRegistry.remove(cell);\n\n cell.row = undefined;\n removeAtIndex(index, root.rows[idx].cells);\n });\n\n this._eventBus.fire('col.remove', {\n col\n });\n }\n\n resized() {\n this._eventBus.fire('sheet.resized');\n }\n\n}\nSheet.$inject = ['elementRegistry', 'eventBus']; // helpers /////////////\n\n/**\n * Insert value\n *\n * @param {number} index - Index to insert value at.\n * @param {Array} array - Array to insert value into.\n * @param {*} value - Value to insert.\n */\n\nfunction addAtIndex(index, array, value) {\n return array.splice(index, 0, value);\n}\n/**\n *\n * @param {number} index - Index to remove.\n * @param {Array} array - Array to remove from.\n */\n\n\nfunction removeAtIndex(index, array) {\n return array.splice(index, 1);\n}\n//# sourceMappingURL=Sheet.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/core/Sheet.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/core/Throttle.js": +/*!****************************************************!*\ + !*** ./node_modules/table-js/lib/core/Throttle.js ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ThrottleFactory)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n/**\n * A factory to create a configurable throttler.\n *\n * @param {number|boolean} [config=true]\n */\n\nfunction ThrottleFactory(config = true) {\n const timeout = typeof config === 'number' ? config : config ? 300 : 0;\n\n if (timeout) {\n return fn => (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.throttle)(fn, timeout);\n } else {\n return fn => fn;\n }\n}\nThrottleFactory.$inject = ['config.throttle'];\n//# sourceMappingURL=Throttle.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/core/Throttle.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/core/index.js": +/*!*************************************************!*\ + !*** ./node_modules/table-js/lib/core/index.js ***! + \*************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ElementFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ElementFactory */ \"./node_modules/table-js/lib/core/ElementFactory.js\");\n/* harmony import */ var _ElementRegistry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ElementRegistry */ \"./node_modules/table-js/lib/core/ElementRegistry.js\");\n/* harmony import */ var diagram_js_lib_core_EventBus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/core/EventBus */ \"./node_modules/diagram-js/lib/core/EventBus.js\");\n/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../render */ \"./node_modules/table-js/lib/render/index.js\");\n/* harmony import */ var _Sheet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Sheet */ \"./node_modules/table-js/lib/core/Sheet.js\");\n/* harmony import */ var _Throttle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Throttle */ \"./node_modules/table-js/lib/core/Throttle.js\");\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_render__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['elementFactory', 'sheet'],\n elementFactory: ['type', _ElementFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n elementRegistry: ['type', _ElementRegistry__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n eventBus: ['type', diagram_js_lib_core_EventBus__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n sheet: ['type', _Sheet__WEBPACK_IMPORTED_MODULE_4__[\"default\"]],\n throttle: ['factory', _Throttle__WEBPACK_IMPORTED_MODULE_5__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/core/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/context-menu/ContextMenu.js": +/*!************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/context-menu/ContextMenu.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContextMenu)\n/* harmony export */ });\n/* harmony import */ var _components_ContextMenuComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ContextMenuComponent */ \"./node_modules/table-js/lib/features/context-menu/components/ContextMenuComponent.js\");\n\nclass ContextMenu {\n constructor(components, eventBus, renderer) {\n this._eventBus = eventBus;\n components.onGetComponent('table.before', () => _components_ContextMenuComponent__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n }\n\n open(position, context) {\n this._eventBus.fire('contextMenu.open', {\n position,\n context\n });\n }\n\n close() {\n this._eventBus.fire('contextMenu.close');\n }\n\n}\nContextMenu.$inject = ['components', 'eventBus', 'renderer'];\n//# sourceMappingURL=ContextMenu.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/context-menu/ContextMenu.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/context-menu/components/ContextMenuComponent.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/context-menu/components/ContextMenuComponent.js ***! + \********************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContextMenuComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../components */ \"./node_modules/table-js/lib/components/utils/inject.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\n/* harmony import */ var selection_ranges__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! selection-ranges */ \"./node_modules/selection-ranges/dist/index.esm.js\");\n\n\nfunction _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; }\n\n\n\n\n\n\nconst DEFAULT_STYLE = {\n position: 'absolute'\n};\n/**\r\n * @typedef ContextMenuPosition\r\n * @property {number} x\r\n * @property {number} y\r\n * @property {number} [width=0]\r\n * @property {number} [height=0]\r\n * @property {'bottom-left'|'bottom-right'|'top-left'|'top-right'} [align]\r\n */\n\nclass ContextMenuComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, _context) {\n super(props, _context);\n\n _defineProperty(this, \"open\", ({\n position,\n context\n }) => {\n // always close first\n this.close();\n this.setState({\n isOpen: true,\n position: position || {\n x: 0,\n y: 0\n },\n context: context || {}\n });\n });\n\n _defineProperty(this, \"close\", () => {\n if (this.state.isOpen) {\n this.setState({\n context: undefined,\n isOpen: false,\n position: {\n x: 0,\n y: 0\n }\n });\n }\n });\n\n _defineProperty(this, \"triggerClose\", () => {\n this.eventBus.fire('contextMenu.close');\n });\n\n this.state = {\n isOpen: false,\n position: {\n x: 0,\n y: 0\n }\n };\n (0,_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n /**\r\n * Open the context menu with given position and context.\r\n *\r\n * The menu itself will figure out the best position, taking the optional\r\n * positioning parameter into account. Position can also contain indicator\r\n * in which direction to open context menu.\r\n *\r\n * @param {ContextMenuPosition} position\r\n * @param {Object} [context]\r\n */\n\n\n componentDidMount() {\n this.eventBus.on('contextMenu.open', this.open);\n this.eventBus.on('contextMenu.close', this.close);\n }\n\n componentWillUnmount() {\n this.eventBus.off('contextMenu.open', this.open);\n this.eventBus.off('contextMenu.close', this.close);\n }\n\n render() {\n const {\n isOpen,\n context,\n position\n } = this.state;\n\n if (!isOpen) {\n return null;\n }\n\n const components = this.components.getComponents('context-menu', context);\n\n if (!components.length) {\n return null;\n }\n\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, ContextMenu, {\n \"className\": \"context-menu no-deselect\",\n \"context\": context,\n \"position\": position,\n \"offset\": context.offset || {\n x: 0,\n y: 0\n },\n \"autoFocus\": context.autoFocus !== false,\n \"autoClose\": context.autoClose !== false,\n \"components\": components,\n \"onClose\": this.triggerClose\n });\n }\n\n}\nContextMenuComponent.$inject = ['eventBus', 'components'];\n/**\r\n * Low-level, stateless context menu holder.\r\n */\n\nclass ContextMenu extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props, context) {\n super(props, context);\n\n _defineProperty(this, \"onGlobalMouseDown\", event => {\n this.checkClose(event.target);\n });\n\n _defineProperty(this, \"onGlobalKey\", event => {\n var keyCode = event.which; // ENTER or ESC\n\n if (keyCode === 13 || keyCode === 27) {\n event.stopPropagation();\n event.preventDefault();\n this.close();\n }\n });\n\n _defineProperty(this, \"onFocusChanged\", event => {\n this.checkClose(event.target);\n });\n\n _defineProperty(this, \"setNode\", node => {\n this.node = node;\n const {\n autoFocus\n } = this.props;\n\n if (node) {\n this.updatePosition();\n\n if (autoFocus) {\n ensureFocus(node);\n }\n }\n });\n\n (0,_components__WEBPACK_IMPORTED_MODULE_2__.inject)(this);\n }\n\n close() {\n const {\n onClose\n } = this.props;\n\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_3__.isFunction)(onClose)) {\n onClose();\n }\n }\n /**\r\n * Check whether closing the context menu is necessary\r\n * after selecting the given element.\r\n */\n\n\n checkClose(focusTarget) {\n const {\n autoClose\n } = this.props;\n\n if (!autoClose) {\n return;\n }\n\n var node = this.node;\n\n if (!node) {\n return;\n }\n\n if (node === focusTarget) {\n return;\n }\n\n if (node.contains(focusTarget)) {\n return;\n }\n\n this.close();\n }\n /**\r\n * Handle global (window) mousedown event.\r\n */\n\n\n componentDidMount() {\n document.addEventListener('focusin', this.onFocusChanged);\n document.addEventListener('keydown', this.onGlobalKey);\n document.addEventListener('mousedown', this.onGlobalMouseDown);\n }\n\n componentWillUnmount() {\n document.removeEventListener('focusin', this.onFocusChanged);\n document.removeEventListener('keydown', this.onGlobalKey);\n document.removeEventListener('mousedown', this.onGlobalMouseDown);\n }\n\n /**\r\n * Find best context menu position and re-layout accordingly.\r\n */\n updatePosition() {\n const {\n position,\n offset\n } = this.props;\n const {\n node\n } = this;\n const bounds = node.getBoundingClientRect();\n\n if (!position.width) {\n position.width = 0;\n }\n\n if (!position.height) {\n position.height = 0;\n }\n\n const container = this.renderer.getContainer(),\n containerBounds = container.getBoundingClientRect();\n\n if (containerBounds.width > containerBounds.height) {\n this.node.classList.add('horizontal');\n this.node.classList.remove('vertical');\n } else {\n this.node.classList.add('vertical');\n this.node.classList.remove('horizontal');\n }\n\n const {\n scrollLeft,\n scrollTop\n } = getTableContainerScroll(node);\n const style = {};\n let alignment;\n\n if (position.align) {\n alignment = position.align.split('-');\n }\n\n let left, top;\n const horizontalAlignment = alignment && alignment[1] || (position.x + position.width / 2 > containerBounds.width / 2 ? 'left' : 'right');\n\n if (horizontalAlignment === 'left') {\n left = position.x - containerBounds.left - bounds.width + offset.x + scrollLeft;\n node.classList.remove('right');\n node.classList.add('left');\n } else {\n left = -containerBounds.left + position.x + position.width - offset.x + scrollLeft;\n node.classList.remove('left');\n node.classList.add('right');\n }\n\n left = alignment ? left : clampNumber(left, 0 + scrollLeft, containerBounds.width - bounds.width + scrollLeft);\n style.left = left + 'px';\n const verticalAlignment = alignment && alignment[0] || (position.y + position.height / 2 > containerBounds.height / 2 ? 'top' : 'bottom');\n\n if (verticalAlignment === 'top') {\n top = position.y - containerBounds.top - bounds.height + offset.y + scrollTop;\n node.classList.remove('bottom');\n node.classList.add('top');\n } else {\n top = -containerBounds.top + position.y - offset.y + scrollTop;\n node.classList.remove('top');\n node.classList.add('bottom');\n }\n\n top = alignment ? top : clampNumber(top, 0 + scrollTop, containerBounds.height - bounds.height + scrollTop);\n style.top = top + 'px'; // ensure context menu will always be accessible\n\n style.overflowY = 'auto';\n style.maxHeight = containerBounds.height - top + scrollTop + 'px';\n (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(this.node.style, DEFAULT_STYLE, style);\n }\n\n render() {\n const {\n context,\n components,\n className\n } = this.props;\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", className, components.map((Component, idx) => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, {\n \"context\": context\n }, idx)), 0, {\n \"onContextMenu\": e => e.preventDefault()\n }, null, this.setNode);\n }\n\n}\n\nContextMenu.$inject = ['renderer']; // helpers /////////////\n\nfunction clampNumber(number, min, max) {\n return Math.max(min, Math.min(max, number));\n}\n\nconst SELECTABLE_ELEMENTS = `\n input[type=text],\n input[type=number],\n input[type=button],\n input[type=submit],\n [contenteditable],\n [tabindex],\n a[href],\n textarea,\n button\n`;\n\nfunction ensureFocus(el) {\n var focusEl = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.query)(SELECTABLE_ELEMENTS, el);\n\n if (focusEl) {\n focusEl.focus(); // inputs\n\n if (focusEl.selectionStart && focusEl.type === 'text') {\n focusEl.selectionStart = 100000;\n } // content editable elements\n else if ('contentEditable' in focusEl) {\n (0,selection_ranges__WEBPACK_IMPORTED_MODULE_1__.setRange)(focusEl, {\n start: 100000,\n end: 100000\n });\n }\n }\n}\n\nfunction getTableContainerScroll(node) {\n const tableContainer = (0,min_dom__WEBPACK_IMPORTED_MODULE_4__.closest)(node, '.tjs-container');\n\n if (!tableContainer) {\n return {\n scrollTop: 0,\n scrollLeft: 0\n };\n }\n\n const {\n scrollLeft,\n scrollTop\n } = tableContainer;\n return {\n scrollTop,\n scrollLeft\n };\n}\n//# sourceMappingURL=ContextMenuComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/context-menu/components/ContextMenuComponent.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/context-menu/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/table-js/lib/features/context-menu/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ContextMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContextMenu */ \"./node_modules/table-js/lib/features/context-menu/ContextMenu.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['contextMenu'],\n contextMenu: ['type', _ContextMenu__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/context-menu/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/drag-and-drop/DragAndDrop.js": +/*!*************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/drag-and-drop/DragAndDrop.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DragAndDrop)\n/* harmony export */ });\n/* harmony import */ var _model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model */ \"./node_modules/table-js/lib/model/index.js\");\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\nfunction _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; }\n\n\n\nconst TARGET_SELECTOR = `.dmn-decision-table-container td,\n .dmn-decision-table-container th`;\nclass DragAndDrop {\n constructor(eventBus, renderer, modeling, sheet) {\n _defineProperty(this, \"handleDragOver\", event => {\n // we're taking over (!)\n stopEvent(event);\n const targetEl = event.target;\n const cellEl = (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.closest)(targetEl, TARGET_SELECTOR, true);\n let allowed = !!cellEl;\n const {\n hoverEl\n } = this._dragContext; // drag leave\n\n if (hoverEl && hoverEl !== cellEl) {\n this._emit('dragAndDrop.dragLeave', event); // unset target element\n\n\n this._dragContext.targetEl = null; // unset hover element\n\n this._dragContext.hoverEl = null;\n }\n\n if (cellEl) {\n // drag enter\n if (cellEl !== hoverEl) {\n // new hover element\n this._dragContext.hoverEl = cellEl;\n allowed = this._emit('dragAndDrop.dragEnter', event);\n\n if (allowed !== false) {\n // new targetEl\n this._dragContext.targetEl = cellEl;\n }\n } // drag over\n\n\n allowed = this._emit('dragAndDrop.dragOver', event);\n }\n\n event.dataTransfer.dropEffect = allowed !== false ? 'move' : 'none';\n });\n\n _defineProperty(this, \"handleDrop\", event => {\n // prevent default drop action\n // QUIRK: Firefox will redirect if not prevented\n stopEvent(event);\n\n const target = this._emit('dragAndDrop.drop', event);\n\n if (target) {\n const {\n draggedElement\n } = this._dragContext;\n\n if (draggedElement instanceof _model__WEBPACK_IMPORTED_MODULE_1__.Row) {\n const {\n rows\n } = this._sheet.getRoot();\n\n let index = rows.indexOf(target);\n\n this._modeling.moveRow(draggedElement, index);\n } else if (draggedElement instanceof _model__WEBPACK_IMPORTED_MODULE_1__.Col) {\n const {\n cols\n } = this._sheet.getRoot();\n\n let index = cols.indexOf(target);\n\n this._modeling.moveCol(draggedElement, index);\n }\n } // manually call to drag end needed, as we prevent the default\n // browser behavior / drag end handling via\n // event.preventDefault();\n\n\n this.handleDragEnd(event);\n });\n\n _defineProperty(this, \"handleDragEnd\", event => {\n // prevent default drop action\n stopEvent(event);\n\n this._unbindListeners();\n\n this._emit('dragAndDrop.dragEnd', event);\n\n this._dragContext = null;\n });\n\n this._eventBus = eventBus;\n this._renderer = renderer;\n this._modeling = modeling;\n this._sheet = sheet;\n this._dragContext = null;\n eventBus.on('table.destroy', () => {\n this._unbindListeners();\n });\n }\n\n _bindListeners() {\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(document, 'dragover', this.handleDragOver);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(document, 'drop', this.handleDrop);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.bind(document, 'dragend', this.handleDragEnd);\n }\n\n _unbindListeners() {\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(document, 'dragover', this.handleDragOver);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(document, 'drop', this.handleDrop);\n min_dom__WEBPACK_IMPORTED_MODULE_0__.event.unbind(document, 'dragend', this.handleDragEnd);\n }\n\n _emit(eventName, originalEvent) {\n return this._eventBus.fire(eventName, {\n dragContext: this._dragContext,\n originalEvent\n });\n }\n\n startDrag(element, event) {\n stopEvent(event, true);\n event.dataTransfer.effectAllowed = 'move'; // QUIRK: Firefox won't fire events unless data was set\n\n if (event.dataTransfer.setData) {\n event.dataTransfer.setData('text', '__DUMMY');\n }\n\n this._dragContext = {\n draggedElement: element\n };\n\n this._bindListeners();\n\n this._emit('dragAndDrop.dragStart', event);\n }\n\n}\nDragAndDrop.$inject = ['eventBus', 'renderer', 'modeling', 'sheet']; // helpers /////////////////\n\nfunction stopEvent(event, preventDefault) {\n event.stopPropagation();\n\n if (preventDefault !== true) {\n event.preventDefault();\n }\n}\n//# sourceMappingURL=DragAndDrop.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/drag-and-drop/DragAndDrop.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/drag-and-drop/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/table-js/lib/features/drag-and-drop/index.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _DragAndDrop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DragAndDrop */ \"./node_modules/table-js/lib/features/drag-and-drop/DragAndDrop.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['dragAndDrop'],\n dragAndDrop: ['type', _DragAndDrop__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/drag-and-drop/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/editor-actions/EditorActions.js": +/*!****************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/editor-actions/EditorActions.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditorActions)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst NOT_REGISTERED_ERROR = 'is not a registered action',\n IS_REGISTERED_ERROR = 'is already registered';\n/**\n * An interface that provides access to modeling actions by decoupling\n * the one who requests the action to be triggered and the trigger itself.\n *\n * It's possible to add new actions by registering them with ´registerAction´ and likewise\n * unregister existing ones with ´unregisterAction´.\n *\n */\n\nclass EditorActions {\n constructor(commandStack, eventBus, modeling, selection) {\n this._actions = {\n undo() {\n commandStack.undo();\n },\n\n redo() {\n commandStack.redo();\n },\n\n select({\n cell\n }) {\n selection.select(cell);\n },\n\n deselect() {\n selection.deselect();\n },\n\n addRow({\n attrs,\n index\n }) {\n modeling.addRow(attrs, index);\n },\n\n removeRow({\n row\n }) {\n modeling.removeRow(row);\n },\n\n moveRow({\n row,\n index\n }) {\n modeling.moveRow(row, index);\n },\n\n addCol({\n attrs,\n index\n }) {\n modeling.addCol(attrs, index);\n },\n\n removeCol({\n col\n }) {\n modeling.removeCol(col);\n },\n\n moveCol({\n col,\n index\n }) {\n modeling.moveCol(col, index);\n }\n\n };\n }\n /**\n * Triggers a registered action\n *\n * @param {String} action\n * @param {Object} opts\n *\n * @return {Unknown} Returns what the registered listener returns\n */\n\n\n trigger(action, opts) {\n if (!this._actions[action]) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n\n return this._actions[action](opts);\n }\n /**\n * Registers a collections of actions.\n * The key of the object will be the name of the action.\n *\n * @param {Object} actions\n */\n\n\n register(actions, listener) {\n if (typeof actions === 'string') {\n return this._registerAction(actions, listener);\n }\n\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.forEach)(actions, (listener, action) => {\n this._registerAction(action, listener);\n }, this);\n }\n /**\n * Registers a listener to an action key\n *\n * @param {String} action\n * @param {Function} listener\n */\n\n\n _registerAction(action, listener) {\n if (this.isRegistered(action)) {\n throw error(action, IS_REGISTERED_ERROR);\n }\n\n this._actions[action] = listener;\n }\n /**\n * Unregister an existing action\n *\n * @param {String} action\n */\n\n\n unregister(action) {\n if (!this.isRegistered(action)) {\n throw error(action, NOT_REGISTERED_ERROR);\n }\n\n this._actions[action] = undefined;\n }\n /**\n * Checks wether the given action is registered\n *\n * @param {String} action\n *\n * @return {Boolean}\n */\n\n\n isRegistered(action) {\n return !!this._actions[action];\n }\n\n}\nEditorActions.$inject = ['commandStack', 'eventBus', 'modeling', 'selection']; // helpers /////////////\n\nfunction error(action, message) {\n return new Error(action + ' ' + message);\n}\n//# sourceMappingURL=EditorActions.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/editor-actions/EditorActions.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/editor-actions/index.js": +/*!********************************************************************!*\ + !*** ./node_modules/table-js/lib/features/editor-actions/index.js ***! + \********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../selection */ \"./node_modules/table-js/lib/features/selection/index.js\");\n/* harmony import */ var _EditorActions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditorActions */ \"./node_modules/table-js/lib/features/editor-actions/EditorActions.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [_selection__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n __init__: ['editorActions'],\n editorActions: ['type', _EditorActions__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/editor-actions/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/interaction-events/InteractionEvents.js": +/*!************************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/interaction-events/InteractionEvents.js ***! + \************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InteractionEvents)\n/* harmony export */ });\n/* harmony import */ var min_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dom */ \"./node_modules/min-dom/dist/index.esm.js\");\nfunction _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; }\n\n\nconst EVENTS = ['click', 'dblclick', 'contextmenu', 'mousedown', 'mouseup', 'mouseenter', 'mouseleave', 'mouseout', 'mouseover', 'mousemove', 'focusin', 'focusout', 'drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'];\n/**\n * Provides interaction events on the table.\n *\n * @param {RenderConfig} config\n * @param {EventBus} eventBus\n */\n\nclass InteractionEvents {\n constructor(config, eventBus) {\n _defineProperty(this, \"_handleEvent\", event => {\n const {\n target,\n type\n } = event;\n const node = findClosestCell(target);\n\n if (!node) {\n return;\n }\n\n const elementId = node.getAttribute('data-element-id');\n\n if (elementId) {\n const e = this._eventBus.createEvent({\n id: elementId,\n event,\n node,\n target: node\n });\n\n this._eventBus.fire(`cell.${type}`, e);\n\n if (e.defaultPrevented) {\n event.preventDefault();\n }\n\n if (e.cancelBubble) {\n event.stopPropagation();\n }\n }\n });\n\n this._eventBus = eventBus;\n this._container = config.container;\n eventBus.on('table.init', () => {\n this._addEventListeners(EVENTS);\n });\n eventBus.on('table.destroy', () => {\n this._removeEventListeners(EVENTS);\n });\n }\n\n _addEventListeners(events) {\n const container = this._container;\n events.forEach(event => {\n container.addEventListener(event, this._handleEvent);\n });\n }\n\n _removeEventListeners(events) {\n const container = this._container;\n events.forEach(event => {\n container.removeEventListener(event, this._handleEvent);\n });\n }\n\n}\nInteractionEvents.$inject = ['config.renderer', 'eventBus']; // helpers /////////////\n\nfunction findClosestCell(element) {\n return (0,min_dom__WEBPACK_IMPORTED_MODULE_0__.closest)(element, '[data-element-id]', true);\n}\n//# sourceMappingURL=InteractionEvents.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/interaction-events/InteractionEvents.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/interaction-events/index.js": +/*!************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/interaction-events/index.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _InteractionEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InteractionEvents */ \"./node_modules/table-js/lib/features/interaction-events/InteractionEvents.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['interactionEvents'],\n interactionEvents: ['type', _InteractionEvents__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/interaction-events/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/Modeling.js": +/*!*****************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/Modeling.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Modeling)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n/* harmony import */ var _model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../model */ \"./node_modules/table-js/lib/model/index.js\");\n/* harmony import */ var _cmd_AddRowHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cmd/AddRowHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/AddRowHandler.js\");\n/* harmony import */ var _cmd_RemoveRowHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cmd/RemoveRowHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/RemoveRowHandler.js\");\n/* harmony import */ var _cmd_MoveRowHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cmd/MoveRowHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/MoveRowHandler.js\");\n/* harmony import */ var _cmd_AddColHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cmd/AddColHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/AddColHandler.js\");\n/* harmony import */ var _cmd_RemoveColHandler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cmd/RemoveColHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/RemoveColHandler.js\");\n/* harmony import */ var _cmd_MoveColHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cmd/MoveColHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/MoveColHandler.js\");\n/* harmony import */ var _cmd_EditCellHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cmd/EditCellHandler */ \"./node_modules/table-js/lib/features/modeling/cmd/EditCellHandler.js\");\n\n\n\n\n\n\n\n\n\n/**\n * The basic modeling entry point.\n *\n * @param {EventBus} eventBus\n * @param {ElementFactory} elementFactory\n * @param {CommandStack} commandStack\n */\n\nclass Modeling {\n constructor(eventBus, elementFactory, commandStack) {\n this._eventBus = eventBus;\n this._elementFactory = elementFactory;\n this._commandStack = commandStack;\n eventBus.on('table.init', () => {\n // register modeling handlers\n registerHandlers(this.getHandlers(), commandStack);\n });\n }\n\n getHandlers() {\n return Modeling._getHandlers();\n }\n\n static _getHandlers() {\n return {\n 'row.add': _cmd_AddRowHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n 'row.remove': _cmd_RemoveRowHandler__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n 'row.move': _cmd_MoveRowHandler__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n 'col.add': _cmd_AddColHandler__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n 'col.remove': _cmd_RemoveColHandler__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n 'col.move': _cmd_MoveColHandler__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n 'cell.edit': _cmd_EditCellHandler__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n };\n }\n\n _create(type, attrs) {\n if (attrs instanceof _model__WEBPACK_IMPORTED_MODULE_7__.Base) {\n return attrs;\n } else {\n return this._elementFactory.create(type, attrs);\n }\n } // public API\n\n\n addRow(attrs, index) {\n const row = this._create('row', attrs);\n\n const context = {\n row,\n index\n };\n\n this._commandStack.execute('row.add', context);\n\n return row;\n }\n\n removeRow(row) {\n this._commandStack.execute('row.remove', {\n row\n });\n }\n\n moveRow(row, index) {\n const context = {\n row,\n index\n };\n\n this._commandStack.execute('row.move', context);\n }\n\n addCol(attrs, index) {\n const col = this._create('col', attrs);\n\n const context = {\n col,\n index\n };\n\n this._commandStack.execute('col.add', context);\n\n return col;\n }\n\n removeCol(col) {\n this._commandStack.execute('col.remove', {\n col\n });\n }\n\n moveCol(col, index) {\n const context = {\n col,\n index\n };\n\n this._commandStack.execute('col.move', context);\n }\n\n editCell(cell, changedAttrs) {\n const context = {\n cell,\n ...changedAttrs\n };\n\n this._commandStack.execute('cell.edit', context);\n }\n\n}\nModeling.$inject = ['eventBus', 'elementFactory', 'commandStack']; // helpers /////////////\n\n/**\n * Register handlers with the command stack\n *\n * @param {Object} handlers { id -> Handler } map\n * @param {CommandStack} commandStack\n */\n\nfunction registerHandlers(handlers, commandStack) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_8__.forEach)(handlers, function (handler, id) {\n commandStack.registerHandler(id, handler);\n });\n}\n//# sourceMappingURL=Modeling.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/Modeling.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/AddColHandler.js": +/*!**************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/AddColHandler.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddColHandler)\n/* harmony export */ });\n/**\n * A handler that implements column addition.\n */\nclass AddColHandler {\n constructor(sheet, elementFactory) {\n this._sheet = sheet;\n this._elementFactory = elementFactory;\n }\n /**\n * \n */\n\n\n execute(context) {\n const sheet = this._sheet,\n elementFactory = this._elementFactory,\n root = sheet.getRoot();\n let {\n col,\n index\n } = context;\n\n if (typeof index === 'undefined') {\n index = context.index = root.cols.length;\n }\n\n context.newRoot = root;\n\n if (!col.cells.length) {\n root.rows.forEach((row, idx) => {\n const cell = elementFactory.create('cell', {\n row,\n col\n });\n col.cells[idx] = cell;\n });\n }\n\n sheet.addCol(col, index);\n return sheet.getRoot();\n }\n /**\n * \n */\n\n\n revert(context) {\n const {\n col\n } = context;\n const sheet = this._sheet;\n sheet.removeCol(col);\n return sheet.getRoot();\n }\n\n}\nAddColHandler.$inject = ['sheet', 'elementFactory'];\n//# sourceMappingURL=AddColHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/AddColHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/AddRowHandler.js": +/*!**************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/AddRowHandler.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AddRowHandler)\n/* harmony export */ });\n/**\n * A handler that implements row addition.\n */\nclass AddRowHandler {\n constructor(sheet, elementFactory) {\n this._sheet = sheet;\n this._elementFactory = elementFactory;\n }\n /**\n * \n */\n\n\n execute(context) {\n const sheet = this._sheet,\n elementFactory = this._elementFactory,\n root = sheet.getRoot();\n let {\n row,\n index\n } = context;\n\n if (typeof index === 'undefined') {\n index = context.index = root.rows.length;\n }\n\n context.newRoot = root;\n\n if (!row.cells.length) {\n root.cols.forEach((col, idx) => {\n const cell = elementFactory.create('cell', {\n row,\n col\n });\n row.cells[idx] = cell;\n });\n }\n\n sheet.addRow(row, index);\n return sheet.getRoot();\n }\n /**\n * \n */\n\n\n revert(context) {\n const {\n row\n } = context;\n const sheet = this._sheet;\n sheet.removeRow(row);\n return sheet.getRoot();\n }\n\n}\nAddRowHandler.$inject = ['sheet', 'elementFactory'];\n//# sourceMappingURL=AddRowHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/AddRowHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/EditCellHandler.js": +/*!****************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/EditCellHandler.js ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EditCellHandler)\n/* harmony export */ });\n/**\n * A handler that implements cell editing.\n *\n * Per default, this handler does nothing.\n * Interested parties may hook into the edit commands\n * `preExecute` or `postExecute` phases to carry out\n * the actual editing.\n */\nclass EditCellHandler {\n /**\n * \n */\n execute(context) {\n let {\n cell\n } = context;\n return cell;\n }\n /**\n * \n */\n\n\n revert(context) {\n const {\n cell\n } = context;\n return cell;\n }\n\n}\n//# sourceMappingURL=EditCellHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/EditCellHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/MoveColHandler.js": +/*!***************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/MoveColHandler.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveColHandler)\n/* harmony export */ });\n/**\n * A handler that implements col movement.\n */\nclass MoveColHandler {\n constructor(modeling) {\n this._modeling = modeling;\n }\n /**\n * \n */\n\n\n preExecute(context) {\n let {\n col\n } = context;\n\n this._modeling.removeCol(col);\n }\n /**\n * \n */\n\n\n postExecute(context) {\n let {\n col,\n index\n } = context;\n\n this._modeling.addCol(col, index);\n }\n\n}\nMoveColHandler.$inject = ['modeling'];\n//# sourceMappingURL=MoveColHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/MoveColHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/MoveRowHandler.js": +/*!***************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/MoveRowHandler.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MoveRowHandler)\n/* harmony export */ });\n/**\n * A handler that implements row movement.\n */\nclass MoveRowHandler {\n constructor(modeling) {\n this._modeling = modeling;\n }\n /**\n * \n */\n\n\n preExecute(context) {\n let {\n row\n } = context;\n\n this._modeling.removeRow(row);\n }\n /**\n * \n */\n\n\n postExecute(context) {\n let {\n row,\n index\n } = context;\n\n this._modeling.addRow(row, index);\n }\n\n}\nMoveRowHandler.$inject = ['modeling'];\n//# sourceMappingURL=MoveRowHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/MoveRowHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/RemoveColHandler.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/RemoveColHandler.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ RemoveColHandler)\n/* harmony export */ });\n/**\n * A handler that implements column deletion.\n */\nclass RemoveColHandler {\n constructor(sheet, elementFactory) {\n this._sheet = sheet;\n this._elementFactory = elementFactory;\n }\n /**\n * \n */\n\n\n execute(context) {\n const sheet = this._sheet;\n let {\n col\n } = context;\n const root = context.oldRoot = col.root; // retrieve and remember previous col position\n\n const oldIndex = context.oldIndex = root.cols.indexOf(col);\n\n if (oldIndex === -1) {\n throw new Error(`col#${col.id} not in sheet`);\n }\n\n sheet.removeCol(col);\n return sheet.getRoot();\n }\n /**\n * \n */\n\n\n revert(context) {\n const {\n col,\n oldIndex\n } = context;\n const sheet = this._sheet;\n sheet.addCol(col, oldIndex);\n return sheet.getRoot();\n }\n\n}\nRemoveColHandler.$inject = ['sheet', 'elementFactory'];\n//# sourceMappingURL=RemoveColHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/RemoveColHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/modeling/cmd/RemoveRowHandler.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/modeling/cmd/RemoveRowHandler.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ RemoveRowHandler)\n/* harmony export */ });\n/**\n * A handler that implements row deletion.\n */\nclass RemoveRowHandler {\n constructor(sheet) {\n this._sheet = sheet;\n }\n /**\n * \n */\n\n\n execute(context) {\n const sheet = this._sheet,\n root = sheet.getRoot();\n let {\n row\n } = context; // retrieve and remember previous row position\n\n const oldIndex = context.oldIndex = root.rows.indexOf(row);\n context.oldRoot = row.root;\n\n if (oldIndex === -1) {\n throw new Error(`row#${row.id} not in sheet`);\n }\n\n sheet.removeRow(row);\n return sheet.getRoot();\n }\n /**\n * \n */\n\n\n revert(context) {\n const {\n row,\n oldIndex\n } = context;\n const sheet = this._sheet;\n sheet.addRow(row, oldIndex);\n return sheet.getRoot();\n }\n\n}\nRemoveRowHandler.$inject = ['sheet'];\n//# sourceMappingURL=RemoveRowHandler.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/modeling/cmd/RemoveRowHandler.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/rules/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/table-js/lib/features/rules/index.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var diagram_js_lib_features_rules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! diagram-js/lib/features/rules */ \"./node_modules/diagram-js/lib/features/rules/index.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __depends__: [diagram_js_lib_features_rules__WEBPACK_IMPORTED_MODULE_0__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/rules/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/selection/Selection.js": +/*!*******************************************************************!*\ + !*** ./node_modules/table-js/lib/features/selection/Selection.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Selection)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\n/**\n * Allows selecting a table cell. Selected cell will be highlighted.\n */\n\nclass Selection {\n constructor(elementRegistry, eventBus, renderer) {\n this._elementRegistry = elementRegistry;\n this._eventBus = eventBus;\n this._renderer = renderer;\n this._selection = undefined;\n eventBus.on('diagram.clear', () => {\n this._selection = undefined;\n });\n }\n /**\n * Select a table cell.\n *\n * @param {Object|String} element - Element or element ID.\n */\n\n\n select(element) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isString)(element)) {\n element = this._elementRegistry.get(element);\n }\n\n const oldSelection = this._selection; // don't re-select already selected *Ggg*\n\n if (oldSelection === element) {\n return;\n }\n\n this._selection = element;\n\n this._eventBus.fire('selection.changed', {\n oldSelection,\n selection: element\n });\n }\n /**\n * Deselect a table cell.\n */\n\n\n deselect() {\n const oldSelection = this._selection;\n this._selection = undefined;\n\n this._eventBus.fire('selection.changed', {\n oldSelection,\n selection: this._selection\n });\n }\n /**\n * Get the selected cell.\n */\n\n\n get() {\n return this._selection;\n }\n /**\n * Check if a cell is selected.\n */\n\n\n hasSelection() {\n return !!this._selection;\n }\n\n}\nSelection.$inject = ['elementRegistry', 'eventBus', 'renderer'];\n//# sourceMappingURL=Selection.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/selection/Selection.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/selection/SelectionBehavior.js": +/*!***************************************************************************!*\ + !*** ./node_modules/table-js/lib/features/selection/SelectionBehavior.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SelectionBehavior)\n/* harmony export */ });\n/**\r\n * Selects table cells on on left & right click.\r\n */\nclass SelectionBehavior {\n constructor(elementRegistry, eventBus, renderer, selection) {\n this._elementRegistry = elementRegistry;\n this._renderer = renderer;\n this._selection = selection;\n eventBus.on(['cell.click', 'cell.contextmenu'], ({\n id\n }) => {\n const element = elementRegistry.get(id);\n\n if (!element) {\n return;\n }\n\n selection.select(element);\n });\n eventBus.on('row.remove', ({\n row\n }) => {\n const currentSelection = selection.get();\n\n if (!currentSelection) {\n return;\n }\n\n if (row === currentSelection.row) {\n selection.deselect();\n }\n });\n eventBus.on('col.remove', ({\n col\n }) => {\n const currentSelection = selection.get();\n\n if (!currentSelection) {\n return;\n }\n\n if (col === currentSelection.col) {\n selection.deselect();\n }\n });\n }\n\n}\nSelectionBehavior.$inject = ['elementRegistry', 'eventBus', 'renderer', 'selection'];\n//# sourceMappingURL=SelectionBehavior.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/selection/SelectionBehavior.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/features/selection/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/table-js/lib/features/selection/index.js ***! + \***************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Selection */ \"./node_modules/table-js/lib/features/selection/Selection.js\");\n/* harmony import */ var _SelectionBehavior__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectionBehavior */ \"./node_modules/table-js/lib/features/selection/SelectionBehavior.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['selection', 'selectionBehavior'],\n selection: ['type', _Selection__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n selectionBehavior: ['type', _SelectionBehavior__WEBPACK_IMPORTED_MODULE_1__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/features/selection/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/index.js": +/*!********************************************!*\ + !*** ./node_modules/table-js/lib/index.js ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Table */ \"./node_modules/table-js/lib/Table.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_Table__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/model/index.js": +/*!**************************************************!*\ + !*** ./node_modules/table-js/lib/model/index.js ***! + \**************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Base: () => (/* binding */ Base),\n/* harmony export */ Cell: () => (/* binding */ Cell),\n/* harmony export */ Col: () => (/* binding */ Col),\n/* harmony export */ Root: () => (/* binding */ Root),\n/* harmony export */ Row: () => (/* binding */ Row),\n/* harmony export */ create: () => (/* binding */ create)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nclass Base {\n constructor(attrs) {\n (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.assign)(this, attrs);\n /**\n * The object that backs up the shape\n *\n * @name Base#businessObject\n * @type Object\n */\n\n defineProperty(this, 'businessObject', {\n writable: true\n });\n }\n\n}\nclass Root extends Base {\n constructor(attrs) {\n super(attrs);\n /**\n * The tables rows\n *\n * @name Root#rows\n * @type Row\n */\n\n defineProperty(this, 'rows', {\n enumerable: true,\n value: this.rows || []\n });\n /**\n * The tables columns\n *\n * @name Root#cols\n * @type Col\n */\n\n defineProperty(this, 'cols', {\n enumerable: true,\n value: this.cols || []\n });\n }\n\n}\nclass Row extends Base {\n constructor(attrs) {\n super(attrs);\n /**\n * Reference to the table\n *\n * @name Row#root\n * @type Root\n */\n\n defineProperty(this, 'root', {\n writable: true\n });\n /**\n * Reference to contained cells\n *\n * @name Row#cells\n * @type Cell\n */\n\n defineProperty(this, 'cells', {\n enumerable: true,\n value: this.cells || []\n });\n }\n\n}\nclass Col extends Base {\n constructor(attrs) {\n super(attrs);\n /**\n * Reference to the table\n *\n * @name Col#table\n * @type Root\n */\n\n defineProperty(this, 'root', {\n writable: true\n });\n /**\n * Reference to contained cells\n *\n * @name Row#cells\n * @type Cell\n */\n\n defineProperty(this, 'cells', {\n enumerable: true,\n value: this.cells || []\n });\n }\n\n}\nclass Cell extends Base {\n constructor(attrs) {\n super(attrs);\n /**\n * Reference to the row\n *\n * @name Cell#row\n * @type Row\n */\n\n defineProperty(this, 'row', {\n writable: true\n });\n /**\n * Reference to the col\n *\n * @name Cell#col\n * @type Col\n */\n\n defineProperty(this, 'col', {\n writable: true\n });\n }\n\n}\nconst TYPES = {\n root: Root,\n row: Row,\n col: Col,\n cell: Cell\n};\nfunction create(type, attrs) {\n const Type = TYPES[type];\n\n if (!Type) {\n throw new Error('unknown type ' + type);\n }\n\n return new Type(attrs);\n} // helpers /////////////\n\nfunction defineProperty(el, prop, options) {\n Object.defineProperty(el, prop, options);\n}\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/model/index.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/render/ChangeSupport.js": +/*!***********************************************************!*\ + !*** ./node_modules/table-js/lib/render/ChangeSupport.js ***! + \***********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ChangeSupport)\n/* harmony export */ });\nclass ChangeSupport {\n constructor(eventBus) {\n this._listeners = {};\n eventBus.on('elements.changed', ({\n elements\n }) => {\n this.elementsChanged(elements);\n });\n eventBus.on('root.remove', context => {\n const oldRootId = context.root.id;\n\n if (this._listeners[oldRootId]) {\n eventBus.once('root.add', context => {\n const newRootId = context.root.id;\n this.updateId(oldRootId, newRootId);\n });\n }\n });\n eventBus.on('element.updateId', ({\n element,\n newId\n }) => {\n this.updateId(element.id, newId);\n });\n }\n\n elementsChanged(elements) {\n const invoked = {};\n const elementsLength = elements.length;\n\n for (let i = 0; i < elementsLength; i++) {\n const {\n id\n } = elements[i];\n\n if (invoked[id]) {\n return;\n }\n\n invoked[id] = true;\n const listenersLength = this._listeners[id] && this._listeners[id].length;\n\n if (listenersLength) {\n for (let j = 0; j < listenersLength; j++) {\n // listeners might remove themselves before they get called\n this._listeners[id][j] && this._listeners[id][j]();\n }\n }\n }\n }\n\n onElementsChanged(id, listener) {\n if (!this._listeners[id]) {\n this._listeners[id] = [];\n } // avoid push for better performance\n\n\n this._listeners[id][this._listeners[id].length] = listener;\n }\n\n offElementsChanged(id, listener) {\n if (!this._listeners[id]) {\n return;\n }\n\n if (listener) {\n const idx = this._listeners[id].indexOf(listener);\n\n if (idx !== -1) {\n this._listeners[id].splice(idx, 1);\n }\n } else {\n this._listeners[id].length = 0;\n }\n }\n\n updateId(oldId, newId) {\n if (this._listeners[oldId]) {\n this._listeners[newId] = this._listeners[oldId];\n delete this._listeners[oldId];\n }\n }\n\n}\nChangeSupport.$inject = ['eventBus'];\n//# sourceMappingURL=ChangeSupport.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/render/ChangeSupport.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/render/Components.js": +/*!********************************************************!*\ + !*** ./node_modules/table-js/lib/render/Components.js ***! + \********************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Components)\n/* harmony export */ });\n/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ \"./node_modules/min-dash/dist/index.esm.js\");\n\nconst DEFAULT_PRIORITY = 1000;\nclass Components {\n constructor() {\n this._listeners = {};\n }\n\n getComponent(type, context) {\n const listeners = this._listeners[type];\n\n if (!listeners) {\n return;\n }\n\n let component;\n\n for (let i = 0; i < listeners.length; i++) {\n component = listeners[i].callback(context);\n\n if (component) {\n break;\n }\n }\n\n return component;\n }\n\n getComponents(type, context) {\n const listeners = this._listeners[type];\n const components = [];\n\n if (!listeners) {\n return components;\n }\n\n for (let i = 0; i < listeners.length; i++) {\n const component = listeners[i].callback(context);\n\n if (component) {\n components.push(component);\n }\n }\n\n if (!components.length) {\n return components;\n }\n\n return components;\n }\n\n onGetComponent(type, priority, callback) {\n if ((0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isFunction)(priority)) {\n callback = priority;\n priority = DEFAULT_PRIORITY;\n }\n\n if (!(0,min_dash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(priority)) {\n throw new Error('priority must be a number');\n }\n\n const listeners = this._getListeners(type);\n\n let existingListener, idx;\n const newListener = {\n priority,\n callback\n };\n\n for (idx = 0; existingListener = listeners[idx]; idx++) {\n if (existingListener.priority < priority) {\n // prepend newListener at before existingListener\n listeners.splice(idx, 0, newListener);\n return;\n }\n }\n\n listeners.push(newListener);\n }\n\n offGetComponent(type, callback) {\n const listeners = this._getListeners(type);\n\n let listener, listenerCallback, idx;\n\n if (callback) {\n // move through listeners from back to front\n // and remove matching listeners\n for (idx = listeners.length - 1; listener = listeners[idx]; idx--) {\n listenerCallback = listener.callback;\n\n if (listenerCallback === callback) {\n listeners.splice(idx, 1);\n }\n }\n } else {\n // clear listeners\n listeners.length = 0;\n }\n }\n\n _getListeners(type) {\n let listeners = this._listeners[type];\n\n if (!listeners) {\n this._listeners[type] = listeners = [];\n }\n\n return listeners;\n }\n\n}\n//# sourceMappingURL=Components.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/render/Components.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/render/Renderer.js": +/*!******************************************************!*\ + !*** ./node_modules/table-js/lib/render/Renderer.js ***! + \******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Renderer)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n/* harmony import */ var _components_TableComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/TableComponent */ \"./node_modules/table-js/lib/render/components/TableComponent.js\");\n\n\n\nclass Renderer {\n constructor(changeSupport, components, config, eventBus, injector) {\n const {\n container\n } = config;\n this._container = container;\n eventBus.on('root.added', () => {\n (0,inferno__WEBPACK_IMPORTED_MODULE_0__.render)((0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, _components_TableComponent__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n \"injector\": injector\n }), container);\n });\n eventBus.on('root.remove', () => {\n (0,inferno__WEBPACK_IMPORTED_MODULE_0__.render)(null, container);\n });\n }\n\n getContainer() {\n return this._container;\n }\n\n}\nRenderer.$inject = ['changeSupport', 'components', 'config.renderer', 'eventBus', 'injector'];\n//# sourceMappingURL=Renderer.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/render/Renderer.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/render/components/TableComponent.js": +/*!***********************************************************************!*\ + !*** ./node_modules/table-js/lib/render/components/TableComponent.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TableComponent)\n/* harmony export */ });\n/* harmony import */ var inferno__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inferno */ \"./node_modules/inferno/index.esm.js\");\n\n\nclass TableComponent extends inferno__WEBPACK_IMPORTED_MODULE_0__.Component {\n constructor(props) {\n super(props);\n const injector = this._injector = props.injector;\n this._sheet = injector.get('sheet');\n this._changeSupport = injector.get('changeSupport');\n this._components = injector.get('components');\n this._eventBus = injector.get('eventBus');\n const throttle = injector.get('throttle');\n this.onElementsChanged = this.onElementsChanged.bind(this);\n this.onScroll = throttle(this.onScroll.bind(this));\n }\n\n onElementsChanged() {\n this.forceUpdate();\n }\n\n onScroll() {\n this._eventBus.fire('sheet.scroll');\n }\n\n getChildContext() {\n return {\n changeSupport: this._changeSupport,\n components: this._components,\n injector: this._injector\n };\n }\n\n componentWillMount() {\n const {\n id\n } = this._sheet.getRoot();\n\n this._changeSupport.onElementsChanged(id, this.onElementsChanged);\n }\n\n componentWillUnmount() {\n const {\n id\n } = this._sheet.getRoot();\n\n this._changeSupport.offElementsChanged(id, this.onElementsChanged);\n }\n\n render() {\n const {\n rows,\n cols\n } = this._sheet.getRoot();\n\n const beforeTableComponents = this._components.getComponents('table.before');\n\n const afterTableComponents = this._components.getComponents('table.after');\n\n const Head = this._components.getComponent('table.head');\n\n const Body = this._components.getComponent('table.body');\n\n const Foot = this._components.getComponent('table.foot');\n\n return (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"tjs-container\", [beforeTableComponents && beforeTableComponents.map((Component, index) => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index)), (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"div\", \"tjs-table-container\", (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createVNode)(1, \"table\", \"tjs-table\", [Head && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Head, {\n \"rows\": rows,\n \"cols\": cols\n }), Body && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Body, {\n \"rows\": rows,\n \"cols\": cols\n }), Foot && (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Foot, {\n \"rows\": rows,\n \"cols\": cols\n })], 0), 2, {\n \"onScroll\": this.onScroll\n }), afterTableComponents && afterTableComponents.map((Component, index) => (0,inferno__WEBPACK_IMPORTED_MODULE_0__.createComponentVNode)(2, Component, null, index))], 0);\n }\n\n}\n//# sourceMappingURL=TableComponent.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/render/components/TableComponent.js?"); + +/***/ }), + +/***/ "./node_modules/table-js/lib/render/index.js": +/*!***************************************************!*\ + !*** ./node_modules/table-js/lib/render/index.js ***! + \***************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ChangeSupport__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ChangeSupport */ \"./node_modules/table-js/lib/render/ChangeSupport.js\");\n/* harmony import */ var _Components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components */ \"./node_modules/table-js/lib/render/Components.js\");\n/* harmony import */ var _Renderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Renderer */ \"./node_modules/table-js/lib/render/Renderer.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n __init__: ['changeSupport', 'components', 'renderer'],\n changeSupport: ['type', _ChangeSupport__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n components: ['type', _Components__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n renderer: ['type', _Renderer__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]\n});\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/table-js/lib/render/index.js?"); + +/***/ }), + +/***/ "./node_modules/tiny-svg/dist/index.esm.js": +/*!*************************************************!*\ + !*** ./node_modules/tiny-svg/dist/index.esm.js ***! + \*************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ append: () => (/* binding */ append),\n/* harmony export */ appendTo: () => (/* binding */ appendTo),\n/* harmony export */ attr: () => (/* binding */ attr),\n/* harmony export */ classes: () => (/* binding */ classes),\n/* harmony export */ clear: () => (/* binding */ clear),\n/* harmony export */ clone: () => (/* binding */ clone),\n/* harmony export */ create: () => (/* binding */ create),\n/* harmony export */ createMatrix: () => (/* binding */ createMatrix),\n/* harmony export */ createPoint: () => (/* binding */ createPoint),\n/* harmony export */ createTransform: () => (/* binding */ createTransform),\n/* harmony export */ innerSVG: () => (/* binding */ innerSVG),\n/* harmony export */ off: () => (/* binding */ off),\n/* harmony export */ on: () => (/* binding */ on),\n/* harmony export */ prepend: () => (/* binding */ prepend),\n/* harmony export */ prependTo: () => (/* binding */ prependTo),\n/* harmony export */ remove: () => (/* binding */ remove),\n/* harmony export */ replace: () => (/* binding */ replace),\n/* harmony export */ select: () => (/* binding */ select),\n/* harmony export */ selectAll: () => (/* binding */ selectAll),\n/* harmony export */ transform: () => (/* binding */ transform)\n/* harmony export */ });\nfunction ensureImported(element, target) {\n\n if (element.ownerDocument !== target.ownerDocument) {\n try {\n\n // may fail on webkit\n return target.ownerDocument.importNode(element, true);\n } catch (e) {\n\n // ignore\n }\n }\n\n return element;\n}\n\n/**\n * appendTo utility\n */\n\n\n/**\n * Append a node to a target element and return the appended node.\n *\n * @param {SVGElement} element\n * @param {SVGElement} target\n *\n * @return {SVGElement} the appended node\n */\nfunction appendTo(element, target) {\n return target.appendChild(ensureImported(element, target));\n}\n\n/**\n * append utility\n */\n\n\n/**\n * Append a node to an element\n *\n * @param {SVGElement} element\n * @param {SVGElement} node\n *\n * @return {SVGElement} the element\n */\nfunction append(target, node) {\n appendTo(node, target);\n return target;\n}\n\n/**\n * attribute accessor utility\n */\n\nvar LENGTH_ATTR = 2;\n\nvar CSS_PROPERTIES = {\n 'alignment-baseline': 1,\n 'baseline-shift': 1,\n 'clip': 1,\n 'clip-path': 1,\n 'clip-rule': 1,\n 'color': 1,\n 'color-interpolation': 1,\n 'color-interpolation-filters': 1,\n 'color-profile': 1,\n 'color-rendering': 1,\n 'cursor': 1,\n 'direction': 1,\n 'display': 1,\n 'dominant-baseline': 1,\n 'enable-background': 1,\n 'fill': 1,\n 'fill-opacity': 1,\n 'fill-rule': 1,\n 'filter': 1,\n 'flood-color': 1,\n 'flood-opacity': 1,\n 'font': 1,\n 'font-family': 1,\n 'font-size': LENGTH_ATTR,\n 'font-size-adjust': 1,\n 'font-stretch': 1,\n 'font-style': 1,\n 'font-variant': 1,\n 'font-weight': 1,\n 'glyph-orientation-horizontal': 1,\n 'glyph-orientation-vertical': 1,\n 'image-rendering': 1,\n 'kerning': 1,\n 'letter-spacing': 1,\n 'lighting-color': 1,\n 'marker': 1,\n 'marker-end': 1,\n 'marker-mid': 1,\n 'marker-start': 1,\n 'mask': 1,\n 'opacity': 1,\n 'overflow': 1,\n 'pointer-events': 1,\n 'shape-rendering': 1,\n 'stop-color': 1,\n 'stop-opacity': 1,\n 'stroke': 1,\n 'stroke-dasharray': 1,\n 'stroke-dashoffset': 1,\n 'stroke-linecap': 1,\n 'stroke-linejoin': 1,\n 'stroke-miterlimit': 1,\n 'stroke-opacity': 1,\n 'stroke-width': LENGTH_ATTR,\n 'text-anchor': 1,\n 'text-decoration': 1,\n 'text-rendering': 1,\n 'unicode-bidi': 1,\n 'visibility': 1,\n 'word-spacing': 1,\n 'writing-mode': 1\n};\n\n\nfunction getAttribute(node, name) {\n if (CSS_PROPERTIES[name]) {\n return node.style[name];\n } else {\n return node.getAttributeNS(null, name);\n }\n}\n\nfunction setAttribute(node, name, value) {\n var hyphenated = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n\n var type = CSS_PROPERTIES[hyphenated];\n\n if (type) {\n\n // append pixel unit, unless present\n if (type === LENGTH_ATTR && typeof value === 'number') {\n value = String(value) + 'px';\n }\n\n node.style[hyphenated] = value;\n } else {\n node.setAttributeNS(null, name, value);\n }\n}\n\nfunction setAttributes(node, attrs) {\n\n var names = Object.keys(attrs), i, name;\n\n for (i = 0, name; (name = names[i]); i++) {\n setAttribute(node, name, attrs[name]);\n }\n}\n\n/**\n * Gets or sets raw attributes on a node.\n *\n * @param {SVGElement} node\n * @param {Object} [attrs]\n * @param {String} [name]\n * @param {String} [value]\n *\n * @return {String}\n */\nfunction attr(node, name, value) {\n if (typeof name === 'string') {\n if (value !== undefined) {\n setAttribute(node, name, value);\n } else {\n return getAttribute(node, name);\n }\n } else {\n setAttributes(node, name);\n }\n\n return node;\n}\n\n/**\r\n * Taken from https://github.com/component/classes\r\n *\r\n * Without the component bits.\r\n */\r\n\r\n/**\r\n * toString reference.\r\n */\r\n\r\nconst toString = Object.prototype.toString;\r\n\r\n/**\r\n * Wrap `el` in a `ClassList`.\r\n *\r\n * @param {Element} el\r\n * @return {ClassList}\r\n * @api public\r\n */\r\n\r\nfunction classes(el) {\r\n return new ClassList(el);\r\n}\r\n\r\nfunction ClassList(el) {\r\n if (!el || !el.nodeType) {\r\n throw new Error('A DOM element reference is required');\r\n }\r\n this.el = el;\r\n this.list = el.classList;\r\n}\r\n\r\n/**\r\n * Add class `name` if not already present.\r\n *\r\n * @param {String} name\r\n * @return {ClassList}\r\n * @api public\r\n */\r\n\r\nClassList.prototype.add = function(name) {\r\n this.list.add(name);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove class `name` when present, or\r\n * pass a regular expression to remove\r\n * any which match.\r\n *\r\n * @param {String|RegExp} name\r\n * @return {ClassList}\r\n * @api public\r\n */\r\n\r\nClassList.prototype.remove = function(name) {\r\n if ('[object RegExp]' == toString.call(name)) {\r\n return this.removeMatching(name);\r\n }\r\n\r\n this.list.remove(name);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove all classes matching `re`.\r\n *\r\n * @param {RegExp} re\r\n * @return {ClassList}\r\n * @api private\r\n */\r\n\r\nClassList.prototype.removeMatching = function(re) {\r\n const arr = this.array();\r\n for (let i = 0; i < arr.length; i++) {\r\n if (re.test(arr[i])) {\r\n this.remove(arr[i]);\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Toggle class `name`, can force state via `force`.\r\n *\r\n * For browsers that support classList, but do not support `force` yet,\r\n * the mistake will be detected and corrected.\r\n *\r\n * @param {String} name\r\n * @param {Boolean} force\r\n * @return {ClassList}\r\n * @api public\r\n */\r\n\r\nClassList.prototype.toggle = function(name, force) {\r\n if ('undefined' !== typeof force) {\r\n if (force !== this.list.toggle(name, force)) {\r\n this.list.toggle(name); // toggle again to correct\r\n }\r\n } else {\r\n this.list.toggle(name);\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Return an array of classes.\r\n *\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nClassList.prototype.array = function() {\r\n return Array.from(this.list);\r\n};\r\n\r\n/**\r\n * Check if class `name` is present.\r\n *\r\n * @param {String} name\r\n * @return {ClassList}\r\n * @api public\r\n */\r\n\r\nClassList.prototype.has =\r\n ClassList.prototype.contains = function(name) {\r\n return this.list.contains(name);\r\n };\n\n/**\n * Clear utility\n */\n\n/**\n * Removes all children from the given element\n *\n * @param {SVGElement} element\n * @return {Element} the element (for chaining)\n */\nfunction clear(element) {\n var child;\n\n while ((child = element.firstChild)) {\n element.removeChild(child);\n }\n\n return element;\n}\n\nfunction clone(element) {\n return element.cloneNode(true);\n}\n\nvar ns = {\n svg: 'http://www.w3.org/2000/svg'\n};\n\n/**\n * DOM parsing utility\n */\n\n\nvar SVG_START = '' + svg + '';\n unwrap = true;\n }\n\n var parsed = parseDocument(svg);\n\n if (!unwrap) {\n return parsed;\n }\n\n var fragment = document.createDocumentFragment();\n\n var parent = parsed.firstChild;\n\n while (parent.firstChild) {\n fragment.appendChild(parent.firstChild);\n }\n\n return fragment;\n}\n\nfunction parseDocument(svg) {\n\n var parser;\n\n // parse\n parser = new DOMParser();\n parser.async = false;\n\n return parser.parseFromString(svg, 'text/xml');\n}\n\n/**\n * Create utility for SVG elements\n */\n\n\n\n/**\n * Create a specific type from name or SVG markup.\n *\n * @param {String} name the name or markup of the element\n * @param {Object} [attrs] attributes to set on the element\n *\n * @returns {SVGElement}\n */\nfunction create(name, attrs) {\n var element;\n\n name = name.trim();\n\n if (name.charAt(0) === '<') {\n element = parse(name).firstChild;\n element = document.importNode(element, true);\n } else {\n element = document.createElementNS(ns.svg, name);\n }\n\n if (attrs) {\n attr(element, attrs);\n }\n\n return element;\n}\n\n/**\n * Events handling utility\n */\n\nfunction on(node, event, listener, useCapture) {\n node.addEventListener(event, listener, useCapture);\n}\n\nfunction off(node, event, listener, useCapture) {\n node.removeEventListener(event, listener, useCapture);\n}\n\n/**\n * Geometry helpers\n */\n\n\n// fake node used to instantiate svg geometry elements\nvar node = null;\n\nfunction getNode() {\n if (node === null) {\n node = create('svg');\n }\n\n return node;\n}\n\nfunction extend(object, props) {\n var i, k, keys = Object.keys(props);\n\n for (i = 0; (k = keys[i]); i++) {\n object[k] = props[k];\n }\n\n return object;\n}\n\n\nfunction createPoint(x, y) {\n var point = getNode().createSVGPoint();\n\n switch (arguments.length) {\n case 0:\n return point;\n case 2:\n x = {\n x: x,\n y: y\n };\n break;\n }\n\n return extend(point, x);\n}\n\n/**\n * Create matrix via args.\n *\n * @example\n *\n * createMatrix({ a: 1, b: 1 });\n * createMatrix();\n * createMatrix(1, 2, 0, 0, 30, 20);\n *\n * @return {SVGMatrix}\n */\nfunction createMatrix(a, b, c, d, e, f) {\n var matrix = getNode().createSVGMatrix();\n\n switch (arguments.length) {\n case 0:\n return matrix;\n case 1:\n return extend(matrix, a);\n case 6:\n return extend(matrix, {\n a: a,\n b: b,\n c: c,\n d: d,\n e: e,\n f: f\n });\n }\n}\n\nfunction createTransform(matrix) {\n if (matrix) {\n return getNode().createSVGTransformFromMatrix(matrix);\n } else {\n return getNode().createSVGTransform();\n }\n}\n\n/**\n * Serialization util\n */\n\nvar TEXT_ENTITIES = /([&<>]{1})/g;\nvar ATTR_ENTITIES = /([\\n\\r\"]{1})/g;\n\nvar ENTITY_REPLACEMENT = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '\\''\n};\n\nfunction escape(str, pattern) {\n\n function replaceFn(match, entity) {\n return ENTITY_REPLACEMENT[entity] || entity;\n }\n\n return str.replace(pattern, replaceFn);\n}\n\nfunction serialize(node, output) {\n\n var i, len, attrMap, attrNode, childNodes;\n\n switch (node.nodeType) {\n\n // TEXT\n case 3:\n\n // replace special XML characters\n output.push(escape(node.textContent, TEXT_ENTITIES));\n break;\n\n // ELEMENT\n case 1:\n output.push('<', node.tagName);\n\n if (node.hasAttributes()) {\n attrMap = node.attributes;\n for (i = 0, len = attrMap.length; i < len; ++i) {\n attrNode = attrMap.item(i);\n output.push(' ', attrNode.name, '=\"', escape(attrNode.value, ATTR_ENTITIES), '\"');\n }\n }\n\n if (node.hasChildNodes()) {\n output.push('>');\n childNodes = node.childNodes;\n for (i = 0, len = childNodes.length; i < len; ++i) {\n serialize(childNodes.item(i), output);\n }\n output.push('');\n } else {\n output.push('/>');\n }\n break;\n\n // COMMENT\n case 8:\n output.push('');\n break;\n\n // CDATA\n case 4:\n output.push('');\n break;\n\n default:\n throw new Error('unable to handle node ' + node.nodeType);\n }\n\n return output;\n}\n\n/**\n * innerHTML like functionality for SVG elements.\n * based on innerSVG (https://code.google.com/p/innersvg)\n */\n\n\n\nfunction set(element, svg) {\n\n var parsed = parse(svg);\n\n // clear element contents\n clear(element);\n\n if (!svg) {\n return;\n }\n\n if (!isFragment(parsed)) {\n\n // extract from parsed document\n parsed = parsed.documentElement;\n }\n\n var nodes = slice(parsed.childNodes);\n\n // import + append each node\n for (var i = 0; i < nodes.length; i++) {\n appendTo(nodes[i], element);\n }\n\n}\n\nfunction get(element) {\n var child = element.firstChild,\n output = [];\n\n while (child) {\n serialize(child, output);\n child = child.nextSibling;\n }\n\n return output.join('');\n}\n\nfunction isFragment(node) {\n return node.nodeName === '#document-fragment';\n}\n\nfunction innerSVG(element, svg) {\n\n if (svg !== undefined) {\n\n try {\n set(element, svg);\n } catch (e) {\n throw new Error('error parsing SVG: ' + e.message);\n }\n\n return element;\n } else {\n return get(element);\n }\n}\n\n\nfunction slice(arr) {\n return Array.prototype.slice.call(arr);\n}\n\n/**\n * Selection utilities\n */\n\nfunction select(node, selector) {\n return node.querySelector(selector);\n}\n\nfunction selectAll(node, selector) {\n var nodes = node.querySelectorAll(selector);\n\n return [].map.call(nodes, function(element) {\n return element;\n });\n}\n\n/**\n * prependTo utility\n */\n\n\n/**\n * Prepend a node to a target element and return the prepended node.\n *\n * @param {SVGElement} node\n * @param {SVGElement} target\n *\n * @return {SVGElement} the prepended node\n */\nfunction prependTo(node, target) {\n return target.insertBefore(ensureImported(node, target), target.firstChild || null);\n}\n\n/**\n * prepend utility\n */\n\n\n/**\n * Prepend a node to a target element\n *\n * @param {SVGElement} target\n * @param {SVGElement} node\n *\n * @return {SVGElement} the target element\n */\nfunction prepend(target, node) {\n prependTo(node, target);\n return target;\n}\n\nfunction remove(element) {\n var parent = element.parentNode;\n\n if (parent) {\n parent.removeChild(element);\n }\n\n return element;\n}\n\n/**\n * Replace utility\n */\n\n\nfunction replace(element, replacement) {\n element.parentNode.replaceChild(ensureImported(replacement, element), element);\n return replacement;\n}\n\n/**\n * transform accessor utility\n */\n\nfunction wrapMatrix(transformList, transform) {\n if (transform instanceof SVGMatrix) {\n return transformList.createSVGTransformFromMatrix(transform);\n }\n\n return transform;\n}\n\n\nfunction setTransforms(transformList, transforms) {\n var i, t;\n\n transformList.clear();\n\n for (i = 0; (t = transforms[i]); i++) {\n transformList.appendItem(wrapMatrix(transformList, t));\n }\n}\n\n/**\n * Get or set the transforms on the given node.\n *\n * @param {SVGElement} node\n * @param {SVGTransform|SVGMatrix|Array} [transforms]\n *\n * @return {SVGTransform} the consolidated transform\n */\nfunction transform(node, transforms) {\n var transformList = node.transform.baseVal;\n\n if (transforms) {\n\n if (!Array.isArray(transforms)) {\n transforms = [ transforms ];\n }\n\n setTransforms(transformList, transforms);\n }\n\n return transformList.consolidate();\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/tiny-svg/dist/index.esm.js?"); + +/***/ }), + +/***/ "./src/app.js": +/*!********************!*\ + !*** ./src/app.js ***! + \********************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _resources_dish_decision_dmn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../resources/dish-decision.dmn */ \"./resources/dish-decision.dmn\");\n/* harmony import */ var dmn_js_lib_Modeler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dmn-js/lib/Modeler */ \"./node_modules/dmn-js/lib/Modeler.js\");\n\n\n\n\n\nasync function asyncImportXml(xml) {\n const dmnJS = new dmn_js_lib_Modeler__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n container: '#canvas'\n });\n\n try {\n const { warnings } = await dmnJS.importXML(xml);\n\n if (warnings.length) {\n console.log('import with warnings', warnings);\n } else {\n console.log('import successful');\n }\n\n dmnJS\n .getActiveViewer()\n .get('canvas')\n .zoom('fit-viewport');\n } catch (err) {\n console.log('something went wrong:', err);\n }\n\n dmnJS.getActiveViewer().on('elements.changed', function() {\n dmnJS.saveXML({format:true}).then(r => console.log(r.xml));\n });\n}\n\nasyncImportXml(_resources_dish_decision_dmn__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./src/app.js?"); + +/***/ }), + +/***/ "./node_modules/@codemirror/autocomplete/dist/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/@codemirror/autocomplete/dist/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ CompletionContext: () => (/* binding */ CompletionContext),\n/* harmony export */ acceptCompletion: () => (/* binding */ acceptCompletion),\n/* harmony export */ autocompletion: () => (/* binding */ autocompletion),\n/* harmony export */ clearSnippet: () => (/* binding */ clearSnippet),\n/* harmony export */ closeBrackets: () => (/* binding */ closeBrackets),\n/* harmony export */ closeBracketsKeymap: () => (/* binding */ closeBracketsKeymap),\n/* harmony export */ closeCompletion: () => (/* binding */ closeCompletion),\n/* harmony export */ completeAnyWord: () => (/* binding */ completeAnyWord),\n/* harmony export */ completeFromList: () => (/* binding */ completeFromList),\n/* harmony export */ completionKeymap: () => (/* binding */ completionKeymap),\n/* harmony export */ completionStatus: () => (/* binding */ completionStatus),\n/* harmony export */ currentCompletions: () => (/* binding */ currentCompletions),\n/* harmony export */ deleteBracketPair: () => (/* binding */ deleteBracketPair),\n/* harmony export */ hasNextSnippetField: () => (/* binding */ hasNextSnippetField),\n/* harmony export */ hasPrevSnippetField: () => (/* binding */ hasPrevSnippetField),\n/* harmony export */ ifIn: () => (/* binding */ ifIn),\n/* harmony export */ ifNotIn: () => (/* binding */ ifNotIn),\n/* harmony export */ insertBracket: () => (/* binding */ insertBracket),\n/* harmony export */ insertCompletionText: () => (/* binding */ insertCompletionText),\n/* harmony export */ moveCompletionSelection: () => (/* binding */ moveCompletionSelection),\n/* harmony export */ nextSnippetField: () => (/* binding */ nextSnippetField),\n/* harmony export */ pickedCompletion: () => (/* binding */ pickedCompletion),\n/* harmony export */ prevSnippetField: () => (/* binding */ prevSnippetField),\n/* harmony export */ selectedCompletion: () => (/* binding */ selectedCompletion),\n/* harmony export */ selectedCompletionIndex: () => (/* binding */ selectedCompletionIndex),\n/* harmony export */ setSelectedCompletion: () => (/* binding */ setSelectedCompletion),\n/* harmony export */ snippet: () => (/* binding */ snippet),\n/* harmony export */ snippetCompletion: () => (/* binding */ snippetCompletion),\n/* harmony export */ snippetKeymap: () => (/* binding */ snippetKeymap),\n/* harmony export */ startCompletion: () => (/* binding */ startCompletion)\n/* harmony export */ });\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n\n\n\n\n/**\nAn instance of this is passed to completion source functions.\n*/\nclass CompletionContext {\n /**\n Create a new completion context. (Mostly useful for testing\n completion sources—in the editor, the extension will create\n these for you.)\n */\n constructor(\n /**\n The editor state that the completion happens in.\n */\n state, \n /**\n The position at which the completion is happening.\n */\n pos, \n /**\n Indicates whether completion was activated explicitly, or\n implicitly by typing. The usual way to respond to this is to\n only return completions when either there is part of a\n completable entity before the cursor, or `explicit` is true.\n */\n explicit, \n /**\n The editor view. May be undefined if the context was created\n in a situation where there is no such view available, such as\n in synchronous updates via\n [`CompletionResult.update`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.update)\n or when called by test code.\n */\n view) {\n this.state = state;\n this.pos = pos;\n this.explicit = explicit;\n this.view = view;\n /**\n @internal\n */\n this.abortListeners = [];\n }\n /**\n Get the extent, content, and (if there is a token) type of the\n token before `this.pos`.\n */\n tokenBefore(types) {\n let token = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(this.state).resolveInner(this.pos, -1);\n while (token && types.indexOf(token.name) < 0)\n token = token.parent;\n return token ? { from: token.from, to: this.pos,\n text: this.state.sliceDoc(token.from, this.pos),\n type: token.type } : null;\n }\n /**\n Get the match of the given expression directly before the\n cursor.\n */\n matchBefore(expr) {\n let line = this.state.doc.lineAt(this.pos);\n let start = Math.max(line.from, this.pos - 250);\n let str = line.text.slice(start - line.from, this.pos - line.from);\n let found = str.search(ensureAnchor(expr, false));\n return found < 0 ? null : { from: start + found, to: this.pos, text: str.slice(found) };\n }\n /**\n Yields true when the query has been aborted. Can be useful in\n asynchronous queries to avoid doing work that will be ignored.\n */\n get aborted() { return this.abortListeners == null; }\n /**\n Allows you to register abort handlers, which will be called when\n the query is\n [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).\n */\n addEventListener(type, listener) {\n if (type == \"abort\" && this.abortListeners)\n this.abortListeners.push(listener);\n }\n}\nfunction toSet(chars) {\n let flat = Object.keys(chars).join(\"\");\n let words = /\\w/.test(flat);\n if (words)\n flat = flat.replace(/\\w/g, \"\");\n return `[${words ? \"\\\\w\" : \"\"}${flat.replace(/[^\\w\\s]/g, \"\\\\$&\")}]`;\n}\nfunction prefixMatch(options) {\n let first = Object.create(null), rest = Object.create(null);\n for (let { label } of options) {\n first[label[0]] = true;\n for (let i = 1; i < label.length; i++)\n rest[label[i]] = true;\n }\n let source = toSet(first) + toSet(rest) + \"*$\";\n return [new RegExp(\"^\" + source), new RegExp(source)];\n}\n/**\nGiven a a fixed array of options, return an autocompleter that\ncompletes them.\n*/\nfunction completeFromList(list) {\n let options = list.map(o => typeof o == \"string\" ? { label: o } : o);\n let [validFor, match] = options.every(o => /^\\w+$/.test(o.label)) ? [/\\w*$/, /\\w+$/] : prefixMatch(options);\n return (context) => {\n let token = context.matchBefore(match);\n return token || context.explicit ? { from: token ? token.from : context.pos, options, validFor } : null;\n };\n}\n/**\nWrap the given completion source so that it will only fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifIn(nodes, source) {\n return (context) => {\n for (let pos = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return source(context);\n if (pos.type.isTop)\n break;\n }\n return null;\n };\n}\n/**\nWrap the given completion source so that it will not fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifNotIn(nodes, source) {\n return (context) => {\n for (let pos = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return null;\n if (pos.type.isTop)\n break;\n }\n return source(context);\n };\n}\nclass Option {\n constructor(completion, source, match, score) {\n this.completion = completion;\n this.source = source;\n this.match = match;\n this.score = score;\n }\n}\nfunction cur(state) { return state.selection.main.from; }\n// Make sure the given regexp has a $ at its end and, if `start` is\n// true, a ^ at its start.\nfunction ensureAnchor(expr, start) {\n var _a;\n let { source } = expr;\n let addStart = start && source[0] != \"^\", addEnd = source[source.length - 1] != \"$\";\n if (!addStart && !addEnd)\n return expr;\n return new RegExp(`${addStart ? \"^\" : \"\"}(?:${source})${addEnd ? \"$\" : \"\"}`, (_a = expr.flags) !== null && _a !== void 0 ? _a : (expr.ignoreCase ? \"i\" : \"\"));\n}\n/**\nThis annotation is added to transactions that are produced by\npicking a completion.\n*/\nconst pickedCompletion = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Annotation.define();\n/**\nHelper function that returns a transaction spec which inserts a\ncompletion's text in the main selection range, and any other\nselection range that has the same text in front of it.\n*/\nfunction insertCompletionText(state, text, from, to) {\n let { main } = state.selection, fromOff = from - main.from, toOff = to - main.from;\n return Object.assign(Object.assign({}, state.changeByRange(range => {\n if (range != main && from != to &&\n state.sliceDoc(range.from + fromOff, range.from + toOff) != state.sliceDoc(from, to))\n return { range };\n return {\n changes: { from: range.from + fromOff, to: to == main.from ? range.to : range.from + toOff, insert: text },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.from + fromOff + text.length)\n };\n })), { scrollIntoView: true, userEvent: \"input.complete\" });\n}\nconst SourceCache = /*@__PURE__*/new WeakMap();\nfunction asSource(source) {\n if (!Array.isArray(source))\n return source;\n let known = SourceCache.get(source);\n if (!known)\n SourceCache.set(source, known = completeFromList(source));\n return known;\n}\nconst startCompletionEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\nconst closeCompletionEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\n\n// A pattern matcher for fuzzy completion matching. Create an instance\n// once for a pattern, and then use that to match any number of\n// completions.\nclass FuzzyMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.chars = [];\n this.folded = [];\n // Buffers reused by calls to `match` to track matched character\n // positions.\n this.any = [];\n this.precise = [];\n this.byWord = [];\n this.score = 0;\n this.matched = [];\n for (let p = 0; p < pattern.length;) {\n let char = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(pattern, p), size = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(char);\n this.chars.push(char);\n let part = pattern.slice(p, p + size), upper = part.toUpperCase();\n this.folded.push((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(upper == part ? part.toLowerCase() : upper, 0));\n p += size;\n }\n this.astral = pattern.length != this.chars.length;\n }\n ret(score, matched) {\n this.score = score;\n this.matched = matched;\n return this;\n }\n // Matches a given word (completion) against the pattern (input).\n // Will return a boolean indicating whether there was a match and,\n // on success, set `this.score` to the score, `this.matched` to an\n // array of `from, to` pairs indicating the matched parts of `word`.\n //\n // The score is a number that is more negative the worse the match\n // is. See `Penalty` above.\n match(word) {\n if (this.pattern.length == 0)\n return this.ret(-100 /* Penalty.NotFull */, []);\n if (word.length < this.pattern.length)\n return null;\n let { chars, folded, any, precise, byWord } = this;\n // For single-character queries, only match when they occur right\n // at the start\n if (chars.length == 1) {\n let first = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, 0), firstSize = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(first);\n let score = firstSize == word.length ? 0 : -100 /* Penalty.NotFull */;\n if (first == chars[0]) ;\n else if (first == folded[0])\n score += -200 /* Penalty.CaseFold */;\n else\n return null;\n return this.ret(score, [0, firstSize]);\n }\n let direct = word.indexOf(this.pattern);\n if (direct == 0)\n return this.ret(word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */, [0, this.pattern.length]);\n let len = chars.length, anyTo = 0;\n if (direct < 0) {\n for (let i = 0, e = Math.min(word.length, 200); i < e && anyTo < len;) {\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, i);\n if (next == chars[anyTo] || next == folded[anyTo])\n any[anyTo++] = i;\n i += (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(next);\n }\n // No match, exit immediately\n if (anyTo < len)\n return null;\n }\n // This tracks the extent of the precise (non-folded, not\n // necessarily adjacent) match\n let preciseTo = 0;\n // Tracks whether there is a match that hits only characters that\n // appear to be starting words. `byWordFolded` is set to true when\n // a case folded character is encountered in such a match\n let byWordTo = 0, byWordFolded = false;\n // If we've found a partial adjacent match, these track its state\n let adjacentTo = 0, adjacentStart = -1, adjacentEnd = -1;\n let hasLower = /[a-z]/.test(word), wordAdjacent = true;\n // Go over the option's text, scanning for the various kinds of matches\n for (let i = 0, e = Math.min(word.length, 200), prevType = 0 /* Tp.NonWord */; i < e && byWordTo < len;) {\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, i);\n if (direct < 0) {\n if (preciseTo < len && next == chars[preciseTo])\n precise[preciseTo++] = i;\n if (adjacentTo < len) {\n if (next == chars[adjacentTo] || next == folded[adjacentTo]) {\n if (adjacentTo == 0)\n adjacentStart = i;\n adjacentEnd = i + 1;\n adjacentTo++;\n }\n else {\n adjacentTo = 0;\n }\n }\n }\n let ch, type = next < 0xff\n ? (next >= 48 && next <= 57 || next >= 97 && next <= 122 ? 2 /* Tp.Lower */ : next >= 65 && next <= 90 ? 1 /* Tp.Upper */ : 0 /* Tp.NonWord */)\n : ((ch = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.fromCodePoint)(next)) != ch.toLowerCase() ? 1 /* Tp.Upper */ : ch != ch.toUpperCase() ? 2 /* Tp.Lower */ : 0 /* Tp.NonWord */);\n if (!i || type == 1 /* Tp.Upper */ && hasLower || prevType == 0 /* Tp.NonWord */ && type != 0 /* Tp.NonWord */) {\n if (chars[byWordTo] == next || (folded[byWordTo] == next && (byWordFolded = true)))\n byWord[byWordTo++] = i;\n else if (byWord.length)\n wordAdjacent = false;\n }\n prevType = type;\n i += (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(next);\n }\n if (byWordTo == len && byWord[0] == 0 && wordAdjacent)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0), byWord, word);\n if (adjacentTo == len && adjacentStart == 0)\n return this.ret(-200 /* Penalty.CaseFold */ - word.length + (adjacentEnd == word.length ? 0 : -100 /* Penalty.NotFull */), [0, adjacentEnd]);\n if (direct > -1)\n return this.ret(-700 /* Penalty.NotStart */ - word.length, [direct, direct + this.pattern.length]);\n if (adjacentTo == len)\n return this.ret(-200 /* Penalty.CaseFold */ + -700 /* Penalty.NotStart */ - word.length, [adjacentStart, adjacentEnd]);\n if (byWordTo == len)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0) + -700 /* Penalty.NotStart */ +\n (wordAdjacent ? 0 : -1100 /* Penalty.Gap */), byWord, word);\n return chars.length == 2 ? null\n : this.result((any[0] ? -700 /* Penalty.NotStart */ : 0) + -200 /* Penalty.CaseFold */ + -1100 /* Penalty.Gap */, any, word);\n }\n result(score, positions, word) {\n let result = [], i = 0;\n for (let pos of positions) {\n let to = pos + (this.astral ? (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(word, pos)) : 1);\n if (i && result[i - 1] == pos)\n result[i - 1] = to;\n else {\n result[i++] = pos;\n result[i++] = to;\n }\n }\n return this.ret(score - word.length, result);\n }\n}\nclass StrictMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.matched = [];\n this.score = 0;\n this.folded = pattern.toLowerCase();\n }\n match(word) {\n if (word.length < this.pattern.length)\n return null;\n let start = word.slice(0, this.pattern.length);\n let match = start == this.pattern ? 0 : start.toLowerCase() == this.folded ? -200 /* Penalty.CaseFold */ : null;\n if (match == null)\n return null;\n this.matched = [0, start.length];\n this.score = match + (word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */);\n return this;\n }\n}\n\nconst completionConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.combineConfig)(configs, {\n activateOnTyping: true,\n activateOnCompletion: () => false,\n activateOnTypingDelay: 100,\n selectOnOpen: true,\n override: null,\n closeOnBlur: true,\n maxRenderedOptions: 100,\n defaultKeymap: true,\n tooltipClass: () => \"\",\n optionClass: () => \"\",\n aboveCursor: false,\n icons: true,\n addToOptions: [],\n positionInfo: defaultPositionInfo,\n filterStrict: false,\n compareCompletions: (a, b) => a.label.localeCompare(b.label),\n interactionDelay: 75,\n updateSyncTime: 100\n }, {\n defaultKeymap: (a, b) => a && b,\n closeOnBlur: (a, b) => a && b,\n icons: (a, b) => a && b,\n tooltipClass: (a, b) => c => joinClass(a(c), b(c)),\n optionClass: (a, b) => c => joinClass(a(c), b(c)),\n addToOptions: (a, b) => a.concat(b),\n filterStrict: (a, b) => a || b,\n });\n }\n});\nfunction joinClass(a, b) {\n return a ? b ? a + \" \" + b : a : b;\n}\nfunction defaultPositionInfo(view, list, option, info, space, tooltip) {\n let rtl = view.textDirection == _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Direction.RTL, left = rtl, narrow = false;\n let side = \"top\", offset, maxWidth;\n let spaceLeft = list.left - space.left, spaceRight = space.right - list.right;\n let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;\n if (left && spaceLeft < Math.min(infoWidth, spaceRight))\n left = false;\n else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))\n left = true;\n if (infoWidth <= (left ? spaceLeft : spaceRight)) {\n offset = Math.max(space.top, Math.min(option.top, space.bottom - infoHeight)) - list.top;\n maxWidth = Math.min(400 /* Info.Width */, left ? spaceLeft : spaceRight);\n }\n else {\n narrow = true;\n maxWidth = Math.min(400 /* Info.Width */, (rtl ? list.right : space.right - list.left) - 30 /* Info.Margin */);\n let spaceBelow = space.bottom - list.bottom;\n if (spaceBelow >= infoHeight || spaceBelow > list.top) { // Below the completion\n offset = option.bottom - list.top;\n }\n else { // Above it\n side = \"bottom\";\n offset = list.bottom - option.top;\n }\n }\n let scaleY = (list.bottom - list.top) / tooltip.offsetHeight;\n let scaleX = (list.right - list.left) / tooltip.offsetWidth;\n return {\n style: `${side}: ${offset / scaleY}px; max-width: ${maxWidth / scaleX}px`,\n class: \"cm-completionInfo-\" + (narrow ? (rtl ? \"left-narrow\" : \"right-narrow\") : left ? \"left\" : \"right\")\n };\n}\n\nfunction optionContent(config) {\n let content = config.addToOptions.slice();\n if (config.icons)\n content.push({\n render(completion) {\n let icon = document.createElement(\"div\");\n icon.classList.add(\"cm-completionIcon\");\n if (completion.type)\n icon.classList.add(...completion.type.split(/\\s+/g).map(cls => \"cm-completionIcon-\" + cls));\n icon.setAttribute(\"aria-hidden\", \"true\");\n return icon;\n },\n position: 20\n });\n content.push({\n render(completion, _s, _v, match) {\n let labelElt = document.createElement(\"span\");\n labelElt.className = \"cm-completionLabel\";\n let label = completion.displayLabel || completion.label, off = 0;\n for (let j = 0; j < match.length;) {\n let from = match[j++], to = match[j++];\n if (from > off)\n labelElt.appendChild(document.createTextNode(label.slice(off, from)));\n let span = labelElt.appendChild(document.createElement(\"span\"));\n span.appendChild(document.createTextNode(label.slice(from, to)));\n span.className = \"cm-completionMatchedText\";\n off = to;\n }\n if (off < label.length)\n labelElt.appendChild(document.createTextNode(label.slice(off)));\n return labelElt;\n },\n position: 50\n }, {\n render(completion) {\n if (!completion.detail)\n return null;\n let detailElt = document.createElement(\"span\");\n detailElt.className = \"cm-completionDetail\";\n detailElt.textContent = completion.detail;\n return detailElt;\n },\n position: 80\n });\n return content.sort((a, b) => a.position - b.position).map(a => a.render);\n}\nfunction rangeAroundSelected(total, selected, max) {\n if (total <= max)\n return { from: 0, to: total };\n if (selected < 0)\n selected = 0;\n if (selected <= (total >> 1)) {\n let off = Math.floor(selected / max);\n return { from: off * max, to: (off + 1) * max };\n }\n let off = Math.floor((total - selected) / max);\n return { from: total - (off + 1) * max, to: total - off * max };\n}\nclass CompletionTooltip {\n constructor(view, stateField, applyCompletion) {\n this.view = view;\n this.stateField = stateField;\n this.applyCompletion = applyCompletion;\n this.info = null;\n this.infoDestroy = null;\n this.placeInfoReq = {\n read: () => this.measureInfo(),\n write: (pos) => this.placeInfo(pos),\n key: this\n };\n this.space = null;\n this.currentClass = \"\";\n let cState = view.state.field(stateField);\n let { options, selected } = cState.open;\n let config = view.state.facet(completionConfig);\n this.optionContent = optionContent(config);\n this.optionClass = config.optionClass;\n this.tooltipClass = config.tooltipClass;\n this.range = rangeAroundSelected(options.length, selected, config.maxRenderedOptions);\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-tooltip-autocomplete\";\n this.updateTooltipClass(view.state);\n this.dom.addEventListener(\"mousedown\", (e) => {\n let { options } = view.state.field(stateField).open;\n for (let dom = e.target, match; dom && dom != this.dom; dom = dom.parentNode) {\n if (dom.nodeName == \"LI\" && (match = /-(\\d+)$/.exec(dom.id)) && +match[1] < options.length) {\n this.applyCompletion(view, options[+match[1]]);\n e.preventDefault();\n return;\n }\n }\n });\n this.dom.addEventListener(\"focusout\", (e) => {\n let state = view.state.field(this.stateField, false);\n if (state && state.tooltip && view.state.facet(completionConfig).closeOnBlur &&\n e.relatedTarget != view.contentDOM)\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n });\n this.showOptions(options, cState.id);\n }\n mount() { this.updateSel(); }\n showOptions(options, id) {\n if (this.list)\n this.list.remove();\n this.list = this.dom.appendChild(this.createListBox(options, id, this.range));\n this.list.addEventListener(\"scroll\", () => {\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n });\n }\n update(update) {\n var _a;\n let cState = update.state.field(this.stateField);\n let prevState = update.startState.field(this.stateField);\n this.updateTooltipClass(update.state);\n if (cState != prevState) {\n let { options, selected, disabled } = cState.open;\n if (!prevState.open || prevState.open.options != options) {\n this.range = rangeAroundSelected(options.length, selected, update.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(options, cState.id);\n }\n this.updateSel();\n if (disabled != ((_a = prevState.open) === null || _a === void 0 ? void 0 : _a.disabled))\n this.dom.classList.toggle(\"cm-tooltip-autocomplete-disabled\", !!disabled);\n }\n }\n updateTooltipClass(state) {\n let cls = this.tooltipClass(state);\n if (cls != this.currentClass) {\n for (let c of this.currentClass.split(\" \"))\n if (c)\n this.dom.classList.remove(c);\n for (let c of cls.split(\" \"))\n if (c)\n this.dom.classList.add(c);\n this.currentClass = cls;\n }\n }\n positioned(space) {\n this.space = space;\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSel() {\n let cState = this.view.state.field(this.stateField), open = cState.open;\n if (open.selected > -1 && open.selected < this.range.from || open.selected >= this.range.to) {\n this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(open.options, cState.id);\n }\n if (this.updateSelectedOption(open.selected)) {\n this.destroyInfo();\n let { completion } = open.options[open.selected];\n let { info } = completion;\n if (!info)\n return;\n let infoResult = typeof info === \"string\" ? document.createTextNode(info) : info(completion);\n if (!infoResult)\n return;\n if (\"then\" in infoResult) {\n infoResult.then(obj => {\n if (obj && this.view.state.field(this.stateField, false) == cState)\n this.addInfoPane(obj, completion);\n }).catch(e => (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.logException)(this.view.state, e, \"completion info\"));\n }\n else {\n this.addInfoPane(infoResult, completion);\n }\n }\n }\n addInfoPane(content, completion) {\n this.destroyInfo();\n let wrap = this.info = document.createElement(\"div\");\n wrap.className = \"cm-tooltip cm-completionInfo\";\n if (content.nodeType != null) {\n wrap.appendChild(content);\n this.infoDestroy = null;\n }\n else {\n let { dom, destroy } = content;\n wrap.appendChild(dom);\n this.infoDestroy = destroy || null;\n }\n this.dom.appendChild(wrap);\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSelectedOption(selected) {\n let set = null;\n for (let opt = this.list.firstChild, i = this.range.from; opt; opt = opt.nextSibling, i++) {\n if (opt.nodeName != \"LI\" || !opt.id) {\n i--; // A section header\n }\n else if (i == selected) {\n if (!opt.hasAttribute(\"aria-selected\")) {\n opt.setAttribute(\"aria-selected\", \"true\");\n set = opt;\n }\n }\n else {\n if (opt.hasAttribute(\"aria-selected\"))\n opt.removeAttribute(\"aria-selected\");\n }\n }\n if (set)\n scrollIntoView(this.list, set);\n return set;\n }\n measureInfo() {\n let sel = this.dom.querySelector(\"[aria-selected]\");\n if (!sel || !this.info)\n return null;\n let listRect = this.dom.getBoundingClientRect();\n let infoRect = this.info.getBoundingClientRect();\n let selRect = sel.getBoundingClientRect();\n let space = this.space;\n if (!space) {\n let win = this.dom.ownerDocument.defaultView || window;\n space = { left: 0, top: 0, right: win.innerWidth, bottom: win.innerHeight };\n }\n if (selRect.top > Math.min(space.bottom, listRect.bottom) - 10 ||\n selRect.bottom < Math.max(space.top, listRect.top) + 10)\n return null;\n return this.view.state.facet(completionConfig).positionInfo(this.view, listRect, selRect, infoRect, space, this.dom);\n }\n placeInfo(pos) {\n if (this.info) {\n if (pos) {\n if (pos.style)\n this.info.style.cssText = pos.style;\n this.info.className = \"cm-tooltip cm-completionInfo \" + (pos.class || \"\");\n }\n else {\n this.info.style.cssText = \"top: -1e6px\";\n }\n }\n }\n createListBox(options, id, range) {\n const ul = document.createElement(\"ul\");\n ul.id = id;\n ul.setAttribute(\"role\", \"listbox\");\n ul.setAttribute(\"aria-expanded\", \"true\");\n ul.setAttribute(\"aria-label\", this.view.state.phrase(\"Completions\"));\n let curSection = null;\n for (let i = range.from; i < range.to; i++) {\n let { completion, match } = options[i], { section } = completion;\n if (section) {\n let name = typeof section == \"string\" ? section : section.name;\n if (name != curSection && (i > range.from || range.from == 0)) {\n curSection = name;\n if (typeof section != \"string\" && section.header) {\n ul.appendChild(section.header(section));\n }\n else {\n let header = ul.appendChild(document.createElement(\"completion-section\"));\n header.textContent = name;\n }\n }\n }\n const li = ul.appendChild(document.createElement(\"li\"));\n li.id = id + \"-\" + i;\n li.setAttribute(\"role\", \"option\");\n let cls = this.optionClass(completion);\n if (cls)\n li.className = cls;\n for (let source of this.optionContent) {\n let node = source(completion, this.view.state, this.view, match);\n if (node)\n li.appendChild(node);\n }\n }\n if (range.from)\n ul.classList.add(\"cm-completionListIncompleteTop\");\n if (range.to < options.length)\n ul.classList.add(\"cm-completionListIncompleteBottom\");\n return ul;\n }\n destroyInfo() {\n if (this.info) {\n if (this.infoDestroy)\n this.infoDestroy();\n this.info.remove();\n this.info = null;\n }\n }\n destroy() {\n this.destroyInfo();\n }\n}\nfunction completionTooltip(stateField, applyCompletion) {\n return (view) => new CompletionTooltip(view, stateField, applyCompletion);\n}\nfunction scrollIntoView(container, element) {\n let parent = container.getBoundingClientRect();\n let self = element.getBoundingClientRect();\n let scaleY = parent.height / container.offsetHeight;\n if (self.top < parent.top)\n container.scrollTop -= (parent.top - self.top) / scaleY;\n else if (self.bottom > parent.bottom)\n container.scrollTop += (self.bottom - parent.bottom) / scaleY;\n}\n\n// Used to pick a preferred option when two options with the same\n// label occur in the result.\nfunction score(option) {\n return (option.boost || 0) * 100 + (option.apply ? 10 : 0) + (option.info ? 5 : 0) +\n (option.type ? 1 : 0);\n}\nfunction sortOptions(active, state) {\n let options = [];\n let sections = null;\n let addOption = (option) => {\n options.push(option);\n let { section } = option.completion;\n if (section) {\n if (!sections)\n sections = [];\n let name = typeof section == \"string\" ? section : section.name;\n if (!sections.some(s => s.name == name))\n sections.push(typeof section == \"string\" ? { name } : section);\n }\n };\n let conf = state.facet(completionConfig);\n for (let a of active)\n if (a.hasResult()) {\n let getMatch = a.result.getMatch;\n if (a.result.filter === false) {\n for (let option of a.result.options) {\n addOption(new Option(option, a.source, getMatch ? getMatch(option) : [], 1e9 - options.length));\n }\n }\n else {\n let pattern = state.sliceDoc(a.from, a.to), match;\n let matcher = conf.filterStrict ? new StrictMatcher(pattern) : new FuzzyMatcher(pattern);\n for (let option of a.result.options)\n if (match = matcher.match(option.label)) {\n let matched = !option.displayLabel ? match.matched : getMatch ? getMatch(option, match.matched) : [];\n addOption(new Option(option, a.source, matched, match.score + (option.boost || 0)));\n }\n }\n }\n if (sections) {\n let sectionOrder = Object.create(null), pos = 0;\n let cmp = (a, b) => { var _a, _b; return ((_a = a.rank) !== null && _a !== void 0 ? _a : 1e9) - ((_b = b.rank) !== null && _b !== void 0 ? _b : 1e9) || (a.name < b.name ? -1 : 1); };\n for (let s of sections.sort(cmp)) {\n pos -= 1e5;\n sectionOrder[s.name] = pos;\n }\n for (let option of options) {\n let { section } = option.completion;\n if (section)\n option.score += sectionOrder[typeof section == \"string\" ? section : section.name];\n }\n }\n let result = [], prev = null;\n let compare = conf.compareCompletions;\n for (let opt of options.sort((a, b) => (b.score - a.score) || compare(a.completion, b.completion))) {\n let cur = opt.completion;\n if (!prev || prev.label != cur.label || prev.detail != cur.detail ||\n (prev.type != null && cur.type != null && prev.type != cur.type) ||\n prev.apply != cur.apply || prev.boost != cur.boost)\n result.push(opt);\n else if (score(opt.completion) > score(prev))\n result[result.length - 1] = opt;\n prev = opt.completion;\n }\n return result;\n}\nclass CompletionDialog {\n constructor(options, attrs, tooltip, timestamp, selected, disabled) {\n this.options = options;\n this.attrs = attrs;\n this.tooltip = tooltip;\n this.timestamp = timestamp;\n this.selected = selected;\n this.disabled = disabled;\n }\n setSelected(selected, id) {\n return selected == this.selected || selected >= this.options.length ? this\n : new CompletionDialog(this.options, makeAttrs(id, selected), this.tooltip, this.timestamp, selected, this.disabled);\n }\n static build(active, state, id, prev, conf) {\n let options = sortOptions(active, state);\n if (!options.length) {\n return prev && active.some(a => a.state == 1 /* State.Pending */) ?\n new CompletionDialog(prev.options, prev.attrs, prev.tooltip, prev.timestamp, prev.selected, true) : null;\n }\n let selected = state.facet(completionConfig).selectOnOpen ? 0 : -1;\n if (prev && prev.selected != selected && prev.selected != -1) {\n let selectedValue = prev.options[prev.selected].completion;\n for (let i = 0; i < options.length; i++)\n if (options[i].completion == selectedValue) {\n selected = i;\n break;\n }\n }\n return new CompletionDialog(options, makeAttrs(id, selected), {\n pos: active.reduce((a, b) => b.hasResult() ? Math.min(a, b.from) : a, 1e8),\n create: createTooltip,\n above: conf.aboveCursor,\n }, prev ? prev.timestamp : Date.now(), selected, false);\n }\n map(changes) {\n return new CompletionDialog(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: changes.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);\n }\n}\nclass CompletionState {\n constructor(active, id, open) {\n this.active = active;\n this.id = id;\n this.open = open;\n }\n static start() {\n return new CompletionState(none, \"cm-ac-\" + Math.floor(Math.random() * 2e6).toString(36), null);\n }\n update(tr) {\n let { state } = tr, conf = state.facet(completionConfig);\n let sources = conf.override ||\n state.languageDataAt(\"autocomplete\", cur(state)).map(asSource);\n let active = sources.map(source => {\n let value = this.active.find(s => s.source == source) ||\n new ActiveSource(source, this.active.some(a => a.state != 0 /* State.Inactive */) ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n return value.update(tr, conf);\n });\n if (active.length == this.active.length && active.every((a, i) => a == this.active[i]))\n active = this.active;\n let open = this.open;\n if (open && tr.docChanged)\n open = open.map(tr.changes);\n if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||\n !sameResults(active, this.active))\n open = CompletionDialog.build(active, state, this.id, open, conf);\n else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))\n open = null;\n if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))\n active = active.map(a => a.hasResult() ? new ActiveSource(a.source, 0 /* State.Inactive */) : a);\n for (let effect of tr.effects)\n if (effect.is(setSelectedEffect))\n open = open && open.setSelected(effect.value, this.id);\n return active == this.active && open == this.open ? this : new CompletionState(active, this.id, open);\n }\n get tooltip() { return this.open ? this.open.tooltip : null; }\n get attrs() { return this.open ? this.open.attrs : this.active.length ? baseAttrs : noAttrs; }\n}\nfunction sameResults(a, b) {\n if (a == b)\n return true;\n for (let iA = 0, iB = 0;;) {\n while (iA < a.length && !a[iA].hasResult)\n iA++;\n while (iB < b.length && !b[iB].hasResult)\n iB++;\n let endA = iA == a.length, endB = iB == b.length;\n if (endA || endB)\n return endA == endB;\n if (a[iA++].result != b[iB++].result)\n return false;\n }\n}\nconst baseAttrs = {\n \"aria-autocomplete\": \"list\"\n};\nconst noAttrs = {};\nfunction makeAttrs(id, selected) {\n let result = {\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": id\n };\n if (selected > -1)\n result[\"aria-activedescendant\"] = id + \"-\" + selected;\n return result;\n}\nconst none = [];\nfunction getUpdateType(tr, conf) {\n if (tr.isUserEvent(\"input.complete\")) {\n let completion = tr.annotation(pickedCompletion);\n if (completion && conf.activateOnCompletion(completion))\n return 4 /* UpdateType.Activate */ | 8 /* UpdateType.Reset */;\n }\n let typing = tr.isUserEvent(\"input.type\");\n return typing && conf.activateOnTyping ? 4 /* UpdateType.Activate */ | 1 /* UpdateType.Typing */\n : typing ? 1 /* UpdateType.Typing */\n : tr.isUserEvent(\"delete.backward\") ? 2 /* UpdateType.Backspacing */\n : tr.selection ? 8 /* UpdateType.Reset */\n : tr.docChanged ? 16 /* UpdateType.ResetIfTouching */ : 0 /* UpdateType.None */;\n}\nclass ActiveSource {\n constructor(source, state, explicitPos = -1) {\n this.source = source;\n this.state = state;\n this.explicitPos = explicitPos;\n }\n hasResult() { return false; }\n update(tr, conf) {\n let type = getUpdateType(tr, conf), value = this;\n if ((type & 8 /* UpdateType.Reset */) || (type & 16 /* UpdateType.ResetIfTouching */) && this.touches(tr))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n if ((type & 4 /* UpdateType.Activate */) && value.state == 0 /* State.Inactive */)\n value = new ActiveSource(this.source, 1 /* State.Pending */);\n value = value.updateFor(tr, type);\n for (let effect of tr.effects) {\n if (effect.is(startCompletionEffect))\n value = new ActiveSource(value.source, 1 /* State.Pending */, effect.value ? cur(tr.state) : -1);\n else if (effect.is(closeCompletionEffect))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n else if (effect.is(setActiveEffect))\n for (let active of effect.value)\n if (active.source == value.source)\n value = active;\n }\n return value;\n }\n updateFor(tr, type) { return this.map(tr.changes); }\n map(changes) {\n return changes.empty || this.explicitPos < 0 ? this : new ActiveSource(this.source, this.state, changes.mapPos(this.explicitPos));\n }\n touches(tr) {\n return tr.changes.touchesRange(cur(tr.state));\n }\n}\nclass ActiveResult extends ActiveSource {\n constructor(source, explicitPos, result, from, to) {\n super(source, 2 /* State.Result */, explicitPos);\n this.result = result;\n this.from = from;\n this.to = to;\n }\n hasResult() { return true; }\n updateFor(tr, type) {\n var _a;\n if (!(type & 3 /* UpdateType.SimpleInteraction */))\n return this.map(tr.changes);\n let result = this.result;\n if (result.map && !tr.changes.empty)\n result = result.map(result, tr.changes);\n let from = tr.changes.mapPos(this.from), to = tr.changes.mapPos(this.to, 1);\n let pos = cur(tr.state);\n if ((this.explicitPos < 0 ? pos <= from : pos < this.from) ||\n pos > to || !result ||\n (type & 2 /* UpdateType.Backspacing */) && cur(tr.startState) == this.from)\n return new ActiveSource(this.source, type & 4 /* UpdateType.Activate */ ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n let explicitPos = this.explicitPos < 0 ? -1 : tr.changes.mapPos(this.explicitPos);\n if (checkValid(result.validFor, tr.state, from, to))\n return new ActiveResult(this.source, explicitPos, result, from, to);\n if (result.update &&\n (result = result.update(result, from, to, new CompletionContext(tr.state, pos, explicitPos >= 0))))\n return new ActiveResult(this.source, explicitPos, result, result.from, (_a = result.to) !== null && _a !== void 0 ? _a : cur(tr.state));\n return new ActiveSource(this.source, 1 /* State.Pending */, explicitPos);\n }\n map(mapping) {\n if (mapping.empty)\n return this;\n let result = this.result.map ? this.result.map(this.result, mapping) : this.result;\n if (!result)\n return new ActiveSource(this.source, 0 /* State.Inactive */);\n return new ActiveResult(this.source, this.explicitPos < 0 ? -1 : mapping.mapPos(this.explicitPos), this.result, mapping.mapPos(this.from), mapping.mapPos(this.to, 1));\n }\n touches(tr) {\n return tr.changes.touchesRange(this.from, this.to);\n }\n}\nfunction checkValid(validFor, state, from, to) {\n if (!validFor)\n return false;\n let text = state.sliceDoc(from, to);\n return typeof validFor == \"function\" ? validFor(text, from, to, state) : ensureAnchor(validFor, true).test(text);\n}\nconst setActiveEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define({\n map(sources, mapping) { return sources.map(s => s.map(mapping)); }\n});\nconst setSelectedEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\nconst completionState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() { return CompletionState.start(); },\n update(value, tr) { return value.update(tr); },\n provide: f => [\n _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.showTooltip.from(f, val => val.tooltip),\n _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.contentAttributes.from(f, state => state.attrs)\n ]\n});\nfunction applyCompletion(view, option) {\n const apply = option.completion.apply || option.completion.label;\n let result = view.state.field(completionState).active.find(a => a.source == option.source);\n if (!(result instanceof ActiveResult))\n return false;\n if (typeof apply == \"string\")\n view.dispatch(Object.assign(Object.assign({}, insertCompletionText(view.state, apply, result.from, result.to)), { annotations: pickedCompletion.of(option.completion) }));\n else\n apply(view, option.completion, result.from, result.to);\n return true;\n}\nconst createTooltip = /*@__PURE__*/completionTooltip(completionState, applyCompletion);\n\n/**\nReturns a command that moves the completion selection forward or\nbackward by the given amount.\n*/\nfunction moveCompletionSelection(forward, by = \"option\") {\n return (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.open || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n let step = 1, tooltip;\n if (by == \"page\" && (tooltip = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.getTooltip)(view, cState.open.tooltip)))\n step = Math.max(2, Math.floor(tooltip.dom.offsetHeight /\n tooltip.dom.querySelector(\"li\").offsetHeight) - 1);\n let { length } = cState.open.options;\n let selected = cState.open.selected > -1 ? cState.open.selected + step * (forward ? 1 : -1) : forward ? 0 : length - 1;\n if (selected < 0)\n selected = by == \"page\" ? 0 : length - 1;\n else if (selected >= length)\n selected = by == \"page\" ? length - 1 : 0;\n view.dispatch({ effects: setSelectedEffect.of(selected) });\n return true;\n };\n}\n/**\nAccept the current completion.\n*/\nconst acceptCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (view.state.readOnly || !cState || !cState.open || cState.open.selected < 0 || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n return applyCompletion(view, cState.open.options[cState.open.selected]);\n};\n/**\nExplicitly start autocompletion.\n*/\nconst startCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState)\n return false;\n view.dispatch({ effects: startCompletionEffect.of(true) });\n return true;\n};\n/**\nClose the currently active completion.\n*/\nconst closeCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.active.some(a => a.state != 0 /* State.Inactive */))\n return false;\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n return true;\n};\nclass RunningQuery {\n constructor(active, context) {\n this.active = active;\n this.context = context;\n this.time = Date.now();\n this.updates = [];\n // Note that 'undefined' means 'not done yet', whereas 'null' means\n // 'query returned null'.\n this.done = undefined;\n }\n}\nconst MaxUpdateCount = 50, MinAbortTime = 1000;\nconst completionPlugin = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.debounceUpdate = -1;\n this.running = [];\n this.debounceAccept = -1;\n this.pendingStart = false;\n this.composing = 0 /* CompositionState.None */;\n for (let active of view.state.field(completionState).active)\n if (active.state == 1 /* State.Pending */)\n this.startQuery(active);\n }\n update(update) {\n let cState = update.state.field(completionState);\n let conf = update.state.facet(completionConfig);\n if (!update.selectionSet && !update.docChanged && update.startState.field(completionState) == cState)\n return;\n let doesReset = update.transactions.some(tr => {\n let type = getUpdateType(tr, conf);\n return (type & 8 /* UpdateType.Reset */) || (tr.selection || tr.docChanged) && !(type & 3 /* UpdateType.SimpleInteraction */);\n });\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (doesReset ||\n query.updates.length + update.transactions.length > MaxUpdateCount && Date.now() - query.time > MinAbortTime) {\n for (let handler of query.context.abortListeners) {\n try {\n handler();\n }\n catch (e) {\n (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.logException)(this.view.state, e);\n }\n }\n query.context.abortListeners = null;\n this.running.splice(i--, 1);\n }\n else {\n query.updates.push(...update.transactions);\n }\n }\n if (this.debounceUpdate > -1)\n clearTimeout(this.debounceUpdate);\n if (update.transactions.some(tr => tr.effects.some(e => e.is(startCompletionEffect))))\n this.pendingStart = true;\n let delay = this.pendingStart ? 50 : conf.activateOnTypingDelay;\n this.debounceUpdate = cState.active.some(a => a.state == 1 /* State.Pending */ && !this.running.some(q => q.active.source == a.source))\n ? setTimeout(() => this.startUpdate(), delay) : -1;\n if (this.composing != 0 /* CompositionState.None */)\n for (let tr of update.transactions) {\n if (tr.isUserEvent(\"input.type\"))\n this.composing = 2 /* CompositionState.Changed */;\n else if (this.composing == 2 /* CompositionState.Changed */ && tr.selection)\n this.composing = 3 /* CompositionState.ChangedAndMoved */;\n }\n }\n startUpdate() {\n this.debounceUpdate = -1;\n this.pendingStart = false;\n let { state } = this.view, cState = state.field(completionState);\n for (let active of cState.active) {\n if (active.state == 1 /* State.Pending */ && !this.running.some(r => r.active.source == active.source))\n this.startQuery(active);\n }\n }\n startQuery(active) {\n let { state } = this.view, pos = cur(state);\n let context = new CompletionContext(state, pos, active.explicitPos == pos, this.view);\n let pending = new RunningQuery(active, context);\n this.running.push(pending);\n Promise.resolve(active.source(context)).then(result => {\n if (!pending.context.aborted) {\n pending.done = result || null;\n this.scheduleAccept();\n }\n }, err => {\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.logException)(this.view.state, err);\n });\n }\n scheduleAccept() {\n if (this.running.every(q => q.done !== undefined))\n this.accept();\n else if (this.debounceAccept < 0)\n this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);\n }\n // For each finished query in this.running, try to create a result\n // or, if appropriate, restart the query.\n accept() {\n var _a;\n if (this.debounceAccept > -1)\n clearTimeout(this.debounceAccept);\n this.debounceAccept = -1;\n let updated = [];\n let conf = this.view.state.facet(completionConfig);\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (query.done === undefined)\n continue;\n this.running.splice(i--, 1);\n if (query.done) {\n let active = new ActiveResult(query.active.source, query.active.explicitPos, query.done, query.done.from, (_a = query.done.to) !== null && _a !== void 0 ? _a : cur(query.updates.length ? query.updates[0].startState : this.view.state));\n // Replay the transactions that happened since the start of\n // the request and see if that preserves the result\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.hasResult()) {\n updated.push(active);\n continue;\n }\n }\n let current = this.view.state.field(completionState).active.find(a => a.source == query.active.source);\n if (current && current.state == 1 /* State.Pending */) {\n if (query.done == null) {\n // Explicitly failed. Should clear the pending status if it\n // hasn't been re-set in the meantime.\n let active = new ActiveSource(query.active.source, 0 /* State.Inactive */);\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.state != 1 /* State.Pending */)\n updated.push(active);\n }\n else {\n // Cleared by subsequent transactions. Restart.\n this.startQuery(current);\n }\n }\n }\n if (updated.length)\n this.view.dispatch({ effects: setActiveEffect.of(updated) });\n }\n}, {\n eventHandlers: {\n blur(event) {\n let state = this.view.state.field(completionState, false);\n if (state && state.tooltip && this.view.state.facet(completionConfig).closeOnBlur) {\n let dialog = state.open && (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.getTooltip)(this.view, state.open.tooltip);\n if (!dialog || !dialog.dom.contains(event.relatedTarget))\n setTimeout(() => this.view.dispatch({ effects: closeCompletionEffect.of(null) }), 10);\n }\n },\n compositionstart() {\n this.composing = 1 /* CompositionState.Started */;\n },\n compositionend() {\n if (this.composing == 3 /* CompositionState.ChangedAndMoved */) {\n // Safari fires compositionend events synchronously, possibly\n // from inside an update, so dispatch asynchronously to avoid reentrancy\n setTimeout(() => this.view.dispatch({ effects: startCompletionEffect.of(false) }), 20);\n }\n this.composing = 0 /* CompositionState.None */;\n }\n }\n});\nconst windows = typeof navigator == \"object\" && /*@__PURE__*//Win/.test(navigator.platform);\nconst commitCharacters = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Prec.highest(/*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.domEventHandlers({\n keydown(event, view) {\n let field = view.state.field(completionState, false);\n if (!field || !field.open || field.open.disabled || field.open.selected < 0 ||\n event.key.length > 1 || event.ctrlKey && !(windows && event.altKey) || event.metaKey)\n return false;\n let option = field.open.options[field.open.selected];\n let result = field.active.find(a => a.source == option.source);\n let commitChars = option.completion.commitCharacters || result.result.commitCharacters;\n if (commitChars && commitChars.indexOf(event.key) > -1)\n applyCompletion(view, option);\n return false;\n }\n}));\n\nconst baseTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.baseTheme({\n \".cm-tooltip.cm-tooltip-autocomplete\": {\n \"& > ul\": {\n fontFamily: \"monospace\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden auto\",\n maxWidth_fallback: \"700px\",\n maxWidth: \"min(700px, 95vw)\",\n minWidth: \"250px\",\n maxHeight: \"10em\",\n height: \"100%\",\n listStyle: \"none\",\n margin: 0,\n padding: 0,\n \"& > li, & > completion-section\": {\n padding: \"1px 3px\",\n lineHeight: 1.2\n },\n \"& > li\": {\n overflowX: \"hidden\",\n textOverflow: \"ellipsis\",\n cursor: \"pointer\"\n },\n \"& > completion-section\": {\n display: \"list-item\",\n borderBottom: \"1px solid silver\",\n paddingLeft: \"0.5em\",\n opacity: 0.7\n }\n }\n },\n \"&light .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#17c\",\n color: \"white\",\n },\n \"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#777\",\n },\n \"&dark .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#347\",\n color: \"white\",\n },\n \"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#444\",\n },\n \".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after\": {\n content: '\"···\"',\n opacity: 0.5,\n display: \"block\",\n textAlign: \"center\"\n },\n \".cm-tooltip.cm-completionInfo\": {\n position: \"absolute\",\n padding: \"3px 9px\",\n width: \"max-content\",\n maxWidth: `${400 /* Info.Width */}px`,\n boxSizing: \"border-box\"\n },\n \".cm-completionInfo.cm-completionInfo-left\": { right: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-right\": { left: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-left-narrow\": { right: `${30 /* Info.Margin */}px` },\n \".cm-completionInfo.cm-completionInfo-right-narrow\": { left: `${30 /* Info.Margin */}px` },\n \"&light .cm-snippetField\": { backgroundColor: \"#00000022\" },\n \"&dark .cm-snippetField\": { backgroundColor: \"#ffffff22\" },\n \".cm-snippetFieldPosition\": {\n verticalAlign: \"text-top\",\n width: 0,\n height: \"1.15em\",\n display: \"inline-block\",\n margin: \"0 -0.7px -.7em\",\n borderLeft: \"1.4px dotted #888\"\n },\n \".cm-completionMatchedText\": {\n textDecoration: \"underline\"\n },\n \".cm-completionDetail\": {\n marginLeft: \"0.5em\",\n fontStyle: \"italic\"\n },\n \".cm-completionIcon\": {\n fontSize: \"90%\",\n width: \".8em\",\n display: \"inline-block\",\n textAlign: \"center\",\n paddingRight: \".6em\",\n opacity: \"0.6\",\n boxSizing: \"content-box\"\n },\n \".cm-completionIcon-function, .cm-completionIcon-method\": {\n \"&:after\": { content: \"'ƒ'\" }\n },\n \".cm-completionIcon-class\": {\n \"&:after\": { content: \"'○'\" }\n },\n \".cm-completionIcon-interface\": {\n \"&:after\": { content: \"'◌'\" }\n },\n \".cm-completionIcon-variable\": {\n \"&:after\": { content: \"'𝑥'\" }\n },\n \".cm-completionIcon-constant\": {\n \"&:after\": { content: \"'𝐶'\" }\n },\n \".cm-completionIcon-type\": {\n \"&:after\": { content: \"'𝑡'\" }\n },\n \".cm-completionIcon-enum\": {\n \"&:after\": { content: \"'∪'\" }\n },\n \".cm-completionIcon-property\": {\n \"&:after\": { content: \"'□'\" }\n },\n \".cm-completionIcon-keyword\": {\n \"&:after\": { content: \"'🔑\\uFE0E'\" } // Disable emoji rendering\n },\n \".cm-completionIcon-namespace\": {\n \"&:after\": { content: \"'▢'\" }\n },\n \".cm-completionIcon-text\": {\n \"&:after\": { content: \"'abc'\", fontSize: \"50%\", verticalAlign: \"middle\" }\n }\n});\n\nclass FieldPos {\n constructor(field, line, from, to) {\n this.field = field;\n this.line = line;\n this.from = from;\n this.to = to;\n }\n}\nclass FieldRange {\n constructor(field, from, to) {\n this.field = field;\n this.from = from;\n this.to = to;\n }\n map(changes) {\n let from = changes.mapPos(this.from, -1, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.MapMode.TrackDel);\n let to = changes.mapPos(this.to, 1, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.MapMode.TrackDel);\n return from == null || to == null ? null : new FieldRange(this.field, from, to);\n }\n}\nclass Snippet {\n constructor(lines, fieldPositions) {\n this.lines = lines;\n this.fieldPositions = fieldPositions;\n }\n instantiate(state, pos) {\n let text = [], lineStart = [pos];\n let lineObj = state.doc.lineAt(pos), baseIndent = /^\\s*/.exec(lineObj.text)[0];\n for (let line of this.lines) {\n if (text.length) {\n let indent = baseIndent, tabs = /^\\t*/.exec(line)[0].length;\n for (let i = 0; i < tabs; i++)\n indent += state.facet(_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.indentUnit);\n lineStart.push(pos + indent.length - tabs);\n line = indent + line.slice(tabs);\n }\n text.push(line);\n pos += line.length + 1;\n }\n let ranges = this.fieldPositions.map(pos => new FieldRange(pos.field, lineStart[pos.line] + pos.from, lineStart[pos.line] + pos.to));\n return { text, ranges };\n }\n static parse(template) {\n let fields = [];\n let lines = [], positions = [], m;\n for (let line of template.split(/\\r\\n?|\\n/)) {\n while (m = /[#$]\\{(?:(\\d+)(?::([^}]*))?|((?:\\\\[{}]|[^}])*))\\}/.exec(line)) {\n let seq = m[1] ? +m[1] : null, rawName = m[2] || m[3] || \"\", found = -1;\n let name = rawName.replace(/\\\\[{}]/g, m => m[1]);\n for (let i = 0; i < fields.length; i++) {\n if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false)\n found = i;\n }\n if (found < 0) {\n let i = 0;\n while (i < fields.length && (seq == null || (fields[i].seq != null && fields[i].seq < seq)))\n i++;\n fields.splice(i, 0, { seq, name });\n found = i;\n for (let pos of positions)\n if (pos.field >= found)\n pos.field++;\n }\n positions.push(new FieldPos(found, lines.length, m.index, m.index + name.length));\n line = line.slice(0, m.index) + rawName + line.slice(m.index + m[0].length);\n }\n line = line.replace(/\\\\([{}])/g, (_, brace, index) => {\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > index) {\n pos.from--;\n pos.to--;\n }\n return brace;\n });\n lines.push(line);\n }\n return new Snippet(lines, positions);\n }\n}\nlet fieldMarker = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.widget({ widget: /*@__PURE__*/new class extends _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.WidgetType {\n toDOM() {\n let span = document.createElement(\"span\");\n span.className = \"cm-snippetFieldPosition\";\n return span;\n }\n ignoreEvent() { return false; }\n } });\nlet fieldRange = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.mark({ class: \"cm-snippetField\" });\nclass ActiveSnippet {\n constructor(ranges, active) {\n this.ranges = ranges;\n this.active = active;\n this.deco = _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.set(ranges.map(r => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)));\n }\n map(changes) {\n let ranges = [];\n for (let r of this.ranges) {\n let mapped = r.map(changes);\n if (!mapped)\n return null;\n ranges.push(mapped);\n }\n return new ActiveSnippet(ranges, this.active);\n }\n selectionInsideField(sel) {\n return sel.ranges.every(range => this.ranges.some(r => r.field == this.active && r.from <= range.from && r.to >= range.to));\n }\n}\nconst setActive = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define({\n map(value, changes) { return value && value.map(changes); }\n});\nconst moveToField = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();\nconst snippetState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() { return null; },\n update(value, tr) {\n for (let effect of tr.effects) {\n if (effect.is(setActive))\n return effect.value;\n if (effect.is(moveToField) && value)\n return new ActiveSnippet(value.ranges, effect.value);\n }\n if (value && tr.docChanged)\n value = value.map(tr.changes);\n if (value && tr.selection && !value.selectionInsideField(tr.selection))\n value = null;\n return value;\n },\n provide: f => _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.decorations.from(f, val => val ? val.deco : _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Decoration.none)\n});\nfunction fieldSelection(ranges, field) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges.filter(r => r.field == field).map(r => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(r.from, r.to)));\n}\n/**\nConvert a snippet template to a function that can\n[apply](https://codemirror.net/6/docs/ref/#autocomplete.Completion.apply) it. Snippets are written\nusing syntax like this:\n\n \"for (let ${index} = 0; ${index} < ${end}; ${index}++) {\\n\\t${}\\n}\"\n\nEach `${}` placeholder (you may also use `#{}`) indicates a field\nthat the user can fill in. Its name, if any, will be the default\ncontent for the field.\n\nWhen the snippet is activated by calling the returned function,\nthe code is inserted at the given position. Newlines in the\ntemplate are indented by the indentation of the start line, plus\none [indent unit](https://codemirror.net/6/docs/ref/#language.indentUnit) per tab character after\nthe newline.\n\nOn activation, (all instances of) the first field are selected.\nThe user can move between fields with Tab and Shift-Tab as long as\nthe fields are active. Moving to the last field or moving the\ncursor out of the current field deactivates the fields.\n\nThe order of fields defaults to textual order, but you can add\nnumbers to placeholders (`${1}` or `${1:defaultText}`) to provide\na custom order.\n\nTo include a literal `{` or `}` in your template, put a backslash\nin front of it. This will be removed and the brace will not be\ninterpreted as indicating a placeholder.\n*/\nfunction snippet(template) {\n let snippet = Snippet.parse(template);\n return (editor, completion, from, to) => {\n let { text, ranges } = snippet.instantiate(editor.state, from);\n let spec = {\n changes: { from, to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Text.of(text) },\n scrollIntoView: true,\n annotations: completion ? [pickedCompletion.of(completion), _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.userEvent.of(\"input.complete\")] : undefined\n };\n if (ranges.length)\n spec.selection = fieldSelection(ranges, 0);\n if (ranges.some(r => r.field > 0)) {\n let active = new ActiveSnippet(ranges, 0);\n let effects = spec.effects = [setActive.of(active)];\n if (editor.state.field(snippetState, false) === undefined)\n effects.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.appendConfig.of([snippetState, addSnippetKeymap, snippetPointerHandler, baseTheme]));\n }\n editor.dispatch(editor.state.update(spec));\n };\n}\nfunction moveField(dir) {\n return ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active || dir < 0 && active.active == 0)\n return false;\n let next = active.active + dir, last = dir > 0 && !active.ranges.some(r => r.field == next + dir);\n dispatch(state.update({\n selection: fieldSelection(active.ranges, next),\n effects: setActive.of(last ? null : new ActiveSnippet(active.ranges, next)),\n scrollIntoView: true\n }));\n return true;\n };\n}\n/**\nA command that clears the active snippet, if any.\n*/\nconst clearSnippet = ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active)\n return false;\n dispatch(state.update({ effects: setActive.of(null) }));\n return true;\n};\n/**\nMove to the next snippet field, if available.\n*/\nconst nextSnippetField = /*@__PURE__*/moveField(1);\n/**\nMove to the previous snippet field, if available.\n*/\nconst prevSnippetField = /*@__PURE__*/moveField(-1);\n/**\nCheck if there is an active snippet with a next field for\n`nextSnippetField` to move to.\n*/\nfunction hasNextSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.ranges.some(r => r.field == active.active + 1));\n}\n/**\nReturns true if there is an active snippet and a previous field\nfor `prevSnippetField` to move to.\n*/\nfunction hasPrevSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.active > 0);\n}\nconst defaultSnippetKeymap = [\n { key: \"Tab\", run: nextSnippetField, shift: prevSnippetField },\n { key: \"Escape\", run: clearSnippet }\n];\n/**\nA facet that can be used to configure the key bindings used by\nsnippets. The default binds Tab to\n[`nextSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.nextSnippetField), Shift-Tab to\n[`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape\nto [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).\n*/\nconst snippetKeymap = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({\n combine(maps) { return maps.length ? maps[0] : defaultSnippetKeymap; }\n});\nconst addSnippetKeymap = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Prec.highest(/*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.keymap.compute([snippetKeymap], state => state.facet(snippetKeymap)));\n/**\nCreate a completion from a snippet. Returns an object with the\nproperties from `completion`, plus an `apply` function that\napplies the snippet.\n*/\nfunction snippetCompletion(template, completion) {\n return Object.assign(Object.assign({}, completion), { apply: snippet(template) });\n}\nconst snippetPointerHandler = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.domEventHandlers({\n mousedown(event, view) {\n let active = view.state.field(snippetState, false), pos;\n if (!active || (pos = view.posAtCoords({ x: event.clientX, y: event.clientY })) == null)\n return false;\n let match = active.ranges.find(r => r.from <= pos && r.to >= pos);\n if (!match || match.field == active.active)\n return false;\n view.dispatch({\n selection: fieldSelection(active.ranges, match.field),\n effects: setActive.of(active.ranges.some(r => r.field > match.field)\n ? new ActiveSnippet(active.ranges, match.field) : null),\n scrollIntoView: true\n });\n return true;\n }\n});\n\nfunction wordRE(wordChars) {\n let escaped = wordChars.replace(/[\\]\\-\\\\]/g, \"\\\\$&\");\n try {\n return new RegExp(`[\\\\p{Alphabetic}\\\\p{Number}_${escaped}]+`, \"ug\");\n }\n catch (_a) {\n return new RegExp(`[\\w${escaped}]`, \"g\");\n }\n}\nfunction mapRE(re, f) {\n return new RegExp(f(re.source), re.unicode ? \"u\" : \"\");\n}\nconst wordCaches = /*@__PURE__*/Object.create(null);\nfunction wordCache(wordChars) {\n return wordCaches[wordChars] || (wordCaches[wordChars] = new WeakMap);\n}\nfunction storeWords(doc, wordRE, result, seen, ignoreAt) {\n for (let lines = doc.iterLines(), pos = 0; !lines.next().done;) {\n let { value } = lines, m;\n wordRE.lastIndex = 0;\n while (m = wordRE.exec(value)) {\n if (!seen[m[0]] && pos + m.index != ignoreAt) {\n result.push({ type: \"text\", label: m[0] });\n seen[m[0]] = true;\n if (result.length >= 2000 /* C.MaxList */)\n return;\n }\n }\n pos += value.length + 1;\n }\n}\nfunction collectWords(doc, cache, wordRE, to, ignoreAt) {\n let big = doc.length >= 1000 /* C.MinCacheLen */;\n let cached = big && cache.get(doc);\n if (cached)\n return cached;\n let result = [], seen = Object.create(null);\n if (doc.children) {\n let pos = 0;\n for (let ch of doc.children) {\n if (ch.length >= 1000 /* C.MinCacheLen */) {\n for (let c of collectWords(ch, cache, wordRE, to - pos, ignoreAt - pos)) {\n if (!seen[c.label]) {\n seen[c.label] = true;\n result.push(c);\n }\n }\n }\n else {\n storeWords(ch, wordRE, result, seen, ignoreAt - pos);\n }\n pos += ch.length + 1;\n }\n }\n else {\n storeWords(doc, wordRE, result, seen, ignoreAt);\n }\n if (big && result.length < 2000 /* C.MaxList */)\n cache.set(doc, result);\n return result;\n}\n/**\nA completion source that will scan the document for words (using a\n[character categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer)), and\nreturn those as completions.\n*/\nconst completeAnyWord = context => {\n let wordChars = context.state.languageDataAt(\"wordChars\", context.pos).join(\"\");\n let re = wordRE(wordChars);\n let token = context.matchBefore(mapRE(re, s => s + \"$\"));\n if (!token && !context.explicit)\n return null;\n let from = token ? token.from : context.pos;\n let options = collectWords(context.state.doc, wordCache(wordChars), re, 50000 /* C.Range */, from);\n return { from, options, validFor: mapRE(re, s => \"^\" + s) };\n};\n\nconst defaults = {\n brackets: [\"(\", \"[\", \"{\", \"'\", '\"'],\n before: \")]}:;>\",\n stringPrefixes: []\n};\nconst closeBracketEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define({\n map(value, mapping) {\n let mapped = mapping.mapPos(value, -1, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.MapMode.TrackAfter);\n return mapped == null ? undefined : mapped;\n }\n});\nconst closedBracket = /*@__PURE__*/new class extends _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.RangeValue {\n};\nclosedBracket.startSide = 1;\nclosedBracket.endSide = -1;\nconst bracketState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() { return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.RangeSet.empty; },\n update(value, tr) {\n value = value.map(tr.changes);\n if (tr.selection) {\n let line = tr.state.doc.lineAt(tr.selection.main.head);\n value = value.update({ filter: from => from >= line.from && from <= line.to });\n }\n for (let effect of tr.effects)\n if (effect.is(closeBracketEffect))\n value = value.update({ add: [closedBracket.range(effect.value, effect.value + 1)] });\n return value;\n }\n});\n/**\nExtension to enable bracket-closing behavior. When a closeable\nbracket is typed, its closing bracket is immediately inserted\nafter the cursor. When closing a bracket directly in front of a\nclosing bracket inserted by the extension, the cursor moves over\nthat bracket.\n*/\nfunction closeBrackets() {\n return [inputHandler, bracketState];\n}\nconst definedClosing = \"()[]{}<>\";\nfunction closing(ch) {\n for (let i = 0; i < definedClosing.length; i += 2)\n if (definedClosing.charCodeAt(i) == ch)\n return definedClosing.charAt(i + 1);\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.fromCodePoint)(ch < 128 ? ch : ch + 1);\n}\nfunction config(state, pos) {\n return state.languageDataAt(\"closeBrackets\", pos)[0] || defaults;\n}\nconst android = typeof navigator == \"object\" && /*@__PURE__*//Android\\b/.test(navigator.userAgent);\nconst inputHandler = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.inputHandler.of((view, from, to, insert) => {\n if ((android ? view.composing : view.compositionStarted) || view.state.readOnly)\n return false;\n let sel = view.state.selection.main;\n if (insert.length > 2 || insert.length == 2 && (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(insert, 0)) == 1 ||\n from != sel.from || to != sel.to)\n return false;\n let tr = insertBracket(view.state, insert);\n if (!tr)\n return false;\n view.dispatch(tr);\n return true;\n});\n/**\nCommand that implements deleting a pair of matching brackets when\nthe cursor is between them.\n*/\nconst deleteBracketPair = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty) {\n let before = prevChar(state.doc, range.head);\n for (let token of tokens) {\n if (token == before && nextChar(state.doc, range.head) == closing((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(token, 0)))\n return { changes: { from: range.head - token.length, to: range.head + token.length },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head - token.length) };\n }\n }\n return { range: dont = range };\n });\n if (!dont)\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete.backward\" }));\n return !dont;\n};\n/**\nClose-brackets related key bindings. Binds Backspace to\n[`deleteBracketPair`](https://codemirror.net/6/docs/ref/#autocomplete.deleteBracketPair).\n*/\nconst closeBracketsKeymap = [\n { key: \"Backspace\", run: deleteBracketPair }\n];\n/**\nImplements the extension's behavior on text insertion. If the\ngiven string counts as a bracket in the language around the\nselection, and replacing the selection with it requires custom\nbehavior (inserting a closing version or skipping past a\npreviously-closed bracket), this function returns a transaction\nrepresenting that custom behavior. (You only need this if you want\nto programmatically insert brackets—the\n[`closeBrackets`](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) extension will\ntake care of running this for user input.)\n*/\nfunction insertBracket(state, bracket) {\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n for (let tok of tokens) {\n let closed = closing((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(tok, 0));\n if (bracket == tok)\n return closed == tok ? handleSame(state, tok, tokens.indexOf(tok + tok + tok) > -1, conf)\n : handleOpen(state, tok, closed, conf.before || defaults.before);\n if (bracket == closed && closedBracketAt(state, state.selection.main.from))\n return handleClose(state, tok, closed);\n }\n return null;\n}\nfunction closedBracketAt(state, pos) {\n let found = false;\n state.field(bracketState).between(0, state.doc.length, from => {\n if (from == pos)\n found = true;\n });\n return found;\n}\nfunction nextChar(doc, pos) {\n let next = doc.sliceString(pos, pos + 2);\n return next.slice(0, (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(next, 0)));\n}\nfunction prevChar(doc, pos) {\n let prev = doc.sliceString(pos - 2, pos);\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(prev, 0)) == prev.length ? prev : prev.slice(1);\n}\nfunction handleOpen(state, open, close, closeBefore) {\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: open, from: range.from }, { insert: close, from: range.to }],\n effects: closeBracketEffect.of(range.to + open.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor + open.length, range.head + open.length) };\n let next = nextChar(state.doc, range.head);\n if (!next || /\\s/.test(next) || closeBefore.indexOf(next) > -1)\n return { changes: { insert: open + close, from: range.head },\n effects: closeBracketEffect.of(range.head + open.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head + open.length) };\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction handleClose(state, _open, close) {\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty && nextChar(state.doc, range.head) == close)\n return { changes: { from: range.head, to: range.head + close.length, insert: close },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head + close.length) };\n return dont = { range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\n// Handles cases where the open and close token are the same, and\n// possibly triple quotes (as in `\"\"\"abc\"\"\"`-style quoting).\nfunction handleSame(state, token, allowTriple, config) {\n let stringPrefixes = config.stringPrefixes || defaults.stringPrefixes;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: token, from: range.from }, { insert: token, from: range.to }],\n effects: closeBracketEffect.of(range.to + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor + token.length, range.head + token.length) };\n let pos = range.head, next = nextChar(state.doc, pos), start;\n if (next == token) {\n if (nodeStart(state, pos)) {\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + token.length) };\n }\n else if (closedBracketAt(state, pos)) {\n let isTriple = allowTriple && state.sliceDoc(pos, pos + token.length * 3) == token + token + token;\n let content = isTriple ? token + token + token : token;\n return { changes: { from: pos, to: pos + content.length, insert: content },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + content.length) };\n }\n }\n else if (allowTriple && state.sliceDoc(pos - 2 * token.length, pos) == token + token &&\n (start = canStartStringAt(state, pos - 2 * token.length, stringPrefixes)) > -1 &&\n nodeStart(state, start)) {\n return { changes: { insert: token + token + token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + token.length) };\n }\n else if (state.charCategorizer(pos)(next) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) {\n if (canStartStringAt(state, pos, stringPrefixes) > -1 && !probablyInString(state, pos, token, stringPrefixes))\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(pos + token.length) };\n }\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction nodeStart(state, pos) {\n let tree = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(state).resolveInner(pos + 1);\n return tree.parent && tree.from == pos;\n}\nfunction probablyInString(state, pos, quoteToken, prefixes) {\n let node = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_0__.syntaxTree)(state).resolveInner(pos, -1);\n let maxPrefix = prefixes.reduce((m, p) => Math.max(m, p.length), 0);\n for (let i = 0; i < 5; i++) {\n let start = state.sliceDoc(node.from, Math.min(node.to, node.from + quoteToken.length + maxPrefix));\n let quotePos = start.indexOf(quoteToken);\n if (!quotePos || quotePos > -1 && prefixes.indexOf(start.slice(0, quotePos)) > -1) {\n let first = node.firstChild;\n while (first && first.from == node.from && first.to - first.from > quoteToken.length + quotePos) {\n if (state.sliceDoc(first.to - quoteToken.length, first.to) == quoteToken)\n return false;\n first = first.firstChild;\n }\n return true;\n }\n let parent = node.to == pos && node.parent;\n if (!parent)\n break;\n node = parent;\n }\n return false;\n}\nfunction canStartStringAt(state, pos, prefixes) {\n let charCat = state.charCategorizer(pos);\n if (charCat(state.sliceDoc(pos - 1, pos)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word)\n return pos;\n for (let prefix of prefixes) {\n let start = pos - prefix.length;\n if (state.sliceDoc(start, pos) == prefix && charCat(state.sliceDoc(start - 1, start)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word)\n return start;\n }\n return -1;\n}\n\n/**\nReturns an extension that enables autocompletion.\n*/\nfunction autocompletion(config = {}) {\n return [\n commitCharacters,\n completionState,\n completionConfig.of(config),\n completionPlugin,\n completionKeymapExt,\n baseTheme\n ];\n}\n/**\nBasic keybindings for autocompletion.\n\n - Ctrl-Space: [`startCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.startCompletion)\n - Escape: [`closeCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.closeCompletion)\n - ArrowDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true)`\n - ArrowUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false)`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - Enter: [`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion)\n*/\nconst completionKeymap = [\n { key: \"Ctrl-Space\", run: startCompletion },\n { key: \"Escape\", run: closeCompletion },\n { key: \"ArrowDown\", run: /*@__PURE__*/moveCompletionSelection(true) },\n { key: \"ArrowUp\", run: /*@__PURE__*/moveCompletionSelection(false) },\n { key: \"PageDown\", run: /*@__PURE__*/moveCompletionSelection(true, \"page\") },\n { key: \"PageUp\", run: /*@__PURE__*/moveCompletionSelection(false, \"page\") },\n { key: \"Enter\", run: acceptCompletion }\n];\nconst completionKeymapExt = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Prec.highest(/*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.keymap.computeN([completionConfig], state => state.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));\n/**\nGet the current completion status. When completions are available,\nthis will return `\"active\"`. When completions are pending (in the\nprocess of being queried), this returns `\"pending\"`. Otherwise, it\nreturns `null`.\n*/\nfunction completionStatus(state) {\n let cState = state.field(completionState, false);\n return cState && cState.active.some(a => a.state == 1 /* State.Pending */) ? \"pending\"\n : cState && cState.active.some(a => a.state != 0 /* State.Inactive */) ? \"active\" : null;\n}\nconst completionArrayCache = /*@__PURE__*/new WeakMap;\n/**\nReturns the available completions as an array.\n*/\nfunction currentCompletions(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n if (!open || open.disabled)\n return [];\n let completions = completionArrayCache.get(open.options);\n if (!completions)\n completionArrayCache.set(open.options, completions = open.options.map(o => o.completion));\n return completions;\n}\n/**\nReturn the currently selected completion, if any.\n*/\nfunction selectedCompletion(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.options[open.selected].completion : null;\n}\n/**\nReturns the currently selected position in the active completion\nlist, or null if no completions are active.\n*/\nfunction selectedCompletionIndex(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.selected : null;\n}\n/**\nCreate an effect that can be attached to a transaction to change\nthe currently selected completion.\n*/\nfunction setSelectedCompletion(index) {\n return setSelectedEffect.of(index);\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@codemirror/autocomplete/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@codemirror/commands/dist/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/@codemirror/commands/dist/index.js ***! + \*********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ blockComment: () => (/* binding */ blockComment),\n/* harmony export */ blockUncomment: () => (/* binding */ blockUncomment),\n/* harmony export */ copyLineDown: () => (/* binding */ copyLineDown),\n/* harmony export */ copyLineUp: () => (/* binding */ copyLineUp),\n/* harmony export */ cursorCharBackward: () => (/* binding */ cursorCharBackward),\n/* harmony export */ cursorCharForward: () => (/* binding */ cursorCharForward),\n/* harmony export */ cursorCharLeft: () => (/* binding */ cursorCharLeft),\n/* harmony export */ cursorCharRight: () => (/* binding */ cursorCharRight),\n/* harmony export */ cursorDocEnd: () => (/* binding */ cursorDocEnd),\n/* harmony export */ cursorDocStart: () => (/* binding */ cursorDocStart),\n/* harmony export */ cursorGroupBackward: () => (/* binding */ cursorGroupBackward),\n/* harmony export */ cursorGroupForward: () => (/* binding */ cursorGroupForward),\n/* harmony export */ cursorGroupLeft: () => (/* binding */ cursorGroupLeft),\n/* harmony export */ cursorGroupRight: () => (/* binding */ cursorGroupRight),\n/* harmony export */ cursorLineBoundaryBackward: () => (/* binding */ cursorLineBoundaryBackward),\n/* harmony export */ cursorLineBoundaryForward: () => (/* binding */ cursorLineBoundaryForward),\n/* harmony export */ cursorLineBoundaryLeft: () => (/* binding */ cursorLineBoundaryLeft),\n/* harmony export */ cursorLineBoundaryRight: () => (/* binding */ cursorLineBoundaryRight),\n/* harmony export */ cursorLineDown: () => (/* binding */ cursorLineDown),\n/* harmony export */ cursorLineEnd: () => (/* binding */ cursorLineEnd),\n/* harmony export */ cursorLineStart: () => (/* binding */ cursorLineStart),\n/* harmony export */ cursorLineUp: () => (/* binding */ cursorLineUp),\n/* harmony export */ cursorMatchingBracket: () => (/* binding */ cursorMatchingBracket),\n/* harmony export */ cursorPageDown: () => (/* binding */ cursorPageDown),\n/* harmony export */ cursorPageUp: () => (/* binding */ cursorPageUp),\n/* harmony export */ cursorSubwordBackward: () => (/* binding */ cursorSubwordBackward),\n/* harmony export */ cursorSubwordForward: () => (/* binding */ cursorSubwordForward),\n/* harmony export */ cursorSyntaxLeft: () => (/* binding */ cursorSyntaxLeft),\n/* harmony export */ cursorSyntaxRight: () => (/* binding */ cursorSyntaxRight),\n/* harmony export */ defaultKeymap: () => (/* binding */ defaultKeymap),\n/* harmony export */ deleteCharBackward: () => (/* binding */ deleteCharBackward),\n/* harmony export */ deleteCharBackwardStrict: () => (/* binding */ deleteCharBackwardStrict),\n/* harmony export */ deleteCharForward: () => (/* binding */ deleteCharForward),\n/* harmony export */ deleteGroupBackward: () => (/* binding */ deleteGroupBackward),\n/* harmony export */ deleteGroupForward: () => (/* binding */ deleteGroupForward),\n/* harmony export */ deleteLine: () => (/* binding */ deleteLine),\n/* harmony export */ deleteLineBoundaryBackward: () => (/* binding */ deleteLineBoundaryBackward),\n/* harmony export */ deleteLineBoundaryForward: () => (/* binding */ deleteLineBoundaryForward),\n/* harmony export */ deleteToLineEnd: () => (/* binding */ deleteToLineEnd),\n/* harmony export */ deleteToLineStart: () => (/* binding */ deleteToLineStart),\n/* harmony export */ deleteTrailingWhitespace: () => (/* binding */ deleteTrailingWhitespace),\n/* harmony export */ emacsStyleKeymap: () => (/* binding */ emacsStyleKeymap),\n/* harmony export */ history: () => (/* binding */ history),\n/* harmony export */ historyField: () => (/* binding */ historyField),\n/* harmony export */ historyKeymap: () => (/* binding */ historyKeymap),\n/* harmony export */ indentLess: () => (/* binding */ indentLess),\n/* harmony export */ indentMore: () => (/* binding */ indentMore),\n/* harmony export */ indentSelection: () => (/* binding */ indentSelection),\n/* harmony export */ indentWithTab: () => (/* binding */ indentWithTab),\n/* harmony export */ insertBlankLine: () => (/* binding */ insertBlankLine),\n/* harmony export */ insertNewline: () => (/* binding */ insertNewline),\n/* harmony export */ insertNewlineAndIndent: () => (/* binding */ insertNewlineAndIndent),\n/* harmony export */ insertNewlineKeepIndent: () => (/* binding */ insertNewlineKeepIndent),\n/* harmony export */ insertTab: () => (/* binding */ insertTab),\n/* harmony export */ invertedEffects: () => (/* binding */ invertedEffects),\n/* harmony export */ isolateHistory: () => (/* binding */ isolateHistory),\n/* harmony export */ lineComment: () => (/* binding */ lineComment),\n/* harmony export */ lineUncomment: () => (/* binding */ lineUncomment),\n/* harmony export */ moveLineDown: () => (/* binding */ moveLineDown),\n/* harmony export */ moveLineUp: () => (/* binding */ moveLineUp),\n/* harmony export */ redo: () => (/* binding */ redo),\n/* harmony export */ redoDepth: () => (/* binding */ redoDepth),\n/* harmony export */ redoSelection: () => (/* binding */ redoSelection),\n/* harmony export */ selectAll: () => (/* binding */ selectAll),\n/* harmony export */ selectCharBackward: () => (/* binding */ selectCharBackward),\n/* harmony export */ selectCharForward: () => (/* binding */ selectCharForward),\n/* harmony export */ selectCharLeft: () => (/* binding */ selectCharLeft),\n/* harmony export */ selectCharRight: () => (/* binding */ selectCharRight),\n/* harmony export */ selectDocEnd: () => (/* binding */ selectDocEnd),\n/* harmony export */ selectDocStart: () => (/* binding */ selectDocStart),\n/* harmony export */ selectGroupBackward: () => (/* binding */ selectGroupBackward),\n/* harmony export */ selectGroupForward: () => (/* binding */ selectGroupForward),\n/* harmony export */ selectGroupLeft: () => (/* binding */ selectGroupLeft),\n/* harmony export */ selectGroupRight: () => (/* binding */ selectGroupRight),\n/* harmony export */ selectLine: () => (/* binding */ selectLine),\n/* harmony export */ selectLineBoundaryBackward: () => (/* binding */ selectLineBoundaryBackward),\n/* harmony export */ selectLineBoundaryForward: () => (/* binding */ selectLineBoundaryForward),\n/* harmony export */ selectLineBoundaryLeft: () => (/* binding */ selectLineBoundaryLeft),\n/* harmony export */ selectLineBoundaryRight: () => (/* binding */ selectLineBoundaryRight),\n/* harmony export */ selectLineDown: () => (/* binding */ selectLineDown),\n/* harmony export */ selectLineEnd: () => (/* binding */ selectLineEnd),\n/* harmony export */ selectLineStart: () => (/* binding */ selectLineStart),\n/* harmony export */ selectLineUp: () => (/* binding */ selectLineUp),\n/* harmony export */ selectMatchingBracket: () => (/* binding */ selectMatchingBracket),\n/* harmony export */ selectPageDown: () => (/* binding */ selectPageDown),\n/* harmony export */ selectPageUp: () => (/* binding */ selectPageUp),\n/* harmony export */ selectParentSyntax: () => (/* binding */ selectParentSyntax),\n/* harmony export */ selectSubwordBackward: () => (/* binding */ selectSubwordBackward),\n/* harmony export */ selectSubwordForward: () => (/* binding */ selectSubwordForward),\n/* harmony export */ selectSyntaxLeft: () => (/* binding */ selectSyntaxLeft),\n/* harmony export */ selectSyntaxRight: () => (/* binding */ selectSyntaxRight),\n/* harmony export */ simplifySelection: () => (/* binding */ simplifySelection),\n/* harmony export */ splitLine: () => (/* binding */ splitLine),\n/* harmony export */ standardKeymap: () => (/* binding */ standardKeymap),\n/* harmony export */ temporarilySetTabFocusMode: () => (/* binding */ temporarilySetTabFocusMode),\n/* harmony export */ toggleBlockComment: () => (/* binding */ toggleBlockComment),\n/* harmony export */ toggleBlockCommentByLine: () => (/* binding */ toggleBlockCommentByLine),\n/* harmony export */ toggleComment: () => (/* binding */ toggleComment),\n/* harmony export */ toggleLineComment: () => (/* binding */ toggleLineComment),\n/* harmony export */ toggleTabFocusMode: () => (/* binding */ toggleTabFocusMode),\n/* harmony export */ transposeChars: () => (/* binding */ transposeChars),\n/* harmony export */ undo: () => (/* binding */ undo),\n/* harmony export */ undoDepth: () => (/* binding */ undoDepth),\n/* harmony export */ undoSelection: () => (/* binding */ undoSelection)\n/* harmony export */ });\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/common */ \"./node_modules/@lezer/common/dist/index.js\");\n\n\n\n\n\n/**\nComment or uncomment the current selection. Will use line comments\nif available, otherwise falling back to block comments.\n*/\nconst toggleComment = target => {\n let { state } = target, line = state.doc.lineAt(state.selection.main.from), config = getConfig(target.state, line.from);\n return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;\n};\nfunction command(f, option) {\n return ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let tr = f(option, state);\n if (!tr)\n return false;\n dispatch(state.update(tr));\n return true;\n };\n}\n/**\nComment or uncomment the current selection using line comments.\nThe line comment syntax is taken from the\n[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).\n*/\nconst toggleLineComment = /*@__PURE__*/command(changeLineComment, 0 /* CommentOption.Toggle */);\n/**\nComment the current selection using line comments.\n*/\nconst lineComment = /*@__PURE__*/command(changeLineComment, 1 /* CommentOption.Comment */);\n/**\nUncomment the current selection using line comments.\n*/\nconst lineUncomment = /*@__PURE__*/command(changeLineComment, 2 /* CommentOption.Uncomment */);\n/**\nComment or uncomment the current selection using block comments.\nThe block comment syntax is taken from the\n[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).\n*/\nconst toggleBlockComment = /*@__PURE__*/command(changeBlockComment, 0 /* CommentOption.Toggle */);\n/**\nComment the current selection using block comments.\n*/\nconst blockComment = /*@__PURE__*/command(changeBlockComment, 1 /* CommentOption.Comment */);\n/**\nUncomment the current selection using block comments.\n*/\nconst blockUncomment = /*@__PURE__*/command(changeBlockComment, 2 /* CommentOption.Uncomment */);\n/**\nComment or uncomment the lines around the current selection using\nblock comments.\n*/\nconst toggleBlockCommentByLine = /*@__PURE__*/command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0 /* CommentOption.Toggle */);\nfunction getConfig(state, pos) {\n let data = state.languageDataAt(\"commentTokens\", pos);\n return data.length ? data[0] : {};\n}\nconst SearchMargin = 50;\n/**\nDetermines if the given range is block-commented in the given\nstate.\n*/\nfunction findBlockComment(state, { open, close }, from, to) {\n let textBefore = state.sliceDoc(from - SearchMargin, from);\n let textAfter = state.sliceDoc(to, to + SearchMargin);\n let spaceBefore = /\\s*$/.exec(textBefore)[0].length, spaceAfter = /^\\s*/.exec(textAfter)[0].length;\n let beforeOff = textBefore.length - spaceBefore;\n if (textBefore.slice(beforeOff - open.length, beforeOff) == open &&\n textAfter.slice(spaceAfter, spaceAfter + close.length) == close) {\n return { open: { pos: from - spaceBefore, margin: spaceBefore && 1 },\n close: { pos: to + spaceAfter, margin: spaceAfter && 1 } };\n }\n let startText, endText;\n if (to - from <= 2 * SearchMargin) {\n startText = endText = state.sliceDoc(from, to);\n }\n else {\n startText = state.sliceDoc(from, from + SearchMargin);\n endText = state.sliceDoc(to - SearchMargin, to);\n }\n let startSpace = /^\\s*/.exec(startText)[0].length, endSpace = /\\s*$/.exec(endText)[0].length;\n let endOff = endText.length - endSpace - close.length;\n if (startText.slice(startSpace, startSpace + open.length) == open &&\n endText.slice(endOff, endOff + close.length) == close) {\n return { open: { pos: from + startSpace + open.length,\n margin: /\\s/.test(startText.charAt(startSpace + open.length)) ? 1 : 0 },\n close: { pos: to - endSpace - close.length,\n margin: /\\s/.test(endText.charAt(endOff - 1)) ? 1 : 0 } };\n }\n return null;\n}\nfunction selectedLineRanges(state) {\n let ranges = [];\n for (let r of state.selection.ranges) {\n let fromLine = state.doc.lineAt(r.from);\n let toLine = r.to <= fromLine.to ? fromLine : state.doc.lineAt(r.to);\n let last = ranges.length - 1;\n if (last >= 0 && ranges[last].to > fromLine.from)\n ranges[last].to = toLine.to;\n else\n ranges.push({ from: fromLine.from + /^\\s*/.exec(fromLine.text)[0].length, to: toLine.to });\n }\n return ranges;\n}\n// Performs toggle, comment and uncomment of block comments in\n// languages that support them.\nfunction changeBlockComment(option, state, ranges = state.selection.ranges) {\n let tokens = ranges.map(r => getConfig(state, r.from).block);\n if (!tokens.every(c => c))\n return null;\n let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));\n if (option != 2 /* CommentOption.Uncomment */ && !comments.every(c => c)) {\n return { changes: state.changes(ranges.map((range, i) => {\n if (comments[i])\n return [];\n return [{ from: range.from, insert: tokens[i].open + \" \" }, { from: range.to, insert: \" \" + tokens[i].close }];\n })) };\n }\n else if (option != 1 /* CommentOption.Comment */ && comments.some(c => c)) {\n let changes = [];\n for (let i = 0, comment; i < comments.length; i++)\n if (comment = comments[i]) {\n let token = tokens[i], { open, close } = comment;\n changes.push({ from: open.pos - token.open.length, to: open.pos + open.margin }, { from: close.pos - close.margin, to: close.pos + token.close.length });\n }\n return { changes };\n }\n return null;\n}\n// Performs toggle, comment and uncomment of line comments.\nfunction changeLineComment(option, state, ranges = state.selection.ranges) {\n let lines = [];\n let prevLine = -1;\n for (let { from, to } of ranges) {\n let startI = lines.length, minIndent = 1e9;\n let token = getConfig(state, from).line;\n if (!token)\n continue;\n for (let pos = from; pos <= to;) {\n let line = state.doc.lineAt(pos);\n if (line.from > prevLine && (from == to || to > line.from)) {\n prevLine = line.from;\n let indent = /^\\s*/.exec(line.text)[0].length;\n let empty = indent == line.length;\n let comment = line.text.slice(indent, indent + token.length) == token ? indent : -1;\n if (indent < line.text.length && indent < minIndent)\n minIndent = indent;\n lines.push({ line, comment, token, indent, empty, single: false });\n }\n pos = line.to + 1;\n }\n if (minIndent < 1e9)\n for (let i = startI; i < lines.length; i++)\n if (lines[i].indent < lines[i].line.text.length)\n lines[i].indent = minIndent;\n if (lines.length == startI + 1)\n lines[startI].single = true;\n }\n if (option != 2 /* CommentOption.Uncomment */ && lines.some(l => l.comment < 0 && (!l.empty || l.single))) {\n let changes = [];\n for (let { line, token, indent, empty, single } of lines)\n if (single || !empty)\n changes.push({ from: line.from + indent, insert: token + \" \" });\n let changeSet = state.changes(changes);\n return { changes: changeSet, selection: state.selection.map(changeSet, 1) };\n }\n else if (option != 1 /* CommentOption.Comment */ && lines.some(l => l.comment >= 0)) {\n let changes = [];\n for (let { line, comment, token } of lines)\n if (comment >= 0) {\n let from = line.from + comment, to = from + token.length;\n if (line.text[to - line.from] == \" \")\n to++;\n changes.push({ from, to });\n }\n return { changes };\n }\n return null;\n}\n\nconst fromHistory = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Annotation.define();\n/**\nTransaction annotation that will prevent that transaction from\nbeing combined with other transactions in the undo history. Given\n`\"before\"`, it'll prevent merging with previous transactions. With\n`\"after\"`, subsequent transactions won't be combined with this\none. With `\"full\"`, the transaction is isolated on both sides.\n*/\nconst isolateHistory = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Annotation.define();\n/**\nThis facet provides a way to register functions that, given a\ntransaction, provide a set of effects that the history should\nstore when inverting the transaction. This can be used to\nintegrate some kinds of effects in the history, so that they can\nbe undone (and redone again).\n*/\nconst invertedEffects = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define();\nconst historyConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.combineConfig)(configs, {\n minDepth: 100,\n newGroupDelay: 500,\n joinToEvent: (_t, isAdjacent) => isAdjacent,\n }, {\n minDepth: Math.max,\n newGroupDelay: Math.min,\n joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)\n });\n }\n});\nconst historyField_ = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({\n create() {\n return HistoryState.empty;\n },\n update(state, tr) {\n let config = tr.state.facet(historyConfig);\n let fromHist = tr.annotation(fromHistory);\n if (fromHist) {\n let item = HistEvent.fromTransaction(tr, fromHist.selection), from = fromHist.side;\n let other = from == 0 /* BranchName.Done */ ? state.undone : state.done;\n if (item)\n other = updateBranch(other, other.length, config.minDepth, item);\n else\n other = addSelection(other, tr.startState.selection);\n return new HistoryState(from == 0 /* BranchName.Done */ ? fromHist.rest : other, from == 0 /* BranchName.Done */ ? other : fromHist.rest);\n }\n let isolate = tr.annotation(isolateHistory);\n if (isolate == \"full\" || isolate == \"before\")\n state = state.isolate();\n if (tr.annotation(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.addToHistory) === false)\n return !tr.changes.empty ? state.addMapping(tr.changes.desc) : state;\n let event = HistEvent.fromTransaction(tr);\n let time = tr.annotation(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.time), userEvent = tr.annotation(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Transaction.userEvent);\n if (event)\n state = state.addChanges(event, time, userEvent, config, tr);\n else if (tr.selection)\n state = state.addSelection(tr.startState.selection, time, userEvent, config.newGroupDelay);\n if (isolate == \"full\" || isolate == \"after\")\n state = state.isolate();\n return state;\n },\n toJSON(value) {\n return { done: value.done.map(e => e.toJSON()), undone: value.undone.map(e => e.toJSON()) };\n },\n fromJSON(json) {\n return new HistoryState(json.done.map(HistEvent.fromJSON), json.undone.map(HistEvent.fromJSON));\n }\n});\n/**\nCreate a history extension with the given configuration.\n*/\nfunction history(config = {}) {\n return [\n historyField_,\n historyConfig.of(config),\n _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.domEventHandlers({\n beforeinput(e, view) {\n let command = e.inputType == \"historyUndo\" ? undo : e.inputType == \"historyRedo\" ? redo : null;\n if (!command)\n return false;\n e.preventDefault();\n return command(view);\n }\n })\n ];\n}\n/**\nThe state field used to store the history data. Should probably\nonly be used when you want to\n[serialize](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) or\n[deserialize](https://codemirror.net/6/docs/ref/#state.EditorState^fromJSON) state objects in a way\nthat preserves history.\n*/\nconst historyField = historyField_;\nfunction cmd(side, selection) {\n return function ({ state, dispatch }) {\n if (!selection && state.readOnly)\n return false;\n let historyState = state.field(historyField_, false);\n if (!historyState)\n return false;\n let tr = historyState.pop(side, state, selection);\n if (!tr)\n return false;\n dispatch(tr);\n return true;\n };\n}\n/**\nUndo a single group of history events. Returns false if no group\nwas available.\n*/\nconst undo = /*@__PURE__*/cmd(0 /* BranchName.Done */, false);\n/**\nRedo a group of history events. Returns false if no group was\navailable.\n*/\nconst redo = /*@__PURE__*/cmd(1 /* BranchName.Undone */, false);\n/**\nUndo a change or selection change.\n*/\nconst undoSelection = /*@__PURE__*/cmd(0 /* BranchName.Done */, true);\n/**\nRedo a change or selection change.\n*/\nconst redoSelection = /*@__PURE__*/cmd(1 /* BranchName.Undone */, true);\nfunction depth(side) {\n return function (state) {\n let histState = state.field(historyField_, false);\n if (!histState)\n return 0;\n let branch = side == 0 /* BranchName.Done */ ? histState.done : histState.undone;\n return branch.length - (branch.length && !branch[0].changes ? 1 : 0);\n };\n}\n/**\nThe amount of undoable change events available in a given state.\n*/\nconst undoDepth = /*@__PURE__*/depth(0 /* BranchName.Done */);\n/**\nThe amount of redoable change events available in a given state.\n*/\nconst redoDepth = /*@__PURE__*/depth(1 /* BranchName.Undone */);\n// History events store groups of changes or effects that need to be\n// undone/redone together.\nclass HistEvent {\n constructor(\n // The changes in this event. Normal events hold at least one\n // change or effect. But it may be necessary to store selection\n // events before the first change, in which case a special type of\n // instance is created which doesn't hold any changes, with\n // changes == startSelection == undefined\n changes, \n // The effects associated with this event\n effects, \n // Accumulated mapping (from addToHistory==false) that should be\n // applied to events below this one.\n mapped, \n // The selection before this event\n startSelection, \n // Stores selection changes after this event, to be used for\n // selection undo/redo.\n selectionsAfter) {\n this.changes = changes;\n this.effects = effects;\n this.mapped = mapped;\n this.startSelection = startSelection;\n this.selectionsAfter = selectionsAfter;\n }\n setSelAfter(after) {\n return new HistEvent(this.changes, this.effects, this.mapped, this.startSelection, after);\n }\n toJSON() {\n var _a, _b, _c;\n return {\n changes: (_a = this.changes) === null || _a === void 0 ? void 0 : _a.toJSON(),\n mapped: (_b = this.mapped) === null || _b === void 0 ? void 0 : _b.toJSON(),\n startSelection: (_c = this.startSelection) === null || _c === void 0 ? void 0 : _c.toJSON(),\n selectionsAfter: this.selectionsAfter.map(s => s.toJSON())\n };\n }\n static fromJSON(json) {\n return new HistEvent(json.changes && _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.ChangeSet.fromJSON(json.changes), [], json.mapped && _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.ChangeDesc.fromJSON(json.mapped), json.startSelection && _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.fromJSON(json.startSelection), json.selectionsAfter.map(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.fromJSON));\n }\n // This does not check `addToHistory` and such, it assumes the\n // transaction needs to be converted to an item. Returns null when\n // there are no changes or effects in the transaction.\n static fromTransaction(tr, selection) {\n let effects = none;\n for (let invert of tr.startState.facet(invertedEffects)) {\n let result = invert(tr);\n if (result.length)\n effects = effects.concat(result);\n }\n if (!effects.length && tr.changes.empty)\n return null;\n return new HistEvent(tr.changes.invert(tr.startState.doc), effects, undefined, selection || tr.startState.selection, none);\n }\n static selection(selections) {\n return new HistEvent(undefined, none, undefined, undefined, selections);\n }\n}\nfunction updateBranch(branch, to, maxLen, newEvent) {\n let start = to + 1 > maxLen + 20 ? to - maxLen - 1 : 0;\n let newBranch = branch.slice(start, to);\n newBranch.push(newEvent);\n return newBranch;\n}\nfunction isAdjacent(a, b) {\n let ranges = [], isAdjacent = false;\n a.iterChangedRanges((f, t) => ranges.push(f, t));\n b.iterChangedRanges((_f, _t, f, t) => {\n for (let i = 0; i < ranges.length;) {\n let from = ranges[i++], to = ranges[i++];\n if (t >= from && f <= to)\n isAdjacent = true;\n }\n });\n return isAdjacent;\n}\nfunction eqSelectionShape(a, b) {\n return a.ranges.length == b.ranges.length &&\n a.ranges.filter((r, i) => r.empty != b.ranges[i].empty).length === 0;\n}\nfunction conc(a, b) {\n return !a.length ? b : !b.length ? a : a.concat(b);\n}\nconst none = [];\nconst MaxSelectionsPerEvent = 200;\nfunction addSelection(branch, selection) {\n if (!branch.length) {\n return [HistEvent.selection([selection])];\n }\n else {\n let lastEvent = branch[branch.length - 1];\n let sels = lastEvent.selectionsAfter.slice(Math.max(0, lastEvent.selectionsAfter.length - MaxSelectionsPerEvent));\n if (sels.length && sels[sels.length - 1].eq(selection))\n return branch;\n sels.push(selection);\n return updateBranch(branch, branch.length - 1, 1e9, lastEvent.setSelAfter(sels));\n }\n}\n// Assumes the top item has one or more selectionAfter values\nfunction popSelection(branch) {\n let last = branch[branch.length - 1];\n let newBranch = branch.slice();\n newBranch[branch.length - 1] = last.setSelAfter(last.selectionsAfter.slice(0, last.selectionsAfter.length - 1));\n return newBranch;\n}\n// Add a mapping to the top event in the given branch. If this maps\n// away all the changes and effects in that item, drop it and\n// propagate the mapping to the next item.\nfunction addMappingToBranch(branch, mapping) {\n if (!branch.length)\n return branch;\n let length = branch.length, selections = none;\n while (length) {\n let event = mapEvent(branch[length - 1], mapping, selections);\n if (event.changes && !event.changes.empty || event.effects.length) { // Event survived mapping\n let result = branch.slice(0, length);\n result[length - 1] = event;\n return result;\n }\n else { // Drop this event, since there's no changes or effects left\n mapping = event.mapped;\n length--;\n selections = event.selectionsAfter;\n }\n }\n return selections.length ? [HistEvent.selection(selections)] : none;\n}\nfunction mapEvent(event, mapping, extraSelections) {\n let selections = conc(event.selectionsAfter.length ? event.selectionsAfter.map(s => s.map(mapping)) : none, extraSelections);\n // Change-less events don't store mappings (they are always the last event in a branch)\n if (!event.changes)\n return HistEvent.selection(selections);\n let mappedChanges = event.changes.map(mapping), before = mapping.mapDesc(event.changes, true);\n let fullMapping = event.mapped ? event.mapped.composeDesc(before) : before;\n return new HistEvent(mappedChanges, _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.mapEffects(event.effects, mapping), fullMapping, event.startSelection.map(before), selections);\n}\nconst joinableUserEvent = /^(input\\.type|delete)($|\\.)/;\nclass HistoryState {\n constructor(done, undone, prevTime = 0, prevUserEvent = undefined) {\n this.done = done;\n this.undone = undone;\n this.prevTime = prevTime;\n this.prevUserEvent = prevUserEvent;\n }\n isolate() {\n return this.prevTime ? new HistoryState(this.done, this.undone) : this;\n }\n addChanges(event, time, userEvent, config, tr) {\n let done = this.done, lastEvent = done[done.length - 1];\n if (lastEvent && lastEvent.changes && !lastEvent.changes.empty && event.changes &&\n (!userEvent || joinableUserEvent.test(userEvent)) &&\n ((!lastEvent.selectionsAfter.length &&\n time - this.prevTime < config.newGroupDelay &&\n config.joinToEvent(tr, isAdjacent(lastEvent.changes, event.changes))) ||\n // For compose (but not compose.start) events, always join with previous event\n userEvent == \"input.type.compose\")) {\n done = updateBranch(done, done.length - 1, config.minDepth, new HistEvent(event.changes.compose(lastEvent.changes), conc(event.effects, lastEvent.effects), lastEvent.mapped, lastEvent.startSelection, none));\n }\n else {\n done = updateBranch(done, done.length, config.minDepth, event);\n }\n return new HistoryState(done, none, time, userEvent);\n }\n addSelection(selection, time, userEvent, newGroupDelay) {\n let last = this.done.length ? this.done[this.done.length - 1].selectionsAfter : none;\n if (last.length > 0 &&\n time - this.prevTime < newGroupDelay &&\n userEvent == this.prevUserEvent && userEvent && /^select($|\\.)/.test(userEvent) &&\n eqSelectionShape(last[last.length - 1], selection))\n return this;\n return new HistoryState(addSelection(this.done, selection), this.undone, time, userEvent);\n }\n addMapping(mapping) {\n return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);\n }\n pop(side, state, onlySelection) {\n let branch = side == 0 /* BranchName.Done */ ? this.done : this.undone;\n if (branch.length == 0)\n return null;\n let event = branch[branch.length - 1], selection = event.selectionsAfter[0] || state.selection;\n if (onlySelection && event.selectionsAfter.length) {\n return state.update({\n selection: event.selectionsAfter[event.selectionsAfter.length - 1],\n annotations: fromHistory.of({ side, rest: popSelection(branch), selection }),\n userEvent: side == 0 /* BranchName.Done */ ? \"select.undo\" : \"select.redo\",\n scrollIntoView: true\n });\n }\n else if (!event.changes) {\n return null;\n }\n else {\n let rest = branch.length == 1 ? none : branch.slice(0, branch.length - 1);\n if (event.mapped)\n rest = addMappingToBranch(rest, event.mapped);\n return state.update({\n changes: event.changes,\n selection: event.startSelection,\n effects: event.effects,\n annotations: fromHistory.of({ side, rest, selection }),\n filter: false,\n userEvent: side == 0 /* BranchName.Done */ ? \"undo\" : \"redo\",\n scrollIntoView: true\n });\n }\n }\n}\nHistoryState.empty = /*@__PURE__*/new HistoryState(none, none);\n/**\nDefault key bindings for the undo history.\n\n- Mod-z: [`undo`](https://codemirror.net/6/docs/ref/#commands.undo).\n- Mod-y (Mod-Shift-z on macOS) + Ctrl-Shift-z on Linux: [`redo`](https://codemirror.net/6/docs/ref/#commands.redo).\n- Mod-u: [`undoSelection`](https://codemirror.net/6/docs/ref/#commands.undoSelection).\n- Alt-u (Mod-Shift-u on macOS): [`redoSelection`](https://codemirror.net/6/docs/ref/#commands.redoSelection).\n*/\nconst historyKeymap = [\n { key: \"Mod-z\", run: undo, preventDefault: true },\n { key: \"Mod-y\", mac: \"Mod-Shift-z\", run: redo, preventDefault: true },\n { linux: \"Ctrl-Shift-z\", run: redo, preventDefault: true },\n { key: \"Mod-u\", run: undoSelection, preventDefault: true },\n { key: \"Alt-u\", mac: \"Mod-Shift-u\", run: redoSelection, preventDefault: true }\n];\n\nfunction updateSel(sel, by) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(sel.ranges.map(by), sel.mainIndex);\n}\nfunction setSel(state, selection) {\n return state.update({ selection, scrollIntoView: true, userEvent: \"select\" });\n}\nfunction moveSel({ state, dispatch }, how) {\n let selection = updateSel(state.selection, how);\n if (selection.eq(state.selection, true))\n return false;\n dispatch(setSel(state, selection));\n return true;\n}\nfunction rangeEnd(range, forward) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(forward ? range.to : range.from);\n}\nfunction cursorByChar(view, forward) {\n return moveSel(view, range => range.empty ? view.moveByChar(range, forward) : rangeEnd(range, forward));\n}\nfunction ltrAtCursor(view) {\n return view.textDirectionAt(view.state.selection.main.head) == _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.Direction.LTR;\n}\n/**\nMove the selection one character to the left (which is backward in\nleft-to-right text, forward in right-to-left text).\n*/\nconst cursorCharLeft = view => cursorByChar(view, !ltrAtCursor(view));\n/**\nMove the selection one character to the right.\n*/\nconst cursorCharRight = view => cursorByChar(view, ltrAtCursor(view));\n/**\nMove the selection one character forward.\n*/\nconst cursorCharForward = view => cursorByChar(view, true);\n/**\nMove the selection one character backward.\n*/\nconst cursorCharBackward = view => cursorByChar(view, false);\nfunction cursorByGroup(view, forward) {\n return moveSel(view, range => range.empty ? view.moveByGroup(range, forward) : rangeEnd(range, forward));\n}\n/**\nMove the selection to the left across one group of word or\nnon-word (but also non-space) characters.\n*/\nconst cursorGroupLeft = view => cursorByGroup(view, !ltrAtCursor(view));\n/**\nMove the selection one group to the right.\n*/\nconst cursorGroupRight = view => cursorByGroup(view, ltrAtCursor(view));\n/**\nMove the selection one group forward.\n*/\nconst cursorGroupForward = view => cursorByGroup(view, true);\n/**\nMove the selection one group backward.\n*/\nconst cursorGroupBackward = view => cursorByGroup(view, false);\nconst segmenter = typeof Intl != \"undefined\" && Intl.Segmenter ?\n /*@__PURE__*/new (Intl.Segmenter)(undefined, { granularity: \"word\" }) : null;\nfunction moveBySubword(view, range, forward) {\n let categorize = view.state.charCategorizer(range.from);\n let cat = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Space, pos = range.from, steps = 0;\n let done = false, sawUpper = false, sawLower = false;\n let step = (next) => {\n if (done)\n return false;\n pos += forward ? next.length : -next.length;\n let nextCat = categorize(next), ahead;\n if (nextCat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word && next.charCodeAt(0) < 128 && /[\\W_]/.test(next))\n nextCat = -1; // Treat word punctuation specially\n if (cat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Space)\n cat = nextCat;\n if (cat != nextCat)\n return false;\n if (cat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) {\n if (next.toLowerCase() == next) {\n if (!forward && sawUpper)\n return false;\n sawLower = true;\n }\n else if (sawLower) {\n if (forward)\n return false;\n done = true;\n }\n else {\n if (sawUpper && forward && categorize(ahead = view.state.sliceDoc(pos, pos + 1)) == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word &&\n ahead.toLowerCase() == ahead)\n return false;\n sawUpper = true;\n }\n }\n steps++;\n return true;\n };\n let end = view.moveByChar(range, forward, start => {\n step(start);\n return step;\n });\n if (segmenter && cat == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word && end.from == range.from + steps * (forward ? 1 : -1)) {\n let from = Math.min(range.head, end.head), to = Math.max(range.head, end.head);\n let skipped = view.state.sliceDoc(from, to);\n if (skipped.length > 1 && /[\\u4E00-\\uffff]/.test(skipped)) {\n let segments = Array.from(segmenter.segment(skipped));\n if (segments.length > 1) {\n if (forward)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head + segments[1].index, -1);\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(end.head + segments[segments.length - 1].index, 1);\n }\n }\n }\n return end;\n}\nfunction cursorBySubword(view, forward) {\n return moveSel(view, range => range.empty ? moveBySubword(view, range, forward) : rangeEnd(range, forward));\n}\n/**\nMove the selection one group or camel-case subword forward.\n*/\nconst cursorSubwordForward = view => cursorBySubword(view, true);\n/**\nMove the selection one group or camel-case subword backward.\n*/\nconst cursorSubwordBackward = view => cursorBySubword(view, false);\nfunction interestingNode(state, node, bracketProp) {\n if (node.type.prop(bracketProp))\n return true;\n let len = node.to - node.from;\n return len && (len > 2 || /[^\\s,.;:]/.test(state.sliceDoc(node.from, node.to))) || node.firstChild;\n}\nfunction moveBySyntax(state, start, forward) {\n let pos = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxTree)(state).resolveInner(start.head);\n let bracketProp = forward ? _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.closedBy : _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.openedBy;\n // Scan forward through child nodes to see if there's an interesting\n // node ahead.\n for (let at = start.head;;) {\n let next = forward ? pos.childAfter(at) : pos.childBefore(at);\n if (!next)\n break;\n if (interestingNode(state, next, bracketProp))\n pos = next;\n else\n at = forward ? next.to : next.from;\n }\n let bracket = pos.type.prop(bracketProp), match, newPos;\n if (bracket && (match = forward ? (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, pos.from, 1) : (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, pos.to, -1)) && match.matched)\n newPos = forward ? match.end.to : match.end.from;\n else\n newPos = forward ? pos.to : pos.from;\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(newPos, forward ? -1 : 1);\n}\n/**\nMove the cursor over the next syntactic element to the left.\n*/\nconst cursorSyntaxLeft = view => moveSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));\n/**\nMove the cursor over the next syntactic element to the right.\n*/\nconst cursorSyntaxRight = view => moveSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));\nfunction cursorByLine(view, forward) {\n return moveSel(view, range => {\n if (!range.empty)\n return rangeEnd(range, forward);\n let moved = view.moveVertically(range, forward);\n return moved.head != range.head ? moved : view.moveToLineBoundary(range, forward);\n });\n}\n/**\nMove the selection one line up.\n*/\nconst cursorLineUp = view => cursorByLine(view, false);\n/**\nMove the selection one line down.\n*/\nconst cursorLineDown = view => cursorByLine(view, true);\nfunction pageInfo(view) {\n let selfScroll = view.scrollDOM.clientHeight < view.scrollDOM.scrollHeight - 2;\n let marginTop = 0, marginBottom = 0, height;\n if (selfScroll) {\n for (let source of view.state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.scrollMargins)) {\n let margins = source(view);\n if (margins === null || margins === void 0 ? void 0 : margins.top)\n marginTop = Math.max(margins === null || margins === void 0 ? void 0 : margins.top, marginTop);\n if (margins === null || margins === void 0 ? void 0 : margins.bottom)\n marginBottom = Math.max(margins === null || margins === void 0 ? void 0 : margins.bottom, marginBottom);\n }\n height = view.scrollDOM.clientHeight - marginTop - marginBottom;\n }\n else {\n height = (view.dom.ownerDocument.defaultView || window).innerHeight;\n }\n return { marginTop, marginBottom, selfScroll,\n height: Math.max(view.defaultLineHeight, height - 5) };\n}\nfunction cursorByPage(view, forward) {\n let page = pageInfo(view);\n let { state } = view, selection = updateSel(state.selection, range => {\n return range.empty ? view.moveVertically(range, forward, page.height)\n : rangeEnd(range, forward);\n });\n if (selection.eq(state.selection))\n return false;\n let effect;\n if (page.selfScroll) {\n let startPos = view.coordsAtPos(state.selection.main.head);\n let scrollRect = view.scrollDOM.getBoundingClientRect();\n let scrollTop = scrollRect.top + page.marginTop, scrollBottom = scrollRect.bottom - page.marginBottom;\n if (startPos && startPos.top > scrollTop && startPos.bottom < scrollBottom)\n effect = _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.scrollIntoView(selection.main.head, { y: \"start\", yMargin: startPos.top - scrollTop });\n }\n view.dispatch(setSel(state, selection), { effects: effect });\n return true;\n}\n/**\nMove the selection one page up.\n*/\nconst cursorPageUp = view => cursorByPage(view, false);\n/**\nMove the selection one page down.\n*/\nconst cursorPageDown = view => cursorByPage(view, true);\nfunction moveByLineBoundary(view, start, forward) {\n let line = view.lineBlockAt(start.head), moved = view.moveToLineBoundary(start, forward);\n if (moved.head == start.head && moved.head != (forward ? line.to : line.from))\n moved = view.moveToLineBoundary(start, forward, false);\n if (!forward && moved.head == line.from && line.length) {\n let space = /^\\s*/.exec(view.state.sliceDoc(line.from, Math.min(line.from + 100, line.to)))[0].length;\n if (space && start.head != line.from + space)\n moved = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(line.from + space);\n }\n return moved;\n}\n/**\nMove the selection to the next line wrap point, or to the end of\nthe line if there isn't one left on this line.\n*/\nconst cursorLineBoundaryForward = view => moveSel(view, range => moveByLineBoundary(view, range, true));\n/**\nMove the selection to previous line wrap point, or failing that to\nthe start of the line. If the line is indented, and the cursor\nisn't already at the end of the indentation, this will move to the\nend of the indentation instead of the start of the line.\n*/\nconst cursorLineBoundaryBackward = view => moveSel(view, range => moveByLineBoundary(view, range, false));\n/**\nMove the selection one line wrap point to the left.\n*/\nconst cursorLineBoundaryLeft = view => moveSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));\n/**\nMove the selection one line wrap point to the right.\n*/\nconst cursorLineBoundaryRight = view => moveSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));\n/**\nMove the selection to the start of the line.\n*/\nconst cursorLineStart = view => moveSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));\n/**\nMove the selection to the end of the line.\n*/\nconst cursorLineEnd = view => moveSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));\nfunction toMatchingBracket(state, dispatch, extend) {\n let found = false, selection = updateSel(state.selection, range => {\n let matching = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head, -1)\n || (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head, 1)\n || (range.head > 0 && (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head - 1, 1))\n || (range.head < state.doc.length && (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.matchBrackets)(state, range.head + 1, -1));\n if (!matching || !matching.end)\n return range;\n found = true;\n let head = matching.start.from == range.head ? matching.end.to : matching.end.from;\n return extend ? _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor, head) : _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(head);\n });\n if (!found)\n return false;\n dispatch(setSel(state, selection));\n return true;\n}\n/**\nMove the selection to the bracket matching the one it is currently\non, if any.\n*/\nconst cursorMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, false);\n/**\nExtend the selection to the bracket matching the one the selection\nhead is currently on, if any.\n*/\nconst selectMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, true);\nfunction extendSel(view, how) {\n let selection = updateSel(view.state.selection, range => {\n let head = how(range);\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.anchor, head.head, head.goalColumn, head.bidiLevel || undefined);\n });\n if (selection.eq(view.state.selection))\n return false;\n view.dispatch(setSel(view.state, selection));\n return true;\n}\nfunction selectByChar(view, forward) {\n return extendSel(view, range => view.moveByChar(range, forward));\n}\n/**\nMove the selection head one character to the left, while leaving\nthe anchor in place.\n*/\nconst selectCharLeft = view => selectByChar(view, !ltrAtCursor(view));\n/**\nMove the selection head one character to the right.\n*/\nconst selectCharRight = view => selectByChar(view, ltrAtCursor(view));\n/**\nMove the selection head one character forward.\n*/\nconst selectCharForward = view => selectByChar(view, true);\n/**\nMove the selection head one character backward.\n*/\nconst selectCharBackward = view => selectByChar(view, false);\nfunction selectByGroup(view, forward) {\n return extendSel(view, range => view.moveByGroup(range, forward));\n}\n/**\nMove the selection head one [group](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) to\nthe left.\n*/\nconst selectGroupLeft = view => selectByGroup(view, !ltrAtCursor(view));\n/**\nMove the selection head one group to the right.\n*/\nconst selectGroupRight = view => selectByGroup(view, ltrAtCursor(view));\n/**\nMove the selection head one group forward.\n*/\nconst selectGroupForward = view => selectByGroup(view, true);\n/**\nMove the selection head one group backward.\n*/\nconst selectGroupBackward = view => selectByGroup(view, false);\nfunction selectBySubword(view, forward) {\n return extendSel(view, range => moveBySubword(view, range, forward));\n}\n/**\nMove the selection head one group or camel-case subword forward.\n*/\nconst selectSubwordForward = view => selectBySubword(view, true);\n/**\nMove the selection head one group or subword backward.\n*/\nconst selectSubwordBackward = view => selectBySubword(view, false);\n/**\nMove the selection head over the next syntactic element to the left.\n*/\nconst selectSyntaxLeft = view => extendSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));\n/**\nMove the selection head over the next syntactic element to the right.\n*/\nconst selectSyntaxRight = view => extendSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));\nfunction selectByLine(view, forward) {\n return extendSel(view, range => view.moveVertically(range, forward));\n}\n/**\nMove the selection head one line up.\n*/\nconst selectLineUp = view => selectByLine(view, false);\n/**\nMove the selection head one line down.\n*/\nconst selectLineDown = view => selectByLine(view, true);\nfunction selectByPage(view, forward) {\n return extendSel(view, range => view.moveVertically(range, forward, pageInfo(view).height));\n}\n/**\nMove the selection head one page up.\n*/\nconst selectPageUp = view => selectByPage(view, false);\n/**\nMove the selection head one page down.\n*/\nconst selectPageDown = view => selectByPage(view, true);\n/**\nMove the selection head to the next line boundary.\n*/\nconst selectLineBoundaryForward = view => extendSel(view, range => moveByLineBoundary(view, range, true));\n/**\nMove the selection head to the previous line boundary.\n*/\nconst selectLineBoundaryBackward = view => extendSel(view, range => moveByLineBoundary(view, range, false));\n/**\nMove the selection head one line boundary to the left.\n*/\nconst selectLineBoundaryLeft = view => extendSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));\n/**\nMove the selection head one line boundary to the right.\n*/\nconst selectLineBoundaryRight = view => extendSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));\n/**\nMove the selection head to the start of the line.\n*/\nconst selectLineStart = view => extendSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).from));\n/**\nMove the selection head to the end of the line.\n*/\nconst selectLineEnd = view => extendSel(view, range => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(view.lineBlockAt(range.head).to));\n/**\nMove the selection to the start of the document.\n*/\nconst cursorDocStart = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: 0 }));\n return true;\n};\n/**\nMove the selection to the end of the document.\n*/\nconst cursorDocEnd = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.doc.length }));\n return true;\n};\n/**\nMove the selection head to the start of the document.\n*/\nconst selectDocStart = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.selection.main.anchor, head: 0 }));\n return true;\n};\n/**\nMove the selection head to the end of the document.\n*/\nconst selectDocEnd = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.selection.main.anchor, head: state.doc.length }));\n return true;\n};\n/**\nSelect the entire document.\n*/\nconst selectAll = ({ state, dispatch }) => {\n dispatch(state.update({ selection: { anchor: 0, head: state.doc.length }, userEvent: \"select\" }));\n return true;\n};\n/**\nExpand the selection to cover entire lines.\n*/\nconst selectLine = ({ state, dispatch }) => {\n let ranges = selectedLineBlocks(state).map(({ from, to }) => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(from, Math.min(to + 1, state.doc.length)));\n dispatch(state.update({ selection: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges), userEvent: \"select\" }));\n return true;\n};\n/**\nSelect the next syntactic construct that is larger than the\nselection. Note that this will only work insofar as the language\n[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full\nsyntax tree.\n*/\nconst selectParentSyntax = ({ state, dispatch }) => {\n let selection = updateSel(state.selection, range => {\n var _a;\n let stack = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxTree)(state).resolveStack(range.from, 1);\n for (let cur = stack; cur; cur = cur.next) {\n let { node } = cur;\n if (((node.from < range.from && node.to >= range.to) ||\n (node.to > range.to && node.from <= range.from)) &&\n ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent))\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(node.to, node.from);\n }\n return range;\n });\n dispatch(setSel(state, selection));\n return true;\n};\n/**\nSimplify the current selection. When multiple ranges are selected,\nreduce it to its main range. Otherwise, if the selection is\nnon-empty, convert it to a cursor selection.\n*/\nconst simplifySelection = ({ state, dispatch }) => {\n let cur = state.selection, selection = null;\n if (cur.ranges.length > 1)\n selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create([cur.main]);\n else if (!cur.main.empty)\n selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create([_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(cur.main.head)]);\n if (!selection)\n return false;\n dispatch(setSel(state, selection));\n return true;\n};\nfunction deleteBy(target, by) {\n if (target.state.readOnly)\n return false;\n let event = \"delete.selection\", { state } = target;\n let changes = state.changeByRange(range => {\n let { from, to } = range;\n if (from == to) {\n let towards = by(range);\n if (towards < from) {\n event = \"delete.backward\";\n towards = skipAtomic(target, towards, false);\n }\n else if (towards > from) {\n event = \"delete.forward\";\n towards = skipAtomic(target, towards, true);\n }\n from = Math.min(from, towards);\n to = Math.max(to, towards);\n }\n else {\n from = skipAtomic(target, from, false);\n to = skipAtomic(target, to, true);\n }\n return from == to ? { range } : { changes: { from, to }, range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(from, from < range.head ? -1 : 1) };\n });\n if (changes.changes.empty)\n return false;\n target.dispatch(state.update(changes, {\n scrollIntoView: true,\n userEvent: event,\n effects: event == \"delete.selection\" ? _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.announce.of(state.phrase(\"Selection deleted\")) : undefined\n }));\n return true;\n}\nfunction skipAtomic(target, pos, forward) {\n if (target instanceof _codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView)\n for (let ranges of target.state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_2__.EditorView.atomicRanges).map(f => f(target)))\n ranges.between(pos, pos, (from, to) => {\n if (from < pos && to > pos)\n pos = forward ? to : from;\n });\n return pos;\n}\nconst deleteByChar = (target, forward, byIndentUnit) => deleteBy(target, range => {\n let pos = range.from, { state } = target, line = state.doc.lineAt(pos), before, targetPos;\n if (byIndentUnit && !forward && pos > line.from && pos < line.from + 200 &&\n !/[^ \\t]/.test(before = line.text.slice(0, pos - line.from))) {\n if (before[before.length - 1] == \"\\t\")\n return pos - 1;\n let col = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.countColumn)(before, state.tabSize), drop = col % (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentUnit)(state) || (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentUnit)(state);\n for (let i = 0; i < drop && before[before.length - 1 - i] == \" \"; i++)\n pos--;\n targetPos = pos;\n }\n else {\n targetPos = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, forward, forward) + line.from;\n if (targetPos == pos && line.number != (forward ? state.doc.lines : 1))\n targetPos += forward ? 1 : -1;\n else if (!forward && /[\\ufe00-\\ufe0f]/.test(line.text.slice(targetPos - line.from, pos - line.from)))\n targetPos = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, targetPos - line.from, false, false) + line.from;\n }\n return targetPos;\n});\n/**\nDelete the selection, or, for cursor selections, the character or\nindentation unit before the cursor.\n*/\nconst deleteCharBackward = view => deleteByChar(view, false, true);\n/**\nDelete the selection or the character before the cursor. Does not\nimplement any extended behavior like deleting whole indentation\nunits in one go.\n*/\nconst deleteCharBackwardStrict = view => deleteByChar(view, false, false);\n/**\nDelete the selection or the character after the cursor.\n*/\nconst deleteCharForward = view => deleteByChar(view, true, false);\nconst deleteByGroup = (target, forward) => deleteBy(target, range => {\n let pos = range.head, { state } = target, line = state.doc.lineAt(pos);\n let categorize = state.charCategorizer(pos);\n for (let cat = null;;) {\n if (pos == (forward ? line.to : line.from)) {\n if (pos == range.head && line.number != (forward ? state.doc.lines : 1))\n pos += forward ? 1 : -1;\n break;\n }\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, forward) + line.from;\n let nextChar = line.text.slice(Math.min(pos, next) - line.from, Math.max(pos, next) - line.from);\n let nextCat = categorize(nextChar);\n if (cat != null && nextCat != cat)\n break;\n if (nextChar != \" \" || pos != range.head)\n cat = nextCat;\n pos = next;\n }\n return pos;\n});\n/**\nDelete the selection or backward until the end of the next\n[group](https://codemirror.net/6/docs/ref/#view.EditorView.moveByGroup), only skipping groups of\nwhitespace when they consist of a single space.\n*/\nconst deleteGroupBackward = target => deleteByGroup(target, false);\n/**\nDelete the selection or forward until the end of the next group.\n*/\nconst deleteGroupForward = target => deleteByGroup(target, true);\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe end of the line. If the cursor is directly at the end of the\nline, delete the line break after it.\n*/\nconst deleteToLineEnd = view => deleteBy(view, range => {\n let lineEnd = view.lineBlockAt(range.head).to;\n return range.head < lineEnd ? lineEnd : Math.min(view.state.doc.length, range.head + 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe start of the line. If the cursor is directly at the start of the\nline, delete the line break before it.\n*/\nconst deleteToLineStart = view => deleteBy(view, range => {\n let lineStart = view.lineBlockAt(range.head).from;\n return range.head > lineStart ? lineStart : Math.max(0, range.head - 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe start of the line or the next line wrap before the cursor.\n*/\nconst deleteLineBoundaryBackward = view => deleteBy(view, range => {\n let lineStart = view.moveToLineBoundary(range, false).head;\n return range.head > lineStart ? lineStart : Math.max(0, range.head - 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe end of the line or the next line wrap after the cursor.\n*/\nconst deleteLineBoundaryForward = view => deleteBy(view, range => {\n let lineStart = view.moveToLineBoundary(range, true).head;\n return range.head < lineStart ? lineStart : Math.min(view.state.doc.length, range.head + 1);\n});\n/**\nDelete all whitespace directly before a line end from the\ndocument.\n*/\nconst deleteTrailingWhitespace = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = [];\n for (let pos = 0, prev = \"\", iter = state.doc.iter();;) {\n iter.next();\n if (iter.lineBreak || iter.done) {\n let trailing = prev.search(/\\s+$/);\n if (trailing > -1)\n changes.push({ from: pos - (prev.length - trailing), to: pos });\n if (iter.done)\n break;\n prev = \"\";\n }\n else {\n prev = iter.value;\n }\n pos += iter.value.length;\n }\n if (!changes.length)\n return false;\n dispatch(state.update({ changes, userEvent: \"delete\" }));\n return true;\n};\n/**\nReplace each selection range with a line break, leaving the cursor\non the line before the break.\n*/\nconst splitLine = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n return { changes: { from: range.from, to: range.to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Text.of([\"\", \"\"]) },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.from) };\n });\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nFlip the characters before and after the cursor(s).\n*/\nconst transposeChars = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n if (!range.empty || range.from == 0 || range.from == state.doc.length)\n return { range };\n let pos = range.from, line = state.doc.lineAt(pos);\n let from = pos == line.from ? pos - 1 : (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, false) + line.from;\n let to = pos == line.to ? pos + 1 : (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(line.text, pos - line.from, true) + line.from;\n return { changes: { from, to, insert: state.doc.slice(pos, to).append(state.doc.slice(from, pos)) },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(to) };\n });\n if (changes.changes.empty)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"move.character\" }));\n return true;\n};\nfunction selectedLineBlocks(state) {\n let blocks = [], upto = -1;\n for (let range of state.selection.ranges) {\n let startLine = state.doc.lineAt(range.from), endLine = state.doc.lineAt(range.to);\n if (!range.empty && range.to == endLine.from)\n endLine = state.doc.lineAt(range.to - 1);\n if (upto >= startLine.number) {\n let prev = blocks[blocks.length - 1];\n prev.to = endLine.to;\n prev.ranges.push(range);\n }\n else {\n blocks.push({ from: startLine.from, to: endLine.to, ranges: [range] });\n }\n upto = endLine.number + 1;\n }\n return blocks;\n}\nfunction moveLine(state, dispatch, forward) {\n if (state.readOnly)\n return false;\n let changes = [], ranges = [];\n for (let block of selectedLineBlocks(state)) {\n if (forward ? block.to == state.doc.length : block.from == 0)\n continue;\n let nextLine = state.doc.lineAt(forward ? block.to + 1 : block.from - 1);\n let size = nextLine.length + 1;\n if (forward) {\n changes.push({ from: block.to, to: nextLine.to }, { from: block.from, insert: nextLine.text + state.lineBreak });\n for (let r of block.ranges)\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(Math.min(state.doc.length, r.anchor + size), Math.min(state.doc.length, r.head + size)));\n }\n else {\n changes.push({ from: nextLine.from, to: block.from }, { from: block.to, insert: state.lineBreak + nextLine.text });\n for (let r of block.ranges)\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(r.anchor - size, r.head - size));\n }\n }\n if (!changes.length)\n return false;\n dispatch(state.update({\n changes,\n scrollIntoView: true,\n selection: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges, state.selection.mainIndex),\n userEvent: \"move.line\"\n }));\n return true;\n}\n/**\nMove the selected lines up one line.\n*/\nconst moveLineUp = ({ state, dispatch }) => moveLine(state, dispatch, false);\n/**\nMove the selected lines down one line.\n*/\nconst moveLineDown = ({ state, dispatch }) => moveLine(state, dispatch, true);\nfunction copyLine(state, dispatch, forward) {\n if (state.readOnly)\n return false;\n let changes = [];\n for (let block of selectedLineBlocks(state)) {\n if (forward)\n changes.push({ from: block.from, insert: state.doc.slice(block.from, block.to) + state.lineBreak });\n else\n changes.push({ from: block.to, insert: state.lineBreak + state.doc.slice(block.from, block.to) });\n }\n dispatch(state.update({ changes, scrollIntoView: true, userEvent: \"input.copyline\" }));\n return true;\n}\n/**\nCreate a copy of the selected lines. Keep the selection in the top copy.\n*/\nconst copyLineUp = ({ state, dispatch }) => copyLine(state, dispatch, false);\n/**\nCreate a copy of the selected lines. Keep the selection in the bottom copy.\n*/\nconst copyLineDown = ({ state, dispatch }) => copyLine(state, dispatch, true);\n/**\nDelete selected lines.\n*/\nconst deleteLine = view => {\n if (view.state.readOnly)\n return false;\n let { state } = view, changes = state.changes(selectedLineBlocks(state).map(({ from, to }) => {\n if (from > 0)\n from--;\n else if (to < state.doc.length)\n to++;\n return { from, to };\n }));\n let selection = updateSel(state.selection, range => {\n let dist = undefined;\n if (view.lineWrapping) {\n let block = view.lineBlockAt(range.head), pos = view.coordsAtPos(range.head, range.assoc || 1);\n if (pos)\n dist = (block.bottom + view.documentTop) - pos.bottom + view.defaultLineHeight / 2;\n }\n return view.moveVertically(range, true, dist);\n }).map(changes);\n view.dispatch({ changes, selection, scrollIntoView: true, userEvent: \"delete.line\" });\n return true;\n};\n/**\nReplace the selection with a newline.\n*/\nconst insertNewline = ({ state, dispatch }) => {\n dispatch(state.update(state.replaceSelection(state.lineBreak), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nReplace the selection with a newline and the same amount of\nindentation as the line above.\n*/\nconst insertNewlineKeepIndent = ({ state, dispatch }) => {\n dispatch(state.update(state.changeByRange(range => {\n let indent = /^\\s*/.exec(state.doc.lineAt(range.from).text)[0];\n return {\n changes: { from: range.from, to: range.to, insert: state.lineBreak + indent },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.from + indent.length + 1)\n };\n }), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\nfunction isBetweenBrackets(state, pos) {\n if (/\\(\\)|\\[\\]|\\{\\}/.test(state.sliceDoc(pos - 1, pos + 1)))\n return { from: pos, to: pos };\n let context = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.syntaxTree)(state).resolveInner(pos);\n let before = context.childBefore(pos), after = context.childAfter(pos), closedBy;\n if (before && after && before.to <= pos && after.from >= pos &&\n (closedBy = before.type.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.closedBy)) && closedBy.indexOf(after.name) > -1 &&\n state.doc.lineAt(before.to).from == state.doc.lineAt(after.from).from &&\n !/\\S/.test(state.sliceDoc(before.to, after.from)))\n return { from: before.to, to: after.from };\n return null;\n}\n/**\nReplace the selection with a newline and indent the newly created\nline(s). If the current line consists only of whitespace, this\nwill also delete that whitespace. When the cursor is between\nmatching brackets, an additional newline will be inserted after\nthe cursor.\n*/\nconst insertNewlineAndIndent = /*@__PURE__*/newlineAndIndent(false);\n/**\nCreate a blank, indented line below the current line.\n*/\nconst insertBlankLine = /*@__PURE__*/newlineAndIndent(true);\nfunction newlineAndIndent(atEof) {\n return ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n let { from, to } = range, line = state.doc.lineAt(from);\n let explode = !atEof && from == to && isBetweenBrackets(state, from);\n if (atEof)\n from = to = (to <= line.to ? line : state.doc.lineAt(to)).to;\n let cx = new _codemirror_language__WEBPACK_IMPORTED_MODULE_3__.IndentContext(state, { simulateBreak: from, simulateDoubleBreak: !!explode });\n let indent = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentation)(cx, from);\n if (indent == null)\n indent = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.countColumn)(/^\\s*/.exec(state.doc.lineAt(from).text)[0], state.tabSize);\n while (to < line.to && /\\s/.test(line.text[to - line.from]))\n to++;\n if (explode)\n ({ from, to } = explode);\n else if (from > line.from && from < line.from + 100 && !/\\S/.test(line.text.slice(0, from)))\n from = line.from;\n let insert = [\"\", (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, indent)];\n if (explode)\n insert.push((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, cx.lineIndent(line.from, -1)));\n return { changes: { from, to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Text.of(insert) },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(from + 1 + insert[1].length) };\n });\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n };\n}\nfunction changeBySelectedLine(state, f) {\n let atLine = -1;\n return state.changeByRange(range => {\n let changes = [];\n for (let pos = range.from; pos <= range.to;) {\n let line = state.doc.lineAt(pos);\n if (line.number > atLine && (range.empty || range.to > line.from)) {\n f(line, changes, range);\n atLine = line.number;\n }\n pos = line.to + 1;\n }\n let changeSet = state.changes(changes);\n return { changes,\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1)) };\n });\n}\n/**\nAuto-indent the selected lines. This uses the [indentation service\nfacet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent\ninformation.\n*/\nconst indentSelection = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let updated = Object.create(null);\n let context = new _codemirror_language__WEBPACK_IMPORTED_MODULE_3__.IndentContext(state, { overrideIndentation: start => {\n let found = updated[start];\n return found == null ? -1 : found;\n } });\n let changes = changeBySelectedLine(state, (line, changes, range) => {\n let indent = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentation)(context, line.from);\n if (indent == null)\n return;\n if (!/\\S/.test(line.text))\n indent = 0;\n let cur = /^\\s*/.exec(line.text)[0];\n let norm = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, indent);\n if (cur != norm || range.from < line.from + cur.length) {\n updated[line.from] = indent;\n changes.push({ from: line.from, to: line.from + cur.length, insert: norm });\n }\n });\n if (!changes.changes.empty)\n dispatch(state.update(changes, { userEvent: \"indent\" }));\n return true;\n};\n/**\nAdd a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected\nlines.\n*/\nconst indentMore = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n dispatch(state.update(changeBySelectedLine(state, (line, changes) => {\n changes.push({ from: line.from, insert: state.facet(_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentUnit) });\n }), { userEvent: \"input.indent\" }));\n return true;\n};\n/**\nRemove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all\nselected lines.\n*/\nconst indentLess = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n dispatch(state.update(changeBySelectedLine(state, (line, changes) => {\n let space = /^\\s*/.exec(line.text)[0];\n if (!space)\n return;\n let col = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.countColumn)(space, state.tabSize), keep = 0;\n let insert = (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.indentString)(state, Math.max(0, col - (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_3__.getIndentUnit)(state)));\n while (keep < space.length && keep < insert.length && space.charCodeAt(keep) == insert.charCodeAt(keep))\n keep++;\n changes.push({ from: line.from + keep, to: line.from + space.length, insert: insert.slice(keep) });\n }), { userEvent: \"delete.dedent\" }));\n return true;\n};\n/**\nEnables or disables\n[tab-focus mode](https://codemirror.net/6/docs/ref/#view.EditorView.setTabFocusMode). While on, this\nprevents the editor's key bindings from capturing Tab or\nShift-Tab, making it possible for the user to move focus out of\nthe editor with the keyboard.\n*/\nconst toggleTabFocusMode = view => {\n view.setTabFocusMode();\n return true;\n};\n/**\nTemporarily enables [tab-focus\nmode](https://codemirror.net/6/docs/ref/#view.EditorView.setTabFocusMode) for two seconds or until\nanother key is pressed.\n*/\nconst temporarilySetTabFocusMode = view => {\n view.setTabFocusMode(2000);\n return true;\n};\n/**\nInsert a tab character at the cursor or, if something is selected,\nuse [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) to indent the entire\nselection.\n*/\nconst insertTab = ({ state, dispatch }) => {\n if (state.selection.ranges.some(r => !r.empty))\n return indentMore({ state, dispatch });\n dispatch(state.update(state.replaceSelection(\"\\t\"), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nArray of key bindings containing the Emacs-style bindings that are\navailable on macOS by default.\n\n - Ctrl-b: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)\n - Ctrl-f: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)\n - Ctrl-p: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)\n - Ctrl-n: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)\n - Ctrl-a: [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)\n - Ctrl-e: [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)\n - Ctrl-d: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)\n - Ctrl-h: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)\n - Ctrl-k: [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd)\n - Ctrl-Alt-h: [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)\n - Ctrl-o: [`splitLine`](https://codemirror.net/6/docs/ref/#commands.splitLine)\n - Ctrl-t: [`transposeChars`](https://codemirror.net/6/docs/ref/#commands.transposeChars)\n - Ctrl-v: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown)\n - Alt-v: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp)\n*/\nconst emacsStyleKeymap = [\n { key: \"Ctrl-b\", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },\n { key: \"Ctrl-f\", run: cursorCharRight, shift: selectCharRight },\n { key: \"Ctrl-p\", run: cursorLineUp, shift: selectLineUp },\n { key: \"Ctrl-n\", run: cursorLineDown, shift: selectLineDown },\n { key: \"Ctrl-a\", run: cursorLineStart, shift: selectLineStart },\n { key: \"Ctrl-e\", run: cursorLineEnd, shift: selectLineEnd },\n { key: \"Ctrl-d\", run: deleteCharForward },\n { key: \"Ctrl-h\", run: deleteCharBackward },\n { key: \"Ctrl-k\", run: deleteToLineEnd },\n { key: \"Ctrl-Alt-h\", run: deleteGroupBackward },\n { key: \"Ctrl-o\", run: splitLine },\n { key: \"Ctrl-t\", run: transposeChars },\n { key: \"Ctrl-v\", run: cursorPageDown },\n];\n/**\nAn array of key bindings closely sticking to platform-standard or\nwidely used bindings. (This includes the bindings from\n[`emacsStyleKeymap`](https://codemirror.net/6/docs/ref/#commands.emacsStyleKeymap), with their `key`\nproperty changed to `mac`.)\n\n - ArrowLeft: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)\n - ArrowRight: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)\n - Ctrl-ArrowLeft (Alt-ArrowLeft on macOS): [`cursorGroupLeft`](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) ([`selectGroupLeft`](https://codemirror.net/6/docs/ref/#commands.selectGroupLeft) with Shift)\n - Ctrl-ArrowRight (Alt-ArrowRight on macOS): [`cursorGroupRight`](https://codemirror.net/6/docs/ref/#commands.cursorGroupRight) ([`selectGroupRight`](https://codemirror.net/6/docs/ref/#commands.selectGroupRight) with Shift)\n - Cmd-ArrowLeft (on macOS): [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)\n - Cmd-ArrowRight (on macOS): [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)\n - ArrowUp: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)\n - ArrowDown: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)\n - Cmd-ArrowUp (on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)\n - Cmd-ArrowDown (on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)\n - Ctrl-ArrowUp (on macOS): [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)\n - Ctrl-ArrowDown (on macOS): [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)\n - PageUp: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)\n - PageDown: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)\n - Home: [`cursorLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryBackward) ([`selectLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryBackward) with Shift)\n - End: [`cursorLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryForward) ([`selectLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryForward) with Shift)\n - Ctrl-Home (Cmd-Home on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)\n - Ctrl-End (Cmd-Home on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)\n - Enter: [`insertNewlineAndIndent`](https://codemirror.net/6/docs/ref/#commands.insertNewlineAndIndent)\n - Ctrl-a (Cmd-a on macOS): [`selectAll`](https://codemirror.net/6/docs/ref/#commands.selectAll)\n - Backspace: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)\n - Delete: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)\n - Ctrl-Backspace (Alt-Backspace on macOS): [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)\n - Ctrl-Delete (Alt-Delete on macOS): [`deleteGroupForward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupForward)\n - Cmd-Backspace (macOS): [`deleteLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryBackward).\n - Cmd-Delete (macOS): [`deleteLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryForward).\n*/\nconst standardKeymap = /*@__PURE__*/[\n { key: \"ArrowLeft\", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },\n { key: \"Mod-ArrowLeft\", mac: \"Alt-ArrowLeft\", run: cursorGroupLeft, shift: selectGroupLeft, preventDefault: true },\n { mac: \"Cmd-ArrowLeft\", run: cursorLineBoundaryLeft, shift: selectLineBoundaryLeft, preventDefault: true },\n { key: \"ArrowRight\", run: cursorCharRight, shift: selectCharRight, preventDefault: true },\n { key: \"Mod-ArrowRight\", mac: \"Alt-ArrowRight\", run: cursorGroupRight, shift: selectGroupRight, preventDefault: true },\n { mac: \"Cmd-ArrowRight\", run: cursorLineBoundaryRight, shift: selectLineBoundaryRight, preventDefault: true },\n { key: \"ArrowUp\", run: cursorLineUp, shift: selectLineUp, preventDefault: true },\n { mac: \"Cmd-ArrowUp\", run: cursorDocStart, shift: selectDocStart },\n { mac: \"Ctrl-ArrowUp\", run: cursorPageUp, shift: selectPageUp },\n { key: \"ArrowDown\", run: cursorLineDown, shift: selectLineDown, preventDefault: true },\n { mac: \"Cmd-ArrowDown\", run: cursorDocEnd, shift: selectDocEnd },\n { mac: \"Ctrl-ArrowDown\", run: cursorPageDown, shift: selectPageDown },\n { key: \"PageUp\", run: cursorPageUp, shift: selectPageUp },\n { key: \"PageDown\", run: cursorPageDown, shift: selectPageDown },\n { key: \"Home\", run: cursorLineBoundaryBackward, shift: selectLineBoundaryBackward, preventDefault: true },\n { key: \"Mod-Home\", run: cursorDocStart, shift: selectDocStart },\n { key: \"End\", run: cursorLineBoundaryForward, shift: selectLineBoundaryForward, preventDefault: true },\n { key: \"Mod-End\", run: cursorDocEnd, shift: selectDocEnd },\n { key: \"Enter\", run: insertNewlineAndIndent },\n { key: \"Mod-a\", run: selectAll },\n { key: \"Backspace\", run: deleteCharBackward, shift: deleteCharBackward },\n { key: \"Delete\", run: deleteCharForward },\n { key: \"Mod-Backspace\", mac: \"Alt-Backspace\", run: deleteGroupBackward },\n { key: \"Mod-Delete\", mac: \"Alt-Delete\", run: deleteGroupForward },\n { mac: \"Mod-Backspace\", run: deleteLineBoundaryBackward },\n { mac: \"Mod-Delete\", run: deleteLineBoundaryForward }\n].concat(/*@__PURE__*/emacsStyleKeymap.map(b => ({ mac: b.key, run: b.run, shift: b.shift })));\n/**\nThe default keymap. Includes all bindings from\n[`standardKeymap`](https://codemirror.net/6/docs/ref/#commands.standardKeymap) plus the following:\n\n- Alt-ArrowLeft (Ctrl-ArrowLeft on macOS): [`cursorSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxLeft) ([`selectSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxLeft) with Shift)\n- Alt-ArrowRight (Ctrl-ArrowRight on macOS): [`cursorSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxRight) ([`selectSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxRight) with Shift)\n- Alt-ArrowUp: [`moveLineUp`](https://codemirror.net/6/docs/ref/#commands.moveLineUp)\n- Alt-ArrowDown: [`moveLineDown`](https://codemirror.net/6/docs/ref/#commands.moveLineDown)\n- Shift-Alt-ArrowUp: [`copyLineUp`](https://codemirror.net/6/docs/ref/#commands.copyLineUp)\n- Shift-Alt-ArrowDown: [`copyLineDown`](https://codemirror.net/6/docs/ref/#commands.copyLineDown)\n- Escape: [`simplifySelection`](https://codemirror.net/6/docs/ref/#commands.simplifySelection)\n- Ctrl-Enter (Cmd-Enter on macOS): [`insertBlankLine`](https://codemirror.net/6/docs/ref/#commands.insertBlankLine)\n- Alt-l (Ctrl-l on macOS): [`selectLine`](https://codemirror.net/6/docs/ref/#commands.selectLine)\n- Ctrl-i (Cmd-i on macOS): [`selectParentSyntax`](https://codemirror.net/6/docs/ref/#commands.selectParentSyntax)\n- Ctrl-[ (Cmd-[ on macOS): [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess)\n- Ctrl-] (Cmd-] on macOS): [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore)\n- Ctrl-Alt-\\\\ (Cmd-Alt-\\\\ on macOS): [`indentSelection`](https://codemirror.net/6/docs/ref/#commands.indentSelection)\n- Shift-Ctrl-k (Shift-Cmd-k on macOS): [`deleteLine`](https://codemirror.net/6/docs/ref/#commands.deleteLine)\n- Shift-Ctrl-\\\\ (Shift-Cmd-\\\\ on macOS): [`cursorMatchingBracket`](https://codemirror.net/6/docs/ref/#commands.cursorMatchingBracket)\n- Ctrl-/ (Cmd-/ on macOS): [`toggleComment`](https://codemirror.net/6/docs/ref/#commands.toggleComment).\n- Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).\n- Ctrl-m (Alt-Shift-m on macOS): [`toggleTabFocusMode`](https://codemirror.net/6/docs/ref/#commands.toggleTabFocusMode).\n*/\nconst defaultKeymap = /*@__PURE__*/[\n { key: \"Alt-ArrowLeft\", mac: \"Ctrl-ArrowLeft\", run: cursorSyntaxLeft, shift: selectSyntaxLeft },\n { key: \"Alt-ArrowRight\", mac: \"Ctrl-ArrowRight\", run: cursorSyntaxRight, shift: selectSyntaxRight },\n { key: \"Alt-ArrowUp\", run: moveLineUp },\n { key: \"Shift-Alt-ArrowUp\", run: copyLineUp },\n { key: \"Alt-ArrowDown\", run: moveLineDown },\n { key: \"Shift-Alt-ArrowDown\", run: copyLineDown },\n { key: \"Escape\", run: simplifySelection },\n { key: \"Mod-Enter\", run: insertBlankLine },\n { key: \"Alt-l\", mac: \"Ctrl-l\", run: selectLine },\n { key: \"Mod-i\", run: selectParentSyntax, preventDefault: true },\n { key: \"Mod-[\", run: indentLess },\n { key: \"Mod-]\", run: indentMore },\n { key: \"Mod-Alt-\\\\\", run: indentSelection },\n { key: \"Shift-Mod-k\", run: deleteLine },\n { key: \"Shift-Mod-\\\\\", run: cursorMatchingBracket },\n { key: \"Mod-/\", run: toggleComment },\n { key: \"Alt-A\", run: toggleBlockComment },\n { key: \"Ctrl-m\", mac: \"Shift-Alt-m\", run: toggleTabFocusMode },\n].concat(standardKeymap);\n/**\nA binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and\nShift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).\nPlease see the [Tab example](../../examples/tab/) before using\nthis.\n*/\nconst indentWithTab = { key: \"Tab\", run: indentMore, shift: indentLess };\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@codemirror/commands/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@codemirror/language/dist/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/@codemirror/language/dist/index.js ***! + \*********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DocInput: () => (/* binding */ DocInput),\n/* harmony export */ HighlightStyle: () => (/* binding */ HighlightStyle),\n/* harmony export */ IndentContext: () => (/* binding */ IndentContext),\n/* harmony export */ LRLanguage: () => (/* binding */ LRLanguage),\n/* harmony export */ Language: () => (/* binding */ Language),\n/* harmony export */ LanguageDescription: () => (/* binding */ LanguageDescription),\n/* harmony export */ LanguageSupport: () => (/* binding */ LanguageSupport),\n/* harmony export */ ParseContext: () => (/* binding */ ParseContext),\n/* harmony export */ StreamLanguage: () => (/* binding */ StreamLanguage),\n/* harmony export */ StringStream: () => (/* binding */ StringStream),\n/* harmony export */ TreeIndentContext: () => (/* binding */ TreeIndentContext),\n/* harmony export */ bidiIsolates: () => (/* binding */ bidiIsolates),\n/* harmony export */ bracketMatching: () => (/* binding */ bracketMatching),\n/* harmony export */ bracketMatchingHandle: () => (/* binding */ bracketMatchingHandle),\n/* harmony export */ codeFolding: () => (/* binding */ codeFolding),\n/* harmony export */ continuedIndent: () => (/* binding */ continuedIndent),\n/* harmony export */ defaultHighlightStyle: () => (/* binding */ defaultHighlightStyle),\n/* harmony export */ defineLanguageFacet: () => (/* binding */ defineLanguageFacet),\n/* harmony export */ delimitedIndent: () => (/* binding */ delimitedIndent),\n/* harmony export */ ensureSyntaxTree: () => (/* binding */ ensureSyntaxTree),\n/* harmony export */ flatIndent: () => (/* binding */ flatIndent),\n/* harmony export */ foldAll: () => (/* binding */ foldAll),\n/* harmony export */ foldCode: () => (/* binding */ foldCode),\n/* harmony export */ foldEffect: () => (/* binding */ foldEffect),\n/* harmony export */ foldGutter: () => (/* binding */ foldGutter),\n/* harmony export */ foldInside: () => (/* binding */ foldInside),\n/* harmony export */ foldKeymap: () => (/* binding */ foldKeymap),\n/* harmony export */ foldNodeProp: () => (/* binding */ foldNodeProp),\n/* harmony export */ foldService: () => (/* binding */ foldService),\n/* harmony export */ foldState: () => (/* binding */ foldState),\n/* harmony export */ foldable: () => (/* binding */ foldable),\n/* harmony export */ foldedRanges: () => (/* binding */ foldedRanges),\n/* harmony export */ forceParsing: () => (/* binding */ forceParsing),\n/* harmony export */ getIndentUnit: () => (/* binding */ getIndentUnit),\n/* harmony export */ getIndentation: () => (/* binding */ getIndentation),\n/* harmony export */ highlightingFor: () => (/* binding */ highlightingFor),\n/* harmony export */ indentNodeProp: () => (/* binding */ indentNodeProp),\n/* harmony export */ indentOnInput: () => (/* binding */ indentOnInput),\n/* harmony export */ indentRange: () => (/* binding */ indentRange),\n/* harmony export */ indentService: () => (/* binding */ indentService),\n/* harmony export */ indentString: () => (/* binding */ indentString),\n/* harmony export */ indentUnit: () => (/* binding */ indentUnit),\n/* harmony export */ language: () => (/* binding */ language),\n/* harmony export */ languageDataProp: () => (/* binding */ languageDataProp),\n/* harmony export */ matchBrackets: () => (/* binding */ matchBrackets),\n/* harmony export */ sublanguageProp: () => (/* binding */ sublanguageProp),\n/* harmony export */ syntaxHighlighting: () => (/* binding */ syntaxHighlighting),\n/* harmony export */ syntaxParserRunning: () => (/* binding */ syntaxParserRunning),\n/* harmony export */ syntaxTree: () => (/* binding */ syntaxTree),\n/* harmony export */ syntaxTreeAvailable: () => (/* binding */ syntaxTreeAvailable),\n/* harmony export */ toggleFold: () => (/* binding */ toggleFold),\n/* harmony export */ unfoldAll: () => (/* binding */ unfoldAll),\n/* harmony export */ unfoldCode: () => (/* binding */ unfoldCode),\n/* harmony export */ unfoldEffect: () => (/* binding */ unfoldEffect)\n/* harmony export */ });\n/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/common */ \"./node_modules/@lezer/common/dist/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @lezer/highlight */ \"./node_modules/@lezer/highlight/dist/index.js\");\n/* harmony import */ var style_mod__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! style-mod */ \"./node_modules/style-mod/src/style-mod.js\");\n\n\n\n\n\n\nvar _a;\n/**\nNode prop stored in a parser's top syntax node to provide the\nfacet that stores language-specific data for that language.\n*/\nconst languageDataProp = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp();\n/**\nHelper function to define a facet (to be added to the top syntax\nnode(s) for a language via\n[`languageDataProp`](https://codemirror.net/6/docs/ref/#language.languageDataProp)), that will be\nused to associate language data with the language. You\nprobably only need this when subclassing\n[`Language`](https://codemirror.net/6/docs/ref/#language.Language).\n*/\nfunction defineLanguageFacet(baseData) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({\n combine: baseData ? values => values.concat(baseData) : undefined\n });\n}\n/**\nSyntax node prop used to register sublanguages. Should be added to\nthe top level node type for the language.\n*/\nconst sublanguageProp = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp();\n/**\nA language object manages parsing and per-language\n[metadata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt). Parse data is\nmanaged as a [Lezer](https://lezer.codemirror.net) tree. The class\ncan be used directly, via the [`LRLanguage`](https://codemirror.net/6/docs/ref/#language.LRLanguage)\nsubclass for [Lezer](https://lezer.codemirror.net/) LR parsers, or\nvia the [`StreamLanguage`](https://codemirror.net/6/docs/ref/#language.StreamLanguage) subclass\nfor stream parsers.\n*/\nclass Language {\n /**\n Construct a language object. If you need to invoke this\n directly, first define a data facet with\n [`defineLanguageFacet`](https://codemirror.net/6/docs/ref/#language.defineLanguageFacet), and then\n configure your parser to [attach](https://codemirror.net/6/docs/ref/#language.languageDataProp) it\n to the language's outer syntax node.\n */\n constructor(\n /**\n The [language data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) facet\n used for this language.\n */\n data, parser, extraExtensions = [], \n /**\n A language name.\n */\n name = \"\") {\n this.data = data;\n this.name = name;\n // Kludge to define EditorState.tree as a debugging helper,\n // without the EditorState package actually knowing about\n // languages and lezer trees.\n if (!_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState.prototype.hasOwnProperty(\"tree\"))\n Object.defineProperty(_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState.prototype, \"tree\", { get() { return syntaxTree(this); } });\n this.parser = parser;\n this.extension = [\n language.of(this),\n _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState.languageData.of((state, pos, side) => {\n let top = topNodeAt(state, pos, side), data = top.type.prop(languageDataProp);\n if (!data)\n return [];\n let base = state.facet(data), sub = top.type.prop(sublanguageProp);\n if (sub) {\n let innerNode = top.resolve(pos - top.from, side);\n for (let sublang of sub)\n if (sublang.test(innerNode, state)) {\n let data = state.facet(sublang.facet);\n return sublang.type == \"replace\" ? data : data.concat(base);\n }\n }\n return base;\n })\n ].concat(extraExtensions);\n }\n /**\n Query whether this language is active at the given position.\n */\n isActiveAt(state, pos, side = -1) {\n return topNodeAt(state, pos, side).type.prop(languageDataProp) == this.data;\n }\n /**\n Find the document regions that were parsed using this language.\n The returned regions will _include_ any nested languages rooted\n in this language, when those exist.\n */\n findRegions(state) {\n let lang = state.facet(language);\n if ((lang === null || lang === void 0 ? void 0 : lang.data) == this.data)\n return [{ from: 0, to: state.doc.length }];\n if (!lang || !lang.allowsNesting)\n return [];\n let result = [];\n let explore = (tree, from) => {\n if (tree.prop(languageDataProp) == this.data) {\n result.push({ from, to: from + tree.length });\n return;\n }\n let mount = tree.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.mounted);\n if (mount) {\n if (mount.tree.prop(languageDataProp) == this.data) {\n if (mount.overlay)\n for (let r of mount.overlay)\n result.push({ from: r.from + from, to: r.to + from });\n else\n result.push({ from: from, to: from + tree.length });\n return;\n }\n else if (mount.overlay) {\n let size = result.length;\n explore(mount.tree, mount.overlay[0].from + from);\n if (result.length > size)\n return;\n }\n }\n for (let i = 0; i < tree.children.length; i++) {\n let ch = tree.children[i];\n if (ch instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree)\n explore(ch, tree.positions[i] + from);\n }\n };\n explore(syntaxTree(state), 0);\n return result;\n }\n /**\n Indicates whether this language allows nested languages. The\n default implementation returns true.\n */\n get allowsNesting() { return true; }\n}\n/**\n@internal\n*/\nLanguage.setState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateEffect.define();\nfunction topNodeAt(state, pos, side) {\n let topLang = state.facet(language), tree = syntaxTree(state).topNode;\n if (!topLang || topLang.allowsNesting) {\n for (let node = tree; node; node = node.enter(pos, side, _lezer_common__WEBPACK_IMPORTED_MODULE_0__.IterMode.ExcludeBuffers))\n if (node.type.isTop)\n tree = node;\n }\n return tree;\n}\n/**\nA subclass of [`Language`](https://codemirror.net/6/docs/ref/#language.Language) for use with Lezer\n[LR parsers](https://lezer.codemirror.net/docs/ref#lr.LRParser)\nparsers.\n*/\nclass LRLanguage extends Language {\n constructor(data, parser, name) {\n super(data, parser, [], name);\n this.parser = parser;\n }\n /**\n Define a language from a parser.\n */\n static define(spec) {\n let data = defineLanguageFacet(spec.languageData);\n return new LRLanguage(data, spec.parser.configure({\n props: [languageDataProp.add(type => type.isTop ? data : undefined)]\n }), spec.name);\n }\n /**\n Create a new instance of this language with a reconfigured\n version of its parser and optionally a new name.\n */\n configure(options, name) {\n return new LRLanguage(this.data, this.parser.configure(options), name || this.name);\n }\n get allowsNesting() { return this.parser.hasWrappers(); }\n}\n/**\nGet the syntax tree for a state, which is the current (possibly\nincomplete) parse tree of the active\n[language](https://codemirror.net/6/docs/ref/#language.Language), or the empty tree if there is no\nlanguage available.\n*/\nfunction syntaxTree(state) {\n let field = state.field(Language.state, false);\n return field ? field.tree : _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.empty;\n}\n/**\nTry to get a parse tree that spans at least up to `upto`. The\nmethod will do at most `timeout` milliseconds of work to parse\nup to that point if the tree isn't already available.\n*/\nfunction ensureSyntaxTree(state, upto, timeout = 50) {\n var _a;\n let parse = (_a = state.field(Language.state, false)) === null || _a === void 0 ? void 0 : _a.context;\n if (!parse)\n return null;\n let oldVieport = parse.viewport;\n parse.updateViewport({ from: 0, to: upto });\n let result = parse.isDone(upto) || parse.work(timeout, upto) ? parse.tree : null;\n parse.updateViewport(oldVieport);\n return result;\n}\n/**\nQueries whether there is a full syntax tree available up to the\ngiven document position. If there isn't, the background parse\nprocess _might_ still be working and update the tree further, but\nthere is no guarantee of that—the parser will [stop\nworking](https://codemirror.net/6/docs/ref/#language.syntaxParserRunning) when it has spent a\ncertain amount of time or has moved beyond the visible viewport.\nAlways returns false if no language has been enabled.\n*/\nfunction syntaxTreeAvailable(state, upto = state.doc.length) {\n var _a;\n return ((_a = state.field(Language.state, false)) === null || _a === void 0 ? void 0 : _a.context.isDone(upto)) || false;\n}\n/**\nMove parsing forward, and update the editor state afterwards to\nreflect the new tree. Will work for at most `timeout`\nmilliseconds. Returns true if the parser managed get to the given\nposition in that time.\n*/\nfunction forceParsing(view, upto = view.viewport.to, timeout = 100) {\n let success = ensureSyntaxTree(view.state, upto, timeout);\n if (success != syntaxTree(view.state))\n view.dispatch({});\n return !!success;\n}\n/**\nTells you whether the language parser is planning to do more\nparsing work (in a `requestIdleCallback` pseudo-thread) or has\nstopped running, either because it parsed the entire document,\nbecause it spent too much time and was cut off, or because there\nis no language parser enabled.\n*/\nfunction syntaxParserRunning(view) {\n var _a;\n return ((_a = view.plugin(parseWorker)) === null || _a === void 0 ? void 0 : _a.isWorking()) || false;\n}\n/**\nLezer-style\n[`Input`](https://lezer.codemirror.net/docs/ref#common.Input)\nobject for a [`Text`](https://codemirror.net/6/docs/ref/#state.Text) object.\n*/\nclass DocInput {\n /**\n Create an input object for the given document.\n */\n constructor(doc) {\n this.doc = doc;\n this.cursorPos = 0;\n this.string = \"\";\n this.cursor = doc.iter();\n }\n get length() { return this.doc.length; }\n syncTo(pos) {\n this.string = this.cursor.next(pos - this.cursorPos).value;\n this.cursorPos = pos + this.string.length;\n return this.cursorPos - this.string.length;\n }\n chunk(pos) {\n this.syncTo(pos);\n return this.string;\n }\n get lineChunks() { return true; }\n read(from, to) {\n let stringStart = this.cursorPos - this.string.length;\n if (from < stringStart || to >= this.cursorPos)\n return this.doc.sliceString(from, to);\n else\n return this.string.slice(from - stringStart, to - stringStart);\n }\n}\nlet currentContext = null;\n/**\nA parse context provided to parsers working on the editor content.\n*/\nclass ParseContext {\n constructor(parser, \n /**\n The current editor state.\n */\n state, \n /**\n Tree fragments that can be reused by incremental re-parses.\n */\n fragments = [], \n /**\n @internal\n */\n tree, \n /**\n @internal\n */\n treeLen, \n /**\n The current editor viewport (or some overapproximation\n thereof). Intended to be used for opportunistically avoiding\n work (in which case\n [`skipUntilInView`](https://codemirror.net/6/docs/ref/#language.ParseContext.skipUntilInView)\n should be called to make sure the parser is restarted when the\n skipped region becomes visible).\n */\n viewport, \n /**\n @internal\n */\n skipped, \n /**\n This is where skipping parsers can register a promise that,\n when resolved, will schedule a new parse. It is cleared when\n the parse worker picks up the promise. @internal\n */\n scheduleOn) {\n this.parser = parser;\n this.state = state;\n this.fragments = fragments;\n this.tree = tree;\n this.treeLen = treeLen;\n this.viewport = viewport;\n this.skipped = skipped;\n this.scheduleOn = scheduleOn;\n this.parse = null;\n /**\n @internal\n */\n this.tempSkipped = [];\n }\n /**\n @internal\n */\n static create(parser, state, viewport) {\n return new ParseContext(parser, state, [], _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.empty, 0, viewport, [], null);\n }\n startParse() {\n return this.parser.startParse(new DocInput(this.state.doc), this.fragments);\n }\n /**\n @internal\n */\n work(until, upto) {\n if (upto != null && upto >= this.state.doc.length)\n upto = undefined;\n if (this.tree != _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.empty && this.isDone(upto !== null && upto !== void 0 ? upto : this.state.doc.length)) {\n this.takeTree();\n return true;\n }\n return this.withContext(() => {\n var _a;\n if (typeof until == \"number\") {\n let endTime = Date.now() + until;\n until = () => Date.now() > endTime;\n }\n if (!this.parse)\n this.parse = this.startParse();\n if (upto != null && (this.parse.stoppedAt == null || this.parse.stoppedAt > upto) &&\n upto < this.state.doc.length)\n this.parse.stopAt(upto);\n for (;;) {\n let done = this.parse.advance();\n if (done) {\n this.fragments = this.withoutTempSkipped(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.TreeFragment.addTree(done, this.fragments, this.parse.stoppedAt != null));\n this.treeLen = (_a = this.parse.stoppedAt) !== null && _a !== void 0 ? _a : this.state.doc.length;\n this.tree = done;\n this.parse = null;\n if (this.treeLen < (upto !== null && upto !== void 0 ? upto : this.state.doc.length))\n this.parse = this.startParse();\n else\n return true;\n }\n if (until())\n return false;\n }\n });\n }\n /**\n @internal\n */\n takeTree() {\n let pos, tree;\n if (this.parse && (pos = this.parse.parsedPos) >= this.treeLen) {\n if (this.parse.stoppedAt == null || this.parse.stoppedAt > pos)\n this.parse.stopAt(pos);\n this.withContext(() => { while (!(tree = this.parse.advance())) { } });\n this.treeLen = pos;\n this.tree = tree;\n this.fragments = this.withoutTempSkipped(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.TreeFragment.addTree(this.tree, this.fragments, true));\n this.parse = null;\n }\n }\n withContext(f) {\n let prev = currentContext;\n currentContext = this;\n try {\n return f();\n }\n finally {\n currentContext = prev;\n }\n }\n withoutTempSkipped(fragments) {\n for (let r; r = this.tempSkipped.pop();)\n fragments = cutFragments(fragments, r.from, r.to);\n return fragments;\n }\n /**\n @internal\n */\n changes(changes, newState) {\n let { fragments, tree, treeLen, viewport, skipped } = this;\n this.takeTree();\n if (!changes.empty) {\n let ranges = [];\n changes.iterChangedRanges((fromA, toA, fromB, toB) => ranges.push({ fromA, toA, fromB, toB }));\n fragments = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.TreeFragment.applyChanges(fragments, ranges);\n tree = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.empty;\n treeLen = 0;\n viewport = { from: changes.mapPos(viewport.from, -1), to: changes.mapPos(viewport.to, 1) };\n if (this.skipped.length) {\n skipped = [];\n for (let r of this.skipped) {\n let from = changes.mapPos(r.from, 1), to = changes.mapPos(r.to, -1);\n if (from < to)\n skipped.push({ from, to });\n }\n }\n }\n return new ParseContext(this.parser, newState, fragments, tree, treeLen, viewport, skipped, this.scheduleOn);\n }\n /**\n @internal\n */\n updateViewport(viewport) {\n if (this.viewport.from == viewport.from && this.viewport.to == viewport.to)\n return false;\n this.viewport = viewport;\n let startLen = this.skipped.length;\n for (let i = 0; i < this.skipped.length; i++) {\n let { from, to } = this.skipped[i];\n if (from < viewport.to && to > viewport.from) {\n this.fragments = cutFragments(this.fragments, from, to);\n this.skipped.splice(i--, 1);\n }\n }\n if (this.skipped.length >= startLen)\n return false;\n this.reset();\n return true;\n }\n /**\n @internal\n */\n reset() {\n if (this.parse) {\n this.takeTree();\n this.parse = null;\n }\n }\n /**\n Notify the parse scheduler that the given region was skipped\n because it wasn't in view, and the parse should be restarted\n when it comes into view.\n */\n skipUntilInView(from, to) {\n this.skipped.push({ from, to });\n }\n /**\n Returns a parser intended to be used as placeholder when\n asynchronously loading a nested parser. It'll skip its input and\n mark it as not-really-parsed, so that the next update will parse\n it again.\n \n When `until` is given, a reparse will be scheduled when that\n promise resolves.\n */\n static getSkippingParser(until) {\n return new class extends _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Parser {\n createParse(input, fragments, ranges) {\n let from = ranges[0].from, to = ranges[ranges.length - 1].to;\n let parser = {\n parsedPos: from,\n advance() {\n let cx = currentContext;\n if (cx) {\n for (let r of ranges)\n cx.tempSkipped.push(r);\n if (until)\n cx.scheduleOn = cx.scheduleOn ? Promise.all([cx.scheduleOn, until]) : until;\n }\n this.parsedPos = to;\n return new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeType.none, [], [], to - from);\n },\n stoppedAt: null,\n stopAt() { }\n };\n return parser;\n }\n };\n }\n /**\n @internal\n */\n isDone(upto) {\n upto = Math.min(upto, this.state.doc.length);\n let frags = this.fragments;\n return this.treeLen >= upto && frags.length && frags[0].from == 0 && frags[0].to >= upto;\n }\n /**\n Get the context for the current parse, or `null` if no editor\n parse is in progress.\n */\n static get() { return currentContext; }\n}\nfunction cutFragments(fragments, from, to) {\n return _lezer_common__WEBPACK_IMPORTED_MODULE_0__.TreeFragment.applyChanges(fragments, [{ fromA: from, toA: to, fromB: from, toB: to }]);\n}\nclass LanguageState {\n constructor(\n // A mutable parse state that is used to preserve work done during\n // the lifetime of a state when moving to the next state.\n context) {\n this.context = context;\n this.tree = context.tree;\n }\n apply(tr) {\n if (!tr.docChanged && this.tree == this.context.tree)\n return this;\n let newCx = this.context.changes(tr.changes, tr.state);\n // If the previous parse wasn't done, go forward only up to its\n // end position or the end of the viewport, to avoid slowing down\n // state updates with parse work beyond the viewport.\n let upto = this.context.treeLen == tr.startState.doc.length ? undefined\n : Math.max(tr.changes.mapPos(this.context.treeLen), newCx.viewport.to);\n if (!newCx.work(20 /* Work.Apply */, upto))\n newCx.takeTree();\n return new LanguageState(newCx);\n }\n static init(state) {\n let vpTo = Math.min(3000 /* Work.InitViewport */, state.doc.length);\n let parseState = ParseContext.create(state.facet(language).parser, state, { from: 0, to: vpTo });\n if (!parseState.work(20 /* Work.Apply */, vpTo))\n parseState.takeTree();\n return new LanguageState(parseState);\n }\n}\nLanguage.state = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateField.define({\n create: LanguageState.init,\n update(value, tr) {\n for (let e of tr.effects)\n if (e.is(Language.setState))\n return e.value;\n if (tr.startState.facet(language) != tr.state.facet(language))\n return LanguageState.init(tr.state);\n return value.apply(tr);\n }\n});\nlet requestIdle = (callback) => {\n let timeout = setTimeout(() => callback(), 500 /* Work.MaxPause */);\n return () => clearTimeout(timeout);\n};\nif (typeof requestIdleCallback != \"undefined\")\n requestIdle = (callback) => {\n let idle = -1, timeout = setTimeout(() => {\n idle = requestIdleCallback(callback, { timeout: 500 /* Work.MaxPause */ - 100 /* Work.MinPause */ });\n }, 100 /* Work.MinPause */);\n return () => idle < 0 ? clearTimeout(timeout) : cancelIdleCallback(idle);\n };\nconst isInputPending = typeof navigator != \"undefined\" && ((_a = navigator.scheduling) === null || _a === void 0 ? void 0 : _a.isInputPending)\n ? () => navigator.scheduling.isInputPending() : null;\nconst parseWorker = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.ViewPlugin.fromClass(class ParseWorker {\n constructor(view) {\n this.view = view;\n this.working = null;\n this.workScheduled = 0;\n // End of the current time chunk\n this.chunkEnd = -1;\n // Milliseconds of budget left for this chunk\n this.chunkBudget = -1;\n this.work = this.work.bind(this);\n this.scheduleWork();\n }\n update(update) {\n let cx = this.view.state.field(Language.state).context;\n if (cx.updateViewport(update.view.viewport) || this.view.viewport.to > cx.treeLen)\n this.scheduleWork();\n if (update.docChanged || update.selectionSet) {\n if (this.view.hasFocus)\n this.chunkBudget += 50 /* Work.ChangeBonus */;\n this.scheduleWork();\n }\n this.checkAsyncSchedule(cx);\n }\n scheduleWork() {\n if (this.working)\n return;\n let { state } = this.view, field = state.field(Language.state);\n if (field.tree != field.context.tree || !field.context.isDone(state.doc.length))\n this.working = requestIdle(this.work);\n }\n work(deadline) {\n this.working = null;\n let now = Date.now();\n if (this.chunkEnd < now && (this.chunkEnd < 0 || this.view.hasFocus)) { // Start a new chunk\n this.chunkEnd = now + 30000 /* Work.ChunkTime */;\n this.chunkBudget = 3000 /* Work.ChunkBudget */;\n }\n if (this.chunkBudget <= 0)\n return; // No more budget\n let { state, viewport: { to: vpTo } } = this.view, field = state.field(Language.state);\n if (field.tree == field.context.tree && field.context.isDone(vpTo + 100000 /* Work.MaxParseAhead */))\n return;\n let endTime = Date.now() + Math.min(this.chunkBudget, 100 /* Work.Slice */, deadline && !isInputPending ? Math.max(25 /* Work.MinSlice */, deadline.timeRemaining() - 5) : 1e9);\n let viewportFirst = field.context.treeLen < vpTo && state.doc.length > vpTo + 1000;\n let done = field.context.work(() => {\n return isInputPending && isInputPending() || Date.now() > endTime;\n }, vpTo + (viewportFirst ? 0 : 100000 /* Work.MaxParseAhead */));\n this.chunkBudget -= Date.now() - now;\n if (done || this.chunkBudget <= 0) {\n field.context.takeTree();\n this.view.dispatch({ effects: Language.setState.of(new LanguageState(field.context)) });\n }\n if (this.chunkBudget > 0 && !(done && !viewportFirst))\n this.scheduleWork();\n this.checkAsyncSchedule(field.context);\n }\n checkAsyncSchedule(cx) {\n if (cx.scheduleOn) {\n this.workScheduled++;\n cx.scheduleOn\n .then(() => this.scheduleWork())\n .catch(err => (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.logException)(this.view.state, err))\n .then(() => this.workScheduled--);\n cx.scheduleOn = null;\n }\n }\n destroy() {\n if (this.working)\n this.working();\n }\n isWorking() {\n return !!(this.working || this.workScheduled > 0);\n }\n}, {\n eventHandlers: { focus() { this.scheduleWork(); } }\n});\n/**\nThe facet used to associate a language with an editor state. Used\nby `Language` object's `extension` property (so you don't need to\nmanually wrap your languages in this). Can be used to access the\ncurrent language on a state.\n*/\nconst language = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({\n combine(languages) { return languages.length ? languages[0] : null; },\n enables: language => [\n Language.state,\n parseWorker,\n _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.contentAttributes.compute([language], state => {\n let lang = state.facet(language);\n return lang && lang.name ? { \"data-language\": lang.name } : {};\n })\n ]\n});\n/**\nThis class bundles a [language](https://codemirror.net/6/docs/ref/#language.Language) with an\noptional set of supporting extensions. Language packages are\nencouraged to export a function that optionally takes a\nconfiguration object and returns a `LanguageSupport` instance, as\nthe main way for client code to use the package.\n*/\nclass LanguageSupport {\n /**\n Create a language support object.\n */\n constructor(\n /**\n The language object.\n */\n language, \n /**\n An optional set of supporting extensions. When nesting a\n language in another language, the outer language is encouraged\n to include the supporting extensions for its inner languages\n in its own set of support extensions.\n */\n support = []) {\n this.language = language;\n this.support = support;\n this.extension = [language, support];\n }\n}\n/**\nLanguage descriptions are used to store metadata about languages\nand to dynamically load them. Their main role is finding the\nappropriate language for a filename or dynamically loading nested\nparsers.\n*/\nclass LanguageDescription {\n constructor(\n /**\n The name of this language.\n */\n name, \n /**\n Alternative names for the mode (lowercased, includes `this.name`).\n */\n alias, \n /**\n File extensions associated with this language.\n */\n extensions, \n /**\n Optional filename pattern that should be associated with this\n language.\n */\n filename, loadFunc, \n /**\n If the language has been loaded, this will hold its value.\n */\n support = undefined) {\n this.name = name;\n this.alias = alias;\n this.extensions = extensions;\n this.filename = filename;\n this.loadFunc = loadFunc;\n this.support = support;\n this.loading = null;\n }\n /**\n Start loading the the language. Will return a promise that\n resolves to a [`LanguageSupport`](https://codemirror.net/6/docs/ref/#language.LanguageSupport)\n object when the language successfully loads.\n */\n load() {\n return this.loading || (this.loading = this.loadFunc().then(support => this.support = support, err => { this.loading = null; throw err; }));\n }\n /**\n Create a language description.\n */\n static of(spec) {\n let { load, support } = spec;\n if (!load) {\n if (!support)\n throw new RangeError(\"Must pass either 'load' or 'support' to LanguageDescription.of\");\n load = () => Promise.resolve(support);\n }\n return new LanguageDescription(spec.name, (spec.alias || []).concat(spec.name).map(s => s.toLowerCase()), spec.extensions || [], spec.filename, load, support);\n }\n /**\n Look for a language in the given array of descriptions that\n matches the filename. Will first match\n [`filename`](https://codemirror.net/6/docs/ref/#language.LanguageDescription.filename) patterns,\n and then [extensions](https://codemirror.net/6/docs/ref/#language.LanguageDescription.extensions),\n and return the first language that matches.\n */\n static matchFilename(descs, filename) {\n for (let d of descs)\n if (d.filename && d.filename.test(filename))\n return d;\n let ext = /\\.([^.]+)$/.exec(filename);\n if (ext)\n for (let d of descs)\n if (d.extensions.indexOf(ext[1]) > -1)\n return d;\n return null;\n }\n /**\n Look for a language whose name or alias matches the the given\n name (case-insensitively). If `fuzzy` is true, and no direct\n matchs is found, this'll also search for a language whose name\n or alias occurs in the string (for names shorter than three\n characters, only when surrounded by non-word characters).\n */\n static matchLanguageName(descs, name, fuzzy = true) {\n name = name.toLowerCase();\n for (let d of descs)\n if (d.alias.some(a => a == name))\n return d;\n if (fuzzy)\n for (let d of descs)\n for (let a of d.alias) {\n let found = name.indexOf(a);\n if (found > -1 && (a.length > 2 || !/\\w/.test(name[found - 1]) && !/\\w/.test(name[found + a.length])))\n return d;\n }\n return null;\n }\n}\n\n/**\nFacet that defines a way to provide a function that computes the\nappropriate indentation depth, as a column number (see\n[`indentString`](https://codemirror.net/6/docs/ref/#language.indentString)), at the start of a given\nline. A return value of `null` indicates no indentation can be\ndetermined, and the line should inherit the indentation of the one\nabove it. A return value of `undefined` defers to the next indent\nservice.\n*/\nconst indentService = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define();\n/**\nFacet for overriding the unit by which indentation happens. Should\nbe a string consisting either entirely of the same whitespace\ncharacter. When not set, this defaults to 2 spaces.\n*/\nconst indentUnit = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({\n combine: values => {\n if (!values.length)\n return \" \";\n let unit = values[0];\n if (!unit || /\\S/.test(unit) || Array.from(unit).some(e => e != unit[0]))\n throw new Error(\"Invalid indent unit: \" + JSON.stringify(values[0]));\n return unit;\n }\n});\n/**\nReturn the _column width_ of an indent unit in the state.\nDetermined by the [`indentUnit`](https://codemirror.net/6/docs/ref/#language.indentUnit)\nfacet, and [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) when that\ncontains tabs.\n*/\nfunction getIndentUnit(state) {\n let unit = state.facet(indentUnit);\n return unit.charCodeAt(0) == 9 ? state.tabSize * unit.length : unit.length;\n}\n/**\nCreate an indentation string that covers columns 0 to `cols`.\nWill use tabs for as much of the columns as possible when the\n[`indentUnit`](https://codemirror.net/6/docs/ref/#language.indentUnit) facet contains\ntabs.\n*/\nfunction indentString(state, cols) {\n let result = \"\", ts = state.tabSize, ch = state.facet(indentUnit)[0];\n if (ch == \"\\t\") {\n while (cols >= ts) {\n result += \"\\t\";\n cols -= ts;\n }\n ch = \" \";\n }\n for (let i = 0; i < cols; i++)\n result += ch;\n return result;\n}\n/**\nGet the indentation, as a column number, at the given position.\nWill first consult any [indent services](https://codemirror.net/6/docs/ref/#language.indentService)\nthat are registered, and if none of those return an indentation,\nthis will check the syntax tree for the [indent node\nprop](https://codemirror.net/6/docs/ref/#language.indentNodeProp) and use that if found. Returns a\nnumber when an indentation could be determined, and null\notherwise.\n*/\nfunction getIndentation(context, pos) {\n if (context instanceof _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState)\n context = new IndentContext(context);\n for (let service of context.state.facet(indentService)) {\n let result = service(context, pos);\n if (result !== undefined)\n return result;\n }\n let tree = syntaxTree(context.state);\n return tree.length >= pos ? syntaxIndentation(context, tree, pos) : null;\n}\n/**\nCreate a change set that auto-indents all lines touched by the\ngiven document range.\n*/\nfunction indentRange(state, from, to) {\n let updated = Object.create(null);\n let context = new IndentContext(state, { overrideIndentation: start => { var _a; return (_a = updated[start]) !== null && _a !== void 0 ? _a : -1; } });\n let changes = [];\n for (let pos = from; pos <= to;) {\n let line = state.doc.lineAt(pos);\n pos = line.to + 1;\n let indent = getIndentation(context, line.from);\n if (indent == null)\n continue;\n if (!/\\S/.test(line.text))\n indent = 0;\n let cur = /^\\s*/.exec(line.text)[0];\n let norm = indentString(state, indent);\n if (cur != norm) {\n updated[line.from] = indent;\n changes.push({ from: line.from, to: line.from + cur.length, insert: norm });\n }\n }\n return state.changes(changes);\n}\n/**\nIndentation contexts are used when calling [indentation\nservices](https://codemirror.net/6/docs/ref/#language.indentService). They provide helper utilities\nuseful in indentation logic, and can selectively override the\nindentation reported for some lines.\n*/\nclass IndentContext {\n /**\n Create an indent context.\n */\n constructor(\n /**\n The editor state.\n */\n state, \n /**\n @internal\n */\n options = {}) {\n this.state = state;\n this.options = options;\n this.unit = getIndentUnit(state);\n }\n /**\n Get a description of the line at the given position, taking\n [simulated line\n breaks](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)\n into account. If there is such a break at `pos`, the `bias`\n argument determines whether the part of the line line before or\n after the break is used.\n */\n lineAt(pos, bias = 1) {\n let line = this.state.doc.lineAt(pos);\n let { simulateBreak, simulateDoubleBreak } = this.options;\n if (simulateBreak != null && simulateBreak >= line.from && simulateBreak <= line.to) {\n if (simulateDoubleBreak && simulateBreak == pos)\n return { text: \"\", from: pos };\n else if (bias < 0 ? simulateBreak < pos : simulateBreak <= pos)\n return { text: line.text.slice(simulateBreak - line.from), from: simulateBreak };\n else\n return { text: line.text.slice(0, simulateBreak - line.from), from: line.from };\n }\n return line;\n }\n /**\n Get the text directly after `pos`, either the entire line\n or the next 100 characters, whichever is shorter.\n */\n textAfterPos(pos, bias = 1) {\n if (this.options.simulateDoubleBreak && pos == this.options.simulateBreak)\n return \"\";\n let { text, from } = this.lineAt(pos, bias);\n return text.slice(pos - from, Math.min(text.length, pos + 100 - from));\n }\n /**\n Find the column for the given position.\n */\n column(pos, bias = 1) {\n let { text, from } = this.lineAt(pos, bias);\n let result = this.countColumn(text, pos - from);\n let override = this.options.overrideIndentation ? this.options.overrideIndentation(from) : -1;\n if (override > -1)\n result += override - this.countColumn(text, text.search(/\\S|$/));\n return result;\n }\n /**\n Find the column position (taking tabs into account) of the given\n position in the given string.\n */\n countColumn(line, pos = line.length) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.countColumn)(line, this.state.tabSize, pos);\n }\n /**\n Find the indentation column of the line at the given point.\n */\n lineIndent(pos, bias = 1) {\n let { text, from } = this.lineAt(pos, bias);\n let override = this.options.overrideIndentation;\n if (override) {\n let overriden = override(from);\n if (overriden > -1)\n return overriden;\n }\n return this.countColumn(text, text.search(/\\S|$/));\n }\n /**\n Returns the [simulated line\n break](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)\n for this context, if any.\n */\n get simulatedBreak() {\n return this.options.simulateBreak || null;\n }\n}\n/**\nA syntax tree node prop used to associate indentation strategies\nwith node types. Such a strategy is a function from an indentation\ncontext to a column number (see also\n[`indentString`](https://codemirror.net/6/docs/ref/#language.indentString)) or null, where null\nindicates that no definitive indentation can be determined.\n*/\nconst indentNodeProp = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp();\n// Compute the indentation for a given position from the syntax tree.\nfunction syntaxIndentation(cx, ast, pos) {\n let stack = ast.resolveStack(pos);\n let inner = stack.node.enterUnfinishedNodesBefore(pos);\n if (inner != stack.node) {\n let add = [];\n for (let cur = inner; cur != stack.node; cur = cur.parent)\n add.push(cur);\n for (let i = add.length - 1; i >= 0; i--)\n stack = { node: add[i], next: stack };\n }\n return indentFor(stack, cx, pos);\n}\nfunction indentFor(stack, cx, pos) {\n for (let cur = stack; cur; cur = cur.next) {\n let strategy = indentStrategy(cur.node);\n if (strategy)\n return strategy(TreeIndentContext.create(cx, pos, cur));\n }\n return 0;\n}\nfunction ignoreClosed(cx) {\n return cx.pos == cx.options.simulateBreak && cx.options.simulateDoubleBreak;\n}\nfunction indentStrategy(tree) {\n let strategy = tree.type.prop(indentNodeProp);\n if (strategy)\n return strategy;\n let first = tree.firstChild, close;\n if (first && (close = first.type.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.closedBy))) {\n let last = tree.lastChild, closed = last && close.indexOf(last.name) > -1;\n return cx => delimitedStrategy(cx, true, 1, undefined, closed && !ignoreClosed(cx) ? last.from : undefined);\n }\n return tree.parent == null ? topIndent : null;\n}\nfunction topIndent() { return 0; }\n/**\nObjects of this type provide context information and helper\nmethods to indentation functions registered on syntax nodes.\n*/\nclass TreeIndentContext extends IndentContext {\n constructor(base, \n /**\n The position at which indentation is being computed.\n */\n pos, \n /**\n @internal\n */\n context) {\n super(base.state, base.options);\n this.base = base;\n this.pos = pos;\n this.context = context;\n }\n /**\n The syntax tree node to which the indentation strategy\n applies.\n */\n get node() { return this.context.node; }\n /**\n @internal\n */\n static create(base, pos, context) {\n return new TreeIndentContext(base, pos, context);\n }\n /**\n Get the text directly after `this.pos`, either the entire line\n or the next 100 characters, whichever is shorter.\n */\n get textAfter() {\n return this.textAfterPos(this.pos);\n }\n /**\n Get the indentation at the reference line for `this.node`, which\n is the line on which it starts, unless there is a node that is\n _not_ a parent of this node covering the start of that line. If\n so, the line at the start of that node is tried, again skipping\n on if it is covered by another such node.\n */\n get baseIndent() {\n return this.baseIndentFor(this.node);\n }\n /**\n Get the indentation for the reference line of the given node\n (see [`baseIndent`](https://codemirror.net/6/docs/ref/#language.TreeIndentContext.baseIndent)).\n */\n baseIndentFor(node) {\n let line = this.state.doc.lineAt(node.from);\n // Skip line starts that are covered by a sibling (or cousin, etc)\n for (;;) {\n let atBreak = node.resolve(line.from);\n while (atBreak.parent && atBreak.parent.from == atBreak.from)\n atBreak = atBreak.parent;\n if (isParent(atBreak, node))\n break;\n line = this.state.doc.lineAt(atBreak.from);\n }\n return this.lineIndent(line.from);\n }\n /**\n Continue looking for indentations in the node's parent nodes,\n and return the result of that.\n */\n continue() {\n return indentFor(this.context.next, this.base, this.pos);\n }\n}\nfunction isParent(parent, of) {\n for (let cur = of; cur; cur = cur.parent)\n if (parent == cur)\n return true;\n return false;\n}\n// Check whether a delimited node is aligned (meaning there are\n// non-skipped nodes on the same line as the opening delimiter). And\n// if so, return the opening token.\nfunction bracketedAligned(context) {\n let tree = context.node;\n let openToken = tree.childAfter(tree.from), last = tree.lastChild;\n if (!openToken)\n return null;\n let sim = context.options.simulateBreak;\n let openLine = context.state.doc.lineAt(openToken.from);\n let lineEnd = sim == null || sim <= openLine.from ? openLine.to : Math.min(openLine.to, sim);\n for (let pos = openToken.to;;) {\n let next = tree.childAfter(pos);\n if (!next || next == last)\n return null;\n if (!next.type.isSkipped)\n return next.from < lineEnd ? openToken : null;\n pos = next.to;\n }\n}\n/**\nAn indentation strategy for delimited (usually bracketed) nodes.\nWill, by default, indent one unit more than the parent's base\nindent unless the line starts with a closing token. When `align`\nis true and there are non-skipped nodes on the node's opening\nline, the content of the node will be aligned with the end of the\nopening node, like this:\n\n foo(bar,\n baz)\n*/\nfunction delimitedIndent({ closing, align = true, units = 1 }) {\n return (context) => delimitedStrategy(context, align, units, closing);\n}\nfunction delimitedStrategy(context, align, units, closing, closedAt) {\n let after = context.textAfter, space = after.match(/^\\s*/)[0].length;\n let closed = closing && after.slice(space, space + closing.length) == closing || closedAt == context.pos + space;\n let aligned = align ? bracketedAligned(context) : null;\n if (aligned)\n return closed ? context.column(aligned.from) : context.column(aligned.to);\n return context.baseIndent + (closed ? 0 : context.unit * units);\n}\n/**\nAn indentation strategy that aligns a node's content to its base\nindentation.\n*/\nconst flatIndent = (context) => context.baseIndent;\n/**\nCreates an indentation strategy that, by default, indents\ncontinued lines one unit more than the node's base indentation.\nYou can provide `except` to prevent indentation of lines that\nmatch a pattern (for example `/^else\\b/` in `if`/`else`\nconstructs), and you can change the amount of units used with the\n`units` option.\n*/\nfunction continuedIndent({ except, units = 1 } = {}) {\n return (context) => {\n let matchExcept = except && except.test(context.textAfter);\n return context.baseIndent + (matchExcept ? 0 : units * context.unit);\n };\n}\nconst DontIndentBeyond = 200;\n/**\nEnables reindentation on input. When a language defines an\n`indentOnInput` field in its [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt), which must hold a regular\nexpression, the line at the cursor will be reindented whenever new\ntext is typed and the input from the start of the line up to the\ncursor matches that regexp.\n\nTo avoid unneccesary reindents, it is recommended to start the\nregexp with `^` (usually followed by `\\s*`), and end it with `$`.\nFor example, `/^\\s*\\}$/` will reindent when a closing brace is\nadded at the start of a line.\n*/\nfunction indentOnInput() {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.EditorState.transactionFilter.of(tr => {\n if (!tr.docChanged || !tr.isUserEvent(\"input.type\") && !tr.isUserEvent(\"input.complete\"))\n return tr;\n let rules = tr.startState.languageDataAt(\"indentOnInput\", tr.startState.selection.main.head);\n if (!rules.length)\n return tr;\n let doc = tr.newDoc, { head } = tr.newSelection.main, line = doc.lineAt(head);\n if (head > line.from + DontIndentBeyond)\n return tr;\n let lineStart = doc.sliceString(line.from, head);\n if (!rules.some(r => r.test(lineStart)))\n return tr;\n let { state } = tr, last = -1, changes = [];\n for (let { head } of state.selection.ranges) {\n let line = state.doc.lineAt(head);\n if (line.from == last)\n continue;\n last = line.from;\n let indent = getIndentation(state, line.from);\n if (indent == null)\n continue;\n let cur = /^\\s*/.exec(line.text)[0];\n let norm = indentString(state, indent);\n if (cur != norm)\n changes.push({ from: line.from, to: line.from + cur.length, insert: norm });\n }\n return changes.length ? [tr, { changes, sequential: true }] : tr;\n });\n}\n\n/**\nA facet that registers a code folding service. When called with\nthe extent of a line, such a function should return a foldable\nrange that starts on that line (but continues beyond it), if one\ncan be found.\n*/\nconst foldService = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define();\n/**\nThis node prop is used to associate folding information with\nsyntax node types. Given a syntax node, it should check whether\nthat tree is foldable and return the range that can be collapsed\nwhen it is.\n*/\nconst foldNodeProp = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp();\n/**\n[Fold](https://codemirror.net/6/docs/ref/#language.foldNodeProp) function that folds everything but\nthe first and the last child of a syntax node. Useful for nodes\nthat start and end with delimiters.\n*/\nfunction foldInside(node) {\n let first = node.firstChild, last = node.lastChild;\n return first && first.to < last.from ? { from: first.to, to: last.type.isError ? node.to : last.from } : null;\n}\nfunction syntaxFolding(state, start, end) {\n let tree = syntaxTree(state);\n if (tree.length < end)\n return null;\n let stack = tree.resolveStack(end, 1);\n let found = null;\n for (let iter = stack; iter; iter = iter.next) {\n let cur = iter.node;\n if (cur.to <= end || cur.from > end)\n continue;\n if (found && cur.from < start)\n break;\n let prop = cur.type.prop(foldNodeProp);\n if (prop && (cur.to < tree.length - 50 || tree.length == state.doc.length || !isUnfinished(cur))) {\n let value = prop(cur, state);\n if (value && value.from <= end && value.from >= start && value.to > end)\n found = value;\n }\n }\n return found;\n}\nfunction isUnfinished(node) {\n let ch = node.lastChild;\n return ch && ch.to == node.to && ch.type.isError;\n}\n/**\nCheck whether the given line is foldable. First asks any fold\nservices registered through\n[`foldService`](https://codemirror.net/6/docs/ref/#language.foldService), and if none of them return\na result, tries to query the [fold node\nprop](https://codemirror.net/6/docs/ref/#language.foldNodeProp) of syntax nodes that cover the end\nof the line.\n*/\nfunction foldable(state, lineStart, lineEnd) {\n for (let service of state.facet(foldService)) {\n let result = service(state, lineStart, lineEnd);\n if (result)\n return result;\n }\n return syntaxFolding(state, lineStart, lineEnd);\n}\nfunction mapRange(range, mapping) {\n let from = mapping.mapPos(range.from, 1), to = mapping.mapPos(range.to, -1);\n return from >= to ? undefined : { from, to };\n}\n/**\nState effect that can be attached to a transaction to fold the\ngiven range. (You probably only need this in exceptional\ncircumstances—usually you'll just want to let\n[`foldCode`](https://codemirror.net/6/docs/ref/#language.foldCode) and the [fold\ngutter](https://codemirror.net/6/docs/ref/#language.foldGutter) create the transactions.)\n*/\nconst foldEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateEffect.define({ map: mapRange });\n/**\nState effect that unfolds the given range (if it was folded).\n*/\nconst unfoldEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateEffect.define({ map: mapRange });\nfunction selectedLines(view) {\n let lines = [];\n for (let { head } of view.state.selection.ranges) {\n if (lines.some(l => l.from <= head && l.to >= head))\n continue;\n lines.push(view.lineBlockAt(head));\n }\n return lines;\n}\n/**\nThe state field that stores the folded ranges (as a [decoration\nset](https://codemirror.net/6/docs/ref/#view.DecorationSet)). Can be passed to\n[`EditorState.toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) and\n[`fromJSON`](https://codemirror.net/6/docs/ref/#state.EditorState^fromJSON) to serialize the fold\nstate.\n*/\nconst foldState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateField.define({\n create() {\n return _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.none;\n },\n update(folded, tr) {\n folded = folded.map(tr.changes);\n for (let e of tr.effects) {\n if (e.is(foldEffect) && !foldExists(folded, e.value.from, e.value.to)) {\n let { preparePlaceholder } = tr.state.facet(foldConfig);\n let widget = !preparePlaceholder ? foldWidget :\n _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.replace({ widget: new PreparedFoldWidget(preparePlaceholder(tr.state, e.value)) });\n folded = folded.update({ add: [widget.range(e.value.from, e.value.to)] });\n }\n else if (e.is(unfoldEffect)) {\n folded = folded.update({ filter: (from, to) => e.value.from != from || e.value.to != to,\n filterFrom: e.value.from, filterTo: e.value.to });\n }\n }\n // Clear folded ranges that cover the selection head\n if (tr.selection) {\n let onSelection = false, { head } = tr.selection.main;\n folded.between(head, head, (a, b) => { if (a < head && b > head)\n onSelection = true; });\n if (onSelection)\n folded = folded.update({\n filterFrom: head,\n filterTo: head,\n filter: (a, b) => b <= head || a >= head\n });\n }\n return folded;\n },\n provide: f => _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.decorations.from(f),\n toJSON(folded, state) {\n let ranges = [];\n folded.between(0, state.doc.length, (from, to) => { ranges.push(from, to); });\n return ranges;\n },\n fromJSON(value) {\n if (!Array.isArray(value) || value.length % 2)\n throw new RangeError(\"Invalid JSON for fold state\");\n let ranges = [];\n for (let i = 0; i < value.length;) {\n let from = value[i++], to = value[i++];\n if (typeof from != \"number\" || typeof to != \"number\")\n throw new RangeError(\"Invalid JSON for fold state\");\n ranges.push(foldWidget.range(from, to));\n }\n return _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.set(ranges, true);\n }\n});\n/**\nGet a [range set](https://codemirror.net/6/docs/ref/#state.RangeSet) containing the folded ranges\nin the given state.\n*/\nfunction foldedRanges(state) {\n return state.field(foldState, false) || _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.RangeSet.empty;\n}\nfunction findFold(state, from, to) {\n var _a;\n let found = null;\n (_a = state.field(foldState, false)) === null || _a === void 0 ? void 0 : _a.between(from, to, (from, to) => {\n if (!found || found.from > from)\n found = { from, to };\n });\n return found;\n}\nfunction foldExists(folded, from, to) {\n let found = false;\n folded.between(from, from, (a, b) => { if (a == from && b == to)\n found = true; });\n return found;\n}\nfunction maybeEnable(state, other) {\n return state.field(foldState, false) ? other : other.concat(_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateEffect.appendConfig.of(codeFolding()));\n}\n/**\nFold the lines that are selected, if possible.\n*/\nconst foldCode = view => {\n for (let line of selectedLines(view)) {\n let range = foldable(view.state, line.from, line.to);\n if (range) {\n view.dispatch({ effects: maybeEnable(view.state, [foldEffect.of(range), announceFold(view, range)]) });\n return true;\n }\n }\n return false;\n};\n/**\nUnfold folded ranges on selected lines.\n*/\nconst unfoldCode = view => {\n if (!view.state.field(foldState, false))\n return false;\n let effects = [];\n for (let line of selectedLines(view)) {\n let folded = findFold(view.state, line.from, line.to);\n if (folded)\n effects.push(unfoldEffect.of(folded), announceFold(view, folded, false));\n }\n if (effects.length)\n view.dispatch({ effects });\n return effects.length > 0;\n};\nfunction announceFold(view, range, fold = true) {\n let lineFrom = view.state.doc.lineAt(range.from).number, lineTo = view.state.doc.lineAt(range.to).number;\n return _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.announce.of(`${view.state.phrase(fold ? \"Folded lines\" : \"Unfolded lines\")} ${lineFrom} ${view.state.phrase(\"to\")} ${lineTo}.`);\n}\n/**\nFold all top-level foldable ranges. Note that, in most cases,\nfolding information will depend on the [syntax\ntree](https://codemirror.net/6/docs/ref/#language.syntaxTree), and folding everything may not work\nreliably when the document hasn't been fully parsed (either\nbecause the editor state was only just initialized, or because the\ndocument is so big that the parser decided not to parse it\nentirely).\n*/\nconst foldAll = view => {\n let { state } = view, effects = [];\n for (let pos = 0; pos < state.doc.length;) {\n let line = view.lineBlockAt(pos), range = foldable(state, line.from, line.to);\n if (range)\n effects.push(foldEffect.of(range));\n pos = (range ? view.lineBlockAt(range.to) : line).to + 1;\n }\n if (effects.length)\n view.dispatch({ effects: maybeEnable(view.state, effects) });\n return !!effects.length;\n};\n/**\nUnfold all folded code.\n*/\nconst unfoldAll = view => {\n let field = view.state.field(foldState, false);\n if (!field || !field.size)\n return false;\n let effects = [];\n field.between(0, view.state.doc.length, (from, to) => { effects.push(unfoldEffect.of({ from, to })); });\n view.dispatch({ effects });\n return true;\n};\n// Find the foldable region containing the given line, if one exists\nfunction foldableContainer(view, lineBlock) {\n // Look backwards through line blocks until we find a foldable region that\n // intersects with the line\n for (let line = lineBlock;;) {\n let foldableRegion = foldable(view.state, line.from, line.to);\n if (foldableRegion && foldableRegion.to > lineBlock.from)\n return foldableRegion;\n if (!line.from)\n return null;\n line = view.lineBlockAt(line.from - 1);\n }\n}\n/**\nToggle folding at cursors. Unfolds if there is an existing fold\nstarting in that line, tries to find a foldable range around it\notherwise.\n*/\nconst toggleFold = (view) => {\n let effects = [];\n for (let line of selectedLines(view)) {\n let folded = findFold(view.state, line.from, line.to);\n if (folded) {\n effects.push(unfoldEffect.of(folded), announceFold(view, folded, false));\n }\n else {\n let foldRange = foldableContainer(view, line);\n if (foldRange)\n effects.push(foldEffect.of(foldRange), announceFold(view, foldRange));\n }\n }\n if (effects.length > 0)\n view.dispatch({ effects: maybeEnable(view.state, effects) });\n return !!effects.length;\n};\n/**\nDefault fold-related key bindings.\n\n - Ctrl-Shift-[ (Cmd-Alt-[ on macOS): [`foldCode`](https://codemirror.net/6/docs/ref/#language.foldCode).\n - Ctrl-Shift-] (Cmd-Alt-] on macOS): [`unfoldCode`](https://codemirror.net/6/docs/ref/#language.unfoldCode).\n - Ctrl-Alt-[: [`foldAll`](https://codemirror.net/6/docs/ref/#language.foldAll).\n - Ctrl-Alt-]: [`unfoldAll`](https://codemirror.net/6/docs/ref/#language.unfoldAll).\n*/\nconst foldKeymap = [\n { key: \"Ctrl-Shift-[\", mac: \"Cmd-Alt-[\", run: foldCode },\n { key: \"Ctrl-Shift-]\", mac: \"Cmd-Alt-]\", run: unfoldCode },\n { key: \"Ctrl-Alt-[\", run: foldAll },\n { key: \"Ctrl-Alt-]\", run: unfoldAll }\n];\nconst defaultConfig = {\n placeholderDOM: null,\n preparePlaceholder: null,\n placeholderText: \"…\"\n};\nconst foldConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({\n combine(values) { return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.combineConfig)(values, defaultConfig); }\n});\n/**\nCreate an extension that configures code folding.\n*/\nfunction codeFolding(config) {\n let result = [foldState, baseTheme$1];\n if (config)\n result.push(foldConfig.of(config));\n return result;\n}\nfunction widgetToDOM(view, prepared) {\n let { state } = view, conf = state.facet(foldConfig);\n let onclick = (event) => {\n let line = view.lineBlockAt(view.posAtDOM(event.target));\n let folded = findFold(view.state, line.from, line.to);\n if (folded)\n view.dispatch({ effects: unfoldEffect.of(folded) });\n event.preventDefault();\n };\n if (conf.placeholderDOM)\n return conf.placeholderDOM(view, onclick, prepared);\n let element = document.createElement(\"span\");\n element.textContent = conf.placeholderText;\n element.setAttribute(\"aria-label\", state.phrase(\"folded code\"));\n element.title = state.phrase(\"unfold\");\n element.className = \"cm-foldPlaceholder\";\n element.onclick = onclick;\n return element;\n}\nconst foldWidget = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.replace({ widget: /*@__PURE__*/new class extends _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.WidgetType {\n toDOM(view) { return widgetToDOM(view, null); }\n } });\nclass PreparedFoldWidget extends _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.WidgetType {\n constructor(value) {\n super();\n this.value = value;\n }\n eq(other) { return this.value == other.value; }\n toDOM(view) { return widgetToDOM(view, this.value); }\n}\nconst foldGutterDefaults = {\n openText: \"⌄\",\n closedText: \"›\",\n markerDOM: null,\n domEventHandlers: {},\n foldingChanged: () => false\n};\nclass FoldMarker extends _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.GutterMarker {\n constructor(config, open) {\n super();\n this.config = config;\n this.open = open;\n }\n eq(other) { return this.config == other.config && this.open == other.open; }\n toDOM(view) {\n if (this.config.markerDOM)\n return this.config.markerDOM(this.open);\n let span = document.createElement(\"span\");\n span.textContent = this.open ? this.config.openText : this.config.closedText;\n span.title = view.state.phrase(this.open ? \"Fold line\" : \"Unfold line\");\n return span;\n }\n}\n/**\nCreate an extension that registers a fold gutter, which shows a\nfold status indicator before foldable lines (which can be clicked\nto fold or unfold the line).\n*/\nfunction foldGutter(config = {}) {\n let fullConfig = Object.assign(Object.assign({}, foldGutterDefaults), config);\n let canFold = new FoldMarker(fullConfig, true), canUnfold = new FoldMarker(fullConfig, false);\n let markers = _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.ViewPlugin.fromClass(class {\n constructor(view) {\n this.from = view.viewport.from;\n this.markers = this.buildMarkers(view);\n }\n update(update) {\n if (update.docChanged || update.viewportChanged ||\n update.startState.facet(language) != update.state.facet(language) ||\n update.startState.field(foldState, false) != update.state.field(foldState, false) ||\n syntaxTree(update.startState) != syntaxTree(update.state) ||\n fullConfig.foldingChanged(update))\n this.markers = this.buildMarkers(update.view);\n }\n buildMarkers(view) {\n let builder = new _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.RangeSetBuilder();\n for (let line of view.viewportLineBlocks) {\n let mark = findFold(view.state, line.from, line.to) ? canUnfold\n : foldable(view.state, line.from, line.to) ? canFold : null;\n if (mark)\n builder.add(line.from, line.from, mark);\n }\n return builder.finish();\n }\n });\n let { domEventHandlers } = fullConfig;\n return [\n markers,\n (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.gutter)({\n class: \"cm-foldGutter\",\n markers(view) { var _a; return ((_a = view.plugin(markers)) === null || _a === void 0 ? void 0 : _a.markers) || _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.RangeSet.empty; },\n initialSpacer() {\n return new FoldMarker(fullConfig, false);\n },\n domEventHandlers: Object.assign(Object.assign({}, domEventHandlers), { click: (view, line, event) => {\n if (domEventHandlers.click && domEventHandlers.click(view, line, event))\n return true;\n let folded = findFold(view.state, line.from, line.to);\n if (folded) {\n view.dispatch({ effects: unfoldEffect.of(folded) });\n return true;\n }\n let range = foldable(view.state, line.from, line.to);\n if (range) {\n view.dispatch({ effects: foldEffect.of(range) });\n return true;\n }\n return false;\n } })\n }),\n codeFolding()\n ];\n}\nconst baseTheme$1 = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.baseTheme({\n \".cm-foldPlaceholder\": {\n backgroundColor: \"#eee\",\n border: \"1px solid #ddd\",\n color: \"#888\",\n borderRadius: \".2em\",\n margin: \"0 1px\",\n padding: \"0 1px\",\n cursor: \"pointer\"\n },\n \".cm-foldGutter span\": {\n padding: \"0 1px\",\n cursor: \"pointer\"\n }\n});\n\n/**\nA highlight style associates CSS styles with higlighting\n[tags](https://lezer.codemirror.net/docs/ref#highlight.Tag).\n*/\nclass HighlightStyle {\n constructor(\n /**\n The tag styles used to create this highlight style.\n */\n specs, options) {\n this.specs = specs;\n let modSpec;\n function def(spec) {\n let cls = style_mod__WEBPACK_IMPORTED_MODULE_2__.StyleModule.newName();\n (modSpec || (modSpec = Object.create(null)))[\".\" + cls] = spec;\n return cls;\n }\n const all = typeof options.all == \"string\" ? options.all : options.all ? def(options.all) : undefined;\n const scopeOpt = options.scope;\n this.scope = scopeOpt instanceof Language ? (type) => type.prop(languageDataProp) == scopeOpt.data\n : scopeOpt ? (type) => type == scopeOpt : undefined;\n this.style = (0,_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tagHighlighter)(specs.map(style => ({\n tag: style.tag,\n class: style.class || def(Object.assign({}, style, { tag: null }))\n })), {\n all,\n }).style;\n this.module = modSpec ? new style_mod__WEBPACK_IMPORTED_MODULE_2__.StyleModule(modSpec) : null;\n this.themeType = options.themeType;\n }\n /**\n Create a highlighter style that associates the given styles to\n the given tags. The specs must be objects that hold a style tag\n or array of tags in their `tag` property, and either a single\n `class` property providing a static CSS class (for highlighter\n that rely on external styling), or a\n [`style-mod`](https://github.com/marijnh/style-mod#documentation)-style\n set of CSS properties (which define the styling for those tags).\n \n The CSS rules created for a highlighter will be emitted in the\n order of the spec's properties. That means that for elements that\n have multiple tags associated with them, styles defined further\n down in the list will have a higher CSS precedence than styles\n defined earlier.\n */\n static define(specs, options) {\n return new HighlightStyle(specs, options || {});\n }\n}\nconst highlighterFacet = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define();\nconst fallbackHighlighter = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({\n combine(values) { return values.length ? [values[0]] : null; }\n});\nfunction getHighlighters(state) {\n let main = state.facet(highlighterFacet);\n return main.length ? main : state.facet(fallbackHighlighter);\n}\n/**\nWrap a highlighter in an editor extension that uses it to apply\nsyntax highlighting to the editor content.\n\nWhen multiple (non-fallback) styles are provided, the styling\napplied is the union of the classes they emit.\n*/\nfunction syntaxHighlighting(highlighter, options) {\n let ext = [treeHighlighter], themeType;\n if (highlighter instanceof HighlightStyle) {\n if (highlighter.module)\n ext.push(_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.styleModule.of(highlighter.module));\n themeType = highlighter.themeType;\n }\n if (options === null || options === void 0 ? void 0 : options.fallback)\n ext.push(fallbackHighlighter.of(highlighter));\n else if (themeType)\n ext.push(highlighterFacet.computeN([_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.darkTheme], state => {\n return state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.darkTheme) == (themeType == \"dark\") ? [highlighter] : [];\n }));\n else\n ext.push(highlighterFacet.of(highlighter));\n return ext;\n}\n/**\nReturns the CSS classes (if any) that the highlighters active in\nthe state would assign to the given style\n[tags](https://lezer.codemirror.net/docs/ref#highlight.Tag) and\n(optional) language\n[scope](https://codemirror.net/6/docs/ref/#language.HighlightStyle^define^options.scope).\n*/\nfunction highlightingFor(state, tags, scope) {\n let highlighters = getHighlighters(state);\n let result = null;\n if (highlighters)\n for (let highlighter of highlighters) {\n if (!highlighter.scope || scope && highlighter.scope(scope)) {\n let cls = highlighter.style(tags);\n if (cls)\n result = result ? result + \" \" + cls : cls;\n }\n }\n return result;\n}\nclass TreeHighlighter {\n constructor(view) {\n this.markCache = Object.create(null);\n this.tree = syntaxTree(view.state);\n this.decorations = this.buildDeco(view, getHighlighters(view.state));\n this.decoratedTo = view.viewport.to;\n }\n update(update) {\n let tree = syntaxTree(update.state), highlighters = getHighlighters(update.state);\n let styleChange = highlighters != getHighlighters(update.startState);\n let { viewport } = update.view, decoratedToMapped = update.changes.mapPos(this.decoratedTo, 1);\n if (tree.length < viewport.to && !styleChange && tree.type == this.tree.type && decoratedToMapped >= viewport.to) {\n this.decorations = this.decorations.map(update.changes);\n this.decoratedTo = decoratedToMapped;\n }\n else if (tree != this.tree || update.viewportChanged || styleChange) {\n this.tree = tree;\n this.decorations = this.buildDeco(update.view, highlighters);\n this.decoratedTo = viewport.to;\n }\n }\n buildDeco(view, highlighters) {\n if (!highlighters || !this.tree.length)\n return _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.none;\n let builder = new _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.RangeSetBuilder();\n for (let { from, to } of view.visibleRanges) {\n (0,_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.highlightTree)(this.tree, highlighters, (from, to, style) => {\n builder.add(from, to, this.markCache[style] || (this.markCache[style] = _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.mark({ class: style })));\n }, from, to);\n }\n return builder.finish();\n }\n}\nconst treeHighlighter = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Prec.high(/*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.ViewPlugin.fromClass(TreeHighlighter, {\n decorations: v => v.decorations\n}));\n/**\nA default highlight style (works well with light themes).\n*/\nconst defaultHighlightStyle = /*@__PURE__*/HighlightStyle.define([\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.meta,\n color: \"#404740\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.link,\n textDecoration: \"underline\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.heading,\n textDecoration: \"underline\",\n fontWeight: \"bold\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.emphasis,\n fontStyle: \"italic\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.strong,\n fontWeight: \"bold\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.strikethrough,\n textDecoration: \"line-through\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.keyword,\n color: \"#708\" },\n { tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.atom, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bool, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.url, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.contentSeparator, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.labelName],\n color: \"#219\" },\n { tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.literal, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.inserted],\n color: \"#164\" },\n { tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.deleted],\n color: \"#a11\" },\n { tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.regexp, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.escape, /*@__PURE__*/_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string)],\n color: \"#e40\" },\n { tag: /*@__PURE__*/_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definition(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName),\n color: \"#00f\" },\n { tag: /*@__PURE__*/_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.local(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName),\n color: \"#30a\" },\n { tag: [_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeName, _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.namespace],\n color: \"#085\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.className,\n color: \"#167\" },\n { tag: [/*@__PURE__*/_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName), _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.macroName],\n color: \"#256\" },\n { tag: /*@__PURE__*/_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definition(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.propertyName),\n color: \"#00c\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.comment,\n color: \"#940\" },\n { tag: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.invalid,\n color: \"#f00\" }\n]);\n\nconst baseTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.baseTheme({\n \"&.cm-focused .cm-matchingBracket\": { backgroundColor: \"#328c8252\" },\n \"&.cm-focused .cm-nonmatchingBracket\": { backgroundColor: \"#bb555544\" }\n});\nconst DefaultScanDist = 10000, DefaultBrackets = \"()[]{}\";\nconst bracketMatchingConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.combineConfig)(configs, {\n afterCursor: true,\n brackets: DefaultBrackets,\n maxScanDistance: DefaultScanDist,\n renderMatch: defaultRenderMatch\n });\n }\n});\nconst matchingMark = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.mark({ class: \"cm-matchingBracket\" }), nonmatchingMark = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.mark({ class: \"cm-nonmatchingBracket\" });\nfunction defaultRenderMatch(match) {\n let decorations = [];\n let mark = match.matched ? matchingMark : nonmatchingMark;\n decorations.push(mark.range(match.start.from, match.start.to));\n if (match.end)\n decorations.push(mark.range(match.end.from, match.end.to));\n return decorations;\n}\nconst bracketMatchingState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.StateField.define({\n create() { return _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.none; },\n update(deco, tr) {\n if (!tr.docChanged && !tr.selection)\n return deco;\n let decorations = [];\n let config = tr.state.facet(bracketMatchingConfig);\n for (let range of tr.state.selection.ranges) {\n if (!range.empty)\n continue;\n let match = matchBrackets(tr.state, range.head, -1, config)\n || (range.head > 0 && matchBrackets(tr.state, range.head - 1, 1, config))\n || (config.afterCursor &&\n (matchBrackets(tr.state, range.head, 1, config) ||\n (range.head < tr.state.doc.length && matchBrackets(tr.state, range.head + 1, -1, config))));\n if (match)\n decorations = decorations.concat(config.renderMatch(match, tr.state));\n }\n return _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.set(decorations, true);\n },\n provide: f => _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.decorations.from(f)\n});\nconst bracketMatchingUnique = [\n bracketMatchingState,\n baseTheme\n];\n/**\nCreate an extension that enables bracket matching. Whenever the\ncursor is next to a bracket, that bracket and the one it matches\nare highlighted. Or, when no matching bracket is found, another\nhighlighting style is used to indicate this.\n*/\nfunction bracketMatching(config = {}) {\n return [bracketMatchingConfig.of(config), bracketMatchingUnique];\n}\n/**\nWhen larger syntax nodes, such as HTML tags, are marked as\nopening/closing, it can be a bit messy to treat the whole node as\na matchable bracket. This node prop allows you to define, for such\na node, a ‘handle’—the part of the node that is highlighted, and\nthat the cursor must be on to activate highlighting in the first\nplace.\n*/\nconst bracketMatchingHandle = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp();\nfunction matchingNodes(node, dir, brackets) {\n let byProp = node.prop(dir < 0 ? _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.openedBy : _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.closedBy);\n if (byProp)\n return byProp;\n if (node.name.length == 1) {\n let index = brackets.indexOf(node.name);\n if (index > -1 && index % 2 == (dir < 0 ? 1 : 0))\n return [brackets[index + dir]];\n }\n return null;\n}\nfunction findHandle(node) {\n let hasHandle = node.type.prop(bracketMatchingHandle);\n return hasHandle ? hasHandle(node.node) : node;\n}\n/**\nFind the matching bracket for the token at `pos`, scanning\ndirection `dir`. Only the `brackets` and `maxScanDistance`\nproperties are used from `config`, if given. Returns null if no\nbracket was found at `pos`, or a match result otherwise.\n*/\nfunction matchBrackets(state, pos, dir, config = {}) {\n let maxScanDistance = config.maxScanDistance || DefaultScanDist, brackets = config.brackets || DefaultBrackets;\n let tree = syntaxTree(state), node = tree.resolveInner(pos, dir);\n for (let cur = node; cur; cur = cur.parent) {\n let matches = matchingNodes(cur.type, dir, brackets);\n if (matches && cur.from < cur.to) {\n let handle = findHandle(cur);\n if (handle && (dir > 0 ? pos >= handle.from && pos < handle.to : pos > handle.from && pos <= handle.to))\n return matchMarkedBrackets(state, pos, dir, cur, handle, matches, brackets);\n }\n }\n return matchPlainBrackets(state, pos, dir, tree, node.type, maxScanDistance, brackets);\n}\nfunction matchMarkedBrackets(_state, _pos, dir, token, handle, matching, brackets) {\n let parent = token.parent, firstToken = { from: handle.from, to: handle.to };\n let depth = 0, cursor = parent === null || parent === void 0 ? void 0 : parent.cursor();\n if (cursor && (dir < 0 ? cursor.childBefore(token.from) : cursor.childAfter(token.to)))\n do {\n if (dir < 0 ? cursor.to <= token.from : cursor.from >= token.to) {\n if (depth == 0 && matching.indexOf(cursor.type.name) > -1 && cursor.from < cursor.to) {\n let endHandle = findHandle(cursor);\n return { start: firstToken, end: endHandle ? { from: endHandle.from, to: endHandle.to } : undefined, matched: true };\n }\n else if (matchingNodes(cursor.type, dir, brackets)) {\n depth++;\n }\n else if (matchingNodes(cursor.type, -dir, brackets)) {\n if (depth == 0) {\n let endHandle = findHandle(cursor);\n return {\n start: firstToken,\n end: endHandle && endHandle.from < endHandle.to ? { from: endHandle.from, to: endHandle.to } : undefined,\n matched: false\n };\n }\n depth--;\n }\n }\n } while (dir < 0 ? cursor.prevSibling() : cursor.nextSibling());\n return { start: firstToken, matched: false };\n}\nfunction matchPlainBrackets(state, pos, dir, tree, tokenType, maxScanDistance, brackets) {\n let startCh = dir < 0 ? state.sliceDoc(pos - 1, pos) : state.sliceDoc(pos, pos + 1);\n let bracket = brackets.indexOf(startCh);\n if (bracket < 0 || (bracket % 2 == 0) != (dir > 0))\n return null;\n let startToken = { from: dir < 0 ? pos - 1 : pos, to: dir > 0 ? pos + 1 : pos };\n let iter = state.doc.iterRange(pos, dir > 0 ? state.doc.length : 0), depth = 0;\n for (let distance = 0; !(iter.next()).done && distance <= maxScanDistance;) {\n let text = iter.value;\n if (dir < 0)\n distance += text.length;\n let basePos = pos + distance * dir;\n for (let pos = dir > 0 ? 0 : text.length - 1, end = dir > 0 ? text.length : -1; pos != end; pos += dir) {\n let found = brackets.indexOf(text[pos]);\n if (found < 0 || tree.resolveInner(basePos + pos, 1).type != tokenType)\n continue;\n if ((found % 2 == 0) == (dir > 0)) {\n depth++;\n }\n else if (depth == 1) { // Closing\n return { start: startToken, end: { from: basePos + pos, to: basePos + pos + 1 }, matched: (found >> 1) == (bracket >> 1) };\n }\n else {\n depth--;\n }\n }\n if (dir > 0)\n distance += text.length;\n }\n return iter.done ? { start: startToken, matched: false } : null;\n}\n\n// Counts the column offset in a string, taking tabs into account.\n// Used mostly to find indentation.\nfunction countCol(string, end, tabSize, startIndex = 0, startValue = 0) {\n if (end == null) {\n end = string.search(/[^\\s\\u00a0]/);\n if (end == -1)\n end = string.length;\n }\n let n = startValue;\n for (let i = startIndex; i < end; i++) {\n if (string.charCodeAt(i) == 9)\n n += tabSize - (n % tabSize);\n else\n n++;\n }\n return n;\n}\n/**\nEncapsulates a single line of input. Given to stream syntax code,\nwhich uses it to tokenize the content.\n*/\nclass StringStream {\n /**\n Create a stream.\n */\n constructor(\n /**\n The line.\n */\n string, tabSize, \n /**\n The current indent unit size.\n */\n indentUnit, overrideIndent) {\n this.string = string;\n this.tabSize = tabSize;\n this.indentUnit = indentUnit;\n this.overrideIndent = overrideIndent;\n /**\n The current position on the line.\n */\n this.pos = 0;\n /**\n The start position of the current token.\n */\n this.start = 0;\n this.lastColumnPos = 0;\n this.lastColumnValue = 0;\n }\n /**\n True if we are at the end of the line.\n */\n eol() { return this.pos >= this.string.length; }\n /**\n True if we are at the start of the line.\n */\n sol() { return this.pos == 0; }\n /**\n Get the next code unit after the current position, or undefined\n if we're at the end of the line.\n */\n peek() { return this.string.charAt(this.pos) || undefined; }\n /**\n Read the next code unit and advance `this.pos`.\n */\n next() {\n if (this.pos < this.string.length)\n return this.string.charAt(this.pos++);\n }\n /**\n Match the next character against the given string, regular\n expression, or predicate. Consume and return it if it matches.\n */\n eat(match) {\n let ch = this.string.charAt(this.pos);\n let ok;\n if (typeof match == \"string\")\n ok = ch == match;\n else\n ok = ch && (match instanceof RegExp ? match.test(ch) : match(ch));\n if (ok) {\n ++this.pos;\n return ch;\n }\n }\n /**\n Continue matching characters that match the given string,\n regular expression, or predicate function. Return true if any\n characters were consumed.\n */\n eatWhile(match) {\n let start = this.pos;\n while (this.eat(match)) { }\n return this.pos > start;\n }\n /**\n Consume whitespace ahead of `this.pos`. Return true if any was\n found.\n */\n eatSpace() {\n let start = this.pos;\n while (/[\\s\\u00a0]/.test(this.string.charAt(this.pos)))\n ++this.pos;\n return this.pos > start;\n }\n /**\n Move to the end of the line.\n */\n skipToEnd() { this.pos = this.string.length; }\n /**\n Move to directly before the given character, if found on the\n current line.\n */\n skipTo(ch) {\n let found = this.string.indexOf(ch, this.pos);\n if (found > -1) {\n this.pos = found;\n return true;\n }\n }\n /**\n Move back `n` characters.\n */\n backUp(n) { this.pos -= n; }\n /**\n Get the column position at `this.pos`.\n */\n column() {\n if (this.lastColumnPos < this.start) {\n this.lastColumnValue = countCol(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);\n this.lastColumnPos = this.start;\n }\n return this.lastColumnValue;\n }\n /**\n Get the indentation column of the current line.\n */\n indentation() {\n var _a;\n return (_a = this.overrideIndent) !== null && _a !== void 0 ? _a : countCol(this.string, null, this.tabSize);\n }\n /**\n Match the input against the given string or regular expression\n (which should start with a `^`). Return true or the regexp match\n if it matches.\n \n Unless `consume` is set to `false`, this will move `this.pos`\n past the matched text.\n \n When matching a string `caseInsensitive` can be set to true to\n make the match case-insensitive.\n */\n match(pattern, consume, caseInsensitive) {\n if (typeof pattern == \"string\") {\n let cased = (str) => caseInsensitive ? str.toLowerCase() : str;\n let substr = this.string.substr(this.pos, pattern.length);\n if (cased(substr) == cased(pattern)) {\n if (consume !== false)\n this.pos += pattern.length;\n return true;\n }\n else\n return null;\n }\n else {\n let match = this.string.slice(this.pos).match(pattern);\n if (match && match.index > 0)\n return null;\n if (match && consume !== false)\n this.pos += match[0].length;\n return match;\n }\n }\n /**\n Get the current token.\n */\n current() { return this.string.slice(this.start, this.pos); }\n}\n\nfunction fullParser(spec) {\n return {\n name: spec.name || \"\",\n token: spec.token,\n blankLine: spec.blankLine || (() => { }),\n startState: spec.startState || (() => true),\n copyState: spec.copyState || defaultCopyState,\n indent: spec.indent || (() => null),\n languageData: spec.languageData || {},\n tokenTable: spec.tokenTable || noTokens\n };\n}\nfunction defaultCopyState(state) {\n if (typeof state != \"object\")\n return state;\n let newState = {};\n for (let prop in state) {\n let val = state[prop];\n newState[prop] = (val instanceof Array ? val.slice() : val);\n }\n return newState;\n}\nconst IndentedFrom = /*@__PURE__*/new WeakMap();\n/**\nA [language](https://codemirror.net/6/docs/ref/#language.Language) class based on a CodeMirror\n5-style [streaming parser](https://codemirror.net/6/docs/ref/#language.StreamParser).\n*/\nclass StreamLanguage extends Language {\n constructor(parser) {\n let data = defineLanguageFacet(parser.languageData);\n let p = fullParser(parser), self;\n let impl = new class extends _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Parser {\n createParse(input, fragments, ranges) {\n return new Parse(self, input, fragments, ranges);\n }\n };\n super(data, impl, [indentService.of((cx, pos) => this.getIndent(cx, pos))], parser.name);\n this.topNode = docID(data);\n self = this;\n this.streamParser = p;\n this.stateAfter = new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp({ perNode: true });\n this.tokenTable = parser.tokenTable ? new TokenTable(p.tokenTable) : defaultTokenTable;\n }\n /**\n Define a stream language.\n */\n static define(spec) { return new StreamLanguage(spec); }\n getIndent(cx, pos) {\n let tree = syntaxTree(cx.state), at = tree.resolve(pos);\n while (at && at.type != this.topNode)\n at = at.parent;\n if (!at)\n return null;\n let from = undefined;\n let { overrideIndentation } = cx.options;\n if (overrideIndentation) {\n from = IndentedFrom.get(cx.state);\n if (from != null && from < pos - 1e4)\n from = undefined;\n }\n let start = findState(this, tree, 0, at.from, from !== null && from !== void 0 ? from : pos), statePos, state;\n if (start) {\n state = start.state;\n statePos = start.pos + 1;\n }\n else {\n state = this.streamParser.startState(cx.unit);\n statePos = 0;\n }\n if (pos - statePos > 10000 /* C.MaxIndentScanDist */)\n return null;\n while (statePos < pos) {\n let line = cx.state.doc.lineAt(statePos), end = Math.min(pos, line.to);\n if (line.length) {\n let indentation = overrideIndentation ? overrideIndentation(line.from) : -1;\n let stream = new StringStream(line.text, cx.state.tabSize, cx.unit, indentation < 0 ? undefined : indentation);\n while (stream.pos < end - line.from)\n readToken(this.streamParser.token, stream, state);\n }\n else {\n this.streamParser.blankLine(state, cx.unit);\n }\n if (end == pos)\n break;\n statePos = line.to + 1;\n }\n let line = cx.lineAt(pos);\n if (overrideIndentation && from == null)\n IndentedFrom.set(cx.state, line.from);\n return this.streamParser.indent(state, /^\\s*(.*)/.exec(line.text)[1], cx);\n }\n get allowsNesting() { return false; }\n}\nfunction findState(lang, tree, off, startPos, before) {\n let state = off >= startPos && off + tree.length <= before && tree.prop(lang.stateAfter);\n if (state)\n return { state: lang.streamParser.copyState(state), pos: off + tree.length };\n for (let i = tree.children.length - 1; i >= 0; i--) {\n let child = tree.children[i], pos = off + tree.positions[i];\n let found = child instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree && pos < before && findState(lang, child, pos, startPos, before);\n if (found)\n return found;\n }\n return null;\n}\nfunction cutTree(lang, tree, from, to, inside) {\n if (inside && from <= 0 && to >= tree.length)\n return tree;\n if (!inside && tree.type == lang.topNode)\n inside = true;\n for (let i = tree.children.length - 1; i >= 0; i--) {\n let pos = tree.positions[i], child = tree.children[i], inner;\n if (pos < to && child instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree) {\n if (!(inner = cutTree(lang, child, from - pos, to - pos, inside)))\n break;\n return !inside ? inner\n : new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree(tree.type, tree.children.slice(0, i).concat(inner), tree.positions.slice(0, i + 1), pos + inner.length);\n }\n }\n return null;\n}\nfunction findStartInFragments(lang, fragments, startPos, editorState) {\n for (let f of fragments) {\n let from = f.from + (f.openStart ? 25 : 0), to = f.to - (f.openEnd ? 25 : 0);\n let found = from <= startPos && to > startPos && findState(lang, f.tree, 0 - f.offset, startPos, to), tree;\n if (found && (tree = cutTree(lang, f.tree, startPos + f.offset, found.pos + f.offset, false)))\n return { state: found.state, tree };\n }\n return { state: lang.streamParser.startState(editorState ? getIndentUnit(editorState) : 4), tree: _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.empty };\n}\nclass Parse {\n constructor(lang, input, fragments, ranges) {\n this.lang = lang;\n this.input = input;\n this.fragments = fragments;\n this.ranges = ranges;\n this.stoppedAt = null;\n this.chunks = [];\n this.chunkPos = [];\n this.chunk = [];\n this.chunkReused = undefined;\n this.rangeIndex = 0;\n this.to = ranges[ranges.length - 1].to;\n let context = ParseContext.get(), from = ranges[0].from;\n let { state, tree } = findStartInFragments(lang, fragments, from, context === null || context === void 0 ? void 0 : context.state);\n this.state = state;\n this.parsedPos = this.chunkStart = from + tree.length;\n for (let i = 0; i < tree.children.length; i++) {\n this.chunks.push(tree.children[i]);\n this.chunkPos.push(tree.positions[i]);\n }\n if (context && this.parsedPos < context.viewport.from - 100000 /* C.MaxDistanceBeforeViewport */) {\n this.state = this.lang.streamParser.startState(getIndentUnit(context.state));\n context.skipUntilInView(this.parsedPos, context.viewport.from);\n this.parsedPos = context.viewport.from;\n }\n this.moveRangeIndex();\n }\n advance() {\n let context = ParseContext.get();\n let parseEnd = this.stoppedAt == null ? this.to : Math.min(this.to, this.stoppedAt);\n let end = Math.min(parseEnd, this.chunkStart + 2048 /* C.ChunkSize */);\n if (context)\n end = Math.min(end, context.viewport.to);\n while (this.parsedPos < end)\n this.parseLine(context);\n if (this.chunkStart < this.parsedPos)\n this.finishChunk();\n if (this.parsedPos >= parseEnd)\n return this.finish();\n if (context && this.parsedPos >= context.viewport.to) {\n context.skipUntilInView(this.parsedPos, parseEnd);\n return this.finish();\n }\n return null;\n }\n stopAt(pos) {\n this.stoppedAt = pos;\n }\n lineAfter(pos) {\n let chunk = this.input.chunk(pos);\n if (!this.input.lineChunks) {\n let eol = chunk.indexOf(\"\\n\");\n if (eol > -1)\n chunk = chunk.slice(0, eol);\n }\n else if (chunk == \"\\n\") {\n chunk = \"\";\n }\n return pos + chunk.length <= this.to ? chunk : chunk.slice(0, this.to - pos);\n }\n nextLine() {\n let from = this.parsedPos, line = this.lineAfter(from), end = from + line.length;\n for (let index = this.rangeIndex;;) {\n let rangeEnd = this.ranges[index].to;\n if (rangeEnd >= end)\n break;\n line = line.slice(0, rangeEnd - (end - line.length));\n index++;\n if (index == this.ranges.length)\n break;\n let rangeStart = this.ranges[index].from;\n let after = this.lineAfter(rangeStart);\n line += after;\n end = rangeStart + after.length;\n }\n return { line, end };\n }\n skipGapsTo(pos, offset, side) {\n for (;;) {\n let end = this.ranges[this.rangeIndex].to, offPos = pos + offset;\n if (side > 0 ? end > offPos : end >= offPos)\n break;\n let start = this.ranges[++this.rangeIndex].from;\n offset += start - end;\n }\n return offset;\n }\n moveRangeIndex() {\n while (this.ranges[this.rangeIndex].to < this.parsedPos)\n this.rangeIndex++;\n }\n emitToken(id, from, to, size, offset) {\n if (this.ranges.length > 1) {\n offset = this.skipGapsTo(from, offset, 1);\n from += offset;\n let len0 = this.chunk.length;\n offset = this.skipGapsTo(to, offset, -1);\n to += offset;\n size += this.chunk.length - len0;\n }\n this.chunk.push(id, from, to, size);\n return offset;\n }\n parseLine(context) {\n let { line, end } = this.nextLine(), offset = 0, { streamParser } = this.lang;\n let stream = new StringStream(line, context ? context.state.tabSize : 4, context ? getIndentUnit(context.state) : 2);\n if (stream.eol()) {\n streamParser.blankLine(this.state, stream.indentUnit);\n }\n else {\n while (!stream.eol()) {\n let token = readToken(streamParser.token, stream, this.state);\n if (token)\n offset = this.emitToken(this.lang.tokenTable.resolve(token), this.parsedPos + stream.start, this.parsedPos + stream.pos, 4, offset);\n if (stream.start > 10000 /* C.MaxLineLength */)\n break;\n }\n }\n this.parsedPos = end;\n this.moveRangeIndex();\n if (this.parsedPos < this.to)\n this.parsedPos++;\n }\n finishChunk() {\n let tree = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.build({\n buffer: this.chunk,\n start: this.chunkStart,\n length: this.parsedPos - this.chunkStart,\n nodeSet,\n topID: 0,\n maxBufferLength: 2048 /* C.ChunkSize */,\n reused: this.chunkReused\n });\n tree = new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree(tree.type, tree.children, tree.positions, tree.length, [[this.lang.stateAfter, this.lang.streamParser.copyState(this.state)]]);\n this.chunks.push(tree);\n this.chunkPos.push(this.chunkStart - this.ranges[0].from);\n this.chunk = [];\n this.chunkReused = undefined;\n this.chunkStart = this.parsedPos;\n }\n finish() {\n return new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree(this.lang.topNode, this.chunks, this.chunkPos, this.parsedPos - this.ranges[0].from).balance();\n }\n}\nfunction readToken(token, stream, state) {\n stream.start = stream.pos;\n for (let i = 0; i < 10; i++) {\n let result = token(stream, state);\n if (stream.pos > stream.start)\n return result;\n }\n throw new Error(\"Stream parser failed to advance stream.\");\n}\nconst noTokens = /*@__PURE__*/Object.create(null);\nconst typeArray = [_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeType.none];\nconst nodeSet = /*@__PURE__*/new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeSet(typeArray);\nconst warned = [];\n// Cache of node types by name and tags\nconst byTag = /*@__PURE__*/Object.create(null);\nconst defaultTable = /*@__PURE__*/Object.create(null);\nfor (let [legacyName, name] of [\n [\"variable\", \"variableName\"],\n [\"variable-2\", \"variableName.special\"],\n [\"string-2\", \"string.special\"],\n [\"def\", \"variableName.definition\"],\n [\"tag\", \"tagName\"],\n [\"attribute\", \"attributeName\"],\n [\"type\", \"typeName\"],\n [\"builtin\", \"variableName.standard\"],\n [\"qualifier\", \"modifier\"],\n [\"error\", \"invalid\"],\n [\"header\", \"heading\"],\n [\"property\", \"propertyName\"]\n])\n defaultTable[legacyName] = /*@__PURE__*/createTokenType(noTokens, name);\nclass TokenTable {\n constructor(extra) {\n this.extra = extra;\n this.table = Object.assign(Object.create(null), defaultTable);\n }\n resolve(tag) {\n return !tag ? 0 : this.table[tag] || (this.table[tag] = createTokenType(this.extra, tag));\n }\n}\nconst defaultTokenTable = /*@__PURE__*/new TokenTable(noTokens);\nfunction warnForPart(part, msg) {\n if (warned.indexOf(part) > -1)\n return;\n warned.push(part);\n console.warn(msg);\n}\nfunction createTokenType(extra, tagStr) {\n let tags$1 = [];\n for (let name of tagStr.split(\" \")) {\n let found = [];\n for (let part of name.split(\".\")) {\n let value = (extra[part] || _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags[part]);\n if (!value) {\n warnForPart(part, `Unknown highlighting tag ${part}`);\n }\n else if (typeof value == \"function\") {\n if (!found.length)\n warnForPart(part, `Modifier ${part} used at start of tag`);\n else\n found = found.map(value);\n }\n else {\n if (found.length)\n warnForPart(part, `Tag ${part} used as modifier`);\n else\n found = Array.isArray(value) ? value : [value];\n }\n }\n for (let tag of found)\n tags$1.push(tag);\n }\n if (!tags$1.length)\n return 0;\n let name = tagStr.replace(/ /g, \"_\"), key = name + \" \" + tags$1.map(t => t.id);\n let known = byTag[key];\n if (known)\n return known.id;\n let type = byTag[key] = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeType.define({\n id: typeArray.length,\n name,\n props: [(0,_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.styleTags)({ [name]: tags$1 })]\n });\n typeArray.push(type);\n return type.id;\n}\nfunction docID(data) {\n let type = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeType.define({ id: typeArray.length, name: \"Document\", props: [languageDataProp.add(() => data)], top: true });\n typeArray.push(type);\n return type;\n}\n\nfunction buildForLine(line) {\n return line.length <= 4096 && /[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac\\ufb50-\\ufdff]/.test(line);\n}\nfunction textHasRTL(text) {\n for (let i = text.iter(); !i.next().done;)\n if (buildForLine(i.value))\n return true;\n return false;\n}\nfunction changeAddsRTL(change) {\n let added = false;\n change.iterChanges((fA, tA, fB, tB, ins) => {\n if (!added && textHasRTL(ins))\n added = true;\n });\n return added;\n}\nconst alwaysIsolate = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Facet.define({ combine: values => values.some(x => x) });\n/**\nMake sure nodes\n[marked](https://lezer.codemirror.net/docs/ref/#common.NodeProp^isolate)\nas isolating for bidirectional text are rendered in a way that\nisolates them from the surrounding text.\n*/\nfunction bidiIsolates(options = {}) {\n let extensions = [isolateMarks];\n if (options.alwaysIsolate)\n extensions.push(alwaysIsolate.of(true));\n return extensions;\n}\nconst isolateMarks = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.ViewPlugin.fromClass(class {\n constructor(view) {\n this.always = view.state.facet(alwaysIsolate) ||\n view.textDirection != _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Direction.LTR ||\n view.state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.perLineTextDirection);\n this.hasRTL = !this.always && textHasRTL(view.state.doc);\n this.tree = syntaxTree(view.state);\n this.decorations = this.always || this.hasRTL ? buildDeco(view, this.tree, this.always) : _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.none;\n }\n update(update) {\n let always = update.state.facet(alwaysIsolate) ||\n update.view.textDirection != _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Direction.LTR ||\n update.state.facet(_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.perLineTextDirection);\n if (!always && !this.hasRTL && changeAddsRTL(update.changes))\n this.hasRTL = true;\n if (!always && !this.hasRTL)\n return;\n let tree = syntaxTree(update.state);\n if (always != this.always || tree != this.tree || update.docChanged || update.viewportChanged) {\n this.tree = tree;\n this.always = always;\n this.decorations = buildDeco(update.view, tree, always);\n }\n }\n}, {\n provide: plugin => {\n function access(view) {\n var _a, _b;\n return (_b = (_a = view.plugin(plugin)) === null || _a === void 0 ? void 0 : _a.decorations) !== null && _b !== void 0 ? _b : _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.none;\n }\n return [_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.outerDecorations.of(access),\n _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.Prec.lowest(_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.EditorView.bidiIsolatedRanges.of(access))];\n }\n});\nfunction buildDeco(view, tree, always) {\n let deco = new _codemirror_state__WEBPACK_IMPORTED_MODULE_3__.RangeSetBuilder();\n let ranges = view.visibleRanges;\n if (!always)\n ranges = clipRTLLines(ranges, view.state.doc);\n for (let { from, to } of ranges) {\n tree.iterate({\n enter: node => {\n let iso = node.type.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.isolate);\n if (iso)\n deco.add(node.from, node.to, marks[iso]);\n },\n from, to\n });\n }\n return deco.finish();\n}\nfunction clipRTLLines(ranges, doc) {\n let cur = doc.iter(), pos = 0, result = [], last = null;\n for (let { from, to } of ranges) {\n if (last && last.to > from) {\n from = last.to;\n if (from >= to)\n continue;\n }\n if (pos + cur.value.length < from) {\n cur.next(from - (pos + cur.value.length));\n pos = from;\n }\n for (;;) {\n let start = pos, end = pos + cur.value.length;\n if (!cur.lineBreak && buildForLine(cur.value)) {\n if (last && last.to > start - 10)\n last.to = Math.min(to, end);\n else\n result.push(last = { from: start, to: Math.min(to, end) });\n }\n if (end >= to)\n break;\n pos = end;\n cur.next();\n }\n }\n return result;\n}\nconst marks = {\n rtl: /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.mark({ class: \"cm-iso\", inclusive: true, attributes: { dir: \"rtl\" }, bidiIsolate: _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Direction.RTL }),\n ltr: /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.mark({ class: \"cm-iso\", inclusive: true, attributes: { dir: \"ltr\" }, bidiIsolate: _codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Direction.LTR }),\n auto: /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_4__.Decoration.mark({ class: \"cm-iso\", inclusive: true, attributes: { dir: \"auto\" }, bidiIsolate: null })\n};\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@codemirror/language/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@codemirror/lint/dist/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/@codemirror/lint/dist/index.js ***! + \*****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ closeLintPanel: () => (/* binding */ closeLintPanel),\n/* harmony export */ diagnosticCount: () => (/* binding */ diagnosticCount),\n/* harmony export */ forEachDiagnostic: () => (/* binding */ forEachDiagnostic),\n/* harmony export */ forceLinting: () => (/* binding */ forceLinting),\n/* harmony export */ lintGutter: () => (/* binding */ lintGutter),\n/* harmony export */ lintKeymap: () => (/* binding */ lintKeymap),\n/* harmony export */ linter: () => (/* binding */ linter),\n/* harmony export */ nextDiagnostic: () => (/* binding */ nextDiagnostic),\n/* harmony export */ openLintPanel: () => (/* binding */ openLintPanel),\n/* harmony export */ previousDiagnostic: () => (/* binding */ previousDiagnostic),\n/* harmony export */ setDiagnostics: () => (/* binding */ setDiagnostics),\n/* harmony export */ setDiagnosticsEffect: () => (/* binding */ setDiagnosticsEffect)\n/* harmony export */ });\n/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/view */ \"./node_modules/@codemirror/view/dist/index.js\");\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var crelt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crelt */ \"./node_modules/crelt/index.js\");\n\n\n\n\nclass SelectedDiagnostic {\n constructor(from, to, diagnostic) {\n this.from = from;\n this.to = to;\n this.diagnostic = diagnostic;\n }\n}\nclass LintState {\n constructor(diagnostics, panel, selected) {\n this.diagnostics = diagnostics;\n this.panel = panel;\n this.selected = selected;\n }\n static init(diagnostics, panel, state) {\n // Filter the list of diagnostics for which to create markers\n let markedDiagnostics = diagnostics;\n let diagnosticFilter = state.facet(lintConfig).markerFilter;\n if (diagnosticFilter)\n markedDiagnostics = diagnosticFilter(markedDiagnostics, state);\n let ranges = _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.set(markedDiagnostics.map((d) => {\n // For zero-length ranges or ranges covering only a line break, create a widget\n return d.from == d.to || (d.from == d.to - 1 && state.doc.lineAt(d.from).to == d.from)\n ? _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.widget({\n widget: new DiagnosticWidget(d),\n diagnostic: d\n }).range(d.from)\n : _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.mark({\n attributes: { class: \"cm-lintRange cm-lintRange-\" + d.severity + (d.markClass ? \" \" + d.markClass : \"\") },\n diagnostic: d\n }).range(d.from, d.to);\n }), true);\n return new LintState(ranges, panel, findDiagnostic(ranges));\n }\n}\nfunction findDiagnostic(diagnostics, diagnostic = null, after = 0) {\n let found = null;\n diagnostics.between(after, 1e9, (from, to, { spec }) => {\n if (diagnostic && spec.diagnostic != diagnostic)\n return;\n found = new SelectedDiagnostic(from, to, spec.diagnostic);\n return false;\n });\n return found;\n}\nfunction hideTooltip(tr, tooltip) {\n let from = tooltip.pos, to = tooltip.end || from;\n let result = tr.state.facet(lintConfig).hideOn(tr, from, to);\n if (result != null)\n return result;\n let line = tr.startState.doc.lineAt(tooltip.pos);\n return !!(tr.effects.some(e => e.is(setDiagnosticsEffect)) || tr.changes.touchesRange(line.from, Math.max(line.to, to)));\n}\nfunction maybeEnableLint(state, effects) {\n return state.field(lintState, false) ? effects : effects.concat(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.appendConfig.of(lintExtensions));\n}\n/**\nReturns a transaction spec which updates the current set of\ndiagnostics, and enables the lint extension if if wasn't already\nactive.\n*/\nfunction setDiagnostics(state, diagnostics) {\n return {\n effects: maybeEnableLint(state, [setDiagnosticsEffect.of(diagnostics)])\n };\n}\n/**\nThe state effect that updates the set of active diagnostics. Can\nbe useful when writing an extension that needs to track these.\n*/\nconst setDiagnosticsEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\nconst togglePanel = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\nconst movePanelSelection = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\nconst lintState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateField.define({\n create() {\n return new LintState(_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.none, null, null);\n },\n update(value, tr) {\n if (tr.docChanged && value.diagnostics.size) {\n let mapped = value.diagnostics.map(tr.changes), selected = null, panel = value.panel;\n if (value.selected) {\n let selPos = tr.changes.mapPos(value.selected.from, 1);\n selected = findDiagnostic(mapped, value.selected.diagnostic, selPos) || findDiagnostic(mapped, null, selPos);\n }\n if (!mapped.size && panel && tr.state.facet(lintConfig).autoPanel)\n panel = null;\n value = new LintState(mapped, panel, selected);\n }\n for (let effect of tr.effects) {\n if (effect.is(setDiagnosticsEffect)) {\n let panel = !tr.state.facet(lintConfig).autoPanel ? value.panel : effect.value.length ? LintPanel.open : null;\n value = LintState.init(effect.value, panel, tr.state);\n }\n else if (effect.is(togglePanel)) {\n value = new LintState(value.diagnostics, effect.value ? LintPanel.open : null, value.selected);\n }\n else if (effect.is(movePanelSelection)) {\n value = new LintState(value.diagnostics, value.panel, effect.value);\n }\n }\n return value;\n },\n provide: f => [_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.showPanel.from(f, val => val.panel),\n _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.EditorView.decorations.from(f, s => s.diagnostics)]\n});\n/**\nReturns the number of active lint diagnostics in the given state.\n*/\nfunction diagnosticCount(state) {\n let lint = state.field(lintState, false);\n return lint ? lint.diagnostics.size : 0;\n}\nconst activeMark = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.mark({ class: \"cm-lintRange cm-lintRange-active\" });\nfunction lintTooltip(view, pos, side) {\n let { diagnostics } = view.state.field(lintState);\n let found = [], stackStart = 2e8, stackEnd = 0;\n diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, { spec }) => {\n if (pos >= from && pos <= to &&\n (from == to || ((pos > from || side > 0) && (pos < to || side < 0)))) {\n found.push(spec.diagnostic);\n stackStart = Math.min(from, stackStart);\n stackEnd = Math.max(to, stackEnd);\n }\n });\n let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;\n if (diagnosticFilter)\n found = diagnosticFilter(found, view.state);\n if (!found.length)\n return null;\n return {\n pos: stackStart,\n end: stackEnd,\n above: view.state.doc.lineAt(stackStart).to < stackEnd,\n create() {\n return { dom: diagnosticsTooltip(view, found) };\n }\n };\n}\nfunction diagnosticsTooltip(view, diagnostics) {\n return (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"ul\", { class: \"cm-tooltip-lint\" }, diagnostics.map(d => renderDiagnostic(view, d, false)));\n}\n/**\nCommand to open and focus the lint panel.\n*/\nconst openLintPanel = (view) => {\n let field = view.state.field(lintState, false);\n if (!field || !field.panel)\n view.dispatch({ effects: maybeEnableLint(view.state, [togglePanel.of(true)]) });\n let panel = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.getPanel)(view, LintPanel.open);\n if (panel)\n panel.dom.querySelector(\".cm-panel-lint ul\").focus();\n return true;\n};\n/**\nCommand to close the lint panel, when open.\n*/\nconst closeLintPanel = (view) => {\n let field = view.state.field(lintState, false);\n if (!field || !field.panel)\n return false;\n view.dispatch({ effects: togglePanel.of(false) });\n return true;\n};\n/**\nMove the selection to the next diagnostic.\n*/\nconst nextDiagnostic = (view) => {\n let field = view.state.field(lintState, false);\n if (!field)\n return false;\n let sel = view.state.selection.main, next = field.diagnostics.iter(sel.to + 1);\n if (!next.value) {\n next = field.diagnostics.iter(0);\n if (!next.value || next.from == sel.from && next.to == sel.to)\n return false;\n }\n view.dispatch({ selection: { anchor: next.from, head: next.to }, scrollIntoView: true });\n return true;\n};\n/**\nMove the selection to the previous diagnostic.\n*/\nconst previousDiagnostic = (view) => {\n let { state } = view, field = state.field(lintState, false);\n if (!field)\n return false;\n let sel = state.selection.main;\n let prevFrom, prevTo, lastFrom, lastTo;\n field.diagnostics.between(0, state.doc.length, (from, to) => {\n if (to < sel.to && (prevFrom == null || prevFrom < from)) {\n prevFrom = from;\n prevTo = to;\n }\n if (lastFrom == null || from > lastFrom) {\n lastFrom = from;\n lastTo = to;\n }\n });\n if (lastFrom == null || prevFrom == null && lastFrom == sel.from)\n return false;\n view.dispatch({ selection: { anchor: prevFrom !== null && prevFrom !== void 0 ? prevFrom : lastFrom, head: prevTo !== null && prevTo !== void 0 ? prevTo : lastTo }, scrollIntoView: true });\n return true;\n};\n/**\nA set of default key bindings for the lint functionality.\n\n- Ctrl-Shift-m (Cmd-Shift-m on macOS): [`openLintPanel`](https://codemirror.net/6/docs/ref/#lint.openLintPanel)\n- F8: [`nextDiagnostic`](https://codemirror.net/6/docs/ref/#lint.nextDiagnostic)\n*/\nconst lintKeymap = [\n { key: \"Mod-Shift-m\", run: openLintPanel, preventDefault: true },\n { key: \"F8\", run: nextDiagnostic }\n];\nconst lintPlugin = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.timeout = -1;\n this.set = true;\n let { delay } = view.state.facet(lintConfig);\n this.lintTime = Date.now() + delay;\n this.run = this.run.bind(this);\n this.timeout = setTimeout(this.run, delay);\n }\n run() {\n clearTimeout(this.timeout);\n let now = Date.now();\n if (now < this.lintTime - 10) {\n this.timeout = setTimeout(this.run, this.lintTime - now);\n }\n else {\n this.set = false;\n let { state } = this.view, { sources } = state.facet(lintConfig);\n if (sources.length)\n Promise.all(sources.map(source => Promise.resolve(source(this.view)))).then(annotations => {\n let all = annotations.reduce((a, b) => a.concat(b));\n if (this.view.state.doc == state.doc)\n this.view.dispatch(setDiagnostics(this.view.state, all));\n }, error => { (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.logException)(this.view.state, error); });\n }\n }\n update(update) {\n let config = update.state.facet(lintConfig);\n if (update.docChanged || config != update.startState.facet(lintConfig) ||\n config.needsRefresh && config.needsRefresh(update)) {\n this.lintTime = Date.now() + config.delay;\n if (!this.set) {\n this.set = true;\n this.timeout = setTimeout(this.run, config.delay);\n }\n }\n }\n force() {\n if (this.set) {\n this.lintTime = Date.now();\n this.run();\n }\n }\n destroy() {\n clearTimeout(this.timeout);\n }\n});\nconst lintConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine(input) {\n return Object.assign({ sources: input.map(i => i.source).filter(x => x != null) }, (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.combineConfig)(input.map(i => i.config), {\n delay: 750,\n markerFilter: null,\n tooltipFilter: null,\n needsRefresh: null,\n hideOn: () => null,\n }, {\n needsRefresh: (a, b) => !a ? b : !b ? a : u => a(u) || b(u)\n }));\n }\n});\n/**\nGiven a diagnostic source, this function returns an extension that\nenables linting with that source. It will be called whenever the\neditor is idle (after its content changed). If `null` is given as\nsource, this only configures the lint extension.\n*/\nfunction linter(source, config = {}) {\n return [\n lintConfig.of({ source, config }),\n lintPlugin,\n lintExtensions\n ];\n}\n/**\nForces any linters [configured](https://codemirror.net/6/docs/ref/#lint.linter) to run when the\neditor is idle to run right away.\n*/\nfunction forceLinting(view) {\n let plugin = view.plugin(lintPlugin);\n if (plugin)\n plugin.force();\n}\nfunction assignKeys(actions) {\n let assigned = [];\n if (actions)\n actions: for (let { name } of actions) {\n for (let i = 0; i < name.length; i++) {\n let ch = name[i];\n if (/[a-zA-Z]/.test(ch) && !assigned.some(c => c.toLowerCase() == ch.toLowerCase())) {\n assigned.push(ch);\n continue actions;\n }\n }\n assigned.push(\"\");\n }\n return assigned;\n}\nfunction renderDiagnostic(view, diagnostic, inPanel) {\n var _a;\n let keys = inPanel ? assignKeys(diagnostic.actions) : [];\n return (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"li\", { class: \"cm-diagnostic cm-diagnostic-\" + diagnostic.severity }, (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"span\", { class: \"cm-diagnosticText\" }, diagnostic.renderMessage ? diagnostic.renderMessage(view) : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {\n let fired = false, click = (e) => {\n e.preventDefault();\n if (fired)\n return;\n fired = true;\n let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);\n if (found)\n action.apply(view, found.from, found.to);\n };\n let { name } = action, keyIndex = keys[i] ? name.indexOf(keys[i]) : -1;\n let nameElt = keyIndex < 0 ? name : [name.slice(0, keyIndex),\n (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"u\", name.slice(keyIndex, keyIndex + 1)),\n name.slice(keyIndex + 1)];\n return (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"button\", {\n type: \"button\",\n class: \"cm-diagnosticAction\",\n onclick: click,\n onmousedown: click,\n \"aria-label\": ` Action: ${name}${keyIndex < 0 ? \"\" : ` (access key \"${keys[i]})\"`}.`\n }, nameElt);\n }), diagnostic.source && (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"div\", { class: \"cm-diagnosticSource\" }, diagnostic.source));\n}\nclass DiagnosticWidget extends _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.WidgetType {\n constructor(diagnostic) {\n super();\n this.diagnostic = diagnostic;\n }\n eq(other) { return other.diagnostic == this.diagnostic; }\n toDOM() {\n return (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"span\", { class: \"cm-lintPoint cm-lintPoint-\" + this.diagnostic.severity });\n }\n}\nclass PanelItem {\n constructor(view, diagnostic) {\n this.diagnostic = diagnostic;\n this.id = \"item_\" + Math.floor(Math.random() * 0xffffffff).toString(16);\n this.dom = renderDiagnostic(view, diagnostic, true);\n this.dom.id = this.id;\n this.dom.setAttribute(\"role\", \"option\");\n }\n}\nclass LintPanel {\n constructor(view) {\n this.view = view;\n this.items = [];\n let onkeydown = (event) => {\n if (event.keyCode == 27) { // Escape\n closeLintPanel(this.view);\n this.view.focus();\n }\n else if (event.keyCode == 38 || event.keyCode == 33) { // ArrowUp, PageUp\n this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length);\n }\n else if (event.keyCode == 40 || event.keyCode == 34) { // ArrowDown, PageDown\n this.moveSelection((this.selectedIndex + 1) % this.items.length);\n }\n else if (event.keyCode == 36) { // Home\n this.moveSelection(0);\n }\n else if (event.keyCode == 35) { // End\n this.moveSelection(this.items.length - 1);\n }\n else if (event.keyCode == 13) { // Enter\n this.view.focus();\n }\n else if (event.keyCode >= 65 && event.keyCode <= 90 && this.selectedIndex >= 0) { // A-Z\n let { diagnostic } = this.items[this.selectedIndex], keys = assignKeys(diagnostic.actions);\n for (let i = 0; i < keys.length; i++)\n if (keys[i].toUpperCase().charCodeAt(0) == event.keyCode) {\n let found = findDiagnostic(this.view.state.field(lintState).diagnostics, diagnostic);\n if (found)\n diagnostic.actions[i].apply(view, found.from, found.to);\n }\n }\n else {\n return;\n }\n event.preventDefault();\n };\n let onclick = (event) => {\n for (let i = 0; i < this.items.length; i++) {\n if (this.items[i].dom.contains(event.target))\n this.moveSelection(i);\n }\n };\n this.list = (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"ul\", {\n tabIndex: 0,\n role: \"listbox\",\n \"aria-label\": this.view.state.phrase(\"Diagnostics\"),\n onkeydown,\n onclick\n });\n this.dom = (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"div\", { class: \"cm-panel-lint\" }, this.list, (0,crelt__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"button\", {\n type: \"button\",\n name: \"close\",\n \"aria-label\": this.view.state.phrase(\"close\"),\n onclick: () => closeLintPanel(this.view)\n }, \"×\"));\n this.update();\n }\n get selectedIndex() {\n let selected = this.view.state.field(lintState).selected;\n if (!selected)\n return -1;\n for (let i = 0; i < this.items.length; i++)\n if (this.items[i].diagnostic == selected.diagnostic)\n return i;\n return -1;\n }\n update() {\n let { diagnostics, selected } = this.view.state.field(lintState);\n let i = 0, needsSync = false, newSelectedItem = null;\n diagnostics.between(0, this.view.state.doc.length, (_start, _end, { spec }) => {\n let found = -1, item;\n for (let j = i; j < this.items.length; j++)\n if (this.items[j].diagnostic == spec.diagnostic) {\n found = j;\n break;\n }\n if (found < 0) {\n item = new PanelItem(this.view, spec.diagnostic);\n this.items.splice(i, 0, item);\n needsSync = true;\n }\n else {\n item = this.items[found];\n if (found > i) {\n this.items.splice(i, found - i);\n needsSync = true;\n }\n }\n if (selected && item.diagnostic == selected.diagnostic) {\n if (!item.dom.hasAttribute(\"aria-selected\")) {\n item.dom.setAttribute(\"aria-selected\", \"true\");\n newSelectedItem = item;\n }\n }\n else if (item.dom.hasAttribute(\"aria-selected\")) {\n item.dom.removeAttribute(\"aria-selected\");\n }\n i++;\n });\n while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {\n needsSync = true;\n this.items.pop();\n }\n if (this.items.length == 0) {\n this.items.push(new PanelItem(this.view, {\n from: -1, to: -1,\n severity: \"info\",\n message: this.view.state.phrase(\"No diagnostics\")\n }));\n needsSync = true;\n }\n if (newSelectedItem) {\n this.list.setAttribute(\"aria-activedescendant\", newSelectedItem.id);\n this.view.requestMeasure({\n key: this,\n read: () => ({ sel: newSelectedItem.dom.getBoundingClientRect(), panel: this.list.getBoundingClientRect() }),\n write: ({ sel, panel }) => {\n let scaleY = panel.height / this.list.offsetHeight;\n if (sel.top < panel.top)\n this.list.scrollTop -= (panel.top - sel.top) / scaleY;\n else if (sel.bottom > panel.bottom)\n this.list.scrollTop += (sel.bottom - panel.bottom) / scaleY;\n }\n });\n }\n else if (this.selectedIndex < 0) {\n this.list.removeAttribute(\"aria-activedescendant\");\n }\n if (needsSync)\n this.sync();\n }\n sync() {\n let domPos = this.list.firstChild;\n function rm() {\n let prev = domPos;\n domPos = prev.nextSibling;\n prev.remove();\n }\n for (let item of this.items) {\n if (item.dom.parentNode == this.list) {\n while (domPos != item.dom)\n rm();\n domPos = item.dom.nextSibling;\n }\n else {\n this.list.insertBefore(item.dom, domPos);\n }\n }\n while (domPos)\n rm();\n }\n moveSelection(selectedIndex) {\n if (this.selectedIndex < 0)\n return;\n let field = this.view.state.field(lintState);\n let selection = findDiagnostic(field.diagnostics, this.items[selectedIndex].diagnostic);\n if (!selection)\n return;\n this.view.dispatch({\n selection: { anchor: selection.from, head: selection.to },\n scrollIntoView: true,\n effects: movePanelSelection.of(selection)\n });\n }\n static open(view) { return new LintPanel(view); }\n}\nfunction svg(content, attrs = `viewBox=\"0 0 40 40\"`) {\n return `url('data:image/svg+xml,${encodeURIComponent(content)}')`;\n}\nfunction underline(color) {\n return svg(``, `width=\"6\" height=\"3\"`);\n}\nconst baseTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.EditorView.baseTheme({\n \".cm-diagnostic\": {\n padding: \"3px 6px 3px 8px\",\n marginLeft: \"-1px\",\n display: \"block\",\n whiteSpace: \"pre-wrap\"\n },\n \".cm-diagnostic-error\": { borderLeft: \"5px solid #d11\" },\n \".cm-diagnostic-warning\": { borderLeft: \"5px solid orange\" },\n \".cm-diagnostic-info\": { borderLeft: \"5px solid #999\" },\n \".cm-diagnostic-hint\": { borderLeft: \"5px solid #66d\" },\n \".cm-diagnosticAction\": {\n font: \"inherit\",\n border: \"none\",\n padding: \"2px 4px\",\n backgroundColor: \"#444\",\n color: \"white\",\n borderRadius: \"3px\",\n marginLeft: \"8px\",\n cursor: \"pointer\"\n },\n \".cm-diagnosticSource\": {\n fontSize: \"70%\",\n opacity: .7\n },\n \".cm-lintRange\": {\n backgroundPosition: \"left bottom\",\n backgroundRepeat: \"repeat-x\",\n paddingBottom: \"0.7px\",\n },\n \".cm-lintRange-error\": { backgroundImage: /*@__PURE__*/underline(\"#d11\") },\n \".cm-lintRange-warning\": { backgroundImage: /*@__PURE__*/underline(\"orange\") },\n \".cm-lintRange-info\": { backgroundImage: /*@__PURE__*/underline(\"#999\") },\n \".cm-lintRange-hint\": { backgroundImage: /*@__PURE__*/underline(\"#66d\") },\n \".cm-lintRange-active\": { backgroundColor: \"#ffdd9980\" },\n \".cm-tooltip-lint\": {\n padding: 0,\n margin: 0\n },\n \".cm-lintPoint\": {\n position: \"relative\",\n \"&:after\": {\n content: '\"\"',\n position: \"absolute\",\n bottom: 0,\n left: \"-2px\",\n borderLeft: \"3px solid transparent\",\n borderRight: \"3px solid transparent\",\n borderBottom: \"4px solid #d11\"\n }\n },\n \".cm-lintPoint-warning\": {\n \"&:after\": { borderBottomColor: \"orange\" }\n },\n \".cm-lintPoint-info\": {\n \"&:after\": { borderBottomColor: \"#999\" }\n },\n \".cm-lintPoint-hint\": {\n \"&:after\": { borderBottomColor: \"#66d\" }\n },\n \".cm-panel.cm-panel-lint\": {\n position: \"relative\",\n \"& ul\": {\n maxHeight: \"100px\",\n overflowY: \"auto\",\n \"& [aria-selected]\": {\n backgroundColor: \"#ddd\",\n \"& u\": { textDecoration: \"underline\" }\n },\n \"&:focus [aria-selected]\": {\n background_fallback: \"#bdf\",\n backgroundColor: \"Highlight\",\n color_fallback: \"white\",\n color: \"HighlightText\"\n },\n \"& u\": { textDecoration: \"none\" },\n padding: 0,\n margin: 0\n },\n \"& [name=close]\": {\n position: \"absolute\",\n top: \"0\",\n right: \"2px\",\n background: \"inherit\",\n border: \"none\",\n font: \"inherit\",\n padding: 0,\n margin: 0\n }\n }\n});\nfunction severityWeight(sev) {\n return sev == \"error\" ? 4 : sev == \"warning\" ? 3 : sev == \"info\" ? 2 : 1;\n}\nclass LintGutterMarker extends _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.GutterMarker {\n constructor(diagnostics) {\n super();\n this.diagnostics = diagnostics;\n this.severity = diagnostics.reduce((max, d) => severityWeight(max) < severityWeight(d.severity) ? d.severity : max, \"hint\");\n }\n toDOM(view) {\n let elt = document.createElement(\"div\");\n elt.className = \"cm-lint-marker cm-lint-marker-\" + this.severity;\n let diagnostics = this.diagnostics;\n let diagnosticsFilter = view.state.facet(lintGutterConfig).tooltipFilter;\n if (diagnosticsFilter)\n diagnostics = diagnosticsFilter(diagnostics, view.state);\n if (diagnostics.length)\n elt.onmouseover = () => gutterMarkerMouseOver(view, elt, diagnostics);\n return elt;\n }\n}\nfunction trackHoverOn(view, marker) {\n let mousemove = (event) => {\n let rect = marker.getBoundingClientRect();\n if (event.clientX > rect.left - 10 /* Hover.Margin */ && event.clientX < rect.right + 10 /* Hover.Margin */ &&\n event.clientY > rect.top - 10 /* Hover.Margin */ && event.clientY < rect.bottom + 10 /* Hover.Margin */)\n return;\n for (let target = event.target; target; target = target.parentNode) {\n if (target.nodeType == 1 && target.classList.contains(\"cm-tooltip-lint\"))\n return;\n }\n window.removeEventListener(\"mousemove\", mousemove);\n if (view.state.field(lintGutterTooltip))\n view.dispatch({ effects: setLintGutterTooltip.of(null) });\n };\n window.addEventListener(\"mousemove\", mousemove);\n}\nfunction gutterMarkerMouseOver(view, marker, diagnostics) {\n function hovered() {\n let line = view.elementAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);\n const linePos = view.coordsAtPos(line.from);\n if (linePos) {\n view.dispatch({ effects: setLintGutterTooltip.of({\n pos: line.from,\n above: false,\n create() {\n return {\n dom: diagnosticsTooltip(view, diagnostics),\n getCoords: () => marker.getBoundingClientRect()\n };\n }\n }) });\n }\n marker.onmouseout = marker.onmousemove = null;\n trackHoverOn(view, marker);\n }\n let { hoverTime } = view.state.facet(lintGutterConfig);\n let hoverTimeout = setTimeout(hovered, hoverTime);\n marker.onmouseout = () => {\n clearTimeout(hoverTimeout);\n marker.onmouseout = marker.onmousemove = null;\n };\n marker.onmousemove = () => {\n clearTimeout(hoverTimeout);\n hoverTimeout = setTimeout(hovered, hoverTime);\n };\n}\nfunction markersForDiagnostics(doc, diagnostics) {\n let byLine = Object.create(null);\n for (let diagnostic of diagnostics) {\n let line = doc.lineAt(diagnostic.from);\n (byLine[line.from] || (byLine[line.from] = [])).push(diagnostic);\n }\n let markers = [];\n for (let line in byLine) {\n markers.push(new LintGutterMarker(byLine[line]).range(+line));\n }\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.of(markers, true);\n}\nconst lintGutterExtension = /*@__PURE__*/(0,_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.gutter)({\n class: \"cm-gutter-lint\",\n markers: view => view.state.field(lintGutterMarkers),\n});\nconst lintGutterMarkers = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateField.define({\n create() {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.empty;\n },\n update(markers, tr) {\n markers = markers.map(tr.changes);\n let diagnosticFilter = tr.state.facet(lintGutterConfig).markerFilter;\n for (let effect of tr.effects) {\n if (effect.is(setDiagnosticsEffect)) {\n let diagnostics = effect.value;\n if (diagnosticFilter)\n diagnostics = diagnosticFilter(diagnostics || [], tr.state);\n markers = markersForDiagnostics(tr.state.doc, diagnostics.slice(0));\n }\n }\n return markers;\n }\n});\nconst setLintGutterTooltip = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\nconst lintGutterTooltip = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateField.define({\n create() { return null; },\n update(tooltip, tr) {\n if (tooltip && tr.docChanged)\n tooltip = hideTooltip(tr, tooltip) ? null : Object.assign(Object.assign({}, tooltip), { pos: tr.changes.mapPos(tooltip.pos) });\n return tr.effects.reduce((t, e) => e.is(setLintGutterTooltip) ? e.value : t, tooltip);\n },\n provide: field => _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.showTooltip.from(field)\n});\nconst lintGutterTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.EditorView.baseTheme({\n \".cm-gutter-lint\": {\n width: \"1.4em\",\n \"& .cm-gutterElement\": {\n padding: \".2em\"\n }\n },\n \".cm-lint-marker\": {\n width: \"1em\",\n height: \"1em\"\n },\n \".cm-lint-marker-info\": {\n content: /*@__PURE__*/svg(``)\n },\n \".cm-lint-marker-warning\": {\n content: /*@__PURE__*/svg(``),\n },\n \".cm-lint-marker-error\": {\n content: /*@__PURE__*/svg(``)\n },\n});\nconst lintExtensions = [\n lintState,\n /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.EditorView.decorations.compute([lintState], state => {\n let { selected, panel } = state.field(lintState);\n return !selected || !panel || selected.from == selected.to ? _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.none : _codemirror_view__WEBPACK_IMPORTED_MODULE_1__.Decoration.set([\n activeMark.range(selected.from, selected.to)\n ]);\n }),\n /*@__PURE__*/(0,_codemirror_view__WEBPACK_IMPORTED_MODULE_1__.hoverTooltip)(lintTooltip, { hideOn: hideTooltip }),\n baseTheme\n];\nconst lintGutterConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.combineConfig)(configs, {\n hoverTime: 300 /* Hover.Time */,\n markerFilter: null,\n tooltipFilter: null\n });\n }\n});\n/**\nReturns an extension that installs a gutter showing markers for\neach line that has diagnostics, which can be hovered over to see\nthe diagnostics.\n*/\nfunction lintGutter(config = {}) {\n return [lintGutterConfig.of(config), lintGutterMarkers, lintGutterExtension, lintGutterTheme, lintGutterTooltip];\n}\n/**\nIterate over the marked diagnostics for the given editor state,\ncalling `f` for each of them. Note that, if the document changed\nsince the diagnostics were created, the `Diagnostic` object will\nhold the original outdated position, whereas the `to` and `from`\narguments hold the diagnostic's current position.\n*/\nfunction forEachDiagnostic(state, f) {\n let lState = state.field(lintState, false);\n if (lState && lState.diagnostics.size)\n for (let iter = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.iter([lState.diagnostics]); iter.value; iter.next())\n f(iter.value.spec.diagnostic, iter.from, iter.to);\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@codemirror/lint/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@codemirror/state/dist/index.js": +/*!******************************************************!*\ + !*** ./node_modules/@codemirror/state/dist/index.js ***! + \******************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Annotation: () => (/* binding */ Annotation),\n/* harmony export */ AnnotationType: () => (/* binding */ AnnotationType),\n/* harmony export */ ChangeDesc: () => (/* binding */ ChangeDesc),\n/* harmony export */ ChangeSet: () => (/* binding */ ChangeSet),\n/* harmony export */ CharCategory: () => (/* binding */ CharCategory),\n/* harmony export */ Compartment: () => (/* binding */ Compartment),\n/* harmony export */ EditorSelection: () => (/* binding */ EditorSelection),\n/* harmony export */ EditorState: () => (/* binding */ EditorState),\n/* harmony export */ Facet: () => (/* binding */ Facet),\n/* harmony export */ Line: () => (/* binding */ Line),\n/* harmony export */ MapMode: () => (/* binding */ MapMode),\n/* harmony export */ Prec: () => (/* binding */ Prec),\n/* harmony export */ Range: () => (/* binding */ Range),\n/* harmony export */ RangeSet: () => (/* binding */ RangeSet),\n/* harmony export */ RangeSetBuilder: () => (/* binding */ RangeSetBuilder),\n/* harmony export */ RangeValue: () => (/* binding */ RangeValue),\n/* harmony export */ SelectionRange: () => (/* binding */ SelectionRange),\n/* harmony export */ StateEffect: () => (/* binding */ StateEffect),\n/* harmony export */ StateEffectType: () => (/* binding */ StateEffectType),\n/* harmony export */ StateField: () => (/* binding */ StateField),\n/* harmony export */ Text: () => (/* binding */ Text),\n/* harmony export */ Transaction: () => (/* binding */ Transaction),\n/* harmony export */ codePointAt: () => (/* binding */ codePointAt),\n/* harmony export */ codePointSize: () => (/* binding */ codePointSize),\n/* harmony export */ combineConfig: () => (/* binding */ combineConfig),\n/* harmony export */ countColumn: () => (/* binding */ countColumn),\n/* harmony export */ findClusterBreak: () => (/* binding */ findClusterBreak),\n/* harmony export */ findColumn: () => (/* binding */ findColumn),\n/* harmony export */ fromCodePoint: () => (/* binding */ fromCodePoint)\n/* harmony export */ });\n/**\nThe data structure for documents. @nonabstract\n*/\nclass Text {\n /**\n Get the line description around the given position.\n */\n lineAt(pos) {\n if (pos < 0 || pos > this.length)\n throw new RangeError(`Invalid position ${pos} in document of length ${this.length}`);\n return this.lineInner(pos, false, 1, 0);\n }\n /**\n Get the description for the given (1-based) line number.\n */\n line(n) {\n if (n < 1 || n > this.lines)\n throw new RangeError(`Invalid line number ${n} in ${this.lines}-line document`);\n return this.lineInner(n, true, 1, 0);\n }\n /**\n Replace a range of the text with the given content.\n */\n replace(from, to, text) {\n [from, to] = clip(this, from, to);\n let parts = [];\n this.decompose(0, from, parts, 2 /* Open.To */);\n if (text.length)\n text.decompose(0, text.length, parts, 1 /* Open.From */ | 2 /* Open.To */);\n this.decompose(to, this.length, parts, 1 /* Open.From */);\n return TextNode.from(parts, this.length - (to - from) + text.length);\n }\n /**\n Append another document to this one.\n */\n append(other) {\n return this.replace(this.length, this.length, other);\n }\n /**\n Retrieve the text between the given points.\n */\n slice(from, to = this.length) {\n [from, to] = clip(this, from, to);\n let parts = [];\n this.decompose(from, to, parts, 0);\n return TextNode.from(parts, to - from);\n }\n /**\n Test whether this text is equal to another instance.\n */\n eq(other) {\n if (other == this)\n return true;\n if (other.length != this.length || other.lines != this.lines)\n return false;\n let start = this.scanIdentical(other, 1), end = this.length - this.scanIdentical(other, -1);\n let a = new RawTextCursor(this), b = new RawTextCursor(other);\n for (let skip = start, pos = start;;) {\n a.next(skip);\n b.next(skip);\n skip = 0;\n if (a.lineBreak != b.lineBreak || a.done != b.done || a.value != b.value)\n return false;\n pos += a.value.length;\n if (a.done || pos >= end)\n return true;\n }\n }\n /**\n Iterate over the text. When `dir` is `-1`, iteration happens\n from end to start. This will return lines and the breaks between\n them as separate strings.\n */\n iter(dir = 1) { return new RawTextCursor(this, dir); }\n /**\n Iterate over a range of the text. When `from` > `to`, the\n iterator will run in reverse.\n */\n iterRange(from, to = this.length) { return new PartialTextCursor(this, from, to); }\n /**\n Return a cursor that iterates over the given range of lines,\n _without_ returning the line breaks between, and yielding empty\n strings for empty lines.\n \n When `from` and `to` are given, they should be 1-based line numbers.\n */\n iterLines(from, to) {\n let inner;\n if (from == null) {\n inner = this.iter();\n }\n else {\n if (to == null)\n to = this.lines + 1;\n let start = this.line(from).from;\n inner = this.iterRange(start, Math.max(start, to == this.lines + 1 ? this.length : to <= 1 ? 0 : this.line(to - 1).to));\n }\n return new LineCursor(inner);\n }\n /**\n Return the document as a string, using newline characters to\n separate lines.\n */\n toString() { return this.sliceString(0); }\n /**\n Convert the document to an array of lines (which can be\n deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).\n */\n toJSON() {\n let lines = [];\n this.flatten(lines);\n return lines;\n }\n /**\n @internal\n */\n constructor() { }\n /**\n Create a `Text` instance for the given array of lines.\n */\n static of(text) {\n if (text.length == 0)\n throw new RangeError(\"A document must have at least one line\");\n if (text.length == 1 && !text[0])\n return Text.empty;\n return text.length <= 32 /* Tree.Branch */ ? new TextLeaf(text) : TextNode.from(TextLeaf.split(text, []));\n }\n}\n// Leaves store an array of line strings. There are always line breaks\n// between these strings. Leaves are limited in size and have to be\n// contained in TextNode instances for bigger documents.\nclass TextLeaf extends Text {\n constructor(text, length = textLength(text)) {\n super();\n this.text = text;\n this.length = length;\n }\n get lines() { return this.text.length; }\n get children() { return null; }\n lineInner(target, isLine, line, offset) {\n for (let i = 0;; i++) {\n let string = this.text[i], end = offset + string.length;\n if ((isLine ? line : end) >= target)\n return new Line(offset, end, line, string);\n offset = end + 1;\n line++;\n }\n }\n decompose(from, to, target, open) {\n let text = from <= 0 && to >= this.length ? this\n : new TextLeaf(sliceText(this.text, from, to), Math.min(to, this.length) - Math.max(0, from));\n if (open & 1 /* Open.From */) {\n let prev = target.pop();\n let joined = appendText(text.text, prev.text.slice(), 0, text.length);\n if (joined.length <= 32 /* Tree.Branch */) {\n target.push(new TextLeaf(joined, prev.length + text.length));\n }\n else {\n let mid = joined.length >> 1;\n target.push(new TextLeaf(joined.slice(0, mid)), new TextLeaf(joined.slice(mid)));\n }\n }\n else {\n target.push(text);\n }\n }\n replace(from, to, text) {\n if (!(text instanceof TextLeaf))\n return super.replace(from, to, text);\n [from, to] = clip(this, from, to);\n let lines = appendText(this.text, appendText(text.text, sliceText(this.text, 0, from)), to);\n let newLen = this.length + text.length - (to - from);\n if (lines.length <= 32 /* Tree.Branch */)\n return new TextLeaf(lines, newLen);\n return TextNode.from(TextLeaf.split(lines, []), newLen);\n }\n sliceString(from, to = this.length, lineSep = \"\\n\") {\n [from, to] = clip(this, from, to);\n let result = \"\";\n for (let pos = 0, i = 0; pos <= to && i < this.text.length; i++) {\n let line = this.text[i], end = pos + line.length;\n if (pos > from && i)\n result += lineSep;\n if (from < end && to > pos)\n result += line.slice(Math.max(0, from - pos), to - pos);\n pos = end + 1;\n }\n return result;\n }\n flatten(target) {\n for (let line of this.text)\n target.push(line);\n }\n scanIdentical() { return 0; }\n static split(text, target) {\n let part = [], len = -1;\n for (let line of text) {\n part.push(line);\n len += line.length + 1;\n if (part.length == 32 /* Tree.Branch */) {\n target.push(new TextLeaf(part, len));\n part = [];\n len = -1;\n }\n }\n if (len > -1)\n target.push(new TextLeaf(part, len));\n return target;\n }\n}\n// Nodes provide the tree structure of the `Text` type. They store a\n// number of other nodes or leaves, taking care to balance themselves\n// on changes. There are implied line breaks _between_ the children of\n// a node (but not before the first or after the last child).\nclass TextNode extends Text {\n constructor(children, length) {\n super();\n this.children = children;\n this.length = length;\n this.lines = 0;\n for (let child of children)\n this.lines += child.lines;\n }\n lineInner(target, isLine, line, offset) {\n for (let i = 0;; i++) {\n let child = this.children[i], end = offset + child.length, endLine = line + child.lines - 1;\n if ((isLine ? endLine : end) >= target)\n return child.lineInner(target, isLine, line, offset);\n offset = end + 1;\n line = endLine + 1;\n }\n }\n decompose(from, to, target, open) {\n for (let i = 0, pos = 0; pos <= to && i < this.children.length; i++) {\n let child = this.children[i], end = pos + child.length;\n if (from <= end && to >= pos) {\n let childOpen = open & ((pos <= from ? 1 /* Open.From */ : 0) | (end >= to ? 2 /* Open.To */ : 0));\n if (pos >= from && end <= to && !childOpen)\n target.push(child);\n else\n child.decompose(from - pos, to - pos, target, childOpen);\n }\n pos = end + 1;\n }\n }\n replace(from, to, text) {\n [from, to] = clip(this, from, to);\n if (text.lines < this.lines)\n for (let i = 0, pos = 0; i < this.children.length; i++) {\n let child = this.children[i], end = pos + child.length;\n // Fast path: if the change only affects one child and the\n // child's size remains in the acceptable range, only update\n // that child\n if (from >= pos && to <= end) {\n let updated = child.replace(from - pos, to - pos, text);\n let totalLines = this.lines - child.lines + updated.lines;\n if (updated.lines < (totalLines >> (5 /* Tree.BranchShift */ - 1)) &&\n updated.lines > (totalLines >> (5 /* Tree.BranchShift */ + 1))) {\n let copy = this.children.slice();\n copy[i] = updated;\n return new TextNode(copy, this.length - (to - from) + text.length);\n }\n return super.replace(pos, end, updated);\n }\n pos = end + 1;\n }\n return super.replace(from, to, text);\n }\n sliceString(from, to = this.length, lineSep = \"\\n\") {\n [from, to] = clip(this, from, to);\n let result = \"\";\n for (let i = 0, pos = 0; i < this.children.length && pos <= to; i++) {\n let child = this.children[i], end = pos + child.length;\n if (pos > from && i)\n result += lineSep;\n if (from < end && to > pos)\n result += child.sliceString(from - pos, to - pos, lineSep);\n pos = end + 1;\n }\n return result;\n }\n flatten(target) {\n for (let child of this.children)\n child.flatten(target);\n }\n scanIdentical(other, dir) {\n if (!(other instanceof TextNode))\n return 0;\n let length = 0;\n let [iA, iB, eA, eB] = dir > 0 ? [0, 0, this.children.length, other.children.length]\n : [this.children.length - 1, other.children.length - 1, -1, -1];\n for (;; iA += dir, iB += dir) {\n if (iA == eA || iB == eB)\n return length;\n let chA = this.children[iA], chB = other.children[iB];\n if (chA != chB)\n return length + chA.scanIdentical(chB, dir);\n length += chA.length + 1;\n }\n }\n static from(children, length = children.reduce((l, ch) => l + ch.length + 1, -1)) {\n let lines = 0;\n for (let ch of children)\n lines += ch.lines;\n if (lines < 32 /* Tree.Branch */) {\n let flat = [];\n for (let ch of children)\n ch.flatten(flat);\n return new TextLeaf(flat, length);\n }\n let chunk = Math.max(32 /* Tree.Branch */, lines >> 5 /* Tree.BranchShift */), maxChunk = chunk << 1, minChunk = chunk >> 1;\n let chunked = [], currentLines = 0, currentLen = -1, currentChunk = [];\n function add(child) {\n let last;\n if (child.lines > maxChunk && child instanceof TextNode) {\n for (let node of child.children)\n add(node);\n }\n else if (child.lines > minChunk && (currentLines > minChunk || !currentLines)) {\n flush();\n chunked.push(child);\n }\n else if (child instanceof TextLeaf && currentLines &&\n (last = currentChunk[currentChunk.length - 1]) instanceof TextLeaf &&\n child.lines + last.lines <= 32 /* Tree.Branch */) {\n currentLines += child.lines;\n currentLen += child.length + 1;\n currentChunk[currentChunk.length - 1] = new TextLeaf(last.text.concat(child.text), last.length + 1 + child.length);\n }\n else {\n if (currentLines + child.lines > chunk)\n flush();\n currentLines += child.lines;\n currentLen += child.length + 1;\n currentChunk.push(child);\n }\n }\n function flush() {\n if (currentLines == 0)\n return;\n chunked.push(currentChunk.length == 1 ? currentChunk[0] : TextNode.from(currentChunk, currentLen));\n currentLen = -1;\n currentLines = currentChunk.length = 0;\n }\n for (let child of children)\n add(child);\n flush();\n return chunked.length == 1 ? chunked[0] : new TextNode(chunked, length);\n }\n}\nText.empty = /*@__PURE__*/new TextLeaf([\"\"], 0);\nfunction textLength(text) {\n let length = -1;\n for (let line of text)\n length += line.length + 1;\n return length;\n}\nfunction appendText(text, target, from = 0, to = 1e9) {\n for (let pos = 0, i = 0, first = true; i < text.length && pos <= to; i++) {\n let line = text[i], end = pos + line.length;\n if (end >= from) {\n if (end > to)\n line = line.slice(0, to - pos);\n if (pos < from)\n line = line.slice(from - pos);\n if (first) {\n target[target.length - 1] += line;\n first = false;\n }\n else\n target.push(line);\n }\n pos = end + 1;\n }\n return target;\n}\nfunction sliceText(text, from, to) {\n return appendText(text, [\"\"], from, to);\n}\nclass RawTextCursor {\n constructor(text, dir = 1) {\n this.dir = dir;\n this.done = false;\n this.lineBreak = false;\n this.value = \"\";\n this.nodes = [text];\n this.offsets = [dir > 0 ? 1 : (text instanceof TextLeaf ? text.text.length : text.children.length) << 1];\n }\n nextInner(skip, dir) {\n this.done = this.lineBreak = false;\n for (;;) {\n let last = this.nodes.length - 1;\n let top = this.nodes[last], offsetValue = this.offsets[last], offset = offsetValue >> 1;\n let size = top instanceof TextLeaf ? top.text.length : top.children.length;\n if (offset == (dir > 0 ? size : 0)) {\n if (last == 0) {\n this.done = true;\n this.value = \"\";\n return this;\n }\n if (dir > 0)\n this.offsets[last - 1]++;\n this.nodes.pop();\n this.offsets.pop();\n }\n else if ((offsetValue & 1) == (dir > 0 ? 0 : 1)) {\n this.offsets[last] += dir;\n if (skip == 0) {\n this.lineBreak = true;\n this.value = \"\\n\";\n return this;\n }\n skip--;\n }\n else if (top instanceof TextLeaf) {\n // Move to the next string\n let next = top.text[offset + (dir < 0 ? -1 : 0)];\n this.offsets[last] += dir;\n if (next.length > Math.max(0, skip)) {\n this.value = skip == 0 ? next : dir > 0 ? next.slice(skip) : next.slice(0, next.length - skip);\n return this;\n }\n skip -= next.length;\n }\n else {\n let next = top.children[offset + (dir < 0 ? -1 : 0)];\n if (skip > next.length) {\n skip -= next.length;\n this.offsets[last] += dir;\n }\n else {\n if (dir < 0)\n this.offsets[last]--;\n this.nodes.push(next);\n this.offsets.push(dir > 0 ? 1 : (next instanceof TextLeaf ? next.text.length : next.children.length) << 1);\n }\n }\n }\n }\n next(skip = 0) {\n if (skip < 0) {\n this.nextInner(-skip, (-this.dir));\n skip = this.value.length;\n }\n return this.nextInner(skip, this.dir);\n }\n}\nclass PartialTextCursor {\n constructor(text, start, end) {\n this.value = \"\";\n this.done = false;\n this.cursor = new RawTextCursor(text, start > end ? -1 : 1);\n this.pos = start > end ? text.length : 0;\n this.from = Math.min(start, end);\n this.to = Math.max(start, end);\n }\n nextInner(skip, dir) {\n if (dir < 0 ? this.pos <= this.from : this.pos >= this.to) {\n this.value = \"\";\n this.done = true;\n return this;\n }\n skip += Math.max(0, dir < 0 ? this.pos - this.to : this.from - this.pos);\n let limit = dir < 0 ? this.pos - this.from : this.to - this.pos;\n if (skip > limit)\n skip = limit;\n limit -= skip;\n let { value } = this.cursor.next(skip);\n this.pos += (value.length + skip) * dir;\n this.value = value.length <= limit ? value : dir < 0 ? value.slice(value.length - limit) : value.slice(0, limit);\n this.done = !this.value;\n return this;\n }\n next(skip = 0) {\n if (skip < 0)\n skip = Math.max(skip, this.from - this.pos);\n else if (skip > 0)\n skip = Math.min(skip, this.to - this.pos);\n return this.nextInner(skip, this.cursor.dir);\n }\n get lineBreak() { return this.cursor.lineBreak && this.value != \"\"; }\n}\nclass LineCursor {\n constructor(inner) {\n this.inner = inner;\n this.afterBreak = true;\n this.value = \"\";\n this.done = false;\n }\n next(skip = 0) {\n let { done, lineBreak, value } = this.inner.next(skip);\n if (done && this.afterBreak) {\n this.value = \"\";\n this.afterBreak = false;\n }\n else if (done) {\n this.done = true;\n this.value = \"\";\n }\n else if (lineBreak) {\n if (this.afterBreak) {\n this.value = \"\";\n }\n else {\n this.afterBreak = true;\n this.next();\n }\n }\n else {\n this.value = value;\n this.afterBreak = false;\n }\n return this;\n }\n get lineBreak() { return false; }\n}\nif (typeof Symbol != \"undefined\") {\n Text.prototype[Symbol.iterator] = function () { return this.iter(); };\n RawTextCursor.prototype[Symbol.iterator] = PartialTextCursor.prototype[Symbol.iterator] =\n LineCursor.prototype[Symbol.iterator] = function () { return this; };\n}\n/**\nThis type describes a line in the document. It is created\non-demand when lines are [queried](https://codemirror.net/6/docs/ref/#state.Text.lineAt).\n*/\nclass Line {\n /**\n @internal\n */\n constructor(\n /**\n The position of the start of the line.\n */\n from, \n /**\n The position at the end of the line (_before_ the line break,\n or at the end of document for the last line).\n */\n to, \n /**\n This line's line number (1-based).\n */\n number, \n /**\n The line's content.\n */\n text) {\n this.from = from;\n this.to = to;\n this.number = number;\n this.text = text;\n }\n /**\n The length of the line (not including any line break after it).\n */\n get length() { return this.to - this.from; }\n}\nfunction clip(text, from, to) {\n from = Math.max(0, Math.min(text.length, from));\n return [from, Math.max(from, Math.min(text.length, to))];\n}\n\n// Compressed representation of the Grapheme_Cluster_Break=Extend\n// information from\n// http://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakProperty.txt.\n// Each pair of elements represents a range, as an offet from the\n// previous range and a length. Numbers are in base-36, with the empty\n// string being a shorthand for 1.\nlet extend = /*@__PURE__*/\"lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o\".split(\",\").map(s => s ? parseInt(s, 36) : 1);\n// Convert offsets into absolute values\nfor (let i = 1; i < extend.length; i++)\n extend[i] += extend[i - 1];\nfunction isExtendingChar(code) {\n for (let i = 1; i < extend.length; i += 2)\n if (extend[i] > code)\n return extend[i - 1] <= code;\n return false;\n}\nfunction isRegionalIndicator(code) {\n return code >= 0x1F1E6 && code <= 0x1F1FF;\n}\nconst ZWJ = 0x200d;\n/**\nReturns a next grapheme cluster break _after_ (not equal to)\n`pos`, if `forward` is true, or before otherwise. Returns `pos`\nitself if no further cluster break is available in the string.\nMoves across surrogate pairs, extending characters (when\n`includeExtending` is true), characters joined with zero-width\njoiners, and flag emoji.\n*/\nfunction findClusterBreak(str, pos, forward = true, includeExtending = true) {\n return (forward ? nextClusterBreak : prevClusterBreak)(str, pos, includeExtending);\n}\nfunction nextClusterBreak(str, pos, includeExtending) {\n if (pos == str.length)\n return pos;\n // If pos is in the middle of a surrogate pair, move to its start\n if (pos && surrogateLow(str.charCodeAt(pos)) && surrogateHigh(str.charCodeAt(pos - 1)))\n pos--;\n let prev = codePointAt(str, pos);\n pos += codePointSize(prev);\n while (pos < str.length) {\n let next = codePointAt(str, pos);\n if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {\n pos += codePointSize(next);\n prev = next;\n }\n else if (isRegionalIndicator(next)) {\n let countBefore = 0, i = pos - 2;\n while (i >= 0 && isRegionalIndicator(codePointAt(str, i))) {\n countBefore++;\n i -= 2;\n }\n if (countBefore % 2 == 0)\n break;\n else\n pos += 2;\n }\n else {\n break;\n }\n }\n return pos;\n}\nfunction prevClusterBreak(str, pos, includeExtending) {\n while (pos > 0) {\n let found = nextClusterBreak(str, pos - 2, includeExtending);\n if (found < pos)\n return found;\n pos--;\n }\n return 0;\n}\nfunction surrogateLow(ch) { return ch >= 0xDC00 && ch < 0xE000; }\nfunction surrogateHigh(ch) { return ch >= 0xD800 && ch < 0xDC00; }\n/**\nFind the code point at the given position in a string (like the\n[`codePointAt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt)\nstring method).\n*/\nfunction codePointAt(str, pos) {\n let code0 = str.charCodeAt(pos);\n if (!surrogateHigh(code0) || pos + 1 == str.length)\n return code0;\n let code1 = str.charCodeAt(pos + 1);\n if (!surrogateLow(code1))\n return code0;\n return ((code0 - 0xd800) << 10) + (code1 - 0xdc00) + 0x10000;\n}\n/**\nGiven a Unicode codepoint, return the JavaScript string that\nrespresents it (like\n[`String.fromCodePoint`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint)).\n*/\nfunction fromCodePoint(code) {\n if (code <= 0xffff)\n return String.fromCharCode(code);\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xd800, (code & 1023) + 0xdc00);\n}\n/**\nThe amount of positions a character takes up a JavaScript string.\n*/\nfunction codePointSize(code) { return code < 0x10000 ? 1 : 2; }\n\nconst DefaultSplit = /\\r\\n?|\\n/;\n/**\nDistinguishes different ways in which positions can be mapped.\n*/\nvar MapMode = /*@__PURE__*/(function (MapMode) {\n /**\n Map a position to a valid new position, even when its context\n was deleted.\n */\n MapMode[MapMode[\"Simple\"] = 0] = \"Simple\";\n /**\n Return null if deletion happens across the position.\n */\n MapMode[MapMode[\"TrackDel\"] = 1] = \"TrackDel\";\n /**\n Return null if the character _before_ the position is deleted.\n */\n MapMode[MapMode[\"TrackBefore\"] = 2] = \"TrackBefore\";\n /**\n Return null if the character _after_ the position is deleted.\n */\n MapMode[MapMode[\"TrackAfter\"] = 3] = \"TrackAfter\";\nreturn MapMode})(MapMode || (MapMode = {}));\n/**\nA change description is a variant of [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet)\nthat doesn't store the inserted text. As such, it can't be\napplied, but is cheaper to store and manipulate.\n*/\nclass ChangeDesc {\n // Sections are encoded as pairs of integers. The first is the\n // length in the current document, and the second is -1 for\n // unaffected sections, and the length of the replacement content\n // otherwise. So an insertion would be (0, n>0), a deletion (n>0,\n // 0), and a replacement two positive numbers.\n /**\n @internal\n */\n constructor(\n /**\n @internal\n */\n sections) {\n this.sections = sections;\n }\n /**\n The length of the document before the change.\n */\n get length() {\n let result = 0;\n for (let i = 0; i < this.sections.length; i += 2)\n result += this.sections[i];\n return result;\n }\n /**\n The length of the document after the change.\n */\n get newLength() {\n let result = 0;\n for (let i = 0; i < this.sections.length; i += 2) {\n let ins = this.sections[i + 1];\n result += ins < 0 ? this.sections[i] : ins;\n }\n return result;\n }\n /**\n False when there are actual changes in this set.\n */\n get empty() { return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0; }\n /**\n Iterate over the unchanged parts left by these changes. `posA`\n provides the position of the range in the old document, `posB`\n the new position in the changed document.\n */\n iterGaps(f) {\n for (let i = 0, posA = 0, posB = 0; i < this.sections.length;) {\n let len = this.sections[i++], ins = this.sections[i++];\n if (ins < 0) {\n f(posA, posB, len);\n posB += len;\n }\n else {\n posB += ins;\n }\n posA += len;\n }\n }\n /**\n Iterate over the ranges changed by these changes. (See\n [`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a\n variant that also provides you with the inserted text.)\n `fromA`/`toA` provides the extent of the change in the starting\n document, `fromB`/`toB` the extent of the replacement in the\n changed document.\n \n When `individual` is true, adjacent changes (which are kept\n separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are\n reported separately.\n */\n iterChangedRanges(f, individual = false) {\n iterChanges(this, f, individual);\n }\n /**\n Get a description of the inverted form of these changes.\n */\n get invertedDesc() {\n let sections = [];\n for (let i = 0; i < this.sections.length;) {\n let len = this.sections[i++], ins = this.sections[i++];\n if (ins < 0)\n sections.push(len, ins);\n else\n sections.push(ins, len);\n }\n return new ChangeDesc(sections);\n }\n /**\n Compute the combined effect of applying another set of changes\n after this one. The length of the document after this set should\n match the length before `other`.\n */\n composeDesc(other) { return this.empty ? other : other.empty ? this : composeSets(this, other); }\n /**\n Map this description, which should start with the same document\n as `other`, over another set of changes, so that it can be\n applied after it. When `before` is true, map as if the changes\n in `other` happened before the ones in `this`.\n */\n mapDesc(other, before = false) { return other.empty ? this : mapSet(this, other, before); }\n mapPos(pos, assoc = -1, mode = MapMode.Simple) {\n let posA = 0, posB = 0;\n for (let i = 0; i < this.sections.length;) {\n let len = this.sections[i++], ins = this.sections[i++], endA = posA + len;\n if (ins < 0) {\n if (endA > pos)\n return posB + (pos - posA);\n posB += len;\n }\n else {\n if (mode != MapMode.Simple && endA >= pos &&\n (mode == MapMode.TrackDel && posA < pos && endA > pos ||\n mode == MapMode.TrackBefore && posA < pos ||\n mode == MapMode.TrackAfter && endA > pos))\n return null;\n if (endA > pos || endA == pos && assoc < 0 && !len)\n return pos == posA || assoc < 0 ? posB : posB + ins;\n posB += ins;\n }\n posA = endA;\n }\n if (pos > posA)\n throw new RangeError(`Position ${pos} is out of range for changeset of length ${posA}`);\n return posB;\n }\n /**\n Check whether these changes touch a given range. When one of the\n changes entirely covers the range, the string `\"cover\"` is\n returned.\n */\n touchesRange(from, to = from) {\n for (let i = 0, pos = 0; i < this.sections.length && pos <= to;) {\n let len = this.sections[i++], ins = this.sections[i++], end = pos + len;\n if (ins >= 0 && pos <= to && end >= from)\n return pos < from && end > to ? \"cover\" : true;\n pos = end;\n }\n return false;\n }\n /**\n @internal\n */\n toString() {\n let result = \"\";\n for (let i = 0; i < this.sections.length;) {\n let len = this.sections[i++], ins = this.sections[i++];\n result += (result ? \" \" : \"\") + len + (ins >= 0 ? \":\" + ins : \"\");\n }\n return result;\n }\n /**\n Serialize this change desc to a JSON-representable value.\n */\n toJSON() { return this.sections; }\n /**\n Create a change desc from its JSON representation (as produced\n by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON).\n */\n static fromJSON(json) {\n if (!Array.isArray(json) || json.length % 2 || json.some(a => typeof a != \"number\"))\n throw new RangeError(\"Invalid JSON representation of ChangeDesc\");\n return new ChangeDesc(json);\n }\n /**\n @internal\n */\n static create(sections) { return new ChangeDesc(sections); }\n}\n/**\nA change set represents a group of modifications to a document. It\nstores the document length, and can only be applied to documents\nwith exactly that length.\n*/\nclass ChangeSet extends ChangeDesc {\n constructor(sections, \n /**\n @internal\n */\n inserted) {\n super(sections);\n this.inserted = inserted;\n }\n /**\n Apply the changes to a document, returning the modified\n document.\n */\n apply(doc) {\n if (this.length != doc.length)\n throw new RangeError(\"Applying change set to a document with the wrong length\");\n iterChanges(this, (fromA, toA, fromB, _toB, text) => doc = doc.replace(fromB, fromB + (toA - fromA), text), false);\n return doc;\n }\n mapDesc(other, before = false) { return mapSet(this, other, before, true); }\n /**\n Given the document as it existed _before_ the changes, return a\n change set that represents the inverse of this set, which could\n be used to go from the document created by the changes back to\n the document as it existed before the changes.\n */\n invert(doc) {\n let sections = this.sections.slice(), inserted = [];\n for (let i = 0, pos = 0; i < sections.length; i += 2) {\n let len = sections[i], ins = sections[i + 1];\n if (ins >= 0) {\n sections[i] = ins;\n sections[i + 1] = len;\n let index = i >> 1;\n while (inserted.length < index)\n inserted.push(Text.empty);\n inserted.push(len ? doc.slice(pos, pos + len) : Text.empty);\n }\n pos += len;\n }\n return new ChangeSet(sections, inserted);\n }\n /**\n Combine two subsequent change sets into a single set. `other`\n must start in the document produced by `this`. If `this` goes\n `docA` → `docB` and `other` represents `docB` → `docC`, the\n returned value will represent the change `docA` → `docC`.\n */\n compose(other) { return this.empty ? other : other.empty ? this : composeSets(this, other, true); }\n /**\n Given another change set starting in the same document, maps this\n change set over the other, producing a new change set that can be\n applied to the document produced by applying `other`. When\n `before` is `true`, order changes as if `this` comes before\n `other`, otherwise (the default) treat `other` as coming first.\n \n Given two changes `A` and `B`, `A.compose(B.map(A))` and\n `B.compose(A.map(B, true))` will produce the same document. This\n provides a basic form of [operational\n transformation](https://en.wikipedia.org/wiki/Operational_transformation),\n and can be used for collaborative editing.\n */\n map(other, before = false) { return other.empty ? this : mapSet(this, other, before, true); }\n /**\n Iterate over the changed ranges in the document, calling `f` for\n each, with the range in the original document (`fromA`-`toA`)\n and the range that replaces it in the new document\n (`fromB`-`toB`).\n \n When `individual` is true, adjacent changes are reported\n separately.\n */\n iterChanges(f, individual = false) {\n iterChanges(this, f, individual);\n }\n /**\n Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change\n set.\n */\n get desc() { return ChangeDesc.create(this.sections); }\n /**\n @internal\n */\n filter(ranges) {\n let resultSections = [], resultInserted = [], filteredSections = [];\n let iter = new SectionIter(this);\n done: for (let i = 0, pos = 0;;) {\n let next = i == ranges.length ? 1e9 : ranges[i++];\n while (pos < next || pos == next && iter.len == 0) {\n if (iter.done)\n break done;\n let len = Math.min(iter.len, next - pos);\n addSection(filteredSections, len, -1);\n let ins = iter.ins == -1 ? -1 : iter.off == 0 ? iter.ins : 0;\n addSection(resultSections, len, ins);\n if (ins > 0)\n addInsert(resultInserted, resultSections, iter.text);\n iter.forward(len);\n pos += len;\n }\n let end = ranges[i++];\n while (pos < end) {\n if (iter.done)\n break done;\n let len = Math.min(iter.len, end - pos);\n addSection(resultSections, len, -1);\n addSection(filteredSections, len, iter.ins == -1 ? -1 : iter.off == 0 ? iter.ins : 0);\n iter.forward(len);\n pos += len;\n }\n }\n return { changes: new ChangeSet(resultSections, resultInserted),\n filtered: ChangeDesc.create(filteredSections) };\n }\n /**\n Serialize this change set to a JSON-representable value.\n */\n toJSON() {\n let parts = [];\n for (let i = 0; i < this.sections.length; i += 2) {\n let len = this.sections[i], ins = this.sections[i + 1];\n if (ins < 0)\n parts.push(len);\n else if (ins == 0)\n parts.push([len]);\n else\n parts.push([len].concat(this.inserted[i >> 1].toJSON()));\n }\n return parts;\n }\n /**\n Create a change set for the given changes, for a document of the\n given length, using `lineSep` as line separator.\n */\n static of(changes, length, lineSep) {\n let sections = [], inserted = [], pos = 0;\n let total = null;\n function flush(force = false) {\n if (!force && !sections.length)\n return;\n if (pos < length)\n addSection(sections, length - pos, -1);\n let set = new ChangeSet(sections, inserted);\n total = total ? total.compose(set.map(total)) : set;\n sections = [];\n inserted = [];\n pos = 0;\n }\n function process(spec) {\n if (Array.isArray(spec)) {\n for (let sub of spec)\n process(sub);\n }\n else if (spec instanceof ChangeSet) {\n if (spec.length != length)\n throw new RangeError(`Mismatched change set length (got ${spec.length}, expected ${length})`);\n flush();\n total = total ? total.compose(spec.map(total)) : spec;\n }\n else {\n let { from, to = from, insert } = spec;\n if (from > to || from < 0 || to > length)\n throw new RangeError(`Invalid change range ${from} to ${to} (in doc of length ${length})`);\n let insText = !insert ? Text.empty : typeof insert == \"string\" ? Text.of(insert.split(lineSep || DefaultSplit)) : insert;\n let insLen = insText.length;\n if (from == to && insLen == 0)\n return;\n if (from < pos)\n flush();\n if (from > pos)\n addSection(sections, from - pos, -1);\n addSection(sections, to - from, insLen);\n addInsert(inserted, sections, insText);\n pos = to;\n }\n }\n process(changes);\n flush(!total);\n return total;\n }\n /**\n Create an empty changeset of the given length.\n */\n static empty(length) {\n return new ChangeSet(length ? [length, -1] : [], []);\n }\n /**\n Create a changeset from its JSON representation (as produced by\n [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON).\n */\n static fromJSON(json) {\n if (!Array.isArray(json))\n throw new RangeError(\"Invalid JSON representation of ChangeSet\");\n let sections = [], inserted = [];\n for (let i = 0; i < json.length; i++) {\n let part = json[i];\n if (typeof part == \"number\") {\n sections.push(part, -1);\n }\n else if (!Array.isArray(part) || typeof part[0] != \"number\" || part.some((e, i) => i && typeof e != \"string\")) {\n throw new RangeError(\"Invalid JSON representation of ChangeSet\");\n }\n else if (part.length == 1) {\n sections.push(part[0], 0);\n }\n else {\n while (inserted.length < i)\n inserted.push(Text.empty);\n inserted[i] = Text.of(part.slice(1));\n sections.push(part[0], inserted[i].length);\n }\n }\n return new ChangeSet(sections, inserted);\n }\n /**\n @internal\n */\n static createSet(sections, inserted) {\n return new ChangeSet(sections, inserted);\n }\n}\nfunction addSection(sections, len, ins, forceJoin = false) {\n if (len == 0 && ins <= 0)\n return;\n let last = sections.length - 2;\n if (last >= 0 && ins <= 0 && ins == sections[last + 1])\n sections[last] += len;\n else if (len == 0 && sections[last] == 0)\n sections[last + 1] += ins;\n else if (forceJoin) {\n sections[last] += len;\n sections[last + 1] += ins;\n }\n else\n sections.push(len, ins);\n}\nfunction addInsert(values, sections, value) {\n if (value.length == 0)\n return;\n let index = (sections.length - 2) >> 1;\n if (index < values.length) {\n values[values.length - 1] = values[values.length - 1].append(value);\n }\n else {\n while (values.length < index)\n values.push(Text.empty);\n values.push(value);\n }\n}\nfunction iterChanges(desc, f, individual) {\n let inserted = desc.inserted;\n for (let posA = 0, posB = 0, i = 0; i < desc.sections.length;) {\n let len = desc.sections[i++], ins = desc.sections[i++];\n if (ins < 0) {\n posA += len;\n posB += len;\n }\n else {\n let endA = posA, endB = posB, text = Text.empty;\n for (;;) {\n endA += len;\n endB += ins;\n if (ins && inserted)\n text = text.append(inserted[(i - 2) >> 1]);\n if (individual || i == desc.sections.length || desc.sections[i + 1] < 0)\n break;\n len = desc.sections[i++];\n ins = desc.sections[i++];\n }\n f(posA, endA, posB, endB, text);\n posA = endA;\n posB = endB;\n }\n }\n}\nfunction mapSet(setA, setB, before, mkSet = false) {\n // Produce a copy of setA that applies to the document after setB\n // has been applied (assuming both start at the same document).\n let sections = [], insert = mkSet ? [] : null;\n let a = new SectionIter(setA), b = new SectionIter(setB);\n // Iterate over both sets in parallel. inserted tracks, for changes\n // in A that have to be processed piece-by-piece, whether their\n // content has been inserted already, and refers to the section\n // index.\n for (let inserted = -1;;) {\n if (a.ins == -1 && b.ins == -1) {\n // Move across ranges skipped by both sets.\n let len = Math.min(a.len, b.len);\n addSection(sections, len, -1);\n a.forward(len);\n b.forward(len);\n }\n else if (b.ins >= 0 && (a.ins < 0 || inserted == a.i || a.off == 0 && (b.len < a.len || b.len == a.len && !before))) {\n // If there's a change in B that comes before the next change in\n // A (ordered by start pos, then len, then before flag), skip\n // that (and process any changes in A it covers).\n let len = b.len;\n addSection(sections, b.ins, -1);\n while (len) {\n let piece = Math.min(a.len, len);\n if (a.ins >= 0 && inserted < a.i && a.len <= piece) {\n addSection(sections, 0, a.ins);\n if (insert)\n addInsert(insert, sections, a.text);\n inserted = a.i;\n }\n a.forward(piece);\n len -= piece;\n }\n b.next();\n }\n else if (a.ins >= 0) {\n // Process the part of a change in A up to the start of the next\n // non-deletion change in B (if overlapping).\n let len = 0, left = a.len;\n while (left) {\n if (b.ins == -1) {\n let piece = Math.min(left, b.len);\n len += piece;\n left -= piece;\n b.forward(piece);\n }\n else if (b.ins == 0 && b.len < left) {\n left -= b.len;\n b.next();\n }\n else {\n break;\n }\n }\n addSection(sections, len, inserted < a.i ? a.ins : 0);\n if (insert && inserted < a.i)\n addInsert(insert, sections, a.text);\n inserted = a.i;\n a.forward(a.len - left);\n }\n else if (a.done && b.done) {\n return insert ? ChangeSet.createSet(sections, insert) : ChangeDesc.create(sections);\n }\n else {\n throw new Error(\"Mismatched change set lengths\");\n }\n }\n}\nfunction composeSets(setA, setB, mkSet = false) {\n let sections = [];\n let insert = mkSet ? [] : null;\n let a = new SectionIter(setA), b = new SectionIter(setB);\n for (let open = false;;) {\n if (a.done && b.done) {\n return insert ? ChangeSet.createSet(sections, insert) : ChangeDesc.create(sections);\n }\n else if (a.ins == 0) { // Deletion in A\n addSection(sections, a.len, 0, open);\n a.next();\n }\n else if (b.len == 0 && !b.done) { // Insertion in B\n addSection(sections, 0, b.ins, open);\n if (insert)\n addInsert(insert, sections, b.text);\n b.next();\n }\n else if (a.done || b.done) {\n throw new Error(\"Mismatched change set lengths\");\n }\n else {\n let len = Math.min(a.len2, b.len), sectionLen = sections.length;\n if (a.ins == -1) {\n let insB = b.ins == -1 ? -1 : b.off ? 0 : b.ins;\n addSection(sections, len, insB, open);\n if (insert && insB)\n addInsert(insert, sections, b.text);\n }\n else if (b.ins == -1) {\n addSection(sections, a.off ? 0 : a.len, len, open);\n if (insert)\n addInsert(insert, sections, a.textBit(len));\n }\n else {\n addSection(sections, a.off ? 0 : a.len, b.off ? 0 : b.ins, open);\n if (insert && !b.off)\n addInsert(insert, sections, b.text);\n }\n open = (a.ins > len || b.ins >= 0 && b.len > len) && (open || sections.length > sectionLen);\n a.forward2(len);\n b.forward(len);\n }\n }\n}\nclass SectionIter {\n constructor(set) {\n this.set = set;\n this.i = 0;\n this.next();\n }\n next() {\n let { sections } = this.set;\n if (this.i < sections.length) {\n this.len = sections[this.i++];\n this.ins = sections[this.i++];\n }\n else {\n this.len = 0;\n this.ins = -2;\n }\n this.off = 0;\n }\n get done() { return this.ins == -2; }\n get len2() { return this.ins < 0 ? this.len : this.ins; }\n get text() {\n let { inserted } = this.set, index = (this.i - 2) >> 1;\n return index >= inserted.length ? Text.empty : inserted[index];\n }\n textBit(len) {\n let { inserted } = this.set, index = (this.i - 2) >> 1;\n return index >= inserted.length && !len ? Text.empty\n : inserted[index].slice(this.off, len == null ? undefined : this.off + len);\n }\n forward(len) {\n if (len == this.len)\n this.next();\n else {\n this.len -= len;\n this.off += len;\n }\n }\n forward2(len) {\n if (this.ins == -1)\n this.forward(len);\n else if (len == this.ins)\n this.next();\n else {\n this.ins -= len;\n this.off += len;\n }\n }\n}\n\n/**\nA single selection range. When\n[`allowMultipleSelections`](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)\nis enabled, a [selection](https://codemirror.net/6/docs/ref/#state.EditorSelection) may hold\nmultiple ranges. By default, selections hold exactly one range.\n*/\nclass SelectionRange {\n constructor(\n /**\n The lower boundary of the range.\n */\n from, \n /**\n The upper boundary of the range.\n */\n to, flags) {\n this.from = from;\n this.to = to;\n this.flags = flags;\n }\n /**\n The anchor of the range—the side that doesn't move when you\n extend it.\n */\n get anchor() { return this.flags & 32 /* RangeFlag.Inverted */ ? this.to : this.from; }\n /**\n The head of the range, which is moved when the range is\n [extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend).\n */\n get head() { return this.flags & 32 /* RangeFlag.Inverted */ ? this.from : this.to; }\n /**\n True when `anchor` and `head` are at the same position.\n */\n get empty() { return this.from == this.to; }\n /**\n If this is a cursor that is explicitly associated with the\n character on one of its sides, this returns the side. -1 means\n the character before its position, 1 the character after, and 0\n means no association.\n */\n get assoc() { return this.flags & 8 /* RangeFlag.AssocBefore */ ? -1 : this.flags & 16 /* RangeFlag.AssocAfter */ ? 1 : 0; }\n /**\n The bidirectional text level associated with this cursor, if\n any.\n */\n get bidiLevel() {\n let level = this.flags & 7 /* RangeFlag.BidiLevelMask */;\n return level == 7 ? null : level;\n }\n /**\n The goal column (stored vertical offset) associated with a\n cursor. This is used to preserve the vertical position when\n [moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across\n lines of different length.\n */\n get goalColumn() {\n let value = this.flags >> 6 /* RangeFlag.GoalColumnOffset */;\n return value == 16777215 /* RangeFlag.NoGoalColumn */ ? undefined : value;\n }\n /**\n Map this range through a change, producing a valid range in the\n updated document.\n */\n map(change, assoc = -1) {\n let from, to;\n if (this.empty) {\n from = to = change.mapPos(this.from, assoc);\n }\n else {\n from = change.mapPos(this.from, 1);\n to = change.mapPos(this.to, -1);\n }\n return from == this.from && to == this.to ? this : new SelectionRange(from, to, this.flags);\n }\n /**\n Extend this range to cover at least `from` to `to`.\n */\n extend(from, to = from) {\n if (from <= this.anchor && to >= this.anchor)\n return EditorSelection.range(from, to);\n let head = Math.abs(from - this.anchor) > Math.abs(to - this.anchor) ? from : to;\n return EditorSelection.range(this.anchor, head);\n }\n /**\n Compare this range to another range.\n */\n eq(other, includeAssoc = false) {\n return this.anchor == other.anchor && this.head == other.head &&\n (!includeAssoc || !this.empty || this.assoc == other.assoc);\n }\n /**\n Return a JSON-serializable object representing the range.\n */\n toJSON() { return { anchor: this.anchor, head: this.head }; }\n /**\n Convert a JSON representation of a range to a `SelectionRange`\n instance.\n */\n static fromJSON(json) {\n if (!json || typeof json.anchor != \"number\" || typeof json.head != \"number\")\n throw new RangeError(\"Invalid JSON representation for SelectionRange\");\n return EditorSelection.range(json.anchor, json.head);\n }\n /**\n @internal\n */\n static create(from, to, flags) {\n return new SelectionRange(from, to, flags);\n }\n}\n/**\nAn editor selection holds one or more selection ranges.\n*/\nclass EditorSelection {\n constructor(\n /**\n The ranges in the selection, sorted by position. Ranges cannot\n overlap (but they may touch, if they aren't empty).\n */\n ranges, \n /**\n The index of the _main_ range in the selection (which is\n usually the range that was added last).\n */\n mainIndex) {\n this.ranges = ranges;\n this.mainIndex = mainIndex;\n }\n /**\n Map a selection through a change. Used to adjust the selection\n position for changes.\n */\n map(change, assoc = -1) {\n if (change.empty)\n return this;\n return EditorSelection.create(this.ranges.map(r => r.map(change, assoc)), this.mainIndex);\n }\n /**\n Compare this selection to another selection. By default, ranges\n are compared only by position. When `includeAssoc` is true,\n cursor ranges must also have the same\n [`assoc`](https://codemirror.net/6/docs/ref/#state.SelectionRange.assoc) value.\n */\n eq(other, includeAssoc = false) {\n if (this.ranges.length != other.ranges.length ||\n this.mainIndex != other.mainIndex)\n return false;\n for (let i = 0; i < this.ranges.length; i++)\n if (!this.ranges[i].eq(other.ranges[i], includeAssoc))\n return false;\n return true;\n }\n /**\n Get the primary selection range. Usually, you should make sure\n your code applies to _all_ ranges, by using methods like\n [`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange).\n */\n get main() { return this.ranges[this.mainIndex]; }\n /**\n Make sure the selection only has one range. Returns a selection\n holding only the main range from this selection.\n */\n asSingle() {\n return this.ranges.length == 1 ? this : new EditorSelection([this.main], 0);\n }\n /**\n Extend this selection with an extra range.\n */\n addRange(range, main = true) {\n return EditorSelection.create([range].concat(this.ranges), main ? 0 : this.mainIndex + 1);\n }\n /**\n Replace a given range with another range, and then normalize the\n selection to merge and sort ranges if necessary.\n */\n replaceRange(range, which = this.mainIndex) {\n let ranges = this.ranges.slice();\n ranges[which] = range;\n return EditorSelection.create(ranges, this.mainIndex);\n }\n /**\n Convert this selection to an object that can be serialized to\n JSON.\n */\n toJSON() {\n return { ranges: this.ranges.map(r => r.toJSON()), main: this.mainIndex };\n }\n /**\n Create a selection from a JSON representation.\n */\n static fromJSON(json) {\n if (!json || !Array.isArray(json.ranges) || typeof json.main != \"number\" || json.main >= json.ranges.length)\n throw new RangeError(\"Invalid JSON representation for EditorSelection\");\n return new EditorSelection(json.ranges.map((r) => SelectionRange.fromJSON(r)), json.main);\n }\n /**\n Create a selection holding a single range.\n */\n static single(anchor, head = anchor) {\n return new EditorSelection([EditorSelection.range(anchor, head)], 0);\n }\n /**\n Sort and merge the given set of ranges, creating a valid\n selection.\n */\n static create(ranges, mainIndex = 0) {\n if (ranges.length == 0)\n throw new RangeError(\"A selection needs at least one range\");\n for (let pos = 0, i = 0; i < ranges.length; i++) {\n let range = ranges[i];\n if (range.empty ? range.from <= pos : range.from < pos)\n return EditorSelection.normalized(ranges.slice(), mainIndex);\n pos = range.to;\n }\n return new EditorSelection(ranges, mainIndex);\n }\n /**\n Create a cursor selection range at the given position. You can\n safely ignore the optional arguments in most situations.\n */\n static cursor(pos, assoc = 0, bidiLevel, goalColumn) {\n return SelectionRange.create(pos, pos, (assoc == 0 ? 0 : assoc < 0 ? 8 /* RangeFlag.AssocBefore */ : 16 /* RangeFlag.AssocAfter */) |\n (bidiLevel == null ? 7 : Math.min(6, bidiLevel)) |\n ((goalColumn !== null && goalColumn !== void 0 ? goalColumn : 16777215 /* RangeFlag.NoGoalColumn */) << 6 /* RangeFlag.GoalColumnOffset */));\n }\n /**\n Create a selection range.\n */\n static range(anchor, head, goalColumn, bidiLevel) {\n let flags = ((goalColumn !== null && goalColumn !== void 0 ? goalColumn : 16777215 /* RangeFlag.NoGoalColumn */) << 6 /* RangeFlag.GoalColumnOffset */) |\n (bidiLevel == null ? 7 : Math.min(6, bidiLevel));\n return head < anchor ? SelectionRange.create(head, anchor, 32 /* RangeFlag.Inverted */ | 16 /* RangeFlag.AssocAfter */ | flags)\n : SelectionRange.create(anchor, head, (head > anchor ? 8 /* RangeFlag.AssocBefore */ : 0) | flags);\n }\n /**\n @internal\n */\n static normalized(ranges, mainIndex = 0) {\n let main = ranges[mainIndex];\n ranges.sort((a, b) => a.from - b.from);\n mainIndex = ranges.indexOf(main);\n for (let i = 1; i < ranges.length; i++) {\n let range = ranges[i], prev = ranges[i - 1];\n if (range.empty ? range.from <= prev.to : range.from < prev.to) {\n let from = prev.from, to = Math.max(range.to, prev.to);\n if (i <= mainIndex)\n mainIndex--;\n ranges.splice(--i, 2, range.anchor > range.head ? EditorSelection.range(to, from) : EditorSelection.range(from, to));\n }\n }\n return new EditorSelection(ranges, mainIndex);\n }\n}\nfunction checkSelection(selection, docLength) {\n for (let range of selection.ranges)\n if (range.to > docLength)\n throw new RangeError(\"Selection points outside of document\");\n}\n\nlet nextID = 0;\n/**\nA facet is a labeled value that is associated with an editor\nstate. It takes inputs from any number of extensions, and combines\nthose into a single output value.\n\nExamples of uses of facets are the [tab\nsize](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize), [editor\nattributes](https://codemirror.net/6/docs/ref/#view.EditorView^editorAttributes), and [update\nlisteners](https://codemirror.net/6/docs/ref/#view.EditorView^updateListener).\n\nNote that `Facet` instances can be used anywhere where\n[`FacetReader`](https://codemirror.net/6/docs/ref/#state.FacetReader) is expected.\n*/\nclass Facet {\n constructor(\n /**\n @internal\n */\n combine, \n /**\n @internal\n */\n compareInput, \n /**\n @internal\n */\n compare, isStatic, enables) {\n this.combine = combine;\n this.compareInput = compareInput;\n this.compare = compare;\n this.isStatic = isStatic;\n /**\n @internal\n */\n this.id = nextID++;\n this.default = combine([]);\n this.extensions = typeof enables == \"function\" ? enables(this) : enables;\n }\n /**\n Returns a facet reader for this facet, which can be used to\n [read](https://codemirror.net/6/docs/ref/#state.EditorState.facet) it but not to define values for it.\n */\n get reader() { return this; }\n /**\n Define a new facet.\n */\n static define(config = {}) {\n return new Facet(config.combine || ((a) => a), config.compareInput || ((a, b) => a === b), config.compare || (!config.combine ? sameArray : (a, b) => a === b), !!config.static, config.enables);\n }\n /**\n Returns an extension that adds the given value to this facet.\n */\n of(value) {\n return new FacetProvider([], this, 0 /* Provider.Static */, value);\n }\n /**\n Create an extension that computes a value for the facet from a\n state. You must take care to declare the parts of the state that\n this value depends on, since your function is only called again\n for a new state when one of those parts changed.\n \n In cases where your value depends only on a single field, you'll\n want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead.\n */\n compute(deps, get) {\n if (this.isStatic)\n throw new Error(\"Can't compute a static facet\");\n return new FacetProvider(deps, this, 1 /* Provider.Single */, get);\n }\n /**\n Create an extension that computes zero or more values for this\n facet from a state.\n */\n computeN(deps, get) {\n if (this.isStatic)\n throw new Error(\"Can't compute a static facet\");\n return new FacetProvider(deps, this, 2 /* Provider.Multi */, get);\n }\n from(field, get) {\n if (!get)\n get = x => x;\n return this.compute([field], state => get(state.field(field)));\n }\n}\nfunction sameArray(a, b) {\n return a == b || a.length == b.length && a.every((e, i) => e === b[i]);\n}\nclass FacetProvider {\n constructor(dependencies, facet, type, value) {\n this.dependencies = dependencies;\n this.facet = facet;\n this.type = type;\n this.value = value;\n this.id = nextID++;\n }\n dynamicSlot(addresses) {\n var _a;\n let getter = this.value;\n let compare = this.facet.compareInput;\n let id = this.id, idx = addresses[id] >> 1, multi = this.type == 2 /* Provider.Multi */;\n let depDoc = false, depSel = false, depAddrs = [];\n for (let dep of this.dependencies) {\n if (dep == \"doc\")\n depDoc = true;\n else if (dep == \"selection\")\n depSel = true;\n else if ((((_a = addresses[dep.id]) !== null && _a !== void 0 ? _a : 1) & 1) == 0)\n depAddrs.push(addresses[dep.id]);\n }\n return {\n create(state) {\n state.values[idx] = getter(state);\n return 1 /* SlotStatus.Changed */;\n },\n update(state, tr) {\n if ((depDoc && tr.docChanged) || (depSel && (tr.docChanged || tr.selection)) || ensureAll(state, depAddrs)) {\n let newVal = getter(state);\n if (multi ? !compareArray(newVal, state.values[idx], compare) : !compare(newVal, state.values[idx])) {\n state.values[idx] = newVal;\n return 1 /* SlotStatus.Changed */;\n }\n }\n return 0;\n },\n reconfigure: (state, oldState) => {\n let newVal, oldAddr = oldState.config.address[id];\n if (oldAddr != null) {\n let oldVal = getAddr(oldState, oldAddr);\n if (this.dependencies.every(dep => {\n return dep instanceof Facet ? oldState.facet(dep) === state.facet(dep) :\n dep instanceof StateField ? oldState.field(dep, false) == state.field(dep, false) : true;\n }) || (multi ? compareArray(newVal = getter(state), oldVal, compare) : compare(newVal = getter(state), oldVal))) {\n state.values[idx] = oldVal;\n return 0;\n }\n }\n else {\n newVal = getter(state);\n }\n state.values[idx] = newVal;\n return 1 /* SlotStatus.Changed */;\n }\n };\n }\n}\nfunction compareArray(a, b, compare) {\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!compare(a[i], b[i]))\n return false;\n return true;\n}\nfunction ensureAll(state, addrs) {\n let changed = false;\n for (let addr of addrs)\n if (ensureAddr(state, addr) & 1 /* SlotStatus.Changed */)\n changed = true;\n return changed;\n}\nfunction dynamicFacetSlot(addresses, facet, providers) {\n let providerAddrs = providers.map(p => addresses[p.id]);\n let providerTypes = providers.map(p => p.type);\n let dynamic = providerAddrs.filter(p => !(p & 1));\n let idx = addresses[facet.id] >> 1;\n function get(state) {\n let values = [];\n for (let i = 0; i < providerAddrs.length; i++) {\n let value = getAddr(state, providerAddrs[i]);\n if (providerTypes[i] == 2 /* Provider.Multi */)\n for (let val of value)\n values.push(val);\n else\n values.push(value);\n }\n return facet.combine(values);\n }\n return {\n create(state) {\n for (let addr of providerAddrs)\n ensureAddr(state, addr);\n state.values[idx] = get(state);\n return 1 /* SlotStatus.Changed */;\n },\n update(state, tr) {\n if (!ensureAll(state, dynamic))\n return 0;\n let value = get(state);\n if (facet.compare(value, state.values[idx]))\n return 0;\n state.values[idx] = value;\n return 1 /* SlotStatus.Changed */;\n },\n reconfigure(state, oldState) {\n let depChanged = ensureAll(state, providerAddrs);\n let oldProviders = oldState.config.facets[facet.id], oldValue = oldState.facet(facet);\n if (oldProviders && !depChanged && sameArray(providers, oldProviders)) {\n state.values[idx] = oldValue;\n return 0;\n }\n let value = get(state);\n if (facet.compare(value, oldValue)) {\n state.values[idx] = oldValue;\n return 0;\n }\n state.values[idx] = value;\n return 1 /* SlotStatus.Changed */;\n }\n };\n}\nconst initField = /*@__PURE__*/Facet.define({ static: true });\n/**\nFields can store additional information in an editor state, and\nkeep it in sync with the rest of the state.\n*/\nclass StateField {\n constructor(\n /**\n @internal\n */\n id, createF, updateF, compareF, \n /**\n @internal\n */\n spec) {\n this.id = id;\n this.createF = createF;\n this.updateF = updateF;\n this.compareF = compareF;\n this.spec = spec;\n /**\n @internal\n */\n this.provides = undefined;\n }\n /**\n Define a state field.\n */\n static define(config) {\n let field = new StateField(nextID++, config.create, config.update, config.compare || ((a, b) => a === b), config);\n if (config.provide)\n field.provides = config.provide(field);\n return field;\n }\n create(state) {\n let init = state.facet(initField).find(i => i.field == this);\n return ((init === null || init === void 0 ? void 0 : init.create) || this.createF)(state);\n }\n /**\n @internal\n */\n slot(addresses) {\n let idx = addresses[this.id] >> 1;\n return {\n create: (state) => {\n state.values[idx] = this.create(state);\n return 1 /* SlotStatus.Changed */;\n },\n update: (state, tr) => {\n let oldVal = state.values[idx];\n let value = this.updateF(oldVal, tr);\n if (this.compareF(oldVal, value))\n return 0;\n state.values[idx] = value;\n return 1 /* SlotStatus.Changed */;\n },\n reconfigure: (state, oldState) => {\n if (oldState.config.address[this.id] != null) {\n state.values[idx] = oldState.field(this);\n return 0;\n }\n state.values[idx] = this.create(state);\n return 1 /* SlotStatus.Changed */;\n }\n };\n }\n /**\n Returns an extension that enables this field and overrides the\n way it is initialized. Can be useful when you need to provide a\n non-default starting value for the field.\n */\n init(create) {\n return [this, initField.of({ field: this, create })];\n }\n /**\n State field instances can be used as\n [`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a\n given state.\n */\n get extension() { return this; }\n}\nconst Prec_ = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };\nfunction prec(value) {\n return (ext) => new PrecExtension(ext, value);\n}\n/**\nBy default extensions are registered in the order they are found\nin the flattened form of nested array that was provided.\nIndividual extension values can be assigned a precedence to\noverride this. Extensions that do not have a precedence set get\nthe precedence of the nearest parent with a precedence, or\n[`default`](https://codemirror.net/6/docs/ref/#state.Prec.default) if there is no such parent. The\nfinal ordering of extensions is determined by first sorting by\nprecedence and then by order within each precedence.\n*/\nconst Prec = {\n /**\n The highest precedence level, for extensions that should end up\n near the start of the precedence ordering.\n */\n highest: /*@__PURE__*/prec(Prec_.highest),\n /**\n A higher-than-default precedence, for extensions that should\n come before those with default precedence.\n */\n high: /*@__PURE__*/prec(Prec_.high),\n /**\n The default precedence, which is also used for extensions\n without an explicit precedence.\n */\n default: /*@__PURE__*/prec(Prec_.default),\n /**\n A lower-than-default precedence.\n */\n low: /*@__PURE__*/prec(Prec_.low),\n /**\n The lowest precedence level. Meant for things that should end up\n near the end of the extension order.\n */\n lowest: /*@__PURE__*/prec(Prec_.lowest)\n};\nclass PrecExtension {\n constructor(inner, prec) {\n this.inner = inner;\n this.prec = prec;\n }\n}\n/**\nExtension compartments can be used to make a configuration\ndynamic. By [wrapping](https://codemirror.net/6/docs/ref/#state.Compartment.of) part of your\nconfiguration in a compartment, you can later\n[replace](https://codemirror.net/6/docs/ref/#state.Compartment.reconfigure) that part through a\ntransaction.\n*/\nclass Compartment {\n /**\n Create an instance of this compartment to add to your [state\n configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).\n */\n of(ext) { return new CompartmentInstance(this, ext); }\n /**\n Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that\n reconfigures this compartment.\n */\n reconfigure(content) {\n return Compartment.reconfigure.of({ compartment: this, extension: content });\n }\n /**\n Get the current content of the compartment in the state, or\n `undefined` if it isn't present.\n */\n get(state) {\n return state.config.compartments.get(this);\n }\n}\nclass CompartmentInstance {\n constructor(compartment, inner) {\n this.compartment = compartment;\n this.inner = inner;\n }\n}\nclass Configuration {\n constructor(base, compartments, dynamicSlots, address, staticValues, facets) {\n this.base = base;\n this.compartments = compartments;\n this.dynamicSlots = dynamicSlots;\n this.address = address;\n this.staticValues = staticValues;\n this.facets = facets;\n this.statusTemplate = [];\n while (this.statusTemplate.length < dynamicSlots.length)\n this.statusTemplate.push(0 /* SlotStatus.Unresolved */);\n }\n staticFacet(facet) {\n let addr = this.address[facet.id];\n return addr == null ? facet.default : this.staticValues[addr >> 1];\n }\n static resolve(base, compartments, oldState) {\n let fields = [];\n let facets = Object.create(null);\n let newCompartments = new Map();\n for (let ext of flatten(base, compartments, newCompartments)) {\n if (ext instanceof StateField)\n fields.push(ext);\n else\n (facets[ext.facet.id] || (facets[ext.facet.id] = [])).push(ext);\n }\n let address = Object.create(null);\n let staticValues = [];\n let dynamicSlots = [];\n for (let field of fields) {\n address[field.id] = dynamicSlots.length << 1;\n dynamicSlots.push(a => field.slot(a));\n }\n let oldFacets = oldState === null || oldState === void 0 ? void 0 : oldState.config.facets;\n for (let id in facets) {\n let providers = facets[id], facet = providers[0].facet;\n let oldProviders = oldFacets && oldFacets[id] || [];\n if (providers.every(p => p.type == 0 /* Provider.Static */)) {\n address[facet.id] = (staticValues.length << 1) | 1;\n if (sameArray(oldProviders, providers)) {\n staticValues.push(oldState.facet(facet));\n }\n else {\n let value = facet.combine(providers.map(p => p.value));\n staticValues.push(oldState && facet.compare(value, oldState.facet(facet)) ? oldState.facet(facet) : value);\n }\n }\n else {\n for (let p of providers) {\n if (p.type == 0 /* Provider.Static */) {\n address[p.id] = (staticValues.length << 1) | 1;\n staticValues.push(p.value);\n }\n else {\n address[p.id] = dynamicSlots.length << 1;\n dynamicSlots.push(a => p.dynamicSlot(a));\n }\n }\n address[facet.id] = dynamicSlots.length << 1;\n dynamicSlots.push(a => dynamicFacetSlot(a, facet, providers));\n }\n }\n let dynamic = dynamicSlots.map(f => f(address));\n return new Configuration(base, newCompartments, dynamic, address, staticValues, facets);\n }\n}\nfunction flatten(extension, compartments, newCompartments) {\n let result = [[], [], [], [], []];\n let seen = new Map();\n function inner(ext, prec) {\n let known = seen.get(ext);\n if (known != null) {\n if (known <= prec)\n return;\n let found = result[known].indexOf(ext);\n if (found > -1)\n result[known].splice(found, 1);\n if (ext instanceof CompartmentInstance)\n newCompartments.delete(ext.compartment);\n }\n seen.set(ext, prec);\n if (Array.isArray(ext)) {\n for (let e of ext)\n inner(e, prec);\n }\n else if (ext instanceof CompartmentInstance) {\n if (newCompartments.has(ext.compartment))\n throw new RangeError(`Duplicate use of compartment in extensions`);\n let content = compartments.get(ext.compartment) || ext.inner;\n newCompartments.set(ext.compartment, content);\n inner(content, prec);\n }\n else if (ext instanceof PrecExtension) {\n inner(ext.inner, ext.prec);\n }\n else if (ext instanceof StateField) {\n result[prec].push(ext);\n if (ext.provides)\n inner(ext.provides, prec);\n }\n else if (ext instanceof FacetProvider) {\n result[prec].push(ext);\n if (ext.facet.extensions)\n inner(ext.facet.extensions, Prec_.default);\n }\n else {\n let content = ext.extension;\n if (!content)\n throw new Error(`Unrecognized extension value in extension set (${ext}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);\n inner(content, prec);\n }\n }\n inner(extension, Prec_.default);\n return result.reduce((a, b) => a.concat(b));\n}\nfunction ensureAddr(state, addr) {\n if (addr & 1)\n return 2 /* SlotStatus.Computed */;\n let idx = addr >> 1;\n let status = state.status[idx];\n if (status == 4 /* SlotStatus.Computing */)\n throw new Error(\"Cyclic dependency between fields and/or facets\");\n if (status & 2 /* SlotStatus.Computed */)\n return status;\n state.status[idx] = 4 /* SlotStatus.Computing */;\n let changed = state.computeSlot(state, state.config.dynamicSlots[idx]);\n return state.status[idx] = 2 /* SlotStatus.Computed */ | changed;\n}\nfunction getAddr(state, addr) {\n return addr & 1 ? state.config.staticValues[addr >> 1] : state.values[addr >> 1];\n}\n\nconst languageData = /*@__PURE__*/Facet.define();\nconst allowMultipleSelections = /*@__PURE__*/Facet.define({\n combine: values => values.some(v => v),\n static: true\n});\nconst lineSeparator = /*@__PURE__*/Facet.define({\n combine: values => values.length ? values[0] : undefined,\n static: true\n});\nconst changeFilter = /*@__PURE__*/Facet.define();\nconst transactionFilter = /*@__PURE__*/Facet.define();\nconst transactionExtender = /*@__PURE__*/Facet.define();\nconst readOnly = /*@__PURE__*/Facet.define({\n combine: values => values.length ? values[0] : false\n});\n\n/**\nAnnotations are tagged values that are used to add metadata to\ntransactions in an extensible way. They should be used to model\nthings that effect the entire transaction (such as its [time\nstamp](https://codemirror.net/6/docs/ref/#state.Transaction^time) or information about its\n[origin](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent)). For effects that happen\n_alongside_ the other changes made by the transaction, [state\neffects](https://codemirror.net/6/docs/ref/#state.StateEffect) are more appropriate.\n*/\nclass Annotation {\n /**\n @internal\n */\n constructor(\n /**\n The annotation type.\n */\n type, \n /**\n The value of this annotation.\n */\n value) {\n this.type = type;\n this.value = value;\n }\n /**\n Define a new type of annotation.\n */\n static define() { return new AnnotationType(); }\n}\n/**\nMarker that identifies a type of [annotation](https://codemirror.net/6/docs/ref/#state.Annotation).\n*/\nclass AnnotationType {\n /**\n Create an instance of this annotation.\n */\n of(value) { return new Annotation(this, value); }\n}\n/**\nRepresentation of a type of state effect. Defined with\n[`StateEffect.define`](https://codemirror.net/6/docs/ref/#state.StateEffect^define).\n*/\nclass StateEffectType {\n /**\n @internal\n */\n constructor(\n // The `any` types in these function types are there to work\n // around TypeScript issue #37631, where the type guard on\n // `StateEffect.is` mysteriously stops working when these properly\n // have type `Value`.\n /**\n @internal\n */\n map) {\n this.map = map;\n }\n /**\n Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this\n type.\n */\n of(value) { return new StateEffect(this, value); }\n}\n/**\nState effects can be used to represent additional effects\nassociated with a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction.effects). They\nare often useful to model changes to custom [state\nfields](https://codemirror.net/6/docs/ref/#state.StateField), when those changes aren't implicit in\ndocument or selection changes.\n*/\nclass StateEffect {\n /**\n @internal\n */\n constructor(\n /**\n @internal\n */\n type, \n /**\n The value of this effect.\n */\n value) {\n this.type = type;\n this.value = value;\n }\n /**\n Map this effect through a position mapping. Will return\n `undefined` when that ends up deleting the effect.\n */\n map(mapping) {\n let mapped = this.type.map(this.value, mapping);\n return mapped === undefined ? undefined : mapped == this.value ? this : new StateEffect(this.type, mapped);\n }\n /**\n Tells you whether this effect object is of a given\n [type](https://codemirror.net/6/docs/ref/#state.StateEffectType).\n */\n is(type) { return this.type == type; }\n /**\n Define a new effect type. The type parameter indicates the type\n of values that his effect holds. It should be a type that\n doesn't include `undefined`, since that is used in\n [mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is\n removed.\n */\n static define(spec = {}) {\n return new StateEffectType(spec.map || (v => v));\n }\n /**\n Map an array of effects through a change set.\n */\n static mapEffects(effects, mapping) {\n if (!effects.length)\n return effects;\n let result = [];\n for (let effect of effects) {\n let mapped = effect.map(mapping);\n if (mapped)\n result.push(mapped);\n }\n return result;\n }\n}\n/**\nThis effect can be used to reconfigure the root extensions of\nthe editor. Doing this will discard any extensions\n[appended](https://codemirror.net/6/docs/ref/#state.StateEffect^appendConfig), but does not reset\nthe content of [reconfigured](https://codemirror.net/6/docs/ref/#state.Compartment.reconfigure)\ncompartments.\n*/\nStateEffect.reconfigure = /*@__PURE__*/StateEffect.define();\n/**\nAppend extensions to the top-level configuration of the editor.\n*/\nStateEffect.appendConfig = /*@__PURE__*/StateEffect.define();\n/**\nChanges to the editor state are grouped into transactions.\nTypically, a user action creates a single transaction, which may\ncontain any number of document changes, may change the selection,\nor have other effects. Create a transaction by calling\n[`EditorState.update`](https://codemirror.net/6/docs/ref/#state.EditorState.update), or immediately\ndispatch one by calling\n[`EditorView.dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch).\n*/\nclass Transaction {\n constructor(\n /**\n The state from which the transaction starts.\n */\n startState, \n /**\n The document changes made by this transaction.\n */\n changes, \n /**\n The selection set by this transaction, or undefined if it\n doesn't explicitly set a selection.\n */\n selection, \n /**\n The effects added to the transaction.\n */\n effects, \n /**\n @internal\n */\n annotations, \n /**\n Whether the selection should be scrolled into view after this\n transaction is dispatched.\n */\n scrollIntoView) {\n this.startState = startState;\n this.changes = changes;\n this.selection = selection;\n this.effects = effects;\n this.annotations = annotations;\n this.scrollIntoView = scrollIntoView;\n /**\n @internal\n */\n this._doc = null;\n /**\n @internal\n */\n this._state = null;\n if (selection)\n checkSelection(selection, changes.newLength);\n if (!annotations.some((a) => a.type == Transaction.time))\n this.annotations = annotations.concat(Transaction.time.of(Date.now()));\n }\n /**\n @internal\n */\n static create(startState, changes, selection, effects, annotations, scrollIntoView) {\n return new Transaction(startState, changes, selection, effects, annotations, scrollIntoView);\n }\n /**\n The new document produced by the transaction. Contrary to\n [`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't\n force the entire new state to be computed right away, so it is\n recommended that [transaction\n filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter\n when they need to look at the new document.\n */\n get newDoc() {\n return this._doc || (this._doc = this.changes.apply(this.startState.doc));\n }\n /**\n The new selection produced by the transaction. If\n [`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined,\n this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's\n current selection through the changes made by the transaction.\n */\n get newSelection() {\n return this.selection || this.startState.selection.map(this.changes);\n }\n /**\n The new state created by the transaction. Computed on demand\n (but retained for subsequent access), so it is recommended not to\n access it in [transaction\n filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible.\n */\n get state() {\n if (!this._state)\n this.startState.applyTransaction(this);\n return this._state;\n }\n /**\n Get the value of the given annotation type, if any.\n */\n annotation(type) {\n for (let ann of this.annotations)\n if (ann.type == type)\n return ann.value;\n return undefined;\n }\n /**\n Indicates whether the transaction changed the document.\n */\n get docChanged() { return !this.changes.empty; }\n /**\n Indicates whether this transaction reconfigures the state\n (through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or\n with a top-level configuration\n [effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure).\n */\n get reconfigured() { return this.startState.config != this.state.config; }\n /**\n Returns true if the transaction has a [user\n event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to\n or more specific than `event`. For example, if the transaction\n has `\"select.pointer\"` as user event, `\"select\"` and\n `\"select.pointer\"` will match it.\n */\n isUserEvent(event) {\n let e = this.annotation(Transaction.userEvent);\n return !!(e && (e == event || e.length > event.length && e.slice(0, event.length) == event && e[event.length] == \".\"));\n }\n}\n/**\nAnnotation used to store transaction timestamps. Automatically\nadded to every transaction, holding `Date.now()`.\n*/\nTransaction.time = /*@__PURE__*/Annotation.define();\n/**\nAnnotation used to associate a transaction with a user interface\nevent. Holds a string identifying the event, using a\ndot-separated format to support attaching more specific\ninformation. The events used by the core libraries are:\n\n - `\"input\"` when content is entered\n - `\"input.type\"` for typed input\n - `\"input.type.compose\"` for composition\n - `\"input.paste\"` for pasted input\n - `\"input.drop\"` when adding content with drag-and-drop\n - `\"input.complete\"` when autocompleting\n - `\"delete\"` when the user deletes content\n - `\"delete.selection\"` when deleting the selection\n - `\"delete.forward\"` when deleting forward from the selection\n - `\"delete.backward\"` when deleting backward from the selection\n - `\"delete.cut\"` when cutting to the clipboard\n - `\"move\"` when content is moved\n - `\"move.drop\"` when content is moved within the editor through drag-and-drop\n - `\"select\"` when explicitly changing the selection\n - `\"select.pointer\"` when selecting with a mouse or other pointing device\n - `\"undo\"` and `\"redo\"` for history actions\n\nUse [`isUserEvent`](https://codemirror.net/6/docs/ref/#state.Transaction.isUserEvent) to check\nwhether the annotation matches a given event.\n*/\nTransaction.userEvent = /*@__PURE__*/Annotation.define();\n/**\nAnnotation indicating whether a transaction should be added to\nthe undo history or not.\n*/\nTransaction.addToHistory = /*@__PURE__*/Annotation.define();\n/**\nAnnotation indicating (when present and true) that a transaction\nrepresents a change made by some other actor, not the user. This\nis used, for example, to tag other people's changes in\ncollaborative editing.\n*/\nTransaction.remote = /*@__PURE__*/Annotation.define();\nfunction joinRanges(a, b) {\n let result = [];\n for (let iA = 0, iB = 0;;) {\n let from, to;\n if (iA < a.length && (iB == b.length || b[iB] >= a[iA])) {\n from = a[iA++];\n to = a[iA++];\n }\n else if (iB < b.length) {\n from = b[iB++];\n to = b[iB++];\n }\n else\n return result;\n if (!result.length || result[result.length - 1] < from)\n result.push(from, to);\n else if (result[result.length - 1] < to)\n result[result.length - 1] = to;\n }\n}\nfunction mergeTransaction(a, b, sequential) {\n var _a;\n let mapForA, mapForB, changes;\n if (sequential) {\n mapForA = b.changes;\n mapForB = ChangeSet.empty(b.changes.length);\n changes = a.changes.compose(b.changes);\n }\n else {\n mapForA = b.changes.map(a.changes);\n mapForB = a.changes.mapDesc(b.changes, true);\n changes = a.changes.compose(mapForA);\n }\n return {\n changes,\n selection: b.selection ? b.selection.map(mapForB) : (_a = a.selection) === null || _a === void 0 ? void 0 : _a.map(mapForA),\n effects: StateEffect.mapEffects(a.effects, mapForA).concat(StateEffect.mapEffects(b.effects, mapForB)),\n annotations: a.annotations.length ? a.annotations.concat(b.annotations) : b.annotations,\n scrollIntoView: a.scrollIntoView || b.scrollIntoView\n };\n}\nfunction resolveTransactionInner(state, spec, docSize) {\n let sel = spec.selection, annotations = asArray(spec.annotations);\n if (spec.userEvent)\n annotations = annotations.concat(Transaction.userEvent.of(spec.userEvent));\n return {\n changes: spec.changes instanceof ChangeSet ? spec.changes\n : ChangeSet.of(spec.changes || [], docSize, state.facet(lineSeparator)),\n selection: sel && (sel instanceof EditorSelection ? sel : EditorSelection.single(sel.anchor, sel.head)),\n effects: asArray(spec.effects),\n annotations,\n scrollIntoView: !!spec.scrollIntoView\n };\n}\nfunction resolveTransaction(state, specs, filter) {\n let s = resolveTransactionInner(state, specs.length ? specs[0] : {}, state.doc.length);\n if (specs.length && specs[0].filter === false)\n filter = false;\n for (let i = 1; i < specs.length; i++) {\n if (specs[i].filter === false)\n filter = false;\n let seq = !!specs[i].sequential;\n s = mergeTransaction(s, resolveTransactionInner(state, specs[i], seq ? s.changes.newLength : state.doc.length), seq);\n }\n let tr = Transaction.create(state, s.changes, s.selection, s.effects, s.annotations, s.scrollIntoView);\n return extendTransaction(filter ? filterTransaction(tr) : tr);\n}\n// Finish a transaction by applying filters if necessary.\nfunction filterTransaction(tr) {\n let state = tr.startState;\n // Change filters\n let result = true;\n for (let filter of state.facet(changeFilter)) {\n let value = filter(tr);\n if (value === false) {\n result = false;\n break;\n }\n if (Array.isArray(value))\n result = result === true ? value : joinRanges(result, value);\n }\n if (result !== true) {\n let changes, back;\n if (result === false) {\n back = tr.changes.invertedDesc;\n changes = ChangeSet.empty(state.doc.length);\n }\n else {\n let filtered = tr.changes.filter(result);\n changes = filtered.changes;\n back = filtered.filtered.mapDesc(filtered.changes).invertedDesc;\n }\n tr = Transaction.create(state, changes, tr.selection && tr.selection.map(back), StateEffect.mapEffects(tr.effects, back), tr.annotations, tr.scrollIntoView);\n }\n // Transaction filters\n let filters = state.facet(transactionFilter);\n for (let i = filters.length - 1; i >= 0; i--) {\n let filtered = filters[i](tr);\n if (filtered instanceof Transaction)\n tr = filtered;\n else if (Array.isArray(filtered) && filtered.length == 1 && filtered[0] instanceof Transaction)\n tr = filtered[0];\n else\n tr = resolveTransaction(state, asArray(filtered), false);\n }\n return tr;\n}\nfunction extendTransaction(tr) {\n let state = tr.startState, extenders = state.facet(transactionExtender), spec = tr;\n for (let i = extenders.length - 1; i >= 0; i--) {\n let extension = extenders[i](tr);\n if (extension && Object.keys(extension).length)\n spec = mergeTransaction(spec, resolveTransactionInner(state, extension, tr.changes.newLength), true);\n }\n return spec == tr ? tr : Transaction.create(state, tr.changes, tr.selection, spec.effects, spec.annotations, spec.scrollIntoView);\n}\nconst none = [];\nfunction asArray(value) {\n return value == null ? none : Array.isArray(value) ? value : [value];\n}\n\n/**\nThe categories produced by a [character\ncategorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer). These are used\ndo things like selecting by word.\n*/\nvar CharCategory = /*@__PURE__*/(function (CharCategory) {\n /**\n Word characters.\n */\n CharCategory[CharCategory[\"Word\"] = 0] = \"Word\";\n /**\n Whitespace.\n */\n CharCategory[CharCategory[\"Space\"] = 1] = \"Space\";\n /**\n Anything else.\n */\n CharCategory[CharCategory[\"Other\"] = 2] = \"Other\";\nreturn CharCategory})(CharCategory || (CharCategory = {}));\nconst nonASCIISingleCaseWordChar = /[\\u00df\\u0587\\u0590-\\u05f4\\u0600-\\u06ff\\u3040-\\u309f\\u30a0-\\u30ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\uac00-\\ud7af]/;\nlet wordChar;\ntry {\n wordChar = /*@__PURE__*/new RegExp(\"[\\\\p{Alphabetic}\\\\p{Number}_]\", \"u\");\n}\ncatch (_) { }\nfunction hasWordChar(str) {\n if (wordChar)\n return wordChar.test(str);\n for (let i = 0; i < str.length; i++) {\n let ch = str[i];\n if (/\\w/.test(ch) || ch > \"\\x80\" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch)))\n return true;\n }\n return false;\n}\nfunction makeCategorizer(wordChars) {\n return (char) => {\n if (!/\\S/.test(char))\n return CharCategory.Space;\n if (hasWordChar(char))\n return CharCategory.Word;\n for (let i = 0; i < wordChars.length; i++)\n if (char.indexOf(wordChars[i]) > -1)\n return CharCategory.Word;\n return CharCategory.Other;\n };\n}\n\n/**\nThe editor state class is a persistent (immutable) data structure.\nTo update a state, you [create](https://codemirror.net/6/docs/ref/#state.EditorState.update) a\n[transaction](https://codemirror.net/6/docs/ref/#state.Transaction), which produces a _new_ state\ninstance, without modifying the original object.\n\nAs such, _never_ mutate properties of a state directly. That'll\njust break things.\n*/\nclass EditorState {\n constructor(\n /**\n @internal\n */\n config, \n /**\n The current document.\n */\n doc, \n /**\n The current selection.\n */\n selection, \n /**\n @internal\n */\n values, computeSlot, tr) {\n this.config = config;\n this.doc = doc;\n this.selection = selection;\n this.values = values;\n this.status = config.statusTemplate.slice();\n this.computeSlot = computeSlot;\n // Fill in the computed state immediately, so that further queries\n // for it made during the update return this state\n if (tr)\n tr._state = this;\n for (let i = 0; i < this.config.dynamicSlots.length; i++)\n ensureAddr(this, i << 1);\n this.computeSlot = null;\n }\n field(field, require = true) {\n let addr = this.config.address[field.id];\n if (addr == null) {\n if (require)\n throw new RangeError(\"Field is not present in this state\");\n return undefined;\n }\n ensureAddr(this, addr);\n return getAddr(this, addr);\n }\n /**\n Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this\n state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec)\n can be passed. Unless\n [`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the\n [changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec\n are assumed to start in the _current_ document (not the document\n produced by previous specs), and its\n [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and\n [effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer\n to the document created by its _own_ changes. The resulting\n transaction contains the combined effect of all the different\n specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later\n specs take precedence over earlier ones.\n */\n update(...specs) {\n return resolveTransaction(this, specs, true);\n }\n /**\n @internal\n */\n applyTransaction(tr) {\n let conf = this.config, { base, compartments } = conf;\n for (let effect of tr.effects) {\n if (effect.is(Compartment.reconfigure)) {\n if (conf) {\n compartments = new Map;\n conf.compartments.forEach((val, key) => compartments.set(key, val));\n conf = null;\n }\n compartments.set(effect.value.compartment, effect.value.extension);\n }\n else if (effect.is(StateEffect.reconfigure)) {\n conf = null;\n base = effect.value;\n }\n else if (effect.is(StateEffect.appendConfig)) {\n conf = null;\n base = asArray(base).concat(effect.value);\n }\n }\n let startValues;\n if (!conf) {\n conf = Configuration.resolve(base, compartments, this);\n let intermediateState = new EditorState(conf, this.doc, this.selection, conf.dynamicSlots.map(() => null), (state, slot) => slot.reconfigure(state, this), null);\n startValues = intermediateState.values;\n }\n else {\n startValues = tr.startState.values.slice();\n }\n let selection = tr.startState.facet(allowMultipleSelections) ? tr.newSelection : tr.newSelection.asSingle();\n new EditorState(conf, tr.newDoc, selection, startValues, (state, slot) => slot.update(state, tr), tr);\n }\n /**\n Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that\n replaces every selection range with the given content.\n */\n replaceSelection(text) {\n if (typeof text == \"string\")\n text = this.toText(text);\n return this.changeByRange(range => ({ changes: { from: range.from, to: range.to, insert: text },\n range: EditorSelection.cursor(range.from + text.length) }));\n }\n /**\n Create a set of changes and a new selection by running the given\n function for each range in the active selection. The function\n can return an optional set of changes (in the coordinate space\n of the start document), plus an updated range (in the coordinate\n space of the document produced by the call's own changes). This\n method will merge all the changes and ranges into a single\n changeset and selection, and return it as a [transaction\n spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to\n [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).\n */\n changeByRange(f) {\n let sel = this.selection;\n let result1 = f(sel.ranges[0]);\n let changes = this.changes(result1.changes), ranges = [result1.range];\n let effects = asArray(result1.effects);\n for (let i = 1; i < sel.ranges.length; i++) {\n let result = f(sel.ranges[i]);\n let newChanges = this.changes(result.changes), newMapped = newChanges.map(changes);\n for (let j = 0; j < i; j++)\n ranges[j] = ranges[j].map(newMapped);\n let mapBy = changes.mapDesc(newChanges, true);\n ranges.push(result.range.map(mapBy));\n changes = changes.compose(newMapped);\n effects = StateEffect.mapEffects(effects, newMapped).concat(StateEffect.mapEffects(asArray(result.effects), mapBy));\n }\n return {\n changes,\n selection: EditorSelection.create(ranges, sel.mainIndex),\n effects\n };\n }\n /**\n Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change\n description, taking the state's document length and line\n separator into account.\n */\n changes(spec = []) {\n if (spec instanceof ChangeSet)\n return spec;\n return ChangeSet.of(spec, this.doc.length, this.facet(EditorState.lineSeparator));\n }\n /**\n Using the state's [line\n separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a\n [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.\n */\n toText(string) {\n return Text.of(string.split(this.facet(EditorState.lineSeparator) || DefaultSplit));\n }\n /**\n Return the given range of the document as a string.\n */\n sliceDoc(from = 0, to = this.doc.length) {\n return this.doc.sliceString(from, to, this.lineBreak);\n }\n /**\n Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet).\n */\n facet(facet) {\n let addr = this.config.address[facet.id];\n if (addr == null)\n return facet.default;\n ensureAddr(this, addr);\n return getAddr(this, addr);\n }\n /**\n Convert this state to a JSON-serializable object. When custom\n fields should be serialized, you can pass them in as an object\n mapping property names (in the resulting object, which should\n not use `doc` or `selection`) to fields.\n */\n toJSON(fields) {\n let result = {\n doc: this.sliceDoc(),\n selection: this.selection.toJSON()\n };\n if (fields)\n for (let prop in fields) {\n let value = fields[prop];\n if (value instanceof StateField && this.config.address[value.id] != null)\n result[prop] = value.spec.toJSON(this.field(fields[prop]), this);\n }\n return result;\n }\n /**\n Deserialize a state from its JSON representation. When custom\n fields should be deserialized, pass the same object you passed\n to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as\n third argument.\n */\n static fromJSON(json, config = {}, fields) {\n if (!json || typeof json.doc != \"string\")\n throw new RangeError(\"Invalid JSON representation for EditorState\");\n let fieldInit = [];\n if (fields)\n for (let prop in fields) {\n if (Object.prototype.hasOwnProperty.call(json, prop)) {\n let field = fields[prop], value = json[prop];\n fieldInit.push(field.init(state => field.spec.fromJSON(value, state)));\n }\n }\n return EditorState.create({\n doc: json.doc,\n selection: EditorSelection.fromJSON(json.selection),\n extensions: config.extensions ? fieldInit.concat([config.extensions]) : fieldInit\n });\n }\n /**\n Create a new state. You'll usually only need this when\n initializing an editor—updated states are created by applying\n transactions.\n */\n static create(config = {}) {\n let configuration = Configuration.resolve(config.extensions || [], new Map);\n let doc = config.doc instanceof Text ? config.doc\n : Text.of((config.doc || \"\").split(configuration.staticFacet(EditorState.lineSeparator) || DefaultSplit));\n let selection = !config.selection ? EditorSelection.single(0)\n : config.selection instanceof EditorSelection ? config.selection\n : EditorSelection.single(config.selection.anchor, config.selection.head);\n checkSelection(selection, doc.length);\n if (!configuration.staticFacet(allowMultipleSelections))\n selection = selection.asSingle();\n return new EditorState(configuration, doc, selection, configuration.dynamicSlots.map(() => null), (state, slot) => slot.create(state), null);\n }\n /**\n The size (in columns) of a tab in the document, determined by\n the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.\n */\n get tabSize() { return this.facet(EditorState.tabSize); }\n /**\n Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)\n string for this state.\n */\n get lineBreak() { return this.facet(EditorState.lineSeparator) || \"\\n\"; }\n /**\n Returns true when the editor is\n [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.\n */\n get readOnly() { return this.facet(readOnly); }\n /**\n Look up a translation for the given phrase (via the\n [`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the\n original string if no translation is found.\n \n If additional arguments are passed, they will be inserted in\n place of markers like `$1` (for the first value) and `$2`, etc.\n A single `$` is equivalent to `$1`, and `$$` will produce a\n literal dollar sign.\n */\n phrase(phrase, ...insert) {\n for (let map of this.facet(EditorState.phrases))\n if (Object.prototype.hasOwnProperty.call(map, phrase)) {\n phrase = map[phrase];\n break;\n }\n if (insert.length)\n phrase = phrase.replace(/\\$(\\$|\\d*)/g, (m, i) => {\n if (i == \"$\")\n return \"$\";\n let n = +(i || 1);\n return !n || n > insert.length ? m : insert[n - 1];\n });\n return phrase;\n }\n /**\n Find the values for a given language data field, provided by the\n the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.\n \n Examples of language data fields are...\n \n - [`\"commentTokens\"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying\n comment syntax.\n - [`\"autocomplete\"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)\n for providing language-specific completion sources.\n - [`\"wordChars\"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding\n characters that should be considered part of words in this\n language.\n - [`\"closeBrackets\"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls\n bracket closing behavior.\n */\n languageDataAt(name, pos, side = -1) {\n let values = [];\n for (let provider of this.facet(languageData)) {\n for (let result of provider(this, pos, side)) {\n if (Object.prototype.hasOwnProperty.call(result, name))\n values.push(result[name]);\n }\n }\n return values;\n }\n /**\n Return a function that can categorize strings (expected to\n represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak))\n into one of:\n \n - Word (contains an alphanumeric character or a character\n explicitly listed in the local language's `\"wordChars\"`\n language data, which should be a string)\n - Space (contains only whitespace)\n - Other (anything else)\n */\n charCategorizer(at) {\n return makeCategorizer(this.languageDataAt(\"wordChars\", at).join(\"\"));\n }\n /**\n Find the word at the given position, meaning the range\n containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters\n around it. If no word characters are adjacent to the position,\n this returns null.\n */\n wordAt(pos) {\n let { text, from, length } = this.doc.lineAt(pos);\n let cat = this.charCategorizer(pos);\n let start = pos - from, end = pos - from;\n while (start > 0) {\n let prev = findClusterBreak(text, start, false);\n if (cat(text.slice(prev, start)) != CharCategory.Word)\n break;\n start = prev;\n }\n while (end < length) {\n let next = findClusterBreak(text, end);\n if (cat(text.slice(end, next)) != CharCategory.Word)\n break;\n end = next;\n }\n return start == end ? null : EditorSelection.range(start + from, end + from);\n }\n}\n/**\nA facet that, when enabled, causes the editor to allow multiple\nranges to be selected. Be careful though, because by default the\neditor relies on the native DOM selection, which cannot handle\nmultiple selections. An extension like\n[`drawSelection`](https://codemirror.net/6/docs/ref/#view.drawSelection) can be used to make\nsecondary selections visible to the user.\n*/\nEditorState.allowMultipleSelections = allowMultipleSelections;\n/**\nConfigures the tab size to use in this state. The first\n(highest-precedence) value of the facet is used. If no value is\ngiven, this defaults to 4.\n*/\nEditorState.tabSize = /*@__PURE__*/Facet.define({\n combine: values => values.length ? values[0] : 4\n});\n/**\nThe line separator to use. By default, any of `\"\\n\"`, `\"\\r\\n\"`\nand `\"\\r\"` is treated as a separator when splitting lines, and\nlines are joined with `\"\\n\"`.\n\nWhen you configure a value here, only that precise separator\nwill be used, allowing you to round-trip documents through the\neditor without normalizing line separators.\n*/\nEditorState.lineSeparator = lineSeparator;\n/**\nThis facet controls the value of the\n[`readOnly`](https://codemirror.net/6/docs/ref/#state.EditorState.readOnly) getter, which is\nconsulted by commands and extensions that implement editing\nfunctionality to determine whether they should apply. It\ndefaults to false, but when its highest-precedence value is\n`true`, such functionality disables itself.\n\nNot to be confused with\n[`EditorView.editable`](https://codemirror.net/6/docs/ref/#view.EditorView^editable), which\ncontrols whether the editor's DOM is set to be editable (and\nthus focusable).\n*/\nEditorState.readOnly = readOnly;\n/**\nRegisters translation phrases. The\n[`phrase`](https://codemirror.net/6/docs/ref/#state.EditorState.phrase) method will look through\nall objects registered with this facet to find translations for\nits argument.\n*/\nEditorState.phrases = /*@__PURE__*/Facet.define({\n compare(a, b) {\n let kA = Object.keys(a), kB = Object.keys(b);\n return kA.length == kB.length && kA.every(k => a[k] == b[k]);\n }\n});\n/**\nA facet used to register [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) providers.\n*/\nEditorState.languageData = languageData;\n/**\nFacet used to register change filters, which are called for each\ntransaction (unless explicitly\n[disabled](https://codemirror.net/6/docs/ref/#state.TransactionSpec.filter)), and can suppress\npart of the transaction's changes.\n\nSuch a function can return `true` to indicate that it doesn't\nwant to do anything, `false` to completely stop the changes in\nthe transaction, or a set of ranges in which changes should be\nsuppressed. Such ranges are represented as an array of numbers,\nwith each pair of two numbers indicating the start and end of a\nrange. So for example `[10, 20, 100, 110]` suppresses changes\nbetween 10 and 20, and between 100 and 110.\n*/\nEditorState.changeFilter = changeFilter;\n/**\nFacet used to register a hook that gets a chance to update or\nreplace transaction specs before they are applied. This will\nonly be applied for transactions that don't have\n[`filter`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.filter) set to `false`. You\ncan either return a single transaction spec (possibly the input\ntransaction), or an array of specs (which will be combined in\nthe same way as the arguments to\n[`EditorState.update`](https://codemirror.net/6/docs/ref/#state.EditorState.update)).\n\nWhen possible, it is recommended to avoid accessing\n[`Transaction.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state) in a filter,\nsince it will force creation of a state that will then be\ndiscarded again, if the transaction is actually filtered.\n\n(This functionality should be used with care. Indiscriminately\nmodifying transaction is likely to break something or degrade\nthe user experience.)\n*/\nEditorState.transactionFilter = transactionFilter;\n/**\nThis is a more limited form of\n[`transactionFilter`](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter),\nwhich can only add\n[annotations](https://codemirror.net/6/docs/ref/#state.TransactionSpec.annotations) and\n[effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects). _But_, this type\nof filter runs even if the transaction has disabled regular\n[filtering](https://codemirror.net/6/docs/ref/#state.TransactionSpec.filter), making it suitable\nfor effects that don't need to touch the changes or selection,\nbut do want to process every transaction.\n\nExtenders run _after_ filters, when both are present.\n*/\nEditorState.transactionExtender = transactionExtender;\nCompartment.reconfigure = /*@__PURE__*/StateEffect.define();\n\n/**\nUtility function for combining behaviors to fill in a config\nobject from an array of provided configs. `defaults` should hold\ndefault values for all optional fields in `Config`.\n\nThe function will, by default, error\nwhen a field gets two values that aren't `===`-equal, but you can\nprovide combine functions per field to do something else.\n*/\nfunction combineConfig(configs, defaults, // Should hold only the optional properties of Config, but I haven't managed to express that\ncombine = {}) {\n let result = {};\n for (let config of configs)\n for (let key of Object.keys(config)) {\n let value = config[key], current = result[key];\n if (current === undefined)\n result[key] = value;\n else if (current === value || value === undefined) ; // No conflict\n else if (Object.hasOwnProperty.call(combine, key))\n result[key] = combine[key](current, value);\n else\n throw new Error(\"Config merge conflict for field \" + key);\n }\n for (let key in defaults)\n if (result[key] === undefined)\n result[key] = defaults[key];\n return result;\n}\n\n/**\nEach range is associated with a value, which must inherit from\nthis class.\n*/\nclass RangeValue {\n /**\n Compare this value with another value. Used when comparing\n rangesets. The default implementation compares by identity.\n Unless you are only creating a fixed number of unique instances\n of your value type, it is a good idea to implement this\n properly.\n */\n eq(other) { return this == other; }\n /**\n Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.\n */\n range(from, to = from) { return Range.create(from, to, this); }\n}\nRangeValue.prototype.startSide = RangeValue.prototype.endSide = 0;\nRangeValue.prototype.point = false;\nRangeValue.prototype.mapMode = MapMode.TrackDel;\n/**\nA range associates a value with a range of positions.\n*/\nclass Range {\n constructor(\n /**\n The range's start position.\n */\n from, \n /**\n Its end position.\n */\n to, \n /**\n The value associated with this range.\n */\n value) {\n this.from = from;\n this.to = to;\n this.value = value;\n }\n /**\n @internal\n */\n static create(from, to, value) {\n return new Range(from, to, value);\n }\n}\nfunction cmpRange(a, b) {\n return a.from - b.from || a.value.startSide - b.value.startSide;\n}\nclass Chunk {\n constructor(from, to, value, \n // Chunks are marked with the largest point that occurs\n // in them (or -1 for no points), so that scans that are\n // only interested in points (such as the\n // heightmap-related logic) can skip range-only chunks.\n maxPoint) {\n this.from = from;\n this.to = to;\n this.value = value;\n this.maxPoint = maxPoint;\n }\n get length() { return this.to[this.to.length - 1]; }\n // Find the index of the given position and side. Use the ranges'\n // `from` pos when `end == false`, `to` when `end == true`.\n findIndex(pos, side, end, startAt = 0) {\n let arr = end ? this.to : this.from;\n for (let lo = startAt, hi = arr.length;;) {\n if (lo == hi)\n return lo;\n let mid = (lo + hi) >> 1;\n let diff = arr[mid] - pos || (end ? this.value[mid].endSide : this.value[mid].startSide) - side;\n if (mid == lo)\n return diff >= 0 ? lo : hi;\n if (diff >= 0)\n hi = mid;\n else\n lo = mid + 1;\n }\n }\n between(offset, from, to, f) {\n for (let i = this.findIndex(from, -1000000000 /* C.Far */, true), e = this.findIndex(to, 1000000000 /* C.Far */, false, i); i < e; i++)\n if (f(this.from[i] + offset, this.to[i] + offset, this.value[i]) === false)\n return false;\n }\n map(offset, changes) {\n let value = [], from = [], to = [], newPos = -1, maxPoint = -1;\n for (let i = 0; i < this.value.length; i++) {\n let val = this.value[i], curFrom = this.from[i] + offset, curTo = this.to[i] + offset, newFrom, newTo;\n if (curFrom == curTo) {\n let mapped = changes.mapPos(curFrom, val.startSide, val.mapMode);\n if (mapped == null)\n continue;\n newFrom = newTo = mapped;\n if (val.startSide != val.endSide) {\n newTo = changes.mapPos(curFrom, val.endSide);\n if (newTo < newFrom)\n continue;\n }\n }\n else {\n newFrom = changes.mapPos(curFrom, val.startSide);\n newTo = changes.mapPos(curTo, val.endSide);\n if (newFrom > newTo || newFrom == newTo && val.startSide > 0 && val.endSide <= 0)\n continue;\n }\n if ((newTo - newFrom || val.endSide - val.startSide) < 0)\n continue;\n if (newPos < 0)\n newPos = newFrom;\n if (val.point)\n maxPoint = Math.max(maxPoint, newTo - newFrom);\n value.push(val);\n from.push(newFrom - newPos);\n to.push(newTo - newPos);\n }\n return { mapped: value.length ? new Chunk(from, to, value, maxPoint) : null, pos: newPos };\n }\n}\n/**\nA range set stores a collection of [ranges](https://codemirror.net/6/docs/ref/#state.Range) in a\nway that makes them efficient to [map](https://codemirror.net/6/docs/ref/#state.RangeSet.map) and\n[update](https://codemirror.net/6/docs/ref/#state.RangeSet.update). This is an immutable data\nstructure.\n*/\nclass RangeSet {\n constructor(\n /**\n @internal\n */\n chunkPos, \n /**\n @internal\n */\n chunk, \n /**\n @internal\n */\n nextLayer, \n /**\n @internal\n */\n maxPoint) {\n this.chunkPos = chunkPos;\n this.chunk = chunk;\n this.nextLayer = nextLayer;\n this.maxPoint = maxPoint;\n }\n /**\n @internal\n */\n static create(chunkPos, chunk, nextLayer, maxPoint) {\n return new RangeSet(chunkPos, chunk, nextLayer, maxPoint);\n }\n /**\n @internal\n */\n get length() {\n let last = this.chunk.length - 1;\n return last < 0 ? 0 : Math.max(this.chunkEnd(last), this.nextLayer.length);\n }\n /**\n The number of ranges in the set.\n */\n get size() {\n if (this.isEmpty)\n return 0;\n let size = this.nextLayer.size;\n for (let chunk of this.chunk)\n size += chunk.value.length;\n return size;\n }\n /**\n @internal\n */\n chunkEnd(index) {\n return this.chunkPos[index] + this.chunk[index].length;\n }\n /**\n Update the range set, optionally adding new ranges or filtering\n out existing ones.\n \n (Note: The type parameter is just there as a kludge to work\n around TypeScript variance issues that prevented `RangeSet`\n from being a subtype of `RangeSet` when `X` is a subtype of\n `Y`.)\n */\n update(updateSpec) {\n let { add = [], sort = false, filterFrom = 0, filterTo = this.length } = updateSpec;\n let filter = updateSpec.filter;\n if (add.length == 0 && !filter)\n return this;\n if (sort)\n add = add.slice().sort(cmpRange);\n if (this.isEmpty)\n return add.length ? RangeSet.of(add) : this;\n let cur = new LayerCursor(this, null, -1).goto(0), i = 0, spill = [];\n let builder = new RangeSetBuilder();\n while (cur.value || i < add.length) {\n if (i < add.length && (cur.from - add[i].from || cur.startSide - add[i].value.startSide) >= 0) {\n let range = add[i++];\n if (!builder.addInner(range.from, range.to, range.value))\n spill.push(range);\n }\n else if (cur.rangeIndex == 1 && cur.chunkIndex < this.chunk.length &&\n (i == add.length || this.chunkEnd(cur.chunkIndex) < add[i].from) &&\n (!filter || filterFrom > this.chunkEnd(cur.chunkIndex) || filterTo < this.chunkPos[cur.chunkIndex]) &&\n builder.addChunk(this.chunkPos[cur.chunkIndex], this.chunk[cur.chunkIndex])) {\n cur.nextChunk();\n }\n else {\n if (!filter || filterFrom > cur.to || filterTo < cur.from || filter(cur.from, cur.to, cur.value)) {\n if (!builder.addInner(cur.from, cur.to, cur.value))\n spill.push(Range.create(cur.from, cur.to, cur.value));\n }\n cur.next();\n }\n }\n return builder.finishInner(this.nextLayer.isEmpty && !spill.length ? RangeSet.empty\n : this.nextLayer.update({ add: spill, filter, filterFrom, filterTo }));\n }\n /**\n Map this range set through a set of changes, return the new set.\n */\n map(changes) {\n if (changes.empty || this.isEmpty)\n return this;\n let chunks = [], chunkPos = [], maxPoint = -1;\n for (let i = 0; i < this.chunk.length; i++) {\n let start = this.chunkPos[i], chunk = this.chunk[i];\n let touch = changes.touchesRange(start, start + chunk.length);\n if (touch === false) {\n maxPoint = Math.max(maxPoint, chunk.maxPoint);\n chunks.push(chunk);\n chunkPos.push(changes.mapPos(start));\n }\n else if (touch === true) {\n let { mapped, pos } = chunk.map(start, changes);\n if (mapped) {\n maxPoint = Math.max(maxPoint, mapped.maxPoint);\n chunks.push(mapped);\n chunkPos.push(pos);\n }\n }\n }\n let next = this.nextLayer.map(changes);\n return chunks.length == 0 ? next : new RangeSet(chunkPos, chunks, next || RangeSet.empty, maxPoint);\n }\n /**\n Iterate over the ranges that touch the region `from` to `to`,\n calling `f` for each. There is no guarantee that the ranges will\n be reported in any specific order. When the callback returns\n `false`, iteration stops.\n */\n between(from, to, f) {\n if (this.isEmpty)\n return;\n for (let i = 0; i < this.chunk.length; i++) {\n let start = this.chunkPos[i], chunk = this.chunk[i];\n if (to >= start && from <= start + chunk.length &&\n chunk.between(start, from - start, to - start, f) === false)\n return;\n }\n this.nextLayer.between(from, to, f);\n }\n /**\n Iterate over the ranges in this set, in order, including all\n ranges that end at or after `from`.\n */\n iter(from = 0) {\n return HeapCursor.from([this]).goto(from);\n }\n /**\n @internal\n */\n get isEmpty() { return this.nextLayer == this; }\n /**\n Iterate over the ranges in a collection of sets, in order,\n starting from `from`.\n */\n static iter(sets, from = 0) {\n return HeapCursor.from(sets).goto(from);\n }\n /**\n Iterate over two groups of sets, calling methods on `comparator`\n to notify it of possible differences.\n */\n static compare(oldSets, newSets, \n /**\n This indicates how the underlying data changed between these\n ranges, and is needed to synchronize the iteration.\n */\n textDiff, comparator, \n /**\n Can be used to ignore all non-point ranges, and points below\n the given size. When -1, all ranges are compared.\n */\n minPointSize = -1) {\n let a = oldSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);\n let b = newSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);\n let sharedChunks = findSharedChunks(a, b, textDiff);\n let sideA = new SpanCursor(a, sharedChunks, minPointSize);\n let sideB = new SpanCursor(b, sharedChunks, minPointSize);\n textDiff.iterGaps((fromA, fromB, length) => compare(sideA, fromA, sideB, fromB, length, comparator));\n if (textDiff.empty && textDiff.length == 0)\n compare(sideA, 0, sideB, 0, 0, comparator);\n }\n /**\n Compare the contents of two groups of range sets, returning true\n if they are equivalent in the given range.\n */\n static eq(oldSets, newSets, from = 0, to) {\n if (to == null)\n to = 1000000000 /* C.Far */ - 1;\n let a = oldSets.filter(set => !set.isEmpty && newSets.indexOf(set) < 0);\n let b = newSets.filter(set => !set.isEmpty && oldSets.indexOf(set) < 0);\n if (a.length != b.length)\n return false;\n if (!a.length)\n return true;\n let sharedChunks = findSharedChunks(a, b);\n let sideA = new SpanCursor(a, sharedChunks, 0).goto(from), sideB = new SpanCursor(b, sharedChunks, 0).goto(from);\n for (;;) {\n if (sideA.to != sideB.to ||\n !sameValues(sideA.active, sideB.active) ||\n sideA.point && (!sideB.point || !sideA.point.eq(sideB.point)))\n return false;\n if (sideA.to > to)\n return true;\n sideA.next();\n sideB.next();\n }\n }\n /**\n Iterate over a group of range sets at the same time, notifying\n the iterator about the ranges covering every given piece of\n content. Returns the open count (see\n [`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end\n of the iteration.\n */\n static spans(sets, from, to, iterator, \n /**\n When given and greater than -1, only points of at least this\n size are taken into account.\n */\n minPointSize = -1) {\n let cursor = new SpanCursor(sets, null, minPointSize).goto(from), pos = from;\n let openRanges = cursor.openStart;\n for (;;) {\n let curTo = Math.min(cursor.to, to);\n if (cursor.point) {\n let active = cursor.activeForPoint(cursor.to);\n let openCount = cursor.pointFrom < from ? active.length + 1\n : cursor.point.startSide < 0 ? active.length\n : Math.min(active.length, openRanges);\n iterator.point(pos, curTo, cursor.point, active, openCount, cursor.pointRank);\n openRanges = Math.min(cursor.openEnd(curTo), active.length);\n }\n else if (curTo > pos) {\n iterator.span(pos, curTo, cursor.active, openRanges);\n openRanges = cursor.openEnd(curTo);\n }\n if (cursor.to > to)\n return openRanges + (cursor.point && cursor.to > to ? 1 : 0);\n pos = cursor.to;\n cursor.next();\n }\n }\n /**\n Create a range set for the given range or array of ranges. By\n default, this expects the ranges to be _sorted_ (by start\n position and, if two start at the same position,\n `value.startSide`). You can pass `true` as second argument to\n cause the method to sort them.\n */\n static of(ranges, sort = false) {\n let build = new RangeSetBuilder();\n for (let range of ranges instanceof Range ? [ranges] : sort ? lazySort(ranges) : ranges)\n build.add(range.from, range.to, range.value);\n return build.finish();\n }\n /**\n Join an array of range sets into a single set.\n */\n static join(sets) {\n if (!sets.length)\n return RangeSet.empty;\n let result = sets[sets.length - 1];\n for (let i = sets.length - 2; i >= 0; i--) {\n for (let layer = sets[i]; layer != RangeSet.empty; layer = layer.nextLayer)\n result = new RangeSet(layer.chunkPos, layer.chunk, result, Math.max(layer.maxPoint, result.maxPoint));\n }\n return result;\n }\n}\n/**\nThe empty set of ranges.\n*/\nRangeSet.empty = /*@__PURE__*/new RangeSet([], [], null, -1);\nfunction lazySort(ranges) {\n if (ranges.length > 1)\n for (let prev = ranges[0], i = 1; i < ranges.length; i++) {\n let cur = ranges[i];\n if (cmpRange(prev, cur) > 0)\n return ranges.slice().sort(cmpRange);\n prev = cur;\n }\n return ranges;\n}\nRangeSet.empty.nextLayer = RangeSet.empty;\n/**\nA range set builder is a data structure that helps build up a\n[range set](https://codemirror.net/6/docs/ref/#state.RangeSet) directly, without first allocating\nan array of [`Range`](https://codemirror.net/6/docs/ref/#state.Range) objects.\n*/\nclass RangeSetBuilder {\n finishChunk(newArrays) {\n this.chunks.push(new Chunk(this.from, this.to, this.value, this.maxPoint));\n this.chunkPos.push(this.chunkStart);\n this.chunkStart = -1;\n this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint);\n this.maxPoint = -1;\n if (newArrays) {\n this.from = [];\n this.to = [];\n this.value = [];\n }\n }\n /**\n Create an empty builder.\n */\n constructor() {\n this.chunks = [];\n this.chunkPos = [];\n this.chunkStart = -1;\n this.last = null;\n this.lastFrom = -1000000000 /* C.Far */;\n this.lastTo = -1000000000 /* C.Far */;\n this.from = [];\n this.to = [];\n this.value = [];\n this.maxPoint = -1;\n this.setMaxPoint = -1;\n this.nextLayer = null;\n }\n /**\n Add a range. Ranges should be added in sorted (by `from` and\n `value.startSide`) order.\n */\n add(from, to, value) {\n if (!this.addInner(from, to, value))\n (this.nextLayer || (this.nextLayer = new RangeSetBuilder)).add(from, to, value);\n }\n /**\n @internal\n */\n addInner(from, to, value) {\n let diff = from - this.lastTo || value.startSide - this.last.endSide;\n if (diff <= 0 && (from - this.lastFrom || value.startSide - this.last.startSide) < 0)\n throw new Error(\"Ranges must be added sorted by `from` position and `startSide`\");\n if (diff < 0)\n return false;\n if (this.from.length == 250 /* C.ChunkSize */)\n this.finishChunk(true);\n if (this.chunkStart < 0)\n this.chunkStart = from;\n this.from.push(from - this.chunkStart);\n this.to.push(to - this.chunkStart);\n this.last = value;\n this.lastFrom = from;\n this.lastTo = to;\n this.value.push(value);\n if (value.point)\n this.maxPoint = Math.max(this.maxPoint, to - from);\n return true;\n }\n /**\n @internal\n */\n addChunk(from, chunk) {\n if ((from - this.lastTo || chunk.value[0].startSide - this.last.endSide) < 0)\n return false;\n if (this.from.length)\n this.finishChunk(true);\n this.setMaxPoint = Math.max(this.setMaxPoint, chunk.maxPoint);\n this.chunks.push(chunk);\n this.chunkPos.push(from);\n let last = chunk.value.length - 1;\n this.last = chunk.value[last];\n this.lastFrom = chunk.from[last] + from;\n this.lastTo = chunk.to[last] + from;\n return true;\n }\n /**\n Finish the range set. Returns the new set. The builder can't be\n used anymore after this has been called.\n */\n finish() { return this.finishInner(RangeSet.empty); }\n /**\n @internal\n */\n finishInner(next) {\n if (this.from.length)\n this.finishChunk(false);\n if (this.chunks.length == 0)\n return next;\n let result = RangeSet.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(next) : next, this.setMaxPoint);\n this.from = null; // Make sure further `add` calls produce errors\n return result;\n }\n}\nfunction findSharedChunks(a, b, textDiff) {\n let inA = new Map();\n for (let set of a)\n for (let i = 0; i < set.chunk.length; i++)\n if (set.chunk[i].maxPoint <= 0)\n inA.set(set.chunk[i], set.chunkPos[i]);\n let shared = new Set();\n for (let set of b)\n for (let i = 0; i < set.chunk.length; i++) {\n let known = inA.get(set.chunk[i]);\n if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i] &&\n !(textDiff === null || textDiff === void 0 ? void 0 : textDiff.touchesRange(known, known + set.chunk[i].length)))\n shared.add(set.chunk[i]);\n }\n return shared;\n}\nclass LayerCursor {\n constructor(layer, skip, minPoint, rank = 0) {\n this.layer = layer;\n this.skip = skip;\n this.minPoint = minPoint;\n this.rank = rank;\n }\n get startSide() { return this.value ? this.value.startSide : 0; }\n get endSide() { return this.value ? this.value.endSide : 0; }\n goto(pos, side = -1000000000 /* C.Far */) {\n this.chunkIndex = this.rangeIndex = 0;\n this.gotoInner(pos, side, false);\n return this;\n }\n gotoInner(pos, side, forward) {\n while (this.chunkIndex < this.layer.chunk.length) {\n let next = this.layer.chunk[this.chunkIndex];\n if (!(this.skip && this.skip.has(next) ||\n this.layer.chunkEnd(this.chunkIndex) < pos ||\n next.maxPoint < this.minPoint))\n break;\n this.chunkIndex++;\n forward = false;\n }\n if (this.chunkIndex < this.layer.chunk.length) {\n let rangeIndex = this.layer.chunk[this.chunkIndex].findIndex(pos - this.layer.chunkPos[this.chunkIndex], side, true);\n if (!forward || this.rangeIndex < rangeIndex)\n this.setRangeIndex(rangeIndex);\n }\n this.next();\n }\n forward(pos, side) {\n if ((this.to - pos || this.endSide - side) < 0)\n this.gotoInner(pos, side, true);\n }\n next() {\n for (;;) {\n if (this.chunkIndex == this.layer.chunk.length) {\n this.from = this.to = 1000000000 /* C.Far */;\n this.value = null;\n break;\n }\n else {\n let chunkPos = this.layer.chunkPos[this.chunkIndex], chunk = this.layer.chunk[this.chunkIndex];\n let from = chunkPos + chunk.from[this.rangeIndex];\n this.from = from;\n this.to = chunkPos + chunk.to[this.rangeIndex];\n this.value = chunk.value[this.rangeIndex];\n this.setRangeIndex(this.rangeIndex + 1);\n if (this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint)\n break;\n }\n }\n }\n setRangeIndex(index) {\n if (index == this.layer.chunk[this.chunkIndex].value.length) {\n this.chunkIndex++;\n if (this.skip) {\n while (this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]))\n this.chunkIndex++;\n }\n this.rangeIndex = 0;\n }\n else {\n this.rangeIndex = index;\n }\n }\n nextChunk() {\n this.chunkIndex++;\n this.rangeIndex = 0;\n this.next();\n }\n compare(other) {\n return this.from - other.from || this.startSide - other.startSide || this.rank - other.rank ||\n this.to - other.to || this.endSide - other.endSide;\n }\n}\nclass HeapCursor {\n constructor(heap) {\n this.heap = heap;\n }\n static from(sets, skip = null, minPoint = -1) {\n let heap = [];\n for (let i = 0; i < sets.length; i++) {\n for (let cur = sets[i]; !cur.isEmpty; cur = cur.nextLayer) {\n if (cur.maxPoint >= minPoint)\n heap.push(new LayerCursor(cur, skip, minPoint, i));\n }\n }\n return heap.length == 1 ? heap[0] : new HeapCursor(heap);\n }\n get startSide() { return this.value ? this.value.startSide : 0; }\n goto(pos, side = -1000000000 /* C.Far */) {\n for (let cur of this.heap)\n cur.goto(pos, side);\n for (let i = this.heap.length >> 1; i >= 0; i--)\n heapBubble(this.heap, i);\n this.next();\n return this;\n }\n forward(pos, side) {\n for (let cur of this.heap)\n cur.forward(pos, side);\n for (let i = this.heap.length >> 1; i >= 0; i--)\n heapBubble(this.heap, i);\n if ((this.to - pos || this.value.endSide - side) < 0)\n this.next();\n }\n next() {\n if (this.heap.length == 0) {\n this.from = this.to = 1000000000 /* C.Far */;\n this.value = null;\n this.rank = -1;\n }\n else {\n let top = this.heap[0];\n this.from = top.from;\n this.to = top.to;\n this.value = top.value;\n this.rank = top.rank;\n if (top.value)\n top.next();\n heapBubble(this.heap, 0);\n }\n }\n}\nfunction heapBubble(heap, index) {\n for (let cur = heap[index];;) {\n let childIndex = (index << 1) + 1;\n if (childIndex >= heap.length)\n break;\n let child = heap[childIndex];\n if (childIndex + 1 < heap.length && child.compare(heap[childIndex + 1]) >= 0) {\n child = heap[childIndex + 1];\n childIndex++;\n }\n if (cur.compare(child) < 0)\n break;\n heap[childIndex] = cur;\n heap[index] = child;\n index = childIndex;\n }\n}\nclass SpanCursor {\n constructor(sets, skip, minPoint) {\n this.minPoint = minPoint;\n this.active = [];\n this.activeTo = [];\n this.activeRank = [];\n this.minActive = -1;\n // A currently active point range, if any\n this.point = null;\n this.pointFrom = 0;\n this.pointRank = 0;\n this.to = -1000000000 /* C.Far */;\n this.endSide = 0;\n // The amount of open active ranges at the start of the iterator.\n // Not including points.\n this.openStart = -1;\n this.cursor = HeapCursor.from(sets, skip, minPoint);\n }\n goto(pos, side = -1000000000 /* C.Far */) {\n this.cursor.goto(pos, side);\n this.active.length = this.activeTo.length = this.activeRank.length = 0;\n this.minActive = -1;\n this.to = pos;\n this.endSide = side;\n this.openStart = -1;\n this.next();\n return this;\n }\n forward(pos, side) {\n while (this.minActive > -1 && (this.activeTo[this.minActive] - pos || this.active[this.minActive].endSide - side) < 0)\n this.removeActive(this.minActive);\n this.cursor.forward(pos, side);\n }\n removeActive(index) {\n remove(this.active, index);\n remove(this.activeTo, index);\n remove(this.activeRank, index);\n this.minActive = findMinIndex(this.active, this.activeTo);\n }\n addActive(trackOpen) {\n let i = 0, { value, to, rank } = this.cursor;\n // Organize active marks by rank first, then by size\n while (i < this.activeRank.length && (rank - this.activeRank[i] || to - this.activeTo[i]) > 0)\n i++;\n insert(this.active, i, value);\n insert(this.activeTo, i, to);\n insert(this.activeRank, i, rank);\n if (trackOpen)\n insert(trackOpen, i, this.cursor.from);\n this.minActive = findMinIndex(this.active, this.activeTo);\n }\n // After calling this, if `this.point` != null, the next range is a\n // point. Otherwise, it's a regular range, covered by `this.active`.\n next() {\n let from = this.to, wasPoint = this.point;\n this.point = null;\n let trackOpen = this.openStart < 0 ? [] : null;\n for (;;) {\n let a = this.minActive;\n if (a > -1 && (this.activeTo[a] - this.cursor.from || this.active[a].endSide - this.cursor.startSide) < 0) {\n if (this.activeTo[a] > from) {\n this.to = this.activeTo[a];\n this.endSide = this.active[a].endSide;\n break;\n }\n this.removeActive(a);\n if (trackOpen)\n remove(trackOpen, a);\n }\n else if (!this.cursor.value) {\n this.to = this.endSide = 1000000000 /* C.Far */;\n break;\n }\n else if (this.cursor.from > from) {\n this.to = this.cursor.from;\n this.endSide = this.cursor.startSide;\n break;\n }\n else {\n let nextVal = this.cursor.value;\n if (!nextVal.point) { // Opening a range\n this.addActive(trackOpen);\n this.cursor.next();\n }\n else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to) {\n // Ignore any non-empty points that end precisely at the end of the prev point\n this.cursor.next();\n }\n else { // New point\n this.point = nextVal;\n this.pointFrom = this.cursor.from;\n this.pointRank = this.cursor.rank;\n this.to = this.cursor.to;\n this.endSide = nextVal.endSide;\n this.cursor.next();\n this.forward(this.to, this.endSide);\n break;\n }\n }\n }\n if (trackOpen) {\n this.openStart = 0;\n for (let i = trackOpen.length - 1; i >= 0 && trackOpen[i] < from; i--)\n this.openStart++;\n }\n }\n activeForPoint(to) {\n if (!this.active.length)\n return this.active;\n let active = [];\n for (let i = this.active.length - 1; i >= 0; i--) {\n if (this.activeRank[i] < this.pointRank)\n break;\n if (this.activeTo[i] > to || this.activeTo[i] == to && this.active[i].endSide >= this.point.endSide)\n active.push(this.active[i]);\n }\n return active.reverse();\n }\n openEnd(to) {\n let open = 0;\n for (let i = this.activeTo.length - 1; i >= 0 && this.activeTo[i] > to; i--)\n open++;\n return open;\n }\n}\nfunction compare(a, startA, b, startB, length, comparator) {\n a.goto(startA);\n b.goto(startB);\n let endB = startB + length;\n let pos = startB, dPos = startB - startA;\n for (;;) {\n let diff = (a.to + dPos) - b.to || a.endSide - b.endSide;\n let end = diff < 0 ? a.to + dPos : b.to, clipEnd = Math.min(end, endB);\n if (a.point || b.point) {\n if (!(a.point && b.point && (a.point == b.point || a.point.eq(b.point)) &&\n sameValues(a.activeForPoint(a.to), b.activeForPoint(b.to))))\n comparator.comparePoint(pos, clipEnd, a.point, b.point);\n }\n else {\n if (clipEnd > pos && !sameValues(a.active, b.active))\n comparator.compareRange(pos, clipEnd, a.active, b.active);\n }\n if (end > endB)\n break;\n pos = end;\n if (diff <= 0)\n a.next();\n if (diff >= 0)\n b.next();\n }\n}\nfunction sameValues(a, b) {\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (a[i] != b[i] && !a[i].eq(b[i]))\n return false;\n return true;\n}\nfunction remove(array, index) {\n for (let i = index, e = array.length - 1; i < e; i++)\n array[i] = array[i + 1];\n array.pop();\n}\nfunction insert(array, index, value) {\n for (let i = array.length - 1; i >= index; i--)\n array[i + 1] = array[i];\n array[index] = value;\n}\nfunction findMinIndex(value, array) {\n let found = -1, foundPos = 1000000000 /* C.Far */;\n for (let i = 0; i < array.length; i++)\n if ((array[i] - foundPos || value[i].endSide - value[found].endSide) < 0) {\n found = i;\n foundPos = array[i];\n }\n return found;\n}\n\n/**\nCount the column position at the given offset into the string,\ntaking extending characters and tab size into account.\n*/\nfunction countColumn(string, tabSize, to = string.length) {\n let n = 0;\n for (let i = 0; i < to;) {\n if (string.charCodeAt(i) == 9) {\n n += tabSize - (n % tabSize);\n i++;\n }\n else {\n n++;\n i = findClusterBreak(string, i);\n }\n }\n return n;\n}\n/**\nFind the offset that corresponds to the given column position in a\nstring, taking extending characters and tab size into account. By\ndefault, the string length is returned when it is too short to\nreach the column. Pass `strict` true to make it return -1 in that\nsituation.\n*/\nfunction findColumn(string, col, tabSize, strict) {\n for (let i = 0, n = 0;;) {\n if (n >= col)\n return i;\n if (i == string.length)\n break;\n n += string.charCodeAt(i) == 9 ? tabSize - (n % tabSize) : 1;\n i = findClusterBreak(string, i);\n }\n return strict === true ? -1 : string.length;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@codemirror/state/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@codemirror/view/dist/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/@codemirror/view/dist/index.js ***! + \*****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ BidiSpan: () => (/* binding */ BidiSpan),\n/* harmony export */ BlockInfo: () => (/* binding */ BlockInfo),\n/* harmony export */ BlockType: () => (/* binding */ BlockType),\n/* harmony export */ Decoration: () => (/* binding */ Decoration),\n/* harmony export */ Direction: () => (/* binding */ Direction),\n/* harmony export */ EditorView: () => (/* binding */ EditorView),\n/* harmony export */ GutterMarker: () => (/* binding */ GutterMarker),\n/* harmony export */ MatchDecorator: () => (/* binding */ MatchDecorator),\n/* harmony export */ RectangleMarker: () => (/* binding */ RectangleMarker),\n/* harmony export */ ViewPlugin: () => (/* binding */ ViewPlugin),\n/* harmony export */ ViewUpdate: () => (/* binding */ ViewUpdate),\n/* harmony export */ WidgetType: () => (/* binding */ WidgetType),\n/* harmony export */ __test: () => (/* binding */ __test),\n/* harmony export */ closeHoverTooltips: () => (/* binding */ closeHoverTooltips),\n/* harmony export */ crosshairCursor: () => (/* binding */ crosshairCursor),\n/* harmony export */ drawSelection: () => (/* binding */ drawSelection),\n/* harmony export */ dropCursor: () => (/* binding */ dropCursor),\n/* harmony export */ getDrawSelectionConfig: () => (/* binding */ getDrawSelectionConfig),\n/* harmony export */ getPanel: () => (/* binding */ getPanel),\n/* harmony export */ getTooltip: () => (/* binding */ getTooltip),\n/* harmony export */ gutter: () => (/* binding */ gutter),\n/* harmony export */ gutterLineClass: () => (/* binding */ gutterLineClass),\n/* harmony export */ gutters: () => (/* binding */ gutters),\n/* harmony export */ hasHoverTooltips: () => (/* binding */ hasHoverTooltips),\n/* harmony export */ highlightActiveLine: () => (/* binding */ highlightActiveLine),\n/* harmony export */ highlightActiveLineGutter: () => (/* binding */ highlightActiveLineGutter),\n/* harmony export */ highlightSpecialChars: () => (/* binding */ highlightSpecialChars),\n/* harmony export */ highlightTrailingWhitespace: () => (/* binding */ highlightTrailingWhitespace),\n/* harmony export */ highlightWhitespace: () => (/* binding */ highlightWhitespace),\n/* harmony export */ hoverTooltip: () => (/* binding */ hoverTooltip),\n/* harmony export */ keymap: () => (/* binding */ keymap),\n/* harmony export */ layer: () => (/* binding */ layer),\n/* harmony export */ lineNumberMarkers: () => (/* binding */ lineNumberMarkers),\n/* harmony export */ lineNumbers: () => (/* binding */ lineNumbers),\n/* harmony export */ logException: () => (/* binding */ logException),\n/* harmony export */ panels: () => (/* binding */ panels),\n/* harmony export */ placeholder: () => (/* binding */ placeholder),\n/* harmony export */ rectangularSelection: () => (/* binding */ rectangularSelection),\n/* harmony export */ repositionTooltips: () => (/* binding */ repositionTooltips),\n/* harmony export */ runScopeHandlers: () => (/* binding */ runScopeHandlers),\n/* harmony export */ scrollPastEnd: () => (/* binding */ scrollPastEnd),\n/* harmony export */ showPanel: () => (/* binding */ showPanel),\n/* harmony export */ showTooltip: () => (/* binding */ showTooltip),\n/* harmony export */ tooltips: () => (/* binding */ tooltips)\n/* harmony export */ });\n/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @codemirror/state */ \"./node_modules/@codemirror/state/dist/index.js\");\n/* harmony import */ var style_mod__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! style-mod */ \"./node_modules/style-mod/src/style-mod.js\");\n/* harmony import */ var w3c_keyname__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! w3c-keyname */ \"./node_modules/w3c-keyname/index.js\");\n\n\n\n\nfunction getSelection(root) {\n let target;\n // Browsers differ on whether shadow roots have a getSelection\n // method. If it exists, use that, otherwise, call it on the\n // document.\n if (root.nodeType == 11) { // Shadow root\n target = root.getSelection ? root : root.ownerDocument;\n }\n else {\n target = root;\n }\n return target.getSelection();\n}\nfunction contains(dom, node) {\n return node ? dom == node || dom.contains(node.nodeType != 1 ? node.parentNode : node) : false;\n}\nfunction deepActiveElement(doc) {\n let elt = doc.activeElement;\n while (elt && elt.shadowRoot)\n elt = elt.shadowRoot.activeElement;\n return elt;\n}\nfunction hasSelection(dom, selection) {\n if (!selection.anchorNode)\n return false;\n try {\n // Firefox will raise 'permission denied' errors when accessing\n // properties of `sel.anchorNode` when it's in a generated CSS\n // element.\n return contains(dom, selection.anchorNode);\n }\n catch (_) {\n return false;\n }\n}\nfunction clientRectsFor(dom) {\n if (dom.nodeType == 3)\n return textRange(dom, 0, dom.nodeValue.length).getClientRects();\n else if (dom.nodeType == 1)\n return dom.getClientRects();\n else\n return [];\n}\n// Scans forward and backward through DOM positions equivalent to the\n// given one to see if the two are in the same place (i.e. after a\n// text node vs at the end of that text node)\nfunction isEquivalentPosition(node, off, targetNode, targetOff) {\n return targetNode ? (scanFor(node, off, targetNode, targetOff, -1) ||\n scanFor(node, off, targetNode, targetOff, 1)) : false;\n}\nfunction domIndex(node) {\n for (var index = 0;; index++) {\n node = node.previousSibling;\n if (!node)\n return index;\n }\n}\nfunction isBlockElement(node) {\n return node.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\\d|SECTION|PRE)$/.test(node.nodeName);\n}\nfunction scanFor(node, off, targetNode, targetOff, dir) {\n for (;;) {\n if (node == targetNode && off == targetOff)\n return true;\n if (off == (dir < 0 ? 0 : maxOffset(node))) {\n if (node.nodeName == \"DIV\")\n return false;\n let parent = node.parentNode;\n if (!parent || parent.nodeType != 1)\n return false;\n off = domIndex(node) + (dir < 0 ? 0 : 1);\n node = parent;\n }\n else if (node.nodeType == 1) {\n node = node.childNodes[off + (dir < 0 ? -1 : 0)];\n if (node.nodeType == 1 && node.contentEditable == \"false\")\n return false;\n off = dir < 0 ? maxOffset(node) : 0;\n }\n else {\n return false;\n }\n }\n}\nfunction maxOffset(node) {\n return node.nodeType == 3 ? node.nodeValue.length : node.childNodes.length;\n}\nfunction flattenRect(rect, left) {\n let x = left ? rect.left : rect.right;\n return { left: x, right: x, top: rect.top, bottom: rect.bottom };\n}\nfunction windowRect(win) {\n let vp = win.visualViewport;\n if (vp)\n return {\n left: 0, right: vp.width,\n top: 0, bottom: vp.height\n };\n return { left: 0, right: win.innerWidth,\n top: 0, bottom: win.innerHeight };\n}\nfunction getScale(elt, rect) {\n let scaleX = rect.width / elt.offsetWidth;\n let scaleY = rect.height / elt.offsetHeight;\n if (scaleX > 0.995 && scaleX < 1.005 || !isFinite(scaleX) || Math.abs(rect.width - elt.offsetWidth) < 1)\n scaleX = 1;\n if (scaleY > 0.995 && scaleY < 1.005 || !isFinite(scaleY) || Math.abs(rect.height - elt.offsetHeight) < 1)\n scaleY = 1;\n return { scaleX, scaleY };\n}\nfunction scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {\n let doc = dom.ownerDocument, win = doc.defaultView || window;\n for (let cur = dom, stop = false; cur && !stop;) {\n if (cur.nodeType == 1) { // Element\n let bounding, top = cur == doc.body;\n let scaleX = 1, scaleY = 1;\n if (top) {\n bounding = windowRect(win);\n }\n else {\n if (/^(fixed|sticky)$/.test(getComputedStyle(cur).position))\n stop = true;\n if (cur.scrollHeight <= cur.clientHeight && cur.scrollWidth <= cur.clientWidth) {\n cur = cur.assignedSlot || cur.parentNode;\n continue;\n }\n let rect = cur.getBoundingClientRect();\n ({ scaleX, scaleY } = getScale(cur, rect));\n // Make sure scrollbar width isn't included in the rectangle\n bounding = { left: rect.left, right: rect.left + cur.clientWidth * scaleX,\n top: rect.top, bottom: rect.top + cur.clientHeight * scaleY };\n }\n let moveX = 0, moveY = 0;\n if (y == \"nearest\") {\n if (rect.top < bounding.top) {\n moveY = -(bounding.top - rect.top + yMargin);\n if (side > 0 && rect.bottom > bounding.bottom + moveY)\n moveY = rect.bottom - bounding.bottom + moveY + yMargin;\n }\n else if (rect.bottom > bounding.bottom) {\n moveY = rect.bottom - bounding.bottom + yMargin;\n if (side < 0 && (rect.top - moveY) < bounding.top)\n moveY = -(bounding.top + moveY - rect.top + yMargin);\n }\n }\n else {\n let rectHeight = rect.bottom - rect.top, boundingHeight = bounding.bottom - bounding.top;\n let targetTop = y == \"center\" && rectHeight <= boundingHeight ? rect.top + rectHeight / 2 - boundingHeight / 2 :\n y == \"start\" || y == \"center\" && side < 0 ? rect.top - yMargin :\n rect.bottom - boundingHeight + yMargin;\n moveY = targetTop - bounding.top;\n }\n if (x == \"nearest\") {\n if (rect.left < bounding.left) {\n moveX = -(bounding.left - rect.left + xMargin);\n if (side > 0 && rect.right > bounding.right + moveX)\n moveX = rect.right - bounding.right + moveX + xMargin;\n }\n else if (rect.right > bounding.right) {\n moveX = rect.right - bounding.right + xMargin;\n if (side < 0 && rect.left < bounding.left + moveX)\n moveX = -(bounding.left + moveX - rect.left + xMargin);\n }\n }\n else {\n let targetLeft = x == \"center\" ? rect.left + (rect.right - rect.left) / 2 - (bounding.right - bounding.left) / 2 :\n (x == \"start\") == ltr ? rect.left - xMargin :\n rect.right - (bounding.right - bounding.left) + xMargin;\n moveX = targetLeft - bounding.left;\n }\n if (moveX || moveY) {\n if (top) {\n win.scrollBy(moveX, moveY);\n }\n else {\n let movedX = 0, movedY = 0;\n if (moveY) {\n let start = cur.scrollTop;\n cur.scrollTop += moveY / scaleY;\n movedY = (cur.scrollTop - start) * scaleY;\n }\n if (moveX) {\n let start = cur.scrollLeft;\n cur.scrollLeft += moveX / scaleX;\n movedX = (cur.scrollLeft - start) * scaleX;\n }\n rect = { left: rect.left - movedX, top: rect.top - movedY,\n right: rect.right - movedX, bottom: rect.bottom - movedY };\n if (movedX && Math.abs(movedX - moveX) < 1)\n x = \"nearest\";\n if (movedY && Math.abs(movedY - moveY) < 1)\n y = \"nearest\";\n }\n }\n if (top)\n break;\n cur = cur.assignedSlot || cur.parentNode;\n }\n else if (cur.nodeType == 11) { // A shadow root\n cur = cur.host;\n }\n else {\n break;\n }\n }\n}\nfunction scrollableParents(dom) {\n let doc = dom.ownerDocument, x, y;\n for (let cur = dom.parentNode; cur;) {\n if (cur == doc.body || (x && y)) {\n break;\n }\n else if (cur.nodeType == 1) {\n if (!y && cur.scrollHeight > cur.clientHeight)\n y = cur;\n if (!x && cur.scrollWidth > cur.clientWidth)\n x = cur;\n cur = cur.assignedSlot || cur.parentNode;\n }\n else if (cur.nodeType == 11) {\n cur = cur.host;\n }\n else {\n break;\n }\n }\n return { x, y };\n}\nclass DOMSelectionState {\n constructor() {\n this.anchorNode = null;\n this.anchorOffset = 0;\n this.focusNode = null;\n this.focusOffset = 0;\n }\n eq(domSel) {\n return this.anchorNode == domSel.anchorNode && this.anchorOffset == domSel.anchorOffset &&\n this.focusNode == domSel.focusNode && this.focusOffset == domSel.focusOffset;\n }\n setRange(range) {\n let { anchorNode, focusNode } = range;\n // Clip offsets to node size to avoid crashes when Safari reports bogus offsets (#1152)\n this.set(anchorNode, Math.min(range.anchorOffset, anchorNode ? maxOffset(anchorNode) : 0), focusNode, Math.min(range.focusOffset, focusNode ? maxOffset(focusNode) : 0));\n }\n set(anchorNode, anchorOffset, focusNode, focusOffset) {\n this.anchorNode = anchorNode;\n this.anchorOffset = anchorOffset;\n this.focusNode = focusNode;\n this.focusOffset = focusOffset;\n }\n}\nlet preventScrollSupported = null;\n// Feature-detects support for .focus({preventScroll: true}), and uses\n// a fallback kludge when not supported.\nfunction focusPreventScroll(dom) {\n if (dom.setActive)\n return dom.setActive(); // in IE\n if (preventScrollSupported)\n return dom.focus(preventScrollSupported);\n let stack = [];\n for (let cur = dom; cur; cur = cur.parentNode) {\n stack.push(cur, cur.scrollTop, cur.scrollLeft);\n if (cur == cur.ownerDocument)\n break;\n }\n dom.focus(preventScrollSupported == null ? {\n get preventScroll() {\n preventScrollSupported = { preventScroll: true };\n return true;\n }\n } : undefined);\n if (!preventScrollSupported) {\n preventScrollSupported = false;\n for (let i = 0; i < stack.length;) {\n let elt = stack[i++], top = stack[i++], left = stack[i++];\n if (elt.scrollTop != top)\n elt.scrollTop = top;\n if (elt.scrollLeft != left)\n elt.scrollLeft = left;\n }\n }\n}\nlet scratchRange;\nfunction textRange(node, from, to = from) {\n let range = scratchRange || (scratchRange = document.createRange());\n range.setEnd(node, to);\n range.setStart(node, from);\n return range;\n}\nfunction dispatchKey(elt, name, code, mods) {\n let options = { key: name, code: name, keyCode: code, which: code, cancelable: true };\n if (mods)\n ({ altKey: options.altKey, ctrlKey: options.ctrlKey, shiftKey: options.shiftKey, metaKey: options.metaKey } = mods);\n let down = new KeyboardEvent(\"keydown\", options);\n down.synthetic = true;\n elt.dispatchEvent(down);\n let up = new KeyboardEvent(\"keyup\", options);\n up.synthetic = true;\n elt.dispatchEvent(up);\n return down.defaultPrevented || up.defaultPrevented;\n}\nfunction getRoot(node) {\n while (node) {\n if (node && (node.nodeType == 9 || node.nodeType == 11 && node.host))\n return node;\n node = node.assignedSlot || node.parentNode;\n }\n return null;\n}\nfunction clearAttributes(node) {\n while (node.attributes.length)\n node.removeAttributeNode(node.attributes[0]);\n}\nfunction atElementStart(doc, selection) {\n let node = selection.focusNode, offset = selection.focusOffset;\n if (!node || selection.anchorNode != node || selection.anchorOffset != offset)\n return false;\n // Safari can report bogus offsets (#1152)\n offset = Math.min(offset, maxOffset(node));\n for (;;) {\n if (offset) {\n if (node.nodeType != 1)\n return false;\n let prev = node.childNodes[offset - 1];\n if (prev.contentEditable == \"false\")\n offset--;\n else {\n node = prev;\n offset = maxOffset(node);\n }\n }\n else if (node == doc) {\n return true;\n }\n else {\n offset = domIndex(node);\n node = node.parentNode;\n }\n }\n}\nfunction isScrolledToBottom(elt) {\n return elt.scrollTop > Math.max(1, elt.scrollHeight - elt.clientHeight - 4);\n}\nfunction textNodeBefore(startNode, startOffset) {\n for (let node = startNode, offset = startOffset;;) {\n if (node.nodeType == 3 && offset > 0) {\n return { node: node, offset: offset };\n }\n else if (node.nodeType == 1 && offset > 0) {\n if (node.contentEditable == \"false\")\n return null;\n node = node.childNodes[offset - 1];\n offset = maxOffset(node);\n }\n else if (node.parentNode && !isBlockElement(node)) {\n offset = domIndex(node);\n node = node.parentNode;\n }\n else {\n return null;\n }\n }\n}\nfunction textNodeAfter(startNode, startOffset) {\n for (let node = startNode, offset = startOffset;;) {\n if (node.nodeType == 3 && offset < node.nodeValue.length) {\n return { node: node, offset: offset };\n }\n else if (node.nodeType == 1 && offset < node.childNodes.length) {\n if (node.contentEditable == \"false\")\n return null;\n node = node.childNodes[offset];\n offset = 0;\n }\n else if (node.parentNode && !isBlockElement(node)) {\n offset = domIndex(node) + 1;\n node = node.parentNode;\n }\n else {\n return null;\n }\n }\n}\n\nclass DOMPos {\n constructor(node, offset, precise = true) {\n this.node = node;\n this.offset = offset;\n this.precise = precise;\n }\n static before(dom, precise) { return new DOMPos(dom.parentNode, domIndex(dom), precise); }\n static after(dom, precise) { return new DOMPos(dom.parentNode, domIndex(dom) + 1, precise); }\n}\nconst noChildren = [];\nclass ContentView {\n constructor() {\n this.parent = null;\n this.dom = null;\n this.flags = 2 /* ViewFlag.NodeDirty */;\n }\n get overrideDOMText() { return null; }\n get posAtStart() {\n return this.parent ? this.parent.posBefore(this) : 0;\n }\n get posAtEnd() {\n return this.posAtStart + this.length;\n }\n posBefore(view) {\n let pos = this.posAtStart;\n for (let child of this.children) {\n if (child == view)\n return pos;\n pos += child.length + child.breakAfter;\n }\n throw new RangeError(\"Invalid child in posBefore\");\n }\n posAfter(view) {\n return this.posBefore(view) + view.length;\n }\n sync(view, track) {\n if (this.flags & 2 /* ViewFlag.NodeDirty */) {\n let parent = this.dom;\n let prev = null, next;\n for (let child of this.children) {\n if (child.flags & 7 /* ViewFlag.Dirty */) {\n if (!child.dom && (next = prev ? prev.nextSibling : parent.firstChild)) {\n let contentView = ContentView.get(next);\n if (!contentView || !contentView.parent && contentView.canReuseDOM(child))\n child.reuseDOM(next);\n }\n child.sync(view, track);\n child.flags &= ~7 /* ViewFlag.Dirty */;\n }\n next = prev ? prev.nextSibling : parent.firstChild;\n if (track && !track.written && track.node == parent && next != child.dom)\n track.written = true;\n if (child.dom.parentNode == parent) {\n while (next && next != child.dom)\n next = rm$1(next);\n }\n else {\n parent.insertBefore(child.dom, next);\n }\n prev = child.dom;\n }\n next = prev ? prev.nextSibling : parent.firstChild;\n if (next && track && track.node == parent)\n track.written = true;\n while (next)\n next = rm$1(next);\n }\n else if (this.flags & 1 /* ViewFlag.ChildDirty */) {\n for (let child of this.children)\n if (child.flags & 7 /* ViewFlag.Dirty */) {\n child.sync(view, track);\n child.flags &= ~7 /* ViewFlag.Dirty */;\n }\n }\n }\n reuseDOM(_dom) { }\n localPosFromDOM(node, offset) {\n let after;\n if (node == this.dom) {\n after = this.dom.childNodes[offset];\n }\n else {\n let bias = maxOffset(node) == 0 ? 0 : offset == 0 ? -1 : 1;\n for (;;) {\n let parent = node.parentNode;\n if (parent == this.dom)\n break;\n if (bias == 0 && parent.firstChild != parent.lastChild) {\n if (node == parent.firstChild)\n bias = -1;\n else\n bias = 1;\n }\n node = parent;\n }\n if (bias < 0)\n after = node;\n else\n after = node.nextSibling;\n }\n if (after == this.dom.firstChild)\n return 0;\n while (after && !ContentView.get(after))\n after = after.nextSibling;\n if (!after)\n return this.length;\n for (let i = 0, pos = 0;; i++) {\n let child = this.children[i];\n if (child.dom == after)\n return pos;\n pos += child.length + child.breakAfter;\n }\n }\n domBoundsAround(from, to, offset = 0) {\n let fromI = -1, fromStart = -1, toI = -1, toEnd = -1;\n for (let i = 0, pos = offset, prevEnd = offset; i < this.children.length; i++) {\n let child = this.children[i], end = pos + child.length;\n if (pos < from && end > to)\n return child.domBoundsAround(from, to, pos);\n if (end >= from && fromI == -1) {\n fromI = i;\n fromStart = pos;\n }\n if (pos > to && child.dom.parentNode == this.dom) {\n toI = i;\n toEnd = prevEnd;\n break;\n }\n prevEnd = end;\n pos = end + child.breakAfter;\n }\n return { from: fromStart, to: toEnd < 0 ? offset + this.length : toEnd,\n startDOM: (fromI ? this.children[fromI - 1].dom.nextSibling : null) || this.dom.firstChild,\n endDOM: toI < this.children.length && toI >= 0 ? this.children[toI].dom : null };\n }\n markDirty(andParent = false) {\n this.flags |= 2 /* ViewFlag.NodeDirty */;\n this.markParentsDirty(andParent);\n }\n markParentsDirty(childList) {\n for (let parent = this.parent; parent; parent = parent.parent) {\n if (childList)\n parent.flags |= 2 /* ViewFlag.NodeDirty */;\n if (parent.flags & 1 /* ViewFlag.ChildDirty */)\n return;\n parent.flags |= 1 /* ViewFlag.ChildDirty */;\n childList = false;\n }\n }\n setParent(parent) {\n if (this.parent != parent) {\n this.parent = parent;\n if (this.flags & 7 /* ViewFlag.Dirty */)\n this.markParentsDirty(true);\n }\n }\n setDOM(dom) {\n if (this.dom == dom)\n return;\n if (this.dom)\n this.dom.cmView = null;\n this.dom = dom;\n dom.cmView = this;\n }\n get rootView() {\n for (let v = this;;) {\n let parent = v.parent;\n if (!parent)\n return v;\n v = parent;\n }\n }\n replaceChildren(from, to, children = noChildren) {\n this.markDirty();\n for (let i = from; i < to; i++) {\n let child = this.children[i];\n if (child.parent == this && children.indexOf(child) < 0)\n child.destroy();\n }\n this.children.splice(from, to - from, ...children);\n for (let i = 0; i < children.length; i++)\n children[i].setParent(this);\n }\n ignoreMutation(_rec) { return false; }\n ignoreEvent(_event) { return false; }\n childCursor(pos = this.length) {\n return new ChildCursor(this.children, pos, this.children.length);\n }\n childPos(pos, bias = 1) {\n return this.childCursor().findPos(pos, bias);\n }\n toString() {\n let name = this.constructor.name.replace(\"View\", \"\");\n return name + (this.children.length ? \"(\" + this.children.join() + \")\" :\n this.length ? \"[\" + (name == \"Text\" ? this.text : this.length) + \"]\" : \"\") +\n (this.breakAfter ? \"#\" : \"\");\n }\n static get(node) { return node.cmView; }\n get isEditable() { return true; }\n get isWidget() { return false; }\n get isHidden() { return false; }\n merge(from, to, source, hasStart, openStart, openEnd) {\n return false;\n }\n become(other) { return false; }\n canReuseDOM(other) {\n return other.constructor == this.constructor && !((this.flags | other.flags) & 8 /* ViewFlag.Composition */);\n }\n // When this is a zero-length view with a side, this should return a\n // number <= 0 to indicate it is before its position, or a\n // number > 0 when after its position.\n getSide() { return 0; }\n destroy() {\n for (let child of this.children)\n if (child.parent == this)\n child.destroy();\n this.parent = null;\n }\n}\nContentView.prototype.breakAfter = 0;\n// Remove a DOM node and return its next sibling.\nfunction rm$1(dom) {\n let next = dom.nextSibling;\n dom.parentNode.removeChild(dom);\n return next;\n}\nclass ChildCursor {\n constructor(children, pos, i) {\n this.children = children;\n this.pos = pos;\n this.i = i;\n this.off = 0;\n }\n findPos(pos, bias = 1) {\n for (;;) {\n if (pos > this.pos || pos == this.pos &&\n (bias > 0 || this.i == 0 || this.children[this.i - 1].breakAfter)) {\n this.off = pos - this.pos;\n return this;\n }\n let next = this.children[--this.i];\n this.pos -= next.length + next.breakAfter;\n }\n }\n}\nfunction replaceRange(parent, fromI, fromOff, toI, toOff, insert, breakAtStart, openStart, openEnd) {\n let { children } = parent;\n let before = children.length ? children[fromI] : null;\n let last = insert.length ? insert[insert.length - 1] : null;\n let breakAtEnd = last ? last.breakAfter : breakAtStart;\n // Change within a single child\n if (fromI == toI && before && !breakAtStart && !breakAtEnd && insert.length < 2 &&\n before.merge(fromOff, toOff, insert.length ? last : null, fromOff == 0, openStart, openEnd))\n return;\n if (toI < children.length) {\n let after = children[toI];\n // Make sure the end of the child after the update is preserved in `after`\n if (after && (toOff < after.length || after.breakAfter && (last === null || last === void 0 ? void 0 : last.breakAfter))) {\n // If we're splitting a child, separate part of it to avoid that\n // being mangled when updating the child before the update.\n if (fromI == toI) {\n after = after.split(toOff);\n toOff = 0;\n }\n // If the element after the replacement should be merged with\n // the last replacing element, update `content`\n if (!breakAtEnd && last && after.merge(0, toOff, last, true, 0, openEnd)) {\n insert[insert.length - 1] = after;\n }\n else {\n // Remove the start of the after element, if necessary, and\n // add it to `content`.\n if (toOff || after.children.length && !after.children[0].length)\n after.merge(0, toOff, null, false, 0, openEnd);\n insert.push(after);\n }\n }\n else if (after === null || after === void 0 ? void 0 : after.breakAfter) {\n // The element at `toI` is entirely covered by this range.\n // Preserve its line break, if any.\n if (last)\n last.breakAfter = 1;\n else\n breakAtStart = 1;\n }\n // Since we've handled the next element from the current elements\n // now, make sure `toI` points after that.\n toI++;\n }\n if (before) {\n before.breakAfter = breakAtStart;\n if (fromOff > 0) {\n if (!breakAtStart && insert.length && before.merge(fromOff, before.length, insert[0], false, openStart, 0)) {\n before.breakAfter = insert.shift().breakAfter;\n }\n else if (fromOff < before.length || before.children.length && before.children[before.children.length - 1].length == 0) {\n before.merge(fromOff, before.length, null, false, openStart, 0);\n }\n fromI++;\n }\n }\n // Try to merge widgets on the boundaries of the replacement\n while (fromI < toI && insert.length) {\n if (children[toI - 1].become(insert[insert.length - 1])) {\n toI--;\n insert.pop();\n openEnd = insert.length ? 0 : openStart;\n }\n else if (children[fromI].become(insert[0])) {\n fromI++;\n insert.shift();\n openStart = insert.length ? 0 : openEnd;\n }\n else {\n break;\n }\n }\n if (!insert.length && fromI && toI < children.length && !children[fromI - 1].breakAfter &&\n children[toI].merge(0, 0, children[fromI - 1], false, openStart, openEnd))\n fromI--;\n if (fromI < toI || insert.length)\n parent.replaceChildren(fromI, toI, insert);\n}\nfunction mergeChildrenInto(parent, from, to, insert, openStart, openEnd) {\n let cur = parent.childCursor();\n let { i: toI, off: toOff } = cur.findPos(to, 1);\n let { i: fromI, off: fromOff } = cur.findPos(from, -1);\n let dLen = from - to;\n for (let view of insert)\n dLen += view.length;\n parent.length += dLen;\n replaceRange(parent, fromI, fromOff, toI, toOff, insert, 0, openStart, openEnd);\n}\n\nlet nav = typeof navigator != \"undefined\" ? navigator : { userAgent: \"\", vendor: \"\", platform: \"\" };\nlet doc = typeof document != \"undefined\" ? document : { documentElement: { style: {} } };\nconst ie_edge = /*@__PURE__*//Edge\\/(\\d+)/.exec(nav.userAgent);\nconst ie_upto10 = /*@__PURE__*//MSIE \\d/.test(nav.userAgent);\nconst ie_11up = /*@__PURE__*//Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(nav.userAgent);\nconst ie = !!(ie_upto10 || ie_11up || ie_edge);\nconst gecko = !ie && /*@__PURE__*//gecko\\/(\\d+)/i.test(nav.userAgent);\nconst chrome = !ie && /*@__PURE__*//Chrome\\/(\\d+)/.exec(nav.userAgent);\nconst webkit = \"webkitFontSmoothing\" in doc.documentElement.style;\nconst safari = !ie && /*@__PURE__*//Apple Computer/.test(nav.vendor);\nconst ios = safari && (/*@__PURE__*//Mobile\\/\\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2);\nvar browser = {\n mac: ios || /*@__PURE__*//Mac/.test(nav.platform),\n windows: /*@__PURE__*//Win/.test(nav.platform),\n linux: /*@__PURE__*//Linux|X11/.test(nav.platform),\n ie,\n ie_version: ie_upto10 ? doc.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : 0,\n gecko,\n gecko_version: gecko ? +(/*@__PURE__*//Firefox\\/(\\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,\n chrome: !!chrome,\n chrome_version: chrome ? +chrome[1] : 0,\n ios,\n android: /*@__PURE__*//Android\\b/.test(nav.userAgent),\n webkit,\n safari,\n webkit_version: webkit ? +(/*@__PURE__*//\\bAppleWebKit\\/(\\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,\n tabSize: doc.documentElement.style.tabSize != null ? \"tab-size\" : \"-moz-tab-size\"\n};\n\nconst MaxJoinLen = 256;\nclass TextView extends ContentView {\n constructor(text) {\n super();\n this.text = text;\n }\n get length() { return this.text.length; }\n createDOM(textDOM) {\n this.setDOM(textDOM || document.createTextNode(this.text));\n }\n sync(view, track) {\n if (!this.dom)\n this.createDOM();\n if (this.dom.nodeValue != this.text) {\n if (track && track.node == this.dom)\n track.written = true;\n this.dom.nodeValue = this.text;\n }\n }\n reuseDOM(dom) {\n if (dom.nodeType == 3)\n this.createDOM(dom);\n }\n merge(from, to, source) {\n if ((this.flags & 8 /* ViewFlag.Composition */) ||\n source && (!(source instanceof TextView) ||\n this.length - (to - from) + source.length > MaxJoinLen ||\n (source.flags & 8 /* ViewFlag.Composition */)))\n return false;\n this.text = this.text.slice(0, from) + (source ? source.text : \"\") + this.text.slice(to);\n this.markDirty();\n return true;\n }\n split(from) {\n let result = new TextView(this.text.slice(from));\n this.text = this.text.slice(0, from);\n this.markDirty();\n result.flags |= this.flags & 8 /* ViewFlag.Composition */;\n return result;\n }\n localPosFromDOM(node, offset) {\n return node == this.dom ? offset : offset ? this.text.length : 0;\n }\n domAtPos(pos) { return new DOMPos(this.dom, pos); }\n domBoundsAround(_from, _to, offset) {\n return { from: offset, to: offset + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling };\n }\n coordsAt(pos, side) {\n return textCoords(this.dom, pos, side);\n }\n}\nclass MarkView extends ContentView {\n constructor(mark, children = [], length = 0) {\n super();\n this.mark = mark;\n this.children = children;\n this.length = length;\n for (let ch of children)\n ch.setParent(this);\n }\n setAttrs(dom) {\n clearAttributes(dom);\n if (this.mark.class)\n dom.className = this.mark.class;\n if (this.mark.attrs)\n for (let name in this.mark.attrs)\n dom.setAttribute(name, this.mark.attrs[name]);\n return dom;\n }\n canReuseDOM(other) {\n return super.canReuseDOM(other) && !((this.flags | other.flags) & 8 /* ViewFlag.Composition */);\n }\n reuseDOM(node) {\n if (node.nodeName == this.mark.tagName.toUpperCase()) {\n this.setDOM(node);\n this.flags |= 4 /* ViewFlag.AttrsDirty */ | 2 /* ViewFlag.NodeDirty */;\n }\n }\n sync(view, track) {\n if (!this.dom)\n this.setDOM(this.setAttrs(document.createElement(this.mark.tagName)));\n else if (this.flags & 4 /* ViewFlag.AttrsDirty */)\n this.setAttrs(this.dom);\n super.sync(view, track);\n }\n merge(from, to, source, _hasStart, openStart, openEnd) {\n if (source && (!(source instanceof MarkView && source.mark.eq(this.mark)) ||\n (from && openStart <= 0) || (to < this.length && openEnd <= 0)))\n return false;\n mergeChildrenInto(this, from, to, source ? source.children.slice() : [], openStart - 1, openEnd - 1);\n this.markDirty();\n return true;\n }\n split(from) {\n let result = [], off = 0, detachFrom = -1, i = 0;\n for (let elt of this.children) {\n let end = off + elt.length;\n if (end > from)\n result.push(off < from ? elt.split(from - off) : elt);\n if (detachFrom < 0 && off >= from)\n detachFrom = i;\n off = end;\n i++;\n }\n let length = this.length - from;\n this.length = from;\n if (detachFrom > -1) {\n this.children.length = detachFrom;\n this.markDirty();\n }\n return new MarkView(this.mark, result, length);\n }\n domAtPos(pos) {\n return inlineDOMAtPos(this, pos);\n }\n coordsAt(pos, side) {\n return coordsInChildren(this, pos, side);\n }\n}\nfunction textCoords(text, pos, side) {\n let length = text.nodeValue.length;\n if (pos > length)\n pos = length;\n let from = pos, to = pos, flatten = 0;\n if (pos == 0 && side < 0 || pos == length && side >= 0) {\n if (!(browser.chrome || browser.gecko)) { // These browsers reliably return valid rectangles for empty ranges\n if (pos) {\n from--;\n flatten = 1;\n } // FIXME this is wrong in RTL text\n else if (to < length) {\n to++;\n flatten = -1;\n }\n }\n }\n else {\n if (side < 0)\n from--;\n else if (to < length)\n to++;\n }\n let rects = textRange(text, from, to).getClientRects();\n if (!rects.length)\n return null;\n let rect = rects[(flatten ? flatten < 0 : side >= 0) ? 0 : rects.length - 1];\n if (browser.safari && !flatten && rect.width == 0)\n rect = Array.prototype.find.call(rects, r => r.width) || rect;\n return flatten ? flattenRect(rect, flatten < 0) : rect || null;\n}\n// Also used for collapsed ranges that don't have a placeholder widget!\nclass WidgetView extends ContentView {\n static create(widget, length, side) {\n return new WidgetView(widget, length, side);\n }\n constructor(widget, length, side) {\n super();\n this.widget = widget;\n this.length = length;\n this.side = side;\n this.prevWidget = null;\n }\n split(from) {\n let result = WidgetView.create(this.widget, this.length - from, this.side);\n this.length -= from;\n return result;\n }\n sync(view) {\n if (!this.dom || !this.widget.updateDOM(this.dom, view)) {\n if (this.dom && this.prevWidget)\n this.prevWidget.destroy(this.dom);\n this.prevWidget = null;\n this.setDOM(this.widget.toDOM(view));\n if (!this.widget.editable)\n this.dom.contentEditable = \"false\";\n }\n }\n getSide() { return this.side; }\n merge(from, to, source, hasStart, openStart, openEnd) {\n if (source && (!(source instanceof WidgetView) || !this.widget.compare(source.widget) ||\n from > 0 && openStart <= 0 || to < this.length && openEnd <= 0))\n return false;\n this.length = from + (source ? source.length : 0) + (this.length - to);\n return true;\n }\n become(other) {\n if (other instanceof WidgetView && other.side == this.side &&\n this.widget.constructor == other.widget.constructor) {\n if (!this.widget.compare(other.widget))\n this.markDirty(true);\n if (this.dom && !this.prevWidget)\n this.prevWidget = this.widget;\n this.widget = other.widget;\n this.length = other.length;\n return true;\n }\n return false;\n }\n ignoreMutation() { return true; }\n ignoreEvent(event) { return this.widget.ignoreEvent(event); }\n get overrideDOMText() {\n if (this.length == 0)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty;\n let top = this;\n while (top.parent)\n top = top.parent;\n let { view } = top, text = view && view.state.doc, start = this.posAtStart;\n return text ? text.slice(start, start + this.length) : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty;\n }\n domAtPos(pos) {\n return (this.length ? pos == 0 : this.side > 0)\n ? DOMPos.before(this.dom)\n : DOMPos.after(this.dom, pos == this.length);\n }\n domBoundsAround() { return null; }\n coordsAt(pos, side) {\n let custom = this.widget.coordsAt(this.dom, pos, side);\n if (custom)\n return custom;\n let rects = this.dom.getClientRects(), rect = null;\n if (!rects.length)\n return null;\n let fromBack = this.side ? this.side < 0 : pos > 0;\n for (let i = fromBack ? rects.length - 1 : 0;; i += (fromBack ? -1 : 1)) {\n rect = rects[i];\n if (pos > 0 ? i == 0 : i == rects.length - 1 || rect.top < rect.bottom)\n break;\n }\n return flattenRect(rect, !fromBack);\n }\n get isEditable() { return false; }\n get isWidget() { return true; }\n get isHidden() { return this.widget.isHidden; }\n destroy() {\n super.destroy();\n if (this.dom)\n this.widget.destroy(this.dom);\n }\n}\n// These are drawn around uneditable widgets to avoid a number of\n// browser bugs that show up when the cursor is directly next to\n// uneditable inline content.\nclass WidgetBufferView extends ContentView {\n constructor(side) {\n super();\n this.side = side;\n }\n get length() { return 0; }\n merge() { return false; }\n become(other) {\n return other instanceof WidgetBufferView && other.side == this.side;\n }\n split() { return new WidgetBufferView(this.side); }\n sync() {\n if (!this.dom) {\n let dom = document.createElement(\"img\");\n dom.className = \"cm-widgetBuffer\";\n dom.setAttribute(\"aria-hidden\", \"true\");\n this.setDOM(dom);\n }\n }\n getSide() { return this.side; }\n domAtPos(pos) { return this.side > 0 ? DOMPos.before(this.dom) : DOMPos.after(this.dom); }\n localPosFromDOM() { return 0; }\n domBoundsAround() { return null; }\n coordsAt(pos) {\n return this.dom.getBoundingClientRect();\n }\n get overrideDOMText() {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty;\n }\n get isHidden() { return true; }\n}\nTextView.prototype.children = WidgetView.prototype.children = WidgetBufferView.prototype.children = noChildren;\nfunction inlineDOMAtPos(parent, pos) {\n let dom = parent.dom, { children } = parent, i = 0;\n for (let off = 0; i < children.length; i++) {\n let child = children[i], end = off + child.length;\n if (end == off && child.getSide() <= 0)\n continue;\n if (pos > off && pos < end && child.dom.parentNode == dom)\n return child.domAtPos(pos - off);\n if (pos <= off)\n break;\n off = end;\n }\n for (let j = i; j > 0; j--) {\n let prev = children[j - 1];\n if (prev.dom.parentNode == dom)\n return prev.domAtPos(prev.length);\n }\n for (let j = i; j < children.length; j++) {\n let next = children[j];\n if (next.dom.parentNode == dom)\n return next.domAtPos(0);\n }\n return new DOMPos(dom, 0);\n}\n// Assumes `view`, if a mark view, has precisely 1 child.\nfunction joinInlineInto(parent, view, open) {\n let last, { children } = parent;\n if (open > 0 && view instanceof MarkView && children.length &&\n (last = children[children.length - 1]) instanceof MarkView && last.mark.eq(view.mark)) {\n joinInlineInto(last, view.children[0], open - 1);\n }\n else {\n children.push(view);\n view.setParent(parent);\n }\n parent.length += view.length;\n}\nfunction coordsInChildren(view, pos, side) {\n let before = null, beforePos = -1, after = null, afterPos = -1;\n function scan(view, pos) {\n for (let i = 0, off = 0; i < view.children.length && off <= pos; i++) {\n let child = view.children[i], end = off + child.length;\n if (end >= pos) {\n if (child.children.length) {\n scan(child, pos - off);\n }\n else if ((!after || after.isHidden && side > 0) &&\n (end > pos || off == end && child.getSide() > 0)) {\n after = child;\n afterPos = pos - off;\n }\n else if (off < pos || (off == end && child.getSide() < 0) && !child.isHidden) {\n before = child;\n beforePos = pos - off;\n }\n }\n off = end;\n }\n }\n scan(view, pos);\n let target = (side < 0 ? before : after) || before || after;\n if (target)\n return target.coordsAt(Math.max(0, target == before ? beforePos : afterPos), side);\n return fallbackRect(view);\n}\nfunction fallbackRect(view) {\n let last = view.dom.lastChild;\n if (!last)\n return view.dom.getBoundingClientRect();\n let rects = clientRectsFor(last);\n return rects[rects.length - 1] || null;\n}\n\nfunction combineAttrs(source, target) {\n for (let name in source) {\n if (name == \"class\" && target.class)\n target.class += \" \" + source.class;\n else if (name == \"style\" && target.style)\n target.style += \";\" + source.style;\n else\n target[name] = source[name];\n }\n return target;\n}\nconst noAttrs = /*@__PURE__*/Object.create(null);\nfunction attrsEq(a, b, ignore) {\n if (a == b)\n return true;\n if (!a)\n a = noAttrs;\n if (!b)\n b = noAttrs;\n let keysA = Object.keys(a), keysB = Object.keys(b);\n if (keysA.length - (ignore && keysA.indexOf(ignore) > -1 ? 1 : 0) !=\n keysB.length - (ignore && keysB.indexOf(ignore) > -1 ? 1 : 0))\n return false;\n for (let key of keysA) {\n if (key != ignore && (keysB.indexOf(key) == -1 || a[key] !== b[key]))\n return false;\n }\n return true;\n}\nfunction updateAttrs(dom, prev, attrs) {\n let changed = false;\n if (prev)\n for (let name in prev)\n if (!(attrs && name in attrs)) {\n changed = true;\n if (name == \"style\")\n dom.style.cssText = \"\";\n else\n dom.removeAttribute(name);\n }\n if (attrs)\n for (let name in attrs)\n if (!(prev && prev[name] == attrs[name])) {\n changed = true;\n if (name == \"style\")\n dom.style.cssText = attrs[name];\n else\n dom.setAttribute(name, attrs[name]);\n }\n return changed;\n}\nfunction getAttrs(dom) {\n let attrs = Object.create(null);\n for (let i = 0; i < dom.attributes.length; i++) {\n let attr = dom.attributes[i];\n attrs[attr.name] = attr.value;\n }\n return attrs;\n}\n\nclass LineView extends ContentView {\n constructor() {\n super(...arguments);\n this.children = [];\n this.length = 0;\n this.prevAttrs = undefined;\n this.attrs = null;\n this.breakAfter = 0;\n }\n // Consumes source\n merge(from, to, source, hasStart, openStart, openEnd) {\n if (source) {\n if (!(source instanceof LineView))\n return false;\n if (!this.dom)\n source.transferDOM(this); // Reuse source.dom when appropriate\n }\n if (hasStart)\n this.setDeco(source ? source.attrs : null);\n mergeChildrenInto(this, from, to, source ? source.children.slice() : [], openStart, openEnd);\n return true;\n }\n split(at) {\n let end = new LineView;\n end.breakAfter = this.breakAfter;\n if (this.length == 0)\n return end;\n let { i, off } = this.childPos(at);\n if (off) {\n end.append(this.children[i].split(off), 0);\n this.children[i].merge(off, this.children[i].length, null, false, 0, 0);\n i++;\n }\n for (let j = i; j < this.children.length; j++)\n end.append(this.children[j], 0);\n while (i > 0 && this.children[i - 1].length == 0)\n this.children[--i].destroy();\n this.children.length = i;\n this.markDirty();\n this.length = at;\n return end;\n }\n transferDOM(other) {\n if (!this.dom)\n return;\n this.markDirty();\n other.setDOM(this.dom);\n other.prevAttrs = this.prevAttrs === undefined ? this.attrs : this.prevAttrs;\n this.prevAttrs = undefined;\n this.dom = null;\n }\n setDeco(attrs) {\n if (!attrsEq(this.attrs, attrs)) {\n if (this.dom) {\n this.prevAttrs = this.attrs;\n this.markDirty();\n }\n this.attrs = attrs;\n }\n }\n append(child, openStart) {\n joinInlineInto(this, child, openStart);\n }\n // Only called when building a line view in ContentBuilder\n addLineDeco(deco) {\n let attrs = deco.spec.attributes, cls = deco.spec.class;\n if (attrs)\n this.attrs = combineAttrs(attrs, this.attrs || {});\n if (cls)\n this.attrs = combineAttrs({ class: cls }, this.attrs || {});\n }\n domAtPos(pos) {\n return inlineDOMAtPos(this, pos);\n }\n reuseDOM(node) {\n if (node.nodeName == \"DIV\") {\n this.setDOM(node);\n this.flags |= 4 /* ViewFlag.AttrsDirty */ | 2 /* ViewFlag.NodeDirty */;\n }\n }\n sync(view, track) {\n var _a;\n if (!this.dom) {\n this.setDOM(document.createElement(\"div\"));\n this.dom.className = \"cm-line\";\n this.prevAttrs = this.attrs ? null : undefined;\n }\n else if (this.flags & 4 /* ViewFlag.AttrsDirty */) {\n clearAttributes(this.dom);\n this.dom.className = \"cm-line\";\n this.prevAttrs = this.attrs ? null : undefined;\n }\n if (this.prevAttrs !== undefined) {\n updateAttrs(this.dom, this.prevAttrs, this.attrs);\n this.dom.classList.add(\"cm-line\");\n this.prevAttrs = undefined;\n }\n super.sync(view, track);\n let last = this.dom.lastChild;\n while (last && ContentView.get(last) instanceof MarkView)\n last = last.lastChild;\n if (!last || !this.length ||\n last.nodeName != \"BR\" && ((_a = ContentView.get(last)) === null || _a === void 0 ? void 0 : _a.isEditable) == false &&\n (!browser.ios || !this.children.some(ch => ch instanceof TextView))) {\n let hack = document.createElement(\"BR\");\n hack.cmIgnore = true;\n this.dom.appendChild(hack);\n }\n }\n measureTextSize() {\n if (this.children.length == 0 || this.length > 20)\n return null;\n let totalWidth = 0, textHeight;\n for (let child of this.children) {\n if (!(child instanceof TextView) || /[^ -~]/.test(child.text))\n return null;\n let rects = clientRectsFor(child.dom);\n if (rects.length != 1)\n return null;\n totalWidth += rects[0].width;\n textHeight = rects[0].height;\n }\n return !totalWidth ? null : {\n lineHeight: this.dom.getBoundingClientRect().height,\n charWidth: totalWidth / this.length,\n textHeight\n };\n }\n coordsAt(pos, side) {\n let rect = coordsInChildren(this, pos, side);\n // Correct rectangle height for empty lines when the returned\n // height is larger than the text height.\n if (!this.children.length && rect && this.parent) {\n let { heightOracle } = this.parent.view.viewState, height = rect.bottom - rect.top;\n if (Math.abs(height - heightOracle.lineHeight) < 2 && heightOracle.textHeight < height) {\n let dist = (height - heightOracle.textHeight) / 2;\n return { top: rect.top + dist, bottom: rect.bottom - dist, left: rect.left, right: rect.left };\n }\n }\n return rect;\n }\n become(other) {\n return other instanceof LineView && this.children.length == 0 && other.children.length == 0 &&\n attrsEq(this.attrs, other.attrs) && this.breakAfter == other.breakAfter;\n }\n covers() { return true; }\n static find(docView, pos) {\n for (let i = 0, off = 0; i < docView.children.length; i++) {\n let block = docView.children[i], end = off + block.length;\n if (end >= pos) {\n if (block instanceof LineView)\n return block;\n if (end > pos)\n break;\n }\n off = end + block.breakAfter;\n }\n return null;\n }\n}\nclass BlockWidgetView extends ContentView {\n constructor(widget, length, deco) {\n super();\n this.widget = widget;\n this.length = length;\n this.deco = deco;\n this.breakAfter = 0;\n this.prevWidget = null;\n }\n merge(from, to, source, _takeDeco, openStart, openEnd) {\n if (source && (!(source instanceof BlockWidgetView) || !this.widget.compare(source.widget) ||\n from > 0 && openStart <= 0 || to < this.length && openEnd <= 0))\n return false;\n this.length = from + (source ? source.length : 0) + (this.length - to);\n return true;\n }\n domAtPos(pos) {\n return pos == 0 ? DOMPos.before(this.dom) : DOMPos.after(this.dom, pos == this.length);\n }\n split(at) {\n let len = this.length - at;\n this.length = at;\n let end = new BlockWidgetView(this.widget, len, this.deco);\n end.breakAfter = this.breakAfter;\n return end;\n }\n get children() { return noChildren; }\n sync(view) {\n if (!this.dom || !this.widget.updateDOM(this.dom, view)) {\n if (this.dom && this.prevWidget)\n this.prevWidget.destroy(this.dom);\n this.prevWidget = null;\n this.setDOM(this.widget.toDOM(view));\n if (!this.widget.editable)\n this.dom.contentEditable = \"false\";\n }\n }\n get overrideDOMText() {\n return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty;\n }\n domBoundsAround() { return null; }\n become(other) {\n if (other instanceof BlockWidgetView &&\n other.widget.constructor == this.widget.constructor) {\n if (!other.widget.compare(this.widget))\n this.markDirty(true);\n if (this.dom && !this.prevWidget)\n this.prevWidget = this.widget;\n this.widget = other.widget;\n this.length = other.length;\n this.deco = other.deco;\n this.breakAfter = other.breakAfter;\n return true;\n }\n return false;\n }\n ignoreMutation() { return true; }\n ignoreEvent(event) { return this.widget.ignoreEvent(event); }\n get isEditable() { return false; }\n get isWidget() { return true; }\n coordsAt(pos, side) {\n return this.widget.coordsAt(this.dom, pos, side);\n }\n destroy() {\n super.destroy();\n if (this.dom)\n this.widget.destroy(this.dom);\n }\n covers(side) {\n let { startSide, endSide } = this.deco;\n return startSide == endSide ? false : side < 0 ? startSide < 0 : endSide > 0;\n }\n}\n\n/**\nWidgets added to the content are described by subclasses of this\nclass. Using a description object like that makes it possible to\ndelay creating of the DOM structure for a widget until it is\nneeded, and to avoid redrawing widgets even if the decorations\nthat define them are recreated.\n*/\nclass WidgetType {\n /**\n Compare this instance to another instance of the same type.\n (TypeScript can't express this, but only instances of the same\n specific class will be passed to this method.) This is used to\n avoid redrawing widgets when they are replaced by a new\n decoration of the same type. The default implementation just\n returns `false`, which will cause new instances of the widget to\n always be redrawn.\n */\n eq(widget) { return false; }\n /**\n Update a DOM element created by a widget of the same type (but\n different, non-`eq` content) to reflect this widget. May return\n true to indicate that it could update, false to indicate it\n couldn't (in which case the widget will be redrawn). The default\n implementation just returns false.\n */\n updateDOM(dom, view) { return false; }\n /**\n @internal\n */\n compare(other) {\n return this == other || this.constructor == other.constructor && this.eq(other);\n }\n /**\n The estimated height this widget will have, to be used when\n estimating the height of content that hasn't been drawn. May\n return -1 to indicate you don't know. The default implementation\n returns -1.\n */\n get estimatedHeight() { return -1; }\n /**\n For inline widgets that are displayed inline (as opposed to\n `inline-block`) and introduce line breaks (through `
` tags\n or textual newlines), this must indicate the amount of line\n breaks they introduce. Defaults to 0.\n */\n get lineBreaks() { return 0; }\n /**\n Can be used to configure which kinds of events inside the widget\n should be ignored by the editor. The default is to ignore all\n events.\n */\n ignoreEvent(event) { return true; }\n /**\n Override the way screen coordinates for positions at/in the\n widget are found. `pos` will be the offset into the widget, and\n `side` the side of the position that is being queried—less than\n zero for before, greater than zero for after, and zero for\n directly at that position.\n */\n coordsAt(dom, pos, side) { return null; }\n /**\n @internal\n */\n get isHidden() { return false; }\n /**\n @internal\n */\n get editable() { return false; }\n /**\n This is called when the an instance of the widget is removed\n from the editor view.\n */\n destroy(dom) { }\n}\n/**\nThe different types of blocks that can occur in an editor view.\n*/\nvar BlockType = /*@__PURE__*/(function (BlockType) {\n /**\n A line of text.\n */\n BlockType[BlockType[\"Text\"] = 0] = \"Text\";\n /**\n A block widget associated with the position after it.\n */\n BlockType[BlockType[\"WidgetBefore\"] = 1] = \"WidgetBefore\";\n /**\n A block widget associated with the position before it.\n */\n BlockType[BlockType[\"WidgetAfter\"] = 2] = \"WidgetAfter\";\n /**\n A block widget [replacing](https://codemirror.net/6/docs/ref/#view.Decoration^replace) a range of content.\n */\n BlockType[BlockType[\"WidgetRange\"] = 3] = \"WidgetRange\";\nreturn BlockType})(BlockType || (BlockType = {}));\n/**\nA decoration provides information on how to draw or style a piece\nof content. You'll usually use it wrapped in a\n[`Range`](https://codemirror.net/6/docs/ref/#state.Range), which adds a start and end position.\n@nonabstract\n*/\nclass Decoration extends _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeValue {\n constructor(\n /**\n @internal\n */\n startSide, \n /**\n @internal\n */\n endSide, \n /**\n @internal\n */\n widget, \n /**\n The config object used to create this decoration. You can\n include additional properties in there to store metadata about\n your decoration.\n */\n spec) {\n super();\n this.startSide = startSide;\n this.endSide = endSide;\n this.widget = widget;\n this.spec = spec;\n }\n /**\n @internal\n */\n get heightRelevant() { return false; }\n /**\n Create a mark decoration, which influences the styling of the\n content in its range. Nested mark decorations will cause nested\n DOM elements to be created. Nesting order is determined by\n precedence of the [facet](https://codemirror.net/6/docs/ref/#view.EditorView^decorations), with\n the higher-precedence decorations creating the inner DOM nodes.\n Such elements are split on line boundaries and on the boundaries\n of lower-precedence decorations.\n */\n static mark(spec) {\n return new MarkDecoration(spec);\n }\n /**\n Create a widget decoration, which displays a DOM element at the\n given position.\n */\n static widget(spec) {\n let side = Math.max(-10000, Math.min(10000, spec.side || 0)), block = !!spec.block;\n side += (block && !spec.inlineOrder)\n ? (side > 0 ? 300000000 /* Side.BlockAfter */ : -400000000 /* Side.BlockBefore */)\n : (side > 0 ? 100000000 /* Side.InlineAfter */ : -100000000 /* Side.InlineBefore */);\n return new PointDecoration(spec, side, side, block, spec.widget || null, false);\n }\n /**\n Create a replace decoration which replaces the given range with\n a widget, or simply hides it.\n */\n static replace(spec) {\n let block = !!spec.block, startSide, endSide;\n if (spec.isBlockGap) {\n startSide = -500000000 /* Side.GapStart */;\n endSide = 400000000 /* Side.GapEnd */;\n }\n else {\n let { start, end } = getInclusive(spec, block);\n startSide = (start ? (block ? -300000000 /* Side.BlockIncStart */ : -1 /* Side.InlineIncStart */) : 500000000 /* Side.NonIncStart */) - 1;\n endSide = (end ? (block ? 200000000 /* Side.BlockIncEnd */ : 1 /* Side.InlineIncEnd */) : -600000000 /* Side.NonIncEnd */) + 1;\n }\n return new PointDecoration(spec, startSide, endSide, block, spec.widget || null, true);\n }\n /**\n Create a line decoration, which can add DOM attributes to the\n line starting at the given position.\n */\n static line(spec) {\n return new LineDecoration(spec);\n }\n /**\n Build a [`DecorationSet`](https://codemirror.net/6/docs/ref/#view.DecorationSet) from the given\n decorated range or ranges. If the ranges aren't already sorted,\n pass `true` for `sort` to make the library sort them for you.\n */\n static set(of, sort = false) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.of(of, sort);\n }\n /**\n @internal\n */\n hasHeight() { return this.widget ? this.widget.estimatedHeight > -1 : false; }\n}\n/**\nThe empty set of decorations.\n*/\nDecoration.none = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.empty;\nclass MarkDecoration extends Decoration {\n constructor(spec) {\n let { start, end } = getInclusive(spec);\n super(start ? -1 /* Side.InlineIncStart */ : 500000000 /* Side.NonIncStart */, end ? 1 /* Side.InlineIncEnd */ : -600000000 /* Side.NonIncEnd */, null, spec);\n this.tagName = spec.tagName || \"span\";\n this.class = spec.class || \"\";\n this.attrs = spec.attributes || null;\n }\n eq(other) {\n var _a, _b;\n return this == other ||\n other instanceof MarkDecoration &&\n this.tagName == other.tagName &&\n (this.class || ((_a = this.attrs) === null || _a === void 0 ? void 0 : _a.class)) == (other.class || ((_b = other.attrs) === null || _b === void 0 ? void 0 : _b.class)) &&\n attrsEq(this.attrs, other.attrs, \"class\");\n }\n range(from, to = from) {\n if (from >= to)\n throw new RangeError(\"Mark decorations may not be empty\");\n return super.range(from, to);\n }\n}\nMarkDecoration.prototype.point = false;\nclass LineDecoration extends Decoration {\n constructor(spec) {\n super(-200000000 /* Side.Line */, -200000000 /* Side.Line */, null, spec);\n }\n eq(other) {\n return other instanceof LineDecoration &&\n this.spec.class == other.spec.class &&\n attrsEq(this.spec.attributes, other.spec.attributes);\n }\n range(from, to = from) {\n if (to != from)\n throw new RangeError(\"Line decoration ranges must be zero-length\");\n return super.range(from, to);\n }\n}\nLineDecoration.prototype.mapMode = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.MapMode.TrackBefore;\nLineDecoration.prototype.point = true;\nclass PointDecoration extends Decoration {\n constructor(spec, startSide, endSide, block, widget, isReplace) {\n super(startSide, endSide, widget, spec);\n this.block = block;\n this.isReplace = isReplace;\n this.mapMode = !block ? _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.MapMode.TrackDel : startSide <= 0 ? _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.MapMode.TrackBefore : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.MapMode.TrackAfter;\n }\n // Only relevant when this.block == true\n get type() {\n return this.startSide != this.endSide ? BlockType.WidgetRange\n : this.startSide <= 0 ? BlockType.WidgetBefore : BlockType.WidgetAfter;\n }\n get heightRelevant() {\n return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);\n }\n eq(other) {\n return other instanceof PointDecoration &&\n widgetsEq(this.widget, other.widget) &&\n this.block == other.block &&\n this.startSide == other.startSide && this.endSide == other.endSide;\n }\n range(from, to = from) {\n if (this.isReplace && (from > to || (from == to && this.startSide > 0 && this.endSide <= 0)))\n throw new RangeError(\"Invalid range for replacement decoration\");\n if (!this.isReplace && to != from)\n throw new RangeError(\"Widget decorations can only have zero-length ranges\");\n return super.range(from, to);\n }\n}\nPointDecoration.prototype.point = true;\nfunction getInclusive(spec, block = false) {\n let { inclusiveStart: start, inclusiveEnd: end } = spec;\n if (start == null)\n start = spec.inclusive;\n if (end == null)\n end = spec.inclusive;\n return { start: start !== null && start !== void 0 ? start : block, end: end !== null && end !== void 0 ? end : block };\n}\nfunction widgetsEq(a, b) {\n return a == b || !!(a && b && a.compare(b));\n}\nfunction addRange(from, to, ranges, margin = 0) {\n let last = ranges.length - 1;\n if (last >= 0 && ranges[last] + margin >= from)\n ranges[last] = Math.max(ranges[last], to);\n else\n ranges.push(from, to);\n}\n\nclass ContentBuilder {\n constructor(doc, pos, end, disallowBlockEffectsFor) {\n this.doc = doc;\n this.pos = pos;\n this.end = end;\n this.disallowBlockEffectsFor = disallowBlockEffectsFor;\n this.content = [];\n this.curLine = null;\n this.breakAtStart = 0;\n this.pendingBuffer = 0 /* Buf.No */;\n this.bufferMarks = [];\n // Set to false directly after a widget that covers the position after it\n this.atCursorPos = true;\n this.openStart = -1;\n this.openEnd = -1;\n this.text = \"\";\n this.textOff = 0;\n this.cursor = doc.iter();\n this.skip = pos;\n }\n posCovered() {\n if (this.content.length == 0)\n return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos;\n let last = this.content[this.content.length - 1];\n return !(last.breakAfter || last instanceof BlockWidgetView && last.deco.endSide < 0);\n }\n getLine() {\n if (!this.curLine) {\n this.content.push(this.curLine = new LineView);\n this.atCursorPos = true;\n }\n return this.curLine;\n }\n flushBuffer(active = this.bufferMarks) {\n if (this.pendingBuffer) {\n this.curLine.append(wrapMarks(new WidgetBufferView(-1), active), active.length);\n this.pendingBuffer = 0 /* Buf.No */;\n }\n }\n addBlockWidget(view) {\n this.flushBuffer();\n this.curLine = null;\n this.content.push(view);\n }\n finish(openEnd) {\n if (this.pendingBuffer && openEnd <= this.bufferMarks.length)\n this.flushBuffer();\n else\n this.pendingBuffer = 0 /* Buf.No */;\n if (!this.posCovered() &&\n !(openEnd && this.content.length && this.content[this.content.length - 1] instanceof BlockWidgetView))\n this.getLine();\n }\n buildText(length, active, openStart) {\n while (length > 0) {\n if (this.textOff == this.text.length) {\n let { value, lineBreak, done } = this.cursor.next(this.skip);\n this.skip = 0;\n if (done)\n throw new Error(\"Ran out of text content when drawing inline views\");\n if (lineBreak) {\n if (!this.posCovered())\n this.getLine();\n if (this.content.length)\n this.content[this.content.length - 1].breakAfter = 1;\n else\n this.breakAtStart = 1;\n this.flushBuffer();\n this.curLine = null;\n this.atCursorPos = true;\n length--;\n continue;\n }\n else {\n this.text = value;\n this.textOff = 0;\n }\n }\n let take = Math.min(this.text.length - this.textOff, length, 512 /* T.Chunk */);\n this.flushBuffer(active.slice(active.length - openStart));\n this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff, this.textOff + take)), active), openStart);\n this.atCursorPos = true;\n this.textOff += take;\n length -= take;\n openStart = 0;\n }\n }\n span(from, to, active, openStart) {\n this.buildText(to - from, active, openStart);\n this.pos = to;\n if (this.openStart < 0)\n this.openStart = openStart;\n }\n point(from, to, deco, active, openStart, index) {\n if (this.disallowBlockEffectsFor[index] && deco instanceof PointDecoration) {\n if (deco.block)\n throw new RangeError(\"Block decorations may not be specified via plugins\");\n if (to > this.doc.lineAt(this.pos).to)\n throw new RangeError(\"Decorations that replace line breaks may not be specified via plugins\");\n }\n let len = to - from;\n if (deco instanceof PointDecoration) {\n if (deco.block) {\n if (deco.startSide > 0 && !this.posCovered())\n this.getLine();\n this.addBlockWidget(new BlockWidgetView(deco.widget || NullWidget.block, len, deco));\n }\n else {\n let view = WidgetView.create(deco.widget || NullWidget.inline, len, len ? 0 : deco.startSide);\n let cursorBefore = this.atCursorPos && !view.isEditable && openStart <= active.length &&\n (from < to || deco.startSide > 0);\n let cursorAfter = !view.isEditable && (from < to || openStart > active.length || deco.startSide <= 0);\n let line = this.getLine();\n if (this.pendingBuffer == 2 /* Buf.IfCursor */ && !cursorBefore && !view.isEditable)\n this.pendingBuffer = 0 /* Buf.No */;\n this.flushBuffer(active);\n if (cursorBefore) {\n line.append(wrapMarks(new WidgetBufferView(1), active), openStart);\n openStart = active.length + Math.max(0, openStart - active.length);\n }\n line.append(wrapMarks(view, active), openStart);\n this.atCursorPos = cursorAfter;\n this.pendingBuffer = !cursorAfter ? 0 /* Buf.No */ : from < to || openStart > active.length ? 1 /* Buf.Yes */ : 2 /* Buf.IfCursor */;\n if (this.pendingBuffer)\n this.bufferMarks = active.slice();\n }\n }\n else if (this.doc.lineAt(this.pos).from == this.pos) { // Line decoration\n this.getLine().addLineDeco(deco);\n }\n if (len) {\n // Advance the iterator past the replaced content\n if (this.textOff + len <= this.text.length) {\n this.textOff += len;\n }\n else {\n this.skip += len - (this.text.length - this.textOff);\n this.text = \"\";\n this.textOff = 0;\n }\n this.pos = to;\n }\n if (this.openStart < 0)\n this.openStart = openStart;\n }\n static build(text, from, to, decorations, dynamicDecorationMap) {\n let builder = new ContentBuilder(text, from, to, dynamicDecorationMap);\n builder.openEnd = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.spans(decorations, from, to, builder);\n if (builder.openStart < 0)\n builder.openStart = builder.openEnd;\n builder.finish(builder.openEnd);\n return builder;\n }\n}\nfunction wrapMarks(view, active) {\n for (let mark of active)\n view = new MarkView(mark, [view], view.length);\n return view;\n}\nclass NullWidget extends WidgetType {\n constructor(tag) {\n super();\n this.tag = tag;\n }\n eq(other) { return other.tag == this.tag; }\n toDOM() { return document.createElement(this.tag); }\n updateDOM(elt) { return elt.nodeName.toLowerCase() == this.tag; }\n get isHidden() { return true; }\n}\nNullWidget.inline = /*@__PURE__*/new NullWidget(\"span\");\nNullWidget.block = /*@__PURE__*/new NullWidget(\"div\");\n\n/**\nUsed to indicate [text direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection).\n*/\nvar Direction = /*@__PURE__*/(function (Direction) {\n // (These are chosen to match the base levels, in bidi algorithm\n // terms, of spans in that direction.)\n /**\n Left-to-right.\n */\n Direction[Direction[\"LTR\"] = 0] = \"LTR\";\n /**\n Right-to-left.\n */\n Direction[Direction[\"RTL\"] = 1] = \"RTL\";\nreturn Direction})(Direction || (Direction = {}));\nconst LTR = Direction.LTR, RTL = Direction.RTL;\n// Decode a string with each type encoded as log2(type)\nfunction dec(str) {\n let result = [];\n for (let i = 0; i < str.length; i++)\n result.push(1 << +str[i]);\n return result;\n}\n// Character types for codepoints 0 to 0xf8\nconst LowTypes = /*@__PURE__*/dec(\"88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008\");\n// Character types for codepoints 0x600 to 0x6f9\nconst ArabicTypes = /*@__PURE__*/dec(\"4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333\");\nconst Brackets = /*@__PURE__*/Object.create(null), BracketStack = [];\n// There's a lot more in\n// https://www.unicode.org/Public/UCD/latest/ucd/BidiBrackets.txt,\n// which are left out to keep code size down.\nfor (let p of [\"()\", \"[]\", \"{}\"]) {\n let l = /*@__PURE__*/p.charCodeAt(0), r = /*@__PURE__*/p.charCodeAt(1);\n Brackets[l] = r;\n Brackets[r] = -l;\n}\nfunction charType(ch) {\n return ch <= 0xf7 ? LowTypes[ch] :\n 0x590 <= ch && ch <= 0x5f4 ? 2 /* T.R */ :\n 0x600 <= ch && ch <= 0x6f9 ? ArabicTypes[ch - 0x600] :\n 0x6ee <= ch && ch <= 0x8ac ? 4 /* T.AL */ :\n 0x2000 <= ch && ch <= 0x200c ? 256 /* T.NI */ :\n 0xfb50 <= ch && ch <= 0xfdff ? 4 /* T.AL */ : 1 /* T.L */;\n}\nconst BidiRE = /[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac\\ufb50-\\ufdff]/;\n/**\nRepresents a contiguous range of text that has a single direction\n(as in left-to-right or right-to-left).\n*/\nclass BidiSpan {\n /**\n The direction of this span.\n */\n get dir() { return this.level % 2 ? RTL : LTR; }\n /**\n @internal\n */\n constructor(\n /**\n The start of the span (relative to the start of the line).\n */\n from, \n /**\n The end of the span.\n */\n to, \n /**\n The [\"bidi\n level\"](https://unicode.org/reports/tr9/#Basic_Display_Algorithm)\n of the span (in this context, 0 means\n left-to-right, 1 means right-to-left, 2 means left-to-right\n number inside right-to-left text).\n */\n level) {\n this.from = from;\n this.to = to;\n this.level = level;\n }\n /**\n @internal\n */\n side(end, dir) { return (this.dir == dir) == end ? this.to : this.from; }\n /**\n @internal\n */\n forward(forward, dir) { return forward == (this.dir == dir); }\n /**\n @internal\n */\n static find(order, index, level, assoc) {\n let maybe = -1;\n for (let i = 0; i < order.length; i++) {\n let span = order[i];\n if (span.from <= index && span.to >= index) {\n if (span.level == level)\n return i;\n // When multiple spans match, if assoc != 0, take the one that\n // covers that side, otherwise take the one with the minimum\n // level.\n if (maybe < 0 || (assoc != 0 ? (assoc < 0 ? span.from < index : span.to > index) : order[maybe].level > span.level))\n maybe = i;\n }\n }\n if (maybe < 0)\n throw new RangeError(\"Index out of range\");\n return maybe;\n }\n}\nfunction isolatesEq(a, b) {\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++) {\n let iA = a[i], iB = b[i];\n if (iA.from != iB.from || iA.to != iB.to || iA.direction != iB.direction || !isolatesEq(iA.inner, iB.inner))\n return false;\n }\n return true;\n}\n// Reused array of character types\nconst types = [];\n// Fill in the character types (in `types`) from `from` to `to` and\n// apply W normalization rules.\nfunction computeCharTypes(line, rFrom, rTo, isolates, outerType) {\n for (let iI = 0; iI <= isolates.length; iI++) {\n let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;\n let prevType = iI ? 256 /* T.NI */ : outerType;\n // W1. Examine each non-spacing mark (NSM) in the level run, and\n // change the type of the NSM to the type of the previous\n // character. If the NSM is at the start of the level run, it will\n // get the type of sor.\n // W2. Search backwards from each instance of a European number\n // until the first strong type (R, L, AL, or sor) is found. If an\n // AL is found, change the type of the European number to Arabic\n // number.\n // W3. Change all ALs to R.\n // (Left after this: L, R, EN, AN, ET, CS, NI)\n for (let i = from, prev = prevType, prevStrong = prevType; i < to; i++) {\n let type = charType(line.charCodeAt(i));\n if (type == 512 /* T.NSM */)\n type = prev;\n else if (type == 8 /* T.EN */ && prevStrong == 4 /* T.AL */)\n type = 16 /* T.AN */;\n types[i] = type == 4 /* T.AL */ ? 2 /* T.R */ : type;\n if (type & 7 /* T.Strong */)\n prevStrong = type;\n prev = type;\n }\n // W5. A sequence of European terminators adjacent to European\n // numbers changes to all European numbers.\n // W6. Otherwise, separators and terminators change to Other\n // Neutral.\n // W7. Search backwards from each instance of a European number\n // until the first strong type (R, L, or sor) is found. If an L is\n // found, then change the type of the European number to L.\n // (Left after this: L, R, EN+AN, NI)\n for (let i = from, prev = prevType, prevStrong = prevType; i < to; i++) {\n let type = types[i];\n if (type == 128 /* T.CS */) {\n if (i < to - 1 && prev == types[i + 1] && (prev & 24 /* T.Num */))\n type = types[i] = prev;\n else\n types[i] = 256 /* T.NI */;\n }\n else if (type == 64 /* T.ET */) {\n let end = i + 1;\n while (end < to && types[end] == 64 /* T.ET */)\n end++;\n let replace = (i && prev == 8 /* T.EN */) || (end < rTo && types[end] == 8 /* T.EN */) ? (prevStrong == 1 /* T.L */ ? 1 /* T.L */ : 8 /* T.EN */) : 256 /* T.NI */;\n for (let j = i; j < end; j++)\n types[j] = replace;\n i = end - 1;\n }\n else if (type == 8 /* T.EN */ && prevStrong == 1 /* T.L */) {\n types[i] = 1 /* T.L */;\n }\n prev = type;\n if (type & 7 /* T.Strong */)\n prevStrong = type;\n }\n }\n}\n// Process brackets throughout a run sequence.\nfunction processBracketPairs(line, rFrom, rTo, isolates, outerType) {\n let oppositeType = outerType == 1 /* T.L */ ? 2 /* T.R */ : 1 /* T.L */;\n for (let iI = 0, sI = 0, context = 0; iI <= isolates.length; iI++) {\n let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;\n // N0. Process bracket pairs in an isolating run sequence\n // sequentially in the logical order of the text positions of the\n // opening paired brackets using the logic given below. Within this\n // scope, bidirectional types EN and AN are treated as R.\n for (let i = from, ch, br, type; i < to; i++) {\n // Keeps [startIndex, type, strongSeen] triples for each open\n // bracket on BracketStack.\n if (br = Brackets[ch = line.charCodeAt(i)]) {\n if (br < 0) { // Closing bracket\n for (let sJ = sI - 3; sJ >= 0; sJ -= 3) {\n if (BracketStack[sJ + 1] == -br) {\n let flags = BracketStack[sJ + 2];\n let type = (flags & 2 /* Bracketed.EmbedInside */) ? outerType :\n !(flags & 4 /* Bracketed.OppositeInside */) ? 0 :\n (flags & 1 /* Bracketed.OppositeBefore */) ? oppositeType : outerType;\n if (type)\n types[i] = types[BracketStack[sJ]] = type;\n sI = sJ;\n break;\n }\n }\n }\n else if (BracketStack.length == 189 /* Bracketed.MaxDepth */) {\n break;\n }\n else {\n BracketStack[sI++] = i;\n BracketStack[sI++] = ch;\n BracketStack[sI++] = context;\n }\n }\n else if ((type = types[i]) == 2 /* T.R */ || type == 1 /* T.L */) {\n let embed = type == outerType;\n context = embed ? 0 : 1 /* Bracketed.OppositeBefore */;\n for (let sJ = sI - 3; sJ >= 0; sJ -= 3) {\n let cur = BracketStack[sJ + 2];\n if (cur & 2 /* Bracketed.EmbedInside */)\n break;\n if (embed) {\n BracketStack[sJ + 2] |= 2 /* Bracketed.EmbedInside */;\n }\n else {\n if (cur & 4 /* Bracketed.OppositeInside */)\n break;\n BracketStack[sJ + 2] |= 4 /* Bracketed.OppositeInside */;\n }\n }\n }\n }\n }\n}\nfunction processNeutrals(rFrom, rTo, isolates, outerType) {\n for (let iI = 0, prev = outerType; iI <= isolates.length; iI++) {\n let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;\n // N1. A sequence of neutrals takes the direction of the\n // surrounding strong text if the text on both sides has the same\n // direction. European and Arabic numbers act as if they were R in\n // terms of their influence on neutrals. Start-of-level-run (sor)\n // and end-of-level-run (eor) are used at level run boundaries.\n // N2. Any remaining neutrals take the embedding direction.\n // (Left after this: L, R, EN+AN)\n for (let i = from; i < to;) {\n let type = types[i];\n if (type == 256 /* T.NI */) {\n let end = i + 1;\n for (;;) {\n if (end == to) {\n if (iI == isolates.length)\n break;\n end = isolates[iI++].to;\n to = iI < isolates.length ? isolates[iI].from : rTo;\n }\n else if (types[end] == 256 /* T.NI */) {\n end++;\n }\n else {\n break;\n }\n }\n let beforeL = prev == 1 /* T.L */;\n let afterL = (end < rTo ? types[end] : outerType) == 1 /* T.L */;\n let replace = beforeL == afterL ? (beforeL ? 1 /* T.L */ : 2 /* T.R */) : outerType;\n for (let j = end, jI = iI, fromJ = jI ? isolates[jI - 1].to : rFrom; j > i;) {\n if (j == fromJ) {\n j = isolates[--jI].from;\n fromJ = jI ? isolates[jI - 1].to : rFrom;\n }\n types[--j] = replace;\n }\n i = end;\n }\n else {\n prev = type;\n i++;\n }\n }\n }\n}\n// Find the contiguous ranges of character types in a given range, and\n// emit spans for them. Flip the order of the spans as appropriate\n// based on the level, and call through to compute the spans for\n// isolates at the proper point.\nfunction emitSpans(line, from, to, level, baseLevel, isolates, order) {\n let ourType = level % 2 ? 2 /* T.R */ : 1 /* T.L */;\n if ((level % 2) == (baseLevel % 2)) { // Same dir as base direction, don't flip\n for (let iCh = from, iI = 0; iCh < to;) {\n // Scan a section of characters in direction ourType, unless\n // there's another type of char right after iCh, in which case\n // we scan a section of other characters (which, if ourType ==\n // T.L, may contain both T.R and T.AN chars).\n let sameDir = true, isNum = false;\n if (iI == isolates.length || iCh < isolates[iI].from) {\n let next = types[iCh];\n if (next != ourType) {\n sameDir = false;\n isNum = next == 16 /* T.AN */;\n }\n }\n // Holds an array of isolates to pass to a recursive call if we\n // must recurse (to distinguish T.AN inside an RTL section in\n // LTR text), null if we can emit directly\n let recurse = !sameDir && ourType == 1 /* T.L */ ? [] : null;\n let localLevel = sameDir ? level : level + 1;\n let iScan = iCh;\n run: for (;;) {\n if (iI < isolates.length && iScan == isolates[iI].from) {\n if (isNum)\n break run;\n let iso = isolates[iI];\n // Scan ahead to verify that there is another char in this dir after the isolate(s)\n if (!sameDir)\n for (let upto = iso.to, jI = iI + 1;;) {\n if (upto == to)\n break run;\n if (jI < isolates.length && isolates[jI].from == upto)\n upto = isolates[jI++].to;\n else if (types[upto] == ourType)\n break run;\n else\n break;\n }\n iI++;\n if (recurse) {\n recurse.push(iso);\n }\n else {\n if (iso.from > iCh)\n order.push(new BidiSpan(iCh, iso.from, localLevel));\n let dirSwap = (iso.direction == LTR) != !(localLevel % 2);\n computeSectionOrder(line, dirSwap ? level + 1 : level, baseLevel, iso.inner, iso.from, iso.to, order);\n iCh = iso.to;\n }\n iScan = iso.to;\n }\n else if (iScan == to || (sameDir ? types[iScan] != ourType : types[iScan] == ourType)) {\n break;\n }\n else {\n iScan++;\n }\n }\n if (recurse)\n emitSpans(line, iCh, iScan, level + 1, baseLevel, recurse, order);\n else if (iCh < iScan)\n order.push(new BidiSpan(iCh, iScan, localLevel));\n iCh = iScan;\n }\n }\n else {\n // Iterate in reverse to flip the span order. Same code again, but\n // going from the back of the section to the front\n for (let iCh = to, iI = isolates.length; iCh > from;) {\n let sameDir = true, isNum = false;\n if (!iI || iCh > isolates[iI - 1].to) {\n let next = types[iCh - 1];\n if (next != ourType) {\n sameDir = false;\n isNum = next == 16 /* T.AN */;\n }\n }\n let recurse = !sameDir && ourType == 1 /* T.L */ ? [] : null;\n let localLevel = sameDir ? level : level + 1;\n let iScan = iCh;\n run: for (;;) {\n if (iI && iScan == isolates[iI - 1].to) {\n if (isNum)\n break run;\n let iso = isolates[--iI];\n // Scan ahead to verify that there is another char in this dir after the isolate(s)\n if (!sameDir)\n for (let upto = iso.from, jI = iI;;) {\n if (upto == from)\n break run;\n if (jI && isolates[jI - 1].to == upto)\n upto = isolates[--jI].from;\n else if (types[upto - 1] == ourType)\n break run;\n else\n break;\n }\n if (recurse) {\n recurse.push(iso);\n }\n else {\n if (iso.to < iCh)\n order.push(new BidiSpan(iso.to, iCh, localLevel));\n let dirSwap = (iso.direction == LTR) != !(localLevel % 2);\n computeSectionOrder(line, dirSwap ? level + 1 : level, baseLevel, iso.inner, iso.from, iso.to, order);\n iCh = iso.from;\n }\n iScan = iso.from;\n }\n else if (iScan == from || (sameDir ? types[iScan - 1] != ourType : types[iScan - 1] == ourType)) {\n break;\n }\n else {\n iScan--;\n }\n }\n if (recurse)\n emitSpans(line, iScan, iCh, level + 1, baseLevel, recurse, order);\n else if (iScan < iCh)\n order.push(new BidiSpan(iScan, iCh, localLevel));\n iCh = iScan;\n }\n }\n}\nfunction computeSectionOrder(line, level, baseLevel, isolates, from, to, order) {\n let outerType = (level % 2 ? 2 /* T.R */ : 1 /* T.L */);\n computeCharTypes(line, from, to, isolates, outerType);\n processBracketPairs(line, from, to, isolates, outerType);\n processNeutrals(from, to, isolates, outerType);\n emitSpans(line, from, to, level, baseLevel, isolates, order);\n}\nfunction computeOrder(line, direction, isolates) {\n if (!line)\n return [new BidiSpan(0, 0, direction == RTL ? 1 : 0)];\n if (direction == LTR && !isolates.length && !BidiRE.test(line))\n return trivialOrder(line.length);\n if (isolates.length)\n while (line.length > types.length)\n types[types.length] = 256 /* T.NI */; // Make sure types array has no gaps\n let order = [], level = direction == LTR ? 0 : 1;\n computeSectionOrder(line, level, level, isolates, 0, line.length, order);\n return order;\n}\nfunction trivialOrder(length) {\n return [new BidiSpan(0, length, 0)];\n}\nlet movedOver = \"\";\n// This implementation moves strictly visually, without concern for a\n// traversal visiting every logical position in the string. It will\n// still do so for simple input, but situations like multiple isolates\n// with the same level next to each other, or text going against the\n// main dir at the end of the line, will make some positions\n// unreachable with this motion. Each visible cursor position will\n// correspond to the lower-level bidi span that touches it.\n//\n// The alternative would be to solve an order globally for a given\n// line, making sure that it includes every position, but that would\n// require associating non-canonical (higher bidi span level)\n// positions with a given visual position, which is likely to confuse\n// people. (And would generally be a lot more complicated.)\nfunction moveVisually(line, order, dir, start, forward) {\n var _a;\n let startIndex = start.head - line.from;\n let spanI = BidiSpan.find(order, startIndex, (_a = start.bidiLevel) !== null && _a !== void 0 ? _a : -1, start.assoc);\n let span = order[spanI], spanEnd = span.side(forward, dir);\n // End of span\n if (startIndex == spanEnd) {\n let nextI = spanI += forward ? 1 : -1;\n if (nextI < 0 || nextI >= order.length)\n return null;\n span = order[spanI = nextI];\n startIndex = span.side(!forward, dir);\n spanEnd = span.side(forward, dir);\n }\n let nextIndex = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findClusterBreak)(line.text, startIndex, span.forward(forward, dir));\n if (nextIndex < span.from || nextIndex > span.to)\n nextIndex = spanEnd;\n movedOver = line.text.slice(Math.min(startIndex, nextIndex), Math.max(startIndex, nextIndex));\n let nextSpan = spanI == (forward ? order.length - 1 : 0) ? null : order[spanI + (forward ? 1 : -1)];\n if (nextSpan && nextIndex == spanEnd && nextSpan.level + (forward ? 0 : 1) < span.level)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(nextSpan.side(!forward, dir) + line.from, nextSpan.forward(forward, dir) ? 1 : -1, nextSpan.level);\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(nextIndex + line.from, span.forward(forward, dir) ? -1 : 1, span.level);\n}\nfunction autoDirection(text, from, to) {\n for (let i = from; i < to; i++) {\n let type = charType(text.charCodeAt(i));\n if (type == 1 /* T.L */)\n return LTR;\n if (type == 2 /* T.R */ || type == 4 /* T.AL */)\n return RTL;\n }\n return LTR;\n}\n\nconst clickAddsSelectionRange = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst dragMovesSelection$1 = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst mouseSelectionStyle = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst exceptionSink = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst updateListener = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst inputHandler = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst focusChangeEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst perLineTextDirection = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine: values => values.some(x => x)\n});\nconst nativeSelectionHidden = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine: values => values.some(x => x)\n});\nconst scrollHandler = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nclass ScrollTarget {\n constructor(range, y = \"nearest\", x = \"nearest\", yMargin = 5, xMargin = 5, \n // This data structure is abused to also store precise scroll\n // snapshots, instead of a `scrollIntoView` request. When this\n // flag is `true`, `range` points at a position in the reference\n // line, `yMargin` holds the difference between the top of that\n // line and the top of the editor, and `xMargin` holds the\n // editor's `scrollLeft`.\n isSnapshot = false) {\n this.range = range;\n this.y = y;\n this.x = x;\n this.yMargin = yMargin;\n this.xMargin = xMargin;\n this.isSnapshot = isSnapshot;\n }\n map(changes) {\n return changes.empty ? this :\n new ScrollTarget(this.range.map(changes), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);\n }\n clip(state) {\n return this.range.to <= state.doc.length ? this :\n new ScrollTarget(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(state.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);\n }\n}\nconst scrollIntoView = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define({ map: (t, ch) => t.map(ch) });\nconst setEditContextFormatting = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\n/**\nLog or report an unhandled exception in client code. Should\nprobably only be used by extension code that allows client code to\nprovide functions, and calls those functions in a context where an\nexception can't be propagated to calling code in a reasonable way\n(for example when in an event handler).\n\nEither calls a handler registered with\n[`EditorView.exceptionSink`](https://codemirror.net/6/docs/ref/#view.EditorView^exceptionSink),\n`window.onerror`, if defined, or `console.error` (in which case\nit'll pass `context`, when given, as first argument).\n*/\nfunction logException(state, exception, context) {\n let handler = state.facet(exceptionSink);\n if (handler.length)\n handler[0](exception);\n else if (window.onerror)\n window.onerror(String(exception), context, undefined, undefined, exception);\n else if (context)\n console.error(context + \":\", exception);\n else\n console.error(exception);\n}\nconst editable = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({ combine: values => values.length ? values[0] : true });\nlet nextPluginID = 0;\nconst viewPlugin = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\n/**\nView plugins associate stateful values with a view. They can\ninfluence the way the content is drawn, and are notified of things\nthat happen in the view.\n*/\nclass ViewPlugin {\n constructor(\n /**\n @internal\n */\n id, \n /**\n @internal\n */\n create, \n /**\n @internal\n */\n domEventHandlers, \n /**\n @internal\n */\n domEventObservers, buildExtensions) {\n this.id = id;\n this.create = create;\n this.domEventHandlers = domEventHandlers;\n this.domEventObservers = domEventObservers;\n this.extension = buildExtensions(this);\n }\n /**\n Define a plugin from a constructor function that creates the\n plugin's value, given an editor view.\n */\n static define(create, spec) {\n const { eventHandlers, eventObservers, provide, decorations: deco } = spec || {};\n return new ViewPlugin(nextPluginID++, create, eventHandlers, eventObservers, plugin => {\n let ext = [viewPlugin.of(plugin)];\n if (deco)\n ext.push(decorations.of(view => {\n let pluginInst = view.plugin(plugin);\n return pluginInst ? deco(pluginInst) : Decoration.none;\n }));\n if (provide)\n ext.push(provide(plugin));\n return ext;\n });\n }\n /**\n Create a plugin for a class whose constructor takes a single\n editor view as argument.\n */\n static fromClass(cls, spec) {\n return ViewPlugin.define(view => new cls(view), spec);\n }\n}\nclass PluginInstance {\n constructor(spec) {\n this.spec = spec;\n // When starting an update, all plugins have this field set to the\n // update object, indicating they need to be updated. When finished\n // updating, it is set to `false`. Retrieving a plugin that needs to\n // be updated with `view.plugin` forces an eager update.\n this.mustUpdate = null;\n // This is null when the plugin is initially created, but\n // initialized on the first update.\n this.value = null;\n }\n update(view) {\n if (!this.value) {\n if (this.spec) {\n try {\n this.value = this.spec.create(view);\n }\n catch (e) {\n logException(view.state, e, \"CodeMirror plugin crashed\");\n this.deactivate();\n }\n }\n }\n else if (this.mustUpdate) {\n let update = this.mustUpdate;\n this.mustUpdate = null;\n if (this.value.update) {\n try {\n this.value.update(update);\n }\n catch (e) {\n logException(update.state, e, \"CodeMirror plugin crashed\");\n if (this.value.destroy)\n try {\n this.value.destroy();\n }\n catch (_) { }\n this.deactivate();\n }\n }\n }\n return this;\n }\n destroy(view) {\n var _a;\n if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.destroy) {\n try {\n this.value.destroy();\n }\n catch (e) {\n logException(view.state, e, \"CodeMirror plugin crashed\");\n }\n }\n }\n deactivate() {\n this.spec = this.value = null;\n }\n}\nconst editorAttributes = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst contentAttributes = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\n// Provide decorations\nconst decorations = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst outerDecorations = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst atomicRanges = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst bidiIsolatedRanges = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nfunction getIsolatedRanges(view, line) {\n let isolates = view.state.facet(bidiIsolatedRanges);\n if (!isolates.length)\n return isolates;\n let sets = isolates.map(i => i instanceof Function ? i(view) : i);\n let result = [];\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.spans(sets, line.from, line.to, {\n point() { },\n span(fromDoc, toDoc, active, open) {\n let from = fromDoc - line.from, to = toDoc - line.from;\n let level = result;\n for (let i = active.length - 1; i >= 0; i--, open--) {\n let direction = active[i].spec.bidiIsolate, update;\n if (direction == null)\n direction = autoDirection(line.text, from, to);\n if (open > 0 && level.length &&\n (update = level[level.length - 1]).to == from && update.direction == direction) {\n update.to = to;\n level = update.inner;\n }\n else {\n let add = { from, to, direction, inner: [] };\n level.push(add);\n level = add.inner;\n }\n }\n }\n });\n return result;\n}\nconst scrollMargins = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nfunction getScrollMargins(view) {\n let left = 0, right = 0, top = 0, bottom = 0;\n for (let source of view.state.facet(scrollMargins)) {\n let m = source(view);\n if (m) {\n if (m.left != null)\n left = Math.max(left, m.left);\n if (m.right != null)\n right = Math.max(right, m.right);\n if (m.top != null)\n top = Math.max(top, m.top);\n if (m.bottom != null)\n bottom = Math.max(bottom, m.bottom);\n }\n }\n return { left, right, top, bottom };\n}\nconst styleModule = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nclass ChangedRange {\n constructor(fromA, toA, fromB, toB) {\n this.fromA = fromA;\n this.toA = toA;\n this.fromB = fromB;\n this.toB = toB;\n }\n join(other) {\n return new ChangedRange(Math.min(this.fromA, other.fromA), Math.max(this.toA, other.toA), Math.min(this.fromB, other.fromB), Math.max(this.toB, other.toB));\n }\n addToSet(set) {\n let i = set.length, me = this;\n for (; i > 0; i--) {\n let range = set[i - 1];\n if (range.fromA > me.toA)\n continue;\n if (range.toA < me.fromA)\n break;\n me = me.join(range);\n set.splice(i - 1, 1);\n }\n set.splice(i, 0, me);\n return set;\n }\n static extendWithRanges(diff, ranges) {\n if (ranges.length == 0)\n return diff;\n let result = [];\n for (let dI = 0, rI = 0, posA = 0, posB = 0;; dI++) {\n let next = dI == diff.length ? null : diff[dI], off = posA - posB;\n let end = next ? next.fromB : 1e9;\n while (rI < ranges.length && ranges[rI] < end) {\n let from = ranges[rI], to = ranges[rI + 1];\n let fromB = Math.max(posB, from), toB = Math.min(end, to);\n if (fromB <= toB)\n new ChangedRange(fromB + off, toB + off, fromB, toB).addToSet(result);\n if (to > end)\n break;\n else\n rI += 2;\n }\n if (!next)\n return result;\n new ChangedRange(next.fromA, next.toA, next.fromB, next.toB).addToSet(result);\n posA = next.toA;\n posB = next.toB;\n }\n }\n}\n/**\nView [plugins](https://codemirror.net/6/docs/ref/#view.ViewPlugin) are given instances of this\nclass, which describe what happened, whenever the view is updated.\n*/\nclass ViewUpdate {\n constructor(\n /**\n The editor view that the update is associated with.\n */\n view, \n /**\n The new editor state.\n */\n state, \n /**\n The transactions involved in the update. May be empty.\n */\n transactions) {\n this.view = view;\n this.state = state;\n this.transactions = transactions;\n /**\n @internal\n */\n this.flags = 0;\n this.startState = view.state;\n this.changes = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.ChangeSet.empty(this.startState.doc.length);\n for (let tr of transactions)\n this.changes = this.changes.compose(tr.changes);\n let changedRanges = [];\n this.changes.iterChangedRanges((fromA, toA, fromB, toB) => changedRanges.push(new ChangedRange(fromA, toA, fromB, toB)));\n this.changedRanges = changedRanges;\n }\n /**\n @internal\n */\n static create(view, state, transactions) {\n return new ViewUpdate(view, state, transactions);\n }\n /**\n Tells you whether the [viewport](https://codemirror.net/6/docs/ref/#view.EditorView.viewport) or\n [visible ranges](https://codemirror.net/6/docs/ref/#view.EditorView.visibleRanges) changed in this\n update.\n */\n get viewportChanged() {\n return (this.flags & 4 /* UpdateFlag.Viewport */) > 0;\n }\n /**\n Indicates whether the height of a block element in the editor\n changed in this update.\n */\n get heightChanged() {\n return (this.flags & 2 /* UpdateFlag.Height */) > 0;\n }\n /**\n Returns true when the document was modified or the size of the\n editor, or elements within the editor, changed.\n */\n get geometryChanged() {\n return this.docChanged || (this.flags & (8 /* UpdateFlag.Geometry */ | 2 /* UpdateFlag.Height */)) > 0;\n }\n /**\n True when this update indicates a focus change.\n */\n get focusChanged() {\n return (this.flags & 1 /* UpdateFlag.Focus */) > 0;\n }\n /**\n Whether the document changed in this update.\n */\n get docChanged() {\n return !this.changes.empty;\n }\n /**\n Whether the selection was explicitly set in this update.\n */\n get selectionSet() {\n return this.transactions.some(tr => tr.selection);\n }\n /**\n @internal\n */\n get empty() { return this.flags == 0 && this.transactions.length == 0; }\n}\n\nclass DocView extends ContentView {\n get length() { return this.view.state.doc.length; }\n constructor(view) {\n super();\n this.view = view;\n this.decorations = [];\n this.dynamicDecorationMap = [false];\n this.domChanged = null;\n this.hasComposition = null;\n this.markedForComposition = new Set;\n this.editContextFormatting = Decoration.none;\n this.lastCompositionAfterCursor = false;\n // Track a minimum width for the editor. When measuring sizes in\n // measureVisibleLineHeights, this is updated to point at the width\n // of a given element and its extent in the document. When a change\n // happens in that range, these are reset. That way, once we've seen\n // a line/element of a given length, we keep the editor wide enough\n // to fit at least that element, until it is changed, at which point\n // we forget it again.\n this.minWidth = 0;\n this.minWidthFrom = 0;\n this.minWidthTo = 0;\n // Track whether the DOM selection was set in a lossy way, so that\n // we don't mess it up when reading it back it\n this.impreciseAnchor = null;\n this.impreciseHead = null;\n this.forceSelection = false;\n // Used by the resize observer to ignore resizes that we caused\n // ourselves\n this.lastUpdate = Date.now();\n this.setDOM(view.contentDOM);\n this.children = [new LineView];\n this.children[0].setParent(this);\n this.updateDeco();\n this.updateInner([new ChangedRange(0, 0, 0, view.state.doc.length)], 0, null);\n }\n // Update the document view to a given state.\n update(update) {\n var _a;\n let changedRanges = update.changedRanges;\n if (this.minWidth > 0 && changedRanges.length) {\n if (!changedRanges.every(({ fromA, toA }) => toA < this.minWidthFrom || fromA > this.minWidthTo)) {\n this.minWidth = this.minWidthFrom = this.minWidthTo = 0;\n }\n else {\n this.minWidthFrom = update.changes.mapPos(this.minWidthFrom, 1);\n this.minWidthTo = update.changes.mapPos(this.minWidthTo, 1);\n }\n }\n this.updateEditContextFormatting(update);\n let readCompositionAt = -1;\n if (this.view.inputState.composing >= 0 && !this.view.observer.editContext) {\n if ((_a = this.domChanged) === null || _a === void 0 ? void 0 : _a.newSel)\n readCompositionAt = this.domChanged.newSel.head;\n else if (!touchesComposition(update.changes, this.hasComposition) && !update.selectionSet)\n readCompositionAt = update.state.selection.main.head;\n }\n let composition = readCompositionAt > -1 ? findCompositionRange(this.view, update.changes, readCompositionAt) : null;\n this.domChanged = null;\n if (this.hasComposition) {\n this.markedForComposition.clear();\n let { from, to } = this.hasComposition;\n changedRanges = new ChangedRange(from, to, update.changes.mapPos(from, -1), update.changes.mapPos(to, 1))\n .addToSet(changedRanges.slice());\n }\n this.hasComposition = composition ? { from: composition.range.fromB, to: composition.range.toB } : null;\n // When the DOM nodes around the selection are moved to another\n // parent, Chrome sometimes reports a different selection through\n // getSelection than the one that it actually shows to the user.\n // This forces a selection update when lines are joined to work\n // around that. Issue #54\n if ((browser.ie || browser.chrome) && !composition && update &&\n update.state.doc.lines != update.startState.doc.lines)\n this.forceSelection = true;\n let prevDeco = this.decorations, deco = this.updateDeco();\n let decoDiff = findChangedDeco(prevDeco, deco, update.changes);\n changedRanges = ChangedRange.extendWithRanges(changedRanges, decoDiff);\n if (!(this.flags & 7 /* ViewFlag.Dirty */) && changedRanges.length == 0) {\n return false;\n }\n else {\n this.updateInner(changedRanges, update.startState.doc.length, composition);\n if (update.transactions.length)\n this.lastUpdate = Date.now();\n return true;\n }\n }\n // Used by update and the constructor do perform the actual DOM\n // update\n updateInner(changes, oldLength, composition) {\n this.view.viewState.mustMeasureContent = true;\n this.updateChildren(changes, oldLength, composition);\n let { observer } = this.view;\n observer.ignore(() => {\n // Lock the height during redrawing, since Chrome sometimes\n // messes with the scroll position during DOM mutation (though\n // no relayout is triggered and I cannot imagine how it can\n // recompute the scroll position without a layout)\n this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + \"px\";\n this.dom.style.flexBasis = this.minWidth ? this.minWidth + \"px\" : \"\";\n // Chrome will sometimes, when DOM mutations occur directly\n // around the selection, get confused and report a different\n // selection from the one it displays (issue #218). This tries\n // to detect that situation.\n let track = browser.chrome || browser.ios ? { node: observer.selectionRange.focusNode, written: false } : undefined;\n this.sync(this.view, track);\n this.flags &= ~7 /* ViewFlag.Dirty */;\n if (track && (track.written || observer.selectionRange.focusNode != track.node))\n this.forceSelection = true;\n this.dom.style.height = \"\";\n });\n this.markedForComposition.forEach(cView => cView.flags &= ~8 /* ViewFlag.Composition */);\n let gaps = [];\n if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)\n for (let child of this.children)\n if (child instanceof BlockWidgetView && child.widget instanceof BlockGapWidget)\n gaps.push(child.dom);\n observer.updateGaps(gaps);\n }\n updateChildren(changes, oldLength, composition) {\n let ranges = composition ? composition.range.addToSet(changes.slice()) : changes;\n let cursor = this.childCursor(oldLength);\n for (let i = ranges.length - 1;; i--) {\n let next = i >= 0 ? ranges[i] : null;\n if (!next)\n break;\n let { fromA, toA, fromB, toB } = next, content, breakAtStart, openStart, openEnd;\n if (composition && composition.range.fromB < toB && composition.range.toB > fromB) {\n let before = ContentBuilder.build(this.view.state.doc, fromB, composition.range.fromB, this.decorations, this.dynamicDecorationMap);\n let after = ContentBuilder.build(this.view.state.doc, composition.range.toB, toB, this.decorations, this.dynamicDecorationMap);\n breakAtStart = before.breakAtStart;\n openStart = before.openStart;\n openEnd = after.openEnd;\n let compLine = this.compositionView(composition);\n if (after.breakAtStart) {\n compLine.breakAfter = 1;\n }\n else if (after.content.length &&\n compLine.merge(compLine.length, compLine.length, after.content[0], false, after.openStart, 0)) {\n compLine.breakAfter = after.content[0].breakAfter;\n after.content.shift();\n }\n if (before.content.length &&\n compLine.merge(0, 0, before.content[before.content.length - 1], true, 0, before.openEnd)) {\n before.content.pop();\n }\n content = before.content.concat(compLine).concat(after.content);\n }\n else {\n ({ content, breakAtStart, openStart, openEnd } =\n ContentBuilder.build(this.view.state.doc, fromB, toB, this.decorations, this.dynamicDecorationMap));\n }\n let { i: toI, off: toOff } = cursor.findPos(toA, 1);\n let { i: fromI, off: fromOff } = cursor.findPos(fromA, -1);\n replaceRange(this, fromI, fromOff, toI, toOff, content, breakAtStart, openStart, openEnd);\n }\n if (composition)\n this.fixCompositionDOM(composition);\n }\n updateEditContextFormatting(update) {\n this.editContextFormatting = this.editContextFormatting.map(update.changes);\n for (let tr of update.transactions)\n for (let effect of tr.effects)\n if (effect.is(setEditContextFormatting)) {\n this.editContextFormatting = effect.value;\n }\n }\n compositionView(composition) {\n let cur = new TextView(composition.text.nodeValue);\n cur.flags |= 8 /* ViewFlag.Composition */;\n for (let { deco } of composition.marks)\n cur = new MarkView(deco, [cur], cur.length);\n let line = new LineView;\n line.append(cur, 0);\n return line;\n }\n fixCompositionDOM(composition) {\n let fix = (dom, cView) => {\n cView.flags |= 8 /* ViewFlag.Composition */ | (cView.children.some(c => c.flags & 7 /* ViewFlag.Dirty */) ? 1 /* ViewFlag.ChildDirty */ : 0);\n this.markedForComposition.add(cView);\n let prev = ContentView.get(dom);\n if (prev && prev != cView)\n prev.dom = null;\n cView.setDOM(dom);\n };\n let pos = this.childPos(composition.range.fromB, 1);\n let cView = this.children[pos.i];\n fix(composition.line, cView);\n for (let i = composition.marks.length - 1; i >= -1; i--) {\n pos = cView.childPos(pos.off, 1);\n cView = cView.children[pos.i];\n fix(i >= 0 ? composition.marks[i].node : composition.text, cView);\n }\n }\n // Sync the DOM selection to this.state.selection\n updateSelection(mustRead = false, fromPointer = false) {\n if (mustRead || !this.view.observer.selectionRange.focusNode)\n this.view.observer.readSelectionRange();\n let activeElt = this.view.root.activeElement, focused = activeElt == this.dom;\n let selectionNotFocus = !focused &&\n hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));\n if (!(focused || fromPointer || selectionNotFocus))\n return;\n let force = this.forceSelection;\n this.forceSelection = false;\n let main = this.view.state.selection.main;\n let anchor = this.moveToLine(this.domAtPos(main.anchor));\n let head = main.empty ? anchor : this.moveToLine(this.domAtPos(main.head));\n // Always reset on Firefox when next to an uneditable node to\n // avoid invisible cursor bugs (#111)\n if (browser.gecko && main.empty && !this.hasComposition && betweenUneditable(anchor)) {\n let dummy = document.createTextNode(\"\");\n this.view.observer.ignore(() => anchor.node.insertBefore(dummy, anchor.node.childNodes[anchor.offset] || null));\n anchor = head = new DOMPos(dummy, 0);\n force = true;\n }\n let domSel = this.view.observer.selectionRange;\n // If the selection is already here, or in an equivalent position, don't touch it\n if (force || !domSel.focusNode || (!isEquivalentPosition(anchor.node, anchor.offset, domSel.anchorNode, domSel.anchorOffset) ||\n !isEquivalentPosition(head.node, head.offset, domSel.focusNode, domSel.focusOffset)) && !this.suppressWidgetCursorChange(domSel, main)) {\n this.view.observer.ignore(() => {\n // Chrome Android will hide the virtual keyboard when tapping\n // inside an uneditable node, and not bring it back when we\n // move the cursor to its proper position. This tries to\n // restore the keyboard by cycling focus.\n if (browser.android && browser.chrome && this.dom.contains(domSel.focusNode) &&\n inUneditable(domSel.focusNode, this.dom)) {\n this.dom.blur();\n this.dom.focus({ preventScroll: true });\n }\n let rawSel = getSelection(this.view.root);\n if (!rawSel) ;\n else if (main.empty) {\n // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=1612076\n if (browser.gecko) {\n let nextTo = nextToUneditable(anchor.node, anchor.offset);\n if (nextTo && nextTo != (1 /* NextTo.Before */ | 2 /* NextTo.After */)) {\n let text = (nextTo == 1 /* NextTo.Before */ ? textNodeBefore : textNodeAfter)(anchor.node, anchor.offset);\n if (text)\n anchor = new DOMPos(text.node, text.offset);\n }\n }\n rawSel.collapse(anchor.node, anchor.offset);\n if (main.bidiLevel != null && rawSel.caretBidiLevel !== undefined)\n rawSel.caretBidiLevel = main.bidiLevel;\n }\n else if (rawSel.extend) {\n // Selection.extend can be used to create an 'inverted' selection\n // (one where the focus is before the anchor), but not all\n // browsers support it yet.\n rawSel.collapse(anchor.node, anchor.offset);\n // Safari will ignore the call above when the editor is\n // hidden, and then raise an error on the call to extend\n // (#940).\n try {\n rawSel.extend(head.node, head.offset);\n }\n catch (_) { }\n }\n else {\n // Primitive (IE) way\n let range = document.createRange();\n if (main.anchor > main.head)\n [anchor, head] = [head, anchor];\n range.setEnd(head.node, head.offset);\n range.setStart(anchor.node, anchor.offset);\n rawSel.removeAllRanges();\n rawSel.addRange(range);\n }\n if (selectionNotFocus && this.view.root.activeElement == this.dom) {\n this.dom.blur();\n if (activeElt)\n activeElt.focus();\n }\n });\n this.view.observer.setSelectionRange(anchor, head);\n }\n this.impreciseAnchor = anchor.precise ? null : new DOMPos(domSel.anchorNode, domSel.anchorOffset);\n this.impreciseHead = head.precise ? null : new DOMPos(domSel.focusNode, domSel.focusOffset);\n }\n // If a zero-length widget is inserted next to the cursor during\n // composition, avoid moving it across it and disrupting the\n // composition.\n suppressWidgetCursorChange(sel, cursor) {\n return this.hasComposition && cursor.empty &&\n isEquivalentPosition(sel.focusNode, sel.focusOffset, sel.anchorNode, sel.anchorOffset) &&\n this.posFromDOM(sel.focusNode, sel.focusOffset) == cursor.head;\n }\n enforceCursorAssoc() {\n if (this.hasComposition)\n return;\n let { view } = this, cursor = view.state.selection.main;\n let sel = getSelection(view.root);\n let { anchorNode, anchorOffset } = view.observer.selectionRange;\n if (!sel || !cursor.empty || !cursor.assoc || !sel.modify)\n return;\n let line = LineView.find(this, cursor.head);\n if (!line)\n return;\n let lineStart = line.posAtStart;\n if (cursor.head == lineStart || cursor.head == lineStart + line.length)\n return;\n let before = this.coordsAt(cursor.head, -1), after = this.coordsAt(cursor.head, 1);\n if (!before || !after || before.bottom > after.top)\n return;\n let dom = this.domAtPos(cursor.head + cursor.assoc);\n sel.collapse(dom.node, dom.offset);\n sel.modify(\"move\", cursor.assoc < 0 ? \"forward\" : \"backward\", \"lineboundary\");\n // This can go wrong in corner cases like single-character lines,\n // so check and reset if necessary.\n view.observer.readSelectionRange();\n let newRange = view.observer.selectionRange;\n if (view.docView.posFromDOM(newRange.anchorNode, newRange.anchorOffset) != cursor.from)\n sel.collapse(anchorNode, anchorOffset);\n }\n // If a position is in/near a block widget, move it to a nearby text\n // line, since we don't want the cursor inside a block widget.\n moveToLine(pos) {\n // Block widgets will return positions before/after them, which\n // are thus directly in the document DOM element.\n let dom = this.dom, newPos;\n if (pos.node != dom)\n return pos;\n for (let i = pos.offset; !newPos && i < dom.childNodes.length; i++) {\n let view = ContentView.get(dom.childNodes[i]);\n if (view instanceof LineView)\n newPos = view.domAtPos(0);\n }\n for (let i = pos.offset - 1; !newPos && i >= 0; i--) {\n let view = ContentView.get(dom.childNodes[i]);\n if (view instanceof LineView)\n newPos = view.domAtPos(view.length);\n }\n return newPos ? new DOMPos(newPos.node, newPos.offset, true) : pos;\n }\n nearest(dom) {\n for (let cur = dom; cur;) {\n let domView = ContentView.get(cur);\n if (domView && domView.rootView == this)\n return domView;\n cur = cur.parentNode;\n }\n return null;\n }\n posFromDOM(node, offset) {\n let view = this.nearest(node);\n if (!view)\n throw new RangeError(\"Trying to find position for a DOM position outside of the document\");\n return view.localPosFromDOM(node, offset) + view.posAtStart;\n }\n domAtPos(pos) {\n let { i, off } = this.childCursor().findPos(pos, -1);\n for (; i < this.children.length - 1;) {\n let child = this.children[i];\n if (off < child.length || child instanceof LineView)\n break;\n i++;\n off = 0;\n }\n return this.children[i].domAtPos(off);\n }\n coordsAt(pos, side) {\n let best = null, bestPos = 0;\n for (let off = this.length, i = this.children.length - 1; i >= 0; i--) {\n let child = this.children[i], end = off - child.breakAfter, start = end - child.length;\n if (end < pos)\n break;\n if (start <= pos && (start < pos || child.covers(-1)) && (end > pos || child.covers(1)) &&\n (!best || child instanceof LineView && !(best instanceof LineView && side >= 0))) {\n best = child;\n bestPos = start;\n }\n else if (best && start == pos && end == pos && child instanceof BlockWidgetView && Math.abs(side) < 2) {\n if (child.deco.startSide < 0)\n break;\n else if (i)\n best = null;\n }\n off = start;\n }\n return best ? best.coordsAt(pos - bestPos, side) : null;\n }\n coordsForChar(pos) {\n let { i, off } = this.childPos(pos, 1), child = this.children[i];\n if (!(child instanceof LineView))\n return null;\n while (child.children.length) {\n let { i, off: childOff } = child.childPos(off, 1);\n for (;; i++) {\n if (i == child.children.length)\n return null;\n if ((child = child.children[i]).length)\n break;\n }\n off = childOff;\n }\n if (!(child instanceof TextView))\n return null;\n let end = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findClusterBreak)(child.text, off);\n if (end == off)\n return null;\n let rects = textRange(child.dom, off, end).getClientRects();\n for (let i = 0; i < rects.length; i++) {\n let rect = rects[i];\n if (i == rects.length - 1 || rect.top < rect.bottom && rect.left < rect.right)\n return rect;\n }\n return null;\n }\n measureVisibleLineHeights(viewport) {\n let result = [], { from, to } = viewport;\n let contentWidth = this.view.contentDOM.clientWidth;\n let isWider = contentWidth > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1;\n let widest = -1, ltr = this.view.textDirection == Direction.LTR;\n for (let pos = 0, i = 0; i < this.children.length; i++) {\n let child = this.children[i], end = pos + child.length;\n if (end > to)\n break;\n if (pos >= from) {\n let childRect = child.dom.getBoundingClientRect();\n result.push(childRect.height);\n if (isWider) {\n let last = child.dom.lastChild;\n let rects = last ? clientRectsFor(last) : [];\n if (rects.length) {\n let rect = rects[rects.length - 1];\n let width = ltr ? rect.right - childRect.left : childRect.right - rect.left;\n if (width > widest) {\n widest = width;\n this.minWidth = contentWidth;\n this.minWidthFrom = pos;\n this.minWidthTo = end;\n }\n }\n }\n }\n pos = end + child.breakAfter;\n }\n return result;\n }\n textDirectionAt(pos) {\n let { i } = this.childPos(pos, 1);\n return getComputedStyle(this.children[i].dom).direction == \"rtl\" ? Direction.RTL : Direction.LTR;\n }\n measureTextSize() {\n for (let child of this.children) {\n if (child instanceof LineView) {\n let measure = child.measureTextSize();\n if (measure)\n return measure;\n }\n }\n // If no workable line exists, force a layout of a measurable element\n let dummy = document.createElement(\"div\"), lineHeight, charWidth, textHeight;\n dummy.className = \"cm-line\";\n dummy.style.width = \"99999px\";\n dummy.style.position = \"absolute\";\n dummy.textContent = \"abc def ghi jkl mno pqr stu\";\n this.view.observer.ignore(() => {\n this.dom.appendChild(dummy);\n let rect = clientRectsFor(dummy.firstChild)[0];\n lineHeight = dummy.getBoundingClientRect().height;\n charWidth = rect ? rect.width / 27 : 7;\n textHeight = rect ? rect.height : lineHeight;\n dummy.remove();\n });\n return { lineHeight, charWidth, textHeight };\n }\n childCursor(pos = this.length) {\n // Move back to start of last element when possible, so that\n // `ChildCursor.findPos` doesn't have to deal with the edge case\n // of being after the last element.\n let i = this.children.length;\n if (i)\n pos -= this.children[--i].length;\n return new ChildCursor(this.children, pos, i);\n }\n computeBlockGapDeco() {\n let deco = [], vs = this.view.viewState;\n for (let pos = 0, i = 0;; i++) {\n let next = i == vs.viewports.length ? null : vs.viewports[i];\n let end = next ? next.from - 1 : this.length;\n if (end > pos) {\n let height = (vs.lineBlockAt(end).bottom - vs.lineBlockAt(pos).top) / this.view.scaleY;\n deco.push(Decoration.replace({\n widget: new BlockGapWidget(height),\n block: true,\n inclusive: true,\n isBlockGap: true,\n }).range(pos, end));\n }\n if (!next)\n break;\n pos = next.to + 1;\n }\n return Decoration.set(deco);\n }\n updateDeco() {\n let i = 1;\n let allDeco = this.view.state.facet(decorations).map(d => {\n let dynamic = this.dynamicDecorationMap[i++] = typeof d == \"function\";\n return dynamic ? d(this.view) : d;\n });\n let dynamicOuter = false, outerDeco = this.view.state.facet(outerDecorations).map((d, i) => {\n let dynamic = typeof d == \"function\";\n if (dynamic)\n dynamicOuter = true;\n return dynamic ? d(this.view) : d;\n });\n if (outerDeco.length) {\n this.dynamicDecorationMap[i++] = dynamicOuter;\n allDeco.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.join(outerDeco));\n }\n this.decorations = [\n this.editContextFormatting,\n ...allDeco,\n this.computeBlockGapDeco(),\n this.view.viewState.lineGapDeco\n ];\n while (i < this.decorations.length)\n this.dynamicDecorationMap[i++] = false;\n return this.decorations;\n }\n scrollIntoView(target) {\n if (target.isSnapshot) {\n let ref = this.view.viewState.lineBlockAt(target.range.head);\n this.view.scrollDOM.scrollTop = ref.top - target.yMargin;\n this.view.scrollDOM.scrollLeft = target.xMargin;\n return;\n }\n for (let handler of this.view.state.facet(scrollHandler)) {\n try {\n if (handler(this.view, target.range, target))\n return true;\n }\n catch (e) {\n logException(this.view.state, e, \"scroll handler\");\n }\n }\n let { range } = target;\n let rect = this.coordsAt(range.head, range.empty ? range.assoc : range.head > range.anchor ? -1 : 1), other;\n if (!rect)\n return;\n if (!range.empty && (other = this.coordsAt(range.anchor, range.anchor > range.head ? -1 : 1)))\n rect = { left: Math.min(rect.left, other.left), top: Math.min(rect.top, other.top),\n right: Math.max(rect.right, other.right), bottom: Math.max(rect.bottom, other.bottom) };\n let margins = getScrollMargins(this.view);\n let targetRect = {\n left: rect.left - margins.left, top: rect.top - margins.top,\n right: rect.right + margins.right, bottom: rect.bottom + margins.bottom\n };\n let { offsetWidth, offsetHeight } = this.view.scrollDOM;\n scrollRectIntoView(this.view.scrollDOM, targetRect, range.head < range.anchor ? -1 : 1, target.x, target.y, Math.max(Math.min(target.xMargin, offsetWidth), -offsetWidth), Math.max(Math.min(target.yMargin, offsetHeight), -offsetHeight), this.view.textDirection == Direction.LTR);\n }\n}\nfunction betweenUneditable(pos) {\n return pos.node.nodeType == 1 && pos.node.firstChild &&\n (pos.offset == 0 || pos.node.childNodes[pos.offset - 1].contentEditable == \"false\") &&\n (pos.offset == pos.node.childNodes.length || pos.node.childNodes[pos.offset].contentEditable == \"false\");\n}\nclass BlockGapWidget extends WidgetType {\n constructor(height) {\n super();\n this.height = height;\n }\n toDOM() {\n let elt = document.createElement(\"div\");\n elt.className = \"cm-gap\";\n this.updateDOM(elt);\n return elt;\n }\n eq(other) { return other.height == this.height; }\n updateDOM(elt) {\n elt.style.height = this.height + \"px\";\n return true;\n }\n get editable() { return true; }\n get estimatedHeight() { return this.height; }\n ignoreEvent() { return false; }\n}\nfunction findCompositionNode(view, headPos) {\n let sel = view.observer.selectionRange;\n if (!sel.focusNode)\n return null;\n let textBefore = textNodeBefore(sel.focusNode, sel.focusOffset);\n let textAfter = textNodeAfter(sel.focusNode, sel.focusOffset);\n let textNode = textBefore || textAfter;\n if (textAfter && textBefore && textAfter.node != textBefore.node) {\n let descAfter = ContentView.get(textAfter.node);\n if (!descAfter || descAfter instanceof TextView && descAfter.text != textAfter.node.nodeValue) {\n textNode = textAfter;\n }\n else if (view.docView.lastCompositionAfterCursor) {\n let descBefore = ContentView.get(textBefore.node);\n if (!(!descBefore || descBefore instanceof TextView && descBefore.text != textBefore.node.nodeValue))\n textNode = textAfter;\n }\n }\n view.docView.lastCompositionAfterCursor = textNode != textBefore;\n if (!textNode)\n return null;\n let from = headPos - textNode.offset;\n return { from, to: from + textNode.node.nodeValue.length, node: textNode.node };\n}\nfunction findCompositionRange(view, changes, headPos) {\n let found = findCompositionNode(view, headPos);\n if (!found)\n return null;\n let { node: textNode, from, to } = found, text = textNode.nodeValue;\n // Don't try to preserve multi-line compositions\n if (/[\\n\\r]/.test(text))\n return null;\n if (view.state.doc.sliceString(found.from, found.to) != text)\n return null;\n let inv = changes.invertedDesc;\n let range = new ChangedRange(inv.mapPos(from), inv.mapPos(to), from, to);\n let marks = [];\n for (let parent = textNode.parentNode;; parent = parent.parentNode) {\n let parentView = ContentView.get(parent);\n if (parentView instanceof MarkView)\n marks.push({ node: parent, deco: parentView.mark });\n else if (parentView instanceof LineView || parent.nodeName == \"DIV\" && parent.parentNode == view.contentDOM)\n return { range, text: textNode, marks, line: parent };\n else if (parent != view.contentDOM)\n marks.push({ node: parent, deco: new MarkDecoration({\n inclusive: true,\n attributes: getAttrs(parent),\n tagName: parent.tagName.toLowerCase()\n }) });\n else\n return null;\n }\n}\nfunction nextToUneditable(node, offset) {\n if (node.nodeType != 1)\n return 0;\n return (offset && node.childNodes[offset - 1].contentEditable == \"false\" ? 1 /* NextTo.Before */ : 0) |\n (offset < node.childNodes.length && node.childNodes[offset].contentEditable == \"false\" ? 2 /* NextTo.After */ : 0);\n}\nlet DecorationComparator$1 = class DecorationComparator {\n constructor() {\n this.changes = [];\n }\n compareRange(from, to) { addRange(from, to, this.changes); }\n comparePoint(from, to) { addRange(from, to, this.changes); }\n};\nfunction findChangedDeco(a, b, diff) {\n let comp = new DecorationComparator$1;\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.compare(a, b, diff, comp);\n return comp.changes;\n}\nfunction inUneditable(node, inside) {\n for (let cur = node; cur && cur != inside; cur = cur.assignedSlot || cur.parentNode) {\n if (cur.nodeType == 1 && cur.contentEditable == 'false') {\n return true;\n }\n }\n return false;\n}\nfunction touchesComposition(changes, composition) {\n let touched = false;\n if (composition)\n changes.iterChangedRanges((from, to) => {\n if (from < composition.to && to > composition.from)\n touched = true;\n });\n return touched;\n}\n\nfunction groupAt(state, pos, bias = 1) {\n let categorize = state.charCategorizer(pos);\n let line = state.doc.lineAt(pos), linePos = pos - line.from;\n if (line.length == 0)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(pos);\n if (linePos == 0)\n bias = 1;\n else if (linePos == line.length)\n bias = -1;\n let from = linePos, to = linePos;\n if (bias < 0)\n from = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findClusterBreak)(line.text, linePos, false);\n else\n to = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findClusterBreak)(line.text, linePos);\n let cat = categorize(line.text.slice(from, to));\n while (from > 0) {\n let prev = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findClusterBreak)(line.text, from, false);\n if (categorize(line.text.slice(prev, from)) != cat)\n break;\n from = prev;\n }\n while (to < line.length) {\n let next = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findClusterBreak)(line.text, to);\n if (categorize(line.text.slice(to, next)) != cat)\n break;\n to = next;\n }\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(from + line.from, to + line.from);\n}\n// Search the DOM for the {node, offset} position closest to the given\n// coordinates. Very inefficient and crude, but can usually be avoided\n// by calling caret(Position|Range)FromPoint instead.\nfunction getdx(x, rect) {\n return rect.left > x ? rect.left - x : Math.max(0, x - rect.right);\n}\nfunction getdy(y, rect) {\n return rect.top > y ? rect.top - y : Math.max(0, y - rect.bottom);\n}\nfunction yOverlap(a, b) {\n return a.top < b.bottom - 1 && a.bottom > b.top + 1;\n}\nfunction upTop(rect, top) {\n return top < rect.top ? { top, left: rect.left, right: rect.right, bottom: rect.bottom } : rect;\n}\nfunction upBot(rect, bottom) {\n return bottom > rect.bottom ? { top: rect.top, left: rect.left, right: rect.right, bottom } : rect;\n}\nfunction domPosAtCoords(parent, x, y) {\n let closest, closestRect, closestX, closestY, closestOverlap = false;\n let above, below, aboveRect, belowRect;\n for (let child = parent.firstChild; child; child = child.nextSibling) {\n let rects = clientRectsFor(child);\n for (let i = 0; i < rects.length; i++) {\n let rect = rects[i];\n if (closestRect && yOverlap(closestRect, rect))\n rect = upTop(upBot(rect, closestRect.bottom), closestRect.top);\n let dx = getdx(x, rect), dy = getdy(y, rect);\n if (dx == 0 && dy == 0)\n return child.nodeType == 3 ? domPosInText(child, x, y) : domPosAtCoords(child, x, y);\n if (!closest || closestY > dy || closestY == dy && closestX > dx) {\n closest = child;\n closestRect = rect;\n closestX = dx;\n closestY = dy;\n let side = dy ? (y < rect.top ? -1 : 1) : dx ? (x < rect.left ? -1 : 1) : 0;\n closestOverlap = !side || (side > 0 ? i < rects.length - 1 : i > 0);\n }\n if (dx == 0) {\n if (y > rect.bottom && (!aboveRect || aboveRect.bottom < rect.bottom)) {\n above = child;\n aboveRect = rect;\n }\n else if (y < rect.top && (!belowRect || belowRect.top > rect.top)) {\n below = child;\n belowRect = rect;\n }\n }\n else if (aboveRect && yOverlap(aboveRect, rect)) {\n aboveRect = upBot(aboveRect, rect.bottom);\n }\n else if (belowRect && yOverlap(belowRect, rect)) {\n belowRect = upTop(belowRect, rect.top);\n }\n }\n }\n if (aboveRect && aboveRect.bottom >= y) {\n closest = above;\n closestRect = aboveRect;\n }\n else if (belowRect && belowRect.top <= y) {\n closest = below;\n closestRect = belowRect;\n }\n if (!closest)\n return { node: parent, offset: 0 };\n let clipX = Math.max(closestRect.left, Math.min(closestRect.right, x));\n if (closest.nodeType == 3)\n return domPosInText(closest, clipX, y);\n if (closestOverlap && closest.contentEditable != \"false\")\n return domPosAtCoords(closest, clipX, y);\n let offset = Array.prototype.indexOf.call(parent.childNodes, closest) +\n (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);\n return { node: parent, offset };\n}\nfunction domPosInText(node, x, y) {\n let len = node.nodeValue.length;\n let closestOffset = -1, closestDY = 1e9, generalSide = 0;\n for (let i = 0; i < len; i++) {\n let rects = textRange(node, i, i + 1).getClientRects();\n for (let j = 0; j < rects.length; j++) {\n let rect = rects[j];\n if (rect.top == rect.bottom)\n continue;\n if (!generalSide)\n generalSide = x - rect.left;\n let dy = (rect.top > y ? rect.top - y : y - rect.bottom) - 1;\n if (rect.left - 1 <= x && rect.right + 1 >= x && dy < closestDY) {\n let right = x >= (rect.left + rect.right) / 2, after = right;\n if (browser.chrome || browser.gecko) {\n // Check for RTL on browsers that support getting client\n // rects for empty ranges.\n let rectBefore = textRange(node, i).getBoundingClientRect();\n if (rectBefore.left == rect.right)\n after = !right;\n }\n if (dy <= 0)\n return { node, offset: i + (after ? 1 : 0) };\n closestOffset = i + (after ? 1 : 0);\n closestDY = dy;\n }\n }\n }\n return { node, offset: closestOffset > -1 ? closestOffset : generalSide > 0 ? node.nodeValue.length : 0 };\n}\nfunction posAtCoords(view, coords, precise, bias = -1) {\n var _a, _b;\n let content = view.contentDOM.getBoundingClientRect(), docTop = content.top + view.viewState.paddingTop;\n let block, { docHeight } = view.viewState;\n let { x, y } = coords, yOffset = y - docTop;\n if (yOffset < 0)\n return 0;\n if (yOffset > docHeight)\n return view.state.doc.length;\n // Scan for a text block near the queried y position\n for (let halfLine = view.viewState.heightOracle.textHeight / 2, bounced = false;;) {\n block = view.elementAtHeight(yOffset);\n if (block.type == BlockType.Text)\n break;\n for (;;) {\n // Move the y position out of this block\n yOffset = bias > 0 ? block.bottom + halfLine : block.top - halfLine;\n if (yOffset >= 0 && yOffset <= docHeight)\n break;\n // If the document consists entirely of replaced widgets, we\n // won't find a text block, so return 0\n if (bounced)\n return precise ? null : 0;\n bounced = true;\n bias = -bias;\n }\n }\n y = docTop + yOffset;\n let lineStart = block.from;\n // If this is outside of the rendered viewport, we can't determine a position\n if (lineStart < view.viewport.from)\n return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content, block, x, y);\n if (lineStart > view.viewport.to)\n return view.viewport.to == view.state.doc.length ? view.state.doc.length :\n precise ? null : posAtCoordsImprecise(view, content, block, x, y);\n // Prefer ShadowRootOrDocument.elementFromPoint if present, fall back to document if not\n let doc = view.dom.ownerDocument;\n let root = view.root.elementFromPoint ? view.root : doc;\n let element = root.elementFromPoint(x, y);\n if (element && !view.contentDOM.contains(element))\n element = null;\n // If the element is unexpected, clip x at the sides of the content area and try again\n if (!element) {\n x = Math.max(content.left + 1, Math.min(content.right - 1, x));\n element = root.elementFromPoint(x, y);\n if (element && !view.contentDOM.contains(element))\n element = null;\n }\n // There's visible editor content under the point, so we can try\n // using caret(Position|Range)FromPoint as a shortcut\n let node, offset = -1;\n if (element && ((_a = view.docView.nearest(element)) === null || _a === void 0 ? void 0 : _a.isEditable) != false) {\n if (doc.caretPositionFromPoint) {\n let pos = doc.caretPositionFromPoint(x, y);\n if (pos)\n ({ offsetNode: node, offset } = pos);\n }\n else if (doc.caretRangeFromPoint) {\n let range = doc.caretRangeFromPoint(x, y);\n if (range) {\n ({ startContainer: node, startOffset: offset } = range);\n if (!view.contentDOM.contains(node) ||\n browser.safari && isSuspiciousSafariCaretResult(node, offset, x) ||\n browser.chrome && isSuspiciousChromeCaretResult(node, offset, x))\n node = undefined;\n }\n }\n }\n // No luck, do our own (potentially expensive) search\n if (!node || !view.docView.dom.contains(node)) {\n let line = LineView.find(view.docView, lineStart);\n if (!line)\n return yOffset > block.top + block.height / 2 ? block.to : block.from;\n ({ node, offset } = domPosAtCoords(line.dom, x, y));\n }\n let nearest = view.docView.nearest(node);\n if (!nearest)\n return null;\n if (nearest.isWidget && ((_b = nearest.dom) === null || _b === void 0 ? void 0 : _b.nodeType) == 1) {\n let rect = nearest.dom.getBoundingClientRect();\n return coords.y < rect.top || coords.y <= rect.bottom && coords.x <= (rect.left + rect.right) / 2\n ? nearest.posAtStart : nearest.posAtEnd;\n }\n else {\n return nearest.localPosFromDOM(node, offset) + nearest.posAtStart;\n }\n}\nfunction posAtCoordsImprecise(view, contentRect, block, x, y) {\n let into = Math.round((x - contentRect.left) * view.defaultCharacterWidth);\n if (view.lineWrapping && block.height > view.defaultLineHeight * 1.5) {\n let textHeight = view.viewState.heightOracle.textHeight;\n let line = Math.floor((y - block.top - (view.defaultLineHeight - textHeight) * 0.5) / textHeight);\n into += line * view.viewState.heightOracle.lineLength;\n }\n let content = view.state.sliceDoc(block.from, block.to);\n return block.from + (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findColumn)(content, into, view.state.tabSize);\n}\n// In case of a high line height, Safari's caretRangeFromPoint treats\n// the space between lines as belonging to the last character of the\n// line before. This is used to detect such a result so that it can be\n// ignored (issue #401).\nfunction isSuspiciousSafariCaretResult(node, offset, x) {\n let len;\n if (node.nodeType != 3 || offset != (len = node.nodeValue.length))\n return false;\n for (let next = node.nextSibling; next; next = next.nextSibling)\n if (next.nodeType != 1 || next.nodeName != \"BR\")\n return false;\n return textRange(node, len - 1, len).getBoundingClientRect().left > x;\n}\n// Chrome will move positions between lines to the start of the next line\nfunction isSuspiciousChromeCaretResult(node, offset, x) {\n if (offset != 0)\n return false;\n for (let cur = node;;) {\n let parent = cur.parentNode;\n if (!parent || parent.nodeType != 1 || parent.firstChild != cur)\n return false;\n if (parent.classList.contains(\"cm-line\"))\n break;\n cur = parent;\n }\n let rect = node.nodeType == 1 ? node.getBoundingClientRect()\n : textRange(node, 0, Math.max(node.nodeValue.length, 1)).getBoundingClientRect();\n return x - rect.left > 5;\n}\nfunction blockAt(view, pos) {\n let line = view.lineBlockAt(pos);\n if (Array.isArray(line.type))\n for (let l of line.type) {\n if (l.to > pos || l.to == pos && (l.to == line.to || l.type == BlockType.Text))\n return l;\n }\n return line;\n}\nfunction moveToLineBoundary(view, start, forward, includeWrap) {\n let line = blockAt(view, start.head);\n let coords = !includeWrap || line.type != BlockType.Text || !(view.lineWrapping || line.widgetLineBreaks) ? null\n : view.coordsAtPos(start.assoc < 0 && start.head > line.from ? start.head - 1 : start.head);\n if (coords) {\n let editorRect = view.dom.getBoundingClientRect();\n let direction = view.textDirectionAt(line.from);\n let pos = view.posAtCoords({ x: forward == (direction == Direction.LTR) ? editorRect.right - 1 : editorRect.left + 1,\n y: (coords.top + coords.bottom) / 2 });\n if (pos != null)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(pos, forward ? -1 : 1);\n }\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(forward ? line.to : line.from, forward ? -1 : 1);\n}\nfunction moveByChar(view, start, forward, by) {\n let line = view.state.doc.lineAt(start.head), spans = view.bidiSpans(line);\n let direction = view.textDirectionAt(line.from);\n for (let cur = start, check = null;;) {\n let next = moveVisually(line, spans, direction, cur, forward), char = movedOver;\n if (!next) {\n if (line.number == (forward ? view.state.doc.lines : 1))\n return cur;\n char = \"\\n\";\n line = view.state.doc.line(line.number + (forward ? 1 : -1));\n spans = view.bidiSpans(line);\n next = view.visualLineSide(line, !forward);\n }\n if (!check) {\n if (!by)\n return next;\n check = by(char);\n }\n else if (!check(char)) {\n return cur;\n }\n cur = next;\n }\n}\nfunction byGroup(view, pos, start) {\n let categorize = view.state.charCategorizer(pos);\n let cat = categorize(start);\n return (next) => {\n let nextCat = categorize(next);\n if (cat == _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.CharCategory.Space)\n cat = nextCat;\n return cat == nextCat;\n };\n}\nfunction moveVertically(view, start, forward, distance) {\n let startPos = start.head, dir = forward ? 1 : -1;\n if (startPos == (forward ? view.state.doc.length : 0))\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(startPos, start.assoc);\n let goal = start.goalColumn, startY;\n let rect = view.contentDOM.getBoundingClientRect();\n let startCoords = view.coordsAtPos(startPos, start.assoc || -1), docTop = view.documentTop;\n if (startCoords) {\n if (goal == null)\n goal = startCoords.left - rect.left;\n startY = dir < 0 ? startCoords.top : startCoords.bottom;\n }\n else {\n let line = view.viewState.lineBlockAt(startPos);\n if (goal == null)\n goal = Math.min(rect.right - rect.left, view.defaultCharacterWidth * (startPos - line.from));\n startY = (dir < 0 ? line.top : line.bottom) + docTop;\n }\n let resolvedGoal = rect.left + goal;\n let dist = distance !== null && distance !== void 0 ? distance : (view.viewState.heightOracle.textHeight >> 1);\n for (let extra = 0;; extra += 10) {\n let curY = startY + (dist + extra) * dir;\n let pos = posAtCoords(view, { x: resolvedGoal, y: curY }, false, dir);\n if (curY < rect.top || curY > rect.bottom || (dir < 0 ? pos < startPos : pos > startPos)) {\n let charRect = view.docView.coordsForChar(pos);\n let assoc = !charRect || curY < charRect.top ? -1 : 1;\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(pos, assoc, undefined, goal);\n }\n }\n}\nfunction skipAtomicRanges(atoms, pos, bias) {\n for (;;) {\n let moved = 0;\n for (let set of atoms) {\n set.between(pos - 1, pos + 1, (from, to, value) => {\n if (pos > from && pos < to) {\n let side = moved || bias || (pos - from < to - pos ? -1 : 1);\n pos = side < 0 ? from : to;\n moved = side;\n }\n });\n }\n if (!moved)\n return pos;\n }\n}\nfunction skipAtoms(view, oldPos, pos) {\n let newPos = skipAtomicRanges(view.state.facet(atomicRanges).map(f => f(view)), pos.from, oldPos.head > pos.from ? -1 : 1);\n return newPos == pos.from ? pos : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(newPos, newPos < pos.from ? 1 : -1);\n}\n\n// This will also be where dragging info and such goes\nclass InputState {\n setSelectionOrigin(origin) {\n this.lastSelectionOrigin = origin;\n this.lastSelectionTime = Date.now();\n }\n constructor(view) {\n this.view = view;\n this.lastKeyCode = 0;\n this.lastKeyTime = 0;\n this.lastTouchTime = 0;\n this.lastFocusTime = 0;\n this.lastScrollTop = 0;\n this.lastScrollLeft = 0;\n // On iOS, some keys need to have their default behavior happen\n // (after which we retroactively handle them and reset the DOM) to\n // avoid messing up the virtual keyboard state.\n this.pendingIOSKey = undefined;\n /**\n When enabled (>-1), tab presses are not given to key handlers,\n leaving the browser's default behavior. If >0, the mode expires\n at that timestamp, and any other keypress clears it.\n Esc enables temporary tab focus mode for two seconds when not\n otherwise handled.\n */\n this.tabFocusMode = -1;\n this.lastSelectionOrigin = null;\n this.lastSelectionTime = 0;\n this.lastContextMenu = 0;\n this.scrollHandlers = [];\n this.handlers = Object.create(null);\n // -1 means not in a composition. Otherwise, this counts the number\n // of changes made during the composition. The count is used to\n // avoid treating the start state of the composition, before any\n // changes have been made, as part of the composition.\n this.composing = -1;\n // Tracks whether the next change should be marked as starting the\n // composition (null means no composition, true means next is the\n // first, false means first has already been marked for this\n // composition)\n this.compositionFirstChange = null;\n // End time of the previous composition\n this.compositionEndedAt = 0;\n // Used in a kludge to detect when an Enter keypress should be\n // considered part of the composition on Safari, which fires events\n // in the wrong order\n this.compositionPendingKey = false;\n // Used to categorize changes as part of a composition, even when\n // the mutation events fire shortly after the compositionend event\n this.compositionPendingChange = false;\n this.mouseSelection = null;\n // When a drag from the editor is active, this points at the range\n // being dragged.\n this.draggedContent = null;\n this.handleEvent = this.handleEvent.bind(this);\n this.notifiedFocused = view.hasFocus;\n // On Safari adding an input event handler somehow prevents an\n // issue where the composition vanishes when you press enter.\n if (browser.safari)\n view.contentDOM.addEventListener(\"input\", () => null);\n if (browser.gecko)\n firefoxCopyCutHack(view.contentDOM.ownerDocument);\n }\n handleEvent(event) {\n if (!eventBelongsToEditor(this.view, event) || this.ignoreDuringComposition(event))\n return;\n if (event.type == \"keydown\" && this.keydown(event))\n return;\n this.runHandlers(event.type, event);\n }\n runHandlers(type, event) {\n let handlers = this.handlers[type];\n if (handlers) {\n for (let observer of handlers.observers)\n observer(this.view, event);\n for (let handler of handlers.handlers) {\n if (event.defaultPrevented)\n break;\n if (handler(this.view, event)) {\n event.preventDefault();\n break;\n }\n }\n }\n }\n ensureHandlers(plugins) {\n let handlers = computeHandlers(plugins), prev = this.handlers, dom = this.view.contentDOM;\n for (let type in handlers)\n if (type != \"scroll\") {\n let passive = !handlers[type].handlers.length;\n let exists = prev[type];\n if (exists && passive != !exists.handlers.length) {\n dom.removeEventListener(type, this.handleEvent);\n exists = null;\n }\n if (!exists)\n dom.addEventListener(type, this.handleEvent, { passive });\n }\n for (let type in prev)\n if (type != \"scroll\" && !handlers[type])\n dom.removeEventListener(type, this.handleEvent);\n this.handlers = handlers;\n }\n keydown(event) {\n // Must always run, even if a custom handler handled the event\n this.lastKeyCode = event.keyCode;\n this.lastKeyTime = Date.now();\n if (event.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))\n return true;\n if (this.tabFocusMode > 0 && event.keyCode != 27 && modifierCodes.indexOf(event.keyCode) < 0)\n this.tabFocusMode = -1;\n // Chrome for Android usually doesn't fire proper key events, but\n // occasionally does, usually surrounded by a bunch of complicated\n // composition changes. When an enter or backspace key event is\n // seen, hold off on handling DOM events for a bit, and then\n // dispatch it.\n if (browser.android && browser.chrome && !event.synthetic &&\n (event.keyCode == 13 || event.keyCode == 8)) {\n this.view.observer.delayAndroidKey(event.key, event.keyCode);\n return true;\n }\n // Preventing the default behavior of Enter on iOS makes the\n // virtual keyboard get stuck in the wrong (lowercase)\n // state. So we let it go through, and then, in\n // applyDOMChange, notify key handlers of it and reset to\n // the state they produce.\n let pending;\n if (browser.ios && !event.synthetic && !event.altKey && !event.metaKey &&\n ((pending = PendingKeys.find(key => key.keyCode == event.keyCode)) && !event.ctrlKey ||\n EmacsyPendingKeys.indexOf(event.key) > -1 && event.ctrlKey && !event.shiftKey)) {\n this.pendingIOSKey = pending || event;\n setTimeout(() => this.flushIOSKey(), 250);\n return true;\n }\n if (event.keyCode != 229)\n this.view.observer.forceFlush();\n return false;\n }\n flushIOSKey(change) {\n let key = this.pendingIOSKey;\n if (!key)\n return false;\n // This looks like an autocorrection before Enter\n if (key.key == \"Enter\" && change && change.from < change.to && /^\\S+$/.test(change.insert.toString()))\n return false;\n this.pendingIOSKey = undefined;\n return dispatchKey(this.view.contentDOM, key.key, key.keyCode, key instanceof KeyboardEvent ? key : undefined);\n }\n ignoreDuringComposition(event) {\n if (!/^key/.test(event.type))\n return false;\n if (this.composing > 0)\n return true;\n // See https://www.stum.de/2016/06/24/handling-ime-events-in-javascript/.\n // On some input method editors (IMEs), the Enter key is used to\n // confirm character selection. On Safari, when Enter is pressed,\n // compositionend and keydown events are sometimes emitted in the\n // wrong order. The key event should still be ignored, even when\n // it happens after the compositionend event.\n if (browser.safari && !browser.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100) {\n this.compositionPendingKey = false;\n return true;\n }\n return false;\n }\n startMouseSelection(mouseSelection) {\n if (this.mouseSelection)\n this.mouseSelection.destroy();\n this.mouseSelection = mouseSelection;\n }\n update(update) {\n this.view.observer.update(update);\n if (this.mouseSelection)\n this.mouseSelection.update(update);\n if (this.draggedContent && update.docChanged)\n this.draggedContent = this.draggedContent.map(update.changes);\n if (update.transactions.length)\n this.lastKeyCode = this.lastSelectionTime = 0;\n }\n destroy() {\n if (this.mouseSelection)\n this.mouseSelection.destroy();\n }\n}\nfunction bindHandler(plugin, handler) {\n return (view, event) => {\n try {\n return handler.call(plugin, event, view);\n }\n catch (e) {\n logException(view.state, e);\n }\n };\n}\nfunction computeHandlers(plugins) {\n let result = Object.create(null);\n function record(type) {\n return result[type] || (result[type] = { observers: [], handlers: [] });\n }\n for (let plugin of plugins) {\n let spec = plugin.spec;\n if (spec && spec.domEventHandlers)\n for (let type in spec.domEventHandlers) {\n let f = spec.domEventHandlers[type];\n if (f)\n record(type).handlers.push(bindHandler(plugin.value, f));\n }\n if (spec && spec.domEventObservers)\n for (let type in spec.domEventObservers) {\n let f = spec.domEventObservers[type];\n if (f)\n record(type).observers.push(bindHandler(plugin.value, f));\n }\n }\n for (let type in handlers)\n record(type).handlers.push(handlers[type]);\n for (let type in observers)\n record(type).observers.push(observers[type]);\n return result;\n}\nconst PendingKeys = [\n { key: \"Backspace\", keyCode: 8, inputType: \"deleteContentBackward\" },\n { key: \"Enter\", keyCode: 13, inputType: \"insertParagraph\" },\n { key: \"Enter\", keyCode: 13, inputType: \"insertLineBreak\" },\n { key: \"Delete\", keyCode: 46, inputType: \"deleteContentForward\" }\n];\nconst EmacsyPendingKeys = \"dthko\";\n// Key codes for modifier keys\nconst modifierCodes = [16, 17, 18, 20, 91, 92, 224, 225];\nconst dragScrollMargin = 6;\nfunction dragScrollSpeed(dist) {\n return Math.max(0, dist) * 0.7 + 8;\n}\nfunction dist(a, b) {\n return Math.max(Math.abs(a.clientX - b.clientX), Math.abs(a.clientY - b.clientY));\n}\nclass MouseSelection {\n constructor(view, startEvent, style, mustSelect) {\n this.view = view;\n this.startEvent = startEvent;\n this.style = style;\n this.mustSelect = mustSelect;\n this.scrollSpeed = { x: 0, y: 0 };\n this.scrolling = -1;\n this.lastEvent = startEvent;\n this.scrollParents = scrollableParents(view.contentDOM);\n this.atoms = view.state.facet(atomicRanges).map(f => f(view));\n let doc = view.contentDOM.ownerDocument;\n doc.addEventListener(\"mousemove\", this.move = this.move.bind(this));\n doc.addEventListener(\"mouseup\", this.up = this.up.bind(this));\n this.extend = startEvent.shiftKey;\n this.multiple = view.state.facet(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorState.allowMultipleSelections) && addsSelectionRange(view, startEvent);\n this.dragging = isInPrimarySelection(view, startEvent) && getClickType(startEvent) == 1 ? null : false;\n }\n start(event) {\n // When clicking outside of the selection, immediately apply the\n // effect of starting the selection\n if (this.dragging === false)\n this.select(event);\n }\n move(event) {\n if (event.buttons == 0)\n return this.destroy();\n if (this.dragging || this.dragging == null && dist(this.startEvent, event) < 10)\n return;\n this.select(this.lastEvent = event);\n let sx = 0, sy = 0;\n let left = 0, top = 0, right = this.view.win.innerWidth, bottom = this.view.win.innerHeight;\n if (this.scrollParents.x)\n ({ left, right } = this.scrollParents.x.getBoundingClientRect());\n if (this.scrollParents.y)\n ({ top, bottom } = this.scrollParents.y.getBoundingClientRect());\n let margins = getScrollMargins(this.view);\n if (event.clientX - margins.left <= left + dragScrollMargin)\n sx = -dragScrollSpeed(left - event.clientX);\n else if (event.clientX + margins.right >= right - dragScrollMargin)\n sx = dragScrollSpeed(event.clientX - right);\n if (event.clientY - margins.top <= top + dragScrollMargin)\n sy = -dragScrollSpeed(top - event.clientY);\n else if (event.clientY + margins.bottom >= bottom - dragScrollMargin)\n sy = dragScrollSpeed(event.clientY - bottom);\n this.setScrollSpeed(sx, sy);\n }\n up(event) {\n if (this.dragging == null)\n this.select(this.lastEvent);\n if (!this.dragging)\n event.preventDefault();\n this.destroy();\n }\n destroy() {\n this.setScrollSpeed(0, 0);\n let doc = this.view.contentDOM.ownerDocument;\n doc.removeEventListener(\"mousemove\", this.move);\n doc.removeEventListener(\"mouseup\", this.up);\n this.view.inputState.mouseSelection = this.view.inputState.draggedContent = null;\n }\n setScrollSpeed(sx, sy) {\n this.scrollSpeed = { x: sx, y: sy };\n if (sx || sy) {\n if (this.scrolling < 0)\n this.scrolling = setInterval(() => this.scroll(), 50);\n }\n else if (this.scrolling > -1) {\n clearInterval(this.scrolling);\n this.scrolling = -1;\n }\n }\n scroll() {\n let { x, y } = this.scrollSpeed;\n if (x && this.scrollParents.x) {\n this.scrollParents.x.scrollLeft += x;\n x = 0;\n }\n if (y && this.scrollParents.y) {\n this.scrollParents.y.scrollTop += y;\n y = 0;\n }\n if (x || y)\n this.view.win.scrollBy(x, y);\n if (this.dragging === false)\n this.select(this.lastEvent);\n }\n skipAtoms(sel) {\n let ranges = null;\n for (let i = 0; i < sel.ranges.length; i++) {\n let range = sel.ranges[i], updated = null;\n if (range.empty) {\n let pos = skipAtomicRanges(this.atoms, range.from, 0);\n if (pos != range.from)\n updated = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(pos, -1);\n }\n else {\n let from = skipAtomicRanges(this.atoms, range.from, -1);\n let to = skipAtomicRanges(this.atoms, range.to, 1);\n if (from != range.from || to != range.to)\n updated = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(range.from == range.anchor ? from : to, range.from == range.head ? from : to);\n }\n if (updated) {\n if (!ranges)\n ranges = sel.ranges.slice();\n ranges[i] = updated;\n }\n }\n return ranges ? _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.create(ranges, sel.mainIndex) : sel;\n }\n select(event) {\n let { view } = this, selection = this.skipAtoms(this.style.get(event, this.extend, this.multiple));\n if (this.mustSelect || !selection.eq(view.state.selection, this.dragging === false))\n this.view.dispatch({\n selection,\n userEvent: \"select.pointer\"\n });\n this.mustSelect = false;\n }\n update(update) {\n if (update.transactions.some(tr => tr.isUserEvent(\"input.type\")))\n this.destroy();\n else if (this.style.update(update))\n setTimeout(() => this.select(this.lastEvent), 20);\n }\n}\nfunction addsSelectionRange(view, event) {\n let facet = view.state.facet(clickAddsSelectionRange);\n return facet.length ? facet[0](event) : browser.mac ? event.metaKey : event.ctrlKey;\n}\nfunction dragMovesSelection(view, event) {\n let facet = view.state.facet(dragMovesSelection$1);\n return facet.length ? facet[0](event) : browser.mac ? !event.altKey : !event.ctrlKey;\n}\nfunction isInPrimarySelection(view, event) {\n let { main } = view.state.selection;\n if (main.empty)\n return false;\n // On boundary clicks, check whether the coordinates are inside the\n // selection's client rectangles\n let sel = getSelection(view.root);\n if (!sel || sel.rangeCount == 0)\n return true;\n let rects = sel.getRangeAt(0).getClientRects();\n for (let i = 0; i < rects.length; i++) {\n let rect = rects[i];\n if (rect.left <= event.clientX && rect.right >= event.clientX &&\n rect.top <= event.clientY && rect.bottom >= event.clientY)\n return true;\n }\n return false;\n}\nfunction eventBelongsToEditor(view, event) {\n if (!event.bubbles)\n return true;\n if (event.defaultPrevented)\n return false;\n for (let node = event.target, cView; node != view.contentDOM; node = node.parentNode)\n if (!node || node.nodeType == 11 || ((cView = ContentView.get(node)) && cView.ignoreEvent(event)))\n return false;\n return true;\n}\nconst handlers = /*@__PURE__*/Object.create(null);\nconst observers = /*@__PURE__*/Object.create(null);\n// This is very crude, but unfortunately both these browsers _pretend_\n// that they have a clipboard API—all the objects and methods are\n// there, they just don't work, and they are hard to test.\nconst brokenClipboardAPI = (browser.ie && browser.ie_version < 15) ||\n (browser.ios && browser.webkit_version < 604);\nfunction capturePaste(view) {\n let parent = view.dom.parentNode;\n if (!parent)\n return;\n let target = parent.appendChild(document.createElement(\"textarea\"));\n target.style.cssText = \"position: fixed; left: -10000px; top: 10px\";\n target.focus();\n setTimeout(() => {\n view.focus();\n target.remove();\n doPaste(view, target.value);\n }, 50);\n}\nfunction doPaste(view, input) {\n let { state } = view, changes, i = 1, text = state.toText(input);\n let byLine = text.lines == state.selection.ranges.length;\n let linewise = lastLinewiseCopy != null && state.selection.ranges.every(r => r.empty) && lastLinewiseCopy == text.toString();\n if (linewise) {\n let lastLine = -1;\n changes = state.changeByRange(range => {\n let line = state.doc.lineAt(range.from);\n if (line.from == lastLine)\n return { range };\n lastLine = line.from;\n let insert = state.toText((byLine ? text.line(i++).text : input) + state.lineBreak);\n return { changes: { from: line.from, insert },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(range.from + insert.length) };\n });\n }\n else if (byLine) {\n changes = state.changeByRange(range => {\n let line = text.line(i++);\n return { changes: { from: range.from, to: range.to, insert: line.text },\n range: _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(range.from + line.length) };\n });\n }\n else {\n changes = state.replaceSelection(text);\n }\n view.dispatch(changes, {\n userEvent: \"input.paste\",\n scrollIntoView: true\n });\n}\nobservers.scroll = view => {\n view.inputState.lastScrollTop = view.scrollDOM.scrollTop;\n view.inputState.lastScrollLeft = view.scrollDOM.scrollLeft;\n};\nhandlers.keydown = (view, event) => {\n view.inputState.setSelectionOrigin(\"select\");\n if (event.keyCode == 27 && view.inputState.tabFocusMode != 0)\n view.inputState.tabFocusMode = Date.now() + 2000;\n return false;\n};\nobservers.touchstart = (view, e) => {\n view.inputState.lastTouchTime = Date.now();\n view.inputState.setSelectionOrigin(\"select.pointer\");\n};\nobservers.touchmove = view => {\n view.inputState.setSelectionOrigin(\"select.pointer\");\n};\nhandlers.mousedown = (view, event) => {\n view.observer.flush();\n if (view.inputState.lastTouchTime > Date.now() - 2000)\n return false; // Ignore touch interaction\n let style = null;\n for (let makeStyle of view.state.facet(mouseSelectionStyle)) {\n style = makeStyle(view, event);\n if (style)\n break;\n }\n if (!style && event.button == 0)\n style = basicMouseSelection(view, event);\n if (style) {\n let mustFocus = !view.hasFocus;\n view.inputState.startMouseSelection(new MouseSelection(view, event, style, mustFocus));\n if (mustFocus)\n view.observer.ignore(() => {\n focusPreventScroll(view.contentDOM);\n let active = view.root.activeElement;\n if (active && !active.contains(view.contentDOM))\n active.blur();\n });\n let mouseSel = view.inputState.mouseSelection;\n if (mouseSel) {\n mouseSel.start(event);\n return mouseSel.dragging === false;\n }\n }\n return false;\n};\nfunction rangeForClick(view, pos, bias, type) {\n if (type == 1) { // Single click\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(pos, bias);\n }\n else if (type == 2) { // Double click\n return groupAt(view.state, pos, bias);\n }\n else { // Triple click\n let visual = LineView.find(view.docView, pos), line = view.state.doc.lineAt(visual ? visual.posAtEnd : pos);\n let from = visual ? visual.posAtStart : line.from, to = visual ? visual.posAtEnd : line.to;\n if (to < view.state.doc.length && to == line.to)\n to++;\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(from, to);\n }\n}\nlet insideY = (y, rect) => y >= rect.top && y <= rect.bottom;\nlet inside = (x, y, rect) => insideY(y, rect) && x >= rect.left && x <= rect.right;\n// Try to determine, for the given coordinates, associated with the\n// given position, whether they are related to the element before or\n// the element after the position.\nfunction findPositionSide(view, pos, x, y) {\n let line = LineView.find(view.docView, pos);\n if (!line)\n return 1;\n let off = pos - line.posAtStart;\n // Line boundaries point into the line\n if (off == 0)\n return 1;\n if (off == line.length)\n return -1;\n // Positions on top of an element point at that element\n let before = line.coordsAt(off, -1);\n if (before && inside(x, y, before))\n return -1;\n let after = line.coordsAt(off, 1);\n if (after && inside(x, y, after))\n return 1;\n // This is probably a line wrap point. Pick before if the point is\n // beside it.\n return before && insideY(y, before) ? -1 : 1;\n}\nfunction queryPos(view, event) {\n let pos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);\n return { pos, bias: findPositionSide(view, pos, event.clientX, event.clientY) };\n}\nconst BadMouseDetail = browser.ie && browser.ie_version <= 11;\nlet lastMouseDown = null, lastMouseDownCount = 0, lastMouseDownTime = 0;\nfunction getClickType(event) {\n if (!BadMouseDetail)\n return event.detail;\n let last = lastMouseDown, lastTime = lastMouseDownTime;\n lastMouseDown = event;\n lastMouseDownTime = Date.now();\n return lastMouseDownCount = !last || (lastTime > Date.now() - 400 && Math.abs(last.clientX - event.clientX) < 2 &&\n Math.abs(last.clientY - event.clientY) < 2) ? (lastMouseDownCount + 1) % 3 : 1;\n}\nfunction basicMouseSelection(view, event) {\n let start = queryPos(view, event), type = getClickType(event);\n let startSel = view.state.selection;\n return {\n update(update) {\n if (update.docChanged) {\n start.pos = update.changes.mapPos(start.pos);\n startSel = startSel.map(update.changes);\n }\n },\n get(event, extend, multiple) {\n let cur = queryPos(view, event), removed;\n let range = rangeForClick(view, cur.pos, cur.bias, type);\n if (start.pos != cur.pos && !extend) {\n let startRange = rangeForClick(view, start.pos, start.bias, type);\n let from = Math.min(startRange.from, range.from), to = Math.max(startRange.to, range.to);\n range = from < range.from ? _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(from, to) : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(to, from);\n }\n if (extend)\n return startSel.replaceRange(startSel.main.extend(range.from, range.to));\n else if (multiple && type == 1 && startSel.ranges.length > 1 && (removed = removeRangeAround(startSel, cur.pos)))\n return removed;\n else if (multiple)\n return startSel.addRange(range);\n else\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.create([range]);\n }\n };\n}\nfunction removeRangeAround(sel, pos) {\n for (let i = 0; i < sel.ranges.length; i++) {\n let { from, to } = sel.ranges[i];\n if (from <= pos && to >= pos)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.create(sel.ranges.slice(0, i).concat(sel.ranges.slice(i + 1)), sel.mainIndex == i ? 0 : sel.mainIndex - (sel.mainIndex > i ? 1 : 0));\n }\n return null;\n}\nhandlers.dragstart = (view, event) => {\n let { selection: { main: range } } = view.state;\n if (event.target.draggable) {\n let cView = view.docView.nearest(event.target);\n if (cView && cView.isWidget) {\n let from = cView.posAtStart, to = from + cView.length;\n if (from >= range.to || to <= range.from)\n range = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(from, to);\n }\n }\n let { inputState } = view;\n if (inputState.mouseSelection)\n inputState.mouseSelection.dragging = true;\n inputState.draggedContent = range;\n if (event.dataTransfer) {\n event.dataTransfer.setData(\"Text\", view.state.sliceDoc(range.from, range.to));\n event.dataTransfer.effectAllowed = \"copyMove\";\n }\n return false;\n};\nhandlers.dragend = view => {\n view.inputState.draggedContent = null;\n return false;\n};\nfunction dropText(view, event, text, direct) {\n if (!text)\n return;\n let dropPos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);\n let { draggedContent } = view.inputState;\n let del = direct && draggedContent && dragMovesSelection(view, event)\n ? { from: draggedContent.from, to: draggedContent.to } : null;\n let ins = { from: dropPos, insert: text };\n let changes = view.state.changes(del ? [del, ins] : ins);\n view.focus();\n view.dispatch({\n changes,\n selection: { anchor: changes.mapPos(dropPos, -1), head: changes.mapPos(dropPos, 1) },\n userEvent: del ? \"move.drop\" : \"input.drop\"\n });\n view.inputState.draggedContent = null;\n}\nhandlers.drop = (view, event) => {\n if (!event.dataTransfer)\n return false;\n if (view.state.readOnly)\n return true;\n let files = event.dataTransfer.files;\n if (files && files.length) { // For a file drop, read the file's text.\n let text = Array(files.length), read = 0;\n let finishFile = () => {\n if (++read == files.length)\n dropText(view, event, text.filter(s => s != null).join(view.state.lineBreak), false);\n };\n for (let i = 0; i < files.length; i++) {\n let reader = new FileReader;\n reader.onerror = finishFile;\n reader.onload = () => {\n if (!/[\\x00-\\x08\\x0e-\\x1f]{2}/.test(reader.result))\n text[i] = reader.result;\n finishFile();\n };\n reader.readAsText(files[i]);\n }\n return true;\n }\n else {\n let text = event.dataTransfer.getData(\"Text\");\n if (text) {\n dropText(view, event, text, true);\n return true;\n }\n }\n return false;\n};\nhandlers.paste = (view, event) => {\n if (view.state.readOnly)\n return true;\n view.observer.flush();\n let data = brokenClipboardAPI ? null : event.clipboardData;\n if (data) {\n doPaste(view, data.getData(\"text/plain\") || data.getData(\"text/uri-list\"));\n return true;\n }\n else {\n capturePaste(view);\n return false;\n }\n};\nfunction captureCopy(view, text) {\n // The extra wrapper is somehow necessary on IE/Edge to prevent the\n // content from being mangled when it is put onto the clipboard\n let parent = view.dom.parentNode;\n if (!parent)\n return;\n let target = parent.appendChild(document.createElement(\"textarea\"));\n target.style.cssText = \"position: fixed; left: -10000px; top: 10px\";\n target.value = text;\n target.focus();\n target.selectionEnd = text.length;\n target.selectionStart = 0;\n setTimeout(() => {\n target.remove();\n view.focus();\n }, 50);\n}\nfunction copiedRange(state) {\n let content = [], ranges = [], linewise = false;\n for (let range of state.selection.ranges)\n if (!range.empty) {\n content.push(state.sliceDoc(range.from, range.to));\n ranges.push(range);\n }\n if (!content.length) {\n // Nothing selected, do a line-wise copy\n let upto = -1;\n for (let { from } of state.selection.ranges) {\n let line = state.doc.lineAt(from);\n if (line.number > upto) {\n content.push(line.text);\n ranges.push({ from: line.from, to: Math.min(state.doc.length, line.to + 1) });\n }\n upto = line.number;\n }\n linewise = true;\n }\n return { text: content.join(state.lineBreak), ranges, linewise };\n}\nlet lastLinewiseCopy = null;\nhandlers.copy = handlers.cut = (view, event) => {\n let { text, ranges, linewise } = copiedRange(view.state);\n if (!text && !linewise)\n return false;\n lastLinewiseCopy = linewise ? text : null;\n if (event.type == \"cut\" && !view.state.readOnly)\n view.dispatch({\n changes: ranges,\n scrollIntoView: true,\n userEvent: \"delete.cut\"\n });\n let data = brokenClipboardAPI ? null : event.clipboardData;\n if (data) {\n data.clearData();\n data.setData(\"text/plain\", text);\n return true;\n }\n else {\n captureCopy(view, text);\n return false;\n }\n};\nconst isFocusChange = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Annotation.define();\nfunction focusChangeTransaction(state, focus) {\n let effects = [];\n for (let getEffect of state.facet(focusChangeEffect)) {\n let effect = getEffect(state, focus);\n if (effect)\n effects.push(effect);\n }\n return effects ? state.update({ effects, annotations: isFocusChange.of(true) }) : null;\n}\nfunction updateForFocusChange(view) {\n setTimeout(() => {\n let focus = view.hasFocus;\n if (focus != view.inputState.notifiedFocused) {\n let tr = focusChangeTransaction(view.state, focus);\n if (tr)\n view.dispatch(tr);\n else\n view.update([]);\n }\n }, 10);\n}\nobservers.focus = view => {\n view.inputState.lastFocusTime = Date.now();\n // When focusing reset the scroll position, move it back to where it was\n if (!view.scrollDOM.scrollTop && (view.inputState.lastScrollTop || view.inputState.lastScrollLeft)) {\n view.scrollDOM.scrollTop = view.inputState.lastScrollTop;\n view.scrollDOM.scrollLeft = view.inputState.lastScrollLeft;\n }\n updateForFocusChange(view);\n};\nobservers.blur = view => {\n view.observer.clearSelectionRange();\n updateForFocusChange(view);\n};\nobservers.compositionstart = observers.compositionupdate = view => {\n if (view.observer.editContext)\n return; // Composition handled by edit context\n if (view.inputState.compositionFirstChange == null)\n view.inputState.compositionFirstChange = true;\n if (view.inputState.composing < 0) {\n // FIXME possibly set a timeout to clear it again on Android\n view.inputState.composing = 0;\n }\n};\nobservers.compositionend = view => {\n if (view.observer.editContext)\n return; // Composition handled by edit context\n view.inputState.composing = -1;\n view.inputState.compositionEndedAt = Date.now();\n view.inputState.compositionPendingKey = true;\n view.inputState.compositionPendingChange = view.observer.pendingRecords().length > 0;\n view.inputState.compositionFirstChange = null;\n if (browser.chrome && browser.android) {\n // Delay flushing for a bit on Android because it'll often fire a\n // bunch of contradictory changes in a row at end of compositon\n view.observer.flushSoon();\n }\n else if (view.inputState.compositionPendingChange) {\n // If we found pending records, schedule a flush.\n Promise.resolve().then(() => view.observer.flush());\n }\n else {\n // Otherwise, make sure that, if no changes come in soon, the\n // composition view is cleared.\n setTimeout(() => {\n if (view.inputState.composing < 0 && view.docView.hasComposition)\n view.update([]);\n }, 50);\n }\n};\nobservers.contextmenu = view => {\n view.inputState.lastContextMenu = Date.now();\n};\nhandlers.beforeinput = (view, event) => {\n var _a;\n // Because Chrome Android doesn't fire useful key events, use\n // beforeinput to detect backspace (and possibly enter and delete,\n // but those usually don't even seem to fire beforeinput events at\n // the moment) and fake a key event for it.\n //\n // (preventDefault on beforeinput, though supported in the spec,\n // seems to do nothing at all on Chrome).\n let pending;\n if (browser.chrome && browser.android && (pending = PendingKeys.find(key => key.inputType == event.inputType))) {\n view.observer.delayAndroidKey(pending.key, pending.keyCode);\n if (pending.key == \"Backspace\" || pending.key == \"Delete\") {\n let startViewHeight = ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) || 0;\n setTimeout(() => {\n var _a;\n // Backspacing near uneditable nodes on Chrome Android sometimes\n // closes the virtual keyboard. This tries to crudely detect\n // that and refocus to get it back.\n if ((((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) || 0) > startViewHeight + 10 && view.hasFocus) {\n view.contentDOM.blur();\n view.focus();\n }\n }, 100);\n }\n }\n if (browser.ios && event.inputType == \"deleteContentForward\") {\n // For some reason, DOM changes (and beforeinput) happen _before_\n // the key event for ctrl-d on iOS when using an external\n // keyboard.\n view.observer.flushSoon();\n }\n // Safari will occasionally forget to fire compositionend at the end of a dead-key composition\n if (browser.safari && event.inputType == \"insertText\" && view.inputState.composing >= 0) {\n setTimeout(() => observers.compositionend(view, event), 20);\n }\n return false;\n};\nconst appliedFirefoxHack = /*@__PURE__*/new Set;\n// In Firefox, when cut/copy handlers are added to the document, that\n// somehow avoids a bug where those events aren't fired when the\n// selection is empty. See https://github.com/codemirror/dev/issues/1082\n// and https://bugzilla.mozilla.org/show_bug.cgi?id=995961\nfunction firefoxCopyCutHack(doc) {\n if (!appliedFirefoxHack.has(doc)) {\n appliedFirefoxHack.add(doc);\n doc.addEventListener(\"copy\", () => { });\n doc.addEventListener(\"cut\", () => { });\n }\n}\n\nconst wrappingWhiteSpace = [\"pre-wrap\", \"normal\", \"pre-line\", \"break-spaces\"];\nclass HeightOracle {\n constructor(lineWrapping) {\n this.lineWrapping = lineWrapping;\n this.doc = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty;\n this.heightSamples = {};\n this.lineHeight = 14; // The height of an entire line (line-height)\n this.charWidth = 7;\n this.textHeight = 14; // The height of the actual font (font-size)\n this.lineLength = 30;\n // Used to track, during updateHeight, if any actual heights changed\n this.heightChanged = false;\n }\n heightForGap(from, to) {\n let lines = this.doc.lineAt(to).number - this.doc.lineAt(from).number + 1;\n if (this.lineWrapping)\n lines += Math.max(0, Math.ceil(((to - from) - (lines * this.lineLength * 0.5)) / this.lineLength));\n return this.lineHeight * lines;\n }\n heightForLine(length) {\n if (!this.lineWrapping)\n return this.lineHeight;\n let lines = 1 + Math.max(0, Math.ceil((length - this.lineLength) / (this.lineLength - 5)));\n return lines * this.lineHeight;\n }\n setDoc(doc) { this.doc = doc; return this; }\n mustRefreshForWrapping(whiteSpace) {\n return (wrappingWhiteSpace.indexOf(whiteSpace) > -1) != this.lineWrapping;\n }\n mustRefreshForHeights(lineHeights) {\n let newHeight = false;\n for (let i = 0; i < lineHeights.length; i++) {\n let h = lineHeights[i];\n if (h < 0) {\n i++;\n }\n else if (!this.heightSamples[Math.floor(h * 10)]) { // Round to .1 pixels\n newHeight = true;\n this.heightSamples[Math.floor(h * 10)] = true;\n }\n }\n return newHeight;\n }\n refresh(whiteSpace, lineHeight, charWidth, textHeight, lineLength, knownHeights) {\n let lineWrapping = wrappingWhiteSpace.indexOf(whiteSpace) > -1;\n let changed = Math.round(lineHeight) != Math.round(this.lineHeight) || this.lineWrapping != lineWrapping;\n this.lineWrapping = lineWrapping;\n this.lineHeight = lineHeight;\n this.charWidth = charWidth;\n this.textHeight = textHeight;\n this.lineLength = lineLength;\n if (changed) {\n this.heightSamples = {};\n for (let i = 0; i < knownHeights.length; i++) {\n let h = knownHeights[i];\n if (h < 0)\n i++;\n else\n this.heightSamples[Math.floor(h * 10)] = true;\n }\n }\n return changed;\n }\n}\n// This object is used by `updateHeight` to make DOM measurements\n// arrive at the right nides. The `heights` array is a sequence of\n// block heights, starting from position `from`.\nclass MeasuredHeights {\n constructor(from, heights) {\n this.from = from;\n this.heights = heights;\n this.index = 0;\n }\n get more() { return this.index < this.heights.length; }\n}\n/**\nRecord used to represent information about a block-level element\nin the editor view.\n*/\nclass BlockInfo {\n /**\n @internal\n */\n constructor(\n /**\n The start of the element in the document.\n */\n from, \n /**\n The length of the element.\n */\n length, \n /**\n The top position of the element (relative to the top of the\n document).\n */\n top, \n /**\n Its height.\n */\n height, \n /**\n @internal Weird packed field that holds an array of children\n for composite blocks, a decoration for block widgets, and a\n number indicating the amount of widget-create line breaks for\n text blocks.\n */\n _content) {\n this.from = from;\n this.length = length;\n this.top = top;\n this.height = height;\n this._content = _content;\n }\n /**\n The type of element this is. When querying lines, this may be\n an array of all the blocks that make up the line.\n */\n get type() {\n return typeof this._content == \"number\" ? BlockType.Text :\n Array.isArray(this._content) ? this._content : this._content.type;\n }\n /**\n The end of the element as a document position.\n */\n get to() { return this.from + this.length; }\n /**\n The bottom position of the element.\n */\n get bottom() { return this.top + this.height; }\n /**\n If this is a widget block, this will return the widget\n associated with it.\n */\n get widget() {\n return this._content instanceof PointDecoration ? this._content.widget : null;\n }\n /**\n If this is a textblock, this holds the number of line breaks\n that appear in widgets inside the block.\n */\n get widgetLineBreaks() {\n return typeof this._content == \"number\" ? this._content : 0;\n }\n /**\n @internal\n */\n join(other) {\n let content = (Array.isArray(this._content) ? this._content : [this])\n .concat(Array.isArray(other._content) ? other._content : [other]);\n return new BlockInfo(this.from, this.length + other.length, this.top, this.height + other.height, content);\n }\n}\nvar QueryType = /*@__PURE__*/(function (QueryType) {\n QueryType[QueryType[\"ByPos\"] = 0] = \"ByPos\";\n QueryType[QueryType[\"ByHeight\"] = 1] = \"ByHeight\";\n QueryType[QueryType[\"ByPosNoHeight\"] = 2] = \"ByPosNoHeight\";\nreturn QueryType})(QueryType || (QueryType = {}));\nconst Epsilon = 1e-3;\nclass HeightMap {\n constructor(length, // The number of characters covered\n height, // Height of this part of the document\n flags = 2 /* Flag.Outdated */) {\n this.length = length;\n this.height = height;\n this.flags = flags;\n }\n get outdated() { return (this.flags & 2 /* Flag.Outdated */) > 0; }\n set outdated(value) { this.flags = (value ? 2 /* Flag.Outdated */ : 0) | (this.flags & ~2 /* Flag.Outdated */); }\n setHeight(oracle, height) {\n if (this.height != height) {\n if (Math.abs(this.height - height) > Epsilon)\n oracle.heightChanged = true;\n this.height = height;\n }\n }\n // Base case is to replace a leaf node, which simply builds a tree\n // from the new nodes and returns that (HeightMapBranch and\n // HeightMapGap override this to actually use from/to)\n replace(_from, _to, nodes) {\n return HeightMap.of(nodes);\n }\n // Again, these are base cases, and are overridden for branch and gap nodes.\n decomposeLeft(_to, result) { result.push(this); }\n decomposeRight(_from, result) { result.push(this); }\n applyChanges(decorations, oldDoc, oracle, changes) {\n let me = this, doc = oracle.doc;\n for (let i = changes.length - 1; i >= 0; i--) {\n let { fromA, toA, fromB, toB } = changes[i];\n let start = me.lineAt(fromA, QueryType.ByPosNoHeight, oracle.setDoc(oldDoc), 0, 0);\n let end = start.to >= toA ? start : me.lineAt(toA, QueryType.ByPosNoHeight, oracle, 0, 0);\n toB += end.to - toA;\n toA = end.to;\n while (i > 0 && start.from <= changes[i - 1].toA) {\n fromA = changes[i - 1].fromA;\n fromB = changes[i - 1].fromB;\n i--;\n if (fromA < start.from)\n start = me.lineAt(fromA, QueryType.ByPosNoHeight, oracle, 0, 0);\n }\n fromB += start.from - fromA;\n fromA = start.from;\n let nodes = NodeBuilder.build(oracle.setDoc(doc), decorations, fromB, toB);\n me = me.replace(fromA, toA, nodes);\n }\n return me.updateHeight(oracle, 0);\n }\n static empty() { return new HeightMapText(0, 0); }\n // nodes uses null values to indicate the position of line breaks.\n // There are never line breaks at the start or end of the array, or\n // two line breaks next to each other, and the array isn't allowed\n // to be empty (same restrictions as return value from the builder).\n static of(nodes) {\n if (nodes.length == 1)\n return nodes[0];\n let i = 0, j = nodes.length, before = 0, after = 0;\n for (;;) {\n if (i == j) {\n if (before > after * 2) {\n let split = nodes[i - 1];\n if (split.break)\n nodes.splice(--i, 1, split.left, null, split.right);\n else\n nodes.splice(--i, 1, split.left, split.right);\n j += 1 + split.break;\n before -= split.size;\n }\n else if (after > before * 2) {\n let split = nodes[j];\n if (split.break)\n nodes.splice(j, 1, split.left, null, split.right);\n else\n nodes.splice(j, 1, split.left, split.right);\n j += 2 + split.break;\n after -= split.size;\n }\n else {\n break;\n }\n }\n else if (before < after) {\n let next = nodes[i++];\n if (next)\n before += next.size;\n }\n else {\n let next = nodes[--j];\n if (next)\n after += next.size;\n }\n }\n let brk = 0;\n if (nodes[i - 1] == null) {\n brk = 1;\n i--;\n }\n else if (nodes[i] == null) {\n brk = 1;\n j++;\n }\n return new HeightMapBranch(HeightMap.of(nodes.slice(0, i)), brk, HeightMap.of(nodes.slice(j)));\n }\n}\nHeightMap.prototype.size = 1;\nclass HeightMapBlock extends HeightMap {\n constructor(length, height, deco) {\n super(length, height);\n this.deco = deco;\n }\n blockAt(_height, _oracle, top, offset) {\n return new BlockInfo(offset, this.length, top, this.height, this.deco || 0);\n }\n lineAt(_value, _type, oracle, top, offset) {\n return this.blockAt(0, oracle, top, offset);\n }\n forEachLine(from, to, oracle, top, offset, f) {\n if (from <= offset + this.length && to >= offset)\n f(this.blockAt(0, oracle, top, offset));\n }\n updateHeight(oracle, offset = 0, _force = false, measured) {\n if (measured && measured.from <= offset && measured.more)\n this.setHeight(oracle, measured.heights[measured.index++]);\n this.outdated = false;\n return this;\n }\n toString() { return `block(${this.length})`; }\n}\nclass HeightMapText extends HeightMapBlock {\n constructor(length, height) {\n super(length, height, null);\n this.collapsed = 0; // Amount of collapsed content in the line\n this.widgetHeight = 0; // Maximum inline widget height\n this.breaks = 0; // Number of widget-introduced line breaks on the line\n }\n blockAt(_height, _oracle, top, offset) {\n return new BlockInfo(offset, this.length, top, this.height, this.breaks);\n }\n replace(_from, _to, nodes) {\n let node = nodes[0];\n if (nodes.length == 1 && (node instanceof HeightMapText || node instanceof HeightMapGap && (node.flags & 4 /* Flag.SingleLine */)) &&\n Math.abs(this.length - node.length) < 10) {\n if (node instanceof HeightMapGap)\n node = new HeightMapText(node.length, this.height);\n else\n node.height = this.height;\n if (!this.outdated)\n node.outdated = false;\n return node;\n }\n else {\n return HeightMap.of(nodes);\n }\n }\n updateHeight(oracle, offset = 0, force = false, measured) {\n if (measured && measured.from <= offset && measured.more)\n this.setHeight(oracle, measured.heights[measured.index++]);\n else if (force || this.outdated)\n this.setHeight(oracle, Math.max(this.widgetHeight, oracle.heightForLine(this.length - this.collapsed)) +\n this.breaks * oracle.lineHeight);\n this.outdated = false;\n return this;\n }\n toString() {\n return `line(${this.length}${this.collapsed ? -this.collapsed : \"\"}${this.widgetHeight ? \":\" + this.widgetHeight : \"\"})`;\n }\n}\nclass HeightMapGap extends HeightMap {\n constructor(length) { super(length, 0); }\n heightMetrics(oracle, offset) {\n let firstLine = oracle.doc.lineAt(offset).number, lastLine = oracle.doc.lineAt(offset + this.length).number;\n let lines = lastLine - firstLine + 1;\n let perLine, perChar = 0;\n if (oracle.lineWrapping) {\n let totalPerLine = Math.min(this.height, oracle.lineHeight * lines);\n perLine = totalPerLine / lines;\n if (this.length > lines + 1)\n perChar = (this.height - totalPerLine) / (this.length - lines - 1);\n }\n else {\n perLine = this.height / lines;\n }\n return { firstLine, lastLine, perLine, perChar };\n }\n blockAt(height, oracle, top, offset) {\n let { firstLine, lastLine, perLine, perChar } = this.heightMetrics(oracle, offset);\n if (oracle.lineWrapping) {\n let guess = offset + (height < oracle.lineHeight ? 0\n : Math.round(Math.max(0, Math.min(1, (height - top) / this.height)) * this.length));\n let line = oracle.doc.lineAt(guess), lineHeight = perLine + line.length * perChar;\n let lineTop = Math.max(top, height - lineHeight / 2);\n return new BlockInfo(line.from, line.length, lineTop, lineHeight, 0);\n }\n else {\n let line = Math.max(0, Math.min(lastLine - firstLine, Math.floor((height - top) / perLine)));\n let { from, length } = oracle.doc.line(firstLine + line);\n return new BlockInfo(from, length, top + perLine * line, perLine, 0);\n }\n }\n lineAt(value, type, oracle, top, offset) {\n if (type == QueryType.ByHeight)\n return this.blockAt(value, oracle, top, offset);\n if (type == QueryType.ByPosNoHeight) {\n let { from, to } = oracle.doc.lineAt(value);\n return new BlockInfo(from, to - from, 0, 0, 0);\n }\n let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset);\n let line = oracle.doc.lineAt(value), lineHeight = perLine + line.length * perChar;\n let linesAbove = line.number - firstLine;\n let lineTop = top + perLine * linesAbove + perChar * (line.from - offset - linesAbove);\n return new BlockInfo(line.from, line.length, Math.max(top, Math.min(lineTop, top + this.height - lineHeight)), lineHeight, 0);\n }\n forEachLine(from, to, oracle, top, offset, f) {\n from = Math.max(from, offset);\n to = Math.min(to, offset + this.length);\n let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset);\n for (let pos = from, lineTop = top; pos <= to;) {\n let line = oracle.doc.lineAt(pos);\n if (pos == from) {\n let linesAbove = line.number - firstLine;\n lineTop += perLine * linesAbove + perChar * (from - offset - linesAbove);\n }\n let lineHeight = perLine + perChar * line.length;\n f(new BlockInfo(line.from, line.length, lineTop, lineHeight, 0));\n lineTop += lineHeight;\n pos = line.to + 1;\n }\n }\n replace(from, to, nodes) {\n let after = this.length - to;\n if (after > 0) {\n let last = nodes[nodes.length - 1];\n if (last instanceof HeightMapGap)\n nodes[nodes.length - 1] = new HeightMapGap(last.length + after);\n else\n nodes.push(null, new HeightMapGap(after - 1));\n }\n if (from > 0) {\n let first = nodes[0];\n if (first instanceof HeightMapGap)\n nodes[0] = new HeightMapGap(from + first.length);\n else\n nodes.unshift(new HeightMapGap(from - 1), null);\n }\n return HeightMap.of(nodes);\n }\n decomposeLeft(to, result) {\n result.push(new HeightMapGap(to - 1), null);\n }\n decomposeRight(from, result) {\n result.push(null, new HeightMapGap(this.length - from - 1));\n }\n updateHeight(oracle, offset = 0, force = false, measured) {\n let end = offset + this.length;\n if (measured && measured.from <= offset + this.length && measured.more) {\n // Fill in part of this gap with measured lines. We know there\n // can't be widgets or collapsed ranges in those lines, because\n // they would already have been added to the heightmap (gaps\n // only contain plain text).\n let nodes = [], pos = Math.max(offset, measured.from), singleHeight = -1;\n if (measured.from > offset)\n nodes.push(new HeightMapGap(measured.from - offset - 1).updateHeight(oracle, offset));\n while (pos <= end && measured.more) {\n let len = oracle.doc.lineAt(pos).length;\n if (nodes.length)\n nodes.push(null);\n let height = measured.heights[measured.index++];\n if (singleHeight == -1)\n singleHeight = height;\n else if (Math.abs(height - singleHeight) >= Epsilon)\n singleHeight = -2;\n let line = new HeightMapText(len, height);\n line.outdated = false;\n nodes.push(line);\n pos += len + 1;\n }\n if (pos <= end)\n nodes.push(null, new HeightMapGap(end - pos).updateHeight(oracle, pos));\n let result = HeightMap.of(nodes);\n if (singleHeight < 0 || Math.abs(result.height - this.height) >= Epsilon ||\n Math.abs(singleHeight - this.heightMetrics(oracle, offset).perLine) >= Epsilon)\n oracle.heightChanged = true;\n return result;\n }\n else if (force || this.outdated) {\n this.setHeight(oracle, oracle.heightForGap(offset, offset + this.length));\n this.outdated = false;\n }\n return this;\n }\n toString() { return `gap(${this.length})`; }\n}\nclass HeightMapBranch extends HeightMap {\n constructor(left, brk, right) {\n super(left.length + brk + right.length, left.height + right.height, brk | (left.outdated || right.outdated ? 2 /* Flag.Outdated */ : 0));\n this.left = left;\n this.right = right;\n this.size = left.size + right.size;\n }\n get break() { return this.flags & 1 /* Flag.Break */; }\n blockAt(height, oracle, top, offset) {\n let mid = top + this.left.height;\n return height < mid ? this.left.blockAt(height, oracle, top, offset)\n : this.right.blockAt(height, oracle, mid, offset + this.left.length + this.break);\n }\n lineAt(value, type, oracle, top, offset) {\n let rightTop = top + this.left.height, rightOffset = offset + this.left.length + this.break;\n let left = type == QueryType.ByHeight ? value < rightTop : value < rightOffset;\n let base = left ? this.left.lineAt(value, type, oracle, top, offset)\n : this.right.lineAt(value, type, oracle, rightTop, rightOffset);\n if (this.break || (left ? base.to < rightOffset : base.from > rightOffset))\n return base;\n let subQuery = type == QueryType.ByPosNoHeight ? QueryType.ByPosNoHeight : QueryType.ByPos;\n if (left)\n return base.join(this.right.lineAt(rightOffset, subQuery, oracle, rightTop, rightOffset));\n else\n return this.left.lineAt(rightOffset, subQuery, oracle, top, offset).join(base);\n }\n forEachLine(from, to, oracle, top, offset, f) {\n let rightTop = top + this.left.height, rightOffset = offset + this.left.length + this.break;\n if (this.break) {\n if (from < rightOffset)\n this.left.forEachLine(from, to, oracle, top, offset, f);\n if (to >= rightOffset)\n this.right.forEachLine(from, to, oracle, rightTop, rightOffset, f);\n }\n else {\n let mid = this.lineAt(rightOffset, QueryType.ByPos, oracle, top, offset);\n if (from < mid.from)\n this.left.forEachLine(from, mid.from - 1, oracle, top, offset, f);\n if (mid.to >= from && mid.from <= to)\n f(mid);\n if (to > mid.to)\n this.right.forEachLine(mid.to + 1, to, oracle, rightTop, rightOffset, f);\n }\n }\n replace(from, to, nodes) {\n let rightStart = this.left.length + this.break;\n if (to < rightStart)\n return this.balanced(this.left.replace(from, to, nodes), this.right);\n if (from > this.left.length)\n return this.balanced(this.left, this.right.replace(from - rightStart, to - rightStart, nodes));\n let result = [];\n if (from > 0)\n this.decomposeLeft(from, result);\n let left = result.length;\n for (let node of nodes)\n result.push(node);\n if (from > 0)\n mergeGaps(result, left - 1);\n if (to < this.length) {\n let right = result.length;\n this.decomposeRight(to, result);\n mergeGaps(result, right);\n }\n return HeightMap.of(result);\n }\n decomposeLeft(to, result) {\n let left = this.left.length;\n if (to <= left)\n return this.left.decomposeLeft(to, result);\n result.push(this.left);\n if (this.break) {\n left++;\n if (to >= left)\n result.push(null);\n }\n if (to > left)\n this.right.decomposeLeft(to - left, result);\n }\n decomposeRight(from, result) {\n let left = this.left.length, right = left + this.break;\n if (from >= right)\n return this.right.decomposeRight(from - right, result);\n if (from < left)\n this.left.decomposeRight(from, result);\n if (this.break && from < right)\n result.push(null);\n result.push(this.right);\n }\n balanced(left, right) {\n if (left.size > 2 * right.size || right.size > 2 * left.size)\n return HeightMap.of(this.break ? [left, null, right] : [left, right]);\n this.left = left;\n this.right = right;\n this.height = left.height + right.height;\n this.outdated = left.outdated || right.outdated;\n this.size = left.size + right.size;\n this.length = left.length + this.break + right.length;\n return this;\n }\n updateHeight(oracle, offset = 0, force = false, measured) {\n let { left, right } = this, rightStart = offset + left.length + this.break, rebalance = null;\n if (measured && measured.from <= offset + left.length && measured.more)\n rebalance = left = left.updateHeight(oracle, offset, force, measured);\n else\n left.updateHeight(oracle, offset, force);\n if (measured && measured.from <= rightStart + right.length && measured.more)\n rebalance = right = right.updateHeight(oracle, rightStart, force, measured);\n else\n right.updateHeight(oracle, rightStart, force);\n if (rebalance)\n return this.balanced(left, right);\n this.height = this.left.height + this.right.height;\n this.outdated = false;\n return this;\n }\n toString() { return this.left + (this.break ? \" \" : \"-\") + this.right; }\n}\nfunction mergeGaps(nodes, around) {\n let before, after;\n if (nodes[around] == null &&\n (before = nodes[around - 1]) instanceof HeightMapGap &&\n (after = nodes[around + 1]) instanceof HeightMapGap)\n nodes.splice(around - 1, 3, new HeightMapGap(before.length + 1 + after.length));\n}\nconst relevantWidgetHeight = 5;\nclass NodeBuilder {\n constructor(pos, oracle) {\n this.pos = pos;\n this.oracle = oracle;\n this.nodes = [];\n this.lineStart = -1;\n this.lineEnd = -1;\n this.covering = null;\n this.writtenTo = pos;\n }\n get isCovered() {\n return this.covering && this.nodes[this.nodes.length - 1] == this.covering;\n }\n span(_from, to) {\n if (this.lineStart > -1) {\n let end = Math.min(to, this.lineEnd), last = this.nodes[this.nodes.length - 1];\n if (last instanceof HeightMapText)\n last.length += end - this.pos;\n else if (end > this.pos || !this.isCovered)\n this.nodes.push(new HeightMapText(end - this.pos, -1));\n this.writtenTo = end;\n if (to > end) {\n this.nodes.push(null);\n this.writtenTo++;\n this.lineStart = -1;\n }\n }\n this.pos = to;\n }\n point(from, to, deco) {\n if (from < to || deco.heightRelevant) {\n let height = deco.widget ? deco.widget.estimatedHeight : 0;\n let breaks = deco.widget ? deco.widget.lineBreaks : 0;\n if (height < 0)\n height = this.oracle.lineHeight;\n let len = to - from;\n if (deco.block) {\n this.addBlock(new HeightMapBlock(len, height, deco));\n }\n else if (len || breaks || height >= relevantWidgetHeight) {\n this.addLineDeco(height, breaks, len);\n }\n }\n else if (to > from) {\n this.span(from, to);\n }\n if (this.lineEnd > -1 && this.lineEnd < this.pos)\n this.lineEnd = this.oracle.doc.lineAt(this.pos).to;\n }\n enterLine() {\n if (this.lineStart > -1)\n return;\n let { from, to } = this.oracle.doc.lineAt(this.pos);\n this.lineStart = from;\n this.lineEnd = to;\n if (this.writtenTo < from) {\n if (this.writtenTo < from - 1 || this.nodes[this.nodes.length - 1] == null)\n this.nodes.push(this.blankContent(this.writtenTo, from - 1));\n this.nodes.push(null);\n }\n if (this.pos > from)\n this.nodes.push(new HeightMapText(this.pos - from, -1));\n this.writtenTo = this.pos;\n }\n blankContent(from, to) {\n let gap = new HeightMapGap(to - from);\n if (this.oracle.doc.lineAt(from).to == to)\n gap.flags |= 4 /* Flag.SingleLine */;\n return gap;\n }\n ensureLine() {\n this.enterLine();\n let last = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;\n if (last instanceof HeightMapText)\n return last;\n let line = new HeightMapText(0, -1);\n this.nodes.push(line);\n return line;\n }\n addBlock(block) {\n this.enterLine();\n let deco = block.deco;\n if (deco && deco.startSide > 0 && !this.isCovered)\n this.ensureLine();\n this.nodes.push(block);\n this.writtenTo = this.pos = this.pos + block.length;\n if (deco && deco.endSide > 0)\n this.covering = block;\n }\n addLineDeco(height, breaks, length) {\n let line = this.ensureLine();\n line.length += length;\n line.collapsed += length;\n line.widgetHeight = Math.max(line.widgetHeight, height);\n line.breaks += breaks;\n this.writtenTo = this.pos = this.pos + length;\n }\n finish(from) {\n let last = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];\n if (this.lineStart > -1 && !(last instanceof HeightMapText) && !this.isCovered)\n this.nodes.push(new HeightMapText(0, -1));\n else if (this.writtenTo < this.pos || last == null)\n this.nodes.push(this.blankContent(this.writtenTo, this.pos));\n let pos = from;\n for (let node of this.nodes) {\n if (node instanceof HeightMapText)\n node.updateHeight(this.oracle, pos);\n pos += node ? node.length : 1;\n }\n return this.nodes;\n }\n // Always called with a region that on both sides either stretches\n // to a line break or the end of the document.\n // The returned array uses null to indicate line breaks, but never\n // starts or ends in a line break, or has multiple line breaks next\n // to each other.\n static build(oracle, decorations, from, to) {\n let builder = new NodeBuilder(from, oracle);\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.spans(decorations, from, to, builder, 0);\n return builder.finish(from);\n }\n}\nfunction heightRelevantDecoChanges(a, b, diff) {\n let comp = new DecorationComparator;\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.compare(a, b, diff, comp, 0);\n return comp.changes;\n}\nclass DecorationComparator {\n constructor() {\n this.changes = [];\n }\n compareRange() { }\n comparePoint(from, to, a, b) {\n if (from < to || a && a.heightRelevant || b && b.heightRelevant)\n addRange(from, to, this.changes, 5);\n }\n}\n\nfunction visiblePixelRange(dom, paddingTop) {\n let rect = dom.getBoundingClientRect();\n let doc = dom.ownerDocument, win = doc.defaultView || window;\n let left = Math.max(0, rect.left), right = Math.min(win.innerWidth, rect.right);\n let top = Math.max(0, rect.top), bottom = Math.min(win.innerHeight, rect.bottom);\n for (let parent = dom.parentNode; parent && parent != doc.body;) {\n if (parent.nodeType == 1) {\n let elt = parent;\n let style = window.getComputedStyle(elt);\n if ((elt.scrollHeight > elt.clientHeight || elt.scrollWidth > elt.clientWidth) &&\n style.overflow != \"visible\") {\n let parentRect = elt.getBoundingClientRect();\n left = Math.max(left, parentRect.left);\n right = Math.min(right, parentRect.right);\n top = Math.max(top, parentRect.top);\n bottom = parent == dom.parentNode ? parentRect.bottom : Math.min(bottom, parentRect.bottom);\n }\n parent = style.position == \"absolute\" || style.position == \"fixed\" ? elt.offsetParent : elt.parentNode;\n }\n else if (parent.nodeType == 11) { // Shadow root\n parent = parent.host;\n }\n else {\n break;\n }\n }\n return { left: left - rect.left, right: Math.max(left, right) - rect.left,\n top: top - (rect.top + paddingTop), bottom: Math.max(top, bottom) - (rect.top + paddingTop) };\n}\nfunction fullPixelRange(dom, paddingTop) {\n let rect = dom.getBoundingClientRect();\n return { left: 0, right: rect.right - rect.left,\n top: paddingTop, bottom: rect.bottom - (rect.top + paddingTop) };\n}\n// Line gaps are placeholder widgets used to hide pieces of overlong\n// lines within the viewport, as a kludge to keep the editor\n// responsive when a ridiculously long line is loaded into it.\nclass LineGap {\n constructor(from, to, size) {\n this.from = from;\n this.to = to;\n this.size = size;\n }\n static same(a, b) {\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++) {\n let gA = a[i], gB = b[i];\n if (gA.from != gB.from || gA.to != gB.to || gA.size != gB.size)\n return false;\n }\n return true;\n }\n draw(viewState, wrapping) {\n return Decoration.replace({\n widget: new LineGapWidget(this.size * (wrapping ? viewState.scaleY : viewState.scaleX), wrapping)\n }).range(this.from, this.to);\n }\n}\nclass LineGapWidget extends WidgetType {\n constructor(size, vertical) {\n super();\n this.size = size;\n this.vertical = vertical;\n }\n eq(other) { return other.size == this.size && other.vertical == this.vertical; }\n toDOM() {\n let elt = document.createElement(\"div\");\n if (this.vertical) {\n elt.style.height = this.size + \"px\";\n }\n else {\n elt.style.width = this.size + \"px\";\n elt.style.height = \"2px\";\n elt.style.display = \"inline-block\";\n }\n return elt;\n }\n get estimatedHeight() { return this.vertical ? this.size : -1; }\n}\nclass ViewState {\n constructor(state) {\n this.state = state;\n // These are contentDOM-local coordinates\n this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 };\n this.inView = true;\n this.paddingTop = 0; // Padding above the document, scaled\n this.paddingBottom = 0; // Padding below the document, scaled\n this.contentDOMWidth = 0; // contentDOM.getBoundingClientRect().width\n this.contentDOMHeight = 0; // contentDOM.getBoundingClientRect().height\n this.editorHeight = 0; // scrollDOM.clientHeight, unscaled\n this.editorWidth = 0; // scrollDOM.clientWidth, unscaled\n this.scrollTop = 0; // Last seen scrollDOM.scrollTop, scaled\n this.scrolledToBottom = false;\n // The CSS-transformation scale of the editor (transformed size /\n // concrete size)\n this.scaleX = 1;\n this.scaleY = 1;\n // The vertical position (document-relative) to which to anchor the\n // scroll position. -1 means anchor to the end of the document.\n this.scrollAnchorPos = 0;\n // The height at the anchor position. Set by the DOM update phase.\n // -1 means no height available.\n this.scrollAnchorHeight = -1;\n // See VP.MaxDOMHeight\n this.scaler = IdScaler;\n this.scrollTarget = null;\n // Briefly set to true when printing, to disable viewport limiting\n this.printing = false;\n // Flag set when editor content was redrawn, so that the next\n // measure stage knows it must read DOM layout\n this.mustMeasureContent = true;\n this.defaultTextDirection = Direction.LTR;\n this.visibleRanges = [];\n // Cursor 'assoc' is only significant when the cursor is on a line\n // wrap point, where it must stick to the character that it is\n // associated with. Since browsers don't provide a reasonable\n // interface to set or query this, when a selection is set that\n // might cause this to be significant, this flag is set. The next\n // measure phase will check whether the cursor is on a line-wrapping\n // boundary and, if so, reset it to make sure it is positioned in\n // the right place.\n this.mustEnforceCursorAssoc = false;\n let guessWrapping = state.facet(contentAttributes).some(v => typeof v != \"function\" && v.class == \"cm-lineWrapping\");\n this.heightOracle = new HeightOracle(guessWrapping);\n this.stateDeco = state.facet(decorations).filter(d => typeof d != \"function\");\n this.heightMap = HeightMap.empty().applyChanges(this.stateDeco, _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty, this.heightOracle.setDoc(state.doc), [new ChangedRange(0, 0, 0, state.doc.length)]);\n for (let i = 0; i < 2; i++) {\n this.viewport = this.getViewport(0, null);\n if (!this.updateForViewport())\n break;\n }\n this.updateViewportLines();\n this.lineGaps = this.ensureLineGaps([]);\n this.lineGapDeco = Decoration.set(this.lineGaps.map(gap => gap.draw(this, false)));\n this.computeVisibleRanges();\n }\n updateForViewport() {\n let viewports = [this.viewport], { main } = this.state.selection;\n for (let i = 0; i <= 1; i++) {\n let pos = i ? main.head : main.anchor;\n if (!viewports.some(({ from, to }) => pos >= from && pos <= to)) {\n let { from, to } = this.lineBlockAt(pos);\n viewports.push(new Viewport(from, to));\n }\n }\n this.viewports = viewports.sort((a, b) => a.from - b.from);\n return this.updateScaler();\n }\n updateScaler() {\n let scaler = this.scaler;\n this.scaler = this.heightMap.height <= 7000000 /* VP.MaxDOMHeight */ ? IdScaler :\n new BigScaler(this.heightOracle, this.heightMap, this.viewports);\n return scaler.eq(this.scaler) ? 0 : 2 /* UpdateFlag.Height */;\n }\n updateViewportLines() {\n this.viewportLines = [];\n this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, block => {\n this.viewportLines.push(scaleBlock(block, this.scaler));\n });\n }\n update(update, scrollTarget = null) {\n this.state = update.state;\n let prevDeco = this.stateDeco;\n this.stateDeco = this.state.facet(decorations).filter(d => typeof d != \"function\");\n let contentChanges = update.changedRanges;\n let heightChanges = ChangedRange.extendWithRanges(contentChanges, heightRelevantDecoChanges(prevDeco, this.stateDeco, update ? update.changes : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.ChangeSet.empty(this.state.doc.length)));\n let prevHeight = this.heightMap.height;\n let scrollAnchor = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);\n this.heightMap = this.heightMap.applyChanges(this.stateDeco, update.startState.doc, this.heightOracle.setDoc(this.state.doc), heightChanges);\n if (this.heightMap.height != prevHeight)\n update.flags |= 2 /* UpdateFlag.Height */;\n if (scrollAnchor) {\n this.scrollAnchorPos = update.changes.mapPos(scrollAnchor.from, -1);\n this.scrollAnchorHeight = scrollAnchor.top;\n }\n else {\n this.scrollAnchorPos = -1;\n this.scrollAnchorHeight = this.heightMap.height;\n }\n let viewport = heightChanges.length ? this.mapViewport(this.viewport, update.changes) : this.viewport;\n if (scrollTarget && (scrollTarget.range.head < viewport.from || scrollTarget.range.head > viewport.to) ||\n !this.viewportIsAppropriate(viewport))\n viewport = this.getViewport(0, scrollTarget);\n let viewportChange = viewport.from != this.viewport.from || viewport.to != this.viewport.to;\n this.viewport = viewport;\n update.flags |= this.updateForViewport();\n if (viewportChange || !update.changes.empty || (update.flags & 2 /* UpdateFlag.Height */))\n this.updateViewportLines();\n if (this.lineGaps.length || this.viewport.to - this.viewport.from > (2000 /* LG.Margin */ << 1))\n this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, update.changes)));\n update.flags |= this.computeVisibleRanges();\n if (scrollTarget)\n this.scrollTarget = scrollTarget;\n if (!this.mustEnforceCursorAssoc && update.selectionSet && update.view.lineWrapping &&\n update.state.selection.main.empty && update.state.selection.main.assoc &&\n !update.state.facet(nativeSelectionHidden))\n this.mustEnforceCursorAssoc = true;\n }\n measure(view) {\n let dom = view.contentDOM, style = window.getComputedStyle(dom);\n let oracle = this.heightOracle;\n let whiteSpace = style.whiteSpace;\n this.defaultTextDirection = style.direction == \"rtl\" ? Direction.RTL : Direction.LTR;\n let refresh = this.heightOracle.mustRefreshForWrapping(whiteSpace);\n let domRect = dom.getBoundingClientRect();\n let measureContent = refresh || this.mustMeasureContent || this.contentDOMHeight != domRect.height;\n this.contentDOMHeight = domRect.height;\n this.mustMeasureContent = false;\n let result = 0, bias = 0;\n if (domRect.width && domRect.height) {\n let { scaleX, scaleY } = getScale(dom, domRect);\n if (scaleX > .005 && Math.abs(this.scaleX - scaleX) > .005 ||\n scaleY > .005 && Math.abs(this.scaleY - scaleY) > .005) {\n this.scaleX = scaleX;\n this.scaleY = scaleY;\n result |= 8 /* UpdateFlag.Geometry */;\n refresh = measureContent = true;\n }\n }\n // Vertical padding\n let paddingTop = (parseInt(style.paddingTop) || 0) * this.scaleY;\n let paddingBottom = (parseInt(style.paddingBottom) || 0) * this.scaleY;\n if (this.paddingTop != paddingTop || this.paddingBottom != paddingBottom) {\n this.paddingTop = paddingTop;\n this.paddingBottom = paddingBottom;\n result |= 8 /* UpdateFlag.Geometry */ | 2 /* UpdateFlag.Height */;\n }\n if (this.editorWidth != view.scrollDOM.clientWidth) {\n if (oracle.lineWrapping)\n measureContent = true;\n this.editorWidth = view.scrollDOM.clientWidth;\n result |= 8 /* UpdateFlag.Geometry */;\n }\n let scrollTop = view.scrollDOM.scrollTop * this.scaleY;\n if (this.scrollTop != scrollTop) {\n this.scrollAnchorHeight = -1;\n this.scrollTop = scrollTop;\n }\n this.scrolledToBottom = isScrolledToBottom(view.scrollDOM);\n // Pixel viewport\n let pixelViewport = (this.printing ? fullPixelRange : visiblePixelRange)(dom, this.paddingTop);\n let dTop = pixelViewport.top - this.pixelViewport.top, dBottom = pixelViewport.bottom - this.pixelViewport.bottom;\n this.pixelViewport = pixelViewport;\n let inView = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;\n if (inView != this.inView) {\n this.inView = inView;\n if (inView)\n measureContent = true;\n }\n if (!this.inView && !this.scrollTarget)\n return 0;\n let contentWidth = domRect.width;\n if (this.contentDOMWidth != contentWidth || this.editorHeight != view.scrollDOM.clientHeight) {\n this.contentDOMWidth = domRect.width;\n this.editorHeight = view.scrollDOM.clientHeight;\n result |= 8 /* UpdateFlag.Geometry */;\n }\n if (measureContent) {\n let lineHeights = view.docView.measureVisibleLineHeights(this.viewport);\n if (oracle.mustRefreshForHeights(lineHeights))\n refresh = true;\n if (refresh || oracle.lineWrapping && Math.abs(contentWidth - this.contentDOMWidth) > oracle.charWidth) {\n let { lineHeight, charWidth, textHeight } = view.docView.measureTextSize();\n refresh = lineHeight > 0 && oracle.refresh(whiteSpace, lineHeight, charWidth, textHeight, contentWidth / charWidth, lineHeights);\n if (refresh) {\n view.docView.minWidth = 0;\n result |= 8 /* UpdateFlag.Geometry */;\n }\n }\n if (dTop > 0 && dBottom > 0)\n bias = Math.max(dTop, dBottom);\n else if (dTop < 0 && dBottom < 0)\n bias = Math.min(dTop, dBottom);\n oracle.heightChanged = false;\n for (let vp of this.viewports) {\n let heights = vp.from == this.viewport.from ? lineHeights : view.docView.measureVisibleLineHeights(vp);\n this.heightMap = (refresh ? HeightMap.empty().applyChanges(this.stateDeco, _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.empty, this.heightOracle, [new ChangedRange(0, 0, 0, view.state.doc.length)]) : this.heightMap).updateHeight(oracle, 0, refresh, new MeasuredHeights(vp.from, heights));\n }\n if (oracle.heightChanged)\n result |= 2 /* UpdateFlag.Height */;\n }\n let viewportChange = !this.viewportIsAppropriate(this.viewport, bias) ||\n this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from ||\n this.scrollTarget.range.head > this.viewport.to);\n if (viewportChange) {\n if (result & 2 /* UpdateFlag.Height */)\n result |= this.updateScaler();\n this.viewport = this.getViewport(bias, this.scrollTarget);\n result |= this.updateForViewport();\n }\n if ((result & 2 /* UpdateFlag.Height */) || viewportChange)\n this.updateViewportLines();\n if (this.lineGaps.length || this.viewport.to - this.viewport.from > (2000 /* LG.Margin */ << 1))\n this.updateLineGaps(this.ensureLineGaps(refresh ? [] : this.lineGaps, view));\n result |= this.computeVisibleRanges();\n if (this.mustEnforceCursorAssoc) {\n this.mustEnforceCursorAssoc = false;\n // This is done in the read stage, because moving the selection\n // to a line end is going to trigger a layout anyway, so it\n // can't be a pure write. It should be rare that it does any\n // writing.\n view.docView.enforceCursorAssoc();\n }\n return result;\n }\n get visibleTop() { return this.scaler.fromDOM(this.pixelViewport.top); }\n get visibleBottom() { return this.scaler.fromDOM(this.pixelViewport.bottom); }\n getViewport(bias, scrollTarget) {\n // This will divide VP.Margin between the top and the\n // bottom, depending on the bias (the change in viewport position\n // since the last update). It'll hold a number between 0 and 1\n let marginTop = 0.5 - Math.max(-0.5, Math.min(0.5, bias / 1000 /* VP.Margin */ / 2));\n let map = this.heightMap, oracle = this.heightOracle;\n let { visibleTop, visibleBottom } = this;\n let viewport = new Viewport(map.lineAt(visibleTop - marginTop * 1000 /* VP.Margin */, QueryType.ByHeight, oracle, 0, 0).from, map.lineAt(visibleBottom + (1 - marginTop) * 1000 /* VP.Margin */, QueryType.ByHeight, oracle, 0, 0).to);\n // If scrollTarget is given, make sure the viewport includes that position\n if (scrollTarget) {\n let { head } = scrollTarget.range;\n if (head < viewport.from || head > viewport.to) {\n let viewHeight = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top);\n let block = map.lineAt(head, QueryType.ByPos, oracle, 0, 0), topPos;\n if (scrollTarget.y == \"center\")\n topPos = (block.top + block.bottom) / 2 - viewHeight / 2;\n else if (scrollTarget.y == \"start\" || scrollTarget.y == \"nearest\" && head < viewport.from)\n topPos = block.top;\n else\n topPos = block.bottom - viewHeight;\n viewport = new Viewport(map.lineAt(topPos - 1000 /* VP.Margin */ / 2, QueryType.ByHeight, oracle, 0, 0).from, map.lineAt(topPos + viewHeight + 1000 /* VP.Margin */ / 2, QueryType.ByHeight, oracle, 0, 0).to);\n }\n }\n return viewport;\n }\n mapViewport(viewport, changes) {\n let from = changes.mapPos(viewport.from, -1), to = changes.mapPos(viewport.to, 1);\n return new Viewport(this.heightMap.lineAt(from, QueryType.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(to, QueryType.ByPos, this.heightOracle, 0, 0).to);\n }\n // Checks if a given viewport covers the visible part of the\n // document and not too much beyond that.\n viewportIsAppropriate({ from, to }, bias = 0) {\n if (!this.inView)\n return true;\n let { top } = this.heightMap.lineAt(from, QueryType.ByPos, this.heightOracle, 0, 0);\n let { bottom } = this.heightMap.lineAt(to, QueryType.ByPos, this.heightOracle, 0, 0);\n let { visibleTop, visibleBottom } = this;\n return (from == 0 || top <= visibleTop - Math.max(10 /* VP.MinCoverMargin */, Math.min(-bias, 250 /* VP.MaxCoverMargin */))) &&\n (to == this.state.doc.length ||\n bottom >= visibleBottom + Math.max(10 /* VP.MinCoverMargin */, Math.min(bias, 250 /* VP.MaxCoverMargin */))) &&\n (top > visibleTop - 2 * 1000 /* VP.Margin */ && bottom < visibleBottom + 2 * 1000 /* VP.Margin */);\n }\n mapLineGaps(gaps, changes) {\n if (!gaps.length || changes.empty)\n return gaps;\n let mapped = [];\n for (let gap of gaps)\n if (!changes.touchesRange(gap.from, gap.to))\n mapped.push(new LineGap(changes.mapPos(gap.from), changes.mapPos(gap.to), gap.size));\n return mapped;\n }\n // Computes positions in the viewport where the start or end of a\n // line should be hidden, trying to reuse existing line gaps when\n // appropriate to avoid unneccesary redraws.\n // Uses crude character-counting for the positioning and sizing,\n // since actual DOM coordinates aren't always available and\n // predictable. Relies on generous margins (see LG.Margin) to hide\n // the artifacts this might produce from the user.\n ensureLineGaps(current, mayMeasure) {\n let wrapping = this.heightOracle.lineWrapping;\n let margin = wrapping ? 10000 /* LG.MarginWrap */ : 2000 /* LG.Margin */, halfMargin = margin >> 1, doubleMargin = margin << 1;\n // The non-wrapping logic won't work at all in predominantly right-to-left text.\n if (this.defaultTextDirection != Direction.LTR && !wrapping)\n return [];\n let gaps = [];\n let addGap = (from, to, line, structure) => {\n if (to - from < halfMargin)\n return;\n let sel = this.state.selection.main, avoid = [sel.from];\n if (!sel.empty)\n avoid.push(sel.to);\n for (let pos of avoid) {\n if (pos > from && pos < to) {\n addGap(from, pos - 10 /* LG.SelectionMargin */, line, structure);\n addGap(pos + 10 /* LG.SelectionMargin */, to, line, structure);\n return;\n }\n }\n let gap = find(current, gap => gap.from >= line.from && gap.to <= line.to &&\n Math.abs(gap.from - from) < halfMargin && Math.abs(gap.to - to) < halfMargin &&\n !avoid.some(pos => gap.from < pos && gap.to > pos));\n if (!gap) {\n // When scrolling down, snap gap ends to line starts to avoid shifts in wrapping\n if (to < line.to && mayMeasure && wrapping &&\n mayMeasure.visibleRanges.some(r => r.from <= to && r.to >= to)) {\n let lineStart = mayMeasure.moveToLineBoundary(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(to), false, true).head;\n if (lineStart > from)\n to = lineStart;\n }\n gap = new LineGap(from, to, this.gapSize(line, from, to, structure));\n }\n gaps.push(gap);\n };\n let checkLine = (line) => {\n if (line.length < doubleMargin || line.type != BlockType.Text)\n return;\n let structure = lineStructure(line.from, line.to, this.stateDeco);\n if (structure.total < doubleMargin)\n return;\n let target = this.scrollTarget ? this.scrollTarget.range.head : null;\n let viewFrom, viewTo;\n if (wrapping) {\n let marginHeight = (margin / this.heightOracle.lineLength) * this.heightOracle.lineHeight;\n let top, bot;\n if (target != null) {\n let targetFrac = findFraction(structure, target);\n let spaceFrac = ((this.visibleBottom - this.visibleTop) / 2 + marginHeight) / line.height;\n top = targetFrac - spaceFrac;\n bot = targetFrac + spaceFrac;\n }\n else {\n top = (this.visibleTop - line.top - marginHeight) / line.height;\n bot = (this.visibleBottom - line.top + marginHeight) / line.height;\n }\n viewFrom = findPosition(structure, top);\n viewTo = findPosition(structure, bot);\n }\n else {\n let totalWidth = structure.total * this.heightOracle.charWidth;\n let marginWidth = margin * this.heightOracle.charWidth;\n let left, right;\n if (target != null) {\n let targetFrac = findFraction(structure, target);\n let spaceFrac = ((this.pixelViewport.right - this.pixelViewport.left) / 2 + marginWidth) / totalWidth;\n left = targetFrac - spaceFrac;\n right = targetFrac + spaceFrac;\n }\n else {\n left = (this.pixelViewport.left - marginWidth) / totalWidth;\n right = (this.pixelViewport.right + marginWidth) / totalWidth;\n }\n viewFrom = findPosition(structure, left);\n viewTo = findPosition(structure, right);\n }\n if (viewFrom > line.from)\n addGap(line.from, viewFrom, line, structure);\n if (viewTo < line.to)\n addGap(viewTo, line.to, line, structure);\n };\n for (let line of this.viewportLines) {\n if (Array.isArray(line.type))\n line.type.forEach(checkLine);\n else\n checkLine(line);\n }\n return gaps;\n }\n gapSize(line, from, to, structure) {\n let fraction = findFraction(structure, to) - findFraction(structure, from);\n if (this.heightOracle.lineWrapping) {\n return line.height * fraction;\n }\n else {\n return structure.total * this.heightOracle.charWidth * fraction;\n }\n }\n updateLineGaps(gaps) {\n if (!LineGap.same(gaps, this.lineGaps)) {\n this.lineGaps = gaps;\n this.lineGapDeco = Decoration.set(gaps.map(gap => gap.draw(this, this.heightOracle.lineWrapping)));\n }\n }\n computeVisibleRanges() {\n let deco = this.stateDeco;\n if (this.lineGaps.length)\n deco = deco.concat(this.lineGapDeco);\n let ranges = [];\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.spans(deco, this.viewport.from, this.viewport.to, {\n span(from, to) { ranges.push({ from, to }); },\n point() { }\n }, 20);\n let changed = ranges.length != this.visibleRanges.length ||\n this.visibleRanges.some((r, i) => r.from != ranges[i].from || r.to != ranges[i].to);\n this.visibleRanges = ranges;\n return changed ? 4 /* UpdateFlag.Viewport */ : 0;\n }\n lineBlockAt(pos) {\n return (pos >= this.viewport.from && pos <= this.viewport.to &&\n this.viewportLines.find(b => b.from <= pos && b.to >= pos)) ||\n scaleBlock(this.heightMap.lineAt(pos, QueryType.ByPos, this.heightOracle, 0, 0), this.scaler);\n }\n lineBlockAtHeight(height) {\n return (height >= this.viewportLines[0].top && height <= this.viewportLines[this.viewportLines.length - 1].bottom &&\n this.viewportLines.find(l => l.top <= height && l.bottom >= height)) ||\n scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(height), QueryType.ByHeight, this.heightOracle, 0, 0), this.scaler);\n }\n scrollAnchorAt(scrollTop) {\n let block = this.lineBlockAtHeight(scrollTop + 8);\n return block.from >= this.viewport.from || this.viewportLines[0].top - scrollTop > 200 ? block : this.viewportLines[0];\n }\n elementAtHeight(height) {\n return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(height), this.heightOracle, 0, 0), this.scaler);\n }\n get docHeight() {\n return this.scaler.toDOM(this.heightMap.height);\n }\n get contentHeight() {\n return this.docHeight + this.paddingTop + this.paddingBottom;\n }\n}\nclass Viewport {\n constructor(from, to) {\n this.from = from;\n this.to = to;\n }\n}\nfunction lineStructure(from, to, stateDeco) {\n let ranges = [], pos = from, total = 0;\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.spans(stateDeco, from, to, {\n span() { },\n point(from, to) {\n if (from > pos) {\n ranges.push({ from: pos, to: from });\n total += from - pos;\n }\n pos = to;\n }\n }, 20); // We're only interested in collapsed ranges of a significant size\n if (pos < to) {\n ranges.push({ from: pos, to });\n total += to - pos;\n }\n return { total, ranges };\n}\nfunction findPosition({ total, ranges }, ratio) {\n if (ratio <= 0)\n return ranges[0].from;\n if (ratio >= 1)\n return ranges[ranges.length - 1].to;\n let dist = Math.floor(total * ratio);\n for (let i = 0;; i++) {\n let { from, to } = ranges[i], size = to - from;\n if (dist <= size)\n return from + dist;\n dist -= size;\n }\n}\nfunction findFraction(structure, pos) {\n let counted = 0;\n for (let { from, to } of structure.ranges) {\n if (pos <= to) {\n counted += pos - from;\n break;\n }\n counted += to - from;\n }\n return counted / structure.total;\n}\nfunction find(array, f) {\n for (let val of array)\n if (f(val))\n return val;\n return undefined;\n}\n// Don't scale when the document height is within the range of what\n// the DOM can handle.\nconst IdScaler = {\n toDOM(n) { return n; },\n fromDOM(n) { return n; },\n scale: 1,\n eq(other) { return other == this; }\n};\n// When the height is too big (> VP.MaxDOMHeight), scale down the\n// regions outside the viewports so that the total height is\n// VP.MaxDOMHeight.\nclass BigScaler {\n constructor(oracle, heightMap, viewports) {\n let vpHeight = 0, base = 0, domBase = 0;\n this.viewports = viewports.map(({ from, to }) => {\n let top = heightMap.lineAt(from, QueryType.ByPos, oracle, 0, 0).top;\n let bottom = heightMap.lineAt(to, QueryType.ByPos, oracle, 0, 0).bottom;\n vpHeight += bottom - top;\n return { from, to, top, bottom, domTop: 0, domBottom: 0 };\n });\n this.scale = (7000000 /* VP.MaxDOMHeight */ - vpHeight) / (heightMap.height - vpHeight);\n for (let obj of this.viewports) {\n obj.domTop = domBase + (obj.top - base) * this.scale;\n domBase = obj.domBottom = obj.domTop + (obj.bottom - obj.top);\n base = obj.bottom;\n }\n }\n toDOM(n) {\n for (let i = 0, base = 0, domBase = 0;; i++) {\n let vp = i < this.viewports.length ? this.viewports[i] : null;\n if (!vp || n < vp.top)\n return domBase + (n - base) * this.scale;\n if (n <= vp.bottom)\n return vp.domTop + (n - vp.top);\n base = vp.bottom;\n domBase = vp.domBottom;\n }\n }\n fromDOM(n) {\n for (let i = 0, base = 0, domBase = 0;; i++) {\n let vp = i < this.viewports.length ? this.viewports[i] : null;\n if (!vp || n < vp.domTop)\n return base + (n - domBase) / this.scale;\n if (n <= vp.domBottom)\n return vp.top + (n - vp.domTop);\n base = vp.bottom;\n domBase = vp.domBottom;\n }\n }\n eq(other) {\n if (!(other instanceof BigScaler))\n return false;\n return this.scale == other.scale && this.viewports.length == other.viewports.length &&\n this.viewports.every((vp, i) => vp.from == other.viewports[i].from && vp.to == other.viewports[i].to);\n }\n}\nfunction scaleBlock(block, scaler) {\n if (scaler.scale == 1)\n return block;\n let bTop = scaler.toDOM(block.top), bBottom = scaler.toDOM(block.bottom);\n return new BlockInfo(block.from, block.length, bTop, bBottom - bTop, Array.isArray(block._content) ? block._content.map(b => scaleBlock(b, scaler)) : block._content);\n}\n\nconst theme = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({ combine: strs => strs.join(\" \") });\nconst darkTheme = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({ combine: values => values.indexOf(true) > -1 });\nconst baseThemeID = /*@__PURE__*/style_mod__WEBPACK_IMPORTED_MODULE_0__.StyleModule.newName(), baseLightID = /*@__PURE__*/style_mod__WEBPACK_IMPORTED_MODULE_0__.StyleModule.newName(), baseDarkID = /*@__PURE__*/style_mod__WEBPACK_IMPORTED_MODULE_0__.StyleModule.newName();\nconst lightDarkIDs = { \"&light\": \".\" + baseLightID, \"&dark\": \".\" + baseDarkID };\nfunction buildTheme(main, spec, scopes) {\n return new style_mod__WEBPACK_IMPORTED_MODULE_0__.StyleModule(spec, {\n finish(sel) {\n return /&/.test(sel) ? sel.replace(/&\\w*/, m => {\n if (m == \"&\")\n return main;\n if (!scopes || !scopes[m])\n throw new RangeError(`Unsupported selector: ${m}`);\n return scopes[m];\n }) : main + \" \" + sel;\n }\n });\n}\nconst baseTheme$1 = /*@__PURE__*/buildTheme(\".\" + baseThemeID, {\n \"&\": {\n position: \"relative !important\",\n boxSizing: \"border-box\",\n \"&.cm-focused\": {\n // Provide a simple default outline to make sure a focused\n // editor is visually distinct. Can't leave the default behavior\n // because that will apply to the content element, which is\n // inside the scrollable container and doesn't include the\n // gutters. We also can't use an 'auto' outline, since those\n // are, for some reason, drawn behind the element content, which\n // will cause things like the active line background to cover\n // the outline (#297).\n outline: \"1px dotted #212121\"\n },\n display: \"flex !important\",\n flexDirection: \"column\"\n },\n \".cm-scroller\": {\n display: \"flex !important\",\n alignItems: \"flex-start !important\",\n fontFamily: \"monospace\",\n lineHeight: 1.4,\n height: \"100%\",\n overflowX: \"auto\",\n position: \"relative\",\n zIndex: 0\n },\n \".cm-content\": {\n margin: 0,\n flexGrow: 2,\n flexShrink: 0,\n display: \"block\",\n whiteSpace: \"pre\",\n wordWrap: \"normal\", // https://github.com/codemirror/dev/issues/456\n boxSizing: \"border-box\",\n minHeight: \"100%\",\n padding: \"4px 0\",\n outline: \"none\",\n \"&[contenteditable=true]\": {\n WebkitUserModify: \"read-write-plaintext-only\",\n }\n },\n \".cm-lineWrapping\": {\n whiteSpace_fallback: \"pre-wrap\", // For IE\n whiteSpace: \"break-spaces\",\n wordBreak: \"break-word\", // For Safari, which doesn't support overflow-wrap: anywhere\n overflowWrap: \"anywhere\",\n flexShrink: 1\n },\n \"&light .cm-content\": { caretColor: \"black\" },\n \"&dark .cm-content\": { caretColor: \"white\" },\n \".cm-line\": {\n display: \"block\",\n padding: \"0 2px 0 6px\"\n },\n \".cm-layer\": {\n position: \"absolute\",\n left: 0,\n top: 0,\n contain: \"size style\",\n \"& > *\": {\n position: \"absolute\"\n }\n },\n \"&light .cm-selectionBackground\": {\n background: \"#d9d9d9\"\n },\n \"&dark .cm-selectionBackground\": {\n background: \"#222\"\n },\n \"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground\": {\n background: \"#d7d4f0\"\n },\n \"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground\": {\n background: \"#233\"\n },\n \".cm-cursorLayer\": {\n pointerEvents: \"none\"\n },\n \"&.cm-focused > .cm-scroller > .cm-cursorLayer\": {\n animation: \"steps(1) cm-blink 1.2s infinite\"\n },\n // Two animations defined so that we can switch between them to\n // restart the animation without forcing another style\n // recomputation.\n \"@keyframes cm-blink\": { \"0%\": {}, \"50%\": { opacity: 0 }, \"100%\": {} },\n \"@keyframes cm-blink2\": { \"0%\": {}, \"50%\": { opacity: 0 }, \"100%\": {} },\n \".cm-cursor, .cm-dropCursor\": {\n borderLeft: \"1.2px solid black\",\n marginLeft: \"-0.6px\",\n pointerEvents: \"none\",\n },\n \".cm-cursor\": {\n display: \"none\"\n },\n \"&dark .cm-cursor\": {\n borderLeftColor: \"#444\"\n },\n \".cm-dropCursor\": {\n position: \"absolute\"\n },\n \"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor\": {\n display: \"block\"\n },\n \".cm-iso\": {\n unicodeBidi: \"isolate\"\n },\n \".cm-announced\": {\n position: \"fixed\",\n top: \"-10000px\"\n },\n \"@media print\": {\n \".cm-announced\": { display: \"none\" }\n },\n \"&light .cm-activeLine\": { backgroundColor: \"#cceeff44\" },\n \"&dark .cm-activeLine\": { backgroundColor: \"#99eeff33\" },\n \"&light .cm-specialChar\": { color: \"red\" },\n \"&dark .cm-specialChar\": { color: \"#f78\" },\n \".cm-gutters\": {\n flexShrink: 0,\n display: \"flex\",\n height: \"100%\",\n boxSizing: \"border-box\",\n insetInlineStart: 0,\n zIndex: 200\n },\n \"&light .cm-gutters\": {\n backgroundColor: \"#f5f5f5\",\n color: \"#6c6c6c\",\n borderRight: \"1px solid #ddd\"\n },\n \"&dark .cm-gutters\": {\n backgroundColor: \"#333338\",\n color: \"#ccc\"\n },\n \".cm-gutter\": {\n display: \"flex !important\", // Necessary -- prevents margin collapsing\n flexDirection: \"column\",\n flexShrink: 0,\n boxSizing: \"border-box\",\n minHeight: \"100%\",\n overflow: \"hidden\"\n },\n \".cm-gutterElement\": {\n boxSizing: \"border-box\"\n },\n \".cm-lineNumbers .cm-gutterElement\": {\n padding: \"0 3px 0 5px\",\n minWidth: \"20px\",\n textAlign: \"right\",\n whiteSpace: \"nowrap\"\n },\n \"&light .cm-activeLineGutter\": {\n backgroundColor: \"#e2f2ff\"\n },\n \"&dark .cm-activeLineGutter\": {\n backgroundColor: \"#222227\"\n },\n \".cm-panels\": {\n boxSizing: \"border-box\",\n position: \"sticky\",\n left: 0,\n right: 0\n },\n \"&light .cm-panels\": {\n backgroundColor: \"#f5f5f5\",\n color: \"black\"\n },\n \"&light .cm-panels-top\": {\n borderBottom: \"1px solid #ddd\"\n },\n \"&light .cm-panels-bottom\": {\n borderTop: \"1px solid #ddd\"\n },\n \"&dark .cm-panels\": {\n backgroundColor: \"#333338\",\n color: \"white\"\n },\n \".cm-tab\": {\n display: \"inline-block\",\n overflow: \"hidden\",\n verticalAlign: \"bottom\"\n },\n \".cm-widgetBuffer\": {\n verticalAlign: \"text-top\",\n height: \"1em\",\n width: 0,\n display: \"inline\"\n },\n \".cm-placeholder\": {\n color: \"#888\",\n display: \"inline-block\",\n verticalAlign: \"top\",\n },\n \".cm-highlightSpace:before\": {\n content: \"attr(data-display)\",\n position: \"absolute\",\n pointerEvents: \"none\",\n color: \"#888\"\n },\n \".cm-highlightTab\": {\n backgroundImage: `url('data:image/svg+xml,')`,\n backgroundSize: \"auto 100%\",\n backgroundPosition: \"right 90%\",\n backgroundRepeat: \"no-repeat\"\n },\n \".cm-trailingSpace\": {\n backgroundColor: \"#ff332255\"\n },\n \".cm-button\": {\n verticalAlign: \"middle\",\n color: \"inherit\",\n fontSize: \"70%\",\n padding: \".2em 1em\",\n borderRadius: \"1px\"\n },\n \"&light .cm-button\": {\n backgroundImage: \"linear-gradient(#eff1f5, #d9d9df)\",\n border: \"1px solid #888\",\n \"&:active\": {\n backgroundImage: \"linear-gradient(#b4b4b4, #d0d3d6)\"\n }\n },\n \"&dark .cm-button\": {\n backgroundImage: \"linear-gradient(#393939, #111)\",\n border: \"1px solid #888\",\n \"&:active\": {\n backgroundImage: \"linear-gradient(#111, #333)\"\n }\n },\n \".cm-textfield\": {\n verticalAlign: \"middle\",\n color: \"inherit\",\n fontSize: \"70%\",\n border: \"1px solid silver\",\n padding: \".2em .5em\"\n },\n \"&light .cm-textfield\": {\n backgroundColor: \"white\"\n },\n \"&dark .cm-textfield\": {\n border: \"1px solid #555\",\n backgroundColor: \"inherit\"\n }\n}, lightDarkIDs);\n\nconst LineBreakPlaceholder = \"\\uffff\";\nclass DOMReader {\n constructor(points, state) {\n this.points = points;\n this.text = \"\";\n this.lineSeparator = state.facet(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorState.lineSeparator);\n }\n append(text) {\n this.text += text;\n }\n lineBreak() {\n this.text += LineBreakPlaceholder;\n }\n readRange(start, end) {\n if (!start)\n return this;\n let parent = start.parentNode;\n for (let cur = start;;) {\n this.findPointBefore(parent, cur);\n let oldLen = this.text.length;\n this.readNode(cur);\n let next = cur.nextSibling;\n if (next == end)\n break;\n let view = ContentView.get(cur), nextView = ContentView.get(next);\n if (view && nextView ? view.breakAfter :\n (view ? view.breakAfter : isBlockElement(cur)) ||\n (isBlockElement(next) && (cur.nodeName != \"BR\" || cur.cmIgnore) && this.text.length > oldLen))\n this.lineBreak();\n cur = next;\n }\n this.findPointBefore(parent, end);\n return this;\n }\n readTextNode(node) {\n let text = node.nodeValue;\n for (let point of this.points)\n if (point.node == node)\n point.pos = this.text.length + Math.min(point.offset, text.length);\n for (let off = 0, re = this.lineSeparator ? null : /\\r\\n?|\\n/g;;) {\n let nextBreak = -1, breakSize = 1, m;\n if (this.lineSeparator) {\n nextBreak = text.indexOf(this.lineSeparator, off);\n breakSize = this.lineSeparator.length;\n }\n else if (m = re.exec(text)) {\n nextBreak = m.index;\n breakSize = m[0].length;\n }\n this.append(text.slice(off, nextBreak < 0 ? text.length : nextBreak));\n if (nextBreak < 0)\n break;\n this.lineBreak();\n if (breakSize > 1)\n for (let point of this.points)\n if (point.node == node && point.pos > this.text.length)\n point.pos -= breakSize - 1;\n off = nextBreak + breakSize;\n }\n }\n readNode(node) {\n if (node.cmIgnore)\n return;\n let view = ContentView.get(node);\n let fromView = view && view.overrideDOMText;\n if (fromView != null) {\n this.findPointInside(node, fromView.length);\n for (let i = fromView.iter(); !i.next().done;) {\n if (i.lineBreak)\n this.lineBreak();\n else\n this.append(i.value);\n }\n }\n else if (node.nodeType == 3) {\n this.readTextNode(node);\n }\n else if (node.nodeName == \"BR\") {\n if (node.nextSibling)\n this.lineBreak();\n }\n else if (node.nodeType == 1) {\n this.readRange(node.firstChild, null);\n }\n }\n findPointBefore(node, next) {\n for (let point of this.points)\n if (point.node == node && node.childNodes[point.offset] == next)\n point.pos = this.text.length;\n }\n findPointInside(node, length) {\n for (let point of this.points)\n if (node.nodeType == 3 ? point.node == node : node.contains(point.node))\n point.pos = this.text.length + (isAtEnd(node, point.node, point.offset) ? length : 0);\n }\n}\nfunction isAtEnd(parent, node, offset) {\n for (;;) {\n if (!node || offset < maxOffset(node))\n return false;\n if (node == parent)\n return true;\n offset = domIndex(node) + 1;\n node = node.parentNode;\n }\n}\nclass DOMPoint {\n constructor(node, offset) {\n this.node = node;\n this.offset = offset;\n this.pos = -1;\n }\n}\n\nclass DOMChange {\n constructor(view, start, end, typeOver) {\n this.typeOver = typeOver;\n this.bounds = null;\n this.text = \"\";\n this.domChanged = start > -1;\n let { impreciseHead: iHead, impreciseAnchor: iAnchor } = view.docView;\n if (view.state.readOnly && start > -1) {\n // Ignore changes when the editor is read-only\n this.newSel = null;\n }\n else if (start > -1 && (this.bounds = view.docView.domBoundsAround(start, end, 0))) {\n let selPoints = iHead || iAnchor ? [] : selectionPoints(view);\n let reader = new DOMReader(selPoints, view.state);\n reader.readRange(this.bounds.startDOM, this.bounds.endDOM);\n this.text = reader.text;\n this.newSel = selectionFromPoints(selPoints, this.bounds.from);\n }\n else {\n let domSel = view.observer.selectionRange;\n let head = iHead && iHead.node == domSel.focusNode && iHead.offset == domSel.focusOffset ||\n !contains(view.contentDOM, domSel.focusNode)\n ? view.state.selection.main.head\n : view.docView.posFromDOM(domSel.focusNode, domSel.focusOffset);\n let anchor = iAnchor && iAnchor.node == domSel.anchorNode && iAnchor.offset == domSel.anchorOffset ||\n !contains(view.contentDOM, domSel.anchorNode)\n ? view.state.selection.main.anchor\n : view.docView.posFromDOM(domSel.anchorNode, domSel.anchorOffset);\n // iOS will refuse to select the block gaps when doing\n // select-all.\n // Chrome will put the selection *inside* them, confusing\n // posFromDOM\n let vp = view.viewport;\n if ((browser.ios || browser.chrome) && view.state.selection.main.empty && head != anchor &&\n (vp.from > 0 || vp.to < view.state.doc.length)) {\n let from = Math.min(head, anchor), to = Math.max(head, anchor);\n let offFrom = vp.from - from, offTo = vp.to - to;\n if ((offFrom == 0 || offFrom == 1 || from == 0) && (offTo == 0 || offTo == -1 || to == view.state.doc.length)) {\n head = 0;\n anchor = view.state.doc.length;\n }\n }\n this.newSel = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.single(anchor, head);\n }\n }\n}\nfunction applyDOMChange(view, domChange) {\n let change;\n let { newSel } = domChange, sel = view.state.selection.main;\n let lastKey = view.inputState.lastKeyTime > Date.now() - 100 ? view.inputState.lastKeyCode : -1;\n if (domChange.bounds) {\n let { from, to } = domChange.bounds;\n let preferredPos = sel.from, preferredSide = null;\n // Prefer anchoring to end when Backspace is pressed (or, on\n // Android, when something was deleted)\n if (lastKey === 8 || browser.android && domChange.text.length < to - from) {\n preferredPos = sel.to;\n preferredSide = \"end\";\n }\n let diff = findDiff(view.state.doc.sliceString(from, to, LineBreakPlaceholder), domChange.text, preferredPos - from, preferredSide);\n if (diff) {\n // Chrome inserts two newlines when pressing shift-enter at the\n // end of a line. DomChange drops one of those.\n if (browser.chrome && lastKey == 13 &&\n diff.toB == diff.from + 2 && domChange.text.slice(diff.from, diff.toB) == LineBreakPlaceholder + LineBreakPlaceholder)\n diff.toB--;\n change = { from: from + diff.from, to: from + diff.toA,\n insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.of(domChange.text.slice(diff.from, diff.toB).split(LineBreakPlaceholder)) };\n }\n }\n else if (newSel && (!view.hasFocus && view.state.facet(editable) || newSel.main.eq(sel))) {\n newSel = null;\n }\n if (!change && !newSel)\n return false;\n if (!change && domChange.typeOver && !sel.empty && newSel && newSel.main.empty) {\n // Heuristic to notice typing over a selected character\n change = { from: sel.from, to: sel.to, insert: view.state.doc.slice(sel.from, sel.to) };\n }\n else if (change && change.from >= sel.from && change.to <= sel.to &&\n (change.from != sel.from || change.to != sel.to) &&\n (sel.to - sel.from) - (change.to - change.from) <= 4) {\n // If the change is inside the selection and covers most of it,\n // assume it is a selection replace (with identical characters at\n // the start/end not included in the diff)\n change = {\n from: sel.from, to: sel.to,\n insert: view.state.doc.slice(sel.from, change.from).append(change.insert).append(view.state.doc.slice(change.to, sel.to))\n };\n }\n else if ((browser.mac || browser.android) && change && change.from == change.to && change.from == sel.head - 1 &&\n /^\\. ?$/.test(change.insert.toString()) && view.contentDOM.getAttribute(\"autocorrect\") == \"off\") {\n // Detect insert-period-on-double-space Mac and Android behavior,\n // and transform it into a regular space insert.\n if (newSel && change.insert.length == 2)\n newSel = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);\n change = { from: sel.from, to: sel.to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.of([\" \"]) };\n }\n else if (browser.chrome && change && change.from == change.to && change.from == sel.head &&\n change.insert.toString() == \"\\n \" && view.lineWrapping) {\n // In Chrome, if you insert a space at the start of a wrapped\n // line, it will actually insert a newline and a space, causing a\n // bogus new line to be created in CodeMirror (#968)\n if (newSel)\n newSel = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);\n change = { from: sel.from, to: sel.to, insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.of([\" \"]) };\n }\n if (change) {\n return applyDOMChangeInner(view, change, newSel, lastKey);\n }\n else if (newSel && !newSel.main.eq(sel)) {\n let scrollIntoView = false, userEvent = \"select\";\n if (view.inputState.lastSelectionTime > Date.now() - 50) {\n if (view.inputState.lastSelectionOrigin == \"select\")\n scrollIntoView = true;\n userEvent = view.inputState.lastSelectionOrigin;\n }\n view.dispatch({ selection: newSel, scrollIntoView, userEvent });\n return true;\n }\n else {\n return false;\n }\n}\nfunction applyDOMChangeInner(view, change, newSel, lastKey = -1) {\n if (browser.ios && view.inputState.flushIOSKey(change))\n return true;\n let sel = view.state.selection.main;\n // Android browsers don't fire reasonable key events for enter,\n // backspace, or delete. So this detects changes that look like\n // they're caused by those keys, and reinterprets them as key\n // events. (Some of these keys are also handled by beforeinput\n // events and the pendingAndroidKey mechanism, but that's not\n // reliable in all situations.)\n if (browser.android &&\n ((change.to == sel.to &&\n // GBoard will sometimes remove a space it just inserted\n // after a completion when you press enter\n (change.from == sel.from || change.from == sel.from - 1 && view.state.sliceDoc(change.from, sel.from) == \" \") &&\n change.insert.length == 1 && change.insert.lines == 2 &&\n dispatchKey(view.contentDOM, \"Enter\", 13)) ||\n ((change.from == sel.from - 1 && change.to == sel.to && change.insert.length == 0 ||\n lastKey == 8 && change.insert.length < change.to - change.from && change.to > sel.head) &&\n dispatchKey(view.contentDOM, \"Backspace\", 8)) ||\n (change.from == sel.from && change.to == sel.to + 1 && change.insert.length == 0 &&\n dispatchKey(view.contentDOM, \"Delete\", 46))))\n return true;\n let text = change.insert.toString();\n if (view.inputState.composing >= 0)\n view.inputState.composing++;\n let defaultTr;\n let defaultInsert = () => defaultTr || (defaultTr = applyDefaultInsert(view, change, newSel));\n if (!view.state.facet(inputHandler).some(h => h(view, change.from, change.to, text, defaultInsert)))\n view.dispatch(defaultInsert());\n return true;\n}\nfunction applyDefaultInsert(view, change, newSel) {\n let tr, startState = view.state, sel = startState.selection.main;\n if (change.from >= sel.from && change.to <= sel.to && change.to - change.from >= (sel.to - sel.from) / 3 &&\n (!newSel || newSel.main.empty && newSel.main.from == change.from + change.insert.length) &&\n view.inputState.composing < 0) {\n let before = sel.from < change.from ? startState.sliceDoc(sel.from, change.from) : \"\";\n let after = sel.to > change.to ? startState.sliceDoc(change.to, sel.to) : \"\";\n tr = startState.replaceSelection(view.state.toText(before + change.insert.sliceString(0, undefined, view.state.lineBreak) + after));\n }\n else {\n let changes = startState.changes(change);\n let mainSel = newSel && newSel.main.to <= changes.newLength ? newSel.main : undefined;\n // Try to apply a composition change to all cursors\n if (startState.selection.ranges.length > 1 && view.inputState.composing >= 0 &&\n change.to <= sel.to && change.to >= sel.to - 10) {\n let replaced = view.state.sliceDoc(change.from, change.to);\n let compositionRange, composition = newSel && findCompositionNode(view, newSel.main.head);\n if (composition) {\n let dLen = change.insert.length - (change.to - change.from);\n compositionRange = { from: composition.from, to: composition.to - dLen };\n }\n else {\n compositionRange = view.state.doc.lineAt(sel.head);\n }\n let offset = sel.to - change.to, size = sel.to - sel.from;\n tr = startState.changeByRange(range => {\n if (range.from == sel.from && range.to == sel.to)\n return { changes, range: mainSel || range.map(changes) };\n let to = range.to - offset, from = to - replaced.length;\n if (range.to - range.from != size || view.state.sliceDoc(from, to) != replaced ||\n // Unfortunately, there's no way to make multiple\n // changes in the same node work without aborting\n // composition, so cursors in the composition range are\n // ignored.\n range.to >= compositionRange.from && range.from <= compositionRange.to)\n return { range };\n let rangeChanges = startState.changes({ from, to, insert: change.insert }), selOff = range.to - sel.to;\n return {\n changes: rangeChanges,\n range: !mainSel ? range.map(rangeChanges) :\n _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(Math.max(0, mainSel.anchor + selOff), Math.max(0, mainSel.head + selOff))\n };\n });\n }\n else {\n tr = {\n changes,\n selection: mainSel && startState.selection.replaceRange(mainSel)\n };\n }\n }\n let userEvent = \"input.type\";\n if (view.composing ||\n view.inputState.compositionPendingChange && view.inputState.compositionEndedAt > Date.now() - 50) {\n view.inputState.compositionPendingChange = false;\n userEvent += \".compose\";\n if (view.inputState.compositionFirstChange) {\n userEvent += \".start\";\n view.inputState.compositionFirstChange = false;\n }\n }\n return startState.update(tr, { userEvent, scrollIntoView: true });\n}\nfunction findDiff(a, b, preferredPos, preferredSide) {\n let minLen = Math.min(a.length, b.length);\n let from = 0;\n while (from < minLen && a.charCodeAt(from) == b.charCodeAt(from))\n from++;\n if (from == minLen && a.length == b.length)\n return null;\n let toA = a.length, toB = b.length;\n while (toA > 0 && toB > 0 && a.charCodeAt(toA - 1) == b.charCodeAt(toB - 1)) {\n toA--;\n toB--;\n }\n if (preferredSide == \"end\") {\n let adjust = Math.max(0, from - Math.min(toA, toB));\n preferredPos -= toA + adjust - from;\n }\n if (toA < from && a.length < b.length) {\n let move = preferredPos <= from && preferredPos >= toA ? from - preferredPos : 0;\n from -= move;\n toB = from + (toB - toA);\n toA = from;\n }\n else if (toB < from) {\n let move = preferredPos <= from && preferredPos >= toB ? from - preferredPos : 0;\n from -= move;\n toA = from + (toA - toB);\n toB = from;\n }\n return { from, toA, toB };\n}\nfunction selectionPoints(view) {\n let result = [];\n if (view.root.activeElement != view.contentDOM)\n return result;\n let { anchorNode, anchorOffset, focusNode, focusOffset } = view.observer.selectionRange;\n if (anchorNode) {\n result.push(new DOMPoint(anchorNode, anchorOffset));\n if (focusNode != anchorNode || focusOffset != anchorOffset)\n result.push(new DOMPoint(focusNode, focusOffset));\n }\n return result;\n}\nfunction selectionFromPoints(points, base) {\n if (points.length == 0)\n return null;\n let anchor = points[0].pos, head = points.length == 2 ? points[1].pos : anchor;\n return anchor > -1 && head > -1 ? _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.single(anchor + base, head + base) : null;\n}\n\nconst observeOptions = {\n childList: true,\n characterData: true,\n subtree: true,\n attributes: true,\n characterDataOldValue: true\n};\n// IE11 has very broken mutation observers, so we also listen to\n// DOMCharacterDataModified there\nconst useCharData = browser.ie && browser.ie_version <= 11;\nclass DOMObserver {\n constructor(view) {\n this.view = view;\n this.active = false;\n this.editContext = null;\n // The known selection. Kept in our own object, as opposed to just\n // directly accessing the selection because:\n // - Safari doesn't report the right selection in shadow DOM\n // - Reading from the selection forces a DOM layout\n // - This way, we can ignore selectionchange events if we have\n // already seen the 'new' selection\n this.selectionRange = new DOMSelectionState;\n // Set when a selection change is detected, cleared on flush\n this.selectionChanged = false;\n this.delayedFlush = -1;\n this.resizeTimeout = -1;\n this.queue = [];\n this.delayedAndroidKey = null;\n this.flushingAndroidKey = -1;\n this.lastChange = 0;\n this.scrollTargets = [];\n this.intersection = null;\n this.resizeScroll = null;\n this.intersecting = false;\n this.gapIntersection = null;\n this.gaps = [];\n this.printQuery = null;\n // Timeout for scheduling check of the parents that need scroll handlers\n this.parentCheck = -1;\n this.dom = view.contentDOM;\n this.observer = new MutationObserver(mutations => {\n for (let mut of mutations)\n this.queue.push(mut);\n // IE11 will sometimes (on typing over a selection or\n // backspacing out a single character text node) call the\n // observer callback before actually updating the DOM.\n //\n // Unrelatedly, iOS Safari will, when ending a composition,\n // sometimes first clear it, deliver the mutations, and then\n // reinsert the finished text. CodeMirror's handling of the\n // deletion will prevent the reinsertion from happening,\n // breaking composition.\n if ((browser.ie && browser.ie_version <= 11 || browser.ios && view.composing) &&\n mutations.some(m => m.type == \"childList\" && m.removedNodes.length ||\n m.type == \"characterData\" && m.oldValue.length > m.target.nodeValue.length))\n this.flushSoon();\n else\n this.flush();\n });\n if (window.EditContext && view.constructor.EDIT_CONTEXT !== false &&\n // Chrome <126 doesn't support inverted selections in edit context (#1392)\n !(browser.chrome && browser.chrome_version < 126)) {\n this.editContext = new EditContextManager(view);\n if (view.state.facet(editable))\n view.contentDOM.editContext = this.editContext.editContext;\n }\n if (useCharData)\n this.onCharData = (event) => {\n this.queue.push({ target: event.target,\n type: \"characterData\",\n oldValue: event.prevValue });\n this.flushSoon();\n };\n this.onSelectionChange = this.onSelectionChange.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onPrint = this.onPrint.bind(this);\n this.onScroll = this.onScroll.bind(this);\n if (window.matchMedia)\n this.printQuery = window.matchMedia(\"print\");\n if (typeof ResizeObserver == \"function\") {\n this.resizeScroll = new ResizeObserver(() => {\n var _a;\n if (((_a = this.view.docView) === null || _a === void 0 ? void 0 : _a.lastUpdate) < Date.now() - 75)\n this.onResize();\n });\n this.resizeScroll.observe(view.scrollDOM);\n }\n this.addWindowListeners(this.win = view.win);\n this.start();\n if (typeof IntersectionObserver == \"function\") {\n this.intersection = new IntersectionObserver(entries => {\n if (this.parentCheck < 0)\n this.parentCheck = setTimeout(this.listenForScroll.bind(this), 1000);\n if (entries.length > 0 && (entries[entries.length - 1].intersectionRatio > 0) != this.intersecting) {\n this.intersecting = !this.intersecting;\n if (this.intersecting != this.view.inView)\n this.onScrollChanged(document.createEvent(\"Event\"));\n }\n }, { threshold: [0, .001] });\n this.intersection.observe(this.dom);\n this.gapIntersection = new IntersectionObserver(entries => {\n if (entries.length > 0 && entries[entries.length - 1].intersectionRatio > 0)\n this.onScrollChanged(document.createEvent(\"Event\"));\n }, {});\n }\n this.listenForScroll();\n this.readSelectionRange();\n }\n onScrollChanged(e) {\n this.view.inputState.runHandlers(\"scroll\", e);\n if (this.intersecting)\n this.view.measure();\n }\n onScroll(e) {\n if (this.intersecting)\n this.flush(false);\n if (this.editContext)\n this.view.requestMeasure(this.editContext.measureReq);\n this.onScrollChanged(e);\n }\n onResize() {\n if (this.resizeTimeout < 0)\n this.resizeTimeout = setTimeout(() => {\n this.resizeTimeout = -1;\n this.view.requestMeasure();\n }, 50);\n }\n onPrint(event) {\n if (event.type == \"change\" && !event.matches)\n return;\n this.view.viewState.printing = true;\n this.view.measure();\n setTimeout(() => {\n this.view.viewState.printing = false;\n this.view.requestMeasure();\n }, 500);\n }\n updateGaps(gaps) {\n if (this.gapIntersection && (gaps.length != this.gaps.length || this.gaps.some((g, i) => g != gaps[i]))) {\n this.gapIntersection.disconnect();\n for (let gap of gaps)\n this.gapIntersection.observe(gap);\n this.gaps = gaps;\n }\n }\n onSelectionChange(event) {\n let wasChanged = this.selectionChanged;\n if (!this.readSelectionRange() || this.delayedAndroidKey)\n return;\n let { view } = this, sel = this.selectionRange;\n if (view.state.facet(editable) ? view.root.activeElement != this.dom : !hasSelection(view.dom, sel))\n return;\n let context = sel.anchorNode && view.docView.nearest(sel.anchorNode);\n if (context && context.ignoreEvent(event)) {\n if (!wasChanged)\n this.selectionChanged = false;\n return;\n }\n // Deletions on IE11 fire their events in the wrong order, giving\n // us a selection change event before the DOM changes are\n // reported.\n // Chrome Android has a similar issue when backspacing out a\n // selection (#645).\n if ((browser.ie && browser.ie_version <= 11 || browser.android && browser.chrome) && !view.state.selection.main.empty &&\n // (Selection.isCollapsed isn't reliable on IE)\n sel.focusNode && isEquivalentPosition(sel.focusNode, sel.focusOffset, sel.anchorNode, sel.anchorOffset))\n this.flushSoon();\n else\n this.flush(false);\n }\n readSelectionRange() {\n let { view } = this;\n // The Selection object is broken in shadow roots in Safari. See\n // https://github.com/codemirror/dev/issues/414\n let selection = getSelection(view.root);\n if (!selection)\n return false;\n let range = browser.safari && view.root.nodeType == 11 &&\n deepActiveElement(this.dom.ownerDocument) == this.dom &&\n safariSelectionRangeHack(this.view, selection) || selection;\n if (!range || this.selectionRange.eq(range))\n return false;\n let local = hasSelection(this.dom, range);\n // Detect the situation where the browser has, on focus, moved the\n // selection to the start of the content element. Reset it to the\n // position from the editor state.\n if (local && !this.selectionChanged &&\n view.inputState.lastFocusTime > Date.now() - 200 &&\n view.inputState.lastTouchTime < Date.now() - 300 &&\n atElementStart(this.dom, range)) {\n this.view.inputState.lastFocusTime = 0;\n view.docView.updateSelection();\n return false;\n }\n this.selectionRange.setRange(range);\n if (local)\n this.selectionChanged = true;\n return true;\n }\n setSelectionRange(anchor, head) {\n this.selectionRange.set(anchor.node, anchor.offset, head.node, head.offset);\n this.selectionChanged = false;\n }\n clearSelectionRange() {\n this.selectionRange.set(null, 0, null, 0);\n }\n listenForScroll() {\n this.parentCheck = -1;\n let i = 0, changed = null;\n for (let dom = this.dom; dom;) {\n if (dom.nodeType == 1) {\n if (!changed && i < this.scrollTargets.length && this.scrollTargets[i] == dom)\n i++;\n else if (!changed)\n changed = this.scrollTargets.slice(0, i);\n if (changed)\n changed.push(dom);\n dom = dom.assignedSlot || dom.parentNode;\n }\n else if (dom.nodeType == 11) { // Shadow root\n dom = dom.host;\n }\n else {\n break;\n }\n }\n if (i < this.scrollTargets.length && !changed)\n changed = this.scrollTargets.slice(0, i);\n if (changed) {\n for (let dom of this.scrollTargets)\n dom.removeEventListener(\"scroll\", this.onScroll);\n for (let dom of this.scrollTargets = changed)\n dom.addEventListener(\"scroll\", this.onScroll);\n }\n }\n ignore(f) {\n if (!this.active)\n return f();\n try {\n this.stop();\n return f();\n }\n finally {\n this.start();\n this.clear();\n }\n }\n start() {\n if (this.active)\n return;\n this.observer.observe(this.dom, observeOptions);\n if (useCharData)\n this.dom.addEventListener(\"DOMCharacterDataModified\", this.onCharData);\n this.active = true;\n }\n stop() {\n if (!this.active)\n return;\n this.active = false;\n this.observer.disconnect();\n if (useCharData)\n this.dom.removeEventListener(\"DOMCharacterDataModified\", this.onCharData);\n }\n // Throw away any pending changes\n clear() {\n this.processRecords();\n this.queue.length = 0;\n this.selectionChanged = false;\n }\n // Chrome Android, especially in combination with GBoard, not only\n // doesn't reliably fire regular key events, but also often\n // surrounds the effect of enter or backspace with a bunch of\n // composition events that, when interrupted, cause text duplication\n // or other kinds of corruption. This hack makes the editor back off\n // from handling DOM changes for a moment when such a key is\n // detected (via beforeinput or keydown), and then tries to flush\n // them or, if that has no effect, dispatches the given key.\n delayAndroidKey(key, keyCode) {\n var _a;\n if (!this.delayedAndroidKey) {\n let flush = () => {\n let key = this.delayedAndroidKey;\n if (key) {\n this.clearDelayedAndroidKey();\n this.view.inputState.lastKeyCode = key.keyCode;\n this.view.inputState.lastKeyTime = Date.now();\n let flushed = this.flush();\n if (!flushed && key.force)\n dispatchKey(this.dom, key.key, key.keyCode);\n }\n };\n this.flushingAndroidKey = this.view.win.requestAnimationFrame(flush);\n }\n // Since backspace beforeinput is sometimes signalled spuriously,\n // Enter always takes precedence.\n if (!this.delayedAndroidKey || key == \"Enter\")\n this.delayedAndroidKey = {\n key, keyCode,\n // Only run the key handler when no changes are detected if\n // this isn't coming right after another change, in which case\n // it is probably part of a weird chain of updates, and should\n // be ignored if it returns the DOM to its previous state.\n force: this.lastChange < Date.now() - 50 || !!((_a = this.delayedAndroidKey) === null || _a === void 0 ? void 0 : _a.force)\n };\n }\n clearDelayedAndroidKey() {\n this.win.cancelAnimationFrame(this.flushingAndroidKey);\n this.delayedAndroidKey = null;\n this.flushingAndroidKey = -1;\n }\n flushSoon() {\n if (this.delayedFlush < 0)\n this.delayedFlush = this.view.win.requestAnimationFrame(() => { this.delayedFlush = -1; this.flush(); });\n }\n forceFlush() {\n if (this.delayedFlush >= 0) {\n this.view.win.cancelAnimationFrame(this.delayedFlush);\n this.delayedFlush = -1;\n }\n this.flush();\n }\n pendingRecords() {\n for (let mut of this.observer.takeRecords())\n this.queue.push(mut);\n return this.queue;\n }\n processRecords() {\n let records = this.pendingRecords();\n if (records.length)\n this.queue = [];\n let from = -1, to = -1, typeOver = false;\n for (let record of records) {\n let range = this.readMutation(record);\n if (!range)\n continue;\n if (range.typeOver)\n typeOver = true;\n if (from == -1) {\n ({ from, to } = range);\n }\n else {\n from = Math.min(range.from, from);\n to = Math.max(range.to, to);\n }\n }\n return { from, to, typeOver };\n }\n readChange() {\n let { from, to, typeOver } = this.processRecords();\n let newSel = this.selectionChanged && hasSelection(this.dom, this.selectionRange);\n if (from < 0 && !newSel)\n return null;\n if (from > -1)\n this.lastChange = Date.now();\n this.view.inputState.lastFocusTime = 0;\n this.selectionChanged = false;\n let change = new DOMChange(this.view, from, to, typeOver);\n this.view.docView.domChanged = { newSel: change.newSel ? change.newSel.main : null };\n return change;\n }\n // Apply pending changes, if any\n flush(readSelection = true) {\n // Completely hold off flushing when pending keys are set—the code\n // managing those will make sure processRecords is called and the\n // view is resynchronized after\n if (this.delayedFlush >= 0 || this.delayedAndroidKey)\n return false;\n if (readSelection)\n this.readSelectionRange();\n let domChange = this.readChange();\n if (!domChange) {\n this.view.requestMeasure();\n return false;\n }\n let startState = this.view.state;\n let handled = applyDOMChange(this.view, domChange);\n // The view wasn't updated but DOM/selection changes were seen. Reset the view.\n if (this.view.state == startState &&\n (domChange.domChanged || domChange.newSel && !domChange.newSel.main.eq(this.view.state.selection.main)))\n this.view.update([]);\n return handled;\n }\n readMutation(rec) {\n let cView = this.view.docView.nearest(rec.target);\n if (!cView || cView.ignoreMutation(rec))\n return null;\n cView.markDirty(rec.type == \"attributes\");\n if (rec.type == \"attributes\")\n cView.flags |= 4 /* ViewFlag.AttrsDirty */;\n if (rec.type == \"childList\") {\n let childBefore = findChild(cView, rec.previousSibling || rec.target.previousSibling, -1);\n let childAfter = findChild(cView, rec.nextSibling || rec.target.nextSibling, 1);\n return { from: childBefore ? cView.posAfter(childBefore) : cView.posAtStart,\n to: childAfter ? cView.posBefore(childAfter) : cView.posAtEnd, typeOver: false };\n }\n else if (rec.type == \"characterData\") {\n return { from: cView.posAtStart, to: cView.posAtEnd, typeOver: rec.target.nodeValue == rec.oldValue };\n }\n else {\n return null;\n }\n }\n setWindow(win) {\n if (win != this.win) {\n this.removeWindowListeners(this.win);\n this.win = win;\n this.addWindowListeners(this.win);\n }\n }\n addWindowListeners(win) {\n win.addEventListener(\"resize\", this.onResize);\n if (this.printQuery)\n this.printQuery.addEventListener(\"change\", this.onPrint);\n else\n win.addEventListener(\"beforeprint\", this.onPrint);\n win.addEventListener(\"scroll\", this.onScroll);\n win.document.addEventListener(\"selectionchange\", this.onSelectionChange);\n }\n removeWindowListeners(win) {\n win.removeEventListener(\"scroll\", this.onScroll);\n win.removeEventListener(\"resize\", this.onResize);\n if (this.printQuery)\n this.printQuery.removeEventListener(\"change\", this.onPrint);\n else\n win.removeEventListener(\"beforeprint\", this.onPrint);\n win.document.removeEventListener(\"selectionchange\", this.onSelectionChange);\n }\n update(update) {\n if (this.editContext) {\n this.editContext.update(update);\n if (update.startState.facet(editable) != update.state.facet(editable))\n update.view.contentDOM.editContext = update.state.facet(editable) ? this.editContext.editContext : null;\n }\n }\n destroy() {\n var _a, _b, _c;\n this.stop();\n (_a = this.intersection) === null || _a === void 0 ? void 0 : _a.disconnect();\n (_b = this.gapIntersection) === null || _b === void 0 ? void 0 : _b.disconnect();\n (_c = this.resizeScroll) === null || _c === void 0 ? void 0 : _c.disconnect();\n for (let dom of this.scrollTargets)\n dom.removeEventListener(\"scroll\", this.onScroll);\n this.removeWindowListeners(this.win);\n clearTimeout(this.parentCheck);\n clearTimeout(this.resizeTimeout);\n this.win.cancelAnimationFrame(this.delayedFlush);\n this.win.cancelAnimationFrame(this.flushingAndroidKey);\n if (this.editContext) {\n this.view.contentDOM.editContext = null;\n this.editContext.destroy();\n }\n }\n}\nfunction findChild(cView, dom, dir) {\n while (dom) {\n let curView = ContentView.get(dom);\n if (curView && curView.parent == cView)\n return curView;\n let parent = dom.parentNode;\n dom = parent != cView.dom ? parent : dir > 0 ? dom.nextSibling : dom.previousSibling;\n }\n return null;\n}\nfunction buildSelectionRangeFromRange(view, range) {\n let anchorNode = range.startContainer, anchorOffset = range.startOffset;\n let focusNode = range.endContainer, focusOffset = range.endOffset;\n let curAnchor = view.docView.domAtPos(view.state.selection.main.anchor);\n // Since such a range doesn't distinguish between anchor and head,\n // use a heuristic that flips it around if its end matches the\n // current anchor.\n if (isEquivalentPosition(curAnchor.node, curAnchor.offset, focusNode, focusOffset))\n [anchorNode, anchorOffset, focusNode, focusOffset] = [focusNode, focusOffset, anchorNode, anchorOffset];\n return { anchorNode, anchorOffset, focusNode, focusOffset };\n}\n// Used to work around a Safari Selection/shadow DOM bug (#414)\nfunction safariSelectionRangeHack(view, selection) {\n if (selection.getComposedRanges) {\n let range = selection.getComposedRanges(view.root)[0];\n if (range)\n return buildSelectionRangeFromRange(view, range);\n }\n let found = null;\n // Because Safari (at least in 2018-2021) doesn't provide regular\n // access to the selection inside a shadowroot, we have to perform a\n // ridiculous hack to get at it—using `execCommand` to trigger a\n // `beforeInput` event so that we can read the target range from the\n // event.\n function read(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n found = event.getTargetRanges()[0];\n }\n view.contentDOM.addEventListener(\"beforeinput\", read, true);\n view.dom.ownerDocument.execCommand(\"indent\");\n view.contentDOM.removeEventListener(\"beforeinput\", read, true);\n return found ? buildSelectionRangeFromRange(view, found) : null;\n}\nclass EditContextManager {\n constructor(view) {\n // The document window for which the text in the context is\n // maintained. For large documents, this may be smaller than the\n // editor document. This window always includes the selection head.\n this.from = 0;\n this.to = 0;\n // When applying a transaction, this is used to compare the change\n // made to the context content to the change in the transaction in\n // order to make the minimal changes to the context (since touching\n // that sometimes breaks series of multiple edits made for a single\n // user action on some Android keyboards)\n this.pendingContextChange = null;\n this.handlers = Object.create(null);\n this.resetRange(view.state);\n let context = this.editContext = new window.EditContext({\n text: view.state.doc.sliceString(this.from, this.to),\n selectionStart: this.toContextPos(Math.max(this.from, Math.min(this.to, view.state.selection.main.anchor))),\n selectionEnd: this.toContextPos(view.state.selection.main.head)\n });\n this.handlers.textupdate = e => {\n let { anchor } = view.state.selection.main;\n let change = { from: this.toEditorPos(e.updateRangeStart),\n to: this.toEditorPos(e.updateRangeEnd),\n insert: _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Text.of(e.text.split(\"\\n\")) };\n // If the window doesn't include the anchor, assume changes\n // adjacent to a side go up to the anchor.\n if (change.from == this.from && anchor < this.from)\n change.from = anchor;\n else if (change.to == this.to && anchor > this.to)\n change.to = anchor;\n // Edit contexts sometimes fire empty changes\n if (change.from == change.to && !change.insert.length)\n return;\n this.pendingContextChange = change;\n applyDOMChangeInner(view, change, _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.single(this.toEditorPos(e.selectionStart), this.toEditorPos(e.selectionEnd)));\n // If the transaction didn't flush our change, revert it so\n // that the context is in sync with the editor state again.\n if (this.pendingContextChange) {\n this.revertPending(view.state);\n this.setSelection(view.state);\n }\n };\n this.handlers.characterboundsupdate = e => {\n let rects = [], prev = null;\n for (let i = this.toEditorPos(e.rangeStart), end = this.toEditorPos(e.rangeEnd); i < end; i++) {\n let rect = view.coordsForChar(i);\n prev = (rect && new DOMRect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top))\n || prev || new DOMRect;\n rects.push(prev);\n }\n context.updateCharacterBounds(e.rangeStart, rects);\n };\n this.handlers.textformatupdate = e => {\n let deco = [];\n for (let format of e.getTextFormats()) {\n let lineStyle = format.underlineStyle, thickness = format.underlineThickness;\n if (lineStyle != \"None\" && thickness != \"None\") {\n let style = `text-decoration: underline ${lineStyle == \"Dashed\" ? \"dashed \" : lineStyle == \"Squiggle\" ? \"wavy \" : \"\"}${thickness == \"Thin\" ? 1 : 2}px`;\n deco.push(Decoration.mark({ attributes: { style } })\n .range(this.toEditorPos(format.rangeStart), this.toEditorPos(format.rangeEnd)));\n }\n }\n view.dispatch({ effects: setEditContextFormatting.of(Decoration.set(deco)) });\n };\n this.handlers.compositionstart = () => {\n if (view.inputState.composing < 0) {\n view.inputState.composing = 0;\n view.inputState.compositionFirstChange = true;\n }\n };\n this.handlers.compositionend = () => {\n view.inputState.composing = -1;\n view.inputState.compositionFirstChange = null;\n };\n for (let event in this.handlers)\n context.addEventListener(event, this.handlers[event]);\n this.measureReq = { read: view => {\n this.editContext.updateControlBounds(view.contentDOM.getBoundingClientRect());\n let sel = getSelection(view.root);\n if (sel && sel.rangeCount)\n this.editContext.updateSelectionBounds(sel.getRangeAt(0).getBoundingClientRect());\n } };\n }\n applyEdits(update) {\n let off = 0, abort = false, pending = this.pendingContextChange;\n update.changes.iterChanges((fromA, toA, _fromB, _toB, insert) => {\n if (abort)\n return;\n let dLen = insert.length - (toA - fromA);\n if (pending && toA >= pending.to) {\n if (pending.from == fromA && pending.to == toA && pending.insert.eq(insert)) {\n pending = this.pendingContextChange = null; // Match\n off += dLen;\n this.to += dLen;\n return;\n }\n else { // Mismatch, revert\n pending = null;\n this.revertPending(update.state);\n }\n }\n fromA += off;\n toA += off;\n if (toA <= this.from) { // Before the window\n this.from += dLen;\n this.to += dLen;\n }\n else if (fromA < this.to) { // Overlaps with window\n if (fromA < this.from || toA > this.to || (this.to - this.from) + insert.length > 30000 /* CxVp.MaxSize */) {\n abort = true;\n return;\n }\n this.editContext.updateText(this.toContextPos(fromA), this.toContextPos(toA), insert.toString());\n this.to += dLen;\n }\n off += dLen;\n });\n if (pending && !abort)\n this.revertPending(update.state);\n return !abort;\n }\n update(update) {\n let reverted = this.pendingContextChange;\n if (!this.applyEdits(update) || !this.rangeIsValid(update.state)) {\n this.pendingContextChange = null;\n this.resetRange(update.state);\n this.editContext.updateText(0, this.editContext.text.length, update.state.doc.sliceString(this.from, this.to));\n this.setSelection(update.state);\n }\n else if (update.docChanged || update.selectionSet || reverted) {\n this.setSelection(update.state);\n }\n if (update.geometryChanged || update.docChanged || update.selectionSet)\n update.view.requestMeasure(this.measureReq);\n }\n resetRange(state) {\n let { head } = state.selection.main;\n this.from = Math.max(0, head - 10000 /* CxVp.Margin */);\n this.to = Math.min(state.doc.length, head + 10000 /* CxVp.Margin */);\n }\n revertPending(state) {\n let pending = this.pendingContextChange;\n this.pendingContextChange = null;\n this.editContext.updateText(this.toContextPos(pending.from), this.toContextPos(pending.from + pending.insert.length), state.doc.sliceString(pending.from, pending.to));\n }\n setSelection(state) {\n let { main } = state.selection;\n let start = this.toContextPos(Math.max(this.from, Math.min(this.to, main.anchor)));\n let end = this.toContextPos(main.head);\n if (this.editContext.selectionStart != start || this.editContext.selectionEnd != end)\n this.editContext.updateSelection(start, end);\n }\n rangeIsValid(state) {\n let { head } = state.selection.main;\n return !(this.from > 0 && head - this.from < 500 /* CxVp.MinMargin */ ||\n this.to < state.doc.length && this.to - head < 500 /* CxVp.MinMargin */ ||\n this.to - this.from > 10000 /* CxVp.Margin */ * 3);\n }\n toEditorPos(contextPos) { return contextPos + this.from; }\n toContextPos(editorPos) { return editorPos - this.from; }\n destroy() {\n for (let event in this.handlers)\n this.editContext.removeEventListener(event, this.handlers[event]);\n }\n}\n\n// The editor's update state machine looks something like this:\n//\n// Idle → Updating ⇆ Idle (unchecked) → Measuring → Idle\n// ↑ ↓\n// Updating (measure)\n//\n// The difference between 'Idle' and 'Idle (unchecked)' lies in\n// whether a layout check has been scheduled. A regular update through\n// the `update` method updates the DOM in a write-only fashion, and\n// relies on a check (scheduled with `requestAnimationFrame`) to make\n// sure everything is where it should be and the viewport covers the\n// visible code. That check continues to measure and then optionally\n// update until it reaches a coherent state.\n/**\nAn editor view represents the editor's user interface. It holds\nthe editable DOM surface, and possibly other elements such as the\nline number gutter. It handles events and dispatches state\ntransactions for editing actions.\n*/\nclass EditorView {\n /**\n The current editor state.\n */\n get state() { return this.viewState.state; }\n /**\n To be able to display large documents without consuming too much\n memory or overloading the browser, CodeMirror only draws the\n code that is visible (plus a margin around it) to the DOM. This\n property tells you the extent of the current drawn viewport, in\n document positions.\n */\n get viewport() { return this.viewState.viewport; }\n /**\n When there are, for example, large collapsed ranges in the\n viewport, its size can be a lot bigger than the actual visible\n content. Thus, if you are doing something like styling the\n content in the viewport, it is preferable to only do so for\n these ranges, which are the subset of the viewport that is\n actually drawn.\n */\n get visibleRanges() { return this.viewState.visibleRanges; }\n /**\n Returns false when the editor is entirely scrolled out of view\n or otherwise hidden.\n */\n get inView() { return this.viewState.inView; }\n /**\n Indicates whether the user is currently composing text via\n [IME](https://en.wikipedia.org/wiki/Input_method), and at least\n one change has been made in the current composition.\n */\n get composing() { return this.inputState.composing > 0; }\n /**\n Indicates whether the user is currently in composing state. Note\n that on some platforms, like Android, this will be the case a\n lot, since just putting the cursor on a word starts a\n composition there.\n */\n get compositionStarted() { return this.inputState.composing >= 0; }\n /**\n The document or shadow root that the view lives in.\n */\n get root() { return this._root; }\n /**\n @internal\n */\n get win() { return this.dom.ownerDocument.defaultView || window; }\n /**\n Construct a new view. You'll want to either provide a `parent`\n option, or put `view.dom` into your document after creating a\n view, so that the user can see the editor.\n */\n constructor(config = {}) {\n this.plugins = [];\n this.pluginMap = new Map;\n this.editorAttrs = {};\n this.contentAttrs = {};\n this.bidiCache = [];\n this.destroyed = false;\n /**\n @internal\n */\n this.updateState = 2 /* UpdateState.Updating */;\n /**\n @internal\n */\n this.measureScheduled = -1;\n /**\n @internal\n */\n this.measureRequests = [];\n this.contentDOM = document.createElement(\"div\");\n this.scrollDOM = document.createElement(\"div\");\n this.scrollDOM.tabIndex = -1;\n this.scrollDOM.className = \"cm-scroller\";\n this.scrollDOM.appendChild(this.contentDOM);\n this.announceDOM = document.createElement(\"div\");\n this.announceDOM.className = \"cm-announced\";\n this.announceDOM.setAttribute(\"aria-live\", \"polite\");\n this.dom = document.createElement(\"div\");\n this.dom.appendChild(this.announceDOM);\n this.dom.appendChild(this.scrollDOM);\n if (config.parent)\n config.parent.appendChild(this.dom);\n let { dispatch } = config;\n this.dispatchTransactions = config.dispatchTransactions ||\n (dispatch && ((trs) => trs.forEach(tr => dispatch(tr, this)))) ||\n ((trs) => this.update(trs));\n this.dispatch = this.dispatch.bind(this);\n this._root = (config.root || getRoot(config.parent) || document);\n this.viewState = new ViewState(config.state || _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorState.create(config));\n if (config.scrollTo && config.scrollTo.is(scrollIntoView))\n this.viewState.scrollTarget = config.scrollTo.value.clip(this.viewState.state);\n this.plugins = this.state.facet(viewPlugin).map(spec => new PluginInstance(spec));\n for (let plugin of this.plugins)\n plugin.update(this);\n this.observer = new DOMObserver(this);\n this.inputState = new InputState(this);\n this.inputState.ensureHandlers(this.plugins);\n this.docView = new DocView(this);\n this.mountStyles();\n this.updateAttrs();\n this.updateState = 0 /* UpdateState.Idle */;\n this.requestMeasure();\n }\n dispatch(...input) {\n let trs = input.length == 1 && input[0] instanceof _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Transaction ? input\n : input.length == 1 && Array.isArray(input[0]) ? input[0]\n : [this.state.update(...input)];\n this.dispatchTransactions(trs, this);\n }\n /**\n Update the view for the given array of transactions. This will\n update the visible document and selection to match the state\n produced by the transactions, and notify view plugins of the\n change. You should usually call\n [`dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch) instead, which uses this\n as a primitive.\n */\n update(transactions) {\n if (this.updateState != 0 /* UpdateState.Idle */)\n throw new Error(\"Calls to EditorView.update are not allowed while an update is in progress\");\n let redrawn = false, attrsChanged = false, update;\n let state = this.state;\n for (let tr of transactions) {\n if (tr.startState != state)\n throw new RangeError(\"Trying to update state with a transaction that doesn't start from the previous state.\");\n state = tr.state;\n }\n if (this.destroyed) {\n this.viewState.state = state;\n return;\n }\n let focus = this.hasFocus, focusFlag = 0, dispatchFocus = null;\n if (transactions.some(tr => tr.annotation(isFocusChange))) {\n this.inputState.notifiedFocused = focus;\n // If a focus-change transaction is being dispatched, set this update flag.\n focusFlag = 1 /* UpdateFlag.Focus */;\n }\n else if (focus != this.inputState.notifiedFocused) {\n this.inputState.notifiedFocused = focus;\n // Schedule a separate focus transaction if necessary, otherwise\n // add a flag to this update\n dispatchFocus = focusChangeTransaction(state, focus);\n if (!dispatchFocus)\n focusFlag = 1 /* UpdateFlag.Focus */;\n }\n // If there was a pending DOM change, eagerly read it and try to\n // apply it after the given transactions.\n let pendingKey = this.observer.delayedAndroidKey, domChange = null;\n if (pendingKey) {\n this.observer.clearDelayedAndroidKey();\n domChange = this.observer.readChange();\n // Only try to apply DOM changes if the transactions didn't\n // change the doc or selection.\n if (domChange && !this.state.doc.eq(state.doc) || !this.state.selection.eq(state.selection))\n domChange = null;\n }\n else {\n this.observer.clear();\n }\n // When the phrases change, redraw the editor\n if (state.facet(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorState.phrases) != this.state.facet(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorState.phrases))\n return this.setState(state);\n update = ViewUpdate.create(this, state, transactions);\n update.flags |= focusFlag;\n let scrollTarget = this.viewState.scrollTarget;\n try {\n this.updateState = 2 /* UpdateState.Updating */;\n for (let tr of transactions) {\n if (scrollTarget)\n scrollTarget = scrollTarget.map(tr.changes);\n if (tr.scrollIntoView) {\n let { main } = tr.state.selection;\n scrollTarget = new ScrollTarget(main.empty ? main : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(main.head, main.head > main.anchor ? -1 : 1));\n }\n for (let e of tr.effects)\n if (e.is(scrollIntoView))\n scrollTarget = e.value.clip(this.state);\n }\n this.viewState.update(update, scrollTarget);\n this.bidiCache = CachedOrder.update(this.bidiCache, update.changes);\n if (!update.empty) {\n this.updatePlugins(update);\n this.inputState.update(update);\n }\n redrawn = this.docView.update(update);\n if (this.state.facet(styleModule) != this.styleModules)\n this.mountStyles();\n attrsChanged = this.updateAttrs();\n this.showAnnouncements(transactions);\n this.docView.updateSelection(redrawn, transactions.some(tr => tr.isUserEvent(\"select.pointer\")));\n }\n finally {\n this.updateState = 0 /* UpdateState.Idle */;\n }\n if (update.startState.facet(theme) != update.state.facet(theme))\n this.viewState.mustMeasureContent = true;\n if (redrawn || attrsChanged || scrollTarget || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent)\n this.requestMeasure();\n if (redrawn)\n this.docViewUpdate();\n if (!update.empty)\n for (let listener of this.state.facet(updateListener)) {\n try {\n listener(update);\n }\n catch (e) {\n logException(this.state, e, \"update listener\");\n }\n }\n if (dispatchFocus || domChange)\n Promise.resolve().then(() => {\n if (dispatchFocus && this.state == dispatchFocus.startState)\n this.dispatch(dispatchFocus);\n if (domChange) {\n if (!applyDOMChange(this, domChange) && pendingKey.force)\n dispatchKey(this.contentDOM, pendingKey.key, pendingKey.keyCode);\n }\n });\n }\n /**\n Reset the view to the given state. (This will cause the entire\n document to be redrawn and all view plugins to be reinitialized,\n so you should probably only use it when the new state isn't\n derived from the old state. Otherwise, use\n [`dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch) instead.)\n */\n setState(newState) {\n if (this.updateState != 0 /* UpdateState.Idle */)\n throw new Error(\"Calls to EditorView.setState are not allowed while an update is in progress\");\n if (this.destroyed) {\n this.viewState.state = newState;\n return;\n }\n this.updateState = 2 /* UpdateState.Updating */;\n let hadFocus = this.hasFocus;\n try {\n for (let plugin of this.plugins)\n plugin.destroy(this);\n this.viewState = new ViewState(newState);\n this.plugins = newState.facet(viewPlugin).map(spec => new PluginInstance(spec));\n this.pluginMap.clear();\n for (let plugin of this.plugins)\n plugin.update(this);\n this.docView.destroy();\n this.docView = new DocView(this);\n this.inputState.ensureHandlers(this.plugins);\n this.mountStyles();\n this.updateAttrs();\n this.bidiCache = [];\n }\n finally {\n this.updateState = 0 /* UpdateState.Idle */;\n }\n if (hadFocus)\n this.focus();\n this.requestMeasure();\n }\n updatePlugins(update) {\n let prevSpecs = update.startState.facet(viewPlugin), specs = update.state.facet(viewPlugin);\n if (prevSpecs != specs) {\n let newPlugins = [];\n for (let spec of specs) {\n let found = prevSpecs.indexOf(spec);\n if (found < 0) {\n newPlugins.push(new PluginInstance(spec));\n }\n else {\n let plugin = this.plugins[found];\n plugin.mustUpdate = update;\n newPlugins.push(plugin);\n }\n }\n for (let plugin of this.plugins)\n if (plugin.mustUpdate != update)\n plugin.destroy(this);\n this.plugins = newPlugins;\n this.pluginMap.clear();\n }\n else {\n for (let p of this.plugins)\n p.mustUpdate = update;\n }\n for (let i = 0; i < this.plugins.length; i++)\n this.plugins[i].update(this);\n if (prevSpecs != specs)\n this.inputState.ensureHandlers(this.plugins);\n }\n docViewUpdate() {\n for (let plugin of this.plugins) {\n let val = plugin.value;\n if (val && val.docViewUpdate) {\n try {\n val.docViewUpdate(this);\n }\n catch (e) {\n logException(this.state, e, \"doc view update listener\");\n }\n }\n }\n }\n /**\n @internal\n */\n measure(flush = true) {\n if (this.destroyed)\n return;\n if (this.measureScheduled > -1)\n this.win.cancelAnimationFrame(this.measureScheduled);\n if (this.observer.delayedAndroidKey) {\n this.measureScheduled = -1;\n this.requestMeasure();\n return;\n }\n this.measureScheduled = 0; // Prevent requestMeasure calls from scheduling another animation frame\n if (flush)\n this.observer.forceFlush();\n let updated = null;\n let sDOM = this.scrollDOM, scrollTop = sDOM.scrollTop * this.scaleY;\n let { scrollAnchorPos, scrollAnchorHeight } = this.viewState;\n if (Math.abs(scrollTop - this.viewState.scrollTop) > 1)\n scrollAnchorHeight = -1;\n this.viewState.scrollAnchorHeight = -1;\n try {\n for (let i = 0;; i++) {\n if (scrollAnchorHeight < 0) {\n if (isScrolledToBottom(sDOM)) {\n scrollAnchorPos = -1;\n scrollAnchorHeight = this.viewState.heightMap.height;\n }\n else {\n let block = this.viewState.scrollAnchorAt(scrollTop);\n scrollAnchorPos = block.from;\n scrollAnchorHeight = block.top;\n }\n }\n this.updateState = 1 /* UpdateState.Measuring */;\n let changed = this.viewState.measure(this);\n if (!changed && !this.measureRequests.length && this.viewState.scrollTarget == null)\n break;\n if (i > 5) {\n console.warn(this.measureRequests.length\n ? \"Measure loop restarted more than 5 times\"\n : \"Viewport failed to stabilize\");\n break;\n }\n let measuring = [];\n // Only run measure requests in this cycle when the viewport didn't change\n if (!(changed & 4 /* UpdateFlag.Viewport */))\n [this.measureRequests, measuring] = [measuring, this.measureRequests];\n let measured = measuring.map(m => {\n try {\n return m.read(this);\n }\n catch (e) {\n logException(this.state, e);\n return BadMeasure;\n }\n });\n let update = ViewUpdate.create(this, this.state, []), redrawn = false;\n update.flags |= changed;\n if (!updated)\n updated = update;\n else\n updated.flags |= changed;\n this.updateState = 2 /* UpdateState.Updating */;\n if (!update.empty) {\n this.updatePlugins(update);\n this.inputState.update(update);\n this.updateAttrs();\n redrawn = this.docView.update(update);\n if (redrawn)\n this.docViewUpdate();\n }\n for (let i = 0; i < measuring.length; i++)\n if (measured[i] != BadMeasure) {\n try {\n let m = measuring[i];\n if (m.write)\n m.write(measured[i], this);\n }\n catch (e) {\n logException(this.state, e);\n }\n }\n if (redrawn)\n this.docView.updateSelection(true);\n if (!update.viewportChanged && this.measureRequests.length == 0) {\n if (this.viewState.editorHeight) {\n if (this.viewState.scrollTarget) {\n this.docView.scrollIntoView(this.viewState.scrollTarget);\n this.viewState.scrollTarget = null;\n scrollAnchorHeight = -1;\n continue;\n }\n else {\n let newAnchorHeight = scrollAnchorPos < 0 ? this.viewState.heightMap.height :\n this.viewState.lineBlockAt(scrollAnchorPos).top;\n let diff = newAnchorHeight - scrollAnchorHeight;\n if (diff > 1 || diff < -1) {\n scrollTop = scrollTop + diff;\n sDOM.scrollTop = scrollTop / this.scaleY;\n scrollAnchorHeight = -1;\n continue;\n }\n }\n }\n break;\n }\n }\n }\n finally {\n this.updateState = 0 /* UpdateState.Idle */;\n this.measureScheduled = -1;\n }\n if (updated && !updated.empty)\n for (let listener of this.state.facet(updateListener))\n listener(updated);\n }\n /**\n Get the CSS classes for the currently active editor themes.\n */\n get themeClasses() {\n return baseThemeID + \" \" +\n (this.state.facet(darkTheme) ? baseDarkID : baseLightID) + \" \" +\n this.state.facet(theme);\n }\n updateAttrs() {\n let editorAttrs = attrsFromFacet(this, editorAttributes, {\n class: \"cm-editor\" + (this.hasFocus ? \" cm-focused \" : \" \") + this.themeClasses\n });\n let contentAttrs = {\n spellcheck: \"false\",\n autocorrect: \"off\",\n autocapitalize: \"off\",\n translate: \"no\",\n contenteditable: !this.state.facet(editable) ? \"false\" : \"true\",\n class: \"cm-content\",\n style: `${browser.tabSize}: ${this.state.tabSize}`,\n role: \"textbox\",\n \"aria-multiline\": \"true\"\n };\n if (this.state.readOnly)\n contentAttrs[\"aria-readonly\"] = \"true\";\n attrsFromFacet(this, contentAttributes, contentAttrs);\n let changed = this.observer.ignore(() => {\n let changedContent = updateAttrs(this.contentDOM, this.contentAttrs, contentAttrs);\n let changedEditor = updateAttrs(this.dom, this.editorAttrs, editorAttrs);\n return changedContent || changedEditor;\n });\n this.editorAttrs = editorAttrs;\n this.contentAttrs = contentAttrs;\n return changed;\n }\n showAnnouncements(trs) {\n let first = true;\n for (let tr of trs)\n for (let effect of tr.effects)\n if (effect.is(EditorView.announce)) {\n if (first)\n this.announceDOM.textContent = \"\";\n first = false;\n let div = this.announceDOM.appendChild(document.createElement(\"div\"));\n div.textContent = effect.value;\n }\n }\n mountStyles() {\n this.styleModules = this.state.facet(styleModule);\n let nonce = this.state.facet(EditorView.cspNonce);\n style_mod__WEBPACK_IMPORTED_MODULE_0__.StyleModule.mount(this.root, this.styleModules.concat(baseTheme$1).reverse(), nonce ? { nonce } : undefined);\n }\n readMeasured() {\n if (this.updateState == 2 /* UpdateState.Updating */)\n throw new Error(\"Reading the editor layout isn't allowed during an update\");\n if (this.updateState == 0 /* UpdateState.Idle */ && this.measureScheduled > -1)\n this.measure(false);\n }\n /**\n Schedule a layout measurement, optionally providing callbacks to\n do custom DOM measuring followed by a DOM write phase. Using\n this is preferable reading DOM layout directly from, for\n example, an event handler, because it'll make sure measuring and\n drawing done by other components is synchronized, avoiding\n unnecessary DOM layout computations.\n */\n requestMeasure(request) {\n if (this.measureScheduled < 0)\n this.measureScheduled = this.win.requestAnimationFrame(() => this.measure());\n if (request) {\n if (this.measureRequests.indexOf(request) > -1)\n return;\n if (request.key != null)\n for (let i = 0; i < this.measureRequests.length; i++) {\n if (this.measureRequests[i].key === request.key) {\n this.measureRequests[i] = request;\n return;\n }\n }\n this.measureRequests.push(request);\n }\n }\n /**\n Get the value of a specific plugin, if present. Note that\n plugins that crash can be dropped from a view, so even when you\n know you registered a given plugin, it is recommended to check\n the return value of this method.\n */\n plugin(plugin) {\n let known = this.pluginMap.get(plugin);\n if (known === undefined || known && known.spec != plugin)\n this.pluginMap.set(plugin, known = this.plugins.find(p => p.spec == plugin) || null);\n return known && known.update(this).value;\n }\n /**\n The top position of the document, in screen coordinates. This\n may be negative when the editor is scrolled down. Points\n directly to the top of the first line, not above the padding.\n */\n get documentTop() {\n return this.contentDOM.getBoundingClientRect().top + this.viewState.paddingTop;\n }\n /**\n Reports the padding above and below the document.\n */\n get documentPadding() {\n return { top: this.viewState.paddingTop, bottom: this.viewState.paddingBottom };\n }\n /**\n If the editor is transformed with CSS, this provides the scale\n along the X axis. Otherwise, it will just be 1. Note that\n transforms other than translation and scaling are not supported.\n */\n get scaleX() { return this.viewState.scaleX; }\n /**\n Provide the CSS transformed scale along the Y axis.\n */\n get scaleY() { return this.viewState.scaleY; }\n /**\n Find the text line or block widget at the given vertical\n position (which is interpreted as relative to the [top of the\n document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop)).\n */\n elementAtHeight(height) {\n this.readMeasured();\n return this.viewState.elementAtHeight(height);\n }\n /**\n Find the line block (see\n [`lineBlockAt`](https://codemirror.net/6/docs/ref/#view.EditorView.lineBlockAt) at the given\n height, again interpreted relative to the [top of the\n document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop).\n */\n lineBlockAtHeight(height) {\n this.readMeasured();\n return this.viewState.lineBlockAtHeight(height);\n }\n /**\n Get the extent and vertical position of all [line\n blocks](https://codemirror.net/6/docs/ref/#view.EditorView.lineBlockAt) in the viewport. Positions\n are relative to the [top of the\n document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop);\n */\n get viewportLineBlocks() {\n return this.viewState.viewportLines;\n }\n /**\n Find the line block around the given document position. A line\n block is a range delimited on both sides by either a\n non-[hidden](https://codemirror.net/6/docs/ref/#view.Decoration^replace) line breaks, or the\n start/end of the document. It will usually just hold a line of\n text, but may be broken into multiple textblocks by block\n widgets.\n */\n lineBlockAt(pos) {\n return this.viewState.lineBlockAt(pos);\n }\n /**\n The editor's total content height.\n */\n get contentHeight() {\n return this.viewState.contentHeight;\n }\n /**\n Move a cursor position by [grapheme\n cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak). `forward` determines whether\n the motion is away from the line start, or towards it. In\n bidirectional text, the line is traversed in visual order, using\n the editor's [text direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection).\n When the start position was the last one on the line, the\n returned position will be across the line break. If there is no\n further line, the original position is returned.\n \n By default, this method moves over a single cluster. The\n optional `by` argument can be used to move across more. It will\n be called with the first cluster as argument, and should return\n a predicate that determines, for each subsequent cluster,\n whether it should also be moved over.\n */\n moveByChar(start, forward, by) {\n return skipAtoms(this, start, moveByChar(this, start, forward, by));\n }\n /**\n Move a cursor position across the next group of either\n [letters](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) or non-letter\n non-whitespace characters.\n */\n moveByGroup(start, forward) {\n return skipAtoms(this, start, moveByChar(this, start, forward, initial => byGroup(this, start.head, initial)));\n }\n /**\n Get the cursor position visually at the start or end of a line.\n Note that this may differ from the _logical_ position at its\n start or end (which is simply at `line.from`/`line.to`) if text\n at the start or end goes against the line's base text direction.\n */\n visualLineSide(line, end) {\n let order = this.bidiSpans(line), dir = this.textDirectionAt(line.from);\n let span = order[end ? order.length - 1 : 0];\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(span.side(end, dir) + line.from, span.forward(!end, dir) ? 1 : -1);\n }\n /**\n Move to the next line boundary in the given direction. If\n `includeWrap` is true, line wrapping is on, and there is a\n further wrap point on the current line, the wrap point will be\n returned. Otherwise this function will return the start or end\n of the line.\n */\n moveToLineBoundary(start, forward, includeWrap = true) {\n return moveToLineBoundary(this, start, forward, includeWrap);\n }\n /**\n Move a cursor position vertically. When `distance` isn't given,\n it defaults to moving to the next line (including wrapped\n lines). Otherwise, `distance` should provide a positive distance\n in pixels.\n \n When `start` has a\n [`goalColumn`](https://codemirror.net/6/docs/ref/#state.SelectionRange.goalColumn), the vertical\n motion will use that as a target horizontal position. Otherwise,\n the cursor's own horizontal position is used. The returned\n cursor will have its goal column set to whichever column was\n used.\n */\n moveVertically(start, forward, distance) {\n return skipAtoms(this, start, moveVertically(this, start, forward, distance));\n }\n /**\n Find the DOM parent node and offset (child offset if `node` is\n an element, character offset when it is a text node) at the\n given document position.\n \n Note that for positions that aren't currently in\n `visibleRanges`, the resulting DOM position isn't necessarily\n meaningful (it may just point before or after a placeholder\n element).\n */\n domAtPos(pos) {\n return this.docView.domAtPos(pos);\n }\n /**\n Find the document position at the given DOM node. Can be useful\n for associating positions with DOM events. Will raise an error\n when `node` isn't part of the editor content.\n */\n posAtDOM(node, offset = 0) {\n return this.docView.posFromDOM(node, offset);\n }\n posAtCoords(coords, precise = true) {\n this.readMeasured();\n return posAtCoords(this, coords, precise);\n }\n /**\n Get the screen coordinates at the given document position.\n `side` determines whether the coordinates are based on the\n element before (-1) or after (1) the position (if no element is\n available on the given side, the method will transparently use\n another strategy to get reasonable coordinates).\n */\n coordsAtPos(pos, side = 1) {\n this.readMeasured();\n let rect = this.docView.coordsAt(pos, side);\n if (!rect || rect.left == rect.right)\n return rect;\n let line = this.state.doc.lineAt(pos), order = this.bidiSpans(line);\n let span = order[BidiSpan.find(order, pos - line.from, -1, side)];\n return flattenRect(rect, (span.dir == Direction.LTR) == (side > 0));\n }\n /**\n Return the rectangle around a given character. If `pos` does not\n point in front of a character that is in the viewport and\n rendered (i.e. not replaced, not a line break), this will return\n null. For space characters that are a line wrap point, this will\n return the position before the line break.\n */\n coordsForChar(pos) {\n this.readMeasured();\n return this.docView.coordsForChar(pos);\n }\n /**\n The default width of a character in the editor. May not\n accurately reflect the width of all characters (given variable\n width fonts or styling of invididual ranges).\n */\n get defaultCharacterWidth() { return this.viewState.heightOracle.charWidth; }\n /**\n The default height of a line in the editor. May not be accurate\n for all lines.\n */\n get defaultLineHeight() { return this.viewState.heightOracle.lineHeight; }\n /**\n The text direction\n ([`direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/direction)\n CSS property) of the editor's content element.\n */\n get textDirection() { return this.viewState.defaultTextDirection; }\n /**\n Find the text direction of the block at the given position, as\n assigned by CSS. If\n [`perLineTextDirection`](https://codemirror.net/6/docs/ref/#view.EditorView^perLineTextDirection)\n isn't enabled, or the given position is outside of the viewport,\n this will always return the same as\n [`textDirection`](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection). Note that\n this may trigger a DOM layout.\n */\n textDirectionAt(pos) {\n let perLine = this.state.facet(perLineTextDirection);\n if (!perLine || pos < this.viewport.from || pos > this.viewport.to)\n return this.textDirection;\n this.readMeasured();\n return this.docView.textDirectionAt(pos);\n }\n /**\n Whether this editor [wraps lines](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping)\n (as determined by the\n [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)\n CSS property of its content element).\n */\n get lineWrapping() { return this.viewState.heightOracle.lineWrapping; }\n /**\n Returns the bidirectional text structure of the given line\n (which should be in the current document) as an array of span\n objects. The order of these spans matches the [text\n direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection)—if that is\n left-to-right, the leftmost spans come first, otherwise the\n rightmost spans come first.\n */\n bidiSpans(line) {\n if (line.length > MaxBidiLine)\n return trivialOrder(line.length);\n let dir = this.textDirectionAt(line.from), isolates;\n for (let entry of this.bidiCache) {\n if (entry.from == line.from && entry.dir == dir &&\n (entry.fresh || isolatesEq(entry.isolates, isolates = getIsolatedRanges(this, line))))\n return entry.order;\n }\n if (!isolates)\n isolates = getIsolatedRanges(this, line);\n let order = computeOrder(line.text, dir, isolates);\n this.bidiCache.push(new CachedOrder(line.from, line.to, dir, isolates, true, order));\n return order;\n }\n /**\n Check whether the editor has focus.\n */\n get hasFocus() {\n var _a;\n // Safari return false for hasFocus when the context menu is open\n // or closing, which leads us to ignore selection changes from the\n // context menu because it looks like the editor isn't focused.\n // This kludges around that.\n return (this.dom.ownerDocument.hasFocus() || browser.safari && ((_a = this.inputState) === null || _a === void 0 ? void 0 : _a.lastContextMenu) > Date.now() - 3e4) &&\n this.root.activeElement == this.contentDOM;\n }\n /**\n Put focus on the editor.\n */\n focus() {\n this.observer.ignore(() => {\n focusPreventScroll(this.contentDOM);\n this.docView.updateSelection();\n });\n }\n /**\n Update the [root](https://codemirror.net/6/docs/ref/##view.EditorViewConfig.root) in which the editor lives. This is only\n necessary when moving the editor's existing DOM to a new window or shadow root.\n */\n setRoot(root) {\n if (this._root != root) {\n this._root = root;\n this.observer.setWindow((root.nodeType == 9 ? root : root.ownerDocument).defaultView || window);\n this.mountStyles();\n }\n }\n /**\n Clean up this editor view, removing its element from the\n document, unregistering event handlers, and notifying\n plugins. The view instance can no longer be used after\n calling this.\n */\n destroy() {\n if (this.root.activeElement == this.contentDOM)\n this.contentDOM.blur();\n for (let plugin of this.plugins)\n plugin.destroy(this);\n this.plugins = [];\n this.inputState.destroy();\n this.docView.destroy();\n this.dom.remove();\n this.observer.destroy();\n if (this.measureScheduled > -1)\n this.win.cancelAnimationFrame(this.measureScheduled);\n this.destroyed = true;\n }\n /**\n Returns an effect that can be\n [added](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) to a transaction to\n cause it to scroll the given position or range into view.\n */\n static scrollIntoView(pos, options = {}) {\n return scrollIntoView.of(new ScrollTarget(typeof pos == \"number\" ? _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(pos) : pos, options.y, options.x, options.yMargin, options.xMargin));\n }\n /**\n Return an effect that resets the editor to its current (at the\n time this method was called) scroll position. Note that this\n only affects the editor's own scrollable element, not parents.\n See also\n [`EditorViewConfig.scrollTo`](https://codemirror.net/6/docs/ref/#view.EditorViewConfig.scrollTo).\n \n The effect should be used with a document identical to the one\n it was created for. Failing to do so is not an error, but may\n not scroll to the expected position. You can\n [map](https://codemirror.net/6/docs/ref/#state.StateEffect.map) the effect to account for changes.\n */\n scrollSnapshot() {\n let { scrollTop, scrollLeft } = this.scrollDOM;\n let ref = this.viewState.scrollAnchorAt(scrollTop);\n return scrollIntoView.of(new ScrollTarget(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(ref.from), \"start\", \"start\", ref.top - scrollTop, scrollLeft, true));\n }\n /**\n Enable or disable tab-focus mode, which disables key bindings\n for Tab and Shift-Tab, letting the browser's default\n focus-changing behavior go through instead. This is useful to\n prevent trapping keyboard users in your editor.\n \n Without argument, this toggles the mode. With a boolean, it\n enables (true) or disables it (false). Given a number, it\n temporarily enables the mode until that number of milliseconds\n have passed or another non-Tab key is pressed.\n */\n setTabFocusMode(to) {\n if (to == null)\n this.inputState.tabFocusMode = this.inputState.tabFocusMode < 0 ? 0 : -1;\n else if (typeof to == \"boolean\")\n this.inputState.tabFocusMode = to ? 0 : -1;\n else if (this.inputState.tabFocusMode != 0)\n this.inputState.tabFocusMode = Date.now() + to;\n }\n /**\n Returns an extension that can be used to add DOM event handlers.\n The value should be an object mapping event names to handler\n functions. For any given event, such functions are ordered by\n extension precedence, and the first handler to return true will\n be assumed to have handled that event, and no other handlers or\n built-in behavior will be activated for it. These are registered\n on the [content element](https://codemirror.net/6/docs/ref/#view.EditorView.contentDOM), except\n for `scroll` handlers, which will be called any time the\n editor's [scroll element](https://codemirror.net/6/docs/ref/#view.EditorView.scrollDOM) or one of\n its parent nodes is scrolled.\n */\n static domEventHandlers(handlers) {\n return ViewPlugin.define(() => ({}), { eventHandlers: handlers });\n }\n /**\n Create an extension that registers DOM event observers. Contrary\n to event [handlers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventHandlers),\n observers can't be prevented from running by a higher-precedence\n handler returning true. They also don't prevent other handlers\n and observers from running when they return true, and should not\n call `preventDefault`.\n */\n static domEventObservers(observers) {\n return ViewPlugin.define(() => ({}), { eventObservers: observers });\n }\n /**\n Create a theme extension. The first argument can be a\n [`style-mod`](https://github.com/marijnh/style-mod#documentation)\n style spec providing the styles for the theme. These will be\n prefixed with a generated class for the style.\n \n Because the selectors will be prefixed with a scope class, rule\n that directly match the editor's [wrapper\n element](https://codemirror.net/6/docs/ref/#view.EditorView.dom)—to which the scope class will be\n added—need to be explicitly differentiated by adding an `&` to\n the selector for that element—for example\n `&.cm-focused`.\n \n When `dark` is set to true, the theme will be marked as dark,\n which will cause the `&dark` rules from [base\n themes](https://codemirror.net/6/docs/ref/#view.EditorView^baseTheme) to be used (as opposed to\n `&light` when a light theme is active).\n */\n static theme(spec, options) {\n let prefix = style_mod__WEBPACK_IMPORTED_MODULE_0__.StyleModule.newName();\n let result = [theme.of(prefix), styleModule.of(buildTheme(`.${prefix}`, spec))];\n if (options && options.dark)\n result.push(darkTheme.of(true));\n return result;\n }\n /**\n Create an extension that adds styles to the base theme. Like\n with [`theme`](https://codemirror.net/6/docs/ref/#view.EditorView^theme), use `&` to indicate the\n place of the editor wrapper element when directly targeting\n that. You can also use `&dark` or `&light` instead to only\n target editors with a dark or light theme.\n */\n static baseTheme(spec) {\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Prec.lowest(styleModule.of(buildTheme(\".\" + baseThemeID, spec, lightDarkIDs)));\n }\n /**\n Retrieve an editor view instance from the view's DOM\n representation.\n */\n static findFromDOM(dom) {\n var _a;\n let content = dom.querySelector(\".cm-content\");\n let cView = content && ContentView.get(content) || ContentView.get(dom);\n return ((_a = cView === null || cView === void 0 ? void 0 : cView.rootView) === null || _a === void 0 ? void 0 : _a.view) || null;\n }\n}\n/**\nFacet to add a [style\nmodule](https://github.com/marijnh/style-mod#documentation) to\nan editor view. The view will ensure that the module is\nmounted in its [document\nroot](https://codemirror.net/6/docs/ref/#view.EditorView.constructor^config.root).\n*/\nEditorView.styleModule = styleModule;\n/**\nAn input handler can override the way changes to the editable\nDOM content are handled. Handlers are passed the document\npositions between which the change was found, and the new\ncontent. When one returns true, no further input handlers are\ncalled and the default behavior is prevented.\n\nThe `insert` argument can be used to get the default transaction\nthat would be applied for this input. This can be useful when\ndispatching the custom behavior as a separate transaction.\n*/\nEditorView.inputHandler = inputHandler;\n/**\nScroll handlers can override how things are scrolled into view.\nIf they return `true`, no further handling happens for the\nscrolling. If they return false, the default scroll behavior is\napplied. Scroll handlers should never initiate editor updates.\n*/\nEditorView.scrollHandler = scrollHandler;\n/**\nThis facet can be used to provide functions that create effects\nto be dispatched when the editor's focus state changes.\n*/\nEditorView.focusChangeEffect = focusChangeEffect;\n/**\nBy default, the editor assumes all its content has the same\n[text direction](https://codemirror.net/6/docs/ref/#view.Direction). Configure this with a `true`\nvalue to make it read the text direction of every (rendered)\nline separately.\n*/\nEditorView.perLineTextDirection = perLineTextDirection;\n/**\nAllows you to provide a function that should be called when the\nlibrary catches an exception from an extension (mostly from view\nplugins, but may be used by other extensions to route exceptions\nfrom user-code-provided callbacks). This is mostly useful for\ndebugging and logging. See [`logException`](https://codemirror.net/6/docs/ref/#view.logException).\n*/\nEditorView.exceptionSink = exceptionSink;\n/**\nA facet that can be used to register a function to be called\nevery time the view updates.\n*/\nEditorView.updateListener = updateListener;\n/**\nFacet that controls whether the editor content DOM is editable.\nWhen its highest-precedence value is `false`, the element will\nnot have its `contenteditable` attribute set. (Note that this\ndoesn't affect API calls that change the editor content, even\nwhen those are bound to keys or buttons. See the\n[`readOnly`](https://codemirror.net/6/docs/ref/#state.EditorState.readOnly) facet for that.)\n*/\nEditorView.editable = editable;\n/**\nAllows you to influence the way mouse selection happens. The\nfunctions in this facet will be called for a `mousedown` event\non the editor, and can return an object that overrides the way a\nselection is computed from that mouse click or drag.\n*/\nEditorView.mouseSelectionStyle = mouseSelectionStyle;\n/**\nFacet used to configure whether a given selection drag event\nshould move or copy the selection. The given predicate will be\ncalled with the `mousedown` event, and can return `true` when\nthe drag should move the content.\n*/\nEditorView.dragMovesSelection = dragMovesSelection$1;\n/**\nFacet used to configure whether a given selecting click adds a\nnew range to the existing selection or replaces it entirely. The\ndefault behavior is to check `event.metaKey` on macOS, and\n`event.ctrlKey` elsewhere.\n*/\nEditorView.clickAddsSelectionRange = clickAddsSelectionRange;\n/**\nA facet that determines which [decorations](https://codemirror.net/6/docs/ref/#view.Decoration)\nare shown in the view. Decorations can be provided in two\nways—directly, or via a function that takes an editor view.\n\nOnly decoration sets provided directly are allowed to influence\nthe editor's vertical layout structure. The ones provided as\nfunctions are called _after_ the new viewport has been computed,\nand thus **must not** introduce block widgets or replacing\ndecorations that cover line breaks.\n\nIf you want decorated ranges to behave like atomic units for\ncursor motion and deletion purposes, also provide the range set\ncontaining the decorations to\n[`EditorView.atomicRanges`](https://codemirror.net/6/docs/ref/#view.EditorView^atomicRanges).\n*/\nEditorView.decorations = decorations;\n/**\nFacet that works much like\n[`decorations`](https://codemirror.net/6/docs/ref/#view.EditorView^decorations), but puts its\ninputs at the very bottom of the precedence stack, meaning mark\ndecorations provided here will only be split by other, partially\noverlapping \\`outerDecorations\\` ranges, and wrap around all\nregular decorations. Use this for mark elements that should, as\nmuch as possible, remain in one piece.\n*/\nEditorView.outerDecorations = outerDecorations;\n/**\nUsed to provide ranges that should be treated as atoms as far as\ncursor motion is concerned. This causes methods like\n[`moveByChar`](https://codemirror.net/6/docs/ref/#view.EditorView.moveByChar) and\n[`moveVertically`](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) (and the\ncommands built on top of them) to skip across such regions when\na selection endpoint would enter them. This does _not_ prevent\ndirect programmatic [selection\nupdates](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) from moving into such\nregions.\n*/\nEditorView.atomicRanges = atomicRanges;\n/**\nWhen range decorations add a `unicode-bidi: isolate` style, they\nshould also include a\n[`bidiIsolate`](https://codemirror.net/6/docs/ref/#view.MarkDecorationSpec.bidiIsolate) property\nin their decoration spec, and be exposed through this facet, so\nthat the editor can compute the proper text order. (Other values\nfor `unicode-bidi`, except of course `normal`, are not\nsupported.)\n*/\nEditorView.bidiIsolatedRanges = bidiIsolatedRanges;\n/**\nFacet that allows extensions to provide additional scroll\nmargins (space around the sides of the scrolling element that\nshould be considered invisible). This can be useful when the\nplugin introduces elements that cover part of that element (for\nexample a horizontally fixed gutter).\n*/\nEditorView.scrollMargins = scrollMargins;\n/**\nThis facet records whether a dark theme is active. The extension\nreturned by [`theme`](https://codemirror.net/6/docs/ref/#view.EditorView^theme) automatically\nincludes an instance of this when the `dark` option is set to\ntrue.\n*/\nEditorView.darkTheme = darkTheme;\n/**\nProvides a Content Security Policy nonce to use when creating\nthe style sheets for the editor. Holds the empty string when no\nnonce has been provided.\n*/\nEditorView.cspNonce = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({ combine: values => values.length ? values[0] : \"\" });\n/**\nFacet that provides additional DOM attributes for the editor's\neditable DOM element.\n*/\nEditorView.contentAttributes = contentAttributes;\n/**\nFacet that provides DOM attributes for the editor's outer\nelement.\n*/\nEditorView.editorAttributes = editorAttributes;\n/**\nAn extension that enables line wrapping in the editor (by\nsetting CSS `white-space` to `pre-wrap` in the content).\n*/\nEditorView.lineWrapping = /*@__PURE__*/EditorView.contentAttributes.of({ \"class\": \"cm-lineWrapping\" });\n/**\nState effect used to include screen reader announcements in a\ntransaction. These will be added to the DOM in a visually hidden\nelement with `aria-live=\"polite\"` set, and should be used to\ndescribe effects that are visually obvious but may not be\nnoticed by screen reader users (such as moving to the next\nsearch match).\n*/\nEditorView.announce = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\n// Maximum line length for which we compute accurate bidi info\nconst MaxBidiLine = 4096;\nconst BadMeasure = {};\nclass CachedOrder {\n constructor(from, to, dir, isolates, fresh, order) {\n this.from = from;\n this.to = to;\n this.dir = dir;\n this.isolates = isolates;\n this.fresh = fresh;\n this.order = order;\n }\n static update(cache, changes) {\n if (changes.empty && !cache.some(c => c.fresh))\n return cache;\n let result = [], lastDir = cache.length ? cache[cache.length - 1].dir : Direction.LTR;\n for (let i = Math.max(0, cache.length - 10); i < cache.length; i++) {\n let entry = cache[i];\n if (entry.dir == lastDir && !changes.touchesRange(entry.from, entry.to))\n result.push(new CachedOrder(changes.mapPos(entry.from, 1), changes.mapPos(entry.to, -1), entry.dir, entry.isolates, false, entry.order));\n }\n return result;\n }\n}\nfunction attrsFromFacet(view, facet, base) {\n for (let sources = view.state.facet(facet), i = sources.length - 1; i >= 0; i--) {\n let source = sources[i], value = typeof source == \"function\" ? source(view) : source;\n if (value)\n combineAttrs(value, base);\n }\n return base;\n}\n\nconst currentPlatform = browser.mac ? \"mac\" : browser.windows ? \"win\" : browser.linux ? \"linux\" : \"key\";\nfunction normalizeKeyName(name, platform) {\n const parts = name.split(/-(?!$)/);\n let result = parts[parts.length - 1];\n if (result == \"Space\")\n result = \" \";\n let alt, ctrl, shift, meta;\n for (let i = 0; i < parts.length - 1; ++i) {\n const mod = parts[i];\n if (/^(cmd|meta|m)$/i.test(mod))\n meta = true;\n else if (/^a(lt)?$/i.test(mod))\n alt = true;\n else if (/^(c|ctrl|control)$/i.test(mod))\n ctrl = true;\n else if (/^s(hift)?$/i.test(mod))\n shift = true;\n else if (/^mod$/i.test(mod)) {\n if (platform == \"mac\")\n meta = true;\n else\n ctrl = true;\n }\n else\n throw new Error(\"Unrecognized modifier name: \" + mod);\n }\n if (alt)\n result = \"Alt-\" + result;\n if (ctrl)\n result = \"Ctrl-\" + result;\n if (meta)\n result = \"Meta-\" + result;\n if (shift)\n result = \"Shift-\" + result;\n return result;\n}\nfunction modifiers(name, event, shift) {\n if (event.altKey)\n name = \"Alt-\" + name;\n if (event.ctrlKey)\n name = \"Ctrl-\" + name;\n if (event.metaKey)\n name = \"Meta-\" + name;\n if (shift !== false && event.shiftKey)\n name = \"Shift-\" + name;\n return name;\n}\nconst handleKeyEvents = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Prec.default(/*@__PURE__*/EditorView.domEventHandlers({\n keydown(event, view) {\n return runHandlers(getKeymap(view.state), event, view, \"editor\");\n }\n}));\n/**\nFacet used for registering keymaps.\n\nYou can add multiple keymaps to an editor. Their priorities\ndetermine their precedence (the ones specified early or with high\npriority get checked first). When a handler has returned `true`\nfor a given key, no further handlers are called.\n*/\nconst keymap = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({ enables: handleKeyEvents });\nconst Keymaps = /*@__PURE__*/new WeakMap();\n// This is hidden behind an indirection, rather than directly computed\n// by the facet, to keep internal types out of the facet's type.\nfunction getKeymap(state) {\n let bindings = state.facet(keymap);\n let map = Keymaps.get(bindings);\n if (!map)\n Keymaps.set(bindings, map = buildKeymap(bindings.reduce((a, b) => a.concat(b), [])));\n return map;\n}\n/**\nRun the key handlers registered for a given scope. The event\nobject should be a `\"keydown\"` event. Returns true if any of the\nhandlers handled it.\n*/\nfunction runScopeHandlers(view, event, scope) {\n return runHandlers(getKeymap(view.state), event, view, scope);\n}\nlet storedPrefix = null;\nconst PrefixTimeout = 4000;\nfunction buildKeymap(bindings, platform = currentPlatform) {\n let bound = Object.create(null);\n let isPrefix = Object.create(null);\n let checkPrefix = (name, is) => {\n let current = isPrefix[name];\n if (current == null)\n isPrefix[name] = is;\n else if (current != is)\n throw new Error(\"Key binding \" + name + \" is used both as a regular binding and as a multi-stroke prefix\");\n };\n let add = (scope, key, command, preventDefault, stopPropagation) => {\n var _a, _b;\n let scopeObj = bound[scope] || (bound[scope] = Object.create(null));\n let parts = key.split(/ (?!$)/).map(k => normalizeKeyName(k, platform));\n for (let i = 1; i < parts.length; i++) {\n let prefix = parts.slice(0, i).join(\" \");\n checkPrefix(prefix, true);\n if (!scopeObj[prefix])\n scopeObj[prefix] = {\n preventDefault: true,\n stopPropagation: false,\n run: [(view) => {\n let ourObj = storedPrefix = { view, prefix, scope };\n setTimeout(() => { if (storedPrefix == ourObj)\n storedPrefix = null; }, PrefixTimeout);\n return true;\n }]\n };\n }\n let full = parts.join(\" \");\n checkPrefix(full, false);\n let binding = scopeObj[full] || (scopeObj[full] = {\n preventDefault: false,\n stopPropagation: false,\n run: ((_b = (_a = scopeObj._any) === null || _a === void 0 ? void 0 : _a.run) === null || _b === void 0 ? void 0 : _b.slice()) || []\n });\n if (command)\n binding.run.push(command);\n if (preventDefault)\n binding.preventDefault = true;\n if (stopPropagation)\n binding.stopPropagation = true;\n };\n for (let b of bindings) {\n let scopes = b.scope ? b.scope.split(\" \") : [\"editor\"];\n if (b.any)\n for (let scope of scopes) {\n let scopeObj = bound[scope] || (bound[scope] = Object.create(null));\n if (!scopeObj._any)\n scopeObj._any = { preventDefault: false, stopPropagation: false, run: [] };\n let { any } = b;\n for (let key in scopeObj)\n scopeObj[key].run.push(view => any(view, currentKeyEvent));\n }\n let name = b[platform] || b.key;\n if (!name)\n continue;\n for (let scope of scopes) {\n add(scope, name, b.run, b.preventDefault, b.stopPropagation);\n if (b.shift)\n add(scope, \"Shift-\" + name, b.shift, b.preventDefault, b.stopPropagation);\n }\n }\n return bound;\n}\nlet currentKeyEvent = null;\nfunction runHandlers(map, event, view, scope) {\n currentKeyEvent = event;\n let name = (0,w3c_keyname__WEBPACK_IMPORTED_MODULE_1__.keyName)(event);\n let charCode = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.codePointAt)(name, 0), isChar = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.codePointSize)(charCode) == name.length && name != \" \";\n let prefix = \"\", handled = false, prevented = false, stopPropagation = false;\n if (storedPrefix && storedPrefix.view == view && storedPrefix.scope == scope) {\n prefix = storedPrefix.prefix + \" \";\n if (modifierCodes.indexOf(event.keyCode) < 0) {\n prevented = true;\n storedPrefix = null;\n }\n }\n let ran = new Set;\n let runFor = (binding) => {\n if (binding) {\n for (let cmd of binding.run)\n if (!ran.has(cmd)) {\n ran.add(cmd);\n if (cmd(view)) {\n if (binding.stopPropagation)\n stopPropagation = true;\n return true;\n }\n }\n if (binding.preventDefault) {\n if (binding.stopPropagation)\n stopPropagation = true;\n prevented = true;\n }\n }\n return false;\n };\n let scopeObj = map[scope], baseName, shiftName;\n if (scopeObj) {\n if (runFor(scopeObj[prefix + modifiers(name, event, !isChar)])) {\n handled = true;\n }\n else if (isChar && (event.altKey || event.metaKey || event.ctrlKey) &&\n // Ctrl-Alt may be used for AltGr on Windows\n !(browser.windows && event.ctrlKey && event.altKey) &&\n (baseName = w3c_keyname__WEBPACK_IMPORTED_MODULE_1__.base[event.keyCode]) && baseName != name) {\n if (runFor(scopeObj[prefix + modifiers(baseName, event, true)])) {\n handled = true;\n }\n else if (event.shiftKey && (shiftName = w3c_keyname__WEBPACK_IMPORTED_MODULE_1__.shift[event.keyCode]) != name && shiftName != baseName &&\n runFor(scopeObj[prefix + modifiers(shiftName, event, false)])) {\n handled = true;\n }\n }\n else if (isChar && event.shiftKey &&\n runFor(scopeObj[prefix + modifiers(name, event, true)])) {\n handled = true;\n }\n if (!handled && runFor(scopeObj._any))\n handled = true;\n }\n if (prevented)\n handled = true;\n if (handled && stopPropagation)\n event.stopPropagation();\n currentKeyEvent = null;\n return handled;\n}\n\n/**\nImplementation of [`LayerMarker`](https://codemirror.net/6/docs/ref/#view.LayerMarker) that creates\na rectangle at a given set of coordinates.\n*/\nclass RectangleMarker {\n /**\n Create a marker with the given class and dimensions. If `width`\n is null, the DOM element will get no width style.\n */\n constructor(className, \n /**\n The left position of the marker (in pixels, document-relative).\n */\n left, \n /**\n The top position of the marker.\n */\n top, \n /**\n The width of the marker, or null if it shouldn't get a width assigned.\n */\n width, \n /**\n The height of the marker.\n */\n height) {\n this.className = className;\n this.left = left;\n this.top = top;\n this.width = width;\n this.height = height;\n }\n draw() {\n let elt = document.createElement(\"div\");\n elt.className = this.className;\n this.adjust(elt);\n return elt;\n }\n update(elt, prev) {\n if (prev.className != this.className)\n return false;\n this.adjust(elt);\n return true;\n }\n adjust(elt) {\n elt.style.left = this.left + \"px\";\n elt.style.top = this.top + \"px\";\n if (this.width != null)\n elt.style.width = this.width + \"px\";\n elt.style.height = this.height + \"px\";\n }\n eq(p) {\n return this.left == p.left && this.top == p.top && this.width == p.width && this.height == p.height &&\n this.className == p.className;\n }\n /**\n Create a set of rectangles for the given selection range,\n assigning them theclass`className`. Will create a single\n rectangle for empty ranges, and a set of selection-style\n rectangles covering the range's content (in a bidi-aware\n way) for non-empty ones.\n */\n static forRange(view, className, range) {\n if (range.empty) {\n let pos = view.coordsAtPos(range.head, range.assoc || 1);\n if (!pos)\n return [];\n let base = getBase(view);\n return [new RectangleMarker(className, pos.left - base.left, pos.top - base.top, null, pos.bottom - pos.top)];\n }\n else {\n return rectanglesForRange(view, className, range);\n }\n }\n}\nfunction getBase(view) {\n let rect = view.scrollDOM.getBoundingClientRect();\n let left = view.textDirection == Direction.LTR ? rect.left : rect.right - view.scrollDOM.clientWidth * view.scaleX;\n return { left: left - view.scrollDOM.scrollLeft * view.scaleX, top: rect.top - view.scrollDOM.scrollTop * view.scaleY };\n}\nfunction wrappedLine(view, pos, side, inside) {\n let coords = view.coordsAtPos(pos, side * 2);\n if (!coords)\n return inside;\n let editorRect = view.dom.getBoundingClientRect();\n let y = (coords.top + coords.bottom) / 2;\n let left = view.posAtCoords({ x: editorRect.left + 1, y });\n let right = view.posAtCoords({ x: editorRect.right - 1, y });\n if (left == null || right == null)\n return inside;\n return { from: Math.max(inside.from, Math.min(left, right)), to: Math.min(inside.to, Math.max(left, right)) };\n}\nfunction rectanglesForRange(view, className, range) {\n if (range.to <= view.viewport.from || range.from >= view.viewport.to)\n return [];\n let from = Math.max(range.from, view.viewport.from), to = Math.min(range.to, view.viewport.to);\n let ltr = view.textDirection == Direction.LTR;\n let content = view.contentDOM, contentRect = content.getBoundingClientRect(), base = getBase(view);\n let lineElt = content.querySelector(\".cm-line\"), lineStyle = lineElt && window.getComputedStyle(lineElt);\n let leftSide = contentRect.left +\n (lineStyle ? parseInt(lineStyle.paddingLeft) + Math.min(0, parseInt(lineStyle.textIndent)) : 0);\n let rightSide = contentRect.right - (lineStyle ? parseInt(lineStyle.paddingRight) : 0);\n let startBlock = blockAt(view, from), endBlock = blockAt(view, to);\n let visualStart = startBlock.type == BlockType.Text ? startBlock : null;\n let visualEnd = endBlock.type == BlockType.Text ? endBlock : null;\n if (visualStart && (view.lineWrapping || startBlock.widgetLineBreaks))\n visualStart = wrappedLine(view, from, 1, visualStart);\n if (visualEnd && (view.lineWrapping || endBlock.widgetLineBreaks))\n visualEnd = wrappedLine(view, to, -1, visualEnd);\n if (visualStart && visualEnd && visualStart.from == visualEnd.from && visualStart.to == visualEnd.to) {\n return pieces(drawForLine(range.from, range.to, visualStart));\n }\n else {\n let top = visualStart ? drawForLine(range.from, null, visualStart) : drawForWidget(startBlock, false);\n let bottom = visualEnd ? drawForLine(null, range.to, visualEnd) : drawForWidget(endBlock, true);\n let between = [];\n if ((visualStart || startBlock).to < (visualEnd || endBlock).from - (visualStart && visualEnd ? 1 : 0) ||\n startBlock.widgetLineBreaks > 1 && top.bottom + view.defaultLineHeight / 2 < bottom.top)\n between.push(piece(leftSide, top.bottom, rightSide, bottom.top));\n else if (top.bottom < bottom.top && view.elementAtHeight((top.bottom + bottom.top) / 2).type == BlockType.Text)\n top.bottom = bottom.top = (top.bottom + bottom.top) / 2;\n return pieces(top).concat(between).concat(pieces(bottom));\n }\n function piece(left, top, right, bottom) {\n return new RectangleMarker(className, left - base.left, top - base.top - 0.01 /* C.Epsilon */, right - left, bottom - top + 0.01 /* C.Epsilon */);\n }\n function pieces({ top, bottom, horizontal }) {\n let pieces = [];\n for (let i = 0; i < horizontal.length; i += 2)\n pieces.push(piece(horizontal[i], top, horizontal[i + 1], bottom));\n return pieces;\n }\n // Gets passed from/to in line-local positions\n function drawForLine(from, to, line) {\n let top = 1e9, bottom = -1e9, horizontal = [];\n function addSpan(from, fromOpen, to, toOpen, dir) {\n // Passing 2/-2 is a kludge to force the view to return\n // coordinates on the proper side of block widgets, since\n // normalizing the side there, though appropriate for most\n // coordsAtPos queries, would break selection drawing.\n let fromCoords = view.coordsAtPos(from, (from == line.to ? -2 : 2));\n let toCoords = view.coordsAtPos(to, (to == line.from ? 2 : -2));\n if (!fromCoords || !toCoords)\n return;\n top = Math.min(fromCoords.top, toCoords.top, top);\n bottom = Math.max(fromCoords.bottom, toCoords.bottom, bottom);\n if (dir == Direction.LTR)\n horizontal.push(ltr && fromOpen ? leftSide : fromCoords.left, ltr && toOpen ? rightSide : toCoords.right);\n else\n horizontal.push(!ltr && toOpen ? leftSide : toCoords.left, !ltr && fromOpen ? rightSide : fromCoords.right);\n }\n let start = from !== null && from !== void 0 ? from : line.from, end = to !== null && to !== void 0 ? to : line.to;\n // Split the range by visible range and document line\n for (let r of view.visibleRanges)\n if (r.to > start && r.from < end) {\n for (let pos = Math.max(r.from, start), endPos = Math.min(r.to, end);;) {\n let docLine = view.state.doc.lineAt(pos);\n for (let span of view.bidiSpans(docLine)) {\n let spanFrom = span.from + docLine.from, spanTo = span.to + docLine.from;\n if (spanFrom >= endPos)\n break;\n if (spanTo > pos)\n addSpan(Math.max(spanFrom, pos), from == null && spanFrom <= start, Math.min(spanTo, endPos), to == null && spanTo >= end, span.dir);\n }\n pos = docLine.to + 1;\n if (pos >= endPos)\n break;\n }\n }\n if (horizontal.length == 0)\n addSpan(start, from == null, end, to == null, view.textDirection);\n return { top, bottom, horizontal };\n }\n function drawForWidget(block, top) {\n let y = contentRect.top + (top ? block.top : block.bottom);\n return { top: y, bottom: y, horizontal: [] };\n }\n}\nfunction sameMarker(a, b) {\n return a.constructor == b.constructor && a.eq(b);\n}\nclass LayerView {\n constructor(view, layer) {\n this.view = view;\n this.layer = layer;\n this.drawn = [];\n this.scaleX = 1;\n this.scaleY = 1;\n this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) };\n this.dom = view.scrollDOM.appendChild(document.createElement(\"div\"));\n this.dom.classList.add(\"cm-layer\");\n if (layer.above)\n this.dom.classList.add(\"cm-layer-above\");\n if (layer.class)\n this.dom.classList.add(layer.class);\n this.scale();\n this.dom.setAttribute(\"aria-hidden\", \"true\");\n this.setOrder(view.state);\n view.requestMeasure(this.measureReq);\n if (layer.mount)\n layer.mount(this.dom, view);\n }\n update(update) {\n if (update.startState.facet(layerOrder) != update.state.facet(layerOrder))\n this.setOrder(update.state);\n if (this.layer.update(update, this.dom) || update.geometryChanged) {\n this.scale();\n update.view.requestMeasure(this.measureReq);\n }\n }\n docViewUpdate(view) {\n if (this.layer.updateOnDocViewUpdate !== false)\n view.requestMeasure(this.measureReq);\n }\n setOrder(state) {\n let pos = 0, order = state.facet(layerOrder);\n while (pos < order.length && order[pos] != this.layer)\n pos++;\n this.dom.style.zIndex = String((this.layer.above ? 150 : -1) - pos);\n }\n measure() {\n return this.layer.markers(this.view);\n }\n scale() {\n let { scaleX, scaleY } = this.view;\n if (scaleX != this.scaleX || scaleY != this.scaleY) {\n this.scaleX = scaleX;\n this.scaleY = scaleY;\n this.dom.style.transform = `scale(${1 / scaleX}, ${1 / scaleY})`;\n }\n }\n draw(markers) {\n if (markers.length != this.drawn.length || markers.some((p, i) => !sameMarker(p, this.drawn[i]))) {\n let old = this.dom.firstChild, oldI = 0;\n for (let marker of markers) {\n if (marker.update && old && marker.constructor && this.drawn[oldI].constructor &&\n marker.update(old, this.drawn[oldI])) {\n old = old.nextSibling;\n oldI++;\n }\n else {\n this.dom.insertBefore(marker.draw(), old);\n }\n }\n while (old) {\n let next = old.nextSibling;\n old.remove();\n old = next;\n }\n this.drawn = markers;\n }\n }\n destroy() {\n if (this.layer.destroy)\n this.layer.destroy(this.dom, this.view);\n this.dom.remove();\n }\n}\nconst layerOrder = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\n/**\nDefine a layer.\n*/\nfunction layer(config) {\n return [\n ViewPlugin.define(v => new LayerView(v, config)),\n layerOrder.of(config)\n ];\n}\n\nconst CanHidePrimary = !browser.ios; // FIXME test IE\nconst selectionConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine(configs) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.combineConfig)(configs, {\n cursorBlinkRate: 1200,\n drawRangeCursor: true\n }, {\n cursorBlinkRate: (a, b) => Math.min(a, b),\n drawRangeCursor: (a, b) => a || b\n });\n }\n});\n/**\nReturns an extension that hides the browser's native selection and\ncursor, replacing the selection with a background behind the text\n(with the `cm-selectionBackground` class), and the\ncursors with elements overlaid over the code (using\n`cm-cursor-primary` and `cm-cursor-secondary`).\n\nThis allows the editor to display secondary selection ranges, and\ntends to produce a type of selection more in line with that users\nexpect in a text editor (the native selection styling will often\nleave gaps between lines and won't fill the horizontal space after\na line when the selection continues past it).\n\nIt does have a performance cost, in that it requires an extra DOM\nlayout cycle for many updates (the selection is drawn based on DOM\nlayout information that's only available after laying out the\ncontent).\n*/\nfunction drawSelection(config = {}) {\n return [\n selectionConfig.of(config),\n cursorLayer,\n selectionLayer,\n hideNativeSelection,\n nativeSelectionHidden.of(true)\n ];\n}\n/**\nRetrieve the [`drawSelection`](https://codemirror.net/6/docs/ref/#view.drawSelection) configuration\nfor this state. (Note that this will return a set of defaults even\nif `drawSelection` isn't enabled.)\n*/\nfunction getDrawSelectionConfig(state) {\n return state.facet(selectionConfig);\n}\nfunction configChanged(update) {\n return update.startState.facet(selectionConfig) != update.state.facet(selectionConfig);\n}\nconst cursorLayer = /*@__PURE__*/layer({\n above: true,\n markers(view) {\n let { state } = view, conf = state.facet(selectionConfig);\n let cursors = [];\n for (let r of state.selection.ranges) {\n let prim = r == state.selection.main;\n if (r.empty ? !prim || CanHidePrimary : conf.drawRangeCursor) {\n let className = prim ? \"cm-cursor cm-cursor-primary\" : \"cm-cursor cm-cursor-secondary\";\n let cursor = r.empty ? r : _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(r.head, r.head > r.anchor ? -1 : 1);\n for (let piece of RectangleMarker.forRange(view, className, cursor))\n cursors.push(piece);\n }\n }\n return cursors;\n },\n update(update, dom) {\n if (update.transactions.some(tr => tr.selection))\n dom.style.animationName = dom.style.animationName == \"cm-blink\" ? \"cm-blink2\" : \"cm-blink\";\n let confChange = configChanged(update);\n if (confChange)\n setBlinkRate(update.state, dom);\n return update.docChanged || update.selectionSet || confChange;\n },\n mount(dom, view) {\n setBlinkRate(view.state, dom);\n },\n class: \"cm-cursorLayer\"\n});\nfunction setBlinkRate(state, dom) {\n dom.style.animationDuration = state.facet(selectionConfig).cursorBlinkRate + \"ms\";\n}\nconst selectionLayer = /*@__PURE__*/layer({\n above: false,\n markers(view) {\n return view.state.selection.ranges.map(r => r.empty ? [] : RectangleMarker.forRange(view, \"cm-selectionBackground\", r))\n .reduce((a, b) => a.concat(b));\n },\n update(update, dom) {\n return update.docChanged || update.selectionSet || update.viewportChanged || configChanged(update);\n },\n class: \"cm-selectionLayer\"\n});\nconst themeSpec = {\n \".cm-line\": {\n \"& ::selection, &::selection\": { backgroundColor: \"transparent !important\" },\n },\n \".cm-content\": {\n \"& :focus\": {\n caretColor: \"initial !important\",\n \"&::selection, & ::selection\": {\n backgroundColor: \"Highlight !important\"\n }\n }\n }\n};\nif (CanHidePrimary)\n themeSpec[\".cm-line\"].caretColor = themeSpec[\".cm-content\"].caretColor = \"transparent !important\";\nconst hideNativeSelection = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Prec.highest(/*@__PURE__*/EditorView.theme(themeSpec));\n\nconst setDropCursorPos = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define({\n map(pos, mapping) { return pos == null ? null : mapping.mapPos(pos); }\n});\nconst dropCursorPos = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateField.define({\n create() { return null; },\n update(pos, tr) {\n if (pos != null)\n pos = tr.changes.mapPos(pos);\n return tr.effects.reduce((pos, e) => e.is(setDropCursorPos) ? e.value : pos, pos);\n }\n});\nconst drawDropCursor = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.cursor = null;\n this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) };\n }\n update(update) {\n var _a;\n let cursorPos = update.state.field(dropCursorPos);\n if (cursorPos == null) {\n if (this.cursor != null) {\n (_a = this.cursor) === null || _a === void 0 ? void 0 : _a.remove();\n this.cursor = null;\n }\n }\n else {\n if (!this.cursor) {\n this.cursor = this.view.scrollDOM.appendChild(document.createElement(\"div\"));\n this.cursor.className = \"cm-dropCursor\";\n }\n if (update.startState.field(dropCursorPos) != cursorPos || update.docChanged || update.geometryChanged)\n this.view.requestMeasure(this.measureReq);\n }\n }\n readPos() {\n let { view } = this;\n let pos = view.state.field(dropCursorPos);\n let rect = pos != null && view.coordsAtPos(pos);\n if (!rect)\n return null;\n let outer = view.scrollDOM.getBoundingClientRect();\n return {\n left: rect.left - outer.left + view.scrollDOM.scrollLeft * view.scaleX,\n top: rect.top - outer.top + view.scrollDOM.scrollTop * view.scaleY,\n height: rect.bottom - rect.top\n };\n }\n drawCursor(pos) {\n if (this.cursor) {\n let { scaleX, scaleY } = this.view;\n if (pos) {\n this.cursor.style.left = pos.left / scaleX + \"px\";\n this.cursor.style.top = pos.top / scaleY + \"px\";\n this.cursor.style.height = pos.height / scaleY + \"px\";\n }\n else {\n this.cursor.style.left = \"-100000px\";\n }\n }\n }\n destroy() {\n if (this.cursor)\n this.cursor.remove();\n }\n setDropPos(pos) {\n if (this.view.state.field(dropCursorPos) != pos)\n this.view.dispatch({ effects: setDropCursorPos.of(pos) });\n }\n}, {\n eventObservers: {\n dragover(event) {\n this.setDropPos(this.view.posAtCoords({ x: event.clientX, y: event.clientY }));\n },\n dragleave(event) {\n if (event.target == this.view.contentDOM || !this.view.contentDOM.contains(event.relatedTarget))\n this.setDropPos(null);\n },\n dragend() {\n this.setDropPos(null);\n },\n drop() {\n this.setDropPos(null);\n }\n }\n});\n/**\nDraws a cursor at the current drop position when something is\ndragged over the editor.\n*/\nfunction dropCursor() {\n return [dropCursorPos, drawDropCursor];\n}\n\nfunction iterMatches(doc, re, from, to, f) {\n re.lastIndex = 0;\n for (let cursor = doc.iterRange(from, to), pos = from, m; !cursor.next().done; pos += cursor.value.length) {\n if (!cursor.lineBreak)\n while (m = re.exec(cursor.value))\n f(pos + m.index, m);\n }\n}\nfunction matchRanges(view, maxLength) {\n let visible = view.visibleRanges;\n if (visible.length == 1 && visible[0].from == view.viewport.from &&\n visible[0].to == view.viewport.to)\n return visible;\n let result = [];\n for (let { from, to } of visible) {\n from = Math.max(view.state.doc.lineAt(from).from, from - maxLength);\n to = Math.min(view.state.doc.lineAt(to).to, to + maxLength);\n if (result.length && result[result.length - 1].to >= from)\n result[result.length - 1].to = to;\n else\n result.push({ from, to });\n }\n return result;\n}\n/**\nHelper class used to make it easier to maintain decorations on\nvisible code that matches a given regular expression. To be used\nin a [view plugin](https://codemirror.net/6/docs/ref/#view.ViewPlugin). Instances of this object\nrepresent a matching configuration.\n*/\nclass MatchDecorator {\n /**\n Create a decorator.\n */\n constructor(config) {\n const { regexp, decoration, decorate, boundary, maxLength = 1000 } = config;\n if (!regexp.global)\n throw new RangeError(\"The regular expression given to MatchDecorator should have its 'g' flag set\");\n this.regexp = regexp;\n if (decorate) {\n this.addMatch = (match, view, from, add) => decorate(add, from, from + match[0].length, match, view);\n }\n else if (typeof decoration == \"function\") {\n this.addMatch = (match, view, from, add) => {\n let deco = decoration(match, view, from);\n if (deco)\n add(from, from + match[0].length, deco);\n };\n }\n else if (decoration) {\n this.addMatch = (match, _view, from, add) => add(from, from + match[0].length, decoration);\n }\n else {\n throw new RangeError(\"Either 'decorate' or 'decoration' should be provided to MatchDecorator\");\n }\n this.boundary = boundary;\n this.maxLength = maxLength;\n }\n /**\n Compute the full set of decorations for matches in the given\n view's viewport. You'll want to call this when initializing your\n plugin.\n */\n createDeco(view) {\n let build = new _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSetBuilder(), add = build.add.bind(build);\n for (let { from, to } of matchRanges(view, this.maxLength))\n iterMatches(view.state.doc, this.regexp, from, to, (from, m) => this.addMatch(m, view, from, add));\n return build.finish();\n }\n /**\n Update a set of decorations for a view update. `deco` _must_ be\n the set of decorations produced by _this_ `MatchDecorator` for\n the view state before the update.\n */\n updateDeco(update, deco) {\n let changeFrom = 1e9, changeTo = -1;\n if (update.docChanged)\n update.changes.iterChanges((_f, _t, from, to) => {\n if (to > update.view.viewport.from && from < update.view.viewport.to) {\n changeFrom = Math.min(from, changeFrom);\n changeTo = Math.max(to, changeTo);\n }\n });\n if (update.viewportChanged || changeTo - changeFrom > 1000)\n return this.createDeco(update.view);\n if (changeTo > -1)\n return this.updateRange(update.view, deco.map(update.changes), changeFrom, changeTo);\n return deco;\n }\n updateRange(view, deco, updateFrom, updateTo) {\n for (let r of view.visibleRanges) {\n let from = Math.max(r.from, updateFrom), to = Math.min(r.to, updateTo);\n if (to > from) {\n let fromLine = view.state.doc.lineAt(from), toLine = fromLine.to < to ? view.state.doc.lineAt(to) : fromLine;\n let start = Math.max(r.from, fromLine.from), end = Math.min(r.to, toLine.to);\n if (this.boundary) {\n for (; from > fromLine.from; from--)\n if (this.boundary.test(fromLine.text[from - 1 - fromLine.from])) {\n start = from;\n break;\n }\n for (; to < toLine.to; to++)\n if (this.boundary.test(toLine.text[to - toLine.from])) {\n end = to;\n break;\n }\n }\n let ranges = [], m;\n let add = (from, to, deco) => ranges.push(deco.range(from, to));\n if (fromLine == toLine) {\n this.regexp.lastIndex = start - fromLine.from;\n while ((m = this.regexp.exec(fromLine.text)) && m.index < end - fromLine.from)\n this.addMatch(m, view, m.index + fromLine.from, add);\n }\n else {\n iterMatches(view.state.doc, this.regexp, start, end, (from, m) => this.addMatch(m, view, from, add));\n }\n deco = deco.update({ filterFrom: start, filterTo: end, filter: (from, to) => from < start || to > end, add: ranges });\n }\n }\n return deco;\n }\n}\n\nconst UnicodeRegexpSupport = /x/.unicode != null ? \"gu\" : \"g\";\nconst Specials = /*@__PURE__*/new RegExp(\"[\\u0000-\\u0008\\u000a-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b\\u200e\\u200f\\u2028\\u2029\\u202d\\u202e\\u2066\\u2067\\u2069\\ufeff\\ufff9-\\ufffc]\", UnicodeRegexpSupport);\nconst Names = {\n 0: \"null\",\n 7: \"bell\",\n 8: \"backspace\",\n 10: \"newline\",\n 11: \"vertical tab\",\n 13: \"carriage return\",\n 27: \"escape\",\n 8203: \"zero width space\",\n 8204: \"zero width non-joiner\",\n 8205: \"zero width joiner\",\n 8206: \"left-to-right mark\",\n 8207: \"right-to-left mark\",\n 8232: \"line separator\",\n 8237: \"left-to-right override\",\n 8238: \"right-to-left override\",\n 8294: \"left-to-right isolate\",\n 8295: \"right-to-left isolate\",\n 8297: \"pop directional isolate\",\n 8233: \"paragraph separator\",\n 65279: \"zero width no-break space\",\n 65532: \"object replacement\"\n};\nlet _supportsTabSize = null;\nfunction supportsTabSize() {\n var _a;\n if (_supportsTabSize == null && typeof document != \"undefined\" && document.body) {\n let styles = document.body.style;\n _supportsTabSize = ((_a = styles.tabSize) !== null && _a !== void 0 ? _a : styles.MozTabSize) != null;\n }\n return _supportsTabSize || false;\n}\nconst specialCharConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine(configs) {\n let config = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.combineConfig)(configs, {\n render: null,\n specialChars: Specials,\n addSpecialChars: null\n });\n if (config.replaceTabs = !supportsTabSize())\n config.specialChars = new RegExp(\"\\t|\" + config.specialChars.source, UnicodeRegexpSupport);\n if (config.addSpecialChars)\n config.specialChars = new RegExp(config.specialChars.source + \"|\" + config.addSpecialChars.source, UnicodeRegexpSupport);\n return config;\n }\n});\n/**\nReturns an extension that installs highlighting of special\ncharacters.\n*/\nfunction highlightSpecialChars(\n/**\nConfiguration options.\n*/\nconfig = {}) {\n return [specialCharConfig.of(config), specialCharPlugin()];\n}\nlet _plugin = null;\nfunction specialCharPlugin() {\n return _plugin || (_plugin = ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.decorations = Decoration.none;\n this.decorationCache = Object.create(null);\n this.decorator = this.makeDecorator(view.state.facet(specialCharConfig));\n this.decorations = this.decorator.createDeco(view);\n }\n makeDecorator(conf) {\n return new MatchDecorator({\n regexp: conf.specialChars,\n decoration: (m, view, pos) => {\n let { doc } = view.state;\n let code = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.codePointAt)(m[0], 0);\n if (code == 9) {\n let line = doc.lineAt(pos);\n let size = view.state.tabSize, col = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.countColumn)(line.text, size, pos - line.from);\n return Decoration.replace({\n widget: new TabWidget((size - (col % size)) * this.view.defaultCharacterWidth / this.view.scaleX)\n });\n }\n return this.decorationCache[code] ||\n (this.decorationCache[code] = Decoration.replace({ widget: new SpecialCharWidget(conf, code) }));\n },\n boundary: conf.replaceTabs ? undefined : /[^]/\n });\n }\n update(update) {\n let conf = update.state.facet(specialCharConfig);\n if (update.startState.facet(specialCharConfig) != conf) {\n this.decorator = this.makeDecorator(conf);\n this.decorations = this.decorator.createDeco(update.view);\n }\n else {\n this.decorations = this.decorator.updateDeco(update, this.decorations);\n }\n }\n }, {\n decorations: v => v.decorations\n }));\n}\nconst DefaultPlaceholder = \"\\u2022\";\n// Assigns placeholder characters from the Control Pictures block to\n// ASCII control characters\nfunction placeholder$1(code) {\n if (code >= 32)\n return DefaultPlaceholder;\n if (code == 10)\n return \"\\u2424\";\n return String.fromCharCode(9216 + code);\n}\nclass SpecialCharWidget extends WidgetType {\n constructor(options, code) {\n super();\n this.options = options;\n this.code = code;\n }\n eq(other) { return other.code == this.code; }\n toDOM(view) {\n let ph = placeholder$1(this.code);\n let desc = view.state.phrase(\"Control character\") + \" \" + (Names[this.code] || \"0x\" + this.code.toString(16));\n let custom = this.options.render && this.options.render(this.code, desc, ph);\n if (custom)\n return custom;\n let span = document.createElement(\"span\");\n span.textContent = ph;\n span.title = desc;\n span.setAttribute(\"aria-label\", desc);\n span.className = \"cm-specialChar\";\n return span;\n }\n ignoreEvent() { return false; }\n}\nclass TabWidget extends WidgetType {\n constructor(width) {\n super();\n this.width = width;\n }\n eq(other) { return other.width == this.width; }\n toDOM() {\n let span = document.createElement(\"span\");\n span.textContent = \"\\t\";\n span.className = \"cm-tab\";\n span.style.width = this.width + \"px\";\n return span;\n }\n ignoreEvent() { return false; }\n}\n\nconst plugin = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor() {\n this.height = 1000;\n this.attrs = { style: \"padding-bottom: 1000px\" };\n }\n update(update) {\n let { view } = update;\n let height = view.viewState.editorHeight -\n view.defaultLineHeight - view.documentPadding.top - 0.5;\n if (height >= 0 && height != this.height) {\n this.height = height;\n this.attrs = { style: `padding-bottom: ${height}px` };\n }\n }\n});\n/**\nReturns an extension that makes sure the content has a bottom\nmargin equivalent to the height of the editor, minus one line\nheight, so that every line in the document can be scrolled to the\ntop of the editor.\n\nThis is only meaningful when the editor is scrollable, and should\nnot be enabled in editors that take the size of their content.\n*/\nfunction scrollPastEnd() {\n return [plugin, contentAttributes.of(view => { var _a; return ((_a = view.plugin(plugin)) === null || _a === void 0 ? void 0 : _a.attrs) || null; })];\n}\n\n/**\nMark lines that have a cursor on them with the `\"cm-activeLine\"`\nDOM class.\n*/\nfunction highlightActiveLine() {\n return activeLineHighlighter;\n}\nconst lineDeco = /*@__PURE__*/Decoration.line({ class: \"cm-activeLine\" });\nconst activeLineHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.decorations = this.getDeco(view);\n }\n update(update) {\n if (update.docChanged || update.selectionSet)\n this.decorations = this.getDeco(update.view);\n }\n getDeco(view) {\n let lastLineStart = -1, deco = [];\n for (let r of view.state.selection.ranges) {\n let line = view.lineBlockAt(r.head);\n if (line.from > lastLineStart) {\n deco.push(lineDeco.range(line.from));\n lastLineStart = line.from;\n }\n }\n return Decoration.set(deco);\n }\n}, {\n decorations: v => v.decorations\n});\n\nclass Placeholder extends WidgetType {\n constructor(content) {\n super();\n this.content = content;\n }\n toDOM() {\n let wrap = document.createElement(\"span\");\n wrap.className = \"cm-placeholder\";\n wrap.style.pointerEvents = \"none\";\n wrap.appendChild(typeof this.content == \"string\" ? document.createTextNode(this.content) : this.content);\n if (typeof this.content == \"string\")\n wrap.setAttribute(\"aria-label\", \"placeholder \" + this.content);\n else\n wrap.setAttribute(\"aria-hidden\", \"true\");\n return wrap;\n }\n coordsAt(dom) {\n let rects = dom.firstChild ? clientRectsFor(dom.firstChild) : [];\n if (!rects.length)\n return null;\n let style = window.getComputedStyle(dom.parentNode);\n let rect = flattenRect(rects[0], style.direction != \"rtl\");\n let lineHeight = parseInt(style.lineHeight);\n if (rect.bottom - rect.top > lineHeight * 1.5)\n return { left: rect.left, right: rect.right, top: rect.top, bottom: rect.top + lineHeight };\n return rect;\n }\n ignoreEvent() { return false; }\n}\n/**\nExtension that enables a placeholder—a piece of example content\nto show when the editor is empty.\n*/\nfunction placeholder(content) {\n return ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.placeholder = content\n ? Decoration.set([Decoration.widget({ widget: new Placeholder(content), side: 1 }).range(0)])\n : Decoration.none;\n }\n get decorations() { return this.view.state.doc.length ? Decoration.none : this.placeholder; }\n }, { decorations: v => v.decorations });\n}\n\n// Don't compute precise column positions for line offsets above this\n// (since it could get expensive). Assume offset==column for them.\nconst MaxOff = 2000;\nfunction rectangleFor(state, a, b) {\n let startLine = Math.min(a.line, b.line), endLine = Math.max(a.line, b.line);\n let ranges = [];\n if (a.off > MaxOff || b.off > MaxOff || a.col < 0 || b.col < 0) {\n let startOff = Math.min(a.off, b.off), endOff = Math.max(a.off, b.off);\n for (let i = startLine; i <= endLine; i++) {\n let line = state.doc.line(i);\n if (line.length <= endOff)\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(line.from + startOff, line.to + endOff));\n }\n }\n else {\n let startCol = Math.min(a.col, b.col), endCol = Math.max(a.col, b.col);\n for (let i = startLine; i <= endLine; i++) {\n let line = state.doc.line(i);\n let start = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findColumn)(line.text, startCol, state.tabSize, true);\n if (start < 0) {\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.cursor(line.to));\n }\n else {\n let end = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.findColumn)(line.text, endCol, state.tabSize);\n ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.range(line.from + start, line.from + end));\n }\n }\n }\n return ranges;\n}\nfunction absoluteColumn(view, x) {\n let ref = view.coordsAtPos(view.viewport.from);\n return ref ? Math.round(Math.abs((ref.left - x) / view.defaultCharacterWidth)) : -1;\n}\nfunction getPos(view, event) {\n let offset = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);\n let line = view.state.doc.lineAt(offset), off = offset - line.from;\n let col = off > MaxOff ? -1\n : off == line.length ? absoluteColumn(view, event.clientX)\n : (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.countColumn)(line.text, view.state.tabSize, offset - line.from);\n return { line: line.number, col, off };\n}\nfunction rectangleSelectionStyle(view, event) {\n let start = getPos(view, event), startSel = view.state.selection;\n if (!start)\n return null;\n return {\n update(update) {\n if (update.docChanged) {\n let newStart = update.changes.mapPos(update.startState.doc.line(start.line).from);\n let newLine = update.state.doc.lineAt(newStart);\n start = { line: newLine.number, col: start.col, off: Math.min(start.off, newLine.length) };\n startSel = startSel.map(update.changes);\n }\n },\n get(event, _extend, multiple) {\n let cur = getPos(view, event);\n if (!cur)\n return startSel;\n let ranges = rectangleFor(view.state, start, cur);\n if (!ranges.length)\n return startSel;\n if (multiple)\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.create(ranges.concat(startSel.ranges));\n else\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.EditorSelection.create(ranges);\n }\n };\n}\n/**\nCreate an extension that enables rectangular selections. By\ndefault, it will react to left mouse drag with the Alt key held\ndown. When such a selection occurs, the text within the rectangle\nthat was dragged over will be selected, as one selection\n[range](https://codemirror.net/6/docs/ref/#state.SelectionRange) per line.\n*/\nfunction rectangularSelection(options) {\n let filter = (options === null || options === void 0 ? void 0 : options.eventFilter) || (e => e.altKey && e.button == 0);\n return EditorView.mouseSelectionStyle.of((view, event) => filter(event) ? rectangleSelectionStyle(view, event) : null);\n}\nconst keys = {\n Alt: [18, e => !!e.altKey],\n Control: [17, e => !!e.ctrlKey],\n Shift: [16, e => !!e.shiftKey],\n Meta: [91, e => !!e.metaKey]\n};\nconst showCrosshair = { style: \"cursor: crosshair\" };\n/**\nReturns an extension that turns the pointer cursor into a\ncrosshair when a given modifier key, defaulting to Alt, is held\ndown. Can serve as a visual hint that rectangular selection is\ngoing to happen when paired with\n[`rectangularSelection`](https://codemirror.net/6/docs/ref/#view.rectangularSelection).\n*/\nfunction crosshairCursor(options = {}) {\n let [code, getter] = keys[options.key || \"Alt\"];\n let plugin = ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.isDown = false;\n }\n set(isDown) {\n if (this.isDown != isDown) {\n this.isDown = isDown;\n this.view.update([]);\n }\n }\n }, {\n eventObservers: {\n keydown(e) {\n this.set(e.keyCode == code || getter(e));\n },\n keyup(e) {\n if (e.keyCode == code || !getter(e))\n this.set(false);\n },\n mousemove(e) {\n this.set(getter(e));\n }\n }\n });\n return [\n plugin,\n EditorView.contentAttributes.of(view => { var _a; return ((_a = view.plugin(plugin)) === null || _a === void 0 ? void 0 : _a.isDown) ? showCrosshair : null; })\n ];\n}\n\nconst Outside = \"-10000px\";\nclass TooltipViewManager {\n constructor(view, facet, createTooltipView, removeTooltipView) {\n this.facet = facet;\n this.createTooltipView = createTooltipView;\n this.removeTooltipView = removeTooltipView;\n this.input = view.state.facet(facet);\n this.tooltips = this.input.filter(t => t);\n let prev = null;\n this.tooltipViews = this.tooltips.map(t => prev = createTooltipView(t, prev));\n }\n update(update, above) {\n var _a;\n let input = update.state.facet(this.facet);\n let tooltips = input.filter(x => x);\n if (input === this.input) {\n for (let t of this.tooltipViews)\n if (t.update)\n t.update(update);\n return false;\n }\n let tooltipViews = [], newAbove = above ? [] : null;\n for (let i = 0; i < tooltips.length; i++) {\n let tip = tooltips[i], known = -1;\n if (!tip)\n continue;\n for (let i = 0; i < this.tooltips.length; i++) {\n let other = this.tooltips[i];\n if (other && other.create == tip.create)\n known = i;\n }\n if (known < 0) {\n tooltipViews[i] = this.createTooltipView(tip, i ? tooltipViews[i - 1] : null);\n if (newAbove)\n newAbove[i] = !!tip.above;\n }\n else {\n let tooltipView = tooltipViews[i] = this.tooltipViews[known];\n if (newAbove)\n newAbove[i] = above[known];\n if (tooltipView.update)\n tooltipView.update(update);\n }\n }\n for (let t of this.tooltipViews)\n if (tooltipViews.indexOf(t) < 0) {\n this.removeTooltipView(t);\n (_a = t.destroy) === null || _a === void 0 ? void 0 : _a.call(t);\n }\n if (above) {\n newAbove.forEach((val, i) => above[i] = val);\n above.length = newAbove.length;\n }\n this.input = input;\n this.tooltips = tooltips;\n this.tooltipViews = tooltipViews;\n return true;\n }\n}\n/**\nCreates an extension that configures tooltip behavior.\n*/\nfunction tooltips(config = {}) {\n return tooltipConfig.of(config);\n}\nfunction windowSpace(view) {\n let { win } = view;\n return { top: 0, left: 0, bottom: win.innerHeight, right: win.innerWidth };\n}\nconst tooltipConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine: values => {\n var _a, _b, _c;\n return ({\n position: browser.ios ? \"absolute\" : ((_a = values.find(conf => conf.position)) === null || _a === void 0 ? void 0 : _a.position) || \"fixed\",\n parent: ((_b = values.find(conf => conf.parent)) === null || _b === void 0 ? void 0 : _b.parent) || null,\n tooltipSpace: ((_c = values.find(conf => conf.tooltipSpace)) === null || _c === void 0 ? void 0 : _c.tooltipSpace) || windowSpace,\n });\n }\n});\nconst knownHeight = /*@__PURE__*/new WeakMap();\nconst tooltipPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.above = [];\n this.inView = true;\n this.madeAbsolute = false;\n this.lastTransaction = 0;\n this.measureTimeout = -1;\n let config = view.state.facet(tooltipConfig);\n this.position = config.position;\n this.parent = config.parent;\n this.classes = view.themeClasses;\n this.createContainer();\n this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this };\n this.resizeObserver = typeof ResizeObserver == \"function\" ? new ResizeObserver(() => this.measureSoon()) : null;\n this.manager = new TooltipViewManager(view, showTooltip, (t, p) => this.createTooltip(t, p), t => {\n if (this.resizeObserver)\n this.resizeObserver.unobserve(t.dom);\n t.dom.remove();\n });\n this.above = this.manager.tooltips.map(t => !!t.above);\n this.intersectionObserver = typeof IntersectionObserver == \"function\" ? new IntersectionObserver(entries => {\n if (Date.now() > this.lastTransaction - 50 &&\n entries.length > 0 && entries[entries.length - 1].intersectionRatio < 1)\n this.measureSoon();\n }, { threshold: [1] }) : null;\n this.observeIntersection();\n view.win.addEventListener(\"resize\", this.measureSoon = this.measureSoon.bind(this));\n this.maybeMeasure();\n }\n createContainer() {\n if (this.parent) {\n this.container = document.createElement(\"div\");\n this.container.style.position = \"relative\";\n this.container.className = this.view.themeClasses;\n this.parent.appendChild(this.container);\n }\n else {\n this.container = this.view.dom;\n }\n }\n observeIntersection() {\n if (this.intersectionObserver) {\n this.intersectionObserver.disconnect();\n for (let tooltip of this.manager.tooltipViews)\n this.intersectionObserver.observe(tooltip.dom);\n }\n }\n measureSoon() {\n if (this.measureTimeout < 0)\n this.measureTimeout = setTimeout(() => {\n this.measureTimeout = -1;\n this.maybeMeasure();\n }, 50);\n }\n update(update) {\n if (update.transactions.length)\n this.lastTransaction = Date.now();\n let updated = this.manager.update(update, this.above);\n if (updated)\n this.observeIntersection();\n let shouldMeasure = updated || update.geometryChanged;\n let newConfig = update.state.facet(tooltipConfig);\n if (newConfig.position != this.position && !this.madeAbsolute) {\n this.position = newConfig.position;\n for (let t of this.manager.tooltipViews)\n t.dom.style.position = this.position;\n shouldMeasure = true;\n }\n if (newConfig.parent != this.parent) {\n if (this.parent)\n this.container.remove();\n this.parent = newConfig.parent;\n this.createContainer();\n for (let t of this.manager.tooltipViews)\n this.container.appendChild(t.dom);\n shouldMeasure = true;\n }\n else if (this.parent && this.view.themeClasses != this.classes) {\n this.classes = this.container.className = this.view.themeClasses;\n }\n if (shouldMeasure)\n this.maybeMeasure();\n }\n createTooltip(tooltip, prev) {\n let tooltipView = tooltip.create(this.view);\n let before = prev ? prev.dom : null;\n tooltipView.dom.classList.add(\"cm-tooltip\");\n if (tooltip.arrow && !tooltipView.dom.querySelector(\".cm-tooltip > .cm-tooltip-arrow\")) {\n let arrow = document.createElement(\"div\");\n arrow.className = \"cm-tooltip-arrow\";\n tooltipView.dom.appendChild(arrow);\n }\n tooltipView.dom.style.position = this.position;\n tooltipView.dom.style.top = Outside;\n tooltipView.dom.style.left = \"0px\";\n this.container.insertBefore(tooltipView.dom, before);\n if (tooltipView.mount)\n tooltipView.mount(this.view);\n if (this.resizeObserver)\n this.resizeObserver.observe(tooltipView.dom);\n return tooltipView;\n }\n destroy() {\n var _a, _b, _c;\n this.view.win.removeEventListener(\"resize\", this.measureSoon);\n for (let tooltipView of this.manager.tooltipViews) {\n tooltipView.dom.remove();\n (_a = tooltipView.destroy) === null || _a === void 0 ? void 0 : _a.call(tooltipView);\n }\n if (this.parent)\n this.container.remove();\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();\n (_c = this.intersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();\n clearTimeout(this.measureTimeout);\n }\n readMeasure() {\n let editor = this.view.dom.getBoundingClientRect();\n let scaleX = 1, scaleY = 1, makeAbsolute = false;\n if (this.position == \"fixed\" && this.manager.tooltipViews.length) {\n let { dom } = this.manager.tooltipViews[0];\n if (browser.gecko) {\n // Firefox sets the element's `offsetParent` to the\n // transformed element when a transform interferes with fixed\n // positioning.\n makeAbsolute = dom.offsetParent != this.container.ownerDocument.body;\n }\n else if (dom.style.top == Outside && dom.style.left == \"0px\") {\n // On other browsers, we have to awkwardly try and use other\n // information to detect a transform.\n let rect = dom.getBoundingClientRect();\n makeAbsolute = Math.abs(rect.top + 10000) > 1 || Math.abs(rect.left) > 1;\n }\n }\n if (makeAbsolute || this.position == \"absolute\") {\n if (this.parent) {\n let rect = this.parent.getBoundingClientRect();\n if (rect.width && rect.height) {\n scaleX = rect.width / this.parent.offsetWidth;\n scaleY = rect.height / this.parent.offsetHeight;\n }\n }\n else {\n ({ scaleX, scaleY } = this.view.viewState);\n }\n }\n return {\n editor,\n parent: this.parent ? this.container.getBoundingClientRect() : editor,\n pos: this.manager.tooltips.map((t, i) => {\n let tv = this.manager.tooltipViews[i];\n return tv.getCoords ? tv.getCoords(t.pos) : this.view.coordsAtPos(t.pos);\n }),\n size: this.manager.tooltipViews.map(({ dom }) => dom.getBoundingClientRect()),\n space: this.view.state.facet(tooltipConfig).tooltipSpace(this.view),\n scaleX, scaleY, makeAbsolute\n };\n }\n writeMeasure(measured) {\n var _a;\n if (measured.makeAbsolute) {\n this.madeAbsolute = true;\n this.position = \"absolute\";\n for (let t of this.manager.tooltipViews)\n t.dom.style.position = \"absolute\";\n }\n let { editor, space, scaleX, scaleY } = measured;\n let others = [];\n for (let i = 0; i < this.manager.tooltips.length; i++) {\n let tooltip = this.manager.tooltips[i], tView = this.manager.tooltipViews[i], { dom } = tView;\n let pos = measured.pos[i], size = measured.size[i];\n // Hide tooltips that are outside of the editor.\n if (!pos || pos.bottom <= Math.max(editor.top, space.top) ||\n pos.top >= Math.min(editor.bottom, space.bottom) ||\n pos.right < Math.max(editor.left, space.left) - .1 ||\n pos.left > Math.min(editor.right, space.right) + .1) {\n dom.style.top = Outside;\n continue;\n }\n let arrow = tooltip.arrow ? tView.dom.querySelector(\".cm-tooltip-arrow\") : null;\n let arrowHeight = arrow ? 7 /* Arrow.Size */ : 0;\n let width = size.right - size.left, height = (_a = knownHeight.get(tView)) !== null && _a !== void 0 ? _a : size.bottom - size.top;\n let offset = tView.offset || noOffset, ltr = this.view.textDirection == Direction.LTR;\n let left = size.width > space.right - space.left ? (ltr ? space.left : space.right - size.width)\n : ltr ? Math.min(pos.left - (arrow ? 14 /* Arrow.Offset */ : 0) + offset.x, space.right - width)\n : Math.max(space.left, pos.left - width + (arrow ? 14 /* Arrow.Offset */ : 0) - offset.x);\n let above = this.above[i];\n if (!tooltip.strictSide && (above\n ? pos.top - (size.bottom - size.top) - offset.y < space.top\n : pos.bottom + (size.bottom - size.top) + offset.y > space.bottom) &&\n above == (space.bottom - pos.bottom > pos.top - space.top))\n above = this.above[i] = !above;\n let spaceVert = (above ? pos.top - space.top : space.bottom - pos.bottom) - arrowHeight;\n if (spaceVert < height && tView.resize !== false) {\n if (spaceVert < this.view.defaultLineHeight) {\n dom.style.top = Outside;\n continue;\n }\n knownHeight.set(tView, height);\n dom.style.height = (height = spaceVert) / scaleY + \"px\";\n }\n else if (dom.style.height) {\n dom.style.height = \"\";\n }\n let top = above ? pos.top - height - arrowHeight - offset.y : pos.bottom + arrowHeight + offset.y;\n let right = left + width;\n if (tView.overlap !== true)\n for (let r of others)\n if (r.left < right && r.right > left && r.top < top + height && r.bottom > top)\n top = above ? r.top - height - 2 - arrowHeight : r.bottom + arrowHeight + 2;\n if (this.position == \"absolute\") {\n dom.style.top = (top - measured.parent.top) / scaleY + \"px\";\n dom.style.left = (left - measured.parent.left) / scaleX + \"px\";\n }\n else {\n dom.style.top = top / scaleY + \"px\";\n dom.style.left = left / scaleX + \"px\";\n }\n if (arrow) {\n let arrowLeft = pos.left + (ltr ? offset.x : -offset.x) - (left + 14 /* Arrow.Offset */ - 7 /* Arrow.Size */);\n arrow.style.left = arrowLeft / scaleX + \"px\";\n }\n if (tView.overlap !== true)\n others.push({ left, top, right, bottom: top + height });\n dom.classList.toggle(\"cm-tooltip-above\", above);\n dom.classList.toggle(\"cm-tooltip-below\", !above);\n if (tView.positioned)\n tView.positioned(measured.space);\n }\n }\n maybeMeasure() {\n if (this.manager.tooltips.length) {\n if (this.view.inView)\n this.view.requestMeasure(this.measureReq);\n if (this.inView != this.view.inView) {\n this.inView = this.view.inView;\n if (!this.inView)\n for (let tv of this.manager.tooltipViews)\n tv.dom.style.top = Outside;\n }\n }\n }\n}, {\n eventObservers: {\n scroll() { this.maybeMeasure(); }\n }\n});\nconst baseTheme = /*@__PURE__*/EditorView.baseTheme({\n \".cm-tooltip\": {\n zIndex: 100,\n boxSizing: \"border-box\"\n },\n \"&light .cm-tooltip\": {\n border: \"1px solid #bbb\",\n backgroundColor: \"#f5f5f5\"\n },\n \"&light .cm-tooltip-section:not(:first-child)\": {\n borderTop: \"1px solid #bbb\",\n },\n \"&dark .cm-tooltip\": {\n backgroundColor: \"#333338\",\n color: \"white\"\n },\n \".cm-tooltip-arrow\": {\n height: `${7 /* Arrow.Size */}px`,\n width: `${7 /* Arrow.Size */ * 2}px`,\n position: \"absolute\",\n zIndex: -1,\n overflow: \"hidden\",\n \"&:before, &:after\": {\n content: \"''\",\n position: \"absolute\",\n width: 0,\n height: 0,\n borderLeft: `${7 /* Arrow.Size */}px solid transparent`,\n borderRight: `${7 /* Arrow.Size */}px solid transparent`,\n },\n \".cm-tooltip-above &\": {\n bottom: `-${7 /* Arrow.Size */}px`,\n \"&:before\": {\n borderTop: `${7 /* Arrow.Size */}px solid #bbb`,\n },\n \"&:after\": {\n borderTop: `${7 /* Arrow.Size */}px solid #f5f5f5`,\n bottom: \"1px\"\n }\n },\n \".cm-tooltip-below &\": {\n top: `-${7 /* Arrow.Size */}px`,\n \"&:before\": {\n borderBottom: `${7 /* Arrow.Size */}px solid #bbb`,\n },\n \"&:after\": {\n borderBottom: `${7 /* Arrow.Size */}px solid #f5f5f5`,\n top: \"1px\"\n }\n },\n },\n \"&dark .cm-tooltip .cm-tooltip-arrow\": {\n \"&:before\": {\n borderTopColor: \"#333338\",\n borderBottomColor: \"#333338\"\n },\n \"&:after\": {\n borderTopColor: \"transparent\",\n borderBottomColor: \"transparent\"\n }\n }\n});\nconst noOffset = { x: 0, y: 0 };\n/**\nFacet to which an extension can add a value to show a tooltip.\n*/\nconst showTooltip = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n enables: [tooltipPlugin, baseTheme]\n});\nconst showHoverTooltip = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine: inputs => inputs.reduce((a, i) => a.concat(i), [])\n});\nclass HoverTooltipHost {\n // Needs to be static so that host tooltip instances always match\n static create(view) {\n return new HoverTooltipHost(view);\n }\n constructor(view) {\n this.view = view;\n this.mounted = false;\n this.dom = document.createElement(\"div\");\n this.dom.classList.add(\"cm-tooltip-hover\");\n this.manager = new TooltipViewManager(view, showHoverTooltip, (t, p) => this.createHostedView(t, p), t => t.dom.remove());\n }\n createHostedView(tooltip, prev) {\n let hostedView = tooltip.create(this.view);\n hostedView.dom.classList.add(\"cm-tooltip-section\");\n this.dom.insertBefore(hostedView.dom, prev ? prev.dom.nextSibling : this.dom.firstChild);\n if (this.mounted && hostedView.mount)\n hostedView.mount(this.view);\n return hostedView;\n }\n mount(view) {\n for (let hostedView of this.manager.tooltipViews) {\n if (hostedView.mount)\n hostedView.mount(view);\n }\n this.mounted = true;\n }\n positioned(space) {\n for (let hostedView of this.manager.tooltipViews) {\n if (hostedView.positioned)\n hostedView.positioned(space);\n }\n }\n update(update) {\n this.manager.update(update);\n }\n destroy() {\n var _a;\n for (let t of this.manager.tooltipViews)\n (_a = t.destroy) === null || _a === void 0 ? void 0 : _a.call(t);\n }\n passProp(name) {\n let value = undefined;\n for (let view of this.manager.tooltipViews) {\n let given = view[name];\n if (given !== undefined) {\n if (value === undefined)\n value = given;\n else if (value !== given)\n return undefined;\n }\n }\n return value;\n }\n get offset() { return this.passProp(\"offset\"); }\n get getCoords() { return this.passProp(\"getCoords\"); }\n get overlap() { return this.passProp(\"overlap\"); }\n get resize() { return this.passProp(\"resize\"); }\n}\nconst showHoverTooltipHost = /*@__PURE__*/showTooltip.compute([showHoverTooltip], state => {\n let tooltips = state.facet(showHoverTooltip);\n if (tooltips.length === 0)\n return null;\n return {\n pos: Math.min(...tooltips.map(t => t.pos)),\n end: Math.max(...tooltips.map(t => { var _a; return (_a = t.end) !== null && _a !== void 0 ? _a : t.pos; })),\n create: HoverTooltipHost.create,\n above: tooltips[0].above,\n arrow: tooltips.some(t => t.arrow),\n };\n});\nclass HoverPlugin {\n constructor(view, source, field, setHover, hoverTime) {\n this.view = view;\n this.source = source;\n this.field = field;\n this.setHover = setHover;\n this.hoverTime = hoverTime;\n this.hoverTimeout = -1;\n this.restartTimeout = -1;\n this.pending = null;\n this.lastMove = { x: 0, y: 0, target: view.dom, time: 0 };\n this.checkHover = this.checkHover.bind(this);\n view.dom.addEventListener(\"mouseleave\", this.mouseleave = this.mouseleave.bind(this));\n view.dom.addEventListener(\"mousemove\", this.mousemove = this.mousemove.bind(this));\n }\n update() {\n if (this.pending) {\n this.pending = null;\n clearTimeout(this.restartTimeout);\n this.restartTimeout = setTimeout(() => this.startHover(), 20);\n }\n }\n get active() {\n return this.view.state.field(this.field);\n }\n checkHover() {\n this.hoverTimeout = -1;\n if (this.active.length)\n return;\n let hovered = Date.now() - this.lastMove.time;\n if (hovered < this.hoverTime)\n this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime - hovered);\n else\n this.startHover();\n }\n startHover() {\n clearTimeout(this.restartTimeout);\n let { view, lastMove } = this;\n let desc = view.docView.nearest(lastMove.target);\n if (!desc)\n return;\n let pos, side = 1;\n if (desc instanceof WidgetView) {\n pos = desc.posAtStart;\n }\n else {\n pos = view.posAtCoords(lastMove);\n if (pos == null)\n return;\n let posCoords = view.coordsAtPos(pos);\n if (!posCoords ||\n lastMove.y < posCoords.top || lastMove.y > posCoords.bottom ||\n lastMove.x < posCoords.left - view.defaultCharacterWidth ||\n lastMove.x > posCoords.right + view.defaultCharacterWidth)\n return;\n let bidi = view.bidiSpans(view.state.doc.lineAt(pos)).find(s => s.from <= pos && s.to >= pos);\n let rtl = bidi && bidi.dir == Direction.RTL ? -1 : 1;\n side = (lastMove.x < posCoords.left ? -rtl : rtl);\n }\n let open = this.source(view, pos, side);\n if (open === null || open === void 0 ? void 0 : open.then) {\n let pending = this.pending = { pos };\n open.then(result => {\n if (this.pending == pending) {\n this.pending = null;\n if (result && !(Array.isArray(result) && !result.length))\n view.dispatch({ effects: this.setHover.of(Array.isArray(result) ? result : [result]) });\n }\n }, e => logException(view.state, e, \"hover tooltip\"));\n }\n else if (open && !(Array.isArray(open) && !open.length)) {\n view.dispatch({ effects: this.setHover.of(Array.isArray(open) ? open : [open]) });\n }\n }\n get tooltip() {\n let plugin = this.view.plugin(tooltipPlugin);\n let index = plugin ? plugin.manager.tooltips.findIndex(t => t.create == HoverTooltipHost.create) : -1;\n return index > -1 ? plugin.manager.tooltipViews[index] : null;\n }\n mousemove(event) {\n var _a, _b;\n this.lastMove = { x: event.clientX, y: event.clientY, target: event.target, time: Date.now() };\n if (this.hoverTimeout < 0)\n this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime);\n let { active, tooltip } = this;\n if (active.length && tooltip && !isInTooltip(tooltip.dom, event) || this.pending) {\n let { pos } = active[0] || this.pending, end = (_b = (_a = active[0]) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : pos;\n if ((pos == end ? this.view.posAtCoords(this.lastMove) != pos\n : !isOverRange(this.view, pos, end, event.clientX, event.clientY))) {\n this.view.dispatch({ effects: this.setHover.of([]) });\n this.pending = null;\n }\n }\n }\n mouseleave(event) {\n clearTimeout(this.hoverTimeout);\n this.hoverTimeout = -1;\n let { active } = this;\n if (active.length) {\n let { tooltip } = this;\n let inTooltip = tooltip && tooltip.dom.contains(event.relatedTarget);\n if (!inTooltip)\n this.view.dispatch({ effects: this.setHover.of([]) });\n else\n this.watchTooltipLeave(tooltip.dom);\n }\n }\n watchTooltipLeave(tooltip) {\n let watch = (event) => {\n tooltip.removeEventListener(\"mouseleave\", watch);\n if (this.active.length && !this.view.dom.contains(event.relatedTarget))\n this.view.dispatch({ effects: this.setHover.of([]) });\n };\n tooltip.addEventListener(\"mouseleave\", watch);\n }\n destroy() {\n clearTimeout(this.hoverTimeout);\n this.view.dom.removeEventListener(\"mouseleave\", this.mouseleave);\n this.view.dom.removeEventListener(\"mousemove\", this.mousemove);\n }\n}\nconst tooltipMargin = 4;\nfunction isInTooltip(tooltip, event) {\n let rect = tooltip.getBoundingClientRect();\n return event.clientX >= rect.left - tooltipMargin && event.clientX <= rect.right + tooltipMargin &&\n event.clientY >= rect.top - tooltipMargin && event.clientY <= rect.bottom + tooltipMargin;\n}\nfunction isOverRange(view, from, to, x, y, margin) {\n let rect = view.scrollDOM.getBoundingClientRect();\n let docBottom = view.documentTop + view.documentPadding.top + view.contentHeight;\n if (rect.left > x || rect.right < x || rect.top > y || Math.min(rect.bottom, docBottom) < y)\n return false;\n let pos = view.posAtCoords({ x, y }, false);\n return pos >= from && pos <= to;\n}\n/**\nSet up a hover tooltip, which shows up when the pointer hovers\nover ranges of text. The callback is called when the mouse hovers\nover the document text. It should, if there is a tooltip\nassociated with position `pos`, return the tooltip description\n(either directly or in a promise). The `side` argument indicates\non which side of the position the pointer is—it will be -1 if the\npointer is before the position, 1 if after the position.\n\nNote that all hover tooltips are hosted within a single tooltip\ncontainer element. This allows multiple tooltips over the same\nrange to be \"merged\" together without overlapping.\n*/\nfunction hoverTooltip(source, options = {}) {\n let setHover = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\n let hoverState = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateField.define({\n create() { return []; },\n update(value, tr) {\n if (value.length) {\n if (options.hideOnChange && (tr.docChanged || tr.selection))\n value = [];\n else if (options.hideOn)\n value = value.filter(v => !options.hideOn(tr, v));\n if (tr.docChanged) {\n let mapped = [];\n for (let tooltip of value) {\n let newPos = tr.changes.mapPos(tooltip.pos, -1, _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.MapMode.TrackDel);\n if (newPos != null) {\n let copy = Object.assign(Object.create(null), tooltip);\n copy.pos = newPos;\n if (copy.end != null)\n copy.end = tr.changes.mapPos(copy.end);\n mapped.push(copy);\n }\n }\n value = mapped;\n }\n }\n for (let effect of tr.effects) {\n if (effect.is(setHover))\n value = effect.value;\n if (effect.is(closeHoverTooltipEffect))\n value = [];\n }\n return value;\n },\n provide: f => showHoverTooltip.from(f)\n });\n return [\n hoverState,\n ViewPlugin.define(view => new HoverPlugin(view, source, hoverState, setHover, options.hoverTime || 300 /* Hover.Time */)),\n showHoverTooltipHost\n ];\n}\n/**\nGet the active tooltip view for a given tooltip, if available.\n*/\nfunction getTooltip(view, tooltip) {\n let plugin = view.plugin(tooltipPlugin);\n if (!plugin)\n return null;\n let found = plugin.manager.tooltips.indexOf(tooltip);\n return found < 0 ? null : plugin.manager.tooltipViews[found];\n}\n/**\nReturns true if any hover tooltips are currently active.\n*/\nfunction hasHoverTooltips(state) {\n return state.facet(showHoverTooltip).some(x => x);\n}\nconst closeHoverTooltipEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.StateEffect.define();\n/**\nTransaction effect that closes all hover tooltips.\n*/\nconst closeHoverTooltips = /*@__PURE__*/closeHoverTooltipEffect.of(null);\n/**\nTell the tooltip extension to recompute the position of the active\ntooltips. This can be useful when something happens (such as a\nre-positioning or CSS change affecting the editor) that could\ninvalidate the existing tooltip positions.\n*/\nfunction repositionTooltips(view) {\n let plugin = view.plugin(tooltipPlugin);\n if (plugin)\n plugin.maybeMeasure();\n}\n\nconst panelConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine(configs) {\n let topContainer, bottomContainer;\n for (let c of configs) {\n topContainer = topContainer || c.topContainer;\n bottomContainer = bottomContainer || c.bottomContainer;\n }\n return { topContainer, bottomContainer };\n }\n});\n/**\nConfigures the panel-managing extension.\n*/\nfunction panels(config) {\n return config ? [panelConfig.of(config)] : [];\n}\n/**\nGet the active panel created by the given constructor, if any.\nThis can be useful when you need access to your panels' DOM\nstructure.\n*/\nfunction getPanel(view, panel) {\n let plugin = view.plugin(panelPlugin);\n let index = plugin ? plugin.specs.indexOf(panel) : -1;\n return index > -1 ? plugin.panels[index] : null;\n}\nconst panelPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.input = view.state.facet(showPanel);\n this.specs = this.input.filter(s => s);\n this.panels = this.specs.map(spec => spec(view));\n let conf = view.state.facet(panelConfig);\n this.top = new PanelGroup(view, true, conf.topContainer);\n this.bottom = new PanelGroup(view, false, conf.bottomContainer);\n this.top.sync(this.panels.filter(p => p.top));\n this.bottom.sync(this.panels.filter(p => !p.top));\n for (let p of this.panels) {\n p.dom.classList.add(\"cm-panel\");\n if (p.mount)\n p.mount();\n }\n }\n update(update) {\n let conf = update.state.facet(panelConfig);\n if (this.top.container != conf.topContainer) {\n this.top.sync([]);\n this.top = new PanelGroup(update.view, true, conf.topContainer);\n }\n if (this.bottom.container != conf.bottomContainer) {\n this.bottom.sync([]);\n this.bottom = new PanelGroup(update.view, false, conf.bottomContainer);\n }\n this.top.syncClasses();\n this.bottom.syncClasses();\n let input = update.state.facet(showPanel);\n if (input != this.input) {\n let specs = input.filter(x => x);\n let panels = [], top = [], bottom = [], mount = [];\n for (let spec of specs) {\n let known = this.specs.indexOf(spec), panel;\n if (known < 0) {\n panel = spec(update.view);\n mount.push(panel);\n }\n else {\n panel = this.panels[known];\n if (panel.update)\n panel.update(update);\n }\n panels.push(panel);\n (panel.top ? top : bottom).push(panel);\n }\n this.specs = specs;\n this.panels = panels;\n this.top.sync(top);\n this.bottom.sync(bottom);\n for (let p of mount) {\n p.dom.classList.add(\"cm-panel\");\n if (p.mount)\n p.mount();\n }\n }\n else {\n for (let p of this.panels)\n if (p.update)\n p.update(update);\n }\n }\n destroy() {\n this.top.sync([]);\n this.bottom.sync([]);\n }\n}, {\n provide: plugin => EditorView.scrollMargins.of(view => {\n let value = view.plugin(plugin);\n return value && { top: value.top.scrollMargin(), bottom: value.bottom.scrollMargin() };\n })\n});\nclass PanelGroup {\n constructor(view, top, container) {\n this.view = view;\n this.top = top;\n this.container = container;\n this.dom = undefined;\n this.classes = \"\";\n this.panels = [];\n this.syncClasses();\n }\n sync(panels) {\n for (let p of this.panels)\n if (p.destroy && panels.indexOf(p) < 0)\n p.destroy();\n this.panels = panels;\n this.syncDOM();\n }\n syncDOM() {\n if (this.panels.length == 0) {\n if (this.dom) {\n this.dom.remove();\n this.dom = undefined;\n }\n return;\n }\n if (!this.dom) {\n this.dom = document.createElement(\"div\");\n this.dom.className = this.top ? \"cm-panels cm-panels-top\" : \"cm-panels cm-panels-bottom\";\n this.dom.style[this.top ? \"top\" : \"bottom\"] = \"0\";\n let parent = this.container || this.view.dom;\n parent.insertBefore(this.dom, this.top ? parent.firstChild : null);\n }\n let curDOM = this.dom.firstChild;\n for (let panel of this.panels) {\n if (panel.dom.parentNode == this.dom) {\n while (curDOM != panel.dom)\n curDOM = rm(curDOM);\n curDOM = curDOM.nextSibling;\n }\n else {\n this.dom.insertBefore(panel.dom, curDOM);\n }\n }\n while (curDOM)\n curDOM = rm(curDOM);\n }\n scrollMargin() {\n return !this.dom || this.container ? 0\n : Math.max(0, this.top ?\n this.dom.getBoundingClientRect().bottom - Math.max(0, this.view.scrollDOM.getBoundingClientRect().top) :\n Math.min(innerHeight, this.view.scrollDOM.getBoundingClientRect().bottom) - this.dom.getBoundingClientRect().top);\n }\n syncClasses() {\n if (!this.container || this.classes == this.view.themeClasses)\n return;\n for (let cls of this.classes.split(\" \"))\n if (cls)\n this.container.classList.remove(cls);\n for (let cls of (this.classes = this.view.themeClasses).split(\" \"))\n if (cls)\n this.container.classList.add(cls);\n }\n}\nfunction rm(node) {\n let next = node.nextSibling;\n node.remove();\n return next;\n}\n/**\nOpening a panel is done by providing a constructor function for\nthe panel through this facet. (The panel is closed again when its\nconstructor is no longer provided.) Values of `null` are ignored.\n*/\nconst showPanel = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n enables: panelPlugin\n});\n\n/**\nA gutter marker represents a bit of information attached to a line\nin a specific gutter. Your own custom markers have to extend this\nclass.\n*/\nclass GutterMarker extends _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeValue {\n /**\n @internal\n */\n compare(other) {\n return this == other || this.constructor == other.constructor && this.eq(other);\n }\n /**\n Compare this marker to another marker of the same type.\n */\n eq(other) { return false; }\n /**\n Called if the marker has a `toDOM` method and its representation\n was removed from a gutter.\n */\n destroy(dom) { }\n}\nGutterMarker.prototype.elementClass = \"\";\nGutterMarker.prototype.toDOM = undefined;\nGutterMarker.prototype.mapMode = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.MapMode.TrackBefore;\nGutterMarker.prototype.startSide = GutterMarker.prototype.endSide = -1;\nGutterMarker.prototype.point = true;\n/**\nFacet used to add a class to all gutter elements for a given line.\nMarkers given to this facet should _only_ define an\n[`elementclass`](https://codemirror.net/6/docs/ref/#view.GutterMarker.elementClass), not a\n[`toDOM`](https://codemirror.net/6/docs/ref/#view.GutterMarker.toDOM) (or the marker will appear\nin all gutters for the line).\n*/\nconst gutterLineClass = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst defaults = {\n class: \"\",\n renderEmptyElements: false,\n elementStyle: \"\",\n markers: () => _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.empty,\n lineMarker: () => null,\n widgetMarker: () => null,\n lineMarkerChange: null,\n initialSpacer: null,\n updateSpacer: null,\n domEventHandlers: {}\n};\nconst activeGutters = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\n/**\nDefine an editor gutter. The order in which the gutters appear is\ndetermined by their extension priority.\n*/\nfunction gutter(config) {\n return [gutters(), activeGutters.of(Object.assign(Object.assign({}, defaults), config))];\n}\nconst unfixGutters = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine: values => values.some(x => x)\n});\n/**\nThe gutter-drawing plugin is automatically enabled when you add a\ngutter, but you can use this function to explicitly configure it.\n\nUnless `fixed` is explicitly set to `false`, the gutters are\nfixed, meaning they don't scroll along with the content\nhorizontally (except on Internet Explorer, which doesn't support\nCSS [`position:\nsticky`](https://developer.mozilla.org/en-US/docs/Web/CSS/position#sticky)).\n*/\nfunction gutters(config) {\n let result = [\n gutterView,\n ];\n if (config && config.fixed === false)\n result.push(unfixGutters.of(true));\n return result;\n}\nconst gutterView = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.prevViewport = view.viewport;\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-gutters\";\n this.dom.setAttribute(\"aria-hidden\", \"true\");\n this.dom.style.minHeight = (this.view.contentHeight / this.view.scaleY) + \"px\";\n this.gutters = view.state.facet(activeGutters).map(conf => new SingleGutterView(view, conf));\n for (let gutter of this.gutters)\n this.dom.appendChild(gutter.dom);\n this.fixed = !view.state.facet(unfixGutters);\n if (this.fixed) {\n // FIXME IE11 fallback, which doesn't support position: sticky,\n // by using position: relative + event handlers that realign the\n // gutter (or just force fixed=false on IE11?)\n this.dom.style.position = \"sticky\";\n }\n this.syncGutters(false);\n view.scrollDOM.insertBefore(this.dom, view.contentDOM);\n }\n update(update) {\n if (this.updateGutters(update)) {\n // Detach during sync when the viewport changed significantly\n // (such as during scrolling), since for large updates that is\n // faster.\n let vpA = this.prevViewport, vpB = update.view.viewport;\n let vpOverlap = Math.min(vpA.to, vpB.to) - Math.max(vpA.from, vpB.from);\n this.syncGutters(vpOverlap < (vpB.to - vpB.from) * 0.8);\n }\n if (update.geometryChanged) {\n this.dom.style.minHeight = (this.view.contentHeight / this.view.scaleY) + \"px\";\n }\n if (this.view.state.facet(unfixGutters) != !this.fixed) {\n this.fixed = !this.fixed;\n this.dom.style.position = this.fixed ? \"sticky\" : \"\";\n }\n this.prevViewport = update.view.viewport;\n }\n syncGutters(detach) {\n let after = this.dom.nextSibling;\n if (detach)\n this.dom.remove();\n let lineClasses = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.iter(this.view.state.facet(gutterLineClass), this.view.viewport.from);\n let classSet = [];\n let contexts = this.gutters.map(gutter => new UpdateContext(gutter, this.view.viewport, -this.view.documentPadding.top));\n for (let line of this.view.viewportLineBlocks) {\n if (classSet.length)\n classSet = [];\n if (Array.isArray(line.type)) {\n let first = true;\n for (let b of line.type) {\n if (b.type == BlockType.Text && first) {\n advanceCursor(lineClasses, classSet, b.from);\n for (let cx of contexts)\n cx.line(this.view, b, classSet);\n first = false;\n }\n else if (b.widget) {\n for (let cx of contexts)\n cx.widget(this.view, b);\n }\n }\n }\n else if (line.type == BlockType.Text) {\n advanceCursor(lineClasses, classSet, line.from);\n for (let cx of contexts)\n cx.line(this.view, line, classSet);\n }\n else if (line.widget) {\n for (let cx of contexts)\n cx.widget(this.view, line);\n }\n }\n for (let cx of contexts)\n cx.finish();\n if (detach)\n this.view.scrollDOM.insertBefore(this.dom, after);\n }\n updateGutters(update) {\n let prev = update.startState.facet(activeGutters), cur = update.state.facet(activeGutters);\n let change = update.docChanged || update.heightChanged || update.viewportChanged ||\n !_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.eq(update.startState.facet(gutterLineClass), update.state.facet(gutterLineClass), update.view.viewport.from, update.view.viewport.to);\n if (prev == cur) {\n for (let gutter of this.gutters)\n if (gutter.update(update))\n change = true;\n }\n else {\n change = true;\n let gutters = [];\n for (let conf of cur) {\n let known = prev.indexOf(conf);\n if (known < 0) {\n gutters.push(new SingleGutterView(this.view, conf));\n }\n else {\n this.gutters[known].update(update);\n gutters.push(this.gutters[known]);\n }\n }\n for (let g of this.gutters) {\n g.dom.remove();\n if (gutters.indexOf(g) < 0)\n g.destroy();\n }\n for (let g of gutters)\n this.dom.appendChild(g.dom);\n this.gutters = gutters;\n }\n return change;\n }\n destroy() {\n for (let view of this.gutters)\n view.destroy();\n this.dom.remove();\n }\n}, {\n provide: plugin => EditorView.scrollMargins.of(view => {\n let value = view.plugin(plugin);\n if (!value || value.gutters.length == 0 || !value.fixed)\n return null;\n return view.textDirection == Direction.LTR\n ? { left: value.dom.offsetWidth * view.scaleX }\n : { right: value.dom.offsetWidth * view.scaleX };\n })\n});\nfunction asArray(val) { return (Array.isArray(val) ? val : [val]); }\nfunction advanceCursor(cursor, collect, pos) {\n while (cursor.value && cursor.from <= pos) {\n if (cursor.from == pos)\n collect.push(cursor.value);\n cursor.next();\n }\n}\nclass UpdateContext {\n constructor(gutter, viewport, height) {\n this.gutter = gutter;\n this.height = height;\n this.i = 0;\n this.cursor = _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.iter(gutter.markers, viewport.from);\n }\n addElement(view, block, markers) {\n let { gutter } = this, above = (block.top - this.height) / view.scaleY, height = block.height / view.scaleY;\n if (this.i == gutter.elements.length) {\n let newElt = new GutterElement(view, height, above, markers);\n gutter.elements.push(newElt);\n gutter.dom.appendChild(newElt.dom);\n }\n else {\n gutter.elements[this.i].update(view, height, above, markers);\n }\n this.height = block.bottom;\n this.i++;\n }\n line(view, line, extraMarkers) {\n let localMarkers = [];\n advanceCursor(this.cursor, localMarkers, line.from);\n if (extraMarkers.length)\n localMarkers = localMarkers.concat(extraMarkers);\n let forLine = this.gutter.config.lineMarker(view, line, localMarkers);\n if (forLine)\n localMarkers.unshift(forLine);\n let gutter = this.gutter;\n if (localMarkers.length == 0 && !gutter.config.renderEmptyElements)\n return;\n this.addElement(view, line, localMarkers);\n }\n widget(view, block) {\n let marker = this.gutter.config.widgetMarker(view, block.widget, block);\n if (marker)\n this.addElement(view, block, [marker]);\n }\n finish() {\n let gutter = this.gutter;\n while (gutter.elements.length > this.i) {\n let last = gutter.elements.pop();\n gutter.dom.removeChild(last.dom);\n last.destroy();\n }\n }\n}\nclass SingleGutterView {\n constructor(view, config) {\n this.view = view;\n this.config = config;\n this.elements = [];\n this.spacer = null;\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-gutter\" + (this.config.class ? \" \" + this.config.class : \"\");\n for (let prop in config.domEventHandlers) {\n this.dom.addEventListener(prop, (event) => {\n let target = event.target, y;\n if (target != this.dom && this.dom.contains(target)) {\n while (target.parentNode != this.dom)\n target = target.parentNode;\n let rect = target.getBoundingClientRect();\n y = (rect.top + rect.bottom) / 2;\n }\n else {\n y = event.clientY;\n }\n let line = view.lineBlockAtHeight(y - view.documentTop);\n if (config.domEventHandlers[prop](view, line, event))\n event.preventDefault();\n });\n }\n this.markers = asArray(config.markers(view));\n if (config.initialSpacer) {\n this.spacer = new GutterElement(view, 0, 0, [config.initialSpacer(view)]);\n this.dom.appendChild(this.spacer.dom);\n this.spacer.dom.style.cssText += \"visibility: hidden; pointer-events: none\";\n }\n }\n update(update) {\n let prevMarkers = this.markers;\n this.markers = asArray(this.config.markers(update.view));\n if (this.spacer && this.config.updateSpacer) {\n let updated = this.config.updateSpacer(this.spacer.markers[0], update);\n if (updated != this.spacer.markers[0])\n this.spacer.update(update.view, 0, 0, [updated]);\n }\n let vp = update.view.viewport;\n return !_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.eq(this.markers, prevMarkers, vp.from, vp.to) ||\n (this.config.lineMarkerChange ? this.config.lineMarkerChange(update) : false);\n }\n destroy() {\n for (let elt of this.elements)\n elt.destroy();\n }\n}\nclass GutterElement {\n constructor(view, height, above, markers) {\n this.height = -1;\n this.above = 0;\n this.markers = [];\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-gutterElement\";\n this.update(view, height, above, markers);\n }\n update(view, height, above, markers) {\n if (this.height != height) {\n this.height = height;\n this.dom.style.height = height + \"px\";\n }\n if (this.above != above)\n this.dom.style.marginTop = (this.above = above) ? above + \"px\" : \"\";\n if (!sameMarkers(this.markers, markers))\n this.setMarkers(view, markers);\n }\n setMarkers(view, markers) {\n let cls = \"cm-gutterElement\", domPos = this.dom.firstChild;\n for (let iNew = 0, iOld = 0;;) {\n let skipTo = iOld, marker = iNew < markers.length ? markers[iNew++] : null, matched = false;\n if (marker) {\n let c = marker.elementClass;\n if (c)\n cls += \" \" + c;\n for (let i = iOld; i < this.markers.length; i++)\n if (this.markers[i].compare(marker)) {\n skipTo = i;\n matched = true;\n break;\n }\n }\n else {\n skipTo = this.markers.length;\n }\n while (iOld < skipTo) {\n let next = this.markers[iOld++];\n if (next.toDOM) {\n next.destroy(domPos);\n let after = domPos.nextSibling;\n domPos.remove();\n domPos = after;\n }\n }\n if (!marker)\n break;\n if (marker.toDOM) {\n if (matched)\n domPos = domPos.nextSibling;\n else\n this.dom.insertBefore(marker.toDOM(view), domPos);\n }\n if (matched)\n iOld++;\n }\n this.dom.className = cls;\n this.markers = markers;\n }\n destroy() {\n this.setMarkers(null, []); // First argument not used unless creating markers\n }\n}\nfunction sameMarkers(a, b) {\n if (a.length != b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!a[i].compare(b[i]))\n return false;\n return true;\n}\n/**\nFacet used to provide markers to the line number gutter.\n*/\nconst lineNumberMarkers = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define();\nconst lineNumberConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.Facet.define({\n combine(values) {\n return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_2__.combineConfig)(values, { formatNumber: String, domEventHandlers: {} }, {\n domEventHandlers(a, b) {\n let result = Object.assign({}, a);\n for (let event in b) {\n let exists = result[event], add = b[event];\n result[event] = exists ? (view, line, event) => exists(view, line, event) || add(view, line, event) : add;\n }\n return result;\n }\n });\n }\n});\nclass NumberMarker extends GutterMarker {\n constructor(number) {\n super();\n this.number = number;\n }\n eq(other) { return this.number == other.number; }\n toDOM() { return document.createTextNode(this.number); }\n}\nfunction formatNumber(view, number) {\n return view.state.facet(lineNumberConfig).formatNumber(number, view.state);\n}\nconst lineNumberGutter = /*@__PURE__*/activeGutters.compute([lineNumberConfig], state => ({\n class: \"cm-lineNumbers\",\n renderEmptyElements: false,\n markers(view) { return view.state.facet(lineNumberMarkers); },\n lineMarker(view, line, others) {\n if (others.some(m => m.toDOM))\n return null;\n return new NumberMarker(formatNumber(view, view.state.doc.lineAt(line.from).number));\n },\n widgetMarker: () => null,\n lineMarkerChange: update => update.startState.facet(lineNumberConfig) != update.state.facet(lineNumberConfig),\n initialSpacer(view) {\n return new NumberMarker(formatNumber(view, maxLineNumber(view.state.doc.lines)));\n },\n updateSpacer(spacer, update) {\n let max = formatNumber(update.view, maxLineNumber(update.view.state.doc.lines));\n return max == spacer.number ? spacer : new NumberMarker(max);\n },\n domEventHandlers: state.facet(lineNumberConfig).domEventHandlers\n}));\n/**\nCreate a line number gutter extension.\n*/\nfunction lineNumbers(config = {}) {\n return [\n lineNumberConfig.of(config),\n gutters(),\n lineNumberGutter\n ];\n}\nfunction maxLineNumber(lines) {\n let last = 9;\n while (last < lines)\n last = last * 10 + 9;\n return last;\n}\nconst activeLineGutterMarker = /*@__PURE__*/new class extends GutterMarker {\n constructor() {\n super(...arguments);\n this.elementClass = \"cm-activeLineGutter\";\n }\n};\nconst activeLineGutterHighlighter = /*@__PURE__*/gutterLineClass.compute([\"selection\"], state => {\n let marks = [], last = -1;\n for (let range of state.selection.ranges) {\n let linePos = state.doc.lineAt(range.head).from;\n if (linePos > last) {\n last = linePos;\n marks.push(activeLineGutterMarker.range(linePos));\n }\n }\n return _codemirror_state__WEBPACK_IMPORTED_MODULE_2__.RangeSet.of(marks);\n});\n/**\nReturns an extension that adds a `cm-activeLineGutter` class to\nall gutter elements on the [active\nline](https://codemirror.net/6/docs/ref/#view.highlightActiveLine).\n*/\nfunction highlightActiveLineGutter() {\n return activeLineGutterHighlighter;\n}\n\nconst WhitespaceDeco = /*@__PURE__*/new Map();\nfunction getWhitespaceDeco(space) {\n let deco = WhitespaceDeco.get(space);\n if (!deco)\n WhitespaceDeco.set(space, deco = Decoration.mark({\n attributes: space === \"\\t\" ? {\n class: \"cm-highlightTab\",\n } : {\n class: \"cm-highlightSpace\",\n \"data-display\": space.replace(/ /g, \"·\")\n }\n }));\n return deco;\n}\nfunction matcher(decorator) {\n return ViewPlugin.define(view => ({\n decorations: decorator.createDeco(view),\n update(u) {\n this.decorations = decorator.updateDeco(u, this.decorations);\n },\n }), {\n decorations: v => v.decorations\n });\n}\nconst whitespaceHighlighter = /*@__PURE__*/matcher(/*@__PURE__*/new MatchDecorator({\n regexp: /\\t| +/g,\n decoration: match => getWhitespaceDeco(match[0]),\n boundary: /\\S/,\n}));\n/**\nReturns an extension that highlights whitespace, adding a\n`cm-highlightSpace` class to stretches of spaces, and a\n`cm-highlightTab` class to individual tab characters. By default,\nthe former are shown as faint dots, and the latter as arrows.\n*/\nfunction highlightWhitespace() {\n return whitespaceHighlighter;\n}\nconst trailingHighlighter = /*@__PURE__*/matcher(/*@__PURE__*/new MatchDecorator({\n regexp: /\\s+$/g,\n decoration: /*@__PURE__*/Decoration.mark({ class: \"cm-trailingSpace\" }),\n boundary: /\\S/,\n}));\n/**\nReturns an extension that adds a `cm-trailingSpace` class to all\ntrailing whitespace.\n*/\nfunction highlightTrailingWhitespace() {\n return trailingHighlighter;\n}\n\n/**\n@internal\n*/\nconst __test = { HeightMap, HeightOracle, MeasuredHeights, QueryType, ChangedRange, computeOrder, moveVisually };\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@codemirror/view/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@lezer/common/dist/index.js": +/*!**************************************************!*\ + !*** ./node_modules/@lezer/common/dist/index.js ***! + \**************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DefaultBufferLength: () => (/* binding */ DefaultBufferLength),\n/* harmony export */ IterMode: () => (/* binding */ IterMode),\n/* harmony export */ MountedTree: () => (/* binding */ MountedTree),\n/* harmony export */ NodeProp: () => (/* binding */ NodeProp),\n/* harmony export */ NodeSet: () => (/* binding */ NodeSet),\n/* harmony export */ NodeType: () => (/* binding */ NodeType),\n/* harmony export */ NodeWeakMap: () => (/* binding */ NodeWeakMap),\n/* harmony export */ Parser: () => (/* binding */ Parser),\n/* harmony export */ Tree: () => (/* binding */ Tree),\n/* harmony export */ TreeBuffer: () => (/* binding */ TreeBuffer),\n/* harmony export */ TreeCursor: () => (/* binding */ TreeCursor),\n/* harmony export */ TreeFragment: () => (/* binding */ TreeFragment),\n/* harmony export */ parseMixed: () => (/* binding */ parseMixed)\n/* harmony export */ });\n/**\nThe default maximum length of a `TreeBuffer` node.\n*/\nconst DefaultBufferLength = 1024;\nlet nextPropID = 0;\nclass Range {\n constructor(from, to) {\n this.from = from;\n this.to = to;\n }\n}\n/**\nEach [node type](#common.NodeType) or [individual tree](#common.Tree)\ncan have metadata associated with it in props. Instances of this\nclass represent prop names.\n*/\nclass NodeProp {\n /**\n Create a new node prop type.\n */\n constructor(config = {}) {\n this.id = nextPropID++;\n this.perNode = !!config.perNode;\n this.deserialize = config.deserialize || (() => {\n throw new Error(\"This node type doesn't define a deserialize function\");\n });\n }\n /**\n This is meant to be used with\n [`NodeSet.extend`](#common.NodeSet.extend) or\n [`LRParser.configure`](#lr.ParserConfig.props) to compute\n prop values for each node type in the set. Takes a [match\n object](#common.NodeType^match) or function that returns undefined\n if the node type doesn't get this prop, and the prop's value if\n it does.\n */\n add(match) {\n if (this.perNode)\n throw new RangeError(\"Can't add per-node props to node types\");\n if (typeof match != \"function\")\n match = NodeType.match(match);\n return (type) => {\n let result = match(type);\n return result === undefined ? null : [this, result];\n };\n }\n}\n/**\nProp that is used to describe matching delimiters. For opening\ndelimiters, this holds an array of node names (written as a\nspace-separated string when declaring this prop in a grammar)\nfor the node types of closing delimiters that match it.\n*/\nNodeProp.closedBy = new NodeProp({ deserialize: str => str.split(\" \") });\n/**\nThe inverse of [`closedBy`](#common.NodeProp^closedBy). This is\nattached to closing delimiters, holding an array of node names\nof types of matching opening delimiters.\n*/\nNodeProp.openedBy = new NodeProp({ deserialize: str => str.split(\" \") });\n/**\nUsed to assign node types to groups (for example, all node\ntypes that represent an expression could be tagged with an\n`\"Expression\"` group).\n*/\nNodeProp.group = new NodeProp({ deserialize: str => str.split(\" \") });\n/**\nAttached to nodes to indicate these should be\n[displayed](https://codemirror.net/docs/ref/#language.syntaxTree)\nin a bidirectional text isolate, so that direction-neutral\ncharacters on their sides don't incorrectly get associated with\nsurrounding text. You'll generally want to set this for nodes\nthat contain arbitrary text, like strings and comments, and for\nnodes that appear _inside_ arbitrary text, like HTML tags. When\nnot given a value, in a grammar declaration, defaults to\n`\"auto\"`.\n*/\nNodeProp.isolate = new NodeProp({ deserialize: value => {\n if (value && value != \"rtl\" && value != \"ltr\" && value != \"auto\")\n throw new RangeError(\"Invalid value for isolate: \" + value);\n return value || \"auto\";\n } });\n/**\nThe hash of the [context](#lr.ContextTracker.constructor)\nthat the node was parsed in, if any. Used to limit reuse of\ncontextual nodes.\n*/\nNodeProp.contextHash = new NodeProp({ perNode: true });\n/**\nThe distance beyond the end of the node that the tokenizer\nlooked ahead for any of the tokens inside the node. (The LR\nparser only stores this when it is larger than 25, for\nefficiency reasons.)\n*/\nNodeProp.lookAhead = new NodeProp({ perNode: true });\n/**\nThis per-node prop is used to replace a given node, or part of a\nnode, with another tree. This is useful to include trees from\ndifferent languages in mixed-language parsers.\n*/\nNodeProp.mounted = new NodeProp({ perNode: true });\n/**\nA mounted tree, which can be [stored](#common.NodeProp^mounted) on\na tree node to indicate that parts of its content are\nrepresented by another tree.\n*/\nclass MountedTree {\n constructor(\n /**\n The inner tree.\n */\n tree, \n /**\n If this is null, this tree replaces the entire node (it will\n be included in the regular iteration instead of its host\n node). If not, only the given ranges are considered to be\n covered by this tree. This is used for trees that are mixed in\n a way that isn't strictly hierarchical. Such mounted trees are\n only entered by [`resolveInner`](#common.Tree.resolveInner)\n and [`enter`](#common.SyntaxNode.enter).\n */\n overlay, \n /**\n The parser used to create this subtree.\n */\n parser) {\n this.tree = tree;\n this.overlay = overlay;\n this.parser = parser;\n }\n /**\n @internal\n */\n static get(tree) {\n return tree && tree.props && tree.props[NodeProp.mounted.id];\n }\n}\nconst noProps = Object.create(null);\n/**\nEach node in a syntax tree has a node type associated with it.\n*/\nclass NodeType {\n /**\n @internal\n */\n constructor(\n /**\n The name of the node type. Not necessarily unique, but if the\n grammar was written properly, different node types with the\n same name within a node set should play the same semantic\n role.\n */\n name, \n /**\n @internal\n */\n props, \n /**\n The id of this node in its set. Corresponds to the term ids\n used in the parser.\n */\n id, \n /**\n @internal\n */\n flags = 0) {\n this.name = name;\n this.props = props;\n this.id = id;\n this.flags = flags;\n }\n /**\n Define a node type.\n */\n static define(spec) {\n let props = spec.props && spec.props.length ? Object.create(null) : noProps;\n let flags = (spec.top ? 1 /* NodeFlag.Top */ : 0) | (spec.skipped ? 2 /* NodeFlag.Skipped */ : 0) |\n (spec.error ? 4 /* NodeFlag.Error */ : 0) | (spec.name == null ? 8 /* NodeFlag.Anonymous */ : 0);\n let type = new NodeType(spec.name || \"\", props, spec.id, flags);\n if (spec.props)\n for (let src of spec.props) {\n if (!Array.isArray(src))\n src = src(type);\n if (src) {\n if (src[0].perNode)\n throw new RangeError(\"Can't store a per-node prop on a node type\");\n props[src[0].id] = src[1];\n }\n }\n return type;\n }\n /**\n Retrieves a node prop for this type. Will return `undefined` if\n the prop isn't present on this node.\n */\n prop(prop) { return this.props[prop.id]; }\n /**\n True when this is the top node of a grammar.\n */\n get isTop() { return (this.flags & 1 /* NodeFlag.Top */) > 0; }\n /**\n True when this node is produced by a skip rule.\n */\n get isSkipped() { return (this.flags & 2 /* NodeFlag.Skipped */) > 0; }\n /**\n Indicates whether this is an error node.\n */\n get isError() { return (this.flags & 4 /* NodeFlag.Error */) > 0; }\n /**\n When true, this node type doesn't correspond to a user-declared\n named node, for example because it is used to cache repetition.\n */\n get isAnonymous() { return (this.flags & 8 /* NodeFlag.Anonymous */) > 0; }\n /**\n Returns true when this node's name or one of its\n [groups](#common.NodeProp^group) matches the given string.\n */\n is(name) {\n if (typeof name == 'string') {\n if (this.name == name)\n return true;\n let group = this.prop(NodeProp.group);\n return group ? group.indexOf(name) > -1 : false;\n }\n return this.id == name;\n }\n /**\n Create a function from node types to arbitrary values by\n specifying an object whose property names are node or\n [group](#common.NodeProp^group) names. Often useful with\n [`NodeProp.add`](#common.NodeProp.add). You can put multiple\n names, separated by spaces, in a single property name to map\n multiple node names to a single value.\n */\n static match(map) {\n let direct = Object.create(null);\n for (let prop in map)\n for (let name of prop.split(\" \"))\n direct[name] = map[prop];\n return (node) => {\n for (let groups = node.prop(NodeProp.group), i = -1; i < (groups ? groups.length : 0); i++) {\n let found = direct[i < 0 ? node.name : groups[i]];\n if (found)\n return found;\n }\n };\n }\n}\n/**\nAn empty dummy node type to use when no actual type is available.\n*/\nNodeType.none = new NodeType(\"\", Object.create(null), 0, 8 /* NodeFlag.Anonymous */);\n/**\nA node set holds a collection of node types. It is used to\ncompactly represent trees by storing their type ids, rather than a\nfull pointer to the type object, in a numeric array. Each parser\n[has](#lr.LRParser.nodeSet) a node set, and [tree\nbuffers](#common.TreeBuffer) can only store collections of nodes\nfrom the same set. A set can have a maximum of 2**16 (65536) node\ntypes in it, so that the ids fit into 16-bit typed array slots.\n*/\nclass NodeSet {\n /**\n Create a set with the given types. The `id` property of each\n type should correspond to its position within the array.\n */\n constructor(\n /**\n The node types in this set, by id.\n */\n types) {\n this.types = types;\n for (let i = 0; i < types.length; i++)\n if (types[i].id != i)\n throw new RangeError(\"Node type ids should correspond to array positions when creating a node set\");\n }\n /**\n Create a copy of this set with some node properties added. The\n arguments to this method can be created with\n [`NodeProp.add`](#common.NodeProp.add).\n */\n extend(...props) {\n let newTypes = [];\n for (let type of this.types) {\n let newProps = null;\n for (let source of props) {\n let add = source(type);\n if (add) {\n if (!newProps)\n newProps = Object.assign({}, type.props);\n newProps[add[0].id] = add[1];\n }\n }\n newTypes.push(newProps ? new NodeType(type.name, newProps, type.id, type.flags) : type);\n }\n return new NodeSet(newTypes);\n }\n}\nconst CachedNode = new WeakMap(), CachedInnerNode = new WeakMap();\n/**\nOptions that control iteration. Can be combined with the `|`\noperator to enable multiple ones.\n*/\nvar IterMode;\n(function (IterMode) {\n /**\n When enabled, iteration will only visit [`Tree`](#common.Tree)\n objects, not nodes packed into\n [`TreeBuffer`](#common.TreeBuffer)s.\n */\n IterMode[IterMode[\"ExcludeBuffers\"] = 1] = \"ExcludeBuffers\";\n /**\n Enable this to make iteration include anonymous nodes (such as\n the nodes that wrap repeated grammar constructs into a balanced\n tree).\n */\n IterMode[IterMode[\"IncludeAnonymous\"] = 2] = \"IncludeAnonymous\";\n /**\n By default, regular [mounted](#common.NodeProp^mounted) nodes\n replace their base node in iteration. Enable this to ignore them\n instead.\n */\n IterMode[IterMode[\"IgnoreMounts\"] = 4] = \"IgnoreMounts\";\n /**\n This option only applies in\n [`enter`](#common.SyntaxNode.enter)-style methods. It tells the\n library to not enter mounted overlays if one covers the given\n position.\n */\n IterMode[IterMode[\"IgnoreOverlays\"] = 8] = \"IgnoreOverlays\";\n})(IterMode || (IterMode = {}));\n/**\nA piece of syntax tree. There are two ways to approach these\ntrees: the way they are actually stored in memory, and the\nconvenient way.\n\nSyntax trees are stored as a tree of `Tree` and `TreeBuffer`\nobjects. By packing detail information into `TreeBuffer` leaf\nnodes, the representation is made a lot more memory-efficient.\n\nHowever, when you want to actually work with tree nodes, this\nrepresentation is very awkward, so most client code will want to\nuse the [`TreeCursor`](#common.TreeCursor) or\n[`SyntaxNode`](#common.SyntaxNode) interface instead, which provides\na view on some part of this data structure, and can be used to\nmove around to adjacent nodes.\n*/\nclass Tree {\n /**\n Construct a new tree. See also [`Tree.build`](#common.Tree^build).\n */\n constructor(\n /**\n The type of the top node.\n */\n type, \n /**\n This node's child nodes.\n */\n children, \n /**\n The positions (offsets relative to the start of this tree) of\n the children.\n */\n positions, \n /**\n The total length of this tree\n */\n length, \n /**\n Per-node [node props](#common.NodeProp) to associate with this node.\n */\n props) {\n this.type = type;\n this.children = children;\n this.positions = positions;\n this.length = length;\n /**\n @internal\n */\n this.props = null;\n if (props && props.length) {\n this.props = Object.create(null);\n for (let [prop, value] of props)\n this.props[typeof prop == \"number\" ? prop : prop.id] = value;\n }\n }\n /**\n @internal\n */\n toString() {\n let mounted = MountedTree.get(this);\n if (mounted && !mounted.overlay)\n return mounted.tree.toString();\n let children = \"\";\n for (let ch of this.children) {\n let str = ch.toString();\n if (str) {\n if (children)\n children += \",\";\n children += str;\n }\n }\n return !this.type.name ? children :\n (/\\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) +\n (children.length ? \"(\" + children + \")\" : \"\");\n }\n /**\n Get a [tree cursor](#common.TreeCursor) positioned at the top of\n the tree. Mode can be used to [control](#common.IterMode) which\n nodes the cursor visits.\n */\n cursor(mode = 0) {\n return new TreeCursor(this.topNode, mode);\n }\n /**\n Get a [tree cursor](#common.TreeCursor) pointing into this tree\n at the given position and side (see\n [`moveTo`](#common.TreeCursor.moveTo).\n */\n cursorAt(pos, side = 0, mode = 0) {\n let scope = CachedNode.get(this) || this.topNode;\n let cursor = new TreeCursor(scope);\n cursor.moveTo(pos, side);\n CachedNode.set(this, cursor._tree);\n return cursor;\n }\n /**\n Get a [syntax node](#common.SyntaxNode) object for the top of the\n tree.\n */\n get topNode() {\n return new TreeNode(this, 0, 0, null);\n }\n /**\n Get the [syntax node](#common.SyntaxNode) at the given position.\n If `side` is -1, this will move into nodes that end at the\n position. If 1, it'll move into nodes that start at the\n position. With 0, it'll only enter nodes that cover the position\n from both sides.\n \n Note that this will not enter\n [overlays](#common.MountedTree.overlay), and you often want\n [`resolveInner`](#common.Tree.resolveInner) instead.\n */\n resolve(pos, side = 0) {\n let node = resolveNode(CachedNode.get(this) || this.topNode, pos, side, false);\n CachedNode.set(this, node);\n return node;\n }\n /**\n Like [`resolve`](#common.Tree.resolve), but will enter\n [overlaid](#common.MountedTree.overlay) nodes, producing a syntax node\n pointing into the innermost overlaid tree at the given position\n (with parent links going through all parent structure, including\n the host trees).\n */\n resolveInner(pos, side = 0) {\n let node = resolveNode(CachedInnerNode.get(this) || this.topNode, pos, side, true);\n CachedInnerNode.set(this, node);\n return node;\n }\n /**\n In some situations, it can be useful to iterate through all\n nodes around a position, including those in overlays that don't\n directly cover the position. This method gives you an iterator\n that will produce all nodes, from small to big, around the given\n position.\n */\n resolveStack(pos, side = 0) {\n return stackIterator(this, pos, side);\n }\n /**\n Iterate over the tree and its children, calling `enter` for any\n node that touches the `from`/`to` region (if given) before\n running over such a node's children, and `leave` (if given) when\n leaving the node. When `enter` returns `false`, that node will\n not have its children iterated over (or `leave` called).\n */\n iterate(spec) {\n let { enter, leave, from = 0, to = this.length } = spec;\n let mode = spec.mode || 0, anon = (mode & IterMode.IncludeAnonymous) > 0;\n for (let c = this.cursor(mode | IterMode.IncludeAnonymous);;) {\n let entered = false;\n if (c.from <= to && c.to >= from && (!anon && c.type.isAnonymous || enter(c) !== false)) {\n if (c.firstChild())\n continue;\n entered = true;\n }\n for (;;) {\n if (entered && leave && (anon || !c.type.isAnonymous))\n leave(c);\n if (c.nextSibling())\n break;\n if (!c.parent())\n return;\n entered = true;\n }\n }\n }\n /**\n Get the value of the given [node prop](#common.NodeProp) for this\n node. Works with both per-node and per-type props.\n */\n prop(prop) {\n return !prop.perNode ? this.type.prop(prop) : this.props ? this.props[prop.id] : undefined;\n }\n /**\n Returns the node's [per-node props](#common.NodeProp.perNode) in a\n format that can be passed to the [`Tree`](#common.Tree)\n constructor.\n */\n get propValues() {\n let result = [];\n if (this.props)\n for (let id in this.props)\n result.push([+id, this.props[id]]);\n return result;\n }\n /**\n Balance the direct children of this tree, producing a copy of\n which may have children grouped into subtrees with type\n [`NodeType.none`](#common.NodeType^none).\n */\n balance(config = {}) {\n return this.children.length <= 8 /* Balance.BranchFactor */ ? this :\n balanceRange(NodeType.none, this.children, this.positions, 0, this.children.length, 0, this.length, (children, positions, length) => new Tree(this.type, children, positions, length, this.propValues), config.makeTree || ((children, positions, length) => new Tree(NodeType.none, children, positions, length)));\n }\n /**\n Build a tree from a postfix-ordered buffer of node information,\n or a cursor over such a buffer.\n */\n static build(data) { return buildTree(data); }\n}\n/**\nThe empty tree\n*/\nTree.empty = new Tree(NodeType.none, [], [], 0);\nclass FlatBufferCursor {\n constructor(buffer, index) {\n this.buffer = buffer;\n this.index = index;\n }\n get id() { return this.buffer[this.index - 4]; }\n get start() { return this.buffer[this.index - 3]; }\n get end() { return this.buffer[this.index - 2]; }\n get size() { return this.buffer[this.index - 1]; }\n get pos() { return this.index; }\n next() { this.index -= 4; }\n fork() { return new FlatBufferCursor(this.buffer, this.index); }\n}\n/**\nTree buffers contain (type, start, end, endIndex) quads for each\nnode. In such a buffer, nodes are stored in prefix order (parents\nbefore children, with the endIndex of the parent indicating which\nchildren belong to it).\n*/\nclass TreeBuffer {\n /**\n Create a tree buffer.\n */\n constructor(\n /**\n The buffer's content.\n */\n buffer, \n /**\n The total length of the group of nodes in the buffer.\n */\n length, \n /**\n The node set used in this buffer.\n */\n set) {\n this.buffer = buffer;\n this.length = length;\n this.set = set;\n }\n /**\n @internal\n */\n get type() { return NodeType.none; }\n /**\n @internal\n */\n toString() {\n let result = [];\n for (let index = 0; index < this.buffer.length;) {\n result.push(this.childString(index));\n index = this.buffer[index + 3];\n }\n return result.join(\",\");\n }\n /**\n @internal\n */\n childString(index) {\n let id = this.buffer[index], endIndex = this.buffer[index + 3];\n let type = this.set.types[id], result = type.name;\n if (/\\W/.test(result) && !type.isError)\n result = JSON.stringify(result);\n index += 4;\n if (endIndex == index)\n return result;\n let children = [];\n while (index < endIndex) {\n children.push(this.childString(index));\n index = this.buffer[index + 3];\n }\n return result + \"(\" + children.join(\",\") + \")\";\n }\n /**\n @internal\n */\n findChild(startIndex, endIndex, dir, pos, side) {\n let { buffer } = this, pick = -1;\n for (let i = startIndex; i != endIndex; i = buffer[i + 3]) {\n if (checkSide(side, pos, buffer[i + 1], buffer[i + 2])) {\n pick = i;\n if (dir > 0)\n break;\n }\n }\n return pick;\n }\n /**\n @internal\n */\n slice(startI, endI, from) {\n let b = this.buffer;\n let copy = new Uint16Array(endI - startI), len = 0;\n for (let i = startI, j = 0; i < endI;) {\n copy[j++] = b[i++];\n copy[j++] = b[i++] - from;\n let to = copy[j++] = b[i++] - from;\n copy[j++] = b[i++] - startI;\n len = Math.max(len, to);\n }\n return new TreeBuffer(copy, len, this.set);\n }\n}\nfunction checkSide(side, pos, from, to) {\n switch (side) {\n case -2 /* Side.Before */: return from < pos;\n case -1 /* Side.AtOrBefore */: return to >= pos && from < pos;\n case 0 /* Side.Around */: return from < pos && to > pos;\n case 1 /* Side.AtOrAfter */: return from <= pos && to > pos;\n case 2 /* Side.After */: return to > pos;\n case 4 /* Side.DontCare */: return true;\n }\n}\nfunction resolveNode(node, pos, side, overlays) {\n var _a;\n // Move up to a node that actually holds the position, if possible\n while (node.from == node.to ||\n (side < 1 ? node.from >= pos : node.from > pos) ||\n (side > -1 ? node.to <= pos : node.to < pos)) {\n let parent = !overlays && node instanceof TreeNode && node.index < 0 ? null : node.parent;\n if (!parent)\n return node;\n node = parent;\n }\n let mode = overlays ? 0 : IterMode.IgnoreOverlays;\n // Must go up out of overlays when those do not overlap with pos\n if (overlays)\n for (let scan = node, parent = scan.parent; parent; scan = parent, parent = scan.parent) {\n if (scan instanceof TreeNode && scan.index < 0 && ((_a = parent.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from)\n node = parent;\n }\n for (;;) {\n let inner = node.enter(pos, side, mode);\n if (!inner)\n return node;\n node = inner;\n }\n}\nclass BaseNode {\n cursor(mode = 0) { return new TreeCursor(this, mode); }\n getChild(type, before = null, after = null) {\n let r = getChildren(this, type, before, after);\n return r.length ? r[0] : null;\n }\n getChildren(type, before = null, after = null) {\n return getChildren(this, type, before, after);\n }\n resolve(pos, side = 0) {\n return resolveNode(this, pos, side, false);\n }\n resolveInner(pos, side = 0) {\n return resolveNode(this, pos, side, true);\n }\n matchContext(context) {\n return matchNodeContext(this, context);\n }\n enterUnfinishedNodesBefore(pos) {\n let scan = this.childBefore(pos), node = this;\n while (scan) {\n let last = scan.lastChild;\n if (!last || last.to != scan.to)\n break;\n if (last.type.isError && last.from == last.to) {\n node = scan;\n scan = last.prevSibling;\n }\n else {\n scan = last;\n }\n }\n return node;\n }\n get node() { return this; }\n get next() { return this.parent; }\n}\nclass TreeNode extends BaseNode {\n constructor(_tree, from, \n // Index in parent node, set to -1 if the node is not a direct child of _parent.node (overlay)\n index, _parent) {\n super();\n this._tree = _tree;\n this.from = from;\n this.index = index;\n this._parent = _parent;\n }\n get type() { return this._tree.type; }\n get name() { return this._tree.type.name; }\n get to() { return this.from + this._tree.length; }\n nextChild(i, dir, pos, side, mode = 0) {\n for (let parent = this;;) {\n for (let { children, positions } = parent._tree, e = dir > 0 ? children.length : -1; i != e; i += dir) {\n let next = children[i], start = positions[i] + parent.from;\n if (!checkSide(side, pos, start, start + next.length))\n continue;\n if (next instanceof TreeBuffer) {\n if (mode & IterMode.ExcludeBuffers)\n continue;\n let index = next.findChild(0, next.buffer.length, dir, pos - start, side);\n if (index > -1)\n return new BufferNode(new BufferContext(parent, next, i, start), null, index);\n }\n else if ((mode & IterMode.IncludeAnonymous) || (!next.type.isAnonymous || hasChild(next))) {\n let mounted;\n if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay)\n return new TreeNode(mounted.tree, start, i, parent);\n let inner = new TreeNode(next, start, i, parent);\n return (mode & IterMode.IncludeAnonymous) || !inner.type.isAnonymous ? inner\n : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);\n }\n }\n if ((mode & IterMode.IncludeAnonymous) || !parent.type.isAnonymous)\n return null;\n if (parent.index >= 0)\n i = parent.index + dir;\n else\n i = dir < 0 ? -1 : parent._parent._tree.children.length;\n parent = parent._parent;\n if (!parent)\n return null;\n }\n }\n get firstChild() { return this.nextChild(0, 1, 0, 4 /* Side.DontCare */); }\n get lastChild() { return this.nextChild(this._tree.children.length - 1, -1, 0, 4 /* Side.DontCare */); }\n childAfter(pos) { return this.nextChild(0, 1, pos, 2 /* Side.After */); }\n childBefore(pos) { return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */); }\n enter(pos, side, mode = 0) {\n let mounted;\n if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {\n let rPos = pos - this.from;\n for (let { from, to } of mounted.overlay) {\n if ((side > 0 ? from <= rPos : from < rPos) &&\n (side < 0 ? to >= rPos : to > rPos))\n return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);\n }\n }\n return this.nextChild(0, 1, pos, side, mode);\n }\n nextSignificantParent() {\n let val = this;\n while (val.type.isAnonymous && val._parent)\n val = val._parent;\n return val;\n }\n get parent() {\n return this._parent ? this._parent.nextSignificantParent() : null;\n }\n get nextSibling() {\n return this._parent && this.index >= 0 ? this._parent.nextChild(this.index + 1, 1, 0, 4 /* Side.DontCare */) : null;\n }\n get prevSibling() {\n return this._parent && this.index >= 0 ? this._parent.nextChild(this.index - 1, -1, 0, 4 /* Side.DontCare */) : null;\n }\n get tree() { return this._tree; }\n toTree() { return this._tree; }\n /**\n @internal\n */\n toString() { return this._tree.toString(); }\n}\nfunction getChildren(node, type, before, after) {\n let cur = node.cursor(), result = [];\n if (!cur.firstChild())\n return result;\n if (before != null)\n for (let found = false; !found;) {\n found = cur.type.is(before);\n if (!cur.nextSibling())\n return result;\n }\n for (;;) {\n if (after != null && cur.type.is(after))\n return result;\n if (cur.type.is(type))\n result.push(cur.node);\n if (!cur.nextSibling())\n return after == null ? result : [];\n }\n}\nfunction matchNodeContext(node, context, i = context.length - 1) {\n for (let p = node.parent; i >= 0; p = p.parent) {\n if (!p)\n return false;\n if (!p.type.isAnonymous) {\n if (context[i] && context[i] != p.name)\n return false;\n i--;\n }\n }\n return true;\n}\nclass BufferContext {\n constructor(parent, buffer, index, start) {\n this.parent = parent;\n this.buffer = buffer;\n this.index = index;\n this.start = start;\n }\n}\nclass BufferNode extends BaseNode {\n get name() { return this.type.name; }\n get from() { return this.context.start + this.context.buffer.buffer[this.index + 1]; }\n get to() { return this.context.start + this.context.buffer.buffer[this.index + 2]; }\n constructor(context, _parent, index) {\n super();\n this.context = context;\n this._parent = _parent;\n this.index = index;\n this.type = context.buffer.set.types[context.buffer.buffer[index]];\n }\n child(dir, pos, side) {\n let { buffer } = this.context;\n let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.context.start, side);\n return index < 0 ? null : new BufferNode(this.context, this, index);\n }\n get firstChild() { return this.child(1, 0, 4 /* Side.DontCare */); }\n get lastChild() { return this.child(-1, 0, 4 /* Side.DontCare */); }\n childAfter(pos) { return this.child(1, pos, 2 /* Side.After */); }\n childBefore(pos) { return this.child(-1, pos, -2 /* Side.Before */); }\n enter(pos, side, mode = 0) {\n if (mode & IterMode.ExcludeBuffers)\n return null;\n let { buffer } = this.context;\n let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], side > 0 ? 1 : -1, pos - this.context.start, side);\n return index < 0 ? null : new BufferNode(this.context, this, index);\n }\n get parent() {\n return this._parent || this.context.parent.nextSignificantParent();\n }\n externalSibling(dir) {\n return this._parent ? null : this.context.parent.nextChild(this.context.index + dir, dir, 0, 4 /* Side.DontCare */);\n }\n get nextSibling() {\n let { buffer } = this.context;\n let after = buffer.buffer[this.index + 3];\n if (after < (this._parent ? buffer.buffer[this._parent.index + 3] : buffer.buffer.length))\n return new BufferNode(this.context, this._parent, after);\n return this.externalSibling(1);\n }\n get prevSibling() {\n let { buffer } = this.context;\n let parentStart = this._parent ? this._parent.index + 4 : 0;\n if (this.index == parentStart)\n return this.externalSibling(-1);\n return new BufferNode(this.context, this._parent, buffer.findChild(parentStart, this.index, -1, 0, 4 /* Side.DontCare */));\n }\n get tree() { return null; }\n toTree() {\n let children = [], positions = [];\n let { buffer } = this.context;\n let startI = this.index + 4, endI = buffer.buffer[this.index + 3];\n if (endI > startI) {\n let from = buffer.buffer[this.index + 1];\n children.push(buffer.slice(startI, endI, from));\n positions.push(0);\n }\n return new Tree(this.type, children, positions, this.to - this.from);\n }\n /**\n @internal\n */\n toString() { return this.context.buffer.childString(this.index); }\n}\nfunction iterStack(heads) {\n if (!heads.length)\n return null;\n let pick = 0, picked = heads[0];\n for (let i = 1; i < heads.length; i++) {\n let node = heads[i];\n if (node.from > picked.from || node.to < picked.to) {\n picked = node;\n pick = i;\n }\n }\n let next = picked instanceof TreeNode && picked.index < 0 ? null : picked.parent;\n let newHeads = heads.slice();\n if (next)\n newHeads[pick] = next;\n else\n newHeads.splice(pick, 1);\n return new StackIterator(newHeads, picked);\n}\nclass StackIterator {\n constructor(heads, node) {\n this.heads = heads;\n this.node = node;\n }\n get next() { return iterStack(this.heads); }\n}\nfunction stackIterator(tree, pos, side) {\n let inner = tree.resolveInner(pos, side), layers = null;\n for (let scan = inner instanceof TreeNode ? inner : inner.context.parent; scan; scan = scan.parent) {\n if (scan.index < 0) { // This is an overlay root\n let parent = scan.parent;\n (layers || (layers = [inner])).push(parent.resolve(pos, side));\n scan = parent;\n }\n else {\n let mount = MountedTree.get(scan.tree);\n // Relevant overlay branching off\n if (mount && mount.overlay && mount.overlay[0].from <= pos && mount.overlay[mount.overlay.length - 1].to >= pos) {\n let root = new TreeNode(mount.tree, mount.overlay[0].from + scan.from, -1, scan);\n (layers || (layers = [inner])).push(resolveNode(root, pos, side, false));\n }\n }\n }\n return layers ? iterStack(layers) : inner;\n}\n/**\nA tree cursor object focuses on a given node in a syntax tree, and\nallows you to move to adjacent nodes.\n*/\nclass TreeCursor {\n /**\n Shorthand for `.type.name`.\n */\n get name() { return this.type.name; }\n /**\n @internal\n */\n constructor(node, \n /**\n @internal\n */\n mode = 0) {\n this.mode = mode;\n /**\n @internal\n */\n this.buffer = null;\n this.stack = [];\n /**\n @internal\n */\n this.index = 0;\n this.bufferNode = null;\n if (node instanceof TreeNode) {\n this.yieldNode(node);\n }\n else {\n this._tree = node.context.parent;\n this.buffer = node.context;\n for (let n = node._parent; n; n = n._parent)\n this.stack.unshift(n.index);\n this.bufferNode = node;\n this.yieldBuf(node.index);\n }\n }\n yieldNode(node) {\n if (!node)\n return false;\n this._tree = node;\n this.type = node.type;\n this.from = node.from;\n this.to = node.to;\n return true;\n }\n yieldBuf(index, type) {\n this.index = index;\n let { start, buffer } = this.buffer;\n this.type = type || buffer.set.types[buffer.buffer[index]];\n this.from = start + buffer.buffer[index + 1];\n this.to = start + buffer.buffer[index + 2];\n return true;\n }\n /**\n @internal\n */\n yield(node) {\n if (!node)\n return false;\n if (node instanceof TreeNode) {\n this.buffer = null;\n return this.yieldNode(node);\n }\n this.buffer = node.context;\n return this.yieldBuf(node.index, node.type);\n }\n /**\n @internal\n */\n toString() {\n return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();\n }\n /**\n @internal\n */\n enterChild(dir, pos, side) {\n if (!this.buffer)\n return this.yield(this._tree.nextChild(dir < 0 ? this._tree._tree.children.length - 1 : 0, dir, pos, side, this.mode));\n let { buffer } = this.buffer;\n let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.buffer.start, side);\n if (index < 0)\n return false;\n this.stack.push(this.index);\n return this.yieldBuf(index);\n }\n /**\n Move the cursor to this node's first child. When this returns\n false, the node has no child, and the cursor has not been moved.\n */\n firstChild() { return this.enterChild(1, 0, 4 /* Side.DontCare */); }\n /**\n Move the cursor to this node's last child.\n */\n lastChild() { return this.enterChild(-1, 0, 4 /* Side.DontCare */); }\n /**\n Move the cursor to the first child that ends after `pos`.\n */\n childAfter(pos) { return this.enterChild(1, pos, 2 /* Side.After */); }\n /**\n Move to the last child that starts before `pos`.\n */\n childBefore(pos) { return this.enterChild(-1, pos, -2 /* Side.Before */); }\n /**\n Move the cursor to the child around `pos`. If side is -1 the\n child may end at that position, when 1 it may start there. This\n will also enter [overlaid](#common.MountedTree.overlay)\n [mounted](#common.NodeProp^mounted) trees unless `overlays` is\n set to false.\n */\n enter(pos, side, mode = this.mode) {\n if (!this.buffer)\n return this.yield(this._tree.enter(pos, side, mode));\n return mode & IterMode.ExcludeBuffers ? false : this.enterChild(1, pos, side);\n }\n /**\n Move to the node's parent node, if this isn't the top node.\n */\n parent() {\n if (!this.buffer)\n return this.yieldNode((this.mode & IterMode.IncludeAnonymous) ? this._tree._parent : this._tree.parent);\n if (this.stack.length)\n return this.yieldBuf(this.stack.pop());\n let parent = (this.mode & IterMode.IncludeAnonymous) ? this.buffer.parent : this.buffer.parent.nextSignificantParent();\n this.buffer = null;\n return this.yieldNode(parent);\n }\n /**\n @internal\n */\n sibling(dir) {\n if (!this.buffer)\n return !this._tree._parent ? false\n : this.yield(this._tree.index < 0 ? null\n : this._tree._parent.nextChild(this._tree.index + dir, dir, 0, 4 /* Side.DontCare */, this.mode));\n let { buffer } = this.buffer, d = this.stack.length - 1;\n if (dir < 0) {\n let parentStart = d < 0 ? 0 : this.stack[d] + 4;\n if (this.index != parentStart)\n return this.yieldBuf(buffer.findChild(parentStart, this.index, -1, 0, 4 /* Side.DontCare */));\n }\n else {\n let after = buffer.buffer[this.index + 3];\n if (after < (d < 0 ? buffer.buffer.length : buffer.buffer[this.stack[d] + 3]))\n return this.yieldBuf(after);\n }\n return d < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + dir, dir, 0, 4 /* Side.DontCare */, this.mode)) : false;\n }\n /**\n Move to this node's next sibling, if any.\n */\n nextSibling() { return this.sibling(1); }\n /**\n Move to this node's previous sibling, if any.\n */\n prevSibling() { return this.sibling(-1); }\n atLastNode(dir) {\n let index, parent, { buffer } = this;\n if (buffer) {\n if (dir > 0) {\n if (this.index < buffer.buffer.buffer.length)\n return false;\n }\n else {\n for (let i = 0; i < this.index; i++)\n if (buffer.buffer.buffer[i + 3] < this.index)\n return false;\n }\n ({ index, parent } = buffer);\n }\n else {\n ({ index, _parent: parent } = this._tree);\n }\n for (; parent; { index, _parent: parent } = parent) {\n if (index > -1)\n for (let i = index + dir, e = dir < 0 ? -1 : parent._tree.children.length; i != e; i += dir) {\n let child = parent._tree.children[i];\n if ((this.mode & IterMode.IncludeAnonymous) ||\n child instanceof TreeBuffer ||\n !child.type.isAnonymous ||\n hasChild(child))\n return false;\n }\n }\n return true;\n }\n move(dir, enter) {\n if (enter && this.enterChild(dir, 0, 4 /* Side.DontCare */))\n return true;\n for (;;) {\n if (this.sibling(dir))\n return true;\n if (this.atLastNode(dir) || !this.parent())\n return false;\n }\n }\n /**\n Move to the next node in a\n [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)\n traversal, going from a node to its first child or, if the\n current node is empty or `enter` is false, its next sibling or\n the next sibling of the first parent node that has one.\n */\n next(enter = true) { return this.move(1, enter); }\n /**\n Move to the next node in a last-to-first pre-order traveral. A\n node is followed by its last child or, if it has none, its\n previous sibling or the previous sibling of the first parent\n node that has one.\n */\n prev(enter = true) { return this.move(-1, enter); }\n /**\n Move the cursor to the innermost node that covers `pos`. If\n `side` is -1, it will enter nodes that end at `pos`. If it is 1,\n it will enter nodes that start at `pos`.\n */\n moveTo(pos, side = 0) {\n // Move up to a node that actually holds the position, if possible\n while (this.from == this.to ||\n (side < 1 ? this.from >= pos : this.from > pos) ||\n (side > -1 ? this.to <= pos : this.to < pos))\n if (!this.parent())\n break;\n // Then scan down into child nodes as far as possible\n while (this.enterChild(1, pos, side)) { }\n return this;\n }\n /**\n Get a [syntax node](#common.SyntaxNode) at the cursor's current\n position.\n */\n get node() {\n if (!this.buffer)\n return this._tree;\n let cache = this.bufferNode, result = null, depth = 0;\n if (cache && cache.context == this.buffer) {\n scan: for (let index = this.index, d = this.stack.length; d >= 0;) {\n for (let c = cache; c; c = c._parent)\n if (c.index == index) {\n if (index == this.index)\n return c;\n result = c;\n depth = d + 1;\n break scan;\n }\n index = this.stack[--d];\n }\n }\n for (let i = depth; i < this.stack.length; i++)\n result = new BufferNode(this.buffer, result, this.stack[i]);\n return this.bufferNode = new BufferNode(this.buffer, result, this.index);\n }\n /**\n Get the [tree](#common.Tree) that represents the current node, if\n any. Will return null when the node is in a [tree\n buffer](#common.TreeBuffer).\n */\n get tree() {\n return this.buffer ? null : this._tree._tree;\n }\n /**\n Iterate over the current node and all its descendants, calling\n `enter` when entering a node and `leave`, if given, when leaving\n one. When `enter` returns `false`, any children of that node are\n skipped, and `leave` isn't called for it.\n */\n iterate(enter, leave) {\n for (let depth = 0;;) {\n let mustLeave = false;\n if (this.type.isAnonymous || enter(this) !== false) {\n if (this.firstChild()) {\n depth++;\n continue;\n }\n if (!this.type.isAnonymous)\n mustLeave = true;\n }\n for (;;) {\n if (mustLeave && leave)\n leave(this);\n mustLeave = this.type.isAnonymous;\n if (this.nextSibling())\n break;\n if (!depth)\n return;\n this.parent();\n depth--;\n mustLeave = true;\n }\n }\n }\n /**\n Test whether the current node matches a given context—a sequence\n of direct parent node names. Empty strings in the context array\n are treated as wildcards.\n */\n matchContext(context) {\n if (!this.buffer)\n return matchNodeContext(this.node, context);\n let { buffer } = this.buffer, { types } = buffer.set;\n for (let i = context.length - 1, d = this.stack.length - 1; i >= 0; d--) {\n if (d < 0)\n return matchNodeContext(this.node, context, i);\n let type = types[buffer.buffer[this.stack[d]]];\n if (!type.isAnonymous) {\n if (context[i] && context[i] != type.name)\n return false;\n i--;\n }\n }\n return true;\n }\n}\nfunction hasChild(tree) {\n return tree.children.some(ch => ch instanceof TreeBuffer || !ch.type.isAnonymous || hasChild(ch));\n}\nfunction buildTree(data) {\n var _a;\n let { buffer, nodeSet, maxBufferLength = DefaultBufferLength, reused = [], minRepeatType = nodeSet.types.length } = data;\n let cursor = Array.isArray(buffer) ? new FlatBufferCursor(buffer, buffer.length) : buffer;\n let types = nodeSet.types;\n let contextHash = 0, lookAhead = 0;\n function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {\n let { id, start, end, size } = cursor;\n let lookAheadAtStart = lookAhead;\n while (size < 0) {\n cursor.next();\n if (size == -1 /* SpecialRecord.Reuse */) {\n let node = reused[id];\n children.push(node);\n positions.push(start - parentStart);\n return;\n }\n else if (size == -3 /* SpecialRecord.ContextChange */) { // Context change\n contextHash = id;\n return;\n }\n else if (size == -4 /* SpecialRecord.LookAhead */) {\n lookAhead = id;\n return;\n }\n else {\n throw new RangeError(`Unrecognized record size: ${size}`);\n }\n }\n let type = types[id], node, buffer;\n let startPos = start - parentStart;\n if (end - start <= maxBufferLength && (buffer = findBufferSize(cursor.pos - minPos, inRepeat))) {\n // Small enough for a buffer, and no reused nodes inside\n let data = new Uint16Array(buffer.size - buffer.skip);\n let endPos = cursor.pos - buffer.size, index = data.length;\n while (cursor.pos > endPos)\n index = copyToBuffer(buffer.start, data, index);\n node = new TreeBuffer(data, end - buffer.start, nodeSet);\n startPos = buffer.start - parentStart;\n }\n else { // Make it a node\n let endPos = cursor.pos - size;\n cursor.next();\n let localChildren = [], localPositions = [];\n let localInRepeat = id >= minRepeatType ? id : -1;\n let lastGroup = 0, lastEnd = end;\n while (cursor.pos > endPos) {\n if (localInRepeat >= 0 && cursor.id == localInRepeat && cursor.size >= 0) {\n if (cursor.end <= lastEnd - maxBufferLength) {\n makeRepeatLeaf(localChildren, localPositions, start, lastGroup, cursor.end, lastEnd, localInRepeat, lookAheadAtStart);\n lastGroup = localChildren.length;\n lastEnd = cursor.end;\n }\n cursor.next();\n }\n else if (depth > 2500 /* CutOff.Depth */) {\n takeFlatNode(start, endPos, localChildren, localPositions);\n }\n else {\n takeNode(start, endPos, localChildren, localPositions, localInRepeat, depth + 1);\n }\n }\n if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length)\n makeRepeatLeaf(localChildren, localPositions, start, lastGroup, start, lastEnd, localInRepeat, lookAheadAtStart);\n localChildren.reverse();\n localPositions.reverse();\n if (localInRepeat > -1 && lastGroup > 0) {\n let make = makeBalanced(type);\n node = balanceRange(type, localChildren, localPositions, 0, localChildren.length, 0, end - start, make, make);\n }\n else {\n node = makeTree(type, localChildren, localPositions, end - start, lookAheadAtStart - end);\n }\n }\n children.push(node);\n positions.push(startPos);\n }\n function takeFlatNode(parentStart, minPos, children, positions) {\n let nodes = []; // Temporary, inverted array of leaf nodes found, with absolute positions\n let nodeCount = 0, stopAt = -1;\n while (cursor.pos > minPos) {\n let { id, start, end, size } = cursor;\n if (size > 4) { // Not a leaf\n cursor.next();\n }\n else if (stopAt > -1 && start < stopAt) {\n break;\n }\n else {\n if (stopAt < 0)\n stopAt = end - maxBufferLength;\n nodes.push(id, start, end);\n nodeCount++;\n cursor.next();\n }\n }\n if (nodeCount) {\n let buffer = new Uint16Array(nodeCount * 4);\n let start = nodes[nodes.length - 2];\n for (let i = nodes.length - 3, j = 0; i >= 0; i -= 3) {\n buffer[j++] = nodes[i];\n buffer[j++] = nodes[i + 1] - start;\n buffer[j++] = nodes[i + 2] - start;\n buffer[j++] = j;\n }\n children.push(new TreeBuffer(buffer, nodes[2] - start, nodeSet));\n positions.push(start - parentStart);\n }\n }\n function makeBalanced(type) {\n return (children, positions, length) => {\n let lookAhead = 0, lastI = children.length - 1, last, lookAheadProp;\n if (lastI >= 0 && (last = children[lastI]) instanceof Tree) {\n if (!lastI && last.type == type && last.length == length)\n return last;\n if (lookAheadProp = last.prop(NodeProp.lookAhead))\n lookAhead = positions[lastI] + last.length + lookAheadProp;\n }\n return makeTree(type, children, positions, length, lookAhead);\n };\n }\n function makeRepeatLeaf(children, positions, base, i, from, to, type, lookAhead) {\n let localChildren = [], localPositions = [];\n while (children.length > i) {\n localChildren.push(children.pop());\n localPositions.push(positions.pop() + base - from);\n }\n children.push(makeTree(nodeSet.types[type], localChildren, localPositions, to - from, lookAhead - to));\n positions.push(from - base);\n }\n function makeTree(type, children, positions, length, lookAhead = 0, props) {\n if (contextHash) {\n let pair = [NodeProp.contextHash, contextHash];\n props = props ? [pair].concat(props) : [pair];\n }\n if (lookAhead > 25) {\n let pair = [NodeProp.lookAhead, lookAhead];\n props = props ? [pair].concat(props) : [pair];\n }\n return new Tree(type, children, positions, length, props);\n }\n function findBufferSize(maxSize, inRepeat) {\n // Scan through the buffer to find previous siblings that fit\n // together in a TreeBuffer, and don't contain any reused nodes\n // (which can't be stored in a buffer).\n // If `inRepeat` is > -1, ignore node boundaries of that type for\n // nesting, but make sure the end falls either at the start\n // (`maxSize`) or before such a node.\n let fork = cursor.fork();\n let size = 0, start = 0, skip = 0, minStart = fork.end - maxBufferLength;\n let result = { size: 0, start: 0, skip: 0 };\n scan: for (let minPos = fork.pos - maxSize; fork.pos > minPos;) {\n let nodeSize = fork.size;\n // Pretend nested repeat nodes of the same type don't exist\n if (fork.id == inRepeat && nodeSize >= 0) {\n // Except that we store the current state as a valid return\n // value.\n result.size = size;\n result.start = start;\n result.skip = skip;\n skip += 4;\n size += 4;\n fork.next();\n continue;\n }\n let startPos = fork.pos - nodeSize;\n if (nodeSize < 0 || startPos < minPos || fork.start < minStart)\n break;\n let localSkipped = fork.id >= minRepeatType ? 4 : 0;\n let nodeStart = fork.start;\n fork.next();\n while (fork.pos > startPos) {\n if (fork.size < 0) {\n if (fork.size == -3 /* SpecialRecord.ContextChange */)\n localSkipped += 4;\n else\n break scan;\n }\n else if (fork.id >= minRepeatType) {\n localSkipped += 4;\n }\n fork.next();\n }\n start = nodeStart;\n size += nodeSize;\n skip += localSkipped;\n }\n if (inRepeat < 0 || size == maxSize) {\n result.size = size;\n result.start = start;\n result.skip = skip;\n }\n return result.size > 4 ? result : undefined;\n }\n function copyToBuffer(bufferStart, buffer, index) {\n let { id, start, end, size } = cursor;\n cursor.next();\n if (size >= 0 && id < minRepeatType) {\n let startIndex = index;\n if (size > 4) {\n let endPos = cursor.pos - (size - 4);\n while (cursor.pos > endPos)\n index = copyToBuffer(bufferStart, buffer, index);\n }\n buffer[--index] = startIndex;\n buffer[--index] = end - bufferStart;\n buffer[--index] = start - bufferStart;\n buffer[--index] = id;\n }\n else if (size == -3 /* SpecialRecord.ContextChange */) {\n contextHash = id;\n }\n else if (size == -4 /* SpecialRecord.LookAhead */) {\n lookAhead = id;\n }\n return index;\n }\n let children = [], positions = [];\n while (cursor.pos > 0)\n takeNode(data.start || 0, data.bufferStart || 0, children, positions, -1, 0);\n let length = (_a = data.length) !== null && _a !== void 0 ? _a : (children.length ? positions[0] + children[0].length : 0);\n return new Tree(types[data.topID], children.reverse(), positions.reverse(), length);\n}\nconst nodeSizeCache = new WeakMap;\nfunction nodeSize(balanceType, node) {\n if (!balanceType.isAnonymous || node instanceof TreeBuffer || node.type != balanceType)\n return 1;\n let size = nodeSizeCache.get(node);\n if (size == null) {\n size = 1;\n for (let child of node.children) {\n if (child.type != balanceType || !(child instanceof Tree)) {\n size = 1;\n break;\n }\n size += nodeSize(balanceType, child);\n }\n nodeSizeCache.set(node, size);\n }\n return size;\n}\nfunction balanceRange(\n// The type the balanced tree's inner nodes.\nbalanceType, \n// The direct children and their positions\nchildren, positions, \n// The index range in children/positions to use\nfrom, to, \n// The start position of the nodes, relative to their parent.\nstart, \n// Length of the outer node\nlength, \n// Function to build the top node of the balanced tree\nmkTop, \n// Function to build internal nodes for the balanced tree\nmkTree) {\n let total = 0;\n for (let i = from; i < to; i++)\n total += nodeSize(balanceType, children[i]);\n let maxChild = Math.ceil((total * 1.5) / 8 /* Balance.BranchFactor */);\n let localChildren = [], localPositions = [];\n function divide(children, positions, from, to, offset) {\n for (let i = from; i < to;) {\n let groupFrom = i, groupStart = positions[i], groupSize = nodeSize(balanceType, children[i]);\n i++;\n for (; i < to; i++) {\n let nextSize = nodeSize(balanceType, children[i]);\n if (groupSize + nextSize >= maxChild)\n break;\n groupSize += nextSize;\n }\n if (i == groupFrom + 1) {\n if (groupSize > maxChild) {\n let only = children[groupFrom]; // Only trees can have a size > 1\n divide(only.children, only.positions, 0, only.children.length, positions[groupFrom] + offset);\n continue;\n }\n localChildren.push(children[groupFrom]);\n }\n else {\n let length = positions[i - 1] + children[i - 1].length - groupStart;\n localChildren.push(balanceRange(balanceType, children, positions, groupFrom, i, groupStart, length, null, mkTree));\n }\n localPositions.push(groupStart + offset - start);\n }\n }\n divide(children, positions, from, to, 0);\n return (mkTop || mkTree)(localChildren, localPositions, length);\n}\n/**\nProvides a way to associate values with pieces of trees. As long\nas that part of the tree is reused, the associated values can be\nretrieved from an updated tree.\n*/\nclass NodeWeakMap {\n constructor() {\n this.map = new WeakMap();\n }\n setBuffer(buffer, index, value) {\n let inner = this.map.get(buffer);\n if (!inner)\n this.map.set(buffer, inner = new Map);\n inner.set(index, value);\n }\n getBuffer(buffer, index) {\n let inner = this.map.get(buffer);\n return inner && inner.get(index);\n }\n /**\n Set the value for this syntax node.\n */\n set(node, value) {\n if (node instanceof BufferNode)\n this.setBuffer(node.context.buffer, node.index, value);\n else if (node instanceof TreeNode)\n this.map.set(node.tree, value);\n }\n /**\n Retrieve value for this syntax node, if it exists in the map.\n */\n get(node) {\n return node instanceof BufferNode ? this.getBuffer(node.context.buffer, node.index)\n : node instanceof TreeNode ? this.map.get(node.tree) : undefined;\n }\n /**\n Set the value for the node that a cursor currently points to.\n */\n cursorSet(cursor, value) {\n if (cursor.buffer)\n this.setBuffer(cursor.buffer.buffer, cursor.index, value);\n else\n this.map.set(cursor.tree, value);\n }\n /**\n Retrieve the value for the node that a cursor currently points\n to.\n */\n cursorGet(cursor) {\n return cursor.buffer ? this.getBuffer(cursor.buffer.buffer, cursor.index) : this.map.get(cursor.tree);\n }\n}\n\n/**\nTree fragments are used during [incremental\nparsing](#common.Parser.startParse) to track parts of old trees\nthat can be reused in a new parse. An array of fragments is used\nto track regions of an old tree whose nodes might be reused in new\nparses. Use the static\n[`applyChanges`](#common.TreeFragment^applyChanges) method to\nupdate fragments for document changes.\n*/\nclass TreeFragment {\n /**\n Construct a tree fragment. You'll usually want to use\n [`addTree`](#common.TreeFragment^addTree) and\n [`applyChanges`](#common.TreeFragment^applyChanges) instead of\n calling this directly.\n */\n constructor(\n /**\n The start of the unchanged range pointed to by this fragment.\n This refers to an offset in the _updated_ document (as opposed\n to the original tree).\n */\n from, \n /**\n The end of the unchanged range.\n */\n to, \n /**\n The tree that this fragment is based on.\n */\n tree, \n /**\n The offset between the fragment's tree and the document that\n this fragment can be used against. Add this when going from\n document to tree positions, subtract it to go from tree to\n document positions.\n */\n offset, openStart = false, openEnd = false) {\n this.from = from;\n this.to = to;\n this.tree = tree;\n this.offset = offset;\n this.open = (openStart ? 1 /* Open.Start */ : 0) | (openEnd ? 2 /* Open.End */ : 0);\n }\n /**\n Whether the start of the fragment represents the start of a\n parse, or the end of a change. (In the second case, it may not\n be safe to reuse some nodes at the start, depending on the\n parsing algorithm.)\n */\n get openStart() { return (this.open & 1 /* Open.Start */) > 0; }\n /**\n Whether the end of the fragment represents the end of a\n full-document parse, or the start of a change.\n */\n get openEnd() { return (this.open & 2 /* Open.End */) > 0; }\n /**\n Create a set of fragments from a freshly parsed tree, or update\n an existing set of fragments by replacing the ones that overlap\n with a tree with content from the new tree. When `partial` is\n true, the parse is treated as incomplete, and the resulting\n fragment has [`openEnd`](#common.TreeFragment.openEnd) set to\n true.\n */\n static addTree(tree, fragments = [], partial = false) {\n let result = [new TreeFragment(0, tree.length, tree, 0, false, partial)];\n for (let f of fragments)\n if (f.to > tree.length)\n result.push(f);\n return result;\n }\n /**\n Apply a set of edits to an array of fragments, removing or\n splitting fragments as necessary to remove edited ranges, and\n adjusting offsets for fragments that moved.\n */\n static applyChanges(fragments, changes, minGap = 128) {\n if (!changes.length)\n return fragments;\n let result = [];\n let fI = 1, nextF = fragments.length ? fragments[0] : null;\n for (let cI = 0, pos = 0, off = 0;; cI++) {\n let nextC = cI < changes.length ? changes[cI] : null;\n let nextPos = nextC ? nextC.fromA : 1e9;\n if (nextPos - pos >= minGap)\n while (nextF && nextF.from < nextPos) {\n let cut = nextF;\n if (pos >= cut.from || nextPos <= cut.to || off) {\n let fFrom = Math.max(cut.from, pos) - off, fTo = Math.min(cut.to, nextPos) - off;\n cut = fFrom >= fTo ? null : new TreeFragment(fFrom, fTo, cut.tree, cut.offset + off, cI > 0, !!nextC);\n }\n if (cut)\n result.push(cut);\n if (nextF.to > nextPos)\n break;\n nextF = fI < fragments.length ? fragments[fI++] : null;\n }\n if (!nextC)\n break;\n pos = nextC.toA;\n off = nextC.toA - nextC.toB;\n }\n return result;\n }\n}\n/**\nA superclass that parsers should extend.\n*/\nclass Parser {\n /**\n Start a parse, returning a [partial parse](#common.PartialParse)\n object. [`fragments`](#common.TreeFragment) can be passed in to\n make the parse incremental.\n \n By default, the entire input is parsed. You can pass `ranges`,\n which should be a sorted array of non-empty, non-overlapping\n ranges, to parse only those ranges. The tree returned in that\n case will start at `ranges[0].from`.\n */\n startParse(input, fragments, ranges) {\n if (typeof input == \"string\")\n input = new StringInput(input);\n ranges = !ranges ? [new Range(0, input.length)] : ranges.length ? ranges.map(r => new Range(r.from, r.to)) : [new Range(0, 0)];\n return this.createParse(input, fragments || [], ranges);\n }\n /**\n Run a full parse, returning the resulting tree.\n */\n parse(input, fragments, ranges) {\n let parse = this.startParse(input, fragments, ranges);\n for (;;) {\n let done = parse.advance();\n if (done)\n return done;\n }\n }\n}\nclass StringInput {\n constructor(string) {\n this.string = string;\n }\n get length() { return this.string.length; }\n chunk(from) { return this.string.slice(from); }\n get lineChunks() { return false; }\n read(from, to) { return this.string.slice(from, to); }\n}\n\n/**\nCreate a parse wrapper that, after the inner parse completes,\nscans its tree for mixed language regions with the `nest`\nfunction, runs the resulting [inner parses](#common.NestedParse),\nand then [mounts](#common.NodeProp^mounted) their results onto the\ntree.\n*/\nfunction parseMixed(nest) {\n return (parse, input, fragments, ranges) => new MixedParse(parse, nest, input, fragments, ranges);\n}\nclass InnerParse {\n constructor(parser, parse, overlay, target, from) {\n this.parser = parser;\n this.parse = parse;\n this.overlay = overlay;\n this.target = target;\n this.from = from;\n }\n}\nfunction checkRanges(ranges) {\n if (!ranges.length || ranges.some(r => r.from >= r.to))\n throw new RangeError(\"Invalid inner parse ranges given: \" + JSON.stringify(ranges));\n}\nclass ActiveOverlay {\n constructor(parser, predicate, mounts, index, start, target, prev) {\n this.parser = parser;\n this.predicate = predicate;\n this.mounts = mounts;\n this.index = index;\n this.start = start;\n this.target = target;\n this.prev = prev;\n this.depth = 0;\n this.ranges = [];\n }\n}\nconst stoppedInner = new NodeProp({ perNode: true });\nclass MixedParse {\n constructor(base, nest, input, fragments, ranges) {\n this.nest = nest;\n this.input = input;\n this.fragments = fragments;\n this.ranges = ranges;\n this.inner = [];\n this.innerDone = 0;\n this.baseTree = null;\n this.stoppedAt = null;\n this.baseParse = base;\n }\n advance() {\n if (this.baseParse) {\n let done = this.baseParse.advance();\n if (!done)\n return null;\n this.baseParse = null;\n this.baseTree = done;\n this.startInner();\n if (this.stoppedAt != null)\n for (let inner of this.inner)\n inner.parse.stopAt(this.stoppedAt);\n }\n if (this.innerDone == this.inner.length) {\n let result = this.baseTree;\n if (this.stoppedAt != null)\n result = new Tree(result.type, result.children, result.positions, result.length, result.propValues.concat([[stoppedInner, this.stoppedAt]]));\n return result;\n }\n let inner = this.inner[this.innerDone], done = inner.parse.advance();\n if (done) {\n this.innerDone++;\n // This is a somewhat dodgy but super helpful hack where we\n // patch up nodes created by the inner parse (and thus\n // presumably not aliased anywhere else) to hold the information\n // about the inner parse.\n let props = Object.assign(Object.create(null), inner.target.props);\n props[NodeProp.mounted.id] = new MountedTree(done, inner.overlay, inner.parser);\n inner.target.props = props;\n }\n return null;\n }\n get parsedPos() {\n if (this.baseParse)\n return 0;\n let pos = this.input.length;\n for (let i = this.innerDone; i < this.inner.length; i++) {\n if (this.inner[i].from < pos)\n pos = Math.min(pos, this.inner[i].parse.parsedPos);\n }\n return pos;\n }\n stopAt(pos) {\n this.stoppedAt = pos;\n if (this.baseParse)\n this.baseParse.stopAt(pos);\n else\n for (let i = this.innerDone; i < this.inner.length; i++)\n this.inner[i].parse.stopAt(pos);\n }\n startInner() {\n let fragmentCursor = new FragmentCursor(this.fragments);\n let overlay = null;\n let covered = null;\n let cursor = new TreeCursor(new TreeNode(this.baseTree, this.ranges[0].from, 0, null), IterMode.IncludeAnonymous | IterMode.IgnoreMounts);\n scan: for (let nest, isCovered;;) {\n let enter = true, range;\n if (this.stoppedAt != null && cursor.from >= this.stoppedAt) {\n enter = false;\n }\n else if (fragmentCursor.hasNode(cursor)) {\n if (overlay) {\n let match = overlay.mounts.find(m => m.frag.from <= cursor.from && m.frag.to >= cursor.to && m.mount.overlay);\n if (match)\n for (let r of match.mount.overlay) {\n let from = r.from + match.pos, to = r.to + match.pos;\n if (from >= cursor.from && to <= cursor.to && !overlay.ranges.some(r => r.from < to && r.to > from))\n overlay.ranges.push({ from, to });\n }\n }\n enter = false;\n }\n else if (covered && (isCovered = checkCover(covered.ranges, cursor.from, cursor.to))) {\n enter = isCovered != 2 /* Cover.Full */;\n }\n else if (!cursor.type.isAnonymous && (nest = this.nest(cursor, this.input)) &&\n (cursor.from < cursor.to || !nest.overlay)) {\n if (!cursor.tree)\n materialize(cursor);\n let oldMounts = fragmentCursor.findMounts(cursor.from, nest.parser);\n if (typeof nest.overlay == \"function\") {\n overlay = new ActiveOverlay(nest.parser, nest.overlay, oldMounts, this.inner.length, cursor.from, cursor.tree, overlay);\n }\n else {\n let ranges = punchRanges(this.ranges, nest.overlay ||\n (cursor.from < cursor.to ? [new Range(cursor.from, cursor.to)] : []));\n if (ranges.length)\n checkRanges(ranges);\n if (ranges.length || !nest.overlay)\n this.inner.push(new InnerParse(nest.parser, ranges.length ? nest.parser.startParse(this.input, enterFragments(oldMounts, ranges), ranges)\n : nest.parser.startParse(\"\"), nest.overlay ? nest.overlay.map(r => new Range(r.from - cursor.from, r.to - cursor.from)) : null, cursor.tree, ranges.length ? ranges[0].from : cursor.from));\n if (!nest.overlay)\n enter = false;\n else if (ranges.length)\n covered = { ranges, depth: 0, prev: covered };\n }\n }\n else if (overlay && (range = overlay.predicate(cursor))) {\n if (range === true)\n range = new Range(cursor.from, cursor.to);\n if (range.from < range.to)\n overlay.ranges.push(range);\n }\n if (enter && cursor.firstChild()) {\n if (overlay)\n overlay.depth++;\n if (covered)\n covered.depth++;\n }\n else {\n for (;;) {\n if (cursor.nextSibling())\n break;\n if (!cursor.parent())\n break scan;\n if (overlay && !--overlay.depth) {\n let ranges = punchRanges(this.ranges, overlay.ranges);\n if (ranges.length) {\n checkRanges(ranges);\n this.inner.splice(overlay.index, 0, new InnerParse(overlay.parser, overlay.parser.startParse(this.input, enterFragments(overlay.mounts, ranges), ranges), overlay.ranges.map(r => new Range(r.from - overlay.start, r.to - overlay.start)), overlay.target, ranges[0].from));\n }\n overlay = overlay.prev;\n }\n if (covered && !--covered.depth)\n covered = covered.prev;\n }\n }\n }\n }\n}\nfunction checkCover(covered, from, to) {\n for (let range of covered) {\n if (range.from >= to)\n break;\n if (range.to > from)\n return range.from <= from && range.to >= to ? 2 /* Cover.Full */ : 1 /* Cover.Partial */;\n }\n return 0 /* Cover.None */;\n}\n// Take a piece of buffer and convert it into a stand-alone\n// TreeBuffer.\nfunction sliceBuf(buf, startI, endI, nodes, positions, off) {\n if (startI < endI) {\n let from = buf.buffer[startI + 1];\n nodes.push(buf.slice(startI, endI, from));\n positions.push(from - off);\n }\n}\n// This function takes a node that's in a buffer, and converts it, and\n// its parent buffer nodes, into a Tree. This is again acting on the\n// assumption that the trees and buffers have been constructed by the\n// parse that was ran via the mix parser, and thus aren't shared with\n// any other code, making violations of the immutability safe.\nfunction materialize(cursor) {\n let { node } = cursor, stack = [];\n let buffer = node.context.buffer;\n // Scan up to the nearest tree\n do {\n stack.push(cursor.index);\n cursor.parent();\n } while (!cursor.tree);\n // Find the index of the buffer in that tree\n let base = cursor.tree, i = base.children.indexOf(buffer);\n let buf = base.children[i], b = buf.buffer, newStack = [i];\n // Split a level in the buffer, putting the nodes before and after\n // the child that contains `node` into new buffers.\n function split(startI, endI, type, innerOffset, length, stackPos) {\n let targetI = stack[stackPos];\n let children = [], positions = [];\n sliceBuf(buf, startI, targetI, children, positions, innerOffset);\n let from = b[targetI + 1], to = b[targetI + 2];\n newStack.push(children.length);\n let child = stackPos\n ? split(targetI + 4, b[targetI + 3], buf.set.types[b[targetI]], from, to - from, stackPos - 1)\n : node.toTree();\n children.push(child);\n positions.push(from - innerOffset);\n sliceBuf(buf, b[targetI + 3], endI, children, positions, innerOffset);\n return new Tree(type, children, positions, length);\n }\n base.children[i] = split(0, b.length, NodeType.none, 0, buf.length, stack.length - 1);\n // Move the cursor back to the target node\n for (let index of newStack) {\n let tree = cursor.tree.children[index], pos = cursor.tree.positions[index];\n cursor.yield(new TreeNode(tree, pos + cursor.from, index, cursor._tree));\n }\n}\nclass StructureCursor {\n constructor(root, offset) {\n this.offset = offset;\n this.done = false;\n this.cursor = root.cursor(IterMode.IncludeAnonymous | IterMode.IgnoreMounts);\n }\n // Move to the first node (in pre-order) that starts at or after `pos`.\n moveTo(pos) {\n let { cursor } = this, p = pos - this.offset;\n while (!this.done && cursor.from < p) {\n if (cursor.to >= pos && cursor.enter(p, 1, IterMode.IgnoreOverlays | IterMode.ExcludeBuffers)) ;\n else if (!cursor.next(false))\n this.done = true;\n }\n }\n hasNode(cursor) {\n this.moveTo(cursor.from);\n if (!this.done && this.cursor.from + this.offset == cursor.from && this.cursor.tree) {\n for (let tree = this.cursor.tree;;) {\n if (tree == cursor.tree)\n return true;\n if (tree.children.length && tree.positions[0] == 0 && tree.children[0] instanceof Tree)\n tree = tree.children[0];\n else\n break;\n }\n }\n return false;\n }\n}\nclass FragmentCursor {\n constructor(fragments) {\n var _a;\n this.fragments = fragments;\n this.curTo = 0;\n this.fragI = 0;\n if (fragments.length) {\n let first = this.curFrag = fragments[0];\n this.curTo = (_a = first.tree.prop(stoppedInner)) !== null && _a !== void 0 ? _a : first.to;\n this.inner = new StructureCursor(first.tree, -first.offset);\n }\n else {\n this.curFrag = this.inner = null;\n }\n }\n hasNode(node) {\n while (this.curFrag && node.from >= this.curTo)\n this.nextFrag();\n return this.curFrag && this.curFrag.from <= node.from && this.curTo >= node.to && this.inner.hasNode(node);\n }\n nextFrag() {\n var _a;\n this.fragI++;\n if (this.fragI == this.fragments.length) {\n this.curFrag = this.inner = null;\n }\n else {\n let frag = this.curFrag = this.fragments[this.fragI];\n this.curTo = (_a = frag.tree.prop(stoppedInner)) !== null && _a !== void 0 ? _a : frag.to;\n this.inner = new StructureCursor(frag.tree, -frag.offset);\n }\n }\n findMounts(pos, parser) {\n var _a;\n let result = [];\n if (this.inner) {\n this.inner.cursor.moveTo(pos, 1);\n for (let pos = this.inner.cursor.node; pos; pos = pos.parent) {\n let mount = (_a = pos.tree) === null || _a === void 0 ? void 0 : _a.prop(NodeProp.mounted);\n if (mount && mount.parser == parser) {\n for (let i = this.fragI; i < this.fragments.length; i++) {\n let frag = this.fragments[i];\n if (frag.from >= pos.to)\n break;\n if (frag.tree == this.curFrag.tree)\n result.push({\n frag,\n pos: pos.from - frag.offset,\n mount\n });\n }\n }\n }\n }\n return result;\n }\n}\nfunction punchRanges(outer, ranges) {\n let copy = null, current = ranges;\n for (let i = 1, j = 0; i < outer.length; i++) {\n let gapFrom = outer[i - 1].to, gapTo = outer[i].from;\n for (; j < current.length; j++) {\n let r = current[j];\n if (r.from >= gapTo)\n break;\n if (r.to <= gapFrom)\n continue;\n if (!copy)\n current = copy = ranges.slice();\n if (r.from < gapFrom) {\n copy[j] = new Range(r.from, gapFrom);\n if (r.to > gapTo)\n copy.splice(j + 1, 0, new Range(gapTo, r.to));\n }\n else if (r.to > gapTo) {\n copy[j--] = new Range(gapTo, r.to);\n }\n else {\n copy.splice(j--, 1);\n }\n }\n }\n return current;\n}\nfunction findCoverChanges(a, b, from, to) {\n let iA = 0, iB = 0, inA = false, inB = false, pos = -1e9;\n let result = [];\n for (;;) {\n let nextA = iA == a.length ? 1e9 : inA ? a[iA].to : a[iA].from;\n let nextB = iB == b.length ? 1e9 : inB ? b[iB].to : b[iB].from;\n if (inA != inB) {\n let start = Math.max(pos, from), end = Math.min(nextA, nextB, to);\n if (start < end)\n result.push(new Range(start, end));\n }\n pos = Math.min(nextA, nextB);\n if (pos == 1e9)\n break;\n if (nextA == pos) {\n if (!inA)\n inA = true;\n else {\n inA = false;\n iA++;\n }\n }\n if (nextB == pos) {\n if (!inB)\n inB = true;\n else {\n inB = false;\n iB++;\n }\n }\n }\n return result;\n}\n// Given a number of fragments for the outer tree, and a set of ranges\n// to parse, find fragments for inner trees mounted around those\n// ranges, if any.\nfunction enterFragments(mounts, ranges) {\n let result = [];\n for (let { pos, mount, frag } of mounts) {\n let startPos = pos + (mount.overlay ? mount.overlay[0].from : 0), endPos = startPos + mount.tree.length;\n let from = Math.max(frag.from, startPos), to = Math.min(frag.to, endPos);\n if (mount.overlay) {\n let overlay = mount.overlay.map(r => new Range(r.from + pos, r.to + pos));\n let changes = findCoverChanges(ranges, overlay, from, to);\n for (let i = 0, pos = from;; i++) {\n let last = i == changes.length, end = last ? to : changes[i].from;\n if (end > pos)\n result.push(new TreeFragment(pos, end, mount.tree, -startPos, frag.from >= pos || frag.openStart, frag.to <= end || frag.openEnd));\n if (last)\n break;\n pos = changes[i].to;\n }\n }\n else {\n result.push(new TreeFragment(from, to, mount.tree, -startPos, frag.from >= startPos || frag.openStart, frag.to <= endPos || frag.openEnd));\n }\n }\n return result;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@lezer/common/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@lezer/highlight/dist/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/@lezer/highlight/dist/index.js ***! + \*****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Tag: () => (/* binding */ Tag),\n/* harmony export */ classHighlighter: () => (/* binding */ classHighlighter),\n/* harmony export */ getStyleTags: () => (/* binding */ getStyleTags),\n/* harmony export */ highlightCode: () => (/* binding */ highlightCode),\n/* harmony export */ highlightTree: () => (/* binding */ highlightTree),\n/* harmony export */ styleTags: () => (/* binding */ styleTags),\n/* harmony export */ tagHighlighter: () => (/* binding */ tagHighlighter),\n/* harmony export */ tags: () => (/* binding */ tags)\n/* harmony export */ });\n/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/common */ \"./node_modules/@lezer/common/dist/index.js\");\n\n\nlet nextTagID = 0;\n/**\nHighlighting tags are markers that denote a highlighting category.\nThey are [associated](#highlight.styleTags) with parts of a syntax\ntree by a language mode, and then mapped to an actual CSS style by\na [highlighter](#highlight.Highlighter).\n\nBecause syntax tree node types and highlight styles have to be\nable to talk the same language, CodeMirror uses a mostly _closed_\n[vocabulary](#highlight.tags) of syntax tags (as opposed to\ntraditional open string-based systems, which make it hard for\nhighlighting themes to cover all the tokens produced by the\nvarious languages).\n\nIt _is_ possible to [define](#highlight.Tag^define) your own\nhighlighting tags for system-internal use (where you control both\nthe language package and the highlighter), but such tags will not\nbe picked up by regular highlighters (though you can derive them\nfrom standard tags to allow highlighters to fall back to those).\n*/\nclass Tag {\n /**\n @internal\n */\n constructor(\n /**\n The set of this tag and all its parent tags, starting with\n this one itself and sorted in order of decreasing specificity.\n */\n set, \n /**\n The base unmodified tag that this one is based on, if it's\n modified @internal\n */\n base, \n /**\n The modifiers applied to this.base @internal\n */\n modified) {\n this.set = set;\n this.base = base;\n this.modified = modified;\n /**\n @internal\n */\n this.id = nextTagID++;\n }\n /**\n Define a new tag. If `parent` is given, the tag is treated as a\n sub-tag of that parent, and\n [highlighters](#highlight.tagHighlighter) that don't mention\n this tag will try to fall back to the parent tag (or grandparent\n tag, etc).\n */\n static define(parent) {\n if (parent === null || parent === void 0 ? void 0 : parent.base)\n throw new Error(\"Can not derive from a modified tag\");\n let tag = new Tag([], null, []);\n tag.set.push(tag);\n if (parent)\n for (let t of parent.set)\n tag.set.push(t);\n return tag;\n }\n /**\n Define a tag _modifier_, which is a function that, given a tag,\n will return a tag that is a subtag of the original. Applying the\n same modifier to a twice tag will return the same value (`m1(t1)\n == m1(t1)`) and applying multiple modifiers will, regardless or\n order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).\n \n When multiple modifiers are applied to a given base tag, each\n smaller set of modifiers is registered as a parent, so that for\n example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,\n `m1(m3(t1)`, and so on.\n */\n static defineModifier() {\n let mod = new Modifier;\n return (tag) => {\n if (tag.modified.indexOf(mod) > -1)\n return tag;\n return Modifier.get(tag.base || tag, tag.modified.concat(mod).sort((a, b) => a.id - b.id));\n };\n }\n}\nlet nextModifierID = 0;\nclass Modifier {\n constructor() {\n this.instances = [];\n this.id = nextModifierID++;\n }\n static get(base, mods) {\n if (!mods.length)\n return base;\n let exists = mods[0].instances.find(t => t.base == base && sameArray(mods, t.modified));\n if (exists)\n return exists;\n let set = [], tag = new Tag(set, base, mods);\n for (let m of mods)\n m.instances.push(tag);\n let configs = powerSet(mods);\n for (let parent of base.set)\n if (!parent.modified.length)\n for (let config of configs)\n set.push(Modifier.get(parent, config));\n return tag;\n }\n}\nfunction sameArray(a, b) {\n return a.length == b.length && a.every((x, i) => x == b[i]);\n}\nfunction powerSet(array) {\n let sets = [[]];\n for (let i = 0; i < array.length; i++) {\n for (let j = 0, e = sets.length; j < e; j++) {\n sets.push(sets[j].concat(array[i]));\n }\n }\n return sets.sort((a, b) => b.length - a.length);\n}\n/**\nThis function is used to add a set of tags to a language syntax\nvia [`NodeSet.extend`](#common.NodeSet.extend) or\n[`LRParser.configure`](#lr.LRParser.configure).\n\nThe argument object maps node selectors to [highlighting\ntags](#highlight.Tag) or arrays of tags.\n\nNode selectors may hold one or more (space-separated) node paths.\nSuch a path can be a [node name](#common.NodeType.name), or\nmultiple node names (or `*` wildcards) separated by slash\ncharacters, as in `\"Block/Declaration/VariableName\"`. Such a path\nmatches the final node but only if its direct parent nodes are the\nother nodes mentioned. A `*` in such a path matches any parent,\nbut only a single level—wildcards that match multiple parents\naren't supported, both for efficiency reasons and because Lezer\ntrees make it rather hard to reason about what they would match.)\n\nA path can be ended with `/...` to indicate that the tag assigned\nto the node should also apply to all child nodes, even if they\nmatch their own style (by default, only the innermost style is\nused).\n\nWhen a path ends in `!`, as in `Attribute!`, no further matching\nhappens for the node's child nodes, and the entire node gets the\ngiven style.\n\nIn this notation, node names that contain `/`, `!`, `*`, or `...`\nmust be quoted as JSON strings.\n\nFor example:\n\n```javascript\nparser.withProps(\n styleTags({\n // Style Number and BigNumber nodes\n \"Number BigNumber\": tags.number,\n // Style Escape nodes whose parent is String\n \"String/Escape\": tags.escape,\n // Style anything inside Attributes nodes\n \"Attributes!\": tags.meta,\n // Add a style to all content inside Italic nodes\n \"Italic/...\": tags.emphasis,\n // Style InvalidString nodes as both `string` and `invalid`\n \"InvalidString\": [tags.string, tags.invalid],\n // Style the node named \"/\" as punctuation\n '\"/\"': tags.punctuation\n })\n)\n```\n*/\nfunction styleTags(spec) {\n let byName = Object.create(null);\n for (let prop in spec) {\n let tags = spec[prop];\n if (!Array.isArray(tags))\n tags = [tags];\n for (let part of prop.split(\" \"))\n if (part) {\n let pieces = [], mode = 2 /* Mode.Normal */, rest = part;\n for (let pos = 0;;) {\n if (rest == \"...\" && pos > 0 && pos + 3 == part.length) {\n mode = 1 /* Mode.Inherit */;\n break;\n }\n let m = /^\"(?:[^\"\\\\]|\\\\.)*?\"|[^\\/!]+/.exec(rest);\n if (!m)\n throw new RangeError(\"Invalid path: \" + part);\n pieces.push(m[0] == \"*\" ? \"\" : m[0][0] == '\"' ? JSON.parse(m[0]) : m[0]);\n pos += m[0].length;\n if (pos == part.length)\n break;\n let next = part[pos++];\n if (pos == part.length && next == \"!\") {\n mode = 0 /* Mode.Opaque */;\n break;\n }\n if (next != \"/\")\n throw new RangeError(\"Invalid path: \" + part);\n rest = part.slice(pos);\n }\n let last = pieces.length - 1, inner = pieces[last];\n if (!inner)\n throw new RangeError(\"Invalid path: \" + part);\n let rule = new Rule(tags, mode, last > 0 ? pieces.slice(0, last) : null);\n byName[inner] = rule.sort(byName[inner]);\n }\n }\n return ruleNodeProp.add(byName);\n}\nconst ruleNodeProp = new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp();\nclass Rule {\n constructor(tags, mode, context, next) {\n this.tags = tags;\n this.mode = mode;\n this.context = context;\n this.next = next;\n }\n get opaque() { return this.mode == 0 /* Mode.Opaque */; }\n get inherit() { return this.mode == 1 /* Mode.Inherit */; }\n sort(other) {\n if (!other || other.depth < this.depth) {\n this.next = other;\n return this;\n }\n other.next = this.sort(other.next);\n return other;\n }\n get depth() { return this.context ? this.context.length : 0; }\n}\nRule.empty = new Rule([], 2 /* Mode.Normal */, null);\n/**\nDefine a [highlighter](#highlight.Highlighter) from an array of\ntag/class pairs. Classes associated with more specific tags will\ntake precedence.\n*/\nfunction tagHighlighter(tags, options) {\n let map = Object.create(null);\n for (let style of tags) {\n if (!Array.isArray(style.tag))\n map[style.tag.id] = style.class;\n else\n for (let tag of style.tag)\n map[tag.id] = style.class;\n }\n let { scope, all = null } = options || {};\n return {\n style: (tags) => {\n let cls = all;\n for (let tag of tags) {\n for (let sub of tag.set) {\n let tagClass = map[sub.id];\n if (tagClass) {\n cls = cls ? cls + \" \" + tagClass : tagClass;\n break;\n }\n }\n }\n return cls;\n },\n scope\n };\n}\nfunction highlightTags(highlighters, tags) {\n let result = null;\n for (let highlighter of highlighters) {\n let value = highlighter.style(tags);\n if (value)\n result = result ? result + \" \" + value : value;\n }\n return result;\n}\n/**\nHighlight the given [tree](#common.Tree) with the given\n[highlighter](#highlight.Highlighter). Often, the higher-level\n[`highlightCode`](#highlight.highlightCode) function is easier to\nuse.\n*/\nfunction highlightTree(tree, highlighter, \n/**\nAssign styling to a region of the text. Will be called, in order\nof position, for any ranges where more than zero classes apply.\n`classes` is a space separated string of CSS classes.\n*/\nputStyle, \n/**\nThe start of the range to highlight.\n*/\nfrom = 0, \n/**\nThe end of the range.\n*/\nto = tree.length) {\n let builder = new HighlightBuilder(from, Array.isArray(highlighter) ? highlighter : [highlighter], putStyle);\n builder.highlightRange(tree.cursor(), from, to, \"\", builder.highlighters);\n builder.flush(to);\n}\n/**\nHighlight the given tree with the given highlighter, calling\n`putText` for every piece of text, either with a set of classes or\nwith the empty string when unstyled, and `putBreak` for every line\nbreak.\n*/\nfunction highlightCode(code, tree, highlighter, putText, putBreak, from = 0, to = code.length) {\n let pos = from;\n function writeTo(p, classes) {\n if (p <= pos)\n return;\n for (let text = code.slice(pos, p), i = 0;;) {\n let nextBreak = text.indexOf(\"\\n\", i);\n let upto = nextBreak < 0 ? text.length : nextBreak;\n if (upto > i)\n putText(text.slice(i, upto), classes);\n if (nextBreak < 0)\n break;\n putBreak();\n i = nextBreak + 1;\n }\n pos = p;\n }\n highlightTree(tree, highlighter, (from, to, classes) => {\n writeTo(from, \"\");\n writeTo(to, classes);\n }, from, to);\n writeTo(to, \"\");\n}\nclass HighlightBuilder {\n constructor(at, highlighters, span) {\n this.at = at;\n this.highlighters = highlighters;\n this.span = span;\n this.class = \"\";\n }\n startSpan(at, cls) {\n if (cls != this.class) {\n this.flush(at);\n if (at > this.at)\n this.at = at;\n this.class = cls;\n }\n }\n flush(to) {\n if (to > this.at && this.class)\n this.span(this.at, to, this.class);\n }\n highlightRange(cursor, from, to, inheritedClass, highlighters) {\n let { type, from: start, to: end } = cursor;\n if (start >= to || end <= from)\n return;\n if (type.isTop)\n highlighters = this.highlighters.filter(h => !h.scope || h.scope(type));\n let cls = inheritedClass;\n let rule = getStyleTags(cursor) || Rule.empty;\n let tagCls = highlightTags(highlighters, rule.tags);\n if (tagCls) {\n if (cls)\n cls += \" \";\n cls += tagCls;\n if (rule.mode == 1 /* Mode.Inherit */)\n inheritedClass += (inheritedClass ? \" \" : \"\") + tagCls;\n }\n this.startSpan(Math.max(from, start), cls);\n if (rule.opaque)\n return;\n let mounted = cursor.tree && cursor.tree.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.mounted);\n if (mounted && mounted.overlay) {\n let inner = cursor.node.enter(mounted.overlay[0].from + start, 1);\n let innerHighlighters = this.highlighters.filter(h => !h.scope || h.scope(mounted.tree.type));\n let hasChild = cursor.firstChild();\n for (let i = 0, pos = start;; i++) {\n let next = i < mounted.overlay.length ? mounted.overlay[i] : null;\n let nextPos = next ? next.from + start : end;\n let rangeFrom = Math.max(from, pos), rangeTo = Math.min(to, nextPos);\n if (rangeFrom < rangeTo && hasChild) {\n while (cursor.from < rangeTo) {\n this.highlightRange(cursor, rangeFrom, rangeTo, inheritedClass, highlighters);\n this.startSpan(Math.min(rangeTo, cursor.to), cls);\n if (cursor.to >= nextPos || !cursor.nextSibling())\n break;\n }\n }\n if (!next || nextPos > to)\n break;\n pos = next.to + start;\n if (pos > from) {\n this.highlightRange(inner.cursor(), Math.max(from, next.from + start), Math.min(to, pos), \"\", innerHighlighters);\n this.startSpan(Math.min(to, pos), cls);\n }\n }\n if (hasChild)\n cursor.parent();\n }\n else if (cursor.firstChild()) {\n if (mounted)\n inheritedClass = \"\";\n do {\n if (cursor.to <= from)\n continue;\n if (cursor.from >= to)\n break;\n this.highlightRange(cursor, from, to, inheritedClass, highlighters);\n this.startSpan(Math.min(to, cursor.to), cls);\n } while (cursor.nextSibling());\n cursor.parent();\n }\n }\n}\n/**\nMatch a syntax node's [highlight rules](#highlight.styleTags). If\nthere's a match, return its set of tags, and whether it is\nopaque (uses a `!`) or applies to all child nodes (`/...`).\n*/\nfunction getStyleTags(node) {\n let rule = node.type.prop(ruleNodeProp);\n while (rule && rule.context && !node.matchContext(rule.context))\n rule = rule.next;\n return rule || null;\n}\nconst t = Tag.define;\nconst comment = t(), name = t(), typeName = t(name), propertyName = t(name), literal = t(), string = t(literal), number = t(literal), content = t(), heading = t(content), keyword = t(), operator = t(), punctuation = t(), bracket = t(punctuation), meta = t();\n/**\nThe default set of highlighting [tags](#highlight.Tag).\n\nThis collection is heavily biased towards programming languages,\nand necessarily incomplete. A full ontology of syntactic\nconstructs would fill a stack of books, and be impractical to\nwrite themes for. So try to make do with this set. If all else\nfails, [open an\nissue](https://github.com/codemirror/codemirror.next) to propose a\nnew tag, or [define](#highlight.Tag^define) a local custom tag for\nyour use case.\n\nNote that it is not obligatory to always attach the most specific\ntag possible to an element—if your grammar can't easily\ndistinguish a certain type of element (such as a local variable),\nit is okay to style it as its more general variant (a variable).\n\nFor tags that extend some parent tag, the documentation links to\nthe parent.\n*/\nconst tags = {\n /**\n A comment.\n */\n comment,\n /**\n A line [comment](#highlight.tags.comment).\n */\n lineComment: t(comment),\n /**\n A block [comment](#highlight.tags.comment).\n */\n blockComment: t(comment),\n /**\n A documentation [comment](#highlight.tags.comment).\n */\n docComment: t(comment),\n /**\n Any kind of identifier.\n */\n name,\n /**\n The [name](#highlight.tags.name) of a variable.\n */\n variableName: t(name),\n /**\n A type [name](#highlight.tags.name).\n */\n typeName: typeName,\n /**\n A tag name (subtag of [`typeName`](#highlight.tags.typeName)).\n */\n tagName: t(typeName),\n /**\n A property or field [name](#highlight.tags.name).\n */\n propertyName: propertyName,\n /**\n An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).\n */\n attributeName: t(propertyName),\n /**\n The [name](#highlight.tags.name) of a class.\n */\n className: t(name),\n /**\n A label [name](#highlight.tags.name).\n */\n labelName: t(name),\n /**\n A namespace [name](#highlight.tags.name).\n */\n namespace: t(name),\n /**\n The [name](#highlight.tags.name) of a macro.\n */\n macroName: t(name),\n /**\n A literal value.\n */\n literal,\n /**\n A string [literal](#highlight.tags.literal).\n */\n string,\n /**\n A documentation [string](#highlight.tags.string).\n */\n docString: t(string),\n /**\n A character literal (subtag of [string](#highlight.tags.string)).\n */\n character: t(string),\n /**\n An attribute value (subtag of [string](#highlight.tags.string)).\n */\n attributeValue: t(string),\n /**\n A number [literal](#highlight.tags.literal).\n */\n number,\n /**\n An integer [number](#highlight.tags.number) literal.\n */\n integer: t(number),\n /**\n A floating-point [number](#highlight.tags.number) literal.\n */\n float: t(number),\n /**\n A boolean [literal](#highlight.tags.literal).\n */\n bool: t(literal),\n /**\n Regular expression [literal](#highlight.tags.literal).\n */\n regexp: t(literal),\n /**\n An escape [literal](#highlight.tags.literal), for example a\n backslash escape in a string.\n */\n escape: t(literal),\n /**\n A color [literal](#highlight.tags.literal).\n */\n color: t(literal),\n /**\n A URL [literal](#highlight.tags.literal).\n */\n url: t(literal),\n /**\n A language keyword.\n */\n keyword,\n /**\n The [keyword](#highlight.tags.keyword) for the self or this\n object.\n */\n self: t(keyword),\n /**\n The [keyword](#highlight.tags.keyword) for null.\n */\n null: t(keyword),\n /**\n A [keyword](#highlight.tags.keyword) denoting some atomic value.\n */\n atom: t(keyword),\n /**\n A [keyword](#highlight.tags.keyword) that represents a unit.\n */\n unit: t(keyword),\n /**\n A modifier [keyword](#highlight.tags.keyword).\n */\n modifier: t(keyword),\n /**\n A [keyword](#highlight.tags.keyword) that acts as an operator.\n */\n operatorKeyword: t(keyword),\n /**\n A control-flow related [keyword](#highlight.tags.keyword).\n */\n controlKeyword: t(keyword),\n /**\n A [keyword](#highlight.tags.keyword) that defines something.\n */\n definitionKeyword: t(keyword),\n /**\n A [keyword](#highlight.tags.keyword) related to defining or\n interfacing with modules.\n */\n moduleKeyword: t(keyword),\n /**\n An operator.\n */\n operator,\n /**\n An [operator](#highlight.tags.operator) that dereferences something.\n */\n derefOperator: t(operator),\n /**\n Arithmetic-related [operator](#highlight.tags.operator).\n */\n arithmeticOperator: t(operator),\n /**\n Logical [operator](#highlight.tags.operator).\n */\n logicOperator: t(operator),\n /**\n Bit [operator](#highlight.tags.operator).\n */\n bitwiseOperator: t(operator),\n /**\n Comparison [operator](#highlight.tags.operator).\n */\n compareOperator: t(operator),\n /**\n [Operator](#highlight.tags.operator) that updates its operand.\n */\n updateOperator: t(operator),\n /**\n [Operator](#highlight.tags.operator) that defines something.\n */\n definitionOperator: t(operator),\n /**\n Type-related [operator](#highlight.tags.operator).\n */\n typeOperator: t(operator),\n /**\n Control-flow [operator](#highlight.tags.operator).\n */\n controlOperator: t(operator),\n /**\n Program or markup punctuation.\n */\n punctuation,\n /**\n [Punctuation](#highlight.tags.punctuation) that separates\n things.\n */\n separator: t(punctuation),\n /**\n Bracket-style [punctuation](#highlight.tags.punctuation).\n */\n bracket,\n /**\n Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`\n tokens).\n */\n angleBracket: t(bracket),\n /**\n Square [brackets](#highlight.tags.bracket) (usually `[` and `]`\n tokens).\n */\n squareBracket: t(bracket),\n /**\n Parentheses (usually `(` and `)` tokens). Subtag of\n [bracket](#highlight.tags.bracket).\n */\n paren: t(bracket),\n /**\n Braces (usually `{` and `}` tokens). Subtag of\n [bracket](#highlight.tags.bracket).\n */\n brace: t(bracket),\n /**\n Content, for example plain text in XML or markup documents.\n */\n content,\n /**\n [Content](#highlight.tags.content) that represents a heading.\n */\n heading,\n /**\n A level 1 [heading](#highlight.tags.heading).\n */\n heading1: t(heading),\n /**\n A level 2 [heading](#highlight.tags.heading).\n */\n heading2: t(heading),\n /**\n A level 3 [heading](#highlight.tags.heading).\n */\n heading3: t(heading),\n /**\n A level 4 [heading](#highlight.tags.heading).\n */\n heading4: t(heading),\n /**\n A level 5 [heading](#highlight.tags.heading).\n */\n heading5: t(heading),\n /**\n A level 6 [heading](#highlight.tags.heading).\n */\n heading6: t(heading),\n /**\n A prose separator (such as a horizontal rule).\n */\n contentSeparator: t(content),\n /**\n [Content](#highlight.tags.content) that represents a list.\n */\n list: t(content),\n /**\n [Content](#highlight.tags.content) that represents a quote.\n */\n quote: t(content),\n /**\n [Content](#highlight.tags.content) that is emphasized.\n */\n emphasis: t(content),\n /**\n [Content](#highlight.tags.content) that is styled strong.\n */\n strong: t(content),\n /**\n [Content](#highlight.tags.content) that is part of a link.\n */\n link: t(content),\n /**\n [Content](#highlight.tags.content) that is styled as code or\n monospace.\n */\n monospace: t(content),\n /**\n [Content](#highlight.tags.content) that has a strike-through\n style.\n */\n strikethrough: t(content),\n /**\n Inserted text in a change-tracking format.\n */\n inserted: t(),\n /**\n Deleted text.\n */\n deleted: t(),\n /**\n Changed text.\n */\n changed: t(),\n /**\n An invalid or unsyntactic element.\n */\n invalid: t(),\n /**\n Metadata or meta-instruction.\n */\n meta,\n /**\n [Metadata](#highlight.tags.meta) that applies to the entire\n document.\n */\n documentMeta: t(meta),\n /**\n [Metadata](#highlight.tags.meta) that annotates or adds\n attributes to a given syntactic element.\n */\n annotation: t(meta),\n /**\n Processing instruction or preprocessor directive. Subtag of\n [meta](#highlight.tags.meta).\n */\n processingInstruction: t(meta),\n /**\n [Modifier](#highlight.Tag^defineModifier) that indicates that a\n given element is being defined. Expected to be used with the\n various [name](#highlight.tags.name) tags.\n */\n definition: Tag.defineModifier(),\n /**\n [Modifier](#highlight.Tag^defineModifier) that indicates that\n something is constant. Mostly expected to be used with\n [variable names](#highlight.tags.variableName).\n */\n constant: Tag.defineModifier(),\n /**\n [Modifier](#highlight.Tag^defineModifier) used to indicate that\n a [variable](#highlight.tags.variableName) or [property\n name](#highlight.tags.propertyName) is being called or defined\n as a function.\n */\n function: Tag.defineModifier(),\n /**\n [Modifier](#highlight.Tag^defineModifier) that can be applied to\n [names](#highlight.tags.name) to indicate that they belong to\n the language's standard environment.\n */\n standard: Tag.defineModifier(),\n /**\n [Modifier](#highlight.Tag^defineModifier) that indicates a given\n [names](#highlight.tags.name) is local to some scope.\n */\n local: Tag.defineModifier(),\n /**\n A generic variant [modifier](#highlight.Tag^defineModifier) that\n can be used to tag language-specific alternative variants of\n some common tag. It is recommended for themes to define special\n forms of at least the [string](#highlight.tags.string) and\n [variable name](#highlight.tags.variableName) tags, since those\n come up a lot.\n */\n special: Tag.defineModifier()\n};\n/**\nThis is a highlighter that adds stable, predictable classes to\ntokens, for styling with external CSS.\n\nThe following tags are mapped to their name prefixed with `\"tok-\"`\n(for example `\"tok-comment\"`):\n\n* [`link`](#highlight.tags.link)\n* [`heading`](#highlight.tags.heading)\n* [`emphasis`](#highlight.tags.emphasis)\n* [`strong`](#highlight.tags.strong)\n* [`keyword`](#highlight.tags.keyword)\n* [`atom`](#highlight.tags.atom)\n* [`bool`](#highlight.tags.bool)\n* [`url`](#highlight.tags.url)\n* [`labelName`](#highlight.tags.labelName)\n* [`inserted`](#highlight.tags.inserted)\n* [`deleted`](#highlight.tags.deleted)\n* [`literal`](#highlight.tags.literal)\n* [`string`](#highlight.tags.string)\n* [`number`](#highlight.tags.number)\n* [`variableName`](#highlight.tags.variableName)\n* [`typeName`](#highlight.tags.typeName)\n* [`namespace`](#highlight.tags.namespace)\n* [`className`](#highlight.tags.className)\n* [`macroName`](#highlight.tags.macroName)\n* [`propertyName`](#highlight.tags.propertyName)\n* [`operator`](#highlight.tags.operator)\n* [`comment`](#highlight.tags.comment)\n* [`meta`](#highlight.tags.meta)\n* [`punctuation`](#highlight.tags.punctuation)\n* [`invalid`](#highlight.tags.invalid)\n\nIn addition, these mappings are provided:\n\n* [`regexp`](#highlight.tags.regexp),\n [`escape`](#highlight.tags.escape), and\n [`special`](#highlight.tags.special)[`(string)`](#highlight.tags.string)\n are mapped to `\"tok-string2\"`\n* [`special`](#highlight.tags.special)[`(variableName)`](#highlight.tags.variableName)\n to `\"tok-variableName2\"`\n* [`local`](#highlight.tags.local)[`(variableName)`](#highlight.tags.variableName)\n to `\"tok-variableName tok-local\"`\n* [`definition`](#highlight.tags.definition)[`(variableName)`](#highlight.tags.variableName)\n to `\"tok-variableName tok-definition\"`\n* [`definition`](#highlight.tags.definition)[`(propertyName)`](#highlight.tags.propertyName)\n to `\"tok-propertyName tok-definition\"`\n*/\nconst classHighlighter = tagHighlighter([\n { tag: tags.link, class: \"tok-link\" },\n { tag: tags.heading, class: \"tok-heading\" },\n { tag: tags.emphasis, class: \"tok-emphasis\" },\n { tag: tags.strong, class: \"tok-strong\" },\n { tag: tags.keyword, class: \"tok-keyword\" },\n { tag: tags.atom, class: \"tok-atom\" },\n { tag: tags.bool, class: \"tok-bool\" },\n { tag: tags.url, class: \"tok-url\" },\n { tag: tags.labelName, class: \"tok-labelName\" },\n { tag: tags.inserted, class: \"tok-inserted\" },\n { tag: tags.deleted, class: \"tok-deleted\" },\n { tag: tags.literal, class: \"tok-literal\" },\n { tag: tags.string, class: \"tok-string\" },\n { tag: tags.number, class: \"tok-number\" },\n { tag: [tags.regexp, tags.escape, tags.special(tags.string)], class: \"tok-string2\" },\n { tag: tags.variableName, class: \"tok-variableName\" },\n { tag: tags.local(tags.variableName), class: \"tok-variableName tok-local\" },\n { tag: tags.definition(tags.variableName), class: \"tok-variableName tok-definition\" },\n { tag: tags.special(tags.variableName), class: \"tok-variableName2\" },\n { tag: tags.definition(tags.propertyName), class: \"tok-propertyName tok-definition\" },\n { tag: tags.typeName, class: \"tok-typeName\" },\n { tag: tags.namespace, class: \"tok-namespace\" },\n { tag: tags.className, class: \"tok-className\" },\n { tag: tags.macroName, class: \"tok-macroName\" },\n { tag: tags.propertyName, class: \"tok-propertyName\" },\n { tag: tags.operator, class: \"tok-operator\" },\n { tag: tags.comment, class: \"tok-comment\" },\n { tag: tags.meta, class: \"tok-meta\" },\n { tag: tags.invalid, class: \"tok-invalid\" },\n { tag: tags.punctuation, class: \"tok-punctuation\" }\n]);\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@lezer/highlight/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/@lezer/lr/dist/index.js": +/*!**********************************************!*\ + !*** ./node_modules/@lezer/lr/dist/index.js ***! + \**********************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ContextTracker: () => (/* binding */ ContextTracker),\n/* harmony export */ ExternalTokenizer: () => (/* binding */ ExternalTokenizer),\n/* harmony export */ InputStream: () => (/* binding */ InputStream),\n/* harmony export */ LRParser: () => (/* binding */ LRParser),\n/* harmony export */ LocalTokenGroup: () => (/* binding */ LocalTokenGroup),\n/* harmony export */ Stack: () => (/* binding */ Stack)\n/* harmony export */ });\n/* harmony import */ var _lezer_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/common */ \"./node_modules/@lezer/common/dist/index.js\");\n\n\n/**\nA parse stack. These are used internally by the parser to track\nparsing progress. They also provide some properties and methods\nthat external code such as a tokenizer can use to get information\nabout the parse state.\n*/\nclass Stack {\n /**\n @internal\n */\n constructor(\n /**\n The parse that this stack is part of @internal\n */\n p, \n /**\n Holds state, input pos, buffer index triplets for all but the\n top state @internal\n */\n stack, \n /**\n The current parse state @internal\n */\n state, \n // The position at which the next reduce should take place. This\n // can be less than `this.pos` when skipped expressions have been\n // added to the stack (which should be moved outside of the next\n // reduction)\n /**\n @internal\n */\n reducePos, \n /**\n The input position up to which this stack has parsed.\n */\n pos, \n /**\n The dynamic score of the stack, including dynamic precedence\n and error-recovery penalties\n @internal\n */\n score, \n // The output buffer. Holds (type, start, end, size) quads\n // representing nodes created by the parser, where `size` is\n // amount of buffer array entries covered by this node.\n /**\n @internal\n */\n buffer, \n // The base offset of the buffer. When stacks are split, the split\n // instance shared the buffer history with its parent up to\n // `bufferBase`, which is the absolute offset (including the\n // offset of previous splits) into the buffer at which this stack\n // starts writing.\n /**\n @internal\n */\n bufferBase, \n /**\n @internal\n */\n curContext, \n /**\n @internal\n */\n lookAhead = 0, \n // A parent stack from which this was split off, if any. This is\n // set up so that it always points to a stack that has some\n // additional buffer content, never to a stack with an equal\n // `bufferBase`.\n /**\n @internal\n */\n parent) {\n this.p = p;\n this.stack = stack;\n this.state = state;\n this.reducePos = reducePos;\n this.pos = pos;\n this.score = score;\n this.buffer = buffer;\n this.bufferBase = bufferBase;\n this.curContext = curContext;\n this.lookAhead = lookAhead;\n this.parent = parent;\n }\n /**\n @internal\n */\n toString() {\n return `[${this.stack.filter((_, i) => i % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? \"!\" + this.score : \"\"}`;\n }\n // Start an empty stack\n /**\n @internal\n */\n static start(p, state, pos = 0) {\n let cx = p.parser.context;\n return new Stack(p, [], state, pos, pos, 0, [], 0, cx ? new StackContext(cx, cx.start) : null, 0, null);\n }\n /**\n The stack's current [context](#lr.ContextTracker) value, if\n any. Its type will depend on the context tracker's type\n parameter, or it will be `null` if there is no context\n tracker.\n */\n get context() { return this.curContext ? this.curContext.context : null; }\n // Push a state onto the stack, tracking its start position as well\n // as the buffer base at that point.\n /**\n @internal\n */\n pushState(state, start) {\n this.stack.push(this.state, start, this.bufferBase + this.buffer.length);\n this.state = state;\n }\n // Apply a reduce action\n /**\n @internal\n */\n reduce(action) {\n var _a;\n let depth = action >> 19 /* Action.ReduceDepthShift */, type = action & 65535 /* Action.ValueMask */;\n let { parser } = this.p;\n if (this.reducePos < this.pos - 25 /* Lookahead.Margin */)\n this.setLookAhead(this.pos);\n let dPrec = parser.dynamicPrecedence(type);\n if (dPrec)\n this.score += dPrec;\n if (depth == 0) {\n this.pushState(parser.getGoto(this.state, type, true), this.reducePos);\n // Zero-depth reductions are a special case—they add stuff to\n // the stack without popping anything off.\n if (type < parser.minRepeatTerm)\n this.storeNode(type, this.reducePos, this.reducePos, 4, true);\n this.reduceContext(type, this.reducePos);\n return;\n }\n // Find the base index into `this.stack`, content after which will\n // be dropped. Note that with `StayFlag` reductions we need to\n // consume two extra frames (the dummy parent node for the skipped\n // expression and the state that we'll be staying in, which should\n // be moved to `this.state`).\n let base = this.stack.length - ((depth - 1) * 3) - (action & 262144 /* Action.StayFlag */ ? 6 : 0);\n let start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;\n // This is a kludge to try and detect overly deep left-associative\n // trees, which will not increase the parse stack depth and thus\n // won't be caught by the regular stack-depth limit check.\n if (size >= 2000 /* Recover.MinBigReduction */ && !((_a = this.p.parser.nodeSet.types[type]) === null || _a === void 0 ? void 0 : _a.isAnonymous)) {\n if (start == this.p.lastBigReductionStart) {\n this.p.bigReductionCount++;\n this.p.lastBigReductionSize = size;\n }\n else if (this.p.lastBigReductionSize < size) {\n this.p.bigReductionCount = 1;\n this.p.lastBigReductionStart = start;\n this.p.lastBigReductionSize = size;\n }\n }\n let bufferBase = base ? this.stack[base - 1] : 0, count = this.bufferBase + this.buffer.length - bufferBase;\n // Store normal terms or `R -> R R` repeat reductions\n if (type < parser.minRepeatTerm || (action & 131072 /* Action.RepeatFlag */)) {\n let pos = parser.stateFlag(this.state, 1 /* StateFlag.Skipped */) ? this.pos : this.reducePos;\n this.storeNode(type, start, pos, count + 4, true);\n }\n if (action & 262144 /* Action.StayFlag */) {\n this.state = this.stack[base];\n }\n else {\n let baseStateID = this.stack[base - 3];\n this.state = parser.getGoto(baseStateID, type, true);\n }\n while (this.stack.length > base)\n this.stack.pop();\n this.reduceContext(type, start);\n }\n // Shift a value into the buffer\n /**\n @internal\n */\n storeNode(term, start, end, size = 4, isReduce = false) {\n if (term == 0 /* Term.Err */ &&\n (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {\n // Try to omit/merge adjacent error nodes\n let cur = this, top = this.buffer.length;\n if (top == 0 && cur.parent) {\n top = cur.bufferBase - cur.parent.bufferBase;\n cur = cur.parent;\n }\n if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {\n if (start == end)\n return;\n if (cur.buffer[top - 2] >= start) {\n cur.buffer[top - 2] = end;\n return;\n }\n }\n }\n if (!isReduce || this.pos == end) { // Simple case, just append\n this.buffer.push(term, start, end, size);\n }\n else { // There may be skipped nodes that have to be moved forward\n let index = this.buffer.length;\n if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */)\n while (index > 0 && this.buffer[index - 2] > end) {\n // Move this record forward\n this.buffer[index] = this.buffer[index - 4];\n this.buffer[index + 1] = this.buffer[index - 3];\n this.buffer[index + 2] = this.buffer[index - 2];\n this.buffer[index + 3] = this.buffer[index - 1];\n index -= 4;\n if (size > 4)\n size -= 4;\n }\n this.buffer[index] = term;\n this.buffer[index + 1] = start;\n this.buffer[index + 2] = end;\n this.buffer[index + 3] = size;\n }\n }\n // Apply a shift action\n /**\n @internal\n */\n shift(action, type, start, end) {\n if (action & 131072 /* Action.GotoFlag */) {\n this.pushState(action & 65535 /* Action.ValueMask */, this.pos);\n }\n else if ((action & 262144 /* Action.StayFlag */) == 0) { // Regular shift\n let nextState = action, { parser } = this.p;\n if (end > this.pos || type <= parser.maxNode) {\n this.pos = end;\n if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */))\n this.reducePos = end;\n }\n this.pushState(nextState, start);\n this.shiftContext(type, start);\n if (type <= parser.maxNode)\n this.buffer.push(type, start, end, 4);\n }\n else { // Shift-and-stay, which means this is a skipped token\n this.pos = end;\n this.shiftContext(type, start);\n if (type <= this.p.parser.maxNode)\n this.buffer.push(type, start, end, 4);\n }\n }\n // Apply an action\n /**\n @internal\n */\n apply(action, next, nextStart, nextEnd) {\n if (action & 65536 /* Action.ReduceFlag */)\n this.reduce(action);\n else\n this.shift(action, next, nextStart, nextEnd);\n }\n // Add a prebuilt (reused) node into the buffer.\n /**\n @internal\n */\n useNode(value, next) {\n let index = this.p.reused.length - 1;\n if (index < 0 || this.p.reused[index] != value) {\n this.p.reused.push(value);\n index++;\n }\n let start = this.pos;\n this.reducePos = this.pos = start + value.length;\n this.pushState(next, start);\n this.buffer.push(index, start, this.reducePos, -1 /* size == -1 means this is a reused value */);\n if (this.curContext)\n this.updateContext(this.curContext.tracker.reuse(this.curContext.context, value, this, this.p.stream.reset(this.pos - value.length)));\n }\n // Split the stack. Due to the buffer sharing and the fact\n // that `this.stack` tends to stay quite shallow, this isn't very\n // expensive.\n /**\n @internal\n */\n split() {\n let parent = this;\n let off = parent.buffer.length;\n // Because the top of the buffer (after this.pos) may be mutated\n // to reorder reductions and skipped tokens, and shared buffers\n // should be immutable, this copies any outstanding skipped tokens\n // to the new buffer, and puts the base pointer before them.\n while (off > 0 && parent.buffer[off - 2] > parent.reducePos)\n off -= 4;\n let buffer = parent.buffer.slice(off), base = parent.bufferBase + off;\n // Make sure parent points to an actual parent with content, if there is such a parent.\n while (parent && base == parent.bufferBase)\n parent = parent.parent;\n return new Stack(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, buffer, base, this.curContext, this.lookAhead, parent);\n }\n // Try to recover from an error by 'deleting' (ignoring) one token.\n /**\n @internal\n */\n recoverByDelete(next, nextEnd) {\n let isNode = next <= this.p.parser.maxNode;\n if (isNode)\n this.storeNode(next, this.pos, nextEnd, 4);\n this.storeNode(0 /* Term.Err */, this.pos, nextEnd, isNode ? 8 : 4);\n this.pos = this.reducePos = nextEnd;\n this.score -= 190 /* Recover.Delete */;\n }\n /**\n Check if the given term would be able to be shifted (optionally\n after some reductions) on this stack. This can be useful for\n external tokenizers that want to make sure they only provide a\n given token when it applies.\n */\n canShift(term) {\n for (let sim = new SimulatedStack(this);;) {\n let action = this.p.parser.stateSlot(sim.state, 4 /* ParseState.DefaultReduce */) || this.p.parser.hasAction(sim.state, term);\n if (action == 0)\n return false;\n if ((action & 65536 /* Action.ReduceFlag */) == 0)\n return true;\n sim.reduce(action);\n }\n }\n // Apply up to Recover.MaxNext recovery actions that conceptually\n // inserts some missing token or rule.\n /**\n @internal\n */\n recoverByInsert(next) {\n if (this.stack.length >= 300 /* Recover.MaxInsertStackDepth */)\n return [];\n let nextStates = this.p.parser.nextStates(this.state);\n if (nextStates.length > 4 /* Recover.MaxNext */ << 1 || this.stack.length >= 120 /* Recover.DampenInsertStackDepth */) {\n let best = [];\n for (let i = 0, s; i < nextStates.length; i += 2) {\n if ((s = nextStates[i + 1]) != this.state && this.p.parser.hasAction(s, next))\n best.push(nextStates[i], s);\n }\n if (this.stack.length < 120 /* Recover.DampenInsertStackDepth */)\n for (let i = 0; best.length < 4 /* Recover.MaxNext */ << 1 && i < nextStates.length; i += 2) {\n let s = nextStates[i + 1];\n if (!best.some((v, i) => (i & 1) && v == s))\n best.push(nextStates[i], s);\n }\n nextStates = best;\n }\n let result = [];\n for (let i = 0; i < nextStates.length && result.length < 4 /* Recover.MaxNext */; i += 2) {\n let s = nextStates[i + 1];\n if (s == this.state)\n continue;\n let stack = this.split();\n stack.pushState(s, this.pos);\n stack.storeNode(0 /* Term.Err */, stack.pos, stack.pos, 4, true);\n stack.shiftContext(nextStates[i], this.pos);\n stack.reducePos = this.pos;\n stack.score -= 200 /* Recover.Insert */;\n result.push(stack);\n }\n return result;\n }\n // Force a reduce, if possible. Return false if that can't\n // be done.\n /**\n @internal\n */\n forceReduce() {\n let { parser } = this.p;\n let reduce = parser.stateSlot(this.state, 5 /* ParseState.ForcedReduce */);\n if ((reduce & 65536 /* Action.ReduceFlag */) == 0)\n return false;\n if (!parser.validAction(this.state, reduce)) {\n let depth = reduce >> 19 /* Action.ReduceDepthShift */, term = reduce & 65535 /* Action.ValueMask */;\n let target = this.stack.length - depth * 3;\n if (target < 0 || parser.getGoto(this.stack[target], term, false) < 0) {\n let backup = this.findForcedReduction();\n if (backup == null)\n return false;\n reduce = backup;\n }\n this.storeNode(0 /* Term.Err */, this.pos, this.pos, 4, true);\n this.score -= 100 /* Recover.Reduce */;\n }\n this.reducePos = this.pos;\n this.reduce(reduce);\n return true;\n }\n /**\n Try to scan through the automaton to find some kind of reduction\n that can be applied. Used when the regular ForcedReduce field\n isn't a valid action. @internal\n */\n findForcedReduction() {\n let { parser } = this.p, seen = [];\n let explore = (state, depth) => {\n if (seen.includes(state))\n return;\n seen.push(state);\n return parser.allActions(state, (action) => {\n if (action & (262144 /* Action.StayFlag */ | 131072 /* Action.GotoFlag */)) ;\n else if (action & 65536 /* Action.ReduceFlag */) {\n let rDepth = (action >> 19 /* Action.ReduceDepthShift */) - depth;\n if (rDepth > 1) {\n let term = action & 65535 /* Action.ValueMask */, target = this.stack.length - rDepth * 3;\n if (target >= 0 && parser.getGoto(this.stack[target], term, false) >= 0)\n return (rDepth << 19 /* Action.ReduceDepthShift */) | 65536 /* Action.ReduceFlag */ | term;\n }\n }\n else {\n let found = explore(action, depth + 1);\n if (found != null)\n return found;\n }\n });\n };\n return explore(this.state, 0);\n }\n /**\n @internal\n */\n forceAll() {\n while (!this.p.parser.stateFlag(this.state, 2 /* StateFlag.Accepting */)) {\n if (!this.forceReduce()) {\n this.storeNode(0 /* Term.Err */, this.pos, this.pos, 4, true);\n break;\n }\n }\n return this;\n }\n /**\n Check whether this state has no further actions (assumed to be a direct descendant of the\n top state, since any other states must be able to continue\n somehow). @internal\n */\n get deadEnd() {\n if (this.stack.length != 3)\n return false;\n let { parser } = this.p;\n return parser.data[parser.stateSlot(this.state, 1 /* ParseState.Actions */)] == 65535 /* Seq.End */ &&\n !parser.stateSlot(this.state, 4 /* ParseState.DefaultReduce */);\n }\n /**\n Restart the stack (put it back in its start state). Only safe\n when this.stack.length == 3 (state is directly below the top\n state). @internal\n */\n restart() {\n this.storeNode(0 /* Term.Err */, this.pos, this.pos, 4, true);\n this.state = this.stack[0];\n this.stack.length = 0;\n }\n /**\n @internal\n */\n sameState(other) {\n if (this.state != other.state || this.stack.length != other.stack.length)\n return false;\n for (let i = 0; i < this.stack.length; i += 3)\n if (this.stack[i] != other.stack[i])\n return false;\n return true;\n }\n /**\n Get the parser used by this stack.\n */\n get parser() { return this.p.parser; }\n /**\n Test whether a given dialect (by numeric ID, as exported from\n the terms file) is enabled.\n */\n dialectEnabled(dialectID) { return this.p.parser.dialect.flags[dialectID]; }\n shiftContext(term, start) {\n if (this.curContext)\n this.updateContext(this.curContext.tracker.shift(this.curContext.context, term, this, this.p.stream.reset(start)));\n }\n reduceContext(term, start) {\n if (this.curContext)\n this.updateContext(this.curContext.tracker.reduce(this.curContext.context, term, this, this.p.stream.reset(start)));\n }\n /**\n @internal\n */\n emitContext() {\n let last = this.buffer.length - 1;\n if (last < 0 || this.buffer[last] != -3)\n this.buffer.push(this.curContext.hash, this.pos, this.pos, -3);\n }\n /**\n @internal\n */\n emitLookAhead() {\n let last = this.buffer.length - 1;\n if (last < 0 || this.buffer[last] != -4)\n this.buffer.push(this.lookAhead, this.pos, this.pos, -4);\n }\n updateContext(context) {\n if (context != this.curContext.context) {\n let newCx = new StackContext(this.curContext.tracker, context);\n if (newCx.hash != this.curContext.hash)\n this.emitContext();\n this.curContext = newCx;\n }\n }\n /**\n @internal\n */\n setLookAhead(lookAhead) {\n if (lookAhead > this.lookAhead) {\n this.emitLookAhead();\n this.lookAhead = lookAhead;\n }\n }\n /**\n @internal\n */\n close() {\n if (this.curContext && this.curContext.tracker.strict)\n this.emitContext();\n if (this.lookAhead > 0)\n this.emitLookAhead();\n }\n}\nclass StackContext {\n constructor(tracker, context) {\n this.tracker = tracker;\n this.context = context;\n this.hash = tracker.strict ? tracker.hash(context) : 0;\n }\n}\n// Used to cheaply run some reductions to scan ahead without mutating\n// an entire stack\nclass SimulatedStack {\n constructor(start) {\n this.start = start;\n this.state = start.state;\n this.stack = start.stack;\n this.base = this.stack.length;\n }\n reduce(action) {\n let term = action & 65535 /* Action.ValueMask */, depth = action >> 19 /* Action.ReduceDepthShift */;\n if (depth == 0) {\n if (this.stack == this.start.stack)\n this.stack = this.stack.slice();\n this.stack.push(this.state, 0, 0);\n this.base += 3;\n }\n else {\n this.base -= (depth - 1) * 3;\n }\n let goto = this.start.p.parser.getGoto(this.stack[this.base - 3], term, true);\n this.state = goto;\n }\n}\n// This is given to `Tree.build` to build a buffer, and encapsulates\n// the parent-stack-walking necessary to read the nodes.\nclass StackBufferCursor {\n constructor(stack, pos, index) {\n this.stack = stack;\n this.pos = pos;\n this.index = index;\n this.buffer = stack.buffer;\n if (this.index == 0)\n this.maybeNext();\n }\n static create(stack, pos = stack.bufferBase + stack.buffer.length) {\n return new StackBufferCursor(stack, pos, pos - stack.bufferBase);\n }\n maybeNext() {\n let next = this.stack.parent;\n if (next != null) {\n this.index = this.stack.bufferBase - next.bufferBase;\n this.stack = next;\n this.buffer = next.buffer;\n }\n }\n get id() { return this.buffer[this.index - 4]; }\n get start() { return this.buffer[this.index - 3]; }\n get end() { return this.buffer[this.index - 2]; }\n get size() { return this.buffer[this.index - 1]; }\n next() {\n this.index -= 4;\n this.pos -= 4;\n if (this.index == 0)\n this.maybeNext();\n }\n fork() {\n return new StackBufferCursor(this.stack, this.pos, this.index);\n }\n}\n\n// See lezer-generator/src/encode.ts for comments about the encoding\n// used here\nfunction decodeArray(input, Type = Uint16Array) {\n if (typeof input != \"string\")\n return input;\n let array = null;\n for (let pos = 0, out = 0; pos < input.length;) {\n let value = 0;\n for (;;) {\n let next = input.charCodeAt(pos++), stop = false;\n if (next == 126 /* Encode.BigValCode */) {\n value = 65535 /* Encode.BigVal */;\n break;\n }\n if (next >= 92 /* Encode.Gap2 */)\n next--;\n if (next >= 34 /* Encode.Gap1 */)\n next--;\n let digit = next - 32 /* Encode.Start */;\n if (digit >= 46 /* Encode.Base */) {\n digit -= 46 /* Encode.Base */;\n stop = true;\n }\n value += digit;\n if (stop)\n break;\n value *= 46 /* Encode.Base */;\n }\n if (array)\n array[out++] = value;\n else\n array = new Type(value);\n }\n return array;\n}\n\nclass CachedToken {\n constructor() {\n this.start = -1;\n this.value = -1;\n this.end = -1;\n this.extended = -1;\n this.lookAhead = 0;\n this.mask = 0;\n this.context = 0;\n }\n}\nconst nullToken = new CachedToken;\n/**\n[Tokenizers](#lr.ExternalTokenizer) interact with the input\nthrough this interface. It presents the input as a stream of\ncharacters, tracking lookahead and hiding the complexity of\n[ranges](#common.Parser.parse^ranges) from tokenizer code.\n*/\nclass InputStream {\n /**\n @internal\n */\n constructor(\n /**\n @internal\n */\n input, \n /**\n @internal\n */\n ranges) {\n this.input = input;\n this.ranges = ranges;\n /**\n @internal\n */\n this.chunk = \"\";\n /**\n @internal\n */\n this.chunkOff = 0;\n /**\n Backup chunk\n */\n this.chunk2 = \"\";\n this.chunk2Pos = 0;\n /**\n The character code of the next code unit in the input, or -1\n when the stream is at the end of the input.\n */\n this.next = -1;\n /**\n @internal\n */\n this.token = nullToken;\n this.rangeIndex = 0;\n this.pos = this.chunkPos = ranges[0].from;\n this.range = ranges[0];\n this.end = ranges[ranges.length - 1].to;\n this.readNext();\n }\n /**\n @internal\n */\n resolveOffset(offset, assoc) {\n let range = this.range, index = this.rangeIndex;\n let pos = this.pos + offset;\n while (pos < range.from) {\n if (!index)\n return null;\n let next = this.ranges[--index];\n pos -= range.from - next.to;\n range = next;\n }\n while (assoc < 0 ? pos > range.to : pos >= range.to) {\n if (index == this.ranges.length - 1)\n return null;\n let next = this.ranges[++index];\n pos += next.from - range.to;\n range = next;\n }\n return pos;\n }\n /**\n @internal\n */\n clipPos(pos) {\n if (pos >= this.range.from && pos < this.range.to)\n return pos;\n for (let range of this.ranges)\n if (range.to > pos)\n return Math.max(pos, range.from);\n return this.end;\n }\n /**\n Look at a code unit near the stream position. `.peek(0)` equals\n `.next`, `.peek(-1)` gives you the previous character, and so\n on.\n \n Note that looking around during tokenizing creates dependencies\n on potentially far-away content, which may reduce the\n effectiveness incremental parsing—when looking forward—or even\n cause invalid reparses when looking backward more than 25 code\n units, since the library does not track lookbehind.\n */\n peek(offset) {\n let idx = this.chunkOff + offset, pos, result;\n if (idx >= 0 && idx < this.chunk.length) {\n pos = this.pos + offset;\n result = this.chunk.charCodeAt(idx);\n }\n else {\n let resolved = this.resolveOffset(offset, 1);\n if (resolved == null)\n return -1;\n pos = resolved;\n if (pos >= this.chunk2Pos && pos < this.chunk2Pos + this.chunk2.length) {\n result = this.chunk2.charCodeAt(pos - this.chunk2Pos);\n }\n else {\n let i = this.rangeIndex, range = this.range;\n while (range.to <= pos)\n range = this.ranges[++i];\n this.chunk2 = this.input.chunk(this.chunk2Pos = pos);\n if (pos + this.chunk2.length > range.to)\n this.chunk2 = this.chunk2.slice(0, range.to - pos);\n result = this.chunk2.charCodeAt(0);\n }\n }\n if (pos >= this.token.lookAhead)\n this.token.lookAhead = pos + 1;\n return result;\n }\n /**\n Accept a token. By default, the end of the token is set to the\n current stream position, but you can pass an offset (relative to\n the stream position) to change that.\n */\n acceptToken(token, endOffset = 0) {\n let end = endOffset ? this.resolveOffset(endOffset, -1) : this.pos;\n if (end == null || end < this.token.start)\n throw new RangeError(\"Token end out of bounds\");\n this.token.value = token;\n this.token.end = end;\n }\n /**\n Accept a token ending at a specific given position.\n */\n acceptTokenTo(token, endPos) {\n this.token.value = token;\n this.token.end = endPos;\n }\n getChunk() {\n if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {\n let { chunk, chunkPos } = this;\n this.chunk = this.chunk2;\n this.chunkPos = this.chunk2Pos;\n this.chunk2 = chunk;\n this.chunk2Pos = chunkPos;\n this.chunkOff = this.pos - this.chunkPos;\n }\n else {\n this.chunk2 = this.chunk;\n this.chunk2Pos = this.chunkPos;\n let nextChunk = this.input.chunk(this.pos);\n let end = this.pos + nextChunk.length;\n this.chunk = end > this.range.to ? nextChunk.slice(0, this.range.to - this.pos) : nextChunk;\n this.chunkPos = this.pos;\n this.chunkOff = 0;\n }\n }\n readNext() {\n if (this.chunkOff >= this.chunk.length) {\n this.getChunk();\n if (this.chunkOff == this.chunk.length)\n return this.next = -1;\n }\n return this.next = this.chunk.charCodeAt(this.chunkOff);\n }\n /**\n Move the stream forward N (defaults to 1) code units. Returns\n the new value of [`next`](#lr.InputStream.next).\n */\n advance(n = 1) {\n this.chunkOff += n;\n while (this.pos + n >= this.range.to) {\n if (this.rangeIndex == this.ranges.length - 1)\n return this.setDone();\n n -= this.range.to - this.pos;\n this.range = this.ranges[++this.rangeIndex];\n this.pos = this.range.from;\n }\n this.pos += n;\n if (this.pos >= this.token.lookAhead)\n this.token.lookAhead = this.pos + 1;\n return this.readNext();\n }\n setDone() {\n this.pos = this.chunkPos = this.end;\n this.range = this.ranges[this.rangeIndex = this.ranges.length - 1];\n this.chunk = \"\";\n return this.next = -1;\n }\n /**\n @internal\n */\n reset(pos, token) {\n if (token) {\n this.token = token;\n token.start = pos;\n token.lookAhead = pos + 1;\n token.value = token.extended = -1;\n }\n else {\n this.token = nullToken;\n }\n if (this.pos != pos) {\n this.pos = pos;\n if (pos == this.end) {\n this.setDone();\n return this;\n }\n while (pos < this.range.from)\n this.range = this.ranges[--this.rangeIndex];\n while (pos >= this.range.to)\n this.range = this.ranges[++this.rangeIndex];\n if (pos >= this.chunkPos && pos < this.chunkPos + this.chunk.length) {\n this.chunkOff = pos - this.chunkPos;\n }\n else {\n this.chunk = \"\";\n this.chunkOff = 0;\n }\n this.readNext();\n }\n return this;\n }\n /**\n @internal\n */\n read(from, to) {\n if (from >= this.chunkPos && to <= this.chunkPos + this.chunk.length)\n return this.chunk.slice(from - this.chunkPos, to - this.chunkPos);\n if (from >= this.chunk2Pos && to <= this.chunk2Pos + this.chunk2.length)\n return this.chunk2.slice(from - this.chunk2Pos, to - this.chunk2Pos);\n if (from >= this.range.from && to <= this.range.to)\n return this.input.read(from, to);\n let result = \"\";\n for (let r of this.ranges) {\n if (r.from >= to)\n break;\n if (r.to > from)\n result += this.input.read(Math.max(r.from, from), Math.min(r.to, to));\n }\n return result;\n }\n}\n/**\n@internal\n*/\nclass TokenGroup {\n constructor(data, id) {\n this.data = data;\n this.id = id;\n }\n token(input, stack) {\n let { parser } = stack.p;\n readToken(this.data, input, stack, this.id, parser.data, parser.tokenPrecTable);\n }\n}\nTokenGroup.prototype.contextual = TokenGroup.prototype.fallback = TokenGroup.prototype.extend = false;\n/**\n@hide\n*/\nclass LocalTokenGroup {\n constructor(data, precTable, elseToken) {\n this.precTable = precTable;\n this.elseToken = elseToken;\n this.data = typeof data == \"string\" ? decodeArray(data) : data;\n }\n token(input, stack) {\n let start = input.pos, skipped = 0;\n for (;;) {\n let atEof = input.next < 0, nextPos = input.resolveOffset(1, 1);\n readToken(this.data, input, stack, 0, this.data, this.precTable);\n if (input.token.value > -1)\n break;\n if (this.elseToken == null)\n return;\n if (!atEof)\n skipped++;\n if (nextPos == null)\n break;\n input.reset(nextPos, input.token);\n }\n if (skipped) {\n input.reset(start, input.token);\n input.acceptToken(this.elseToken, skipped);\n }\n }\n}\nLocalTokenGroup.prototype.contextual = TokenGroup.prototype.fallback = TokenGroup.prototype.extend = false;\n/**\n`@external tokens` declarations in the grammar should resolve to\nan instance of this class.\n*/\nclass ExternalTokenizer {\n /**\n Create a tokenizer. The first argument is the function that,\n given an input stream, scans for the types of tokens it\n recognizes at the stream's position, and calls\n [`acceptToken`](#lr.InputStream.acceptToken) when it finds\n one.\n */\n constructor(\n /**\n @internal\n */\n token, options = {}) {\n this.token = token;\n this.contextual = !!options.contextual;\n this.fallback = !!options.fallback;\n this.extend = !!options.extend;\n }\n}\n// Tokenizer data is stored a big uint16 array containing, for each\n// state:\n//\n// - A group bitmask, indicating what token groups are reachable from\n// this state, so that paths that can only lead to tokens not in\n// any of the current groups can be cut off early.\n//\n// - The position of the end of the state's sequence of accepting\n// tokens\n//\n// - The number of outgoing edges for the state\n//\n// - The accepting tokens, as (token id, group mask) pairs\n//\n// - The outgoing edges, as (start character, end character, state\n// index) triples, with end character being exclusive\n//\n// This function interprets that data, running through a stream as\n// long as new states with the a matching group mask can be reached,\n// and updating `input.token` when it matches a token.\nfunction readToken(data, input, stack, group, precTable, precOffset) {\n let state = 0, groupMask = 1 << group, { dialect } = stack.p.parser;\n scan: for (;;) {\n if ((groupMask & data[state]) == 0)\n break;\n let accEnd = data[state + 1];\n // Check whether this state can lead to a token in the current group\n // Accept tokens in this state, possibly overwriting\n // lower-precedence / shorter tokens\n for (let i = state + 3; i < accEnd; i += 2)\n if ((data[i + 1] & groupMask) > 0) {\n let term = data[i];\n if (dialect.allows(term) &&\n (input.token.value == -1 || input.token.value == term ||\n overrides(term, input.token.value, precTable, precOffset))) {\n input.acceptToken(term);\n break;\n }\n }\n let next = input.next, low = 0, high = data[state + 2];\n // Special case for EOF\n if (input.next < 0 && high > low && data[accEnd + high * 3 - 3] == 65535 /* Seq.End */) {\n state = data[accEnd + high * 3 - 1];\n continue scan;\n }\n // Do a binary search on the state's edges\n for (; low < high;) {\n let mid = (low + high) >> 1;\n let index = accEnd + mid + (mid << 1);\n let from = data[index], to = data[index + 1] || 0x10000;\n if (next < from)\n high = mid;\n else if (next >= to)\n low = mid + 1;\n else {\n state = data[index + 2];\n input.advance();\n continue scan;\n }\n }\n break;\n }\n}\nfunction findOffset(data, start, term) {\n for (let i = start, next; (next = data[i]) != 65535 /* Seq.End */; i++)\n if (next == term)\n return i - start;\n return -1;\n}\nfunction overrides(token, prev, tableData, tableOffset) {\n let iPrev = findOffset(tableData, tableOffset, prev);\n return iPrev < 0 || findOffset(tableData, tableOffset, token) < iPrev;\n}\n\n// Environment variable used to control console output\nconst verbose = typeof process != \"undefined\" && process.env && /\\bparse\\b/.test(process.env.LOG);\nlet stackIDs = null;\nfunction cutAt(tree, pos, side) {\n let cursor = tree.cursor(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.IterMode.IncludeAnonymous);\n cursor.moveTo(pos);\n for (;;) {\n if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos)))\n for (;;) {\n if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError)\n return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Lookahead.Margin */))\n : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Lookahead.Margin */));\n if (side < 0 ? cursor.prevSibling() : cursor.nextSibling())\n break;\n if (!cursor.parent())\n return side < 0 ? 0 : tree.length;\n }\n }\n}\nclass FragmentCursor {\n constructor(fragments, nodeSet) {\n this.fragments = fragments;\n this.nodeSet = nodeSet;\n this.i = 0;\n this.fragment = null;\n this.safeFrom = -1;\n this.safeTo = -1;\n this.trees = [];\n this.start = [];\n this.index = [];\n this.nextFragment();\n }\n nextFragment() {\n let fr = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++];\n if (fr) {\n this.safeFrom = fr.openStart ? cutAt(fr.tree, fr.from + fr.offset, 1) - fr.offset : fr.from;\n this.safeTo = fr.openEnd ? cutAt(fr.tree, fr.to + fr.offset, -1) - fr.offset : fr.to;\n while (this.trees.length) {\n this.trees.pop();\n this.start.pop();\n this.index.pop();\n }\n this.trees.push(fr.tree);\n this.start.push(-fr.offset);\n this.index.push(0);\n this.nextStart = this.safeFrom;\n }\n else {\n this.nextStart = 1e9;\n }\n }\n // `pos` must be >= any previously given `pos` for this cursor\n nodeAt(pos) {\n if (pos < this.nextStart)\n return null;\n while (this.fragment && this.safeTo <= pos)\n this.nextFragment();\n if (!this.fragment)\n return null;\n for (;;) {\n let last = this.trees.length - 1;\n if (last < 0) { // End of tree\n this.nextFragment();\n return null;\n }\n let top = this.trees[last], index = this.index[last];\n if (index == top.children.length) {\n this.trees.pop();\n this.start.pop();\n this.index.pop();\n continue;\n }\n let next = top.children[index];\n let start = this.start[last] + top.positions[index];\n if (start > pos) {\n this.nextStart = start;\n return null;\n }\n if (next instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree) {\n if (start == pos) {\n if (start < this.safeFrom)\n return null;\n let end = start + next.length;\n if (end <= this.safeTo) {\n let lookAhead = next.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.lookAhead);\n if (!lookAhead || end + lookAhead < this.fragment.to)\n return next;\n }\n }\n this.index[last]++;\n if (start + next.length >= Math.max(this.safeFrom, pos)) { // Enter this node\n this.trees.push(next);\n this.start.push(start);\n this.index.push(0);\n }\n }\n else {\n this.index[last]++;\n this.nextStart = start + next.length;\n }\n }\n }\n}\nclass TokenCache {\n constructor(parser, stream) {\n this.stream = stream;\n this.tokens = [];\n this.mainToken = null;\n this.actions = [];\n this.tokens = parser.tokenizers.map(_ => new CachedToken);\n }\n getActions(stack) {\n let actionIndex = 0;\n let main = null;\n let { parser } = stack.p, { tokenizers } = parser;\n let mask = parser.stateSlot(stack.state, 3 /* ParseState.TokenizerMask */);\n let context = stack.curContext ? stack.curContext.hash : 0;\n let lookAhead = 0;\n for (let i = 0; i < tokenizers.length; i++) {\n if (((1 << i) & mask) == 0)\n continue;\n let tokenizer = tokenizers[i], token = this.tokens[i];\n if (main && !tokenizer.fallback)\n continue;\n if (tokenizer.contextual || token.start != stack.pos || token.mask != mask || token.context != context) {\n this.updateCachedToken(token, tokenizer, stack);\n token.mask = mask;\n token.context = context;\n }\n if (token.lookAhead > token.end + 25 /* Lookahead.Margin */)\n lookAhead = Math.max(token.lookAhead, lookAhead);\n if (token.value != 0 /* Term.Err */) {\n let startIndex = actionIndex;\n if (token.extended > -1)\n actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);\n actionIndex = this.addActions(stack, token.value, token.end, actionIndex);\n if (!tokenizer.extend) {\n main = token;\n if (actionIndex > startIndex)\n break;\n }\n }\n }\n while (this.actions.length > actionIndex)\n this.actions.pop();\n if (lookAhead)\n stack.setLookAhead(lookAhead);\n if (!main && stack.pos == this.stream.end) {\n main = new CachedToken;\n main.value = stack.p.parser.eofTerm;\n main.start = main.end = stack.pos;\n actionIndex = this.addActions(stack, main.value, main.end, actionIndex);\n }\n this.mainToken = main;\n return this.actions;\n }\n getMainToken(stack) {\n if (this.mainToken)\n return this.mainToken;\n let main = new CachedToken, { pos, p } = stack;\n main.start = pos;\n main.end = Math.min(pos + 1, p.stream.end);\n main.value = pos == p.stream.end ? p.parser.eofTerm : 0 /* Term.Err */;\n return main;\n }\n updateCachedToken(token, tokenizer, stack) {\n let start = this.stream.clipPos(stack.pos);\n tokenizer.token(this.stream.reset(start, token), stack);\n if (token.value > -1) {\n let { parser } = stack.p;\n for (let i = 0; i < parser.specialized.length; i++)\n if (parser.specialized[i] == token.value) {\n let result = parser.specializers[i](this.stream.read(token.start, token.end), stack);\n if (result >= 0 && stack.p.parser.dialect.allows(result >> 1)) {\n if ((result & 1) == 0 /* Specialize.Specialize */)\n token.value = result >> 1;\n else\n token.extended = result >> 1;\n break;\n }\n }\n }\n else {\n token.value = 0 /* Term.Err */;\n token.end = this.stream.clipPos(start + 1);\n }\n }\n putAction(action, token, end, index) {\n // Don't add duplicate actions\n for (let i = 0; i < index; i += 3)\n if (this.actions[i] == action)\n return index;\n this.actions[index++] = action;\n this.actions[index++] = token;\n this.actions[index++] = end;\n return index;\n }\n addActions(stack, token, end, index) {\n let { state } = stack, { parser } = stack.p, { data } = parser;\n for (let set = 0; set < 2; set++) {\n for (let i = parser.stateSlot(state, set ? 2 /* ParseState.Skip */ : 1 /* ParseState.Actions */);; i += 3) {\n if (data[i] == 65535 /* Seq.End */) {\n if (data[i + 1] == 1 /* Seq.Next */) {\n i = pair(data, i + 2);\n }\n else {\n if (index == 0 && data[i + 1] == 2 /* Seq.Other */)\n index = this.putAction(pair(data, i + 2), token, end, index);\n break;\n }\n }\n if (data[i] == token)\n index = this.putAction(pair(data, i + 1), token, end, index);\n }\n }\n return index;\n }\n}\nclass Parse {\n constructor(parser, input, fragments, ranges) {\n this.parser = parser;\n this.input = input;\n this.ranges = ranges;\n this.recovering = 0;\n this.nextStackID = 0x2654; // ♔, ♕, ♖, ♗, ♘, ♙, ♠, ♡, ♢, ♣, ♤, ♥, ♦, ♧\n this.minStackPos = 0;\n this.reused = [];\n this.stoppedAt = null;\n this.lastBigReductionStart = -1;\n this.lastBigReductionSize = 0;\n this.bigReductionCount = 0;\n this.stream = new InputStream(input, ranges);\n this.tokens = new TokenCache(parser, this.stream);\n this.topTerm = parser.top[1];\n let { from } = ranges[0];\n this.stacks = [Stack.start(this, parser.top[0], from)];\n this.fragments = fragments.length && this.stream.end - from > parser.bufferLength * 4\n ? new FragmentCursor(fragments, parser.nodeSet) : null;\n }\n get parsedPos() {\n return this.minStackPos;\n }\n // Move the parser forward. This will process all parse stacks at\n // `this.pos` and try to advance them to a further position. If no\n // stack for such a position is found, it'll start error-recovery.\n //\n // When the parse is finished, this will return a syntax tree. When\n // not, it returns `null`.\n advance() {\n let stacks = this.stacks, pos = this.minStackPos;\n // This will hold stacks beyond `pos`.\n let newStacks = this.stacks = [];\n let stopped, stoppedTokens;\n // If a large amount of reductions happened with the same start\n // position, force the stack out of that production in order to\n // avoid creating a tree too deep to recurse through.\n // (This is an ugly kludge, because unfortunately there is no\n // straightforward, cheap way to check for this happening, due to\n // the history of reductions only being available in an\n // expensive-to-access format in the stack buffers.)\n if (this.bigReductionCount > 300 /* Rec.MaxLeftAssociativeReductionCount */ && stacks.length == 1) {\n let [s] = stacks;\n while (s.forceReduce() && s.stack.length && s.stack[s.stack.length - 2] >= this.lastBigReductionStart) { }\n this.bigReductionCount = this.lastBigReductionSize = 0;\n }\n // Keep advancing any stacks at `pos` until they either move\n // forward or can't be advanced. Gather stacks that can't be\n // advanced further in `stopped`.\n for (let i = 0; i < stacks.length; i++) {\n let stack = stacks[i];\n for (;;) {\n this.tokens.mainToken = null;\n if (stack.pos > pos) {\n newStacks.push(stack);\n }\n else if (this.advanceStack(stack, newStacks, stacks)) {\n continue;\n }\n else {\n if (!stopped) {\n stopped = [];\n stoppedTokens = [];\n }\n stopped.push(stack);\n let tok = this.tokens.getMainToken(stack);\n stoppedTokens.push(tok.value, tok.end);\n }\n break;\n }\n }\n if (!newStacks.length) {\n let finished = stopped && findFinished(stopped);\n if (finished) {\n if (verbose)\n console.log(\"Finish with \" + this.stackID(finished));\n return this.stackToTree(finished);\n }\n if (this.parser.strict) {\n if (verbose && stopped)\n console.log(\"Stuck with token \" + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : \"none\"));\n throw new SyntaxError(\"No parse at \" + pos);\n }\n if (!this.recovering)\n this.recovering = 5 /* Rec.Distance */;\n }\n if (this.recovering && stopped) {\n let finished = this.stoppedAt != null && stopped[0].pos > this.stoppedAt ? stopped[0]\n : this.runRecovery(stopped, stoppedTokens, newStacks);\n if (finished) {\n if (verbose)\n console.log(\"Force-finish \" + this.stackID(finished));\n return this.stackToTree(finished.forceAll());\n }\n }\n if (this.recovering) {\n let maxRemaining = this.recovering == 1 ? 1 : this.recovering * 3 /* Rec.MaxRemainingPerStep */;\n if (newStacks.length > maxRemaining) {\n newStacks.sort((a, b) => b.score - a.score);\n while (newStacks.length > maxRemaining)\n newStacks.pop();\n }\n if (newStacks.some(s => s.reducePos > pos))\n this.recovering--;\n }\n else if (newStacks.length > 1) {\n // Prune stacks that are in the same state, or that have been\n // running without splitting for a while, to avoid getting stuck\n // with multiple successful stacks running endlessly on.\n outer: for (let i = 0; i < newStacks.length - 1; i++) {\n let stack = newStacks[i];\n for (let j = i + 1; j < newStacks.length; j++) {\n let other = newStacks[j];\n if (stack.sameState(other) ||\n stack.buffer.length > 500 /* Rec.MinBufferLengthPrune */ && other.buffer.length > 500 /* Rec.MinBufferLengthPrune */) {\n if (((stack.score - other.score) || (stack.buffer.length - other.buffer.length)) > 0) {\n newStacks.splice(j--, 1);\n }\n else {\n newStacks.splice(i--, 1);\n continue outer;\n }\n }\n }\n }\n if (newStacks.length > 12 /* Rec.MaxStackCount */)\n newStacks.splice(12 /* Rec.MaxStackCount */, newStacks.length - 12 /* Rec.MaxStackCount */);\n }\n this.minStackPos = newStacks[0].pos;\n for (let i = 1; i < newStacks.length; i++)\n if (newStacks[i].pos < this.minStackPos)\n this.minStackPos = newStacks[i].pos;\n return null;\n }\n stopAt(pos) {\n if (this.stoppedAt != null && this.stoppedAt < pos)\n throw new RangeError(\"Can't move stoppedAt forward\");\n this.stoppedAt = pos;\n }\n // Returns an updated version of the given stack, or null if the\n // stack can't advance normally. When `split` and `stacks` are\n // given, stacks split off by ambiguous operations will be pushed to\n // `split`, or added to `stacks` if they move `pos` forward.\n advanceStack(stack, stacks, split) {\n let start = stack.pos, { parser } = this;\n let base = verbose ? this.stackID(stack) + \" -> \" : \"\";\n if (this.stoppedAt != null && start > this.stoppedAt)\n return stack.forceReduce() ? stack : null;\n if (this.fragments) {\n let strictCx = stack.curContext && stack.curContext.tracker.strict, cxHash = strictCx ? stack.curContext.hash : 0;\n for (let cached = this.fragments.nodeAt(start); cached;) {\n let match = this.parser.nodeSet.types[cached.type.id] == cached.type ? parser.getGoto(stack.state, cached.type.id) : -1;\n if (match > -1 && cached.length && (!strictCx || (cached.prop(_lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp.contextHash) || 0) == cxHash)) {\n stack.useNode(cached, match);\n if (verbose)\n console.log(base + this.stackID(stack) + ` (via reuse of ${parser.getName(cached.type.id)})`);\n return true;\n }\n if (!(cached instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree) || cached.children.length == 0 || cached.positions[0] > 0)\n break;\n let inner = cached.children[0];\n if (inner instanceof _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree && cached.positions[0] == 0)\n cached = inner;\n else\n break;\n }\n }\n let defaultReduce = parser.stateSlot(stack.state, 4 /* ParseState.DefaultReduce */);\n if (defaultReduce > 0) {\n stack.reduce(defaultReduce);\n if (verbose)\n console.log(base + this.stackID(stack) + ` (via always-reduce ${parser.getName(defaultReduce & 65535 /* Action.ValueMask */)})`);\n return true;\n }\n if (stack.stack.length >= 8400 /* Rec.CutDepth */) {\n while (stack.stack.length > 6000 /* Rec.CutTo */ && stack.forceReduce()) { }\n }\n let actions = this.tokens.getActions(stack);\n for (let i = 0; i < actions.length;) {\n let action = actions[i++], term = actions[i++], end = actions[i++];\n let last = i == actions.length || !split;\n let localStack = last ? stack : stack.split();\n let main = this.tokens.mainToken;\n localStack.apply(action, term, main ? main.start : localStack.pos, end);\n if (verbose)\n console.log(base + this.stackID(localStack) + ` (via ${(action & 65536 /* Action.ReduceFlag */) == 0 ? \"shift\"\n : `reduce of ${parser.getName(action & 65535 /* Action.ValueMask */)}`} for ${parser.getName(term)} @ ${start}${localStack == stack ? \"\" : \", split\"})`);\n if (last)\n return true;\n else if (localStack.pos > start)\n stacks.push(localStack);\n else\n split.push(localStack);\n }\n return false;\n }\n // Advance a given stack forward as far as it will go. Returns the\n // (possibly updated) stack if it got stuck, or null if it moved\n // forward and was given to `pushStackDedup`.\n advanceFully(stack, newStacks) {\n let pos = stack.pos;\n for (;;) {\n if (!this.advanceStack(stack, null, null))\n return false;\n if (stack.pos > pos) {\n pushStackDedup(stack, newStacks);\n return true;\n }\n }\n }\n runRecovery(stacks, tokens, newStacks) {\n let finished = null, restarted = false;\n for (let i = 0; i < stacks.length; i++) {\n let stack = stacks[i], token = tokens[i << 1], tokenEnd = tokens[(i << 1) + 1];\n let base = verbose ? this.stackID(stack) + \" -> \" : \"\";\n if (stack.deadEnd) {\n if (restarted)\n continue;\n restarted = true;\n stack.restart();\n if (verbose)\n console.log(base + this.stackID(stack) + \" (restarted)\");\n let done = this.advanceFully(stack, newStacks);\n if (done)\n continue;\n }\n let force = stack.split(), forceBase = base;\n for (let j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */; j++) {\n if (verbose)\n console.log(forceBase + this.stackID(force) + \" (via force-reduce)\");\n let done = this.advanceFully(force, newStacks);\n if (done)\n break;\n if (verbose)\n forceBase = this.stackID(force) + \" -> \";\n }\n for (let insert of stack.recoverByInsert(token)) {\n if (verbose)\n console.log(base + this.stackID(insert) + \" (via recover-insert)\");\n this.advanceFully(insert, newStacks);\n }\n if (this.stream.end > stack.pos) {\n if (tokenEnd == stack.pos) {\n tokenEnd++;\n token = 0 /* Term.Err */;\n }\n stack.recoverByDelete(token, tokenEnd);\n if (verbose)\n console.log(base + this.stackID(stack) + ` (via recover-delete ${this.parser.getName(token)})`);\n pushStackDedup(stack, newStacks);\n }\n else if (!finished || finished.score < stack.score) {\n finished = stack;\n }\n }\n return finished;\n }\n // Convert the stack's buffer to a syntax tree.\n stackToTree(stack) {\n stack.close();\n return _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Tree.build({ buffer: StackBufferCursor.create(stack),\n nodeSet: this.parser.nodeSet,\n topID: this.topTerm,\n maxBufferLength: this.parser.bufferLength,\n reused: this.reused,\n start: this.ranges[0].from,\n length: stack.pos - this.ranges[0].from,\n minRepeatType: this.parser.minRepeatTerm });\n }\n stackID(stack) {\n let id = (stackIDs || (stackIDs = new WeakMap)).get(stack);\n if (!id)\n stackIDs.set(stack, id = String.fromCodePoint(this.nextStackID++));\n return id + stack;\n }\n}\nfunction pushStackDedup(stack, newStacks) {\n for (let i = 0; i < newStacks.length; i++) {\n let other = newStacks[i];\n if (other.pos == stack.pos && other.sameState(stack)) {\n if (newStacks[i].score < stack.score)\n newStacks[i] = stack;\n return;\n }\n }\n newStacks.push(stack);\n}\nclass Dialect {\n constructor(source, flags, disabled) {\n this.source = source;\n this.flags = flags;\n this.disabled = disabled;\n }\n allows(term) { return !this.disabled || this.disabled[term] == 0; }\n}\nconst id = x => x;\n/**\nContext trackers are used to track stateful context (such as\nindentation in the Python grammar, or parent elements in the XML\ngrammar) needed by external tokenizers. You declare them in a\ngrammar file as `@context exportName from \"module\"`.\n\nContext values should be immutable, and can be updated (replaced)\non shift or reduce actions.\n\nThe export used in a `@context` declaration should be of this\ntype.\n*/\nclass ContextTracker {\n /**\n Define a context tracker.\n */\n constructor(spec) {\n this.start = spec.start;\n this.shift = spec.shift || id;\n this.reduce = spec.reduce || id;\n this.reuse = spec.reuse || id;\n this.hash = spec.hash || (() => 0);\n this.strict = spec.strict !== false;\n }\n}\n/**\nHolds the parse tables for a given grammar, as generated by\n`lezer-generator`, and provides [methods](#common.Parser) to parse\ncontent with.\n*/\nclass LRParser extends _lezer_common__WEBPACK_IMPORTED_MODULE_0__.Parser {\n /**\n @internal\n */\n constructor(spec) {\n super();\n /**\n @internal\n */\n this.wrappers = [];\n if (spec.version != 14 /* File.Version */)\n throw new RangeError(`Parser version (${spec.version}) doesn't match runtime version (${14 /* File.Version */})`);\n let nodeNames = spec.nodeNames.split(\" \");\n this.minRepeatTerm = nodeNames.length;\n for (let i = 0; i < spec.repeatNodeCount; i++)\n nodeNames.push(\"\");\n let topTerms = Object.keys(spec.topRules).map(r => spec.topRules[r][1]);\n let nodeProps = [];\n for (let i = 0; i < nodeNames.length; i++)\n nodeProps.push([]);\n function setProp(nodeID, prop, value) {\n nodeProps[nodeID].push([prop, prop.deserialize(String(value))]);\n }\n if (spec.nodeProps)\n for (let propSpec of spec.nodeProps) {\n let prop = propSpec[0];\n if (typeof prop == \"string\")\n prop = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeProp[prop];\n for (let i = 1; i < propSpec.length;) {\n let next = propSpec[i++];\n if (next >= 0) {\n setProp(next, prop, propSpec[i++]);\n }\n else {\n let value = propSpec[i + -next];\n for (let j = -next; j > 0; j--)\n setProp(propSpec[i++], prop, value);\n i++;\n }\n }\n }\n this.nodeSet = new _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeSet(nodeNames.map((name, i) => _lezer_common__WEBPACK_IMPORTED_MODULE_0__.NodeType.define({\n name: i >= this.minRepeatTerm ? undefined : name,\n id: i,\n props: nodeProps[i],\n top: topTerms.indexOf(i) > -1,\n error: i == 0,\n skipped: spec.skippedNodes && spec.skippedNodes.indexOf(i) > -1\n })));\n if (spec.propSources)\n this.nodeSet = this.nodeSet.extend(...spec.propSources);\n this.strict = false;\n this.bufferLength = _lezer_common__WEBPACK_IMPORTED_MODULE_0__.DefaultBufferLength;\n let tokenArray = decodeArray(spec.tokenData);\n this.context = spec.context;\n this.specializerSpecs = spec.specialized || [];\n this.specialized = new Uint16Array(this.specializerSpecs.length);\n for (let i = 0; i < this.specializerSpecs.length; i++)\n this.specialized[i] = this.specializerSpecs[i].term;\n this.specializers = this.specializerSpecs.map(getSpecializer);\n this.states = decodeArray(spec.states, Uint32Array);\n this.data = decodeArray(spec.stateData);\n this.goto = decodeArray(spec.goto);\n this.maxTerm = spec.maxTerm;\n this.tokenizers = spec.tokenizers.map(value => typeof value == \"number\" ? new TokenGroup(tokenArray, value) : value);\n this.topRules = spec.topRules;\n this.dialects = spec.dialects || {};\n this.dynamicPrecedences = spec.dynamicPrecedences || null;\n this.tokenPrecTable = spec.tokenPrec;\n this.termNames = spec.termNames || null;\n this.maxNode = this.nodeSet.types.length - 1;\n this.dialect = this.parseDialect();\n this.top = this.topRules[Object.keys(this.topRules)[0]];\n }\n createParse(input, fragments, ranges) {\n let parse = new Parse(this, input, fragments, ranges);\n for (let w of this.wrappers)\n parse = w(parse, input, fragments, ranges);\n return parse;\n }\n /**\n Get a goto table entry @internal\n */\n getGoto(state, term, loose = false) {\n let table = this.goto;\n if (term >= table[0])\n return -1;\n for (let pos = table[term + 1];;) {\n let groupTag = table[pos++], last = groupTag & 1;\n let target = table[pos++];\n if (last && loose)\n return target;\n for (let end = pos + (groupTag >> 1); pos < end; pos++)\n if (table[pos] == state)\n return target;\n if (last)\n return -1;\n }\n }\n /**\n Check if this state has an action for a given terminal @internal\n */\n hasAction(state, terminal) {\n let data = this.data;\n for (let set = 0; set < 2; set++) {\n for (let i = this.stateSlot(state, set ? 2 /* ParseState.Skip */ : 1 /* ParseState.Actions */), next;; i += 3) {\n if ((next = data[i]) == 65535 /* Seq.End */) {\n if (data[i + 1] == 1 /* Seq.Next */)\n next = data[i = pair(data, i + 2)];\n else if (data[i + 1] == 2 /* Seq.Other */)\n return pair(data, i + 2);\n else\n break;\n }\n if (next == terminal || next == 0 /* Term.Err */)\n return pair(data, i + 1);\n }\n }\n return 0;\n }\n /**\n @internal\n */\n stateSlot(state, slot) {\n return this.states[(state * 6 /* ParseState.Size */) + slot];\n }\n /**\n @internal\n */\n stateFlag(state, flag) {\n return (this.stateSlot(state, 0 /* ParseState.Flags */) & flag) > 0;\n }\n /**\n @internal\n */\n validAction(state, action) {\n return !!this.allActions(state, a => a == action ? true : null);\n }\n /**\n @internal\n */\n allActions(state, action) {\n let deflt = this.stateSlot(state, 4 /* ParseState.DefaultReduce */);\n let result = deflt ? action(deflt) : undefined;\n for (let i = this.stateSlot(state, 1 /* ParseState.Actions */); result == null; i += 3) {\n if (this.data[i] == 65535 /* Seq.End */) {\n if (this.data[i + 1] == 1 /* Seq.Next */)\n i = pair(this.data, i + 2);\n else\n break;\n }\n result = action(pair(this.data, i + 1));\n }\n return result;\n }\n /**\n Get the states that can follow this one through shift actions or\n goto jumps. @internal\n */\n nextStates(state) {\n let result = [];\n for (let i = this.stateSlot(state, 1 /* ParseState.Actions */);; i += 3) {\n if (this.data[i] == 65535 /* Seq.End */) {\n if (this.data[i + 1] == 1 /* Seq.Next */)\n i = pair(this.data, i + 2);\n else\n break;\n }\n if ((this.data[i + 2] & (65536 /* Action.ReduceFlag */ >> 16)) == 0) {\n let value = this.data[i + 1];\n if (!result.some((v, i) => (i & 1) && v == value))\n result.push(this.data[i], value);\n }\n }\n return result;\n }\n /**\n Configure the parser. Returns a new parser instance that has the\n given settings modified. Settings not provided in `config` are\n kept from the original parser.\n */\n configure(config) {\n // Hideous reflection-based kludge to make it easy to create a\n // slightly modified copy of a parser.\n let copy = Object.assign(Object.create(LRParser.prototype), this);\n if (config.props)\n copy.nodeSet = this.nodeSet.extend(...config.props);\n if (config.top) {\n let info = this.topRules[config.top];\n if (!info)\n throw new RangeError(`Invalid top rule name ${config.top}`);\n copy.top = info;\n }\n if (config.tokenizers)\n copy.tokenizers = this.tokenizers.map(t => {\n let found = config.tokenizers.find(r => r.from == t);\n return found ? found.to : t;\n });\n if (config.specializers) {\n copy.specializers = this.specializers.slice();\n copy.specializerSpecs = this.specializerSpecs.map((s, i) => {\n let found = config.specializers.find(r => r.from == s.external);\n if (!found)\n return s;\n let spec = Object.assign(Object.assign({}, s), { external: found.to });\n copy.specializers[i] = getSpecializer(spec);\n return spec;\n });\n }\n if (config.contextTracker)\n copy.context = config.contextTracker;\n if (config.dialect)\n copy.dialect = this.parseDialect(config.dialect);\n if (config.strict != null)\n copy.strict = config.strict;\n if (config.wrap)\n copy.wrappers = copy.wrappers.concat(config.wrap);\n if (config.bufferLength != null)\n copy.bufferLength = config.bufferLength;\n return copy;\n }\n /**\n Tells you whether any [parse wrappers](#lr.ParserConfig.wrap)\n are registered for this parser.\n */\n hasWrappers() {\n return this.wrappers.length > 0;\n }\n /**\n Returns the name associated with a given term. This will only\n work for all terms when the parser was generated with the\n `--names` option. By default, only the names of tagged terms are\n stored.\n */\n getName(term) {\n return this.termNames ? this.termNames[term] : String(term <= this.maxNode && this.nodeSet.types[term].name || term);\n }\n /**\n The eof term id is always allocated directly after the node\n types. @internal\n */\n get eofTerm() { return this.maxNode + 1; }\n /**\n The type of top node produced by the parser.\n */\n get topNode() { return this.nodeSet.types[this.top[1]]; }\n /**\n @internal\n */\n dynamicPrecedence(term) {\n let prec = this.dynamicPrecedences;\n return prec == null ? 0 : prec[term] || 0;\n }\n /**\n @internal\n */\n parseDialect(dialect) {\n let values = Object.keys(this.dialects), flags = values.map(() => false);\n if (dialect)\n for (let part of dialect.split(\" \")) {\n let id = values.indexOf(part);\n if (id >= 0)\n flags[id] = true;\n }\n let disabled = null;\n for (let i = 0; i < values.length; i++)\n if (!flags[i]) {\n for (let j = this.dialects[values[i]], id; (id = this.data[j++]) != 65535 /* Seq.End */;)\n (disabled || (disabled = new Uint8Array(this.maxTerm + 1)))[id] = 1;\n }\n return new Dialect(dialect, flags, disabled);\n }\n /**\n Used by the output of the parser generator. Not available to\n user code. @hide\n */\n static deserialize(spec) {\n return new LRParser(spec);\n }\n}\nfunction pair(data, off) { return data[off] | (data[off + 1] << 16); }\nfunction findFinished(stacks) {\n let best = null;\n for (let stack of stacks) {\n let stopped = stack.p.stoppedAt;\n if ((stack.pos == stack.p.stream.end || stopped != null && stack.pos > stopped) &&\n stack.p.parser.stateFlag(stack.state, 2 /* StateFlag.Accepting */) &&\n (!best || best.score < stack.score))\n best = stack;\n }\n return best;\n}\nfunction getSpecializer(spec) {\n if (spec.external) {\n let mask = spec.extend ? 1 /* Specialize.Extend */ : 0 /* Specialize.Specialize */;\n return (value, stack) => (spec.external(value, stack) << 1) | mask;\n }\n return spec.get;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/@lezer/lr/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/clsx/dist/clsx.mjs": +/*!*****************************************!*\ + !*** ./node_modules/clsx/dist/clsx.mjs ***! + \*****************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ clsx: () => (/* binding */ clsx),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nfunction r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ crelt)\n/* harmony export */ });\nfunction crelt() {\n var elt = arguments[0]\n if (typeof elt == \"string\") elt = document.createElement(elt)\n var i = 1, next = arguments[1]\n if (next && typeof next == \"object\" && next.nodeType == null && !Array.isArray(next)) {\n for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {\n var value = next[name]\n if (typeof value == \"string\") elt.setAttribute(name, value)\n else if (value != null) elt[name] = value\n }\n i++\n }\n for (; i < arguments.length; i++) add(elt, arguments[i])\n return elt\n}\n\nfunction add(elt, child) {\n if (typeof child == \"string\") {\n elt.appendChild(document.createTextNode(child))\n } else if (child == null) {\n } else if (child.nodeType != null) {\n elt.appendChild(child)\n } else if (Array.isArray(child)) {\n for (var i = 0; i < child.length; i++) add(elt, child[i])\n } else {\n throw new RangeError(\"Unsupported child node: \" + child)\n }\n}\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/crelt/index.js?"); + +/***/ }), + +/***/ "./node_modules/didi/dist/index.js": +/*!*****************************************!*\ + !*** ./node_modules/didi/dist/index.js ***! + \*****************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Injector: () => (/* binding */ Injector),\n/* harmony export */ annotate: () => (/* binding */ annotate),\n/* harmony export */ parseAnnotations: () => (/* binding */ parseAnnotations)\n/* harmony export */ });\nconst CLASS_PATTERN = /^class[ {]/;\n\n\n/**\n * @param {function} fn\n *\n * @return {boolean}\n */\nfunction isClass(fn) {\n return CLASS_PATTERN.test(fn.toString());\n}\n\n/**\n * @param {any} obj\n *\n * @return {boolean}\n */\nfunction isArray(obj) {\n return Array.isArray(obj);\n}\n\n/**\n * @param {any} obj\n * @param {string} prop\n *\n * @return {boolean}\n */\nfunction hasOwnProp(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n/**\n * @typedef {import('./index.js').InjectAnnotated } InjectAnnotated\n */\n\n/**\n * @template T\n *\n * @params {[...string[], T] | ...string[], T} args\n *\n * @return {T & InjectAnnotated}\n */\nfunction annotate(...args) {\n\n if (args.length === 1 && isArray(args[0])) {\n args = args[0];\n }\n\n args = [ ...args ];\n\n const fn = args.pop();\n\n fn.$inject = args;\n\n return fn;\n}\n\n\n// Current limitations:\n// - can't put into \"function arg\" comments\n// function /* (no parenthesis like this) */ (){}\n// function abc( /* xx (no parenthesis like this) */ a, b) {}\n//\n// Just put the comment before function or inside:\n// /* (((this is fine))) */ function(a, b) {}\n// function abc(a) { /* (((this is fine))) */}\n//\n// - can't reliably auto-annotate constructor; we'll match the\n// first constructor(...) pattern found which may be the one\n// of a nested class, too.\n\nconst CONSTRUCTOR_ARGS = /constructor\\s*[^(]*\\(\\s*([^)]*)\\)/m;\nconst FN_ARGS = /^(?:async\\s+)?(?:function\\s*[^(]*)?(?:\\(\\s*([^)]*)\\)|(\\w+))/m;\nconst FN_ARG = /\\/\\*([^*]*)\\*\\//m;\n\n/**\n * @param {unknown} fn\n *\n * @return {string[]}\n */\nfunction parseAnnotations(fn) {\n\n if (typeof fn !== 'function') {\n throw new Error(`Cannot annotate \"${fn}\". Expected a function!`);\n }\n\n const match = fn.toString().match(isClass(fn) ? CONSTRUCTOR_ARGS : FN_ARGS);\n\n // may parse class without constructor\n if (!match) {\n return [];\n }\n\n const args = match[1] || match[2];\n\n return args && args.split(',').map(arg => {\n const argMatch = arg.match(FN_ARG);\n return (argMatch && argMatch[1] || arg).trim();\n }) || [];\n}\n\n/**\n * @typedef { import('./index.js').ModuleDeclaration } ModuleDeclaration\n * @typedef { import('./index.js').ModuleDefinition } ModuleDefinition\n * @typedef { import('./index.js').InjectorContext } InjectorContext\n *\n * @typedef { import('./index.js').TypedDeclaration } TypedDeclaration\n */\n\n/**\n * Create a new injector with the given modules.\n *\n * @param {ModuleDefinition[]} modules\n * @param {InjectorContext} [_parent]\n */\nfunction Injector(modules, _parent) {\n\n const parent = _parent || /** @type InjectorContext */ ({\n get: function(name, strict) {\n currentlyResolving.push(name);\n\n if (strict === false) {\n return null;\n } else {\n throw error(`No provider for \"${ name }\"!`);\n }\n }\n });\n\n const currentlyResolving = [];\n const providers = this._providers = Object.create(parent._providers || null);\n const instances = this._instances = Object.create(null);\n\n const self = instances.injector = this;\n\n const error = function(msg) {\n const stack = currentlyResolving.join(' -> ');\n currentlyResolving.length = 0;\n return new Error(stack ? `${ msg } (Resolving: ${ stack })` : msg);\n };\n\n /**\n * Return a named service.\n *\n * @param {string} name\n * @param {boolean} [strict=true] if false, resolve missing services to null\n *\n * @return {any}\n */\n function get(name, strict) {\n if (!providers[name] && name.includes('.')) {\n\n const parts = name.split('.');\n let pivot = get(/** @type { string } */ (parts.shift()));\n\n while (parts.length) {\n pivot = pivot[/** @type { string } */ (parts.shift())];\n }\n\n return pivot;\n }\n\n if (hasOwnProp(instances, name)) {\n return instances[name];\n }\n\n if (hasOwnProp(providers, name)) {\n if (currentlyResolving.indexOf(name) !== -1) {\n currentlyResolving.push(name);\n throw error('Cannot resolve circular dependency!');\n }\n\n currentlyResolving.push(name);\n instances[name] = providers[name][0](providers[name][1]);\n currentlyResolving.pop();\n\n return instances[name];\n }\n\n return parent.get(name, strict);\n }\n\n function fnDef(fn, locals) {\n\n if (typeof locals === 'undefined') {\n locals = {};\n }\n\n if (typeof fn !== 'function') {\n if (isArray(fn)) {\n fn = annotate(fn.slice());\n } else {\n throw error(`Cannot invoke \"${ fn }\". Expected a function!`);\n }\n }\n\n /**\n * @type {string[]}\n */\n const inject = fn.$inject || parseAnnotations(fn);\n const dependencies = inject.map(dep => {\n if (hasOwnProp(locals, dep)) {\n return locals[dep];\n } else {\n return get(dep);\n }\n });\n\n return {\n fn: fn,\n dependencies\n };\n }\n\n /**\n * Instantiate the given type, injecting dependencies.\n *\n * @template T\n *\n * @param { Function | [...string[], Function ]} type\n *\n * @return T\n */\n function instantiate(type) {\n const {\n fn,\n dependencies\n } = fnDef(type);\n\n // instantiate var args constructor\n const Constructor = Function.prototype.bind.call(fn, null, ...dependencies);\n\n return new Constructor();\n }\n\n /**\n * Invoke the given function, injecting dependencies. Return the result.\n *\n * @template T\n *\n * @param { Function | [...string[], Function ]} func\n * @param { Object } [context]\n * @param { Object } [locals]\n *\n * @return {T} invocation result\n */\n function invoke(func, context, locals) {\n const {\n fn,\n dependencies\n } = fnDef(func, locals);\n\n return fn.apply(context, dependencies);\n }\n\n /**\n * @param {Injector} childInjector\n *\n * @return {Function}\n */\n function createPrivateInjectorFactory(childInjector) {\n return annotate(key => childInjector.get(key));\n }\n\n /**\n * @param {ModuleDefinition[]} modules\n * @param {string[]} [forceNewInstances]\n *\n * @return {Injector}\n */\n function createChild(modules, forceNewInstances) {\n if (forceNewInstances && forceNewInstances.length) {\n const fromParentModule = Object.create(null);\n const matchedScopes = Object.create(null);\n\n const privateInjectorsCache = [];\n const privateChildInjectors = [];\n const privateChildFactories = [];\n\n let provider;\n let cacheIdx;\n let privateChildInjector;\n let privateChildInjectorFactory;\n\n for (let name in providers) {\n provider = providers[name];\n\n if (forceNewInstances.indexOf(name) !== -1) {\n if (provider[2] === 'private') {\n cacheIdx = privateInjectorsCache.indexOf(provider[3]);\n if (cacheIdx === -1) {\n privateChildInjector = provider[3].createChild([], forceNewInstances);\n privateChildInjectorFactory = createPrivateInjectorFactory(privateChildInjector);\n privateInjectorsCache.push(provider[3]);\n privateChildInjectors.push(privateChildInjector);\n privateChildFactories.push(privateChildInjectorFactory);\n fromParentModule[name] = [ privateChildInjectorFactory, name, 'private', privateChildInjector ];\n } else {\n fromParentModule[name] = [ privateChildFactories[cacheIdx], name, 'private', privateChildInjectors[cacheIdx] ];\n }\n } else {\n fromParentModule[name] = [ provider[2], provider[1] ];\n }\n matchedScopes[name] = true;\n }\n\n if ((provider[2] === 'factory' || provider[2] === 'type') && provider[1].$scope) {\n /* jshint -W083 */\n forceNewInstances.forEach(scope => {\n if (provider[1].$scope.indexOf(scope) !== -1) {\n fromParentModule[name] = [ provider[2], provider[1] ];\n matchedScopes[scope] = true;\n }\n });\n }\n }\n\n forceNewInstances.forEach(scope => {\n if (!matchedScopes[scope]) {\n throw new Error('No provider for \"' + scope + '\". Cannot use provider from the parent!');\n }\n });\n\n modules.unshift(fromParentModule);\n }\n\n return new Injector(modules, self);\n }\n\n const factoryMap = {\n factory: invoke,\n type: instantiate,\n value: function(value) {\n return value;\n }\n };\n\n /**\n * @param {ModuleDefinition} moduleDefinition\n * @param {Injector} injector\n */\n function createInitializer(moduleDefinition, injector) {\n\n const initializers = moduleDefinition.__init__ || [];\n\n return function() {\n initializers.forEach(initializer => {\n\n // eagerly resolve component (fn or string)\n if (typeof initializer === 'string') {\n injector.get(initializer);\n } else {\n injector.invoke(initializer);\n }\n });\n };\n }\n\n /**\n * @param {ModuleDefinition} moduleDefinition\n */\n function loadModule(moduleDefinition) {\n\n const moduleExports = moduleDefinition.__exports__;\n\n // private module\n if (moduleExports) {\n const nestedModules = moduleDefinition.__modules__;\n\n const clonedModule = Object.keys(moduleDefinition).reduce((clonedModule, key) => {\n\n if (key !== '__exports__' && key !== '__modules__' && key !== '__init__' && key !== '__depends__') {\n clonedModule[key] = moduleDefinition[key];\n }\n\n return clonedModule;\n }, Object.create(null));\n\n const childModules = (nestedModules || []).concat(clonedModule);\n\n const privateInjector = createChild(childModules);\n const getFromPrivateInjector = annotate(function(key) {\n return privateInjector.get(key);\n });\n\n moduleExports.forEach(function(key) {\n providers[key] = [ getFromPrivateInjector, key, 'private', privateInjector ];\n });\n\n // ensure child injector initializes\n const initializers = (moduleDefinition.__init__ || []).slice();\n\n initializers.unshift(function() {\n privateInjector.init();\n });\n\n moduleDefinition = Object.assign({}, moduleDefinition, {\n __init__: initializers\n });\n\n return createInitializer(moduleDefinition, privateInjector);\n }\n\n // normal module\n Object.keys(moduleDefinition).forEach(function(key) {\n\n if (key === '__init__' || key === '__depends__') {\n return;\n }\n\n const typeDeclaration = /** @type { TypedDeclaration } */ (\n moduleDefinition[key]\n );\n\n if (typeDeclaration[2] === 'private') {\n providers[key] = typeDeclaration;\n return;\n }\n\n const type = typeDeclaration[0];\n const value = typeDeclaration[1];\n\n providers[key] = [ factoryMap[type], arrayUnwrap(type, value), type ];\n });\n\n return createInitializer(moduleDefinition, self);\n }\n\n /**\n * @param {ModuleDefinition[]} moduleDefinitions\n * @param {ModuleDefinition} moduleDefinition\n *\n * @return {ModuleDefinition[]}\n */\n function resolveDependencies(moduleDefinitions, moduleDefinition) {\n\n if (moduleDefinitions.indexOf(moduleDefinition) !== -1) {\n return moduleDefinitions;\n }\n\n moduleDefinitions = (moduleDefinition.__depends__ || []).reduce(resolveDependencies, moduleDefinitions);\n\n if (moduleDefinitions.indexOf(moduleDefinition) !== -1) {\n return moduleDefinitions;\n }\n\n return moduleDefinitions.concat(moduleDefinition);\n }\n\n /**\n * @param {ModuleDefinition[]} moduleDefinitions\n *\n * @return { () => void } initializerFn\n */\n function bootstrap(moduleDefinitions) {\n\n const initializers = moduleDefinitions\n .reduce(resolveDependencies, [])\n .map(loadModule);\n\n let initialized = false;\n\n return function() {\n\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n initializers.forEach(initializer => initializer());\n };\n }\n\n // public API\n this.get = get;\n this.invoke = invoke;\n this.instantiate = instantiate;\n this.createChild = createChild;\n\n // setup\n this.init = bootstrap(modules);\n}\n\n\n// helpers ///////////////\n\nfunction arrayUnwrap(type, value) {\n if (type !== 'value' && isArray(value)) {\n value = annotate(value.slice());\n }\n\n return value;\n}\n\n\n//# sourceMappingURL=index.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/didi/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/lang-feel/dist/index.js": +/*!**********************************************!*\ + !*** ./node_modules/lang-feel/dist/index.js ***! + \**********************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ contextualKeyword: () => (/* binding */ contextualKeyword),\n/* harmony export */ dontComplete: () => (/* binding */ dontComplete),\n/* harmony export */ expressionLanguage: () => (/* binding */ expressionLanguage),\n/* harmony export */ feel: () => (/* binding */ feel),\n/* harmony export */ feelLanguage: () => (/* binding */ feelLanguage),\n/* harmony export */ ifInside: () => (/* binding */ ifInside),\n/* harmony export */ keywordCompletions: () => (/* binding */ keywordCompletions),\n/* harmony export */ matchChildren: () => (/* binding */ matchChildren),\n/* harmony export */ matchLeft: () => (/* binding */ matchLeft),\n/* harmony export */ matchRight: () => (/* binding */ matchRight),\n/* harmony export */ snippetCompletion: () => (/* binding */ snippetCompletion),\n/* harmony export */ snippets: () => (/* binding */ snippets),\n/* harmony export */ unaryTestsLanguage: () => (/* binding */ unaryTestsLanguage)\n/* harmony export */ });\n/* harmony import */ var lezer_feel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lezer-feel */ \"./node_modules/lezer-feel/dist/index.js\");\n/* harmony import */ var _codemirror_language__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @codemirror/language */ \"./node_modules/@codemirror/language/dist/index.js\");\n/* harmony import */ var _codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @codemirror/autocomplete */ \"./node_modules/@codemirror/autocomplete/dist/index.js\");\n\n\n\n\n/**\n * A collection of FEEL-related [snippets](#autocomplete.snippet).\n */\nconst snippets = [(0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.snippetCompletion)('function(${params}) ${body}', {\n label: 'function',\n detail: 'definition',\n type: 'keyword'\n}), (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.snippetCompletion)('for ${var} in ${collection} return ${value}', {\n label: 'for',\n detail: 'expression',\n type: 'keyword'\n}), (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.snippetCompletion)('every ${var} in ${collection} satisfies ${condition}', {\n label: 'every',\n detail: 'quantified expression',\n type: 'keyword'\n}), (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.snippetCompletion)('some ${var} in ${collection} satisfies ${condition}', {\n label: 'some',\n detail: 'quantified expression',\n type: 'keyword'\n}), (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.snippetCompletion)('if ${condition} then ${value} else ${other value}', {\n label: 'if',\n detail: 'block',\n type: 'keyword'\n}), (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.snippetCompletion)('{ ${key}: ${value} }', {\n label: 'context',\n detail: 'block',\n type: 'keyword'\n})];\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\nfunction contextualKeyword(options) {\n const {\n context: nodes,\n after,\n before,\n keyword\n } = options;\n return ifInside({\n nodes,\n before,\n after,\n keyword\n }, (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.completeFromList)([{\n label: keyword,\n type: 'keyword',\n boost: 10\n }]));\n}\nconst keywordCompletions = [contextualKeyword({\n context: 'InExpression',\n keyword: 'in'\n}), contextualKeyword({\n context: 'IfExpression',\n keyword: 'then',\n after: 'if',\n before: 'else'\n}), contextualKeyword({\n context: 'IfExpression',\n keyword: 'else',\n after: 'then'\n}), contextualKeyword({\n context: 'QuantifiedExpression',\n keyword: 'satisfies'\n}), contextualKeyword({\n context: 'ForExpression',\n after: 'InExpressions',\n keyword: 'return'\n})];\nconst dontComplete = ['StringLiteral', 'Identifier', 'LineComment', 'BlockComment', 'PathExpression'];\nfunction snippetCompletion(snippets) {\n return (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.ifNotIn)(dontComplete, (0,_codemirror_autocomplete__WEBPACK_IMPORTED_MODULE_0__.completeFromList)(snippets.map(s => _extends({}, s, {\n type: 'text'\n }))));\n}\nfunction matchLeft(node, position, nodes) {\n return matchChildren(node, position, nodes, -1);\n}\nfunction matchRight(node, position, nodes) {\n return matchChildren(node, position, nodes, 1);\n}\nfunction matchChildren(node, position, nodes, direction) {\n let child = node[direction > 0 ? 'childAfter' : 'childBefore'](position);\n while (child) {\n if (nodes.includes(child.name)) {\n return child;\n }\n if (child.type.isError && child.firstChild) {\n if (nodes.includes(child.firstChild.name)) {\n return child.firstChild;\n }\n }\n child = child[direction > 0 ? 'nextSibling' : 'prevSibling'];\n }\n return null;\n}\nfunction matchUp(node, nodeNames) {\n if (!Array.isArray(nodeNames)) {\n nodeNames = [nodeNames];\n }\n for (; node; node = node.parent) {\n if (nodeNames.includes(node.name)) {\n return node;\n }\n if (node.type.isTop) {\n break;\n }\n }\n return null;\n}\nfunction ifInside(options, source) {\n const {\n nodes,\n before,\n after,\n keyword\n } = options;\n return context => {\n const {\n state,\n pos\n } = context;\n const node = matchUp((0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.syntaxTree)(state).resolveInner(pos, -1), nodes);\n if (!node) {\n return null;\n }\n if (matchLeft(node, pos, [keyword, before])) {\n return null;\n }\n if (matchRight(node, pos, [keyword, after])) {\n return null;\n }\n if (after && !matchLeft(node, pos, [after])) {\n return null;\n }\n return source(context);\n };\n}\n\n/**\n * A FEEL language provider based on the\n * [Lezer FEEL parser](https://github.com/nikku/lezer-feel),\n * extended with highlighting and indentation information.\n */\nconst feelLanguage = _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.LRLanguage.define({\n parser: lezer_feel__WEBPACK_IMPORTED_MODULE_2__.parser.configure({\n props: [_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.indentNodeProp.add({\n 'Context': (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.delimitedIndent)({\n closing: '}'\n }),\n 'List FilterExpression': (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.delimitedIndent)({\n closing: ']'\n }),\n 'ParenthesizedExpression FunctionInvocation': (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.continuedIndent)({\n except: /^\\s*\\)/\n }),\n 'ForExpression QuantifiedExpression IfExpression': (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.continuedIndent)({\n except: /^\\s*(then|else|return|satisfies)\\b/\n }),\n 'FunctionDefinition': (0,_codemirror_language__WEBPACK_IMPORTED_MODULE_1__.continuedIndent)({\n except: /^\\s*(\\(|\\))/\n })\n }), _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.foldNodeProp.add({\n Context: _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.foldInside,\n List: _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.foldInside,\n ParenthesizedExpression: _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.foldInside,\n FunctionDefinition(node) {\n const last = node.getChild(')');\n if (!last) return null;\n return {\n from: last.to,\n to: node.to\n };\n }\n })]\n }),\n languageData: {\n indentOnInput: /^\\s*(\\)|\\}|\\]|then|else|return|satisfies)$/,\n commentTokens: {\n line: '//',\n block: {\n open: '/*',\n close: '*/'\n }\n }\n }\n});\n/**\n * A language provider for FEEL Unary Tests\n */\nconst unaryTestsLanguage = feelLanguage.configure({\n top: 'UnaryTests'\n}, 'FEEL unary tests');\n/**\n * Language provider for FEEL Expression\n */\nconst expressionLanguage = feelLanguage.configure({\n top: 'Expression'\n}, 'FEEL expression');\n/**\n * Feel language support for CodeMirror.\n *\n * Includes [snippet](#lang-feel.snippets)\n */\nfunction feel(config = {}) {\n const lang = config.dialect === 'unaryTests' ? unaryTestsLanguage : expressionLanguage;\n const contextualLang = lang.configure({\n contextTracker: (0,lezer_feel__WEBPACK_IMPORTED_MODULE_2__.trackVariables)(config.context)\n });\n const completions = config.completions || [snippetCompletion(snippets), keywordCompletions].flat();\n return new _codemirror_language__WEBPACK_IMPORTED_MODULE_1__.LanguageSupport(contextualLang, [...completions.map(autocomplete => contextualLang.data.of({\n autocomplete\n }))]);\n}\n\n\n//# sourceMappingURL=index.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/lang-feel/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/lezer-feel/dist/index.js": +/*!***********************************************!*\ + !*** ./node_modules/lezer-feel/dist/index.js ***! + \***********************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ VariableContext: () => (/* binding */ VariableContext),\n/* harmony export */ normalizeContextKey: () => (/* binding */ normalizeContextKey),\n/* harmony export */ parser: () => (/* binding */ parser),\n/* harmony export */ trackVariables: () => (/* binding */ trackVariables)\n/* harmony export */ });\n/* harmony import */ var _lezer_lr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lezer/lr */ \"./node_modules/@lezer/lr/dist/index.js\");\n/* harmony import */ var _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @lezer/highlight */ \"./node_modules/@lezer/highlight/dist/index.js\");\n\n\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst propertyIdentifier = 120,\n identifier = 121,\n nameIdentifier = 122,\n insertSemi = 123,\n expression0 = 127,\n ForExpression = 4,\n forExpressionStart = 130,\n ForInExpression = 7,\n Name = 8,\n Identifier = 9,\n AdditionalIdentifier = 10,\n forExpressionBodyStart = 138,\n IfExpression = 19,\n ifExpressionStart = 139,\n QuantifiedExpression = 23,\n quantifiedExpressionStart = 140,\n QuantifiedInExpression = 27,\n PositiveUnaryTest = 37,\n ArithmeticExpression = 41,\n arithmeticPlusStart = 144,\n arithmeticTimesStart = 145,\n arithmeticExpStart = 146,\n arithmeticUnaryStart = 147,\n VariableName = 47,\n PathExpression = 67,\n pathExpressionStart = 152,\n FilterExpression = 69,\n filterExpressionStart = 153,\n FunctionInvocation = 71,\n functionInvocationStart = 154,\n ParameterName = 75,\n nil = 159,\n NumericLiteral = 78,\n StringLiteral = 79,\n BooleanLiteral = 80,\n listStart = 165,\n List = 88,\n FunctionDefinition = 89,\n functionDefinitionStart = 167,\n Context = 96,\n contextStart = 169,\n ContextEntry = 97,\n PropertyName = 99,\n PropertyIdentifier = 100;\n\n/* global console,process */\n\n\n// @ts-expect-error env access\nconst LOG_PARSE = typeof process != 'undefined' && process.env && /\\bfparse(:dbg)?\\b/.test(process.env.LOG);\n\n// @ts-expect-error env access\nconst LOG_PARSE_DEBUG = typeof process != 'undefined' && process.env && /\\bfparse:dbg\\b/.test(process.env.LOG);\n\n// @ts-expect-error env access\nconst LOG_VARS = typeof process != 'undefined' && process.env && /\\bcontext\\b/.test(process.env.LOG);\n\nconst spaceChars = [\n 9, 11, 12, 32, 133, 160,\n 5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198,\n 8199, 8200, 8201, 8202, 8232, 8233, 8239, 8287, 12288\n];\n\nconst newlineChars = chars('\\n\\r');\n\nconst asterix = '*'.charCodeAt(0);\n\nconst additionalNameChars = chars(\"'./-+*^\");\n\n/**\n * @typedef { VariableContext | any } ContextValue\n */\n\n/**\n * @param { string } str\n * @return { number[] }\n */\nfunction chars(str) {\n return Array.from(str).map(s => s.charCodeAt(0));\n}\n\n/**\n * @param { number } ch\n * @return { boolean }\n */\nfunction isStartChar(ch) {\n return (\n ch === 63 // ?\n ) || (\n ch >= 65 && ch <= 90 // A-Z\n ) || (\n ch === 95 // _\n ) || (\n ch >= 97 && ch <= 122 // a-z\n ) || (\n ch >= 0xC0 && ch <= 0xD6\n ) || (\n ch >= 0xD8 && ch <= 0xF6\n ) || (\n ch >= 0xF8 && ch <= 0x2FF\n ) || (\n ch >= 0x370 && ch <= 0x37D\n ) || (\n ch >= 0x37F && ch <= 0x1FFF\n ) || (\n ch >= 0x200C && ch <= 0x200D\n ) || (\n ch >= 0x2070 && ch <= 0x218F\n ) || (\n ch >= 0x2C00 && ch <= 0x2FEF\n ) || (\n ch >= 0x3001 && ch <= 0xD7FF\n ) || (\n ch >= 0xF900 && ch <= 0xFDCF\n ) || (\n ch >= 0xFDF0 && ch <= 0xFFFD\n ) || (\n ch >= 0xD800 && ch <= 0xDBFF // upper surrogate\n ) || (\n ch >= 0xDC00 && ch <= 0xDFFF // lower surrogate\n );\n}\n\n/**\n * @param { number } ch\n * @return { boolean }\n */\nfunction isAdditional(ch) {\n return additionalNameChars.includes(ch);\n}\n\n/**\n * @param { number } ch\n * @return { boolean }\n */\nfunction isPartChar(ch) {\n return (\n ch >= 48 && ch <= 57 // 0-9\n ) || (\n ch === 0xB7\n ) || (\n ch >= 0x0300 && ch <= 0x036F\n ) || (\n ch >= 0x203F && ch <= 0x2040\n );\n}\n\n/**\n * @param { number } ch\n * @return { boolean }\n */\nfunction isSpace(ch) {\n return spaceChars.includes(ch);\n}\n\n// eslint-disable-next-line\nfunction indent(str, spaces) {\n return spaces.concat(\n str.split(/\\n/g).join('\\n' + spaces)\n );\n}\n\n/**\n * @param { import('@lezer/lr').InputStream } input\n * @param { number } [offset]\n *\n * @return { { token: string, offset: number } | null }\n */\nfunction parseAdditionalSymbol(input, offset = 0) {\n\n const next = input.peek(offset);\n\n if (next === asterix && input.peek(offset + 1) === asterix) {\n\n return {\n offset: 2,\n token: '**'\n };\n }\n\n if (isAdditional(next)) {\n return {\n offset: 1,\n token: String.fromCharCode(next)\n };\n }\n\n return null;\n}\n\n/**\n * @param { import('@lezer/lr').InputStream } input\n * @param { number } [offset]\n * @param { boolean } [namePart]\n *\n * @return { { token: string, offset: number } | null }\n */\nfunction parseIdentifier(input, offset = 0, namePart = false) {\n for (let inside = false, chars = [], i = 0;; i++) {\n const next = input.peek(offset + i);\n\n if (isStartChar(next) || ((inside || namePart) && isPartChar(next))) {\n if (!inside) {\n inside = true;\n }\n\n chars.push(next);\n } else {\n\n if (chars.length) {\n return {\n token: String.fromCharCode(...chars),\n offset: i\n };\n }\n\n return null;\n }\n }\n}\n\n/**\n * @param { import('@lezer/lr').InputStream } input\n * @param { number } offset\n *\n * @return { { token: string, offset: number } | null }\n */\nfunction parseSpaces(input, offset) {\n\n for (let inside = false, i = 0;; i++) {\n let next = input.peek(offset + i);\n\n if (isSpace(next)) {\n if (!inside) {\n inside = true;\n }\n } else {\n if (inside) {\n return {\n token: ' ',\n offset: i\n };\n }\n\n return null;\n }\n }\n}\n\n/**\n * Parse a name from the input and return the first match, if any.\n *\n * @param { import('@lezer/lr').InputStream } input\n * @param { Variables } variables\n *\n * @return { { token: string, offset: number, term: number } | null }\n */\nfunction parseName(input, variables) {\n const contextKeys = variables.contextKeys();\n\n const start = variables.tokens;\n\n for (let i = 0, tokens = [], nextMatch = null;;) {\n\n const namePart = (start.length + tokens.length) > 0;\n const maybeSpace = tokens.length > 0;\n\n const match = (\n parseIdentifier(input, i, namePart) ||\n namePart && parseAdditionalSymbol(input, i) ||\n maybeSpace && parseSpaces(input, i)\n );\n\n // match is required\n if (!match) {\n return nextMatch;\n }\n\n const {\n token,\n offset\n } = match;\n\n i += offset;\n\n if (token === ' ') {\n continue;\n }\n\n tokens = [ ...tokens, token ];\n\n const name = [ ...start, ...tokens ].join(' ');\n\n if (contextKeys.some(el => el === name)) {\n const token = tokens[0];\n\n nextMatch = {\n token,\n offset: token.length,\n term: nameIdentifier\n };\n }\n\n if (contextKeys.some(el => el.startsWith(name))) {\n continue;\n }\n\n if (dateTimeIdentifiers.some(el => el === name)) {\n const token = tokens[0];\n\n // parse date time identifiers as normal\n // identifiers to allow specialization to kick in\n //\n // cf. https://github.com/nikku/lezer-feel/issues/8\n nextMatch = {\n token,\n offset: token.length,\n term: identifier\n };\n }\n\n if (dateTimeIdentifiers.some(el => el.startsWith(name))) {\n continue;\n }\n\n return nextMatch;\n }\n\n}\n\nconst identifiersMap = {\n [ identifier ]: 'identifier',\n [ nameIdentifier ]: 'nameIdentifier'\n};\n\nconst identifiers = new _lezer_lr__WEBPACK_IMPORTED_MODULE_0__.ExternalTokenizer((input, stack) => {\n\n LOG_PARSE_DEBUG && console.log('%s: T ', input.pos);\n\n const nameMatch = parseName(input, stack.context);\n\n const start = stack.context.tokens;\n\n const match = nameMatch || parseIdentifier(input, 0, start.length > 0);\n\n if (match) {\n input.advance(match.offset);\n input.acceptToken(nameMatch ? nameMatch.term : identifier);\n\n LOG_PARSE && console.log('%s: MATCH <%s> <%s>', input.pos, nameMatch ? identifiersMap[nameMatch.term] : 'identifier', match.token);\n }\n}, { contextual: true });\n\n\nconst propertyIdentifiers = new _lezer_lr__WEBPACK_IMPORTED_MODULE_0__.ExternalTokenizer((input, stack) => {\n\n LOG_PARSE_DEBUG && console.log('%s: T ', input.pos);\n\n const start = stack.context.tokens;\n\n const match = parseIdentifier(input, 0, start.length > 0);\n\n if (match) {\n input.advance(match.offset);\n input.acceptToken(propertyIdentifier);\n\n LOG_PARSE && console.log('%s: MATCH <%s>', input.pos, match.token);\n }\n});\n\n\nconst insertSemicolon = new _lezer_lr__WEBPACK_IMPORTED_MODULE_0__.ExternalTokenizer((input, stack) => {\n\n LOG_PARSE_DEBUG && console.log('%s: T ', input.pos);\n\n let offset;\n let insert = false;\n\n for (offset = 0;; offset++) {\n const char = input.peek(offset);\n\n if (spaceChars.includes(char)) {\n continue;\n }\n\n if (newlineChars.includes(char)) {\n insert = true;\n }\n\n break;\n }\n\n if (insert) {\n\n const identifier = parseIdentifier(input, offset + 1);\n const spaces = parseSpaces(input, offset + 1);\n\n if (spaces || identifier && /^(then|else|return|satisfies)$/.test(identifier.token)) {\n return;\n }\n\n LOG_PARSE && console.log('%s: MATCH ', input.pos);\n input.acceptToken(insertSemi);\n }\n});\n\nconst prefixedContextStarts = {\n [ functionInvocationStart ]: 'FunctionInvocation',\n [ filterExpressionStart ]: 'FilterExpression',\n [ pathExpressionStart ]: 'PathExpression'\n};\n\nconst contextStarts = {\n [ contextStart ]: 'Context',\n [ functionDefinitionStart ]: 'FunctionDefinition',\n [ forExpressionStart ]: 'ForExpression',\n [ listStart ]: 'List',\n [ ifExpressionStart ]: 'IfExpression',\n [ quantifiedExpressionStart ]: 'QuantifiedExpression'\n};\n\nconst contextEnds = {\n [ Context ]: 'Context',\n [ FunctionDefinition ]: 'FunctionDefinition',\n [ ForExpression ]: 'ForExpression',\n [ List ]: 'List',\n [ IfExpression ]: 'IfExpression',\n [ QuantifiedExpression ]: 'QuantifiedExpression',\n [ PathExpression ]: 'PathExpression',\n [ FunctionInvocation ]: 'FunctionInvocation',\n [ FilterExpression ]: 'FilterExpression',\n [ ArithmeticExpression ]: 'ArithmeticExpression'\n};\n\nclass ValueProducer {\n\n /**\n * @param { Function } fn\n */\n constructor(fn) {\n this.fn = fn;\n }\n\n get(variables) {\n return this.fn(variables);\n }\n\n /**\n * @param { Function } fn\n *\n * @return { ValueProducer }\n */\n static of(fn) {\n return new ValueProducer(fn);\n }\n\n}\n\nconst dateTimeLiterals = {\n 'date and time': 1,\n 'date': 1,\n 'time': 1,\n 'duration': 1\n};\n\nconst dateTimeIdentifiers = Object.keys(dateTimeLiterals);\n\n\n/**\n * A basic key-value store to hold context values.\n */\nclass VariableContext {\n\n /**\n * Creates a new context from a JavaScript object.\n *\n * @param {any} value\n */\n constructor(value = {}) {\n\n /**\n * @protected\n */\n this.value = value;\n }\n\n /**\n * Return all defined keys of the context.\n *\n * @returns {Array} the keys of the context\n */\n getKeys() {\n return Object.keys(this.value);\n }\n\n /**\n * Returns the value of the given key.\n *\n * If the value represents a context itself, it should be wrapped in a\n * context class.\n *\n * @param {String} key\n * @returns {VariableContext|ValueProducer|null}\n */\n get(key) {\n const result = this.value[key];\n\n const constructor = /** @type { typeof VariableContext } */ (this.constructor);\n\n if (constructor.isAtomic(result)) {\n return result;\n }\n\n return constructor.of(result);\n }\n\n /**\n * Creates a new context with the given key added.\n *\n * @param {String} key\n * @param {any} value\n *\n * @returns {VariableContext} new context with the given key added\n */\n set(key, value) {\n\n const constructor = /** @type { typeof VariableContext } */ (this.constructor);\n\n return constructor.of({\n ...this.value,\n [key]: value\n });\n }\n\n /**\n * Wether the given value is atomic. Non-atomic values need to be wrapped in a\n * context Class.\n *\n * @param {any} value\n * @returns {Boolean}\n */\n static isAtomic(value) {\n return !value ||\n value instanceof this ||\n value instanceof ValueProducer ||\n typeof value !== 'object';\n }\n\n /**\n * Takes any number of Contexts and merges them into a single Context.\n *\n * @param {...Context} contexts\n * @returns {VariableContext}\n */\n static of(...contexts) {\n const unwrap = (context) => {\n if (!context || typeof context !== 'object') {\n return {};\n }\n\n if (context instanceof this) {\n return context.value;\n }\n\n return { ...context };\n };\n\n const merged = contexts.reduce((merged, context) => {\n return {\n ...merged,\n ...unwrap(context)\n };\n }, {});\n\n return new this(merged);\n }\n\n}\n\nclass Variables {\n\n constructor({\n name = 'Expressions',\n tokens = [],\n children = [],\n parent = null,\n context = null,\n value = null,\n raw = null\n } = {}) {\n this.name = name;\n this.tokens = tokens;\n this.children = children;\n this.parent = parent;\n this.context = context;\n this.value = value;\n this.raw = raw;\n }\n\n enterScope(name) {\n\n const childScope = this.of({\n name,\n parent: this\n });\n\n LOG_VARS && console.log('[%s] enter', childScope.path, childScope.context);\n\n return childScope;\n }\n\n exitScope(str) {\n\n if (!this.parent) {\n LOG_VARS && console.log('[%s] NO exit %o\\n%s', this.path, this.context, indent(str, ' '));\n\n return this;\n }\n\n LOG_VARS && console.log('[%s] exit %o\\n%s', this.path, this.context, indent(str, ' '));\n\n return this.parent.pushChild(this);\n }\n\n token(part) {\n\n LOG_VARS && console.log('[%s] token <%s> + <%s>', this.path, this.tokens.join(' '), part);\n\n return this.assign({\n tokens: [ ...this.tokens, part ]\n });\n }\n\n literal(value) {\n\n LOG_VARS && console.log('[%s] literal %o', this.path, value);\n\n return this.pushChild(this.of({\n name: 'Literal',\n value\n }));\n }\n\n /**\n * Return computed scope value\n *\n * @return {any}\n */\n computedValue() {\n for (let scope = this;;scope = last(scope.children)) {\n\n if (!scope) {\n return null;\n }\n\n if (scope.value) {\n return scope.value;\n }\n }\n }\n\n contextKeys() {\n return this.context.getKeys().map(normalizeContextKey);\n }\n\n get path() {\n return this.parent?.path?.concat(' > ', this.name) || this.name;\n }\n\n /**\n * Return value of variable.\n *\n * @param { string } variable\n * @return { any } value\n */\n get(variable) {\n\n const names = [ variable, variable && normalizeContextKey(variable) ];\n\n const contextKey = this.context.getKeys().find(\n key => names.includes(normalizeContextKey(key))\n );\n\n if (typeof contextKey === 'undefined') {\n return undefined;\n }\n\n const val = this.context.get(contextKey);\n\n if (val instanceof ValueProducer) {\n return val.get(this);\n } else {\n return val;\n }\n }\n\n resolveName() {\n\n const variable = this.tokens.join(' ');\n const tokens = [];\n\n const parentScope = this.assign({\n tokens\n });\n\n const variableScope = this.of({\n name: 'VariableName',\n parent: parentScope,\n value: this.get(variable),\n raw: variable\n });\n\n LOG_VARS && console.log('[%s] resolve name <%s=%s>', variableScope.path, variable, this.get(variable));\n\n return parentScope.pushChild(variableScope);\n }\n\n pushChild(child) {\n\n if (!child) {\n return this;\n }\n\n const parent = this.assign({\n children: [ ...this.children, child ]\n });\n\n child.parent = parent;\n\n return parent;\n }\n\n pushChildren(children) {\n\n /**\n * @type {Variables}\n */\n let parent = this;\n\n for (const child of children) {\n parent = parent.pushChild(child);\n }\n\n return parent;\n }\n\n declareName() {\n\n if (this.tokens.length === 0) {\n throw Error('no tokens to declare name');\n }\n\n const variableName = this.tokens.join(' ');\n\n LOG_VARS && console.log('[%s] declareName <%s>', this.path, variableName);\n\n return this.assign({\n tokens: []\n }).pushChild(\n this.of({\n name: 'Name',\n value: variableName\n })\n );\n }\n\n define(name, value) {\n\n if (typeof name !== 'string') {\n LOG_VARS && console.log('[%s] no define <%s=%s>', this.path, name, value);\n\n return this;\n }\n\n LOG_VARS && console.log('[%s] define <%s=%s>', this.path, name, value);\n\n const context = this.context.set(name, value);\n\n return this.assign({\n context\n });\n }\n\n /**\n * @param { Record } [options]\n *\n * @return { Variables }\n */\n assign(options = {}) {\n\n return Variables.of({\n ...this,\n ...options\n });\n }\n\n /**\n * @param { Record } [options]\n *\n * @return { Variables }\n */\n of(options = {}) {\n\n const defaultOptions = {\n context: this.context,\n parent: this.parent\n };\n\n return Variables.of({\n ...defaultOptions,\n ...options\n });\n }\n\n static of(options) {\n\n const {\n name,\n tokens = [],\n children = [],\n parent = null,\n context,\n value,\n raw\n } = options;\n\n if (!context) {\n throw new Error('must provide ');\n }\n\n return new Variables({\n name,\n tokens: [ ...tokens ],\n children: [ ...children ],\n context,\n parent,\n value,\n raw\n });\n }\n\n}\n\n/**\n * @param { string } name\n *\n * @return { string } normalizedName\n */\nfunction normalizeContextKey(name) {\n return name.replace(/\\s*([./\\-'+]|\\*\\*?)\\s*/g, ' $1 ').replace(/\\s{2,}/g, ' ').trim();\n}\n\n/**\n * Wrap children of variables under the given named child.\n *\n * @param { Variables } variables\n * @param { string } scopeName\n * @param { string } code\n * @return { Variables }\n */\nfunction wrap(variables, scopeName, code) {\n\n const parts = variables.children.filter(c => c.name !== scopeName);\n const children = variables.children.filter(c => c.name === scopeName);\n\n const namePart = parts[0];\n const valuePart = parts[Math.max(1, parts.length - 1)];\n\n const name = namePart?.computedValue();\n const value = valuePart?.computedValue() || null;\n\n return variables\n .assign({\n children\n })\n .enterScope(scopeName)\n .pushChildren(parts)\n .exitScope(code)\n .define(name, value);\n}\n\n/**\n * @param { ContextValue } [context]\n * @param { typeof VariableContext } [Context]\n *\n * @return { ContextTracker }\n */\nfunction trackVariables(context = {}, Context = VariableContext) {\n\n const start = Variables.of({\n context: Context.of(context)\n });\n\n return new _lezer_lr__WEBPACK_IMPORTED_MODULE_0__.ContextTracker({\n start,\n reduce(variables, term, stack, input) {\n\n if (term === IfExpression) {\n const [ thenPart, elsePart ] = variables.children.slice(-2);\n\n variables = variables.assign({\n value: Context.of(\n thenPart?.computedValue(),\n elsePart?.computedValue()\n )\n });\n }\n\n if (term === List) {\n variables = variables.assign({\n value: Context.of(\n ...variables.children.map(\n c => c?.computedValue()\n )\n )\n });\n }\n\n if (term === FilterExpression) {\n const [ sourcePart, _ ] = variables.children.slice(-2);\n\n variables = variables.assign({\n value: sourcePart?.computedValue()\n });\n }\n\n if (term === FunctionInvocation) {\n\n const [\n name,\n ...args\n ] = variables.children;\n\n // preserve type information through `get value(context, key)` utility\n if (name?.raw === 'get value') {\n variables = getContextValue(variables, args);\n }\n }\n\n const start = contextStarts[term];\n\n if (start) {\n return variables.enterScope(start);\n }\n\n const prefixedStart = prefixedContextStarts[term];\n\n // pull into new context\n if (prefixedStart) {\n\n const {\n children: currentChildren,\n context: currentContext,\n } = variables;\n\n const children = currentChildren.slice(0, -1);\n const lastChild = last(currentChildren);\n\n let newContext = null;\n\n if (term === pathExpressionStart) {\n newContext = Context.of(lastChild?.computedValue());\n }\n\n if (term === filterExpressionStart) {\n newContext = Context.of(\n currentContext,\n lastChild?.computedValue()\n ).set('item', lastChild?.computedValue());\n }\n\n return variables\n .assign({ children })\n .enterScope(prefixedStart)\n .pushChild(lastChild)\n .assign({ context: newContext || currentContext });\n }\n\n // @ts-expect-error internal method\n const code = input.read(input.pos, stack.pos);\n\n const end = contextEnds[term];\n\n if (end) {\n return variables.exitScope(code);\n }\n\n if (term === ContextEntry) {\n const parts = variables.children.filter(c => c.name !== 'ContextEntry');\n\n const name = parts[0];\n const value = last(parts);\n\n return wrap(variables, 'ContextEntry', code).assign(\n {\n value: Context\n .of(variables.value)\n .set(name?.computedValue(), value?.computedValue())\n }\n );\n }\n\n if (\n term === ForInExpression ||\n term === QuantifiedInExpression\n ) {\n return wrap(variables, 'InExpression', code);\n }\n\n // define within ForExpression body\n if (term === forExpressionBodyStart) {\n\n return variables.define(\n 'partial',\n ValueProducer.of(variables => {\n return last(variables.children)?.computedValue();\n })\n );\n }\n\n if (\n term === ParameterName\n ) {\n const name = last(variables.children).computedValue();\n\n // TODO: attach type information\n return variables.define(name, 1);\n }\n\n // pull into ArithmeticExpression child\n if (\n term === arithmeticPlusStart ||\n term === arithmeticTimesStart ||\n term === arithmeticExpStart\n ) {\n const children = variables.children.slice(0, -1);\n const lastChild = last(variables.children);\n\n return variables.assign({\n children\n }).enterScope('ArithmeticExpression').pushChild(lastChild);\n }\n\n if (term === arithmeticUnaryStart) {\n return variables.enterScope('ArithmeticExpression');\n }\n\n if (\n term === Identifier ||\n term === AdditionalIdentifier ||\n term === PropertyIdentifier\n ) {\n return variables.token(code);\n }\n\n if (\n term === StringLiteral\n ) {\n return variables.literal(code.replace(/^\"|\"$/g, ''));\n }\n\n if (term === BooleanLiteral) {\n return variables.literal(code === 'true' ? true : false);\n }\n\n if (term === NumericLiteral) {\n return variables.literal(parseFloat(code));\n }\n\n if (term === nil) {\n return variables.literal(null);\n }\n\n if (\n term === VariableName\n ) {\n return variables.resolveName();\n }\n\n if (\n term === Name ||\n term === PropertyName\n ) {\n return variables.declareName();\n }\n\n if (\n term === expression0 ||\n term === PositiveUnaryTest\n ) {\n if (variables.tokens.length > 0) {\n throw new Error('uncleared name');\n }\n }\n\n if (term === expression0) {\n\n let parent = variables;\n\n while (parent.parent) {\n parent = parent.exitScope(code);\n }\n\n return parent;\n }\n\n return variables;\n }\n });\n}\n\nconst variableTracker = trackVariables({});\n\n\n// helpers //////////////\n\nfunction getContextValue(variables, args) {\n\n if (!args.length) {\n return variables.assign({\n value: null\n });\n }\n\n if (args[0].name === 'Name') {\n args = extractNamedArgs(args, [ 'm', 'key' ]);\n }\n\n if (args.length !== 2) {\n return variables.assign({\n value: null\n });\n }\n\n const [\n context,\n key\n ] = args;\n\n const keyValue = key?.computedValue();\n const contextValue = context?.computedValue();\n\n if (\n (!contextValue || typeof contextValue !== 'object') || typeof keyValue !== 'string'\n ) {\n return variables.assign({\n value: null\n });\n }\n\n return variables.assign({\n value: [ normalizeContextKey(keyValue), keyValue ].reduce((value, keyValue) => {\n return contextValue.get(keyValue) || value;\n }, null)\n });\n}\n\nfunction extractNamedArgs(args, argNames) {\n\n const context = {};\n\n for (let i = 0; i < args.length; i += 2) {\n const [ name, value ] = args.slice(i, i + 2);\n\n context[name.value] = value;\n }\n\n return argNames.map(name => context[name]);\n}\n\nfunction last(arr) {\n return arr[arr.length - 1];\n}\n\nconst feelHighlighting = (0,_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.styleTags)({\n StringLiteral: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string,\n NumericLiteral: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.number,\n BooleanLiteral: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.bool,\n 'AtLiteral!': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.string),\n CompareOp: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.compareOperator,\n ArithOp: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.arithmeticOperator,\n 'for if then else some every satisfies between return': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.controlKeyword,\n 'in instance of and or': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.operatorKeyword,\n function: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definitionKeyword,\n as: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.keyword,\n 'Type/...': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.typeName,\n Wildcard: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName),\n null: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.null,\n LineComment: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.lineComment,\n BlockComment: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.blockComment,\n 'VariableName! \"?\"': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName,\n 'DateTimeConstructor! SpecialFunctionName!': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.function(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.special(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName)),\n 'List Interval': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.list,\n Context: _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definition(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.literal),\n 'Name!': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definition(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName),\n 'Key/Name! ContextEntryType/Name!': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definition(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.propertyName),\n 'PathExpression/VariableName!': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.function(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.propertyName),\n 'FormalParameter/ParameterName!': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.function(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.definition(_lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.variableName)),\n '( )': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.paren,\n '[ ]': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.squareBracket,\n '{ }': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.brace,\n '.': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.derefOperator,\n ', ;': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.separator,\n '..': _lezer_highlight__WEBPACK_IMPORTED_MODULE_1__.tags.punctuation\n});\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst spec_identifier = {__proto__:null,for:10, in:32, return:36, if:40, then:42, else:44, some:48, every:50, satisfies:56, or:60, and:64, between:72, instance:86, of:89, days:99, time:101, duration:103, years:105, months:107, date:109, list:115, context:121, function:128, null:154, true:326, false:326, \"?\":168, external:184, not:209};\nconst parser = _lezer_lr__WEBPACK_IMPORTED_MODULE_0__.LRParser.deserialize({\n version: 14,\n states: \"CpO`QYOOO`QYOOO$gQYOOOOQU'#Ce'#CeO$qQYO'#C`O%zQYO'#FPOOQQ'#Fe'#FeO&UQYO'#FeO`QYO'#DVOOQU'#Em'#EmO'rQ^O'#D]OOQO'#Fl'#FlO)oQWO'#DuOOQQ'#D|'#D|OOQQ'#D}'#D}OOQQ'#EO'#EOO)tOWO'#ERO)oQWO'#EPOOQQ'#EP'#EPOOQQ'#Fr'#FrOOQQ'#Fp'#FpOOQQ'#Fw'#FwOOQQ'#ET'#ETO`QYO'#EVOOQQ'#FR'#FRO)yQ^O'#FRO+pQYO'#EWO+wQWO'#EXOOQP'#F{'#F{O+|QXO'#E`OOQQ'#Fx'#FxOOQQ'#FQ'#FQQOQWOOOOQQ'#FS'#FSOOQQ'#F]'#F]O`QYO'#CoOOQQ'#F^'#F^O$qQYO'#CsO,XQYO'#DvOOQQ'#Fq'#FqO,^QYO'#EQOOQO'#EQ'#EQO`QYO'#EUO`QYO'#ETOOQO'#Fy'#FyQ,fQWOOO,kQYO'#DRO-bQWO'#FaOOQO'#DT'#DTO-mQYO'#FeO-tQWOOO.kQYO'#CdO.xQYO'#FUOOQQ'#Cc'#CcO.}QYO'#FTOOQQ'#Cb'#CbO/VQYO,58zO`QYO,59iOOQQ'#Fb'#FbOOQQ'#Fc'#FcOOQQ'#Fd'#FdO`QYO,59qO`QYO,59qO`QYO,59qOOQQ'#Fj'#FjO$qQYO,5:]OOQQ'#Fk'#FkO`QYO,5:_O`QYO,59eO`QYO,59gO`QYO,59iO0uQYO,59iO0|QYO,59rOOQQ,5:h,5:hO1RQYO,59qOOQU-E8k-E8kO2uQYO'#FmOOQQ,5:a,5:aOOQQ,5:m,5:mOOQQ,5:k,5:kO2|QYO,5:qOOQQ,5;m,5;mO3WQYO,5:pO3eQWO,5:rO3jQYO,5:sOOQP'#Ed'#EdO4aQXO'#EcOOQO'#Eb'#EbO4hQWO'#EaO4mQWO'#F|O4uQWO,5:zO4zQYO,59ZO.xQYO'#F`OOQQ'#Cw'#CwO5RQYO'#F_OOQQ'#Cv'#CvO5ZQYO,59_O5`QYO,5:bO5eQYO,5:lO3PQYO,5:pO5jQYO,5:oO`QYO'#EvQ,fQWOOO`QYO'#ElO6aQWO,5;{O`QYOOOOQR'#Cf'#CfOOQQ'#Ei'#EiO7ZQYO,59OO`QYO,5;pOOQQ'#FX'#FXO$qQYO'#EjO7kQYO,5;oO`QYO1G.fOOQQ'#F['#F[O8bQYO1G/TO;XQYO1G/]O;cQYO1G/]O;mQYO1G/]OOQQ1G/w1G/wO=aQYO1G/yO=hQYO1G/PO>qQYO1G/RO?zQYO1G/TO`QYO1G/TOOQQ1G/T1G/TO@bQYO1G/^O@|Q^O'#CdOB`QYO'#FoOOQO'#Dy'#DyOBjQWO'#DxOBoQWO'#FnOOQO'#Dw'#DwOOQO'#Dz'#DzOBwQWO,5eAN>eO$qQYO'#EnO! VQYO<hP>kP>o?b@T@|ASAV$rA]A]PPPPBU7qB}CvCyDr!mhOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR!YSQ!WSR$k#cS!US#cS#Ou$^W#u!n!v$|%TT&R%k&a#WXOPQWYgjsz{!Z!_!`!a!c!e!f!g!h!i#X#Z#]#a#e#p#r#|#}$W$[$]$`$o${%S%V%b%e%j%l%w%x&O&`&d&l&n&o&rb!TSu!v#c$^$|%T%k&aU#_!T#`#sR#s!nU#_!T#`#sT$U!x$VR$j#aR#SuQ#QuR%^$^U!PQ#]#pQ#q!iR$e#ZQpQQ$g#]R$q#pQ$z#rQ%r%SQ&Q%jU&V%l&d&rQ&g&`T&m&l&oc$s#r%S%j%l&`&d&l&o&r!liOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xQ#k!cU$r#r%S&lS%z%e&n]&P%j%l&`&d&o&rR&U%kQ&S%kR&h&aQ&Y%lR&q&rS&W%l&rR&j&d!mZOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR#z!nQ#w!nR%n$|S#v!n$|T$Q!v%T!mcOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!lcOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xQ!p`T!ym$X!maOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!mbOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!mfOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!mnOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR$T!vQ$R!vR%s%TQ%v%VR&Z%wQ!{mR%Y$XT!zm$XS!xm$XT$U!x$VRpQS#`!T#sR$h#`Q#d!WR$l#dQ$_#QR%_$_Q#[!PR$f#[!vYOPQWgjsz{!Z!_!`!a!c!e!f!g!h!i!n#X#Z#]#a#e#p#r#|#}$W$[$]$`$o${%S%V%b%e%w%x&lS!mY&O_&O%j%l&`&d&n&o&rQ%f$rS%{%f&^R&^&PQ&b&SR&i&bQ&e&WR&k&eQ$}#wR%o$}S$O!t#tR%R$OQ%U$RR%t%UQ$V!xR%W$VQ$Y!{R%Z$YQ#Y}R$d#YQpOQ}PR$c#XUTOP#XW!OQ!i#Z#]Q!lWQ!rgQ!tjQ!}sQ#VzQ#W{Q#g!ZQ#h!_Q#i!`Q#j!aQ#l!eQ#m!fQ#n!gQ#o!hQ#t!nQ$i#aQ$m#eQ$p#pQ%P#|Q%Q#}Q%X$WQ%[$[Q%]$]Q%`$`Q%c$oQ%m${S%u%V%wQ%y%bR&[%x!moOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!mSOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR!XST!VS#cQ#a!UR$]#OR#e!Y!msOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!muOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR#RuT#Pu$^V!QQ#]#p!X!_T!O!r!t!}#V#W#g#l#m#n#o#t$i$m$p%P%Q%X%[%]%`%c%m%u%y&[!Z!`T!O!r!t!}#V#W#g#h#l#m#n#o#t$i$m$p%P%Q%X%[%]%`%c%m%u%y&[!]!aT!O!r!t!}#V#W#g#h#i#l#m#n#o#t$i$m$p%P%Q%X%[%]%`%c%m%u%y&[!mWOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR&T%kT&X%l&r!a!cT!O!l!r!t!}#V#W#g#h#i#j#l#m#n#o#t$i$m$p%P%Q%X%[%]%`%c%m%u%y&[!a!eT!O!l!r!t!}#V#W#g#h#i#j#l#m#n#o#t$i$m$p%P%Q%X%[%]%`%c%m%u%y&[!m[OPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xQ!o[R!qaR#x!nQ!ujR#y!n!mdOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!mjOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%x!mkOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR$S!v!mmOPQWgjsz{!Z!_!`!a!e!f!g!h!i!n#X#Z#]#a#e#p#|#}$W$[$]$`$o${%V%b%w%xR!|m\",\n nodeNames: \"⚠ LineComment BlockComment Expression ForExpression for InExpressions InExpression Name Identifier Identifier ArithOp ArithOp ArithOp ArithOp ArithOp in IterationContext return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression InstanceOfExpression instance of Type QualifiedName VariableName SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier Expressions UnaryTests Wildcard not\",\n maxTerm: 171,\n context: variableTracker,\n nodeProps: [\n [\"closedBy\", 38,\")\",70,\"]\",95,\"}\"],\n [\"openedBy\", 40,\"(\",68,\"[\",94,\"{\"],\n [\"group\", -5,77,78,79,80,81,\"Literal\"]\n ],\n propSources: [feelHighlighting],\n skippedNodes: [0,1,2],\n repeatNodeCount: 14,\n tokenData: \"+l~RuXY#fYZ$ZZ[#f]^$Zpq#fqr$`rs$kwx&cxy&hyz&mz{&r{|'P|}'U}!O'Z!O!P'h!P!Q(Q!Q![){![!]*^!]!^*c!^!_*h!_!`$f!`!a*w!b!c+R!}#O+W#P#Q+]#Q#R&z#o#p+b#q#r+g$f$g#f#BY#BZ#f$IS$I_#f$I|$I}$Z$I}$JO$Z$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~#kY#q~XY#fZ[#fpq#f$f$g#f#BY#BZ#f$IS$I_#f$JT$JU#f$KV$KW#f&FU&FV#f?HT?HU#f~$`O#r~~$cP!_!`$f~$kOr~~$pW$h~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&]<%lO$k~%_O$h~~%bRO;'S$k;'S;=`%k;=`O$k~%pX$h~OY$kZr$krs%Ys#O$k#O#P%_#P;'S$k;'S;=`&];=`<%l$k<%lO$k~&`P;=`<%l$k~&hO#z~~&mOv~~&rOx~~&wP^~z{&z~'PO_~~'UO[~~'ZO#}~R'`PZP!`!a'cQ'hO$]Q~'mQ#y~!O!P's!Q!['x~'xO#|~~'}P$g~!Q!['x~(VQ]~z{(]!P!Q)d~(`TOz(]z{(o{;'S(];'S;=`)^<%lO(]~(rVOz(]z{(o{!P(]!P!Q)X!Q;'S(];'S;=`)^<%lO(]~)^OQ~~)aP;=`<%l(]~)iSP~OY)dZ;'S)d;'S;=`)u<%lO)d~)xP;=`<%l)d~*QQ$g~!O!P*W!Q![){~*ZP!Q!['x~*cO$Z~~*hO$q~R*oP![QsP!_!`*rP*wOsPR+OP!XQsP!_!`*r~+WO$j~~+]O!h~~+bO!f~~+gO#R~~+lO#Q~\",\n tokenizers: [propertyIdentifiers, identifiers, insertSemicolon, 0, 1],\n topRules: {\"Expression\":[0,3],\"Expressions\":[1,101],\"UnaryTests\":[2,102]},\n dynamicPrecedences: {\"31\":-1,\"67\":1,\"71\":-1,\"73\":-1},\n specialized: [{term: 121, get: (value) => spec_identifier[value] || -1}],\n tokenPrec: 2500\n});\n\n\n//# sourceMappingURL=index.js.map\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/lezer-feel/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/min-dash/dist/index.esm.js": +/*!*************************************************!*\ + !*** ./node_modules/min-dash/dist/index.esm.js ***! + \*************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ assign: () => (/* binding */ assign),\n/* harmony export */ bind: () => (/* binding */ bind),\n/* harmony export */ debounce: () => (/* binding */ debounce),\n/* harmony export */ ensureArray: () => (/* binding */ ensureArray),\n/* harmony export */ every: () => (/* binding */ every),\n/* harmony export */ filter: () => (/* binding */ filter),\n/* harmony export */ find: () => (/* binding */ find),\n/* harmony export */ findIndex: () => (/* binding */ findIndex),\n/* harmony export */ flatten: () => (/* binding */ flatten),\n/* harmony export */ forEach: () => (/* binding */ forEach),\n/* harmony export */ get: () => (/* binding */ get),\n/* harmony export */ groupBy: () => (/* binding */ groupBy),\n/* harmony export */ has: () => (/* binding */ has),\n/* harmony export */ isArray: () => (/* binding */ isArray),\n/* harmony export */ isDefined: () => (/* binding */ isDefined),\n/* harmony export */ isFunction: () => (/* binding */ isFunction),\n/* harmony export */ isNil: () => (/* binding */ isNil),\n/* harmony export */ isNumber: () => (/* binding */ isNumber),\n/* harmony export */ isObject: () => (/* binding */ isObject),\n/* harmony export */ isString: () => (/* binding */ isString),\n/* harmony export */ isUndefined: () => (/* binding */ isUndefined),\n/* harmony export */ keys: () => (/* binding */ keys),\n/* harmony export */ map: () => (/* binding */ map),\n/* harmony export */ matchPattern: () => (/* binding */ matchPattern),\n/* harmony export */ merge: () => (/* binding */ merge),\n/* harmony export */ omit: () => (/* binding */ omit),\n/* harmony export */ pick: () => (/* binding */ pick),\n/* harmony export */ reduce: () => (/* binding */ reduce),\n/* harmony export */ set: () => (/* binding */ set),\n/* harmony export */ size: () => (/* binding */ size),\n/* harmony export */ some: () => (/* binding */ some),\n/* harmony export */ sortBy: () => (/* binding */ sortBy),\n/* harmony export */ throttle: () => (/* binding */ throttle),\n/* harmony export */ unionBy: () => (/* binding */ unionBy),\n/* harmony export */ uniqueBy: () => (/* binding */ uniqueBy),\n/* harmony export */ values: () => (/* binding */ values),\n/* harmony export */ without: () => (/* binding */ without)\n/* harmony export */ });\n/**\n * Flatten array, one level deep.\n *\n * @template T\n *\n * @param {T[][] | T[] | null} [arr]\n *\n * @return {T[]}\n */\nfunction flatten(arr) {\n return Array.prototype.concat.apply([], arr);\n}\n\nconst nativeToString = Object.prototype.toString;\nconst nativeHasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction isUndefined(obj) {\n return obj === undefined;\n}\n\nfunction isDefined(obj) {\n return obj !== undefined;\n}\n\nfunction isNil(obj) {\n return obj == null;\n}\n\nfunction isArray(obj) {\n return nativeToString.call(obj) === '[object Array]';\n}\n\nfunction isObject(obj) {\n return nativeToString.call(obj) === '[object Object]';\n}\n\nfunction isNumber(obj) {\n return nativeToString.call(obj) === '[object Number]';\n}\n\n/**\n * @param {any} obj\n *\n * @return {boolean}\n */\nfunction isFunction(obj) {\n const tag = nativeToString.call(obj);\n\n return (\n tag === '[object Function]' ||\n tag === '[object AsyncFunction]' ||\n tag === '[object GeneratorFunction]' ||\n tag === '[object AsyncGeneratorFunction]' ||\n tag === '[object Proxy]'\n );\n}\n\nfunction isString(obj) {\n return nativeToString.call(obj) === '[object String]';\n}\n\n\n/**\n * Ensure collection is an array.\n *\n * @param {Object} obj\n */\nfunction ensureArray(obj) {\n\n if (isArray(obj)) {\n return;\n }\n\n throw new Error('must supply array');\n}\n\n/**\n * Return true, if target owns a property with the given key.\n *\n * @param {Object} target\n * @param {String} key\n *\n * @return {Boolean}\n */\nfunction has(target, key) {\n return nativeHasOwnProperty.call(target, key);\n}\n\n/**\n * @template T\n * @typedef { (\n * ((e: T) => boolean) |\n * ((e: T, idx: number) => boolean) |\n * ((e: T, key: string) => boolean) |\n * string |\n * number\n * ) } Matcher\n */\n\n/**\n * @template T\n * @template U\n *\n * @typedef { (\n * ((e: T) => U) | string | number\n * ) } Extractor\n */\n\n\n/**\n * @template T\n * @typedef { (val: T, key: any) => boolean } MatchFn\n */\n\n/**\n * @template T\n * @typedef { T[] } ArrayCollection\n */\n\n/**\n * @template T\n * @typedef { { [key: string]: T } } StringKeyValueCollection\n */\n\n/**\n * @template T\n * @typedef { { [key: number]: T } } NumberKeyValueCollection\n */\n\n/**\n * @template T\n * @typedef { StringKeyValueCollection | NumberKeyValueCollection } KeyValueCollection\n */\n\n/**\n * @template T\n * @typedef { KeyValueCollection | ArrayCollection } Collection\n */\n\n/**\n * Find element in collection.\n *\n * @template T\n * @param {Collection} collection\n * @param {Matcher} matcher\n *\n * @return {Object}\n */\nfunction find(collection, matcher) {\n\n const matchFn = toMatcher(matcher);\n\n let match;\n\n forEach(collection, function(val, key) {\n if (matchFn(val, key)) {\n match = val;\n\n return false;\n }\n });\n\n return match;\n\n}\n\n\n/**\n * Find element index in collection.\n *\n * @template T\n * @param {Collection} collection\n * @param {Matcher} matcher\n *\n * @return {number}\n */\nfunction findIndex(collection, matcher) {\n\n const matchFn = toMatcher(matcher);\n\n let idx = isArray(collection) ? -1 : undefined;\n\n forEach(collection, function(val, key) {\n if (matchFn(val, key)) {\n idx = key;\n\n return false;\n }\n });\n\n return idx;\n}\n\n\n/**\n * Filter elements in collection.\n *\n * @template T\n * @param {Collection} collection\n * @param {Matcher} matcher\n *\n * @return {T[]} result\n */\nfunction filter(collection, matcher) {\n\n const matchFn = toMatcher(matcher);\n\n let result = [];\n\n forEach(collection, function(val, key) {\n if (matchFn(val, key)) {\n result.push(val);\n }\n });\n\n return result;\n}\n\n\n/**\n * Iterate over collection; returning something\n * (non-undefined) will stop iteration.\n *\n * @template T\n * @param {Collection} collection\n * @param { ((item: T, idx: number) => (boolean|void)) | ((item: T, key: string) => (boolean|void)) } iterator\n *\n * @return {T} return result that stopped the iteration\n */\nfunction forEach(collection, iterator) {\n\n let val,\n result;\n\n if (isUndefined(collection)) {\n return;\n }\n\n const convertKey = isArray(collection) ? toNum : identity;\n\n for (let key in collection) {\n\n if (has(collection, key)) {\n val = collection[key];\n\n result = iterator(val, convertKey(key));\n\n if (result === false) {\n return val;\n }\n }\n }\n}\n\n/**\n * Return collection without element.\n *\n * @template T\n * @param {ArrayCollection} arr\n * @param {Matcher} matcher\n *\n * @return {T[]}\n */\nfunction without(arr, matcher) {\n\n if (isUndefined(arr)) {\n return [];\n }\n\n ensureArray(arr);\n\n const matchFn = toMatcher(matcher);\n\n return arr.filter(function(el, idx) {\n return !matchFn(el, idx);\n });\n\n}\n\n\n/**\n * Reduce collection, returning a single result.\n *\n * @template T\n * @template V\n *\n * @param {Collection} collection\n * @param {(result: V, entry: T, index: any) => V} iterator\n * @param {V} result\n *\n * @return {V} result returned from last iterator\n */\nfunction reduce(collection, iterator, result) {\n\n forEach(collection, function(value, idx) {\n result = iterator(result, value, idx);\n });\n\n return result;\n}\n\n\n/**\n * Return true if every element in the collection\n * matches the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\nfunction every(collection, matcher) {\n\n return !!reduce(collection, function(matches, val, key) {\n return matches && matcher(val, key);\n }, true);\n}\n\n\n/**\n * Return true if some elements in the collection\n * match the criteria.\n *\n * @param {Object|Array} collection\n * @param {Function} matcher\n *\n * @return {Boolean}\n */\nfunction some(collection, matcher) {\n\n return !!find(collection, matcher);\n}\n\n\n/**\n * Transform a collection into another collection\n * by piping each member through the given fn.\n *\n * @param {Object|Array} collection\n * @param {Function} fn\n *\n * @return {Array} transformed collection\n */\nfunction map(collection, fn) {\n\n let result = [];\n\n forEach(collection, function(val, key) {\n result.push(fn(val, key));\n });\n\n return result;\n}\n\n\n/**\n * Get the collections keys.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\nfunction keys(collection) {\n return collection && Object.keys(collection) || [];\n}\n\n\n/**\n * Shorthand for `keys(o).length`.\n *\n * @param {Object|Array} collection\n *\n * @return {Number}\n */\nfunction size(collection) {\n return keys(collection).length;\n}\n\n\n/**\n * Get the values in the collection.\n *\n * @param {Object|Array} collection\n *\n * @return {Array}\n */\nfunction values(collection) {\n return map(collection, (val) => val);\n}\n\n\n/**\n * Group collection members by attribute.\n *\n * @param {Object|Array} collection\n * @param {Extractor} extractor\n *\n * @return {Object} map with { attrValue => [ a, b, c ] }\n */\nfunction groupBy(collection, extractor, grouped = {}) {\n\n extractor = toExtractor(extractor);\n\n forEach(collection, function(val) {\n let discriminator = extractor(val) || '_';\n\n let group = grouped[discriminator];\n\n if (!group) {\n group = grouped[discriminator] = [];\n }\n\n group.push(val);\n });\n\n return grouped;\n}\n\n\nfunction uniqueBy(extractor, ...collections) {\n\n extractor = toExtractor(extractor);\n\n let grouped = {};\n\n forEach(collections, (c) => groupBy(c, extractor, grouped));\n\n let result = map(grouped, function(val, key) {\n return val[0];\n });\n\n return result;\n}\n\n\nconst unionBy = uniqueBy;\n\n\n\n/**\n * Sort collection by criteria.\n *\n * @template T\n *\n * @param {Collection} collection\n * @param {Extractor} extractor\n *\n * @return {Array}\n */\nfunction sortBy(collection, extractor) {\n\n extractor = toExtractor(extractor);\n\n let sorted = [];\n\n forEach(collection, function(value, key) {\n let disc = extractor(value, key);\n\n let entry = {\n d: disc,\n v: value\n };\n\n for (var idx = 0; idx < sorted.length; idx++) {\n let { d } = sorted[idx];\n\n if (disc < d) {\n sorted.splice(idx, 0, entry);\n return;\n }\n }\n\n // not inserted, append (!)\n sorted.push(entry);\n });\n\n return map(sorted, (e) => e.v);\n}\n\n\n/**\n * Create an object pattern matcher.\n *\n * @example\n *\n * ```javascript\n * const matcher = matchPattern({ id: 1 });\n *\n * let element = find(elements, matcher);\n * ```\n *\n * @template T\n *\n * @param {T} pattern\n *\n * @return { (el: any) => boolean } matcherFn\n */\nfunction matchPattern(pattern) {\n\n return function(el) {\n\n return every(pattern, function(val, key) {\n return el[key] === val;\n });\n\n };\n}\n\n\n/**\n * @param {string | ((e: any) => any) } extractor\n *\n * @return { (e: any) => any }\n */\nfunction toExtractor(extractor) {\n\n /**\n * @satisfies { (e: any) => any }\n */\n return isFunction(extractor) ? extractor : (e) => {\n\n // @ts-ignore: just works\n return e[extractor];\n };\n}\n\n\n/**\n * @template T\n * @param {Matcher} matcher\n *\n * @return {MatchFn}\n */\nfunction toMatcher(matcher) {\n return isFunction(matcher) ? matcher : (e) => {\n return e === matcher;\n };\n}\n\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction toNum(arg) {\n return Number(arg);\n}\n\n/* global setTimeout clearTimeout */\n\n/**\n * @typedef { {\n * (...args: any[]): any;\n * flush: () => void;\n * cancel: () => void;\n * } } DebouncedFunction\n */\n\n/**\n * Debounce fn, calling it only once if the given time\n * elapsed between calls.\n *\n * Lodash-style the function exposes methods to `#clear`\n * and `#flush` to control internal behavior.\n *\n * @param {Function} fn\n * @param {Number} timeout\n *\n * @return {DebouncedFunction} debounced function\n */\nfunction debounce(fn, timeout) {\n\n let timer;\n\n let lastArgs;\n let lastThis;\n\n let lastNow;\n\n function fire(force) {\n\n let now = Date.now();\n\n let scheduledDiff = force ? 0 : (lastNow + timeout) - now;\n\n if (scheduledDiff > 0) {\n return schedule(scheduledDiff);\n }\n\n fn.apply(lastThis, lastArgs);\n\n clear();\n }\n\n function schedule(timeout) {\n timer = setTimeout(fire, timeout);\n }\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = lastNow = lastArgs = lastThis = undefined;\n }\n\n function flush() {\n if (timer) {\n fire(true);\n }\n\n clear();\n }\n\n /**\n * @type { DebouncedFunction }\n */\n function callback(...args) {\n lastNow = Date.now();\n\n lastArgs = args;\n lastThis = this;\n\n // ensure an execution is scheduled\n if (!timer) {\n schedule(timeout);\n }\n }\n\n callback.flush = flush;\n callback.cancel = clear;\n\n return callback;\n}\n\n/**\n * Throttle fn, calling at most once\n * in the given interval.\n *\n * @param {Function} fn\n * @param {Number} interval\n *\n * @return {Function} throttled function\n */\nfunction throttle(fn, interval) {\n let throttling = false;\n\n return function(...args) {\n\n if (throttling) {\n return;\n }\n\n fn(...args);\n throttling = true;\n\n setTimeout(() => {\n throttling = false;\n }, interval);\n };\n}\n\n/**\n * Bind function against target .\n *\n * @param {Function} fn\n * @param {Object} target\n *\n * @return {Function} bound function\n */\nfunction bind(fn, target) {\n return fn.bind(target);\n}\n\n/**\n * Convenience wrapper for `Object.assign`.\n *\n * @param {Object} target\n * @param {...Object} others\n *\n * @return {Object} the target\n */\nfunction assign(target, ...others) {\n return Object.assign(target, ...others);\n}\n\n/**\n * Sets a nested property of a given object to the specified value.\n *\n * This mutates the object and returns it.\n *\n * @template T\n *\n * @param {T} target The target of the set operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} value The value to set.\n *\n * @return {T}\n */\nfunction set(target, path, value) {\n\n let currentTarget = target;\n\n forEach(path, function(key, idx) {\n\n if (typeof key !== 'number' && typeof key !== 'string') {\n throw new Error('illegal key type: ' + typeof key + '. Key should be of type number or string.');\n }\n\n if (key === 'constructor') {\n throw new Error('illegal key: constructor');\n }\n\n if (key === '__proto__') {\n throw new Error('illegal key: __proto__');\n }\n\n let nextKey = path[idx + 1];\n let nextTarget = currentTarget[key];\n\n if (isDefined(nextKey) && isNil(nextTarget)) {\n nextTarget = currentTarget[key] = isNaN(+nextKey) ? {} : [];\n }\n\n if (isUndefined(nextKey)) {\n if (isUndefined(value)) {\n delete currentTarget[key];\n } else {\n currentTarget[key] = value;\n }\n } else {\n currentTarget = nextTarget;\n }\n });\n\n return target;\n}\n\n\n/**\n * Gets a nested property of a given object.\n *\n * @param {Object} target The target of the get operation.\n * @param {(string|number)[]} path The path to the nested value.\n * @param {any} [defaultValue] The value to return if no value exists.\n *\n * @return {any}\n */\nfunction get(target, path, defaultValue) {\n\n let currentTarget = target;\n\n forEach(path, function(key) {\n\n // accessing nil property yields \n if (isNil(currentTarget)) {\n currentTarget = undefined;\n\n return false;\n }\n\n currentTarget = currentTarget[key];\n });\n\n return isUndefined(currentTarget) ? defaultValue : currentTarget;\n}\n\n/**\n * Pick properties from the given target.\n *\n * @template T\n * @template {any[]} V\n *\n * @param {T} target\n * @param {V} properties\n *\n * @return Pick\n */\nfunction pick(target, properties) {\n\n let result = {};\n\n let obj = Object(target);\n\n forEach(properties, function(prop) {\n\n if (prop in obj) {\n result[prop] = target[prop];\n }\n });\n\n return result;\n}\n\n/**\n * Pick all target properties, excluding the given ones.\n *\n * @template T\n * @template {any[]} V\n *\n * @param {T} target\n * @param {V} properties\n *\n * @return {Omit} target\n */\nfunction omit(target, properties) {\n\n let result = {};\n\n let obj = Object(target);\n\n forEach(obj, function(prop, key) {\n\n if (properties.indexOf(key) === -1) {\n result[key] = prop;\n }\n });\n\n return result;\n}\n\n/**\n * Recursively merge `...sources` into given target.\n *\n * Does support merging objects; does not support merging arrays.\n *\n * @param {Object} target\n * @param {...Object} sources\n *\n * @return {Object} the target\n */\nfunction merge(target, ...sources) {\n\n if (!sources.length) {\n return target;\n }\n\n forEach(sources, function(source) {\n\n // skip non-obj sources, i.e. null\n if (!source || !isObject(source)) {\n return;\n }\n\n forEach(source, function(sourceVal, key) {\n\n if (key === '__proto__') {\n return;\n }\n\n let targetVal = target[key];\n\n if (isObject(sourceVal)) {\n\n if (!isObject(targetVal)) {\n\n // override target[key] with object\n targetVal = {};\n }\n\n target[key] = merge(targetVal, sourceVal);\n } else {\n target[key] = sourceVal;\n }\n\n });\n });\n\n return target;\n}\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/min-dash/dist/index.esm.js?"); + +/***/ }), + +/***/ "./node_modules/object-refs/dist/index.js": +/*!************************************************!*\ + !*** ./node_modules/object-refs/dist/index.js ***! + \************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Collection: () => (/* binding */ collection),\n/* harmony export */ Refs: () => (/* binding */ Refs)\n/* harmony export */ });\n/**\n * Extends a collection with {@link Refs} aware methods\n *\n * @param {Array} collection\n * @param {Refs} refs instance\n * @param {Object} property represented by the collection\n * @param {Object} target object the collection is attached to\n *\n * @return {RefsCollection} the extended array\n */\nfunction extend(collection, refs, property, target) {\n var inverseProperty = property.inverse;\n\n /**\n * Removes the given element from the array and returns it.\n *\n * @method RefsCollection#remove\n *\n * @param {Object} element the element to remove\n */\n Object.defineProperty(collection, 'remove', {\n value: function (element) {\n var idx = this.indexOf(element);\n if (idx !== -1) {\n this.splice(idx, 1);\n\n // unset inverse\n refs.unset(element, inverseProperty, target);\n }\n return element;\n }\n });\n\n /**\n * Returns true if the collection contains the given element\n *\n * @method RefsCollection#contains\n *\n * @param {Object} element the element to check for\n */\n Object.defineProperty(collection, 'contains', {\n value: function (element) {\n return this.indexOf(element) !== -1;\n }\n });\n\n /**\n * Adds an element to the array, unless it exists already (set semantics).\n *\n * @method RefsCollection#add\n *\n * @param {Object} element the element to add\n * @param {Number} optional index to add element to\n * (possibly moving other elements around)\n */\n Object.defineProperty(collection, 'add', {\n value: function (element, idx) {\n var currentIdx = this.indexOf(element);\n if (typeof idx === 'undefined') {\n if (currentIdx !== -1) {\n // element already in collection (!)\n return;\n }\n\n // add to end of array, as no idx is specified\n idx = this.length;\n }\n\n // handle already in collection\n if (currentIdx !== -1) {\n // remove element from currentIdx\n this.splice(currentIdx, 1);\n }\n\n // add element at idx\n this.splice(idx, 0, element);\n if (currentIdx === -1) {\n // set inverse, unless element was\n // in collection already\n refs.set(element, inverseProperty, target);\n }\n }\n });\n\n // a simple marker, identifying this element\n // as being a refs collection\n Object.defineProperty(collection, '__refs_collection', {\n value: true\n });\n return collection;\n}\n\n/**\n * Checks if a given collection is extended\n *\n * @param {Array} collection\n *\n * @return {boolean}\n */\nfunction isExtended(collection) {\n return collection.__refs_collection === true;\n}\n\nvar collection = {\n __proto__: null,\n extend: extend,\n isExtended: isExtended\n};\n\nfunction hasOwnProperty(e, property) {\n return Object.prototype.hasOwnProperty.call(e, property.name || property);\n}\nfunction defineCollectionProperty(ref, property, target) {\n var collection = extend(target[property.name] || [], ref, property, target);\n Object.defineProperty(target, property.name, {\n enumerable: property.enumerable,\n value: collection\n });\n if (collection.length) {\n collection.forEach(function (o) {\n ref.set(o, property.inverse, target);\n });\n }\n}\nfunction defineProperty(ref, property, target) {\n var inverseProperty = property.inverse;\n var _value = target[property.name];\n Object.defineProperty(target, property.name, {\n configurable: property.configurable,\n enumerable: property.enumerable,\n get: function () {\n return _value;\n },\n set: function (value) {\n // return if we already performed all changes\n if (value === _value) {\n return;\n }\n var old = _value;\n\n // temporary set null\n _value = null;\n if (old) {\n ref.unset(old, inverseProperty, target);\n }\n\n // set new value\n _value = value;\n\n // set inverse value\n ref.set(_value, inverseProperty, target);\n }\n });\n}\n\n/**\n * Creates a new references object defining two inversly related\n * attribute descriptors a and b.\n *\n *

\n * When bound to an object using {@link Refs#bind} the references\n * get activated and ensure that add and remove operations are applied\n * reversely, too.\n *

\n *\n *

\n * For attributes represented as collections {@link Refs} provides the\n * {@link RefsCollection#add}, {@link RefsCollection#remove} and {@link RefsCollection#contains} extensions\n * that must be used to properly hook into the inverse change mechanism.\n *

\n *\n * @class Refs\n *\n * @classdesc A bi-directional reference between two attributes.\n *\n * @param {Refs.AttributeDescriptor} a property descriptor\n * @param {Refs.AttributeDescriptor} b property descriptor\n *\n * @example\n *\n * var refs = Refs({ name: 'wheels', collection: true, enumerable: true }, { name: 'car' });\n *\n * var car = { name: 'toyota' };\n * var wheels = [{ pos: 'front-left' }, { pos: 'front-right' }];\n *\n * refs.bind(car, 'wheels');\n *\n * car.wheels // []\n * car.wheels.add(wheels[0]);\n * car.wheels.add(wheels[1]);\n *\n * car.wheels // [{ pos: 'front-left' }, { pos: 'front-right' }]\n *\n * wheels[0].car // { name: 'toyota' };\n * car.wheels.remove(wheels[0]);\n *\n * wheels[0].car // undefined\n */\nfunction Refs(a, b) {\n if (!(this instanceof Refs)) {\n return new Refs(a, b);\n }\n\n // link\n a.inverse = b;\n b.inverse = a;\n this.props = {};\n this.props[a.name] = a;\n this.props[b.name] = b;\n}\n\n/**\n * Binds one side of a bi-directional reference to a\n * target object.\n *\n * @memberOf Refs\n *\n * @param {Object} target\n * @param {String} property\n */\nRefs.prototype.bind = function (target, property) {\n if (typeof property === 'string') {\n if (!this.props[property]) {\n throw new Error('no property <' + property + '> in ref');\n }\n property = this.props[property];\n }\n if (property.collection) {\n defineCollectionProperty(this, property, target);\n } else {\n defineProperty(this, property, target);\n }\n};\nRefs.prototype.ensureRefsCollection = function (target, property) {\n var collection = target[property.name];\n if (!isExtended(collection)) {\n defineCollectionProperty(this, property, target);\n }\n return collection;\n};\nRefs.prototype.ensureBound = function (target, property) {\n if (!hasOwnProperty(target, property)) {\n this.bind(target, property);\n }\n};\nRefs.prototype.unset = function (target, property, value) {\n if (target) {\n this.ensureBound(target, property);\n if (property.collection) {\n this.ensureRefsCollection(target, property).remove(value);\n } else {\n target[property.name] = undefined;\n }\n }\n};\nRefs.prototype.set = function (target, property, value) {\n if (target) {\n this.ensureBound(target, property);\n if (property.collection) {\n this.ensureRefsCollection(target, property).add(value);\n } else {\n target[property.name] = value;\n }\n }\n};\n\n/**\n * An attribute descriptor to be used specify an attribute in a {@link Refs} instance\n *\n * @typedef {Object} Refs.AttributeDescriptor\n * @property {String} name\n * @property {boolean} [collection=false]\n * @property {boolean} [enumerable=false]\n */\n\n\n\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/object-refs/dist/index.js?"); + +/***/ }), + +/***/ "./node_modules/path-intersection/intersect.js": +/*!*****************************************************!*\ + !*** ./node_modules/path-intersection/intersect.js ***! + \*****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ findPathIntersections)\n/* harmony export */ });\n/**\n * This file contains source code adapted from Snap.svg (licensed Apache-2.0).\n *\n * @see https://github.com/adobe-webplatform/Snap.svg/blob/master/src/path.js\n */\n\n/* eslint no-fallthrough: \"off\" */\n\nvar p2s = /,?([a-z]),?/gi,\n toFloat = parseFloat,\n math = Math,\n PI = math.PI,\n mmin = math.min,\n mmax = math.max,\n pow = math.pow,\n abs = math.abs,\n pathCommand = /([a-z])[\\s,]*((-?\\d*\\.?\\d*(?:e[-+]?\\d+)?[\\s]*,?[\\s]*)+)/ig,\n pathValues = /(-?\\d*\\.?\\d*(?:e[-+]?\\d+)?)[\\s]*,?[\\s]*/ig;\n\nvar isArray = Array.isArray || function(o) { return o instanceof Array; };\n\nfunction hasProperty(obj, property) {\n return Object.prototype.hasOwnProperty.call(obj, property);\n}\n\nfunction clone(obj) {\n\n if (typeof obj == 'function' || Object(obj) !== obj) {\n return obj;\n }\n\n var res = new obj.constructor;\n\n for (var key in obj) {\n if (hasProperty(obj, key)) {\n res[key] = clone(obj[key]);\n }\n }\n\n return res;\n}\n\nfunction repush(array, item) {\n for (var i = 0, ii = array.length; i < ii; i++) if (array[i] === item) {\n return array.push(array.splice(i, 1)[0]);\n }\n}\n\nfunction cacher(f) {\n\n function newf() {\n\n var arg = Array.prototype.slice.call(arguments, 0),\n args = arg.join('\\u2400'),\n cache = newf.cache = newf.cache || {},\n count = newf.count = newf.count || [];\n\n if (hasProperty(cache, args)) {\n repush(count, args);\n return cache[args];\n }\n\n count.length >= 1e3 && delete cache[count.shift()];\n count.push(args);\n cache[args] = f(...arguments);\n\n return cache[args];\n }\n return newf;\n}\n\nfunction parsePathString(pathString) {\n\n if (!pathString) {\n return null;\n }\n\n var pth = paths(pathString);\n\n if (pth.arr) {\n return clone(pth.arr);\n }\n\n var paramCounts = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 },\n data = [];\n\n if (isArray(pathString) && isArray(pathString[0])) { // rough assumption\n data = clone(pathString);\n }\n\n if (!data.length) {\n\n String(pathString).replace(pathCommand, function(a, b, c) {\n var params = [],\n name = b.toLowerCase();\n\n c.replace(pathValues, function(a, b) {\n b && params.push(+b);\n });\n\n if (name == 'm' && params.length > 2) {\n data.push([ b, ...params.splice(0, 2) ]);\n name = 'l';\n b = b == 'm' ? 'l' : 'L';\n }\n\n while (params.length >= paramCounts[name]) {\n data.push([ b, ...params.splice(0, paramCounts[name]) ]);\n if (!paramCounts[name]) {\n break;\n }\n }\n });\n }\n\n data.toString = paths.toString;\n pth.arr = clone(data);\n\n return data;\n}\n\nfunction paths(ps) {\n var p = paths.ps = paths.ps || {};\n\n if (p[ps]) {\n p[ps].sleep = 100;\n } else {\n p[ps] = {\n sleep: 100\n };\n }\n\n setTimeout(function() {\n for (var key in p) {\n if (hasProperty(p, key) && key != ps) {\n p[key].sleep--;\n !p[key].sleep && delete p[key];\n }\n }\n });\n\n return p[ps];\n}\n\nfunction rectBBox(x, y, width, height) {\n\n if (arguments.length === 1) {\n y = x.y;\n width = x.width;\n height = x.height;\n x = x.x;\n }\n\n return {\n x: x,\n y: y,\n width: width,\n height: height,\n x2: x + width,\n y2: y + height\n };\n}\n\nfunction pathToString() {\n return this.join(',').replace(p2s, '$1');\n}\n\nfunction pathClone(pathArray) {\n var res = clone(pathArray);\n res.toString = pathToString;\n return res;\n}\n\nfunction findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n var t1 = 1 - t,\n t13 = pow(t1, 3),\n t12 = pow(t1, 2),\n t2 = t * t,\n t3 = t2 * t,\n x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,\n y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y;\n\n return {\n x: fixError(x),\n y: fixError(y)\n };\n}\n\nfunction bezierBBox(points) {\n\n var bbox = curveBBox(...points);\n\n return rectBBox(\n bbox.x0,\n bbox.y0,\n bbox.x1 - bbox.x0,\n bbox.y1 - bbox.y0\n );\n}\n\nfunction isPointInsideBBox(bbox, x, y) {\n return x >= bbox.x &&\n x <= bbox.x + bbox.width &&\n y >= bbox.y &&\n y <= bbox.y + bbox.height;\n}\n\nfunction isBBoxIntersect(bbox1, bbox2) {\n bbox1 = rectBBox(bbox1);\n bbox2 = rectBBox(bbox2);\n return isPointInsideBBox(bbox2, bbox1.x, bbox1.y)\n || isPointInsideBBox(bbox2, bbox1.x2, bbox1.y)\n || isPointInsideBBox(bbox2, bbox1.x, bbox1.y2)\n || isPointInsideBBox(bbox2, bbox1.x2, bbox1.y2)\n || isPointInsideBBox(bbox1, bbox2.x, bbox2.y)\n || isPointInsideBBox(bbox1, bbox2.x2, bbox2.y)\n || isPointInsideBBox(bbox1, bbox2.x, bbox2.y2)\n || isPointInsideBBox(bbox1, bbox2.x2, bbox2.y2)\n || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x\n || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)\n && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y\n || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);\n}\n\nfunction base3(t, p1, p2, p3, p4) {\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,\n t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\n return t * t2 - 3 * p1 + 3 * p2;\n}\n\nfunction bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\n\n if (z == null) {\n z = 1;\n }\n\n z = z > 1 ? 1 : z < 0 ? 0 : z;\n\n var z2 = z / 2,\n n = 12,\n Tvalues = [ -.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816 ],\n Cvalues = [ 0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472 ],\n sum = 0;\n\n for (var i = 0; i < n; i++) {\n var ct = z2 * Tvalues[i] + z2,\n xbase = base3(ct, x1, x2, x3, x4),\n ybase = base3(ct, y1, y2, y3, y4),\n comb = xbase * xbase + ybase * ybase;\n\n sum += Cvalues[i] * math.sqrt(comb);\n }\n\n return z2 * sum;\n}\n\n\nfunction intersectLines(x1, y1, x2, y2, x3, y3, x4, y4) {\n\n if (\n mmax(x1, x2) < mmin(x3, x4) ||\n mmin(x1, x2) > mmax(x3, x4) ||\n mmax(y1, y2) < mmin(y3, y4) ||\n mmin(y1, y2) > mmax(y3, y4)\n ) {\n return;\n }\n\n var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4),\n ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4),\n denominator = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\n\n if (!denominator) {\n return;\n }\n\n var px = fixError(nx / denominator),\n py = fixError(ny / denominator),\n px2 = +px.toFixed(2),\n py2 = +py.toFixed(2);\n\n if (\n px2 < +mmin(x1, x2).toFixed(2) ||\n px2 > +mmax(x1, x2).toFixed(2) ||\n px2 < +mmin(x3, x4).toFixed(2) ||\n px2 > +mmax(x3, x4).toFixed(2) ||\n py2 < +mmin(y1, y2).toFixed(2) ||\n py2 > +mmax(y1, y2).toFixed(2) ||\n py2 < +mmin(y3, y4).toFixed(2) ||\n py2 > +mmax(y3, y4).toFixed(2)\n ) {\n return;\n }\n\n return { x: px, y: py };\n}\n\nfunction fixError(number) {\n return Math.round(number * 100000000000) / 100000000000;\n}\n\nfunction findBezierIntersections(bez1, bez2, justCount) {\n var bbox1 = bezierBBox(bez1),\n bbox2 = bezierBBox(bez2);\n\n if (!isBBoxIntersect(bbox1, bbox2)) {\n return justCount ? 0 : [];\n }\n\n // As an optimization, lines will have only 1 segment\n\n var l1 = bezlen(...bez1),\n l2 = bezlen(...bez2),\n n1 = isLine(bez1) ? 1 : ~~(l1 / 5) || 1,\n n2 = isLine(bez2) ? 1 : ~~(l2 / 5) || 1,\n dots1 = [],\n dots2 = [],\n xy = {},\n res = justCount ? 0 : [];\n\n for (var i = 0; i < n1 + 1; i++) {\n var p = findDotsAtSegment(...bez1, i / n1);\n dots1.push({ x: p.x, y: p.y, t: i / n1 });\n }\n\n for (i = 0; i < n2 + 1; i++) {\n p = findDotsAtSegment(...bez2, i / n2);\n dots2.push({ x: p.x, y: p.y, t: i / n2 });\n }\n\n for (i = 0; i < n1; i++) {\n\n for (var j = 0; j < n2; j++) {\n var di = dots1[i],\n di1 = dots1[i + 1],\n dj = dots2[j],\n dj1 = dots2[j + 1],\n ci = abs(di1.x - di.x) < .01 ? 'y' : 'x',\n cj = abs(dj1.x - dj.x) < .01 ? 'y' : 'x',\n is = intersectLines(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y),\n key;\n\n if (is) {\n key = is.x.toFixed(9) + '#' + is.y.toFixed(9);\n\n if (xy[key]) {\n continue;\n }\n\n xy[key] = true;\n\n var t1 = di.t + abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t),\n t2 = dj.t + abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);\n\n if (t1 >= 0 && t1 <= 1 && t2 >= 0 && t2 <= 1) {\n\n if (justCount) {\n res++;\n } else {\n res.push({\n x: is.x,\n y: is.y,\n t1: t1,\n t2: t2\n });\n }\n }\n }\n }\n }\n\n return res;\n}\n\n\n/**\n * Find or counts the intersections between two SVG paths.\n *\n * Returns a number in counting mode and a list of intersections otherwise.\n *\n * A single intersection entry contains the intersection coordinates (x, y)\n * as well as additional information regarding the intersecting segments\n * on each path (segment1, segment2) and the relative location of the\n * intersection on these segments (t1, t2).\n *\n * The path may be an SVG path string or a list of path components\n * such as `[ [ 'M', 0, 10 ], [ 'L', 20, 0 ] ]`.\n *\n * @example\n *\n * var intersections = findPathIntersections(\n * 'M0,0L100,100',\n * [ [ 'M', 0, 100 ], [ 'L', 100, 0 ] ]\n * );\n *\n * // intersections = [\n * // { x: 50, y: 50, segment1: 1, segment2: 1, t1: 0.5, t2: 0.5 }\n * // ]\n *\n * @param {String|Array} path1\n * @param {String|Array} path2\n * @param {Boolean} [justCount=false]\n *\n * @return {Array|Number}\n */\nfunction findPathIntersections(path1, path2, justCount) {\n path1 = pathToCurve(path1);\n path2 = pathToCurve(path2);\n\n var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,\n res = justCount ? 0 : [];\n\n for (var i = 0, ii = path1.length; i < ii; i++) {\n var pi = path1[i];\n\n if (pi[0] == 'M') {\n x1 = x1m = pi[1];\n y1 = y1m = pi[2];\n } else {\n\n if (pi[0] == 'C') {\n bez1 = [ x1, y1, ...pi.slice(1) ];\n x1 = bez1[6];\n y1 = bez1[7];\n } else {\n bez1 = [ x1, y1, x1, y1, x1m, y1m, x1m, y1m ];\n x1 = x1m;\n y1 = y1m;\n }\n\n for (var j = 0, jj = path2.length; j < jj; j++) {\n var pj = path2[j];\n\n if (pj[0] == 'M') {\n x2 = x2m = pj[1];\n y2 = y2m = pj[2];\n } else {\n\n if (pj[0] == 'C') {\n bez2 = [ x2, y2, ...pj.slice(1) ];\n x2 = bez2[6];\n y2 = bez2[7];\n } else {\n bez2 = [ x2, y2, x2, y2, x2m, y2m, x2m, y2m ];\n x2 = x2m;\n y2 = y2m;\n }\n\n var intr = findBezierIntersections(bez1, bez2, justCount);\n\n if (justCount) {\n res += intr;\n } else {\n\n for (var k = 0, kk = intr.length; k < kk; k++) {\n intr[k].segment1 = i;\n intr[k].segment2 = j;\n intr[k].bez1 = bez1;\n intr[k].bez2 = bez2;\n }\n\n res = res.concat(intr);\n }\n }\n }\n }\n }\n\n return res;\n}\n\n\nfunction pathToAbsolute(pathArray) {\n var pth = paths(pathArray);\n\n if (pth.abs) {\n return pathClone(pth.abs);\n }\n\n if (!isArray(pathArray) || !isArray(pathArray && pathArray[0])) { // rough assumption\n pathArray = parsePathString(pathArray);\n }\n\n if (!pathArray || !pathArray.length) {\n return [ [ 'M', 0, 0 ] ];\n }\n\n var res = [],\n x = 0,\n y = 0,\n mx = 0,\n my = 0,\n start = 0,\n pa0;\n\n if (pathArray[0][0] == 'M') {\n x = +pathArray[0][1];\n y = +pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res[0] = [ 'M', x, y ];\n }\n\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\n res.push(r = []);\n pa = pathArray[i];\n pa0 = pa[0];\n\n if (pa0 != pa0.toUpperCase()) {\n r[0] = pa0.toUpperCase();\n\n switch (r[0]) {\n case 'A':\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +pa[6] + x;\n r[7] = +pa[7] + y;\n break;\n case 'V':\n r[1] = +pa[1] + y;\n break;\n case 'H':\n r[1] = +pa[1] + x;\n break;\n case 'M':\n mx = +pa[1] + x;\n my = +pa[2] + y;\n default:\n for (var j = 1, jj = pa.length; j < jj; j++) {\n r[j] = +pa[j] + ((j % 2) ? x : y);\n }\n }\n } else {\n for (var k = 0, kk = pa.length; k < kk; k++) {\n r[k] = pa[k];\n }\n }\n pa0 = pa0.toUpperCase();\n\n switch (r[0]) {\n case 'Z':\n x = +mx;\n y = +my;\n break;\n case 'H':\n x = r[1];\n break;\n case 'V':\n y = r[1];\n break;\n case 'M':\n mx = r[r.length - 2];\n my = r[r.length - 1];\n default:\n x = r[r.length - 2];\n y = r[r.length - 1];\n }\n }\n\n res.toString = pathToString;\n pth.abs = pathClone(res);\n\n return res;\n}\n\nfunction isLine(bez) {\n return (\n bez[0] === bez[2] &&\n bez[1] === bez[3] &&\n bez[4] === bez[6] &&\n bez[5] === bez[7]\n );\n}\n\nfunction lineToCurve(x1, y1, x2, y2) {\n return [\n x1, y1, x2,\n y2, x2, y2\n ];\n}\n\nfunction qubicToCurve(x1, y1, ax, ay, x2, y2) {\n var _13 = 1 / 3,\n _23 = 2 / 3;\n\n return [\n _13 * x1 + _23 * ax,\n _13 * y1 + _23 * ay,\n _13 * x2 + _23 * ax,\n _13 * y2 + _23 * ay,\n x2,\n y2\n ];\n}\n\nfunction arcToCurve(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\n\n // for more information of where this math came from visit:\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n var _120 = PI * 120 / 180,\n rad = PI / 180 * (+angle || 0),\n res = [],\n xy,\n rotate = cacher(function(x, y, rad) {\n var X = x * math.cos(rad) - y * math.sin(rad),\n Y = x * math.sin(rad) + y * math.cos(rad);\n\n return { x: X, y: Y };\n });\n\n if (!recursive) {\n xy = rotate(x1, y1, -rad);\n x1 = xy.x;\n y1 = xy.y;\n xy = rotate(x2, y2, -rad);\n x2 = xy.x;\n y2 = xy.y;\n\n var x = (x1 - x2) / 2,\n y = (y1 - y2) / 2;\n\n var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);\n\n if (h > 1) {\n h = math.sqrt(h);\n rx = h * rx;\n ry = h * ry;\n }\n\n var rx2 = rx * rx,\n ry2 = ry * ry,\n k = (large_arc_flag == sweep_flag ? -1 : 1) *\n math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),\n cx = k * rx * y / ry + (x1 + x2) / 2,\n cy = k * -ry * x / rx + (y1 + y2) / 2,\n f1 = math.asin(((y1 - cy) / ry).toFixed(9)),\n f2 = math.asin(((y2 - cy) / ry).toFixed(9));\n\n f1 = x1 < cx ? PI - f1 : f1;\n f2 = x2 < cx ? PI - f2 : f2;\n f1 < 0 && (f1 = PI * 2 + f1);\n f2 < 0 && (f2 = PI * 2 + f2);\n\n if (sweep_flag && f1 > f2) {\n f1 = f1 - PI * 2;\n }\n if (!sweep_flag && f2 > f1) {\n f2 = f2 - PI * 2;\n }\n } else {\n f1 = recursive[0];\n f2 = recursive[1];\n cx = recursive[2];\n cy = recursive[3];\n }\n\n var df = f2 - f1;\n\n if (abs(df) > _120) {\n var f2old = f2,\n x2old = x2,\n y2old = y2;\n\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\n x2 = cx + rx * math.cos(f2);\n y2 = cy + ry * math.sin(f2);\n res = arcToCurve(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [ f2, f2old, cx, cy ]);\n }\n\n df = f2 - f1;\n\n var c1 = math.cos(f1),\n s1 = math.sin(f1),\n c2 = math.cos(f2),\n s2 = math.sin(f2),\n t = math.tan(df / 4),\n hx = 4 / 3 * rx * t,\n hy = 4 / 3 * ry * t,\n m1 = [ x1, y1 ],\n m2 = [ x1 + hx * s1, y1 - hy * c1 ],\n m3 = [ x2 + hx * s2, y2 - hy * c2 ],\n m4 = [ x2, y2 ];\n\n m2[0] = 2 * m1[0] - m2[0];\n m2[1] = 2 * m1[1] - m2[1];\n\n if (recursive) {\n return [ m2, m3, m4 ].concat(res);\n } else {\n res = [ m2, m3, m4 ].concat(res).join().split(',');\n var newres = [];\n\n for (var i = 0, ii = res.length; i < ii; i++) {\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\n }\n\n return newres;\n }\n}\n\n// Returns bounding box of cubic bezier curve.\n// Source: http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html\n// Original version: NISHIO Hirokazu\n// Modifications: https://github.com/timo22345\nfunction curveBBox(x0, y0, x1, y1, x2, y2, x3, y3) {\n var tvalues = [],\n bounds = [ [], [] ],\n a, b, c, t, t1, t2, b2ac, sqrtb2ac;\n\n for (var i = 0; i < 2; ++i) {\n\n if (i == 0) {\n b = 6 * x0 - 12 * x1 + 6 * x2;\n a = -3 * x0 + 9 * x1 - 9 * x2 + 3 * x3;\n c = 3 * x1 - 3 * x0;\n } else {\n b = 6 * y0 - 12 * y1 + 6 * y2;\n a = -3 * y0 + 9 * y1 - 9 * y2 + 3 * y3;\n c = 3 * y1 - 3 * y0;\n }\n\n if (abs(a) < 1e-12) {\n\n if (abs(b) < 1e-12) {\n continue;\n }\n\n t = -c / b;\n\n if (0 < t && t < 1) {\n tvalues.push(t);\n }\n\n continue;\n }\n\n b2ac = b * b - 4 * c * a;\n sqrtb2ac = math.sqrt(b2ac);\n\n if (b2ac < 0) {\n continue;\n }\n\n t1 = (-b + sqrtb2ac) / (2 * a);\n\n if (0 < t1 && t1 < 1) {\n tvalues.push(t1);\n }\n\n t2 = (-b - sqrtb2ac) / (2 * a);\n\n if (0 < t2 && t2 < 1) {\n tvalues.push(t2);\n }\n }\n\n var j = tvalues.length,\n jlen = j,\n mt;\n\n while (j--) {\n t = tvalues[j];\n mt = 1 - t;\n bounds[0][j] = (mt * mt * mt * x0) + (3 * mt * mt * t * x1) + (3 * mt * t * t * x2) + (t * t * t * x3);\n bounds[1][j] = (mt * mt * mt * y0) + (3 * mt * mt * t * y1) + (3 * mt * t * t * y2) + (t * t * t * y3);\n }\n\n bounds[0][jlen] = x0;\n bounds[1][jlen] = y0;\n bounds[0][jlen + 1] = x3;\n bounds[1][jlen + 1] = y3;\n bounds[0].length = bounds[1].length = jlen + 2;\n\n return {\n x0: mmin(...bounds[0]),\n y0: mmin(...bounds[1]),\n x1: mmax(...bounds[0]),\n y1: mmax(...bounds[1])\n };\n}\n\nfunction pathToCurve(path) {\n\n var pth = paths(path);\n\n // return cached curve, if existing\n if (pth.curve) {\n return pathClone(pth.curve);\n }\n\n var curvedPath = pathToAbsolute(path),\n attrs = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null },\n processPath = function(path, d, pathCommand) {\n var nx, ny;\n\n if (!path) {\n return [ 'C', d.x, d.y, d.x, d.y, d.x, d.y ];\n }\n\n !(path[0] in { T: 1, Q: 1 }) && (d.qx = d.qy = null);\n\n switch (path[0]) {\n case 'M':\n d.X = path[1];\n d.Y = path[2];\n break;\n case 'A':\n path = [ 'C', ...arcToCurve(d.x, d.y, ...path.slice(1)) ];\n break;\n case 'S':\n if (pathCommand == 'C' || pathCommand == 'S') {\n\n // In 'S' case we have to take into account, if the previous command is C/S.\n nx = d.x * 2 - d.bx;\n\n // And reflect the previous\n ny = d.y * 2 - d.by;\n\n // command's control point relative to the current point.\n }\n else {\n\n // or some else or nothing\n nx = d.x;\n ny = d.y;\n }\n path = [ 'C', nx, ny, ...path.slice(1) ];\n break;\n case 'T':\n if (pathCommand == 'Q' || pathCommand == 'T') {\n\n // In 'T' case we have to take into account, if the previous command is Q/T.\n d.qx = d.x * 2 - d.qx;\n\n // And make a reflection similar\n d.qy = d.y * 2 - d.qy;\n\n // to case 'S'.\n }\n else {\n\n // or something else or nothing\n d.qx = d.x;\n d.qy = d.y;\n }\n path = [ 'C', ...qubicToCurve(d.x, d.y, d.qx, d.qy, path[1], path[2]) ];\n break;\n case 'Q':\n d.qx = path[1];\n d.qy = path[2];\n path = [ 'C', ...qubicToCurve(d.x, d.y, path[1], path[2], path[3], path[4]) ];\n break;\n case 'L':\n path = [ 'C', ...lineToCurve(d.x, d.y, path[1], path[2]) ];\n break;\n case 'H':\n path = [ 'C', ...lineToCurve(d.x, d.y, path[1], d.y) ];\n break;\n case 'V':\n path = [ 'C', ...lineToCurve(d.x, d.y, d.x, path[1]) ];\n break;\n case 'Z':\n path = [ 'C', ...lineToCurve(d.x, d.y, d.X, d.Y) ];\n break;\n }\n\n return path;\n },\n\n fixArc = function(pp, i) {\n\n if (pp[i].length > 7) {\n pp[i].shift();\n var pi = pp[i];\n\n while (pi.length) {\n pathCommands[i] = 'A'; // if created multiple C:s, their original seg is saved\n pp.splice(i++, 0, [ 'C', ...pi.splice(0, 6) ]);\n }\n\n pp.splice(i, 1);\n ii = curvedPath.length;\n }\n },\n\n pathCommands = [], // path commands of original path p\n pfirst = '', // temporary holder for original path command\n pathCommand = ''; // holder for previous path command of original path\n\n for (var i = 0, ii = curvedPath.length; i < ii; i++) {\n curvedPath[i] && (pfirst = curvedPath[i][0]); // save current path command\n\n if (pfirst != 'C') // C is not saved yet, because it may be result of conversion\n {\n pathCommands[i] = pfirst; // Save current path command\n i && (pathCommand = pathCommands[i - 1]); // Get previous path command pathCommand\n }\n curvedPath[i] = processPath(curvedPath[i], attrs, pathCommand); // Previous path command is inputted to processPath\n\n if (pathCommands[i] != 'A' && pfirst == 'C') pathCommands[i] = 'C'; // A is the only command\n // which may produce multiple C:s\n // so we have to make sure that C is also C in original path\n\n fixArc(curvedPath, i); // fixArc adds also the right amount of A:s to pathCommands\n\n var seg = curvedPath[i],\n seglen = seg.length;\n\n attrs.x = seg[seglen - 2];\n attrs.y = seg[seglen - 1];\n attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;\n attrs.by = toFloat(seg[seglen - 3]) || attrs.y;\n }\n\n // cache curve\n pth.curve = pathClone(curvedPath);\n\n return curvedPath;\n}\n\n//# sourceURL=webpack://dmn-js-example-bundling-modeler/./node_modules/path-intersection/intersect.js?"); + +/***/ }), + +/***/ "./node_modules/style-mod/src/style-mod.js": +/*!*************************************************!*\ + !*** ./node_modules/style-mod/src/style-mod.js ***! + \*************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StyleModule: () => (/* binding */ StyleModule)\n/* harmony export */ });\nconst C = \"\\u037c\"\nconst COUNT = typeof Symbol == \"undefined\" ? \"__\" + C : Symbol.for(C)\nconst SET = typeof Symbol == \"undefined\" ? \"__styleSet\" + Math.floor(Math.random() * 1e8) : Symbol(\"styleSet\")\nconst top = typeof globalThis != \"undefined\" ? globalThis : typeof window != \"undefined\" ? window : {}\n\n// :: - Style modules encapsulate a set of CSS rules defined from\n// JavaScript. Their definitions are only available in a given DOM\n// root after it has been _mounted_ there with `StyleModule.mount`.\n//\n// Style modules should be created once and stored somewhere, as\n// opposed to re-creating them every time you need them. The amount of\n// CSS rules generated for a given DOM root is bounded by the amount\n// of style modules that were used. So to avoid leaking rules, don't\n// create these dynamically, but treat them as one-time allocations.\nclass StyleModule {\n // :: (Object + + + + npm/browserify example - dmn-js-examples + + + +

Modeler

+ +
+ + + + diff --git a/bundling-modeler/resources/dish-decision.dmn b/bundling-modeler/resources/dish-decision.dmn new file mode 100644 index 0000000..1399330 --- /dev/null +++ b/bundling-modeler/resources/dish-decision.dmn @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + NESTED + + + + + + + + + + + + + + + + + + + + season + + + + + guestCount + + + + + + "Winter" + + + <= 8 + + + "Spareribs" + + + + + "Winter" + + + > 8 + + + "Pasta" + + + + + "Summer" + + + > 10 + + + "Light salad" + + + + + "Summer" + + + <= 10 + + + "Beans salad" + + + + + "Spring" + + + < 10 + + + "Stew" + + + + + "Spring" + + + >= 10 + + + "Steak" + + + + + + + + + + + + temperature + + + + + + >30 + + + "Summer" + + + + + <10 + + + "Winter" + + + + + [10..30] + + + "Spring" + + + + + + + + + + + + + + + dayType + + + + + + "Weekday" + + + 4 + + + + + "Holiday" + + + 10 + + + + + "Weekend" + + + 15 + + + + + + Week day or week end + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bundling-modeler/resources/screenshot.png b/bundling-modeler/resources/screenshot.png new file mode 100644 index 0000000..bc2f1c4 Binary files /dev/null and b/bundling-modeler/resources/screenshot.png differ diff --git a/bundling-modeler/src/app.js b/bundling-modeler/src/app.js new file mode 100644 index 0000000..af5a2b2 --- /dev/null +++ b/bundling-modeler/src/app.js @@ -0,0 +1,33 @@ +import dishDecision from '../resources/dish-decision.dmn'; + +import DmnViewer from 'dmn-js/lib/Modeler'; + + +async function asyncImportXml(xml) { + const dmnJS = new DmnViewer({ + container: '#canvas' + }); + + try { + const { warnings } = await dmnJS.importXML(xml); + + if (warnings.length) { + console.log('import with warnings', warnings); + } else { + console.log('import successful'); + } + + dmnJS + .getActiveViewer() + .get('canvas') + .zoom('fit-viewport'); + } catch (err) { + console.log('something went wrong:', err); + } + + dmnJS.getActiveViewer().on('elements.changed', function() { + dmnJS.saveXML({format:true}).then(r => console.log(r.xml)); + }); +} + +asyncImportXml(dishDecision); diff --git a/bundling-modeler/webpack.config.js b/bundling-modeler/webpack.config.js new file mode 100644 index 0000000..181dfba --- /dev/null +++ b/bundling-modeler/webpack.config.js @@ -0,0 +1,20 @@ +var path = require('path'); + +module.exports = { + mode: 'development', + entry: './src/app.js', + output: { + path: path.resolve(__dirname, 'public'), + filename: 'app.bundled.js' + }, + module: { + rules: [ + { + test: /\.dmn$/, + use: { + loader: 'raw-loader' + } + } + ] + } +}; \ No newline at end of file diff --git a/bundling/README.md b/bundling/README.md index aa696c1..7189573 100644 --- a/bundling/README.md +++ b/bundling/README.md @@ -1,6 +1,6 @@ # dmn-js bundling example -This example showcases how add [dmn-js](https://github.com/bpmn-io/dmn-js) +This example showcases how to add [dmn-js](https://github.com/bpmn-io/dmn-js) into a node-style application and bundle it for the browser using [Webpack](https://webpack.js.org).