occam-dom 4.0.16 → 5.0.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/bin/main.js +15 -0
- package/example.js +37842 -0
- package/index.html +47 -0
- package/lib/constants.js +13 -0
- package/lib/example/utilities/token.js +28 -0
- package/lib/example/view/div/sizeable.js +39 -0
- package/lib/example/view/input/expressionString.js +142 -0
- package/lib/example/view/input/maximumDepth.js +143 -0
- package/lib/example/view/input.js +39 -0
- package/lib/example/view/subHeading.js +39 -0
- package/lib/example/view/textarea/content.js +142 -0
- package/lib/example/view/textarea/nodes.js +155 -0
- package/lib/example/view/textarea/parseTree.js +166 -0
- package/lib/example/view/textarea.js +39 -0
- package/lib/example/view.js +239 -0
- package/lib/example.js +19 -0
- package/lib/expression/bnf.js +14 -0
- package/lib/expression/entries.js +27 -0
- package/lib/expression/lexer.js +145 -0
- package/lib/expression/parser.js +134 -0
- package/lib/expression.js +113 -0
- package/lib/index.js +39 -0
- package/lib/path.js +69 -0
- package/lib/query.js +216 -0
- package/lib/ruleNames.js +54 -0
- package/lib/spread.js +113 -0
- package/lib/subExpression.js +101 -0
- package/lib/utilities/array.js +67 -0
- package/lib/utilities/node.js +334 -0
- package/lib/utilities/query.js +39 -0
- package/package.json +1 -1
- package/src/constants.js +3 -0
- package/src/example/utilities/token.js +19 -0
- package/src/example/view/div/sizeable.js +12 -0
- package/src/example/view/input/expressionString.js +33 -0
- package/src/example/view/input/maximumDepth.js +35 -0
- package/src/example/view/input.js +14 -0
- package/src/example/view/subHeading.js +16 -0
- package/src/example/view/textarea/content.js +33 -0
- package/src/example/view/textarea/nodes.js +55 -0
- package/src/example/view/textarea/parseTree.js +46 -0
- package/src/example/view/textarea.js +18 -0
- package/src/example/view.js +125 -0
- package/src/example.js +21 -0
- package/src/expression/bnf.js +63 -0
- package/src/expression/entries.js +18 -0
- package/src/expression/lexer.js +35 -0
- package/src/expression/parser.js +15 -0
- package/src/expression.js +82 -0
- package/src/index.js +7 -0
- package/src/path.js +32 -0
- package/src/query.js +207 -0
- package/src/ruleNames.js +12 -0
- package/src/spread.js +104 -0
- package/src/subExpression.js +52 -0
- package/src/utilities/array.js +30 -0
- package/src/utilities/node.js +454 -0
- package/src/utilities/query.js +22 -0
package/index.html
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Occam DOM</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<style>
|
|
7
|
+
|
|
8
|
+
*,
|
|
9
|
+
*::after,
|
|
10
|
+
*::before {
|
|
11
|
+
border: 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
line-height: 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html {
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
</style>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
|
|
26
|
+
<script src="example.js"> </script>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
|
|
30
|
+
var xmlHttpRequest = new XMLHttpRequest();
|
|
31
|
+
|
|
32
|
+
xmlHttpRequest.onreadystatechange = function() {
|
|
33
|
+
if (xmlHttpRequest.readyState == 4) {
|
|
34
|
+
if (xmlHttpRequest.status == 200) {
|
|
35
|
+
location.reload();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
xmlHttpRequest.open("GET", "/live-reload");
|
|
41
|
+
|
|
42
|
+
xmlHttpRequest.send();
|
|
43
|
+
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
package/lib/constants.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "EMPTY_STRING", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return EMPTY_STRING;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var EMPTY_STRING = "";
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25zdGFudHMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydCBjb25zdCBFTVBUWV9TVFJJTkcgPSBcIlwiO1xuIl0sIm5hbWVzIjpbIkVNUFRZX1NUUklORyJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBRWFBOzs7ZUFBQUE7OztBQUFOLElBQU1BLGVBQWUifQ==
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
tokenIndexFromTerminalNodeAndTokens: function() {
|
|
13
|
+
return tokenIndexFromTerminalNodeAndTokens;
|
|
14
|
+
},
|
|
15
|
+
tokenIndexesFromNonTerminalNodeAndTokens: function() {
|
|
16
|
+
return tokenIndexesFromNonTerminalNodeAndTokens;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function tokenIndexFromTerminalNodeAndTokens(terminalNode, tokens) {
|
|
20
|
+
var significantToken = terminalNode.getSignificantToken(), significantTokenIndex = tokens.indexOf(significantToken), tokenIndex = "(".concat(significantTokenIndex, ")");
|
|
21
|
+
return tokenIndex;
|
|
22
|
+
}
|
|
23
|
+
function tokenIndexesFromNonTerminalNodeAndTokens(nonTerminalNode, tokens) {
|
|
24
|
+
var firstSignificantTokenIndex = nonTerminalNode.getFirstSignificantTokenIndex(tokens), lastSignificantTokenIndex = nonTerminalNode.getLastSignificantTokenIndex(tokens), tokenIndexes = firstSignificantTokenIndex !== lastSignificantTokenIndex ? "(".concat(firstSignificantTokenIndex, "-").concat(lastSignificantTokenIndex, ")") : "(".concat(firstSignificantTokenIndex, ")");
|
|
25
|
+
return tokenIndexes;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3V0aWxpdGllcy90b2tlbi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIHRva2VuSW5kZXhGcm9tVGVybWluYWxOb2RlQW5kVG9rZW5zKHRlcm1pbmFsTm9kZSwgdG9rZW5zKSB7XG4gIGNvbnN0IHNpZ25pZmljYW50VG9rZW4gPSB0ZXJtaW5hbE5vZGUuZ2V0U2lnbmlmaWNhbnRUb2tlbigpLFxuICAgICAgICBzaWduaWZpY2FudFRva2VuSW5kZXggPSB0b2tlbnMuaW5kZXhPZihzaWduaWZpY2FudFRva2VuKSxcbiAgICAgICAgdG9rZW5JbmRleCA9IGAoJHtzaWduaWZpY2FudFRva2VuSW5kZXh9KWA7XG5cbiAgcmV0dXJuIHRva2VuSW5kZXg7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB0b2tlbkluZGV4ZXNGcm9tTm9uVGVybWluYWxOb2RlQW5kVG9rZW5zKG5vblRlcm1pbmFsTm9kZSwgdG9rZW5zKSB7XG4gIGNvbnN0IGZpcnN0U2lnbmlmaWNhbnRUb2tlbkluZGV4ID0gbm9uVGVybWluYWxOb2RlLmdldEZpcnN0U2lnbmlmaWNhbnRUb2tlbklu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BQVksRUFBRUMsTUFBTTtJQUN0RSxJQUFNQyxtQkFBbUJGLGFBQWFHLG1CQUFtQixJQUNuREMsd0JBQXdCSCxPQUFPSSxPQUFPLENBQUNILG1CQUN2Q0ksYUFBYSxBQUFDLElBQXlCLE9BQXRCRix1QkFBc0I7SUFFN0MsT0FBT0U7QUFDVDtBQUVPLFNBQVNQLHlDQUF5Q1EsZUFBZSxFQUFFTixNQUFNO0lBQzlFLElBQU1PLDZCQUE2QkQsZ0JBQWdCRSw2QkFBNkIsQ0FBQ1IsU0FDM0VTLDRCQUE0QkgsZ0JBQWdCSSw0QkFBNEIsQ0FBQ1YsU0FDekVXLGVBQWUsQUFBQ0osK0JBQStCRSw0QkFDL0IsQUFBQyxJQUFpQ0EsT0FBOUJGLDRCQUEyQixLQUE2QixPQUExQkUsMkJBQTBCLE9BQzFELEFBQUMsSUFBOEIsT0FBM0JGLDRCQUEyQjtJQUV2RCxPQUFPSTtBQUNUIn0=
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
var _easylayout = require("easy-layout");
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function _tagged_template_literal(strings, raw) {
|
|
19
|
+
if (!raw) {
|
|
20
|
+
raw = strings.slice(0);
|
|
21
|
+
}
|
|
22
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
23
|
+
raw: {
|
|
24
|
+
value: Object.freeze(raw)
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
function _templateObject() {
|
|
29
|
+
var data = _tagged_template_literal([
|
|
30
|
+
"\n\n width: 64rem;\n min-width: 24rem;\n \n"
|
|
31
|
+
]);
|
|
32
|
+
_templateObject = function _templateObject() {
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
37
|
+
var _default = (0, _easywithstyle.default)(_easylayout.SizeableDiv)(_templateObject());
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L3NpemVhYmxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBTaXplYWJsZURpdiB9IGZyb20gXCJlYXN5LWxheW91dFwiO1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoU2l6ZWFibGVEaXYpYFxuXG4gIHdpZHRoOiA2NHJlbTtcbiAgbWluLXdpZHRoOiAyNHJlbTtcbiAgXG5gO1xuIl0sIm5hbWVzIjpbIndpdGhTdHlsZSIsIlNpemVhYmxlRGl2Il0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFNQTs7O2VBQUE7OztvRUFKc0I7MEJBRU07Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFFNUIsV0FBZUEsSUFBQUEsc0JBQVMsRUFBQ0MsdUJBQVcifQ==
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ExpressionStringInput;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _input = /*#__PURE__*/ _interop_require_default(require("../input"));
|
|
12
|
+
function _assert_this_initialized(self) {
|
|
13
|
+
if (self === void 0) {
|
|
14
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
+
}
|
|
16
|
+
return self;
|
|
17
|
+
}
|
|
18
|
+
function _call_super(_this, derived, args) {
|
|
19
|
+
derived = _get_prototype_of(derived);
|
|
20
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
+
}
|
|
22
|
+
function _class_call_check(instance, Constructor) {
|
|
23
|
+
if (!(instance instanceof Constructor)) {
|
|
24
|
+
throw new TypeError("Cannot call a class as a function");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function _defineProperties(target, props) {
|
|
28
|
+
for(var i = 0; i < props.length; i++){
|
|
29
|
+
var descriptor = props[i];
|
|
30
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
+
descriptor.configurable = true;
|
|
32
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
+
return Constructor;
|
|
40
|
+
}
|
|
41
|
+
function _define_property(obj, key, value) {
|
|
42
|
+
if (key in obj) {
|
|
43
|
+
Object.defineProperty(obj, key, {
|
|
44
|
+
value: value,
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true,
|
|
47
|
+
writable: true
|
|
48
|
+
});
|
|
49
|
+
} else {
|
|
50
|
+
obj[key] = value;
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
function _get_prototype_of(o) {
|
|
55
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
+
};
|
|
58
|
+
return _get_prototype_of(o);
|
|
59
|
+
}
|
|
60
|
+
function _inherits(subClass, superClass) {
|
|
61
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
+
}
|
|
64
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
+
constructor: {
|
|
66
|
+
value: subClass,
|
|
67
|
+
writable: true,
|
|
68
|
+
configurable: true
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
+
}
|
|
73
|
+
function _interop_require_default(obj) {
|
|
74
|
+
return obj && obj.__esModule ? obj : {
|
|
75
|
+
default: obj
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function _possible_constructor_return(self, call) {
|
|
79
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
80
|
+
return call;
|
|
81
|
+
}
|
|
82
|
+
return _assert_this_initialized(self);
|
|
83
|
+
}
|
|
84
|
+
function _set_prototype_of(o, p) {
|
|
85
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
+
o.__proto__ = p;
|
|
87
|
+
return o;
|
|
88
|
+
};
|
|
89
|
+
return _set_prototype_of(o, p);
|
|
90
|
+
}
|
|
91
|
+
function _type_of(obj) {
|
|
92
|
+
"@swc/helpers - typeof";
|
|
93
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
+
}
|
|
95
|
+
function _is_native_reflect_construct() {
|
|
96
|
+
try {
|
|
97
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
+
} catch (_) {}
|
|
99
|
+
return (_is_native_reflect_construct = function() {
|
|
100
|
+
return !!result;
|
|
101
|
+
})();
|
|
102
|
+
}
|
|
103
|
+
var ExpressionStringInput = /*#__PURE__*/ function(Input) {
|
|
104
|
+
_inherits(ExpressionStringInput, Input);
|
|
105
|
+
function ExpressionStringInput() {
|
|
106
|
+
_class_call_check(this, ExpressionStringInput);
|
|
107
|
+
return _call_super(this, ExpressionStringInput, arguments);
|
|
108
|
+
}
|
|
109
|
+
_create_class(ExpressionStringInput, [
|
|
110
|
+
{
|
|
111
|
+
key: "getExpressionString",
|
|
112
|
+
value: function getExpressionString() {
|
|
113
|
+
var value = this.getValue(), expression = value; ///
|
|
114
|
+
return expression;
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "setExpressionString",
|
|
119
|
+
value: function setExpressionString(expressionString) {
|
|
120
|
+
var value = expressionString; ///
|
|
121
|
+
this.setValue(value);
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
key: "parentContext",
|
|
126
|
+
value: function parentContext() {
|
|
127
|
+
var getExpressionString = this.getExpressionString.bind(this), setExpressionString = this.setExpressionString.bind(this); ///;
|
|
128
|
+
return {
|
|
129
|
+
getExpressionString: getExpressionString,
|
|
130
|
+
setExpressionString: setExpressionString
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]);
|
|
135
|
+
return ExpressionStringInput;
|
|
136
|
+
}(_input.default);
|
|
137
|
+
_define_property(ExpressionStringInput, "defaultProperties", {
|
|
138
|
+
className: "expression-string",
|
|
139
|
+
spellCheck: "false"
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvaW5wdXQvZXhwcmVzc2lvblN0cmluZy5qcyJdL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4Qm1CVix1QkF3QlpXLHFCQUFvQjtJQUN6QkMsV0FBVztJQUNYQyxZQUFZO0FBQ2QifQ==
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return MaximumDepthInput;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _input = /*#__PURE__*/ _interop_require_default(require("../input"));
|
|
12
|
+
function _assert_this_initialized(self) {
|
|
13
|
+
if (self === void 0) {
|
|
14
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
+
}
|
|
16
|
+
return self;
|
|
17
|
+
}
|
|
18
|
+
function _call_super(_this, derived, args) {
|
|
19
|
+
derived = _get_prototype_of(derived);
|
|
20
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
+
}
|
|
22
|
+
function _class_call_check(instance, Constructor) {
|
|
23
|
+
if (!(instance instanceof Constructor)) {
|
|
24
|
+
throw new TypeError("Cannot call a class as a function");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function _defineProperties(target, props) {
|
|
28
|
+
for(var i = 0; i < props.length; i++){
|
|
29
|
+
var descriptor = props[i];
|
|
30
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
+
descriptor.configurable = true;
|
|
32
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
+
return Constructor;
|
|
40
|
+
}
|
|
41
|
+
function _define_property(obj, key, value) {
|
|
42
|
+
if (key in obj) {
|
|
43
|
+
Object.defineProperty(obj, key, {
|
|
44
|
+
value: value,
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true,
|
|
47
|
+
writable: true
|
|
48
|
+
});
|
|
49
|
+
} else {
|
|
50
|
+
obj[key] = value;
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
function _get_prototype_of(o) {
|
|
55
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
+
};
|
|
58
|
+
return _get_prototype_of(o);
|
|
59
|
+
}
|
|
60
|
+
function _inherits(subClass, superClass) {
|
|
61
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
+
}
|
|
64
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
+
constructor: {
|
|
66
|
+
value: subClass,
|
|
67
|
+
writable: true,
|
|
68
|
+
configurable: true
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
+
}
|
|
73
|
+
function _interop_require_default(obj) {
|
|
74
|
+
return obj && obj.__esModule ? obj : {
|
|
75
|
+
default: obj
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function _possible_constructor_return(self, call) {
|
|
79
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
80
|
+
return call;
|
|
81
|
+
}
|
|
82
|
+
return _assert_this_initialized(self);
|
|
83
|
+
}
|
|
84
|
+
function _set_prototype_of(o, p) {
|
|
85
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
+
o.__proto__ = p;
|
|
87
|
+
return o;
|
|
88
|
+
};
|
|
89
|
+
return _set_prototype_of(o, p);
|
|
90
|
+
}
|
|
91
|
+
function _type_of(obj) {
|
|
92
|
+
"@swc/helpers - typeof";
|
|
93
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
+
}
|
|
95
|
+
function _is_native_reflect_construct() {
|
|
96
|
+
try {
|
|
97
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
+
} catch (_) {}
|
|
99
|
+
return (_is_native_reflect_construct = function() {
|
|
100
|
+
return !!result;
|
|
101
|
+
})();
|
|
102
|
+
}
|
|
103
|
+
var MaximumDepthInput = /*#__PURE__*/ function(Input) {
|
|
104
|
+
_inherits(MaximumDepthInput, Input);
|
|
105
|
+
function MaximumDepthInput() {
|
|
106
|
+
_class_call_check(this, MaximumDepthInput);
|
|
107
|
+
return _call_super(this, MaximumDepthInput, arguments);
|
|
108
|
+
}
|
|
109
|
+
_create_class(MaximumDepthInput, [
|
|
110
|
+
{
|
|
111
|
+
key: "getMaximumDepth",
|
|
112
|
+
value: function getMaximumDepth() {
|
|
113
|
+
var value = this.getValue(), maximumDepth = Number(value);
|
|
114
|
+
return maximumDepth;
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "setMaximumDepth",
|
|
119
|
+
value: function setMaximumDepth(maximumDepth) {
|
|
120
|
+
var value = maximumDepth; ///
|
|
121
|
+
this.setValue(value);
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
key: "parentContext",
|
|
126
|
+
value: function parentContext() {
|
|
127
|
+
var getMaximumDepth = this.getMaximumDepth.bind(this), setMaximumDepth = this.setMaximumDepth.bind(this), setMaximumDepthReadOnly = this.setReadOnly.bind(this); ///;
|
|
128
|
+
return {
|
|
129
|
+
getMaximumDepth: getMaximumDepth,
|
|
130
|
+
setMaximumDepth: setMaximumDepth,
|
|
131
|
+
setMaximumDepthReadOnly: setMaximumDepthReadOnly
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
]);
|
|
136
|
+
return MaximumDepthInput;
|
|
137
|
+
}(_input.default);
|
|
138
|
+
_define_property(MaximumDepthInput, "defaultProperties", {
|
|
139
|
+
className: "maximum-depth",
|
|
140
|
+
spellCheck: "false"
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvaW5wdXQvbWF4aW11bURlcHRoLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgSW5wdXQgZnJvbSBcIi4uL2lucHV0XCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIE1heGltdW1EZXB0aElucHV0IGV4dGVuZHMgSW5wdXQge1xuICBnZXRNYXhpbXVtRGVwdGgoKSB7XG4gICAgY29uc3QgdmFsdWUgPSB0aGlzLmdldFZhbHVlKCksXG4gICAgICAgICAgbWF4aW11bURlcHRoID0gTnVtYmVyKHZhbHVlKTtcblxuICAgIHJldHVybiBtYXhpbXVtRGVwdGg7XG4gIH1cblxuICBzZXRNYXhpbXVtRGVwdGgobWF4aW11bURlcHRoKSB7XG4gICAgY29uc3QgdmFsdWUgPSBtYXhpbXVtRGVwdGg7IC8vL1xuXG4gICAgdGhpcy5zZXRWYWx1ZSh2YWx1ZSk7XG4gIH1cblxuICBwYXJlbnRDb250ZXh0KCkge1xuICAgIGNvbnN0IGdldE1heGltdW1EZXB0aCA9IHRoaXMuZ2V0TWF4aW11bURlcHRoLmJpbmQodGhpcyksXG4gICAgICAgICAgc2V0TWF4aW11bURlcHRoID0gdGhpcy5zZXRNYXhpbXVtRGVwdGguYmluZCh0aGlzKSxcbiAgICAgICAgICBzZXRNYXhpbXVtRGVwdGhSZWFkT25seSA9IHRoaXMuc2V0UmVhZE9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UFBQTttQkFBQUEsU0FBQUEsZ0JBQWdCRixZQUFZO2dCQUMxQixJQUFNRixRQUFRRSxjQUFjLEdBQUc7Z0JBRS9CLElBQUksQ0FBQ0csUUFBUSxDQUFDTDtZQUNoQjs7O1lBRUFNLEtBQUFBO21CQUFBQSxTQUFBQTtnQkFDRSxJQUFNUCxrQkFBa0IsSUFBSSxDQUFDQSxlQUFlLENBQUNRLElBQUksQ0FBQyxJQUFJLEdBQ2hESCxrQkFBa0IsSUFBSSxDQUFDQSxlQUFlLENBQUNHLElBQUksQ0FBQyxJQUFJLEdBQ2hEQywwQkFBMEIsSUFBSSxDQUFDQyxXQUFXLENBQUNGLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSTtnQkFFakUsT0FBUTtvQkFDTlIsaUJBQUFBO29CQUNBSyxpQkFBQUE7b0JBQ0FJLHlCQUFBQTtnQkFDRjtZQUNGOzs7V0F4Qm1CVjtFQUEwQlksY0FBSztBQTBCbEQsaUJBMUJtQlosbUJBMEJaYSxxQkFBb0I7SUFDekJDLFdBQVc7SUFDWEMsWUFBWTtBQUNkIn0=
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
var _easy = require("easy");
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
|
+
return obj && obj.__esModule ? obj : {
|
|
15
|
+
default: obj
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function _tagged_template_literal(strings, raw) {
|
|
19
|
+
if (!raw) {
|
|
20
|
+
raw = strings.slice(0);
|
|
21
|
+
}
|
|
22
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
23
|
+
raw: {
|
|
24
|
+
value: Object.freeze(raw)
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
function _templateObject() {
|
|
29
|
+
var data = _tagged_template_literal([
|
|
30
|
+
"\n\n border: 1px solid darkgrey;\n padding: 0.25rem;\n font-size: 1.2rem;\n font-family: monospace;\n\n"
|
|
31
|
+
]);
|
|
32
|
+
_templateObject = function _templateObject() {
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
37
|
+
var _default = (0, _easywithstyle.default)(_easy.Input)(_templateObject());
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvaW5wdXQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IElucHV0IH0gZnJvbSBcImVhc3lcIjtcblxuZXhwb3J0IGRlZmF1bHQgd2l0aFN0eWxlKElucHV0KWBcblxuICBib3JkZXI6IDFweCBzb2xpZCBkYXJrZ3JleTtcbiAgcGFkZGluZzogMC4yNXJlbTtcbiAgZm9udC1zaXplOiAxLjJyZW07XG4gIGZvbnQtZmFtaWx5OiBtb25vc3BhY2U7XG5cbmA7XG4iXSwibmFtZXMiOlsid2l0aFN0eWxlIiwiSW5wdXQiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBQTs7O29FQUpzQjtvQkFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUV0QixXQUFlQSxJQUFBQSxzQkFBUyxFQUFDQyxXQUFLIn0=
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function _tagged_template_literal(strings, raw) {
|
|
18
|
+
if (!raw) {
|
|
19
|
+
raw = strings.slice(0);
|
|
20
|
+
}
|
|
21
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
22
|
+
raw: {
|
|
23
|
+
value: Object.freeze(raw)
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
function _templateObject() {
|
|
28
|
+
var data = _tagged_template_literal([
|
|
29
|
+
"\n\n margin: 1rem 0 0.5rem 0;\n font-size: 2rem;\n \n :first-of-type {\n margin-top: 0;\n }\n\n"
|
|
30
|
+
]);
|
|
31
|
+
_templateObject = function _templateObject() {
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
return data;
|
|
35
|
+
}
|
|
36
|
+
var SubHeading = _easywithstyle.default.h2(_templateObject());
|
|
37
|
+
var _default = SubHeading;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvc3ViSGVhZGluZy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuY29uc3QgU3ViSGVhZGluZyA9IHdpdGhTdHlsZS5oMmBcblxuICBtYXJnaW46IDFyZW0gMCAwLjVyZW0gMDtcbiAgZm9udC1zaXplOiAycmVtO1xuICBcbiAgOmZpcnN0LW9mLXR5cGUge1xuICAgIG1hcmdpbi10b3A6IDA7XG4gIH1cblxuYDtcblxuZXhwb3J0IGRlZmF1bHQgU3ViSGVhZGluZztcbiJdLCJuYW1lcyI6WyJTdWJIZWFkaW5nIiwid2l0aFN0eWxlIiwiaDIiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWVBOzs7ZUFBQTs7O29FQWJzQjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV0QixJQUFNQSxhQUFhQyxzQkFBUyxDQUFDQyxFQUFFO0lBVy9CLFdBQWVGIn0=
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ContentTextarea;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _textarea = /*#__PURE__*/ _interop_require_default(require("../textarea"));
|
|
12
|
+
function _assert_this_initialized(self) {
|
|
13
|
+
if (self === void 0) {
|
|
14
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
+
}
|
|
16
|
+
return self;
|
|
17
|
+
}
|
|
18
|
+
function _call_super(_this, derived, args) {
|
|
19
|
+
derived = _get_prototype_of(derived);
|
|
20
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
+
}
|
|
22
|
+
function _class_call_check(instance, Constructor) {
|
|
23
|
+
if (!(instance instanceof Constructor)) {
|
|
24
|
+
throw new TypeError("Cannot call a class as a function");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function _defineProperties(target, props) {
|
|
28
|
+
for(var i = 0; i < props.length; i++){
|
|
29
|
+
var descriptor = props[i];
|
|
30
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
+
descriptor.configurable = true;
|
|
32
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
+
return Constructor;
|
|
40
|
+
}
|
|
41
|
+
function _define_property(obj, key, value) {
|
|
42
|
+
if (key in obj) {
|
|
43
|
+
Object.defineProperty(obj, key, {
|
|
44
|
+
value: value,
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true,
|
|
47
|
+
writable: true
|
|
48
|
+
});
|
|
49
|
+
} else {
|
|
50
|
+
obj[key] = value;
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
function _get_prototype_of(o) {
|
|
55
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
+
};
|
|
58
|
+
return _get_prototype_of(o);
|
|
59
|
+
}
|
|
60
|
+
function _inherits(subClass, superClass) {
|
|
61
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
+
}
|
|
64
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
+
constructor: {
|
|
66
|
+
value: subClass,
|
|
67
|
+
writable: true,
|
|
68
|
+
configurable: true
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
+
}
|
|
73
|
+
function _interop_require_default(obj) {
|
|
74
|
+
return obj && obj.__esModule ? obj : {
|
|
75
|
+
default: obj
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function _possible_constructor_return(self, call) {
|
|
79
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
80
|
+
return call;
|
|
81
|
+
}
|
|
82
|
+
return _assert_this_initialized(self);
|
|
83
|
+
}
|
|
84
|
+
function _set_prototype_of(o, p) {
|
|
85
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
+
o.__proto__ = p;
|
|
87
|
+
return o;
|
|
88
|
+
};
|
|
89
|
+
return _set_prototype_of(o, p);
|
|
90
|
+
}
|
|
91
|
+
function _type_of(obj) {
|
|
92
|
+
"@swc/helpers - typeof";
|
|
93
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
+
}
|
|
95
|
+
function _is_native_reflect_construct() {
|
|
96
|
+
try {
|
|
97
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
+
} catch (_) {}
|
|
99
|
+
return (_is_native_reflect_construct = function() {
|
|
100
|
+
return !!result;
|
|
101
|
+
})();
|
|
102
|
+
}
|
|
103
|
+
var ContentTextarea = /*#__PURE__*/ function(Textarea) {
|
|
104
|
+
_inherits(ContentTextarea, Textarea);
|
|
105
|
+
function ContentTextarea() {
|
|
106
|
+
_class_call_check(this, ContentTextarea);
|
|
107
|
+
return _call_super(this, ContentTextarea, arguments);
|
|
108
|
+
}
|
|
109
|
+
_create_class(ContentTextarea, [
|
|
110
|
+
{
|
|
111
|
+
key: "getContent",
|
|
112
|
+
value: function getContent() {
|
|
113
|
+
var value = this.getValue(), content = value; ///
|
|
114
|
+
return content;
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "setContent",
|
|
119
|
+
value: function setContent(content) {
|
|
120
|
+
var value = content;
|
|
121
|
+
this.setValue(value);
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
key: "parentContext",
|
|
126
|
+
value: function parentContext() {
|
|
127
|
+
var getContent = this.getContent.bind(this), setContent = this.setContent.bind(this);
|
|
128
|
+
return {
|
|
129
|
+
getContent: getContent,
|
|
130
|
+
setContent: setContent
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]);
|
|
135
|
+
return ContentTextarea;
|
|
136
|
+
}(_textarea.default);
|
|
137
|
+
_define_property(ContentTextarea, "defaultProperties", {
|
|
138
|
+
className: "content",
|
|
139
|
+
spellCheck: "false"
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvdGV4dGFyZWEvY29udGVudC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IFRleHRhcmVhIGZyb20gXCIuLi90ZXh0YXJlYVwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBDb250ZW50VGV4dGFyZWEgZXh0ZW5kcyBUZXh0YXJlYSB7XG4gIGdldENvbnRlbnQoKSB7XG4gICAgY29uc3QgdmFsdWUgPSB0aGlzLmdldFZhbHVlKCksXG4gICAgICAgICAgY29udGVudCA9IHZhbHVlOyAvLy9cblxuICAgIHJldHVybiBjb250ZW50O1xuICB9XG5cbiAgc2V0Q29udGVudChjb250ZW50KSB7XG4gICAgY29uc3QgdmFsdWUgPSBjb250ZW50O1xuXG4gICAgdGhpcy5zZXRWYWx1ZSh2YWx1ZSk7XG4gIH1cblxuICBwYXJlbnRDb250ZXh0KCkge1xuICAgIGNvbnN0IGdldENvbnRlbnQgPSB0aGlzLmdldENvbnRlbnQuYmluZCh0aGlzKSxcbiAgICAgICAgICBzZXRDb250ZW50ID0gdGhpcy5zZXRDb250ZW50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