xml-model 0.2.0 → 0.2.1

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.
@@ -15,7 +15,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
15
15
  __RΦ.t[id] = t = l;
16
16
  }
17
17
  return t;
18
- }, t: { [4]: { RΦ: t => ({ TΦ: "~" }) }, [103]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(102) }] }) }, [102]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(101) }) }, [101]: { LΦ: t => require("xml-js/types").IΦElement }, [13]: { LΦ: t => String }, [14]: { LΦ: t => Number }, [1714]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(3137) }] }) }, [3137]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(3135) }) }, [3135]: { RΦ: t => ({ TΦ: "O", m: [{ n: "type", f: "", t: __RΦ.a(13) }, { n: "name", f: "", t: __RΦ.a(13) }] }) }, [20]: { LΦ: t => Boolean } } };
18
+ }, t: { [4]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => require("../types").IΦXMLElement }, [13]: { LΦ: t => String }, [14]: { LΦ: t => Number }, [1694]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(3121) }] }) }, [3121]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(3119) }) }, [3119]: { RΦ: t => ({ TΦ: "O", m: [{ n: "type", f: "", t: __RΦ.a(13) }, { n: "name", f: "", t: __RΦ.a(13) }] }) }, [20]: { LΦ: t => Boolean } } };
19
19
  const model_1 = require("../model");
20
20
  const xml_1 = require("../xml");
21
21
  // string is <string>value</string>
@@ -24,7 +24,7 @@ const xml_1 = require("../xml");
24
24
  return {
25
25
  elements: [(0, xml_1.fromContent)(ctx.object, "string")],
26
26
  };
27
- }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(103))], "toXML"),
27
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
28
28
  fromXML: __RΦ.f((ctx) => {
29
29
  return String((0, xml_1.getContent)(ctx.xml.elements[0]));
30
30
  }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(13))], "fromXML"),
@@ -35,7 +35,7 @@ const xml_1 = require("../xml");
35
35
  return {
36
36
  elements: [(0, xml_1.fromContent)(String(ctx.object), "number")],
37
37
  };
38
- }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(103))], "toXML"),
38
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
39
39
  fromXML: __RΦ.f((ctx) => {
40
40
  return Number((0, xml_1.getContent)(ctx.xml.elements[0]));
41
41
  }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(14))], "fromXML"),
@@ -48,7 +48,7 @@ const xml_1 = require("../xml");
48
48
  Object.assign({ type: "element", name: "boolean" }, (0, xml_1.fromContent)(String(ctx.object))),
49
49
  ],
50
50
  };
51
- }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1714))], "toXML"),
51
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1694))], "toXML"),
52
52
  fromXML: __RΦ.f((ctx) => {
53
53
  return Boolean((0, xml_1.getContent)(ctx.xml.elements[0]));
54
54
  }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "fromXML"),
@@ -16,19 +16,19 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
16
16
  __RΦ.t[id] = t = l;
17
17
  }
18
18
  return t;
19
- }, t: { [112]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(109)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [109]: { TΦ: "5", name: "ChainableOptions" }, [115]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(114) }) }, [114]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [118]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(109), p: [__RΦ.a(116), __RΦ.a(117)] }) }, [116]: { LΦ: t => Object }, [117]: { LΦ: t => Object }, [137]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(132), p: [__RΦ.a(119), __RΦ.a(22), __RΦ.a(8)] }) }, [132]: { LΦ: t => Object }, [119]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [149]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(141), p: [__RΦ.a(152), __RΦ.a(1), __RΦ.a(10)] }) }, [141]: { LΦ: t => Object }, [152]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [147]: { LΦ: t => Object }, [148]: { LΦ: t => Object } } };
19
+ }, t: { [118]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(115)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [115]: { TΦ: "5", name: "ChainableOptions" }, [121]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(120) }) }, [120]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [124]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(115), p: [__RΦ.a(122), __RΦ.a(123)] }) }, [122]: { LΦ: t => Object }, [123]: { LΦ: t => Object }, [143]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(138), p: [__RΦ.a(125), __RΦ.a(22), __RΦ.a(8)] }) }, [138]: { LΦ: t => Object }, [125]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [155]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(147), p: [__RΦ.a(158), __RΦ.a(1), __RΦ.a(10)] }) }, [147]: { LΦ: t => Object }, [158]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [153]: { LΦ: t => Object }, [154]: { LΦ: t => Object } } };
20
20
  var IΦChainableOptions = { name: "ChainableOptions", prototype: {}, identity: Symbol("ChainableOptions (interface)") };
21
- (t => __RΦ.t[109] = t)(IΦChainableOptions);
21
+ (t => __RΦ.t[115] = t)(IΦChainableOptions);
22
22
  __RΦ.m("rt:P", ["parent", "middlewares"])(IΦChainableOptions);
23
23
  __RΦ.m("rt:m", [])(IΦChainableOptions);
24
24
  __RΦ.m("rt:f", "I")(IΦChainableOptions);
