diff --git a/.babelrc b/.babelrc deleted file mode 100644 index c591efcc..00000000 --- a/.babelrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "presets": [ - ["@babel/env", { - "targets": { - "ios": "10.3", - "chrome": "60" - }, - "useBuiltIns": "usage", - "corejs": 3 - }] - ], - "plugins": ["@babel/plugin-proposal-object-rest-spread"] -} diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..bc487890 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +app +sessions \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index a8b58e4e..1f9fff30 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,25 +1,18 @@ { - "parser": "@babel/eslint-parser", "env": { - "es6": true, + "es2021": true, "browser": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { - "sourceType": "module", - "ecmaFeatures": { - "experimentalObjectRestSpread": true - } + "sourceType": "module" }, "rules": { "no-prototype-builtins": "off", "no-console": "off", - "no-undef": "off", - "no-cond-assign": "off", "no-useless-escape": "off", "no-self-assign": "off", - "no-fallthrough": "off", "no-empty": [ "error", { @@ -60,8 +53,5 @@ "error", "never" ] - }, - "globals": { - "module": true } } diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 00000000..68eaa5f3 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build +on: [workflow_dispatch] + +jobs: + Deploy: + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + lfs: 'true' + + - name: Docker Login + run: | + docker login -u riksolo -p ${{secrets.CONTAINER_REGISTRY_TOKEN}} git.riksolo.com + + - name: Build and push + run: | + docker build -t git.riksolo.com/riksolo/open-stage-control:latest -t git.riksolo.com/riksolo/open-stage-control:${{github.sha}} . + docker push git.riksolo.com/riksolo/open-stage-control:latest + docker push git.riksolo.com/riksolo/open-stage-control:${{github.sha}} \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 6f1b36cd..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -patreon: openstagecontrol diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md deleted file mode 100644 index 94b92fe2..00000000 --- a/.github/ISSUE_TEMPLATE/bug.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Bug report -about: Report a bug in Open Stage Control -title: '[Bug]' ---- - - diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md deleted file mode 100644 index 35cc697c..00000000 --- a/.github/ISSUE_TEMPLATE/feature.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for Open Stage Control -title: '[Feature] ' ---- diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md deleted file mode 100644 index ed92d3d7..00000000 --- a/.github/SUPPORT.md +++ /dev/null @@ -1,5 +0,0 @@ -## How do I get help ? - -- If you found a bug, open a bug report -- If you have a suggestion, open a feature request -- If you have a question or want to share your experience with other users, please use the dedicated forum at https://openstagecontrol.discourse.group/ diff --git a/.gitignore b/.gitignore index a619f6df..71086d11 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,17 @@ -node_modules -dist -app/LICENSE -app/assets/fonts/* -app/assets/*.css* -app/assets/*.png -app/client/*.js* -app/launcher/*.js* -app/server/* -app/docs/* -!app/docs/.htaccess -!app/server/.keep -app/package.json -*.pyc +# npmg +node_modules/ + +# build +/app/ + +# python/midi build +src/server/python/* +!src/server/python/*.py + +# docs build +src/docs/widgets-reference.js +properties-reference.md + +# packaging +dist/ +sessions/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7e1cc75a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,54 +0,0 @@ -anHsudo: required -language: node_js -dist: focal -node_js: - - "16" -before_install: - - sudo dpkg --add-architecture i386 - - sudo apt-get update -qq - - sudo apt-get install -qq wine fakeroot xvfb python3.10 python3-pip python3-setuptools rpm - - python3 -m pip install mkdocs - - python3 -m pip install mkdocs-material -install: npm install -before_deploy: -deploy: - provider: releases - api-key: - secure: Nb4qJlmLEE2/ETHEYe8V8eGI08d4GuE5kdQef5ZnB4PrstppLlAjShv5E4DNTsyalMOMDjpw9v+9aQNzxGiGv+lCVVL5oFvqvDpcYusRuF9Qua7oJtFh+5FvjgC1DDjauk5Z7WQWMvzWwfNmqbY/lxPbA4zVy4kdYkGV/8WnzA9AL5fU0ZU8gDsFjcr9Pz81XDsDXtPH/+iMuclMsEl8V/ZuswWlZaFn1Jnb1tcGC5WUCsuNQo/+gGfSK6Qcf9AKsIrOjdzi55s4jqH1N7P/kKi4a2tWUTwmSLrOxdUmSYjXVOxMu0cAEnHSeYREv/5o6J0MbfQrDoxh2y5roPZzqE+FAuFLl+b/+bYlW0mrfYfSuP/VX9LYh5JSvrhN7rZuUfMqS1iM7c9Dx8sZadMnvYEAAJhH8IV/9SkuRa/8QoIpXf7YB9v1jERxs4gk5CPT5Aml6nY/CvMWiEQ/wJhC7iZd/QRHshgfNLfAGlbbNU2KP6ZsVAGD601fyST/8neoQqLqS9mteOr1QME3c5EFw+XaauIQNYZSl+wJr8Y1YMcKY+fbJqqR0TXkbsoxFgV9PRf/4ZCjIJYtmelQVlM7j20XavOHM/Ko6/y7a3pohFz+ql3YR9jGF5XW2foXb4+e6DwTGL91/f75hYcsvXxoKbeaBjWpaSK8532UTeVkhPM= - file_glob: true - file: dist/packages/* - skip_cleanup: true - on: - tags: true -before_deploy: - - yes | gem update --system --force - - gem install bundler - - gem install faraday-net_http -v '3.3.0' - - gem install uri - - gem install logger - - export VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json) - - npm run build-docs - - npm run package -- --all - - npm run package-node - - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-linux-x64/resources/app/server/ - - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-linux && chmod +x osc-midi-linux && echo "true" > osc-midi.json - - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-win32-x64/resources/app/server/ - - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-windows.exe && chmod +x osc-midi-windows.exe && echo "true" > osc-midi.json - - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-darwin-x64/open-stage-control.app/Contents/Resources/app/server - - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-osx && chmod +x osc-midi-osx && echo "true" > osc-midi.json - - cd $TRAVIS_BUILD_DIR - - mkdir dist/packages - - npm run deb64 - - mv dist/open-stage-control-linux-x64/*.deb dist/packages/ - - npm run rpm64 - - cd dist - - mv open-stage-control-node open-stage-control_${VERSION}_node - - mv open-stage-control-win32-x64 open-stage-control_${VERSION}_win32-x64 - - mv open-stage-control-linux-x64/*.rpm packages/ - - mv open-stage-control-linux-x64 open-stage-control_${VERSION}_linux-x64 - - zip -q -r --symlinks packages/open-stage-control_${VERSION}_osx.zip open-stage-control-darwin-x64/open-stage-control.app - - zip -q -r packages/open-stage-control_${VERSION}_node.zip open-stage-control_${VERSION}_node - - zip -q -r packages/open-stage-control_${VERSION}_win32-x64.zip open-stage-control_${VERSION}_win32-x64 - - zip -q -r packages/open-stage-control_${VERSION}_linux-x64.zip open-stage-control_${VERSION}_linux-x64 - - ls packages - - cd .. diff --git a/AI_POLICY.md b/AI_POLICY.md new file mode 100644 index 00000000..20067a2d --- /dev/null +++ b/AI_POLICY.md @@ -0,0 +1,7 @@ +Anything AI-related is strictly prohibited from this project. + +If you think this project could benefit from a smart use of AI, think harder. + +Think harder about the (hundreds of) millions of data workers that make your AI "smart", not to mention the monumental ecological waste it represents. + +If you still think this way, don't tell me. diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb4f006..ff189256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,296 @@ # Changelog +## 1.31.2 + +- bug fixes + - editor: fix regression (1.30.0) causing errors when editing the value property + +- widgets + - canvas: allow `onResize` to send and trigger widget synchronization and scripts + +## 1.31.1 + +- bug fixes + - clone: regression causing error when some widgets have a non-string id + +## 1.31.0 + +- widgets + - clone, fragment: add `scoped` property. This allows making the widget self-contained (independent from its original) by prefixing all widget ids automatically (and transparently resolving unprefixed ids in advanced syntaxes and scripts within the scope) + +- bug fixes + - midi: unrecognized `no_auto_note_off` option + - MacOs: the app now quits when all windows are closed + - launcher: if the Tray icon is enabled, closing the launcher window won't quit the app if the server is running + - scrollbar widget: fix initial value in vertical mode + - console: fix copying using CmdOrCtrl+C when the editor is enabled + +- custom module + - objects transmitted using `receive()` will be received as objects by the client app (instead of a json string) + +## 1.30.4 + +- bug fixes + - remote control: add support for icon transform suffixes + - editor: fix moving/resing widgets inside folders when using percent units + - clone: `@{parent.propertyName}` blocks in target widget now update when clone's parent property updates + +- widgets + - encoder: add `horizontal` mode + - knob: add `encoder` design + +## 1.30.3 + +- bug fixes + - scrollbar: missing update upon target container resize + - server: regression breaking reception of osc message over tcp + +- widgets + - file: remember last visited directy per widget if `directory` property is not set + - knob: add `horizontal` mode + - eq: filter responses are now only computed when needed; the widget's value is no longer exposed / sync'ed. + - plot, eq: unclip line drawing on y-axis + +- scripting + - add `uploadFile` function for reading client-side files + - add `scrollIntoView` function + +## 1.30.2 + +- bug fixes + - when using objects in properties, numbers-as-strings and booleans-as-strings values are now preserved instead of being converted to their litteral counterparts + - rgb: fix rendering issue + - patchbay: interaction and rendering issues + - `event.preventDefault` in `onTouch` now affect modal buttons + - menu: use click event instead of tap in `toggle` and `doubleTap-toggle` modes + - button: missing `move` events in `onTouch` + - error when logging `event` object in `onTouch` + +- widgets + - modal/button/file: add `click` property + +- editor + - preserve code editor undo history between consecutive edits of a same widget's property + - preserve fullscreen code editor focus when saving / submitting + +- client + - add `noWarning` client option + +## 1.30.1 + +- bug fixes + - regression breaking user asset loading from a root directory named "assets" + - regression breaking custom module's `nativeRequire()` for locally installed modules + +## 1.30.0 + +- bug fixes + - server: fix resolving absolute file urls containing the remote-root path + - prevent editor zoom level from affecting drag events when the editor is disabled + - prevent changing editor zoom level when it's disabled + - fader: fix touchZone == knob for compact design + - separator labels missing in inspector + - make the client app more robust to restrictive browser settings (cookie must still be enabled for the app to fully work) + +- widgets + - the html property is no longer restricted / sanitized + - input/textarea/select no longer have their appearance property reset in custom html + - canvas: added `contextType` property + - file: honor server's `remote-root` option (remove root path from displayed path and returned value) + - menu: changed default `layout` to `vertical` + - root/panel/modal/tab: support setting `scroll` to `hidden` (hides scrollbars and allows scrolling) + - add new `scrollbar` widget that connects to a scrolling container widget and acts as it scrollbar + - input: add `noCanvas` option to avoid blurry text under some circumstances + - xy: add `clipX` and `clipY` proprties (allows multixy to set per-pads anges limits) + - button: add `onTouch` script + - switch: make `values` property dynamic + +- editor + - selecting a widget automatically shows it in the widget tree if it's not minimized + - submitting an unchanged value for the `value` property will now affect the value state of the widget even if the property content itself did not change + +- scripting + - user scripts are longer protected against infinite loop and the main window object may be reached (it's not supported to break out of scripting context, but resources are no longer wasted to prevent it) + - `toolbar()` can now target menu actions by id instead of index + - `getToolbar()` function added (returns the state of a menu entry toggle) + - calling `setFocus()` without argument now unfocuses current active element + +- midi + - add `no_auto_note_off` option + - add `Restart backend` action to the launcher's menu + - add `restartMidiBackend()` function to custom module context + +- breaking change + - dropped support for iOS 10.3 + - minimum chromium version requirement raised to 70 + - macOS 11 (Big Sur) or above is now required (the node package will work on older system) + - scrollbars are no longer emulated on iOS + - scrollbar styling is now done using only the standard css scrollbar-* properties) to be more in line with system scrollbars in general + - panels no longer use their value to set/get their scrolling state, nor do they sync scrolling automatically. Instead there's now a dedicated scrollbar widget that can be used for this. + +- misc + - now using electron v36.9.5 + +## 1.29.9 + +- build + - fix building from sources now that open stage control is not hosted on github + +- scripting + - user scripts are longer protected against infinite loop + +## 1.29.8 + +- bug fixes + - firefox: `onTouch` error when the cursor goes outside the page + - dropdown: label not initialized until a value is set + - editor: regression (1.29.0) preventing color changes made with the color to be undoable unless validaed with the enter key + - editor: color picker interaction issue in near #000000 + - rgb: incoming values were not queued when during user interaction + +- client + - add `title` client option + +## 1.29.7 + +- launcher + - add tray icon and menu (landed in 1.29.6 accidentally), disabled by default (can be enabled from the launcher's menu) + + +## 1.29.6 + +- bug fixes + - matrix: prevent error when `quantity` is invalid + - multixy/xy: send value when setting `spring` to `true` (only if current value is different than spring value) + - switch/menu/fader: more consistent rendering when `borderRadius` is set + +- widgets + - multixy/xy: add `stepsX` and `stepsY` properties + +- misc + - native silicon buids (osx-arm64) + +## 1.29.5 + +- bug fixes + - keyboard: regression (1.27.5) breaking `velocity` property + - editor: retain scroll position in code editors + - cli: regression (1.28) preventing from setting options from a terminal on windows + + +## 1.29.4 + +- bug fixes + - regression (1.29.3) breaking some widget recreation routines + +## 1.29.3 + +- widgets + - frame: add `allow` property + - matrix: make `quantity` a dynamic property to avoid losing widget state when it changes + - patchbay: missing `preArgs` implementation + +## 1.29.1 / 1.29.2 + +- bug fixes + - scripting: `setFocus` not working on iOS + - fader/range: drawing error with `pips` enabled + +## 1.29.0 + +- bug fixes + - file browser: drive listing failing on recent windows + - root: `hideMenu` not working when `--read-only` is set + - combining `--read-only` and `--fullscreen` now disables `F11` on built-in client + - regression breaking `pips` for range widget + +- widgets + - add `onTouch` to all container widgets + - allow starting a traversing gesture outside a touchable widget + - fader: make `knobSize` dynamic + +## 1.28.5 + +- bug fixes + - multixy: error when `points` is `0` (or empty array) (again) + +## 1.28.4 + +- bug fixes + - multixy: error when `points` is `0` (or empty array) + +## 1.28.3 + +- bug fixes + - multixy: correclty handle incoming feedback values and simultaneous touch releases + +## 1.28.2 + +- bug fixes + - regression in feedback handling (unfixes multixy simultaneous spring issue temporarily) + +## 1.28.1 + +- bug fixes + - eq: `highpass` filter not working as expected with `poles` set + - fader: `touchZone` not applied to `doubleTap` events + - fader: `touchZone` not affecting mousewheel interactions + - fader: regression causing issues with `onTouch` scripts + +## 1.28.0 + +- bug fixes + - ui: global zoom (CmdOrCtrl + scroll / + / - / 0) issues and conflits with native browser zoom; + - ui: limit ctrl + scroll zoom speed + - broken cli when `ELECTRON_RUN_AS_NODE` is set + - inspector: input bug when a code editor was focused using the tab key + - inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs + - multixy: simultaneous touch releases not working correctly when `spring` is set and feedback values are received shortly after being sent + +- widgets + - fader: add `touchZone` property to allow restricting interaction to a part of the widget + - eq: add support for n-poles lowpass and highpass filters with the filter's `poles` property + - eq: adapt sampling frequency to the x-axis range + - xy/multixy: add `auto` choice to `axisLock` (locks on the first moved axis) + - file: `extension` can now be an array of strings + - plot/eq: smoother curves + - sliders/pads: `doubleTap` can now be `"script"`, in which case `onTouch` will be called with `event.type` set to `doubleTap` + - xy: add `label` property + - multixy: add `padsAttr` property for per-pad customization + - panel: `tabsPosition` can now be `hidden` + - pads: support percents in `pointSize` + +- scripting + - `console.log` now always print the id of the widget that called it + +- editor + - inspector: tab key navigation now works, property categories can be fold/unfold with enter/space when focused + - inspector: `F2` now focuses the `html` property in the inpector if `label` is not present + - tree: add `mod + f` to focus the search input + + + +## 1.27.5 + +- bug fixes + - patchbay: layout issue + - widget: regression causing error when emptying the css property and leaving only class declarations + - modal: incorrect position in scrolled containers when `relative` is `true` + - menu: incorrect position in scrlled containers depending on menu's alignment + - button: `locals.touchCoords` not updated upon release and incorrect when `doubleTap` is set + +## 1.27.4 + +- bug fixes + - fader: pips drawing issue causing small a position offset or errors with some browsers + - script: setFocus not working with textarea widgets + +## 1.27.3 + +- bug fixes + - regression causing circular loop errors upon certain editions + - fader: glitch with large `lineWidth` values in default design mode + ## 1.27.2 - bug fixes @@ -15,20 +306,20 @@ - matrix: don't implicitely override children's `label`, do it explicitely in `props`' default - custom module - - `receive()` and `send()` now accept `host` and `port` to be provided as a single string argument joined by a colon + - `receive()` and `send()` now accept `host` and `port` to be provided as a single string argument joined by a colon ## 1.27.1 - bug fixes - - server: `fullscreen` option not working when `read-only` is set - - led and text widgets not client-syncing - - patchbay: `address` not working properly when set to `auto` - - patchbay: `ignoreDefaults` not working properly - - editor: missing position indicator in color picker pad - - file browser: fallback to home directory when last visited directory is not accessible + - server: `fullscreen` option not working when `read-only` is set + - led and text widgets not client-syncing + - patchbay: `address` not working properly when set to `auto` + - patchbay: `ignoreDefaults` not working properly + - editor: missing position indicator in color picker pad + - file browser: fallback to home directory when last visited directory is not accessible - mobile - - apply root's (or themes) background color the the browser's topbar when possible + - apply root's (or themes) background color the the browser's topbar when possible ## 1.27.0 @@ -768,7 +1059,7 @@ - advanced syntaxes - new syntax for creating and using custom variables in properties: `VAR{name, default}` - - `JS{}` blocks don't require 2 brackets anymore (`JS{{}}` still works) + - `JS{}` blocks don't require 2 brackets anymore (`JS\{\{}}` still works) - scripting - add `getVar()` and `setVar()` for reading and modifying custom variables. This allows modifying properties directly from scripts (if they contain `VAR{}` blocks). @@ -839,7 +1130,7 @@ - add option for receiving note off with velocity - misc - - v0->v1 session conversion: remove `JS{{}}` in script property + - v0->v1 session conversion: remove `JS\{\{}}` in script property ## 1.9.0 @@ -1441,14 +1732,14 @@ As of this version, packages except the `node` package are bundled with a midi b - scripting (general) - removed MathJS language - - reuse #{} syntax as as shorthand for JS{{}} (one liner, implicit return) + - reuse #{} syntax as as shorthand for JS\{\{}} (one liner, implicit return) - added `locals` variable, a variable store scoped to the widget - renamed `global` to `globals` - expose environment variables in `globals`: `url`, `env` (query parameters), `platform`, `screen` (width/height) - script widget - always hidden except in project tree - - `script` property must not be wrapped in a JS{{}} block anymore + - `script` property must not be wrapped in a JS\{\{}} block anymore - added `stateGet` and `stateSet` functions - added `storage` object, proxy to the document's localStorage object (allows storing data that persist after refresh/close (cleared with the browser's cache) - added `setTimeout`, `clearTimeout`, `setInterval`, `clearInterval` function proxies with an extra `id` argument (they clear automatically when called multiple times and upon widget removal. `id` is scoped to the widget) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..921666c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM node:24-alpine + +RUN apk --no-cache add git + +WORKDIR /usr/src/app + +COPY package*.json ./ + +RUN npm install + +COPY . . + +RUN npm run build + +RUN mkdir /sessions +RUN touch /sessions/session.json + +EXPOSE 8080 + +ENV ELECTRON_RUN_AS_NODE=1 + +ENV SEND="127.0.0.1:8080" +ENV LOAD="/sessions/main.json" +ENV PORT=8080 +ENV OSC_PORT=8080 +ENV READ_ONLY=false + +RUN chmod +x entrypoint.sh +ENTRYPOINT ["./entrypoint.sh"] diff --git a/README.md b/README.md index 280b04ee..89da9bd5 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,11 @@ Open Stage Control ---- -Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2014-2022. -This program is a free software released under the [GNU/GPL3](ttps://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license. +Docker additions by Rik Berkelder. + +mount `/sessions` directory. default session file is created and loaded there. + +--- + +Copyleft © Jean-Emmanuel Doucet 2014-2025. +This program is a free software released under the [GNU/GPL3](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE) license. diff --git a/app/assets/themes/.gitignore b/app/assets/themes/.gitignore deleted file mode 100644 index d6b7ef32..00000000 --- a/app/assets/themes/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/app/client/.gitignore b/app/client/.gitignore deleted file mode 100644 index d6b7ef32..00000000 --- a/app/client/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/app/docs/.htaccess b/app/docs/.htaccess deleted file mode 100644 index de377bfe..00000000 --- a/app/docs/.htaccess +++ /dev/null @@ -1 +0,0 @@ -ErrorDocument 404 /404.html diff --git a/app/index.js b/app/index.js deleted file mode 100644 index cb716413..00000000 --- a/app/index.js +++ /dev/null @@ -1 +0,0 @@ -require('./server/open-stage-control-server') diff --git a/app/launcher/.gitignore b/app/launcher/.gitignore deleted file mode 100644 index d6b7ef32..00000000 --- a/app/launcher/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/app/server/.keep b/app/server/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/basesession.json b/basesession.json new file mode 100644 index 00000000..9ddad0bb --- /dev/null +++ b/basesession.json @@ -0,0 +1,49 @@ +{ + "createdWith": "Open Stage Control", + "version": "1.31.2", + "type": "session", + "content": { + "type": "root", + "lock": false, + "id": "root", + "visible": true, + "interaction": true, + "comments": "", + "width": "auto", + "height": "auto", + "colorText": "auto", + "colorWidget": "auto", + "alphaFillOn": "auto", + "borderRadius": "auto", + "padding": "auto", + "html": "", + "css": "", + "colorBg": "auto", + "layout": "default", + "justify": "start", + "gridTemplate": "", + "contain": true, + "scroll": true, + "innerPadding": true, + "tabsPosition": "top", + "hideMenu": false, + "variables": "@{parent.variables}", + "traversing": false, + "value": "", + "default": "", + "linkId": "", + "address": "auto", + "preArgs": "", + "typeTags": "", + "decimals": 2, + "target": "", + "ignoreDefaults": false, + "bypass": false, + "onCreate": "", + "onValue": "", + "onTouch": "", + "onPreload": "", + "widgets": [], + "tabs": [] + } +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..314d2769 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +services: + app: + build: . + volumes: + - ./sessions:/sessions + ports: + - 8080:8080 + \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 00000000..f4720cdf --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +test -f "$LOAD" || cp "basesession.json" "$LOAD" + +exec node app/index.js \ + --port $PORT \ + --osc-port $OSC_PORT \ + --send $SEND \ + --load $LOAD \ + --read-only=$READ_ONLY diff --git a/package-lock.json b/package-lock.json index 372cdf91..3956e018 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,62 +1,62 @@ { "name": "open-stage-control", - "version": "1.26.2", + "version": "1.31.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "open-stage-control", - "version": "1.26.2", + "version": "1.31.2", "hasInstallScript": true, "license": "GPL-3.0", "dependencies": { "@babel/core": "7.18.0", - "@babel/eslint-parser": "7.17.0", - "@babel/plugin-proposal-object-rest-spread": "7.18.0", - "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.18.0", - "@electron/remote": "2.0.8", - "ace-builds": "1.24.1", + "@electron/packager": "18.4.4", + "@electron/remote": "2.1.3", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^28.0.6", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^16.0.1", + "@rollup/plugin-terser": "^0.4.4", + "ace-builds": "1.39.0", "ansi-html": "0.0.9", "babelify": "10.0.0", "balanced-match": "2.0.0", - "bonjour": "github:jean-emmanuel/bonjour", - "browserify": "17.0.0", + "bonjour": "git+https://framagit.org/jean-emmanuel/bonjour.git", "chokidar": "3.5.3", "chroma-js": "2.4.2", "core-js": "3.22.5", "cpr": "3.0.1", "deep-extend": "0.6.0", "electron-localshortcut": "3.2.1", - "electron-packager": "15.2.0", "electron-packager-plugin-non-proprietary-codecs-ffmpeg": "1.0.2", "env-paths": "2.2.1", "eslint": "8.16.0", - "exorcist": "2.0.0", "fastdom": "1.0.10", "file-saver": "2.0.5", - "gyronorm": "2.0.6", "http-auth": "4.1.9", "json5": "2.2.1", "jsondiffpatch": "0.4.1", "keyboardjs": "2.6.4", - "licensify": "3.1.3", - "loop-protect": "github:jean-emmanuel/loop-protect#v1.0.1", "minimatch": "5.1.0", "nanohtml": "1.10.0", "nanoid": "3.3.4", "nanomorph": "5.4.3", "node-forge": "1.3.1", "node-mouse": "0.0.2", - "node-sass": "9.0.0", "nodemon": "2.0.16", "nosleep.js": "0.12.0", "open": "8.4.0", - "osc": "github:jean-emmanuel/osc.js", + "osc": "2.4.5", "python-shell": "3.0.1", "qrcode": "1.5.1", "replacestream": "4.0.3", - "sanitize-html": "1.27.5", + "rollup": "4.50.1", + "rollup-plugin-copy": "3.5.0", + "rollup-plugin-license": "^3.6.0", + "rollup-plugin-node-externals": "^8.1.1", + "sass": "1.89.2", "scope-css": "1.2.1", "screenfull": "5.2.0", "semver": "7.3.7", @@ -64,52 +64,56 @@ "sortablejs": "1.15.0", "source-map-support": "0.5.21", "stacktrace-js": "2.0.2", - "through": "2.3.8", - "uglifyify": "5.0.2", - "webworkify": "1.5.0", + "ua-parser-js": "2.0.7", "ws": "8.6.0", "yargs": "17.5.1" }, - "devDependencies": { - "watchify": "4.0.0" - }, "engines": { - "node": ">=16 <=20" + "node": ">=16" }, "optionalDependencies": { - "electron": "15.1.0", + "electron": "36.9.5", "electron-installer-debian": "3.1.0", - "electron-installer-redhat": "3.4.0" + "electron-installer-redhat": "git+https://framagit.org/jean-emmanuel/electron-installer-redhat.git" } }, "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "license": "Apache-2.0", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.10.4", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", "dependencies": { - "@babel/highlight": "^7.10.4" + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.17.10", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", + "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { "version": "7.18.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.0.tgz", + "integrity": "sha512-Xyw74OlJwDijToNi0+6BBI5mLLR5+5R3bcSH80LXzjzEGEUlvNzujEE71BaD/ApEZHAvFI/Mlmp4M5lIkdeeWw==", "dependencies": { "@ampproject/remapping": "^2.1.0", "@babel/code-frame": "^7.16.7", @@ -135,290 +139,75 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/generator": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.18.0", - "@jridgewell/gen-mapping": "^0.3.0", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/traverse": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.0", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.0", - "@babel/types": "^7.18.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/core/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, - "node_modules/@babel/eslint-parser": { - "version": "7.17.0", - "license": "MIT", + "node_modules/@babel/generator": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", + "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", "dependencies": { - "eslint-scope": "^5.1.1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.0" + "@babel/parser": "^7.28.5", + "@babel/types": "^7.28.5", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || >=14.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.11.0", - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/@babel/eslint-parser/node_modules/eslint-scope": { - "version": "5.1.1", - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "license": "Apache-2.0", - "engines": { - "node": ">=10" - } - }, - "node_modules/@babel/eslint-parser/node_modules/estraverse": { - "version": "4.3.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@babel/eslint-parser/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node": ">=6.9.0" } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/helper-explode-assignable-expression": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" + "@babel/types": "^7.27.3" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.17.10", - "license": "MIT", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", "dependencies": { - "@babel/compat-data": "^7.17.10", - "@babel/helper-validator-option": "^7.16.7", - "browserslist": "^4.20.2", - "semver": "^6.3.0" + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.18.0", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.5.tgz", + "integrity": "sha512-q3WC4JfdODypvxArsJQROfupPBq9+lMwjKq7C33GhbFYJsufD0yd/ziwD+hJucLeWsnFPWZjsU2DNFqBPE7jwQ==", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-member-expression-to-functions": "^7.17.7", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/helper-replace-supers": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7" + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.5", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -427,107 +216,22 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" + "semver": "bin/semver.js" } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.17.12", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.28.5.tgz", + "integrity": "sha512-N1EhvLtHzOvj7QQOUCCS3NrPJP8c5W6ZXCHDn7Yialuy1iu4r5EmIYkXlKNqT99Ciw+W0mDqWoR6HWMZlFP3hw==", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "regexpu-core": "^5.0.1" + "@babel/helper-annotate-as-pure": "^7.27.3", + "regexpu-core": "^6.3.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -536,14 +240,21 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.3.1", - "license": "MIT", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", + "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", "dependencies": { - "@babel/helper-compilation-targets": "^7.13.0", - "@babel/helper-module-imports": "^7.12.13", - "@babel/helper-plugin-utils": "^7.13.0", - "@babel/traverse": "^7.13.0", + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", "debug": "^4.1.1", "lodash.debounce": "^4.0.8", "resolve": "^1.14.2", @@ -553,958 +264,192 @@ "@babel/core": "^7.4.0-0" } }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/generator": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.18.0", - "@jridgewell/gen-mapping": "^0.3.0", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/traverse": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.0", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.0", - "@babel/types": "^7.18.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.16.7", - "license": "MIT", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", "dependencies": { - "@babel/types": "^7.16.7" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-environment-visitor/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-environment-visitor/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.17.7", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz", + "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==", "dependencies": { - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.18.0", - "license": "MIT", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", "dependencies": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-simple-access": "^7.17.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.0", - "@babel/types": "^7.18.0" + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" }, "engines": { "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/generator": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.18.0", - "@jridgewell/gen-mapping": "^0.3.0", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/traverse": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.0", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.0", - "@babel/types": "^7.18.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-module-transforms/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.16.8", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", + "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-wrap-function": "^7.16.8", - "@babel/types": "^7.16.8" + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" }, - "engines": { - "node": ">=6.9.0" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", + "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", "dependencies": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-member-expression-to-functions": "^7.16.7", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/generator": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.18.0", - "@jridgewell/gen-mapping": "^0.3.0", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/traverse": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.0", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.0", - "@babel/types": "^7.18.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-replace-supers/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.17.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.16.0", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", "dependencies": { - "@babel/types": "^7.16.0" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.10.4", - "license": "MIT" + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "engines": { + "node": ">=6.9.0" + } }, "node_modules/@babel/helper-validator-option": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.16.8", - "license": "MIT", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.3.tgz", + "integrity": "sha512-zdf983tNfLZFletc0RRXYrHrucBEg95NIFMkn6K9dbeMYnsgHaSBGcQqdsCSStG2PYwRre0Qc2NNSCXbG+xc6g==", "dependencies": { - "@babel/helper-function-name": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.8", - "@babel/types": "^7.16.8" + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/generator": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.18.0", - "@jridgewell/gen-mapping": "^0.3.0", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/traverse": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.0", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.0", - "@babel/types": "^7.18.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-wrap-function/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/helpers": { - "version": "7.18.0", - "license": "MIT", + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", "dependencies": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.0", - "@babel/types": "^7.18.0" + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helpers/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", + "node_modules/@babel/parser": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", "dependencies": { - "@babel/highlight": "^7.16.7" + "@babel/types": "^7.28.5" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/generator": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.18.0", - "@jridgewell/gen-mapping": "^0.3.0", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", "bin": { "parser": "bin/babel-parser.js" }, @@ -1512,98 +457,12 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/helpers/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/traverse": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.0", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.0", - "@babel/types": "^7.18.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helpers/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight": { - "version": "7.10.4", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz", + "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1613,12 +472,13 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", + "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0", - "@babel/plugin-proposal-optional-chaining": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-transform-optional-chaining": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1628,11 +488,14 @@ } }, "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.17.12", - "license": "MIT", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", + "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-remap-async-to-generator": "^7.16.8", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9", "@babel/plugin-syntax-async-generators": "^7.8.4" }, "engines": { @@ -1643,11 +506,13 @@ } }, "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.17.12", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.17.12", - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { "node": ">=6.9.0" @@ -1657,11 +522,13 @@ } }, "node_modules/@babel/plugin-proposal-class-static-block": { - "version": "7.18.0", - "license": "MIT", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz", + "integrity": "sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.0", - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-class-static-block": "^7.14.5" }, "engines": { @@ -1672,10 +539,12 @@ } }, "node_modules/@babel/plugin-proposal-dynamic-import": { - "version": "7.16.7", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", + "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-dynamic-import": "^7.8.3" }, "engines": { @@ -1686,10 +555,12 @@ } }, "node_modules/@babel/plugin-proposal-export-namespace-from": { - "version": "7.17.12", - "license": "MIT", + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/helper-plugin-utils": "^7.18.9", "@babel/plugin-syntax-export-namespace-from": "^7.8.3" }, "engines": { @@ -1700,10 +571,12 @@ } }, "node_modules/@babel/plugin-proposal-json-strings": { - "version": "7.17.12", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", + "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-json-strings": "^7.8.3" }, "engines": { @@ -1714,10 +587,12 @@ } }, "node_modules/@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.17.12", - "license": "MIT", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", + "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" }, "engines": { @@ -1728,10 +603,12 @@ } }, "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.17.12", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" }, "engines": { @@ -1742,10 +619,12 @@ } }, "node_modules/@babel/plugin-proposal-numeric-separator": { - "version": "7.16.7", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-numeric-separator": "^7.10.4" }, "engines": { @@ -1756,14 +635,16 @@ } }, "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.18.0", - "license": "MIT", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", + "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", "dependencies": { - "@babel/compat-data": "^7.17.10", - "@babel/helper-compilation-targets": "^7.17.10", - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.17.12" + "@babel/plugin-transform-parameters": "^7.20.7" }, "engines": { "node": ">=6.9.0" @@ -1773,10 +654,12 @@ } }, "node_modules/@babel/plugin-proposal-optional-catch-binding": { - "version": "7.16.7", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" }, "engines": { @@ -1787,11 +670,13 @@ } }, "node_modules/@babel/plugin-proposal-optional-chaining": { - "version": "7.17.12", - "license": "MIT", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, "engines": { @@ -1802,11 +687,13 @@ } }, "node_modules/@babel/plugin-proposal-private-methods": { - "version": "7.17.12", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.17.12", - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { "node": ">=6.9.0" @@ -1816,12 +703,14 @@ } }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.17.12", - "license": "MIT", + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-create-class-features-plugin": "^7.17.12", - "@babel/helper-plugin-utils": "^7.17.12", + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-private-property-in-object": "^7.14.5" }, "engines": { @@ -1832,11 +721,13 @@ } }, "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.17.12", - "license": "MIT", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.17.12", - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { "node": ">=4" @@ -1847,7 +738,8 @@ }, "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1857,7 +749,8 @@ }, "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -1867,7 +760,8 @@ }, "node_modules/@babel/plugin-syntax-class-static-block": { "version": "7.14.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -1880,7 +774,8 @@ }, "node_modules/@babel/plugin-syntax-dynamic-import": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1890,7 +785,8 @@ }, "node_modules/@babel/plugin-syntax-export-namespace-from": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, @@ -1899,10 +795,11 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz", + "integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1913,7 +810,8 @@ }, "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1923,7 +821,8 @@ }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -1933,7 +832,8 @@ }, "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1943,7 +843,8 @@ }, "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -1953,7 +854,8 @@ }, "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1963,7 +865,8 @@ }, "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1973,7 +876,8 @@ }, "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1983,7 +887,8 @@ }, "node_modules/@babel/plugin-syntax-private-property-in-object": { "version": "7.14.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -1996,7 +901,8 @@ }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -2008,10 +914,11 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", + "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2021,12 +928,13 @@ } }, "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.27.1.tgz", + "integrity": "sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==", "dependencies": { - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-remap-async-to-generator": "^7.16.8" + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2036,10 +944,11 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", + "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2049,10 +958,11 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.17.12", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.5.tgz", + "integrity": "sha512-45DmULpySVvmq9Pj3X9B+62Xe+DJGov27QravQJU1LLcapR6/10i+gYVAucGGJpHBp5mYxIMK4nDAT/QDLr47g==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2062,17 +972,16 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.17.12", - "license": "MIT", + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.4.tgz", + "integrity": "sha512-cFOlhIYPBv/iBoc+KS3M6et2XPtbT2HiCRfBXWtfpc9OAyostldxIf9YAYB6ypURBBbx+Qv6nyrLzASfJe+hBA==", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-replace-supers": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "globals": "^11.1.0" + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-globals": "^7.28.0", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/traverse": "^7.28.4" }, "engines": { "node": ">=6.9.0" @@ -2081,106 +990,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-classes/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.27.1.tgz", + "integrity": "sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/template": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2190,10 +1006,12 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.18.0", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz", + "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -2203,11 +1021,12 @@ } }, "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz", + "integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2217,10 +1036,11 @@ } }, "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", + "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2230,11 +1050,11 @@ } }, "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.16.7", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.28.5.tgz", + "integrity": "sha512-D4WIMaFtwa2NizOp+dnoFjRez/ClKiC2BqqImwKd1X28nqBtZEyCYJ2ozQrrzlxAFrcrjxo39S6khe9RNDlGzw==", "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2244,10 +1064,12 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.18.1", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", + "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2257,12 +1079,13 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", + "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", "dependencies": { - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2271,96 +1094,12 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/code-frame": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/highlight": { - "version": "7.17.12", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/parser": { - "version": "7.18.0", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/template": { - "version": "7.16.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/plugin-transform-function-name/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", + "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2370,10 +1109,11 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", + "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2383,12 +1123,12 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.18.0", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", + "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", "dependencies": { - "@babel/helper-module-transforms": "^7.18.0", - "@babel/helper-plugin-utils": "^7.17.12", - "babel-plugin-dynamic-import-node": "^2.3.3" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2398,13 +1138,12 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.18.0", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.27.1.tgz", + "integrity": "sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==", "dependencies": { - "@babel/helper-module-transforms": "^7.18.0", - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-simple-access": "^7.17.7", - "babel-plugin-dynamic-import-node": "^2.3.3" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2414,14 +1153,14 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.18.0", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.28.5.tgz", + "integrity": "sha512-vn5Jma98LCOeBy/KpeQhXcV2WZgaRUtjwQmjoBuLNlOmkg0fB5pdvYVeWRYI69wWKwK2cD1QbMiUQnoujWvrew==", "dependencies": { - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-module-transforms": "^7.18.0", - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-validator-identifier": "^7.16.7", - "babel-plugin-dynamic-import-node": "^2.3.3" + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -2430,19 +1169,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-modules-systemjs/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.0", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", + "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", "dependencies": { - "@babel/helper-module-transforms": "^7.18.0", - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2452,11 +1185,12 @@ } }, "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.17.12", - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2466,10 +1200,11 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", + "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2479,11 +1214,27 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", + "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-replace-supers": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.28.5.tgz", + "integrity": "sha512-N6fut9IZlPnjPwgiQkXNhb+cT8wQKFlJNqcZkWlcTqkcqx6/kU4ynGmLFoa4LViBSirn05YAwk+sQBbPfxtYzQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2493,10 +1244,11 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", + "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2506,10 +1258,11 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", + "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2519,11 +1272,11 @@ } }, "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.18.0", - "license": "MIT", + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.28.4.tgz", + "integrity": "sha512-+ZEdQlBoRg9m2NnzvEeLgtvBMO4tkFBw5SQIUgLICgTrumLoU7lr+Oghi6km2PFj+dbUt2u1oby2w3BDO9YQnA==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", - "regenerator-transform": "^0.15.0" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2533,10 +1286,11 @@ } }, "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", + "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2546,10 +1300,11 @@ } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", + "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2559,11 +1314,12 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.27.1.tgz", + "integrity": "sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2573,10 +1329,11 @@ } }, "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", + "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2586,10 +1343,11 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", + "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2599,10 +1357,11 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.17.12", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", + "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2612,10 +1371,11 @@ } }, "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", + "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2625,11 +1385,12 @@ } }, "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.16.7", - "license": "MIT", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", + "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -2638,22 +1399,10 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/polyfill": { - "version": "7.12.1", - "license": "MIT", - "dependencies": { - "core-js": "^2.6.5", - "regenerator-runtime": "^0.13.4" - } - }, - "node_modules/@babel/polyfill/node_modules/core-js": { - "version": "2.6.12", - "hasInstallScript": true, - "license": "MIT" - }, "node_modules/@babel/preset-env": { "version": "7.18.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.18.0.tgz", + "integrity": "sha512-cP74OMs7ECLPeG1reiCQ/D/ypyOxgfm8uR6HRYV23vTJ7Lu1nbgj9DQDo/vH59gnn7GOAwtTDPPYV4aXzsMKHA==", "dependencies": { "@babel/compat-data": "^7.17.10", "@babel/helper-compilation-targets": "^7.17.10", @@ -2738,34 +1487,18 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/preset-env/node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/preset-env/node_modules/@babel/types": { - "version": "7.18.0", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "license": "MIT", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6.tgz", + "integrity": "sha512-ID2yj6K/4lKfhuU3+EX4UvNbIt7eACFbHmNUjzA+ep+B5971CknnA/9DEWKbRokfbbtblxxxXFJJrH47UEAMVg==", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", @@ -2774,70 +1507,312 @@ "esutils": "^2.0.2" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@babel/runtime": { - "version": "7.18.0", - "license": "MIT", + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", "dependencies": { - "regenerator-runtime": "^0.13.4" + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", + "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.5", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.5", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.5", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.12.6", - "license": "MIT", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", "dependencies": { - "@babel/helper-validator-identifier": "^7.10.4", - "lodash": "^4.17.19", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@electron/asar": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz", + "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==", + "dependencies": { + "commander": "^5.0.0", + "glob": "^7.1.6", + "minimatch": "^3.0.4" + }, + "bin": { + "asar": "bin/asar.js" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/@electron/asar/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/@electron/asar/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@electron/asar/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, "node_modules/@electron/get": { - "version": "1.13.0", - "license": "MIT", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz", + "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==", "dependencies": { "debug": "^4.1.1", "env-paths": "^2.2.0", "fs-extra": "^8.1.0", - "got": "^9.6.0", + "got": "^11.8.5", "progress": "^2.0.3", "semver": "^6.2.0", "sumchecker": "^3.0.1" }, "engines": { - "node": ">=8.6" + "node": ">=14" }, "optionalDependencies": { - "global-agent": "^2.0.2", - "global-tunnel-ng": "^2.7.1" + "global-agent": "^3.0.0" + } + }, + "node_modules/@electron/get/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/@electron/get/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, "node_modules/@electron/get/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, + "node_modules/@electron/get/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/@electron/notarize": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz", + "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==", + "dependencies": { + "debug": "^4.1.1", + "fs-extra": "^9.0.1", + "promise-retry": "^2.0.1" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@electron/notarize/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/osx-sign": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz", + "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==", + "dependencies": { + "compare-version": "^0.1.2", + "debug": "^4.3.4", + "fs-extra": "^10.0.0", + "isbinaryfile": "^4.0.8", + "minimist": "^1.2.6", + "plist": "^3.0.5" + }, + "bin": { + "electron-osx-flat": "bin/electron-osx-flat.js", + "electron-osx-sign": "bin/electron-osx-sign.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@electron/osx-sign/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@electron/packager": { + "version": "18.4.4", + "resolved": "https://registry.npmjs.org/@electron/packager/-/packager-18.4.4.tgz", + "integrity": "sha512-fTUCmgL25WXTcFpM1M72VmFP8w3E4d+KNzWxmTDRpvwkfn/S206MAtM2cy0GF78KS9AwASMOUmlOIzCHeNxcGQ==", + "dependencies": { + "@electron/asar": "^3.2.13", + "@electron/get": "^3.0.0", + "@electron/notarize": "^2.1.0", + "@electron/osx-sign": "^1.0.5", + "@electron/universal": "^2.0.1", + "@electron/windows-sign": "^1.0.0", + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.0.1", + "extract-zip": "^2.0.0", + "filenamify": "^4.1.0", + "fs-extra": "^11.1.0", + "galactus": "^1.0.0", + "get-package-info": "^1.0.0", + "junk": "^3.1.0", + "parse-author": "^2.0.0", + "plist": "^3.0.0", + "prettier": "^3.4.2", + "resedit": "^2.0.0", + "resolve": "^1.1.6", + "semver": "^7.1.3", + "yargs-parser": "^21.1.1" + }, + "bin": { + "electron-packager": "bin/electron-packager.js" + }, + "engines": { + "node": ">= 16.13.0" + }, + "funding": { + "url": "https://github.com/electron/packager?sponsor=1" + } + }, "node_modules/@electron/remote": { - "version": "2.0.8", - "license": "MIT", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@electron/remote/-/remote-2.1.3.tgz", + "integrity": "sha512-XlpxC8S4ttj/v2d+PKp9na/3Ev8bV7YWNL7Cw5b9MAWgTphEml7iYgbc7V0r9D6yDOfOkj06bchZgOZdlWJGNA==", "peerDependencies": { "electron": ">= 13.0.0" } }, + "node_modules/@electron/universal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz", + "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==", + "dependencies": { + "@electron/asar": "^3.3.1", + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.3.1", + "dir-compare": "^4.2.0", + "fs-extra": "^11.1.1", + "minimatch": "^9.0.3", + "plist": "^3.1.0" + }, + "engines": { + "node": ">=16.4" + } + }, + "node_modules/@electron/universal/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@electron/windows-sign": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz", + "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==", + "dependencies": { + "cross-dirname": "^0.1.0", + "debug": "^4.3.4", + "fs-extra": "^11.1.1", + "minimist": "^1.2.8", + "postject": "^1.0.0-alpha.6" + }, + "bin": { + "electron-windows-sign": "bin/electron-windows-sign.js" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/@eslint/eslintrc": { - "version": "1.3.0", - "license": "MIT", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", + "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.3.2", - "globals": "^13.15.0", + "espree": "^9.4.0", + "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -2846,24 +1821,29 @@ }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.15.0", - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, "node_modules/@eslint/eslintrc/node_modules/minimatch": { "version": "3.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2871,23 +1851,11 @@ "node": "*" } }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@gar/promisify": { - "version": "1.1.3", - "license": "MIT" - }, "node_modules/@humanwhocodes/config-array": { "version": "0.9.5", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", + "integrity": "sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==", + "deprecated": "Use @eslint/config-array instead", "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", @@ -2897,9 +1865,24 @@ "node": ">=10.10.0" } }, + "node_modules/@humanwhocodes/config-array/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { "version": "3.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2909,47 +1892,54 @@ }, "node_modules/@humanwhocodes/object-schema": { "version": "1.2.1", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "deprecated": "Use @eslint/object-schema instead" }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "license": "MIT", + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - }, - "engines": { - "node": ">=6.0.0" + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.0.7", - "license": "MIT", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "engines": { "node": ">=6.0.0" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.1", - "license": "MIT", - "engines": { - "node": ">=6.0.0" + "node_modules/@jridgewell/source-map": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", + "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.13", - "license": "MIT" + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.13", - "license": "MIT", + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@malept/cross-spawn-promise": { - "version": "1.1.1", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz", + "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==", "funding": [ { "type": "individual", @@ -2960,324 +1950,1181 @@ "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" } ], - "license": "Apache-2.0", - "optional": true, "dependencies": { "cross-spawn": "^7.0.1" }, "engines": { - "node": ">= 10" + "node": ">= 12.13.0" } }, - "node_modules/@npmcli/fs": { - "version": "1.1.1", - "license": "ISC", + "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==", "dependencies": { - "@gar/promisify": "^1.0.1", - "semver": "^7.3.5" - } - }, - "node_modules/@npmcli/move-file": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { - "node": ">=10" + "node": ">= 8" } }, - "node_modules/@npmcli/move-file/node_modules/mkdirp": { - "version": "1.0.4", - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" + "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==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "engines": { - "node": ">=10" + "node": ">= 8" } }, - "node_modules/@npmcli/move-file/node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@serialport/binding-abstract": { - "version": "9.2.4", - "license": "MIT", + "node_modules/@parcel/watcher": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", + "hasInstallScript": true, "optional": true, "dependencies": { - "debug": "^4.3.2" + "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" + "node": ">= 10.0.0" }, "funding": { - "url": "https://opencollective.com/serialport/donate" + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" } }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", + "cpu": [ + "arm" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", + "cpu": [ + "arm" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", + "cpu": [ + "x64" + ], + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "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.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.1.0.tgz", + "integrity": "sha512-dFZNuFD2YRcoomP4oYf+DvQNSUA9ih+A3vUqopQx5EdtPGo3WBnQcI/S8pwpz91UsGfL0HsMSOlaMld8HrbubA==", + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "28.0.9", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.9.tgz", + "integrity": "sha512-PIR4/OHZ79romx0BVVll/PkwWpJ7e5lsqFa3gFfcrFPWwLXLV39JVUzQV9RKjWerE7B845Hqjj9VYlQeieZ2dA==", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "fdir": "^6.2.0", + "is-reference": "1.2.1", + "magic-string": "^0.30.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-json": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz", + "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==", + "dependencies": { + "@rollup/pluginutils": "^5.1.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.3.tgz", + "integrity": "sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-terser": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz", + "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==", + "dependencies": { + "serialize-javascript": "^6.0.1", + "smob": "^1.0.0", + "terser": "^5.17.4" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.50.1.tgz", + "integrity": "sha512-HJXwzoZN4eYTdD8bVV22DN8gsPCAj3V20NHKOs8ezfXanGpmVPR7kalUHd+Y31IJp9stdB87VKPFbsGY3H/2ag==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.50.1.tgz", + "integrity": "sha512-PZlsJVcjHfcH53mOImyt3bc97Ep3FJDXRpk9sMdGX0qgLmY0EIWxCag6EigerGhLVuL8lDVYNnSo8qnTElO4xw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.50.1.tgz", + "integrity": "sha512-xc6i2AuWh++oGi4ylOFPmzJOEeAa2lJeGUGb4MudOtgfyyjr4UPNK+eEWTPLvmPJIY/pgw6ssFIox23SyrkkJw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.50.1.tgz", + "integrity": "sha512-2ofU89lEpDYhdLAbRdeyz/kX3Y2lpYc6ShRnDjY35bZhd2ipuDMDi6ZTQ9NIag94K28nFMofdnKeHR7BT0CATw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.50.1.tgz", + "integrity": "sha512-wOsE6H2u6PxsHY/BeFHA4VGQN3KUJFZp7QJBmDYI983fgxq5Th8FDkVuERb2l9vDMs1D5XhOrhBrnqcEY6l8ZA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.50.1.tgz", + "integrity": "sha512-A/xeqaHTlKbQggxCqispFAcNjycpUEHP52mwMQZUNqDUJFFYtPHCXS1VAG29uMlDzIVr+i00tSFWFLivMcoIBQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.50.1.tgz", + "integrity": "sha512-54v4okehwl5TaSIkpp97rAHGp7t3ghinRd/vyC1iXqXMfjYUTm7TfYmCzXDoHUPTTf36L8pr0E7YsD3CfB3ZDg==", + "cpu": [ + "arm" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.50.1.tgz", + "integrity": "sha512-p/LaFyajPN/0PUHjv8TNyxLiA7RwmDoVY3flXHPSzqrGcIp/c2FjwPPP5++u87DGHtw+5kSH5bCJz0mvXngYxw==", + "cpu": [ + "arm" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.50.1.tgz", + "integrity": "sha512-2AbMhFFkTo6Ptna1zO7kAXXDLi7H9fGTbVaIq2AAYO7yzcAsuTNWPHhb2aTA6GPiP+JXh85Y8CiS54iZoj4opw==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.50.1.tgz", + "integrity": "sha512-Cgef+5aZwuvesQNw9eX7g19FfKX5/pQRIyhoXLCiBOrWopjo7ycfB292TX9MDcDijiuIJlx1IzJz3IoCPfqs9w==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.50.1.tgz", + "integrity": "sha512-RPhTwWMzpYYrHrJAS7CmpdtHNKtt2Ueo+BlLBjfZEhYBhK00OsEqM08/7f+eohiF6poe0YRDDd8nAvwtE/Y62Q==", + "cpu": [ + "loong64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.50.1.tgz", + "integrity": "sha512-eSGMVQw9iekut62O7eBdbiccRguuDgiPMsw++BVUg+1K7WjZXHOg/YOT9SWMzPZA+w98G+Fa1VqJgHZOHHnY0Q==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.50.1.tgz", + "integrity": "sha512-S208ojx8a4ciIPrLgazF6AgdcNJzQE4+S9rsmOmDJkusvctii+ZvEuIC4v/xFqzbuP8yDjn73oBlNDgF6YGSXQ==", + "cpu": [ + "riscv64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.50.1.tgz", + "integrity": "sha512-3Ag8Ls1ggqkGUvSZWYcdgFwriy2lWo+0QlYgEFra/5JGtAd6C5Hw59oojx1DeqcA2Wds2ayRgvJ4qxVTzCHgzg==", + "cpu": [ + "riscv64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.50.1.tgz", + "integrity": "sha512-t9YrKfaxCYe7l7ldFERE1BRg/4TATxIg+YieHQ966jwvo7ddHJxPj9cNFWLAzhkVsbBvNA4qTbPVNsZKBO4NSg==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.1.tgz", + "integrity": "sha512-MCgtFB2+SVNuQmmjHf+wfI4CMxy3Tk8XjA5Z//A0AKD7QXUYFMQcns91K6dEHBvZPCnhJSyDWLApk40Iq/H3tA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.50.1.tgz", + "integrity": "sha512-nEvqG+0jeRmqaUMuwzlfMKwcIVffy/9KGbAGyoa26iu6eSngAYQ512bMXuqqPrlTyfqdlB9FVINs93j534UJrg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.50.1.tgz", + "integrity": "sha512-RDsLm+phmT3MJd9SNxA9MNuEAO/J2fhW8GXk62G/B4G7sLVumNFbRwDL6v5NrESb48k+QMqdGbHgEtfU0LCpbA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.50.1.tgz", + "integrity": "sha512-hpZB/TImk2FlAFAIsoElM3tLzq57uxnGYwplg6WDyAxbYczSi8O2eQ+H2Lx74504rwKtZ3N2g4bCUkiamzS6TQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.50.1.tgz", + "integrity": "sha512-SXjv8JlbzKM0fTJidX4eVsH+Wmnp0/WcD8gJxIZyR6Gay5Qcsmdbi9zVtnbkGPG8v2vMR1AD06lGWy5FLMcG7A==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.50.1.tgz", + "integrity": "sha512-StxAO/8ts62KZVRAm4JZYq9+NqNsV7RvimNK+YM7ry//zebEH6meuugqW/P5OFUCjyQgui+9fUxT6d5NShvMvA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@serialport/binding-mock": { - "version": "9.0.7", - "license": "MIT", + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/@serialport/binding-mock/-/binding-mock-10.2.2.tgz", + "integrity": "sha512-HAFzGhk9OuFMpuor7aT5G1ChPgn5qSsklTFOTUX72Rl6p0xwcSVsRtG/xaGp6bxpN7fI9D/S8THLBWbBgS6ldw==", "optional": true, "dependencies": { - "@serialport/binding-abstract": "^9.0.7", - "debug": "^4.3.1" + "@serialport/bindings-interface": "^1.2.1", + "debug": "^4.3.3" }, "engines": { - "node": ">=10.0.0" - }, - "funding": { - "url": "https://opencollective.com/serialport/donate" + "node": ">=12.0.0" } }, - "node_modules/@serialport/bindings": { - "version": "9.2.9", + "node_modules/@serialport/bindings-cpp": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/@serialport/bindings-cpp/-/bindings-cpp-12.0.1.tgz", + "integrity": "sha512-r2XOwY2dDvbW7dKqSPIk2gzsr6M6Qpe9+/Ngs94fNaNlcTRCV02PfaoDmRgcubpNVVcLATlxSxPTIDw12dbKOg==", "hasInstallScript": true, - "license": "MIT", "optional": true, "dependencies": { - "@serialport/binding-abstract": "9.2.3", - "@serialport/parser-readline": "9.2.4", - "bindings": "^1.5.0", - "debug": "^4.3.2", - "nan": "^2.15.0", - "prebuild-install": "^7.0.0" + "@serialport/bindings-interface": "1.2.2", + "@serialport/parser-readline": "11.0.0", + "debug": "4.3.4", + "node-addon-api": "7.0.0", + "node-gyp-build": "4.6.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, - "node_modules/@serialport/bindings/node_modules/@serialport/binding-abstract": { - "version": "9.2.3", - "license": "MIT", + "node_modules/@serialport/bindings-cpp/node_modules/@serialport/parser-delimiter": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-delimiter/-/parser-delimiter-11.0.0.tgz", + "integrity": "sha512-aZLJhlRTjSmEwllLG7S4J8s8ctRAS0cbvCpO87smLvl3e4BgzbVgF6Z6zaJd3Aji2uSiYgfedCdNc4L6W+1E2g==", "optional": true, - "dependencies": { - "debug": "^4.3.2" - }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, - "node_modules/@serialport/bindings/node_modules/@serialport/parser-delimiter": { - "version": "9.2.4", - "license": "MIT", + "node_modules/@serialport/bindings-cpp/node_modules/@serialport/parser-readline": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-readline/-/parser-readline-11.0.0.tgz", + "integrity": "sha512-rRAivhRkT3YO28WjmmG4FQX6L+KMb5/ikhyylRfzWPw0nSXy97+u07peS9CbHqaNvJkMhH1locp2H36aGMOEIA==", "optional": true, + "dependencies": { + "@serialport/parser-delimiter": "11.0.0" + }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, - "node_modules/@serialport/bindings/node_modules/@serialport/parser-readline": { - "version": "9.2.4", - "license": "MIT", + "node_modules/@serialport/bindings-cpp/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "optional": true, "dependencies": { - "@serialport/parser-delimiter": "9.2.4" + "ms": "2.1.2" }, "engines": { - "node": ">=10.0.0" + "node": ">=6.0" }, - "funding": { - "url": "https://opencollective.com/serialport/donate" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@serialport/bindings-cpp/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/@serialport/bindings-cpp/node_modules/node-addon-api": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.0.0.tgz", + "integrity": "sha512-vgbBJTS4m5/KkE16t5Ly0WW9hz46swAstv0hYYwMtbG7AznRhNyfLRe8HZAiWIpcHzoO7HxhLuBQj9rJ/Ho0ZA==", + "optional": true + }, + "node_modules/@serialport/bindings-interface": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@serialport/bindings-interface/-/bindings-interface-1.2.2.tgz", + "integrity": "sha512-CJaUd5bLvtM9c5dmO9rPBHPXTa9R2UwpkJ0wdh9JCYcbrPWsKz+ErvR0hBLeo7NPeiFdjFO4sonRljiw4d2XiA==", + "optional": true, + "engines": { + "node": "^12.22 || ^14.13 || >=16" } }, "node_modules/@serialport/parser-byte-length": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-byte-length/-/parser-byte-length-12.0.0.tgz", + "integrity": "sha512-0ei0txFAj+s6FTiCJFBJ1T2hpKkX8Md0Pu6dqMrYoirjPskDLJRgZGLqoy3/lnU1bkvHpnJO+9oJ3PB9v8rNlg==", "optional": true, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@serialport/parser-cctalk": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-cctalk/-/parser-cctalk-12.0.0.tgz", + "integrity": "sha512-0PfLzO9t2X5ufKuBO34DQKLXrCCqS9xz2D0pfuaLNeTkyGUBv426zxoMf3rsMRodDOZNbFblu3Ae84MOQXjnZw==", "optional": true, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@serialport/parser-delimiter": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-delimiter/-/parser-delimiter-12.0.0.tgz", + "integrity": "sha512-gu26tVt5lQoybhorLTPsH2j2LnX3AOP2x/34+DUSTNaUTzu2fBXw+isVjQJpUBFWu6aeQRZw5bJol5X9Gxjblw==", "optional": true, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@serialport/parser-inter-byte-timeout": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-inter-byte-timeout/-/parser-inter-byte-timeout-12.0.0.tgz", + "integrity": "sha512-GnCh8K0NAESfhCuXAt+FfBRz1Cf9CzIgXfp7SdMgXwrtuUnCC/yuRTUFWRvuzhYKoAo1TL0hhUo77SFHUH1T/w==", "optional": true, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, + "node_modules/@serialport/parser-packet-length": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-packet-length/-/parser-packet-length-12.0.0.tgz", + "integrity": "sha512-p1hiCRqvGHHLCN/8ZiPUY/G0zrxd7gtZs251n+cfNTn+87rwcdUeu9Dps3Aadx30/sOGGFL6brIRGK4l/t7MuQ==", + "optional": true, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/@serialport/parser-readline": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-readline/-/parser-readline-12.0.0.tgz", + "integrity": "sha512-O7cywCWC8PiOMvo/gglEBfAkLjp/SENEML46BXDykfKP5mTPM46XMaX1L0waWU6DXJpBgjaL7+yX6VriVPbN4w==", "optional": true, "dependencies": { - "@serialport/parser-delimiter": "^9.0.7" + "@serialport/parser-delimiter": "12.0.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@serialport/parser-ready": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-ready/-/parser-ready-12.0.0.tgz", + "integrity": "sha512-ygDwj3O4SDpZlbrRUraoXIoIqb8sM7aMKryGjYTIF0JRnKeB1ys8+wIp0RFMdFbO62YriUDextHB5Um5cKFSWg==", "optional": true, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@serialport/parser-regex": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-regex/-/parser-regex-12.0.0.tgz", + "integrity": "sha512-dCAVh4P/pZrLcPv9NJ2mvPRBg64L5jXuiRxIlyxxdZGH4WubwXVXY/kBTihQmiAMPxbT3yshSX8f2+feqWsxqA==", "optional": true, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/serialport/donate" + } + }, + "node_modules/@serialport/parser-slip-encoder": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-slip-encoder/-/parser-slip-encoder-12.0.0.tgz", + "integrity": "sha512-0APxDGR9YvJXTRfY+uRGhzOhTpU5akSH183RUcwzN7QXh8/1jwFsFLCu0grmAUfi+fItCkR+Xr1TcNJLR13VNA==", + "optional": true, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/serialport/donate" + } + }, + "node_modules/@serialport/parser-spacepacket": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/parser-spacepacket/-/parser-spacepacket-12.0.0.tgz", + "integrity": "sha512-dozONxhPC/78pntuxpz/NOtVps8qIc/UZzdc/LuPvVsqCoJXiRxOg6ZtCP/W58iibJDKPZPAWPGYeZt9DJxI+Q==", + "optional": true, + "engines": { + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@serialport/stream": { - "version": "9.0.7", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@serialport/stream/-/stream-12.0.0.tgz", + "integrity": "sha512-9On64rhzuqKdOQyiYLYv2lQOh3TZU/D3+IWCR5gk0alPel2nwpp4YwDEGiUBfrQZEdQ6xww0PWkzqth4wqwX3Q==", "optional": true, "dependencies": { - "debug": "^4.3.1" + "@serialport/bindings-interface": "1.2.2", + "debug": "4.3.4" }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, - "node_modules/@sindresorhus/is": { - "version": "0.14.0", - "license": "MIT", + "node_modules/@serialport/stream/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, "engines": { - "node": ">=6" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@serialport/stream/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" } }, "node_modules/@szmarczak/http-timer": { - "version": "1.1.2", - "license": "MIT", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", "dependencies": { - "defer-to-connect": "^1.0.1" + "defer-to-connect": "^2.0.0" }, "engines": { - "node": ">=6" + "node": ">=10" } }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "license": "MIT", - "engines": { - "node": ">= 6" + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" } }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==" + }, "node_modules/@types/fs-extra": { - "version": "9.0.4", - "license": "MIT", + "version": "9.0.13", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", + "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", "optional": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/glob": { - "version": "7.1.3", - "license": "MIT", - "optional": true, + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", "dependencies": { "@types/minimatch": "*", "@types/node": "*" } }, - "node_modules/@types/minimatch": { - "version": "3.0.3", - "license": "MIT", - "optional": true + "node_modules/@types/http-cache-semantics": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", + "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==" }, - "node_modules/@types/minimist": { - "version": "1.2.2", - "license": "MIT" + "node_modules/@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/minimatch": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-6.0.0.tgz", + "integrity": "sha512-zmPitbQ8+6zNutpwgcQuLcsEpn/Cj54Kbn7L5pX0Os5kdWplB7xPgEh/g+SWOB/qmows2gpuCaPyduq8ZZRnxA==", + "deprecated": "This is a stub types definition. minimatch provides its own type definitions, so you do not need this installed.", + "dependencies": { + "minimatch": "*" + } }, "node_modules/@types/node": { - "version": "16.11.36", - "license": "MIT", - "optional": true + "version": "22.19.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.3.tgz", + "integrity": "sha512-1N9SBnWYOJTrNZCdh/yJE+t910Y128BoyY+zBLWhL3r0TYzlTmFdXrPwHL9DyFZmlEXNQQolTZh3KHV31QDhyA==", + "dependencies": { + "undici-types": "~6.21.0" + } }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.1", - "license": "MIT" + "node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==" + }, + "node_modules/@types/responselike": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "dependencies": { + "@types/node": "*" + } }, "node_modules/@types/yauzl": { - "version": "2.10.0", - "license": "MIT", + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", "optional": true, "dependencies": { "@types/node": "*" } }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.11", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz", + "integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/7zip": { "version": "0.0.6", - "license": "GNU LGPL", + "resolved": "https://registry.npmjs.org/7zip/-/7zip-0.0.6.tgz", + "integrity": "sha512-ns8vKbKhIQm338AeWo/YdDSWil3pldwCMoyR2npoM2qDAzF8Vuko8BtDxpNt/wE15SXOh5K5WbjSLR4kTOAHLA==", + "deprecated": "Deprecated as outdated and risky. Please migrate to some modern alternatives. See: https://www.npmjs.com/search", "bin": { "7z": "7zip-lite/7z.exe" } }, - "node_modules/abbrev": { - "version": "1.1.1", - "license": "ISC" - }, "node_modules/ace-builds": { - "version": "1.24.1", - "license": "BSD-3-Clause" + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/ace-builds/-/ace-builds-1.39.0.tgz", + "integrity": "sha512-MqoZojv4gpc5QyTMor/dS6kmruDV9db9LVZbCiT4qYz6WsDiv4qyG5f7ZPc+wjUl6oLMqgCAsBjo1whdSVyMlQ==" }, "node_modules/acorn": { - "version": "7.4.1", - "license": "MIT", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "bin": { "acorn": "bin/acorn" }, @@ -3287,63 +3134,45 @@ }, "node_modules/acorn-jsx": { "version": "5.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "node_modules/acorn-node": { "version": "1.8.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", "dependencies": { "acorn": "^7.0.0", "acorn-walk": "^7.0.0", "xtend": "^4.0.2" } }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "license": "MIT", + "node_modules/acorn-node/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, "engines": { "node": ">=0.4.0" } }, - "node_modules/agent-base": { - "version": "6.0.2", - "license": "MIT", - "dependencies": { - "debug": "4" - }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/agentkeepalive": { - "version": "4.2.1", - "license": "MIT", - "dependencies": { - "debug": "^4.1.0", - "depd": "^1.1.2", - "humanize-ms": "^1.2.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" + "node": ">=0.4.0" } }, "node_modules/ajv": { "version": "6.12.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -3357,41 +3186,49 @@ }, "node_modules/ansi-align": { "version": "3.0.1", - "license": "ISC", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", "dependencies": { "string-width": "^4.1.0" } }, "node_modules/ansi-html": { "version": "0.0.9", + "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.9.tgz", + "integrity": "sha512-ozbS3LuenHVxNRh/wdnN16QapUHzauqSomAl1jwwJRRsGwFwtj644lIhxfWu0Fy0acCij2+AEgHvjscq3dlVXg==", "engines": [ "node >= 0.8.0" ], - "license": "Apache-2.0", "bin": { "ansi-html": "bin/ansi-html" } }, "node_modules/ansi-regex": { - "version": "5.0.0", - "license": "MIT", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "engines": { "node": ">=8" } }, "node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { - "version": "3.1.2", - "license": "ISC", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -3400,9 +3237,21 @@ "node": ">= 8" } }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/apache-crypt": { - "version": "1.2.5", - "license": "MIT", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/apache-crypt/-/apache-crypt-1.2.6.tgz", + "integrity": "sha512-072WetlM4blL8PREJVeY+WHiUh1R5VNt2HfceGS8aKqttPHcmqE5pkKuXPz/ULmJOFkc8Hw3kfKl6vy7Qka6DA==", "dependencies": { "unix-crypt-td-js": "^1.1.4" }, @@ -3411,183 +3260,96 @@ } }, "node_modules/apache-md5": { - "version": "1.1.7", - "license": "MIT", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/apache-md5/-/apache-md5-1.1.8.tgz", + "integrity": "sha512-FCAJojipPn0bXjuEpjOOOMN8FZDkxfWWp4JGN9mifU2IhxvKyXZYqpzPHdnTSUpmPDy+tsslB6Z1g+Vg6nVbYA==", "engines": { "node": ">=8" } }, - "node_modules/aproba": { - "version": "1.2.0", - "license": "ISC" - }, - "node_modules/are-we-there-yet": { - "version": "1.1.7", - "license": "ISC", - "optional": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, "node_modules/argparse": { "version": "2.0.1", - "license": "Python-2.0" + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, - "node_modules/array-filter": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/array-flatten": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/arrify": { - "version": "1.0.1", - "license": "MIT", + "node_modules/array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", "engines": { "node": ">=0.10.0" } }, - "node_modules/asar": { - "version": "3.0.3", - "license": "MIT", - "optional": true, - "dependencies": { - "chromium-pickle-js": "^0.2.0", - "commander": "^5.0.0", - "glob": "^7.1.6", - "minimatch": "^3.0.4" - }, - "bin": { - "asar": "bin/asar.js" - }, - "engines": { - "node": ">=10.12.0" - }, - "optionalDependencies": { - "@types/glob": "^7.1.1" - } + "node_modules/array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" }, - "node_modules/asar/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "optional": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, + "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==", "engines": { - "node": "*" + "node": ">=8" } }, "node_modules/asn1": { - "version": "0.2.4", - "license": "MIT", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", "dependencies": { "safer-buffer": "~2.1.0" } }, - "node_modules/asn1.js": { - "version": "5.4.1", - "license": "MIT", - "dependencies": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/asn1.js/node_modules/bn.js": { - "version": "4.11.9", - "license": "MIT" - }, - "node_modules/assert": { - "version": "1.5.0", - "license": "MIT", - "dependencies": { - "object-assign": "^4.1.1", - "util": "0.10.3" - } - }, "node_modules/assert-plus": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", "engines": { "node": ">=0.8" } }, - "node_modules/assert/node_modules/inherits": { - "version": "2.0.1", - "license": "ISC" - }, - "node_modules/assert/node_modules/util": { - "version": "0.10.3", - "license": "MIT", - "dependencies": { - "inherits": "2.0.1" - } - }, - "node_modules/async-foreach": { - "version": "0.1.3", - "engines": { - "node": "*" - } - }, "node_modules/asynckit": { "version": "0.4.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/at-least-node": { "version": "1.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "engines": { "node": ">= 4.0.0" } }, "node_modules/author-regex": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/author-regex/-/author-regex-1.0.0.tgz", + "integrity": "sha512-KbWgR8wOYRAPekEmMXrYYdc7BRyhn2Ftk7KWfMUnQ43hFdojWEFRxhhRUm3/OFEdPa1r0KAvTTg9YQK57xTe0g==", "engines": { "node": ">=0.8" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "array-filter": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/aws-sign2": { "version": "0.7.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", "engines": { "node": "*" } }, "node_modules/aws4": { - "version": "1.11.0", - "license": "MIT" - }, - "node_modules/babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "license": "MIT", - "dependencies": { - "object.assign": "^4.1.0" - } + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==" }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.3.1", - "license": "MIT", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", + "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", "dependencies": { - "@babel/compat-data": "^7.13.11", - "@babel/helper-define-polyfill-provider": "^0.3.1", + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", "semver": "^6.1.1" }, "peerDependencies": { @@ -3595,17 +3357,19 @@ } }, "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.5.2", - "license": "MIT", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.3.tgz", + "integrity": "sha512-zKsXDh0XjnrUEW0mxIHLfjBfnXSMr5Q/goMe/fxpQnLm07mcOZiIZHBNWCMx60HmdvjxfXcalac0tfFg0wqxyw==", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.3.1", + "@babel/helper-define-polyfill-provider": "^0.3.2", "core-js-compat": "^3.21.0" }, "peerDependencies": { @@ -3614,7 +3378,8 @@ }, "node_modules/babel-plugin-polyfill-regenerator": { "version": "0.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz", + "integrity": "sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==", "dependencies": { "@babel/helper-define-polyfill-provider": "^0.3.1" }, @@ -3624,7 +3389,8 @@ }, "node_modules/babelify": { "version": "10.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/babelify/-/babelify-10.0.0.tgz", + "integrity": "sha512-X40FaxyH7t3X+JFAKvb1H9wooWKLRCi8pg3m8poqtdZaIng+bjzp9RvKQCvRjF9isHiPkXspbbXT/zwXLtwgwg==", "engines": { "node": ">=6.9.0" }, @@ -3634,10 +3400,13 @@ }, "node_modules/balanced-match": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", + "integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==" }, "node_modules/base64-js": { "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "funding": [ { "type": "github", @@ -3651,109 +3420,68 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.11", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", + "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", "dependencies": { "tweetnacl": "^0.14.3" } }, "node_modules/bcryptjs": { "version": "2.4.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", + "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==" }, "node_modules/binary-extensions": { - "version": "2.2.0", - "license": "MIT", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "engines": { "node": ">=8" - } - }, - "node_modules/bindings": { - "version": "1.5.0", - "license": "MIT", - "optional": true, - "dependencies": { - "file-uri-to-path": "1.0.0" - } - }, - "node_modules/bl": { - "version": "4.1.0", - "license": "MIT", - "optional": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/bl/node_modules/buffer": { - "version": "5.7.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "optional": true, - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "optional": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" }, - "engines": { - "node": ">= 6" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/bluebird": { "version": "3.7.2", - "license": "MIT" - }, - "node_modules/bn.js": { - "version": "5.1.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "node_modules/bonjour": { "version": "4.0.0", - "resolved": "git+ssh://git@github.com/jean-emmanuel/bonjour.git#33d7fa28c568d05cb7ffda1fd2b20f4cc364e273", + "resolved": "git+https://framagit.org/jean-emmanuel/bonjour.git#5def16384fa4c1a2263ba8762500a707057c4edc", "dependencies": { "array-flatten": "^2.1.0", "deep-equal": "^1.0.1", "dns-equal": "^1.0.0", - "dns-txt": "github:jean-emmanuel/dns-txt#v2.0.3", - "multicast-dns": "github:jean-emmanuel/multicast-dns", + "dns-txt": "git+https://framagit.org/jean-emmanuel/dns-txt.git", + "multicast-dns": "git+https://framagit.org/jean-emmanuel/multicast-dns.git", "multicast-dns-service-types": "^1.1.0" } }, "node_modules/boolean": { - "version": "3.1.4", - "license": "MIT", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "optional": true }, "node_modules/boxen": { "version": "5.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", "dependencies": { "ansi-align": "^3.0.0", "camelcase": "^6.2.0", @@ -3771,29 +3499,175 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", + "node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/brace-expansion/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dependencies": { + "fill-range": "^7.1.1" + }, "engines": { "node": ">=8" } }, - "node_modules/boxen/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", + "node_modules/browser-process-hrtime": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", + "integrity": "sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw==" + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "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": { - "color-convert": "^2.0.1" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "engines": { + "node": "*" + } + }, + "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==" + }, + "node_modules/buffer-indexof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==" + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" }, "engines": { "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/boxen/node_modules/camelcase": { + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", + "integrity": "sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==", + "dependencies": { + "no-case": "^2.2.0", + "upper-case": "^1.1.1" + } + }, + "node_modules/camelcase": { "version": "6.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "engines": { "node": ">=10" }, @@ -3801,9 +3675,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/chalk": { + "node_modules/caniuse-lite": { + "version": "1.0.30001761", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz", + "integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==", + "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/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" + }, + "node_modules/chalk": { "version": "4.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -3815,527 +3714,16 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/boxen/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/boxen/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/boxen/node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/string-width": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/type-fest": { - "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/brace-expansion/node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/braces": { - "version": "3.0.2", - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/brorand": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/browser-pack": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "combine-source-map": "~0.8.0", - "defined": "^1.0.0", - "JSONStream": "^1.0.3", - "safe-buffer": "^5.1.1", - "through2": "^2.0.0", - "umd": "^3.0.0" - }, - "bin": { - "browser-pack": "bin/cmd.js" - } - }, - "node_modules/browser-process-hrtime": { - "version": "0.1.3", - "license": "BSD-2-Clause" - }, - "node_modules/browser-resolve": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "resolve": "^1.17.0" - } - }, - "node_modules/browserify": { - "version": "17.0.0", - "license": "MIT", - "dependencies": { - "assert": "^1.4.0", - "browser-pack": "^6.0.1", - "browser-resolve": "^2.0.0", - "browserify-zlib": "~0.2.0", - "buffer": "~5.2.1", - "cached-path-relative": "^1.0.0", - "concat-stream": "^1.6.0", - "console-browserify": "^1.1.0", - "constants-browserify": "~1.0.0", - "crypto-browserify": "^3.0.0", - "defined": "^1.0.0", - "deps-sort": "^2.0.1", - "domain-browser": "^1.2.0", - "duplexer2": "~0.1.2", - "events": "^3.0.0", - "glob": "^7.1.0", - "has": "^1.0.0", - "htmlescape": "^1.1.0", - "https-browserify": "^1.0.0", - "inherits": "~2.0.1", - "insert-module-globals": "^7.2.1", - "JSONStream": "^1.0.3", - "labeled-stream-splicer": "^2.0.0", - "mkdirp-classic": "^0.5.2", - "module-deps": "^6.2.3", - "os-browserify": "~0.3.0", - "parents": "^1.0.1", - "path-browserify": "^1.0.0", - "process": "~0.11.0", - "punycode": "^1.3.2", - "querystring-es3": "~0.2.0", - "read-only-stream": "^2.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.4", - "shasum-object": "^1.0.0", - "shell-quote": "^1.6.1", - "stream-browserify": "^3.0.0", - "stream-http": "^3.0.0", - "string_decoder": "^1.1.1", - "subarg": "^1.0.0", - "syntax-error": "^1.1.1", - "through2": "^2.0.0", - "timers-browserify": "^1.0.1", - "tty-browserify": "0.0.1", - "url": "~0.11.0", - "util": "~0.12.0", - "vm-browserify": "^1.0.0", - "xtend": "^4.0.0" - }, - "bin": { - "browserify": "bin/cmd.js" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/browserify-aes": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/browserify-cipher": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "node_modules/browserify-des": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/browserify-rsa": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "node_modules/browserify-sign": { - "version": "4.2.1", - "license": "ISC", - "dependencies": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - } - }, - "node_modules/browserify-sign/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/browserify-sign/node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/browserify-zlib": { - "version": "0.2.0", - "license": "MIT", - "dependencies": { - "pako": "~1.0.5" - } - }, - "node_modules/browserslist": { - "version": "4.20.3", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001332", - "electron-to-chromium": "^1.4.118", - "escalade": "^3.1.1", - "node-releases": "^2.0.3", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer": { - "version": "5.2.1", - "license": "MIT", - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" - } - }, - "node_modules/buffer-alloc": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "buffer-alloc-unsafe": "^1.1.0", - "buffer-fill": "^1.0.0" - } - }, - "node_modules/buffer-alloc-unsafe": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer-fill": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/buffer-from": { - "version": "1.1.1", - "license": "MIT" - }, - "node_modules/buffer-indexof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", - "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==" - }, - "node_modules/buffer-xor": { - "version": "1.0.3", - "license": "MIT" - }, - "node_modules/builtin-status-codes": { - "version": "3.0.0", - "license": "MIT" - }, - "node_modules/cacache": { - "version": "15.3.0", - "license": "ISC", - "dependencies": { - "@npmcli/fs": "^1.0.0", - "@npmcli/move-file": "^1.0.1", - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "glob": "^7.1.4", - "infer-owner": "^1.0.4", - "lru-cache": "^6.0.0", - "minipass": "^3.1.1", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.2", - "mkdirp": "^1.0.3", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^8.0.1", - "tar": "^6.0.2", - "unique-filename": "^1.1.1" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/cacache/node_modules/mkdirp": { - "version": "1.0.4", - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cacache/node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/cacheable-request": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cached-path-relative": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/call-bind": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/camel-case": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "no-case": "^2.2.0", - "upper-case": "^1.1.1" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase-keys": { - "version": "6.2.2", - "license": "MIT", - "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.30001342", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/caseless": { - "version": "0.12.0", - "license": "Apache-2.0" - }, "node_modules/chokidar": { "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "funding": [ { "type": "individual", "url": "https://paulmillr.com/funding/" } ], - "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -4352,43 +3740,20 @@ "fsevents": "~2.3.2" } }, - "node_modules/chownr": { - "version": "2.0.0", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, "node_modules/chroma-js": { "version": "2.4.2", - "license": "(BSD-3-Clause AND Apache-2.0)" - }, - "node_modules/chromium-pickle-js": { - "version": "0.2.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/chroma-js/-/chroma-js-2.4.2.tgz", + "integrity": "sha512-U9eDw6+wt7V8z5NncY2jJfZa+hUH8XEj8FQHgFJTrUFnJfXYf4Ml4adI2vXZOjqRDpFWtYVWypDfZwnJ+HIR4A==" }, "node_modules/ci-info": { "version": "2.0.0", - "license": "MIT" - }, - "node_modules/cipher-base": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "license": "MIT", - "engines": { - "node": ">=6" - } + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" }, "node_modules/cli-boxes": { "version": "2.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", "engines": { "node": ">=6" }, @@ -4397,64 +3762,51 @@ } }, "node_modules/cliui": { - "version": "6.0.0", - "license": "ISC", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "wrap-ansi": "^7.0.0" } }, "node_modules/clone-response": { - "version": "1.0.2", - "license": "MIT", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", "dependencies": { "mimic-response": "^1.0.0" - } - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "node_modules/color-support": { - "version": "1.1.3", - "license": "ISC", - "bin": { - "color-support": "bin.js" - } - }, - "node_modules/combine-source-map": { - "version": "0.8.0", - "license": "MIT", - "dependencies": { - "convert-source-map": "~1.1.0", - "inline-source-map": "~0.6.0", - "lodash.memoize": "~3.0.3", - "source-map": "~0.5.3" - } - }, - "node_modules/combine-source-map/node_modules/convert-source-map": { - "version": "1.1.3", - "license": "MIT" + "node_modules/colorette": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", + "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" }, "node_modules/combined-stream": { "version": "1.0.8", - "license": "MIT", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -4464,47 +3816,39 @@ }, "node_modules/commander": { "version": "5.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", "engines": { "node": ">= 6" } }, + "node_modules/commenting": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/commenting/-/commenting-1.1.0.tgz", + "integrity": "sha512-YeNK4tavZwtH7jEgK1ZINXzLKm6DZdEMfsaaieOsCAN0S8vsY7UeuO3Q7d/M018EFgE+IeUAuBOKkFccBZsUZA==" + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, "node_modules/compare-version": { "version": "0.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", + "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", "engines": { "node": ">=0.10.0" } }, "node_modules/concat-map": { "version": "0.0.1", - "license": "MIT" - }, - "node_modules/concat-stream": { - "version": "1.6.2", - "engines": [ - "node >= 0.8" - ], - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "node_modules/config-chain": { - "version": "1.1.13", - "license": "MIT", - "optional": true, - "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" - } + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/configstore": { "version": "5.0.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", "dependencies": { "dot-prop": "^5.2.0", "graceful-fs": "^4.1.2", @@ -4517,59 +3861,43 @@ "node": ">=8" } }, - "node_modules/console-browserify": { - "version": "1.2.0" - }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "license": "ISC" - }, - "node_modules/constants-browserify": { - "version": "1.0.0", - "license": "MIT" - }, "node_modules/convert-source-map": { - "version": "1.7.0", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.1" - } + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" }, "node_modules/core-js": { "version": "3.22.5", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.5.tgz", + "integrity": "sha512-VP/xYuvJ0MJWRAobcmQ8F2H6Bsn+s7zqAAjFaHGBMc5AQm7zaelhD1LGduFn2EehEcQcU+br6t+fwbpQ5d1ZWA==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", "hasInstallScript": true, - "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, "node_modules/core-js-compat": { - "version": "3.22.5", - "license": "MIT", + "version": "3.47.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.47.0.tgz", + "integrity": "sha512-IGfuznZ/n7Kp9+nypamBhvwdwLsW6KC8IOaURw2doAK5e98AG3acVLdh0woOnEqCfUtS+Vu882JE4k/DAm3ItQ==", "dependencies": { - "browserslist": "^4.20.3", - "semver": "7.0.0" + "browserslist": "^4.28.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, - "node_modules/core-js-compat/node_modules/semver": { - "version": "7.0.0", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/core-util-is": { - "version": "1.0.2", - "license": "MIT" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/cpr": { "version": "3.0.1", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/cpr/-/cpr-3.0.1.tgz", + "integrity": "sha512-Xch4PXQ/KC8lJ+KfJ9JI6eG/nmppLrPPWg5Q+vh65Qr9EjuJEubxh/H/Le1TmCZ7+Xv7iJuNRqapyOFZB+wsxA==", "dependencies": { "graceful-fs": "^4.1.5", "minimist": "^1.2.0", @@ -4580,44 +3908,15 @@ "cpr": "bin/cpr" } }, - "node_modules/create-ecdh": { - "version": "4.0.4", - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - } - }, - "node_modules/create-ecdh/node_modules/bn.js": { - "version": "4.11.9", - "license": "MIT" - }, - "node_modules/create-hash": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "node_modules/create-hmac": { - "version": "1.1.7", - "license": "MIT", - "dependencies": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } + "node_modules/cross-dirname": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz", + "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==" }, "node_modules/cross-spawn": { - "version": "7.0.3", - "license": "MIT", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -4629,42 +3928,26 @@ }, "node_modules/cross-unzip": { "version": "0.0.2", - "license": "GNU LGPL" - }, - "node_modules/crypto-browserify": { - "version": "3.12.0", - "license": "MIT", - "dependencies": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - }, - "engines": { - "node": "*" - } + "resolved": "https://registry.npmjs.org/cross-unzip/-/cross-unzip-0.0.2.tgz", + "integrity": "sha512-nRJ5c+aqHz0OJVU4V1bqoaDggydfauK/Gha/H/ScBvuIjhZvl8YIpdWVzSR3vUhzCloqB1tvBdQ4V7J8qK7HzQ==" }, "node_modules/crypto-random-string": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "engines": { "node": ">=8" } }, "node_modules/dash-ast": { "version": "1.0.0", - "license": "Apache-2.0" + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", + "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==" }, "node_modules/dashdash": { "version": "1.14.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", "dependencies": { "assert-plus": "^1.0.0" }, @@ -4673,11 +3956,11 @@ } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -4690,49 +3973,51 @@ }, "node_modules/decamelize": { "version": "1.2.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys": { - "version": "1.1.0", - "license": "MIT", - "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "engines": { "node": ">=0.10.0" } }, "node_modules/decompress-response": { - "version": "3.3.0", - "license": "MIT", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", "dependencies": { - "mimic-response": "^1.0.0" + "mimic-response": "^3.1.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/deep-equal": { - "version": "1.1.1", - "license": "MIT", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.2.tgz", + "integrity": "sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==", "dependencies": { - "is-arguments": "^1.0.4", - "is-date-object": "^1.0.1", - "is-regex": "^1.0.4", - "object-is": "^1.0.1", + "is-arguments": "^1.1.1", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "object-is": "^1.1.5", "object-keys": "^1.1.1", - "regexp.prototype.flags": "^1.2.0" + "regexp.prototype.flags": "^1.5.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4740,139 +4025,202 @@ }, "node_modules/deep-extend": { "version": "0.6.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "engines": { "node": ">=4.0.0" } }, "node_modules/deep-is": { "version": "0.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } }, "node_modules/defer-to-connect": { - "version": "1.1.3", - "license": "MIT" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "engines": { + "node": ">=10" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/define-lazy-prop": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", "engines": { "node": ">=8" } }, "node_modules/define-properties": { - "version": "1.1.3", - "license": "MIT", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dependencies": { - "object-keys": "^1.0.12" + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/defined": { - "version": "1.0.0", - "license": "MIT" - }, "node_modules/delayed-stream": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "engines": { "node": ">=0.4.0" } }, - "node_modules/delegates": { - "version": "1.0.0", - "license": "MIT" - }, "node_modules/depd": { - "version": "1.1.2", - "license": "MIT", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "engines": { - "node": ">= 0.6" - } - }, - "node_modules/deps-sort": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "JSONStream": "^1.0.3", - "shasum-object": "^1.0.0", - "subarg": "^1.0.0", - "through2": "^2.0.0" - }, - "bin": { - "deps-sort": "bin/cmd.js" - } - }, - "node_modules/des.js": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" + "node": ">= 0.8" } }, "node_modules/destroy": { "version": "1.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", "engines": { "node": ">= 0.8", "npm": "1.2.8000 || >= 1.4.16" } }, + "node_modules/detect-europe-js": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/detect-europe-js/-/detect-europe-js-0.1.2.tgz", + "integrity": "sha512-lgdERlL3u0aUdHocoouzT10d9I89VVhk0qNRmll7mXdGfJT1/wqZ2ZLA4oJAjeACPY5fT1wsbq2AT+GkuInsow==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ] + }, "node_modules/detect-libc": { - "version": "2.0.1", - "license": "Apache-2.0", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", "optional": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, "engines": { - "node": ">=8" + "node": ">=0.10" } }, "node_modules/detect-node": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", "optional": true }, - "node_modules/detective": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "acorn-node": "^1.6.1", - "defined": "^1.0.0", - "minimist": "^1.1.1" - }, - "bin": { - "detective": "bin/detective.js" - }, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/diff-match-patch": { "version": "1.0.5", - "license": "Apache-2.0" - }, - "node_modules/diffie-hellman": { - "version": "5.0.3", - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, - "node_modules/diffie-hellman/node_modules/bn.js": { - "version": "4.11.9", - "license": "MIT" + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", + "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==" }, "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, + "node_modules/dir-compare": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz", + "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==", + "dependencies": { + "minimatch": "^3.0.5", + "p-limit": "^3.1.0 " + } + }, + "node_modules/dir-compare/node_modules/balanced-match": { "version": "1.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/dir-compare/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/dir-compare/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "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==", + "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==", + "engines": { + "node": ">=8" + } }, "node_modules/dns-equal": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" }, "node_modules/dns-packet": { "version": "1.3.4", @@ -4885,14 +4233,15 @@ }, "node_modules/dns-txt": { "version": "2.0.3", - "resolved": "git+ssh://git@github.com/jean-emmanuel/dns-txt.git#3bee7785c32d8bc71230d5e01383c61fb72a4b4f", + "resolved": "git+https://framagit.org/jean-emmanuel/dns-txt.git#3bee7785c32d8bc71230d5e01383c61fb72a4b4f", "dependencies": { "buffer-indexof": "^1.0.0" } }, "node_modules/doctrine": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dependencies": { "esutils": "^2.0.2" }, @@ -4900,90 +4249,10 @@ "node": ">=6.0.0" } }, - "node_modules/dom-serializer": { - "version": "1.4.1", - "license": "MIT", - "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/domhandler": { - "version": "4.3.1", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domain-browser": { - "version": "1.2.0", - "license": "MIT", - "engines": { - "node": ">=0.4", - "npm": ">=1.2" - } - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "license": "BSD-2-Clause" - }, - "node_modules/domhandler": { - "version": "3.3.0", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.0.1" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "2.8.0", - "license": "BSD-2-Clause", - "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/domutils/node_modules/domhandler": { - "version": "4.3.1", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, "node_modules/dot-prop": { "version": "5.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "dependencies": { "is-obj": "^2.0.0" }, @@ -4991,20 +4260,28 @@ "node": ">=8" } }, - "node_modules/duplexer2": { - "version": "0.1.4", - "license": "BSD-3-Clause", + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dependencies": { - "readable-stream": "^2.0.2" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/duplexer3": { - "version": "0.1.4", - "license": "BSD-3-Clause" + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" }, "node_modules/ecc-jsbn": { "version": "0.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" @@ -5012,31 +4289,34 @@ }, "node_modules/ee-first": { "version": "1.1.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, "node_modules/electron": { - "version": "15.1.0", + "version": "36.9.5", + "resolved": "https://registry.npmjs.org/electron/-/electron-36.9.5.tgz", + "integrity": "sha512-1UCss2IqxqujSzg/2jkRjuiT3G+EEXgd6UKB5kUekwQW1LJ6d4QCr8YItfC3Rr9VIGRDJ29eOERmnRNO1Eh+NA==", "hasInstallScript": true, - "license": "MIT", "dependencies": { - "@electron/get": "^1.13.0", - "@types/node": "^14.6.2", - "extract-zip": "^1.0.3" + "@electron/get": "^2.0.0", + "@types/node": "^22.7.7", + "extract-zip": "^2.0.1" }, "bin": { "electron": "cli.js" }, "engines": { - "node": ">= 8.6" + "node": ">= 12.20.55" } }, "node_modules/electron-installer-common": { - "version": "0.10.3", - "license": "Apache-2.0", + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/electron-installer-common/-/electron-installer-common-0.10.4.tgz", + "integrity": "sha512-8gMNPXfAqUE5CfXg8RL0vXpLE9HAaPkgLXVoHE3BMUzogMWenf4LmwQ27BdCUrEhkjrKl+igs2IHJibclR3z3Q==", "optional": true, "dependencies": { + "@electron/asar": "^3.2.5", "@malept/cross-spawn-promise": "^1.0.0", - "asar": "^3.0.0", "debug": "^4.1.1", "fs-extra": "^9.0.0", "glob": "^7.1.4", @@ -5055,50 +4335,47 @@ "@types/fs-extra": "^9.0.1" } }, + "node_modules/electron-installer-common/node_modules/@malept/cross-spawn-promise": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", + "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/malept" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" + } + ], + "optional": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "engines": { + "node": ">= 10" + } + }, "node_modules/electron-installer-common/node_modules/fs-extra": { - "version": "9.0.1", - "license": "MIT", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "optional": true, "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", - "universalify": "^1.0.0" + "universalify": "^2.0.0" }, "engines": { "node": ">=10" } }, - "node_modules/electron-installer-common/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "optional": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/electron-installer-common/node_modules/jsonfile/node_modules/universalify": { - "version": "2.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-installer-common/node_modules/universalify": { - "version": "1.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 10.0.0" - } - }, "node_modules/electron-installer-debian": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/electron-installer-debian/-/electron-installer-debian-3.1.0.tgz", + "integrity": "sha512-k6KChvx0Fw8XTlCqwwbBfh19yGQaKjGdbugokmr1IpzINOm4QFyACKMTHAYFHW5LCBUZQShZD96hwxUZ+8Kx+w==", "optional": true, "os": [ "darwin", @@ -5121,50 +4398,148 @@ "node": ">= 10.0.0" } }, + "node_modules/electron-installer-debian/node_modules/@malept/cross-spawn-promise": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", + "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/malept" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" + } + ], + "optional": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/electron-installer-debian/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/electron-installer-debian/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "optional": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/electron-installer-debian/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==", + "optional": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/electron-installer-debian/node_modules/fs-extra": { - "version": "9.0.1", - "license": "MIT", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "optional": true, "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", - "universalify": "^1.0.0" + "universalify": "^2.0.0" }, "engines": { "node": ">=10" } }, - "node_modules/electron-installer-debian/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", + "node_modules/electron-installer-debian/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==", "optional": true, "dependencies": { - "universalify": "^2.0.0" + "p-locate": "^4.1.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "engines": { + "node": ">=8" } }, - "node_modules/electron-installer-debian/node_modules/jsonfile/node_modules/universalify": { - "version": "2.0.0", - "license": "MIT", + "node_modules/electron-installer-debian/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==", "optional": true, + "dependencies": { + "p-try": "^2.0.0" + }, "engines": { - "node": ">= 10.0.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/electron-installer-debian/node_modules/universalify": { - "version": "1.0.0", - "license": "MIT", + "node_modules/electron-installer-debian/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==", + "optional": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-installer-debian/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==", "optional": true, "engines": { - "node": ">= 10.0.0" + "node": ">=8" } }, + "node_modules/electron-installer-debian/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "optional": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-installer-debian/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "optional": true + }, "node_modules/electron-installer-debian/node_modules/yargs": { "version": "15.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "optional": true, "dependencies": { "cliui": "^6.0.0", @@ -5183,9 +4558,23 @@ "node": ">=8" } }, + "node_modules/electron-installer-debian/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "optional": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/electron-installer-redhat": { - "version": "3.4.0", - "license": "MIT", + "name": "@dennisrijsdijk/electron-installer-redhat", + "version": "3.5.0", + "resolved": "git+https://framagit.org/jean-emmanuel/electron-installer-redhat.git#eacb6a6e2a09aa9776af7fe92aabcbd2e3a17b94", "optional": true, "os": [ "darwin", @@ -5207,49 +4596,32 @@ "node": ">= 10.0.0" } }, - "node_modules/electron-installer-redhat/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", + "node_modules/electron-installer-redhat/node_modules/@malept/cross-spawn-promise": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", + "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/malept" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" + } + ], "optional": true, "dependencies": { - "color-convert": "^2.0.1" + "cross-spawn": "^7.0.1" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10" } }, - "node_modules/electron-installer-redhat/node_modules/cliui": { - "version": "7.0.4", - "license": "ISC", - "optional": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/electron-installer-redhat/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/electron-installer-redhat/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT", - "optional": true - }, "node_modules/electron-installer-redhat/node_modules/fs-extra": { "version": "9.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "optional": true, "dependencies": { "at-least-node": "^1.0.0", @@ -5261,52 +4633,10 @@ "node": ">=10" } }, - "node_modules/electron-installer-redhat/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "optional": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/electron-installer-redhat/node_modules/universalify": { - "version": "2.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-installer-redhat/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "optional": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/electron-installer-redhat/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "optional": true, - "engines": { - "node": ">=10" - } - }, "node_modules/electron-installer-redhat/node_modules/yargs": { "version": "16.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "optional": true, "dependencies": { "cliui": "^7.0.2", @@ -5323,7 +4653,8 @@ }, "node_modules/electron-installer-redhat/node_modules/yargs-parser": { "version": "20.2.9", - "license": "ISC", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "optional": true, "engines": { "node": ">=10" @@ -5331,11 +4662,13 @@ }, "node_modules/electron-is-accelerator": { "version": "0.1.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/electron-is-accelerator/-/electron-is-accelerator-0.1.2.tgz", + "integrity": "sha512-fLGSAjXZtdn1sbtZxx52+krefmtNuVwnJCV2gNiVt735/ARUboMl8jnNC9fZEqQdlAv2ZrETfmBUsoQci5evJA==" }, "node_modules/electron-localshortcut": { "version": "3.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/electron-localshortcut/-/electron-localshortcut-3.2.1.tgz", + "integrity": "sha512-DWvhKv36GsdXKnaFFhEiK8kZZA+24/yFLgtTwJJHc7AFgDjNRIBJZ/jq62Y/dWv9E4ypYwrVWN2bVrCYw1uv7Q==", "dependencies": { "debug": "^4.0.1", "electron-is-accelerator": "^0.1.0", @@ -5343,112 +4676,10 @@ "keyboardevents-areequal": "^0.2.1" } }, - "node_modules/electron-notarize": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "debug": "^4.1.1", - "fs-extra": "^9.0.1" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-notarize/node_modules/fs-extra": { - "version": "9.1.0", - "license": "MIT", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/electron-notarize/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/electron-notarize/node_modules/universalify": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-osx-sign": { - "version": "0.5.0", - "license": "BSD-2-Clause", - "dependencies": { - "bluebird": "^3.5.0", - "compare-version": "^0.1.2", - "debug": "^2.6.8", - "isbinaryfile": "^3.0.2", - "minimist": "^1.2.0", - "plist": "^3.0.1" - }, - "bin": { - "electron-osx-flat": "bin/electron-osx-flat.js", - "electron-osx-sign": "bin/electron-osx-sign.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/electron-osx-sign/node_modules/debug": { - "version": "2.6.9", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/electron-osx-sign/node_modules/ms": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/electron-packager": { - "version": "15.2.0", - "license": "BSD-2-Clause", - "dependencies": { - "@electron/get": "^1.6.0", - "asar": "^3.0.0", - "debug": "^4.0.1", - "electron-notarize": "^1.0.0", - "electron-osx-sign": "^0.5.0", - "extract-zip": "^2.0.0", - "filenamify": "^4.1.0", - "fs-extra": "^9.0.0", - "galactus": "^0.2.1", - "get-package-info": "^1.0.0", - "junk": "^3.1.0", - "parse-author": "^2.0.0", - "plist": "^3.0.0", - "rcedit": "^2.0.0", - "resolve": "^1.1.6", - "semver": "^7.1.3", - "yargs-parser": "^20.0.0" - }, - "bin": { - "electron-packager": "bin/electron-packager.js" - }, - "engines": { - "node": ">= 10.12.0" - }, - "funding": { - "url": "https://github.com/electron/electron-packager?sponsor=1" - } - }, "node_modules/electron-packager-plugin-non-proprietary-codecs-ffmpeg": { "version": "1.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/electron-packager-plugin-non-proprietary-codecs-ffmpeg/-/electron-packager-plugin-non-proprietary-codecs-ffmpeg-1.0.2.tgz", + "integrity": "sha512-xPkbzndg2KODqmNe9yIx0dhNOfaOqrdNZ1ZSSZN4h1wT0T5SV/YES0tNyN932jQd+c5cFPv6AWYYjuPWKvcITg==", "dependencies": { "7zip": "0.0.6", "cross-unzip": "0.0.2", @@ -5458,272 +4689,205 @@ } }, "node_modules/electron-packager-plugin-non-proprietary-codecs-ffmpeg/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } }, - "node_modules/electron-packager/node_modules/asar": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "chromium-pickle-js": "^0.2.0", - "commander": "^5.0.0", - "glob": "^7.1.6", - "minimatch": "^3.0.4" - }, - "bin": { - "asar": "bin/asar.js" - }, - "engines": { - "node": ">=10.12.0" - }, - "optionalDependencies": { - "@types/glob": "^7.1.1" - } + "node_modules/electron-to-chromium": { + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==" }, - "node_modules/electron-packager/node_modules/extract-zip": { - "version": "2.0.1", - "license": "BSD-2-Clause", + "node_modules/electron/node_modules/@electron/get": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", + "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", "dependencies": { "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" }, "engines": { - "node": ">= 10.17.0" + "node": ">=12" }, "optionalDependencies": { - "@types/yauzl": "^2.9.1" + "global-agent": "^3.0.0" } }, - "node_modules/electron-packager/node_modules/fs-extra": { - "version": "9.1.0", - "license": "MIT", + "node_modules/electron/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "dependencies": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" }, "engines": { - "node": ">=10" + "node": ">=6 <7 || >=8" } }, - "node_modules/electron-packager/node_modules/get-stream": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/electron-packager/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, + "node_modules/electron/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "optionalDependencies": { "graceful-fs": "^4.1.6" } }, - "node_modules/electron-packager/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, + "node_modules/electron/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/electron/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "engines": { - "node": "*" + "node": ">= 4.0.0" } }, - "node_modules/electron-packager/node_modules/universalify": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-packager/node_modules/yargs-parser": { - "version": "20.2.9", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.137", - "license": "ISC" - }, - "node_modules/electron/node_modules/@types/node": { - "version": "14.18.21", - "license": "MIT" - }, - "node_modules/elliptic": { - "version": "6.5.3", - "license": "MIT", - "dependencies": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } - }, - "node_modules/elliptic/node_modules/bn.js": { - "version": "4.11.9", - "license": "MIT" - }, "node_modules/emoji-regex": { "version": "8.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, "node_modules/encode-utf8": { "version": "1.0.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" }, "node_modules/encodeurl": { "version": "1.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", "engines": { "node": ">= 0.8" } }, - "node_modules/encoding": { - "version": "0.1.13", - "license": "MIT", - "optional": true, - "dependencies": { - "iconv-lite": "^0.6.2" - } - }, "node_modules/end-of-stream": { - "version": "1.4.4", - "license": "MIT", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "dependencies": { "once": "^1.4.0" } }, - "node_modules/entities": { - "version": "2.2.0", - "license": "BSD-2-Clause", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, "node_modules/env-paths": { "version": "2.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "engines": { "node": ">=6" } }, "node_modules/err-code": { "version": "2.0.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==" }, "node_modules/error-ex": { - "version": "1.3.2", - "license": "MIT", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", "dependencies": { "is-arrayish": "^0.2.1" } }, "node_modules/error-stack-parser": { - "version": "2.0.6", - "license": "MIT", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", "dependencies": { - "stackframe": "^1.1.1" + "stackframe": "^1.3.4" } }, - "node_modules/es-abstract": { - "version": "1.18.0-next.1", - "license": "MIT", + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", "dependencies": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.0", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" + "es-errors": "^1.3.0" }, "engines": { "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "license": "MIT", - "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/es6-error": { "version": "4.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", "optional": true }, "node_modules/escalade": { - "version": "3.1.1", - "license": "MIT", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "engines": { "node": ">=6" } }, "node_modules/escape-goat": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", "engines": { "node": ">=8" } }, "node_modules/escape-html": { "version": "1.0.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" }, "node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "engines": { - "node": ">=0.8.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/escaper": { "version": "2.5.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/escaper/-/escaper-2.5.3.tgz", + "integrity": "sha512-QGb9sFxBVpbzMggrKTX0ry1oiI4CSDAl9vIL702hzl1jGW8VZs7qfqTRX7WDOjoNDoEVGcEtu1ZOQgReSfT2kQ==" }, "node_modules/eslint": { "version": "8.16.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.16.0.tgz", + "integrity": "sha512-MBndsoXY/PeVTDJeWsYj7kLZ5hQpJOfMYLsF6LicLHQWbRDG19lK5jOix4DPl8yY4SUFcE3txy86OzFLWT+yoA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dependencies": { "@eslint/eslintrc": "^1.3.0", "@humanwhocodes/config-array": "^0.9.2", @@ -5772,19 +4936,24 @@ } }, "node_modules/eslint-scope": { - "version": "7.1.1", - "license": "BSD-2-Clause", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-utils": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dependencies": { "eslint-visitor-keys": "^2.0.0" }, @@ -5800,79 +4969,41 @@ }, "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { "version": "2.1.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "engines": { "node": ">=10" } }, - "node_modules/eslint/node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", - "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/eslint/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "license": "Apache-2.0", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, "node_modules/eslint/node_modules/glob-parent": { "version": "6.0.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dependencies": { "is-glob": "^4.0.3" }, @@ -5880,29 +5011,10 @@ "node": ">=10.13.0" } }, - "node_modules/eslint/node_modules/globals": { - "version": "13.15.0", - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/eslint/node_modules/minimatch": { "version": "3.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -5910,68 +5022,26 @@ "node": "*" } }, - "node_modules/eslint/node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dependencies": { - "ansi-regex": "^5.0.1" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "9.3.2", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.7.1", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/espree/node_modules/acorn": { - "version": "8.7.1", - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "url": "https://opencollective.com/eslint" } }, "node_modules/esquery": { - "version": "1.4.0", - "license": "BSD-3-Clause", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dependencies": { "estraverse": "^5.1.0" }, @@ -5981,7 +5051,8 @@ }, "node_modules/esrecurse": { "version": "4.3.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dependencies": { "estraverse": "^5.2.0" }, @@ -5991,143 +5062,144 @@ }, "node_modules/estraverse": { "version": "5.3.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "engines": { "node": ">=4.0" } }, "node_modules/estree-is-member-expression": { "version": "1.0.0", - "license": "Apache-2.0" + "resolved": "https://registry.npmjs.org/estree-is-member-expression/-/estree-is-member-expression-1.0.0.tgz", + "integrity": "sha512-Ec+X44CapIGExvSZN+pGkmr5p7HwUVQoPQSd458Lqwvaf4/61k/invHSh4BYK8OXnCkfEhWuIoG5hayKLQStIg==" + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, "node_modules/esutils": { "version": "2.0.3", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "engines": { "node": ">=0.10.0" } }, "node_modules/etag": { "version": "1.8.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "engines": { "node": ">= 0.6" } }, - "node_modules/events": { - "version": "3.2.0", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/evp_bytestokey": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/exorcist": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "is-stream": "^2.0.0", - "minimist": "^1.2.5", - "mkdirp": "^1.0.4", - "mold-source-map": "^0.4.0" - }, - "bin": { - "exorcist": "bin/exorcist.js" - } - }, - "node_modules/exorcist/node_modules/mkdirp": { - "version": "1.0.4", - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/expand-template": { - "version": "2.0.3", - "license": "(MIT OR WTFPL)", - "optional": true, - "engines": { - "node": ">=6" - } - }, "node_modules/extend": { "version": "3.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "node_modules/extract-zip": { - "version": "1.7.0", - "license": "BSD-2-Clause", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", "dependencies": { - "concat-stream": "^1.6.2", - "debug": "^2.6.9", - "mkdirp": "^0.5.4", + "debug": "^4.1.1", + "get-stream": "^5.1.0", "yauzl": "^2.10.0" }, "bin": { "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" } }, - "node_modules/extract-zip/node_modules/debug": { - "version": "2.6.9", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/extract-zip/node_modules/ms": { - "version": "2.0.0", - "license": "MIT" - }, "node_modules/extsprintf": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "engines": [ "node >=0.6.0" - ], - "license": "MIT" + ] }, "node_modules/fast-deep-equal": { "version": "3.1.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", - "license": "MIT" - }, - "node_modules/fast-safe-stringify": { - "version": "2.0.7", - "license": "MIT" + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fastdom": { "version": "1.0.10", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fastdom/-/fastdom-1.0.10.tgz", + "integrity": "sha512-sbL4h358IlZn8VsTvA5TYnKVLYif46XhPEll+HTSxVtDSpqZEO/17D/QqlxE9V2K7AQ82GXeYeQLU2HWwKgk1A==", "dependencies": { "strictdom": "^1.0.1" } }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fd-slicer": { "version": "1.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dependencies": { "pend": "~1.2.0" } }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, "node_modules/file-entry-cache": { "version": "6.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dependencies": { "flat-cache": "^3.0.4" }, @@ -6137,23 +5209,21 @@ }, "node_modules/file-saver": { "version": "2.0.5", - "license": "MIT" - }, - "node_modules/file-uri-to-path": { - "version": "1.0.0", - "license": "MIT", - "optional": true + "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", + "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==" }, "node_modules/filename-reserved-regex": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", + "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", "engines": { "node": ">=4" } }, "node_modules/filenamify": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz", + "integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==", "dependencies": { "filename-reserved-regex": "^2.0.0", "strip-outer": "^1.0.1", @@ -6167,8 +5237,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "license": "MIT", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -6177,21 +5248,23 @@ } }, "node_modules/find-up": { - "version": "4.1.0", - "license": "MIT", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "locate-path": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/flat-cache": { - "version": "3.0.4", - "license": "MIT", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dependencies": { - "flatted": "^3.1.0", + "flatted": "^3.2.9", + "keyv": "^4.5.3", "rimraf": "^3.0.2" }, "engines": { @@ -6200,7 +5273,9 @@ }, "node_modules/flat-cache/node_modules/rimraf": { "version": "3.0.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dependencies": { "glob": "^7.1.3" }, @@ -6212,46 +5287,47 @@ } }, "node_modules/flatted": { - "version": "3.2.5", - "license": "ISC" + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==" }, "node_modules/flora-colossus": { - "version": "1.0.1", - "license": "MIT", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/flora-colossus/-/flora-colossus-2.0.0.tgz", + "integrity": "sha512-dz4HxH6pOvbUzZpZ/yXhafjbR2I8cenK5xL0KtBFb7U2ADsR+OwXifnxZjij/pZWF775uSCMzWVd+jDik2H2IA==", "dependencies": { - "debug": "^4.1.1", - "fs-extra": "^7.0.0" + "debug": "^4.3.4", + "fs-extra": "^10.1.0" }, "engines": { - "node": ">= 6.0.0" + "node": ">= 12" } }, "node_modules/flora-colossus/node_modules/fs-extra": { - "version": "7.0.1", - "license": "MIT", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">=12" } }, - "node_modules/foreach": { - "version": "2.0.5", - "license": "MIT" - }, "node_modules/forever-agent": { "version": "0.6.1", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", "engines": { "node": "*" } }, "node_modules/form-data": { "version": "2.3.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", @@ -6263,169 +5339,118 @@ }, "node_modules/fresh": { "version": "0.5.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", "engines": { "node": ">= 0.6" } }, - "node_modules/fs-constants": { - "version": "1.0.0", - "license": "MIT", - "optional": true - }, "node_modules/fs-extra": { - "version": "8.1.0", - "license": "MIT", + "version": "11.3.3", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.3.tgz", + "integrity": "sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==", "dependencies": { "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" + "node": ">=14.14" } }, "node_modules/fs.realpath": { "version": "1.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } }, "node_modules/function-bind": { - "version": "1.1.1", - "license": "MIT" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/functional-red-black-tree": { "version": "1.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==" }, - "node_modules/galactus": { - "version": "0.2.1", - "license": "MIT", - "dependencies": { - "debug": "^3.1.0", - "flora-colossus": "^1.0.0", - "fs-extra": "^4.0.0" + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/galactus/node_modules/debug": { - "version": "3.2.7", - "license": "MIT", + "node_modules/galactus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/galactus/-/galactus-1.0.0.tgz", + "integrity": "sha512-R1fam6D4CyKQGNlvJne4dkNF+PvUUl7TAJInvTGa9fti9qAv95quQz29GXapA4d8Ec266mJJxFVh82M4GIIGDQ==", "dependencies": { - "ms": "^2.1.1" + "debug": "^4.3.4", + "flora-colossus": "^2.0.0", + "fs-extra": "^10.1.0" + }, + "engines": { + "node": ">= 12" } }, "node_modules/galactus/node_modules/fs-extra": { - "version": "4.0.3", - "license": "MIT", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" } }, "node_modules/gar": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/gar/-/gar-1.0.4.tgz", + "integrity": "sha512-w4n9cPWyP7aHxKxYHFQMegj7WIAsL/YX/C4Bs5Rr8s1H9M1rNtRWRsw+ovYMkXDQ5S4ZbYHsHAPmevPjPgw44w==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "optional": true }, - "node_modules/gauge": { - "version": "2.7.4", - "license": "ISC", - "optional": true, - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "node_modules/gauge/node_modules/ansi-regex": { - "version": "2.1.1", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "license": "MIT", - "optional": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/string-width": { - "version": "1.0.2", - "license": "MIT", - "optional": true, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/strip-ansi": { - "version": "3.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gaze": { - "version": "1.1.3", - "license": "MIT", - "dependencies": { - "globule": "^1.0.0" - }, - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/gensync": { "version": "1.0.0-beta.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "engines": { "node": ">=6.9.0" } }, - "node_modules/get-assigned-identifiers": { - "version": "1.2.0", - "license": "Apache-2.0" - }, "node_modules/get-caller-file": { "version": "2.0.5", - "license": "ISC", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-folder-size": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/get-folder-size/-/get-folder-size-2.0.1.tgz", + "integrity": "sha512-+CEb+GDCM7tkOS2wdMKTn9vU7DgnKUTuDlehkNJKNSovdCOVxs14OfKCk4cvSaR3za4gj+OBdl9opPN9xrJ0zA==", "optional": true, "dependencies": { "gar": "^1.0.4", @@ -6436,12 +5461,23 @@ } }, "node_modules/get-intrinsic": { - "version": "1.0.1", - "license": "MIT", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6449,7 +5485,8 @@ }, "node_modules/get-package-info": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/get-package-info/-/get-package-info-1.0.0.tgz", + "integrity": "sha512-SCbprXGAPdIhKAXiG+Mk6yeoFH61JlYunqdFQFHDtLjJlDjFf6x07dsS8acO+xWt52jpdVo49AlVDnUVK1sDNw==", "dependencies": { "bluebird": "^3.1.1", "debug": "^2.2.0", @@ -6462,52 +5499,61 @@ }, "node_modules/get-package-info/node_modules/debug": { "version": "2.6.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dependencies": { "ms": "2.0.0" } }, "node_modules/get-package-info/node_modules/ms": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/get-stdin": { - "version": "4.0.1", - "license": "MIT", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/get-stream": { - "version": "4.1.0", - "license": "MIT", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dependencies": { "pump": "^3.0.0" }, "engines": { - "node": ">=6" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/getpass": { "version": "0.1.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", "dependencies": { "assert-plus": "^1.0.0" } }, - "node_modules/github-from-package": { - "version": "0.0.0", - "license": "MIT", - "optional": true - }, "node_modules/glob": { - "version": "7.1.6", - "license": "ISC", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" }, @@ -6520,7 +5566,8 @@ }, "node_modules/glob-parent": { "version": "5.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dependencies": { "is-glob": "^4.0.1" }, @@ -6528,9 +5575,24 @@ "node": ">= 6" } }, + "node_modules/glob/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "node_modules/glob/node_modules/minimatch": { "version": "3.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -6539,12 +5601,12 @@ } }, "node_modules/global-agent": { - "version": "2.2.0", - "license": "BSD-3-Clause", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", "optional": true, "dependencies": { "boolean": "^3.0.1", - "core-js": "^3.6.5", "es6-error": "^4.1.1", "matcher": "^3.0.0", "roarr": "^2.15.3", @@ -6556,8 +5618,9 @@ } }, "node_modules/global-dirs": { - "version": "3.0.0", - "license": "MIT", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", "dependencies": { "ini": "2.0.0" }, @@ -6568,40 +5631,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/global-dirs/node_modules/ini": { - "version": "2.0.0", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/global-tunnel-ng": { - "version": "2.7.1", - "license": "BSD-3-Clause", - "optional": true, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dependencies": { - "encodeurl": "^1.0.2", - "lodash": "^4.17.10", - "npm-conf": "^1.1.3", - "tunnel": "^0.0.6" + "type-fest": "^0.20.2" }, "engines": { - "node": ">=0.10" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "license": "MIT", - "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/globalthis": { - "version": "1.0.2", - "license": "MIT", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "optional": true, "dependencies": { - "define-properties": "^1.1.3" + "define-properties": "^1.2.1", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -6610,66 +5661,77 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globule": { - "version": "1.3.3", - "license": "MIT", + "node_modules/globby": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", + "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", "dependencies": { - "glob": "~7.1.1", - "lodash": "~4.17.10", - "minimatch": "~3.0.2" + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" }, "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/globule/node_modules/minimatch": { - "version": "3.0.8", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "engines": { - "node": "*" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/got": { - "version": "9.6.0", - "license": "MIT", + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" }, "engines": { - "node": ">=8.6" + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" } }, "node_modules/graceful-fs": { - "version": "4.2.4", - "license": "ISC" - }, - "node_modules/gyronorm": { - "version": "2.0.6", - "license": "MIT" + "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==" }, "node_modules/har-schema": { "version": "2.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", "engines": { "node": ">=4" } }, "node_modules/har-validator": { "version": "5.1.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", "dependencies": { "ajv": "^6.12.3", "har-schema": "^2.0.0" @@ -6678,26 +5740,10 @@ "node": ">=6" } }, - "node_modules/hard-rejection": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/has": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-ansi": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -6707,21 +5753,35 @@ }, "node_modules/has-ansi/node_modules/ansi-regex": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "engines": { "node": ">=0.10.0" } }, "node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { - "node": ">=4" + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-symbols": { - "version": "1.0.1", - "license": "MIT", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "engines": { "node": ">= 0.4" }, @@ -6729,100 +5789,48 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-unicode": { - "version": "2.0.1", - "license": "ISC" + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/has-yarn": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", "engines": { "node": ">=8" } }, - "node_modules/hash-base": { - "version": "3.1.0", - "license": "MIT", + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dependencies": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=4" - } - }, - "node_modules/hash-base/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/hash-base/node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/hash.js": { - "version": "1.1.7", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "node_modules/hmac-drbg": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" + "node": ">= 0.4" } }, "node_modules/hosted-git-info": { "version": "2.8.9", - "license": "ISC" - }, - "node_modules/htmlescape": { - "version": "1.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/htmlparser2": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^3.0.0", - "domutils": "^2.0.0", - "entities": "^2.0.0" - } + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" }, "node_modules/http-auth": { "version": "4.1.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/http-auth/-/http-auth-4.1.9.tgz", + "integrity": "sha512-kvPYxNGc9EKGTXvOMnTBQw2RZfuiSihK/mLw/a4pbtRueTE45S55Lw/3k5CktIf7Ak0veMKEIteDj4YkNmCzmQ==", "dependencies": { "apache-crypt": "^1.1.2", "apache-md5": "^1.0.6", @@ -6833,20 +5841,15 @@ "node": ">=8" } }, - "node_modules/http-auth/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/http-cache-semantics": { - "version": "4.1.0", - "license": "BSD-2-Clause" + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==" }, "node_modules/http-errors": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", @@ -6858,28 +5861,10 @@ "node": ">= 0.8" } }, - "node_modules/http-errors/node_modules/depd": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "license": "MIT", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/http-signature": { "version": "1.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -6890,82 +5875,53 @@ "npm": ">=1.3.7" } }, - "node_modules/https-browserify": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "license": "MIT", + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", "dependencies": { - "agent-base": "6", - "debug": "4" + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" }, "engines": { - "node": ">= 6" - } - }, - "node_modules/humanize-ms": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "ms": "^2.0.0" + "node": ">=10.19.0" } }, "node_modules/hyperscript-attribute-to-property": { "version": "1.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/hyperscript-attribute-to-property/-/hyperscript-attribute-to-property-1.0.2.tgz", + "integrity": "sha512-oerMul16jZCmrbNsUw8QgrtDzF8lKgFri1bKQjReLw1IhiiNkI59CWuzZjJDGT79UQ1YiWqXhJMv/tRMVqgtkA==" }, "node_modules/hyperx": { "version": "2.5.4", - "license": "BSD", + "resolved": "https://registry.npmjs.org/hyperx/-/hyperx-2.5.4.tgz", + "integrity": "sha512-iOkSh7Yse7lsN/B9y7OsevLWjeXPqGuHQ5SbwaiJM5xAhWFqhoN6erpK1dQsS12OFU36lyai1pnx1mmzWLQqcA==", "dependencies": { "hyperscript-attribute-to-property": "^1.0.0" } }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "license": "MIT", - "optional": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, "node_modules/ignore": { - "version": "5.2.0", - "license": "MIT", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "engines": { "node": ">= 4" } }, "node_modules/ignore-by-default": { "version": "1.0.1", - "license": "ISC" + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==" + }, + "node_modules/immutable": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.4.tgz", + "integrity": "sha512-p6u1bG3YSnINT5RQmx/yRZBpenIl30kVxkTLDyHLIMk0gict704Q9n+thfDI7lTRm9vXdDYutVzXhzcThxTnXA==" }, "node_modules/import-fresh": { - "version": "3.3.0", - "license": "MIT", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -6979,32 +5935,25 @@ }, "node_modules/import-lazy": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", "engines": { "node": ">=4" } }, "node_modules/imurmurhash": { "version": "0.1.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "engines": { "node": ">=0.8.19" } }, - "node_modules/indent-string": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/infer-owner": { - "version": "1.0.4", - "license": "ISC" - }, "node_modules/inflight": { "version": "1.0.6", - "license": "ISC", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -7012,56 +5961,46 @@ }, "node_modules/inherits": { "version": "2.0.4", - "license": "ISC" + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/ini": { - "version": "1.3.8", - "license": "ISC" - }, - "node_modules/inline-source-map": { - "version": "0.6.2", - "license": "MIT", - "dependencies": { - "source-map": "~0.5.3" - } - }, - "node_modules/insert-module-globals": { - "version": "7.2.1", - "license": "MIT", - "dependencies": { - "acorn-node": "^1.5.2", - "combine-source-map": "^0.8.0", - "concat-stream": "^1.6.1", - "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", - "path-is-absolute": "^1.0.1", - "process": "~0.11.0", - "through2": "^2.0.0", - "undeclared-identifiers": "^1.1.2", - "xtend": "^4.0.0" - }, - "bin": { - "insert-module-globals": "bin/cmd.js" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "engines": { + "node": ">=10" } }, "node_modules/ip": { - "version": "1.1.5", - "license": "MIT" + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==" }, "node_modules/is-arguments": { - "version": "1.0.4", - "license": "MIT", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-arrayish": { "version": "0.2.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" }, "node_modules/is-binary-path": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -7071,25 +6010,35 @@ }, "node_modules/is-boolean-attribute": { "version": "0.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-boolean-attribute/-/is-boolean-attribute-0.0.1.tgz", + "integrity": "sha512-0kXT52Scokg2Miscvsn5UVqg6y1691vcLJcagie1YHJB4zOEuAhMERLX992jtvaStGy2xQTqOtJhvmG/MK1T5w==" }, "node_modules/is-buffer": { - "version": "1.1.6", - "license": "MIT" - }, - "node_modules/is-callable": { - "version": "1.2.2", - "license": "MIT", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, "node_modules/is-ci": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", "dependencies": { "ci-info": "^2.0.0" }, @@ -7098,18 +6047,27 @@ } }, "node_modules/is-core-module": { - "version": "2.1.0", - "license": "MIT", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-date-object": { - "version": "1.0.2", - "license": "MIT", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, "engines": { "node": ">= 0.4" }, @@ -7119,7 +6077,8 @@ }, "node_modules/is-docker": { "version": "2.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", "bin": { "is-docker": "cli.js" }, @@ -7132,31 +6091,24 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "engines": { "node": ">=0.10.0" } }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "engines": { "node": ">=8" } }, - "node_modules/is-generator-function": { - "version": "1.0.8", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dependencies": { "is-extglob": "^2.1.1" }, @@ -7166,7 +6118,8 @@ }, "node_modules/is-installed-globally": { "version": "0.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", "dependencies": { "global-dirs": "^3.0.0", "is-path-inside": "^3.0.2" @@ -7178,20 +6131,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-lambda": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/is-negative-zero": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" }, "node_modules/is-npm": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", + "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", "engines": { "node": ">=10" }, @@ -7201,37 +6149,53 @@ }, "node_modules/is-number": { "version": "7.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "engines": { "node": ">=0.12.0" } }, "node_modules/is-obj": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", "engines": { "node": ">=8" } }, "node_modules/is-path-inside": { "version": "3.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "engines": { "node": ">=8" } }, - "node_modules/is-plain-obj": { - "version": "1.1.0", - "license": "MIT", + "node_modules/is-plain-object": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz", + "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-regex": { - "version": "1.1.1", - "license": "MIT", + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", "dependencies": { - "has-symbols": "^1.0.1" + "@types/estree": "*" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -7242,55 +6206,40 @@ }, "node_modules/is-regexp": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-stream": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-symbol": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.2", - "call-bind": "^1.0.0", - "es-abstract": "^1.18.0-next.1", - "foreach": "^2.0.5", - "has-symbols": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "node_modules/is-standalone-pwa": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-standalone-pwa/-/is-standalone-pwa-0.1.1.tgz", + "integrity": "sha512-9Cbovsa52vNQCjdXOzeQq5CnCbAcRk05aU62K20WO372NrTv0NxibLFCK6lQ4/iZEFdEA3p3t2VNOn8AJ53F5g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ] }, "node_modules/is-typedarray": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" }, "node_modules/is-wsl": { "version": "2.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dependencies": { "is-docker": "^2.0.0" }, @@ -7300,42 +6249,44 @@ }, "node_modules/is-yarn-global": { "version": "0.3.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" }, "node_modules/isarray": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" }, "node_modules/isbinaryfile": { - "version": "3.0.3", - "license": "MIT", - "dependencies": { - "buffer-alloc": "^1.2.0" - }, + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", "engines": { - "node": ">=0.6.0" + "node": ">= 8.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" } }, "node_modules/isexe": { "version": "2.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/isstream": { "version": "0.1.2", - "license": "MIT" - }, - "node_modules/js-base64": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", - "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==" + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" }, "node_modules/js-tokens": { "version": "4.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dependencies": { "argparse": "^2.0.1" }, @@ -7345,44 +6296,49 @@ }, "node_modules/jsbn": { "version": "0.1.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" }, "node_modules/jsesc": { - "version": "2.5.2", - "license": "MIT", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-buffer": { - "version": "3.0.0", - "license": "MIT" - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "license": "MIT" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" }, "node_modules/json-schema": { - "version": "0.2.3" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, "node_modules/json-schema-traverse": { "version": "0.4.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" }, "node_modules/json-stringify-safe": { "version": "5.0.1", - "license": "ISC" + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, "node_modules/json5": { "version": "2.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", + "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", "bin": { "json5": "lib/cli.js" }, @@ -7392,7 +6348,8 @@ }, "node_modules/jsondiffpatch": { "version": "0.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/jsondiffpatch/-/jsondiffpatch-0.4.1.tgz", + "integrity": "sha512-t0etAxTUk1w5MYdNOkZBZ8rvYYN5iL+2dHCCx/DpkFm/bW28M6y5nUS83D4XdZiHy35Fpaw6LBb+F88fHZnVCw==", "dependencies": { "chalk": "^2.3.0", "diff-match-patch": "^1.0.0" @@ -7404,9 +6361,21 @@ "node": ">=8.17.0" } }, + "node_modules/jsondiffpatch/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==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/jsondiffpatch/node_modules/chalk": { "version": "2.4.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -7416,91 +6385,106 @@ "node": ">=4" } }, + "node_modules/jsondiffpatch/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==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/jsondiffpatch/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/jsondiffpatch/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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/jsondiffpatch/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==", + "engines": { + "node": ">=4" + } + }, + "node_modules/jsondiffpatch/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==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/jsonfile": { - "version": "4.0.0", - "license": "MIT", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, - "node_modules/jsonparse": { - "version": "1.3.1", - "engines": [ - "node >= 0.2.0" - ], - "license": "MIT" - }, - "node_modules/JSONStream": { - "version": "1.3.5", - "license": "(MIT OR Apache-2.0)", - "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - }, - "bin": { - "JSONStream": "bin.js" - }, - "engines": { - "node": "*" - } - }, "node_modules/jsprim": { - "version": "1.4.1", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" } }, "node_modules/junk": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz", + "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==", "engines": { "node": ">=8" } }, "node_modules/keyboardevent-from-electron-accelerator": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/keyboardevent-from-electron-accelerator/-/keyboardevent-from-electron-accelerator-2.0.0.tgz", + "integrity": "sha512-iQcmNA0M4ETMNi0kG/q0h/43wZk7rMeKYrXP7sqKIJbHkTU8Koowgzv+ieR/vWJbOwxx5nDC3UnudZ0aLSu4VA==" }, "node_modules/keyboardevents-areequal": { "version": "0.2.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/keyboardevents-areequal/-/keyboardevents-areequal-0.2.2.tgz", + "integrity": "sha512-Nv+Kr33T0mEjxR500q+I6IWisOQ0lK1GGOncV0kWE6n4KFmpcu7RUX5/2B0EUtX51Cb0HjZ9VJsSY3u4cBa0kw==" }, "node_modules/keyboardjs": { "version": "2.6.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/keyboardjs/-/keyboardjs-2.6.4.tgz", + "integrity": "sha512-xDiNwiwH3KUqap++RFJiLAXzbvRB5Yw08xliuceOgLhM1o7g1puKKR9vWy6wp9H/Bi4VP0+SQMpiWXMWWmR6rA==" }, "node_modules/keyv": { - "version": "3.1.0", - "license": "MIT", + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dependencies": { - "json-buffer": "3.0.0" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/labeled-stream-splicer": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "stream-splicer": "^2.0.0" + "json-buffer": "3.0.1" } }, "node_modules/latest-version": { "version": "5.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", "dependencies": { "package-json": "^6.3.0" }, @@ -7510,7 +6494,8 @@ }, "node_modules/levn": { "version": "0.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -7519,24 +6504,10 @@ "node": ">= 0.8.0" } }, - "node_modules/licensify": { - "version": "3.1.3", - "license": "MIT", - "dependencies": { - "convert-source-map": "^1.1.3", - "offset-sourcemap-lines": "^1.0.0", - "oss-license-name-to-url": "^1.2.1", - "through2": "^2.0.0", - "type-name": "^2.0.0" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "license": "MIT" - }, "node_modules/load-json-file": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha512-3p6ZOGNbiX4CdvEd1VcE6yi78UrGNpjHO33noGwHCnT/o2fyllJDepsm8+mFFv/DvtwFHht5HIHSyOy5a+ChVQ==", "dependencies": { "graceful-fs": "^4.1.2", "parse-json": "^2.2.0", @@ -7547,82 +6518,77 @@ "node": ">=4" } }, - "node_modules/load-json-file/node_modules/pify": { - "version": "2.3.0", - "license": "MIT", + "node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/locate-path": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead." + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "node_modules/lower-case": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", + "integrity": "sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==" + }, + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", "engines": { "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.20", - "license": "MIT" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "license": "MIT" - }, - "node_modules/lodash.get": { - "version": "4.4.2", - "license": "MIT" - }, - "node_modules/lodash.memoize": { - "version": "3.0.4", - "license": "MIT" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "license": "MIT" - }, - "node_modules/long": { - "version": "4.0.0", - "license": "Apache-2.0" - }, - "node_modules/loop-protect": { - "version": "1.0.1", - "resolved": "git+ssh://git@github.com/jean-emmanuel/loop-protect.git#335856f37ee4a805704bfcd1d7429ab94620bf6d" - }, - "node_modules/lower-case": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/lowercase-keys": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/lru-cache": { - "version": "6.0.0", - "license": "ISC", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "yallist": "^3.0.2" } }, "node_modules/magic-string": { - "version": "0.23.2", - "license": "MIT", + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "dependencies": { - "sourcemap-codec": "^1.4.1" + "@jridgewell/sourcemap-codec": "^1.5.5" } }, "node_modules/make-dir": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dependencies": { "semver": "^6.0.0" }, @@ -7634,50 +6600,17 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, - "node_modules/make-fetch-happen": { - "version": "9.1.0", - "license": "ISC", - "dependencies": { - "agentkeepalive": "^4.1.3", - "cacache": "^15.2.0", - "http-cache-semantics": "^4.1.0", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^6.0.0", - "minipass": "^3.1.3", - "minipass-collect": "^1.0.2", - "minipass-fetch": "^1.3.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.2", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^6.0.0", - "ssri": "^8.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/map-obj": { - "version": "4.3.0", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/matcher": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", "optional": true, "dependencies": { "escape-string-regexp": "^4.0.0" @@ -7686,204 +6619,65 @@ "node": ">=10" } }, - "node_modules/matcher/node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "optional": true, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/md5.js": { - "version": "1.3.5", - "license": "MIT", - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/meow": { - "version": "9.0.0", - "license": "MIT", - "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/meow/node_modules/hosted-git-info": { - "version": "4.1.0", - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/meow/node_modules/is-core-module": { - "version": "2.9.0", - "license": "MIT", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/meow/node_modules/normalize-package-data": { - "version": "3.0.3", - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/meow/node_modules/parse-json": { - "version": "5.2.0", - "license": "MIT", - "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/meow/node_modules/read-pkg": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/meow/node_modules/read-pkg-up": { - "version": "7.0.1", - "license": "MIT", - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/meow/node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=8" - } - }, - "node_modules/meow/node_modules/read-pkg/node_modules/hosted-git-info": { - "version": "2.8.9", - "license": "ISC" - }, - "node_modules/meow/node_modules/read-pkg/node_modules/normalize-package-data": { - "version": "2.5.0", - "license": "BSD-2-Clause", - "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/meow/node_modules/read-pkg/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/meow/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=8" - } - }, - "node_modules/meow/node_modules/type-fest": { - "version": "0.18.1", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/meow/node_modules/yargs-parser": { - "version": "20.2.9", - "license": "ISC", - "engines": { - "node": ">=10" + "node": ">= 0.4" } }, "node_modules/merge-source-map": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.0.4.tgz", + "integrity": "sha512-PGSmS0kfnTnMJCzJ16BLLCEe6oeYCamKFFdQKshi4BmM6FUwipjVOcBFGxqtQtirtAG4iZvHlqST9CpZKqlRjA==", "dependencies": { "source-map": "^0.5.6" } }, - "node_modules/miller-rabin": { - "version": "4.0.1", - "license": "MIT", - "dependencies": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "bin": { - "miller-rabin": "bin/miller-rabin" + "node_modules/merge-source-map/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/miller-rabin/node_modules/bn.js": { - "version": "4.11.9", - "license": "MIT" + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, "node_modules/mime": { "version": "1.6.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "bin": { "mime": "cli.js" }, @@ -7892,17 +6686,19 @@ } }, "node_modules/mime-db": { - "version": "1.44.0", - "license": "MIT", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { - "version": "2.1.27", - "license": "MIT", + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dependencies": { - "mime-db": "1.44.0" + "mime-db": "1.52.0" }, "engines": { "node": ">= 0.6" @@ -7910,29 +6706,16 @@ }, "node_modules/mimic-response": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", "engines": { "node": ">=4" } }, - "node_modules/min-indent": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "license": "ISC" - }, - "node_modules/minimalistic-crypto-utils": { - "version": "1.0.1", - "license": "MIT" - }, "node_modules/minimatch": { "version": "5.1.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -7940,169 +6723,41 @@ "node": ">=10" } }, - "node_modules/minimatch/node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/minimatch/node_modules/brace-expansion": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/minimist": { - "version": "1.2.5", - "license": "MIT" - }, - "node_modules/minimist-options": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/minipass": { - "version": "3.1.6", - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-collect": { - "version": "1.0.2", - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-fetch": { - "version": "1.4.1", - "license": "MIT", - "dependencies": { - "minipass": "^3.1.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "optionalDependencies": { - "encoding": "^0.1.12" - } - }, - "node_modules/minipass-flush": { - "version": "1.0.5", - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-pipeline": { - "version": "1.2.4", - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized": { - "version": "1.0.3", - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minizlib": { - "version": "2.1.2", - "license": "MIT", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/mkdirp": { - "version": "0.5.5", - "license": "MIT", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dependencies": { - "minimist": "^1.2.5" + "minimist": "^1.2.6" }, "bin": { "mkdirp": "bin/cmd.js" } }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "license": "MIT" - }, - "node_modules/module-deps": { - "version": "6.2.3", - "license": "MIT", - "dependencies": { - "browser-resolve": "^2.0.0", - "cached-path-relative": "^1.0.2", - "concat-stream": "~1.6.0", - "defined": "^1.0.0", - "detective": "^5.2.0", - "duplexer2": "^0.1.2", - "inherits": "^2.0.1", - "JSONStream": "^1.0.3", - "parents": "^1.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.4.0", - "stream-combiner2": "^1.1.1", - "subarg": "^1.0.0", - "through2": "^2.0.0", - "xtend": "^4.0.0" - }, - "bin": { - "module-deps": "bin/cmd.js" - }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", "engines": { - "node": ">= 0.8.0" + "node": "*" } }, - "node_modules/mold-source-map": { - "version": "0.4.0", - "license": "MIT", - "dependencies": { - "convert-source-map": "^1.1.0", - "through": "~2.2.7" - } - }, - "node_modules/mold-source-map/node_modules/through": { - "version": "2.2.7", - "license": "MIT" - }, "node_modules/ms": { - "version": "2.1.2", - "license": "MIT" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, "node_modules/multicast-dns": { "version": "7.2.1", - "resolved": "git+ssh://git@github.com/jean-emmanuel/multicast-dns.git#1bb9f6ba892eba88f2cb12ca96a1c1b3088413c0", + "resolved": "git+https://framagit.org/jean-emmanuel/multicast-dns.git#1bb9f6ba892eba88f2cb12ca96a1c1b3088413c0", "dependencies": { "dns-packet": "^1.3.1", "thunky": "^1.0.2" @@ -8113,27 +6768,26 @@ }, "node_modules/multicast-dns-service-types": { "version": "1.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha512-cnAsSVxIDsYt0v7HmC0hWZFwwXSh+E6PgCrREDuN/EsjgLwA5XRmlMHhSiDPrt6HxY1gTivEa/Zh7GtODoLevQ==" }, "node_modules/mutexify": { "version": "1.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mutexify/-/mutexify-1.4.0.tgz", + "integrity": "sha512-pbYSsOrSB/AKN5h/WzzLRMFgZhClWccf2XIB4RSMC8JbquiB0e0/SH5AIfdQMdyHmYtv4seU7yV/TvAwPLJ1Yg==", "dependencies": { "queue-tick": "^1.0.0" } }, - "node_modules/nan": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", - "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==" - }, "node_modules/nanoassert": { "version": "1.1.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/nanoassert/-/nanoassert-1.1.0.tgz", + "integrity": "sha512-C40jQ3NzfkP53NsO8kEOFd79p4b9kDXQMwgiY1z8ZwrDZgUyom0AHwGegF4Dm99L+YoYhuaB0ceerUcXmqr1rQ==" }, "node_modules/nanobench": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/nanobench/-/nanobench-2.1.1.tgz", + "integrity": "sha512-z+Vv7zElcjN+OpzAxAquUayFLGK3JI/ubCl0Oh64YQqsTGG09CGqieJVQw4ui8huDnnAgrvTv93qi5UaOoNj8A==", "dependencies": { "browser-process-hrtime": "^0.1.2", "chalk": "^1.1.3", @@ -8147,21 +6801,24 @@ }, "node_modules/nanobench/node_modules/ansi-regex": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "engines": { "node": ">=0.10.0" } }, "node_modules/nanobench/node_modules/ansi-styles": { "version": "2.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", "engines": { "node": ">=0.10.0" } }, "node_modules/nanobench/node_modules/chalk": { "version": "1.1.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", "dependencies": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -8173,9 +6830,18 @@ "node": ">=0.10.0" } }, + "node_modules/nanobench/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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/nanobench/node_modules/strip-ansi": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "dependencies": { "ansi-regex": "^2.0.0" }, @@ -8185,14 +6851,16 @@ }, "node_modules/nanobench/node_modules/supports-color": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", "engines": { "node": ">=0.8.0" } }, "node_modules/nanohtml": { "version": "1.10.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/nanohtml/-/nanohtml-1.10.0.tgz", + "integrity": "sha512-r/3AQl+jxAxUIJRiKExUjBtFcE1cm4yTOsTIdVqqlxPNtBxJh522ANrcQYzdNHhPzbPgb7j6qujq6eGehBX0kg==", "dependencies": { "acorn-node": "^1.8.2", "camel-case": "^3.0.0", @@ -8209,7 +6877,8 @@ }, "node_modules/nanoid": { "version": "3.3.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -8219,495 +6888,65 @@ }, "node_modules/nanomorph": { "version": "5.4.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/nanomorph/-/nanomorph-5.4.3.tgz", + "integrity": "sha512-uPP5y0x21KISffZCKHh1A0QW0RHZFQS0BR7LetlHBlay6UWAbjwhjiJTxOO6JeMHko5Cigl617zFoGrYFJ8ZLg==", "dependencies": { "nanoassert": "^1.1.0" } }, - "node_modules/napi-build-utils": { - "version": "1.0.2", - "license": "MIT", - "optional": true - }, "node_modules/natural-compare": { "version": "1.4.0", - "license": "MIT" - }, - "node_modules/negotiator": { - "version": "0.6.3", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" }, "node_modules/no-case": { "version": "2.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", + "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", "dependencies": { "lower-case": "^1.1.1" } }, - "node_modules/node-abi": { - "version": "3.8.0", - "license": "MIT", - "optional": true, - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "optional": true }, "node_modules/node-forge": { "version": "1.3.1", - "license": "(BSD-3-Clause OR GPL-2.0)", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", "engines": { "node": ">= 6.13.0" } }, - "node_modules/node-gyp": { - "version": "8.4.1", - "license": "MIT", - "dependencies": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.6", - "make-fetch-happen": "^9.1.0", - "nopt": "^5.0.0", - "npmlog": "^6.0.0", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.2", - "which": "^2.0.2" - }, + "node_modules/node-gyp-build": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", + "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", + "optional": true, "bin": { - "node-gyp": "bin/node-gyp.js" - }, - "engines": { - "node": ">= 10.12.0" - } - }, - "node_modules/node-gyp/node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/node-gyp/node_modules/are-we-there-yet": { - "version": "3.0.0", - "license": "ISC", - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16" - } - }, - "node_modules/node-gyp/node_modules/gauge": { - "version": "4.0.4", - "license": "ISC", - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.3", - "console-control-strings": "^1.1.0", - "has-unicode": "^2.0.1", - "signal-exit": "^3.0.7", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-gyp/node_modules/graceful-fs": { - "version": "4.2.10", - "license": "ISC" - }, - "node_modules/node-gyp/node_modules/npmlog": { - "version": "6.0.2", - "license": "ISC", - "dependencies": { - "are-we-there-yet": "^3.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^4.0.3", - "set-blocking": "^2.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-gyp/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/node-gyp/node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/node-gyp/node_modules/signal-exit": { - "version": "3.0.7", - "license": "ISC" - }, - "node_modules/node-gyp/node_modules/string-width": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/node-gyp/node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/node-gyp/node_modules/wide-align": { - "version": "1.1.5", - "license": "ISC", - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" } }, "node_modules/node-mouse": { "version": "0.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/node-mouse/-/node-mouse-0.0.2.tgz", + "integrity": "sha512-qqm+c/uKB1ceGMrKW+mxAxPKFTu0HD1DWoCElJHA0VQDloudzZD4bI++Z18mSDA3n5lix+RTXiOiu3XAOSYVHA==" }, "node_modules/node-releases": { - "version": "2.0.4", - "license": "MIT" - }, - "node_modules/node-sass": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-9.0.0.tgz", - "integrity": "sha512-yltEuuLrfH6M7Pq2gAj5B6Zm7m+gdZoG66wTqG6mIZV/zijq3M2OO2HswtT6oBspPyFhHDcaxWpsBm0fRNDHPg==", - "hasInstallScript": true, - "dependencies": { - "async-foreach": "^0.1.3", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "lodash": "^4.17.15", - "make-fetch-happen": "^10.0.4", - "meow": "^9.0.0", - "nan": "^2.17.0", - "node-gyp": "^8.4.1", - "sass-graph": "^4.0.1", - "stdout-stream": "^1.4.0", - "true-case-path": "^2.2.1" - }, - "bin": { - "node-sass": "bin/node-sass" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/node-sass/node_modules/@npmcli/fs": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", - "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", - "dependencies": { - "@gar/promisify": "^1.1.3", - "semver": "^7.3.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-sass/node_modules/@npmcli/move-file": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz", - "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==", - "deprecated": "This functionality has been moved to @npmcli/fs", - "dependencies": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-sass/node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/node-sass/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/node-sass/node_modules/cacache": { - "version": "16.1.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", - "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", - "dependencies": { - "@npmcli/fs": "^2.1.0", - "@npmcli/move-file": "^2.0.0", - "chownr": "^2.0.0", - "fs-minipass": "^2.1.0", - "glob": "^8.0.1", - "infer-owner": "^1.0.4", - "lru-cache": "^7.7.1", - "minipass": "^3.1.6", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "mkdirp": "^1.0.4", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^9.0.0", - "tar": "^6.1.11", - "unique-filename": "^2.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-sass/node_modules/cacache/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/node-sass/node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", - "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/node-sass/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/node-sass/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/node-sass/node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/node-sass/node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/node-sass/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/node-sass/node_modules/make-fetch-happen": { - "version": "10.2.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz", - "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==", - "dependencies": { - "agentkeepalive": "^4.2.1", - "cacache": "^16.1.0", - "http-cache-semantics": "^4.1.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^3.1.6", - "minipass-collect": "^1.0.2", - "minipass-fetch": "^2.0.3", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^9.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-sass/node_modules/minipass-fetch": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz", - "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==", - "dependencies": { - "minipass": "^3.1.6", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, - "node_modules/node-sass/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-sass/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/node-sass/node_modules/socks-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz", - "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==", - "dependencies": { - "agent-base": "^6.0.2", - "debug": "^4.3.3", - "socks": "^2.6.2" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/node-sass/node_modules/ssri": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", - "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", - "dependencies": { - "minipass": "^3.1.1" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-sass/node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/node-sass/node_modules/unique-filename": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz", - "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==", - "dependencies": { - "unique-slug": "^3.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-sass/node_modules/unique-slug": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz", - "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==", - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==" }, "node_modules/nodemon": { "version": "2.0.16", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.16.tgz", + "integrity": "sha512-zsrcaOfTWRuUzBn3P44RDliLlp263Z/76FPoHFr3cFFkOz0lTPAcIw8dCzfdVIx/t3AtDYCZRCDkoCojJqaG3w==", "hasInstallScript": true, - "license": "MIT", "dependencies": { "chokidar": "^3.5.2", "debug": "^3.2.7", @@ -8731,16 +6970,40 @@ "url": "https://opencollective.com/nodemon" } }, + "node_modules/nodemon/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/nodemon/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "node_modules/nodemon/node_modules/debug": { "version": "3.2.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dependencies": { "ms": "^2.1.1" } }, + "node_modules/nodemon/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==", + "engines": { + "node": ">=4" + } + }, "node_modules/nodemon/node_modules/minimatch": { "version": "3.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -8749,35 +7012,36 @@ } }, "node_modules/nodemon/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } }, - "node_modules/nopt": { - "version": "5.0.0", - "license": "ISC", + "node_modules/nodemon/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==", "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=6" + "node": ">=4" } }, "node_modules/normalize-html-whitespace": { "version": "0.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/normalize-html-whitespace/-/normalize-html-whitespace-0.2.0.tgz", + "integrity": "sha512-5CZAEQ4bQi8Msqw0GAT6rrkrjNN4ZKqAG3+jJMwms4O6XoMvh6ekwOueG4mRS1LbPUR1r9EdnhxxfpzMTOdzKw==", "engines": { "node": ">= 0.10" } }, "node_modules/normalize-package-data": { "version": "2.5.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dependencies": { "hosted-git-info": "^2.1.4", "resolve": "^1.10.0", @@ -8786,88 +7050,60 @@ } }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.1", - "license": "ISC", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } }, "node_modules/normalize-path": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "engines": { "node": ">=0.10.0" } }, "node_modules/normalize-url": { - "version": "4.5.1", - "license": "MIT", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/nosleep.js": { "version": "0.12.0", - "license": "MIT" - }, - "node_modules/npm-conf": { - "version": "1.1.3", - "license": "MIT", - "optional": true, - "dependencies": { - "config-chain": "^1.1.11", - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npmlog": { - "version": "4.1.2", - "license": "ISC", - "optional": true, - "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } + "resolved": "https://registry.npmjs.org/nosleep.js/-/nosleep.js-0.12.0.tgz", + "integrity": "sha512-9d1HbpKLh3sdWlhXMhU6MMH+wQzKkrgfRkYV0EBdvt99YJfj0ilCJrWRDYG2130Tm4GXbEoTCx5b34JSaP+HhA==" }, "node_modules/oauth-sign": { "version": "0.9.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", "engines": { "node": "*" } }, "node_modules/object-assign": { "version": "4.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "engines": { "node": ">=0.10.0" } }, - "node_modules/object-inspect": { - "version": "1.8.0", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object-is": { - "version": "1.1.3", - "license": "MIT", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", + "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -8878,37 +7114,16 @@ }, "node_modules/object-keys": { "version": "1.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "engines": { "node": ">= 0.4" } }, - "node_modules/object.assign": { - "version": "4.1.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/offset-sourcemap-lines": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "source-map": "^0.5.0" - } - }, "node_modules/on-finished": { "version": "2.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "dependencies": { "ee-first": "1.1.1" }, @@ -8918,14 +7133,16 @@ }, "node_modules/once": { "version": "1.4.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dependencies": { "wrappy": "1" } }, "node_modules/open": { "version": "8.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", + "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", @@ -8939,46 +7156,45 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "license": "MIT", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "word-wrap": "^1.2.5" }, "engines": { "node": ">= 0.8.0" } }, - "node_modules/os-browserify": { - "version": "0.3.0", - "license": "MIT" - }, "node_modules/osc": { - "version": "2.4.2", - "resolved": "git+ssh://git@github.com/jean-emmanuel/osc.js.git#9197739162f26086e6a72670103c3fa036e9dcd5", + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/osc/-/osc-2.4.5.tgz", + "integrity": "sha512-Nc4/qcl+vA/CMxiKS1xrYgzjfnyB3W94gZnrkn3eTzihlndbEml6+wj1YQNKBI4r+qrw3obCcEoU7SVH/OxpxA==", "dependencies": { "long": "4.0.0", "slip": "1.0.2", "wolfy87-eventemitter": "5.2.9", - "ws": "7.5.3" + "ws": "8.18.0" }, "optionalDependencies": { - "serialport": "9.2.0" + "serialport": "12.0.0" } }, "node_modules/osc/node_modules/ws": { - "version": "7.5.3", - "license": "MIT", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "engines": { - "node": ">=8.3.0" + "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -8989,64 +7205,20 @@ } } }, - "node_modules/osi-licenses": { - "version": "0.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10", - "npm": ">=1.2" - } - }, - "node_modules/oss-license-name-to-url": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "osi-licenses": "^0.1.0" - } - }, - "node_modules/outpipe": { - "version": "1.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "shell-quote": "^1.4.2" - } - }, "node_modules/p-cancelable": { - "version": "1.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/p-limit": { - "version": "2.3.0", - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", "engines": { "node": ">=8" } }, - "node_modules/p-map": { - "version": "4.0.0", - "license": "MIT", + "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==", "dependencies": { - "aggregate-error": "^3.0.0" + "yocto-queue": "^0.1.0" }, "engines": { "node": ">=10" @@ -9055,16 +7227,48 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "dependencies": { + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dependencies": { + "p-try": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-locate/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "engines": { + "node": ">=4" + } + }, "node_modules/p-try": { "version": "2.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "engines": { "node": ">=6" } }, "node_modules/package-json": { "version": "6.5.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", "dependencies": { "got": "^9.6.0", "registry-auth-token": "^4.0.0", @@ -9075,20 +7279,166 @@ "node": ">=8" } }, + "node_modules/package-json/node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json/node_modules/@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dependencies": { + "defer-to-connect": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json/node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/package-json/node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/package-json/node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" + }, + "node_modules/package-json/node_modules/got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/package-json/node_modules/got/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json/node_modules/got/node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/package-json/node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" + }, + "node_modules/package-json/node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dependencies": { + "json-buffer": "3.0.0" + } + }, + "node_modules/package-json/node_modules/normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/package-json/node_modules/p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json/node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, + "node_modules/package-json/node_modules/responselike/node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/package-json/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, - "node_modules/pako": { - "version": "1.0.11", - "license": "(MIT AND Zlib)" + "node_modules/package-name-regex": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/package-name-regex/-/package-name-regex-2.0.6.tgz", + "integrity": "sha512-gFL35q7kbE/zBaPA3UKhp2vSzcPYx2ecbYuwv1ucE9Il6IIgBDweBlH8D68UFGZic2MkllKa2KHCfC1IQBQUYA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/dword-design" + } }, "node_modules/parent-module": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dependencies": { "callsites": "^3.0.0" }, @@ -9096,27 +7446,10 @@ "node": ">=6" } }, - "node_modules/parents": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "path-platform": "~0.11.15" - } - }, - "node_modules/parse-asn1": { - "version": "5.1.6", - "license": "ISC", - "dependencies": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, "node_modules/parse-author": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parse-author/-/parse-author-2.0.0.tgz", + "integrity": "sha512-yx5DfvkN8JsHL2xk2Os9oTia467qnvRgey4ahSm2X8epehBLx/gWLcy5KI+Y36ful5DzGbCS6RazqZGgy1gHNw==", "dependencies": { "author-regex": "^1.0.0" }, @@ -9126,7 +7459,8 @@ }, "node_modules/parse-json": { "version": "2.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", "dependencies": { "error-ex": "^1.2.0" }, @@ -9134,49 +7468,39 @@ "node": ">=0.10.0" } }, - "node_modules/parse-srcset": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/path-browserify": { - "version": "1.0.1", - "license": "MIT" - }, "node_modules/path-exists": { - "version": "4.0.0", - "license": "MIT", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/path-is-absolute": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "engines": { "node": ">=0.10.0" } }, "node_modules/path-key": { "version": "3.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "engines": { "node": ">=8" } }, "node_modules/path-parse": { - "version": "1.0.6", - "license": "MIT" - }, - "node_modules/path-platform": { - "version": "0.11.15", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-type": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha512-dUnb5dXUf+kzhC/W/F4e5/SkluXIFf5VUHolW1Eg1irn1hGWjPGdsRcvYJ1nD6lhk8Ir7VM0bHJKsYTx8Jx9OQ==", "dependencies": { "pify": "^2.0.0" }, @@ -9184,173 +7508,151 @@ "node": ">=4" } }, - "node_modules/path-type/node_modules/pify": { - "version": "2.3.0", - "license": "MIT", + "node_modules/pe-library": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-1.0.1.tgz", + "integrity": "sha512-nh39Mo1eGWmZS7y+mK/dQIqg7S1lp38DpRxkyoHf0ZcUs/HDc+yyTjuOtTvSMZHmfSLuSQaX945u05Y2Q6UWZg==", "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pbkdf2": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" + "node": ">=14", + "npm": ">=7" }, - "engines": { - "node": ">=0.12" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" } }, "node_modules/pend": { "version": "1.2.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" }, "node_modules/performance-now": { "version": "2.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, "node_modules/picocolors": { - "version": "1.0.0", - "license": "ISC" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { - "version": "2.2.3", - "license": "MIT", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "engines": { - "node": ">=8.6" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/pify": { - "version": "3.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/plist": { - "version": "3.0.5", - "license": "MIT", - "dependencies": { - "base64-js": "^1.5.1", - "xmlbuilder": "^9.0.7" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pngjs": { - "version": "5.0.0", - "license": "MIT", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/postcss": { - "version": "7.0.39", - "license": "MIT", - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss/node_modules/picocolors": { - "version": "0.2.1", - "license": "ISC" - }, - "node_modules/postcss/node_modules/source-map": { - "version": "0.6.1", - "license": "BSD-3-Clause", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "engines": { "node": ">=0.10.0" } }, - "node_modules/prebuild-install": { - "version": "7.0.1", - "license": "MIT", - "optional": true, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^1.0.1", - "node-abi": "^3.3.0", - "npmlog": "^4.0.1", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" }, "engines": { - "node": ">=10" + "node": ">=10.4.0" + } + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postject": { + "version": "1.0.0-alpha.6", + "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz", + "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==", + "dependencies": { + "commander": "^9.4.0" + }, + "bin": { + "postject": "dist/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/postject/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "engines": { + "node": "^12.20.0 || >=14" } }, "node_modules/prelude-ls": { "version": "1.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "engines": { "node": ">= 0.8.0" } }, "node_modules/prepend-http": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", "engines": { "node": ">=4" } }, + "node_modules/prettier": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz", + "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/pretty-hrtime": { "version": "1.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==", "engines": { "node": ">= 0.8" } }, - "node_modules/process": { - "version": "0.11.10", - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/process-nextick-args": { "version": "2.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "node_modules/progress": { "version": "2.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "engines": { "node": ">=0.4.0" } }, - "node_modules/promise-inflight": { - "version": "1.0.1", - "license": "ISC" - }, "node_modules/promise-retry": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "dependencies": { "err-code": "^2.0.2", "retry": "^0.12.0" @@ -9359,50 +7661,43 @@ "node": ">=10" } }, - "node_modules/proto-list": { - "version": "1.2.4", - "license": "ISC", - "optional": true - }, "node_modules/psl": { - "version": "1.8.0", - "license": "MIT" + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } }, "node_modules/pstree.remy": { "version": "1.1.8", - "license": "MIT" - }, - "node_modules/public-encrypt": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/public-encrypt/node_modules/bn.js": { - "version": "4.11.9", - "license": "MIT" + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" }, "node_modules/pump": { - "version": "3.0.0", - "license": "MIT", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "node_modules/punycode": { - "version": "1.4.1", - "license": "MIT" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } }, "node_modules/pupa": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", "dependencies": { "escape-goat": "^2.0.0" }, @@ -9412,14 +7707,16 @@ }, "node_modules/python-shell": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/python-shell/-/python-shell-3.0.1.tgz", + "integrity": "sha512-TWeotuxe1auhXa5bGRScxnc2J+0r41NBntSa6RYZtMBLtAEsvCboKrEbW6DvASosWQepVkhZZlT3B5Ei766G+Q==", "engines": { "node": ">=0.10" } }, "node_modules/qrcode": { "version": "1.5.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.1.tgz", + "integrity": "sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg==", "dependencies": { "dijkstrajs": "^1.0.1", "encode-utf8": "^1.0.3", @@ -9433,9 +7730,102 @@ "node": ">=10.13.0" } }, + "node_modules/qrcode/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/qrcode/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==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/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==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/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==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/qrcode/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==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/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==", + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, "node_modules/qrcode/node_modules/yargs": { "version": "15.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -9453,61 +7843,81 @@ "node": ">=8" } }, + "node_modules/qrcode/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/qs": { - "version": "6.5.2", - "license": "BSD-3-Clause", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", "engines": { "node": ">=0.6" } }, - "node_modules/querystring": { - "version": "0.2.0", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/querystring-es3": { - "version": "0.2.1", - "engines": { - "node": ">=0.4.x" - } + "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==", + "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/queue-tick": { - "version": "1.0.0", - "license": "MIT" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" }, "node_modules/quick-lru": { - "version": "4.0.1", - "license": "MIT", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/randombytes": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dependencies": { "safe-buffer": "^5.1.0" } }, - "node_modules/randomfill": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "node_modules/range-parser": { "version": "1.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", "engines": { "node": ">= 0.6" } }, "node_modules/rc": { "version": "1.2.8", - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -9518,30 +7928,23 @@ "rc": "cli.js" } }, + "node_modules/rc/node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, "node_modules/rc/node_modules/strip-json-comments": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", "engines": { "node": ">=0.10.0" } }, - "node_modules/rcedit": { - "version": "2.3.0", - "license": "MIT", - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/read-only-stream": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "readable-stream": "^2.0.2" - } - }, "node_modules/read-pkg": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha512-eFIBOPW7FGjzBuk3hdXEuNSiTZS/xEMlH49HxMyzb0hyPfu4EhVjT2DH32K1hSSmVq4sebAWnZuuY5auISUTGA==", "dependencies": { "load-json-file": "^2.0.0", "normalize-package-data": "^2.3.2", @@ -9553,7 +7956,8 @@ }, "node_modules/read-pkg-up": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha512-1orxQfbWGUiTn9XsPlChs6rLie/AV9jwZTGmu2NZw/CUDJQchXJFYE0Fq5j7+n558T1JhDWLdhyd1Zj+wLY//w==", "dependencies": { "find-up": "^2.0.0", "read-pkg": "^2.0.0" @@ -9562,64 +7966,10 @@ "node": ">=4" } }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up/node_modules/p-try": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/readable-stream": { - "version": "2.3.7", - "license": "MIT", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -9630,16 +7980,15 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/readable-stream/node_modules/string_decoder": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/readdirp": { "version": "3.6.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dependencies": { "picomatch": "^2.2.1" }, @@ -9647,24 +7996,26 @@ "node": ">=8.10.0" } }, - "node_modules/redent": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "engines": { - "node": ">=8" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/regenerate": { "version": "1.4.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" }, "node_modules/regenerate-unicode-properties": { - "version": "10.0.1", - "license": "MIT", + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", "dependencies": { "regenerate": "^1.4.2" }, @@ -9672,46 +8023,17 @@ "node": ">=4" } }, - "node_modules/regenerator-runtime": { - "version": "0.13.7", - "license": "MIT" - }, - "node_modules/regenerator-transform": { - "version": "0.15.0", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, "node_modules/regexp.prototype.flags": { - "version": "1.3.0", - "license": "MIT", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", "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/regexp.prototype.flags/node_modules/es-abstract": { - "version": "1.17.7", - "license": "MIT", - "dependencies": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-regex": "^1.1.1", - "object-inspect": "^1.8.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.1", - "string.prototype.trimend": "^1.0.1", - "string.prototype.trimstart": "^1.0.1" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -9722,7 +8044,8 @@ }, "node_modules/regexpp": { "version": "3.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "engines": { "node": ">=8" }, @@ -9731,25 +8054,27 @@ } }, "node_modules/regexpu-core": { - "version": "5.0.1", - "license": "MIT", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", "dependencies": { "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.0.1", - "regjsgen": "^0.6.0", - "regjsparser": "^0.8.2", + "regenerate-unicode-properties": "^10.2.2", + "regjsgen": "^0.8.0", + "regjsparser": "^0.13.0", "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" + "unicode-match-property-value-ecmascript": "^2.2.1" }, "engines": { "node": ">=4" } }, "node_modules/registry-auth-token": { - "version": "4.2.1", - "license": "MIT", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", + "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", "dependencies": { - "rc": "^1.2.8" + "rc": "1.2.8" }, "engines": { "node": ">=6.0.0" @@ -9757,7 +8082,8 @@ }, "node_modules/registry-url": { "version": "5.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", "dependencies": { "rc": "^1.2.8" }, @@ -9766,37 +8092,44 @@ } }, "node_modules/regjsgen": { - "version": "0.6.0", - "license": "MIT" + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==" }, "node_modules/regjsparser": { - "version": "0.8.4", - "license": "BSD-2-Clause", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", + "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", "dependencies": { - "jsesc": "~0.5.0" + "jsesc": "~3.1.0" }, "bin": { "regjsparser": "bin/parser" } }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "bin": { - "jsesc": "bin/jsesc" - } - }, "node_modules/replacestream": { "version": "4.0.3", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/replacestream/-/replacestream-4.0.3.tgz", + "integrity": "sha512-AC0FiLS352pBBiZhd4VXB1Ab/lh0lEgpP+GGvZqbQh8a5cmXVoTe5EX/YeTFArnp4SRGTHh1qCHu9lGs1qG8sA==", "dependencies": { "escape-string-regexp": "^1.0.3", "object-assign": "^4.0.1", "readable-stream": "^2.0.2" } }, + "node_modules/replacestream/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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/request": { "version": "2.88.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -9823,52 +8156,109 @@ "node": ">= 6" } }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } + }, "node_modules/require-directory": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "engines": { "node": ">=0.10.0" } }, "node_modules/require-main-filename": { "version": "2.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "node_modules/resedit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resedit/-/resedit-2.0.3.tgz", + "integrity": "sha512-oTeemxwoMuxxTYxXUwjkrOPfngTQehlv0/HoYFNkB4uzsP1Un1A9nI8JQKGOFkxpqkC7qkMs0lUsGrvUlbLNUA==", + "dependencies": { + "pe-library": "^1.0.1" + }, + "engines": { + "node": ">=14", + "npm": ">=7" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" + } }, "node_modules/resolve": { - "version": "1.19.0", - "license": "MIT", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", "dependencies": { - "is-core-module": "^2.1.0", - "path-parse": "^1.0.6" + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" + }, "node_modules/resolve-from": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "engines": { "node": ">=4" } }, "node_modules/responselike": { - "version": "1.0.2", - "license": "MIT", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", "dependencies": { - "lowercase-keys": "^1.0.0" + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/retry": { "version": "0.12.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "engines": { "node": ">= 4" } }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "2.7.1", - "license": "ISC", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dependencies": { "glob": "^7.1.3" }, @@ -9876,17 +8266,10 @@ "rimraf": "bin.js" } }, - "node_modules/ripemd160": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, "node_modules/roarr": { "version": "2.15.4", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", "optional": true, "dependencies": { "boolean": "^3.0.1", @@ -9900,44 +8283,234 @@ "node": ">=8.0" } }, + "node_modules/rollup": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.1.tgz", + "integrity": "sha512-78E9voJHwnXQMiQdiqswVLZwJIzdBKJ1GdI5Zx6XwoFKUIk09/sSrr+05QFzvYb8q6Y9pPV45zzDuYa3907TZA==", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.50.1", + "@rollup/rollup-android-arm64": "4.50.1", + "@rollup/rollup-darwin-arm64": "4.50.1", + "@rollup/rollup-darwin-x64": "4.50.1", + "@rollup/rollup-freebsd-arm64": "4.50.1", + "@rollup/rollup-freebsd-x64": "4.50.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.50.1", + "@rollup/rollup-linux-arm-musleabihf": "4.50.1", + "@rollup/rollup-linux-arm64-gnu": "4.50.1", + "@rollup/rollup-linux-arm64-musl": "4.50.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.50.1", + "@rollup/rollup-linux-ppc64-gnu": "4.50.1", + "@rollup/rollup-linux-riscv64-gnu": "4.50.1", + "@rollup/rollup-linux-riscv64-musl": "4.50.1", + "@rollup/rollup-linux-s390x-gnu": "4.50.1", + "@rollup/rollup-linux-x64-gnu": "4.50.1", + "@rollup/rollup-linux-x64-musl": "4.50.1", + "@rollup/rollup-openharmony-arm64": "4.50.1", + "@rollup/rollup-win32-arm64-msvc": "4.50.1", + "@rollup/rollup-win32-ia32-msvc": "4.50.1", + "@rollup/rollup-win32-x64-msvc": "4.50.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-copy": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-copy/-/rollup-plugin-copy-3.5.0.tgz", + "integrity": "sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==", + "dependencies": { + "@types/fs-extra": "^8.0.1", + "colorette": "^1.1.0", + "fs-extra": "^8.1.0", + "globby": "10.0.1", + "is-plain-object": "^3.0.0" + }, + "engines": { + "node": ">=8.3" + } + }, + "node_modules/rollup-plugin-copy/node_modules/@types/fs-extra": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.5.tgz", + "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/rollup-plugin-copy/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/rollup-plugin-copy/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/rollup-plugin-copy/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/rollup-plugin-license": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-license/-/rollup-plugin-license-3.6.0.tgz", + "integrity": "sha512-1ieLxTCaigI5xokIfszVDRoy6c/Wmlot1fDEnea7Q/WXSR8AqOjYljHDLObAx7nFxHC2mbxT3QnTSPhaic2IYw==", + "dependencies": { + "commenting": "~1.1.0", + "fdir": "^6.4.3", + "lodash": "~4.17.21", + "magic-string": "~0.30.0", + "moment": "~2.30.1", + "package-name-regex": "~2.0.6", + "spdx-expression-validate": "~2.0.0", + "spdx-satisfies": "~5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" + } + }, + "node_modules/rollup-plugin-node-externals": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-externals/-/rollup-plugin-node-externals-8.1.2.tgz", + "integrity": "sha512-EuB6/lolkMLK16gvibUjikERq5fCRVIGwD2xue/CrM8D0pz5GXD2V6N8IrgxegwbcUoKkUFI8VYCEEv8MMvgpA==", + "funding": [ + { + "type": "patreon", + "url": "https://patreon.com/Septh" + }, + { + "type": "paypal", + "url": "https://paypal.me/septh07" + } + ], + "engines": { + "node": ">= 21 || ^20.6.0 || ^18.19.0" + }, + "peerDependencies": { + "rollup": "^4.0.0" + } + }, + "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==", + "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.1.2", - "license": "MIT" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "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/safer-buffer": { "version": "2.1.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "node_modules/sanitize-html": { - "version": "1.27.5", - "license": "MIT", + "node_modules/sass": { + "version": "1.89.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.89.2.tgz", + "integrity": "sha512-xCmtksBKd/jdJ9Bt9p7nPKiuqrlBMBuuGkQlkhZjjQk3Ty48lv93k5Dq6OPkKt4XwxDJ7tvlfrTa1MPA9bf+QA==", "dependencies": { - "htmlparser2": "^4.1.0", - "lodash": "^4.17.15", - "parse-srcset": "^1.0.2", - "postcss": "^7.0.27" - } - }, - "node_modules/sass-graph": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-4.0.1.tgz", - "integrity": "sha512-5YCfmGBmxoIRYHnKK2AKzrAkCoQ8ozO+iumT8K4tXJXRVCPf+7s1/9KxTSW3Rbvf+7Y7b4FR3mWyLnQr3PHocA==", - "dependencies": { - "glob": "^7.0.0", - "lodash": "^4.17.11", - "scss-tokenizer": "^0.4.3", - "yargs": "^17.2.1" + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" }, "bin": { - "sassgraph": "bin/sassgraph" + "sass": "sass.js" }, "engines": { - "node": ">=12" + "node": ">=14.0.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/sass/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/sass/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" } }, "node_modules/scope-css": { "version": "1.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/scope-css/-/scope-css-1.2.1.tgz", + "integrity": "sha512-UjLRmyEYaDNiOS673xlVkZFlVCtckJR/dKgr434VMm7Lb+AOOqXKdAcY7PpGlJYErjXXJzKN7HWo4uRPiZZG0Q==", "dependencies": { "escaper": "^2.5.3", "slugify": "^1.3.1", @@ -9946,7 +8519,8 @@ }, "node_modules/screenfull": { "version": "5.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-5.2.0.tgz", + "integrity": "sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==", "engines": { "node": ">=0.10.0" }, @@ -9954,26 +8528,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/scss-tokenizer": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.4.3.tgz", - "integrity": "sha512-raKLgf1LI5QMQnG+RxHz6oK0sL3x3I4FN2UDLqgLOGO8hodECNnNh5BXn7fAyBxrA8zVzdQizQ6XjNJQ+uBwMw==", - "dependencies": { - "js-base64": "^2.4.9", - "source-map": "^0.7.3" - } - }, - "node_modules/scss-tokenizer/node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "engines": { - "node": ">= 8" - } - }, "node_modules/semver": { "version": "7.3.7", - "license": "ISC", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9986,12 +8544,14 @@ }, "node_modules/semver-compare": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", "optional": true }, "node_modules/semver-diff": { "version": "3.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", "dependencies": { "semver": "^6.3.0" }, @@ -10000,15 +8560,33 @@ } }, "node_modules/semver-diff/node_modules/semver": { - "version": "6.3.0", - "license": "ISC", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } }, + "node_modules/semver/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==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, "node_modules/send": { "version": "0.18.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", "dependencies": { "debug": "2.6.9", "depd": "2.0.0", @@ -10030,29 +8608,21 @@ }, "node_modules/send/node_modules/debug": { "version": "2.6.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dependencies": { "ms": "2.0.0" } }, "node_modules/send/node_modules/debug/node_modules/ms": { "version": "2.0.0", - "license": "MIT" - }, - "node_modules/send/node_modules/depd": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, "node_modules/serialize-error": { "version": "7.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", "optional": true, "dependencies": { "type-fest": "^0.13.1" @@ -10064,59 +8634,121 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/serialize-error/node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "dependencies": { + "randombytes": "^2.1.0" + } + }, "node_modules/serialport": { - "version": "9.2.0", - "license": "MIT", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/serialport/-/serialport-12.0.0.tgz", + "integrity": "sha512-AmH3D9hHPFmnF/oq/rvigfiAouAKyK/TjnrkwZRYSFZxNggJxwvbAbfYrLeuvq7ktUdhuHdVdSjj852Z55R+uA==", "optional": true, "dependencies": { - "@serialport/binding-mock": "9.0.7", - "@serialport/bindings": "^9.2.0", - "@serialport/parser-byte-length": "9.0.7", - "@serialport/parser-cctalk": "9.0.7", - "@serialport/parser-delimiter": "9.0.7", - "@serialport/parser-inter-byte-timeout": "9.0.7", - "@serialport/parser-readline": "9.0.7", - "@serialport/parser-ready": "9.0.7", - "@serialport/parser-regex": "9.0.7", - "@serialport/stream": "9.0.7", - "debug": "^4.3.1" + "@serialport/binding-mock": "10.2.2", + "@serialport/bindings-cpp": "12.0.1", + "@serialport/parser-byte-length": "12.0.0", + "@serialport/parser-cctalk": "12.0.0", + "@serialport/parser-delimiter": "12.0.0", + "@serialport/parser-inter-byte-timeout": "12.0.0", + "@serialport/parser-packet-length": "12.0.0", + "@serialport/parser-readline": "12.0.0", + "@serialport/parser-ready": "12.0.0", + "@serialport/parser-regex": "12.0.0", + "@serialport/parser-slip-encoder": "12.0.0", + "@serialport/parser-spacepacket": "12.0.0", + "@serialport/stream": "12.0.0", + "debug": "4.3.4" }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "funding": { "url": "https://opencollective.com/serialport/donate" } }, + "node_modules/serialport/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/serialport/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, "node_modules/set-blocking": { "version": "2.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/setprototypeof": { "version": "1.2.0", - "license": "ISC" - }, - "node_modules/sha.js": { - "version": "2.4.11", - "license": "(MIT AND BSD-3-Clause)", - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" - } - }, - "node_modules/shasum-object": { - "version": "1.0.0", - "license": "Apache-2.0", - "dependencies": { - "fast-safe-stringify": "^2.0.7" - } + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, "node_modules/shebang-command": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -10126,191 +8758,150 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "engines": { "node": ">=8" } }, - "node_modules/shell-quote": { - "version": "1.7.2", - "license": "MIT" - }, "node_modules/signal-exit": { - "version": "3.0.5", - "license": "ISC" + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, - "node_modules/simple-concat": { - "version": "1.0.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/simple-get": { - "version": "4.0.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "optional": true, - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/simple-get/node_modules/decompress-response": { - "version": "6.0.0", - "license": "MIT", - "optional": true, - "dependencies": { - "mimic-response": "^3.1.0" - }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/simple-get/node_modules/mimic-response": { - "version": "3.1.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/slip": { "version": "1.0.2", - "license": "(MIT OR GPL-2.0)" + "resolved": "https://registry.npmjs.org/slip/-/slip-1.0.2.tgz", + "integrity": "sha512-XrcHe3NAcyD3wO+O4I13RcS4/3AF+S9RvGNj9JhJeS02HyImwD2E3QWLrmn9hBfL+fB6yapagwxRkeyYzhk98g==" }, "node_modules/slugify": { - "version": "1.4.6", - "license": "MIT", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz", + "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", "engines": { "node": ">=8.0.0" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "license": "MIT", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks": { - "version": "2.6.2", - "license": "MIT", - "dependencies": { - "ip": "^1.1.5", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.13.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "6.2.0", - "license": "MIT", - "dependencies": { - "agent-base": "^6.0.2", - "debug": "^4.3.3", - "socks": "^2.6.2" - }, - "engines": { - "node": ">= 10" - } + "node_modules/smob": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/smob/-/smob-1.5.0.tgz", + "integrity": "sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==" }, "node_modules/sortablejs": { "version": "1.15.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz", + "integrity": "sha512-bv9qgVMjUMf89wAvM6AxVvS/4MX3sPeN0+agqShejLU5z5GX4C75ow1O2e5k4L6XItUyAK3gH6AxSbXrOM5e8w==" }, "node_modules/source-map": { - "version": "0.5.7", - "license": "BSD-3-Clause", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "engines": { "node": ">=0.10.0" } }, "node_modules/source-map-support": { "version": "0.5.21", - "license": "MIT", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/sourcemap-codec": { "version": "1.4.8", - "license": "MIT" + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead" + }, + "node_modules/spdx-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/spdx-compare/-/spdx-compare-1.0.0.tgz", + "integrity": "sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A==", + "dependencies": { + "array-find-index": "^1.0.2", + "spdx-expression-parse": "^3.0.0", + "spdx-ranges": "^2.0.0" + } }, "node_modules/spdx-correct": { - "version": "3.1.1", - "license": "Apache-2.0", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" } }, "node_modules/spdx-exceptions": { - "version": "2.3.0", - "license": "CC-BY-3.0" + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==" }, "node_modules/spdx-expression-parse": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, + "node_modules/spdx-expression-validate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-validate/-/spdx-expression-validate-2.0.0.tgz", + "integrity": "sha512-b3wydZLM+Tc6CFvaRDBOF9d76oGIHNCLYFeHbftFXUWjnfZWganmDmvtM5sm1cRwJc/VDBMLyGGrsLFd1vOxbg==", + "dependencies": { + "spdx-expression-parse": "^3.0.0" + } + }, "node_modules/spdx-license-ids": { - "version": "3.0.11", - "license": "CC0-1.0" + "version": "3.0.22", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.22.tgz", + "integrity": "sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ==" + }, + "node_modules/spdx-ranges": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/spdx-ranges/-/spdx-ranges-2.1.1.tgz", + "integrity": "sha512-mcdpQFV7UDAgLpXEE/jOMqvK4LBoO0uTQg0uvXUewmEFhpiZx5yJSZITHB8w1ZahKdhfZqP5GPEOKLyEq5p8XA==" + }, + "node_modules/spdx-satisfies": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/spdx-satisfies/-/spdx-satisfies-5.0.1.tgz", + "integrity": "sha512-Nwor6W6gzFp8XX4neaKQ7ChV4wmpSh2sSDemMFSzHxpTw460jxFYeOn+jq4ybnSSw/5sc3pjka9MQPouksQNpw==", + "dependencies": { + "spdx-compare": "^1.0.0", + "spdx-expression-parse": "^3.0.0", + "spdx-ranges": "^2.0.0" + } }, "node_modules/sprintf-js": { - "version": "1.1.2", - "license": "BSD-3-Clause", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "optional": true }, "node_modules/sshpk": { - "version": "1.16.1", - "license": "MIT", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -10331,45 +8922,40 @@ "node": ">=0.10.0" } }, - "node_modules/ssri": { - "version": "8.0.1", - "license": "ISC", - "dependencies": { - "minipass": "^3.1.1" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/stack-generator": { - "version": "2.0.5", - "license": "MIT", + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/stack-generator/-/stack-generator-2.0.10.tgz", + "integrity": "sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==", "dependencies": { - "stackframe": "^1.1.1" + "stackframe": "^1.3.4" } }, "node_modules/stackframe": { - "version": "1.2.0", - "license": "MIT" + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" }, "node_modules/stacktrace-gps": { - "version": "3.0.4", - "license": "MIT", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/stacktrace-gps/-/stacktrace-gps-3.1.2.tgz", + "integrity": "sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==", "dependencies": { "source-map": "0.5.6", - "stackframe": "^1.1.1" + "stackframe": "^1.3.4" } }, "node_modules/stacktrace-gps/node_modules/source-map": { "version": "0.5.6", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz", + "integrity": "sha512-MjZkVp0NHr5+TPihLcadqnlVoGIoWo4IBHptutGh9wI3ttUYvCG26HkSuDi+K6lsZ25syXJXcctwgyVCt//xqA==", "engines": { "node": ">=0.10.0" } }, "node_modules/stacktrace-js": { "version": "2.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stacktrace-js/-/stacktrace-js-2.0.2.tgz", + "integrity": "sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==", "dependencies": { "error-stack-parser": "^2.0.6", "stack-generator": "^2.0.5", @@ -10378,144 +8964,49 @@ }, "node_modules/statuses": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "engines": { "node": ">= 0.8" } }, - "node_modules/stdout-stream": { - "version": "1.4.1", - "license": "MIT", - "dependencies": { - "readable-stream": "^2.0.1" - } - }, - "node_modules/stream-browserify": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "inherits": "~2.0.4", - "readable-stream": "^3.5.0" - } - }, - "node_modules/stream-browserify/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/stream-combiner2": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" - } - }, - "node_modules/stream-http": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "xtend": "^4.0.2" - } - }, - "node_modules/stream-http/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/stream-splicer": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" - } - }, "node_modules/strictdom": { "version": "1.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/strictdom/-/strictdom-1.0.1.tgz", + "integrity": "sha512-cEmp9QeXXRmjj/rVp9oyiqcvyocWab/HaoN4+bwFeZ7QzykJD6L3yD4v12K1x0tHpqRqVpJevN3gW7kyM39Bqg==" }, "node_modules/string_decoder": { - "version": "1.3.0", - "license": "MIT", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dependencies": { - "safe-buffer": "~5.2.0" + "safe-buffer": "~5.1.0" } }, "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/string-width": { - "version": "4.2.0", - "license": "MIT", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/string.prototype.trimend": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/strip-ansi": { - "version": "6.0.0", - "license": "MIT", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dependencies": { - "ansi-regex": "^5.0.0" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" @@ -10523,14 +9014,16 @@ }, "node_modules/strip-bom": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "engines": { "node": ">=4" } }, "node_modules/strip-css-comments": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-css-comments/-/strip-css-comments-3.0.0.tgz", + "integrity": "sha512-xJwk2yMZ6j+0Clj7ETUfqQ6frsaCIqNGg3zjTVswIt3SbiOsCQgRI1E93hdt/JgGfh5De/sTwxrnrBhhWzMwcg==", "dependencies": { "is-regexp": "^1.0.0" }, @@ -10538,19 +9031,10 @@ "node": ">=0.10.0" } }, - "node_modules/strip-indent": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "min-indent": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "engines": { "node": ">=8" }, @@ -10560,7 +9044,8 @@ }, "node_modules/strip-outer": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", + "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", "dependencies": { "escape-string-regexp": "^1.0.2" }, @@ -10568,16 +9053,18 @@ "node": ">=0.10.0" } }, - "node_modules/subarg": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "minimist": "^1.1.0" + "node_modules/strip-outer/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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" } }, "node_modules/sumchecker": { "version": "3.0.1", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", "dependencies": { "debug": "^4.1.0" }, @@ -10586,128 +9073,58 @@ } }, "node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/syntax-error": { - "version": "1.4.0", - "license": "MIT", - "dependencies": { - "acorn-node": "^1.2.0" - } - }, - "node_modules/tar": { - "version": "6.1.11", - "license": "ISC", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, + "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==", "engines": { - "node": ">= 10" - } - }, - "node_modules/tar-fs": { - "version": "2.1.1", - "license": "MIT", - "optional": true, - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/tar-fs/node_modules/chownr": { - "version": "1.1.4", - "license": "ISC", - "optional": true - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "license": "MIT", - "optional": true, - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" + "node": ">= 0.4" }, - "engines": { - "node": ">=6" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "optional": true, + "node_modules/terser": { + "version": "5.44.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz", + "integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.15.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/tar/node_modules/mkdirp": { - "version": "1.0.4", - "license": "MIT", "bin": { - "mkdirp": "bin/cmd.js" + "terser": "bin/terser" }, "engines": { "node": ">=10" } }, - "node_modules/terser": { - "version": "3.17.0", - "license": "BSD-2-Clause", - "dependencies": { - "commander": "^2.19.0", - "source-map": "~0.6.1", - "source-map-support": "~0.5.10" - }, - "bin": { - "terser": "bin/uglifyjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/terser/node_modules/commander": { "version": "2.20.3", - "license": "MIT" - }, - "node_modules/terser/node_modules/source-map": { - "version": "0.6.1", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "node_modules/text-table": { "version": "0.2.0", - "license": "MIT" - }, - "node_modules/through": { - "version": "2.3.8", - "license": "MIT" + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" }, "node_modules/through2": { "version": "2.0.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" @@ -10718,70 +9135,42 @@ "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" }, - "node_modules/timers-browserify": { - "version": "1.4.2", - "dependencies": { - "process": "~0.11.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, "node_modules/tiny-each-async": { "version": "2.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-2.0.3.tgz", + "integrity": "sha512-5ROII7nElnAirvFn8g7H7MtpfV1daMcyfTGQwsn/x2VtyV+VPiO5CjReCJtWLvoKTDEDmZocf3cNPraiMnBXLA==", "optional": true }, "node_modules/tmp": { - "version": "0.2.1", - "license": "MIT", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", + "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", "optional": true, - "dependencies": { - "rimraf": "^3.0.0" - }, "engines": { - "node": ">=8.17.0" + "node": ">=14.14" } }, "node_modules/tmp-promise": { - "version": "3.0.2", - "license": "MIT", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", + "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", "optional": true, "dependencies": { "tmp": "^0.2.0" } }, - "node_modules/tmp/node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "optional": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/to-readable-stream": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", "engines": { "node": ">=6" } }, "node_modules/to-regex-range": { "version": "5.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dependencies": { "is-number": "^7.0.0" }, @@ -10791,34 +9180,24 @@ }, "node_modules/toidentifier": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "engines": { "node": ">=0.6" } }, "node_modules/touch": { - "version": "3.1.0", - "license": "ISC", - "dependencies": { - "nopt": "~1.0.10" - }, + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", "bin": { "nodetouch": "bin/nodetouch.js" } }, - "node_modules/touch/node_modules/nopt": { - "version": "1.0.10", - "license": "MIT", - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - } - }, "node_modules/tough-cookie": { "version": "2.5.0", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" @@ -10827,16 +9206,10 @@ "node": ">=0.8" } }, - "node_modules/tough-cookie/node_modules/punycode": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/transform-ast": { "version": "2.4.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/transform-ast/-/transform-ast-2.4.4.tgz", + "integrity": "sha512-AxjeZAcIOUO2lev2GDe3/xZ1Q0cVGjIMk5IsriTy8zbWlsEnjeB025AhkhBJHoy997mXpLd4R+kRbvnnQVuQHQ==", "dependencies": { "acorn-node": "^1.3.0", "convert-source-map": "^1.5.1", @@ -10847,37 +9220,18 @@ "nanobench": "^2.1.1" } }, - "node_modules/transform-ast/node_modules/is-buffer": { - "version": "2.0.5", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/trim-newlines": { - "version": "3.0.1", - "license": "MIT", - "engines": { - "node": ">=8" + "node_modules/transform-ast/node_modules/magic-string": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.23.2.tgz", + "integrity": "sha512-oIUZaAxbcxYIp4AyLafV6OVKoB3YouZs0UTCJ8mOKBHNyJgGDaMJ4TgA+VylJh6fx7EQCC52XkbURxxG9IoJXA==", + "dependencies": { + "sourcemap-codec": "^1.4.1" } }, "node_modules/trim-repeated": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", "dependencies": { "escape-string-regexp": "^1.0.2" }, @@ -10885,26 +9239,18 @@ "node": ">=0.10.0" } }, - "node_modules/true-case-path": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-2.2.1.tgz", - "integrity": "sha512-0z3j8R7MCjy10kc/g+qg7Ln3alJTodw9aDuVWZa3uiWqfuBMKeAeP2ocWcxoyM3D73yz3Jt/Pu4qPr4wHSdB/Q==" - }, - "node_modules/tty-browserify": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/tunnel": { - "version": "0.0.6", - "license": "MIT", - "optional": true, + "node_modules/trim-repeated/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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + "node": ">=0.8.0" } }, "node_modules/tunnel-agent": { "version": "0.6.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", "dependencies": { "safe-buffer": "^5.0.1" }, @@ -10914,11 +9260,13 @@ }, "node_modules/tweetnacl": { "version": "0.14.5", - "license": "Unlicense" + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" }, "node_modules/type-check": { "version": "0.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -10927,9 +9275,9 @@ } }, "node_modules/type-fest": { - "version": "0.13.1", - "license": "(MIT OR CC0-1.0)", - "optional": true, + "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==", "engines": { "node": ">=10" }, @@ -10937,81 +9285,85 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/type-name": { - "version": "2.0.2", - "license": "MIT" - }, - "node_modules/typedarray": { - "version": "0.0.6", - "license": "MIT" - }, "node_modules/typedarray-to-buffer": { "version": "3.1.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", "dependencies": { "is-typedarray": "^1.0.0" } }, - "node_modules/uglifyify": { - "version": "5.0.2", - "license": "MIT", - "dependencies": { - "convert-source-map": "~1.1.0", - "minimatch": "^3.0.2", - "terser": "^3.7.5", - "through": "~2.3.4", - "xtend": "^4.0.1" - } + "node_modules/ua-is-frozen": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ua-is-frozen/-/ua-is-frozen-0.1.2.tgz", + "integrity": "sha512-RwKDW2p3iyWn4UbaxpP2+VxwqXh0jpvdxsYpZ5j/MLLiQOfbsV5shpgQiw93+KMYQPcteeMQ289MaAFzs3G9pw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ] }, - "node_modules/uglifyify/node_modules/convert-source-map": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/uglifyify/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", + "node_modules/ua-parser-js": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-2.0.7.tgz", + "integrity": "sha512-CFdHVHr+6YfbktNZegH3qbYvYgC7nRNEUm2tk7nSFXSODUu4tDBpaFpP1jdXBUOKKwapVlWRfTtS8bCPzsQ47w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + }, + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + } + ], "dependencies": { - "brace-expansion": "^1.1.7" + "detect-europe-js": "^0.1.2", + "is-standalone-pwa": "^0.1.1", + "ua-is-frozen": "^0.1.2" + }, + "bin": { + "ua-parser-js": "script/cli.js" }, "engines": { "node": "*" } }, - "node_modules/umd": { - "version": "3.0.3", - "license": "MIT", - "bin": { - "umd": "bin/cli.js" - } - }, - "node_modules/undeclared-identifiers": { - "version": "1.1.3", - "license": "Apache-2.0", - "dependencies": { - "acorn-node": "^1.3.0", - "dash-ast": "^1.0.0", - "get-assigned-identifiers": "^1.2.0", - "simple-concat": "^1.0.0", - "xtend": "^4.0.1" - }, - "bin": { - "undeclared-identifiers": "bin.js" - } - }, "node_modules/undefsafe": { "version": "2.0.5", - "license": "MIT" + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==" + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==" }, "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "license": "MIT", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", "engines": { "node": ">=4" } }, "node_modules/unicode-match-property-ecmascript": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", "dependencies": { "unicode-canonical-property-names-ecmascript": "^2.0.0", "unicode-property-aliases-ecmascript": "^2.0.0" @@ -11021,36 +9373,25 @@ } }, "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "license": "MIT", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", "engines": { "node": ">=4" } }, "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.0.0", - "license": "MIT", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", "engines": { "node": ">=4" } }, - "node_modules/unique-filename": { - "version": "1.1.1", - "license": "ISC", - "dependencies": { - "unique-slug": "^2.0.0" - } - }, - "node_modules/unique-slug": { - "version": "2.0.2", - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4" - } - }, "node_modules/unique-string": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", "dependencies": { "crypto-random-string": "^2.0.0" }, @@ -11059,19 +9400,51 @@ } }, "node_modules/universalify": { - "version": "0.1.2", - "license": "MIT", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" } }, "node_modules/unix-crypt-td-js": { "version": "1.1.4", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/unix-crypt-td-js/-/unix-crypt-td-js-1.1.4.tgz", + "integrity": "sha512-8rMeVYWSIyccIJscb9NdCfZKSRBKYTeVnwmiRYT2ulE3qd1RaDQ0xQDP+rI3ccIWbhu/zuo5cgN8z73belNZgw==" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "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.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } }, "node_modules/update-notifier": { "version": "5.1.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", + "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", "dependencies": { "boxen": "^5.0.0", "chalk": "^4.1.0", @@ -11095,93 +9468,23 @@ "url": "https://github.com/yeoman/update-notifier?sponsor=1" } }, - "node_modules/update-notifier/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", - "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/update-notifier/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/update-notifier/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/update-notifier/node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/update-notifier/node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/upper-case": { "version": "1.1.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", + "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==" }, "node_modules/uri-js": { - "version": "4.4.0", - "license": "BSD-2-Clause", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dependencies": { "punycode": "^2.1.0" } }, - "node_modules/uri-js/node_modules/punycode": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/url": { - "version": "0.11.0", - "license": "MIT", - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, "node_modules/url-parse-lax": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", "dependencies": { "prepend-http": "^2.0.0" }, @@ -11189,40 +9492,28 @@ "node": ">=4" } }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "license": "MIT" - }, - "node_modules/util": { - "version": "0.12.3", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "safe-buffer": "^5.1.2", - "which-typed-array": "^1.1.2" - } - }, "node_modules/util-deprecate": { "version": "1.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { - "version": "3.4.0", - "license": "MIT", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "bin": { - "uuid": "bin/uuid" + "uuid": "dist/bin/uuid" } }, "node_modules/v8-compile-cache": { - "version": "2.3.0", - "license": "MIT" + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.4.0.tgz", + "integrity": "sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw==" }, "node_modules/validate-npm-package-license": { "version": "3.0.4", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" @@ -11230,68 +9521,26 @@ }, "node_modules/verror": { "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", "engines": [ "node >=0.6.0" ], - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, - "node_modules/vm-browserify": { - "version": "1.1.2", - "license": "MIT" - }, - "node_modules/watchify": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "^3.1.0", - "browserify": "^17.0.0", - "chokidar": "^3.4.0", - "defined": "^1.0.0", - "outpipe": "^1.1.0", - "through2": "^4.0.2", - "xtend": "^4.0.2" - }, - "bin": { - "watchify": "bin/cmd.js" - }, - "engines": { - "node": ">= 8.10.0" - } - }, - "node_modules/watchify/node_modules/readable-stream": { - "version": "3.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/watchify/node_modules/through2": { - "version": "4.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "readable-stream": "3" - } - }, - "node_modules/webworkify": { - "version": "1.5.0", - "license": "MIT" + "node_modules/verror/node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" }, "node_modules/which": { "version": "2.0.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dependencies": { "isexe": "^2.0.0" }, @@ -11303,78 +9552,14 @@ } }, "node_modules/which-module": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/which-typed-array": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.2", - "call-bind": "^1.0.0", - "es-abstract": "^1.18.0-next.1", - "foreach": "^2.0.5", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.1", - "is-typed-array": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wide-align": { - "version": "1.1.3", - "license": "ISC", - "optional": true, - "dependencies": { - "string-width": "^1.0.2 || 2" - } - }, - "node_modules/wide-align/node_modules/ansi-regex": { - "version": "3.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/node_modules/string-width": { - "version": "2.1.1", - "license": "MIT", - "optional": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/node_modules/strip-ansi": { - "version": "4.0.0", - "license": "MIT", - "optional": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" }, "node_modules/widest-line": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", "dependencies": { "string-width": "^4.0.0" }, @@ -11384,61 +9569,42 @@ }, "node_modules/wolfy87-eventemitter": { "version": "5.2.9", - "license": "Unlicense" + "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", + "integrity": "sha512-P+6vtWyuDw+MB01X7UeF8TaHBvbCovf4HPEMF/SV7BdDc1SMTiBy13SRD71lQh4ExFTG1d/WNzDGDCyOKSMblw==" }, "node_modules/word-wrap": { - "version": "1.2.3", - "license": "MIT", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "engines": { "node": ">=0.10.0" } }, "node_modules/wrap-ansi": { - "version": "6.2.0", - "license": "MIT", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, "node_modules/wrappy": { "version": "1.0.2", - "license": "ISC" + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write-file-atomic": { "version": "3.0.3", - "license": "ISC", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "dependencies": { "imurmurhash": "^0.1.4", "is-typedarray": "^1.0.0", @@ -11448,7 +9614,8 @@ }, "node_modules/ws": { "version": "8.6.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.6.0.tgz", + "integrity": "sha512-AzmM3aH3gk0aX7/rZLYvjdvZooofDu3fFOzGqcSnQ1tOcTWwhM/o+q++E8mAyVVIyUdajrkzWUGftaVSDLn1bw==", "engines": { "node": ">=10.0.0" }, @@ -11467,36 +9634,45 @@ }, "node_modules/xdg-basedir": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", "engines": { "node": ">=8" } }, "node_modules/xmlbuilder": { - "version": "9.0.7", - "license": "MIT", + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", "engines": { - "node": ">=4.0" + "node": ">=8.0" } }, "node_modules/xtend": { "version": "4.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "engines": { "node": ">=0.4" } }, "node_modules/y18n": { - "version": "4.0.1", - "license": "ISC" + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } }, "node_modules/yallist": { - "version": "4.0.0", - "license": "ISC" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "node_modules/yargs": { "version": "17.5.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", + "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -11511,117 +9687,32 @@ } }, "node_modules/yargs-parser": { - "version": "18.1.3", - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/yargs/node_modules/cliui": { - "version": "7.0.4", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/yargs/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/yargs/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/string-width/node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/yargs/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "21.0.1", - "license": "ISC", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "engines": { "node": ">=12" } }, "node_modules/yauzl": { "version": "2.10.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" } + }, + "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==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 983c9fd7..9bc10d3d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.27.2", + "version": "1.31.2", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" @@ -15,58 +15,58 @@ ], "repository": { "type": "git", - "url": "https://github.com/jean-emmanuel/open-stage-control" + "url": "https://framagit.org/jean-emmanuel/open-stage-control" }, "homepage": "http://openstagecontrol.ammd.net/", "license": "GPL-3.0", "dependencies": { "@babel/core": "7.18.0", - "@babel/eslint-parser": "7.17.0", - "@babel/plugin-proposal-object-rest-spread": "7.18.0", - "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.18.0", - "@electron/remote": "2.0.8", - "ace-builds": "1.24.1", + "@electron/packager": "18.4.4", + "@electron/remote": "2.1.3", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^28.0.6", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^16.0.1", + "@rollup/plugin-terser": "^0.4.4", + "ace-builds": "1.39.0", "ansi-html": "0.0.9", "babelify": "10.0.0", "balanced-match": "2.0.0", - "bonjour": "github:jean-emmanuel/bonjour", - "browserify": "17.0.0", + "bonjour": "git+https://framagit.org/jean-emmanuel/bonjour.git", "chokidar": "3.5.3", "chroma-js": "2.4.2", "core-js": "3.22.5", "cpr": "3.0.1", "deep-extend": "0.6.0", "electron-localshortcut": "3.2.1", - "electron-packager": "15.2.0", "electron-packager-plugin-non-proprietary-codecs-ffmpeg": "1.0.2", "env-paths": "2.2.1", "eslint": "8.16.0", - "exorcist": "2.0.0", "fastdom": "1.0.10", "file-saver": "2.0.5", - "gyronorm": "2.0.6", "http-auth": "4.1.9", "json5": "2.2.1", "jsondiffpatch": "0.4.1", "keyboardjs": "2.6.4", - "licensify": "3.1.3", - "loop-protect": "github:jean-emmanuel/loop-protect#v1.0.1", "minimatch": "5.1.0", "nanohtml": "1.10.0", "nanoid": "3.3.4", "nanomorph": "5.4.3", "node-forge": "1.3.1", "node-mouse": "0.0.2", - "node-sass": "9.0.0", "nodemon": "2.0.16", "nosleep.js": "0.12.0", "open": "8.4.0", - "osc": "github:jean-emmanuel/osc.js", + "osc": "2.4.5", "python-shell": "3.0.1", "qrcode": "1.5.1", "replacestream": "4.0.3", - "sanitize-html": "1.27.5", + "rollup": "4.50.1", + "rollup-plugin-copy": "3.5.0", + "rollup-plugin-license": "^3.6.0", + "rollup-plugin-node-externals": "^8.1.1", + "sass": "1.89.2", "scope-css": "1.2.1", "screenfull": "5.2.0", "semver": "7.3.7", @@ -74,42 +74,37 @@ "sortablejs": "1.15.0", "source-map-support": "0.5.21", "stacktrace-js": "2.0.2", - "through": "2.3.8", - "uglifyify": "5.0.2", - "webworkify": "1.5.0", + "ua-parser-js": "2.0.7", "ws": "8.6.0", "yargs": "17.5.1" }, "optionalDependencies": { - "electron": "15.1.0", + "electron": "36.9.5", "electron-installer-debian": "3.1.0", - "electron-installer-redhat": "3.4.0" + "electron-installer-redhat": "git+https://framagit.org/jean-emmanuel/electron-installer-redhat.git" }, "scripts": { "postinstall": "echo '\\033[36m=> Dependencies installed successfully. Run \"npm run build\" to build the assets.\\033[0m\n'", "start": "electron app/", - "build": "npm run build-css && npm run build-js && node scripts/copy-assets.js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'", + "build": "npm run build-css && npm run build-js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'", "package": "node scripts/package.js", "package-node": "node scripts/package-node.js", - "deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png", - "rpm64": "electron-installer-redhat --src dist/open-stage-control-linux-x64/ --arch x86_64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png", + "deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/ --icon resources/images/logo.png", + "rpm64": "electron-installer-redhat --src dist/open-stage-control-linux-x64/ --arch x86_64 --dest dist/ --icon resources/images/logo.png", "build-css": "node scripts/build-css.js", - "build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js", - "build-client-js": "node scripts/build-client.js", - "build-launcher-js": "node scripts/build-launcher.js", - "build-server-js": "node scripts/build-server.js", - "watch-client": "npm run build-client-js -- --watch", - "watch-browser": "npm run build-client-js -- --watch", "watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload\"", - "watch-server": "nodemon --watch src/server/ -e js -x \"npm run build-server-js\"", - "watch-launcher": "nodemon --watch src/launcher/ -e js -x \"npm run build-launcher-js\"", - "build-docs": "node scripts/build-widgets-reference.js > resources/docs/docs/widgets/properties-reference.md && cd resources && python3 -m mkdocs build", - "test": "eslint src && npm run build && node tests/test.js" + "build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js", + "build-client-js": "rollup -c scripts/client.rollup.config.js", + "watch-client": "npm run build-client-js -- --watch", + "build-server-js": "rollup -c scripts/server.rollup.config.js", + "watch-server": "npm run build-server-js -- --watch", + "build-launcher-js": "rollup -c scripts/launcher.rollup.config.js", + "watch-launcher": "npm run build-launcher-js -- --watch", + "build-docs": "rollup -c scripts/docs.rollup.config.js && node src/docs/widgets-reference.js > resources/docs/docs/widgets/properties-reference.md && cd resources && python3 -m mkdocs build", + "lint": "eslint src --ext mjs", + "test": "npm run lint && npm run build" }, "engines": { - "node": ">=16 <=20" - }, - "devDependencies": { - "watchify": "4.0.0" + "node": ">=16" } } diff --git a/resources/docs/docs/client-options.md b/resources/docs/docs/client-options.md index 41b046ae..0a6e4a7b 100644 --- a/resources/docs/docs/client-options.md +++ b/resources/docs/docs/client-options.md @@ -18,6 +18,8 @@ Client options can be set either with the server's `--client-options` option, or | altTraversing | 1 / 0 | 0 | set to 1 to enable an alternative traversing behavior for toggle buttons (traversing gestures on toggle buttons will change their values in only one way depending on the first touched button's state) | | virtualKeyboard | 1 / 0 | 0 | (desktop only) set to 1 to enable the virtual keyboard by default | | notifications | 1 / 0 | 1 | set to 0 to hide notifications by default | +| title | string | '' | replace window title | +| noWarning | 1 / 0 | 0 | set to 0 to disable unsaved session warnings | Example: diff --git a/resources/docs/docs/credits.md b/resources/docs/docs/credits.md index bbdeb473..cdbd8df7 100644 --- a/resources/docs/docs/credits.md +++ b/resources/docs/docs/credits.md @@ -1,19 +1,17 @@ ## License -Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2014-2022. -This program is a free software released under the [GNU/GPL3](https://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license. +Copyleft © Jean-Emmanuel Doucet 2014-2025. +This program is a free software released under the [GNU/GPL3](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE) license. ## Dependencies -Open Stage Control relies on several other free softwares: +Open Stage Control relies on several other free softwares listed in [package.json](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/package.json). -https://github.com/jean-emmanuel/open-stage-control/network/dependencies - -The default theme is based on [Nord](https://www.nordtheme.com/), some UI components are inspired by the [Atom](https://atom.io/) text editor. +The default theme was based on [Nord](https://www.nordtheme.com/), some UI components were inspired by the text editor formerly known as Atom (now [Pulsar](https://pulsar-edit.dev/)). ## Contributors -https://github.com/jean-emmanuel/open-stage-control/graphs/contributors +[Jean-Emmanuel](https://framagit.org/jean-emmanuel), [MartinHN](https://github.com/MartinHN), [Eric Theise](https://github.com/erictheise), [danielappelt](https://github.com/erictheise), [ritschwumm](https://github.com/ritschwumm), [matthijskooijman](https://github.com/matthijskooijman), [WillyKaze](https://github.com/WillyKaze), [stefanboca](https://github.com/stefanboca), [pixelnerve](https://github.com/pixelnerve), [AdamAdamsMusic](https://github.com/AdamAdamsMusic), [wicast](https://github.com/wicast), [kdallafior](https://github.com/kdallafior), [brunetton](https://github.com/brunetton), [cyberic99](https://github.com/cyberic99), [kdejaeger](https://github.com/kdejaeger), [trebmuh](https://github.com/trebmuh), [MagnusReichel](https://github.com/MagnusReichel), [jpcima](https://github.com/jpcima), [t1st3](https://github.com/t1st3") ## Infrastructure supports diff --git a/resources/docs/docs/custom-module/custom-module.md b/resources/docs/docs/custom-module/custom-module.md index 3615e4fc..985c5eed 100644 --- a/resources/docs/docs/custom-module/custom-module.md +++ b/resources/docs/docs/custom-module/custom-module.md @@ -76,7 +76,7 @@ The module is executed in a restricted context, only a few globals are available ---- #### `app` -[`Event Emitter`](https://nodejs.org/api/events.html#events_class_eventemitter), useful for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `client` (object: `{address, id}`) +[`Event Emitter`](https://nodejs.org/api/events.html#events_class_eventemitter), useful for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/src/server/node/ipc/callbacks.mjs), callbacks are called with 2 arguments: `data` (object) and `client` (object: `{address, id}`) ---- @@ -153,7 +153,7 @@ This function can be used to load native node modules or locally installed modul #### `tcpServer` -Raw access to the server's [TCP backend](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/osc/tcp.js). Can be used to monitor the state of TCP connections: +Raw access to the server's [TCP backend](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/src/server/node/osc/tcp.mjs). Can be used to monitor the state of TCP connections: ```js for (var ip in tcpServer.clients) { @@ -167,6 +167,10 @@ for (var ip in tcpServer.clients) { ``` +#### `restartMidiBackend()` + +This function can be used to restart the midi backend (if already running) without restarting the server + #### Other javascript globals - `console` diff --git a/resources/docs/docs/getting-started/introduction.md b/resources/docs/docs/getting-started/introduction.md index b1a9171d..bcff82e9 100644 --- a/resources/docs/docs/getting-started/introduction.md +++ b/resources/docs/docs/getting-started/introduction.md @@ -18,14 +18,14 @@ The **server** can run on all [platforms supported by Electron](https://www.elec The **client** is compatible with the following browsers: - Firefox: version `75` and higher -- Chromium / Chrome: version `60` and higher +- Chromium / Chrome: version `75` and higher -iOS devices must be of version `10.3` or higher. +iOS devices must be of version `11` or higher. ## Installation -??? example "Linux 64bit" +=== "Linux 64bit" **Ubuntu / Debian** @@ -41,19 +41,28 @@ iOS devices must be of version `10.3` or higher. - Extract it in the location of your choice - The file inside it named `open-stage-control` is the app's main executable -??? example "Mac 64bit" +=== "Mac 64bit" - - [Download](/download) `open-stage-control-VERSION-osx.zip` + - [Download](/download) `open-stage-control-VERSION-osx-x64.zip` - Extract it in the location of your choice - Drag `open-stage-control.app` in your `Application` folder -??? example "Windows 64bit" + +=== "Mac Silicon (arm)" + + - [Download](/download) `open-stage-control-VERSION-osx-arm.zip` + - Extract it in the location of your choice + - Drag `open-stage-control.app` in your `Application` folder + + See [https://disable-gatekeeper.github.io/](https://disable-gatekeeper.github.io/) to workaround the "damaged and can't be opened" error. + +=== "Windows 64bit" - [Download](/download) `open-stage-control-VERSION-win32-x64.zip` - Extract it in the location of your choice - The file inside it named `open-stage-control.exe` is the app's main executable -??? example "Other systems" +=== "Other systems" - Install [Node.js](https://nodejs.org/en/download/package-manager/) - Download `open-stage-control-VERSION-node.zip` diff --git a/resources/docs/docs/getting-started/running-from-sources.md b/resources/docs/docs/getting-started/running-from-sources.md index aab53eba..dd4a90c0 100644 --- a/resources/docs/docs/getting-started/running-from-sources.md +++ b/resources/docs/docs/getting-started/running-from-sources.md @@ -2,7 +2,7 @@ Running the app from the sources slightly differs from using prebuilt binaries: ## Requirements -- [Node.js](https://nodejs.org/en/#download) (v16) +- [Node.js](https://nodejs.org/en/#download) - [git](https://git-scm.com/downloads) @@ -12,7 +12,7 @@ Running the app from the sources slightly differs from using prebuilt binaries: **Download** ```bash -git clone https://github.com/jean-emmanuel/open-stage-control +git clone https://framagit.org/jean-emmanuel/open-stage-control.git cd open-stage-control/ # uncomment next line if you want the latest release # instead of the current development version @@ -87,8 +87,23 @@ This will build the app in `dist/open-stage-control-PLATFORM-ARCH`. Building the app for windows from a linux system requires wine to be installed. -## Debian/Ubuntu installer +## Debian / Ubuntu and RPM installers -``` -npm run deb64 -``` +=== "Debian / Ubuntu" + + ``` + npm run deb64 + ``` + +=== "RPM" + + ``` + npm run rpm + ``` + + +## Build script on Mac Silicon + +This user-contributed script can be used to build open stage control on recent Macs: + +https://github.com/rewgs/osc-as diff --git a/resources/docs/docs/midi/midi-configuration.md b/resources/docs/docs/midi/midi-configuration.md index d7e7a8fc..feb3984a 100644 --- a/resources/docs/docs/midi/midi-configuration.md +++ b/resources/docs/docs/midi/midi-configuration.md @@ -94,7 +94,11 @@ Send program changes with a `-1` offset to match some software/hardware implemen **`note_off_velocity`** -Enable receiving noteOff messages with a velocity and on a different address than noteOn messages. +Use `/note_on` for noteOn messages and `/note_off` for noteOff messages instead of the defaut `/note` and velocity 0 for note off. + +**`auto_note_off`** + +Prevent converting outgoing noteOn messages with velocity 0 to noteOff messages. **`device_name:virtual`** (*Linux / Mac only*): creates a virtual midi device with one input port and one output port diff --git a/resources/docs/docs/remote-control.md b/resources/docs/docs/remote-control.md index de66127b..a25fb9db 100644 --- a/resources/docs/docs/remote-control.md +++ b/resources/docs/docs/remote-control.md @@ -1,6 +1,6 @@ # Remote control -When osc messages are received, the default behavior is to update the value of all widgets that match the address and preArgs. Additionally, Open Stage Control responds to some general osc commands. +When osc messages are received, the default behavior is to update the value of all widgets that match the address and preArgs. Additionally, Open Stage Control clients respond to some general osc commands. !!! note "Multi-client setup" These commands are interpreted by each client connected to the server so there might be more than one reply. Using a custom module is the only way to send a message to a single client. diff --git a/resources/docs/docs/user-interface/editor.md b/resources/docs/docs/user-interface/editor.md index 4963ebc8..bfa62544 100644 --- a/resources/docs/docs/user-interface/editor.md +++ b/resources/docs/docs/user-interface/editor.md @@ -101,7 +101,9 @@ Multiple widgets can be edited at once. | ++down++ | Select current widget's next sibling | | ++left++ | Select current widget's parent | | ++right++ | Select current widget's first child | - | ++t++ | Show selected widget in the project tree | + | ++t++ | Show selected widget(s) in the project tree | + | ++y++ | Show selected widget(s) in the session | + | ++ctrl+f++ | Focus search input in project tree | | ++"Home"++ | Send selected widget to back | | ++"Page Up"++ | Send selected widget farther | | ++"Page Down"++ | Bring selected widget closer | @@ -142,6 +144,8 @@ Multiple widgets can be edited at once. | ++left++ | Select current widget's parent | | ++right++ | Select current widget's first child | | ++t++ | Show selected widget in the project tree | + | ++y++ | Show selected widget(s) in the session | + | ++cmd+f++ | Focus search input in project tree | | ++"Home"++ | Send selected widget to back | | ++"Page Up"++ | Send selected widget farther | | ++"Page Down"++ | Bring selected widget closer | diff --git a/resources/docs/docs/user-interface/launcher.md b/resources/docs/docs/user-interface/launcher.md index 13640d63..87ba9d67 100644 --- a/resources/docs/docs/user-interface/launcher.md +++ b/resources/docs/docs/user-interface/launcher.md @@ -7,17 +7,22 @@ - New window: open a new client window (hidden when stopped) - Load: load server configuration from file - Save / Save as: save server configuration to file -- List MIDI devices: list available MIDI devices in the console +- MIDI + - List devices: list available MIDI devices in the console + - Restart backend: restart midi backend without restarting the server - Console: - Clear: clear console - Autoscroll: enable/disable console autoscroll - Check for update at startup: enable/disable this feature -- Autostart: start the server automatically when launcher is started -- Always on top: pin the launcher window above other the windows +- Launcher + - Autostart: start the server automatically when launcher is started + - Always on top: pin the launcher window above other the windows + - Use tray: enable tray icon and menu + - Start minimized: starts the launcher minimized (or hidden in tray) The "play/stop" icon can be used to start and stop the server without opening the menu. -## 2. Configuration form +## 2. Configuration form Each server option is displayed here. When clicking on an option's label, a short help will be printed in the console. When an option is not correctly set, its label will turn to orange and an error message will be printed in the console. @@ -25,6 +30,10 @@ Each server option is displayed here. When clicking on an option's label, a shor The console displays various information, runtime errors and server debug messages. +## Tray icon + +If `Use tray` is set, the launcher comes with a system tray icon that keeps the launcher alive when closed if there is at least one client window opened or if the server is running. Its context menu can be used to toggle the launcher's visibility and access some of the launcher's menu actions. + ## Keyboard shortcuts === "Linux" diff --git a/resources/docs/docs/widgets/canvas.md b/resources/docs/docs/widgets/canvas.md index 80695f42..dffea008 100644 --- a/resources/docs/docs/widgets/canvas.md +++ b/resources/docs/docs/widgets/canvas.md @@ -2,7 +2,7 @@ The canvas widget allows creating custom widgets with user-defined drawings and touch reactions. -It has two special properties, `touch` and `draw`, that work like the `script` property : they are used to defined scripts that will be executed when specific events occurs. +It has dedicated scripting properties (`onTouch`, `onDraw` and `onResize`) that work like the `onValue` property : they are used to defined scripts that will be executed when specific events occurs. This widget requires a good understanding of the javascript [Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) and of the javascript programming language in general. @@ -30,7 +30,7 @@ If this property is enabled, the widget will be redrawn at a fixed rate even if This script is executed when the widget is touched, when it is released, and during the movement of the pointer while the widget is touched. -This script has access to the same variables and functions as the `script` property (except the event-specific ones), plus the following: +This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following: - `value`: widget value - `width`: canvas width in pixels @@ -42,6 +42,7 @@ This script has access to the same variables and functions as the `script` prope - `targetTagName`: tag name of the html element under the pointer - `offsetX`, `offsetY`: touch coordinates in pixels, relative to the html element under the pointer - `movementX`, `movementY`: movement of the pointer in pixels since the last event + - `pageX`, `pageY`: touch coordinates in pixels, relative to the page - `pointerId`: unique identifier used to differentiate fingers in multitouch situation - `altKey`, `ctrlKey`, `shiftKey`: keyboard modifier states - `force`: amount of pressure applied to the touch surface between `0` and `1` (see [Touch.force](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)). Equals `0` if the API is not supported or if no pressure information is found. @@ -58,7 +59,7 @@ This script has access to the same variables and functions as the `script` prope This script is executed when the widget should be redrawn, which is when it's touched and when it receives a value. -This script has access to the same variables and functions as the `script` property (except the event-specific ones), plus the following: +This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following: - `value`: widget value - `width`: canvas width in pixels @@ -66,11 +67,13 @@ This script has access to the same variables and functions as the `script` prope - `ctx`: [canvas rendering context](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) of the widget - `cssVars`: object containing the computed value of some of the widget's style properties such as `colorWidget`, `alphaFill`, `padding`, etc +In this script, all osc messages emissions are prevented and changing the value of a widget won't trigger widget synchronisation / scripts / advanced syntaxes updates. + ### `onResize` This script is executed when the widget has resized, before it is redrawn. -This script has access to the same variables and functions as the `script` property (except the event-specific ones), plus the following: +This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following: - `value`: widget value - `width`: canvas width in pixels diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md deleted file mode 100644 index 6729a443..00000000 --- a/resources/docs/docs/widgets/properties-reference.md +++ /dev/null @@ -1,967 +0,0 @@ - - -## Common - -??? api "
Generic properties#
" - Properties shared by all widgets - - - - -=== "widget" - - | property | type |default | description | - | --- | --- | --- | --- | - |
lock#
| `boolean` | false | Set to `true` to prevent modifying this widget with the editor. This will not prevent deleting the widget or moving it from a container to another. | - |
type#
| `string` | "auto" | Widget type | - |
id#
| `string` | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages (avoid doing so unless the widgets expect the exact same values). | - |
visible#
| `boolean` | true | Set to `false` to hide the widget. | - |
interaction#
| `boolean` | true | Set to `false` to disable pointer interactions. | - |
comments#
| `string` | "" | User comments. | - - -=== "geometry" - - | property | type |default | description | - | --- | --- | --- | --- | - |
left#
| `number`|
`string` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).

Otherwise, the widget will be positioned at absolute coordinates | - |
top#
| `number`|
`percentage` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).

Otherwise, the widget will be positioned at absolute coordinates | - |
width#
| `number`|
`percentage` | "auto" | Widget width | - |
height#
| `number`|
`percentage` | "auto" | Widget height | - |
expand#
| `boolean`|
`number` | false | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. | - - -=== "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
colorText#
| `string` | "auto" | Text color. Set to "auto" to inherit from parent widget. | - |
colorWidget#
| `string` | "auto" | Widget's default accent color. Set to "auto" to inherit from parent widget. | - |
colorStroke#
| `string` | "auto" | Stroke color. Set to "auto" to use `colorWidget`. | - |
colorFill#
| `string` | "auto" | Fill color. Set to "auto" to use `colorWidget`. | - |
alphaStroke#
| `number` | "auto" | Stroke color opacity. | - |
alphaFillOff#
| `number` | "auto" | Fill color opacity (off). | - |
alphaFillOn#
| `number` | "auto" | Fill color opacity (on). | - |
lineWidth#
| `number` | "auto" | Stroke width. | - |
borderRadius#
| `number`|
`string` | "auto" | Border radius expressed as a number or a css string. This property may not work for all widgets. | - |
padding#
| `number` | "auto" | Inner spacing. | - |
html#
| `string` | "" | Custom html content to be inserted in the widget (before the widget's content). Elements are all unstyled by default, `css` should be used to customize their appearance.

The code is automatically wrapped in <div class="html"></div>

Allowed HTML tags:

  h1-6, blockquote, p, a, ul, ol, nl, li,

  b, i, strong, em, strike, code, hr, br, div,

  table, thead, img, caption, tbody, tr, th, td, pre

Allowed attributes:

  <*>: class, style, title, name

  <img>: src, width, height | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` | - - -=== "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `*` | "" | Define the widget's value depending on other widget's values / properties using the advanced property syntax | - |
default#
| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. | - |
linkId#
| `string`|
`array` | "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.

When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)

When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) | - - -=== "osc" - - | property | type |default | description | - | --- | --- | --- | --- | - |
address#
| `string` | "auto" | OSC address for sending / receiving messages, it must start with a slash (`/`)

By default ("auto"), the widget's id is used: `/widget_id` | - |
preArgs#
| `*`|
`array` | "" | A value or array of values that will be prepended to the widget's value in the OSC messages it sends.

Incoming messages must match these to affect by the widget. | - |
typeTags#
| `string` | "" | Defines the osc argument types, one letter per argument (including preArgs)
- If empty, the types are inferred automatically from the values (with numbers casted to floats by default)
- If there are more arguments than type letters, the last type is used for the extra arguments

See OSC 1.0 specification for existing typetags | - |
decimals#
| `integer` | 2 | Defines the number of decimals to send. | - |
target#
| `string`|
`array`|
`null` | "" | This defines the targets of the widget's OSC messages
- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:portA", "ip:portB"]`
- If midi is enabled, targets can be `midi:device_name`
- If no target is set, messages can still be sent if the server has default targets | - |
ignoreDefaults#
| `boolean` | false | Set to `true` to ignore the server's default targets | - |
bypass#
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message | - - -=== "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onCreate#
| `script` | "" | Script executed when the widget (and its children) is created. See documentation. | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation. | -## Basics - -??? api "
button#
" - On / off button. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | - |
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | - |
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely
- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/search?m=free&s=solid
- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` | - |
vertical#
| `boolean` | false | Set to `true` to display the text vertically | - |
wrap#
| `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.

Choices: `false`, `true`, `soft` | - - === "button" - - | property | type |default | description | - | --- | --- | --- | --- | - |
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message. Ignored if `mode` is `momentary`. | - |
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. Ignored if `mode` is `momentary` or `tap`. | - |
mode#
| `string` | "toggle" | Interaction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `momentary` (no release, no value sent with the address)
- `tap` (no release, sends `on` as value)

Choices: `toggle`, `push`, `momentary`, `tap` | - |
doubleTap#
| `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap | - |
decoupled#
| `boolean` | false | Set to `true` make the local feedback update only when it receives a value from an osc/midi message that matches the `on` or `off` property.

When `decoupled`, the button's value is ambiguous: when interacted with, it will send the value that's requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).

From a script property, feedback messages can be simulated with:

`set("widget_id", value, {external: true})` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Additional variables:
- `locals.touchCoords`: `[x, y]` array representing the touch coordinates, normalized between 0 and 1.
- `locals.external`: `true` if value was received from an osc/midi message, `false otherwise`. | - -??? api "
switch#
" - Value selector button. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | - |
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | - |
layout#
| `string` | "vertical" | Defines how items should be laid out

Choices: `vertical`, `horizontal`, `grid` | - |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - |
wrap#
| `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.

Choices: `false`, `true`, `soft` | - - === "switch" - - | property | type |default | description | - | --- | --- | --- | --- | - |
values#
| `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept

`{"labels": [], "values": []}` `object` where `labels` and `values` arrays must be of the same length. This syntax allows using the same label for different values. | - |
mode#
| `string` | "tap" | Interaction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling
- `flip`: selects the next value upon click regardless of where the widget is touched

Choices: `tap`, `slide`, `click`, `flip` | - -??? api "" - Native dropdown menu. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `string`|
`boolean` | "auto" | Displayed text (defaults to current value). Keywords `%key` and `%value` will be replaced by the widget's selected key/value. | - | | `boolean` | "true" | Set to `false` to hide the dropdown icon | - | | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | - - === "dropdown" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept

`{"labels": [], "values": []}` `object` where `labels` and `values` arrays must be of the same length. This syntax allows using the same label for different values. | - -??? api "" - Drag and drop menu with a circular or grid layout. - - === "geometry" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `number`|
`array` | 200 | - If `layout` is `circular`: diameter (in px)
- Else: square size or `[width, height]` array | - | | `boolean` | false | Set to `true` to allow the menu overflowing its tab ancestors. | - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `string`|
`boolean` | "auto" | Displayed text (defaults to current value). Keywords `%key` and `%value` will be replaced by the widget's selected key/value. | - | | `boolean` | "true" | Set to `false` to hide the dropdown icon | - | | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | - | | `string` | "center" | Set to `top` or `bottom` to change menu alignment (otherwise center)

Choices: `center`, `top`, `bottom` | - | | `string` | "center" | Set to `left` or `right` to change menu alignment (otherwise center)

Choices: `center`, `left`, `right` | - | | `string` | "circular" | Defines whether the menu's layout should be rendered in a circle or in a box

Choices: `circular`, `horizontal`, `vertical`, `grid` | - | | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - - === "menu" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `string` | "default" | Interaction modes:
- `default`: opens on touch, closes and changes value on release
- `toggle`: opens on click, closes and changes value on next click
- `swipe`: opens on touch, changes value when the pointer moves above items, closes on release
- `doubleTap`: same as `default` but opens on double tap
- `doubleTap-toggle`: same as `toggle` but opens on double tap

Choices: `default`, `toggle`, `swipe`, `doubleTap`, `doubleTap-toggle` | - | | `array`|
`object` | [
 1,
 2,
 3
]
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept

`{"labels": [], "values": []}` `object` where `labels` and `values` arrays must be of the same length. This syntax allows using the same label for different values. | - | | `array` | "" | `Array` of `number` defining the weights of each value in `values`

Ignored when `mode` is `grid` | - -??? api "
input#
" - Text input. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | - |
unit#
| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) | - - === "input" - - | property | type |default | description | - | --- | --- | --- | --- | - |
asYouType#
| `boolean` | false | Set to `true` to make the input send its value at each keystroke | - |
numeric#
| `boolean`|
`number` | false | Set to `true` to allow numeric values only and display a numeric keyboard on mobile devices

Can be a number to specify the stepping value for mousewheel interaction (only when the input is focused). | - |
validation#
| `string` | "" | Regular expression: if the submitted value doesn't match the regular expression, it will be reset to the last valid value.

If leading and trailing slashes are omitted, they will be added automatically and the flag will be set to "gm"

Examples:
- `^[0-9]*$` accepts digits only, any number of them
- `/^[a-zs]{0,10}$/i` accept between 0 and 10 alphabetic characters and spaces (case insensitive) | - |
maxLength#
| `number` | "" | Maximum number of characters allowed | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - -??? api "
textarea#
" - Text area (multi line input). Tip: hit shift + enter for new lines. - -??? api "
file#
" - File/Folder selector (server-side). - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | - |
hidePath#
| `boolean` | false | Set to `true` to only display the filename (the whole path will still be used as value) | - |
mode#
| `string` | "open" | File browser mode

Choices: `open`, `save` | - - === "file" - - | property | type |default | description | - | --- | --- | --- | --- | - |
directory#
| `string` | "auto" | Default browsing directory | - |
extension#
| `string` | "*" | Only display files with this extension | - |
allowDir#
| `boolean` | false | Allow selecting a folder (by pressing "open" when no file is selected) | -## Containers - -??? api "
panel#
" - Widgets or Tabs container. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
colorBg#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | - |
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | - |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | - |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - |
contain#
| `boolean` | true | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. | - |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | - |
innerPadding#
| `boolean` | true | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. | - |
tabsPosition#
| `string` | "top" | Defines the position of the navigation bar if the panel contains tabs

Choices: `top`, `bottom`, `left`, `right` | - - === "panel" - - | property | type |default | description | - | --- | --- | --- | --- | - |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `integer`|
`array` | "" | If the panel contains tabs, its value defines which tab is selected selected (by index, starting with 0).

If the panel contains widgets and `scroll` is `true`, its value is an array that contains the scrolling state between 0 and 1 for the x and y axis. | - - === "children" - - | property | type |default | description | - | --- | --- | --- | --- | - |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | - |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | - -??? api "" - A toggle button that opens a popup panel. Cannot contain tabs directly. - - === "geometry" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `number`|
`percentage` | "80%" | Modal popup's size | - | | `number`|
`percentage` | "80%" | Modal popup's size | - | | `number`|
`percentage` | "auto" | Modal popup's position | - | | `number`|
`percentage` | "auto" | Modal popup's position | - | | `boolean` | false | Set to `true` to make the modal's position relative to the button's position. | - | | `boolean` | false | Set to `true` to allow the modal overflowing its tab ancestors. | - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | - | | `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | - | | `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | - | | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - | | `boolean` | true | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. | - | | `boolean` | true | Set to `false` to disable scrollbars | - | | `boolean` | true | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. | - | | `string` | "top" | Defines the position of the navigation bar if the panel contains tabs

Choices: `top`, `bottom`, `left`, `right` | - | | `string`|
`boolean` | "auto" | Set to `false` to hide completely
- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)
- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` | - | | `string`|
`boolean` | "auto" | Alternative label for the modal popup | - | | `number` | "auto" | Modal's inner spacing. | - - === "modal" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - | | `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | - | | `boolean` | false | Set to `true` to make the modal require a double tap to open instead of a single tap | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `integer` | "" | Defines the modal's state:`0` for closed, `1` for opened | - - === "children" - - | property | type |default | description | - | --- | --- | --- | --- | - | | `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | - | | `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | - -??? api "
clone#
" - Widget replication with overridable properties. - - === "clone" - - | property | type |default | description | - | --- | --- | --- | --- | - |
widgetId#
| `string` | "" | `id` of the widget to clone | - |
props#
| `object` | \{} | Cloned widget's properties to override | - -??? api "
fragment#
" - Embedded session or fragment file with overridable properties. - - === "fragment" - - | property | type |default | description | - | --- | --- | --- | --- | - |
file#
| `string` | "" | Fragment file path (relative to the session or theme file location by default, falling back to absolute path) | - |
fallback#
| `string` | "" | Fallack fragment file path, loaded if `file` can't be opened | - |
props#
| `object` | \{} | Fragment widget's properties to override | - -??? api "
matrix#
" - Generic matrix for creating rows/columns of widgets. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
colorBg#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | - |
layout#
| `string` | "horizontal" | Defines how children are laid out.

Choices: `horizontal`, `vertical`, `grid` | - |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | - |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - |
contain#
| `boolean` | true | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. | - |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | - |
innerPadding#
| `boolean` | true | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. | - |
tabsPosition#
| `string` | "top" | Defines the position of the navigation bar if the panel contains tabs

Choices: `top`, `bottom`, `left`, `right` | - - === "matrix" - - | property | type |default | description | - | --- | --- | --- | --- | - |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | - |
widgetType#
| `string` | "button" | Defines the type of the widgets in the matrix | - |
quantity#
| `number` | 4 | Defines the number of widgets in the matrix | - |
props#
| `object` | \{
 "label": "#{$}"
}
| Defines a set of property to override the widgets' defaults.

JS{} and #{} blocks in this field are resolved with an extra variable representing each widget's index: `$` (e.g. `#{$}`)

Advanced syntax blocks (@{}, OSC{}, JS{}, VAR{} and #{}) are resolved at the matrix' scope (ie @{this.variables} returns the matrix' variables property)

Advanced syntax blocks can be passed to children without being resolved at the matrix' scope by adding an underscore before the opening bracket.

Note: unless overridden, children inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `integer`|
`array` | "" | If the panel contains tabs, its value defines which tab is selected selected (by index, starting with 0).

If the panel contains widgets and `scroll` is `true`, its value is an array that contains the scrolling state between 0 and 1 for the x and y axis. | - - === "children" - - | property | type |default | description | - | --- | --- | --- | --- | - |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | - |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | - -??? api "
keyboard#
" - Piano keyboard. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
colorWhite#
| `string` | "auto" | White keys color. | - |
colorBlack#
| `string` | "auto" | Black keys color. | - - === "keyboard" - - | property | type |default | description | - | --- | --- | --- | --- | - |
keys#
| `number` | 25 | Defines the number keys | - |
start#
| `number` | 48 | MIDI note number to start with (default is C4)

Standard keyboards settings are: `[25, 48]`, `[49, 36]`, `[61, 36]`, `[88, 21]` | - |
traversing#
| `boolean` | true | Set to `false` to disable traversing gestures | - |
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message | - |
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message | - |
velocity#
| `boolean` | false | Set to `true` to map the touch coordinates between `off` (top) and `on` (bottom). Requires `on` and `off` to be numbers | - |
mode#
| `string` | "push" | Interaction mode:
- `push` (press & release)
- `toggle` (on/off switches)
- `tap` (no release)

Choices: `push`, `toggle`, `tap` | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `array` | "" | The keyboard widget accepts the following values:
- a `[note, value]` array to set the value of a single key where `note` is the note number and `value` depends on the `on` and `off` properties (any value different from `off` will be interpreted as `on`).
- an array of values with one item per key in the keyboard | - -??? api "
patchbay#
" - Connect inputs to outputs. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - - === "patchbay" - - | property | type |default | description | - | --- | --- | --- | --- | - |
inputs#
| `array`|
`object` | [
 "input_1",
 "input_2"
]
| - `Array` of input names : `['input_1', 'input_2']`
- `Object` of `"label_1": "input_1"` pairs (example: `{"label a": "name 1", "label b": "name 2"}`). Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept



Patchbay inputs can be connected to one or more outputs and will send messages of the following form when they are connected/disconnected:

`/patchbay_address input_x output_x output_y etc`

If no output is connected to the input, the message will be `/patchbay_address input_x`

The inputs values can be consumed with the property inheritance syntax: `@{patchbay_id/input_1}` returns an array of output names connected to `input_1`.

To change connections via scripting, one must target the input nodes as follows: `set('patchbay_id/input_name', ['output_x', 'output_y'])` | - |
outputs#
| `array`|
`object` | [
 "output_1",
 "output_2"
]
| List of output values the inputs can connect to (see `inputs`). | - |
exclusive#
| `string` | false | - `in`: allows only one connection per input
- `out`: allows only one connection per output
- `both`: allows only one connection per input and output

Choices: `false`, `in`, `out`, `both` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - -??? api "
folder#
" - Flat container that doesn't affect layout. Mostly useful for grouping widgets in the tree. - - === "folder" - - | property | type |default | description | - | --- | --- | --- | --- | - |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - - === "children" - - | property | type |default | description | - | --- | --- | --- | --- | - |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | - |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | - -??? api "
root#
" - Main (unique) container - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
colorBg#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | - |
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | - |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | - |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - |
contain#
| `boolean` | true | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. | - |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | - |
innerPadding#
| `boolean` | true | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. | - |
tabsPosition#
| `string` | "top" | Defines the position of the navigation bar if the panel contains tabs

Choices: `top`, `bottom`, `left`, `right` | - |
hideMenu#
| `boolean` | false | Set to `true` to hide the main menu button. | - - === "root" - - | property | type |default | description | - | --- | --- | --- | --- | - |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `integer`|
`array` | "" | If the panel contains tabs, its value defines which tab is selected selected (by index, starting with 0).

If the panel contains widgets and `scroll` is `true`, its value is an array that contains the scrolling state between 0 and 1 for the x and y axis. | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onPreload#
| `script` | "" | Script executed before any other widget is created. See documentation. | - - === "children" - - | property | type |default | description | - | --- | --- | --- | --- | - |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | - |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | - -??? api "
tab#
" - Tabbed panel widget - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
colorBg#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | - |
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | - |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | - |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". | - |
contain#
| `boolean` | true | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. | - |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | - |
innerPadding#
| `boolean` | true | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. | - |
tabsPosition#
| `string` | "top" | Defines the position of the navigation bar if the panel contains tabs

Choices: `top`, `bottom`, `left`, `right` | - |
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely
- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)
- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` | - - === "tab" - - | property | type |default | description | - | --- | --- | --- | --- | - |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `integer`|
`array` | "" | If the panel contains tabs, its value defines which tab is selected selected (by index, starting with 0).

If the panel contains widgets and `scroll` is `true`, its value is an array that contains the scrolling state between 0 and 1 for the x and y axis. | - - === "children" - - | property | type |default | description | - | --- | --- | --- | --- | - |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | - |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | -## Frames - -??? api "
frame#
" - Embed a web page in a frame. - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `string` | "" | External web page URL. | - -??? api "
svg#
" - Svg parser. - - === "svg" - - | property | type |default | description | - | --- | --- | --- | --- | - |
svg#
| `string` | "" | Svg xml definition (will be wrapped in a `< svg />` element) | - -??? api "
html#
" - Simple HTML parser. - -??? api "
image#
" - Load a image (url or base64-encoded). - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
size#
| `string` | "cover" | CSS background-size

Choices: `cover`, `contain`, `auto` | - |
position#
| `string` | "center" | CSS background-position

Choices: `center`, `left`, `right`, `top`, `bottom`, `left top`, `left bottom`, `right top`, `right bottom` | - |
repeat#
| `string` | "no-repeat" | CSS background-repeat

Choices: `no-repeat`, `repeat`, `repeat-x`, `repeat-y`, `space`, `round` | - - === "image" - - | property | type |default | description | - | --- | --- | --- | --- | - |
cache#
| `boolean` | true | Set to false to disable image caching (forces file reload when updating or editing the widget).

When true, sending `reload` to the widget reloads its image without changing its value | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `string` | "" | - File `url` or `path` (relative to the session or theme file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...`
- Enter "qrcode" to display the server's address QR code | -## Graphs - -??? api "
plot#
" - XY coordinates plot. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
dots#
| `boolean` | false | Draw dots on the line | - |
bars#
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) | - |
pips#
| `boolean` | true | Set to `false` to hide the scale | - - === "plot" - - | property | type |default | description | - | --- | --- | --- | --- | - |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | - |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | - |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | - |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | - |
origin#
| `number`|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `array`|
`string` | "" | - `Array` of `y` values: `[y1, y2, ...]`
- `Array` of `[x, y]` `array` values: `[[x1 , y1], [x2, y2], ...]`
- `String` `array`: `"[y1, y2, ...]"` or `"[[x1 , y1], [x2, y2], ...]"`
- `String` `object` to update specific coordinates only: `"{0: y1, 1: y2}"` or `"{0: [x1, y1], 1: [x2, y2]}"` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - -??? api "
eq#
" - Draws logarithmic frequency response from an array of filter objects. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
dots#
| `boolean` | false | Draw dots on the line | - |
bars#
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) | - |
pips#
| `boolean` | true | Set to `false` to hide the scale | - - === "eq" - - | property | type |default | description | - | --- | --- | --- | --- | - |
rangeX#
| `object` | \{
 "min": 20,
 "max": 22000
}
| Defines the min and max values for the x axis (in Hz, logarithmic scale) | - |
rangeY#
| `object` | \{
 "min": -6,
 "max": 6
}
| Defines the min and max values for the y axis (in dB) | - |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | - |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | - |
origin#
| `number`|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it | - |
filters#
| `array` | "" | Each item must be an object with the following properties
- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak", "bandpass" or "notch", default: "peak")
- `freq`: number (filter's resonant frequency, default: 1000)
- `q`: number (Q factor, default: 1)
- `gain`: number (default: 0)
- `on`: boolean (default: true)

See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode | - |
pips#
| `boolean` | true | Set to false to hide the scale | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `array`|
`string` | "" | - `Array` of `y` values: `[y1, y2, ...]`
- `Array` of `[x, y]` `array` values: `[[x1 , y1], [x2, y2], ...]`
- `String` `array`: `"[y1, y2, ...]"` or `"[[x1 , y1], [x2, y2], ...]"`
- `String` `object` to update specific coordinates only: `"{0: y1, 1: y2}"` or `"{0: [x1, y1], 1: [x2, y2]}"` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - -??? api "
visualizer#
" - Display its value over time. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
pips#
| `boolean` | true | Set to `false` to hide the scale | - - === "visualizer" - - | property | type |default | description | - | --- | --- | --- | --- | - |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | - |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | - |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | - |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. | - |
origin#
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it | - |
duration#
| `number` | 1 | Defines visualization duration in seconds | - |
framerate#
| `number` | 30 | Defines visualization framerate | - |
freeze#
| `boolean` | false | Set to `true` to freeze current view and ignore incoming values | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `array`|
`string` | "" | - `Array` of `y` values: `[y1, y2, ...]`
- `Array` of `[x, y]` `array` values: `[[x1 , y1], [x2, y2], ...]`
- `String` `array`: `"[y1, y2, ...]"` or `"[[x1 , y1], [x2, y2], ...]"`
- `String` `object` to update specific coordinates only: `"{0: y1, 1: y2}"` or `"{0: [x1, y1], 1: [x2, y2]}"` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | -## Indicators - -??? api "
led#
" - Intensity display. - - === "led" - - | property | type |default | description | - | --- | --- | --- | --- | - |
mode#
| `string` | "intensity" | Defines how value is interpreted (see `value`)

Choices: `intensity`, `color` | - |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Value range | - |
alphaRange#
| `object` | \{
 "min": 0,
 "max": 1
}
| Alpha range (if `mode` is `color`) | - |
logScale#
| `boolean` | false | If `mode` is `intensity`, set to `true` to use logarithmic scale. | - - === "value" - - | property | type |default | description | - | --- | --- | --- | --- | - |
value#
| `number`|
`array`|
`string` | "" | If `mode` is `intensity`:
- `Number`: `intensity` between `range.min` and `range.max`

If `mode` is `color`:
- `Array`: `[r, g, b]` (`r`, `g` and `b` between `range.min` and `range.max`)
- `Array`: `[r, g, b, alpha]` (`alpha` between `alphaRange.min` and `alphaRange.max`)
- `String`: CSS color | - -??? api "
text#
" - Display text. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
vertical#
| `boolean` | false | Set to `true` to display the text vertically | - |
wrap#
| `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.

Choices: `false`, `true`, `soft` | - |
align#
| `string` | "center" | Text alignment.

Choices: `center`, `left`, `right`, `top`, `bottom`, `left top`, `left bottom`, `right top`, `right bottom` | -## Pads - -??? api "
xy#
" - Two-dimensional slider. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
pointSize#
| `integer` | 20 | Defines the points' size | - |
ephemeral#
| `boolean` | false | When set to `true`, the point will be drawn only while touched. | - |
pips#
| `boolean` | true | Set to `false` to hide the scale | - - === "xy" - - | property | type |default | description | - | --- | --- | --- | --- | - |
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | - |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | - |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | - |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | - |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | - |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | - |
axisLock#
| `string` | "" | Restrict movements to one of the axes only unless `Shift` is held.

When left to the default value, holding `Shift` while dragging will lock the pad according the first movement.

Choices: ``, `x`, `y` | - |
doubleTap#
| `boolean`|
`string` | false | Set to `true` to make the fader reset to its default value when receiving a double tap.

Can also be an osc address, which case the widget will just send an osc message: `/ ` | - |
sensitivity#
| `number` | 1 | Defines the pad's sensitivity when `snap` is `false` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | - -??? api "
rgb#
" - Color picker with optional alpha slider. - - === "rgb" - - | property | type |default | description | - | --- | --- | --- | --- | - |
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | - |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | - |
range#
| `object` | \{
 "min": 0,
 "max": 255
}
| Defines the widget's output scale. | - |
alpha#
| `boolean` | false | Set to `true` to enable alpha channel | - |
rangeAlpha#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the widget's output scale for the alpha channel. | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | - -??? api "
multixy#
" - Multi-point XY pad. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
pointSize#
| `integer` | 20 | Defines the points' size | - |
ephemeral#
| `boolean` | false | When set to `true`, the points will be drawn only while touched. | - |
pips#
| `boolean` | true | Set to `false` to hide the scale | - - === "multixy" - - | property | type |default | description | - | --- | --- | --- | --- | - |
points#
| `integer`|
`array` | 2 | Defines the number of points on the pad

Can be an array of strings that will be used as labels for the points (ex: `['A', 'B']`) | - |
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | - |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | - |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | - |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | - |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | - |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | - |
axisLock#
| `string` | "" | Restrict movements to one of the axes only.

When left to the default value, holding `Shift` while dragging will lock the pad according the first movement.

Choices: ``, `x`, `y` | - |
doubleTap#
| `boolean`|
`string` | false | Set to `true` to make the fader reset to its default value when receiving a double tap.

Can also be an osc address, which case the widget will just send an osc message: `/ ` | - |
sensitivity#
| `number` | 1 | Defines the pad's sensitivity when `snap` is `false` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | - -??? api "
canvas#
" - Multitouch canvas widget with user-defined drawing functions and touch reactions. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - - === "canvas" - - | property | type |default | description | - | --- | --- | --- | --- | - |
valueLength#
| `number` | 1 | Defines the number of values accepted by the widget (minimum 1). Incoming messages that don't comply will be ignored

When calling `set()` from a script, submitted value should be an array only if `valueLength` is greater than 1. | - |
autoClear#
| `boolean` | true | If set to `false`, the canvas context won't be cleared automatically and `ctx.clear()` will need to be called in `onDraw`. | - |
continuous#
| `boolean`|
`number` | false | If set to `true`, `onDraw` will be called at each frame, otherwise it will be called only when the widget is touched and when it receives a value.

Can be a number between 1 and 60 to specify the framerate (default: 30 fps). | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onCreate#
| `script` | "" | Script executed when the widget is created. See documentation. | - |
onValue#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released, and when the pointer moves when the widget is touched. See documentation. | - |
onDraw#
| `script` | "" | Script executed when the widget is redrawn. See documentation. | - |
onResize#
| `script` | "" | Script executed when the widget is resized. See documentation. | -## Sliders - -??? api "
fader#
" - Vertical / horizontal slider. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | - |
knobSize#
| `number` | "auto" | Fader knob size | - |
colorKnob#
| `string` | "auto" | Fader knob color | - |
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | - |
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | - |
dashed#
| `boolean`|
`array` | false | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` | - |
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | - - === "fader" - - | property | type |default | description | - | --- | --- | --- | --- | - |
snap#
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | - |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | - |
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | - |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | - |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | - |
sensitivity#
| `number` | 1 | Defines the fader's sensitivity when `snap` is `false` | - |
steps#
| `number`|
`array`|
`string` | "" | Restricts the widget's value:
- `number`: define a number of evenly spaced steps
- `array` of numbers: use arbitrary values as steps
- `auto`: use values defined in `range` | - |
origin#
| `number` | "auto" | Defines the starting point's value of the fader's gauge | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | - -??? api "
knob#
" - Rotative knob slider. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
design#
| `string` | "default" | Design style

Note: "solid" design uses "colorStroke" for the central knob color.

Choices: `default`, `solid`, `line` | - |
colorKnob#
| `string` | "auto" | Knob color | - |
pips#
| `boolean` | false | Set to `true` to show the scale's breakpoints | - |
dashed#
| `boolean`|
`array` | false | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` | - |
angle#
| `number` | 270 | Defines the angle's width of the knob, in degrees | - - === "knob" - - | property | type |default | description | - | --- | --- | --- | --- | - |
mode#
| `string` | "vertical" | - `vertical`: relative move in vertical motion
- `circular`: relative move in circular motion
- `snap`: snap to touch position
- `snap-alt`: alternative snap mode that allow jumping from `range.min` to `range.max`. `sensitivity` is ignored with this mode.

Choices: `vertical`, `circular`, `snap`, `snap-alt` | - |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | - |
doubleTap#
| `boolean` | false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | - |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | - |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | - |
sensitivity#
| `number` | 1 | Defines the knob's sensitivity when `mode` is not `snap` | - |
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `number`: define a number of evenly spaced steps
- `array` of numbers: use arbitrary values as steps
- `auto`: use values defined in `range` | - |
origin#
| `number` | "auto" | Defines the starting point's value of the knob's gauge | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | - -??? api "
encoder#
" - A knob that sends a relative direction information instead of an absolute value. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - - === "encoder" - - | property | type |default | description | - | --- | --- | --- | --- | - |
mode#
| `string` | "circular" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion

Choices: `circular`, `snap`, `vertical` | - |
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | - |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | - |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | - |
sensitivity#
| `number` | 1 | When set between 0 and 1, reduces the encoder's verbosity | - |
ticks#
| `number` | "" | Defines the granularity / verbosity of the encoder (number of step for a 360° arc) | - |
back#
| `*` | -1 | Defines which value is sent when rotating the encoder anticlockwise | - |
forth#
| `*` | 1 | Defines which value is sent when rotating the encoder clockwise | - |
release#
| `number` | "" | Defines which value is sent when releasing the encoder:
- Set to `null` to send send no argument in the osc message
- Can be an `object` if the type needs to be specified | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height`

Additional variables:
- `locals.speed`: encoder's speed (reduce `sensitivity` to increase averaging)
- `locals.angle`: encoder's angle in degrees | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | - -??? api "
range#
" - A fader with two heads for setting a range. - - === "style" - - | property | type |default | description | - | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | - |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | - |
knobSize#
| `number` | "auto" | Fader knob size | - |
colorKnob#
| `string` | "auto" | Fader knob color | - |
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | - |
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | - |
dashed#
| `boolean`|
`array` | false | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` | - |
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | - - === "range" - - | property | type |default | description | - | --- | --- | --- | --- | - |
snap#
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | - |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | - |
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | - |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | - |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | - |
sensitivity#
| `number` | 1 | Defines the fader's sensitivity when `snap` is `false` | - |
steps#
| `number`|
`array`|
`string` | "" | Restricts the widget's value:
- `number`: define a number of evenly spaced steps
- `array` of numbers: use arbitrary values as steps
- `auto`: use values defined in `range` | - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | -## Scripts - -??? api "
script#
" - Scripting widget utility with keyboard bindings - - === "scripting" - - | property | type |default | description | - | --- | --- | --- | --- | - |
onCreate#
| `script` | "" | Script executed when the widget is created. See documentation. | - |
onKeyboard#
| `script` | "" | Script executed whenever the widget receives a keyboard event if `keyBinding` is set). See documentation. | - |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation).

If the editor is enabled, some keys / combos will not work.

To process all keystroke events, write `['']` | - |
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed | - |
keyType#
| `string` | "keydown" | Determines which key event trigger the script's execution

Choices: `keydown`, `keyup`, `both` | - -??? api "
variable#
" - Receives / stores a value, to be used in scripts (using the get function) or in properties (using the @{} syntax). diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md index 5c9fea44..c02e975c 100644 --- a/resources/docs/docs/widgets/scripting.md +++ b/resources/docs/docs/widgets/scripting.md @@ -78,7 +78,23 @@ This script has access to the same variables and functions as the `script` prope - `type`: `"start"` or `"stop"` - `handle`: `undefined` if the event concerns the widget, `integer` if it concerns one of it's handles (`multixy` and `range` widgets only) -Note: the [canvas](../canvas/) widgets exposes more informations in its `onTouch` script. +[Canvas](../canvas/) and containers expose more informations in their `onTouch` script. + +??? infos "Containers onTouch" + + Containers (root, panel, etc) can monitor touch events happening inside them, it works like with [Canvas](../canvas/#ontouch), with a few differences: + + - `event.firstTarget` will return the id of the first touched widget + - setting `event.preventDefault` to `true` will prevent the event from reaching widgets in the container ('start' and 'move' events only) + - setting `event.allowScroll` to `true` will allow touch scrolling where it would normally be prevented ('start' event only) + - setting `event.inertia` will affect 'move' events (works like widget `sensitivity` in reverse (1 = normal, 10 = slow move)) + - `width` and `height` are undefined + + Containers with `traversing` enabled change how touch events are emitted: + + - a new 'stop' event is emitted whenever the pointer exits a touchable widget while pressed. + - a new 'start' event is emitted whenever the pointer enters a touchable widget while pressed. + ### `onDraw` @@ -105,7 +121,9 @@ The following variables are available in this context: ### `onPreload` -This script is specific to the root widget, it's called before any other widget is created and can be used to create global variables / functions accessible in other scripts. +This script is specific to the root widget, it's called before any other widget is created and can be used to create global variables / functions accessible in other scripts. + +In this script, all osc messages emissions are prevented and changing the value of a widget won't trigger widget synchronisation / scripts / advanced syntaxes updates. ## Available variables @@ -145,7 +163,7 @@ Returns the value of the first matching widget. If the returned value is an obje - `sync: false`: prevents widgets from triggering synchronization and scripts - `script: false`: prevents scripts but not synchronization - `send: false`: prevents widgets from sending osc messages - - `external: true`: simulates a value coming from an osc/midi message (implies `sync: false` automatically) + - `external: true`: simulates a value coming from an osc/midi message (implies `send: false` automatically) Sets the value of the first matching widget. If `ìd` contains wildcards, affects all matching widgets **except** the emitting widget. @@ -287,7 +305,7 @@ Reference: - `id` (optional): widget `id` as a string -Gives focus to a widget (ie input widget). +Gives focus to a widget (ie input widget). If `id` is omitted or falsy, currently focused element will be unfocused. *Built-in client only*: tells the operating system to give the focus to the client window @@ -312,10 +330,6 @@ Gives focus to a widget (ie input widget). Returns the scroll position of a container as a `[x, y]` array. -**Deprecated** - -Scrollable panels expose their scroll position normalized between 0 and 1 with their value. - ---- #### `setScroll(id, x, y)` @@ -325,26 +339,50 @@ Scrollable panels expose their scroll position normalized between 0 and 1 with t Sets the scroll state of a container. -**Deprecated** +---- + +#### `scrollIntoView(id, option)` +- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget. +- `option`: `alignToTop` or `options` argument as defined in https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView + +Scroll containers to make widget(s) visible. -Scrollable panels expose their scroll position normalized between 0 and 1 with their value. ---- -#### `toolbar(i1, i2, ...)` -- `iX`: menu entry index +#### `toolbar(id)` +- `id` menu entry id (string) -Triggers toolbar action at specified index. +Triggers toobar action if currently available (ie accessible from the menu). `id` can be one of the following: -!!! example "Examples" +- `session-new`,`session-open`, `session-save`, `session-save-as`, `session-fragment`, `session-backup`, `session-import`, `session-export` +- `state-store`, `state-recall`, `state-send`, `state-open`, `state-save`, `state-save-as`, `state-import`, `state-export` +- `editor-enabled`, `editor-grid`, `editor-tree`, `editor-inspector`, `editor-percents` +- `console-enabled`, `console-clear` +- `fullscreen`, `notifictions`, `prevent-sleep`, `virtual-keyboard` + +Some actions will only be triggered if initiated with a physical user interaction, check the console for errors if it doesn't work as expected. + + +=== "Legacy syntax: `toolbar(i1, i2, ...)`" + + - `iX`: menu entry index + + Triggers toolbar action at specified index. + + !!! example "Examples" - `toolbar(0, 0)` -> Open a new session - `toolbar(4)` -> Toggle full screen - Actions will only be triggered if initiated with a user interaction. Fullscreen cannot be toggled with a simulated interaction (i.e. using `/SET`) ---- +#### `getToolbar(id)` +- `id` menu entry id (string) + +Returns `true` if the toolbar entry exists and is currently activated. + #### `openUrl(url)` - `url`: http(s) url @@ -381,10 +419,19 @@ Returns the instance of [Navigator](https://developer.mozilla.org/en-US/docs/Web #### `browseFile(options, callback)` -Opens the file file browser and pass selected file to a callback function (does not create nor read files by itself). +Opens the server file browser and pass selected file to a callback function (does not create nor read files by itself). - `options`: object with the following keys: - `extension`: allowed extension (default: "*") - `directory`: starting directory for browser (default: user's home) - `allowDir`: allow choosing a directory instead of a file (default: false) - `mode`: "save" or "open" +- `callback`: function called with 1 argument (file path) + +#### `uploadFile(options, callback)` + +Opens the client file upload prompt and pass the raw content of selected file to a callback function. + +- `options`: object with the following keys: + - `types`: equivalent of HTML attribute [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept) +- `callback`: function called with 1 argument (file content) diff --git a/resources/docs/download.md b/resources/docs/download.md index 58b5fb88..d5089028 100644 --- a/resources/docs/download.md +++ b/resources/docs/download.md @@ -3,66 +3,20 @@ !!! tip "" [*Click here*](/docs/getting-started/introduction/#installation) to read the installation guide. - Open Stage Control + + Open Stage Control v{{config.latest_release}} + -
Loading assets...
+
    +
  • GNU/Linux RPM (64-bit)
  • +
  • GNU/Linux Debian (64-bit)
  • +
  • GNU/Linux (64-bit)
  • +
  • Node.js
  • +
  • MacOS x64
  • +
  • MacOS arm64
  • +
  • Windows (64-bit)
  • - +
` this.container.insertBefore(this.style, this.container.childNodes[0] || null) @@ -1252,7 +1361,7 @@ class Widget extends EventEmitter { updateHtml(){ - var extraHtml = this.getProp('html') !== '' ? sanitizeHtml(this.getProp('html'), Widget.sanitizeHtmlOptions) : null + var extraHtml = this.getProp('html') || null if (this.extraHtml) { if (!extraHtml) { @@ -1320,18 +1429,6 @@ class Widget extends EventEmitter { } -Widget.sanitizeHtmlOptions = { - allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'h1', 'h2']).filter(x=>x!=='iframe'), - allowedAttributes: { - '*': [ 'title', 'class', 'style', 'name'], - 'img': [ 'src' , 'title', 'class', 'style', 'width', 'height'], - 'a': ['href', 'target'] - }, - transformTags: { - 'a': sanitizeHtml.simpleTransform('a', {target: '_blank'}) - } -} - Widget.parsersContexts = {} Widget.cssVariables = [ @@ -1342,7 +1439,7 @@ Widget.cssVariables = [ {js: 'colorText', css: '--color-text'}, {js: 'padding', css: '--widget-padding', toCss: x=>parseFloat(x) + 'rem', toJs: x=>parseFloat(x) * PXSCALE}, {js: 'lineWidth', css: '--line-width', toCss: x=>parseFloat(x) + 'rem', toJs: x=>parseFloat(x) * PXSCALE}, - {js: 'borderRadius', css: '--border-radius', toCss: x=>parseFloat(x) == x ? x + 'rem' : x}, + {js: 'borderRadius', css: '--border-radius', toCss: x=>parseFloat(x) == x ? x + 'rem' : x, toJs: x=>parseFloat(x)}, {js: 'alphaFillOn', css: '--alpha-fill-on', toCss: x=>parseFloat(x), toJs: x=>parseFloat(x)}, {js: 'alphaFillOff', css: '--alpha-fill-off', toCss: x=>parseFloat(x), toJs: x=>parseFloat(x)}, {js: 'alphaStroke', css: '--alpha-stroke', toCss: x=>parseFloat(x), toJs: x=>parseFloat(x)}, @@ -1382,4 +1479,4 @@ Widget.dynamicProps = [ 'bypass' ] -module.exports = Widget +export default Widget diff --git a/src/client/widgets/containers/clone.js b/src/client/widgets/containers/clone.mjs similarity index 63% rename from src/client/widgets/containers/clone.js rename to src/client/widgets/containers/clone.mjs index 7aa87be1..bf855b51 100644 --- a/src/client/widgets/containers/clone.js +++ b/src/client/widgets/containers/clone.mjs @@ -1,11 +1,11 @@ -var Container = require('../common/container'), - widgetManager = require('../../managers/widgets'), - resize = require('../../events/resize'), - parser = require('../../parser'), - {deepCopy, deepEqual} = require('../../utils'), - {diff, diffToWidget} = require('../../editor/diff'), - html = require('nanohtml'), - Session = require('../../managers/session/session') +import html from 'nanohtml' +import Container from '../common/container.mjs' +import widgetManager from '../../managers/widgets.mjs' +import * as resize from '../../events/resize.mjs' +import parser from '../../parser.mjs' +import {deepCopy, deepEqual} from '../../utils.mjs' +import {diff, diffToWidget} from '../../editor/diff' +import Session from '../../managers/session/session.mjs' var excludedCloneClasses = ['widget', 'absolute-position', 'not-editable', 'editing', 'flex-expand', 'no-interaction'] @@ -23,6 +23,11 @@ class Clone extends Container() { class_specific: { widgetId: {type: 'string', value: '', help: '`id` of the widget to clone'}, + scoped: {type: 'boolean|string', value: false, help: [ + 'Set to `true` to prefix all cloned `id`s inside the clone with a unique identifier and make the clone independent from its original. All `@{}` blocks and scripts will be prefixed automatically so that they resolve to widgets within the clone if possible, falling back to unprefixed ids otherwise. `linkId` will be prefixed as well but will only resolve within the clone.', + '`clone` and `scrollbar` widgets will prioritize targets closer to their scope, falling back to farther target.', + 'Set this property to a string to define the `ìd` prefix manually (a trailing slash will be added automatically). This can be useful if one must access a scoped widget via scripting or remote control commands.' + ]}, props: {type: 'object', value: {}, editor: 'javascript', syntaxChecker: false, help: 'Cloned widget\'s properties to override'}, }, value: null, @@ -47,8 +52,11 @@ class Clone extends Container() { this.cloneLock = false this.cloneTarget = null + this.targetRank = null this.cloneClass = [] + this.scopeId = this.getProp('scoped') === true ? this.hash : this.getProp('scoped') === false ? '' : this.getProp('scoped') + this.modalBreakout = 0 this.container.classList.add('empty') @@ -62,40 +70,24 @@ class Clone extends Container() { parent = parent.parent } - this.bindTarget(this.getCloneTarget()) - if (this.cloneTarget) this.createClone(true) + this.getCloneTarget() - // global listener to catch cloneTarget's creation if no target is locked widgetManager.on('widget-created', (e)=>{ - if (this.cloneTarget) return + // if in a non-scoped context we don't watch for a closer target once we have one + if (!this.scopes.length && this.cloneTarget) return var {id, widget} = e - if (id === this.getProp('widgetId') && this.isValidCloneTarget(widget)) { + if (String(id).includes(this.getProp('widgetId')) && this.isValidCloneTarget(widget)) { - var clone = this.children[0] - - this.unbindTarget() - - if (!clone) { - - this.updateContainer(false) - this.bindTarget(widget) - this.createClone() - - } else { - - this.bindTarget(widget) - this.updateClone() - - } + this.getCloneTarget() } }, {context: this}) - widgetManager.on('prop-changed', (e)=>{ + var onPropChanged = (e)=>{ // watch for prop changes initiated by the editor // Other changes (from advanced syntaxes) are already // handled by standard widget mechanicsé @@ -109,16 +101,12 @@ class Clone extends Container() { } - }, {context: this}) + } - this.on('widget-created', (e)=>{ + widgetManager.on('prop-changed', onPropChanged, {context: this}) - if (e.widget !== this) { - e.widget.container.classList.add('not-editable') - e.widget._not_editable = true - } - - }) + // see common/widget.js @ updateProps() + widgetManager.on('prop-src-changed', onPropChanged, {context: this}) } @@ -127,32 +115,53 @@ class Clone extends Container() { // attempt to acquire a cloneTarget if 'widget-created' event has not been caught // (the target might have been created before the clone itself) - var widgets = widgetManager.getWidgetById(this.getProp('widgetId')) - .filter(el=>this.isValidCloneTarget(el)) + var scopes = this.scopes.length ? this.scopes : [''], + target = null, + rank = 0 - if (widgets.length === 0) return null - if (widgets.length === 1) { - return widgets[0] - } + for (var scope of scopes) { + var widgets = widgetManager.getWidgetById(this.getProp('widgetId'), scope) + .filter(w=>this.isValidCloneTarget(w)) + target = widgets[0] - // when duplicating clones pointing to an object with a static id, - // each clone will recreate an object with the same id internally - // we try to get the original one if there is more than 2 clone pointing to the same id (avoiding cloning the clone) - - function isCreatedByAClone(wi){ - var parent = wi.parent - return parent && parent.getProp('type') === 'clone' - } - - var target = widgets[0] - for (var w of widgets) { - if (!isCreatedByAClone(w)) { - target = w - break + if (!target) { + rank++ + continue } - } - return target + for (var w of widgets) { + // when duplicating clones pointing to an object with a static id, + // each clone will recreate an object with the same id internally + // we try to get the original one if there is more than 2 clone pointing to the same id (avoiding cloning the clone) + if (!(w.parent && w.parent.getProp('type') == 'clone')) { + target = w + break + } + } + + if (rank < this.targetRank || this.targetRank == null) { + + var clone = this.children[0] + + this.unbindTarget() + + if (!clone) { + + this.updateContainer(false) + this.bindTarget(target, rank) + this.createClone() + + } else { + + this.bindTarget(target, rank) + this.updateClone() + + } + } + + return + + } } @@ -175,7 +184,12 @@ class Clone extends Container() { parser.parse({ data: data, parentNode: this.widget, - parent: this + parent: this, + meta: { + not_editable: true, + clone: true, + scopable: true + } }) this.updateContainer(!init) @@ -191,14 +205,16 @@ class Clone extends Container() { this.cloneTarget.off(undefined, undefined, this) this.cloneTarget = null + this.targetRank = null } - bindTarget(target) { + bindTarget(target, rank) { if (!target) return this.cloneTarget = target + this.targetRank = rank // listen for cloneTarget's deletion // if it is just edited, its recreation will be caught by the global 'widget-created' event handler @@ -211,18 +227,14 @@ class Clone extends Container() { // listen for cloneTarget's content updates this.cloneTarget.on('widget-created', (e)=>{ - var {widget} = e, - parent = widget.parent + var {widget} = e - while (parent !== this.cloneTarget && parent !== widgetManager) { - // if updated widget is in a nested clone, ignore it: - // it will be handled by the nested clone that targets it - if (parent.getProp('type') === 'clone') return - parent = parent.parent + // if updated widget is in a nested clone, ignore it: + // it will be handled by the nested clone that targets it + if (!widget.meta.clone) { + this.updateClone() } - this.updateClone() - }, {context: this}) } @@ -282,10 +294,6 @@ class Clone extends Container() { this.container.classList.remove('empty') - for (var w of this.getAllChildren()) { - w.container.classList.add('not-editable') - } - if (checkResize) resize.check(this.widget) } else if (this.cloneClass.length) { @@ -307,10 +315,7 @@ class Clone extends Container() { switch (propName) { case 'widgetId': - this.unbindTarget() - this.updateContainer(false) - this.bindTarget(this.getCloneTarget()) - if (this.cloneTarget) this.createClone() + this.getCloneTarget() return case 'props': if (this.children[0]) this.updateClone() @@ -334,4 +339,4 @@ Clone.dynamicProps = Clone.prototype.constructor.dynamicProps.concat( 'props' ) -module.exports = Clone +export default Clone diff --git a/src/client/widgets/containers/folder.js b/src/client/widgets/containers/folder.mjs similarity index 95% rename from src/client/widgets/containers/folder.js rename to src/client/widgets/containers/folder.mjs index 717fbcdb..6f8f3722 100644 --- a/src/client/widgets/containers/folder.js +++ b/src/client/widgets/containers/folder.mjs @@ -1,4 +1,4 @@ -var Panel = require('./panel') +import Panel from './panel.mjs' class Folder extends Panel { @@ -57,4 +57,4 @@ class Folder extends Panel { -module.exports = Folder +export default Folder diff --git a/src/client/widgets/containers/fragment.js b/src/client/widgets/containers/fragment.mjs similarity index 76% rename from src/client/widgets/containers/fragment.js rename to src/client/widgets/containers/fragment.mjs index bd3e3bcc..0979425f 100644 --- a/src/client/widgets/containers/fragment.js +++ b/src/client/widgets/containers/fragment.mjs @@ -1,13 +1,16 @@ -var Container = require('../common/container'), - widgetManager = require('../../managers/widgets'), - resize = require('../../events/resize'), - parser = require('../../parser'), - {deepCopy, deepEqual} = require('../../utils'), - {diff, diffToWidget} = require('../../editor/diff'), - html = require('nanohtml'), - sessionManager, - Session = require('../../managers/session/session') +import html from 'nanohtml' +import Container from '../common/container.mjs' +import widgetManager from '../../managers/widgets.mjs' +import * as resize from '../../events/resize.mjs' +import parser from '../../parser.mjs' +import {deepCopy, deepEqual} from '../../utils.mjs' +import {diff, diffToWidget} from '../../editor/diff' +import Session from '../../managers/session/session.mjs' +var sessionManager +;(async()=>{ + sessionManager = (await import('../../managers/session/index.mjs')).default +})() var excludedfragmentClasses = ['widget', 'absolute-position', 'not-editable', 'editing', 'flex-expand', 'no-interaction'] @@ -26,6 +29,11 @@ class Fragment extends Container() { class_specific: { file: {type: 'string', value: '', help: 'Fragment file path (relative to the session or theme file location by default, falling back to absolute path)'}, fallback: {type: 'string', value: '', help: 'Fallack fragment file path, loaded if `file` can\'t be opened'}, + scoped: {type: 'boolean|string', value: false, help: [ + 'Set to `true` to prefix all cloned `id`s inside the clone with a unique identifier and make the clone independent from its original. All `@{}` blocks and scripts will be prefixed automatically so that they resolve to widgets within the clone if possible, falling back to unprefixed ids otherwise. `linkId` will be prefixed as well but will only resolve within the clone.', + '`clone` and `scrollbar` widgets will prioritize targets closer to their scope, falling back to farther target.', + 'Set this property to a string to define the `ìd` prefix manually (a trailing slash will be added automatically). This can be useful if one must access a scoped widget via scripting or remote control commands.' + ]}, props: {type: 'object', value: {}, editor: 'javascript', syntaxChecker: false, help: 'Fragment widget\'s properties to override'}, }, value: null, @@ -48,22 +56,13 @@ class Fragment extends Container() { this.noValueState = true + this.scopeId = this.getProp('scoped') === true ? this.hash : this.getProp('scoped') === false ? '' : this.getProp('scoped') + this.modalBreakout = 0 this.fragmentClass = [] this.container.classList.add('empty') - this.on('widget-created', (e)=>{ - - if (e.widget !== this) { - e.widget.container.classList.add('not-editable') - e.widget._not_editable = true - } - - }) - - sessionManager = sessionManager || require('../../managers/session') - sessionManager.on('fragment-updated', (e)=>{ var {path} = e if (path === this.getProp('file') || path === this.getProp('fallback')) { @@ -122,7 +121,12 @@ class Fragment extends Container() { parser.parse({ data: data, parentNode: this.widget, - parent: this + parent: this, + meta: { + not_editable: true, + fragment: true, + scopable: true + } }) this.updateContainer(!init) @@ -145,10 +149,6 @@ class Fragment extends Container() { this.container.classList.remove('empty') - for (var w of this.getAllChildren()) { - w.container.classList.add('not-editable') - } - if (checkResize) resize.check(this.widget) } else if (this.fragmentClass.length) { @@ -220,4 +220,4 @@ Fragment.dynamicProps = Fragment.prototype.constructor.dynamicProps.concat( 'props' ) -module.exports = Fragment +export default Fragment diff --git a/src/client/widgets/containers/keyboard.js b/src/client/widgets/containers/keyboard.mjs similarity index 95% rename from src/client/widgets/containers/keyboard.js rename to src/client/widgets/containers/keyboard.mjs index 47c238fb..cdbfd8bc 100644 --- a/src/client/widgets/containers/keyboard.js +++ b/src/client/widgets/containers/keyboard.mjs @@ -1,7 +1,7 @@ -var Panel = require('./panel'), - Widget = require('../common/widget'), - parser = require('../../parser'), - {mapToScale} = require('../utils') +import Panel from './panel.mjs' +import Widget from '../common/widget.mjs' +import parser from '../../parser.mjs' +import {mapToScale} from '../utils.mjs' class Keyboard extends Panel { @@ -135,12 +135,11 @@ class Keyboard extends Panel { var key = parser.parse({ data: data, parentNode: this.widget, - parent: this + parent: this, + meta: {not_editable: true} }) key._index = i - start - key.container.classList.add('not-editable') - key._not_editable = true key.container.classList.add('key') if (pattern[i % 12] == 'w') { @@ -193,4 +192,4 @@ Keyboard.cssVariables = Keyboard.prototype.constructor.cssVariables.concat( {js: 'colorBlack', css: '--color-black-key'} ) -module.exports = Keyboard +export default Keyboard diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.mjs similarity index 74% rename from src/client/widgets/containers/matrix.js rename to src/client/widgets/containers/matrix.mjs index 16646774..32cb4c24 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.mjs @@ -1,7 +1,9 @@ -var Panel = require('./panel'), - parser = require('../../parser'), - {deepCopy} = require('../../utils'), - Session = require('../../managers/session/session') +import Panel from './panel.mjs' +import parser from '../../parser.mjs' +import {deepCopy} from '../../utils.mjs' +import Session from '../../managers/session/session.mjs' +import widgetManager from '../../managers/widgets.mjs' + class Matrix extends Panel { @@ -27,7 +29,7 @@ class Matrix extends Panel { }, style: { layout: {type: 'string', value: 'horizontal', choices: ['horizontal', 'vertical', 'grid'], help: 'Defines how children are laid out.'}, - verticalTabs: null, + tabsPosition: null, } }) @@ -60,11 +62,11 @@ class Matrix extends Panel { }) - - if (parser.widgets[this.getProp('widgetType')]) { - for (let i = 0; i < this.getProp('quantity'); i++) { + var quantity = Math.max(parseInt(this.getProp('quantity')) || 0, 0) + + for (let i = 0; i < quantity; i++) { var props = deepCopy(this.getProp('props')[i]) var data = this.defaultProps(i) @@ -80,12 +82,11 @@ class Matrix extends Panel { var widget = parser.parse({ data: data, parentNode: this.widget, - parent: this + parent: this, + meta: {not_editable: true} }) widget._index = i - widget.container.classList.add('not-editable') - widget._not_editable = true this.value[i] = widget.getValue() @@ -125,6 +126,53 @@ class Matrix extends Panel { switch (propName) { + case 'quantity': + + var quantity = Math.max(parseInt(this.getProp('quantity')) || 0, 0) + oldPropValue = Math.max(parseInt(oldPropValue) || 0, 0) + + if (oldPropValue > quantity) { + + for (let i = oldPropValue - 1; i >= quantity; i--) { + if (this.widget.contains(this.children[i].container)) { + this.widget.removeChild(this.children[i].container) + } + widgetManager.removeWidgets(this.children[i].getAllChildren().concat(this.children[i])) + } + + } else { + + this.cachedProps.props = this.resolveProp('props', undefined, true) + + for (let i = oldPropValue; i < quantity; i++) { + + var props = deepCopy(this.getProp('props')[i]) + var data = this.defaultProps(i) + + if (typeof props === 'object' && props !== null) { + Object.assign(data, props) + } + + data = JSON.parse(JSON.stringify(data).replace(/(JS|#|OSC|@|VAR)_\{/g, '$1{')) + + Session.converters['1.13.2'].widget(data) + + var widget = parser.parse({ + data: data, + parentNode: this.widget, + parent: this, + meta: {not_editable: true} + }) + + widget._index = i + + } + + } + + + return + case 'props': for (let i = this.children.length - 1; i >= 0; i--) { @@ -159,9 +207,6 @@ class Matrix extends Panel { Object.assign(this.children[i].props, data) this.children[i].updateProps(Object.keys(data), this, options) - // this.children[i] might have been recreated - this.children[i].container.classList.add('not-editable') - this.children[i]._not_editable = true } @@ -180,7 +225,7 @@ class Matrix extends Panel { propValue = propValue !== undefined ? propValue : this.props[propName] var data = [], - quantity = this.resolveProp('quantity', undefined, false, false, false) + quantity = Math.max(parseInt(this.resolveProp('quantity', undefined, false, false, false)) || 0, 0) if (typeof propValue === 'object' && propValue !== null && !Array.isArray(propValue)) { for (let i = 0; i < quantity; i++) { @@ -224,7 +269,8 @@ Matrix.parsersContexts.props = { } Matrix.dynamicProps = Matrix.prototype.constructor.dynamicProps.concat( + 'quantity', 'props' ) -module.exports = Matrix +export default Matrix diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.mjs similarity index 81% rename from src/client/widgets/containers/modal.js rename to src/client/widgets/containers/modal.mjs index 5c3198df..1b810164 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.mjs @@ -1,10 +1,10 @@ -var Panel = require('./panel'), - {icon, iconify} = require('../../ui/utils'), - resize = require('../../events/resize'), - doubleTap = require('../mixins/double_tap'), - html = require('nanohtml'), - raw = require('nanohtml/raw'), - iOS13 = require('../../ui/ios') === 13 +import html from 'nanohtml' +import raw from 'nanohtml/raw' +import Panel from './panel.mjs' +import {icon, iconify} from '../../ui/utils.mjs' +import * as resize from '../../events/resize.mjs' +import doubleTap from '../mixins/double_tap' +import {DOM, PXSCALE} from '../../globals.mjs' class Modal extends Panel { @@ -18,7 +18,8 @@ class Modal extends Panel { return super.defaults().extend({ class_specific: { - doubleTap: {type: 'boolean', value: false, help: 'Set to `true` to make the modal require a double tap to open instead of a single tap'}, + doubleTap: {type: 'boolean', value: false, help: 'Set to `true` to make the modal require a double tap to open instead of a single tap (allows scrolling when touching the modal button)'}, + click: {type: 'boolean', value: false, help: 'Set to `true` to make the modal open/close upon click event instead of tap (allows scrolling when touching the modal button)'}, }, geometry: { _separator_modal_geometry: 'Modal geometry', @@ -38,7 +39,7 @@ class Modal extends Panel { ]}, popupLabel: {type: 'string|boolean', value: 'auto', help: 'Alternative label for the modal popup'}, popupPadding: {type: 'number', value: 'auto', help: 'Modal\'s inner spacing.'}, - verticalTabs: null, + tabsPosition: null, html: null }, children: { @@ -70,13 +71,6 @@ class Modal extends Panel { this.popupContent = DOM.get(this.popup, '.popup-content')[0] - if (iOS13 && this.getProp('scroll')) { - for (let dir in this.iosScrollbars) { - this.container.removeChild(this.iosScrollbars[dir].container) - this.popupContent.appendChild(this.iosScrollbars[dir].container) - } - } - // convert dimensions / coordinates to rem var geometry = {} for (var g of ['Width', 'Height', 'Left', 'Top']) { @@ -100,30 +94,23 @@ class Modal extends Panel { var closer = DOM.get(this.popup, '.closer')[0] - this.on('fast-click',(e)=>{ + this.on(this.getProp('click') ? 'click' : 'draginit',(e)=>{ if ((e.target === this.popup || e.target === closer) && this.value == 1) { - e.detail.preventOriginalEvent = true this.setValue(0, {sync:true, send:true}) + } else if (!this.getProp('doubleTap') && e.target === this.toggle) { + if (e.capturedByEditor === true) return + this.setValue(1, {sync:true, send:true}) } }, {element: this.container}) if (this.getProp('doubleTap')) { doubleTap(this, ()=>{ this.setValue(1, {sync:true, send:true}) - }, {element: this.toggle}) - } else { - this.on('fast-click',(e)=>{ - if (e.capturedByEditor === true) return - if (e.target === this.toggle) { - e.detail.preventOriginalEvent = true - this.setValue(1, {sync:true, send:true}) - } - }, {element: this.container}) + }, {element: this.toggle, click: this.getProp('click')}) } - this.escapeKeyHandler = ((e)=>{ - if (e.keyCode==27) this.setValue(0, {sync:true, send:true}) + if (e.key == 'Escape') this.setValue(0, {sync:true, send:true}) }).bind(this) this.value = 0 @@ -159,6 +146,8 @@ class Modal extends Panel { this.updatePopupLabel() } + if (this.getProp('scroll') && this.value) this.scrollLock = true + this.popup.classList.toggle('show', this.value) this.container.classList.toggle('on', this.value) @@ -169,6 +158,14 @@ class Modal extends Panel { this.setVisibility() if (this.value) { resize.check(this.widget, true) + + if (this.getProp('scroll')) { + setTimeout(()=>{ + this.scrollWidth = this.widget.scrollWidth - this.widget.clientWidth + this.scrollHeight = this.widget.scrollHeight - this.widget.clientHeight + this.setScroll(this.scroll[0], this.scroll[1], true) + }) + } } @@ -181,6 +178,8 @@ class Modal extends Panel { fixParents() { var parent = this.parent, + scrollX = 0, + scrollY = 0, stop = this.getProp('ignoreTabs') ? /root/ : /root|tab/ while (parent && parent.props && !String(parent.getProp('type')).match(stop)) { @@ -190,9 +189,19 @@ class Modal extends Panel { else if (parent.modalBreakout === 0) parent.container.classList.remove('modal-breakout') else parent.modalBreakout = 0 + scrollX += parent.widget.scrollLeft + scrollY += parent.widget.scrollTop + parent = parent.parent } + scrollX += parent.widget.scrollLeft + scrollY += parent.widget.scrollTop + + if (this.getProp('relative')) { + this.container.style.setProperty('--parent-scroll-x', scrollX + 'px') + this.container.style.setProperty('--parent-scroll-y', scrollY + 'px') + } this.modalBreakout += (this.value ? 1 : -1) if (this.modalBreakout > 0) this.container.classList.add('modal-breakout') @@ -257,6 +266,7 @@ class Modal extends Panel { case 'label': this.updateLabel() + // falls through case 'popupLabel': if (this.value) { this.updatePopupLabel() @@ -272,13 +282,6 @@ class Modal extends Panel { } - setScroll(x, y) { - - if (x !== undefined) this.popupContent.firstChild.scrollLeft = this.scroll[0] = x - if (y !== undefined) this.popupContent.firstChild.scrollTop = this.scroll[1] = y - - } - } Modal.cssVariables = Modal.prototype.constructor.cssVariables.concat( @@ -291,4 +294,4 @@ Modal.dynamicProps = Modal.prototype.constructor.dynamicProps.concat( 'popupPadding' ) -module.exports = Modal +export default Modal diff --git a/src/client/widgets/containers/panel.js b/src/client/widgets/containers/panel.mjs similarity index 64% rename from src/client/widgets/containers/panel.js rename to src/client/widgets/containers/panel.mjs index 73068517..7ab1aa4c 100644 --- a/src/client/widgets/containers/panel.js +++ b/src/client/widgets/containers/panel.mjs @@ -1,14 +1,12 @@ -var Container = require('../common/container'), - widgetManager = require('../../managers/widgets'), - parser = require('../../parser'), - html = require('nanohtml'), - {enableTraversingGestures, disableTraversingGestures} = require('../../events/drag'), - {setScrollbarColor} = require('../../ui/utils'), - iOS13 = require('../../ui/ios') === 13, - Fader = require('../sliders/fader'), faderDefaults, - Script = require('../scripts/script'), - resize = require('../../events/resize'), - fastdom = require('fastdom') +import html from 'nanohtml' +import fastdom from 'fastdom' +import Container from '../common/container.mjs' +import widgetManager from '../../managers/widgets.mjs' +import parser from '../../parser.mjs' +import {enableTraversingGestures, disableTraversingGestures} from '../../events/drag.mjs' +import {setScrollbarColor} from '../../ui/utils.mjs' +import Script from '../scripts/script.mjs' +import {DOM} from '../../globals.mjs' class Panel extends Container() { @@ -32,9 +30,14 @@ class Panel extends Container() { justify: {type: 'string', value: 'start', choices: ['start', 'end', 'center', 'space-around', 'space-between'], help:'If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template".'}, contain: {type: 'boolean', value: true, help:'If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel.'}, - scroll: {type: 'boolean', value: true, help: 'Set to `false` to disable scrollbars'}, + scroll: {type: 'boolean|string', value: true, choices: [true, false, 'hidden', 'manual'], help: [ + '- `true`: scrollbars are show and content is scrollble', + '- `false`: scrollbars are hidden and content is not scrollble', + '- `"hidden"`: scrollbars are hidden (using css, may not work on old browsers) and content is scrollble', + '- `"manual"`: scrollbars are hidden (using css, may not work on old browsers) and content is scrollble only using scripting or scrollbar widgets', + ]}, innerPadding: {type : 'boolean', value: true, help: 'Set to `false` to make the `padding` property apply only between children and not at the container\'s inner boundaries.'}, - tabsPosition: {type: 'string', value: 'top', choices: ['top', 'bottom', 'left', 'right'], help: 'Defines the position of the navigation bar if the panel contains tabs'}, + tabsPosition: {type: 'string', value: 'top', choices: ['top', 'bottom', 'left', 'right', 'hidden'], help: 'Defines the position of the navigation bar if the panel contains tabs'}, }, value: { value: {type: 'integer|array', value: '', help: [ @@ -45,6 +48,9 @@ class Panel extends Container() { children: { widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'}, tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'}, + }, + scripting: { + onTouch: {type: 'script', value: '', editor:'javascript', help: ['Script executed when the panel is touched and released, and when the pointer moves when the widget is touched. See documentation.',]}, } }) @@ -68,7 +74,8 @@ class Panel extends Container() { } this.container.classList.toggle('no-inner-padding', !this.getProp('innerPadding')) - this.container.classList.toggle('no-scroll', !this.getProp('scroll')) + this.container.classList.toggle('no-scroll', !this.getProp('scroll') || this.getProp('scroll') == 'manual') + this.container.classList.toggle('hidden-scroll', this.getProp('scroll') == 'hidden') this.container.classList.add('layout-' + this.getProp('layout')) this.container.classList.toggle('layout-contain', this.getProp('contain')) @@ -98,87 +105,23 @@ class Panel extends Container() { this.container.classList.add('contains-widgets') if (this.getProp('scroll')) { - - if (iOS13) { - - faderDefaults = faderDefaults || Fader.defaults()._props() - - this.iosScrollbars = {} - for (let dir of ['vertical', 'horizontal']) { - this.iosScrollbars[dir] = new Fader({props:{ - ...faderDefaults, - design:'compact', - horizontal: dir === 'horizontal', - range: dir === 'horizontal' ? {min:0, max:1} : {min:1, max:0} - }, parent: this}) - this.iosScrollbars[dir].container.classList.add('not-editable') - this.iosScrollbars[dir].container.classList.add('ios-scrollbar') - this.iosScrollbars[dir].container.classList.add(dir) - this.iosScrollbars[dir]._scrollable = false - this.container.appendChild(this.iosScrollbars[dir].container) - } - this.iosScrollbars.horizontal.on('value-changed', (e)=>{ - e.stopPropagation = true - this.setScroll(parseInt(e.widget.getValue() * (this.widget.scrollWidth - this.widget.clientWidth)), undefined, true) - }) - this.iosScrollbars.vertical.on('value-changed', (e)=>{ - e.stopPropagation = true - this.setScroll(undefined, parseInt(e.widget.getValue() * (this.widget.scrollWidth - this.widget.clientWidth)), true) - }) - - this.checkScrollBars = ()=>{ - this.iosScrollbars.horizontal.container.style.setProperty('--knob-size', parseInt(this.widget.clientWidth * this.widget.clientWidth / this.widget.scrollWidth) + 'px') - this.iosScrollbars.vertical.container.style.setProperty('--knob-size', parseInt(this.widget.clientHeight * this.widget.clientHeight / this.widget.scrollHeight) + 'px') - this.iosScrollbars.horizontal._scrollable = this.container.classList.toggle('has-ios-scrollbar-h', this.widget.scrollWidth > this.widget.clientWidth) - this.iosScrollbars.vertical._scrollable = this.container.classList.toggle('has-ios-scrollbar-v', this.widget.scrollHeight > this.widget.clientHeight) - this.iosScrollbars.vertical.container.classList.toggle('double-scrollbar', this.iosScrollbars.horizontal._scrollable && this.iosScrollbars.vertical._scrollable) - if (this.iosScrollbars.horizontal._scrollable) resize.check(this.iosScrollbars.horizontal.container, true) - if (this.iosScrollbars.vertical._scrollable) resize.check(this.iosScrollbars.vertical.container, true) - - - this.iosScrollbars.horizontal.batchDraw() - } - - this.on('resize', (event)=>{ - this.checkScrollBars() - }, {element: this.widget}) - - } - - if (this.props.type !== 'modal') { - this.value = [0, 0] - this.scrollTimeout = null - } + this.scrollLock = false + this.scrollLockTimeout = null this.scroll = [0, 0] + this.scrollThumb = [1, 1] this.scrollWidth = 1 this.scrollHeight = 1 - this.settingScroll = false - this.settingScrollEnd = null fastdom.measure(()=>{ this.scrollWidth = this.widget.scrollWidth - this.widget.clientWidth this.scrollHeight = this.widget.scrollHeight - this.widget.clientHeight + this.scrollThumb = [this.widget.clientWidth / this.widget.scrollWidth || 1, this.widget.clientHeight / this.widget.scrollHeight || 1] }) - this.on('scroll', ()=>{ + this.on('scroll', (e)=>{ + if (this.scrollLock) e.locked = true this.scrollWidth = this.widget.scrollWidth - this.widget.clientWidth this.scrollHeight = this.widget.scrollHeight - this.widget.clientHeight - this.scroll = [this.widget.scrollLeft, this.widget.scrollTop] - var x = this.widget.scrollLeft / this.scrollWidth || 0, - y = this.widget.scrollTop / this.scrollHeight || 0 - if (iOS13) { - if (this.iosScrollbars.horizontal._scrollable) this.iosScrollbars.horizontal.setValue(x) - if (this.iosScrollbars.vertical._scrollable) this.iosScrollbars.vertical.setValue(y) - } - if (this.props.type !== 'modal') { - if (this.settingScroll) { - clearTimeout(this.settingScrollEnd) - this.settingScrollEnd = setTimeout(()=>{ - this.settingScroll = false - }) - } else { - this.setValue([x, y], {sync: true, send:true, fromScroll:true}) - } - - } + this.scroll = [this.widget.scrollLeft / this.scrollWidth || 0, this.widget.scrollTop / this.scrollHeight || 0] + this.scrollThumb = [this.widget.clientWidth / this.widget.scrollWidth || 1, this.widget.clientHeight / this.widget.scrollHeight || 1] }, {element: this.widget}) } @@ -213,7 +156,8 @@ class Panel extends Container() { parentNode: this.widget, parent: this, tab: true, - index: i + index: i, + meta: {...this.meta} }) } } @@ -255,7 +199,8 @@ class Panel extends Container() { data: this.getProp('widgets')[i], parentNode: this.widget, parent: this, - index: i + index: i, + meta: {...this.meta} }) } } @@ -267,6 +212,12 @@ class Panel extends Container() { if (this.getProp('traversing')) this.setTraversing() + if (this.getProp('onTouch')) { + this.on('draginit',(e)=>this.onTouch(e, 'start'), {element: this.container, multitouch: true}) + this.on('drag',(e)=>this.onTouch(e, 'move'), {element: this.container, multitouch: true}) + this.on('dragend',(e)=>this.onTouch(e, 'stop'), {element: this.container, multitouch: true}) + } + } createNavigation() { @@ -316,17 +267,8 @@ class Panel extends Container() { if (options.send) this.sendValue() if (options.sync) this.changed(options) - } else if (this.childrenType === 'widget' && Array.isArray(v) && v.length === 2 && this.props.type !== 'modal') { - - this.value = v - clearTimeout(this.scrollTimeout) - this.scrollTimeout = setTimeout(()=>{ - if (this.scroll) this.setScroll(v[0] * this.scrollWidth, v[1] * this.scrollHeight, !options.fromScroll) - }) - - if (options.send) this.sendValue() - if (options.sync) this.changed(options) } + } getScroll() { @@ -335,17 +277,66 @@ class Panel extends Container() { } - setScroll(x, y, updateDom) { - this.settingScroll = true + setScroll(x, y, updateDom, lock=true) { + if (x !== undefined) { this.scroll[0] = x - if (updateDom) this.widget.scrollLeft = x + if (updateDom) { + if (this.widget.scrollLeft != x * this.scrollWidth) { + this.scrollLock = !!lock + this.widget.scrollLeft = x * this.scrollWidth + } + } } if (y !== undefined) { this.scroll[1] = y - if (updateDom) this.widget.scrollTop = y + if (updateDom) { + if (this.widget.scrollTop != y * this.scrollHeight) { + this.scrollLock = !!lock + this.widget.scrollTop = y * this.scrollHeight + } + } } + // unlock scroll events only after some time to prevent smooth scrolling + // issues in firefox and prevent feedback loops + if (this.scrollLock) { + clearTimeout(this.scrollLockTimeout) + this.scrollLockTimeout = setTimeout(()=>{ + this.scrollLock = false + },100) + } + + } + + onTouch(e, name) { + + var event = {...e}, + w + + event.targetName = event.target ? event.target.getAttribute('name') : '' + event.targetTagName = event.target ? event.target.tagName : '' + + w = widgetManager.getWidgetByElement(event.target) + if (w) event.target = w === this ? 'this' : w.getProp('id') + else event.target = null + + w = widgetManager.getWidgetByElement(event.firstTarget) + if (w) event.firstTarget = w === this ? 'this' : w.getProp('id') + else event.firstTarget = null + + event.type = name + + this.scripts.onTouch.run({ + value: this.value, + event: event + }, {sync: true, send: true}) + + e.inertia = parseFloat(event.inertia) || 1 + + if (name != 'stop' && event.preventDefault) e.preventDefault = true + if (event.allowScroll) e.allowScroll = true + } onPropChanged(propName, options, oldPropValue) { @@ -360,8 +351,8 @@ class Panel extends Container() { case 'colorBg': this.setCssVariables() + // falls through case 'colorWidget': - if (iOS13 && this.getProp('scroll')) this.checkScrollBars() case 'colorText': case 'colorFill': case 'colorStroke': @@ -399,7 +390,6 @@ class Panel extends Container() { onRemove() { - this.off('resize') super.onRemove() } @@ -411,4 +401,4 @@ Panel.dynamicProps = Panel.prototype.constructor.dynamicProps.concat( 'traversing' ) -module.exports = Panel +export default Panel diff --git a/src/client/widgets/containers/patchbay.js b/src/client/widgets/containers/patchbay.mjs similarity index 87% rename from src/client/widgets/containers/patchbay.js rename to src/client/widgets/containers/patchbay.mjs index e01dc307..cc10fc29 100644 --- a/src/client/widgets/containers/patchbay.js +++ b/src/client/widgets/containers/patchbay.mjs @@ -1,9 +1,10 @@ -var Widget = require('../common/widget'), - Canvas = require('../common/canvas'), - Container = require('../common/container'), - {iconify} = require('../../ui/utils'), - parser = require('../../parser'), - html = require('nanohtml') +import html from 'nanohtml' +import Widget from '../common/widget.mjs' +import Canvas from '../common/canvas.mjs' +import Container from '../common/container.mjs' +import {iconify} from '../../ui/utils.mjs' +import parser from '../../parser.mjs' +import {DOM, PXSCALE} from '../../globals.mjs' class PatchBayNode extends Widget { @@ -167,19 +168,19 @@ class PatchBay extends Container(Canvas) { let w = parser.parse({ data: { type: 'patchbaynode', + comments: this.inputs[k], // TODO: using comment prop to smuggle input identifier, ok but could be more elegant id: this.getProp('id') + '/' + this.inputs[k], address: '#{@{parent.address} == "auto" ? "/" + @{parent.id} : @{parent.address}}', target: '@{parent.target}', ignoreDefaults: '@{parent.ignoreDefaults}', - preArgs: this.inputs[k], + preArgs: '#{@{parent.preArgs} == "" ? @{this.comments} : Array.isArray(@{parent.preArgs}) ? @{parent.preArgs}.concat(@{this.comments}) : [@{parent.preArgs}, @{this.comments}]}', bypass: '@{parent.bypass}', label: k }, parentNode: DOM.get(this.widget, '.inputs')[0], - parent: this + parent: this, + meta: {not_editable: true} }) - w.container.classList.add('not-editable') - w._not_editable = true this.inputsWidgets.push(w) this.inputNodes.push(w.container) this.value[k] = [] @@ -198,31 +199,42 @@ class PatchBay extends Container(Canvas) { this.connecting = [] + this.mousePosition = [] + this.dragging = false - this.on('fast-click', (e)=>{ + this.on('draginit', (e)=>{ this.toggleConnection(e.target) - e.stopPropagation() + if (e.target === this.canvas) { + this.mousePosition = [e.offsetX, e.offsetY] + } else { + if (this.inputNodes.includes(e.target)) { + this.mousePosition = [e.offsetX - e.target.offsetWidth, e.offsetY + e.target.offsetTop] + } else { + this.mousePosition = [e.offsetX + this.canvas.offsetWidth, e.offsetY + e.target.offsetTop] + } + } }, {element: this.widget}) - - this.mousePosition = [] this.on('drag', (e)=>{ if (!this.connecting.length) { this.toggleConnection(e.target) } - if (e.target === this.canvas) { - this.mousePosition = [e.offsetX, e.offsetY] - } else if (this.mousePosition.length) { - this.mousePosition[0] += e.movementX - this.mousePosition[1] += e.movementY - } + this.mousePosition[0] += e.movementX + this.mousePosition[1] += e.movementY + this.dragging = true this.batchDraw() }, {element: this.widget}) + this.on('dragend', (e)=>{ - if (this.mousePosition.length) { + + if (this.dragging) { + // touch hover fix + var node = e.isTouch ? document.elementFromPoint(e.clientX, e.clientY) : e.target + this.mousePosition = [] - this.toggleConnection(e.target) + this.toggleConnection(node) } + this.dragging = false }, {element: this.widget}) @@ -362,7 +374,7 @@ class PatchBay extends Container(Canvas) { } -module.exports = { +export { PatchBay, PatchBayNode } diff --git a/src/client/widgets/containers/root.js b/src/client/widgets/containers/root.mjs similarity index 87% rename from src/client/widgets/containers/root.js rename to src/client/widgets/containers/root.mjs index 16aa480b..c61cdea5 100644 --- a/src/client/widgets/containers/root.js +++ b/src/client/widgets/containers/root.mjs @@ -1,7 +1,12 @@ -var Panel = require('./panel'), - StaticProperties = require('../mixins/static_properties'), - {updateMobileThemeColor} = require('../../ui/utils'), - mainMenu +import Panel from './panel.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import {updateMobileThemeColor} from '../../ui/utils.mjs' +import {DOM} from '../../globals.mjs' + +var mainMenu +;(async()=>{ + mainMenu = (await import('../../ui/main-menu.mjs')).default +})() class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'root'}) { @@ -47,6 +52,7 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro super(options) this.widget.classList.add('root') + this.root = true this.checkMenuVisibility() @@ -58,10 +64,6 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro checkMenuVisibility() { - if (READ_ONLY) return - - mainMenu = mainMenu || require('../../ui/main-menu') - if (this.getProp('hideMenu')) { mainMenu.container.style.display = 'none' } else { @@ -115,4 +117,4 @@ Root.dynamicProps = Root.prototype.constructor.dynamicProps.concat( ) -module.exports = Root +export default Root diff --git a/src/client/widgets/containers/tab.js b/src/client/widgets/containers/tab.mjs similarity index 91% rename from src/client/widgets/containers/tab.js rename to src/client/widgets/containers/tab.mjs index 5f9623b1..35f113c9 100644 --- a/src/client/widgets/containers/tab.js +++ b/src/client/widgets/containers/tab.mjs @@ -1,12 +1,12 @@ -var Panel = require('./panel'), - resize = require('../../events/resize'), - {iconify} = require('../../ui/utils') +import Panel from './panel.mjs' +import * as resize from '../../events/resize.mjs' +import {iconify} from '../../ui/utils.mjs' class Tab extends Panel { static description() { - return 'Tabbed panel widget' + return 'Tabbed panel widget.mjs' } @@ -87,8 +87,10 @@ class Tab extends Panel { case 'label': this.updateLabel() + // falls through case 'visible': resize.check(this.widget, true) + // falls through case 'colorText': case 'colorWidget': case 'colorFill': @@ -109,4 +111,4 @@ Tab.dynamicProps = Tab.prototype.constructor.dynamicProps.concat( 'label' ) -module.exports = Tab +export default Tab diff --git a/src/client/widgets/frames/frame.js b/src/client/widgets/frames/frame.mjs similarity index 62% rename from src/client/widgets/frames/frame.js rename to src/client/widgets/frames/frame.mjs index 6c7573fb..4fc9f616 100644 --- a/src/client/widgets/frames/frame.js +++ b/src/client/widgets/frames/frame.mjs @@ -1,19 +1,24 @@ -var Widget = require('../common/widget'), - html = require('nanohtml'), - locales = require('../../locales'), - StaticProperties = require('../mixins/static_properties') +import Widget from '../common/widget' +import html from 'nanohtml' +import StaticProperties from '../mixins/static_properties.mjs' +import {DOM} from '../../globals.mjs' class Frame extends StaticProperties(Widget, {bypass: true}) { static description() { - return 'Embed a web page in a frame.' + return 'Embed a web page in a frame. Note: some websites do not allow this.' } static defaults() { return super.defaults().extend({ + class_specific: { + allow: {type: 'string', value: '', help: [ + 'Content for the iframe element\'s allow attribute', + ]}, + }, value: { value: {type: 'string', value: '', help: [ 'External web page URL.', @@ -40,9 +45,8 @@ class Frame extends StaticProperties(Widget, {bypass: true}) { if (!this.getProp('border')) this.container.classList.add('noborder') this.frame = DOM.get(this.widget, '.frame')[0] - this.errorText = html`${locales('iframe_unauthorized')}` - this.errorTextMounted = false + if (this.getProp('allow')) this.frame.setAttribute('allow', this.getProp('allow')) } @@ -52,16 +56,8 @@ class Frame extends StaticProperties(Widget, {bypass: true}) { if (this.value) { this.frame.setAttribute('src', this.value) - this.widget.classList.remove('error') - if (this.errorTextMounted) { - this.widget.removeChild(this.errorText) - this.errorTextMounted = false - } } else { this.frame.setAttribute('src', '') - this.widget.classList.add('error') - this.widget.appendChild(this.errorText) - this.errorTextMounted = true } if (options.sync) this.changed(options) @@ -71,4 +67,4 @@ class Frame extends StaticProperties(Widget, {bypass: true}) { } -module.exports = Frame +export default Frame diff --git a/src/client/widgets/frames/html.js b/src/client/widgets/frames/html.mjs similarity index 78% rename from src/client/widgets/frames/html.js rename to src/client/widgets/frames/html.mjs index 38893298..283ec572 100644 --- a/src/client/widgets/frames/html.js +++ b/src/client/widgets/frames/html.mjs @@ -1,8 +1,8 @@ -var Widget = require('../common/widget'), - morph = require('nanomorph'), - html = require('nanohtml'), - sanitizeHtml = require('sanitize-html'), - StaticProperties = require('../mixins/static_properties') +import morph from 'nanomorph' +import html from 'nanohtml' +import Widget from '../common/widget.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import {DOM} from '../../globals.mjs' class Html extends StaticProperties(Widget, {bypass: true}) { @@ -49,7 +49,7 @@ class Html extends StaticProperties(Widget, {bypass: true}) { var newHtml = this.frame.cloneNode(false) - newHtml.innerHTML = sanitizeHtml(this.getProp('html'), Widget.sanitizeHtmlOptions) + newHtml.innerHTML = this.getProp('html') morph(this.frame, newHtml) @@ -72,4 +72,4 @@ class Html extends StaticProperties(Widget, {bypass: true}) { } -module.exports = Html +export default Html diff --git a/src/client/widgets/frames/image.js b/src/client/widgets/frames/image.mjs similarity index 90% rename from src/client/widgets/frames/image.js rename to src/client/widgets/frames/image.mjs index 9f81610c..9eae72c4 100644 --- a/src/client/widgets/frames/image.js +++ b/src/client/widgets/frames/image.mjs @@ -1,9 +1,10 @@ -var Widget = require('../common/widget'), - html = require('nanohtml'), - {urlParser} = require('../utils'), - StaticProperties = require('../mixins/static_properties') +import html from 'nanohtml' +import Widget from '../common/widget.mjs' +import {urlParser} from '../utils.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import {DOM} from '../../globals.mjs' -module.exports = class Image extends StaticProperties(Widget, {bypass: true}) { +export default class Image extends StaticProperties(Widget, {bypass: true}) { static description() { @@ -69,7 +70,7 @@ module.exports = class Image extends StaticProperties(Widget, {bypass: true}) { if (!s.length) { - this.value = this.getProp('default') + this.value = String(this.getProp('default')) } else if (s != 'reload') { diff --git a/src/client/widgets/frames/svg.js b/src/client/widgets/frames/svg.mjs similarity index 90% rename from src/client/widgets/frames/svg.js rename to src/client/widgets/frames/svg.mjs index 1bca1d9a..443cd3ef 100644 --- a/src/client/widgets/frames/svg.js +++ b/src/client/widgets/frames/svg.mjs @@ -1,7 +1,8 @@ -var Widget = require('../common/widget'), - morph = require('nanomorph'), - html = require('nanohtml'), - StaticProperties = require('../mixins/static_properties') +import morph from 'nanomorph' +import html from 'nanohtml' +import Widget from '../common/widget.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import {DOM} from '../../globals.mjs' class Svg extends StaticProperties(Widget, {bypass: true}) { @@ -111,4 +112,4 @@ Svg.dynamicProps = Svg.prototype.constructor.dynamicProps.concat( 'svg' ) -module.exports = Svg +export default Svg diff --git a/src/client/widgets/graphs/eq.js b/src/client/widgets/graphs/eq.mjs similarity index 63% rename from src/client/widgets/graphs/eq.js rename to src/client/widgets/graphs/eq.mjs index 343a667d..b3c0263c 100644 --- a/src/client/widgets/graphs/eq.js +++ b/src/client/widgets/graphs/eq.mjs @@ -1,6 +1,6 @@ -var {mapToScale} = require('../utils'), - Plot = require('./plot'), - StaticProperties = require('../mixins/static_properties') +import {mapToScale} from '../utils.mjs' +import Plot from './plot.mjs' +import StaticProperties from '../mixins/static_properties.mjs' class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false, smooth:true}) { @@ -14,7 +14,7 @@ class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false, smoo return super.defaults().extend({ widget: { - interaction: null + interaction: {value: false} }, class_specific: { filters: {type: 'array', value: '', help: [ @@ -24,13 +24,20 @@ class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false, smoo '- `q`: number (Q factor, default: 1)', '- `gain`: number (default: 0)', '- `on`: boolean (default: true)', + '- `poles`: if `type` is "highpass" or "lowpass", indicates the number of poles for the filter (if omitted or 0, a biquad filter with Q factor is used). Set to 1 for 6dB/octaves roll-off, 2 for 12dB/octaves, etc.', 'See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode' ]}, pips: {type: 'boolean', value: true, help: 'Set to false to hide the scale'}, - rangeX: {type: 'object', value: {min: 20, max: 22000}, help: 'Defines the min and max values for the x axis (in Hz, logarithmic scale)'}, + rangeX: {type: 'object', value: {min: 20, max: 22000}, help: [ + 'Defines the min and max values for the x axis (in Hz, logarithmic scale)', + 'The sampling frequency used to compute the response curve will be 2 * rangeX.max', + + ]}, rangeY: {type: 'object', value: {min:-6, max:6}, help: 'Defines the min and max values for the y axis (in dB)'}, origin: {type: 'number|boolean', value: 'auto', help: 'Defines the y axis origin. Set to `false` to disable it'}, + logScaleX: null, + logScaleY: null }, osc: { decimals: null, @@ -46,54 +53,72 @@ class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false, smoo super(options) - this.calcResponse() + this.setupArrays() + this.calcPending = true + this.batchDraw() + + } + + setupArrays() { + + this.freqs = new Float32Array(this.width) + this.value = new Float32Array(this.width).fill(0) + + var i, + min = this.getProp('rangeX').min, + max = this.getProp('rangeX').max, + width = this.width + + for (i = 0; i < width; ++i) { + this.freqs[i] = mapToScale(i, [0, width], [min, max], -1, true) + } } calcResponse() { - var resolution = this.width, - frequencyHz = new Float32Array(resolution), - filterResponse = new Float32Array(resolution).fill(0) - - for (let i = 0; i < resolution; ++i) { - frequencyHz[i] = mapToScale(i, [0, this.width], [this.getProp('rangeX').min, this.getProp('rangeX').max], -1, true) - } + this.value.fill(0) for (let filter of this.getProp('filters')) { if (filter.on !== undefined && !filter.on) continue + var poles = 1, + type = filter.type + + if ((type === 'lowpass' || type === 'highpass') && filter.poles !== undefined && filter.poles !== 0) { + poles = Math.max(parseInt(filter.poles), 1) + type += '-1p' + } + biquadResponse({ - type: filter.type || 'peak', + type: type || 'peak', gain: filter.gain || 0, frequency: filter.freq || 1000, - q: filter.q || 1 - }, frequencyHz, filterResponse) - + q: filter.q || 1, + poles, + Fs: this.getProp('rangeX').max * 2 + }, this.freqs, this.value) } - this.setValue(filterResponse, {sync: true}) - - - } - setValue(v, options={}) { - - if (!(v instanceof Float32Array) && !(Array.isArray(v)) || v.length !== this.width) return - - this.value = v - this.batchDraw() - - if (options.sync) this.changed(options) - + draw() { + if (this.calcPending) { + this.calcResponse() + this.calcPending = false + } + super.draw() } resizeHandle(event){ super.resizeHandle(event) - if (this.width !== this.value.length) this.calcResponse() + if (this.width !== this.value.length) { + this.setupArrays() + this.calcPending = true + this.batchDraw() + } } @@ -103,7 +128,8 @@ class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false, smoo switch (propName) { case 'filters': - this.calcResponse() + this.calcPending = true + this.batchDraw() return } @@ -116,17 +142,17 @@ Eq.dynamicProps = Eq.prototype.constructor.dynamicProps.concat( 'filters' ) -module.exports = Eq +export default Eq // biquadResponse -// Based on code by Nigel Redmon Dec 14, 2010 njr +// Based on code by Nigel Redmon @ https://www.earlevel.com function biquadResponse(options, frequencyHz, filterResponse) { - var {type, frequency, q, gain} = options, - Fs = 44100, + var {type, frequency, q, gain, Fs, poles} = options, len = frequencyHz.length, - a0, a1, a2, b1, b2,norm + a0, a1, a2, b1, b2,norm, + w, phi, y, i var V = Math.pow(10, Math.abs(gain) / 20) var K = Math.tan(Math.PI * frequency / Fs) @@ -150,6 +176,31 @@ function biquadResponse(options, frequencyHz, filterResponse) { b2 = (1 - K / q + K * K) * norm break + case 'lowpass-1p': + // b1 = Math.exp(-2.0 * Math.PI * (frequency / Fs)) + // a0 = 1.0 - b1 + // b1 = -b1 + // a1 = a2 = b2 = 0 + // using lowpass 1p1z instead + norm = 1 / (1 / K + 1) + a0 = a1 = norm + b1 = (1 - 1 / K) * norm + a2 = b2 = 0 + break + + case 'highpass-1p': + // b1 = -Math.exp(-2.0 * Math.PI * (0.5 - frequency / Fs)) + // a0 = 1.0 + b1 + // b1 = -b1 + // a1 = a2 = b2 = 0 + // using highpass 1p1z instead + norm = 1 / (K + 1) + a0 = norm + a1 = -norm + b1 = (K - 1) * norm + a2 = b2 = 0 + break + case 'bandpass': norm = 1 / (1 + K / q + K * K) a0 = K / q * norm @@ -224,18 +275,17 @@ function biquadResponse(options, frequencyHz, filterResponse) { break } - for (var i = 0; i < len; i++) { - var w = mapToScale(frequencyHz[i], [0, Fs / 2], [0, Math.PI], -1, false), - phi = Math.pow(Math.sin(w / 2), 2), - y = Math.log(Math.pow(a0 + a1 + a2, 2) - 4 * (a0 * a1 + 4 * a0 * a2 + a1 * a2) * phi + 16 * a0 * a2 * phi * phi) - - Math.log(Math.pow(1 + b1 + b2, 2) - 4 * (b1 + 4 * b2 + b1 * b2) * phi + 16 * b2 * phi *phi) + for (i = 0; i < len; i++) { + + w = mapToScale(frequencyHz[i], [0, Fs / 2], [0, Math.PI], -1, false), + phi = Math.pow(Math.sin(w / 2), 2), + y = Math.log(Math.pow(a0 + a1 + a2, 2) - 4 * (a0 * a1 + 4 * a0 * a2 + a1 * a2) * phi + 16 * a0 * a2 * phi * phi) - + Math.log(Math.pow(1 + b1 + b2, 2) - 4 * (b1 + 4 * b2 + b1 * b2) * phi + 16 * b2 * phi * phi) y = y * 10 / Math.LN10 - // if (y == -Infinity) y = -200 - - filterResponse[i] += y + filterResponse[i] += y * poles } diff --git a/src/client/widgets/graphs/plot.js b/src/client/widgets/graphs/plot.mjs similarity index 92% rename from src/client/widgets/graphs/plot.js rename to src/client/widgets/graphs/plot.mjs index e9b5c164..6259a00e 100644 --- a/src/client/widgets/graphs/plot.js +++ b/src/client/widgets/graphs/plot.mjs @@ -1,9 +1,10 @@ -var {mapToScale} = require('../utils'), - Canvas = require('../common/canvas'), - html = require('nanohtml'), - StaticProperties = require('../mixins/static_properties') +import html from 'nanohtml' +import {mapToScale} from '../utils.mjs' +import Canvas from '../common/canvas.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import {PXSCALE, JSON5} from '../../globals.mjs' -module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, interaction: false}) { +export default class Plot extends StaticProperties(Canvas, {bypass: true}) { static description() { @@ -15,7 +16,7 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte return super.defaults().extend({ widget: { - interaction: null + interaction: {value: false} }, style: { _separator_plot_style: 'Plot style', @@ -123,23 +124,21 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte var points = [], padding = this.cssVars.padding + this.cssVars.lineWidth, - decimals = this.getProp('smooth') ? 1 : 0, length = this.value.length, x, y, i, previousValue, nx, ny for (i = 0; i < length; i++) { if (this.value[i].length) { - points.push(mapToScale(this.value[i][0], [this.rangeX.min, this.rangeX.max], [padding, this.width - padding], decimals, this.logScaleX, true)) - points.push(mapToScale(this.value[i][1], [this.rangeY.min, this.rangeY.max], [this.height - 2 * PXSCALE - padding, 2 * PXSCALE + padding], decimals, this.logScaleY, true)) + points.push(mapToScale(this.value[i][0], [this.rangeX.min, this.rangeX.max], [padding, this.width - padding], -1, this.logScaleX, true)) + points.push(mapToScale(this.value[i][1], [this.rangeY.min, this.rangeY.max], [this.height - 2 * PXSCALE - padding, 2 * PXSCALE + padding], -1, this.logScaleY, true, true)) } else { if (i < length - 2 && this.value[i] === previousValue && this.value[i+1] === previousValue) { continue } - - nx = mapToScale(i, [0, this.value.length - 1], [padding, this.width - padding], decimals, this.logScaleX, true) - ny = mapToScale(this.value[i], [this.rangeY.min, this.rangeY.max], [this.height - 2 * PXSCALE - padding, 2 * PXSCALE + padding], decimals, this.logScaleY, true) + nx = mapToScale(i, [0, this.value.length - 1], [padding, this.width - padding], -1, this.logScaleX, true) + ny = mapToScale(this.value[i], [this.rangeY.min, this.rangeY.max], [this.height - 2 * PXSCALE - padding, 2 * PXSCALE + padding], -1, this.logScaleY, true, true) if (x !== nx || y !== ny) { points.push(nx) @@ -228,7 +227,7 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte if (typeof v == 'string') { try { - v = JSON.parseFlex(v) + v = JSON5.parse(v) } catch(err) {} } diff --git a/src/client/widgets/graphs/visualizer.js b/src/client/widgets/graphs/visualizer.mjs similarity index 91% rename from src/client/widgets/graphs/visualizer.js rename to src/client/widgets/graphs/visualizer.mjs index 8cb2eece..7ab31d75 100644 --- a/src/client/widgets/graphs/visualizer.js +++ b/src/client/widgets/graphs/visualizer.mjs @@ -1,10 +1,11 @@ -var {clip} = require('../utils'), - Plot = require('./plot'), - StaticProperties = require('../mixins/static_properties'), - canvasQueue = require('../common/queue') +import {clip} from '../utils.mjs' +import Plot from './plot.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import canvasQueue from '../common/queue.mjs' +import {CANVAS_FRAMERATE} from '../../globals.mjs' -class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dots: false, smooth: false, interaction: false}) { +class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dots: false, smooth: false}) { static description() { @@ -16,7 +17,7 @@ class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dot return super.defaults().extend({ widget: { - interaction: null + interaction: {value: false} }, style: { bars: null, @@ -168,4 +169,4 @@ Visualizer.dynamicProps = Visualizer.prototype.constructor.dynamicProps.concat( 'freeze' ) -module.exports = Visualizer +export default Visualizer diff --git a/src/client/widgets/index.js b/src/client/widgets/index.js deleted file mode 100644 index 38d3bc28..00000000 --- a/src/client/widgets/index.js +++ /dev/null @@ -1,73 +0,0 @@ -module.exports.widgets = { - - // basics - button: require('./basics/button'), - switch: require('./basics/switch'), - dropdown: require('./basics/dropdown'), - menu: require('./basics/menu'), - input: require('./basics/input'), - textarea: require('./basics/textarea'), - file: require('./basics/file'), - - // containers - panel: require('./containers/panel'), - folder: require('./containers/folder'), - root: require('./containers/root'), - tab: require('./containers/tab'), - modal: require('./containers/modal'), - clone: require('./containers/clone'), - fragment: require('./containers/fragment'), - matrix: require('./containers/matrix'), - keyboard: require('./containers/keyboard'), - patchbay: require('./containers/patchbay').PatchBay, - patchbaynode: require('./containers/patchbay').PatchBayNode, - - // frames - image: require('./frames/image'), - svg: require('./frames/svg'), - html: require('./frames/html'), - frame: require('./frames/frame'), - - // graphs - plot: require('./graphs/plot'), - eq: require('./graphs/eq'), - visualizer: require('./graphs/visualizer'), - - // indicators - led: require('./indicators/led'), - text: require('./indicators/text'), - - // pads - xy: require('./pads/xy'), - rgb: require('./pads/rgb'), - multixy: require('./pads/multixy'), - canvas: require('./pads/canvas'), - - // sliders - fader: require('./sliders/fader'), - knob: require('./sliders/knob'), - encoder: require('./sliders/encoder'), - range: require('./sliders/range'), - - // scripts - script: require('./scripts/script-widget'), - variable: require('./scripts/variable'), - -} - -module.exports.categories = { - 'Basics':['button', 'switch', 'dropdown', 'menu', 'input', 'textarea', 'file'], - 'Containers':['panel', 'modal', 'clone', 'fragment', 'matrix', 'keyboard', 'patchbay', 'folder'], - 'Frames':['frame', 'svg', 'html', 'image'], - 'Graphs':['plot','eq','visualizer'], - 'Indicators':['led', 'text'], - 'Pads':['xy','rgb','multixy', 'canvas'], - 'Sliders':['fader','knob', 'encoder', 'range'], - 'Scripts':['script', 'variable'], -} - -var defaults = {} -for (var k in module.exports.widgets) { - defaults[k] = module.exports.widgets[k].defaults() -} -module.exports.defaults = defaults diff --git a/src/client/widgets/index.mjs b/src/client/widgets/index.mjs new file mode 100644 index 00000000..6ea652cf --- /dev/null +++ b/src/client/widgets/index.mjs @@ -0,0 +1,128 @@ +// basics +import button from './basics/button.mjs' +import _switch from './basics/switch.mjs' +import dropdown from './basics/dropdown.mjs' +import menu from './basics/menu.mjs' +import input from './basics/input.mjs' +import textarea from './basics/textarea.mjs' +import file from './basics/file.mjs' + +// containers +import panel from './containers/panel.mjs' +import folder from './containers/folder.mjs' +import root from './containers/root.mjs' +import tab from './containers/tab.mjs' +import modal from './containers/modal.mjs' +import clone from './containers/clone.mjs' +import fragment from './containers/fragment.mjs' +import matrix from './containers/matrix.mjs' +import keyboard from './containers/keyboard.mjs' +import {PatchBay as patchbay, PatchBayNode as patchbaynode} from './containers/patchbay.mjs' + +// frames +import image from './frames/image.mjs' +import svg from './frames/svg.mjs' +import html from './frames/html.mjs' +import frame from './frames/frame.mjs' + +// graphs +import plot from './graphs/plot.mjs' +import eq from './graphs/eq.mjs' +import visualizer from './graphs/visualizer.mjs' + +// indicators +import led from './indicators/led.mjs' +import text from './indicators/text.mjs' + +// pads +import xy from './pads/xy.mjs' +import rgb from './pads/rgb.mjs' +import multixy from './pads/multixy.mjs' +import canvas from './pads/canvas.mjs' + +// sliders +import fader from './sliders/fader.mjs' +import knob from './sliders/knob.mjs' +import encoder from './sliders/encoder.mjs' +import range from './sliders/range.mjs' +import scrollbar from './sliders/scrollbar.mjs' + +// scripts +import script from './scripts/script-widget.mjs' +import variable from './scripts/variable.mjs' + +export const widgets = { + + // basics + button, + switch: _switch, + dropdown, + menu, + input, + textarea, + file, + + // containers + panel, + folder, + root, + tab, + modal, + clone, + fragment, + matrix, + keyboard, + patchbay, + patchbaynode, + + // frames + image, + svg, + html, + frame, + + // graphs + plot, + eq, + visualizer, + + // indicators + led, + text, + + // pads + xy, + rgb, + multixy, + canvas, + + // sliders + fader, + knob, + encoder, + range, + scrollbar, + + // scripts + script, + variable, + +} + +export const categories = { + 'Basics':['button', 'switch', 'dropdown', 'menu', 'input', 'textarea', 'file'], + 'Containers':['panel', 'modal', 'clone', 'fragment', 'matrix', 'keyboard', 'patchbay', 'folder'], + 'Frames':['frame', 'svg', 'html', 'image'], + 'Graphs':['plot','eq','visualizer'], + 'Indicators':['led', 'text'], + 'Pads':['xy','rgb','multixy', 'canvas'], + 'Sliders':['fader','knob', 'encoder', 'range', 'scrollbar'], + 'Scripts':['script', 'variable'], +} + +var defaults = {} +for (var k in widgets) { + defaults[k] = widgets[k].defaults() + widgets[k]._defaults = defaults[k]._props() +} +export {defaults} diff --git a/src/client/widgets/indicators/led.js b/src/client/widgets/indicators/led.mjs similarity index 90% rename from src/client/widgets/indicators/led.js rename to src/client/widgets/indicators/led.mjs index 422347de..b3b87498 100644 --- a/src/client/widgets/indicators/led.js +++ b/src/client/widgets/indicators/led.mjs @@ -1,9 +1,8 @@ -var {mapToScale} = require('../utils'), - Widget = require('../common/widget'), - html = require('nanohtml'), - StaticProperties = require('../mixins/static_properties') +import html from 'nanohtml' +import {mapToScale} from '../utils.mjs' +import Widget from '../common/widget.mjs' -module.exports = class Led extends StaticProperties(Widget, {interaction: false}) { +export default class Led extends Widget { static description() { @@ -15,7 +14,7 @@ module.exports = class Led extends StaticProperties(Widget, {interaction: false} return super.defaults().extend({ widget: { - interaction: null + interaction: {value: false} }, class_specific: { mode: {type: 'string', value: 'intensity', choices: ['intensity', 'color'], help: 'Defines how value is interpreted (see `value`)'}, diff --git a/src/client/widgets/indicators/text.js b/src/client/widgets/indicators/text.mjs similarity index 88% rename from src/client/widgets/indicators/text.js rename to src/client/widgets/indicators/text.mjs index 61df9d6a..79b154a8 100644 --- a/src/client/widgets/indicators/text.js +++ b/src/client/widgets/indicators/text.mjs @@ -1,9 +1,8 @@ -var {iconify} = require('../../ui/utils'), - Widget = require('../common/widget'), - html = require('nanohtml'), - StaticProperties = require('../mixins/static_properties') +import html from 'nanohtml' +import {iconify} from '../../ui/utils.mjs' +import Widget from '../common/widget.mjs' -module.exports = class Text extends StaticProperties(Widget, {interaction: false}) { +export default class Text extends Widget { static description() { @@ -15,7 +14,7 @@ module.exports = class Text extends StaticProperties(Widget, {interaction: false return super.defaults().extend({ widget: { - interaction: null + interaction: {value: false} }, style: { _separator_text_style: 'Text style', diff --git a/src/client/widgets/mixins/double_tap.js b/src/client/widgets/mixins/double_tap.mjs similarity index 78% rename from src/client/widgets/mixins/double_tap.js rename to src/client/widgets/mixins/double_tap.mjs index 0c8910a9..8564e9c5 100644 --- a/src/client/widgets/mixins/double_tap.js +++ b/src/client/widgets/mixins/double_tap.mjs @@ -1,6 +1,7 @@ -var {normalizeDragEvent} = require('../../events/utils') +import {normalizeDragEvent} from '../../events/utils.mjs' +import {DOUBLE_TAP_TIME} from '../../globals.mjs' -module.exports = (self, callback, options={})=>{ +export default (self, callback, options={})=>{ var lastTapTime = 0, lastTapX, @@ -24,8 +25,10 @@ module.exports = (self, callback, options={})=>{ ) { // execute callback at next cycle to ensure draginit events are resolved first + // normalize event now or offset gets lost + var e = normalizeDragEvent(event.detail) setTimeout(()=>{ - callback(normalizeDragEvent(event.detail)) + callback(e) }, 0) lastTapTime = 0 diff --git a/src/client/widgets/mixins/static_properties.js b/src/client/widgets/mixins/static_properties.mjs similarity index 87% rename from src/client/widgets/mixins/static_properties.js rename to src/client/widgets/mixins/static_properties.mjs index fc415dde..041ffe40 100644 --- a/src/client/widgets/mixins/static_properties.js +++ b/src/client/widgets/mixins/static_properties.mjs @@ -13,4 +13,4 @@ let StaticProperties = (superclass, props) => class extends superclass { } -module.exports = StaticProperties +export default StaticProperties diff --git a/src/client/widgets/mixins/touch_state.js b/src/client/widgets/mixins/touch_state.mjs similarity index 78% rename from src/client/widgets/mixins/touch_state.js rename to src/client/widgets/mixins/touch_state.mjs index e23b13ff..941cc18a 100644 --- a/src/client/widgets/mixins/touch_state.js +++ b/src/client/widgets/mixins/touch_state.mjs @@ -1,4 +1,4 @@ -module.exports = (self, options)=>{ +export default (self, options)=>{ if (self.parent.preventChildrenTouchState) return @@ -6,6 +6,12 @@ module.exports = (self, options)=>{ self.setValueTouchedQueue = undefined self.on('draginit',(e)=>{ + self.setValueTouchedQueue = undefined + + if (self.shouldDrag && !self.shouldDrag(e)) { + e.cancelDragEvent = true + return + } self.touched += 1 if (self.touched == 1) { self.trigger('touch', {stopPropagation: true, touch: 1}) @@ -30,6 +36,7 @@ module.exports = (self, options)=>{ self.onRemove = ()=>{ if (self.touched > 0) { + self.setValueTouchedQueue = undefined self.trigger('touch', {stopPropagation: true, touch: 0}) } self.__proto__.onRemove.call(self) diff --git a/src/client/widgets/pads/canvas.js b/src/client/widgets/pads/canvas.mjs similarity index 78% rename from src/client/widgets/pads/canvas.js rename to src/client/widgets/pads/canvas.mjs index 9ef4dec0..8b0c62e1 100644 --- a/src/client/widgets/pads/canvas.js +++ b/src/client/widgets/pads/canvas.mjs @@ -1,7 +1,7 @@ -var Canvas = require('../common/canvas'), - Script = require('../scripts/script'), - widgetManager = require('../../managers/widgets'), - html = require('nanohtml') +import html from 'nanohtml' +import Canvas from '../common/canvas.mjs' +import Script from '../scripts/script.mjs' +import widgetManager from '../../managers/widgets.mjs' class CanvasWidget extends Canvas { @@ -15,12 +15,13 @@ class CanvasWidget extends Canvas { var defaults = super.defaults().extend({ class_specific: { + contextType: {type: 'string', value: '2d', choices: ['2d', 'webgl2'], help: 'Context type for the canvas'}, valueLength: {type: 'number', value: 1, help:[ 'Defines the number of values accepted by the widget (minimum 1). Incoming messages that don\'t comply will be ignored', 'When calling `set()` from a script, submitted value should be an array only if `valueLength` is greater than 1.' ]}, autoClear: {type: 'boolean', value: true, help: [ - 'If set to `false`, the canvas context won\'t be cleared automatically and `ctx.clear()` will need to be called in `onDraw`.' + 'If set to `false`, the canvas context won\'t be cleared automatically and `ctx.clearRect()` will need to be called in `onDraw`. Ignored if `contextType` is different from `2d`.' ]}, continuous: {type: 'boolean|number', value: false, help: [ 'If set to `true`, `onDraw` will be called at each frame, otherwise it will be called only when the widget is touched and when it receives a value.', @@ -93,38 +94,9 @@ class CanvasWidget extends Canvas { } }) - var touchCb = (e, type)=>{ - - var event = {...e} - delete event.firstTarget - event.targetName = event.target.getAttribute('name') - event.targetTagName = event.target.tagName - var w = widgetManager.getWidgetByElement(event.target) - if (w) event.target = w === this ? 'this' : w.getProp('id') - else event.target = null - event.type = type - - this.scripts.onTouch.run({ - value: this.value, - width: this.width, - height: this.height, - event: event, - }, {sync: true, send: true}) - - this.batchDraw() - } - - this.on('draginit',(e)=>{ - touchCb(e, 'start') - }, {element: this.container, multitouch: true}) - - this.on('drag',(e)=>{ - touchCb(e, 'move') - }, {element: this.container, multitouch: true}) - - this.on('dragend',(e)=>{ - touchCb(e, 'stop') - }, {element: this.container, multitouch: true}) + this.on('draginit',(e)=>this.onTouch(e, 'start'), {element: this.container, multitouch: true}) + this.on('drag',(e)=>this.onTouch(e, 'move'), {element: this.container, multitouch: true}) + this.on('dragend',(e)=>this.onTouch(e, 'stop'), {element: this.container, multitouch: true}) } @@ -138,6 +110,31 @@ class CanvasWidget extends Canvas { } + onTouch(e, name) { + + var event = {...e} + delete event.firstTarget + + event.targetName = event.target ? event.target.getAttribute('name') : '' + event.targetTagName = event.target ? event.target.tagName : '' + + var w = widgetManager.getWidgetByElement(event.target) + if (w) event.target = w === this ? 'this' : w.getProp('id') + else event.target = null + + event.type = name + + this.scripts.onTouch.run({ + value: this.value, + width: this.width, + height: this.height, + event: event, + }, {sync: true, send: true}) + + this.batchDraw() + + } + setValue(v, options={}) { if (Array.isArray(v)) { @@ -159,7 +156,7 @@ class CanvasWidget extends Canvas { if (!this.getProp('onDraw')) return - if (this.getProp('autoClear')) { + if (this.getProp('autoClear') && this.getProp('contextType') === '2d') { this.clear() this.ctx.beginPath() } @@ -183,7 +180,7 @@ class CanvasWidget extends Canvas { width: this.width, height: this.height, cssVars: this.cssVars - }, {sync: false, send: false}) + }, {sync: true, send: true}) } @@ -200,4 +197,4 @@ class CanvasWidget extends Canvas { CanvasWidget.dynamicProps = CanvasWidget.prototype.constructor.dynamicProps.concat([ ]) -module.exports = CanvasWidget +export default CanvasWidget diff --git a/src/client/widgets/pads/multixy.js b/src/client/widgets/pads/multixy.mjs similarity index 61% rename from src/client/widgets/pads/multixy.js rename to src/client/widgets/pads/multixy.mjs index 3e2345f2..9ee2b584 100644 --- a/src/client/widgets/pads/multixy.js +++ b/src/client/widgets/pads/multixy.mjs @@ -1,14 +1,15 @@ -var Pad = require('./pad'), - Xy = require('./xy'), - {clip} = require('../utils'), - doubleTap = require('../mixins/double_tap'), - touchstate = require('../mixins/touch_state') +import Pad from './pad.mjs' +import Xy from './xy.mjs' +import {clip} from '../utils.mjs' +import doubleTap from '../mixins/double_tap.mjs' +import touchstate from '../mixins/touch_state.mjs' +import {PXSCALE} from '../../globals.mjs' var xyDefaults = Xy.defaults()._props() -module.exports = class MultiXy extends Pad { +class MultiXy extends Pad { static description() { @@ -22,7 +23,7 @@ module.exports = class MultiXy extends Pad { var defaults = super.defaults().extend({ style: { _separator_xy_style: 'Xy style', - pointSize: {type: 'integer', value: 20, help: 'Defines the points\' size'}, + pointSize: {type: 'integer', value: 20, help: 'Defines the points\' default size (may be in %)'}, ephemeral: {type: 'boolean', value: false, help: 'When set to `true`, the points will be drawn only while touched.'}, pips: {type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, }, @@ -31,22 +32,39 @@ module.exports = class MultiXy extends Pad { 'Defines the number of points on the pad', 'Can be an array of strings that will be used as labels for the points (ex: `[\'A\', \'B\']`)' ]}, + pointsAttr: {type: 'object', value: [], help: [ + 'Defines per-point properties that are otherwise inherited from the multixy. Must be an array of objects (one per point) that may contain the following keys:', + '- visible (visibility and interactability)', + '- colorFill (background color)', + '- colorStroke (outline color)', + '- colorText (label color)', + '- color (shorthand for colorFill and colorStroke)', + '- alphaFillOn (background opacity)', + '- pointSize', + '- label', + '- clipX', + '- clipY', + '- axisLock' + ]}, snap: {type: 'boolean', value: false, help: [ 'By default, the points are dragged from their initial position.', 'If set to `true`, touching anywhere on the widget\'s surface will make them snap to the touching coordinates', ]}, spring: {type: 'boolean', value: false, help: 'When set to `true`, the widget will go back to its default value when released'}, - rangeX: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the x axis'}, - rangeY: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the y axis'}, + rangeX: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the x axis (see fader)'}, + rangeY: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the y axis (see fader)'}, logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale.'}, logScaleY: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale.'}, - axisLock: {type: 'string', value: '', choices: ['', 'x', 'y'], help: [ + stepsX: {type: 'number|array|string', value: false, help: 'Defines `steps` for the x axis (see fader)'}, + stepsY: {type: 'number|array|string', value: false, help: 'Defines `steps` for the x axis (see fader)'}, + axisLock: {type: 'string', value: '', choices: ['', 'x', 'y', 'auto'], help: [ 'Restrict movements to one of the axes only.', - 'When left to the default value, holding `Shift` while dragging will lock the pad according the first movement.' + 'When left empty, holding `Shift` while dragging will lock the pad according the first movement. `auto` will do the opposite.' ]}, - doubleTap: {type: 'boolean|string', value: false, help: [ - 'Set to `true` to make the fader reset to its default value when receiving a double tap.', - 'Can also be an osc address, which case the widget will just send an osc message: `/ `' + doubleTap: {type: 'boolean|string', value: false, choices: [false, true, 'script'], help: [ + 'Set to `true` to make the knob reset to its `default` value when receiving a double tap.', + 'Can be an osc address, in which case the widget will just send an osc message with no value (but `preArgs` included).', + 'If set to "script", `onTouch` will be called with `event.type` set to `doubleTap`. ' ]}, sensitivity: {type: 'number', value: 1, help: 'Defines the pad\'s sensitivity when `snap` is `false` '}, } @@ -62,8 +80,9 @@ module.exports = class MultiXy extends Pad { super(options) - this.npoints = Array.isArray(this.getProp('points')) ? this.getProp('points').length : this.getProp('points') || 0 - this.labels = Array.isArray(this.getProp('points')) + this.npoints = Array.isArray(this.getProp('points')) ? this.getProp('points').length : parseInt(this.getProp('points')) + + if (isNaN(this.npoints) || this.npoints < 1) this.npoints = 1 this.preventChildrenTouchState = true this.pads = [] @@ -80,9 +99,11 @@ module.exports = class MultiXy extends Pad { decimals:this.getProp('decimals'), logScaleX:this.getProp('logScaleX'), logScaleY:this.getProp('logScaleY'), + stepsX:this.getProp('stepsX'), + stepsY:this.getProp('stepsY'), axisLock:this.getProp('axisLock'), pointSize: 'auto', - pips: this.getProp('pips') && i == this.npoints-1, + pips: false, sensitivity: this.getProp('sensitivity'), input:false }, parent: this}) @@ -91,9 +112,30 @@ module.exports = class MultiXy extends Pad { } + // tiny hack for pips until there's a proper range refactoring + this.faders = this.pads[0].faders + + this.pointsAttr = [] + this.updatePadsAttr() + this.padsCoords = [] this.touchMap = {} + this.on('dragend',(e)=>{ + + var i = this.touchMap[e.pointerId] + + if (!i) return + + this.pads[i].touched = 0 + this.pads[i].trigger('dragend', e) + + this.trigger('touch', {stopPropagation: true, touch: [parseInt(this.touchMap[e.pointerId]), 0]}) + + delete this.touchMap[e.pointerId] + + }, {element: this.widget, multitouch: true}) + touchstate(this, {element: this.widget, multitouch: true}) this.on('draginit',(e)=>{ @@ -102,37 +144,19 @@ module.exports = class MultiXy extends Pad { if (!this.touchMap[e.pointerId]) { - var ndiff, diff = -1 - - for (var i in this.pads) { - - if (Object.values(this.touchMap).indexOf(i) != -1) continue - - ndiff = Math.abs(e.offsetX - this.padsCoords[i][0]) + Math.abs(e.offsetY - (this.padsCoords[i][1] + this.height)) - - if (diff == -1 || ndiff < diff) { - id = i - diff = ndiff - } - - } + id = this.getPadIdFromCoords(e.offsetX, e.offsetY) this.touchMap[e.pointerId] = id - } if (!id) return - e.stopPropagation = true - this.trigger('touch', {stopPropagation: true, touch: [parseInt(id), 1]}) this.pads[id].trigger('draginit', e) this.pads[id].touched = 1 - if (this.getProp('ephemeral')) this.batchDraw() - }, {element: this.widget, multitouch: true}) this.on('drag',(e)=>{ @@ -141,31 +165,12 @@ module.exports = class MultiXy extends Pad { if (!i) return - e.inertia = 1 // cancel mutlifinger inertia + e.fingers = 1 // cancel mutlifinger inertia this.pads[i].trigger('drag', e) }, {element: this.widget, multitouch: true}) - this.on('dragend',(e)=>{ - - var i = this.touchMap[e.pointerId] - - if (!i) return - - e.stopPropagation = true - - this.pads[i].touched = 0 - this.pads[i].trigger('dragend', e) - - this.trigger('touch', {stopPropagation: true, touch: [parseInt(this.touchMap[e.pointerId]), 0]}) - - delete this.touchMap[e.pointerId] - - if (this.getProp('ephemeral')) this.batchDraw() - - }, {element: this.widget, multitouch: true}) - this.on('value-changed',(e)=>{ if (e.widget == this) return e.stopPropagation = true @@ -195,7 +200,16 @@ module.exports = class MultiXy extends Pad { } var pad = this.pads[id] - pad.setValue([pad.faders.x.getSpringValue(), pad.faders.y.getSpringValue()], { sync: true, send: true, spring: true, doubleTap: true }) + + if (this.getProp('doubleTap') == 'script') { + this.scripts.onTouch.run({ + event: {type: 'doubleTap', handle: id}, + value: this.value + }, {sync: true, send: true}) + } else { + pad.setValue([pad.faders.x.getSpringValue(), pad.faders.y.getSpringValue()], { sync: true, send: true, spring: true, doubleTap: true }) + } + }, { element: this.widget}) } @@ -211,6 +225,29 @@ module.exports = class MultiXy extends Pad { } + getPadIdFromCoords(x, y) { + + var ndiff, diff = -1, + id + + for (var i in this.pads) { + + if (Object.values(this.touchMap).indexOf(i) != -1) continue + if (!this.pads[i].getProp('visible')) continue + + ndiff = Math.abs(x - this.padsCoords[i][0]) + Math.abs(y - (this.padsCoords[i][1] + this.height)) + + if (diff == -1 || ndiff < diff) { + id = i + diff = ndiff + } + + } + + return id + + } + extraResizeHandle(event){ super.extraResizeHandle(event) @@ -233,6 +270,7 @@ module.exports = class MultiXy extends Pad { this.pads[k].cacheCanvasStyle() this.pads[k].batchDraw() } + this.batchDraw() } @@ -242,13 +280,14 @@ module.exports = class MultiXy extends Pad { for (var k in this.pads) { this.pads[k].setVisibility() } + this.batchDraw() } updateHandlesPosition() { for (var i=0;ix.js==n) + if (cssVar) { + this.pads[i].canvas.style.setProperty(cssVar.css, this.pointsAttr[i][n] == 'auto' ? '' : this.pointsAttr[i][n]) + } + + if (n == 'visible') { + this.pads[i].canvas.style.setProperty('opacity', this.pointsAttr[i][n] ? 1 : 0) + } + + } + } + } + + + } + onPropChanged(propName, options, oldPropValue) { if (super.onPropChanged(...arguments)) return true switch (propName) { + case 'padding': + for (let w of this.pads) { + w.onPropChanged(propName) + } + return + case 'colorText': case 'colorWidget': case 'colorFill': @@ -333,19 +406,11 @@ module.exports = class MultiXy extends Pad { case 'alphaStroke': case 'alphaFillOff': case 'alphaFillOn': - case 'padding': - case 'lineWidth': - for (let w of this.pads) { - w.onPropChanged(propName) - } - return + case 'pointsAttr': case 'spring': + case 'pointSize': case 'axisLock': - for (let w of this.pads) { - w.cachedProps[propName] = this.getProp(propName) - w.onPropChanged(propName, options) - } - this.batchDraw() + this.updatePadsAttr(options) return } @@ -359,3 +424,10 @@ module.exports = class MultiXy extends Pad { } } + + +MultiXy.dynamicProps = MultiXy.prototype.constructor.dynamicProps.filter(n => n !== 'decimals').concat([ + 'pointsAttr', +]) + +export default MultiXy diff --git a/src/client/widgets/pads/pad.js b/src/client/widgets/pads/pad.js deleted file mode 100644 index ca925418..00000000 --- a/src/client/widgets/pads/pad.js +++ /dev/null @@ -1,53 +0,0 @@ -var Canvas = require('../common/canvas'), - html = require('nanohtml') - -class Pad extends Canvas { - - constructor(options) { - - super({...options, value: [], html: html` - - - - `}) - - } - - cacheCanvasStyle(style) { - - style = style || window.getComputedStyle(this.canvas) - - super.cacheCanvasStyle(style) - - this.padPadding = (this.cssVars.padding + this.cssVars.lineWidth) + 2 * PXSCALE - - } - - onPropChanged(propName, options, oldPropValue) { - - var ret = super.onPropChanged(...arguments) - - switch (propName) { - case 'pointSize': - this.setCssVariables() - return - } - - return ret - - - } - -} - -Pad.cssVariables = Pad.prototype.constructor.cssVariables.concat( - {js: 'pointSize', css: '--point-size', toCss: x=>parseFloat(x) + 'rem', toJs: x=>parseFloat(x) * PXSCALE}, -) - -Pad.dynamicProps = Pad.prototype.constructor.dynamicProps.filter(n => n !== 'decimals').concat([ - 'spring', - 'axisLock', - 'pointSize' -]) - -module.exports = Pad diff --git a/src/client/widgets/pads/pad.mjs b/src/client/widgets/pads/pad.mjs new file mode 100644 index 00000000..68660e64 --- /dev/null +++ b/src/client/widgets/pads/pad.mjs @@ -0,0 +1,113 @@ +import html from 'nanohtml' +import Canvas from '../common/canvas.mjs' +import {PXSCALE} from '../../globals.mjs' + +class Pad extends Canvas { + + constructor(options) { + + super({...options, value: [], html: html` + + + + `}) + + } + + cacheCanvasStyle(style) { + + style = style || window.getComputedStyle(this.canvas) + + super.cacheCanvasStyle(style) + + this.padPadding = (this.cssVars.padding + this.cssVars.lineWidth) + 2 * PXSCALE + this.pointSize = parseFloat(this.cssVars.pointSize) * (this.cssVars.pointSize.indexOf('%') > -1 ? this.width / 100 : PXSCALE) + + } + + drawPips() { + + var margin = this.padPadding, + pipTexts = margin >= this.fontSize * 1.5 + + this.ctx.lineWidth = PXSCALE + this.ctx.fillStyle = this.cssVars.colorText + this.ctx.strokeStyle = this.cssVars.colorStroke + this.ctx.globalAlpha = this.cssVars.alphaPips + this.ctx.beginPath() + + for (let i in this.faders.x.rangeKeys) { + + let pip = this.faders.x.rangeKeys[i], + px = Math.round(0.5 * this.faders.x.percentToCoord(pip)) * 2 + + if (parseInt(px) === px) px -= 0.5 + + if (pipTexts) { + this.ctx.textAlign = 'center' + let label = this.faders.x.rangeLabels[i] + this.ctx.fillText(label, px, this.height - margin / 2) + } + + if (pip == 0 || pip == 100) continue + this.ctx.moveTo(px, margin - PXSCALE) + this.ctx.lineTo(px, this.height - margin + PXSCALE) + + + } + for (let i in this.faders.y.rangeKeys) { + + let pip = this.faders.y.rangeKeys[i], + py = Math.round(0.5 * this.faders.y.percentToCoord(pip)) * 2 + + if (parseInt(py) === py) py -= 0.5 + + if (pipTexts) { + this.ctx.textAlign = 'right' + let label = this.faders.y.rangeLabels[i] + this.ctx.fillText(label, margin / 2 + this.fontSize / 2, py) + } + + if (pip == 0 || pip == 100) continue + this.ctx.moveTo(margin - PXSCALE, py) + this.ctx.lineTo(this.width - margin + PXSCALE, py) + + + } + + this.ctx.globalAlpha = this.cssVars.alphaFillOn + this.ctx.stroke() + + } + + onPropChanged(propName, options, oldPropValue) { + + var ret = super.onPropChanged(...arguments) + + switch (propName) { + case 'pointSize': + this.setCssVariables() + return + } + + return ret + + + } + +} + +Pad.cssVariables = Pad.prototype.constructor.cssVariables.concat( + {js: 'pointSize', css: '--point-size'}, +) + +Pad.dynamicProps = Pad.prototype.constructor.dynamicProps.filter(n => n !== 'decimals').concat([ + 'spring', + 'axisLock', + 'pointSize', + 'label', + 'clipX', + 'clipY' +]) + +export default Pad diff --git a/src/client/widgets/pads/rgb.js b/src/client/widgets/pads/rgb.mjs similarity index 92% rename from src/client/widgets/pads/rgb.js rename to src/client/widgets/pads/rgb.mjs index 9576814a..4db285b4 100644 --- a/src/client/widgets/pads/rgb.js +++ b/src/client/widgets/pads/rgb.mjs @@ -1,15 +1,16 @@ -var Widget = require('../common/widget'), - Xy = require('./xy'), - Fader = require('../sliders/fader'), - {clip, mapToScale, hsbToRgb, rgbToHsb} = require('../utils'), - html = require('nanohtml'), - touchstate = require('../mixins/touch_state') +import html from 'nanohtml' +import Widget from '../common/widget.mjs' +import Xy from './xy.mjs' +import Fader from '../sliders/fader.mjs' +import {clip, mapToScale, hsbToRgb, rgbToHsb} from '../utils.mjs' +import touchstate from '../mixins/touch_state.mjs' +import {PXSCALE} from '../../globals.mjs' var faderDefaults = Fader.defaults()._props(), xyDefaults = Xy.defaults()._props() -module.exports = class Rgb extends Widget { +export default class Rgb extends Widget { static description() { @@ -56,9 +57,9 @@ module.exports = class Rgb extends Widget { decimals:2, pointSize: 10, pips: false, - }, parent: this}) + }, parent: this, meta: {not_editable: true}}) this.pad.sendValue = ()=>{} - this.pad.container.classList.add('not-editable', 'pad') + this.pad.container.classList.add('pad') this.widget.appendChild(this.pad.container) this.pad.on('value-changed',(e)=>{ e.stopPropagation = true @@ -75,8 +76,8 @@ module.exports = class Rgb extends Widget { snap:this.getProp('snap'), range:{min:0,max:360}, decimals:2 - }, parent: this}) - this.hue.container.classList.add('not-editable', 'hue') + }, parent: this, meta: {not_editable: true}}) + this.hue.container.classList.add('hue') this.widget.appendChild(this.hue.container) this.hue.on('value-changed',(e)=>{ e.stopPropagation = true @@ -96,8 +97,8 @@ module.exports = class Rgb extends Widget { default: 255, input:false, decimals:2 - }, parent: this}) - this.alpha.container.classList.add('not-editable', 'alpha') + }, parent: this, meta: {not_editable: true}}) + this.alpha.container.classList.add('alpha') this.widget.appendChild(this.alpha.container) this.alpha.on('value-changed',(e)=>{ e.stopPropagation = true @@ -110,9 +111,6 @@ module.exports = class Rgb extends Widget { initValue[3] = this.getProp('rangeAlpha').min } - - touchstate(this, {element: this.widget, multitouch: true, ignoreCustomBindings: true}) - if (this.getProp('spring')) { this.on('dragend', (e)=>{ @@ -124,6 +122,7 @@ module.exports = class Rgb extends Widget { } + touchstate(this, {element: this.widget, multitouch: true, ignoreCustomBindings: false}) this.hsb = {h:0,s:0,b:0} @@ -218,7 +217,7 @@ module.exports = class Rgb extends Widget { if (!options.nohue && !options.dragged) { var hue = hsbToRgb({h:this.hsb.h,s:100,b:100}), hueStr = `rgb(${Math.round(hue.r)},${Math.round(hue.g)},${Math.round(hue.b)})` - this.pad.container.setAttribute('style',`background-color:${hueStr}`) + this.pad.container.style.setProperty('background-color', hueStr) this.hue.setValue(this.hsb.h, {sync: false, send:false, dragged:false}) } diff --git a/src/client/widgets/pads/xy.js b/src/client/widgets/pads/xy.mjs similarity index 67% rename from src/client/widgets/pads/xy.js rename to src/client/widgets/pads/xy.mjs index 42609df2..fdde2ccc 100644 --- a/src/client/widgets/pads/xy.js +++ b/src/client/widgets/pads/xy.mjs @@ -1,11 +1,12 @@ -var Pad = require('./pad'), - Fader = require('../sliders/fader'), - doubleTap = require('../mixins/double_tap'), - touchstate = require('../mixins/touch_state') +import Pad from './pad.mjs' +import Fader from '../sliders/fader.mjs' +import doubleTap from '../mixins/double_tap.mjs' +import touchstate from '../mixins/touch_state.mjs' +import {PXSCALE} from '../../globals.mjs' var faderDefaults = Fader.defaults()._props() -module.exports = class Xy extends Pad { +export default class Xy extends Pad { static description() { @@ -18,9 +19,10 @@ module.exports = class Xy extends Pad { var defaults = super.defaults().extend({ style: { _separator_xy_style: 'Xy style', - pointSize: {type: 'integer', value: 20, help: 'Defines the points\' size'}, + pointSize: {type: 'integer', value: 20, help: 'Defines the points\' size (may be in %)'}, ephemeral: {type: 'boolean', value: false, help: 'When set to `true`, the point will be drawn only while touched.'}, pips: {type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, + label: {type: 'string', value: '', help: 'Text displayed in the handle'} }, class_specific: { snap: {type: 'boolean', value: false, help: [ @@ -28,17 +30,22 @@ module.exports = class Xy extends Pad { 'If set to `true`, touching anywhere on the widget\'s surface will make them snap to the touching coordinates', ]}, spring: {type: 'boolean', value: false, help: 'When set to `true`, the widget will go back to its default value when released'}, - rangeX: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the x axis'}, - rangeY: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the y axis'}, + rangeX: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the x axis (see fader)'}, + rangeY: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the y axis (see fader)'}, logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale.'}, logScaleY: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale.'}, - axisLock: {type: 'string', value: '', choices: ['', 'x', 'y'], help: [ + stepsX: {type: 'number|array|string', value: false, help: 'Defines `steps` for the x axis (see fader)'}, + stepsY: {type: 'number|array|string', value: false, help: 'Defines `steps` for the x axis (see fader)'}, + clipX: {type: 'object', value: '', help: 'Min and max boundaries for the x axis'}, + clipY: {type: 'object', value: '', help: 'Min and max boundaries for the y axis'}, + axisLock: {type: 'string', value: '', choices: ['', 'x', 'y', 'auto'], help: [ 'Restrict movements to one of the axes only unless `Shift` is held.', - 'When left to the default value, holding `Shift` while dragging will lock the pad according the first movement.' + 'When left empty, holding `Shift` while dragging will lock the pad according the first movement. `auto` will do the opposite.' ]}, - doubleTap: {type: 'boolean|string', value: false, help: [ - 'Set to `true` to make the fader reset to its default value when receiving a double tap.', - 'Can also be an osc address, which case the widget will just send an osc message: `/ `' + doubleTap: {type: 'boolean|string', value: false, choices: [false, true, 'script'], help: [ + 'Set to `true` to make the knob reset to its `default` value when receiving a double tap.', + 'Can be an osc address, in which case the widget will just send an osc message with no value (but `preArgs` included).', + 'If set to "script", `onTouch` will be called with `event.type` set to `doubleTap`. ' ]}, sensitivity: {type: 'number', value: 1, help: 'Defines the pad\'s sensitivity when `snap` is `false` '}, } @@ -68,6 +75,7 @@ module.exports = class Xy extends Pad { decimals:this.getProp('decimals'), logScale:this.getProp('logScaleX'), sensitivity: this.getProp('sensitivity'), + steps: this.getProp('stepsX'), }, parent: this}), y: new Fader({props:{ ...faderDefaults, @@ -80,6 +88,7 @@ module.exports = class Xy extends Pad { decimals:this.getProp('decimals'), logScale:this.getProp('logScaleY'), sensitivity: this.getProp('sensitivity'), + steps: this.getProp('stepsY'), }, parent: this}), } @@ -107,7 +116,7 @@ module.exports = class Xy extends Pad { this.on('drag',(e)=>{ var axis = this.getProp('axisLock') if (axis !== '' && e.shiftKey) axis = '' - else if (e.shiftKey && axis === '') { + else if (e.shiftKey && axis === '' || !e.shiftKey && axis === 'auto') { if (this.autoAxisLock === '') { if (Math.abs(e.movementX) > Math.abs(e.movementY)) { this.autoAxisLock = 'x' @@ -131,6 +140,8 @@ module.exports = class Xy extends Pad { if (this.getProp('spring')) { this.setValue([this.faders.x.getSpringValue(),this.faders.y.getSpringValue()],{sync:true, send:true, spring:true}) } else { + if (this.getProp('clipX')) this.faders.x.setValue(this.value[0]) + if (this.getProp('clipY')) this.faders.y.setValue(this.value[1]) this.batchDraw() } }, {element: this.canvas}) @@ -143,6 +154,16 @@ module.exports = class Xy extends Pad { this.sendValue({v:null, address: this.getProp('doubleTap')}) }, {element: this.widget}) + } else if (this.getProp('doubleTap') == 'script') { + + doubleTap(this, ()=>{ + this.scripts.onTouch.run({ + event: {type: 'doubleTap'}, + value: this.value + }, {sync: true, send: true}) + }, {element: this.widget}) + + } else { doubleTap(this, ()=>{ @@ -190,6 +211,7 @@ module.exports = class Xy extends Pad { if (this.touched && !options.dragged && !options.doubleTap) return this.setValueTouchedQueue = [v, options] if (!options.dragged) { + this.clipValue(v) this.faders.x.setValue(v[0], {sync: false, send:false, dragged:false, doubleTap: options.doubleTap}) this.faders.y.setValue(v[1], {sync: false, send:false, dragged:false, doubleTap: options.doubleTap}) } @@ -199,6 +221,8 @@ module.exports = class Xy extends Pad { this.faders.y.value ] + this.clipValue(this.value) + if (options.send) this.sendValue() if (options.sync) this.changed(options) @@ -206,17 +230,30 @@ module.exports = class Xy extends Pad { } + clipValue(v) { + + if (this.getProp('clipX')) { + if (this.getProp('clipX').min !== undefined) v[0] = Math.max(this.getProp('clipX').min, v[0]) + if (this.getProp('clipX').max !== undefined) v[0] = Math.min(this.getProp('clipX').max, v[0]) + } + if (this.getProp('clipY')) { + if (this.getProp('clipY').min !== undefined) v[1] = Math.max(this.getProp('clipY').min, v[1]) + if (this.getProp('clipY').max !== undefined) v[1] = Math.min(this.getProp('clipY').max, v[1]) + } + + } + draw() { - var pointSize = this.cssVars.pointSize, - margin = this.padPadding, - x = this.faders.x.percentToCoord(this.faders.x.percent), - y = this.faders.y.percentToCoord(this.faders.y.percent), + if (!this.visible) return + + var pointSize = this.pointSize, + x = this.faders.x.percentToCoord(this.faders.x.valueToPercent(this.value[0])), + y = this.faders.y.percentToCoord(this.faders.y.valueToPercent(this.value[1])), ephemeral = this.getProp('ephemeral') this.clear() - if (!ephemeral || this.active) { this.ctx.fillStyle = this.cssVars.colorFill this.ctx.globalAlpha = this.cssVars.alphaFillOn @@ -227,69 +264,11 @@ module.exports = class Xy extends Pad { - - var pipsDrawn = false - if (this.getProp('pips')) { - - var pipTexts = margin >= this.fontSize * 1.5 - - this.ctx.lineWidth = PXSCALE - this.ctx.fillStyle = this.cssVars.colorText - this.ctx.strokeStyle = this.cssVars.colorStroke - this.ctx.globalAlpha = this.cssVars.alphaPips - this.ctx.beginPath() - - for (let i in this.faders.x.rangeKeys) { - - let pip = this.faders.x.rangeKeys[i], - px = Math.round(0.5 * this.faders.x.percentToCoord(pip)) * 2 - - if (parseInt(px) === px) px -= 0.5 - - if (pipTexts) { - this.ctx.textAlign = 'center' - let label = this.faders.x.rangeLabels[i] - this.ctx.fillText(label, px, this.height - margin / 2) - pipsDrawn = true - } - - if (pip == 0 || pip == 100) continue - this.ctx.moveTo(px, margin - PXSCALE) - this.ctx.lineTo(px, this.height - margin + PXSCALE) - pipsDrawn = true - - - } - for (let i in this.faders.y.rangeKeys) { - - let pip = this.faders.y.rangeKeys[i], - py = Math.round(0.5 * this.faders.y.percentToCoord(pip)) * 2 - - if (parseInt(py) === py) py -= 0.5 - - if (pipTexts) { - this.ctx.textAlign = 'right' - let label = this.faders.y.rangeLabels[i] - this.ctx.fillText(label, margin / 2 + this.fontSize / 2, py) - pipsDrawn = true - } - - if (pip == 0 || pip == 100) continue - this.ctx.moveTo(margin - PXSCALE, py) - this.ctx.lineTo(this.width - margin + PXSCALE, py) - pipsDrawn = true - - - } - - this.ctx.globalAlpha = this.cssVars.alphaFillOn - this.ctx.stroke() - + if (this.getProp('pips')) this.drawPips() + else { + this.clearRect = [[x - pointSize - 2 * PXSCALE, y - pointSize - 2 * PXSCALE, (pointSize + 2 * PXSCALE) * 2, (pointSize + 2 * PXSCALE) * 2]] } - if (!pipsDrawn) this.clearRect = [x - pointSize - 2 * PXSCALE, y - pointSize - 2 * PXSCALE, (pointSize + PXSCALE) * 4, (pointSize + PXSCALE) * 4] - - if (!ephemeral || this.active) { this.ctx.strokeStyle = this.cssVars.colorStroke this.ctx.globalAlpha = this.active ? 1 : 0.75 @@ -297,6 +276,20 @@ module.exports = class Xy extends Pad { this.ctx.beginPath() this.ctx.arc(x, y, pointSize, Math.PI * 2, false) this.ctx.stroke() + + var t = this.getProp('label') + if (t) { + this.ctx.fillStyle = this.cssVars.colorText + this.ctx.globalAlpha = 1 + this.ctx.textAlign = 'center' + this.ctx.fillText(t, x + 0.5 * PXSCALE, y + PXSCALE) + + if (!this.getProp('pips')) { + var length = this.fontSize * t.length + this.clearRect.push([x - length / 2, y - this.fontSize / 2, length, this.fontSize + 2 * PXSCALE]) + } + + } } @@ -309,8 +302,15 @@ module.exports = class Xy extends Pad { switch (propName) { + case 'label': + this.batchDraw() + return case 'spring': - if (this.getProp('spring') && !this.touched) this.setValue([this.faders.x.getSpringValue(),this.faders.y.getSpringValue()], {...options}) + if (this.getProp('spring') && !this.touched) { + var x = this.faders.x.getSpringValue(), + y = this.faders.y.getSpringValue() + if (x !== this.value[0] || y !== this.value[1]) this.setValue([x, y], {...options}) + } return } diff --git a/src/client/widgets/scripts/gyro-archive.js b/src/client/widgets/scripts/gyro-archive.js deleted file mode 100644 index b3baa851..00000000 --- a/src/client/widgets/scripts/gyro-archive.js +++ /dev/null @@ -1,125 +0,0 @@ -var Widget = require('../common/widget'), - GyroNorm = require('gyronorm/dist/gyronorm.complete.min.js'), - {icon} = require('../../ui/utils'), - {clip} = require('../utils'), - html = require('nanohtml'), - raw = require('nanohtml/raw') - - -class Gyroscope extends Widget { - - static description() { - - return 'Device motion/orientation sensor.' - - } - - static defaults() { - - return super.defaults({ - - _class_specific: 'gyroscope', - - frequency: {type: 'number', value: 30, help: 'Value update frequency (updates per seconds)'}, - normalize: {type: 'boolean', value: true, help: 'Normalize gravity related values'}, - compass: {type: 'boolean', value: false, help: 'Set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device'}, - screenAdjusted: {type: 'boolean', value: false, help: 'Set to `true` to return screen adjusted values'} - - }, [], { - - value: {type: 'object', value: '', help: [ - 'The gyroscope\'s value is an object containing multiple values, which can be used by other widgets via the property maths syntax', - '- `value.do.alpha`: deviceorientation event alpha', - '- `value.do.beta`: deviceorientation event beta', - '- `value.do.gamma`: deviceorientation event gamma', - '- `value.do.absolute`: deviceorientation event absolute', - '- `value.dm.x`: devicemotion event acceleration x', - '- `value.dm.y`: devicemotion event acceleration y', - '- `value.dm.z`: devicemotion event acceleration z', - '- `value.dm.gx`: devicemotion event accelerationIncludingGravity x', - '- `value.dm.gy`: devicemotion event accelerationIncludingGravity y', - '- `value.dm.gz`: devicemotion event accelerationIncludingGravity z', - '- `value.dm.alpha`: devicemotion event rotationRate alpha', - '- `value.dm.beta`: devicemotion event rotationRate beta', - '- `value.dm.gamma`: devicemotion event rotationRate gamma' - ]}, - - }) - - } - - constructor(options) { - - super({...options, html: html` -
- ${raw(icon('compass'))} -
- `}) - - this.sensor = new GyroNorm() - this.sensor.init({ - - frequency: 1000 / clip(this.getProp('frequency'), [0.01, 60]), - gravityNormalized: this.getProp('normalize'), - orientationBase: this.getProp('compass') ? GyroNorm.WORLD : GyroNorm.GAME, - decimalCount: this.getProp('decimals'), - screenAdjusted: this.getProp('screenAdjusted'), - logger: null - - }).then(()=>{ - - this.sensor.start((data)=>{ - - this.setValue(data, {sync: true, send: true}) - - // data.do.alpha ( deviceorientation event alpha value ) - // data.do.beta ( deviceorientation event beta value ) - // data.do.gamma ( deviceorientation event gamma value ) - // data.do.absolute ( deviceorientation event absolute value ) - - // data.dm.x ( devicemotion event acceleration x value ) - // data.dm.y ( devicemotion event acceleration y value ) - // data.dm.z ( devicemotion event acceleration z value ) - - // data.dm.gx ( devicemotion event accelerationIncludingGravity x value ) - // data.dm.gy ( devicemotion event accelerationIncludingGravity y value ) - // data.dm.gz ( devicemotion event accelerationIncludingGravity z value ) - - // data.dm.alpha ( devicemotion event rotationRate alpha value ) - // data.dm.beta ( devicemotion event rotationRate beta value ) - // data.dm.gamma ( devicemotion event rotationRate gamma value ) - - - }) - - }).catch((e)=>{ - - console.log(e) - - }) - - } - - - - setValue(v, options={} ) { - - this.value = v - - // if (options.send) this.sendValue() - if (options.sync) this.changed(options) - - } - - onRemove() { - - this.sensor.end() - - super.onRemove() - - } - - -} - -module.exports = Gyroscope diff --git a/src/client/widgets/scripts/script-vm.js b/src/client/widgets/scripts/script-vm.mjs similarity index 71% rename from src/client/widgets/scripts/script-vm.js rename to src/client/widgets/scripts/script-vm.mjs index 4a0eff55..e5312e32 100644 --- a/src/client/widgets/scripts/script-vm.js +++ b/src/client/widgets/scripts/script-vm.mjs @@ -1,13 +1,19 @@ -var widgetManager = require('../../managers/widgets'), - stateManager = require('../../managers/state'), - cache = require('../../managers/cache'), - {deepCopy} = require('../../utils'), - {urlParser} = require('../utils'), - Vm = require('../vm'), - ipc = require('../../ipc'), - uiFilebrowser = require('../../ui/ui-filebrowser'), - toolbar +import widgetManager from '../../managers/widgets.mjs' +import stateManager from '../../managers/state.mjs' +import cache from '../../managers/cache.mjs' +import {deepCopy} from '../../utils.mjs' +import {urlParser} from '../utils.mjs' +import Vm from '../vm.mjs' +import ipc from '../../ipc/index.mjs' +import uiFilebrowser from '../../ui/ui-filebrowser.mjs' +import uiFileUpload from '../../ui/ui-fileupload.mjs' +import {setFOCUSABLE} from '../../globals.mjs' +var toolbar +setTimeout(async()=>{ + // use setTimeout to fix init order in safari... + toolbar = (await import('../../ui/main-menu.mjs')).default +}) class ScriptVm extends Vm { @@ -16,7 +22,6 @@ class ScriptVm extends Vm { super() this.valueOptions = [] - this.widget = [] } @@ -33,26 +38,13 @@ class ScriptVm extends Vm { } - setWidget(widget) { - - if (!widget) this.widget.pop() - else this.widget.push(widget) - - } - - getWidget() { - - return this.widget[this.widget.length - 1] - - } - resolveId(id) { var widget = this.getWidget() if (id === 'this') return [widget] else if (id === 'parent' && widget.parent !== widgetManager) return [widget.parent] - else return widgetManager.getWidgetById(id) + else return widgetManager.getWidgetById(id, widget.scopes) } @@ -62,9 +54,7 @@ class ScriptVm extends Vm { registerGlobals() { - super.registerGlobals() - - this.sandbox.contentWindow.set = (id, value, extraOptions = {send: true, sync: true})=>{ + this.globals.set = (id, value, extraOptions = {send: true, sync: true})=>{ this.checkContext('set') @@ -111,7 +101,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.setVar = (id, name, value)=>{ + this.globals.setVar = (id, name, value)=>{ this.checkContext('setVar') @@ -146,7 +136,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.send = (target, address, ...args)=>{ + this.globals.send = (target, address, ...args)=>{ this.checkContext('send') @@ -174,7 +164,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.get = (id)=>{ + this.globals.get = (id)=>{ this.checkContext('get') @@ -193,7 +183,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.getVar = (id, name)=>{ + this.globals.getVar = (id, name)=>{ this.checkContext('getVar') @@ -207,7 +197,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.getProp = (id, prop)=>{ + this.globals.getProp = (id, prop)=>{ this.checkContext('getProp') @@ -222,7 +212,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.updateProp = (id, prop)=>{ + this.globals.updateProp = (id, prop)=>{ this.checkContext('updateProp') @@ -237,7 +227,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.updateCanvas = (id)=>{ + this.globals.updateCanvas = (id)=>{ this.checkContext('updateCanvas') @@ -250,7 +240,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.getIndex = (id = 'this')=>{ + this.globals.getIndex = (id = 'this')=>{ this.checkContext('getIndex') @@ -259,7 +249,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.getScroll = (id)=>{ + this.globals.getScroll = (id)=>{ this.checkContext('getScroll') @@ -275,7 +265,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.setScroll = (id, x, y)=>{ + this.globals.setScroll = (id, x, y)=>{ this.checkContext('setScroll') @@ -283,13 +273,31 @@ class ScriptVm extends Vm { for (var i = widgets.length - 1; i >= 0; i--) { - if (widgets[i].getProp('scroll')) widgets[i].setScroll(x, y) + if (widgets[i].getProp('scroll')) widgets[i].setScroll(x, y, true, false) } } - this.sandbox.contentWindow.httpGet = (url, callback)=>{ + this.globals.scrollIntoView = (id, options)=>{ + + this.checkContext('setScroll') + + var widgets = this.resolveId(id) + + for (var i = widgets.length - 1; i >= 0; i--) { + + if (widgets[i].container && widgets[i].isVisible()) { + widgets[i].container.scrollIntoView(options) + } + + } + + } + + + + this.globals.httpGet = (url, callback)=>{ this.checkContext('httpGet') @@ -310,7 +318,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.stateGet = (filter)=>{ + this.globals.stateGet = (filter)=>{ this.checkContext('stateGet') @@ -330,7 +338,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.stateSet = (state, extraOptions = {})=>{ + this.globals.stateSet = (state, extraOptions = {})=>{ this.checkContext('stateSet') @@ -340,7 +348,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.storage = { + this.globals.storage = { setItem: (k, v)=>{ this.checkContext('storage.setItem') @@ -361,7 +369,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.setTimeout = (id, callback, timeout)=>{ + this.globals.setTimeout = (id, callback, timeout)=>{ this.checkContext('setTimeout') @@ -395,7 +403,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.clearTimeout = (id)=>{ + this.globals.clearTimeout = (id)=>{ this.checkContext('clearTimeout') @@ -406,7 +414,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.setInterval = (id, callback, timeout)=>{ + this.globals.setInterval = (id, callback, timeout)=>{ this.checkContext('setInterval') @@ -439,7 +447,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.clearInterval = (id)=>{ + this.globals.clearInterval = (id)=>{ this.checkContext('clearInterval') @@ -451,7 +459,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.setFocus = (id)=>{ + this.globals.setFocus = (id)=>{ this.checkContext('setFocus') @@ -459,11 +467,10 @@ class ScriptVm extends Vm { var widgets = this.resolveId(id) if (widgets.length) { - setTimeout(()=>{ - - widgets[0].widget.focus() - }) + if (widgets[0].focus) widgets[0].focus() } + } else if (document.activeElement) { + document.activeElement.blur() } // built-in client only: electron will call window.focus() @@ -471,7 +478,7 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.unfocus = ()=>{ + this.globals.unfocus = ()=>{ this.checkContext('unfocus') @@ -481,15 +488,28 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.setFocusable = (focusable)=>{ + this.globals.setFocusable = (focusable)=>{ this.checkContext('setFocusable') - FOCUSABLE = !!focusable + setFOCUSABLE(!!focusable) console.debug('ELECTRON.SETFOCUSABLE('+(focusable ? 1 : 0)+')') } - this.sandbox.contentWindow.toolbar = (...args)=>{ + + function getToolbarActionById(id, entries) { + for (var a of entries) { + if (a.id == id) { + return a + } + if (Array.isArray(a.action)) { + var ret = getToolbarActionById(id, a.action) + if (ret) return ret + } + } + } + + this.globals.toolbar = (...args)=>{ this.checkContext('toolbar') @@ -497,21 +517,45 @@ class ScriptVm extends Vm { if (!options.send) return - toolbar = toolbar || require('../../ui/main-menu') - var action = toolbar.entries.filter(x=>!x.separator) - for (var i of args) { - if (action[i]) action = action[i].action - if (!Array.isArray(action)) break - action = action.filter(x=>!x.separator) + if (typeof args[0] == 'string') { + + action = getToolbarActionById(args[0], action) + if (action) action = action.action // get callback + if (action && typeof action.class == 'function') { + if (action.class().match(/disabled/)) action = null + } + + } else { + + for (var i of args) { + if (action[i]) action = action[i].action + if (!Array.isArray(action)) break + action = action.filter(x=>!x.separator) + } + } if (typeof action === 'function') action() } - this.sandbox.contentWindow.openUrl = (url)=>{ + this.globals.getToolbar = (id)=>{ + + this.checkContext('toolbar') + + var options = this.getValueOptions() + + if (!options.send) return + + var action = getToolbarActionById(id, toolbar.entries.filter(x=>!x.separator)) + + if (action && typeof action.class == 'function') return action.class().split(' ').includes('on') + + } + + this.globals.openUrl = (url)=>{ this.checkContext('openUrl') @@ -521,11 +565,12 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.runAs = (id, callback)=>{ + this.globals.runAs = (id, callback)=>{ this.checkContext('runAs') - var widgets = this.resolveId(id) + var widgets = this.resolveId(id), + widget = this.getWidget() if (widgets.length) { @@ -541,14 +586,14 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.reload = (keepState = true)=>{ + this.globals.reload = (keepState = true)=>{ this.checkContext('reload') - var options = this.getValueOptions() + var options = this.getValueOptions(), + widget = this.getWidget() if (options.onCreate) { - var widget = this.getWidget() widget.errorProp('onCreate', '', 'reload() cannot be called from onCreate') } else if (options.send){ if (keepState) ipc.trigger('reload') @@ -558,16 +603,16 @@ class ScriptVm extends Vm { } - this.sandbox.contentWindow.Image = Image + this.globals.Image = Image - this.sandbox.contentWindow.getNavigator = ()=>{ + this.globals.getNavigator = ()=>{ this.checkContext('getNavigator') return navigator } - this.sandbox.contentWindow.browseFile = (options, callback)=>{ + this.globals.browseFile = (options, callback)=>{ this.checkContext('browseFile') if (typeof options === 'function') { callback = options @@ -601,22 +646,41 @@ class ScriptVm extends Vm { } } + this.globals.uploadFile = (options, callback)=>{ + this.checkContext('uploadFile') + if (typeof options === 'function') { + callback = options + options = {} + } - this.globals = {} - for (var imports of ['set', 'get', 'getProp', 'getIndex', 'updateProp', 'send', 'httpGet', 'stateGet', 'stateSet', 'storage', - 'setInterval', 'clearInterval', 'setTimeout', 'cthislearTimeout', 'setFocus', 'unfocus' , 'setFocusable', 'setScroll', 'getScroll', 'toolbar', - 'openUrl', 'getVar', 'setVar', 'runAs', 'reload', 'Image', 'updateCanvas', 'getNavigator', 'browseFile']) { - this.sanitize(this.sandbox.contentWindow[imports]) - this.globals[imports] = true + if (typeof callback === 'function') { + + var widget = this.getWidget(), + valueOptions = this.getValueOptions() + + uiFileUpload(options.types, (path, content)=>{ + this.setWidget(widget) + this.setValueOptions(valueOptions) + try { + callback(content) + } catch(e) { + widget.errorProp('script', 'uploadFile', e) + } + this.setWidget() + this.setValueOptions() + }, (e)=>{ + widget.errorProp('script', 'uploadFile', e) + }) + } else { + widget.errorProp('script', 'browseFile', 'callback argument must be a function') + } } - for (var k in this.sandbox.contentWindow) { - if (window[k] === undefined) this.globals[k] = true - } + super.registerGlobals() } } -module.exports = new ScriptVm() +export default new ScriptVm() diff --git a/src/client/widgets/scripts/script-widget.js b/src/client/widgets/scripts/script-widget.mjs similarity index 92% rename from src/client/widgets/scripts/script-widget.js rename to src/client/widgets/scripts/script-widget.mjs index 5c06f6df..0db37429 100644 --- a/src/client/widgets/scripts/script-widget.js +++ b/src/client/widgets/scripts/script-widget.mjs @@ -1,12 +1,12 @@ -var Widget = require('../common/widget'), - keyboardJS = require('keyboardjs/dist/keyboard.min.js'), - Script = require('./script') +import Widget from '../common/widget.mjs' +import keyboardJS from 'keyboardjs/dist/keyboard.min.js' +import Script from './script.mjs' class ScriptWidget extends Widget { static description() { - return 'Scripting widget utility with keyboard bindings' + return 'Scripting widget utility with keyboard bindings.mjs' } @@ -91,7 +91,7 @@ class ScriptWidget extends Widget { if (e.type === 'keydown' && !this.getProp('keyRepeat')) e.preventRepeat() - e.preventDefault() + if (e.preventDefault) e.preventDefault() this.scripts.onKeyboard.run({ type: e.type, @@ -124,4 +124,4 @@ class ScriptWidget extends Widget { } -module.exports = ScriptWidget +export default ScriptWidget diff --git a/src/client/widgets/scripts/script.js b/src/client/widgets/scripts/script.mjs similarity index 94% rename from src/client/widgets/scripts/script.js rename to src/client/widgets/scripts/script.mjs index 971d640b..a43d9532 100644 --- a/src/client/widgets/scripts/script.js +++ b/src/client/widgets/scripts/script.mjs @@ -1,5 +1,6 @@ -var scriptVm = require('./script-vm'), - noop = ()=>{} +import scriptVm from './script-vm.mjs' + +var noop = ()=>{} class Script { @@ -65,4 +66,4 @@ class Script { } -module.exports = Script +export default Script diff --git a/src/client/widgets/scripts/variable.js b/src/client/widgets/scripts/variable.mjs similarity index 76% rename from src/client/widgets/scripts/variable.js rename to src/client/widgets/scripts/variable.mjs index 8918f798..5bc448b4 100644 --- a/src/client/widgets/scripts/variable.js +++ b/src/client/widgets/scripts/variable.mjs @@ -1,7 +1,7 @@ -var Widget = require('../common/widget'), - StaticProperties = require('../mixins/static_properties') +import Widget from '../common/widget.mjs' +import StaticProperties from '../mixins/static_properties.mjs' -module.exports = class Variable extends StaticProperties(Widget, {interaction: false, visible: false}) { +export default class Variable extends StaticProperties(Widget, {interaction: false, visible: false}) { static description() { diff --git a/src/client/widgets/sliders/encoder.js b/src/client/widgets/sliders/encoder.mjs similarity index 76% rename from src/client/widgets/sliders/encoder.js rename to src/client/widgets/sliders/encoder.mjs index f63c13a7..5fe30ae6 100644 --- a/src/client/widgets/sliders/encoder.js +++ b/src/client/widgets/sliders/encoder.mjs @@ -1,7 +1,7 @@ -var Knob = require('./knob'), - StaticProperties = require('../mixins/static_properties') +import Knob from './knob.mjs' +import StaticProperties from '../mixins/static_properties.mjs' -module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range: {min: 0, max: 1}}) { +export default class Encoder extends StaticProperties(Knob, {angle: 360, range: {min: 0, max: 1}, design: 'encoder'}) { static description() { @@ -33,10 +33,11 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range '- Set to `null` to send send no argument in the osc message', '- Can be an `object` if the type needs to be specified' ]}, - mode: {type: 'string', value: 'circular', choices: ['circular', 'snap', 'vertical'], help: [ + mode: {type: 'string', value: 'circular', choices: ['circular', 'snap', 'vertical', 'horizontal'], help: [ '- `circular`: relative move in circular motion', '- `snap`: snap to touch position and move in vertical motion', '- `vertical`: relative move in vertical motion', + '- `horizontal`: relative move in horizontal motion', ]}, doubleTap: {type: 'boolean', value: false, help: [ 'Set to `true` to make the fader reset to its `default` value when receiving a double tap.', @@ -112,10 +113,15 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range dragHandle(e) { // knob.js without clipping + extra case for snap + var inertia = e.fingers > 1 || e.ctrlKey ? 10 : e.inertia if ((this.getProp('mode') === 'vertical' && !e.traversing)) { // vertical - this.setPercent(this.percent + (-100 * e.movementY / this.height) * this.getProp('sensitivity') / e.inertia) + this.setPercent(this.percent - 100 * (e.movementY / inertia * this.getProp('sensitivity')) / this.minDimension) + + } else if ((this.getProp('mode') === 'horizontal' && !e.traversing)) { + // horizontal + this.setPercent(this.percent + 100 * (e.movementX / inertia * this.getProp('sensitivity')) / this.minDimension) } else { // snap or circular @@ -124,7 +130,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range var diff = this.angleToPercent(this.coordsToAngle(offsetX, offsetY), true) - this.angleToPercent(this.coordsToAngle(this.lastOffsetX, this.lastOffsetY), true) if (Math.abs(diff) < 50 && diff !== 0) { - diff = diff * this.getProp('sensitivity') / e.inertia + diff = diff * this.getProp('sensitivity') / inertia this.setPercent(this.percent + diff) } @@ -257,64 +263,4 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range } - draw() { - - var percent = this.percent, - d = this.percentToAngle(percent), - angle = 2 * Math.PI / 16, - min = this.percentToAngle(0), - max = this.percentToAngle(100), - minRadius = this.minDimension / 6, - maxRadius = this.minDimension / 2 - this.cssVars.lineWidth, - gaugeWidth = maxRadius - minRadius, - gaugeRadius = maxRadius - gaugeWidth / 2 - - this.clear() - - if (this.minDimension < 40) { - minRadius /= 2 - gaugeWidth = maxRadius - minRadius - gaugeRadius = maxRadius - gaugeWidth / 2 - } - - // fill - this.ctx.globalAlpha = this.cssVars.alphaFill - this.ctx.strokeStyle = this.cssVars.colorFill - this.ctx.lineWidth = gaugeWidth - this.gaugePadding * 2 - - if (this.cssVars.alphaFillOff) { - this.ctx.globalAlpha = this.cssVars.alphaFillOff - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, min, max) - this.ctx.stroke() - } - - if (this.cssVars.alphaFillOn) { - this.ctx.globalAlpha = this.cssVars.alphaFillOn - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, d - angle, d + angle) - this.ctx.stroke() - } - - // stroke - if (this.cssVars.lineWidth) { - - this.ctx.globalAlpha = this.cssVars.alphaStroke - this.ctx.strokeStyle = this.cssVars.colorStroke - this.ctx.lineWidth = this.cssVars.lineWidth - - if (this.minDimension > 40) { - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, minRadius, 0, 2 * Math.PI) - this.ctx.stroke() - } - - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius, 0, 2 * Math.PI) - this.ctx.stroke() - - } - - } - } diff --git a/src/client/widgets/sliders/fader.js b/src/client/widgets/sliders/fader.mjs similarity index 68% rename from src/client/widgets/sliders/fader.js rename to src/client/widgets/sliders/fader.mjs index c3547f2f..180f6a99 100644 --- a/src/client/widgets/sliders/fader.js +++ b/src/client/widgets/sliders/fader.mjs @@ -1,5 +1,6 @@ -var {clip} = require('../utils'), - Slider = require('./slider') +import {clip} from '../utils.mjs' +import Slider from './slider.mjs' +import {PXSCALE, CANVAS_SCALING} from '../../globals.mjs' class Fader extends Slider { @@ -16,7 +17,7 @@ class Fader extends Slider { _separator_fader_style: 'Fader style', design: {type: 'string', value: 'default', choices: ['default', 'round', 'compact'], help: 'Design style'}, knobSize: {type: 'number', value: 'auto', help: 'Fader knob size'}, - colorKnob: {type: 'string', value: 'auto', help: 'Fader knob color'}, + colorKnob: {type: 'string', value: 'auto', help: 'Fader knob color. Must be a valid css color.'}, horizontal: {type: 'boolean', value: false, help: 'Set to `true` to display the fader horizontally'}, pips: {type: 'boolean', value: false, help: 'Set to `true` to show range breakpoints (ignored if `design` is `compact`)'}, dashed: {type: 'boolean|array', value: false, help: 'Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]`'}, @@ -30,10 +31,18 @@ class Fader extends Slider { }, class_specific: { snap: {type: 'boolean', value: false, help: 'By default, dragging the widget will modify it\'s value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position'}, + touchZone: {type: 'string', value: 'all', choices: ['all', 'knob', 'gauge'], help: [ + 'Restrict interaction to a part of the widget:', + '- `all`: touching the widget anywhere will start an interaction', + '- `knob`: touching the knob will start an interaction', + '- `gauge`: touching anywhere in the knob\'s moving range will start an interaction', + 'This setting is ignored in containers with `traversing` set to `true`' + ]}, spring: {type: 'boolean', value: false, help: 'When set to `true`, the widget will go back to its `default` value when released'}, - doubleTap: {type: 'boolean', value: false, help: [ - 'Set to `true` to make the fader reset to its `default` value when receiving a double tap.', - 'Can also be an osc address, in which case the widget will just send an osc message (`/ `)' + doubleTap: {type: 'boolean|string', value: false, choices: [false, true, 'script'], help: [ + 'Set to `true` to make the knob reset to its `default` value when receiving a double tap.', + 'Can be an osc address, in which case the widget will just send an osc message with no value (but `preArgs` included).', + 'If set to "script", `onTouch` will be called with `event.type` set to `doubleTap`. ' ]}, range: {type: 'object', value: {min:0,max:1}, help: [ 'Defines the breakpoints of the fader\'s scale:', @@ -54,6 +63,7 @@ class Fader extends Slider { }) defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} + defaults.style.borderRadius= {type: 'number', value: 'auto', help: 'Border radius expressed as a number (same for all corners, applies only for compact design).'} return defaults @@ -66,6 +76,7 @@ class Fader extends Slider { this.container.classList.toggle('horizontal', this.getProp('horizontal')) this.gaugeGradient = null + this.shouldDrawPips = false var dashed = this.getProp('dashed') this.dashed = dashed ? Array.isArray(dashed) ? dashed.map(x=>parseFloat(x)) : [1, 1] : false @@ -76,6 +87,11 @@ class Fader extends Slider { super.draginitHandle(...arguments) + if (!e.traversing && !this.shouldDrag(e)) { + e.cancelDragEvent = true + return + } + this.percent = clip(this.percent,[0,100]) if (!(e.traversing || this.getProp('snap')) || e.ctrlKey) return @@ -94,15 +110,69 @@ class Fader extends Slider { var padding = this.gaugePadding if (this.getProp('design') === 'compact') padding += this.cssVars.knobSize / 2 - + var inertia = e.fingers > 1 || e.ctrlKey ? 10 : e.inertia this.percent = this.getProp('horizontal')? - this.percent + ( e.movementX / (this.width - padding * 2)) * 100 / e.inertia * this.getProp('sensitivity'): - this.percent + (-e.movementY / (this.height - padding * 2)) * 100 / e.inertia * this.getProp('sensitivity') + this.percent + ( e.movementX / (this.width - padding * 2)) * 100 / inertia * this.getProp('sensitivity'): + this.percent + (-e.movementY / (this.height - padding * 2)) * 100 / inertia * this.getProp('sensitivity') this.setValue(this.percentToValue(this.percent), {send:true,sync:true,dragged:true}) } + shouldDrag(e, testZone) { + + var zone = testZone || this.getProp('touchZone'), + design = this.getProp('design'), + horizontal = this.getProp('horizontal'), + snap = this.getProp('snap') + + if (zone == 'all') return true + if (e.type == 'wheel' && zone == 'knob') zone = 'gauge' + if (design == 'compact' && zone == 'gauge') return true + + var x = e.offsetX, + y = e.offsetY, + percent = this.steps ? this.valueToPercent(this.value) : this.percent, + d = Math.round(this.percentToCoord(percent)), + m = horizontal ? this.height / 2 : this.width / 2, + knobHeight = this.cssVars.knobSize, + knobWidth = knobHeight * .6, + height = !horizontal ? this.height : this.width + + if (design == 'round') knobWidth = knobHeight + if (design == 'compact') { + knobWidth = this.width + // knob position range depends on knob size in compact mode + d = d / (height - this.gaugePadding) * (height-this.gaugePadding - knobHeight) + } + if (horizontal) [knobWidth, knobHeight] = [knobHeight, knobWidth] + + // add extra tolerance pixels + knobWidth += 2 * PXSCALE + knobHeight += 2 * PXSCALE + + var knobX = (horizontal ? d : m) - knobWidth / 2, + knobY = (horizontal ? m : d) - knobHeight / 2, + condition + + if (horizontal) { + if (design == 'compact') knobX += knobWidth / 2 + condition = ((x >= knobX && x <= knobX + knobWidth) || (zone == 'gauge' || snap)) && + y >= knobY && y <= knobY + knobHeight + } else { + if (design == 'compact') knobY += knobHeight / 2 + condition = x >= knobX && x <= knobX + knobWidth && + ((y >= knobY && y <= knobY + knobHeight) || (zone == 'gauge' || snap)) + } + + if (condition) { + return true + } else { + return false + } + + } + percentToCoord(percent) { if (this.getProp('horizontal')) { @@ -172,7 +242,7 @@ class Fader extends Slider { super.cacheCanvasStyle(style) - if (this.getProp('pips') && this.getProp('design') !== 'compact') this.drawPips() + if (this.getProp('pips') && this.getProp('design') !== 'compact') this.shouldDrawPips = true } @@ -237,33 +307,76 @@ class Fader extends Slider { if (compact) { + // flat knob + + this.ctx.globalAlpha = this.cssVars.alphaKnob || 1 + this.ctx.fillStyle = this.cssVars.colorKnob + + this.ctx.beginPath() + // adjust position to keep knob within gauge boundaries + d = (d - this.gaugePadding ) / (height - this.gaugePadding * 2 ) * (height - this.gaugePadding * 2 - knobHeight) + this.gaugePadding + this.ctx.rect(this.gaugePadding, d, width - this.gaugePadding * 2, knobHeight) + this.ctx.fill() + + let x, y, w, h, + rad = PXSCALE * this.cssVars.borderRadius + + // border radius: clip gauge & knob + if (rad > 0) { + rad = Math.min(Math.min(height, width) / 2, rad) + x = this.gaugePadding + y = this.gaugePadding + w = width - this.gaugePadding * 2 + h = height - this.gaugePadding * 2 + this.ctx.beginPath() + this.ctx.moveTo(x + rad, y) + this.ctx.arcTo(x + w, y, x + w, y + h, rad) + this.ctx.arcTo(x + w, y + h, x, y + h, rad) + this.ctx.arcTo(x, y + h, x, y, rad) + this.ctx.arcTo(x, y, x + w, y, rad) + this.ctx.closePath() + + var tmpOp = this.ctx.globalCompositeOperation + this.ctx.globalCompositeOperation = 'destination-in' + this.ctx.fillStyle = '#ffffff' + this.ctx.globalAlpha = 1 + this.ctx.fill() + this.ctx.globalCompositeOperation = tmpOp + } + // stroke if (this.cssVars.lineWidth) { this.ctx.globalAlpha = this.cssVars.alphaStroke this.ctx.strokeStyle = this.cssVars.colorStroke + // draw stroke + x = 0.5 * this.cssVars.lineWidth + y = 0.5 * this.cssVars.lineWidth + w = width - this.cssVars.lineWidth + h = height - this.cssVars.lineWidth + this.ctx.beginPath() - this.ctx.moveTo(0, 0) - this.ctx.lineTo(width, 0) - this.ctx.lineTo(width, height) - this.ctx.lineTo(0, height) + if (rad > 0) { + this.ctx.moveTo(x + rad, y) + this.ctx.arcTo(x + w, y, x + w, y + h, rad) + this.ctx.arcTo(x + w, y + h, x, y + h, rad) + this.ctx.arcTo(x, y + h, x, y, rad) + this.ctx.arcTo(x, y, x + w, y, rad) + } else { + this.ctx.moveTo(x, y) + this.ctx.lineTo(x + w, y) + this.ctx.lineTo(x + w, y + h) + this.ctx.lineTo(x, y + h) + } + this.ctx.closePath() - this.ctx.lineWidth = 2 * this.cssVars.lineWidth + this.ctx.lineWidth = this.cssVars.lineWidth this.ctx.stroke() } - // flat knob - - this.ctx.globalAlpha = 1 - this.ctx.fillStyle = this.cssVars.colorKnob - - this.ctx.beginPath() - d = d / (height - this.gaugePadding) * (height-this.gaugePadding - knobHeight) - this.ctx.rect(this.gaugePadding, d, width - this.gaugePadding * 2, knobHeight) - this.ctx.fill() this.clearRect = [0, 0, width, height] @@ -298,7 +411,8 @@ class Fader extends Slider { this.ctx.rect(m - knobWidth / 6, d, knobWidth / 3, PXSCALE) this.ctx.fill() - this.clearRect = [m - knobWidth / 2 - PXSCALE, this.gaugePadding - knobHeight / 2 - PXSCALE, knobWidth + 2 * PXSCALE, height - 2 * this.gaugePadding + knobHeight + 2 * PXSCALE] + var clearWidth = Math.max(knobWidth, this.cssVars.lineWidth) + this.clearRect = [m - clearWidth / 2 - PXSCALE, this.gaugePadding - knobHeight / 2 - PXSCALE, clearWidth + 2 * PXSCALE, height - 2 * this.gaugePadding + knobHeight + 2 * PXSCALE] } else { @@ -323,7 +437,12 @@ class Fader extends Slider { } - if (this.getProp('pips') && !compact) { + if (this.shouldDrawPips) { + this.drawPips() + this.shouldDrawPips = false + } + + if (this.pips && this.pips.width && this.pips.height) { this.ctx.globalAlpha = 1 this.ctx.drawImage(this.pips, 0, 0) if (!compact) this.clearRect = [this.clearRect, [m + knobWidth / 2, 0, 12 * PXSCALE + this.pipsTextSize, height]] @@ -334,7 +453,7 @@ class Fader extends Slider { drawPips() { - this.pips = this.canvas.cloneNode() + this.pips = this.pips || this.canvas.cloneNode() this.pips.width = this.getProp('horizontal') ? this.height : this.width this.pips.height = !this.getProp('horizontal') ? this.height : this.width this.pipsTextSize = this.fontSize @@ -433,4 +552,4 @@ Fader.cssVariables = Fader.prototype.constructor.cssVariables.concat( {js: 'colorKnob', css: '--color-knob'}, ) -module.exports = Fader +export default Fader diff --git a/src/client/widgets/sliders/knob.js b/src/client/widgets/sliders/knob.mjs similarity index 52% rename from src/client/widgets/sliders/knob.js rename to src/client/widgets/sliders/knob.mjs index 6d9276d3..a364e1ff 100644 --- a/src/client/widgets/sliders/knob.js +++ b/src/client/widgets/sliders/knob.mjs @@ -1,5 +1,6 @@ -var {clip} = require('../utils'), - Slider = require('./slider') +import {clip} from '../utils.mjs' +import Slider from './slider.mjs' +import {PXSCALE} from '../../globals.mjs' class Knob extends Slider { @@ -14,26 +15,28 @@ class Knob extends Slider { var defaults = super.defaults(Knob).extend({ style: { _separator_knob_style: 'Knob style', - design: {type: 'string', value: 'default', choices: ['default', 'solid', 'line'], help: [ + design: {type: 'string', value: 'default', choices: ['default', 'solid', 'line', 'encoder'], help: [ 'Design style', 'Note: "solid" design uses "colorStroke" for the central knob color.' ]}, - colorKnob: {type: 'string', value: 'auto', help: 'Knob color'}, + colorKnob: {type: 'string', value: 'auto', help: 'Knob color. Must be a valid css color.'}, pips: {type: 'boolean', value: false, help: 'Set to `true` to show the scale\'s breakpoints'}, dashed: {type: 'boolean|array', value: false, help: 'Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]`'}, angle: {type: 'number', value: 270, help: 'Defines the angle\'s width of the knob, in degrees'}, }, class_specific: { - mode: {type: 'string', value: 'vertical', choices: ['vertical', 'circular', 'snap', 'snap-alt'], help: [ + mode: {type: 'string', value: 'vertical', choices: ['vertical', 'horizontal', 'circular', 'snap', 'snap-alt'], help: [ '- `vertical`: relative move in vertical motion', + '- `horizontal`: relative move in horizontal motion', '- `circular`: relative move in circular motion', '- `snap`: snap to touch position', '- `snap-alt`: alternative snap mode that allow jumping from `range.min` to `range.max`. `sensitivity` is ignored with this mode.', ]}, spring: {type: 'boolean', value: false, help: 'When set to `true`, the widget will go back to its `default` value when released'}, - doubleTap: {type: 'boolean', value: false, help: [ + doubleTap: {type: 'boolean|string', value: false, choices: [false, true, 'script'], help: [ 'Set to `true` to make the knob reset to its `default` value when receiving a double tap.', - 'Can also be an osc address, in which case the widget will just send an osc message (`/ `)' + 'Can be an osc address, in which case the widget will just send an osc message with no value (but `preArgs` included).', + 'If set to "script", `onTouch` will be called with `event.type` set to `doubleTap`. ' ]}, range: {type: 'object', value: {min:0,max:1}, help: [ 'Defines the breakpoints of the fader\'s scale:', @@ -101,9 +104,15 @@ class Knob extends Slider { dragHandle(e) { + var inertia = e.fingers > 1 || e.ctrlKey ? 10 : e.inertia + if ((this.getProp('mode') === 'vertical' && !e.traversing)) { // vertical - this.percent = -100 * (e.movementY / e.inertia * this.getProp('sensitivity')) / this.minDimension + this.percent + this.percent = -100 * (e.movementY / inertia * this.getProp('sensitivity')) / this.minDimension + this.percent + + } else if ((this.getProp('mode') === 'horizontal' && !e.traversing)) { + // horizontal + this.percent = 100 * (e.movementX / inertia * this.getProp('sensitivity')) / this.minDimension + this.percent } else { // snap or circular @@ -114,7 +123,7 @@ class Knob extends Slider { this.percent = this.angleToPercent(this.coordsToAngle(offsetX, offsetY)) } else { var diff = this.angleToPercent(this.coordsToAngle(offsetX, offsetY), true) - this.angleToPercent(this.coordsToAngle(this.lastOffsetX, this.lastOffsetY), true) - if (Math.abs(diff) < 50 && diff !== 0) this.percent += (diff * 360 / this.maxAngle) * this.getProp('sensitivity') / e.inertia + if (Math.abs(diff) < 50 && diff !== 0) this.percent += (diff * 360 / this.maxAngle) * this.getProp('sensitivity') / inertia } this.lastOffsetX = offsetX @@ -184,153 +193,199 @@ class Knob extends Slider { this.clear() - if (this.getProp('design') === 'default') { + switch (this.getProp('design')) { + case 'default': + { + if (this.minDimension < 40) { + minRadius /= 2 + gaugeWidth = maxRadius - minRadius + gaugeRadius = maxRadius - gaugeWidth / 2 + } - if (this.minDimension < 40) { - minRadius /= 2 - gaugeWidth = maxRadius - minRadius - gaugeRadius = maxRadius - gaugeWidth / 2 - } + // fill + this.ctx.strokeStyle = this.cssVars.colorFill + this.ctx.lineWidth = gaugeWidth - this.gaugePadding * 2 - // fill - this.ctx.strokeStyle = this.cssVars.colorFill - this.ctx.lineWidth = gaugeWidth - this.gaugePadding * 2 + if (dashed) this.ctx.setLineDash(dashed) - if (dashed) this.ctx.setLineDash(dashed) + if (this.cssVars.alphaFillOff) { + this.ctx.globalAlpha = this.cssVars.alphaFillOff + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, min, max) + this.ctx.stroke() + } + + if (this.cssVars.alphaFillOn) { + this.ctx.globalAlpha = this.cssVars.alphaFillOn + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, o, d, o > d) + this.ctx.stroke() + } + + if (dashed) this.ctx.setLineDash([]) + + + // stroke + if (this.cssVars.lineWidth) { + this.ctx.globalAlpha = this.cssVars.alphaStroke + this.ctx.strokeStyle = this.cssVars.colorStroke + this.ctx.lineWidth = this.cssVars.lineWidth + + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius, 0, 2 * Math.PI) + this.ctx.stroke() + } + + + // knob + + this.ctx.globalAlpha = 1 + this.ctx.strokeStyle = this.cssVars.colorKnob + this.ctx.lineWidth = this.cssVars.lineWidth + .5 * PXSCALE + + let r1 = minRadius + this.gaugePadding, + r2 = maxRadius - this.gaugePadding, + a = 2 * Math.PI - d - if (this.cssVars.alphaFillOff) { - this.ctx.globalAlpha = this.cssVars.alphaFillOff this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, min, max) + this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) + this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a)) this.ctx.stroke() + break } + case 'solid': + { + // center - if (this.cssVars.alphaFillOn) { - this.ctx.globalAlpha = this.cssVars.alphaFillOn - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, o, d, o > d) - this.ctx.stroke() - } - - if (dashed) this.ctx.setLineDash([]) - - - // stroke - if (this.cssVars.lineWidth) { this.ctx.globalAlpha = this.cssVars.alphaStroke - this.ctx.strokeStyle = this.cssVars.colorStroke + this.ctx.fillStyle = this.cssVars.colorKnob + + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius / 1.25, 0, 2 * Math.PI) + this.ctx.fill() + + // fill + this.ctx.strokeStyle = this.cssVars.colorFill this.ctx.lineWidth = this.cssVars.lineWidth + if (dashed) this.ctx.setLineDash(dashed) + + if (this.cssVars.alphaFillOff) { + this.ctx.globalAlpha = this.cssVars.alphaFillOff + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius, min, max) + this.ctx.stroke() + } + + if (this.cssVars.alphaFillOn) { + this.ctx.globalAlpha = this.cssVars.alphaFillOn + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius, o, d, o > d) + this.ctx.stroke() + } + + if (dashed) this.ctx.setLineDash([]) + + // knob + + this.ctx.globalAlpha = 1 + this.ctx.strokeStyle = this.cssVars.colorBg + this.ctx.lineWidth = this.cssVars.lineWidth + .5 * PXSCALE + + let r1 = minRadius, + r2 = maxRadius / 1.25 + PXSCALE , + a = 2 * Math.PI - d + this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius, 0, 2 * Math.PI) + this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) + this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a)) this.ctx.stroke() + break } + case 'line': + { + // fill + this.ctx.strokeStyle = this.cssVars.colorFill + this.ctx.lineWidth = this.cssVars.lineWidth + if (dashed) this.ctx.setLineDash(dashed) - // knob + if (this.cssVars.alphaFillOff) { + this.ctx.globalAlpha = this.cssVars.alphaFillOff + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius, min, max) + this.ctx.stroke() + } - this.ctx.globalAlpha = 1 - this.ctx.strokeStyle = this.cssVars.colorKnob - this.ctx.lineWidth = this.cssVars.lineWidth + .5 * PXSCALE + if (this.cssVars.alphaFillOn) { + this.ctx.globalAlpha = this.cssVars.alphaFillOn + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius, o, d, o > d) + this.ctx.stroke() + } - let r1 = minRadius + this.gaugePadding, - r2 = maxRadius - this.gaugePadding, - a = 2 * Math.PI - d + if (dashed) this.ctx.setLineDash([]) - this.ctx.beginPath() - this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) - this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a)) - this.ctx.stroke() + // knob - } else if (this.getProp('design') === 'solid') { + this.ctx.globalAlpha = 1 + this.ctx.strokeStyle = this.cssVars.colorKnob + this.ctx.lineWidth = this.cssVars.lineWidth - // center + let r1 = minRadius * 1.5, + r2 = maxRadius + this.cssVars.lineWidth / 2 - 0.5 * PXSCALE, + a = 2 * Math.PI - d - this.ctx.globalAlpha = this.cssVars.alphaStroke - this.ctx.fillStyle = this.cssVars.colorKnob - - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius / 1.25, 0, 2 * Math.PI) - this.ctx.fill() - - // fill - this.ctx.strokeStyle = this.cssVars.colorFill - this.ctx.lineWidth = this.cssVars.lineWidth - - if (dashed) this.ctx.setLineDash(dashed) - - if (this.cssVars.alphaFillOff) { - this.ctx.globalAlpha = this.cssVars.alphaFillOff this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius, min, max) + this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) + this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a)) this.ctx.stroke() + break } + case 'encoder': + { + let angle = 2 * Math.PI / 16 - if (this.cssVars.alphaFillOn) { - this.ctx.globalAlpha = this.cssVars.alphaFillOn - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius, o, d, o > d) - this.ctx.stroke() + // fill + this.ctx.globalAlpha = this.cssVars.alphaFill + this.ctx.strokeStyle = this.cssVars.colorFill + this.ctx.lineWidth = gaugeWidth - this.gaugePadding * 2 + + if (this.cssVars.alphaFillOff) { + this.ctx.globalAlpha = this.cssVars.alphaFillOff + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, min - angle, max + angle) + this.ctx.stroke() + } + + if (this.cssVars.alphaFillOn) { + this.ctx.globalAlpha = this.cssVars.alphaFillOn + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, gaugeRadius, d - angle, d + angle) + this.ctx.stroke() + } + + // stroke + if (this.cssVars.lineWidth) { + + this.ctx.globalAlpha = this.cssVars.alphaStroke + this.ctx.strokeStyle = this.cssVars.colorStroke + this.ctx.lineWidth = this.cssVars.lineWidth + + if (this.minDimension > 40) { + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, minRadius, 0, 2 * Math.PI) + this.ctx.stroke() + } + + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, maxRadius, 0, 2 * Math.PI) + this.ctx.stroke() + + } + + break } - - if (dashed) this.ctx.setLineDash([]) - - // knob - - this.ctx.globalAlpha = 1 - this.ctx.strokeStyle = this.cssVars.colorBg - this.ctx.lineWidth = this.cssVars.lineWidth + .5 * PXSCALE - - let r1 = minRadius, - r2 = maxRadius / 1.25 + PXSCALE , - a = 2 * Math.PI - d - - this.ctx.beginPath() - this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) - this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a)) - this.ctx.stroke() - - - - } else { - - // fill - this.ctx.strokeStyle = this.cssVars.colorFill - this.ctx.lineWidth = this.cssVars.lineWidth - - if (dashed) this.ctx.setLineDash(dashed) - - if (this.cssVars.alphaFillOff) { - this.ctx.globalAlpha = this.cssVars.alphaFillOff - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius, min, max) - this.ctx.stroke() - } - - if (this.cssVars.alphaFillOn) { - this.ctx.globalAlpha = this.cssVars.alphaFillOn - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, maxRadius, o, d, o > d) - this.ctx.stroke() - } - - if (dashed) this.ctx.setLineDash([]) - - // knob - - this.ctx.globalAlpha = 1 - this.ctx.strokeStyle = this.cssVars.colorKnob - this.ctx.lineWidth = this.cssVars.lineWidth - - let r1 = minRadius * 1.5, - r2 = maxRadius + this.cssVars.lineWidth / 2 - 0.5 * PXSCALE, - a = 2 * Math.PI - d - - this.ctx.beginPath() - this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) - this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a)) - this.ctx.stroke() - } @@ -360,7 +415,7 @@ class Knob extends Slider { this.ctx.globalAlpha = this.cssVars.alphaPipsText for (var p in this.pipTexts) { if (this.pipTexts[p] === undefined || (this.maxAngle === 360 && p === '100')) continue - var angle = this.percentToAngle(p), + let angle = this.percentToAngle(p), size = this.ctx.measureText(this.pipTexts[p]), x = this.width / 2 + radius * Math.cos(angle) - size.width / 2, y = this.height / 2 + radius * Math.sin(angle) @@ -377,4 +432,4 @@ Knob.cssVariables = Knob.prototype.constructor.cssVariables.concat( {js: 'colorKnob', css: '--color-knob'} ) -module.exports = Knob +export default Knob diff --git a/src/client/widgets/sliders/range.js b/src/client/widgets/sliders/range.mjs similarity index 94% rename from src/client/widgets/sliders/range.js rename to src/client/widgets/sliders/range.mjs index e0493062..55f5097c 100644 --- a/src/client/widgets/sliders/range.js +++ b/src/client/widgets/sliders/range.mjs @@ -1,6 +1,7 @@ -var {clip} = require('../utils'), - Fader = require('./fader'), - html = require('nanohtml') +import html from 'nanohtml' +import {clip} from '../utils.mjs' +import Fader from './fader' +import {PXSCALE} from '../../globals.mjs' var faderDefaults = Fader.defaults()._props() @@ -162,7 +163,7 @@ class Range extends Fader { if (!i) return - e.inertia = 1 // cancel multifinger inertia + e.fingers = 1 // cancel multifinger inertia if (e.shiftKey) { this.faders[0].trigger('drag', e) @@ -300,16 +301,15 @@ class Range extends Fader { this.ctx.globalAlpha = 1 this.ctx.fillStyle = this.cssVars.colorKnob - var compactAdjust = 1 / (height - this.gaugePadding) * (height-this.gaugePadding - knobHeight) this.ctx.beginPath() - d *= compactAdjust + d = (d - this.gaugePadding ) / (height - this.gaugePadding * 2 ) * (height - this.gaugePadding * 2 - knobHeight) + this.gaugePadding this.ctx.rect(this.gaugePadding, d, width - this.gaugePadding * 2, knobHeight) this.ctx.fill() // extra knob this.ctx.beginPath() - d2 *= compactAdjust + d2 = (d2 - this.gaugePadding ) / (height - this.gaugePadding * 2 ) * (height - this.gaugePadding * 2 - knobHeight) + this.gaugePadding this.ctx.rect(this.gaugePadding, d2, width - this.gaugePadding * 2, knobHeight) this.ctx.fill() @@ -384,7 +384,12 @@ class Range extends Fader { } - if (this.getProp('pips')) { + if (this.shouldDrawPips) { + this.drawPips() + this.shouldDrawPips = false + } + + if (this.pips && this.pips.width && this.pips.height) { this.ctx.globalAlpha = 1 this.ctx.drawImage(this.pips, 0, 0) if (!compact) this.clearRect = [this.clearRect, [m + knobWidth / 2, 0, 12 * PXSCALE + this.pipsTextSize, height]] @@ -415,4 +420,4 @@ class Range extends Fader { } -module.exports = Range +export default Range diff --git a/src/client/widgets/sliders/scrollbar.mjs b/src/client/widgets/sliders/scrollbar.mjs new file mode 100644 index 00000000..e3dafd9f --- /dev/null +++ b/src/client/widgets/sliders/scrollbar.mjs @@ -0,0 +1,350 @@ +import fastdom from 'fastdom' +import Fader from './fader.mjs' +import StaticProperties from '../mixins/static_properties.mjs' +import {clip} from '../utils.mjs' +import widgetManager from '../../managers/widgets.mjs' +import {PXSCALE} from '../../globals.mjs' + +export default class Scrollbar extends StaticProperties(Fader, { + range: {min: 0, max: 1}, + touchZone: 'all', + snap: false, + design: 'compact', + sensitivity: 1 +}) { + + static defaults() { + + return super.defaults().extend({ + style: { + _separator_fader_style: 'Scrollbar style', + design: null, + knobSize: null, + pips: null, + }, + class_specific: { + snap: null, + touchZone: null, + spring: null, + doubleTap: null, + range: null, + logScale: null, + steps: null, + origin: null, + sensitivity: null, + widgetId: {type: 'string', value: '', help: '`id` of the container widget to control'}, + } + }) + + } + + constructor(options) { + + super(options) + + this.scrollTarget = null + this.targetRank = null + this.thumbSize = 1 + + if (!this.getProp('horizontal')) { + // invert vertical fader + this.rangeVals[0] = 1 + this.rangeVals[1] = 0 + this.setValue(this.getSpringValue()) + } + + + widgetManager.on('widget-created', (e)=>{ + + // if in a non-scoped context we don't watch for a closer target once we have one + if (!this.scopes.length && this.scrollTarget) return + + var {id, widget} = e + if (id.includes(this.getProp('widgetId')) && widget.getProp('scroll')) { + + this.getScrollTarget() + } + + }, {context: this}) + + this.getScrollTarget() + + } + + getScrollTarget() { + + var scopes = this.scopes.length ? this.scopes : [''], + target = null, + rank = 0 + + for (var scope of scopes) { + var widgets = widgetManager.getWidgetById(this.getProp('widgetId'), scope) + .filter(w=>w.getProp('scroll')) + target = widgets[0] + + if (!target) { + rank++ + continue + } + + if (rank < this.targetRank || this.targetRank == null) { + this.unbindTarget() + this.bindTarget(target, rank) + } + + return + + } + + } + + draginitHandle(e) { + + // super.draginitHandle(...arguments) + + if (!e.traversing && !this.shouldDrag(e)) { + e.cancelDragEvent = true + return + } + + this.percent = clip(this.percent,[0,100]) + + // snap when not touching the knob zone + if (this.shouldDrag(e, 'knob')) return + + this.percent = this.getProp('horizontal')? + (e.offsetX - this.gaugePadding) / (this.width - this.gaugePadding * 2) * 100: + (this.height - e.offsetY - this.gaugePadding) / (this.height - this.gaugePadding * 2) * 100 + + this.setValue(this.percentToValue(this.percent), {send: true, sync: true, dragged: true}) + + } + + + mousewheelHandle(e) { + + e.preventDefault() + e.stopPropagation() + + if (!this.scrollTarget) return + + var increment + if (this.getProp('horizontal')) { + increment = e.deltaY / this.scrollTarget.scrollWidth * 100 + } else { + increment = -e.deltaY / this.scrollTarget.scrollHeight * 100 + } + + this.percent = clip(this.percent + increment, [0,100]) + this.setValue(this.percentToValue(this.percent), {sync: true, send: true, dragged: true}) + + } + + cacheCanvasStyle(style){ + + super.cacheCanvasStyle(style) + + var size = this.getProp('horizontal') ? this.width : this.height + this.cssVars.knobSize = Math.max(this.thumbSize * size, 30) + this.cssVars.alphaKnob = 0.25 + + } + + + unbindTarget() { + + if (!this.scrollTarget) return + + this.scrollTarget.off(undefined, undefined, this) + + this.scrollTarget = null + this.targetRank = null + } + + bindTarget(target, rank) { + + if (!target) return + + this.scrollTarget = target + this.targetRank = rank + + this.scrollTarget.on('widget-removed', (e)=>{ + if (this.scrollTarget === e.widget) { + this.unbindTarget() + } + }, {context: this}) + + fastdom.measure(()=>{ + if (!this.scrollTarget) return + this.scrollTarget.on('scroll', this.targetScroll.bind(this)) + this.scrollTarget.on('resize', ()=>{ + if (this.scrollTarget) { + this.scrollTarget.trigger('scroll', {}) + this.targetScroll({}, true) + } + }, {element: this.scrollTarget.widget}) + this.targetScroll({}, true) + }) + + } + + targetScroll(e, init) { + + if (!this.scrollTarget || (e && e.locked)) return + + var index = this.getProp('horizontal') ? 0 : 1, + size = this.getProp('horizontal') ? this.width : this.height + + this.thumbSize = this.scrollTarget.scrollThumb[index] + this.cssVars.knobSize = Math.max(this.thumbSize * size, 30) + + if (init && this.value) { + // panel (re)createed: restore scroll state + this.setValue(this.value, {fromScrollEvent: false, send: false, sync: false}) + } else if (this.scrollTarget.scroll[index] != this.value) { + // panel scrolling: update scroll state + this.setValue(this.scrollTarget.scroll[index], {fromScrollEvent: true, send: !init, sync: !init}) + } + + } + + + setValue(v, options={}) { + + super.setValue(v, options) + + if (!options.fromScrollEvent && this.scrollTarget) { + if (this.getProp('horizontal')) { + this.scrollTarget.setScroll(this.value, undefined, true) + } else { + this.scrollTarget.setScroll(undefined, this.value, true) + } + } + + } + + draw() { + + var width = this.getProp('horizontal') ? this.height : this.width, + height = !this.getProp('horizontal') ? this.height : this.width + + var percent = this.steps ? this.valueToPercent(this.value) : this.percent, + d = Math.round(this.percentToCoord(percent)), + m = this.getProp('horizontal') ? this.height / 2 : this.width / 2, + dashed = this.dashed, + knobHeight = this.cssVars.knobSize + + this.clear() + + // sharp border trick + if (width % 2 && parseInt(m) === m) m -= 0.5 + + + this.ctx.strokeStyle = this.gaugeGradient || this.cssVars.colorFill + + this.ctx.lineWidth = Math.round(width - this.gaugePadding * 2) + + + if (dashed) this.ctx.setLineDash([PXSCALE * dashed[0], PXSCALE * dashed[1]]) + + + if (this.cssVars.alphaFillOff) { + // gaugo off + this.ctx.globalAlpha = this.cssVars.alphaFillOff + this.ctx.beginPath() + this.ctx.moveTo(m, height - this.gaugePadding) + this.ctx.lineTo(m, this.gaugePadding) + this.ctx.stroke() + } + + + if (dashed) this.ctx.setLineDash([]) + + // flat knob + + this.ctx.globalAlpha = this.cssVars.alphaFillOn + this.ctx.fillStyle = this.cssVars.colorKnob + + this.ctx.beginPath() + // adjust position to keep knob within gauge boundaries + d = (d - this.gaugePadding ) / (height - this.gaugePadding * 2 ) * (height - this.gaugePadding * 2 - knobHeight) + this.gaugePadding + if (this.cssVars.borderRadius > 0 && this.ctx.roundRect) { + this.ctx.roundRect(this.gaugePadding, d, width - this.gaugePadding * 2, knobHeight, PXSCALE * this.cssVars.borderRadius) + } else { + this.ctx.rect(this.gaugePadding, d, width - this.gaugePadding * 2, knobHeight) + } + this.ctx.fill() + + let x, y, w, h, + rad = PXSCALE * this.cssVars.borderRadius + + // border radius: clip gauge & knob + if (rad > 0) { + rad = Math.min(Math.min(height, width) / 2, rad) + x = this.gaugePadding + y = this.gaugePadding + w = width - this.gaugePadding * 2 + h = height - this.gaugePadding * 2 + this.ctx.beginPath() + this.ctx.moveTo(x + rad, y) + this.ctx.arcTo(x + w, y, x + w, y + h, rad) + this.ctx.arcTo(x + w, y + h, x, y + h, rad) + this.ctx.arcTo(x, y + h, x, y, rad) + this.ctx.arcTo(x, y, x + w, y, rad) + this.ctx.closePath() + + var tmpOp = this.ctx.globalCompositeOperation + this.ctx.globalCompositeOperation = 'destination-in' + this.ctx.fillStyle = '#ffffff' + this.ctx.globalAlpha = 1 + this.ctx.fill() + this.ctx.globalCompositeOperation = tmpOp + } + + // stroke + if (this.cssVars.lineWidth) { + + this.ctx.globalAlpha = this.cssVars.alphaStroke + this.ctx.strokeStyle = this.cssVars.colorStroke + + // draw stroke + x = 0.5 * this.cssVars.lineWidth + y = 0.5 * this.cssVars.lineWidth + w = width - this.cssVars.lineWidth + h = height - this.cssVars.lineWidth + + this.ctx.beginPath() + if (rad > 0) { + this.ctx.moveTo(x + rad, y) + this.ctx.arcTo(x + w, y, x + w, y + h, rad) + this.ctx.arcTo(x + w, y + h, x, y + h, rad) + this.ctx.arcTo(x, y + h, x, y, rad) + this.ctx.arcTo(x, y, x + w, y, rad) + } else { + this.ctx.moveTo(x, y) + this.ctx.lineTo(x + w, y) + this.ctx.lineTo(x + w, y + h) + this.ctx.lineTo(x, y + h) + } + + this.ctx.closePath() + this.ctx.lineWidth = this.cssVars.lineWidth + this.ctx.stroke() + + } + + + + this.clearRect = [0, 0, width, height] + + + } + + onRemove(){ + + this.unbindTarget() + super.onRemove() + + } + +} diff --git a/src/client/widgets/sliders/slider.js b/src/client/widgets/sliders/slider.mjs similarity index 86% rename from src/client/widgets/sliders/slider.js rename to src/client/widgets/sliders/slider.mjs index a3acd39b..e3ac837f 100644 --- a/src/client/widgets/sliders/slider.js +++ b/src/client/widgets/sliders/slider.mjs @@ -1,8 +1,8 @@ -var {clip, mapToScale} = require('../utils'), - Canvas = require('../common/canvas'), - touchstate = require('../mixins/touch_state'), - doubleTap = require('../mixins/double_tap'), - html = require('nanohtml') +import html from 'nanohtml' +import {clip, mapToScale} from '../utils.mjs' +import Canvas from '../common/canvas.mjs' +import touchstate from '../mixins/touch_state.mjs' +import doubleTap from '../mixins/double_tap' class Slider extends Canvas { @@ -57,13 +57,27 @@ class Slider extends Canvas { if (typeof this.getProp('doubleTap') === 'string' && this.getProp('doubleTap')[0] === '/') { - doubleTap(this, ()=>{ + doubleTap(this, (e)=>{ + if (!this.shouldDrag(e)) return this.sendValue({v:null, address: this.getProp('doubleTap')}) }, {element: this.widget}) + } + if (this.getProp('doubleTap') == 'script') { + + doubleTap(this, (e)=>{ + if (!this.shouldDrag(e)) return + this.scripts.onTouch.run({ + event: {type: 'doubleTap'}, + value: this.value + }, {sync: true, send: true}) + }, {element: this.widget}) + + } else { - doubleTap(this, ()=>{ + doubleTap(this, (e)=>{ + if (!this.shouldDrag(e)) return this.setValue(this.getSpringValue(),{sync:true, send:true, fromLocal:true, doubleTap:true}) }, {element: this.widget}) @@ -86,6 +100,12 @@ class Slider extends Canvas { } + shouldDrag(e) { + + return true + + } + mousewheelHandleProxy() { this.mousewheelHandle(...arguments) @@ -112,7 +132,7 @@ class Slider extends Canvas { mousewheelHandle(e) { - if (e.deltaX || this.getProp('spring')) return + if (e.deltaX || this.getProp('spring') || !this.shouldDrag(e)) return e.preventDefault() e.stopPropagation() @@ -206,7 +226,12 @@ class Slider extends Canvas { setValue(v,options={}) { if (typeof v != 'number') return - if (this.touched && !options.dragged && !options.doubleTap) return this.setValueTouchedQueue = [v, options] + if ( + this.touched && + !options.dragged && + !options.doubleTap && + options.fromScript !== this.hash + ) return this.setValueTouchedQueue = [v, options] var value = clip(v,[this.rangeValsMin,this.rangeValsMax]) @@ -266,6 +291,7 @@ class Slider extends Canvas { if (this.getProp('spring') && !this.touched) this.setValue(this.getSpringValue(), {...options}) return case 'colorKnob': + case 'knobSize': this.setCssVariables() return @@ -287,7 +313,8 @@ Slider.dynamicProps = Slider.prototype.constructor.dynamicProps 'spring', 'sensitivity', 'default', - 'colorKnob' + 'colorKnob', + 'knobSize' ]) -module.exports = Slider +export default Slider diff --git a/src/client/widgets/utils.js b/src/client/widgets/utils.js deleted file mode 100644 index 848f07bf..00000000 --- a/src/client/widgets/utils.js +++ /dev/null @@ -1,153 +0,0 @@ -var balanced = require('balanced-match') - -module.exports = { - - clip: function(value,range) { - - value = parseFloat(value) - - if (isNaN(value)) value = range[0] - - return Math.max(Math.min(range[0], range[1]), Math.min(value, Math.max(range[0], range[1]))) - - }, - - // map a value from a scale to another - // value: number - // rangeIn: [number, number] - // rangeOut: [number, number] - // decimals: number (-1 to bypass) - // log: true, or manual log scale (max log value) - // revertLog: boolean - mapToScale: function(value, rangeIn, rangeOut, decimals, log, revertlog) { - - // clip in - value = module.exports.clip(value,[rangeIn[0], rangeIn[1]]) - - - // normalize - value = (value - rangeIn[0]) / (rangeIn[1] - rangeIn[0]) - - // log scale - if (log) { - - var logScale = revertlog ? Math.abs(rangeIn[1] - rangeIn[0]) : - Math.abs(rangeOut[1] - rangeOut[0]) - - if (log !== true && log !== -1) logScale = Math.abs(log) - else if (logScale >= 100) logScale /= 10 - else logScale = Math.max(logScale, 10) - - if (log < 0) revertlog = !revertlog - - value = revertlog ? - Math.log(value * (logScale - 1) + 1) / Math.log(logScale) : - Math.pow(logScale, value) / (logScale - 1) - 1 / (logScale - 1) - - } - - // scale out - value = value * (rangeOut[1] - rangeOut[0]) + rangeOut[0] - - // clip out - value = module.exports.clip(value, [rangeOut[0], rangeOut[1]]) - - // decimals - if (decimals !== -1) value = parseFloat(value.toFixed(decimals)) - - return value - - }, - - hsbToRgb: function(hsb) { - var rgb = {} - var h = hsb.h - var s = hsb.s*255/100 - var v = hsb.b*255/100 - if(s == 0) { - rgb.r = rgb.g = rgb.b = v - } else { - var t1 = v - var t2 = (255-s)*v/255 - var t3 = (t1-t2)*(h%60)/60 - if(h==360) h = 0 - if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3} - else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3} - else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3} - else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3} - else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3} - else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3} - else {rgb.r=0; rgb.g=0; rgb.b=0} - } - return rgb - }, - - rgbToHsb: function(rgb) { - var hsb = {h: 0, s: 0, b: 0} - var min = Math.min(rgb.r, rgb.g, rgb.b) - var max = Math.max(rgb.r, rgb.g, rgb.b) - var delta = max - min - hsb.b = max - hsb.s = max != 0 ? 255 * delta / max : 0 - if (hsb.s != 0) { - if (rgb.r == max) hsb.h = (rgb.g - rgb.b) / delta - else if (rgb.g == max) hsb.h = 2 + (rgb.b - rgb.r) / delta - else hsb.h = 4 + (rgb.r - rgb.g) / delta - } else hsb.h = 0 - hsb.h *= 60 - if (hsb.h < 0) hsb.h += 360 - hsb.s *= 100/255 - hsb.b *= 100/255 - return hsb - }, - - urlParser: (()=>{ - - var parser = document.createElement('a'), - localUrlRe = /(^127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^172\.1[6-9]{1}[0-9]{0,1}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^172\.2[0-9]{1}[0-9]{0,1}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^172\.3[0-1]{1}[0-9]{0,1}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$)/ - - parser.isLocal = ()=>{ - return parser.hostname.match(localUrlRe) - } - - return (url)=>{ - parser.href = url - return parser - } - - })(), - - balancedReplace(tag, open, close, string, replacement) { - - var start, lastStart = -1 - - while ((start = string.indexOf(tag + open)) >= 0 && lastStart !== start) { - - var substring = string.slice(start + tag.length), - b = balanced(open, close, substring) - - if (b) { - - if (typeof replacement === 'function') { - - substring = b.pre + replacement(b.body) + b.post - - } else { - - substring = b.pre + replacement + b.post - - } - - string = string.slice(0, start) + substring - - } - - lastStart = start - - } - - return string - - } - -} diff --git a/src/client/widgets/utils.mjs b/src/client/widgets/utils.mjs new file mode 100644 index 00000000..62482c86 --- /dev/null +++ b/src/client/widgets/utils.mjs @@ -0,0 +1,156 @@ +import balanced from 'balanced-match' + +export function clip(value,range) { + + value = parseFloat(value) + + if (isNaN(value)) value = range[0] + + return Math.max(Math.min(range[0], range[1]), Math.min(value, Math.max(range[0], range[1]))) + +} + +// map a value from a scale to another +// value: number +// rangeIn: [number, number] +// rangeOut: [number, number] +// decimals: number (-1 to bypass) +// log: true, or manual log scale (max log value) +// revertLog: boolean +export function mapToScale(value, rangeIn, rangeOut, decimals, log, revertlog, noClip) { + + // clip in + if (!noClip) { + value = clip(value,[rangeIn[0], rangeIn[1]]) + } + + + // normalize + value = (value - rangeIn[0]) / (rangeIn[1] - rangeIn[0]) + + // log scale + if (log) { + + var logScale = revertlog ? Math.abs(rangeIn[1] - rangeIn[0]) : + Math.abs(rangeOut[1] - rangeOut[0]) + + if (log !== true && log !== -1) logScale = Math.abs(log) + else if (logScale >= 100) logScale /= 10 + else logScale = Math.max(logScale, 10) + + if (log < 0) revertlog = !revertlog + + value = revertlog ? + Math.log(value * (logScale - 1) + 1) / Math.log(logScale) : + Math.pow(logScale, value) / (logScale - 1) - 1 / (logScale - 1) + + } + + // scale out + value = value * (rangeOut[1] - rangeOut[0]) + rangeOut[0] + + // clip out + if (!noClip) { + value = clip(value, [rangeOut[0], rangeOut[1]]) + } + + // decimals + if (decimals !== -1) value = parseFloat(value.toFixed(decimals)) + + return value + +} + +export function hsbToRgb(hsb) { + var rgb = {} + var h = hsb.h + var s = hsb.s*255/100 + var v = hsb.b*255/100 + if(s == 0) { + rgb.r = rgb.g = rgb.b = v + } else { + var t1 = v + var t2 = (255-s)*v/255 + var t3 = (t1-t2)*(h%60)/60 + if(h==360) h = 0 + if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3} + else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3} + else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3} + else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3} + else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3} + else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3} + else {rgb.r=0; rgb.g=0; rgb.b=0} + } + return rgb +} + +export function rgbToHsb(rgb) { + var hsb = {h: 0, s: 0, b: 0} + var min = Math.min(rgb.r, rgb.g, rgb.b) + var max = Math.max(rgb.r, rgb.g, rgb.b) + var delta = max - min + hsb.b = max + hsb.s = max != 0 ? 255 * delta / max : 0 + if (hsb.s != 0) { + if (rgb.r == max) hsb.h = (rgb.g - rgb.b) / delta + else if (rgb.g == max) hsb.h = 2 + (rgb.b - rgb.r) / delta + else hsb.h = 4 + (rgb.r - rgb.g) / delta + } else hsb.h = 0 + hsb.h *= 60 + if (hsb.h < 0) hsb.h += 360 + hsb.s *= 100/255 + hsb.b *= 100/255 + return hsb +} + + +var urlParser = (()=>{ + + var parser = document.createElement('a'), + localUrlRe = /(^127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^172\.1[6-9]{1}[0-9]{0,1}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^172\.2[0-9]{1}[0-9]{0,1}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^172\.3[0-1]{1}[0-9]{0,1}\.[0-9]{1,3}\.[0-9]{1,3}$)|(^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$)/ + + parser.isLocal = ()=>{ + return parser.hostname.match(localUrlRe) + } + + return (url)=>{ + parser.href = url + return parser + } + +})() + +export {urlParser} + +export function balancedReplace(tag, open, close, string, replacement) { + + var start, lastStart = -1 + + while ((start = string.indexOf(tag + open)) >= 0 && lastStart !== start) { + + var substring = string.slice(start + tag.length), + b = balanced(open, close, substring) + + if (b) { + + if (typeof replacement === 'function') { + + substring = b.pre + replacement(b.body) + b.post + + } else { + + substring = b.pre + replacement + b.post + + } + + string = string.slice(0, start) + substring + + } + + lastStart = start + + } + + return string + +} diff --git a/src/client/widgets/vm.js b/src/client/widgets/vm.mjs similarity index 58% rename from src/client/widgets/vm.js rename to src/client/widgets/vm.mjs index 40b25be7..389dceaa 100644 --- a/src/client/widgets/vm.js +++ b/src/client/widgets/vm.mjs @@ -1,13 +1,22 @@ -var loopProtect = require('loop-protect'), - {deepCopy} = require('../utils'), - globals +import {deepCopy} from '../utils.mjs' +import {ENV, IP} from '../globals.mjs' + +var sessionManager +setTimeout(async()=>{ + // use setTimeout to fix init order in safari... + sessionManager = (await import('../managers/session/index.mjs')).default +}) + + +var globals class Vm { constructor() { + this.widget = [] + if (!globals) { - var sessionManager globals = { screen: { get width() {return screen.width}, @@ -22,7 +31,6 @@ class Vm { platform: navigator.platform, clipboard: navigator.clipboard, get session() { - sessionManager = sessionManager || require('../managers/session') return sessionManager.sessionPath } } @@ -43,14 +51,21 @@ class Vm { this.sandbox.contentWindow.document.write('') this.sandbox.contentWindow.document.close() - // init infinite loop guard - loopProtect.alias = '__protect' - loopProtect.hit = function(line){ - throw 'Potential infinite loop found on line ' + line + '(script interrupted).\nAdd "// noprotect" to your code to disable loop protection.' - } - this.sandbox.contentWindow.__protect = loopProtect - // global context + this.globals = {} + this.globals.console = { + ...console, + log: (...msg)=>{ + msg = msg.map(m => typeof m == 'object' ? JSON.stringify(m, this.jsonReplacer) : m) + this.getWidget().log(msg.join(' ')) + } + } + + this.globals.setTimeout = + this.globals.setInterval = ()=>{ + throw 'setTimeout and setInterval can\'t be used in the JS sandbox' + } + this.registerGlobals() // detach sandbox @@ -58,39 +73,25 @@ class Vm { } - registerGlobals() { + setWidget(widget) { - this.sandbox.contentWindow.console = console - this.sandbox.contentWindow.setTimeout = - this.sandbox.contentWindow.setInterval = ()=>{ - throw 'setTimeout and setInterval can\'t be used in the JS sandbox' - } - this.sandbox.contentWindow.globals = globals - - // sanitize globals - for (var imports of ['__protect', 'console', 'setTimeout', 'setInterval', 'globals']) { - this.sanitize(this.sandbox.contentWindow[imports]) - } + if (!widget) this.widget.pop() + else this.widget.push(widget) } - sanitize(object) { + getWidget() { - // non-primitives created outside the sandbox context can leak - // the host window object... let's nuke that ! - // (we only nuke functions and objects/arrays because we don't pass anything else) - var t = typeof o - if (t === 'function' || (t === 'object' && o !== null)) { - if (o.__proto__) { - if (t === 'function') { - o.__proto__.constructor = this.safeFunctionProto - } else { - o.__proto__.constructor.constructor = this.safeFunctionProto - } - } - for (var k in o) { - this.sanitize(o[k]) - } + return this.widget[this.widget.length - 1] + + } + + registerGlobals() { + + this.globals.globals = globals + + for (var k in this.globals) { + this.sandbox.contentWindow[k] = this.globals[k] } } @@ -100,7 +101,7 @@ class Vm { if (typeof code !== 'string') code = String(code) // var contextInit = 'var locals = locals;', - var contextInit = '', + var contextInit = '"use strict";', contextKeys = ['__VARS'], contextValues = [{}] @@ -117,13 +118,9 @@ class Vm { } } - var compiledCode = new this.safeFunctionProto( - ...contextKeys, 'locals', - loopProtect('"use strict";' + contextInit + code) - .replace(/;\n(if \(__protect.*break;)\n/g, ';$1') // prevent loop protect from breaking stack linenumber - .replace(/(VAR_[0-9]+)/g, '__VARS.$1') - ) + code = contextInit + code.replace(/(VAR_[0-9]+)/g, '__VARS.$1') + var compiledCode = new this.safeFunctionProto(...contextKeys, 'locals', code) return (context, locals)=>{ @@ -140,14 +137,16 @@ class Vm { __contextValues.push(locals) - this.sanitize(__contextValues) - return compiledCode.apply('this', __contextValues) } } + jsonReplacer(key, value) { + return value instanceof HTMLElement ? `<${value.tagName}#${value.id}>` : value + } + } -module.exports = Vm +export default Vm diff --git a/scripts/client-shim.js b/src/docs/client-shim.mjs similarity index 65% rename from scripts/client-shim.js rename to src/docs/client-shim.mjs index a6edb55c..dc87e8ca 100644 --- a/scripts/client-shim.js +++ b/src/docs/client-shim.mjs @@ -1,10 +1,12 @@ // Dirty browser window shim +import * as DOM from '../client/dom.mjs' +// eslint-disable-next-line no-global-assign document = { createElement: x=>({ ownerDocument: document, - style: {}, - contentWindow: {}, + addEventListener: ()=>{}, + style: {setProperty: ()=>{}}, nodeName: '', childNodes: [], setAttribute: ()=>{}, @@ -12,14 +14,16 @@ document = { lastChild: {}, toString: ()=>' ', removeChild: ()=>{}, + getPropertyValue: ()=>{}, contentWindow: { document: { open: ()=>{}, close: ()=>{}, write: ()=>{}, } - } + }, }), + getElementById: ()=>document.createElement(), createTextNode: x=>({ nodeValue: '', nodeName: '', @@ -45,23 +49,17 @@ document = { appendChild: ()=>{}, addEventListener: ()=>{} }, - location: {}, - documentElement: { - appendChild: ()=>{}, - removeChild: ()=>{} - } + location: {search: ''}, } +document.documentElement = document.createElement() +// eslint-disable-next-line no-global-assign window = { screen: {width: 800, height: 600}, addEventListener: ()=>{}, - location: {}, + location: {search: ''}, Image: Function, document: document, - navigator: { - platform:'', - userAgent: '' - }, NodeList: Array, WebSocket: Object, localStorage: { @@ -69,20 +67,26 @@ window = { }, sessionStorage: { getItem(){return null}, - setItem(){}, + setItem(){}, }, - MutationObserver: class MutationObserver{} + getComputedStyle: ()=>document.createElement(), + MutationObserver: class MutationObserver{}, + ELECTRON_NOGPU: false, + CANVAS_FRAMERATE: 1, + LANG: 'en', + ENV: {id: ''}, + IP: '', + DOM +} + +if (!global.navigator) { + // defined as getter since node 22 + window.navigator = { + platform:'', + userAgent: '' + } } Object.assign(global, window) -// Required globals - -DOM = require('../src/client/dom') -DOM.get = x=>[{addEventListener:()=>{}, style:{}}] -DOM.init() -ELECTRON_NOGPU = false -CANVAS_FRAMERATE = 1 -LANG = 'en' -ENV = {id: ''} -IP = '' +console.debug = ()=>{} diff --git a/scripts/build-widgets-reference.js b/src/docs/widgets-reference.mjs similarity index 74% rename from scripts/build-widgets-reference.js rename to src/docs/widgets-reference.mjs index fd528d38..d4178ff3 100644 --- a/scripts/build-widgets-reference.js +++ b/src/docs/widgets-reference.mjs @@ -1,9 +1,9 @@ -require('./client-shim') +import './client-shim.mjs' +import baseClass from '../client/widgets/common/widget.mjs' +import * as widgets from '../client/widgets/index.mjs' // Here we go -var widgets = require('../src/client/widgets'), - baseClass = require('../src/client/widgets/common/widget'), - base = baseClass.defaults(), +var base = baseClass.defaults(), doc = [''] @@ -17,24 +17,24 @@ doc.push(` ` ) -for (var categoryName in base) { +for (let categoryName in base) { doc.push(`\n -=== "${categoryName}" + === "${categoryName}" - | property | type |default | description | - | --- | --- | --- | --- |` + | property | type |default | description | + | --- | --- | --- | --- |` ) - var notEmpty = false + let notEmpty = false - for (var propName in base[categoryName]) { + for (let propName in base[categoryName]) { - var prop = base[categoryName][propName], + let prop = base[categoryName][propName], permalink = propName - if (propName === '_props' || propName[0] === '_') continue + if (propName === '_props' || propName[0] === '_') continue - var help = Array.isArray(prop.help) ? prop.help.join('

').replace(/-/g, '-') : prop.help || '', + let help = Array.isArray(prop.help) ? prop.help.join('

').replace(/-/g, '-') : prop.help || '', dynamic = baseClass.dynamicProps.includes(propName) ? '' : '' if (prop.choices) { @@ -75,24 +75,24 @@ for (var k in widgets.categories) { ) - for (var categoryName in defaults) { + for (let categoryName in defaults) { doc.push(`\n === "${categoryName == 'class_specific' ? type : categoryName}" | property | type |default | description | | --- | --- | --- | --- |` ) - var notEmpty = false + let notEmpty = false - for (var propName in defaults[categoryName]) { + for (let propName in defaults[categoryName]) { - var prop = defaults[categoryName][propName], + let prop = defaults[categoryName][propName], permalink = type + '_' + propName - if (propName === '_props' || propName[0] === '_' || JSON.stringify(prop) == JSON.stringify((base[categoryName]||{})[propName])) continue + if (propName === '_props' || propName[0] === '_' || JSON.stringify(prop) == JSON.stringify((base[categoryName]||{})[propName])) continue - var help = Array.isArray(prop.help) ? prop.help.join('

').replace(/-/g, '-') : prop.help || '', + let help = Array.isArray(prop.help) ? prop.help.join('

').replace(/-/g, '-') : prop.help || '', dynamic = widgets.widgets[type].dynamicProps.includes(propName) ? '' : '' if (prop.choices) { diff --git a/src/html/client.html b/src/html/client.html index aea357cf..48ea3ece 100644 --- a/src/html/client.html +++ b/src/html/client.html @@ -2,19 +2,25 @@ + - - - - - - - - + + + + + + + + + + + + + diff --git a/src/html/launcher.html b/src/html/launcher.html index 60f6e86b..6945d250 100644 --- a/src/html/launcher.html +++ b/src/html/launcher.html @@ -1,11 +1,13 @@ + + @@ -24,7 +26,6 @@ - diff --git a/src/index.js b/src/index.js new file mode 100644 index 00000000..3680c66b --- /dev/null +++ b/src/index.js @@ -0,0 +1 @@ +require('./server/') diff --git a/src/launcher/index.js b/src/launcher/index.js deleted file mode 100644 index 8e61e3fb..00000000 --- a/src/launcher/index.js +++ /dev/null @@ -1,15 +0,0 @@ -require('../client/globals') - -document.addEventListener('DOMContentLoaded', function(event) { - - DOM.init() - require('../client/events/event-emitter') - require('../client/ui/ui-workspace') - require('../client/ui/zoom') - - setTimeout(()=>{ - require('./main') - }, 10) - - -}) diff --git a/src/launcher/index.mjs b/src/launcher/index.mjs new file mode 100644 index 00000000..745bd104 --- /dev/null +++ b/src/launcher/index.mjs @@ -0,0 +1,5 @@ +import '../client/globals.mjs' +import '../client/events/event-emitter.mjs' +import '../client/ui/ui-workspace.mjs' +import '../client/ui/zoom.mjs' +import './main.mjs' diff --git a/src/launcher/main.js b/src/launcher/main.mjs similarity index 50% rename from src/launcher/main.js rename to src/launcher/main.mjs index 6e5219c2..2dcdeaac 100644 --- a/src/launcher/main.js +++ b/src/launcher/main.mjs @@ -1,26 +1,27 @@ -var terminal = require('./terminal'), - settings = require('./settings'), - html = require('nanohtml'), - semver = require('semver'), - {ipcRenderer} = require('electron') +import html from 'nanohtml' +import semver from 'semver' +import {ipcRenderer} from 'electron' +import terminal from './terminal.mjs' +import settings from './settings.mjs' +import './toolbar.mjs' +import {DOM, PACKAGE} from '../client/globals.mjs' -require('./toolbar') - -DOM.get(document, '#osc-greeting-header')[0].appendChild(html`${window.PACKAGE.productName} v${window.PACKAGE.version}`) +DOM.get(document, '#osc-greeting-header')[0].appendChild(html`${PACKAGE.productName} v${PACKAGE.version}`) if (settings.remote.read('checkForUpdates') && navigator.onLine) { var request = new XMLHttpRequest() - request.open('GET', 'https://api.github.com/repos/jean-emmanuel/open-stage-control/tags', true) + request.open('GET', 'https://framagit.org/api/v4/projects/jean-emmanuel%2Fopen-stage-control/releases', true) request.onload = function() { if (request.status >= 200 && request.status < 400) { - var data = JSON.parse(request.responseText), - current = 'v' + window.PACKAGE.version, + + var data = JSON.parse(request.responseText).filter(x=>!x.name.match(/alpha|beta/)), + current = 'v' + PACKAGE.version, latest = data[0].name if (semver.gt(latest, current)) { - terminal.log(`(INFO) A new version is available : ${latest}`, 'info') + terminal.log(`(INFO) A new version is available : ${latest}`, 'info') } else if (semver.gt(current, latest)) { terminal.log(`(WARNING) Using development version ${current}`, 'warning') } @@ -34,7 +35,7 @@ if (settings.remote.read('checkForUpdates') && navigator.onLine) { if (settings.remote.read('alwaysOnTop')) { - remote.getCurrentWindow().setAlwaysOnTop(true) + settings.remote.getCurrentWindow().setAlwaysOnTop(true) } diff --git a/src/launcher/settings.js b/src/launcher/settings.mjs similarity index 96% rename from src/launcher/settings.js rename to src/launcher/settings.mjs index 745f6b4d..61a62073 100644 --- a/src/launcher/settings.js +++ b/src/launcher/settings.mjs @@ -1,12 +1,14 @@ -var {ipcRenderer} = require('electron'), - remote = require('@electron/remote'), - {dialog} = remote.require('electron'), +import html from 'nanohtml' +import raw from 'nanohtml/raw' +import {ipcRenderer} from 'electron' +import remote from '@electron/remote' +import {icon} from '../client/ui/utils.mjs' +import terminal from './terminal.mjs' +import {DOM} from '../client/globals.mjs' + +var {dialog} = remote.require('electron'), fs = remote.require('fs'), {settings} = remote.getGlobal('launcherSharedGlobals'), - {icon} = require('../client/ui/utils'), - html = require('nanohtml'), - raw = require('nanohtml/raw'), - terminal = require('./terminal'), options_remote = settings.read('options') class Settings { @@ -259,4 +261,4 @@ class Settings { } -module.exports = new Settings() +export default new Settings() diff --git a/src/launcher/terminal.js b/src/launcher/terminal.mjs similarity index 88% rename from src/launcher/terminal.js rename to src/launcher/terminal.mjs index 4f94f5c5..9c382675 100644 --- a/src/launcher/terminal.js +++ b/src/launcher/terminal.mjs @@ -1,6 +1,7 @@ -var {ipcRenderer} = require('electron'), - ansiHTML = require('ansi-html'), - html = require('nanohtml') +import {ipcRenderer} from 'electron' +import ansiHTML from 'ansi-html' +import html from 'nanohtml' +import {DOM} from '../client/globals.mjs' ansiHTML.setColors({ magenta: 'B48EAD', @@ -69,4 +70,4 @@ class Terminal { } -module.exports = new Terminal({selector: '#osc-terminal'}) +export default new Terminal({selector: '#osc-terminal'}) diff --git a/src/launcher/toolbar.js b/src/launcher/toolbar.mjs similarity index 78% rename from src/launcher/toolbar.js rename to src/launcher/toolbar.mjs index ee623b60..a6677b4d 100644 --- a/src/launcher/toolbar.js +++ b/src/launcher/toolbar.mjs @@ -1,11 +1,15 @@ -var {ipcRenderer} = require('electron'), - remote = require('@electron/remote'), - {Menu, MenuItem} = remote.require('electron'), +import {ipcRenderer} from 'electron' +import remote from '@electron/remote' +import keyboardJS from 'keyboardjs/dist/keyboard.min.js' +import terminal from './terminal.mjs' +import settings from './settings.mjs' +import {DOM, PXSCALE} from '../client/globals.mjs' + + + +var {Menu, MenuItem} = remote.require('electron'), menu = new Menu(), - terminal = require('./terminal'), - settings = require('./settings'), - keyboardJS = require('keyboardjs/dist/keyboard.min.js'), - {midilist, openDocs} = remote.getGlobal('launcherSharedGlobals'), + {midiList, midiRestart, openDocs} = remote.getGlobal('launcherSharedGlobals'), serverStarting = false, serverStart = ()=>{ if (serverStarting) return @@ -73,13 +77,25 @@ menu.append(new MenuItem({ menu.append(new MenuItem({ type: 'separator' })) -menu.append(new MenuItem({ - label: 'List MIDI Devices', - click: ()=>{ - midilist() - }, - accelerator: 'ctrl + m' -})) + +menu.append(new MenuItem({type: 'submenu' , label: 'MIDI', submenu: [ + new MenuItem({ + label: 'List devices', + click: ()=>{ + midiList() + }, + accelerator: 'ctrl + m' + }), + new MenuItem({ + label: 'Restart backend', + id: 'midiRestart', + click: ()=>{ + midiRestart() + }, + enabled: false + }), + +]})) menu.append(new MenuItem({type: 'submenu' , label: 'Console', submenu: [ new MenuItem({ label: 'Clear', @@ -115,14 +131,6 @@ menu.append(new MenuItem({type: 'submenu' , label: 'Launcher', submenu: [ remote.getCurrentWindow().setAlwaysOnTop(e.checked) } }), - new MenuItem({ - label: 'Start minimized', - type: 'checkbox', - checked: settings.remote.read('startMinimized'), - click: (e)=>{ - settings.remote.write('startMinimized', e.checked) - } - }), new MenuItem({ label: 'Always on top', type: 'checkbox', @@ -131,7 +139,23 @@ menu.append(new MenuItem({type: 'submenu' , label: 'Launcher', submenu: [ settings.remote.write('alwaysOnTop', e.checked) remote.getCurrentWindow().setAlwaysOnTop(e.checked) } - }) + }), + new MenuItem({ + label: 'Use tray icon', + type: 'checkbox', + checked: settings.remote.read('useTray'), + click: (e)=>{ + settings.remote.write('useTray', e.checked) + } + }), + new MenuItem({ + label: 'Start minimized', + type: 'checkbox', + checked: settings.remote.read('startMinimized'), + click: (e)=>{ + settings.remote.write('startMinimized', e.checked) + } + }), ]})) menu.append(new MenuItem({ type: 'separator' @@ -149,6 +173,16 @@ menu.append(new MenuItem({ openDocs() } })) + +if (settings.remote.read('useTray')) { + menu.append(new MenuItem({ + label: 'Hide', + click: ()=>{ + ipcRenderer.send('hide') + } + })) +} + menu.append(new MenuItem({ role: 'Quit' })) @@ -189,6 +223,8 @@ class Toolbar { stop.visible = !!serverStarting qrcode.visible = !!serverStarting newWindow.visible = !!serverStarting + menu.getMenuItemById('midiRestart').enabled = !!serverStarting + menu.popup({window: remote.getCurrentWindow(), x: parseInt(PXSCALE), y: parseInt(40 * PXSCALE)}) }) @@ -214,4 +250,4 @@ class Toolbar { } -module.exports = new Toolbar() +export default new Toolbar() diff --git a/src/python/requirements.txt b/src/python/requirements.txt deleted file mode 100644 index c2ec30aa..00000000 --- a/src/python/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -python-rtmidi == 1.4.9 -pyinstaller diff --git a/src/scss/reset.scss b/src/scss/reset.scss index d4d9a88a..286c7846 100644 --- a/src/scss/reset.scss +++ b/src/scss/reset.scss @@ -1,4 +1,3 @@ - * { margin:0; padding:0; @@ -14,10 +13,3 @@ -moz-user-select: none; user-select: none; } - - -select, input, textarea { - -webkit-appearance:none; - -moz-appearance:none; - appearance:none; -} diff --git a/src/scss/themes/default.scss b/src/scss/themes/default.scss index 44dd0681..1001ec15 100644 --- a/src/scss/themes/default.scss +++ b/src/scss/themes/default.scss @@ -34,7 +34,6 @@ $font-menu: sans-serif; --alpha-scrollbar: 0.25; --alpha-scrollbar-on: 0.75; - --scrollbar-size: 12rem; --color-grid: rgba(0,0,0, 0.1); --color-notification: #{rgba(black, 0.8)}; diff --git a/src/scss/ui/console.scss b/src/scss/ui/console.scss index 849bffa9..492f8e60 100644 --- a/src/scss/ui/console.scss +++ b/src/scss/ui/console.scss @@ -56,50 +56,59 @@ $padding: 8rem; osc-console { height: 100%; - padding: $padding; + padding: $padding 0; overflow-y: auto; - border-bottom: 1rem solid var(--color-background); + border-bottom: 1rem dotted rgba(255,255,255,0.2); user-select: text; } +.editor-enabled osc-console:focus { + outline: 1rem dotted var(--color-accent); + outline-offset: -1rem; +} + osc-console-message { + user-select: text; cursor: text; display: block; white-space: pre-line; position: relative; - padding-left: 10rem; + padding-left: $padding + 18rem; + padding-right: $padding; + padding-bottom: 6rem; + border-bottom: 1rem dotted rgba(255,255,255,0.1); &:before { font-family: FontAwesome; - width: 6rem; + width: 12rem; display: inline-block; text-align: center; position: absolute; - left: 0; + left: $padding; } - &.log:before, &.error:before { - content: ""; - border-left: 2rem solid; - top: 0; - bottom: 0; - left: 2rem; - opacity: 0.75; + &.log:before { + content: "\f105\f105" } &.error { color: var(--color-error); + &:before { + content: "x" + } } &.input { &:before { - content: "\f105"; + content: "\f105\f105"; } } &.output { &:before { - content: "\f104" + content: "\f104\f104" } &.undefined { + // color: var(--color-text) opacity: 0.5; + border-bottom: 1rem dotted rgba(255,255,255,0.20); } &.value { @@ -108,6 +117,7 @@ osc-console-message { } } + margin-bottom: 4rem; &:last-child { @@ -117,7 +127,8 @@ osc-console-message { .edit-widget { cursor: pointer; display: inline-block; - padding: 2rem; + position: relative; + // padding: 2rem; border-radius: 2rem; &.editing { background: var(--color-ui-foreground); @@ -141,22 +152,22 @@ osc-console-input { padding-left: 10rem; &:before { - content: "\f105"; + content: "\f105\f105"; font-family: FontAwesome; - width: 6rem; + width: 16rem; display: inline-block; text-align: center; position: absolute; left: 0; - line-height: $field-height - 8rem; + line-height: $field-height - 6rem; padding: 4rem 6rem; color: var(--color-accent); } textarea { font-family: $font-mono; - line-height: $field-height - 8rem; - padding: 4rem 6rem; + line-height: $field-height - 6rem; + padding: 4rem 16rem; flex: 1; overflow-x: auto; overflow-y: hidden; diff --git a/src/scss/ui/inspector.scss b/src/scss/ui/inspector.scss index 090cd660..e668e72d 100644 --- a/src/scss/ui/inspector.scss +++ b/src/scss/ui/inspector.scss @@ -15,6 +15,16 @@ osc-panel-container.right.editor-breakout { #osc-inspector { + select, input, textarea { + -webkit-appearance:none; + -moz-appearance:none; + appearance:none; + -webkit-user-select: auto; + -moz-user-select: auto; + user-select: auto; + } + + --widget-padding: -1rem; .lock { @@ -81,11 +91,6 @@ osc-panel-container.right.editor-breakout { height: calc(100% - 46rem); box-shadow: 0 1rem 0 0 inset rgba(white, 0.025); - - &::-webkit-scrollbar-thumb, &::-webkit-scrollbar-track-piece { - border-color: var(--color-background)!important; - border-top:0; - } } } @@ -185,6 +190,9 @@ osc-inspector-field { > label:before { content: var(--prefix); } + &.dirty label:after{ + content: "*" + } .btn { margin-top: 50rem; margin-right: 50rem; @@ -223,14 +231,7 @@ osc-inspector-field { user-select: initial; - --scrollbar-size: 6rem; - - // Chromium scrollbar - &::-webkit-scrollbar-thumb:horizontal { - cursor: normal; - } - - // Firefox scrollbar (hidden to preserve height) + // hide scrollbar to preserve height scrollbar-width: thin; &[rows="1"] { scrollbar-width: none; @@ -260,11 +261,6 @@ osc-inspector-field .ace_editor { line-height: 1.3; border: 1rem solid var(--color-background); - ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece { - border-color: var(--color-background)!important; - } - --scrollbar-size: 8rem; - .ace_gutter { background: var(--color-background); color: #6a6f7a; @@ -274,6 +270,9 @@ osc-inspector-field .ace_editor { .ace_print-margin { display: none; } + .ace_mobile-menu { + display: none; + } .ace_cursor { color: var(--color-accent); @@ -464,6 +463,10 @@ osc-inspector-category { top:1rem; } + &:focus, &:active { + text-decoration: underline + } + } .separator { diff --git a/src/scss/ui/scrollbars.scss b/src/scss/ui/scrollbars.scss index ce14aa62..1bf8f473 100644 --- a/src/scss/ui/scrollbars.scss +++ b/src/scss/ui/scrollbars.scss @@ -1,47 +1,3 @@ -// Chromium - -::-webkit-scrollbar { - width: var(--scrollbar-size); - height:var(--scrollbar-size); -} - -::-webkit-scrollbar-track-piece { - background: var(--color-background); - &:vertical { - border-left: 1rem solid var(--color-background); - } - &:horizontal { - border-top: 1rem solid var(--color-background); - } -} - -::-webkit-scrollbar-thumb { - background: var(--color-scrollbar); - &:active { - background: var(--color-scrollbar-on); - } - &:vertical { - border-left: 1rem solid var(--color-background); - } - &:horizontal { - border-top: 1rem solid var(--color-background); - } -} - -::-webkit-scrollbar-button:decrement:start, ::-webkit-scrollbar-button:increment:end { - height: 0; - width: 0; -} - -::-webkit-scrollbar-corner { - height: 0rem; - width: 0rem; - background: var(--color-background); -} - - -// Firefox - * { scrollbar-color: var(--color-scrollbar) var(--color-background); scrollbar-width: normal; diff --git a/src/scss/ui/workspaces.scss b/src/scss/ui/workspaces.scss index 926d4608..7db8b4c0 100644 --- a/src/scss/ui/workspaces.scss +++ b/src/scss/ui/workspaces.scss @@ -254,6 +254,10 @@ osc-panel-container { } } + &.disabled { + pointer-events: none; + } + &.disabled .toggle-button { display: none; } diff --git a/src/scss/widgets/basics.scss b/src/scss/widgets/basics.scss index 1e31f9cb..8d7c3cbd 100644 --- a/src/scss/widgets/basics.scss +++ b/src/scss/widgets/basics.scss @@ -164,6 +164,23 @@ } } + &.layout-vertical value:first-child { + border-top-left-radius: inherit; + border-top-right-radius: inherit; + } + &.layout-vertical value:last-child { + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; + } + &.layout-horizontal value:first-child { + border-bottom-left-radius: inherit; + border-top-left-radius: inherit; + } + &.layout-horizontal value:last-child { + border-bottom-right-radius: inherit; + border-top-right-radius: inherit; + } + &.wrap value { white-space: pre-wrap; word-break: break-all; @@ -291,8 +308,7 @@ position: fixed; z-index: 999999999; - margin-left: calc(-1 * var(--parent-scroll-x)); - margin-top: calc(-1 * var(--parent-scroll-y)); + transform: translate(calc(-1 * var(--parent-scroll-x)), calc(-1 * var(--parent-scroll-y))); overflow: hidden; @@ -396,7 +412,7 @@ width:var(--size-box-w); height:var(--size-box-h); - + border-radius: inherit; display: flex; flex-direction: row; @@ -444,14 +460,38 @@ display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); + .item { + border-radius: inherit; + } } &.vertical menu { flex-direction: column; + .item:first-child { + border-top-left-radius: inherit; + border-top-right-radius: inherit; + } + .item:last-child { + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; + } + } + &.horizontal menu { + + .item:first-child { + border-bottom-left-radius: inherit; + border-top-left-radius: inherit; + } + .item:last-child { + border-bottom-right-radius: inherit; + border-top-right-radius: inherit; + } + + } } @@ -602,19 +642,20 @@ padding:0; background: transparent; border-radius: inherit; - -webkit-appearance:none; - appearance: none; text-align:inherit; vertical-align: top; letter-spacing: 1rem; - -webkit-user-select: text; - user-select: text; - - color:var(--color-fill); caret-color: var(--color-fill); - height: 100%; - + -webkit-appearance:none; + -moz-appearance:none; + appearance:none; + -webkit-user-select: auto; + -moz-user-select: auto; + user-select: auto; + &:focus { + color:var(--color-fill); + } &:focus::selection { background: var(--color-fill); color: var(--color-text); @@ -654,8 +695,6 @@ &.left { text-align: left; } - padding: var(--widget-padding); - } textarea { @@ -664,6 +703,12 @@ height: 100%; resize: none; padding: var(--widget-padding); + -webkit-appearance:none; + -moz-appearance:none; + appearance:none; + -webkit-user-select: auto; + -moz-user-select: auto; + user-select: auto; } } diff --git a/src/scss/widgets/containers.scss b/src/scss/widgets/containers.scss index 396bcb89..f10598c4 100644 --- a/src/scss/widgets/containers.scss +++ b/src/scss/widgets/containers.scss @@ -25,10 +25,15 @@ > inner { overflow: auto; + scroll-behavior: auto!important; // smooth mode breaks scrollbar widget } + &.hidden-scroll > inner { + scrollbar-width: none; + } + &.no-scroll > inner { overflow: hidden; } @@ -144,6 +149,10 @@ flex-direction: column-reverse; } + &.tabs-hidden > inner > .navigation { + display: none; + } + } } @@ -566,6 +575,8 @@ } + --parent-scroll-x:0; + --parent-scroll-y:0; &.relative { > .popup { left: auto; @@ -574,8 +585,8 @@ bottom: auto; width: var(--width, 100%); height: var(--height, 100%); - margin-top: calc(-1 * var(--widget-spacing)); - margin-left: calc(-1 * var(--widget-spacing)); + margin-top: calc(-1 * var(--widget-spacing) - var(--parent-scroll-y)); + margin-left: calc(-1 * var(--widget-spacing) - var(--parent-scroll-x)); padding: var(--widget-spacing); align-items:flex-start; justify-content: flex-start; @@ -611,6 +622,7 @@ .patchbaynode-container { justify-content: center; + flex: 1; background: transparent; } @@ -743,63 +755,3 @@ } } - - - -// iOS13+ scrollbar shim -.iOS13 { - .ios-scrollbar { - display: none; - position: absolute; - --line-width: 0; - --knob-size: 40rem; - margin: 3rem; - z-index: 99; - --alpha-fill-on: 0!important; - opacity: var(--alpha-scrollbar); - &:active { - opacity: var(--alpha-scrollbar-on); - } - &.vertical { - right: calc(var(--widget-spacing) / 2); - top: calc(var(--widget-spacing) / 2); - bottom: calc(var(--widget-spacing) / 2 + 1rem); - width: var(--scrollbar-size); - height: auto; - &.double-scrollbar { - margin-bottom: var(--scrollbar-size)!important; - } - } - &.horizontal { - left: calc(var(--widget-spacing) / 2); - right: calc(var(--widget-spacing) / 2); - bottom: calc(var(--widget-spacing) / 2); - width: auto; - height: var(--scrollbar-size); - } - } - .has-ios-scrollbar-h > .ios-scrollbar.horizontal, - .has-ios-scrollbar-h.modal-container > .popup > .popup-wrapper > .popup-content > .ios-scrollbar.horizontal { - display: inline-flex; - } - .has-ios-scrollbar-v > .ios-scrollbar.vertical, - .has-ios-scrollbar-v.modal-container > .popup > .popup-wrapper > .popup-content > .ios-scrollbar.vertical { - display: inline-flex; - } - - .has-ios-scrollbar-h:not(.modal-container) { - padding-right: var(--scrollbar-size)!important; - } - - .has-ios-scrollbar-v:not(.modal-container) { - padding-bottom: var(--scrollbar-size)!important; - } - - .has-ios-scrollbar-h.modal-container > .popup > .popup-wrapper > .popup-content { - padding-right: var(--scrollbar-size)!important; - } - - .has-ios-scrollbar-v.modal-container > .popup > .popup-wrapper > .popup-content { - padding-bottom: var(--scrollbar-size)!important; - } -} diff --git a/src/scss/widgets/pads.scss b/src/scss/widgets/pads.scss index ba13d73d..edc88ea2 100644 --- a/src/scss/widgets/pads.scss +++ b/src/scss/widgets/pads.scss @@ -32,7 +32,7 @@ --point-size: 20rem; - canvas:not(:first-child) { + canvas { position: absolute; top: 0; left: 0; @@ -139,7 +139,7 @@ .html { pointer-events: auto; } - + inner { position: relative; flex: 1; diff --git a/src/scss/widgets/sliders.scss b/src/scss/widgets/sliders.scss index 416e4c6f..a5f4b6fe 100644 --- a/src/scss/widgets/sliders.scss +++ b/src/scss/widgets/sliders.scss @@ -1,4 +1,5 @@ .fader-container, +.scrollbar-container, .knob-container, .encoder-container, .range-container { @@ -13,6 +14,7 @@ } +.scrollbar-container, .fader-container, .range-container { @@ -22,7 +24,7 @@ --widget-padding: 1rem; --knob-size: 1rem; --line-width: 1rem; - + canvas { text-align: left; } @@ -68,3 +70,8 @@ } } + +.scrollbar-container { + --alpha-fill-off: 0; + --alpha-fill-on: var(--alpha-scrollbar); +} diff --git a/src/server/electron-app.js b/src/server/electron/electron-app.mjs similarity index 78% rename from src/server/electron-app.js rename to src/server/electron/electron-app.mjs index 3b9c5cb7..eac5e9b0 100644 --- a/src/server/electron-app.js +++ b/src/server/electron/electron-app.mjs @@ -1,6 +1,6 @@ -var {app, Menu, shell, BrowserWindow} = require('electron'), - settings = require('./settings'), - infos = require('../package.json') +import {app, Menu, shell, BrowserWindow} from 'electron' +import semver from 'semver' +import * as settings from '../node/settings.mjs' app.setPath('userData', settings.configPath) @@ -21,6 +21,15 @@ if (settings.read('force-gpu')) { app.commandLine.appendSwitch('--ignore-gpu-blacklist') } +// Workaround bug in electron 36 + gnome: https://github.com/electron/electron/issues/46538 +if (process.platform === 'linux') { + app.commandLine.appendSwitch('gtk-version', '3') +} + +if (semver.gt(settings.infos.version, settings.read('version') || '0.0.0')) { + // set temporary flag to clean electron browser cache in case of update + settings.write('clearCache', true, true) +} var template = [{ @@ -42,7 +51,7 @@ if (process.platform === 'darwin') { label: settings.infos.productName, submenu: [ { - label: 'Hide ' + infos.productName, + label: 'Hide ' + settings.infos.productName, accelerator: 'Command+H', role: 'hide' }, @@ -101,14 +110,14 @@ if (process.platform === 'darwin') { submenu: [ { label: 'Documentation', - click: ()=>shell.openExternal(infos.homepage) + click: ()=>shell.openExternal(settings.infos.homepage) }, { type: 'separator' }, { label: 'Report an Issue', - click: ()=>shell.openExternal(infos.repository.url + '/issues') + click: ()=>shell.openExternal(settings.infos.repository.url + '/issues') } ] } @@ -122,9 +131,7 @@ app.on('ready',()=>{ }) app.on('window-all-closed', function() { - if (process.platform !== 'darwin') { - app.quit() - } + app.quit() }) -module.exports = app +export default app diff --git a/src/server/electron-window.js b/src/server/electron/electron-window.mjs similarity index 86% rename from src/server/electron-window.js rename to src/server/electron/electron-window.mjs index 77786bc0..5dc78b27 100644 --- a/src/server/electron-window.js +++ b/src/server/electron/electron-window.mjs @@ -1,20 +1,20 @@ -var path = require('path'), - {BrowserWindow, dialog, shell, screen, Menu, MenuItem} = require('electron'), - shortcut = require('electron-localshortcut'), - app = require('./electron-app'), - settings = require('./settings'), - theme = require('./theme') +import path from 'path' +import {BrowserWindow, dialog, shell, screen, Menu, MenuItem} from 'electron' +import shortcut from 'electron-localshortcut' +import app from './electron-app.mjs' +import * as settings from '../node/settings.mjs' -module.exports = function(options={}) { +export default function(options={}) { var window window = new BrowserWindow({ title: options.title || settings.infos.productName, - icon: path.resolve(__dirname + '/../assets/logo.png'), - backgroundColor: options.color || theme.backgroundColor, + icon: path.resolve(__dirname + '/../../assets/logo.png'), + backgroundColor: '#21252B', type: options.type, useContentSize: true, + darkTheme: true, autoHideMenuBar: true, webPreferences: { nodeIntegration: !!options.node, @@ -61,13 +61,15 @@ module.exports = function(options={}) { window.setBounds(geometry) window.once('ready-to-show', ()=>{ - window.show() if (options.id === 'launcher' && settings.read('startMinimized')) { - if (process.platform === 'darwin') { + if (settings.read('useTray') || process.platform === 'darwin') { window.hide() } else { + window.show() window.minimize() } + } else { + window.show() } }) @@ -125,15 +127,15 @@ module.exports = function(options={}) { }) - window.webContents.on('console-message', (event, level, message)=>{ + window.webContents.on('console-message', (event)=>{ - if (level === 0 && message === 'ELECTRON.BLUR()') window.blur() - if (level === 0 && message === 'ELECTRON.FOCUS()') window.focus() - if (level === 0 && message === 'ELECTRON.SETFOCUSABLE(1)') { + if (event.level === 0 && event.message === 'ELECTRON.BLUR()') window.blur() + if (event.level === 0 && event.message === 'ELECTRON.FOCUS()') window.focus() + if (event.level === 0 && event.message === 'ELECTRON.SETFOCUSABLE(1)') { window.setFocusable(true) window.focus() } - if (level === 0 && message === 'ELECTRON.SETFOCUSABLE(0)') { + if (event.level === 0 && event.message === 'ELECTRON.SETFOCUSABLE(0)') { window.setFocusable(false) window.blur() } diff --git a/src/server/electron/index.mjs b/src/server/electron/index.mjs new file mode 100644 index 00000000..1f9179a4 --- /dev/null +++ b/src/server/electron/index.mjs @@ -0,0 +1,319 @@ +import sourceMap from 'source-map-support' +import {fork} from 'child_process' +import path from 'path' +import {ipcMain} from 'electron' +import electronRemote from '@electron/remote/main' +import * as settings from '../node/settings.mjs' +import DocsServer from '../node/docs-server' +import app from './electron-app.mjs' +import window from './electron-window' +import createTray from './tray.mjs' +import midi from '../node/midi.mjs' +import qrcode from '../node/qrcode.mjs' + +var dev = process.argv[0].includes('node_modules'), + docsServer, + launcher = null, + tray = null, + clientWindows = [], + serverProcess = null + +sourceMap.install({handleUncaughtExceptions: false}) + +function openDocs() { + + if (!docsServer) docsServer = new DocsServer() + + docsServer.open() + +} + + +function openClient() { + + var address = settings.appAddresses()[0] + + function launch() { + var win = window({ + address:address, + shortcuts:true, + fullscreen: settings.read('fullscreen'), + noFocus: settings.read('client-options') && settings.read('client-options').some(x=>x.match(/nofocus=1/i)), + id: 'client' + }) + win.on('error', ()=>{ + console.log('ERR') + }) + if (settings.read('clearCache')) { + // clear browser cache and reload + win.webContents.session.clearCache().then(()=>{ + settings.write('version', settings.infos.version) + win.webContents.reload() + }) + } + clientWindows.push(win) + } + + + if (app.isReady()) { + launch() + } else { + app.on('ready',function(){ + launch() + }) + } + +} + +function startServerProcess() { + + var args = [ '--no-gui'] + + for (var k in settings.read('options')) { + args.push('--' + k) + var val = settings.read(k) + if (typeof val === 'object') { + args = args.concat(val) + } else if (typeof val !== 'boolean') { + args.push(val) + } + } + + serverProcess = fork(app.getAppPath(), args, {stdio: 'pipe', env: {...process.env, OSC_SERVER_PROCESS: 1, ELECTRON_RUN_AS_NODE: 1}}) + + var cb = (data)=>{ + if (data.indexOf('(INFO) Server started') > -1) { + if (!settings.read('no-gui')) openClient() + if (!settings.read('no-qrcode')) setTimeout(()=>{ + qrcode(launcher ? 'svg' : 'terminal', (qrstring)=>{ + if (launcher) { + launcher.webContents.send('stdout', qrstring) + } else { + console.log(qrstring) + } + }) + }) + serverProcess.stdout.off('data', cb) + } + } + serverProcess.stdout.on('data', cb) + + serverProcess.stdout.on('data', (data) => { + console.log(String(data).trim()) + }) + + serverProcess.stderr.on('data', (data) => { + var str = String(data).trim() + if (str.includes('--debug')) return + console.error(str) + }) + + + + serverProcess.on('message', (data) => { + var [command, args] = data + if (command === 'settings.write') { + settings.write(args[0], args[1], false) + } + }) + + serverProcess.on('close', (code) => { + console.log('(INFO) Server stopped') + serverProcess = null + if (global.defaultClient) global.defaultClient.close() + }) + + if (launcher) { + serverProcess.on('close', (code) => { + if (!launcher.isDestroyed()) launcher.webContents.send('server-stopped') + }) + launcher.webContents.send('server-starting') + } + +} + +function stopServerProcess() { + + if (settings.read('no-gui')) { + if (serverProcess) serverProcess.kill('SIGINT') + serverProcess = null + return + } + + var toClose = clientWindows.filter(w=>w && !w.isDestroyed()), + closed = 0 + + if (toClose.length === 0 && serverProcess) { + serverProcess.kill('SIGINT') + serverProcess = null + } + + for (var w of toClose) { + w.on('closed', ()=>{ + closed++ + if (closed === toClose.length) { + clientWindows = [] + if (serverProcess) { + serverProcess.kill('SIGINT') + serverProcess = null + } + } + }) + w.close() + } + +} + +function startLauncher() { + + global.launcherSharedGlobals = { + settings: settings, + openDocs: openDocs, + midiList: midi.list, + midiRestart: ()=>{ + if (serverProcess) { + serverProcess.send('midiRestart') + } + } + } + var address = 'file://' + path.resolve(__dirname + '/../../launcher/' + 'index.html') + + // @electron/remote won't work without this hack + process.mainModule = {require} + electronRemote.initialize() + + app.on('ready', function(){ + + launcher = window({address:address, shortcuts:dev, width:680, height:(40 + 200 + 20 + 24 * Object.keys(settings.options).filter(x=>settings.options[x].launcher !== false).length / 2), node:true, id: 'launcher'}) + + electronRemote.enable(launcher.webContents) + + if (settings.read('useTray')) { + + tray = createTray({ + window: launcher, + openClient: openClient, + app: app, + startServer: startServerProcess, + stopServer: stopServerProcess + }) + + launcher.on('will-close', (e)=>{ + if (clientWindows.some(w=>w && !w.isDestroyed()) || serverProcess) { + launcher.hide() + e.preventDefault() + } + }) + + } + + + launcher.on('close', (e)=>{ + if (tray && (clientWindows.some(w=>w && !w.isDestroyed()) || serverProcess)) { + launcher.hide() + e.preventDefault() + return + } + process.stdout.write = stdoutWrite + process.stderr.write = stderrWrite + if (process.log) process.log = processLog + if (tray) tray.destroy() + }) + + }) + + let processLog = process.log, + stdoutWrite = process.stdout.write, + stderrWrite = process.stderr.write + + if (process.log) { + process.log = function(string, encoding, fd) { + processLog.apply(process, arguments) + launcher.webContents.send('stdout', string) + } + } + + process.stdout.write = function(string, encoding, fd) { + stdoutWrite.apply(process.stdout, arguments) + launcher.webContents.send('stdout', string) + } + + process.stderr.write = function(string, encoding, fd) { + stderrWrite.apply(process.stderr, arguments) + launcher.webContents.send('stderr', string) + } + + ipcMain.on('start',function(e, options){ + + startServerProcess() + + }) + + ipcMain.on('stop',function(e, options){ + + stopServerProcess() + + }) + + ipcMain.on('openClient',function(e, options){ + + openClient() + + }) + + ipcMain.on('showQRCode',function(e, options){ + + qrcode('svg', (qrstring)=>{ + launcher.webContents.send('stdout', qrstring) + }) + + }) + + + ipcMain.on('hide',function(e, options){ + + launcher.hide() + + }) +} + + +if (settings.read('docs')) { + + openDocs() + +} else { + + // normal mode: + // - electron process: launcher and/or built-in client(s) + // - node process: server (node mode in a forked process) + + app.on('ready', ()=>{ + process.on('SIGINT', function() { + if (serverProcess) { + serverProcess.kill('SIGINT') + serverProcess = null + } + process.exit(0) + }) + }) + + app.on('before-quit',()=>{ + if (serverProcess) { + serverProcess.kill('SIGINT') + serverProcess = null + } + }) + + + if (settings.cli) { + + startServerProcess() + + } else { + + startLauncher() + + } + +} diff --git a/src/server/electron/tray.mjs b/src/server/electron/tray.mjs new file mode 100644 index 00000000..3e17cedb --- /dev/null +++ b/src/server/electron/tray.mjs @@ -0,0 +1,92 @@ +import {Menu, Tray, ipcMain} from 'electron' +import * as settings from '../node/settings.mjs' + +var tray = null, + contextMenu = null, + isServerRunning = false + +export default function(options = {}) { + + var icon = __dirname + '/../../assets/logo.png' + if (process.platform === 'darwin') { + icon = __dirname + '/../../assets/logo_tray.png' + } + + tray = new Tray(icon) + contextMenu = Menu.buildFromTemplate([ + { + label: 'Show launcher', + id: 'show', + click: ()=>{ + options.window.show() + } + }, + { + label: 'Hide launcher', + id: 'hide', + click: ()=>{ + options.window.hide() + } + }, + { + label: 'Start server', + id: 'start', + click: ()=>{ + ipcMain.emit('start') + } + }, + { + label: 'Stop server', + id: 'stop', + click: ()=>{ + ipcMain.emit('stop') + } + }, + { + label: 'New client window', + id: 'new', + click: ()=> { + if (isServerRunning) { + options.openClient() + } + } + }, + { + type: 'separator' + }, + { + label: 'Quit', + click: ()=>{ + options.app.quit() + } + }, + ]) + + tray.setContextMenu(contextMenu) + tray.setToolTip(settings.infos.productName) + + function updateMenu(){ + contextMenu.getMenuItemById('start').visible = !isServerRunning + contextMenu.getMenuItemById('stop').visible = isServerRunning + contextMenu.getMenuItemById('show').visible = !options.window.isVisible() + contextMenu.getMenuItemById('hide').visible = options.window.isVisible() + contextMenu.getMenuItemById('new').visible = isServerRunning + tray.setContextMenu(contextMenu) + } + + ipcMain.on('start', function(e, options) { + isServerRunning = true + updateMenu() + }) + + ipcMain.on('stop', function(e, options) { + isServerRunning = false + updateMenu() + }) + + options.window.on('show', updateMenu) + options.window.on('hide', updateMenu) + + return tray + +} diff --git a/src/server/index.js b/src/server/index.js index 04fc768b..e8f3279d 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -1,341 +1,15 @@ -require('source-map-support').install({handleUncaughtExceptions: false}) - -var dev = process.argv[0].includes('node_modules'), - settings = require('./settings'), - docsServer, - app = null, - launcher = null, - clientWindows = [], - serverProcess = null, - node = false - -function openDocs() { - - if (!docsServer) { - var DocsServer = require('./docs-server') - docsServer = new DocsServer() - } - - docsServer.open() - -} - -function nodeMode() { - - if (!settings.read('no-gui') && !process.env.OSC_SERVER_PROCESS) { - settings.write('no-gui', true, true) - console.warn('(INFO) Headless mode (--no-gui) enabled automatically (running with node)') - } - - process.on('uncaughtException', (err)=>{ - console.error('(ERROR) A JavaScript error occurred in the main process:') - console.error(err.stack) - }) - - node = true - -} -if (!process.versions.electron || process.env.ELECTRON_RUN_AS_NODE) { - - nodeMode() - -} else { +var runtime = 'node' +if (!process.argv.includes('-n') && !process.argv.includes('--no-gui') + && process.versions.electron && !process.env.ELECTRON_RUN_AS_NODE) +{ try { - - require('electron').dialog.showErrorBox = (title, err)=>{ + var electron = require('electron') + electron.dialog.showErrorBox = (title, err)=>{ console.error(title + ': ' + err) } - - } catch(e) { - - nodeMode() - - } - + runtime = 'electron' + } catch {} } - -function openClient() { - - var app = require('./electron-app') - var address = settings.appAddresses()[0] - - var launch = ()=>{ - var win = require('./electron-window')({ - address:address, - shortcuts:true, - fullscreen: settings.read('fullscreen'), - noFocus: settings.read('client-options') && settings.read('client-options').some(x=>x.match(/nofocus=1/i)), - id: 'client' - }) - win.on('error', ()=>{ - console.log('ERR') - }) - clientWindows.push(win) - } - if (app.isReady()) { - launch() - } else { - app.on('ready',function(){ - launch() - }) - } - -} - -function showQRCode(){ - - var QRCode = require('qrcode'), - addresses = settings.appAddresses().filter(a=>!a.includes('127.0.0.1') && !a.includes('localhost')) - - for (var add of addresses) { - if (launcher) { - QRCode.toString(add,{type:'svg', small: true, margin: 1}, (err, qr)=>{ - launcher.webContents.send('stdout', '
' + qr + '
') - }) - if (addresses.length > 1) { - launcher.webContents.send('stdout', '(' + add + ')') - } - } else { - QRCode.toString(add,{type:'terminal', small: true}, (err, qr)=>{ - console.log('\n' + qr.replace(/^/gm, ' ')) - }) - if (addresses.length > 1) { - console.log(' (' + add + ')') - } - } - } - -} - -function startServerProcess() { - - var args = [ '--no-gui'] - - for (var k in settings.read('options')) { - args.push('--' + k) - var val = settings.read(k) - if (typeof val === 'object') { - args = args.concat(val) - } else if (typeof val !== 'boolean') { - args.push(val) - } - } - - var {fork} = require('child_process') - - serverProcess = fork(app.getAppPath(), args, {stdio: 'pipe', env: {...process.env, OSC_SERVER_PROCESS: 1}}) - - var cb = (data)=>{ - if (data.indexOf('(INFO) Server started') > -1) { - if (!settings.read('no-gui')) openClient() - if (!settings.read('no-qrcode')) setTimeout(()=>{ - showQRCode() - }) - serverProcess.stdout.off('data', cb) - } - } - serverProcess.stdout.on('data', cb) - - serverProcess.stdout.on('data', (data) => { - console.log(String(data).trim()) - }) - - serverProcess.stderr.on('data', (data) => { - var str = String(data).trim() - if (str.includes('--debug')) return - console.error(str) - }) - - - - serverProcess.on('message', (data) => { - var [command, args] = data - if (command === 'settings.write') { - settings.write(args[0], args[1], false) - } - }) - - serverProcess.on('close', (code) => { - console.log('(INFO) Server stopped') - serverProcess = null - if (global.defaultClient) global.defaultClient.close() - }) - - if (launcher) { - serverProcess.on('close', (code) => { - if (!launcher.isDestroyed()) launcher.webContents.send('server-stopped') - }) - launcher.webContents.send('server-starting') - } - -} - -function stopServerProcess() { - - if (settings.read('no-gui')) { - if (serverProcess) serverProcess.kill('SIGINT') - return - } - - var toClose = [...clientWindows].filter(w=>w && !w.isDestroyed()), - closed = 0 - - if (toClose.length === 0) serverProcess.kill('SIGINT') - - for (var w of toClose) { - w.on('closed', ()=>{ - closed++ - if (closed === toClose.length) { - clientWindows = [] - if (serverProcess) serverProcess.kill('SIGINT') - } - }) - w.close() - } - -} - -function startLauncher() { - - global.launcherSharedGlobals = { - settings: settings, - openDocs: openDocs, - midilist: require('./midi').list - } - var path = require('path'), - address = 'file://' + path.resolve(__dirname + '/../launcher/' + 'index.html'), - {ipcMain} = require('electron') - - require('@electron/remote/main').initialize() - - app.on('ready',function(){ - launcher = require('./electron-window')({address:address, shortcuts:dev, width:680, height:(40 + 200 + 20 + 24 * Object.keys(settings.options).filter(x=>settings.options[x].launcher !== false).length / 2), node:true, color:'#151a24', id: 'launcher'}) - require('@electron/remote/main').enable(launcher.webContents) - launcher.on('close', ()=>{ - process.stdout.write = stdoutWrite - process.stderr.write = stderrWrite - if (process.log) process.log = processLog - }) - }) - - let processLog = process.log, - stdoutWrite = process.stdout.write, - stderrWrite = process.stderr.write - - if (process.log) { - process.log = function(string, encoding, fd) { - processLog.apply(process, arguments) - launcher.webContents.send('stdout', string) - } - } - - process.stdout.write = function(string, encoding, fd) { - stdoutWrite.apply(process.stdout, arguments) - launcher.webContents.send('stdout', string) - } - - process.stderr.write = function(string, encoding, fd) { - stderrWrite.apply(process.stderr, arguments) - launcher.webContents.send('stderr', string) - } - - ipcMain.on('start',function(e, options){ - - startServerProcess() - - }) - - ipcMain.on('stop',function(e, options){ - - stopServerProcess() - - }) - - ipcMain.on('openClient',function(e, options){ - - openClient() - - }) - - ipcMain.on('showQRCode',function(e, options){ - - showQRCode() - - }) -} - - -if (settings.read('docs')) { - - openDocs() - -} else if (node || (settings.cli && settings.read('no-gui'))) { - - // node mode: minimal server startup - - var server = require('./server'), - osc = require('./osc'), - callbacks = require('./callbacks'), - zeroconf = require('./zeroconf') - - server.bindCallbacks(callbacks) - - serverStarted = true - - var closeServer = ()=>{ - osc.server.stop() - zeroconf.unpublishAll() - } - - try { - let {app} = require('electron') - app.on('ready', ()=>{ - process.on('SIGINT', function() { - closeServer() - process.exit(0) - }) - }) - } catch(e) { - process.on('SIGINT', function() { - closeServer() - process.exit(0) - }) - } - - if (!process.env.OSC_SERVER_PROCESS) server.eventEmitter.on('serverStarted', ()=>{ - if (!settings.read('no-qrcode')) showQRCode() - }) - -} else { - - // normal mode: - // - electron process: launcher and/or built-in client(s) - // - node process: server (node mode in a forked process) - - app = require('./electron-app') - - app.on('ready', ()=>{ - process.on('SIGINT', function() { - if (serverProcess) serverProcess.kill('SIGINT') - process.exit(0) - }) - }) - - app.on('before-quit',()=>{ - if (serverProcess) serverProcess.kill('SIGINT') - }) - - - if (settings.cli) { - - startServerProcess() - - } else { - - startLauncher() - - } - -} +require(`./${runtime}/`) diff --git a/src/server/ipc/server.js b/src/server/ipc/server.js deleted file mode 100644 index 61cabb4a..00000000 --- a/src/server/ipc/server.js +++ /dev/null @@ -1,75 +0,0 @@ -var EventEmitter = require('events').EventEmitter, - WebSocketServer = require('ws').Server, - Client = require('./client'), - settings = require('../settings') - -class Ipc extends EventEmitter { - - constructor(server) { - - super() - - this.clients = {} - this.server = null - - this.server = new WebSocketServer({server: server}) - - this.server.on('connection', (socket, req)=>{ - - var url = req.url.split('/'), - auth = url.pop().replace('_', '/'), - id = url.pop() - - if (settings.read('authentication')) { - if (settings.read('authentication') !== Buffer.from(auth, 'base64').toString()) { - console.log(`(WARNING) Client connexion refused for ${req.connection.remoteAddress} (authentication failed)`) - socket.close() - return - } - } - - - if (!id) return - - id = decodeURI(id) - - if (!this.clients[id]) { - - var client = new Client(socket, id, req.connection.remoteAddress) - this.clients[id] = client - - this.emit('connection', client) - - client.on('destroyed', ()=>{ - delete this.clients[id] - }) - - } else { - - this.clients[id].open(socket) - this.clients[id].flush() - - } - - this.clients[id].emit('created') - - }) - - } - - send(event, data, id, except) { - - var clients = id ? [this.clients[id]] : this.clients - - for (var k in clients) { - if (!except || this.clients[k] != this.clients[except]) { - if (clients[k]) clients[k].send(event, data) - } - } - - } - - -} - -module.exports = Ipc diff --git a/src/server/address.js b/src/server/node/address.mjs similarity index 70% rename from src/server/address.js rename to src/server/node/address.mjs index 279a22de..013c8ac0 100644 --- a/src/server/address.js +++ b/src/server/node/address.mjs @@ -1,6 +1,6 @@ -var networkInterfaces = require('os').networkInterfaces +import {networkInterfaces} from 'os' -module.exports = (proto, port)=>{ +export default (proto, port)=>{ var address = Object.values(networkInterfaces()) .reduce((a,b)=>a.concat(b), []) .filter(i=>i.family === 'IPv4') diff --git a/src/server/auth.js b/src/server/node/auth.mjs similarity index 75% rename from src/server/auth.js rename to src/server/node/auth.mjs index 56d6efc1..b1fcad0d 100644 --- a/src/server/auth.js +++ b/src/server/node/auth.mjs @@ -1,10 +1,11 @@ -var settings = require('./settings'), - auth = null +import httpAuth from 'http-auth' +import * as settings from './settings.mjs' + +var auth = null if (settings.read('authentication')) { - var [name, pwd] = settings.read('authentication').split(':'), - httpAuth = require('http-auth') + var [name, pwd] = settings.read('authentication').split(':') auth = httpAuth.basic( { @@ -19,4 +20,4 @@ if (settings.read('authentication')) { } -module.exports = auth +export default auth diff --git a/src/server/custom-module.js b/src/server/node/custom-module.mjs similarity index 94% rename from src/server/custom-module.js rename to src/server/node/custom-module.mjs index d7b369c6..5169cd61 100644 --- a/src/server/custom-module.js +++ b/src/server/node/custom-module.mjs @@ -1,9 +1,11 @@ -var settings = require('./settings'), - fs = require('fs'), - vm = require('vm'), - chokidar = require('chokidar'), - path = require('path'), - modulePathExtended = false, +import fs from 'fs' +import vm from 'vm' +import chokidar from 'chokidar' +import path from 'path' +import {Module} from 'module' +import * as settings from './settings.mjs' + +var modulePathExtended = false, loadedModules = {}, globalObject = {} @@ -77,10 +79,9 @@ class CustomModule { } if (!this.submodule && !modulePathExtended) { - require('module').globalPaths.push( - path.resolve(path.dirname(this.filename)), - path.resolve(path.dirname(this.filename), 'node_modules') - ) + process.env.NODE_PATH += path.delimiter + path.resolve(path.dirname(this.filename)) + process.env.NODE_PATH += path.delimiter + path.resolve(path.dirname(this.filename), 'node_modules') + Module._initPaths() modulePathExtended = true } @@ -263,4 +264,4 @@ class CustomModule { } -module.exports = CustomModule +export default CustomModule diff --git a/src/server/docs-server.js b/src/server/node/docs-server.mjs similarity index 89% rename from src/server/docs-server.js rename to src/server/node/docs-server.mjs index a8fd215f..4de0c842 100644 --- a/src/server/docs-server.js +++ b/src/server/node/docs-server.mjs @@ -1,10 +1,10 @@ -var EventEmitter = require('events').EventEmitter, - http = require('http'), - send = require('send'), - path = require('path'), - fs = require('fs'), - open = require('open'), - address = require('./address') +import {EventEmitter} from 'events' +import http from 'http' +import send from 'send' +import path from 'path' +import fs from 'fs' +import open from 'open' +import address from './address.mjs' class DocsServer extends EventEmitter { @@ -87,4 +87,4 @@ class DocsServer extends EventEmitter { } -module.exports = DocsServer +export default DocsServer diff --git a/src/server/fragment-manager.js b/src/server/node/fragment-manager.mjs similarity index 60% rename from src/server/fragment-manager.js rename to src/server/node/fragment-manager.mjs index e309cc7f..d1c5e03d 100644 --- a/src/server/fragment-manager.js +++ b/src/server/node/fragment-manager.mjs @@ -1,10 +1,12 @@ -var {resolvePath, ipc} = require('./server'), - callbacks = require('./callbacks'), - chokidar = require('chokidar') +import chokidar from 'chokidar' class FragmentManager { - constructor() { + constructor(callbacks, ipcServer, webServer) { + + this.ipcServer = ipcServer + this.webServer = webServer + this.callbacks = callbacks this.fragments = {} // fragment files contents this.watchers = {} // fragment files watchers @@ -14,12 +16,12 @@ class FragmentManager { read(path, raw, clientId, then) { - callbacks.fileRead({path: path, raw: raw}, clientId, true, (result)=>{ + this.callbacks.fileRead({path: path, raw: raw}, clientId, true, (result)=>{ this.fragments[path] = result then(result) }, (error)=>{ - ipc.send('errorLog', `Could not open fragment file:\n ${error}`, clientId) - ipc.send('fragmentLoad', {path: path, notFound: true}) + this.ipcServer.send('errorLog', `Could not open fragment file:\n ${error}`, clientId) + this.ipcServer.send('fragmentLoad', {path: path, notFound: true}) this.deleteFragment(path) }) @@ -28,10 +30,10 @@ class FragmentManager { loadFragment(data, clientId) { var path = data.path - var resolvedPath = resolvePath(path, clientId) + var resolvedPath = this.webServer.resolvePath(path, clientId) if (!resolvedPath) { - ipc.send('fragmentLoad', {path: path, notFound: true}) + this.ipcServer.send('fragmentLoad', {path: path, notFound: true}) return } @@ -43,13 +45,13 @@ class FragmentManager { this.fragments[resolvedPath] = 'LOADING' this.read(resolvedPath, data.raw, clientId, (result)=>{ - ipc.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath], raw: data.raw}, clientId) + this.ipcServer.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath], raw: data.raw}, clientId) }) this.watchers[resolvedPath] = chokidar.watch(resolvedPath, {awaitWriteFinish: {stabilityThreshold: 200}}).on('change', ()=>{ this.read(resolvedPath, data.raw, clientId, (result)=>{ for (let id of this.clients[resolvedPath]) { - ipc.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath], raw: data.raw}, id) + this.ipcServer.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath], raw: data.raw}, id) } }) }).on('unlink', ()=>{ @@ -58,7 +60,7 @@ class FragmentManager { } else if (this.fragments[resolvedPath] !== 'LOADING') { - ipc.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath], raw: data.raw}, clientId) + this.ipcServer.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath], raw: data.raw}, clientId) } @@ -76,4 +78,4 @@ class FragmentManager { } -module.exports = new FragmentManager() +export default FragmentManager diff --git a/src/server/node/index.mjs b/src/server/node/index.mjs new file mode 100644 index 00000000..01c83bd5 --- /dev/null +++ b/src/server/node/index.mjs @@ -0,0 +1,46 @@ +import sourceMap from 'source-map-support' +import * as settings from './settings.mjs' +import qrcode from './qrcode.mjs' +import zeroconf from './zeroconf.mjs' +import DocsServer from './docs-server.mjs' +import OscServer from './osc/index.mjs' +import WebServer from './server.mjs' +import IpcServer from './ipc/server.mjs' + + +sourceMap.install({handleUncaughtExceptions: false}) + +process.on('uncaughtException', (err)=>{ + console.error('(ERROR) A JavaScript error occurred in the main process:') + console.error(err.stack) +}) + + +if (settings.read('docs')) { + + var docsServer = new DocsServer() + docsServer.open() + +} else { + + var webServer = new WebServer(), + oscServer = new OscServer(), + ipcServer = new IpcServer(webServer, oscServer) + + webServer.start(ipcServer) + oscServer.start(ipcServer) + + process.on('SIGINT', function() { + webServer.stop() + oscServer.stop() + zeroconf.unpublishAll() + process.exit(0) + }) + + if (!process.env.OSC_SERVER_PROCESS) webServer.on('serverStarted', ()=>{ + if (!settings.read('no-qrcode')) { + qrcode('terminal', (qr)=>console.log(qr)) + } + }) + +} diff --git a/src/server/callbacks.js b/src/server/node/ipc/callbacks.mjs similarity index 68% rename from src/server/callbacks.js rename to src/server/node/ipc/callbacks.mjs index 8b9b0c67..0d887fbc 100644 --- a/src/server/callbacks.js +++ b/src/server/node/ipc/callbacks.mjs @@ -1,61 +1,76 @@ -var path = require('path'), - fs = require('fs'), - settings = require('./settings'), - osc = require('./osc'), - {ipc} = require('./server'), - {deepCopy, resolveHomeDir} = require('./utils'), - child_process = require('child_process'), - fragmentManager +import path from 'path' +import fs from 'fs' +import child_process from 'child_process' +import * as settings from '../settings.mjs' +import {deepCopy, resolveHomeDir} from '../utils.mjs' +import FragmentManager from '../fragment-manager.mjs' -var widgetHashTable = {}, - clipboard = {clipboard: null, idClipboard: null} +export default class Callbacks { -module.exports = { + constructor(ipcServer, webServer, oscServer) { + + this.oscServer = oscServer + this.ipcServer = ipcServer + this.webServer = webServer + + this.fragmentManager = new FragmentManager(this, ipcServer, webServer) + + this.clipboardContent = {clipboard: null, idClipboard: null} + this.widgetHashTable = {} + } + + getEvents() { + + return Object.getOwnPropertyNames(this.__proto__) + .filter(x=>!['constructor', 'getEvents'].includes(x)) + .filter(x=>typeof this[x] == 'function') + + } open(data, clientId) { // client connected - ipc.send('connected') + this.ipcServer.send('connected', null, clientId) var recentSessions = settings.read('recentSessions') - ipc.send('sessionList', recentSessions, clientId) - ipc.send('clipboard', clipboard, clientId) - ipc.send('serverTargets', settings.read('send'), clientId) + this.ipcServer.send('sessionList', recentSessions, clientId) + this.ipcServer.send('clipboard', this.clipboardContent, clientId) + this.ipcServer.send('serverTargets', settings.read('send'), clientId) if (settings.read('load') && !data.hotReload) return this.sessionOpen({path: settings.read('load')}, clientId) - }, + } close(data, clientId) { // client disconnected - }, + } created(data, clientId) { // client created or reconnected - if (!widgetHashTable[clientId]) { - widgetHashTable[clientId] = {CONSOLE: {typeTags: ''}} + if (!this.widgetHashTable[clientId]) { + this.widgetHashTable[clientId] = {CONSOLE: {typeTags: ''}} } - }, + } destroyed(data, clientId) { // client removed (timeout) // clear osc data cache - if (widgetHashTable[clientId]) delete widgetHashTable[clientId] + if (this.widgetHashTable[clientId]) delete this.widgetHashTable[clientId] - }, + } clipboard(data, clientId) { // shared clipboard - clipboard = data - ipc.send('clipboard', data, null, clientId) + this.clipboardContent = data + this.ipcServer.send('clipboard', data, null, clientId) - }, + } sessionAddToHistory(data) { @@ -78,10 +93,10 @@ module.exports = { // save history settings.write('recentSessions', recentSessions) - ipc.send('sessionList', recentSessions) + this.ipcServer.send('sessionList', recentSessions) }) - }, + } sessionRemoveFromHistory(data) { @@ -89,10 +104,10 @@ module.exports = { if (recentSessions.indexOf(data) > -1) { recentSessions.splice(recentSessions.indexOf(data),1) settings.write('recentSessions',recentSessions) - ipc.send('sessionList', recentSessions) + this.ipcServer.send('sessionList', recentSessions) } - }, + } sessionSetPath(data, clientId) { // store client's current session file path @@ -100,43 +115,41 @@ module.exports = { if (Array.isArray(data.path)) data.path = path.resolve(...data.path) if (!settings.read('read-only')) { - module.exports.sessionAddToHistory(data.path) + this.sessionAddToHistory(data.path) } - ipc.clients[clientId].sessionPath = data.path + this.ipcServer.clients[clientId].sessionPath = data.path - ipc.send('setTitle', path.basename(data.path), clientId) + this.ipcServer.send('setTitle', path.basename(data.path), clientId) - }, + } sessionOpen(data, clientId) { // attempt to read session file if (Array.isArray(data.path)) data.path = path.resolve(...data.path) - module.exports.fileRead(data, clientId, true, (result)=>{ + this.fileRead(data, clientId, true, (result)=>{ - ipc.clients[clientId].sessionPath = data.path // for resolving local file requests - ipc.send('sessionOpen', {path: data.path, fileContent: result}, clientId) + this.ipcServer.clients[clientId].sessionPath = data.path // for resolving local file requests + this.ipcServer.send('sessionOpen', {path: data.path, fileContent: result}, clientId) }, (error)=>{ - ipc.send('error', `Could not open session file:\n ${error}`) + this.ipcServer.send('error', `Could not open session file:\n ${error}`, clientId) }) - }, + } fragmentLoad(data, clientId) { // attempt to read session file if (Array.isArray(data.path)) data.path = path.resolve(...data.path) - fragmentManager = fragmentManager || require('./fragment-manager') + this.fragmentManager.loadFragment(data, clientId) - fragmentManager.loadFragment(data, clientId) - - }, + } sessionOpened(data, clientId) { // session file opened successfully @@ -145,9 +158,9 @@ module.exports = { if (settings.read('state')) { var send = true - for (var id in ipc.clients) { + for (var id in this.ipcServer.clients) { // only make the client send its osc state if there are no other active clients - if (id !== clientId && ipc.clients[id].connected()) { + if (id !== clientId && this.ipcServer.clients[id].connected()) { send = false } } @@ -158,14 +171,14 @@ module.exports = { state: JSON.parse(stateContent), send: send } - ipc.send('stateLoad', state, clientId) + this.ipcServer.send('stateLoad', state, clientId) } - ipc.send('stateSend', null, null, clientId) + if (data.sync) this.ipcServer.send('stateSend', null, null, clientId) - module.exports.sessionSetPath({path: data.path}, clientId) + this.sessionSetPath({path: data.path}, clientId) - }, + } fileRead(data, clientId, ok, callback, errorCallback) { // private function @@ -198,16 +211,16 @@ module.exports = { }) - }, + } fileSave(data, clientId, ok, callback) { // private function if (!ok) return - if (!data.path || settings.read('remote-saving') && !RegExp(settings.read('remote-saving')).test(ipc.clients[clientId].address)) { + if (!data.path || settings.read('remote-saving') && !RegExp(settings.read('remote-saving')).test(this.ipcServer.clients[clientId].address)) { - return ipc.send('notify', { + return this.ipcServer.send('notify', { icon: 'save', locale: 'remotesave_forbidden', class: 'error' @@ -226,7 +239,7 @@ module.exports = { var root = resolveHomeDir(settings.read('remote-root')) if (root && !path.normalize(data.path).includes(path.normalize(root))) { console.error('(ERROR) Could not save: path outside of remote-root') - return ipc.send('notify', { + return this.ipcServer.send('notify', { class: 'error', locale: 'remotesave_fail', message: ' (Could not save: path outside of remote-root)' @@ -239,16 +252,16 @@ module.exports = { return console.error('(ERROR) Could not save: invalid file') } - fs.writeFile(data.path, data.session, function(err, fdata) { + fs.writeFile(data.path, data.session, (err, fdata)=>{ - if (err) return ipc.send('notify', { + if (err) return this.ipcServer.send('notify', { class: 'error', locale: 'remotesave_fail', message: ' (' + err.message + ')' }, clientId) - ipc.send('notify', { + this.ipcServer.send('notify', { icon: 'save', locale: 'remotesave_success', class: 'session-save', @@ -261,24 +274,24 @@ module.exports = { } - }, + } stateOpen(data, clientId) { // attempt to open state file if (Array.isArray(data.path)) data.path = path.resolve(...data.path) - module.exports.fileRead(data, clientId, true, (result)=>{ + this.fileRead(data, clientId, true, (result)=>{ - ipc.send('stateLoad', {state: result, path: data.path, send: true}, clientId) + this.ipcServer.send('stateLoad', {state: result, path: data.path, send: true}, clientId) }, (error)=>{ - ipc.send('error', `Could not open state file:\n ${error}`) + this.ipcServer.send('error', `Could not open state file:\n ${error}`, clientId) }) - }, + } sessionSave(data, clientId) { // save session file (.json) @@ -300,24 +313,24 @@ module.exports = { } - module.exports.fileSave(data, clientId, true, ()=>{ + this.fileSave(data, clientId, true, ()=>{ console.log('(INFO) Session file saved in '+ data.path) - if (!data.backup) ipc.send('sessionSaved', clientId) + if (!data.backup) this.ipcServer.send('sessionSaved', clientId) // reload session in other clients - for (var id in ipc.clients) { - if (id !== clientId && ipc.clients[id].sessionPath === data.path) { - module.exports.sessionOpen({path: data.path}, id) + for (var id in this.ipcServer.clients) { + if (id !== clientId && this.ipcServer.clients[id].sessionPath === data.path) { + this.sessionOpen({path: data.path}, id) } } - if (!data.backup) module.exports.sessionSetPath({path: data.path}, clientId) + if (!data.backup) this.sessionSetPath({path: data.path}, clientId) }) - }, + } stateSave(data, clientId) { // save state file (.json) @@ -326,22 +339,22 @@ module.exports = { if (!path.basename(data.path).match(/.*\.state/)) return console.error('(ERROR) Statesaves must be saved as .state files') - module.exports.fileSave(data, clientId, true, ()=>{ + this.fileSave(data, clientId, true, ()=>{ console.log('(INFO) State file saved in '+ data.path) }) - }, + } syncOsc(shortdata, clientId) { // sync osc (or midi) message with other clients // if widget hash is provided, look for cached data - if (!(widgetHashTable[clientId] && widgetHashTable[clientId][shortdata.h])) return + if (!(this.widgetHashTable[clientId] && this.widgetHashTable[clientId][shortdata.h])) return var value = shortdata.v, - data = shortdata.h ? widgetHashTable[clientId][shortdata.h] : {} + data = shortdata.h ? this.widgetHashTable[clientId][shortdata.h] : {} data = deepCopy(data) for (var k in shortdata) { @@ -353,10 +366,10 @@ module.exports = { data.args = data.preArgs ? data.preArgs.concat(value) : [value] - if (!data.noSync) ipc.send('receiveOsc', data, null, clientId) + if (!data.noSync) this.ipcServer.send('receiveOsc', data, null, clientId) - }, + } sendOsc(shortdata, clientId) { // send osc (or midi) message and sync with other clients @@ -371,10 +384,10 @@ module.exports = { // if widget hash is provided, look for cached data - if (shortdata.h && !(widgetHashTable[clientId] && widgetHashTable[clientId][shortdata.h])) return + if (shortdata.h && !(this.widgetHashTable[clientId] && this.widgetHashTable[clientId][shortdata.h])) return var value = shortdata.v, - data = shortdata.h ? widgetHashTable[clientId][shortdata.h] : {} + data = shortdata.h ? this.widgetHashTable[clientId][shortdata.h] : {} data = deepCopy(data) for (var k in shortdata) { @@ -393,7 +406,7 @@ module.exports = { for (var i in targets) { if (targets[i] === 'self') { - ipc.send('receiveOsc',data,clientId) + this.ipcServer.send('receiveOsc',data,clientId) continue } else if (targets[i] === null) { continue @@ -404,7 +417,7 @@ module.exports = { if (port) { - osc.send(host, port, data.address, data.args, data.typeTags, clientId) + this.oscServer.send(host, port, data.address, data.args, data.typeTags, clientId) } @@ -412,9 +425,9 @@ module.exports = { } - if (!data.noSync) ipc.send('receiveOsc', data, null, clientId) + if (!data.noSync) this.ipcServer.send('receiveOsc', data, null, clientId) - }, + } addWidget(data, clientId) { // cache widget osc data to reduce bandwidth usage @@ -430,11 +443,11 @@ module.exports = { // } // preArgs, target and typeTags can be empty strings - if (!widgetHashTable[clientId][data.hash]) { - widgetHashTable[clientId][data.hash] = {} + if (!this.widgetHashTable[clientId][data.hash]) { + this.widgetHashTable[clientId][data.hash] = {} } - var cache = widgetHashTable[clientId][data.hash], + var cache = this.widgetHashTable[clientId][data.hash], widgetData = data.data for (var k in widgetData) { @@ -452,41 +465,41 @@ module.exports = { // store raw target for client sync widget matching cache._rawTarget = widgetData.target - }, + } removeWidget(data, clientId) { // clear widget osc data - delete widgetHashTable[clientId][data.hash] + delete this.widgetHashTable[clientId][data.hash] - }, + } reload(data) { // (dev) hot reload - ipc.send('reload') + this.ipcServer.send('reload') - }, + } reloadCss() { // (dev) hot css reload - ipc.send('reloadCss') - }, + this.ipcServer.send('reloadCss') + } log(data) { console.log(data) - }, + } error(data) { console.error(data) - }, + } errorLog(data) { console.error(data) - }, + } errorPopup(data) { - ipc.send('error', data) - }, + this.ipcServer.send('error', data) + } listDir(data, clientId) { // remote file browser backend @@ -512,17 +525,19 @@ module.exports = { // Drive list hack on windows if (data.path.length === 2 && data.path[1] === '..' && (data.path[0].match(/^[A-Z]:\\$/) || data.path[0] === '\\')) { - child_process.exec('wmic logicaldisk get name', (error, stdout) => { + child_process.exec('(get-wmiobject win32_volume | ? { $_.DriveType -eq 3 } | % { get-psdrive $_.DriveLetter[0] }).Root -join " "', {shell: 'powershell.exe'}, (error, stdout) => { if (error) { - ipc.send('notify', {class: 'error', message: 'Failed to list available drives.'}, clientId) + this.ipcServer.send('notify', {class: 'error', message: 'Failed to list available drives (see server console).'}, clientId) + console.error('(ERROR) Failed to list available drives.') + console.error(error.stack) } else { - ipc.send('listDir', { + this.ipcServer.send('listDir', { path: '\\', - files: stdout.split('\r\r\n') + files: stdout.split(' ') .filter(value => /[A-Za-z]:/.test(value)) .map(value => {return {name: value.trim(), folder: true}}) }, clientId) @@ -535,7 +550,7 @@ module.exports = { fs.readdir(p, (err, files)=>{ if (err) { - ipc.send('notify', {class: 'error', message: err.message}, clientId) + this.ipcServer.send('notify', {class: 'error', message: err.message}, clientId) throw err } else { var extRe = data.extension ? new RegExp('.*\\.' + data.extension + '$') : /.*/ @@ -550,16 +565,15 @@ module.exports = { } }) list = list.filter(x=>x.folder || x.name.match(extRe)) - ipc.send('listDir', { + this.ipcServer.send('listDir', { path: p, - files: list + files: list, + root: root }, clientId) settings.write('last-dir', p, false, false) } }) - - }, - + } } diff --git a/src/server/ipc/client.js b/src/server/node/ipc/client.mjs similarity index 92% rename from src/server/ipc/client.js rename to src/server/node/ipc/client.mjs index 2f850c3b..5e17545e 100644 --- a/src/server/ipc/client.js +++ b/src/server/node/ipc/client.mjs @@ -1,10 +1,10 @@ -var EventEmitter = require('events').EventEmitter +import {EventEmitter} from 'events' var hearbeatInterval = 25000, hearbeatTimeout = 5000, dieTimeout = 60000 -class Socket extends EventEmitter { +class Client extends EventEmitter { constructor(ws, id, address) { @@ -97,9 +97,9 @@ class Socket extends EventEmitter { } - send(event, data) { + send(packet) { - var packet = JSON.stringify([event, data]) + // see IpcServer.send if (this.connected()) { this.socket.send(packet) @@ -123,4 +123,4 @@ class Socket extends EventEmitter { } -module.exports = Socket +export default Client diff --git a/src/server/node/ipc/server.mjs b/src/server/node/ipc/server.mjs new file mode 100644 index 00000000..b3d707fb --- /dev/null +++ b/src/server/node/ipc/server.mjs @@ -0,0 +1,92 @@ +import {WebSocketServer} from 'ws' +import Client from './client.mjs' +import * as settings from '../settings.mjs' +import Callbacks from './callbacks.mjs' + +class IpcServer { + + constructor(webServer, oscServer) { + + this.clients = {} + this.webServer = webServer + this.oscServer = oscServer + this.server = new WebSocketServer({server: webServer.server}) + this.callbacks = new Callbacks(this, webServer, oscServer) + + + this.server.on('connection', (socket, req)=>{ + var url = req.url.split('/'), + auth = url.pop().replace('_', '/'), + id = url.pop() + + if (settings.read('authentication')) { + if (settings.read('authentication') !== Buffer.from(auth, 'base64').toString()) { + console.log(`(WARNING) Client connexion refused for ${req.connection.remoteAddress} (authentication failed)`) + socket.close() + return + } + } + + + if (!id) return + + id = decodeURI(id) + + if (!this.clients[id]) { + + var client = new Client(socket, id, req.connection.remoteAddress) + this.clients[id] = client + + var customModule = settings.read('custom-module') + for (let name of this.callbacks.getEvents()) { + client.on(name, (data)=>{ + if (customModule) { + oscServer.customModuleEventEmitter.emit(name, data, {address: client.address, id: client.id}) + } + this.callbacks[name](data, client.id) + }) + } + + client.on('destroyed', ()=>{ + delete this.clients[id] + }) + + } else { + + this.clients[id].open(socket) + this.clients[id].flush() + + } + + this.clients[id].emit('created') + + }) + + } + + send(event, data, id, except) { + + var packet = JSON.stringify([event, data]) + + if (id) { + // send to a single client + if (this.clients[id]){ + this.clients[id].send(packet) + } + + } else { + // send to all clients except one if specified + for (let id in this.clients) { + if (id != except) { + this.clients[id].send(packet) + } + } + + } + + } + + +} + +export default IpcServer diff --git a/src/server/midi.js b/src/server/node/midi.mjs similarity index 65% rename from src/server/midi.js rename to src/server/node/midi.mjs index de2ffd22..9cb7ee17 100644 --- a/src/server/midi.js +++ b/src/server/node/midi.mjs @@ -1,32 +1,31 @@ -var {PythonShell} = require('python-shell'), - fs = require('fs'), - path = require('path'), - settings = require('./settings') +import {PythonShell} from 'python-shell' +import fs from 'fs' +import path from 'path' +import {EventEmitter} from 'events' +import * as settings from './settings.mjs' -// last o-s-c version that changed midi sources -// must match version in midi.py / bundled midi executable -var midiVersion = '1.23.0' -var pythonOptions = { - scriptPath:__dirname, - mode:'text', -} +var scriptPath = __dirname.includes('server/node') ? + path.resolve(__dirname, '../python') : // src folder structure + path.resolve(__dirname, './python') // app folder structure with rollup chunking var midiBinaries = { - linux: 'osc-midi-linux', - darwin: 'osc-midi-osx', - win32: 'osc-midi-windows.exe' + x64: { + linux: 'osc-midi-linux', + darwin: 'osc-midi-osx', + win32: 'osc-midi-windows.exe' + }, + arm64:{ + darwin: 'osc-midi-osx', + } } -var expectMidiBinaries = false, +var expectMidiBinaries = fs.existsSync(path.resolve(scriptPath, './.expect-midi-bin')), expectMidiBinariesError = false -try { - expectMidiBinaries = eval('require("./osc-midi.json")') -} catch(e) {} var pythonPathOverride -if (process.arch === 'x64' && midiBinaries[process.platform]) { - var p = path.resolve(__dirname, midiBinaries[process.platform]) +if (midiBinaries[process.arch] && midiBinaries[process.arch][process.platform]) { + var p = path.resolve(scriptPath, midiBinaries[process.arch][process.platform]) if (fs.existsSync(p)) { pythonPathOverride = p } else if (expectMidiBinaries) { @@ -34,20 +33,41 @@ if (process.arch === 'x64' && midiBinaries[process.platform]) { } } -class MidiConverter { +class MidiConverter extends EventEmitter{ constructor() { + super() + if (expectMidiBinariesError) MidiConverter.midiBinariesError() - this.py = new PythonShell('python/midi.py', Object.assign({ + this.running = false + this.restarting = false + this.py = {} + + this.start() + + + process.on('message', (m) => { + if (m == 'midiRestart') { + this.restart() + } + }) + + } + + start() { + + if (this.running) return + + this.py = new PythonShell('midi.py', Object.assign({ args: [ '--params', settings.read('debug') ? 'debug' : '', ...settings.read('midi') ], pythonPath: MidiConverter.getPythonPath() - }, pythonOptions)) + }, {scriptPath, mode:'text'})) this.py.childProcess.on('error', (e)=>{ if (e.code === 'ENOENT') { @@ -57,12 +77,32 @@ class MidiConverter { } }) - this.running = true this.py.childProcess.on('exit', (code)=>{ - if (code === null) console.error('(ERROR, MIDI) Midi bridge process crashed') + if (code === null && !this.restarting) console.error('(ERROR, MIDI) Midi bridge process crashed') this.running = false + this.emit('stopped') }) + this.running = true + + } + + stop() { + + if (this.running) this.py.childProcess.kill() + + } + + restart() { + + if (this.running) { + this.restarting = true + this.once('stopped', ()=>{ + this.start() + this.restarting = false + }) + this.stop() + } } send(data) { @@ -78,11 +118,7 @@ class MidiConverter { } - stop() { - this.py.childProcess.kill() - - } init(receiveOsc) { @@ -120,8 +156,6 @@ class MidiConverter { instance.receiveOsc(data) } else if (name == 'error') { console.error('(ERROR, MIDI) ' + data) - } else if (name == 'version' && data != midiVersion) { - console.error(`(WARNING, MIDI) binary version mismatch (${data} installed, ${midiVersion} expected)`) } } @@ -130,7 +164,7 @@ class MidiConverter { if (expectMidiBinariesError) MidiConverter.midiBinariesError() - PythonShell.run('python/midi.py', Object.assign({pythonPath: MidiConverter.getPythonPath(), args: ['--params', 'list-only']}, pythonOptions), function(e, results) { + PythonShell.run('midi.py', Object.assign({pythonPath: MidiConverter.getPythonPath(), args: ['--params', 'list-only']}, {scriptPath, mode:'text'}), function(e, results) { if (e) { if (e.code === 'ENOENT') { console.error(`(ERROR, MIDI) Could not find python binary: ${e.message.replace(/spawn (.*) ENOENT/, '$1')}`) @@ -166,4 +200,4 @@ class MidiConverter { } -module.exports = MidiConverter +export default MidiConverter diff --git a/src/server/options.js b/src/server/node/options.mjs similarity index 97% rename from src/server/options.js rename to src/server/node/options.mjs index afac3de9..37358895 100644 --- a/src/server/options.js +++ b/src/server/node/options.mjs @@ -1,6 +1,6 @@ -var fs = require('fs') +import fs from 'fs' -module.exports = { +export default { 's': {alias: 'send', type: 'array', describe: 'default targets for all widgets (ip: port / domain: port / midi: port_name pairs)', check: (s)=>{ return s.some(item=>!item.match(/^[^:]*:[0-9]{4,5}$/) && !item.match(/^midi:.*$/)) ? @@ -51,7 +51,7 @@ module.exports = { }, 'm': {alias: 'midi', type: 'array', describe: 'midi router settings', check: (o)=>{ - var err = o.filter(item=>!item.match(/^(list|debug|jack|sysex|mtc|rpn|nrpn|active_sensing|note_off_velocity|pc_offset|path=(.*)|[^:]+:(virtual|[^,]+,[^,]+))$/)) + var err = o.filter(item=>!item.match(/^(list|debug|jack|sysex|mtc|rpn|nrpn|active_sensing|note_off_velocity|no_auto_note_off|pc_offset|path=(.*)|[^:]+:(virtual|[^,]+,[^,]+))$/)) return err.length ? `Invalid option${err.length > 1 ? 's' : ''}: ${err.join(', ')}` : true } }, diff --git a/src/server/osc/index.js b/src/server/node/osc/index.mjs similarity index 68% rename from src/server/osc/index.js rename to src/server/node/osc/index.mjs index 85046ce2..4b0444c0 100644 --- a/src/server/osc/index.js +++ b/src/server/node/osc/index.mjs @@ -1,24 +1,26 @@ -var ipc = require('../server').ipc, - settings = require('../settings'), - tcpInPort = settings.read('tcp-port'), - debug = settings.read('debug'), - midi = settings.read('midi') ? require('../midi') : false, - oscUDPServer = require('./udp'), - oscTCPServer = require('./tcp'), - EventEmitter = require('events').EventEmitter, - CustomModule = require('../custom-module') +import {EventEmitter} from 'events' +import * as settings from '../settings.mjs' +import OscUDPServer from './udp.mjs' +import OscTCPServer from './tcp.mjs' +import CustomModule from '../custom-module.mjs' +import MidiServer from '../midi.mjs' - -if (midi) midi = new midi() - -class OscServer { +export default class OscServer { constructor(){ + this.oscUDPServer = new OscUDPServer() + this.oscTCPServer = new OscTCPServer() + this.tcpInPort = settings.read('tcp-port') + this.midiServer = settings.read('midi') ? new MidiServer() : null + + this.debug = settings.read('debug') + this.customModuleEventEmitter = new EventEmitter() this.customModule = settings.read('custom-module') ? new CustomModule(settings.read('custom-module'), { app: this.customModuleEventEmitter, - tcpServer: oscTCPServer, + restartMidiBackend: ()=>{if (this.midiServer) this.midiServer.restart()}, + tcpServer: this.oscTCPServer, sendOsc: this.sendOsc.bind(this), receiveOsc: this.receiveOsc.bind(this), send: (host, port, address, ...args)=>{ @@ -51,13 +53,13 @@ class OscServer { if (typeof lastArg === 'object' && lastArg !== null && lastArg.clientId !== undefined) { options = args.pop() } - this.receiveOsc({host, port, address, args:args.map(x=>this.parseArg(x)), cm: 1}, options.clientId) + this.receiveOsc({host, port, address, args:args.map(x=>this.parseArg(x, null, true)), cm: 1}, options.clientId) }, }) : {} } - parseArg(arg, type){ + parseArg(arg, type, allowObjects = false){ if (arg === null) return null @@ -93,7 +95,15 @@ class OscServer { case 'string': return {type: 's', value: arg} default: - return {type: 's', value: JSON.stringify(arg)} + if (allowObjects) { + // Allow js objects in args when receiving from a custom module + // they will eventually be serialized (as json) with the rest of + // the ws message but the client will de-serialize it automatically + // note: type "o" is off-spec, but we don't use typetag in this case anyway + return {type: 'o', value: arg} + } else { + return {type: 's', value: JSON.stringify(arg)} + } } } @@ -103,7 +113,7 @@ class OscServer { if (data.host == 'midi') { - if (midi) midi.send(data) + if (this.midiServer) this.midiServer.send(data) } else { @@ -117,23 +127,25 @@ class OscServer { return } - if (tcpInPort && oscTCPServer.clients[data.host] && oscTCPServer.clients[data.host][data.port]) { + if (this.tcpInPort && this.oscTCPServer.clients[data.host] && this.oscTCPServer.clients[data.host][data.port]) { - oscTCPServer.clients[data.host][data.port].send({ + this.oscTCPServer.clients[data.host][data.port].send({ address: data.address, args: data.args }) } else { - oscUDPServer.send({ + this.oscUDPServer.send({ address: data.address, args: data.args }, data.host, data.port) } - if (debug) console.log('\x1b[35m(DEBUG, OSC) Out: ',{address:data.address, args: data.args}, 'To: ' + data.host + ':' + data.port, '\x1b[0m') + if (this.debug) { + console.log('\x1b[35m(DEBUG, OSC) Out: ', `{ address: '${data.address}', args: `, data.args, '} To: ' + data.host + ':' + data.port, '\x1b[0m') + } } @@ -150,9 +162,9 @@ class OscServer { if (data.args.length==1) data.args = data.args[0] - ipc.send('receiveOsc', data, clientId) + this.ipcServer.send('receiveOsc', data, clientId) - if (debug) console.log('\x1b[36m(DEBUG, OSC) In: ', {address:data.address, args: data.args}, 'From: ' + data.host + ':' + data.port, '\x1b[0m') + if (this.debug) console.log('\x1b[36m(DEBUG, OSC) In: ', {address:data.address, args: data.args}, 'From: ' + data.host + ':' + data.port, '\x1b[0m') } @@ -199,11 +211,11 @@ class OscServer { } } + start(ipcServer){ + this.ipcServer = ipcServer - init(){ - - if (midi) midi.init((data)=>{ + if (this.midiServer) this.midiServer.init((data)=>{ data = this.oscInFilter({address: data.address, args: data.args, host: data.host, port: data.port}) @@ -213,12 +225,12 @@ class OscServer { }) - oscUDPServer.on('message', this.oscInHandlerWrapper.bind(this)) - oscUDPServer.open() + this.oscUDPServer.on('message', this.oscInHandlerWrapper.bind(this)) + this.oscUDPServer.start() if (settings.read('tcp-port')) { - oscTCPServer.on('message', this.oscInHandlerWrapper.bind(this)) - oscTCPServer.open() + this.oscTCPServer.on('message', this.oscInHandlerWrapper.bind(this)) + this.oscTCPServer.start() } if (this.customModule.init) { @@ -234,20 +246,12 @@ class OscServer { stop() { if (this.customModule.stop) this.customModule.stop() - if (midi) midi.stop() + if (this.midiServer) this.midiServer.stop() } - -} - - -var oscServer = new OscServer() -oscServer.init() - -module.exports = { - server: oscServer, - send: function(host, port, address, args, typeTags, clientId) { + send(host, port, address, args, typeTags, clientId) { + // public send function var message = [] @@ -261,17 +265,17 @@ module.exports = { for (var i = 0; i < args.length; i++) { if (typeTags && typeTags[i]) typeTag = typeTags[i] - arg = oscServer.parseArg(args[i], typeTag) + arg = this.parseArg(args[i], typeTag) if (arg !== null) message.push(arg) } } - var data = oscServer.oscOutFilter({address:address, args: message, host: host, port: port, clientId: clientId}) + var data = this.oscOutFilter({address:address, args: message, host: host, port: port, clientId: clientId}) - oscServer.sendOsc(data) + this.sendOsc(data) + + } - }, - midi:midi } diff --git a/src/server/node/osc/osc.mjs b/src/server/node/osc/osc.mjs new file mode 100644 index 00000000..4dc68d46 --- /dev/null +++ b/src/server/node/osc/osc.mjs @@ -0,0 +1,7 @@ +import osc from 'osc/src/osc.js' +import transports from 'osc/src/platforms/osc-node.js' + +osc.UDPPort = transports.UDPPort +osc.TCPSocketPort = transports.TCPSocketPort + +export default osc diff --git a/src/server/osc/tcp.js b/src/server/node/osc/tcp.mjs similarity index 81% rename from src/server/osc/tcp.js rename to src/server/node/osc/tcp.mjs index edb12f65..b1096257 100644 --- a/src/server/osc/tcp.js +++ b/src/server/node/osc/tcp.mjs @@ -1,10 +1,8 @@ -var osc = require('./osc'), - EventEmitter = require('events').EventEmitter, - settings = require('../settings'), - zeroconf = require('../zeroconf'), - tcpInPort = settings.read('tcp-port'), - tcpTargets = settings.read('tcp-targets'), - net = require('net') +import {EventEmitter} from 'events' +import net from 'net' +import * as settings from '../settings.mjs' +import osc from './osc.mjs' +import zeroconf from '../zeroconf' class OscTCPClient extends EventEmitter { @@ -76,14 +74,18 @@ class OscTCPClient extends EventEmitter { } -class OscTCPServer extends EventEmitter { +export default class OscTCPServer extends EventEmitter { constructor() { super() + this.port = settings.read('tcp-port') + this.targets = settings.read('tcp-targets') + this.clients = {} + this.server = net.createServer(this.bindSocket.bind(this)) } bindSocket(socket) { @@ -113,17 +115,17 @@ class OscTCPServer extends EventEmitter { } - open() { + start() { - this.server = net.createServer(this.bindSocket.bind(this)) - this.server.listen({port: tcpInPort}) - for (var i in tcpTargets) { + this.server.listen({port: this.port}) + + for (var i in this.targets) { this.addClient(new OscTCPClient({ metadata: true, - address: tcpTargets[i].split(':')[0], - port: tcpTargets[i].split(':')[1] + address: this.targets[i].split(':')[0], + port: this.targets[i].split(':')[1] })) } @@ -132,15 +134,17 @@ class OscTCPServer extends EventEmitter { name: settings.infos.productName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''), protocol: 'tcp', type: 'osc', - port: tcpInPort + port: this.port }).on('error', (e)=>{ console.error(`Error: Zeroconf: ${e.message}`) }) + } + + stop() { + + this.server.close() } + } - -var oscTCPServer = new OscTCPServer() - -module.exports = oscTCPServer diff --git a/src/server/node/osc/udp.mjs b/src/server/node/osc/udp.mjs new file mode 100644 index 00000000..cf056f4e --- /dev/null +++ b/src/server/node/osc/udp.mjs @@ -0,0 +1,48 @@ +import osc from './osc.mjs' +import * as settings from '../settings.mjs' +import zeroconf from '../zeroconf.mjs' + +export default class OscUDPServer { + + constructor() { + + this.port = settings.read('osc-port') || settings.read('port') || 8080 + + this.server = new osc.UDPPort({ + localAddress: '0.0.0.0', + localPort: this.port, + metadata: true, + broadcast: true + }) + + this.server.on('error', function(e) { + if (e.code === 'EADDRINUSE') { + console.error(`(ERROR, UDP) could not open port ${this.port} (already in use) `) + } else { + console.error('(ERROR, UDP)', e) + } + }) + + this.on = this.server.on.bind(this.server) + this.send = this.server.send.bind(this.server) + } + + start() { + + this.server.open() + + zeroconf.publish({ + name: settings.infos.productName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''), + protocol: 'udp', + type: 'osc', + port: this.port + }) + + } + + stop() { + + this.server.close() + + } +} diff --git a/src/server/node/qrcode.mjs b/src/server/node/qrcode.mjs new file mode 100644 index 00000000..b9565315 --- /dev/null +++ b/src/server/node/qrcode.mjs @@ -0,0 +1,39 @@ +import QRCode from 'qrcode' +import * as settings from './settings.mjs' + +export default function qrcode(mode, callback){ + + var qrstring = '', + promises = [] + + if (mode == 'file') { + promises.push(QRCode.toString(settings.appAddresses().pop(), {type:'svg', small: true, margin: 1})) + } else { + for (var add of settings.appAddresses().filter(a=>!a.includes('127.0.0.1') && !a.includes('localhost'))) { + if (mode == 'svg') { + promises.push(QRCode.toString(add,{type:'svg', small: true, margin: 1})) + } else if (mode == 'terminal') { + promises.push(QRCode.toString(add,{type:'terminal', small: true})) + } + } + } + + Promise.all(promises).then(values=>{ + for (var qr of values) { + if (mode === 'svg') { + qrstring += '
' + qr + '
' + if (values.length > 1) { + qrstring += '(' + add + ')' + } + } else { + qrstring += '\n' + qr.replace(/^/gm, ' ' + '') + if (values.length > 1) { + qrstring += ' (' + add + ')' + } + } + } + callback(qrstring) + }) + + +} diff --git a/src/server/node/server.mjs b/src/server/node/server.mjs new file mode 100644 index 00000000..3f7684fc --- /dev/null +++ b/src/server/node/server.mjs @@ -0,0 +1,311 @@ +import http from 'http' +import https from 'https' +import {EventEmitter} from 'events' +import path from 'path' +import fs from 'fs' +import send from 'send' +import replaceStream from 'replacestream' +import * as settings from './settings.mjs' +import './ssl.mjs' +import auth from './auth.mjs' +import theme from './theme.mjs' +import zeroconf from './zeroconf.mjs' +import qrcode from './qrcode.mjs' +import {resolveHomeDir} from './utils.mjs' + +class WebServer extends EventEmitter { + + constructor() { + + super() + + this.ipcServer = null + + this.qrcode = '' + this.prod = !process.argv[0].includes('node_modules'), + this.debug = settings.read('debug'), + this.remoteRoot = settings.read('remote-root') + + var route = auth ? auth.check(this.httpRoute.bind(this)) : this.httpRoute.bind(this) + if (settings.read('use-ssl')) { + this.server = https.createServer(settings.read('ssl-certificate'), route) + } else { + this.server = http.createServer(route) + } + + // file request resolution directories + // add theme dirs + this.resolveDirs = theme.files.map(x=>path.dirname(x)), + // dedupe + this.resolveDirs = this.resolveDirs.filter((x, index)=>{return this.resolveDirs.indexOf(x) === index}) + // add remote root or absolute + this.resolveDirs.push(this.remoteRoot || '') + + if (!this.prod) { + // add src root folder for debugging + this.resolveDirs.push(path.resolve(__dirname + '/../../../')) + } + + this.ignoredNotFound = [ + '/apple-touch-icon-precomposed.png', + '/favicon.ico', + '/apple-touch-icon.png' + ] + + + } + + start(ipcServer) { + + this.ipcServer = ipcServer + + + theme.on('update', ()=>{ + ipcServer.send('reloadCss') + }) + + this.server.listen(settings.read('port') || 8080) + + var proto = settings.read('use-ssl') ? https : http + proto.get(settings.appAddresses()[0] + '/osc-ping', { + auth: settings.read('authentication'), + rejectUnauthorized: false + },()=>{}).on('error', ()=>{this.httpCheck(false)}) + + this.httpCheckTimeout = setTimeout(()=>{this.httpCheck(false)}, 5000) + + zeroconf.publish({ + name: settings.infos.productName + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''), + type: 'http', + port: settings.read('port') || 8080 + }).on('error', (e)=>{ + console.error(`(ERROR, ZEROCONF) ${e.message}`) + }) + + this.server.on('error', (e)=>{ + if (e.code === 'EADDRINUSE') { + console.error(`(ERROR, HTTP) Could not open port ${this.port} (already in use) `) + } else { + console.error(`(ERROR, HTTP) ${e.message}`) + } + }) + + } + + stop() { + + this.server.close() + + } + + resolvePath(url, clientId) { + + var sessionPath + + if (this.ipcServer.clients[clientId]) { + sessionPath = path.dirname(this.ipcServer.clients[clientId].sessionPath) + } + + url = resolveHomeDir(url) + url = url.split('?')[0] + + for (var i = sessionPath ? -1 : 0; i < this.resolveDirs.length; i++) { + var p = i === -1 ? sessionPath : this.resolveDirs[i] + + if (i == this.resolveDirs.length - 1 && this.remoteRoot) { + // strip out remote-root path from request url when resolving against it + url = url.replace(settings.read('remote-root'), '') + } + + p = path.resolve(path.join(p, url)) + + if (fs.existsSync(p)) return p + } + + if (this.debug && !this.ipcServer.clients[clientId]) { + // safari seems to be picky with cookies + if (clientId === undefined) console.log(`(DEBUG, HTTP) Could not resolve requested url ${url} (client id not found in http cookies)`) + // this should never happen, but just in case... + // it happens when importing css file from theme + else console.log(`(DEBUG, HTTP) Requested url ${url} not resolved against session path (unregistered client id ${clientId})`) + } + + return false + + } + + sendFile(req, res, path) { + + var fpath = path.split('?')[0] + var stats = fs.statSync(fpath) + if (!stats || !stats.isFile()) { + throw `File "${fpath}" not found.` + } + var lastModified = new Date(stats.mtime) + lastModified.setMilliseconds(0) + res.setHeader('Cache-Control', 'no-cache') + res.setHeader('Last-Modified', lastModified.toUTCString()) + if ( + req.headers['if-modified-since'] && new Date(req.headers['if-modified-since']).getTime() >= lastModified.getTime() + ) { + res.statusCode = 304 + res.end() + return + } + return send(req, fpath).pipe(res) + } + + httpRoute(req, res) { + + var url = req.url + + if (url === '/qrcode'){ + + // qrcode image + + res.setHeader('Content-Type', 'image/svg+xml') + let str = this.qrcode, + buf = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from(str) : new Buffer(str) + res.write(buf) + res.end() + + } else if (url === '/' || url.indexOf('/?') === 0) { + + // index.html + + var ip = req.connection.remoteAddress.replace('::ffff:', '') + + var clientOptions = {} + if (settings.read('client-options')) { + for (var o of settings.read('client-options')) { + if (!o.includes('=')) continue + var [k, v] = o.split('=') + clientOptions[k] = v + } + } + res.setHeader('Cache-Control', 'no-store') + fs.createReadStream(path.resolve(__dirname + '/../../client/index.html')) + .pipe(replaceStream('', ` + `)) + .pipe(res) + + } else if (url.indexOf('__APP_THEME__.css') != -1) { + + // user theme(s) + + res.setHeader('Content-Type', 'text/css') + + var etag = settings.read('theme') ? theme.hash : 'empty-theme' + res.setHeader('Cache-Control', 'no-cache') + res.setHeader('ETag', etag) + if (req.headers['if-none-match'] && req.headers['if-none-match'] === etag) { + res.statusCode = 304 + res.end() + return + } + + if (settings.read('theme')) { + let str = theme.get(), + buf = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from(str) : new Buffer(str) + res.write(buf) + } else { + res.write('') + } + res.end() + + } else if (url.match(/^\/+__APP_DIR__\//)) { + + // osc asset files + + try { + this.sendFile(req, res, path.resolve(__dirname + '/../../' + url.replace('__APP_DIR__/', ''))) + return true + } catch(e) {} + + + console.error(`(ERROR, HTTP) File not found: ${url}`) + + if (url.match(/\/client\/index.*\.js/)) { + console.warn('(WARNING) It seems a client attempted to load an older version of the app,', + 'this may occur when using a homescreen bookmark on mobile devices.', + 'If that\'s the case, please delete it and browse to the app\'s url again.') + } + + res.writeHead(404) + res.end() + + + } else { + + // user files + + // windows absolute path fix + url = url.replace('_:_', ':') // escaped drive colon + url = url.replace(/^\/([^/]*:)/, '$1') // strip leading slash + + if (url.match(/\.(svg|jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico|ttf|otf|woff|woff2|html|css|js)(\?[0-9]*)?$/i) || + url.match(/\.mjs$/) && !this.prod) { + + // Resolution order: session path, theme path, absolute path + var id + if (req.headers.cookie) { + id = (req.headers.cookie.match(/client_id=([^;]+)/) || [])[1] + } + + var resolvedPath = this.resolvePath(decodeURI(url), id) + + if (resolvedPath) { + try { + this.sendFile(req, res, resolvedPath) + return true + } catch(e) {} + } + + if (!this.ignoredNotFound.includes(url)) { + console.error(`(ERROR, HTTP) File not found: ${url}`) + } + + res.writeHead(404) + res.end() + + } else if (url.includes('/osc-ping')) { + this.httpCheck(true) + } else { + res.writeHead(403) + res.end() + } + + } + + } + + httpCheck(ok, error) { + + if (!this.httpCheckTimeout) return + + clearTimeout(this.httpCheckTimeout) + this.httpCheckTimeout = null + + if (ok) { + console.log('(INFO) Server started, app available at \n ' + settings.appAddresses().join('\n ')) + this.emit('serverStarted') + qrcode('file', (qr)=>{ + this.qrcode = qr + }) + } else { + if (error) { + console.error('(ERROR, HTTP) Server setup error: ' + error.message) + } + console.error('(ERROR, HTTP) Could not setup http server, maybe try a different port ?') + } + + } +} + +export default WebServer diff --git a/src/server/settings.js b/src/server/node/settings.mjs similarity index 61% rename from src/server/settings.js rename to src/server/node/settings.mjs index 90862b43..804c81e0 100644 --- a/src/server/settings.js +++ b/src/server/node/settings.mjs @@ -1,28 +1,34 @@ -var path = require('path'), - fs = require('fs'), - yargs = require('yargs'), - infos = require('../../package.json'), - options = require('./options'), - address = require('./address') +import path from 'path' +import fs from 'fs' +import yargs from 'yargs' +import envPaths from 'env-paths' +import infos from '../../../package.json' +import options from './options.mjs' +import address from './address.mjs' -// This prevents argv parsing from breaking when the app is packaged (executed without 'electron' prefix) -var firstArgIndex = path.basename(process.argv[0]).match(/electron|node|Electron|Node/) ? 2 : 1 +var argv = process.argv.slice() -if (process.env.OSC_SERVER_PROCESS) firstArgIndex++ - -// on windows, electron stops parsing after the first argument containing a colon +// Note : on windows, electron stops parsing after the first argument containing a colon // https://github.com/electron/electron/pull/13039 // windows cli users need to add a double dash (--) before their options to avoid that // it must be stripped to let yargs work normally -if (process.argv[firstArgIndex] === '--') process.argv.splice(firstArgIndex, 1) -var argv = yargs(process.argv.slice(firstArgIndex)) +// rmeove all args before the first actual cli arg +while (argv.length) { + if (argv[0][0] != '-' || argv[0] == '--') { + argv.splice(0, 1) + } else if (argv[0][0] == '-' ) { + break + } +} + +argv = yargs(argv) .parserConfiguration({'boolean-negation': false}) .help('help').usage('\nUsage:\n $0 [options]').alias('h', 'help') .options(options) .check((argv)=>{ var err = [] - for (key in options) { + for (let key in options) { if (options[key].check && argv[key] != undefined) { var c = options[key].check(argv[key],argv) if (c!==true) { @@ -91,7 +97,6 @@ var baseDir, configPath, configPathExists = true, config = {} if (argv['cache-dir']) { baseDir = path.isAbsolute(argv['cache-dir']) ? argv['cache-dir'] : path.resolve(process.cwd(), argv['cache-dir']) } else { - envPaths = require('env-paths') baseDir = envPaths(infos.name, { suffix: '' }).config @@ -150,54 +155,57 @@ if (!configPath) { ///////////////// +export { + options, + cli, + infos, + baseDir as configPath +} -module.exports = { - options: options, - read: function(key){ - return settings.options[key] !== undefined ? settings.options[key] : settings[key] - }, - write:function(key, value, tmp, sync) { +export function read(key){ + return settings.options[key] !== undefined ? settings.options[key] : settings[key] +} +export function write(key, value, tmp, sync) { - settings[key] = value + settings[key] = value - if (!tmp && configPathExists) { + if (!tmp && configPathExists) { - if (process.send) { - // server running as child process of launcher - // -> just pass the modification to the launcher process - process.send(['settings.write', [key, value]]) - } else { - config[key] = value - if (config.options) { - // don't save cli-only options - for (var k in config.options) { - if (options[k] && options[k].launcher === false) { - delete config.options[k] - } + if (process.send) { + // server running as child process of launcher + // -> just pass the modification to the launcher process + process.send(['settings.write', [key, value]]) + } else { + config[key] = value + if (config.options) { + // don't save cli-only options + for (var k in config.options) { + if (options[k] && options[k].launcher === false) { + delete config.options[k] } } - if (sync) { - fs.writeFileSync(configPath, JSON.stringify(config, null, 4)) - } else { - fs.writeFile(configPath, JSON.stringify(config, null, 4), function(err, data) { - if (err) throw err - }) - } - + } + if (sync) { + fs.writeFileSync(configPath, JSON.stringify(config, null, 4)) + } else { + fs.writeFile(configPath, JSON.stringify(config, null, 4), function(err, data) { + if (err) throw err + }) } } - // we are in launcher process -> update server process' config - if (global.serverProcess) { - global.serverProcess.send(['settings.write', [key, value]]) - } + } - }, - cli: cli, - configPath: baseDir, - infos: infos, - appAddresses: ()=>address(module.exports.read('use-ssl') ? 'https://' : 'http://', settings.options.port || 8080) + // we are in launcher process -> update server process' config + if (global.serverProcess) { + global.serverProcess.send(['settings.write', [key, value]]) + } + +} + +export function appAddresses() { + return address(read('use-ssl') ? 'https://' : 'http://', settings.options.port || 8080) } if (process.send) { @@ -206,7 +214,7 @@ if (process.send) { process.on('message', function(data) { var [command, args] = data if (command === 'settings.write') { - module.exports.write(args[0], args[1], true) + write(args[0], args[1], true) } }) } diff --git a/src/server/ssl.js b/src/server/node/ssl.mjs similarity index 68% rename from src/server/ssl.js rename to src/server/node/ssl.mjs index dbb4de22..468129d5 100644 --- a/src/server/ssl.js +++ b/src/server/node/ssl.mjs @@ -1,6 +1,7 @@ -var settings = require('./settings'), - forge = require('node-forge'), - pki = forge.pki, +import forge from 'node-forge' +import * as settings from './settings.mjs' + +var pki = forge.pki, certificate = settings.read('ssl-certificate') forge.options.usePureJavaScript = true @@ -47,24 +48,27 @@ function createCertificate() { } -if (!certificate) { +if (settings.read('use-ssl')){ - createCertificate() + if (!certificate) { -} else { - - var cert = pki.certificateFromPem(certificate.cert) - - if ( - cert.serialNumber === '00' || - new Date() > new Date(cert.validity.notAfter) || - cert.subject.attributes[1].value !== settings.infos.productName - ) { - console.log('(INFO) Self-signed ssl certificate in cache has expired or is invalid') createCertificate() + } else { - console.log('(INFO) Using self-signed ssl certificate in cache') + + var cert = pki.certificateFromPem(certificate.cert) + + if ( + cert.serialNumber === '00' || + new Date() > new Date(cert.validity.notAfter) || + cert.subject.attributes[1].value !== settings.infos.productName + ) { + console.log('(INFO) Self-signed ssl certificate in cache has expired or is invalid') + createCertificate() + } else { + console.log('(INFO) Using self-signed ssl certificate in cache') + } + } - } diff --git a/src/server/theme.js b/src/server/node/theme.mjs similarity index 66% rename from src/server/theme.js rename to src/server/node/theme.mjs index a122af7d..ec029c1e 100644 --- a/src/server/theme.js +++ b/src/server/node/theme.mjs @@ -1,27 +1,24 @@ -var fs = require('fs'), - path = require('path'), - settings = require('./settings'), - chokidar = require('chokidar'), - ipc +import fs from 'fs' +import path from 'path' +import chokidar from 'chokidar' +import {EventEmitter} from 'events' +import crypto from 'crypto' +import * as settings from './settings.mjs' -class Theme { +class Theme extends EventEmitter { constructor() { - this.themes = [] - this.files = [] - this.css = [] - this.watcher = null + super() this.defaultColor = '#151a24' this.backgroundColor = this.defaultColor - } - - init() { - + this.css = [] + this.watcher = null this.themes = settings.read('theme') || [] this.files = [] + this.hash = '' if (!this.themes.length) return this @@ -35,8 +32,8 @@ class Theme { if (theme.includes('.css') && fs.existsSync(theme)) { this.files.push(theme) - } else if (!theme.includes('.css') && fs.existsSync(path.resolve(__dirname + '/../assets/themes/' + theme + '.css'))) { - this.files.push(path.resolve(__dirname + '/../assets/themes/' + theme + '.css')) + } else if (!theme.includes('.css') && fs.existsSync(path.resolve(__dirname + '/../../assets/themes/' + theme + '.css'))) { + this.files.push(path.resolve(__dirname + '/../../assets/themes/' + theme + '.css')) } else { console.error('(ERROR) Theme not found: "' + theme) } @@ -47,17 +44,14 @@ class Theme { if (this.files.length) { this.watcher = chokidar.watch(this.files, {awaitWriteFinish: {stabilityThreshold: 200}}).on('change', ()=>{ - if (!ipc) ipc = require('./server').ipc this.load() - ipc.send('reloadCss') + this.emit('update') }) } this.load() - return this - } load() { @@ -74,15 +68,7 @@ class Theme { } - var css = this.get() - - if (css.includes('--color-background:')) { - this.backgroundColor = css.match(/--color-background:([^;\n]*)/)[1].trim() - } else { - this.backgroundColor = this.defaultColor - } - - return this + this.hash = crypto.createHash('sha1').update(this.get()).digest('base64') } @@ -96,4 +82,4 @@ class Theme { var theme = new Theme() -module.exports = theme +export default theme diff --git a/src/server/node/utils.mjs b/src/server/node/utils.mjs new file mode 100644 index 00000000..c73a4c30 --- /dev/null +++ b/src/server/node/utils.mjs @@ -0,0 +1,24 @@ +export function deepCopy(obj) { + + var copy = obj + + if (obj === null) { + return obj + } + + if (typeof obj === 'object') { + copy = Array.isArray(obj) ? [] : {} + for (let key in obj) { + copy[key] = deepCopy(obj[key]) + } + } + + return copy + +} + +export function resolveHomeDir(p) { + // Resolve '~' to user's home directory + if (!p) return '' + return String(p).replace(/^(~|\/~)/, process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']) +} diff --git a/src/server/node/zeroconf.mjs b/src/server/node/zeroconf.mjs new file mode 100644 index 00000000..8404aaaf --- /dev/null +++ b/src/server/node/zeroconf.mjs @@ -0,0 +1,3 @@ +import zeroconf from 'bonjour' + +export default zeroconf() diff --git a/src/server/osc/osc.js b/src/server/osc/osc.js deleted file mode 100644 index 4da82ea9..00000000 --- a/src/server/osc/osc.js +++ /dev/null @@ -1,7 +0,0 @@ -var osc = require('osc/src/osc.js'), - transports = require('osc/src/platforms/osc-node.js') - -osc.UDPPort = transports.UDPPort -osc.TCPSocketPort = transports.TCPSocketPort - -module.exports = osc diff --git a/src/server/osc/udp.js b/src/server/osc/udp.js deleted file mode 100644 index 9175b885..00000000 --- a/src/server/osc/udp.js +++ /dev/null @@ -1,28 +0,0 @@ -var osc = require('./osc'), - settings = require('../settings'), - zeroconf = require('../zeroconf'), - oscInPort = settings.read('osc-port') || settings.read('port') || 8080 - -var oscUDPServer = new osc.UDPPort({ - localAddress: '0.0.0.0', - localPort: oscInPort, - metadata: true, - broadcast: true -}) - -oscUDPServer.on('error', function(e) { - if (e.code === 'EADDRINUSE') { - console.error(`(ERROR, UDP) could not open port ${oscInPort} (already in use) `) - } else { - console.error('(ERROR, UDP)', e) - } -}) - -zeroconf.publish({ - name: settings.infos.productName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''), - protocol: 'udp', - type: 'osc', - port: oscInPort -}) - -module.exports = oscUDPServer diff --git a/src/python/head.py b/src/server/python/head.py similarity index 84% rename from src/python/head.py rename to src/server/python/head.py index be39bd42..5f62ccf2 100644 --- a/src/python/head.py +++ b/src/server/python/head.py @@ -46,5 +46,10 @@ ignore_mtc = 'mtc' not in argv ignore_rpn = 'rpn' not in argv and 'nrpn' not in argv # option: parse active sensing ignore_active_sensing = 'active_sensing' not in argv -# option: note off velocity +# option: note off velocity (/note_on and /note_off instead of only /note and velocity 0 for note off) note_off_velocity = 'note_off_velocity' in argv +# option: no auto note off (do not translate received note_on with velocity 0 to note off) +no_auto_note_off = 'no_auto_note_off' in argv +# option: list midi ports +list_midi = 'list' in argv +list_midi_exit = 'list-only' in argv diff --git a/src/python/list.py b/src/server/python/list.py similarity index 100% rename from src/python/list.py rename to src/server/python/list.py diff --git a/src/python/midi.py b/src/server/python/main.py similarity index 98% rename from src/python/midi.py rename to src/server/python/main.py index 75080ac1..76137c0a 100644 --- a/src/python/midi.py +++ b/src/server/python/main.py @@ -4,17 +4,12 @@ from utils import * from mtc import * from rpn import * -ipc_send('version', '1.23.0') - argv = argv[argv.index('--params') + 1:] -if 'list' in argv: +if list_midi or list_midi_exit: list() - -if 'list-only' in argv: - list() - exit() - + if list_midi_exit: + exit() inputs = {} outputs = {} @@ -265,7 +260,7 @@ def send_midi(name, event, *args): m = [mtype, args[0]] if mtype == NOTE_ON: - if args[2] == 0: + if args[2] == 0 and not no_auto_note_off: mtype = NOTE_OFF elif mtype == PITCH_BEND: diff --git a/src/server/python/midi.py b/src/server/python/midi.py new file mode 100644 index 00000000..6152a218 --- /dev/null +++ b/src/server/python/midi.py @@ -0,0 +1,17 @@ +# python script for freezing dependencies but not the runtime code +import os +import importlib +import sys + +# import all libs used at runtime +# pyinstaller will freeze it +import head + +if getattr(sys, 'frozen', False): + VAR_CWD = os.path.dirname(sys.executable) + sys.path.insert(1, VAR_CWD) + +sys.path.insert(1, os.getcwd()) + +# dynamically import runtime code +importlib.import_module('main') diff --git a/src/python/mtc.py b/src/server/python/mtc.py similarity index 100% rename from src/python/mtc.py rename to src/server/python/mtc.py diff --git a/src/server/python/requirements.txt b/src/server/python/requirements.txt new file mode 100644 index 00000000..a63392d8 --- /dev/null +++ b/src/server/python/requirements.txt @@ -0,0 +1,2 @@ +python-rtmidi == 1.5.8 +pyinstaller diff --git a/src/python/rpn.py b/src/server/python/rpn.py similarity index 100% rename from src/python/rpn.py rename to src/server/python/rpn.py diff --git a/src/python/utils.py b/src/server/python/utils.py similarity index 100% rename from src/python/utils.py rename to src/server/python/utils.py diff --git a/src/server/server.js b/src/server/server.js deleted file mode 100644 index c1c01279..00000000 --- a/src/server/server.js +++ /dev/null @@ -1,261 +0,0 @@ -var settings = require('./settings'), - http = require('http'), - EventEmitter = require('events').EventEmitter, - eventEmitter = new EventEmitter(), - QRCode = require('qrcode'), - qrcode = '' - -function createServer(route) { - if (settings.read('use-ssl')) { - http = require('https') - require('./ssl') - return http.createServer(settings.read('ssl-certificate'), route) - - } else { - return http.createServer(route) - } -} - -var path = require('path'), - fs = require('fs'), - send = require('send'), - replaceStream = require('replacestream'), - auth = require('./auth'), - server = createServer(auth ? auth.check(httpRoute) : httpRoute), - Ipc = require('./ipc/server'), - ipc = new Ipc(server), - theme = require('./theme').init(), - zeroconf = require('./zeroconf'), - {resolveHomeDir} = require('./utils'), - prod = !process.argv[0].includes('node_modules'), - debug = settings.read('debug'), - osc = {}, - clients = {}, - httpCheckTimeout - - -var clientOptions = {} -if (settings.read('client-options')) { - for (var o of settings.read('client-options')) { - if (!o.includes('=')) continue - var [k, v] = o.split('=') - clientOptions[k] = v - } -} - -var resolveDirs = theme.files.map(x=>path.dirname(x)) -resolveDirs = resolveDirs.filter((x, index)=>{return resolveDirs.indexOf(x) === index}) -resolveDirs.push(settings.read('remote-root') || '') // remote-root / absolute - -function resolvePath(url, clientId) { - - var sessionPath - - if (ipc.clients[clientId]) { - sessionPath = path.dirname(ipc.clients[clientId].sessionPath) - } - - url = resolveHomeDir(url) - url = url.split('?')[0] - - for (var i = sessionPath ? -1 : 0; i < resolveDirs.length; i++) { - var p = i === -1 ? sessionPath : resolveDirs[i] - p = path.resolve(path.join(p, url)) - - if (fs.existsSync(p)) return p - } - - if (debug && !ipc.clients[clientId]) { - // safari seems to be picky with cookies - if (clientId === undefined) console.log(`(DEBUG, HTTP) Could not resolve requested url ${url} (client id not found in http cookies)`) - // this should never happen, but just in case... - // it happens when importing css file from theme - else console.log(`(DEBUG, HTTP) Requested url ${url} not resolved against session path (unregistered client id ${clientId})`) - } - - return false - -} - -function httpRoute(req, res) { - - res.sendFile = (path)=>{ - var fpath = path.split('?')[0] - if (!fs.existsSync(fpath)) throw `File "${fpath}" not found.` - return send(req, fpath).pipe(res) - } - - var url = req.url - - if (url === '/qrcode'){ - res.setHeader('Content-Type', 'image/svg+xml') - let str = qrcode, - buf = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from(str) : new Buffer(str) - res.write(buf) - res.end() - - } else if (url === '/' || url.indexOf('/?') === 0) { - - var ip = req.connection.remoteAddress.replace('::ffff:', '') - - fs.createReadStream(path.resolve(__dirname + '/../client/index.html')) - .pipe(replaceStream('', ` - `)) - .pipe(res) - - // res.sendFile(path.resolve(__dirname + '/../client/index.html')) - - } else { - - if ( - url.indexOf('__OSC_ASSET__=1') != -1 || - url.indexOf('open-stage-control-client.js.map') != -1 || - url.indexOf('/client/workers') != -1 - ) { - - // osc asset files - - if (url.indexOf('theme.css') != -1) { - - res.setHeader('Content-Type', 'text/css') - if (settings.read('theme')) { - let str = theme.get(), - buf = Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from(str) : new Buffer(str) - res.write(buf) - } else { - res.write('') - } - res.end() - - } else { - - if (prod) res.setHeader('Cache-Control', 'public, max-age=2592000') - try { - res.sendFile(path.resolve(__dirname + '/../' + url)) - return true - } catch(e) {} - - console.error(`(ERROR, HTTP) File not found: ${url}`) - res.writeHead(404) - res.end() - - } - - } else { - - // user files - - // windows absolute path fix - url = url.replace('_:_', ':') // escaped drive colon - url = url.replace(/^\/([^/]*:)/, '$1') // strip leading slash - - if (url.match(/.(svg|jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico|ttf|otf|woff|woff2|html|css|js)(\?[0-9]*)?$/i)) { - - // Resolution order: session path, theme path, absolute path - var id - if (req.headers.cookie) { - id = (req.headers.cookie.match(/client_id=([^;]+)/) || [])[1] - } - - resolvedPath = resolvePath(decodeURI(url), id) - - if (resolvedPath) { - try { - res.sendFile(resolvedPath) - return true - } catch(e) {} - } - - console.error(`(ERROR, HTTP) File not found: ${url}`) - res.writeHead(404) - res.end() - - } else if (url.includes('/osc-ping')) { - httpCheck(true) - } else { - res.writeHead(403) - res.end() - } - - } - - } -} - -server.on('error', (e)=>{ - if (e.code === 'EADDRINUSE') { - console.error(`(ERROR, HTTP) Could not open port ${oscInPort} (already in use) `) - } else { - console.error(`(ERROR, HTTP) ${e.message}`) - } -}) - -server.listen(settings.read('port') || 8080) - -http.get(settings.appAddresses()[0] + '/osc-ping', { - auth: settings.read('authentication'), - rejectUnauthorized: false -},()=>{}).on('error', ()=>{httpCheck(false)}) - -httpCheckTimeout = setTimeout(()=>{httpCheck(false)}, 5000) -function httpCheck(ok, error){ - if (!httpCheckTimeout) return - clearTimeout(httpCheckTimeout) - httpCheckTimeout = null - if (ok) { - console.log('(INFO) Server started, app available at \n ' + settings.appAddresses().join('\n ')) - eventEmitter.emit('serverStarted') - QRCode.toString(settings.appAddresses().pop(),{type:'svg', small: true, margin: 1}, (err, qr)=>{ - qrcode = qr - }) - } else { - if (error) { - console.error('(ERROR, HTTP) Server setup error: ' + error.message) - } - console.error('(ERROR, HTTP) Could not setup http server, maybe try a different port ?') - } -} - -zeroconf.publish({ - name: settings.infos.productName + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''), - type: 'http', - port: settings.read('port') || 8080 -}).on('error', (e)=>{ - console.error(`(ERROR, ZEROCONF) ${e.message}`) -}) - -var bindCallbacks = function(callbacks) { - - ipc.on('connection', function(client) { - - var clientInfos = {address: client.address, id: client.id} - - var customModule = settings.read('custom-module') - - for (let name in callbacks) { - client.on(name, (data)=>{ - if (customModule) { - osc.customModuleEventEmitter.emit(name, data, clientInfos) - } - callbacks[name](data, client.id) - }) - } - - }) - -} - -module.exports = { - ipc:ipc, - bindCallbacks:bindCallbacks, - clients:clients, - resolvePath:resolvePath, - eventEmitter:eventEmitter -} - -osc = require('./osc').server diff --git a/src/server/utils.js b/src/server/utils.js deleted file mode 100644 index 15d86318..00000000 --- a/src/server/utils.js +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = { - - deepCopy: function(obj) { - - var copy = obj - - if (obj === null) { - return obj - } - - if (typeof obj === 'object') { - copy = Array.isArray(obj) ? [] : {} - for (let key in obj) { - copy[key] = module.exports.deepCopy(obj[key]) - } - } - - return copy - - }, - - resolveHomeDir: function(p) { - // Resolve '~' to user's home directory - if (!p) return '' - return String(p).replace(/^(~|\/~)/, process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']) - } - - -} diff --git a/src/server/zeroconf.js b/src/server/zeroconf.js deleted file mode 100644 index 74aa0a99..00000000 --- a/src/server/zeroconf.js +++ /dev/null @@ -1,3 +0,0 @@ -var zeroconf = require('bonjour')() - -module.exports = zeroconf diff --git a/tests/test.js b/tests/test.js deleted file mode 100644 index 924f455d..00000000 --- a/tests/test.js +++ /dev/null @@ -1,64 +0,0 @@ -// Very simple test: load a session with 1 widget of each type -var fs = require('fs') - -// create tmp session file - -var session = {type: 'root', tabs:[{widgets:[]}]}, - sessionPath = 'test-session.json' - -require('../scripts/client-shim') - -var widgets = { - 'Basics':['button', 'switch', 'dropdown', 'menu', 'input', 'file'], - 'Containers':['panel', 'modal', 'clone', 'matrix', 'keyboard', 'patchbay'], - 'Frames':['frame', 'svg', 'html', 'image'], - 'Graphs':['plot','eq','visualizer'], - 'Indicators':['led', 'text'], - 'Pads':['xy','rgb','multixy', 'canvas'], - 'Sliders':['fader','knob', 'encoder', 'range'], - 'Scripts':['script', 'variable'], -} -for (let k in widgets) { - for (let type of widgets[k]) { - if (type !== 'tab' && type !== 'root' && type !== 'patchbaynode') { - console.log(type) - session.tabs[0].widgets.push({type: type}) - } - } -} - -fs.writeFileSync(sessionPath, JSON.stringify(session)) - - -// spawn o-s-c in headless mode and load tmp session - -var {spawn} = require('child_process') - -var proc = spawn('xvfb-run', `npm start -- -l ${sessionPath}`.split(' '), {detached: true}) - -proc.stdout.on('data', std) -proc.stderr.on('data', std) - - -function std(data){ - - if (data.includes('process error')) { - console.error(data.toString()) - console.log('\033[31m\n=> Test errored ✘\n\033[0m') - - end(true) - } - -} - -// timeout after 5s -> no error -setTimeout(()=>{ - console.log('\033[36m\n=> Test timeout without error ✔\n\033[0m') - end() -}, 5000) - -function end(fail){ - proc.kill() - fs.unlinkSync(sessionPath) - process.exit(fail ? 1 : 0) -}