@nickaux/form-configurator 1.1.218 → 1.1.219

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.
@@ -36294,10 +36294,10 @@ function requireLib$1() {
36294
36294
  ElementType2["CDATA"] = "cdata";
36295
36295
  ElementType2["Doctype"] = "doctype";
36296
36296
  })(ElementType = exports2.ElementType || (exports2.ElementType = {}));
36297
- function isTag(elem) {
36297
+ function isTag2(elem) {
36298
36298
  return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
36299
36299
  }
36300
- exports2.isTag = isTag;
36300
+ exports2.isTag = isTag2;
36301
36301
  exports2.Root = ElementType.Root;
36302
36302
  exports2.Text = ElementType.Text;
36303
36303
  exports2.Directive = ElementType.Directive;
@@ -36310,406 +36310,399 @@ function requireLib$1() {
36310
36310
  })(lib$4);
36311
36311
  return lib$4;
36312
36312
  }
36313
- var hasRequiredNode;
36314
- function requireNode() {
36315
- if (hasRequiredNode)
36316
- return node$1;
36317
- hasRequiredNode = 1;
36318
- var __extends2 = commonjsGlobal && commonjsGlobal.__extends || function() {
36319
- var extendStatics = function(d3, b2) {
36320
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b3) {
36321
- d4.__proto__ = b3;
36322
- } || function(d4, b3) {
36323
- for (var p2 in b3)
36324
- if (Object.prototype.hasOwnProperty.call(b3, p2))
36325
- d4[p2] = b3[p2];
36326
- };
36327
- return extendStatics(d3, b2);
36328
- };
36329
- return function(d3, b2) {
36330
- if (typeof b2 !== "function" && b2 !== null)
36331
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
36332
- extendStatics(d3, b2);
36333
- function __() {
36334
- this.constructor = d3;
36335
- }
36336
- d3.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
36313
+ var __extends$5 = commonjsGlobal && commonjsGlobal.__extends || function() {
36314
+ var extendStatics = function(d3, b2) {
36315
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b3) {
36316
+ d4.__proto__ = b3;
36317
+ } || function(d4, b3) {
36318
+ for (var p2 in b3)
36319
+ if (Object.prototype.hasOwnProperty.call(b3, p2))
36320
+ d4[p2] = b3[p2];
36337
36321
  };
36338
- }();
36339
- var __assign2 = commonjsGlobal && commonjsGlobal.__assign || function() {
36340
- __assign2 = Object.assign || function(t2) {
36341
- for (var s4, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
36342
- s4 = arguments[i2];
36343
- for (var p2 in s4)
36344
- if (Object.prototype.hasOwnProperty.call(s4, p2))
36345
- t2[p2] = s4[p2];
36322
+ return extendStatics(d3, b2);
36323
+ };
36324
+ return function(d3, b2) {
36325
+ if (typeof b2 !== "function" && b2 !== null)
36326
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
36327
+ extendStatics(d3, b2);
36328
+ function __() {
36329
+ this.constructor = d3;
36330
+ }
36331
+ d3.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
36332
+ };
36333
+ }();
36334
+ var __assign$4 = commonjsGlobal && commonjsGlobal.__assign || function() {
36335
+ __assign$4 = Object.assign || function(t2) {
36336
+ for (var s4, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
36337
+ s4 = arguments[i2];
36338
+ for (var p2 in s4)
36339
+ if (Object.prototype.hasOwnProperty.call(s4, p2))
36340
+ t2[p2] = s4[p2];
36341
+ }
36342
+ return t2;
36343
+ };
36344
+ return __assign$4.apply(this, arguments);
36345
+ };
36346
+ Object.defineProperty(node$1, "__esModule", { value: true });
36347
+ node$1.cloneNode = node$1.hasChildren = node$1.isDocument = node$1.isDirective = node$1.isComment = node$1.isText = node$1.isCDATA = node$1.isTag = node$1.Element = node$1.Document = node$1.NodeWithChildren = node$1.ProcessingInstruction = node$1.Comment = node$1.Text = node$1.DataNode = node$1.Node = void 0;
36348
+ var domelementtype_1 = requireLib$1();
36349
+ var nodeTypes = /* @__PURE__ */ new Map([
36350
+ [domelementtype_1.ElementType.Tag, 1],
36351
+ [domelementtype_1.ElementType.Script, 1],
36352
+ [domelementtype_1.ElementType.Style, 1],
36353
+ [domelementtype_1.ElementType.Directive, 1],
36354
+ [domelementtype_1.ElementType.Text, 3],
36355
+ [domelementtype_1.ElementType.CDATA, 4],
36356
+ [domelementtype_1.ElementType.Comment, 8],
36357
+ [domelementtype_1.ElementType.Root, 9]
36358
+ ]);
36359
+ var Node$1 = (
36360
+ /** @class */
36361
+ function() {
36362
+ function Node2(type) {
36363
+ this.type = type;
36364
+ this.parent = null;
36365
+ this.prev = null;
36366
+ this.next = null;
36367
+ this.startIndex = null;
36368
+ this.endIndex = null;
36369
+ }
36370
+ Object.defineProperty(Node2.prototype, "nodeType", {
36371
+ // Read-only aliases
36372
+ /**
36373
+ * [DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible
36374
+ * node {@link type}.
36375
+ */
36376
+ get: function() {
36377
+ var _a;
36378
+ return (_a = nodeTypes.get(this.type)) !== null && _a !== void 0 ? _a : 1;
36379
+ },
36380
+ enumerable: false,
36381
+ configurable: true
36382
+ });
36383
+ Object.defineProperty(Node2.prototype, "parentNode", {
36384
+ // Read-write aliases for properties
36385
+ /**
36386
+ * Same as {@link parent}.
36387
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36388
+ */
36389
+ get: function() {
36390
+ return this.parent;
36391
+ },
36392
+ set: function(parent) {
36393
+ this.parent = parent;
36394
+ },
36395
+ enumerable: false,
36396
+ configurable: true
36397
+ });
36398
+ Object.defineProperty(Node2.prototype, "previousSibling", {
36399
+ /**
36400
+ * Same as {@link prev}.
36401
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36402
+ */
36403
+ get: function() {
36404
+ return this.prev;
36405
+ },
36406
+ set: function(prev2) {
36407
+ this.prev = prev2;
36408
+ },
36409
+ enumerable: false,
36410
+ configurable: true
36411
+ });
36412
+ Object.defineProperty(Node2.prototype, "nextSibling", {
36413
+ /**
36414
+ * Same as {@link next}.
36415
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36416
+ */
36417
+ get: function() {
36418
+ return this.next;
36419
+ },
36420
+ set: function(next2) {
36421
+ this.next = next2;
36422
+ },
36423
+ enumerable: false,
36424
+ configurable: true
36425
+ });
36426
+ Node2.prototype.cloneNode = function(recursive) {
36427
+ if (recursive === void 0) {
36428
+ recursive = false;
36346
36429
  }
36347
- return t2;
36430
+ return cloneNode(this, recursive);
36348
36431
  };
36349
- return __assign2.apply(this, arguments);
36350
- };
36351
- Object.defineProperty(node$1, "__esModule", { value: true });
36352
- node$1.cloneNode = node$1.hasChildren = node$1.isDocument = node$1.isDirective = node$1.isComment = node$1.isText = node$1.isCDATA = node$1.isTag = node$1.Element = node$1.Document = node$1.NodeWithChildren = node$1.ProcessingInstruction = node$1.Comment = node$1.Text = node$1.DataNode = node$1.Node = void 0;
36353
- var domelementtype_1 = requireLib$1();
36354
- var nodeTypes = /* @__PURE__ */ new Map([
36355
- [domelementtype_1.ElementType.Tag, 1],
36356
- [domelementtype_1.ElementType.Script, 1],
36357
- [domelementtype_1.ElementType.Style, 1],
36358
- [domelementtype_1.ElementType.Directive, 1],
36359
- [domelementtype_1.ElementType.Text, 3],
36360
- [domelementtype_1.ElementType.CDATA, 4],
36361
- [domelementtype_1.ElementType.Comment, 8],
36362
- [domelementtype_1.ElementType.Root, 9]
36363
- ]);
36364
- var Node2 = (
36365
- /** @class */
36366
- function() {
36367
- function Node3(type) {
36368
- this.type = type;
36369
- this.parent = null;
36370
- this.prev = null;
36371
- this.next = null;
36372
- this.startIndex = null;
36373
- this.endIndex = null;
36374
- }
36375
- Object.defineProperty(Node3.prototype, "nodeType", {
36376
- // Read-only aliases
36377
- /**
36378
- * [DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible
36379
- * node {@link type}.
36380
- */
36381
- get: function() {
36382
- var _a;
36383
- return (_a = nodeTypes.get(this.type)) !== null && _a !== void 0 ? _a : 1;
36384
- },
36385
- enumerable: false,
36386
- configurable: true
36387
- });
36388
- Object.defineProperty(Node3.prototype, "parentNode", {
36389
- // Read-write aliases for properties
36390
- /**
36391
- * Same as {@link parent}.
36392
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36393
- */
36394
- get: function() {
36395
- return this.parent;
36396
- },
36397
- set: function(parent) {
36398
- this.parent = parent;
36399
- },
36400
- enumerable: false,
36401
- configurable: true
36402
- });
36403
- Object.defineProperty(Node3.prototype, "previousSibling", {
36404
- /**
36405
- * Same as {@link prev}.
36406
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36407
- */
36408
- get: function() {
36409
- return this.prev;
36410
- },
36411
- set: function(prev2) {
36412
- this.prev = prev2;
36413
- },
36414
- enumerable: false,
36415
- configurable: true
36416
- });
36417
- Object.defineProperty(Node3.prototype, "nextSibling", {
36418
- /**
36419
- * Same as {@link next}.
36420
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36421
- */
36422
- get: function() {
36423
- return this.next;
36424
- },
36425
- set: function(next2) {
36426
- this.next = next2;
36427
- },
36428
- enumerable: false,
36429
- configurable: true
36430
- });
36431
- Node3.prototype.cloneNode = function(recursive) {
36432
- if (recursive === void 0) {
36433
- recursive = false;
36434
- }
36435
- return cloneNode(this, recursive);
36436
- };
36437
- return Node3;
36438
- }()
36439
- );
36440
- node$1.Node = Node2;
36441
- var DataNode = (
36442
- /** @class */
36443
- function(_super) {
36444
- __extends2(DataNode2, _super);
36445
- function DataNode2(type, data2) {
36446
- var _this = _super.call(this, type) || this;
36447
- _this.data = data2;
36448
- return _this;
36449
- }
36450
- Object.defineProperty(DataNode2.prototype, "nodeValue", {
36451
- /**
36452
- * Same as {@link data}.
36453
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36454
- */
36455
- get: function() {
36456
- return this.data;
36457
- },
36458
- set: function(data2) {
36459
- this.data = data2;
36460
- },
36461
- enumerable: false,
36462
- configurable: true
36463
- });
36464
- return DataNode2;
36465
- }(Node2)
36466
- );
36467
- node$1.DataNode = DataNode;
36468
- var Text2 = (
36469
- /** @class */
36470
- function(_super) {
36471
- __extends2(Text3, _super);
36472
- function Text3(data2) {
36473
- return _super.call(this, domelementtype_1.ElementType.Text, data2) || this;
36474
- }
36475
- return Text3;
36476
- }(DataNode)
36477
- );
36478
- node$1.Text = Text2;
36479
- var Comment2 = (
36480
- /** @class */
36481
- function(_super) {
36482
- __extends2(Comment3, _super);
36483
- function Comment3(data2) {
36484
- return _super.call(this, domelementtype_1.ElementType.Comment, data2) || this;
36485
- }
36486
- return Comment3;
36487
- }(DataNode)
36488
- );
36489
- node$1.Comment = Comment2;
36490
- var ProcessingInstruction2 = (
36491
- /** @class */
36492
- function(_super) {
36493
- __extends2(ProcessingInstruction3, _super);
36494
- function ProcessingInstruction3(name, data2) {
36495
- var _this = _super.call(this, domelementtype_1.ElementType.Directive, data2) || this;
36496
- _this.name = name;
36497
- return _this;
36498
- }
36499
- return ProcessingInstruction3;
36500
- }(DataNode)
36501
- );
36502
- node$1.ProcessingInstruction = ProcessingInstruction2;
36503
- var NodeWithChildren = (
36504
- /** @class */
36505
- function(_super) {
36506
- __extends2(NodeWithChildren2, _super);
36507
- function NodeWithChildren2(type, children) {
36508
- var _this = _super.call(this, type) || this;
36509
- _this.children = children;
36510
- return _this;
36511
- }
36512
- Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
36513
- // Aliases
36514
- /** First child of the node. */
36515
- get: function() {
36516
- var _a;
36517
- return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
36518
- },
36519
- enumerable: false,
36520
- configurable: true
36521
- });
36522
- Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
36523
- /** Last child of the node. */
36524
- get: function() {
36525
- return this.children.length > 0 ? this.children[this.children.length - 1] : null;
36526
- },
36527
- enumerable: false,
36528
- configurable: true
36529
- });
36530
- Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
36531
- /**
36532
- * Same as {@link children}.
36533
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36534
- */
36535
- get: function() {
36536
- return this.children;
36537
- },
36538
- set: function(children) {
36539
- this.children = children;
36540
- },
36541
- enumerable: false,
36542
- configurable: true
36543
- });
36544
- return NodeWithChildren2;
36545
- }(Node2)
36546
- );
36547
- node$1.NodeWithChildren = NodeWithChildren;
36548
- var Document = (
36549
- /** @class */
36550
- function(_super) {
36551
- __extends2(Document2, _super);
36552
- function Document2(children) {
36553
- return _super.call(this, domelementtype_1.ElementType.Root, children) || this;
36554
- }
36555
- return Document2;
36556
- }(NodeWithChildren)
36557
- );
36558
- node$1.Document = Document;
36559
- var Element2 = (
36560
- /** @class */
36561
- function(_super) {
36562
- __extends2(Element3, _super);
36563
- function Element3(name, attribs, children, type) {
36564
- if (children === void 0) {
36565
- children = [];
36566
- }
36567
- if (type === void 0) {
36568
- type = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
36569
- }
36570
- var _this = _super.call(this, type, children) || this;
36571
- _this.name = name;
36572
- _this.attribs = attribs;
36573
- return _this;
36574
- }
36575
- Object.defineProperty(Element3.prototype, "tagName", {
36576
- // DOM Level 1 aliases
36577
- /**
36578
- * Same as {@link name}.
36579
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36580
- */
36581
- get: function() {
36582
- return this.name;
36583
- },
36584
- set: function(name) {
36585
- this.name = name;
36586
- },
36587
- enumerable: false,
36588
- configurable: true
36589
- });
36590
- Object.defineProperty(Element3.prototype, "attributes", {
36591
- get: function() {
36592
- var _this = this;
36593
- return Object.keys(this.attribs).map(function(name) {
36594
- var _a, _b;
36595
- return {
36596
- name,
36597
- value: _this.attribs[name],
36598
- namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
36599
- prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name]
36600
- };
36601
- });
36602
- },
36603
- enumerable: false,
36604
- configurable: true
36605
- });
36606
- return Element3;
36607
- }(NodeWithChildren)
36608
- );
36609
- node$1.Element = Element2;
36610
- function isTag(node2) {
36611
- return (0, domelementtype_1.isTag)(node2);
36612
- }
36613
- node$1.isTag = isTag;
36614
- function isCDATA(node2) {
36615
- return node2.type === domelementtype_1.ElementType.CDATA;
36616
- }
36617
- node$1.isCDATA = isCDATA;
36618
- function isText(node2) {
36619
- return node2.type === domelementtype_1.ElementType.Text;
36620
- }
36621
- node$1.isText = isText;
36622
- function isComment(node2) {
36623
- return node2.type === domelementtype_1.ElementType.Comment;
36624
- }
36625
- node$1.isComment = isComment;
36626
- function isDirective(node2) {
36627
- return node2.type === domelementtype_1.ElementType.Directive;
36628
- }
36629
- node$1.isDirective = isDirective;
36630
- function isDocument(node2) {
36631
- return node2.type === domelementtype_1.ElementType.Root;
36632
- }
36633
- node$1.isDocument = isDocument;
36634
- function hasChildren(node2) {
36635
- return Object.prototype.hasOwnProperty.call(node2, "children");
36636
- }
36637
- node$1.hasChildren = hasChildren;
36638
- function cloneNode(node2, recursive) {
36639
- if (recursive === void 0) {
36640
- recursive = false;
36432
+ return Node2;
36433
+ }()
36434
+ );
36435
+ node$1.Node = Node$1;
36436
+ var DataNode = (
36437
+ /** @class */
36438
+ function(_super) {
36439
+ __extends$5(DataNode2, _super);
36440
+ function DataNode2(type, data2) {
36441
+ var _this = _super.call(this, type) || this;
36442
+ _this.data = data2;
36443
+ return _this;
36641
36444
  }
36642
- var result;
36643
- if (isText(node2)) {
36644
- result = new Text2(node2.data);
36645
- } else if (isComment(node2)) {
36646
- result = new Comment2(node2.data);
36647
- } else if (isTag(node2)) {
36648
- var children = recursive ? cloneChildren(node2.children) : [];
36649
- var clone_1 = new Element2(node2.name, __assign2({}, node2.attribs), children);
36650
- children.forEach(function(child) {
36651
- return child.parent = clone_1;
36652
- });
36653
- if (node2.namespace != null) {
36654
- clone_1.namespace = node2.namespace;
36655
- }
36656
- if (node2["x-attribsNamespace"]) {
36657
- clone_1["x-attribsNamespace"] = __assign2({}, node2["x-attribsNamespace"]);
36445
+ Object.defineProperty(DataNode2.prototype, "nodeValue", {
36446
+ /**
36447
+ * Same as {@link data}.
36448
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36449
+ */
36450
+ get: function() {
36451
+ return this.data;
36452
+ },
36453
+ set: function(data2) {
36454
+ this.data = data2;
36455
+ },
36456
+ enumerable: false,
36457
+ configurable: true
36458
+ });
36459
+ return DataNode2;
36460
+ }(Node$1)
36461
+ );
36462
+ node$1.DataNode = DataNode;
36463
+ var Text$2 = (
36464
+ /** @class */
36465
+ function(_super) {
36466
+ __extends$5(Text2, _super);
36467
+ function Text2(data2) {
36468
+ return _super.call(this, domelementtype_1.ElementType.Text, data2) || this;
36469
+ }
36470
+ return Text2;
36471
+ }(DataNode)
36472
+ );
36473
+ node$1.Text = Text$2;
36474
+ var Comment$1 = (
36475
+ /** @class */
36476
+ function(_super) {
36477
+ __extends$5(Comment2, _super);
36478
+ function Comment2(data2) {
36479
+ return _super.call(this, domelementtype_1.ElementType.Comment, data2) || this;
36480
+ }
36481
+ return Comment2;
36482
+ }(DataNode)
36483
+ );
36484
+ node$1.Comment = Comment$1;
36485
+ var ProcessingInstruction$1 = (
36486
+ /** @class */
36487
+ function(_super) {
36488
+ __extends$5(ProcessingInstruction2, _super);
36489
+ function ProcessingInstruction2(name, data2) {
36490
+ var _this = _super.call(this, domelementtype_1.ElementType.Directive, data2) || this;
36491
+ _this.name = name;
36492
+ return _this;
36493
+ }
36494
+ return ProcessingInstruction2;
36495
+ }(DataNode)
36496
+ );
36497
+ node$1.ProcessingInstruction = ProcessingInstruction$1;
36498
+ var NodeWithChildren = (
36499
+ /** @class */
36500
+ function(_super) {
36501
+ __extends$5(NodeWithChildren2, _super);
36502
+ function NodeWithChildren2(type, children) {
36503
+ var _this = _super.call(this, type) || this;
36504
+ _this.children = children;
36505
+ return _this;
36506
+ }
36507
+ Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
36508
+ // Aliases
36509
+ /** First child of the node. */
36510
+ get: function() {
36511
+ var _a;
36512
+ return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
36513
+ },
36514
+ enumerable: false,
36515
+ configurable: true
36516
+ });
36517
+ Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
36518
+ /** Last child of the node. */
36519
+ get: function() {
36520
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
36521
+ },
36522
+ enumerable: false,
36523
+ configurable: true
36524
+ });
36525
+ Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
36526
+ /**
36527
+ * Same as {@link children}.
36528
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36529
+ */
36530
+ get: function() {
36531
+ return this.children;
36532
+ },
36533
+ set: function(children) {
36534
+ this.children = children;
36535
+ },
36536
+ enumerable: false,
36537
+ configurable: true
36538
+ });
36539
+ return NodeWithChildren2;
36540
+ }(Node$1)
36541
+ );
36542
+ node$1.NodeWithChildren = NodeWithChildren;
36543
+ var Document = (
36544
+ /** @class */
36545
+ function(_super) {
36546
+ __extends$5(Document2, _super);
36547
+ function Document2(children) {
36548
+ return _super.call(this, domelementtype_1.ElementType.Root, children) || this;
36549
+ }
36550
+ return Document2;
36551
+ }(NodeWithChildren)
36552
+ );
36553
+ node$1.Document = Document;
36554
+ var Element$2 = (
36555
+ /** @class */
36556
+ function(_super) {
36557
+ __extends$5(Element2, _super);
36558
+ function Element2(name, attribs, children, type) {
36559
+ if (children === void 0) {
36560
+ children = [];
36658
36561
  }
36659
- if (node2["x-attribsPrefix"]) {
36660
- clone_1["x-attribsPrefix"] = __assign2({}, node2["x-attribsPrefix"]);
36562
+ if (type === void 0) {
36563
+ type = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
36661
36564
  }
36662
- result = clone_1;
36663
- } else if (isCDATA(node2)) {
36664
- var children = recursive ? cloneChildren(node2.children) : [];
36665
- var clone_2 = new NodeWithChildren(domelementtype_1.ElementType.CDATA, children);
36666
- children.forEach(function(child) {
36667
- return child.parent = clone_2;
36668
- });
36669
- result = clone_2;
36670
- } else if (isDocument(node2)) {
36671
- var children = recursive ? cloneChildren(node2.children) : [];
36672
- var clone_3 = new Document(children);
36673
- children.forEach(function(child) {
36674
- return child.parent = clone_3;
36675
- });
36676
- if (node2["x-mode"]) {
36677
- clone_3["x-mode"] = node2["x-mode"];
36678
- }
36679
- result = clone_3;
36680
- } else if (isDirective(node2)) {
36681
- var instruction = new ProcessingInstruction2(node2.name, node2.data);
36682
- if (node2["x-name"] != null) {
36683
- instruction["x-name"] = node2["x-name"];
36684
- instruction["x-publicId"] = node2["x-publicId"];
36685
- instruction["x-systemId"] = node2["x-systemId"];
36686
- }
36687
- result = instruction;
36688
- } else {
36689
- throw new Error("Not implemented yet: ".concat(node2.type));
36690
- }
36691
- result.startIndex = node2.startIndex;
36692
- result.endIndex = node2.endIndex;
36693
- if (node2.sourceCodeLocation != null) {
36694
- result.sourceCodeLocation = node2.sourceCodeLocation;
36565
+ var _this = _super.call(this, type, children) || this;
36566
+ _this.name = name;
36567
+ _this.attribs = attribs;
36568
+ return _this;
36695
36569
  }
36696
- return result;
36570
+ Object.defineProperty(Element2.prototype, "tagName", {
36571
+ // DOM Level 1 aliases
36572
+ /**
36573
+ * Same as {@link name}.
36574
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
36575
+ */
36576
+ get: function() {
36577
+ return this.name;
36578
+ },
36579
+ set: function(name) {
36580
+ this.name = name;
36581
+ },
36582
+ enumerable: false,
36583
+ configurable: true
36584
+ });
36585
+ Object.defineProperty(Element2.prototype, "attributes", {
36586
+ get: function() {
36587
+ var _this = this;
36588
+ return Object.keys(this.attribs).map(function(name) {
36589
+ var _a, _b;
36590
+ return {
36591
+ name,
36592
+ value: _this.attribs[name],
36593
+ namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
36594
+ prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name]
36595
+ };
36596
+ });
36597
+ },
36598
+ enumerable: false,
36599
+ configurable: true
36600
+ });
36601
+ return Element2;
36602
+ }(NodeWithChildren)
36603
+ );
36604
+ node$1.Element = Element$2;
36605
+ function isTag(node2) {
36606
+ return (0, domelementtype_1.isTag)(node2);
36607
+ }
36608
+ node$1.isTag = isTag;
36609
+ function isCDATA(node2) {
36610
+ return node2.type === domelementtype_1.ElementType.CDATA;
36611
+ }
36612
+ node$1.isCDATA = isCDATA;
36613
+ function isText(node2) {
36614
+ return node2.type === domelementtype_1.ElementType.Text;
36615
+ }
36616
+ node$1.isText = isText;
36617
+ function isComment(node2) {
36618
+ return node2.type === domelementtype_1.ElementType.Comment;
36619
+ }
36620
+ node$1.isComment = isComment;
36621
+ function isDirective(node2) {
36622
+ return node2.type === domelementtype_1.ElementType.Directive;
36623
+ }
36624
+ node$1.isDirective = isDirective;
36625
+ function isDocument(node2) {
36626
+ return node2.type === domelementtype_1.ElementType.Root;
36627
+ }
36628
+ node$1.isDocument = isDocument;
36629
+ function hasChildren(node2) {
36630
+ return Object.prototype.hasOwnProperty.call(node2, "children");
36631
+ }
36632
+ node$1.hasChildren = hasChildren;
36633
+ function cloneNode(node2, recursive) {
36634
+ if (recursive === void 0) {
36635
+ recursive = false;
36697
36636
  }
36698
- node$1.cloneNode = cloneNode;
36699
- function cloneChildren(childs) {
36700
- var children = childs.map(function(child) {
36701
- return cloneNode(child, true);
36637
+ var result;
36638
+ if (isText(node2)) {
36639
+ result = new Text$2(node2.data);
36640
+ } else if (isComment(node2)) {
36641
+ result = new Comment$1(node2.data);
36642
+ } else if (isTag(node2)) {
36643
+ var children = recursive ? cloneChildren(node2.children) : [];
36644
+ var clone_1 = new Element$2(node2.name, __assign$4({}, node2.attribs), children);
36645
+ children.forEach(function(child) {
36646
+ return child.parent = clone_1;
36702
36647
  });
36703
- for (var i2 = 1; i2 < children.length; i2++) {
36704
- children[i2].prev = children[i2 - 1];
36705
- children[i2 - 1].next = children[i2];
36648
+ if (node2.namespace != null) {
36649
+ clone_1.namespace = node2.namespace;
36650
+ }
36651
+ if (node2["x-attribsNamespace"]) {
36652
+ clone_1["x-attribsNamespace"] = __assign$4({}, node2["x-attribsNamespace"]);
36653
+ }
36654
+ if (node2["x-attribsPrefix"]) {
36655
+ clone_1["x-attribsPrefix"] = __assign$4({}, node2["x-attribsPrefix"]);
36706
36656
  }
36707
- return children;
36657
+ result = clone_1;
36658
+ } else if (isCDATA(node2)) {
36659
+ var children = recursive ? cloneChildren(node2.children) : [];
36660
+ var clone_2 = new NodeWithChildren(domelementtype_1.ElementType.CDATA, children);
36661
+ children.forEach(function(child) {
36662
+ return child.parent = clone_2;
36663
+ });
36664
+ result = clone_2;
36665
+ } else if (isDocument(node2)) {
36666
+ var children = recursive ? cloneChildren(node2.children) : [];
36667
+ var clone_3 = new Document(children);
36668
+ children.forEach(function(child) {
36669
+ return child.parent = clone_3;
36670
+ });
36671
+ if (node2["x-mode"]) {
36672
+ clone_3["x-mode"] = node2["x-mode"];
36673
+ }
36674
+ result = clone_3;
36675
+ } else if (isDirective(node2)) {
36676
+ var instruction = new ProcessingInstruction$1(node2.name, node2.data);
36677
+ if (node2["x-name"] != null) {
36678
+ instruction["x-name"] = node2["x-name"];
36679
+ instruction["x-publicId"] = node2["x-publicId"];
36680
+ instruction["x-systemId"] = node2["x-systemId"];
36681
+ }
36682
+ result = instruction;
36683
+ } else {
36684
+ throw new Error("Not implemented yet: ".concat(node2.type));
36685
+ }
36686
+ result.startIndex = node2.startIndex;
36687
+ result.endIndex = node2.endIndex;
36688
+ if (node2.sourceCodeLocation != null) {
36689
+ result.sourceCodeLocation = node2.sourceCodeLocation;
36690
+ }
36691
+ return result;
36692
+ }
36693
+ node$1.cloneNode = cloneNode;
36694
+ function cloneChildren(childs) {
36695
+ var children = childs.map(function(child) {
36696
+ return cloneNode(child, true);
36697
+ });
36698
+ for (var i2 = 1; i2 < children.length; i2++) {
36699
+ children[i2].prev = children[i2 - 1];
36700
+ children[i2 - 1].next = children[i2];
36708
36701
  }
36709
- return node$1;
36702
+ return children;
36710
36703
  }
36711
36704
  var constants$1 = constants$2;
36712
- var domhandler = requireNode();
36705
+ var domhandler = node$1;
36713
36706
  var CASE_SENSITIVE_TAG_NAMES = constants$1.CASE_SENSITIVE_TAG_NAMES;
36714
36707
  var Comment = domhandler.Comment;
36715
36708
  var Element$1 = domhandler.Element;
@@ -36931,9 +36924,9 @@ function requireLib() {
36931
36924
  };
36932
36925
  Object.defineProperty(exports2, "__esModule", { value: true });
36933
36926
  exports2.DomHandler = void 0;
36934
- var domelementtype_1 = requireLib$1();
36935
- var node_1 = requireNode();
36936
- __exportStar(requireNode(), exports2);
36927
+ var domelementtype_12 = requireLib$1();
36928
+ var node_1 = node$1;
36929
+ __exportStar(node$1, exports2);
36937
36930
  var reWhitespace2 = /\s+/g;
36938
36931
  var defaultOpts = {
36939
36932
  normalizeWhitespace: false,
@@ -36994,7 +36987,7 @@ function requireLib() {
36994
36987
  this.elementCB(elem);
36995
36988
  };
36996
36989
  DomHandler2.prototype.onopentag = function(name, attribs) {
36997
- var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : void 0;
36990
+ var type = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
36998
36991
  var element = new node_1.Element(name, attribs, void 0, type);
36999
36992
  this.addNode(element);
37000
36993
  this.tagStack.push(element);
@@ -37002,7 +36995,7 @@ function requireLib() {
37002
36995
  DomHandler2.prototype.ontext = function(data2) {
37003
36996
  var normalizeWhitespace = this.options.normalizeWhitespace;
37004
36997
  var lastNode = this.lastNode;
37005
- if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {
36998
+ if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
37006
36999
  if (normalizeWhitespace) {
37007
37000
  lastNode.data = (lastNode.data + data2).replace(reWhitespace2, " ");
37008
37001
  } else {
@@ -37021,7 +37014,7 @@ function requireLib() {
37021
37014
  }
37022
37015
  };
37023
37016
  DomHandler2.prototype.oncomment = function(data2) {
37024
- if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {
37017
+ if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
37025
37018
  this.lastNode.data += data2;
37026
37019
  return;
37027
37020
  }
@@ -37034,7 +37027,7 @@ function requireLib() {
37034
37027
  };
37035
37028
  DomHandler2.prototype.oncdatastart = function() {
37036
37029
  var text2 = new node_1.Text("");
37037
- var node2 = new node_1.NodeWithChildren(domelementtype_1.ElementType.CDATA, [text2]);
37030
+ var node2 = new node_1.NodeWithChildren(domelementtype_12.ElementType.CDATA, [text2]);
37038
37031
  this.addNode(node2);
37039
37032
  text2.parent = node2;
37040
37033
  this.lastNode = text2;
@@ -100407,10 +100400,10 @@ var ace$3 = { exports: {} };
100407
100400
  var EventEmitter = require2("./lib/event_emitter").EventEmitter;
100408
100401
  var Range = require2("./range").Range;
100409
100402
  var Anchor = require2("./anchor").Anchor;
100410
- var Document = (
100403
+ var Document2 = (
100411
100404
  /** @class */
100412
100405
  function() {
100413
- function Document2(textOrLines) {
100406
+ function Document3(textOrLines) {
100414
100407
  this.$lines = [""];
100415
100408
  if (textOrLines.length === 0) {
100416
100409
  this.$lines = [""];
@@ -100420,23 +100413,23 @@ var ace$3 = { exports: {} };
100420
100413
  this.insert({ row: 0, column: 0 }, textOrLines);
100421
100414
  }
100422
100415
  }
100423
- Document2.prototype.setValue = function(text2) {
100416
+ Document3.prototype.setValue = function(text2) {
100424
100417
  var len = this.getLength() - 1;
100425
100418
  this.remove(new Range(0, 0, len, this.getLine(len).length));
100426
100419
  this.insert({ row: 0, column: 0 }, text2 || "");
100427
100420
  };
100428
- Document2.prototype.getValue = function() {
100421
+ Document3.prototype.getValue = function() {
100429
100422
  return this.getAllLines().join(this.getNewLineCharacter());
100430
100423
  };
100431
- Document2.prototype.createAnchor = function(row, column2) {
100424
+ Document3.prototype.createAnchor = function(row, column2) {
100432
100425
  return new Anchor(this, row, column2);
100433
100426
  };
100434
- Document2.prototype.$detectNewLine = function(text2) {
100427
+ Document3.prototype.$detectNewLine = function(text2) {
100435
100428
  var match2 = text2.match(/^.*?(\r\n|\r|\n)/m);
100436
100429
  this.$autoNewLine = match2 ? match2[1] : "\n";
100437
100430
  this._signal("changeNewLineMode");
100438
100431
  };
100439
- Document2.prototype.getNewLineCharacter = function() {
100432
+ Document3.prototype.getNewLineCharacter = function() {
100440
100433
  switch (this.$newLineMode) {
100441
100434
  case "windows":
100442
100435
  return "\r\n";
@@ -100446,34 +100439,34 @@ var ace$3 = { exports: {} };
100446
100439
  return this.$autoNewLine || "\n";
100447
100440
  }
100448
100441
  };
100449
- Document2.prototype.setNewLineMode = function(newLineMode) {
100442
+ Document3.prototype.setNewLineMode = function(newLineMode) {
100450
100443
  if (this.$newLineMode === newLineMode)
100451
100444
  return;
100452
100445
  this.$newLineMode = newLineMode;
100453
100446
  this._signal("changeNewLineMode");
100454
100447
  };
100455
- Document2.prototype.getNewLineMode = function() {
100448
+ Document3.prototype.getNewLineMode = function() {
100456
100449
  return this.$newLineMode;
100457
100450
  };
100458
- Document2.prototype.isNewLine = function(text2) {
100451
+ Document3.prototype.isNewLine = function(text2) {
100459
100452
  return text2 == "\r\n" || text2 == "\r" || text2 == "\n";
100460
100453
  };
100461
- Document2.prototype.getLine = function(row) {
100454
+ Document3.prototype.getLine = function(row) {
100462
100455
  return this.$lines[row] || "";
100463
100456
  };
100464
- Document2.prototype.getLines = function(firstRow, lastRow) {
100457
+ Document3.prototype.getLines = function(firstRow, lastRow) {
100465
100458
  return this.$lines.slice(firstRow, lastRow + 1);
100466
100459
  };
100467
- Document2.prototype.getAllLines = function() {
100460
+ Document3.prototype.getAllLines = function() {
100468
100461
  return this.getLines(0, this.getLength());
100469
100462
  };
100470
- Document2.prototype.getLength = function() {
100463
+ Document3.prototype.getLength = function() {
100471
100464
  return this.$lines.length;
100472
100465
  };
100473
- Document2.prototype.getTextRange = function(range) {
100466
+ Document3.prototype.getTextRange = function(range) {
100474
100467
  return this.getLinesForRange(range).join(this.getNewLineCharacter());
100475
100468
  };
100476
- Document2.prototype.getLinesForRange = function(range) {
100469
+ Document3.prototype.getLinesForRange = function(range) {
100477
100470
  var lines;
100478
100471
  if (range.start.row === range.end.row) {
100479
100472
  lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];
@@ -100486,24 +100479,24 @@ var ace$3 = { exports: {} };
100486
100479
  }
100487
100480
  return lines;
100488
100481
  };
100489
- Document2.prototype.insertLines = function(row, lines) {
100482
+ Document3.prototype.insertLines = function(row, lines) {
100490
100483
  console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead.");
100491
100484
  return this.insertFullLines(row, lines);
100492
100485
  };
100493
- Document2.prototype.removeLines = function(firstRow, lastRow) {
100486
+ Document3.prototype.removeLines = function(firstRow, lastRow) {
100494
100487
  console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead.");
100495
100488
  return this.removeFullLines(firstRow, lastRow);
100496
100489
  };
100497
- Document2.prototype.insertNewLine = function(position3) {
100490
+ Document3.prototype.insertNewLine = function(position3) {
100498
100491
  console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.");
100499
100492
  return this.insertMergedLines(position3, ["", ""]);
100500
100493
  };
100501
- Document2.prototype.insert = function(position3, text2) {
100494
+ Document3.prototype.insert = function(position3, text2) {
100502
100495
  if (this.getLength() <= 1)
100503
100496
  this.$detectNewLine(text2);
100504
100497
  return this.insertMergedLines(position3, this.$split(text2));
100505
100498
  };
100506
- Document2.prototype.insertInLine = function(position3, text2) {
100499
+ Document3.prototype.insertInLine = function(position3, text2) {
100507
100500
  var start3 = this.clippedPos(position3.row, position3.column);
100508
100501
  var end2 = this.pos(position3.row, position3.column + text2.length);
100509
100502
  this.applyDelta({
@@ -100514,7 +100507,7 @@ var ace$3 = { exports: {} };
100514
100507
  }, true);
100515
100508
  return this.clonePos(end2);
100516
100509
  };
100517
- Document2.prototype.clippedPos = function(row, column2) {
100510
+ Document3.prototype.clippedPos = function(row, column2) {
100518
100511
  var length2 = this.getLength();
100519
100512
  if (row === void 0) {
100520
100513
  row = length2;
@@ -100530,13 +100523,13 @@ var ace$3 = { exports: {} };
100530
100523
  column2 = Math.min(Math.max(column2, 0), line2.length);
100531
100524
  return { row, column: column2 };
100532
100525
  };
100533
- Document2.prototype.clonePos = function(pos) {
100526
+ Document3.prototype.clonePos = function(pos) {
100534
100527
  return { row: pos.row, column: pos.column };
100535
100528
  };
100536
- Document2.prototype.pos = function(row, column2) {
100529
+ Document3.prototype.pos = function(row, column2) {
100537
100530
  return { row, column: column2 };
100538
100531
  };
100539
- Document2.prototype.$clipPosition = function(position3) {
100532
+ Document3.prototype.$clipPosition = function(position3) {
100540
100533
  var length2 = this.getLength();
100541
100534
  if (position3.row >= length2) {
100542
100535
  position3.row = Math.max(0, length2 - 1);
@@ -100547,7 +100540,7 @@ var ace$3 = { exports: {} };
100547
100540
  }
100548
100541
  return position3;
100549
100542
  };
100550
- Document2.prototype.insertFullLines = function(row, lines) {
100543
+ Document3.prototype.insertFullLines = function(row, lines) {
100551
100544
  row = Math.min(Math.max(row, 0), this.getLength());
100552
100545
  var column2 = 0;
100553
100546
  if (row < this.getLength()) {
@@ -100560,7 +100553,7 @@ var ace$3 = { exports: {} };
100560
100553
  }
100561
100554
  this.insertMergedLines({ row, column: column2 }, lines);
100562
100555
  };
100563
- Document2.prototype.insertMergedLines = function(position3, lines) {
100556
+ Document3.prototype.insertMergedLines = function(position3, lines) {
100564
100557
  var start3 = this.clippedPos(position3.row, position3.column);
100565
100558
  var end2 = {
100566
100559
  row: start3.row + lines.length - 1,
@@ -100574,7 +100567,7 @@ var ace$3 = { exports: {} };
100574
100567
  });
100575
100568
  return this.clonePos(end2);
100576
100569
  };
100577
- Document2.prototype.remove = function(range) {
100570
+ Document3.prototype.remove = function(range) {
100578
100571
  var start3 = this.clippedPos(range.start.row, range.start.column);
100579
100572
  var end2 = this.clippedPos(range.end.row, range.end.column);
100580
100573
  this.applyDelta({
@@ -100585,7 +100578,7 @@ var ace$3 = { exports: {} };
100585
100578
  });
100586
100579
  return this.clonePos(start3);
100587
100580
  };
100588
- Document2.prototype.removeInLine = function(row, startColumn, endColumn) {
100581
+ Document3.prototype.removeInLine = function(row, startColumn, endColumn) {
100589
100582
  var start3 = this.clippedPos(row, startColumn);
100590
100583
  var end2 = this.clippedPos(row, endColumn);
100591
100584
  this.applyDelta({
@@ -100596,7 +100589,7 @@ var ace$3 = { exports: {} };
100596
100589
  }, true);
100597
100590
  return this.clonePos(start3);
100598
100591
  };
100599
- Document2.prototype.removeFullLines = function(firstRow, lastRow) {
100592
+ Document3.prototype.removeFullLines = function(firstRow, lastRow) {
100600
100593
  firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);
100601
100594
  lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);
100602
100595
  var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;
@@ -100615,7 +100608,7 @@ var ace$3 = { exports: {} };
100615
100608
  });
100616
100609
  return deletedLines;
100617
100610
  };
100618
- Document2.prototype.removeNewLine = function(row) {
100611
+ Document3.prototype.removeNewLine = function(row) {
100619
100612
  if (row < this.getLength() - 1 && row >= 0) {
100620
100613
  this.applyDelta({
100621
100614
  start: this.pos(row, this.getLine(row).length),
@@ -100625,7 +100618,7 @@ var ace$3 = { exports: {} };
100625
100618
  });
100626
100619
  }
100627
100620
  };
100628
- Document2.prototype.replace = function(range, text2) {
100621
+ Document3.prototype.replace = function(range, text2) {
100629
100622
  if (!(range instanceof Range))
100630
100623
  range = Range.fromPoints(range.start, range.end);
100631
100624
  if (text2.length === 0 && range.isEmpty())
@@ -100641,17 +100634,17 @@ var ace$3 = { exports: {} };
100641
100634
  }
100642
100635
  return end2;
100643
100636
  };
100644
- Document2.prototype.applyDeltas = function(deltas) {
100637
+ Document3.prototype.applyDeltas = function(deltas) {
100645
100638
  for (var i2 = 0; i2 < deltas.length; i2++) {
100646
100639
  this.applyDelta(deltas[i2]);
100647
100640
  }
100648
100641
  };
100649
- Document2.prototype.revertDeltas = function(deltas) {
100642
+ Document3.prototype.revertDeltas = function(deltas) {
100650
100643
  for (var i2 = deltas.length - 1; i2 >= 0; i2--) {
100651
100644
  this.revertDelta(deltas[i2]);
100652
100645
  }
100653
100646
  };
100654
- Document2.prototype.applyDelta = function(delta, doNotValidate) {
100647
+ Document3.prototype.applyDelta = function(delta, doNotValidate) {
100655
100648
  var isInsert = delta.action == "insert";
100656
100649
  if (isInsert ? delta.lines.length <= 1 && !delta.lines[0] : !Range.comparePoints(delta.start, delta.end)) {
100657
100650
  return;
@@ -100663,13 +100656,13 @@ var ace$3 = { exports: {} };
100663
100656
  this._signal("change", delta);
100664
100657
  }
100665
100658
  };
100666
- Document2.prototype.$safeApplyDelta = function(delta) {
100659
+ Document3.prototype.$safeApplyDelta = function(delta) {
100667
100660
  var docLength = this.$lines.length;
100668
100661
  if (delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength || delta.action == "insert" && delta.start.row <= docLength) {
100669
100662
  this.applyDelta(delta);
100670
100663
  }
100671
100664
  };
100672
- Document2.prototype.$splitAndapplyLargeDelta = function(delta, MAX) {
100665
+ Document3.prototype.$splitAndapplyLargeDelta = function(delta, MAX) {
100673
100666
  var lines = delta.lines;
100674
100667
  var l2 = lines.length - MAX + 1;
100675
100668
  var row = delta.start.row;
@@ -100690,7 +100683,7 @@ var ace$3 = { exports: {} };
100690
100683
  delta.start.column = column2;
100691
100684
  this.applyDelta(delta, true);
100692
100685
  };
100693
- Document2.prototype.revertDelta = function(delta) {
100686
+ Document3.prototype.revertDelta = function(delta) {
100694
100687
  this.$safeApplyDelta({
100695
100688
  start: this.clonePos(delta.start),
100696
100689
  end: this.clonePos(delta.end),
@@ -100698,7 +100691,7 @@ var ace$3 = { exports: {} };
100698
100691
  lines: delta.lines.slice()
100699
100692
  });
100700
100693
  };
100701
- Document2.prototype.indexToPosition = function(index2, startRow) {
100694
+ Document3.prototype.indexToPosition = function(index2, startRow) {
100702
100695
  var lines = this.$lines || this.getAllLines();
100703
100696
  var newlineLength = this.getNewLineCharacter().length;
100704
100697
  for (var i2 = startRow || 0, l2 = lines.length; i2 < l2; i2++) {
@@ -100708,7 +100701,7 @@ var ace$3 = { exports: {} };
100708
100701
  }
100709
100702
  return { row: l2 - 1, column: index2 + lines[l2 - 1].length + newlineLength };
100710
100703
  };
100711
- Document2.prototype.positionToIndex = function(pos, startRow) {
100704
+ Document3.prototype.positionToIndex = function(pos, startRow) {
100712
100705
  var lines = this.$lines || this.getAllLines();
100713
100706
  var newlineLength = this.getNewLineCharacter().length;
100714
100707
  var index2 = 0;
@@ -100717,16 +100710,16 @@ var ace$3 = { exports: {} };
100717
100710
  index2 += lines[i2].length + newlineLength;
100718
100711
  return index2 + pos.column;
100719
100712
  };
100720
- Document2.prototype.$split = function(text2) {
100713
+ Document3.prototype.$split = function(text2) {
100721
100714
  return text2.split(/\r\n|\r|\n/);
100722
100715
  };
100723
- return Document2;
100716
+ return Document3;
100724
100717
  }()
100725
100718
  );
100726
- Document.prototype.$autoNewLine = "";
100727
- Document.prototype.$newLineMode = "auto";
100728
- oop.implement(Document.prototype, EventEmitter);
100729
- exports3.Document = Document;
100719
+ Document2.prototype.$autoNewLine = "";
100720
+ Document2.prototype.$newLineMode = "auto";
100721
+ oop.implement(Document2.prototype, EventEmitter);
100722
+ exports3.Document = Document2;
100730
100723
  });
100731
100724
  ace.define("ace/background_tokenizer", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(require2, exports3, module3) {
100732
100725
  var oop = require2("./lib/oop");
@@ -102852,7 +102845,7 @@ var ace$3 = { exports: {} };
102852
102845
  var Selection = require2("./selection").Selection;
102853
102846
  var TextMode = require2("./mode/text").Mode;
102854
102847
  var Range = require2("./range").Range;
102855
- var Document = require2("./document").Document;
102848
+ var Document2 = require2("./document").Document;
102856
102849
  var BackgroundTokenizer = require2("./background_tokenizer").BackgroundTokenizer;
102857
102850
  var SearchHighlight = require2("./search_highlight").SearchHighlight;
102858
102851
  var UndoManager = require2("./undomanager").UndoManager;
@@ -102879,7 +102872,7 @@ var ace$3 = { exports: {} };
102879
102872
  this.on("changeFold", this.onChangeFold.bind(this));
102880
102873
  this.$onChange = this.onChange.bind(this);
102881
102874
  if (typeof text2 != "object" || !text2.getLine)
102882
- text2 = new Document(text2);
102875
+ text2 = new Document2(text2);
102883
102876
  this.setDocument(text2);
102884
102877
  this.selection = new Selection(this);
102885
102878
  this.$bidiHandler = new BidiHandler(this);
@@ -118552,10 +118545,10 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118552
118545
  var EventEmitter = require2("./lib/event_emitter").EventEmitter;
118553
118546
  var Range = require2("./range").Range;
118554
118547
  var Anchor = require2("./anchor").Anchor;
118555
- var Document = (
118548
+ var Document2 = (
118556
118549
  /** @class */
118557
118550
  function() {
118558
- function Document2(textOrLines) {
118551
+ function Document3(textOrLines) {
118559
118552
  this.$lines = [""];
118560
118553
  if (textOrLines.length === 0) {
118561
118554
  this.$lines = [""];
@@ -118565,23 +118558,23 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118565
118558
  this.insert({ row: 0, column: 0 }, textOrLines);
118566
118559
  }
118567
118560
  }
118568
- Document2.prototype.setValue = function(text2) {
118561
+ Document3.prototype.setValue = function(text2) {
118569
118562
  var len = this.getLength() - 1;
118570
118563
  this.remove(new Range(0, 0, len, this.getLine(len).length));
118571
118564
  this.insert({ row: 0, column: 0 }, text2 || "");
118572
118565
  };
118573
- Document2.prototype.getValue = function() {
118566
+ Document3.prototype.getValue = function() {
118574
118567
  return this.getAllLines().join(this.getNewLineCharacter());
118575
118568
  };
118576
- Document2.prototype.createAnchor = function(row, column2) {
118569
+ Document3.prototype.createAnchor = function(row, column2) {
118577
118570
  return new Anchor(this, row, column2);
118578
118571
  };
118579
- Document2.prototype.$detectNewLine = function(text2) {
118572
+ Document3.prototype.$detectNewLine = function(text2) {
118580
118573
  var match2 = text2.match(/^.*?(\r\n|\r|\n)/m);
118581
118574
  this.$autoNewLine = match2 ? match2[1] : "\n";
118582
118575
  this._signal("changeNewLineMode");
118583
118576
  };
118584
- Document2.prototype.getNewLineCharacter = function() {
118577
+ Document3.prototype.getNewLineCharacter = function() {
118585
118578
  switch (this.$newLineMode) {
118586
118579
  case "windows":
118587
118580
  return "\r\n";
@@ -118591,34 +118584,34 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118591
118584
  return this.$autoNewLine || "\n";
118592
118585
  }
118593
118586
  };
118594
- Document2.prototype.setNewLineMode = function(newLineMode) {
118587
+ Document3.prototype.setNewLineMode = function(newLineMode) {
118595
118588
  if (this.$newLineMode === newLineMode)
118596
118589
  return;
118597
118590
  this.$newLineMode = newLineMode;
118598
118591
  this._signal("changeNewLineMode");
118599
118592
  };
118600
- Document2.prototype.getNewLineMode = function() {
118593
+ Document3.prototype.getNewLineMode = function() {
118601
118594
  return this.$newLineMode;
118602
118595
  };
118603
- Document2.prototype.isNewLine = function(text2) {
118596
+ Document3.prototype.isNewLine = function(text2) {
118604
118597
  return text2 == "\r\n" || text2 == "\r" || text2 == "\n";
118605
118598
  };
118606
- Document2.prototype.getLine = function(row) {
118599
+ Document3.prototype.getLine = function(row) {
118607
118600
  return this.$lines[row] || "";
118608
118601
  };
118609
- Document2.prototype.getLines = function(firstRow, lastRow) {
118602
+ Document3.prototype.getLines = function(firstRow, lastRow) {
118610
118603
  return this.$lines.slice(firstRow, lastRow + 1);
118611
118604
  };
118612
- Document2.prototype.getAllLines = function() {
118605
+ Document3.prototype.getAllLines = function() {
118613
118606
  return this.getLines(0, this.getLength());
118614
118607
  };
118615
- Document2.prototype.getLength = function() {
118608
+ Document3.prototype.getLength = function() {
118616
118609
  return this.$lines.length;
118617
118610
  };
118618
- Document2.prototype.getTextRange = function(range) {
118611
+ Document3.prototype.getTextRange = function(range) {
118619
118612
  return this.getLinesForRange(range).join(this.getNewLineCharacter());
118620
118613
  };
118621
- Document2.prototype.getLinesForRange = function(range) {
118614
+ Document3.prototype.getLinesForRange = function(range) {
118622
118615
  var lines;
118623
118616
  if (range.start.row === range.end.row) {
118624
118617
  lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];
@@ -118631,24 +118624,24 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118631
118624
  }
118632
118625
  return lines;
118633
118626
  };
118634
- Document2.prototype.insertLines = function(row, lines) {
118627
+ Document3.prototype.insertLines = function(row, lines) {
118635
118628
  console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead.");
118636
118629
  return this.insertFullLines(row, lines);
118637
118630
  };
118638
- Document2.prototype.removeLines = function(firstRow, lastRow) {
118631
+ Document3.prototype.removeLines = function(firstRow, lastRow) {
118639
118632
  console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead.");
118640
118633
  return this.removeFullLines(firstRow, lastRow);
118641
118634
  };
118642
- Document2.prototype.insertNewLine = function(position3) {
118635
+ Document3.prototype.insertNewLine = function(position3) {
118643
118636
  console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.");
118644
118637
  return this.insertMergedLines(position3, ["", ""]);
118645
118638
  };
118646
- Document2.prototype.insert = function(position3, text2) {
118639
+ Document3.prototype.insert = function(position3, text2) {
118647
118640
  if (this.getLength() <= 1)
118648
118641
  this.$detectNewLine(text2);
118649
118642
  return this.insertMergedLines(position3, this.$split(text2));
118650
118643
  };
118651
- Document2.prototype.insertInLine = function(position3, text2) {
118644
+ Document3.prototype.insertInLine = function(position3, text2) {
118652
118645
  var start3 = this.clippedPos(position3.row, position3.column);
118653
118646
  var end2 = this.pos(position3.row, position3.column + text2.length);
118654
118647
  this.applyDelta({
@@ -118659,7 +118652,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118659
118652
  }, true);
118660
118653
  return this.clonePos(end2);
118661
118654
  };
118662
- Document2.prototype.clippedPos = function(row, column2) {
118655
+ Document3.prototype.clippedPos = function(row, column2) {
118663
118656
  var length2 = this.getLength();
118664
118657
  if (row === void 0) {
118665
118658
  row = length2;
@@ -118675,13 +118668,13 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118675
118668
  column2 = Math.min(Math.max(column2, 0), line2.length);
118676
118669
  return { row, column: column2 };
118677
118670
  };
118678
- Document2.prototype.clonePos = function(pos) {
118671
+ Document3.prototype.clonePos = function(pos) {
118679
118672
  return { row: pos.row, column: pos.column };
118680
118673
  };
118681
- Document2.prototype.pos = function(row, column2) {
118674
+ Document3.prototype.pos = function(row, column2) {
118682
118675
  return { row, column: column2 };
118683
118676
  };
118684
- Document2.prototype.$clipPosition = function(position3) {
118677
+ Document3.prototype.$clipPosition = function(position3) {
118685
118678
  var length2 = this.getLength();
118686
118679
  if (position3.row >= length2) {
118687
118680
  position3.row = Math.max(0, length2 - 1);
@@ -118692,7 +118685,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118692
118685
  }
118693
118686
  return position3;
118694
118687
  };
118695
- Document2.prototype.insertFullLines = function(row, lines) {
118688
+ Document3.prototype.insertFullLines = function(row, lines) {
118696
118689
  row = Math.min(Math.max(row, 0), this.getLength());
118697
118690
  var column2 = 0;
118698
118691
  if (row < this.getLength()) {
@@ -118705,7 +118698,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118705
118698
  }
118706
118699
  this.insertMergedLines({ row, column: column2 }, lines);
118707
118700
  };
118708
- Document2.prototype.insertMergedLines = function(position3, lines) {
118701
+ Document3.prototype.insertMergedLines = function(position3, lines) {
118709
118702
  var start3 = this.clippedPos(position3.row, position3.column);
118710
118703
  var end2 = {
118711
118704
  row: start3.row + lines.length - 1,
@@ -118719,7 +118712,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118719
118712
  });
118720
118713
  return this.clonePos(end2);
118721
118714
  };
118722
- Document2.prototype.remove = function(range) {
118715
+ Document3.prototype.remove = function(range) {
118723
118716
  var start3 = this.clippedPos(range.start.row, range.start.column);
118724
118717
  var end2 = this.clippedPos(range.end.row, range.end.column);
118725
118718
  this.applyDelta({
@@ -118730,7 +118723,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118730
118723
  });
118731
118724
  return this.clonePos(start3);
118732
118725
  };
118733
- Document2.prototype.removeInLine = function(row, startColumn, endColumn) {
118726
+ Document3.prototype.removeInLine = function(row, startColumn, endColumn) {
118734
118727
  var start3 = this.clippedPos(row, startColumn);
118735
118728
  var end2 = this.clippedPos(row, endColumn);
118736
118729
  this.applyDelta({
@@ -118741,7 +118734,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118741
118734
  }, true);
118742
118735
  return this.clonePos(start3);
118743
118736
  };
118744
- Document2.prototype.removeFullLines = function(firstRow, lastRow) {
118737
+ Document3.prototype.removeFullLines = function(firstRow, lastRow) {
118745
118738
  firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);
118746
118739
  lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);
118747
118740
  var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;
@@ -118760,7 +118753,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118760
118753
  });
118761
118754
  return deletedLines;
118762
118755
  };
118763
- Document2.prototype.removeNewLine = function(row) {
118756
+ Document3.prototype.removeNewLine = function(row) {
118764
118757
  if (row < this.getLength() - 1 && row >= 0) {
118765
118758
  this.applyDelta({
118766
118759
  start: this.pos(row, this.getLine(row).length),
@@ -118770,7 +118763,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118770
118763
  });
118771
118764
  }
118772
118765
  };
118773
- Document2.prototype.replace = function(range, text2) {
118766
+ Document3.prototype.replace = function(range, text2) {
118774
118767
  if (!(range instanceof Range))
118775
118768
  range = Range.fromPoints(range.start, range.end);
118776
118769
  if (text2.length === 0 && range.isEmpty())
@@ -118786,17 +118779,17 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118786
118779
  }
118787
118780
  return end2;
118788
118781
  };
118789
- Document2.prototype.applyDeltas = function(deltas) {
118782
+ Document3.prototype.applyDeltas = function(deltas) {
118790
118783
  for (var i2 = 0; i2 < deltas.length; i2++) {
118791
118784
  this.applyDelta(deltas[i2]);
118792
118785
  }
118793
118786
  };
118794
- Document2.prototype.revertDeltas = function(deltas) {
118787
+ Document3.prototype.revertDeltas = function(deltas) {
118795
118788
  for (var i2 = deltas.length - 1; i2 >= 0; i2--) {
118796
118789
  this.revertDelta(deltas[i2]);
118797
118790
  }
118798
118791
  };
118799
- Document2.prototype.applyDelta = function(delta, doNotValidate) {
118792
+ Document3.prototype.applyDelta = function(delta, doNotValidate) {
118800
118793
  var isInsert = delta.action == "insert";
118801
118794
  if (isInsert ? delta.lines.length <= 1 && !delta.lines[0] : !Range.comparePoints(delta.start, delta.end)) {
118802
118795
  return;
@@ -118808,13 +118801,13 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118808
118801
  this._signal("change", delta);
118809
118802
  }
118810
118803
  };
118811
- Document2.prototype.$safeApplyDelta = function(delta) {
118804
+ Document3.prototype.$safeApplyDelta = function(delta) {
118812
118805
  var docLength = this.$lines.length;
118813
118806
  if (delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength || delta.action == "insert" && delta.start.row <= docLength) {
118814
118807
  this.applyDelta(delta);
118815
118808
  }
118816
118809
  };
118817
- Document2.prototype.$splitAndapplyLargeDelta = function(delta, MAX) {
118810
+ Document3.prototype.$splitAndapplyLargeDelta = function(delta, MAX) {
118818
118811
  var lines = delta.lines;
118819
118812
  var l2 = lines.length - MAX + 1;
118820
118813
  var row = delta.start.row;
@@ -118835,7 +118828,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118835
118828
  delta.start.column = column2;
118836
118829
  this.applyDelta(delta, true);
118837
118830
  };
118838
- Document2.prototype.revertDelta = function(delta) {
118831
+ Document3.prototype.revertDelta = function(delta) {
118839
118832
  this.$safeApplyDelta({
118840
118833
  start: this.clonePos(delta.start),
118841
118834
  end: this.clonePos(delta.end),
@@ -118843,7 +118836,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118843
118836
  lines: delta.lines.slice()
118844
118837
  });
118845
118838
  };
118846
- Document2.prototype.indexToPosition = function(index2, startRow) {
118839
+ Document3.prototype.indexToPosition = function(index2, startRow) {
118847
118840
  var lines = this.$lines || this.getAllLines();
118848
118841
  var newlineLength = this.getNewLineCharacter().length;
118849
118842
  for (var i2 = startRow || 0, l2 = lines.length; i2 < l2; i2++) {
@@ -118853,7 +118846,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118853
118846
  }
118854
118847
  return { row: l2 - 1, column: index2 + lines[l2 - 1].length + newlineLength };
118855
118848
  };
118856
- Document2.prototype.positionToIndex = function(pos, startRow) {
118849
+ Document3.prototype.positionToIndex = function(pos, startRow) {
118857
118850
  var lines = this.$lines || this.getAllLines();
118858
118851
  var newlineLength = this.getNewLineCharacter().length;
118859
118852
  var index2 = 0;
@@ -118862,16 +118855,16 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
118862
118855
  index2 += lines[i2].length + newlineLength;
118863
118856
  return index2 + pos.column;
118864
118857
  };
118865
- Document2.prototype.$split = function(text2) {
118858
+ Document3.prototype.$split = function(text2) {
118866
118859
  return text2.split(/\r\n|\r|\n/);
118867
118860
  };
118868
- return Document2;
118861
+ return Document3;
118869
118862
  }()
118870
118863
  );
118871
- Document.prototype.$autoNewLine = "";
118872
- Document.prototype.$newLineMode = "auto";
118873
- oop.implement(Document.prototype, EventEmitter);
118874
- exports2.Document = Document;
118864
+ Document2.prototype.$autoNewLine = "";
118865
+ Document2.prototype.$newLineMode = "auto";
118866
+ oop.implement(Document2.prototype, EventEmitter);
118867
+ exports2.Document = Document2;
118875
118868
  });
118876
118869
  ace.define("ace/lib/deep_copy", [], function(require2, exports2, module2) {
118877
118870
  exports2.deepCopy = function deepCopy(obj) {
@@ -119046,11 +119039,11 @@ ace.define("ace/lib/lang", [], function(require2, exports2, module2) {
119046
119039
  };
119047
119040
  });
119048
119041
  ace.define("ace/worker/mirror", [], function(require2, exports2, module2) {
119049
- var Document = require2("../document").Document;
119042
+ var Document2 = require2("../document").Document;
119050
119043
  var lang = require2("../lib/lang");
119051
119044
  var Mirror = exports2.Mirror = function(sender) {
119052
119045
  this.sender = sender;
119053
- var doc = this.doc = new Document("");
119046
+ var doc = this.doc = new Document2("");
119054
119047
  var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));
119055
119048
  var _self = this;
119056
119049
  sender.on("change", function(e2) {
@@ -149178,7 +149171,6 @@ class FormManager {
149178
149171
  return formJson.map((item) => resolveRefsInForm(item));
149179
149172
  }
149180
149173
  loadJsonForm(p_data) {
149181
- console.log(p_data);
149182
149174
  if (!p_data) {
149183
149175
  return {};
149184
149176
  }
@@ -149188,14 +149180,10 @@ class FormManager {
149188
149180
  this.loadJsonFormNode(p_data.fieldsRef[key3]);
149189
149181
  });
149190
149182
  }
149191
- console.log(p_data);
149192
- console.log(Array.isArray(p_data == null ? void 0 : p_data.form));
149193
149183
  const formData = Array.isArray(p_data == null ? void 0 : p_data.form) ? p_data.form : Array.isArray(p_data == null ? void 0 : p_data.content) ? p_data.content : Array.isArray(p_data) ? p_data : [];
149194
- console.log(formData);
149195
149184
  for (let i2 = 0; i2 < formData.length; i2++) {
149196
149185
  formData[i2] = this.loadJsonFormNode(formData[i2], true);
149197
149186
  }
149198
- console.log(formData);
149199
149187
  return formData;
149200
149188
  }
149201
149189
  /**
@@ -149208,12 +149196,11 @@ class FormManager {
149208
149196
  * @returns {Object} - L'objet `p_item` potentiellement modifié après traitement.
149209
149197
  */
149210
149198
  loadJsonFormNode(p_item, test = false) {
149211
- var _a, _b, _c, _d;
149199
+ var _a, _b, _c, _d, _e2;
149212
149200
  if (p_item == null ? void 0 : p_item._fieldRefLinked) {
149213
149201
  return p_item;
149214
149202
  }
149215
149203
  if (p_item.fieldRef) {
149216
- console.log("fieldRef", p_item.fieldRef);
149217
149204
  if ((_a = this.fieldsRef) == null ? void 0 : _a[p_item.fieldRef]) {
149218
149205
  p_item.id = (p_item == null ? void 0 : p_item.id) ?? p_item.fieldRef;
149219
149206
  p_item = _.merge(
@@ -149221,9 +149208,9 @@ class FormManager {
149221
149208
  this.fieldsRef[p_item.fieldRef],
149222
149209
  _.cloneDeep(p_item)
149223
149210
  );
149224
- const refContent = console.log("********", p_item.id, "********");
149211
+ const refContent = (_b = this.fieldsRef[p_item.fieldRef]) == null ? void 0 : _b.content;
149225
149212
  if (refContent) {
149226
- if (((_b = p_item.content) == null ? void 0 : _b.length) && Array.isArray(p_item.content)) {
149213
+ if (((_c = p_item.content) == null ? void 0 : _c.length) && Array.isArray(p_item.content)) {
149227
149214
  refContent.forEach((refItem, index2) => {
149228
149215
  const item = p_item.content.find((item2) => item2.id === refItem.id);
149229
149216
  const itemIndex = p_item.content.findIndex(
@@ -149253,7 +149240,7 @@ class FormManager {
149253
149240
  return this.loadJsonFormNode(item);
149254
149241
  });
149255
149242
  }
149256
- if (((_c = p_item == null ? void 0 : p_item.forms) == null ? void 0 : _c.content) && Array.isArray((_d = p_item == null ? void 0 : p_item.forms) == null ? void 0 : _d.content)) {
149243
+ if (((_d = p_item == null ? void 0 : p_item.forms) == null ? void 0 : _d.content) && Array.isArray((_e2 = p_item == null ? void 0 : p_item.forms) == null ? void 0 : _e2.content)) {
149257
149244
  p_item.forms.content = p_item.forms.content.map((item) => {
149258
149245
  return this.loadJsonFormNode(item);
149259
149246
  });
@@ -149350,45 +149337,31 @@ class FormManager {
149350
149337
  const evaluateGroup = (group, treeId) => {
149351
149338
  var _a;
149352
149339
  let result = true;
149353
- console.log("group length", group.conditions.length);
149354
149340
  (_a = group == null ? void 0 : group.conditions) == null ? void 0 : _a.forEach((subCondition, subConditionIndex) => {
149355
149341
  let subResult = false;
149356
- console.log("subCondition", subCondition);
149357
149342
  if (subCondition.conditions) {
149358
149343
  subResult = evaluateGroup(subCondition, treeId);
149359
- console.log("subResult evaluate group", subResult);
149360
149344
  } else {
149361
149345
  subResult = evaluateCondition(subCondition, treeId);
149362
- console.log("subResult evaluate conditions", subResult);
149363
149346
  }
149364
149347
  if (subConditionIndex === 0) {
149365
149348
  result = subResult;
149366
149349
  } else {
149367
- console.log("-----" + group.subCondition);
149368
149350
  if (subCondition.logical_operator === "and") {
149369
- console.log("and", result, subResult);
149370
149351
  result = result && subResult;
149371
- console.log("for", result);
149372
149352
  } else if (subCondition.logical_operator === "or") {
149373
- console.log("or", result, subResult);
149374
149353
  result = result || subResult;
149375
- console.log("for", result);
149376
149354
  }
149377
149355
  }
149378
149356
  });
149379
- console.log("group evaluate result", result);
149380
149357
  return result;
149381
149358
  };
149382
149359
  let item_parent_value_treeId_array = (p_TreeId === null ? item.id : p_TreeId).split("__");
149383
149360
  item_parent_value_treeId_array.pop();
149384
149361
  const item_parent_value_treeId = item_parent_value_treeId_array.join("__");
149385
- console.log("item", item);
149386
149362
  const mainGroup = item.conditions && item.conditions.length > 0 ? { conditions: item.conditions } : null;
149387
149363
  if (mainGroup) {
149388
- console.log("-------------------------------Start");
149389
149364
  const evaluateResult = evaluateGroup(mainGroup, item_parent_value_treeId);
149390
- console.log(evaluateResult);
149391
- console.log("-------------------------------End");
149392
149365
  return evaluateResult;
149393
149366
  } else {
149394
149367
  return true;