25
- __RΦ.m("rt:t", () => __RΦ.a(112))(IΦChainableOptions.prototype, "parent");
25
+ __RΦ.m("rt:t", () => __RΦ.a(118))(IΦChainableOptions.prototype, "parent");
26
26
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "parent");
27
- __RΦ.m("rt:t", () => __RΦ.a(115))(IΦChainableOptions.prototype, "middlewares");
27
+ __RΦ.m("rt:t", () => __RΦ.a(121))(IΦChainableOptions.prototype, "middlewares");
28
28
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "middlewares");
29
- __RΦ.m("rt:t", () => __RΦ.a(112))(IΦChainableOptions.prototype, "parent");
29
+ __RΦ.m("rt:t", () => __RΦ.a(118))(IΦChainableOptions.prototype, "parent");
30
30
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "parent");
31
- __RΦ.m("rt:t", () => __RΦ.a(115))(IΦChainableOptions.prototype, "middlewares");
31
+ __RΦ.m("rt:t", () => __RΦ.a(121))(IΦChainableOptions.prototype, "middlewares");
32
32
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "middlewares");
33
33
  function* MiddlewareChain(options) {
34
34
  do {
@@ -42,9 +42,9 @@ function* MiddlewareChain(options) {
42
42
  } while (true);
43
43
  }
44
44
  exports.MiddlewareChain = MiddlewareChain;
45
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(118), v: null }])(MiddlewareChain);
45
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(124), v: null }])(MiddlewareChain);
46
46
  __RΦ.m("rt:f", "F")(MiddlewareChain);
47
- __RΦ.m("rt:t", () => __RΦ.a(137))(MiddlewareChain);
47
+ __RΦ.m("rt:t", () => __RΦ.a(143))(MiddlewareChain);
48
48
  function resolve(middlewares, context) {
49
49
  const next = __RΦ.f(() => {
50
50
  const { value: nextMiddleware, done } = middlewares.next();
@@ -56,10 +56,10 @@ function resolve(middlewares, context) {
56
56
  else {
57
57
  return nextMiddleware(context, next);
58
58
  }
59
- }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(148))], "next");
59
+ }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(154))], "next");
60
60
  return next();
61
61
  }
62
62
  exports.resolve = resolve;
63
- __RΦ.m("rt:p", [{ n: "middlewares", t: () => __RΦ.a(149), v: null }, { n: "context", t: () => __RΦ.a(147), v: null }])(resolve);
63
+ __RΦ.m("rt:p", [{ n: "middlewares", t: () => __RΦ.a(155), v: null }, { n: "context", t: () => __RΦ.a(153), v: null }])(resolve);
64
64
  __RΦ.m("rt:f", "F")(resolve);
65
- __RΦ.m("rt:t", () => __RΦ.a(148))(resolve);
65
+ __RΦ.m("rt:t", () => __RΦ.a(154))(resolve);
@@ -19,7 +19,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
19
19
  __RΦ.t[id] = t = l;
20
20
  }
21
21
  return t;
