@difizen/libro-jupyter 0.0.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/es/add-between-cell/add-between-cell-command-contribution.d.ts +14 -0
- package/es/add-between-cell/add-between-cell-command-contribution.d.ts.map +1 -0
- package/es/add-between-cell/add-between-cell-command-contribution.js +97 -0
- package/es/add-between-cell/add-between-cell.d.ts +5 -0
- package/es/add-between-cell/add-between-cell.d.ts.map +1 -0
- package/es/add-between-cell/add-between-cell.js +243 -0
- package/es/add-between-cell/index.d.ts +3 -0
- package/es/add-between-cell/index.d.ts.map +1 -0
- package/es/add-between-cell/index.js +2 -0
- package/es/add-between-cell/index.less +103 -0
- package/es/add-between-cell/module.d.ts +3 -0
- package/es/add-between-cell/module.d.ts.map +1 -0
- package/es/add-between-cell/module.js +8 -0
- package/es/cell/index.d.ts +3 -0
- package/es/cell/index.d.ts.map +1 -0
- package/es/cell/index.js +2 -0
- package/es/cell/jupyter-code-cell-model.d.ts +12 -0
- package/es/cell/jupyter-code-cell-model.d.ts.map +1 -0
- package/es/cell/jupyter-code-cell-model.js +56 -0
- package/es/cell/jupyter-code-cell-view.d.ts +18 -0
- package/es/cell/jupyter-code-cell-view.d.ts.map +1 -0
- package/es/cell/jupyter-code-cell-view.js +280 -0
- package/es/command/command-contribution.d.ts +10 -0
- package/es/command/command-contribution.d.ts.map +1 -0
- package/es/command/command-contribution.js +161 -0
- package/es/command/index.d.ts +3 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +2 -0
- package/es/command/keybinding-contribution.d.ts +8 -0
- package/es/command/keybinding-contribution.d.ts.map +1 -0
- package/es/command/keybinding-contribution.js +37 -0
- package/es/components/cell-execution-tip.d.ts +6 -0
- package/es/components/cell-execution-tip.d.ts.map +1 -0
- package/es/components/cell-execution-tip.js +69 -0
- package/es/components/cell-input-bottom-blank.d.ts +5 -0
- package/es/components/cell-input-bottom-blank.d.ts.map +1 -0
- package/es/components/cell-input-bottom-blank.js +21 -0
- package/es/components/icons.d.ts +5 -0
- package/es/components/icons.d.ts.map +1 -0
- package/es/components/icons.js +154 -0
- package/es/components/index.d.ts +4 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +3 -0
- package/es/components/index.less +82 -0
- package/es/config/config-contribution.d.ts +10 -0
- package/es/config/config-contribution.d.ts.map +1 -0
- package/es/config/config-contribution.js +50 -0
- package/es/config/config.d.ts +3 -0
- package/es/config/config.d.ts.map +1 -0
- package/es/config/config.js +11 -0
- package/es/config/index.d.ts +2 -0
- package/es/config/index.d.ts.map +1 -0
- package/es/config/index.js +1 -0
- package/es/configuration/index.d.ts +3 -0
- package/es/configuration/index.d.ts.map +1 -0
- package/es/configuration/index.js +2 -0
- package/es/configuration/libro-configuration-contribution.d.ts +5 -0
- package/es/configuration/libro-configuration-contribution.d.ts.map +1 -0
- package/es/configuration/libro-configuration-contribution.js +24 -0
- package/es/configuration/libro-configuration.d.ts +3 -0
- package/es/configuration/libro-configuration.d.ts.map +1 -0
- package/es/configuration/libro-configuration.js +12 -0
- package/es/contents/content-contribution.d.ts +7 -0
- package/es/contents/content-contribution.d.ts.map +1 -0
- package/es/contents/content-contribution.js +63 -0
- package/es/contents/index.d.ts +2 -0
- package/es/contents/index.d.ts.map +1 -0
- package/es/contents/index.js +1 -0
- package/es/file/file-name-alias.d.ts +7 -0
- package/es/file/file-name-alias.d.ts.map +1 -0
- package/es/file/file-name-alias.js +26 -0
- package/es/file/file-protocol.d.ts +8 -0
- package/es/file/file-protocol.d.ts.map +1 -0
- package/es/file/file-protocol.js +7 -0
- package/es/file/file-service.d.ts +31 -0
- package/es/file/file-service.d.ts.map +1 -0
- package/es/file/file-service.js +329 -0
- package/es/file/file-tree-label-provider.d.ts +13 -0
- package/es/file/file-tree-label-provider.d.ts.map +1 -0
- package/es/file/file-tree-label-provider.js +62 -0
- package/es/file/file-view/index.d.ts +14 -0
- package/es/file/file-view/index.d.ts.map +1 -0
- package/es/file/file-view/index.js +101 -0
- package/es/file/file-view/index.less +5 -0
- package/es/file/index.d.ts +7 -0
- package/es/file/index.d.ts.map +1 -0
- package/es/file/index.js +6 -0
- package/es/file/module.d.ts +3 -0
- package/es/file/module.d.ts.map +1 -0
- package/es/file/module.js +8 -0
- package/es/file/navigatable-view.d.ts +24 -0
- package/es/file/navigatable-view.d.ts.map +1 -0
- package/es/file/navigatable-view.js +151 -0
- package/es/file/open-handler-contribution.d.ts +11 -0
- package/es/file/open-handler-contribution.d.ts.map +1 -0
- package/es/file/open-handler-contribution.js +102 -0
- package/es/index.d.ts +32 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +31 -0
- package/es/keybind-instructions/index.d.ts +6 -0
- package/es/keybind-instructions/index.d.ts.map +1 -0
- package/es/keybind-instructions/index.js +5 -0
- package/es/keybind-instructions/index.less +177 -0
- package/es/keybind-instructions/keybind-instructions-contribution.d.ts +11 -0
- package/es/keybind-instructions/keybind-instructions-contribution.d.ts.map +1 -0
- package/es/keybind-instructions/keybind-instructions-contribution.js +84 -0
- package/es/keybind-instructions/keybind-instructions-icon.d.ts +3 -0
- package/es/keybind-instructions/keybind-instructions-icon.d.ts.map +1 -0
- package/es/keybind-instructions/keybind-instructions-icon.js +23 -0
- package/es/keybind-instructions/keybind-instructions-items.d.ts +14 -0
- package/es/keybind-instructions/keybind-instructions-items.d.ts.map +1 -0
- package/es/keybind-instructions/keybind-instructions-items.js +589 -0
- package/es/keybind-instructions/keybind-instructions-view.d.ts +16 -0
- package/es/keybind-instructions/keybind-instructions-view.d.ts.map +1 -0
- package/es/keybind-instructions/keybind-instructions-view.js +224 -0
- package/es/keybind-instructions/module.d.ts +3 -0
- package/es/keybind-instructions/module.d.ts.map +1 -0
- package/es/keybind-instructions/module.js +5 -0
- package/es/libro-jupyter-file-service.d.ts +106 -0
- package/es/libro-jupyter-file-service.d.ts.map +1 -0
- package/es/libro-jupyter-file-service.js +127 -0
- package/es/libro-jupyter-model.d.ts +49 -0
- package/es/libro-jupyter-model.d.ts.map +1 -0
- package/es/libro-jupyter-model.js +505 -0
- package/es/libro-jupyter-protocol.d.ts +38 -0
- package/es/libro-jupyter-protocol.d.ts.map +1 -0
- package/es/libro-jupyter-protocol.js +9 -0
- package/es/libro-jupyter-server-launch-manager.d.ts +11 -0
- package/es/libro-jupyter-server-launch-manager.d.ts.map +1 -0
- package/es/libro-jupyter-server-launch-manager.js +59 -0
- package/es/libro-jupyter-view.d.ts +10 -0
- package/es/libro-jupyter-view.d.ts.map +1 -0
- package/es/libro-jupyter-view.js +42 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +48 -0
- package/es/output/index.d.ts +2 -0
- package/es/output/index.d.ts.map +1 -0
- package/es/output/index.js +1 -0
- package/es/output/libro-jupyter-outputarea.d.ts +8 -0
- package/es/output/libro-jupyter-outputarea.d.ts.map +1 -0
- package/es/output/libro-jupyter-outputarea.js +77 -0
- package/es/rendermime/assets/plotly.svg +31 -0
- package/es/rendermime/index.d.ts +5 -0
- package/es/rendermime/index.d.ts.map +1 -0
- package/es/rendermime/index.js +4 -0
- package/es/rendermime/index.less +22 -0
- package/es/rendermime/module.d.ts +3 -0
- package/es/rendermime/module.d.ts.map +1 -0
- package/es/rendermime/module.js +3 -0
- package/es/rendermime/plotly-render.d.ts +7 -0
- package/es/rendermime/plotly-render.d.ts.map +1 -0
- package/es/rendermime/plotly-render.js +30 -0
- package/es/rendermime/plotly-renderers.d.ts +58 -0
- package/es/rendermime/plotly-renderers.d.ts.map +1 -0
- package/es/rendermime/plotly-renderers.js +211 -0
- package/es/rendermime/plotly-rendermime-contribution.d.ts +12 -0
- package/es/rendermime/plotly-rendermime-contribution.d.ts.map +1 -0
- package/es/rendermime/plotly-rendermime-contribution.js +22 -0
- package/es/theme/color-registry.d.ts +6 -0
- package/es/theme/color-registry.d.ts.map +1 -0
- package/es/theme/color-registry.js +393 -0
- package/es/theme/index.d.ts +2 -0
- package/es/theme/index.d.ts.map +1 -0
- package/es/theme/index.js +1 -0
- package/es/toolbar/index.d.ts +6 -0
- package/es/toolbar/index.d.ts.map +1 -0
- package/es/toolbar/index.js +5 -0
- package/es/toolbar/index.less +194 -0
- package/es/toolbar/kernel-selector-dropdown.d.ts +13 -0
- package/es/toolbar/kernel-selector-dropdown.d.ts.map +1 -0
- package/es/toolbar/kernel-selector-dropdown.js +165 -0
- package/es/toolbar/kernel-status-and-selector.d.ts +18 -0
- package/es/toolbar/kernel-status-and-selector.d.ts.map +1 -0
- package/es/toolbar/kernel-status-and-selector.js +164 -0
- package/es/toolbar/run-selector.d.ts +3 -0
- package/es/toolbar/run-selector.d.ts.map +1 -0
- package/es/toolbar/run-selector.js +98 -0
- package/es/toolbar/save-file-error-contribution.d.ts +5 -0
- package/es/toolbar/save-file-error-contribution.d.ts.map +1 -0
- package/es/toolbar/save-file-error-contribution.js +23 -0
- package/es/toolbar/save-file-error.d.ts +5 -0
- package/es/toolbar/save-file-error.d.ts.map +1 -0
- package/es/toolbar/save-file-error.js +27 -0
- package/es/toolbar/side-toolbar-run-selector.d.ts +3 -0
- package/es/toolbar/side-toolbar-run-selector.d.ts.map +1 -0
- package/es/toolbar/side-toolbar-run-selector.js +67 -0
- package/es/toolbar/toolbar-contribution.d.ts +9 -0
- package/es/toolbar/toolbar-contribution.d.ts.map +1 -0
- package/es/toolbar/toolbar-contribution.js +67 -0
- package/es/typings/index.d.ts +31 -0
- package/es/utils/index.d.ts +11 -0
- package/es/utils/index.d.ts.map +1 -0
- package/es/utils/index.js +47 -0
- package/package.json +75 -0
- package/src/add-between-cell/add-between-cell-command-contribution.ts +63 -0
- package/src/add-between-cell/add-between-cell.tsx +201 -0
- package/src/add-between-cell/index.less +103 -0
- package/src/add-between-cell/index.ts +2 -0
- package/src/add-between-cell/module.ts +13 -0
- package/src/cell/index.ts +2 -0
- package/src/cell/jupyter-code-cell-model.ts +36 -0
- package/src/cell/jupyter-code-cell-view.tsx +221 -0
- package/src/command/command-contribution.ts +163 -0
- package/src/command/index.ts +2 -0
- package/src/command/keybinding-contribution.ts +25 -0
- package/src/components/cell-execution-tip.tsx +107 -0
- package/src/components/cell-input-bottom-blank.tsx +24 -0
- package/src/components/icons.tsx +117 -0
- package/src/components/index.less +82 -0
- package/src/components/index.ts +3 -0
- package/src/config/config-contribution.ts +21 -0
- package/src/config/config.ts +14 -0
- package/src/config/index.ts +1 -0
- package/src/configuration/index.ts +2 -0
- package/src/configuration/libro-configuration-contribution.ts +11 -0
- package/src/configuration/libro-configuration.ts +14 -0
- package/src/contents/content-contribution.ts +32 -0
- package/src/contents/index.ts +1 -0
- package/src/file/file-name-alias.ts +15 -0
- package/src/file/file-protocol.ts +7 -0
- package/src/file/file-service.ts +179 -0
- package/src/file/file-tree-label-provider.ts +42 -0
- package/src/file/file-view/index.less +5 -0
- package/src/file/file-view/index.tsx +90 -0
- package/src/file/index.ts +6 -0
- package/src/file/module.ts +19 -0
- package/src/file/navigatable-view.tsx +93 -0
- package/src/file/open-handler-contribution.ts +44 -0
- package/src/index.ts +32 -0
- package/src/keybind-instructions/index.less +177 -0
- package/src/keybind-instructions/index.ts +5 -0
- package/src/keybind-instructions/keybind-instructions-contribution.ts +47 -0
- package/src/keybind-instructions/keybind-instructions-icon.tsx +28 -0
- package/src/keybind-instructions/keybind-instructions-items.tsx +597 -0
- package/src/keybind-instructions/keybind-instructions-view.tsx +239 -0
- package/src/keybind-instructions/module.ts +11 -0
- package/src/libro-jupyter-file-service.ts +158 -0
- package/src/libro-jupyter-model.ts +289 -0
- package/src/libro-jupyter-protocol.ts +59 -0
- package/src/libro-jupyter-server-launch-manager.ts +36 -0
- package/src/libro-jupyter-view.tsx +24 -0
- package/src/module.ts +105 -0
- package/src/output/index.ts +1 -0
- package/src/output/libro-jupyter-outputarea.tsx +71 -0
- package/src/rendermime/assets/plotly.svg +31 -0
- package/src/rendermime/index.less +13 -0
- package/src/rendermime/index.ts +4 -0
- package/src/rendermime/module.ts +7 -0
- package/src/rendermime/plotly-render.tsx +35 -0
- package/src/rendermime/plotly-renderers.ts +191 -0
- package/src/rendermime/plotly-rendermime-contribution.ts +15 -0
- package/src/theme/color-registry.ts +301 -0
- package/src/theme/index.ts +1 -0
- package/src/toolbar/index.less +194 -0
- package/src/toolbar/index.ts +5 -0
- package/src/toolbar/kernel-selector-dropdown.tsx +204 -0
- package/src/toolbar/kernel-status-and-selector.tsx +195 -0
- package/src/toolbar/run-selector.tsx +110 -0
- package/src/toolbar/save-file-error-contribution.ts +10 -0
- package/src/toolbar/save-file-error.tsx +35 -0
- package/src/toolbar/side-toolbar-run-selector.tsx +77 -0
- package/src/toolbar/toolbar-contribution.tsx +62 -0
- package/src/typings/index.d.ts +31 -0
- package/src/utils/index.ts +65 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
import { LirboContextKey } from '@difizen/libro-core';
|
|
18
|
+
import { inject, singleton } from '@difizen/mana-app';
|
|
19
|
+
import { getOrigin, prop, useInject } from '@difizen/mana-app';
|
|
20
|
+
import { l10n } from '@difizen/mana-l10n';
|
|
21
|
+
import { Input, Drawer, Table, Segmented } from 'antd';
|
|
22
|
+
import { forwardRef, useCallback, useState } from 'react';
|
|
23
|
+
import { LibroKeybindItems } from "./keybind-instructions-items.js";
|
|
24
|
+
import "./index.less";
|
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
var Search = Input.Search;
|
|
29
|
+
var getSearchResult = function getSearchResult(value, sourceData, targetData) {
|
|
30
|
+
sourceData.forEach(function (dataItem) {
|
|
31
|
+
if (typeof dataItem.actionDescription === 'string' && dataItem.actionDescription.indexOf(value) !== -1) {
|
|
32
|
+
var matchIndex = dataItem.actionDescription.indexOf(value);
|
|
33
|
+
targetData.push({
|
|
34
|
+
key: dataItem.key,
|
|
35
|
+
actionDescription: /*#__PURE__*/_jsxs(_Fragment, {
|
|
36
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
37
|
+
children: dataItem.actionDescription.substring(0, matchIndex)
|
|
38
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
39
|
+
className: "libro-keybind-search-match",
|
|
40
|
+
children: dataItem.actionDescription.substring(matchIndex, matchIndex + value.length)
|
|
41
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
42
|
+
children: dataItem.actionDescription.substring(matchIndex + value.length)
|
|
43
|
+
})]
|
|
44
|
+
}),
|
|
45
|
+
keybind: dataItem.keybind
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
export var KeybindInstrutionsService = (_dec = singleton(), _dec2 = inject(LirboContextKey), _dec3 = prop(), _dec4 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
51
|
+
function KeybindInstrutionsService() {
|
|
52
|
+
_classCallCheck(this, KeybindInstrutionsService);
|
|
53
|
+
_initializerDefineProperty(this, "contextKey", _descriptor, this);
|
|
54
|
+
this.isKeybindInstructionsMask = false;
|
|
55
|
+
_initializerDefineProperty(this, "searchCommandModeData", _descriptor2, this);
|
|
56
|
+
_initializerDefineProperty(this, "searchEditModeData", _descriptor3, this);
|
|
57
|
+
}
|
|
58
|
+
_createClass(KeybindInstrutionsService, [{
|
|
59
|
+
key: "dispose",
|
|
60
|
+
value: function dispose() {
|
|
61
|
+
this.searchCommandModeData = [];
|
|
62
|
+
this.searchEditModeData = [];
|
|
63
|
+
}
|
|
64
|
+
}]);
|
|
65
|
+
return KeybindInstrutionsService;
|
|
66
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "contextKey", [_dec2], {
|
|
67
|
+
configurable: true,
|
|
68
|
+
enumerable: true,
|
|
69
|
+
writable: true,
|
|
70
|
+
initializer: null
|
|
71
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "searchCommandModeData", [_dec3], {
|
|
72
|
+
configurable: true,
|
|
73
|
+
enumerable: true,
|
|
74
|
+
writable: true,
|
|
75
|
+
initializer: function initializer() {
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "searchEditModeData", [_dec4], {
|
|
79
|
+
configurable: true,
|
|
80
|
+
enumerable: true,
|
|
81
|
+
writable: true,
|
|
82
|
+
initializer: function initializer() {
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
})), _class2)) || _class);
|
|
86
|
+
var magicColumns = [{
|
|
87
|
+
title: '关键字',
|
|
88
|
+
dataIndex: 'value',
|
|
89
|
+
key: 'value'
|
|
90
|
+
}, {
|
|
91
|
+
title: '含义',
|
|
92
|
+
dataIndex: 'description',
|
|
93
|
+
key: 'description'
|
|
94
|
+
}];
|
|
95
|
+
var magics = [{
|
|
96
|
+
key: '1',
|
|
97
|
+
value: '%timeit',
|
|
98
|
+
description: '测试单行语句的执行时间'
|
|
99
|
+
}, {
|
|
100
|
+
key: '2',
|
|
101
|
+
value: '%%timeit',
|
|
102
|
+
description: '测试整个块中代码的执行时间'
|
|
103
|
+
}, {
|
|
104
|
+
key: '3',
|
|
105
|
+
value: '%run',
|
|
106
|
+
description: '调用外部python脚本'
|
|
107
|
+
}, {
|
|
108
|
+
key: '4',
|
|
109
|
+
value: '%pwd',
|
|
110
|
+
description: '查看当前工作目录'
|
|
111
|
+
}, {
|
|
112
|
+
key: '5',
|
|
113
|
+
value: '%ls',
|
|
114
|
+
description: '查看目录文件列表'
|
|
115
|
+
}, {
|
|
116
|
+
key: '6',
|
|
117
|
+
value: '%reset',
|
|
118
|
+
description: '清除全部变量'
|
|
119
|
+
}, {
|
|
120
|
+
key: '7',
|
|
121
|
+
value: '%who',
|
|
122
|
+
description: '查看所有全局变量的名称,若给定类型参数,只返回该类型的变量列表'
|
|
123
|
+
}, {
|
|
124
|
+
key: '8',
|
|
125
|
+
value: '%whos',
|
|
126
|
+
description: '显示所有的全局变量名称、类型、值/信息'
|
|
127
|
+
}, {
|
|
128
|
+
key: '9',
|
|
129
|
+
value: '%env',
|
|
130
|
+
description: '列出全部环境变量'
|
|
131
|
+
}];
|
|
132
|
+
export var KeybindInstrutionsComponent = /*#__PURE__*/forwardRef(function KeybindInstrutionsComponent(props, ref) {
|
|
133
|
+
var visible = props.visible,
|
|
134
|
+
close = props.close;
|
|
135
|
+
var _useState = useState('keybind'),
|
|
136
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
137
|
+
segment = _useState2[0],
|
|
138
|
+
setSegment = _useState2[1];
|
|
139
|
+
var keybindInstrutionsService = useInject(KeybindInstrutionsService);
|
|
140
|
+
var libroKeybindItems = useInject(LibroKeybindItems);
|
|
141
|
+
var handleClose = useCallback(function () {
|
|
142
|
+
close();
|
|
143
|
+
keybindInstrutionsService.contextKey.enableCommandMode();
|
|
144
|
+
keybindInstrutionsService.dispose();
|
|
145
|
+
}, [close, keybindInstrutionsService]);
|
|
146
|
+
var handleSearch = function handleSearch(value) {
|
|
147
|
+
keybindInstrutionsService.searchCommandModeData = [];
|
|
148
|
+
keybindInstrutionsService.searchEditModeData = [];
|
|
149
|
+
getSearchResult(value, libroKeybindItems.commandModeData, keybindInstrutionsService.searchCommandModeData);
|
|
150
|
+
getSearchResult(value, libroKeybindItems.editModeData, keybindInstrutionsService.searchEditModeData);
|
|
151
|
+
};
|
|
152
|
+
var commandModeDataSource = getOrigin(keybindInstrutionsService.searchCommandModeData.length > 0 ? keybindInstrutionsService.searchCommandModeData : libroKeybindItems.commandModeData);
|
|
153
|
+
var editModeDataSource = getOrigin(keybindInstrutionsService.searchEditModeData.length > 0 ? keybindInstrutionsService.searchEditModeData : libroKeybindItems.editModeData);
|
|
154
|
+
return /*#__PURE__*/_jsx("div", {
|
|
155
|
+
className: "libro-keybind-instructions-command",
|
|
156
|
+
ref: ref,
|
|
157
|
+
children: /*#__PURE__*/_jsxs(Drawer, {
|
|
158
|
+
title: /*#__PURE__*/_jsx(Segmented, {
|
|
159
|
+
value: segment,
|
|
160
|
+
onChange: function onChange(value) {
|
|
161
|
+
return setSegment(value);
|
|
162
|
+
},
|
|
163
|
+
options: [{
|
|
164
|
+
label: l10n.t('快捷键'),
|
|
165
|
+
value: 'keybind'
|
|
166
|
+
}, {
|
|
167
|
+
label: 'Magic 命令',
|
|
168
|
+
value: 'magic'
|
|
169
|
+
}]
|
|
170
|
+
}),
|
|
171
|
+
placement: "right",
|
|
172
|
+
onClose: handleClose,
|
|
173
|
+
width: "360px",
|
|
174
|
+
open: visible,
|
|
175
|
+
mask: true,
|
|
176
|
+
className: "libro-keybind-instructions-drawer",
|
|
177
|
+
maskClosable: true,
|
|
178
|
+
children: [segment === 'magic' && /*#__PURE__*/_jsx("div", {
|
|
179
|
+
className: "libro-magic-table",
|
|
180
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
181
|
+
size: "small",
|
|
182
|
+
columns: magicColumns,
|
|
183
|
+
dataSource: magics,
|
|
184
|
+
pagination: false,
|
|
185
|
+
rowKey: "key"
|
|
186
|
+
})
|
|
187
|
+
}), segment === 'keybind' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
188
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
189
|
+
className: "libro-keybind-instructions-command-search",
|
|
190
|
+
children: /*#__PURE__*/_jsx(Search, {
|
|
191
|
+
placeholder: l10n.t('搜索功能关键字'),
|
|
192
|
+
allowClear: true,
|
|
193
|
+
bordered: false,
|
|
194
|
+
size: "middle",
|
|
195
|
+
onSearch: handleSearch
|
|
196
|
+
})
|
|
197
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
198
|
+
className: "libro-keybind-instructions-table",
|
|
199
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
200
|
+
className: "libro-command-mode-keybind-instructions-table",
|
|
201
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
202
|
+
rowKey: "key",
|
|
203
|
+
columns: libroKeybindItems.commandModeActionColumns,
|
|
204
|
+
dataSource: commandModeDataSource,
|
|
205
|
+
pagination: false
|
|
206
|
+
})
|
|
207
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
208
|
+
className: "libro-edit-mode-keybind-instructions-table",
|
|
209
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
210
|
+
rowKey: "key",
|
|
211
|
+
columns: libroKeybindItems.editModeActionColumns,
|
|
212
|
+
dataSource: editModeDataSource,
|
|
213
|
+
pagination: false
|
|
214
|
+
})
|
|
215
|
+
})]
|
|
216
|
+
})]
|
|
217
|
+
})]
|
|
218
|
+
})
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
export var KeybindInstrutionModal = {
|
|
222
|
+
id: 'libro-keybind-instructions-modal',
|
|
223
|
+
component: KeybindInstrutionsComponent
|
|
224
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/keybind-instructions/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C,eAAO,MAAM,yBAAyB,YAIrC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ManaModule } from '@difizen/mana-app';
|
|
2
|
+
import { KeybindInstructionsContribution } from "./keybind-instructions-contribution.js";
|
|
3
|
+
import { LibroKeybindItems } from "./keybind-instructions-items.js";
|
|
4
|
+
import { KeybindInstrutionsService } from "./keybind-instructions-view.js";
|
|
5
|
+
export var KeybindInstructionsModule = ManaModule.create().register(KeybindInstrutionsService, LibroKeybindItems, KeybindInstructionsContribution);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { INotebookContent } from '@difizen/libro-common';
|
|
2
|
+
import type { IContentsModel } from '@difizen/libro-kernel';
|
|
3
|
+
import { ServerManager, ContentsManager } from '@difizen/libro-kernel';
|
|
4
|
+
import { Emitter } from '@difizen/mana-app';
|
|
5
|
+
import type { URI } from '@difizen/mana-app';
|
|
6
|
+
import type { Event as ManaEvent } from '@difizen/mana-app';
|
|
7
|
+
import { LibroFileService } from './libro-jupyter-protocol.js';
|
|
8
|
+
export interface BaseStat {
|
|
9
|
+
/**
|
|
10
|
+
* The unified resource identifier of this file or folder.
|
|
11
|
+
*/
|
|
12
|
+
resource: URI;
|
|
13
|
+
/**
|
|
14
|
+
* The name which is the last segment
|
|
15
|
+
* of the {{path}}.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* The size of the file.
|
|
20
|
+
*
|
|
21
|
+
* The value may or may not be resolved as
|
|
22
|
+
* it is optional.
|
|
23
|
+
*/
|
|
24
|
+
size?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The last modification date represented as millis from unix epoch.
|
|
27
|
+
*
|
|
28
|
+
* The value may or may not be resolved as
|
|
29
|
+
* it is optional.
|
|
30
|
+
*/
|
|
31
|
+
mtime?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The creation date represented as millis from unix epoch.
|
|
34
|
+
*
|
|
35
|
+
* The value may or may not be resolved as
|
|
36
|
+
* it is optional.
|
|
37
|
+
*/
|
|
38
|
+
ctime?: number;
|
|
39
|
+
/**
|
|
40
|
+
* A unique identifier that represents the
|
|
41
|
+
* current state of the file or directory.
|
|
42
|
+
*
|
|
43
|
+
* The value may or may not be resolved as
|
|
44
|
+
* it is optional.
|
|
45
|
+
*/
|
|
46
|
+
etag?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface BaseStatWithMetadata extends BaseStat {
|
|
49
|
+
mtime: number;
|
|
50
|
+
ctime: number;
|
|
51
|
+
etag: string;
|
|
52
|
+
size: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A file resource with meta information.
|
|
56
|
+
*/
|
|
57
|
+
export interface FileStat extends BaseStat {
|
|
58
|
+
/**
|
|
59
|
+
* The resource is a file.
|
|
60
|
+
*/
|
|
61
|
+
isFile: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The resource is a directory.
|
|
64
|
+
*/
|
|
65
|
+
isDirectory: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The resource is a symbolic link.
|
|
68
|
+
*/
|
|
69
|
+
isSymbolicLink: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The children of the file stat or undefined if none.
|
|
72
|
+
*/
|
|
73
|
+
children?: FileStat[];
|
|
74
|
+
}
|
|
75
|
+
export interface FileStatWithMetadata extends FileStat, BaseStatWithMetadata {
|
|
76
|
+
mtime: number;
|
|
77
|
+
ctime: number;
|
|
78
|
+
etag: string;
|
|
79
|
+
size: number;
|
|
80
|
+
type?: number;
|
|
81
|
+
children?: FileStatWithMetadata[];
|
|
82
|
+
}
|
|
83
|
+
export interface FileMeta extends Omit<FileStatWithMetadata, 'children' | 'resource'> {
|
|
84
|
+
resource: string;
|
|
85
|
+
children?: FileMeta[];
|
|
86
|
+
}
|
|
87
|
+
export declare class LibroFileError extends Error {
|
|
88
|
+
protected errorCause?: string;
|
|
89
|
+
constructor(message: string, errorCause?: string);
|
|
90
|
+
}
|
|
91
|
+
export declare class LibroJupyterFileService implements LibroFileService {
|
|
92
|
+
protected readonly contentsManager: ContentsManager;
|
|
93
|
+
protected serverManager: ServerManager;
|
|
94
|
+
fileSaveErrorEmitter: Emitter<Partial<IContentsModel> & {
|
|
95
|
+
msg?: string;
|
|
96
|
+
cause?: string;
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* A signal emitted when the file save error.
|
|
100
|
+
*/
|
|
101
|
+
get fileSaveError(): ManaEvent<Partial<IContentsModel>>;
|
|
102
|
+
constructor(contentsManager: ContentsManager, serverManager: ServerManager);
|
|
103
|
+
read(path: string): Promise<IContentsModel | undefined>;
|
|
104
|
+
write(notebookContent: INotebookContent, currentFileContents: IContentsModel): Promise<IContentsModel | undefined>;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=libro-jupyter-file-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-jupyter-file-service.d.ts","sourceRoot":"","sources":["../src/libro-jupyter-file-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;IAEd;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAqB,SAAQ,QAAQ;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,oBAAqB,SAAQ,QAAQ,EAAE,oBAAoB;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACnC;AACD,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IACnF,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,SAAS,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;gBAClB,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAIjD;AAED,qBACa,uBAAwB,YAAW,gBAAgB;IAC9D,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IACpD,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACvC,oBAAoB,EAAE,OAAO,CAC3B,OAAO,CAAC,cAAc,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAC3D,CAAC;IAEF;;OAEG;IACH,IAAI,aAAa,IAAI,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAEtD;gBAIC,eAAe,EAAE,eAAe,EAEhC,aAAa,EAAE,aAAa;IASxB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAKvD,KAAK,CACT,eAAe,EAAE,gBAAgB,EACjC,mBAAmB,EAAE,cAAc,GAClC,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;CAYvC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _dec, _class2;
|
|
3
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
5
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
6
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
14
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
15
|
+
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
16
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
17
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
+
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
19
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
|
+
import { ServerManager, ContentsManager } from '@difizen/libro-kernel';
|
|
22
|
+
import { Emitter } from '@difizen/mana-app';
|
|
23
|
+
import { inject, singleton } from '@difizen/mana-app';
|
|
24
|
+
import { LibroFileService } from "./libro-jupyter-protocol.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A file resource with meta information.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
export var LibroFileError = /*#__PURE__*/function (_Error) {
|
|
31
|
+
_inherits(LibroFileError, _Error);
|
|
32
|
+
var _super = _createSuper(LibroFileError);
|
|
33
|
+
function LibroFileError(message, errorCause) {
|
|
34
|
+
var _this;
|
|
35
|
+
_classCallCheck(this, LibroFileError);
|
|
36
|
+
_this = _super.call(this, message);
|
|
37
|
+
_this.errorCause = void 0;
|
|
38
|
+
_this.errorCause = errorCause;
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
return _createClass(LibroFileError);
|
|
42
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
43
|
+
export var LibroJupyterFileService = (_dec = singleton({
|
|
44
|
+
contrib: LibroFileService
|
|
45
|
+
}), _dec(_class2 = /*#__PURE__*/function () {
|
|
46
|
+
function LibroJupyterFileService(contentsManager, serverManager) {
|
|
47
|
+
_classCallCheck(this, LibroJupyterFileService);
|
|
48
|
+
this.contentsManager = void 0;
|
|
49
|
+
this.serverManager = void 0;
|
|
50
|
+
this.fileSaveErrorEmitter = void 0;
|
|
51
|
+
this.contentsManager = contentsManager;
|
|
52
|
+
this.serverManager = serverManager;
|
|
53
|
+
this.fileSaveErrorEmitter = new Emitter();
|
|
54
|
+
}
|
|
55
|
+
LibroJupyterFileService = inject(ServerManager)(LibroJupyterFileService, undefined, 1) || LibroJupyterFileService;
|
|
56
|
+
LibroJupyterFileService = inject(ContentsManager)(LibroJupyterFileService, undefined, 0) || LibroJupyterFileService;
|
|
57
|
+
_createClass(LibroJupyterFileService, [{
|
|
58
|
+
key: "fileSaveError",
|
|
59
|
+
get:
|
|
60
|
+
/**
|
|
61
|
+
* A signal emitted when the file save error.
|
|
62
|
+
*/
|
|
63
|
+
function get() {
|
|
64
|
+
return this.fileSaveErrorEmitter.event;
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
key: "read",
|
|
68
|
+
value: function () {
|
|
69
|
+
var _read = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path) {
|
|
70
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
71
|
+
while (1) switch (_context.prev = _context.next) {
|
|
72
|
+
case 0:
|
|
73
|
+
_context.next = 2;
|
|
74
|
+
return this.serverManager.ready;
|
|
75
|
+
case 2:
|
|
76
|
+
_context.next = 4;
|
|
77
|
+
return this.contentsManager.get(path);
|
|
78
|
+
case 4:
|
|
79
|
+
return _context.abrupt("return", _context.sent);
|
|
80
|
+
case 5:
|
|
81
|
+
case "end":
|
|
82
|
+
return _context.stop();
|
|
83
|
+
}
|
|
84
|
+
}, _callee, this);
|
|
85
|
+
}));
|
|
86
|
+
function read(_x) {
|
|
87
|
+
return _read.apply(this, arguments);
|
|
88
|
+
}
|
|
89
|
+
return read;
|
|
90
|
+
}()
|
|
91
|
+
}, {
|
|
92
|
+
key: "write",
|
|
93
|
+
value: function () {
|
|
94
|
+
var _write = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(notebookContent, currentFileContents) {
|
|
95
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
96
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
97
|
+
case 0:
|
|
98
|
+
_context2.next = 2;
|
|
99
|
+
return this.serverManager.ready;
|
|
100
|
+
case 2:
|
|
101
|
+
_context2.prev = 2;
|
|
102
|
+
_context2.next = 5;
|
|
103
|
+
return this.contentsManager.save(currentFileContents.path, {
|
|
104
|
+
type: currentFileContents.type,
|
|
105
|
+
content: notebookContent,
|
|
106
|
+
format: currentFileContents.format
|
|
107
|
+
});
|
|
108
|
+
case 5:
|
|
109
|
+
return _context2.abrupt("return", _context2.sent);
|
|
110
|
+
case 8:
|
|
111
|
+
_context2.prev = 8;
|
|
112
|
+
_context2.t0 = _context2["catch"](2);
|
|
113
|
+
throw new LibroFileError(_context2.t0.message, 'jupyter service save error');
|
|
114
|
+
case 11:
|
|
115
|
+
case "end":
|
|
116
|
+
return _context2.stop();
|
|
117
|
+
}
|
|
118
|
+
}, _callee2, this, [[2, 8]]);
|
|
119
|
+
}));
|
|
120
|
+
function write(_x2, _x3) {
|
|
121
|
+
return _write.apply(this, arguments);
|
|
122
|
+
}
|
|
123
|
+
return write;
|
|
124
|
+
}()
|
|
125
|
+
}]);
|
|
126
|
+
return LibroJupyterFileService;
|
|
127
|
+
}()) || _class2);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LibroModel } from '@difizen/libro-core';
|
|
2
|
+
import type { IContentsModel, ExecutableNotebookModel, IContentsCheckpointModel, IKernelConnection } from '@difizen/libro-kernel';
|
|
3
|
+
import { LibroKernelConnectionManager, ServerManager, ContentsManager, ServerConnection } from '@difizen/libro-kernel';
|
|
4
|
+
import { ModalService } from '@difizen/mana-app';
|
|
5
|
+
import { Deferred } from '@difizen/mana-app';
|
|
6
|
+
import { LibroFileService } from './libro-jupyter-protocol.js';
|
|
7
|
+
type IModel = IContentsModel;
|
|
8
|
+
export declare class LibroJupyterModel extends LibroModel implements ExecutableNotebookModel {
|
|
9
|
+
protected libroFileService: LibroFileService;
|
|
10
|
+
get fileService(): LibroFileService;
|
|
11
|
+
currentFileContents: IModel;
|
|
12
|
+
protected kernelSelect: string;
|
|
13
|
+
protected kernelStatus: string;
|
|
14
|
+
kernelConnection?: IKernelConnection;
|
|
15
|
+
lspEnabled: boolean;
|
|
16
|
+
protected kernelConnectionManager: LibroKernelConnectionManager;
|
|
17
|
+
protected serverManager: ServerManager;
|
|
18
|
+
protected serverConnection: ServerConnection;
|
|
19
|
+
protected readonly contentsManager: ContentsManager;
|
|
20
|
+
protected readonly modalService: ModalService;
|
|
21
|
+
constructor(libroFileService: LibroFileService, kernelConnectionManager: LibroKernelConnectionManager, serverManager: ServerManager, serverConnection: ServerConnection, contentsManager: ContentsManager, modalService: ModalService);
|
|
22
|
+
get isKernelIdle(): boolean | undefined;
|
|
23
|
+
get kernelSelection(): string;
|
|
24
|
+
set kernelSelection(value: string);
|
|
25
|
+
get currentKernelStatus(): string;
|
|
26
|
+
set currentKernelStatus(value: string);
|
|
27
|
+
protected kcDeferred: Deferred<IKernelConnection>;
|
|
28
|
+
get kcReady(): Promise<IKernelConnection>;
|
|
29
|
+
kernelConnecting: boolean | undefined;
|
|
30
|
+
filePath: string;
|
|
31
|
+
protected last_modified: string;
|
|
32
|
+
get lastModified(): string;
|
|
33
|
+
set lastModified(value: string);
|
|
34
|
+
latestCheckPointModel: IContentsCheckpointModel;
|
|
35
|
+
createCheckpoint(): Promise<void>;
|
|
36
|
+
listCheckpoints(): Promise<void>;
|
|
37
|
+
restoreCheckpoint(checkpointID: string): Promise<void>;
|
|
38
|
+
deleteCheckpoint(checkpointID: string): Promise<void>;
|
|
39
|
+
startKernelConnection(): void;
|
|
40
|
+
saveNotebookContent(): Promise<void>;
|
|
41
|
+
canRun(): boolean;
|
|
42
|
+
interrupt(): Promise<void>;
|
|
43
|
+
shutdown(): Promise<void>;
|
|
44
|
+
restart(): Promise<void>;
|
|
45
|
+
reconnect(): Promise<void>;
|
|
46
|
+
findRunningCell(): void;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=libro-jupyter-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-jupyter-model.d.ts","sourceRoot":"","sources":["../src/libro-jupyter-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,4BAA4B,EAC5B,aAAa,EACb,eAAe,EACf,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAQ,YAAY,EAAa,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EACL,gBAAgB,EAEjB,MAAM,6BAA6B,CAAC;AAIrC,KAAK,MAAM,GAAG,cAAc,CAAC;AAC7B,qBACa,iBAAkB,SAAQ,UAAW,YAAW,uBAAuB;IAClF,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE7C,IAAI,WAAW,qBAEd;IAGD,mBAAmB,EAAE,MAAM,CAAC;IAE5B,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAE/B,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAE/B,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IAGrC,UAAU,UAAS;IAEnB,SAAS,CAAC,uBAAuB,EAAE,4BAA4B,CAAC;IAChE,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACvC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IACpD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;gBAGlB,gBAAgB,EAAE,gBAAgB,EAE5D,uBAAuB,EAAE,4BAA4B,EAC9B,aAAa,EAAE,aAAa,EACzB,gBAAgB,EAAE,gBAAgB,EACnC,eAAe,EAAE,eAAe,EACnC,YAAY,EAAE,YAAY;IAalD,IAAI,YAAY,wBAEf;IAED,IAAI,eAAe,IAIQ,MAAM,CAFhC;IAED,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED,IAAI,mBAAmB,IAIQ,MAAM,CAFpC;IAED,IAAI,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAEpC;IACD,SAAS,CAAC,UAAU,8BAAqC;IACzD,IAAI,OAAO,+BAEV;IAGD,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAC;IAGtC,QAAQ,SAAM;IAEd,SAAS,CAAC,aAAa,SAAM;IAE7B,IAAI,YAAY,IAIQ,MAAM,CAF7B;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED,qBAAqB,EAAE,wBAAwB,CAAC;IAE1C,gBAAgB;IAMhB,eAAe;IAIf,iBAAiB,CAAC,YAAY,EAAE,MAAM;IAItC,gBAAgB,CAAC,YAAY,EAAE,MAAM;IAI3C,qBAAqB;IA6BN,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAuD1C,MAAM;IAcT,SAAS;IAQT,QAAQ;IAUR,OAAO;IAoBP,SAAS;IAQf,eAAe;CAYhB"}
|