22
- }, t: { [524]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(495)] }) }, [194]: { LΦ: t => require("typescript-rtti/dist").IΦConstructor }, [495]: { LΦ: t => Object }, [1732]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(8)] }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [1735]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(132), p: [__RΦ.a(1732), __RΦ.a(22), __RΦ.a(8)] }) }, [132]: { LΦ: t => Object }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [497]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(494), p: [__RΦ.a(1)] }) }, [494]: { TΦ: "5", name: "XMLModel" }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [1758]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(497)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [1767]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1638), p: [__RΦ.a(495)] }) }, [1638]: { LΦ: t => require("./types").IΦCreateXMLModelOptions }, [517]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(514), p: [__RΦ.a(495)] }) }, [514]: { LΦ: t => require("./types").IΦXMLModelOptions }, [1791]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1313)] }) }, [1313]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(594), p: [__RΦ.a(414), __RΦ.a(1311)] }) }, [594]: { LΦ: t => require("./types").IΦConversionOptions }, [414]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(415), p: [__RΦ.a(413), __RΦ.a(376)] }) }, [415]: { LΦ: t => Object }, [413]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(372), p: [__RΦ.a(1)] }) }, [372]: { LΦ: t => require("./types").IΦfromXMLContext }, [376]: { LΦ: t => "properties" }, [1311]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1312), p: [__RΦ.a(1)] }) }, [1312]: { LΦ: t => Object }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [643]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(644), p: [__RΦ.a(495)] }) }, [644]: { LΦ: t => Object }, [1801]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1799)] }) }, [1799]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(594), p: [__RΦ.a(1345), __RΦ.a(1797)] }) }, [1345]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1346), p: [__RΦ.a(1344), __RΦ.a(376)] }) }, [1346]: { LΦ: t => Object }, [1344]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(845), p: [__RΦ.a(1)] }) }, [845]: { LΦ: t => require("./types").IΦtoXMLContext }, [1797]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1798), p: [__RΦ.a(1)] }) }, [1798]: { LΦ: t => Object }, [875]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(876), p: [__RΦ.a(495)] }) }, [876]: { LΦ: t => Object }, [20]: { LΦ: t => Boolean }, [646]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(652) }, { n: "toXML", f: "", t: __RΦ.a(883) }, { n: "options", f: "", t: __RΦ.a(1059) }] }) }, [652]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(594), p: [__RΦ.a(648), __RΦ.a(650)] }) }, [648]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(649), p: [__RΦ.a(598), __RΦ.a(376)] }) }, [649]: { LΦ: t => Object }, [598]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(372), p: [__RΦ.a(515)] }) }, [515]: { LΦ: t => Object }, [650]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(651), p: [__RΦ.a(515)] }) }, [651]: { LΦ: t => Object }, [883]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(594), p: [__RΦ.a(879), __RΦ.a(881)] }) }, [879]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(880), p: [__RΦ.a(848), __RΦ.a(376)] }) }, [880]: { LΦ: t => Object }, [848]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(845), p: [__RΦ.a(515)] }) }, [881]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(882), p: [__RΦ.a(515)] }) }, [882]: { LΦ: t => Object }, [1059]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1049), p: [__RΦ.a(1057), __RΦ.a(1058)] }) }, [1049]: { LΦ: t => Map }, [1057]: { LΦ: t => Object }, [1058]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(206), p: [__RΦ.a(515)] }) }, [206]: { LΦ: t => require("./types").IΦXMLModelPropertyOptions }, [1817]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1815)] }) }, [1815]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(594), p: [__RΦ.a(413), __RΦ.a(1)] }) }, [1822]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1820)] }) }, [1820]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(594), p: [__RΦ.a(1344), __RΦ.a(103)] }) }, [103]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(102) }] }) }, [102]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(101) }) }, [101]: { LΦ: t => require("xml-js/types").IΦElement }, [13]: { LΦ: t => String }, [533]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(103)] }) }, [28]: { LΦ: t => Object }, [933]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(929), p: [__RΦ.a(524)] }) }, [929]: { LΦ: t => require("typescript-rtti/dist").ReflectedClass }, [1054]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1049), p: [__RΦ.a(13), __RΦ.a(1048)] }) }, [1048]: { RΦ: t => ({ TΦ: "&", t: [__RΦ.a(1046), __RΦ.a(1047)] }) }, [1046]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(206), p: [__RΦ.a(1)] }) }, [1047]: { RΦ: t => ({ TΦ: "O", m: [{ n: "model", f: "", t: __RΦ.a(1) }] }) }, [1642]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1637)] }) }, [1637]: { LΦ: t => Object }, [1641]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1638), p: [__RΦ.a(1637)] }) }, [1675]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(494), p: [__RΦ.a(1637)] }) }, [1740]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1737)] }) }, [1737]: { LΦ: t => Object }, [1753]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1752)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1752]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(494), p: [__RΦ.a(1737)] }) }, [1954]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1953)] }) }, [1953]: { LΦ: t => Object }, [1957]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(494), p: [__RΦ.a(1953)] }) }, [1960]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1638), p: [__RΦ.a(1959)] }) }, [1959]: { LΦ: t => Object }, [1962]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "constructor", t: () => __RΦ.a(1963), v: null }], f: "" }) }, [1963]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1959)] }) } } };
22
+ }, t: { [530]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(501)] }) }, [200]: { LΦ: t => require("typescript-rtti/dist").IΦConstructor }, [501]: { LΦ: t => Object }, [1712]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(8)] }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [1715]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(138), p: [__RΦ.a(1712), __RΦ.a(22), __RΦ.a(8)] }) }, [138]: { LΦ: t => Object }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [503]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1)] }) }, [500]: { TΦ: "5", name: "XMLModel" }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [1738]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(503)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [1747]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1618), p: [__RΦ.a(501)] }) }, [1618]: { LΦ: t => require("./types").IΦCreateXMLModelOptions }, [523]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(520), p: [__RΦ.a(501)] }) }, [520]: { LΦ: t => require("./types").IΦXMLModelOptions }, [1771]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1326)] }) }, [1326]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(420), __RΦ.a(1324)] }) }, [600]: { LΦ: t => require("./types").IΦConversionOptions }, [420]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(421), p: [__RΦ.a(419), __RΦ.a(382)] }) }, [421]: { LΦ: t => Object }, [419]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(378), p: [__RΦ.a(1)] }) }, [378]: { LΦ: t => require("./types").IΦfromXMLContext }, [382]: { LΦ: t => "properties" }, [1324]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1325), p: [__RΦ.a(1)] }) }, [1325]: { LΦ: t => Object }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [656]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(657), p: [__RΦ.a(501)] }) }, [657]: { LΦ: t => Object }, [1781]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1779)] }) }, [1779]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(1358), __RΦ.a(1777)] }) }, [1358]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1359), p: [__RΦ.a(1357), __RΦ.a(382)] }) }, [1359]: { LΦ: t => Object }, [1357]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(858), p: [__RΦ.a(1)] }) }, [858]: { LΦ: t => require("./types").IΦtoXMLContext }, [1777]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1778), p: [__RΦ.a(1)] }) }, [1778]: { LΦ: t => Object }, [888]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(889), p: [__RΦ.a(501)] }) }, [889]: { LΦ: t => Object }, [20]: { LΦ: t => Boolean }, [659]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(665) }, { n: "toXML", f: "", t: __RΦ.a(896) }, { n: "options", f: "", t: __RΦ.a(1072) }] }) }, [665]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(661), __RΦ.a(663)] }) }, [661]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(662), p: [__RΦ.a(604), __RΦ.a(382)] }) }, [662]: { LΦ: t => Object }, [604]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(378), p: [__RΦ.a(521)] }) }, [521]: { LΦ: t => Object }, [663]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(664), p: [__RΦ.a(521)] }) }, [664]: { LΦ: t => Object }, [896]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(892), __RΦ.a(894)] }) }, [892]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(893), p: [__RΦ.a(861), __RΦ.a(382)] }) }, [893]: { LΦ: t => Object }, [861]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(858), p: [__RΦ.a(521)] }) }, [894]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(895), p: [__RΦ.a(521)] }) }, [895]: { LΦ: t => Object }, [1072]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1062), p: [__RΦ.a(1070), __RΦ.a(1071)] }) }, [1062]: { LΦ: t => Map }, [1070]: { LΦ: t => Object }, [1071]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(521)] }) }, [212]: { LΦ: t => require("./types").IΦXMLModelPropertyOptions }, [1797]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1795)] }) }, [1795]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(419), __RΦ.a(1)] }) }, [1802]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1800)] }) }, [1800]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(1357), __RΦ.a(109)] }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => require("../types").IΦXMLElement }, [13]: { LΦ: t => String }, [539]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(109)] }) }, [28]: { LΦ: t => Object }, [946]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(942), p: [__RΦ.a(530)] }) }, [942]: { LΦ: t => require("typescript-rtti/dist").ReflectedClass }, [1067]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1062), p: [__RΦ.a(13), __RΦ.a(1061)] }) }, [1061]: { RΦ: t => ({ TΦ: "&", t: [__RΦ.a(1059), __RΦ.a(1060)] }) }, [1059]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1)] }) }, [1060]: { RΦ: t => ({ TΦ: "O", m: [{ n: "model", f: "", t: __RΦ.a(1) }] }) }, [1622]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1617)] }) }, [1617]: { LΦ: t => Object }, [1621]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1618), p: [__RΦ.a(1617)] }) }, [1655]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1617)] }) }, [1720]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1717)] }) }, [1717]: { LΦ: t => Object }, [1733]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1732)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1732]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1717)] }) }, [1934]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1933)] }) }, [1933]: { LΦ: t => Object }, [1937]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1933)] }) }, [1940]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1618), p: [__RΦ.a(1939)] }) }, [1939]: { LΦ: t => Object }, [1942]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "constructor", t: () => __RΦ.a(1943), v: null }], f: "" }) }, [1943]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1939)] }) } } };
23
23
  require("reflect-metadata");
24
24
  const typescript_rtti_1 = require("typescript-rtti");
25
25
  const middleware_1 = require("../middleware");
@@ -41,9 +41,9 @@ function* ParentChain(constructor) {
41
41
  }
42
42
  return;
43
43
  }
44
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1732), v: null }])(ParentChain);
44
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1712), v: null }])(ParentChain);
45
45
  __RΦ.m("rt:f", "F")(ParentChain);
46
- __RΦ.m("rt:t", () => __RΦ.a(1735))(ParentChain);
46
+ __RΦ.m("rt:t", () => __RΦ.a(1715))(ParentChain);
47
47
  function getParentModel(model) {
48
48
  if (model.options.parent)
49
49
  return model.options.parent;
@@ -55,9 +55,9 @@ function getParentModel(model) {
55
55
  }
56
56
  return null;
57
57
  }
58
- __RΦ.m("rt:p", [{ n: "model", t: () => __RΦ.a(497), v: null }])(getParentModel);
58
+ __RΦ.m("rt:p", [{ n: "model", t: () => __RΦ.a(503), v: null }])(getParentModel);
59
59
  __RΦ.m("rt:f", "F")(getParentModel);
60
- __RΦ.m("rt:t", () => __RΦ.a(1758))(getParentModel);
60
+ __RΦ.m("rt:t", () => __RΦ.a(1738))(getParentModel);
61
61
  class XMLModel {
62
62
  constructor(type, options) {
63
63
  this.type = type;
@@ -68,7 +68,7 @@ class XMLModel {
68
68
  if (typeof parent === "undefined")
69
69
  parent = getParentModel(this);
70
70
  return parent;
71
- }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1758))], "getParent");
71
+ }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1738))], "getParent");
72
72
  let propertiesLoaded = false;
73
73
  const properties = {
74
74
  options: new Map(),
@@ -100,7 +100,7 @@ class XMLModel {
100
100
  }
101
101
  }, [__RΦ.m("rt:p", [{ n: "property", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
102
102
  return record;
103
- }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(643))], ""),
103
+ }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(656))], ""),
104
104
  ],
105
105
  },
106
106
  toXML: {
@@ -125,12 +125,12 @@ class XMLModel {
125
125
  }
126
126
  }, [__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
127
127
  return record;
128
- }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(875))], ""),
128
+ }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(888))], ""),
129
129
  ],
130
130
  },
131
131
  };
132
132
  const loadProperties = __RΦ.f(() => {
133
- const props = (0, typescript_rtti_1.reflect)(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(524)], r: void 0, tp: [] }).ownProperties.filter(__RΦ.f((prop) => typeof prop.host.constructor.prototype[prop.name] !== "function", [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "")); // filter out methods like String.prototype.concat etc... that are seen as properties
133
+ const props = (0, typescript_rtti_1.reflect)(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(530)], r: void 0, tp: [] }).ownProperties.filter(__RΦ.f((prop) => typeof prop.host.constructor.prototype[prop.name] !== "function", [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "")); // filter out methods like String.prototype.concat etc... that are seen as properties
134
134
  props.forEach(__RΦ.f((property) => {
135
135
  const options = (0, property_1.getPropertyConversionOptions)(this.type, property.name);
136
136
  if (!options.ignored) {
@@ -167,7 +167,7 @@ class XMLModel {
167
167
  this.options.parent = options.parent;
168
168
  if (!getParent()) {
169
169
  this.options.fromXML.middlewares.push(__RΦ.f((...args) => defaults_1.defaults.fromXML(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], ""));
170
- this.options.toXML.middlewares.push(__RΦ.f((...args) => defaults_1.defaults.toXML(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(103))], ""));
170
+ this.options.toXML.middlewares.push(__RΦ.f((...args) => defaults_1.defaults.toXML(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], ""));
171
171
  }
172
172
  if (options.fromXML)
173
173
  this.options.fromXML.middlewares.push(options.fromXML);
@@ -216,7 +216,7 @@ class XMLModel {
216
216
  }
217
217
  }
218
218
  get reflectedClass() {
219
- return (0, typescript_rtti_1.reflect)(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(524)], r: void 0, tp: [] });
219
+ return (0, typescript_rtti_1.reflect)(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(530)], r: void 0, tp: [] });
220
220
  }
221
221
  resolveAllProperties() {
222
222
  const properties = new Map();
@@ -224,7 +224,7 @@ class XMLModel {
224
224
  if (parent)
225
225
  parent
226
226
  .resolveAllProperties()
227
- .forEach(__RΦ.f((prop, key) => properties.set(key, prop), [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1054))], ""));
227
+ .forEach(__RΦ.f((prop, key) => properties.set(key, prop), [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1067))], ""));
228
228
  this.options.properties.options.forEach(__RΦ.f((options, key) => properties.set(key, new Proxy(options, {
229
229
  get: __RΦ.f((target, p, reciever) => {
230
230
  if (p === "model")
@@ -232,53 +232,53 @@ class XMLModel {
232
232
  else
233
233
  return Reflect.get(target, p, reciever);
234
234
  }, [__RΦ.m("rt:p", [{ n: "target", t: () => __RΦ.a(4), v: null }, { n: "p", t: () => __RΦ.a(4), v: null }, { n: "reciever", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "get"),
235
- })), [__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1054))], ""));
235
+ })), [__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1067))], ""));
236
236
  return properties;
237
237
  }
238
238
  }
239
239
  exports.XMLModel = XMLModel;
240
- (t => __RΦ.t[494] = t)(XMLModel);
240
+ (t => __RΦ.t[500] = t)(XMLModel);
241
241
  __RΦ.m("rt:SP", [])(XMLModel);
242
242
  __RΦ.m("rt:P", ["options", "type", "reflectedClass"])(XMLModel);
243
243
  __RΦ.m("rt:Sm", [])(XMLModel);
244
244
  __RΦ.m("rt:m", ["fromXML", "toXML", "resolveAllProperties"])(XMLModel);
245
- __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(524), v: null, f: "R" }, { n: "options", t: () => __RΦ.a(1767), v: null }])(XMLModel);
245
+ __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(530), v: null, f: "R" }, { n: "options", t: () => __RΦ.a(1747), v: null }])(XMLModel);
246
246
  __RΦ.m("rt:f", "Ce")(XMLModel);
247
- __RΦ.m("rt:t", () => __RΦ.a(517))(XMLModel.prototype, "options");
247
+ __RΦ.m("rt:t", () => __RΦ.a(523))(XMLModel.prototype, "options");
248
248
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "options");
249
- __RΦ.m("rt:t", () => __RΦ.a(1791))(XMLModel.prototype, "parent");
249
+ __RΦ.m("rt:t", () => __RΦ.a(1771))(XMLModel.prototype, "parent");
250
250
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
251
- __RΦ.m("rt:t", () => __RΦ.a(1801))(XMLModel.prototype, "parent");
251
+ __RΦ.m("rt:t", () => __RΦ.a(1781))(XMLModel.prototype, "parent");
252
252
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
253
- __RΦ.m("rt:t", () => __RΦ.a(646))(XMLModel.prototype, "properties");
253
+ __RΦ.m("rt:t", () => __RΦ.a(659))(XMLModel.prototype, "properties");
254
254
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
255
- __RΦ.m("rt:t", () => __RΦ.a(1817))(XMLModel.prototype, "parent");
255
+ __RΦ.m("rt:t", () => __RΦ.a(1797))(XMLModel.prototype, "parent");
256
256
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
257
- __RΦ.m("rt:t", () => __RΦ.a(1822))(XMLModel.prototype, "parent");
257
+ __RΦ.m("rt:t", () => __RΦ.a(1802))(XMLModel.prototype, "parent");
258
258
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
259
259
  __RΦ.m("rt:t", () => __RΦ.a(13))(XMLModel.prototype, "tagname");
260
260
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "tagname");
261
261
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["fromXML"]);
262
262
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "fromXML");
263
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(533), v: null }])(XMLModel.prototype, "fromXML");
263
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(539), v: null }])(XMLModel.prototype, "fromXML");
264
264
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "fromXML");
265
- __RΦ.m("rt:t", () => __RΦ.a(495))(XMLModel.prototype, "fromXML");
266
- __RΦ.m("rt:t", () => __RΦ.a(643))(XMLModel.prototype, "properties");
265
+ __RΦ.m("rt:t", () => __RΦ.a(501))(XMLModel.prototype, "fromXML");
266
+ __RΦ.m("rt:t", () => __RΦ.a(656))(XMLModel.prototype, "properties");
267
267
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
268
268
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["toXML"]);
269
269
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "toXML");
270
270
  __RΦ.m("rt:p", [{ n: "instance", t: () => __RΦ.a(28), v: null }])(XMLModel.prototype, "toXML");
271
271
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "toXML");
272
- __RΦ.m("rt:t", () => __RΦ.a(103))(XMLModel.prototype, "toXML");
273
- __RΦ.m("rt:t", () => __RΦ.a(875))(XMLModel.prototype, "properties");
272
+ __RΦ.m("rt:t", () => __RΦ.a(109))(XMLModel.prototype, "toXML");
273
+ __RΦ.m("rt:t", () => __RΦ.a(888))(XMLModel.prototype, "properties");
274
274
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
275
- __RΦ.m("rt:t", () => __RΦ.a(933))(XMLModel.prototype, "reflectedClass");
275
+ __RΦ.m("rt:t", () => __RΦ.a(946))(XMLModel.prototype, "reflectedClass");
276
276
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "reflectedClass");
277
277
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["resolveAllProperties"]);
278
278
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "resolveAllProperties");
279
279
  __RΦ.m("rt:p", [])(XMLModel.prototype, "resolveAllProperties");
280
280
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "resolveAllProperties");
281
- __RΦ.m("rt:t", () => __RΦ.a(1054))(XMLModel.prototype, "resolveAllProperties");
281
+ __RΦ.m("rt:t", () => __RΦ.a(1067))(XMLModel.prototype, "resolveAllProperties");
282
282
  function createModel(type, options) {
283
283
  if (findModel(type)) {
284
284
  throw new TypeError(`a model for type ${type.name} already exists`);
@@ -288,17 +288,17 @@ function createModel(type, options) {
288
288
  return model;
289
289
  }
290
290
  exports.createModel = createModel;
291
- __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(1642), v: null }, { n: "options", t: () => __RΦ.a(1641), v: null }])(createModel);
291
+ __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(1622), v: null }, { n: "options", t: () => __RΦ.a(1621), v: null }])(createModel);
292
292
  __RΦ.m("rt:f", "F")(createModel);
293
- __RΦ.m("rt:t", () => __RΦ.a(1675))(createModel);
293
+ __RΦ.m("rt:t", () => __RΦ.a(1655))(createModel);
294
294
  exports.Models = new Map();
295
295
  function findModel(id) {
296
296
  return exports.Models.get(id);
297
297
  }
298
298
  exports.findModel = findModel;
299
- __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1740), v: null }])(findModel);
299
+ __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1720), v: null }])(findModel);
300
300
  __RΦ.m("rt:f", "F")(findModel);
301
- __RΦ.m("rt:t", () => __RΦ.a(1753))(findModel);
301
+ __RΦ.m("rt:t", () => __RΦ.a(1733))(findModel);
302
302
  function getModel(id) {
303
303
  const model = findModel(id);
304
304
  if (model)
@@ -307,19 +307,19 @@ function getModel(id) {
307
307
  throw new TypeError(`couln't find model for type ${id.name}`);
308
308
  }
309
309
  exports.getModel = getModel;
310
- __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1954), v: null }])(getModel);
310
+ __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1934), v: null }])(getModel);
311
311
  __RΦ.m("rt:f", "F")(getModel);
312
- __RΦ.m("rt:t", () => __RΦ.a(1957))(getModel);
312
+ __RΦ.m("rt:t", () => __RΦ.a(1937))(getModel);
313
313
  // Model decorator
314
314
  function ModelDecoratorFactory(options) {
315
315
  return __RΦ.f(function (constructor) {
316
316
  findModel(constructor) || createModel(constructor, options || {});
317
- }, [__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1963), v: null }]), __RΦ.m("rt:f", "M"), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
317
+ }, [__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1943), v: null }]), __RΦ.m("rt:f", "M"), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
318
318
  }
319
319
  exports.Model = ModelDecoratorFactory;
320
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1960), v: null, f: "?" }])(ModelDecoratorFactory);
320
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1940), v: null, f: "?" }])(ModelDecoratorFactory);
321
321
  __RΦ.m("rt:f", "F")(ModelDecoratorFactory);
322
- __RΦ.m("rt:t", () => __RΦ.a(1962))(ModelDecoratorFactory);
322
+ __RΦ.m("rt:t", () => __RΦ.a(1942))(ModelDecoratorFactory);
323
323
  var property_2 = require("./property");
324
324
  Object.defineProperty(exports, "Prop", { enumerable: true, get: function () { return property_2.Prop; } });
325
325
  require("../defaults/models");
@@ -16,14 +16,14 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
16
16
  __RΦ.t[id] = t = l;
17
17
  }
18
18
  return t;
19
- }, t: { [197]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(189)] }) }, [194]: { LΦ: t => require("typescript-rtti/dist").IΦConstructor }, [189]: { LΦ: t => Object }, [193]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(190), p: [__RΦ.a(189)] }) }, [190]: { LΦ: t => require("./types").IΦCreateXMLModelPropertyOptions }, [205]: { LΦ: t => Object }, [209]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(206), p: [__RΦ.a(189)] }) }, [206]: { LΦ: t => require("./types").IΦXMLModelPropertyOptions }, [489]: { LΦ: t => require("typescript-rtti/dist").ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [102]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(101) }) }, [101]: { LΦ: t => require("xml-js/types").IΦElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [103]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(102) }] }) }, [1392]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1391)] }) }, [1391]: { LΦ: t => Object }, [1394]: { LΦ: t => Object }, [1395]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(206), p: [__RΦ.a(1391)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [1407]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1406)] }) }, [1406]: { LΦ: t => Object }, [1409]: { LΦ: t => Object }, [1418]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1410)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1410]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(206), p: [__RΦ.a(1406)] }) }, [1424]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(194), p: [__RΦ.a(1423)] }) }, [1423]: { LΦ: t => Object }, [1426]: { LΦ: t => Object }, [1450]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(206), p: [__RΦ.a(1423)] }) }, [1457]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(190), p: [__RΦ.a(1456)] }) }, [1456]: { LΦ: t => Object }, [1459]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1461), v: null }], f: "" }) }, [1461]: { LΦ: t => Object } } };
19
+ }, t: { [203]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(195)] }) }, [200]: { LΦ: t => require("typescript-rtti/dist").IΦConstructor }, [195]: { LΦ: t => Object }, [199]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(195)] }) }, [196]: { LΦ: t => require("./types").IΦCreateXMLModelPropertyOptions }, [211]: { LΦ: t => Object }, [215]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(195)] }) }, [212]: { LΦ: t => require("./types").IΦXMLModelPropertyOptions }, [495]: { LΦ: t => require("typescript-rtti/dist").ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => require("../types").IΦXMLElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1405]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1404)] }) }, [1404]: { LΦ: t => Object }, [1407]: { LΦ: t => Object }, [1408]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1404)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [1420]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1419)] }) }, [1419]: { LΦ: t => Object }, [1422]: { LΦ: t => Object }, [1431]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1423)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1423]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1419)] }) }, [1437]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1436)] }) }, [1436]: { LΦ: t => Object }, [1439]: { LΦ: t => Object }, [1463]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1436)] }) }, [1470]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(1469)] }) }, [1469]: { LΦ: t => Object }, [1472]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1474), v: null }], f: "" }) }, [1474]: { LΦ: t => Object } } };
20
20
  const typescript_rtti_1 = require("typescript-rtti");
21
21
  const defaults_1 = require("../defaults");
22
22
  function resolvePropertyConversionOptions(options, constructor, property) {
23
23
  const _options = {
24
24
  name: property,
25
25
  get reflected() {
26
- return (0, typescript_rtti_1.reflect)(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(197)], r: void 0, tp: [] }).getProperty(property);
26
+ return (0, typescript_rtti_1.reflect)(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(203)], r: void 0, tp: [] }).getProperty(property);
27
27
  },
28
28
  get tagname() {
29
29
  return options.tagname || defaults_1.defaults.tagnameFromProperty(this);
@@ -33,9 +33,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
33
33
  isSourceElement: __RΦ.f((...args) => defaults_1.defaults.propertySourceElementsFilter(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "isSourceElement"),
34
34
  resolveElements: options.resolveElements
35
35
  ? options.resolveElements
36
- : __RΦ.f((...args) => defaults_1.defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(102))], ""),
36
+ : __RΦ.f((...args) => defaults_1.defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(105))], ""),
37
37
  fromXML: __RΦ.f((context) => (options.fromXML || defaults_1.defaults.propertyFromXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "fromXML"),
38
- toXML: __RΦ.f((context) => (options.toXML || defaults_1.defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(103))], "toXML"),
38
+ toXML: __RΦ.f((context) => (options.toXML || defaults_1.defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
39
39
  };
40
40
  if (options === null || options === void 0 ? void 0 : options.model)
41
41
  _options.model = options.model;
@@ -53,9 +53,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
53
53
  }
54
54
  return _options;
55
55
  }
56
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(193), v: null }, { n: "constructor", t: () => __RΦ.a(197), v: null }, { n: "property", t: () => __RΦ.a(205), v: null }])(resolvePropertyConversionOptions);
56
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(199), v: null }, { n: "constructor", t: () => __RΦ.a(203), v: null }, { n: "property", t: () => __RΦ.a(211), v: null }])(resolvePropertyConversionOptions);
57
57
  __RΦ.m("rt:f", "F")(resolvePropertyConversionOptions);
58
- __RΦ.m("rt:t", () => __RΦ.a(209))(resolvePropertyConversionOptions);
58
+ __RΦ.m("rt:t", () => __RΦ.a(215))(resolvePropertyConversionOptions);
59
59
  const PropertyOptions = new Map();
60
60
  function storePropertyConversionOptions(constructor, property, options) {
61
61
  let map = PropertyOptions.get(constructor);
@@ -65,7 +65,7 @@ function storePropertyConversionOptions(constructor, property, options) {
65
65
  }
66
66
  map.set(property, options);
67
67
  }
68
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1392), v: null }, { n: "property", t: () => __RΦ.a(1394), v: null }, { n: "options", t: () => __RΦ.a(1395), v: null }])(storePropertyConversionOptions);
68
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1405), v: null }, { n: "property", t: () => __RΦ.a(1407), v: null }, { n: "options", t: () => __RΦ.a(1408), v: null }])(storePropertyConversionOptions);
69
69
  __RΦ.m("rt:f", "F")(storePropertyConversionOptions);
70
70
  __RΦ.m("rt:t", () => __RΦ.a(22))(storePropertyConversionOptions);
71
71
  function findPropertyConversionOptions(constructor, property) {
@@ -74,24 +74,24 @@ function findPropertyConversionOptions(constructor, property) {
74
74
  return options.get(property);
75
75
  }
76
76
  }
77
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1407), v: null }, { n: "property", t: () => __RΦ.a(1409), v: null }])(findPropertyConversionOptions);
77
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1420), v: null }, { n: "property", t: () => __RΦ.a(1422), v: null }])(findPropertyConversionOptions);
78
78
  __RΦ.m("rt:f", "F")(findPropertyConversionOptions);
79
- __RΦ.m("rt:t", () => __RΦ.a(1418))(findPropertyConversionOptions);
79
+ __RΦ.m("rt:t", () => __RΦ.a(1431))(findPropertyConversionOptions);
80
80
  function getPropertyConversionOptions(constructor, property) {
81
81
  const options = findPropertyConversionOptions(constructor, property);
82
82
  return options || resolvePropertyConversionOptions({}, constructor, property);
83
83
  }
84
84
  exports.getPropertyConversionOptions = getPropertyConversionOptions;
85
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1424), v: null }, { n: "property", t: () => __RΦ.a(1426), v: null }])(getPropertyConversionOptions);
85
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1437), v: null }, { n: "property", t: () => __RΦ.a(1439), v: null }])(getPropertyConversionOptions);
86
86
  __RΦ.m("rt:f", "F")(getPropertyConversionOptions);
87
- __RΦ.m("rt:t", () => __RΦ.a(1450))(getPropertyConversionOptions);
87
+ __RΦ.m("rt:t", () => __RΦ.a(1463))(getPropertyConversionOptions);
88
88
  function PropDecoratorFactory(options) {
89
89
  return __RΦ.f(function (prototype, property) {
90
90
  const _options = resolvePropertyConversionOptions(options || {}, prototype.constructor, property);
91
91
  storePropertyConversionOptions(prototype.constructor, property, _options);
92
- }, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1461), v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
92
+ }, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1474), v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
93
93
  }
94
94
  exports.Prop = PropDecoratorFactory;
95
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1457), v: null, f: "?" }])(PropDecoratorFactory);
95
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1470), v: null, f: "?" }])(PropDecoratorFactory);
96
96
  __RΦ.m("rt:f", "F")(PropDecoratorFactory);
97
- __RΦ.m("rt:t", () => __RΦ.a(1459))(PropDecoratorFactory);
97
+ __RΦ.m("rt:t", () => __RΦ.a(1472))(PropDecoratorFactory);