@nxtedition/types 23.0.39 → 23.0.41

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.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -51
  2. package/dist/app.js +1 -823
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +2 -15
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +0 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1754
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2230
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +128 -121
  40. package/dist/common/settings.js +1 -6936
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -85
  45. package/dist/index.js +5 -187
  46. package/dist/nxtpression.d.ts +732 -344
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +7 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +145 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +9 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +10 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +15861 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +15990 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1017 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12613 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1904 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +18 -0
  153. package/dist/records/validate/utils.test.d.ts +1 -0
  154. package/dist/records/validate/utils.test.js +35 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +14943 -0
  157. package/dist/rpc.d.ts +13 -14
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +26 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -42
  185. package/dist/domains/event.js +0 -754
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4553
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1397
  207. package/dist/domains/publish.js +0 -34436
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -172
  212. package/dist/domains/render.js +0 -4783
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -13
  218. package/dist/domains/script.js +0 -125
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -6624
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -37
  226. package/dist/domains/subtitle-style.js +0 -485
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9075
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -0,0 +1,1904 @@
1
+ import * as __typia_transform__jsonStringifyString from "typia/lib/internal/_jsonStringifyString.js";
2
+ import * as __typia_transform__throwTypeGuardError from "typia/lib/internal/_throwTypeGuardError.js";
3
+ import * as __typia_transform__jsonStringifyTail from "typia/lib/internal/_jsonStringifyTail.js";
4
+ import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64.js";
5
+ import { parseRecordName } from "./utils.js";
6
+ import typia from 'typia';
7
+ export function stringifyRecord(name, input) {
8
+ const parsed = parseRecordName(name);
9
+ if (parsed.type === "domain-rows") {
10
+ return (() => { const _so0 = input => `{"rows":${`[${input.rows.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; return input => _so0(input); })()(input);
11
+ }
12
+ else if (parsed.type === "domain") {
13
+ return _stringifyDomainRecord(parsed.domain, input);
14
+ }
15
+ else {
16
+ return _stringifyExactRecord(parsed.exact, input);
17
+ }
18
+ }
19
+ export function stringifyDomainRecord(domain, input) {
20
+ return _stringifyDomainRecord(domain, input);
21
+ }
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
+ function _stringifyExactRecord(name, input) {
24
+ {
25
+ switch (name) {
26
+ case "asset.assignees": {
27
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
28
+ if ("string" === typeof input.value)
29
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
30
+ if (Array.isArray(input.value))
31
+ return `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
32
+ if ("object" === typeof input.value && null !== input.value)
33
+ return _so1(input.value);
34
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
35
+ method: "typia.json.stringify",
36
+ expected: "(Array<string> | __type | string | undefined)",
37
+ value: input.value
38
+ });
39
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
40
+ if ("boolean" === typeof input.dynamic)
41
+ return input.dynamic;
42
+ if (Array.isArray(input.dynamic))
43
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
44
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
45
+ method: "typia.json.stringify",
46
+ expected: "(Array<string> | false | undefined)",
47
+ value: input.dynamic
48
+ });
49
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${`[${input.__returnValue.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && (Array.isArray(input.__returnValue) && input.__returnValue.every(elem => "string" === typeof elem)); const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
50
+ }
51
+ case "asset.clone": {
52
+ return (() => { const _so0 = input => `{"rules":${`[${input.rules.map(elem => _so1(elem)).join(",")}]`}}`; const _so1 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? __typia_transform__jsonStringifyString._jsonStringifyString(input.template) : "null" : undefined},`}"domain":${__typia_transform__jsonStringifyString._jsonStringifyString(input.domain)}}`; const _io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template); return input => _so0(input); })()(input);
53
+ }
54
+ case "asset.deadlines": {
55
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
56
+ if ("string" === typeof input.value)
57
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
58
+ if ("object" === typeof input.value && null !== input.value)
59
+ return _so1(input.value);
60
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
61
+ method: "typia.json.stringify",
62
+ expected: "(__type | string | undefined)",
63
+ value: input.value
64
+ });
65
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
66
+ if ("boolean" === typeof input.dynamic)
67
+ return input.dynamic;
68
+ if (Array.isArray(input.dynamic))
69
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
70
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
71
+ method: "typia.json.stringify",
72
+ expected: "(Array<string> | false | undefined)",
73
+ value: input.dynamic
74
+ });
75
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${__typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue)}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "string" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
76
+ }
77
+ case "asset.duration": {
78
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
79
+ if ("string" === typeof input.value)
80
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
81
+ if ("number" === typeof input.value)
82
+ return input.value;
83
+ if ("object" === typeof input.value && null !== input.value)
84
+ return _so1(input.value);
85
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
86
+ method: "typia.json.stringify",
87
+ expected: "(__type | number | string | undefined)",
88
+ value: input.value
89
+ });
90
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
91
+ if ("boolean" === typeof input.dynamic)
92
+ return input.dynamic;
93
+ if (Array.isArray(input.dynamic))
94
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
95
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
96
+ method: "typia.json.stringify",
97
+ expected: "(Array<string> | false | undefined)",
98
+ value: input.dynamic
99
+ });
100
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${input.__returnValue}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "number" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
101
+ }
102
+ case "asset.embedding": {
103
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
104
+ if ("string" === typeof input.value)
105
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
106
+ if ("object" === typeof input.value && null !== input.value)
107
+ return _so1(input.value);
108
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
109
+ method: "typia.json.stringify",
110
+ expected: "(__type | string | undefined)",
111
+ value: input.value
112
+ });
113
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
114
+ if ("boolean" === typeof input.dynamic)
115
+ return input.dynamic;
116
+ if (Array.isArray(input.dynamic))
117
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
118
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
119
+ method: "typia.json.stringify",
120
+ expected: "(Array<string> | false | undefined)",
121
+ value: input.dynamic
122
+ });
123
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${__typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue)}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "string" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
124
+ }
125
+ case "asset.icon": {
126
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
127
+ if ("string" === typeof input.value)
128
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
129
+ if ("object" === typeof input.value && null !== input.value)
130
+ return _so1(input.value);
131
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
132
+ method: "typia.json.stringify",
133
+ expected: "(__type | string | undefined)",
134
+ value: input.value
135
+ });
136
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
137
+ if ("boolean" === typeof input.dynamic)
138
+ return input.dynamic;
139
+ if (Array.isArray(input.dynamic))
140
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
141
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
142
+ method: "typia.json.stringify",
143
+ expected: "(Array<string> | false | undefined)",
144
+ value: input.dynamic
145
+ });
146
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${__typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue)}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "string" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
147
+ }
148
+ case "asset.locations": {
149
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
150
+ if ("string" === typeof input.value)
151
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
152
+ if (Array.isArray(input.value))
153
+ return `[${input.value.map(elem => _so1(elem)).join(",")}]`;
154
+ if ("object" === typeof input.value && null !== input.value)
155
+ return _so2(input.value);
156
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
157
+ method: "typia.json.stringify",
158
+ expected: "(Array<__type> | __type.o1 | string | undefined)",
159
+ value: input.value
160
+ });
161
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
162
+ if ("boolean" === typeof input.dynamic)
163
+ return input.dynamic;
164
+ if (Array.isArray(input.dynamic))
165
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
166
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
167
+ method: "typia.json.stringify",
168
+ expected: "(Array<string> | false | undefined)",
169
+ value: input.dynamic
170
+ });
171
+ })() : undefined}`}`)}}`; const _so1 = input => `{"lat":${input.lat},"lon":${input.lon}}`; const _so2 = input => `{"__context":${_so3(input.__context)},"__returnValue":${`[${input.__returnValue.map(elem => _so1(elem)).join(",")}]`}}`; const _so3 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "number" === typeof input.lat && "number" === typeof input.lon; const _io2 = input => "object" === typeof input.__context && null !== input.__context && _io3(input.__context) && (Array.isArray(input.__returnValue) && input.__returnValue.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io3 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
172
+ }
173
+ case "asset.media": {
174
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
175
+ if ("string" === typeof input.value)
176
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
177
+ if ("object" === typeof input.value && null !== input.value && false === Array.isArray(input.value))
178
+ return _su0(input.value);
179
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
180
+ method: "typia.json.stringify",
181
+ expected: "(Record<string, unknown> | __type | string | undefined)",
182
+ value: input.value
183
+ });
184
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
185
+ if ("boolean" === typeof input.dynamic)
186
+ return input.dynamic;
187
+ if (Array.isArray(input.dynamic))
188
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
189
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
190
+ method: "typia.json.stringify",
191
+ expected: "(Array<string> | false | undefined)",
192
+ value: input.dynamic
193
+ });
194
+ })() : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
195
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{"__context":${_so3(input.__context)},"__returnValue":${_so1(input.__returnValue)}}`; const _so3 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _su0 = input => (() => {
196
+ if (undefined !== input.__context)
197
+ return _so2(input);
198
+ else
199
+ return _so1(input);
200
+ })(); const _io1 = input => Object.keys(input).every(key => {
201
+ const value = input[key];
202
+ if (undefined === value)
203
+ return true;
204
+ return true;
205
+ }); const _io2 = input => "object" === typeof input.__context && null !== input.__context && _io3(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io1(input.__returnValue)); const _io3 = input => "string" === typeof input.id; const _iu0 = input => (() => {
206
+ if (undefined !== input.__context)
207
+ return _io2(input);
208
+ else
209
+ return _io1(input);
210
+ })(); return input => _so0(input); })()(input);
211
+ }
212
+ case "asset.tags": {
213
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
214
+ if ("string" === typeof input.value)
215
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
216
+ if (Array.isArray(input.value))
217
+ return `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
218
+ if ("object" === typeof input.value && null !== input.value)
219
+ return _so1(input.value);
220
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
221
+ method: "typia.json.stringify",
222
+ expected: "(Array<string> | __type | string | undefined)",
223
+ value: input.value
224
+ });
225
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
226
+ if ("boolean" === typeof input.dynamic)
227
+ return input.dynamic;
228
+ if (Array.isArray(input.dynamic))
229
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
230
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
231
+ method: "typia.json.stringify",
232
+ expected: "(Array<string> | false | undefined)",
233
+ value: input.dynamic
234
+ });
235
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${`[${input.__returnValue.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && (Array.isArray(input.__returnValue) && input.__returnValue.every(elem => "string" === typeof elem)); const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
236
+ }
237
+ case "asset.title": {
238
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
239
+ if ("string" === typeof input.value)
240
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.value);
241
+ if ("object" === typeof input.value && null !== input.value)
242
+ return _so1(input.value);
243
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
244
+ method: "typia.json.stringify",
245
+ expected: "(__type | string | undefined)",
246
+ value: input.value
247
+ });
248
+ })() : undefined},`}${undefined === input.dynamic ? "" : `"dynamic":${undefined !== input.dynamic ? (() => {
249
+ if ("boolean" === typeof input.dynamic)
250
+ return input.dynamic;
251
+ if (Array.isArray(input.dynamic))
252
+ return `[${input.dynamic.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
253
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
254
+ method: "typia.json.stringify",
255
+ expected: "(Array<string> | false | undefined)",
256
+ value: input.dynamic
257
+ });
258
+ })() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${__typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue)}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "string" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
259
+ }
260
+ case "asset.types": {
261
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
262
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
263
+ if ("string" === typeof value)
264
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
265
+ if ("object" === typeof value && null !== value)
266
+ return _so1(value);
267
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
268
+ method: "typia.json.stringify",
269
+ expected: "(__type | null | string)",
270
+ value: value
271
+ });
272
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? input.priority : undefined},`}${undefined === input.icon ? "" : `"icon":${undefined !== input.icon ? __typia_transform__jsonStringifyString._jsonStringifyString(input.icon) : undefined},`}"label":${__typia_transform__jsonStringifyString._jsonStringifyString(input.label)}}`; const _io1 = input => (undefined === input.priority || "number" === typeof input.priority) && "string" === typeof input.label && (undefined === input.icon || "string" === typeof input.icon); return input => _so0(input); })()(input);
273
+ }
274
+ case "storage.locations?": {
275
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
276
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"location":${__typia_transform__jsonStringifyString._jsonStringifyString(input.location)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"zone":${__typia_transform__jsonStringifyString._jsonStringifyString(input.zone)},"free":${null !== input.free ? input.free : "null"},"size":${null !== input.size ? input.size : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"origin":${__typia_transform__jsonStringifyString._jsonStringifyString(input.origin)},"allows":${`[${input.allows.map(elem => "\"" + elem + "\"").join(",")}]`},"net":${_so2(input.net)},"latency":${input.latency}}`; const _so2 = input => `{"rx":${input.rx},"tx":${input.tx}}`; const _io1 = input => "string" === typeof input.id && "string" === typeof input.location && "string" === typeof input.timestamp && "string" === typeof input.type && "string" === typeof input.zone && (null === input.free || "number" === typeof input.free) && (null === input.size || "number" === typeof input.size) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && (null === input.capacity || "number" === typeof input.capacity) && "string" === typeof input.origin && (Array.isArray(input.allows) && input.allows.every(elem => "get" === elem || "put" === elem || "del" === elem)) && ("object" === typeof input.net && null !== input.net && _io2(input.net)) && "number" === typeof input.latency; const _io2 = input => "number" === typeof input.rx && "number" === typeof input.tx; return input => _so0(input); })()(input);
277
+ }
278
+ case "storage.zones?": {
279
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
280
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"priority":${input.priority},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; const _io1 = input => "number" === typeof input.priority && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)); return input => _so0(input); })()(input);
281
+ }
282
+ case "nxt.status?": {
283
+ return (() => { const _so0 = input => `{"nodes":${_so1(input.nodes)},"services":${_so4(input.services)},"level":${input.level},"status":${__typia_transform__jsonStringifyString._jsonStringifyString(input.status)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
284
+ return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${undefined === input.state ? "" : `"state":${undefined !== input.state ? __typia_transform__jsonStringifyString._jsonStringifyString(input.state) : undefined},`}${undefined === input.role ? "" : `"role":${undefined !== input.role ? __typia_transform__jsonStringifyString._jsonStringifyString(input.role) : undefined},`}${undefined === input.leader ? "" : `"leader":${undefined !== input.leader ? input.leader : undefined},`}${undefined === input.availability ? "" : `"availability":${undefined !== input.availability ? __typia_transform__jsonStringifyString._jsonStringifyString(input.availability) : undefined},`}${undefined === input.classes ? "" : `"classes":${undefined !== input.classes ? `[${input.classes.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.address ? "" : `"address":${undefined !== input.address ? __typia_transform__jsonStringifyString._jsonStringifyString(input.address) : undefined},`}"level":${input.level},"status":${__typia_transform__jsonStringifyString._jsonStringifyString(input.status)},"messages":${`[${input.messages.map(elem => _so3(elem)).join(",")}]`}}`; const _so3 = input => `{"msg":${__typia_transform__jsonStringifyString._jsonStringifyString(input.msg)},"level":${input.level}}`; const _so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
285
+ return ""; return `${JSON.stringify(key)}:${_so5(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so5 = input => `{${undefined === input.image ? "" : `"image":${undefined !== input.image ? __typia_transform__jsonStringifyString._jsonStringifyString(input.image) : undefined},`}${undefined === input.running ? "" : `"running":${undefined !== input.running ? input.running : undefined},`}${undefined === input.mode ? "" : `"mode":${undefined !== input.mode ? __typia_transform__jsonStringifyString._jsonStringifyString(input.mode) : undefined},`}${undefined === input.total ? "" : `"total":${undefined !== input.total ? input.total : undefined},`}${undefined === input.tasks ? "" : `"tasks":${undefined !== input.tasks ? `[${input.tasks.map(elem => _so6(elem)).join(",")}]` : undefined},`}"level":${input.level},"status":${__typia_transform__jsonStringifyString._jsonStringifyString(input.status)},"messages":${`[${input.messages.map(elem => _so3(elem)).join(",")}]`}}`; const _so6 = input => `{${undefined === input.level ? "" : `"level":${undefined !== input.level ? input.level : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"node":${__typia_transform__jsonStringifyString._jsonStringifyString(input.node)},"container":${__typia_transform__jsonStringifyString._jsonStringifyString(input.container)},"messages":${`[${input.messages.map(elem => _so7(elem)).join(",")}]`}}`; const _so7 = input => `{"msg":${__typia_transform__jsonStringifyString._jsonStringifyString(input.msg)},"level":${input.level}}`; const _io1 = input => Object.keys(input).every(key => {
286
+ const value = input[key];
287
+ if (undefined === value)
288
+ return true;
289
+ return "object" === typeof value && null !== value && _io2(value);
290
+ }); const _io2 = input => (undefined === input.state || "string" === typeof input.state) && (undefined === input.role || "string" === typeof input.role) && (undefined === input.leader || "boolean" === typeof input.leader) && (undefined === input.availability || "string" === typeof input.availability) && (undefined === input.classes || Array.isArray(input.classes) && input.classes.every(elem => "string" === typeof elem)) && (undefined === input.address || "string" === typeof input.address) && "number" === typeof input.level && "string" === typeof input.status && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); const _io3 = input => "string" === typeof input.msg && "number" === typeof input.level; const _io4 = input => Object.keys(input).every(key => {
291
+ const value = input[key];
292
+ if (undefined === value)
293
+ return true;
294
+ return "object" === typeof value && null !== value && _io5(value);
295
+ }); const _io5 = input => (undefined === input.image || "string" === typeof input.image) && (undefined === input.running || "number" === typeof input.running) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.total || "number" === typeof input.total) && (undefined === input.tasks || Array.isArray(input.tasks) && input.tasks.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && "number" === typeof input.level && "string" === typeof input.status && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); const _io6 = input => "string" === typeof input.id && "string" === typeof input.node && "string" === typeof input.container && (undefined === input.level || "number" === typeof input.level) && (undefined === input.status || "string" === typeof input.status) && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io7(elem))); const _io7 = input => "string" === typeof input.msg && "number" === typeof input.level; return input => _so0(input); })()(input);
296
+ }
297
+ case "media.subtitles": {
298
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.languages ? "" : `"languages":${undefined !== input.languages ? _so1(input.languages) : undefined},`}${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so2(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
299
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.weight ? "" : `"weight":${undefined !== input.weight ? "\"" + input.weight + "\"" : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? "\"" + input.style + "\"" : undefined},`}"family":${__typia_transform__jsonStringifyString._jsonStringifyString(input.family)}}`; const _io1 = input => Object.keys(input).every(key => {
300
+ const value = input[key];
301
+ if (undefined === value)
302
+ return true;
303
+ return "string" === typeof value;
304
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "normal" === input.weight || "bold" === input.weight) && (undefined === input.style || "normal" === input.style || "italic" === input.style); return input => _so0(input); })()(input);
305
+ }
306
+ case "media.subtitles?": {
307
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.languages ? "" : `"languages":${undefined !== input.languages ? _so1(input.languages) : undefined},`}${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so2(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
308
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.weight ? "" : `"weight":${undefined !== input.weight ? "\"" + input.weight + "\"" : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? "\"" + input.style + "\"" : undefined},`}"family":${__typia_transform__jsonStringifyString._jsonStringifyString(input.family)}}`; const _io1 = input => Object.keys(input).every(key => {
309
+ const value = input[key];
310
+ if (undefined === value)
311
+ return true;
312
+ return "string" === typeof value;
313
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "normal" === input.weight || "bold" === input.weight) && (undefined === input.style || "normal" === input.style || "italic" === input.style); return input => _so0(input); })()(input);
314
+ }
315
+ case "media.transcribe?": {
316
+ return (() => { const _so0 = input => `{${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so2(input.translate) : undefined},`}"engines":${_so1(input.engines)},"languages":${_so1(input.languages)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
317
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{"languages":${_so1(input.languages)}}`; const _io1 = input => Object.keys(input).every(key => {
318
+ const value = input[key];
319
+ if (undefined === value)
320
+ return true;
321
+ return "string" === typeof value;
322
+ }); const _io2 = input => "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages); return input => _so0(input); })()(input);
323
+ }
324
+ case "media.fonts?": {
325
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.fontFamilyNames ? "" : `"fontFamilyNames":${undefined !== input.fontFamilyNames ? `[${input.fontFamilyNames.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)},"family":${__typia_transform__jsonStringifyString._jsonStringifyString(input.family)},"asset":${__typia_transform__jsonStringifyString._jsonStringifyString(input.asset)},"url":${__typia_transform__jsonStringifyString._jsonStringifyString(input.url)},"weight":${input.weight},"style":${"\"" + input.style + "\""},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`}}`; const _io1 = input => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && "number" === typeof input.weight && ("normal" === input.style || "italic" === input.style) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && "number" === typeof elem[0] && "number" === typeof elem[1]))); return input => _so0(input); })()(input);
326
+ }
327
+ case "media.consolidate": {
328
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.presets ? "" : `"presets":${undefined !== input.presets ? _so1(input.presets) : undefined}`}`)}}`; const _so1 = input => `{"audio":${(() => {
329
+ if ("string" === typeof input.audio)
330
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.audio);
331
+ if ("object" === typeof input.audio && null !== input.audio)
332
+ return _so2(input.audio);
333
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
334
+ method: "typia.json.stringify",
335
+ expected: "(RenderPresetObject | string)",
336
+ value: input.audio
337
+ });
338
+ })()},"video":${(() => {
339
+ if ("string" === typeof input.video)
340
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.video);
341
+ if ("object" === typeof input.video && null !== input.video)
342
+ return _so2(input.video);
343
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
344
+ method: "typia.json.stringify",
345
+ expected: "(RenderPresetObject | string)",
346
+ value: input.video
347
+ });
348
+ })()},"image":${(() => {
349
+ if ("string" === typeof input.image)
350
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.image);
351
+ if ("object" === typeof input.image && null !== input.image)
352
+ return _so2(input.image);
353
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
354
+ method: "typia.json.stringify",
355
+ expected: "(RenderPresetObject | string)",
356
+ value: input.image
357
+ });
358
+ })()}}`; const _so2 = input => `{"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"profile":${(() => {
359
+ if ("string" === typeof input.profile)
360
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.profile);
361
+ if (Array.isArray(input.profile))
362
+ return `[${input.profile.map(elem => (() => {
363
+ if ("string" === typeof elem)
364
+ return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
365
+ if ("object" === typeof elem && null !== elem)
366
+ return _so3(elem);
367
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
368
+ method: "typia.json.stringify",
369
+ expected: "(RenderProfileObject | string)",
370
+ value: elem
371
+ });
372
+ })()).join(",")}]`;
373
+ if ("object" === typeof input.profile && null !== input.profile)
374
+ return _so3(input.profile);
375
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
376
+ method: "typia.json.stringify",
377
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
378
+ value: input.profile
379
+ });
380
+ })()}}`; const _so3 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so4(input.transcribe) : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so5(input.translate) : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? _so6(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
381
+ if ("string" === typeof input.subtitle)
382
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle);
383
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
384
+ return _so7(input.subtitle);
385
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
386
+ method: "typia.json.stringify",
387
+ expected: "(SubtitleProfile | string | undefined)",
388
+ value: input.subtitle
389
+ });
390
+ })() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so4 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so5 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined}`}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined}`}`)}}`; const _io1 = input => null !== input.audio && undefined !== input.audio && ("string" === typeof input.audio || "object" === typeof input.audio && null !== input.audio && _io2(input.audio)) && (null !== input.video && undefined !== input.video && ("string" === typeof input.video || "object" === typeof input.video && null !== input.video && _io2(input.video))) && (null !== input.image && undefined !== input.image && ("string" === typeof input.image || "object" === typeof input.image && null !== input.image && _io2(input.image))); const _io2 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io3(elem))) || "object" === typeof input.profile && null !== input.profile && _io3(input.profile)))); const _io3 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io4(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io5(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io6(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io7(input.subtitle))); const _io4 = input => "string" === typeof input.engine; const _io5 = input => "string" === typeof input.language; const _io6 = input => undefined === input.pan || "string" === typeof input.pan; const _io7 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); return input => _so0(input); })()(input);
391
+ }
392
+ case "asset-daemon": {
393
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input["user-notify"] ? "" : `"user-notify":${undefined !== input["user-notify"] ? input["user-notify"] : undefined}`}`)}}`; return input => _so0(input); })()(input);
394
+ }
395
+ case "asset-daemon:user-notify.state": {
396
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
397
+ if ("number" === typeof input.since)
398
+ return input.since;
399
+ if ("string" === typeof input.since)
400
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.since);
401
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
402
+ method: "typia.json.stringify",
403
+ expected: "(0 | null | string | undefined)",
404
+ value: input.since
405
+ });
406
+ })() : "null" : undefined},`}${undefined === input.version ? "" : `"version":${undefined !== input.version ? input.version : undefined}`}`)}}`; return input => _so0(input); })()(input);
407
+ }
408
+ case "deepstream-replicator.stats?": {
409
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.replicators ? "" : `"replicators":${undefined !== input.replicators ? _so1(input.replicators) : undefined},`}${undefined === input.synced ? "" : `"synced":${undefined !== input.synced ? input.synced : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
410
+ return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{"to":${_so3(input.to)},"from":${_so4(input.from)}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.synced ? "" : `"synced":${undefined !== input.synced ? input.synced : undefined},`}${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
411
+ if ("number" === typeof input.since)
412
+ return input.since;
413
+ if ("string" === typeof input.since)
414
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.since);
415
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
416
+ method: "typia.json.stringify",
417
+ expected: "(0 | null | string | undefined)",
418
+ value: input.since
419
+ });
420
+ })() : "null" : undefined}`}`)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
421
+ if ("number" === typeof input.since)
422
+ return input.since;
423
+ if ("string" === typeof input.since)
424
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.since);
425
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
426
+ method: "typia.json.stringify",
427
+ expected: "(0 | null | string | undefined)",
428
+ value: input.since
429
+ });
430
+ })() : "null" : undefined}`}`)}}`; const _io1 = input => Object.keys(input).every(key => {
431
+ const value = input[key];
432
+ if (undefined === value)
433
+ return true;
434
+ return "object" === typeof value && null !== value && _io2(value);
435
+ }); const _io2 = input => "object" === typeof input.to && null !== input.to && false === Array.isArray(input.to) && _io3(input.to) && ("object" === typeof input.from && null !== input.from && false === Array.isArray(input.from) && _io4(input.from)); const _io3 = input => (undefined === input.synced || "boolean" === typeof input.synced) && (null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since); const _io4 = input => null === input.since || undefined === input.since || 0 === input.since || "string" === typeof input.since; return input => _so0(input); })()(input);
436
+ }
437
+ default: throw new Error("Unrecognized name \"" + name + "\"");
438
+ }
439
+ }
440
+ }
441
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
442
+ function _stringifyDomainRecord(domain, input) {
443
+ {
444
+ switch (domain) {
445
+ case ":asset.title?": {
446
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
447
+ }
448
+ case ":asset.types?": {
449
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
450
+ }
451
+ case ":asset.assignees?": {
452
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
453
+ }
454
+ case ":asset.refs?": {
455
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"key":${__typia_transform__jsonStringifyString._jsonStringifyString(input.key)},"value":${__typia_transform__jsonStringifyString._jsonStringifyString(input.value)}}`; const _io1 = input => "string" === typeof input.id && "string" === typeof input.key && "string" === typeof input.value; return input => _so0(input); })()(input);
456
+ }
457
+ case ":asset.tags?": {
458
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
459
+ }
460
+ case ":asset.fileRefs?": {
461
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
462
+ }
463
+ case ":asset.created?": {
464
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? __typia_transform__jsonStringifyString._jsonStringifyString(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? __typia_transform__jsonStringifyString._jsonStringifyString(input.origin) : undefined}`}`)}}`; return input => _so0(input); })()(input);
465
+ }
466
+ case ":asset.modified?": {
467
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? __typia_transform__jsonStringifyString._jsonStringifyString(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.users ? "" : `"users":${undefined !== input.users ? `[${input.users.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
468
+ }
469
+ case ":asset.status?": {
470
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? null !== input.expose ? input.expose : "null" : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? null !== input.index ? input.index : "null" : undefined},`}"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"msg":${__typia_transform__jsonStringifyString._jsonStringifyString(input.msg)},"level":${input.level}}`; const _io1 = input => "string" === typeof input.id && "string" === typeof input.msg && "number" === typeof input.level && (undefined === input.code || "string" === typeof input.code) && (null === input.expose || undefined === input.expose || "boolean" === typeof input.expose) && (null === input.index || undefined === input.index || "number" === typeof input.index); return input => _so0(input); })()(input);
471
+ }
472
+ case ":asset.icon?": {
473
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? null !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : "null" : undefined}`}`)}}`; return input => _so0(input); })()(input);
474
+ }
475
+ case ":asset.deadlines?": {
476
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
477
+ }
478
+ case ":asset.publish?": {
479
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
480
+ }
481
+ case ":asset.published?": {
482
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
483
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
484
+ }
485
+ case ":asset.duration?": {
486
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? null !== input.value ? input.value : "null" : undefined}`}`)}}`; return input => _so0(input); })()(input);
487
+ }
488
+ case ":asset.locations?": {
489
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{"lat":${input.lat},"lon":${input.lon}}`; const _io1 = input => "number" === typeof input.lat && "number" === typeof input.lon; return input => _so0(input); })()(input);
490
+ }
491
+ case ":asset.controllers?": {
492
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
493
+ }
494
+ case ":asset.embedding?": {
495
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
496
+ }
497
+ case ":asset.media?": {
498
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
499
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
500
+ }
501
+ case ":asset.presence?": {
502
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
503
+ }
504
+ case ":asset.comments?": {
505
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
506
+ }
507
+ case ":bundle": {
508
+ return (() => { const _so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}"files":${_so1(input.files)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
509
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => Object.keys(input).every(key => {
510
+ const value = input[key];
511
+ if (undefined === value)
512
+ return true;
513
+ return "string" === typeof value;
514
+ }); return input => _so0(input); })()(input);
515
+ }
516
+ case ":bundle.revisions": {
517
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
518
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}"files":${_so2(input.files)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
519
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && _io2(input.files)); const _io2 = input => Object.keys(input).every(key => {
520
+ const value = input[key];
521
+ if (undefined === value)
522
+ return true;
523
+ return "string" === typeof value;
524
+ }); return input => _so0(input); })()(input);
525
+ }
526
+ case ":clone": {
527
+ return (() => { const _so0 = input => `{"rules":${`[${input.rules.map(elem => _so1(elem)).join(",")}]`}}`; const _so1 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? __typia_transform__jsonStringifyString._jsonStringifyString(input.template) : "null" : undefined},`}"domain":${__typia_transform__jsonStringifyString._jsonStringifyString(input.domain)}}`; const _io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template); return input => _so0(input); })()(input);
528
+ }
529
+ case ":comment-reaction": {
530
+ return (() => { const _so0 = input => `{"comment":${__typia_transform__jsonStringifyString._jsonStringifyString(input.comment)},"user":${__typia_transform__jsonStringifyString._jsonStringifyString(input.user)},"reaction":${__typia_transform__jsonStringifyString._jsonStringifyString(input.reaction)}}`; return input => _so0(input); })()(input);
531
+ }
532
+ case ":comment-read-mark": {
533
+ return (() => { const _so0 = input => `{"comment":${__typia_transform__jsonStringifyString._jsonStringifyString(input.comment)},"user":${__typia_transform__jsonStringifyString._jsonStringifyString(input.user)},"time":${__typia_transform__jsonStringifyString._jsonStringifyString(input.time)}}`; return input => _so0(input); })()(input);
534
+ }
535
+ case ":comment": {
536
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.content ? "" : `"content":${undefined !== input.content ? null !== input.content ? _so1(input.content) : "null" : undefined},`}${undefined === input.mediaRevisionId ? "" : `"mediaRevisionId":${undefined !== input.mediaRevisionId ? null !== input.mediaRevisionId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.mediaRevisionId) : "null" : undefined},`}${undefined === input.timecode ? "" : `"timecode":${undefined !== input.timecode ? _so8(input.timecode) : undefined},`}${undefined === input.replyTo ? "" : `"replyTo":${undefined !== input.replyTo ? __typia_transform__jsonStringifyString._jsonStringifyString(input.replyTo) : undefined}`}`)}}`; const _so1 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)},"indent":${input.indent},"children":${`[${input.children.map(elem => _su0(elem)).join(",")}]`}}`; const _so2 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)},"indent":${input.indent},"textFormat":${input.textFormat},"textStyle":${__typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle)},"children":${`[${input.children.map(elem => _su0(elem)).join(",")}]`}}`; const _so3 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version},"detail":${input.detail},"format":${input.format},"mode":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mode)},"style":${__typia_transform__jsonStringifyString._jsonStringifyString(input.style)},"text":${__typia_transform__jsonStringifyString._jsonStringifyString(input.text)}}`; const _so4 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version}}`; const _so5 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version},"detail":${input.detail},"format":${input.format},"mode":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mode)},"style":${__typia_transform__jsonStringifyString._jsonStringifyString(input.style)},"text":${__typia_transform__jsonStringifyString._jsonStringifyString(input.text)},"mentionId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mentionId)}}`; const _so6 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version},"emojiId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.emojiId)}}`; const _so7 = input => `{"type":${"\"" + input.type + "\""},"version":${input.version},"url":${__typia_transform__jsonStringifyString._jsonStringifyString(input.url)}}`; const _so8 = input => `{${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}"start":${input.start}}`; const _su0 = input => (() => {
537
+ if ("root" === input.type)
538
+ return _so1(input);
539
+ else if ("paragraph" === input.type)
540
+ return _so2(input);
541
+ else if ("text" === input.type)
542
+ return _so3(input);
543
+ else if ("linebreak" === input.type)
544
+ return _so4(input);
545
+ else if ("mention" === input.type)
546
+ return _so5(input);
547
+ else if ("emoji" === input.type)
548
+ return _so6(input);
549
+ else if ("autolink" === input.type)
550
+ return _so7(input);
551
+ else
552
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
553
+ method: "typia.json.stringify",
554
+ expected: "(SerializedRootNode | SerializedParagraphNode | SerializedTextNode | SerializedLineBreakNode | SerializedMentionNode | SerializedEmojiNode | SerializedAutoLinkNode)",
555
+ value: input
556
+ });
557
+ })(); const _io1 = input => "root" === input.type && 1 === input.version && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && "string" === typeof input.format && "number" === typeof input.indent && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io2 = input => "paragraph" === input.type && 1 === input.version && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && "string" === typeof input.format && "number" === typeof input.indent && "number" === typeof input.textFormat && "string" === typeof input.textStyle && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io3 = input => "text" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text; const _io4 = input => "linebreak" === input.type && 1 === input.version; const _io5 = input => "mention" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text && "string" === typeof input.mentionId; const _io6 = input => "emoji" === input.type && 1 === input.version && "string" === typeof input.emojiId; const _io7 = input => "autolink" === input.type && 1 === input.version && "string" === typeof input.url; const _io8 = input => "number" === typeof input.start && (undefined === input.end || "number" === typeof input.end); const _iu0 = input => (() => {
558
+ if ("root" === input.type)
559
+ return _io1(input);
560
+ else if ("paragraph" === input.type)
561
+ return _io2(input);
562
+ else if ("text" === input.type)
563
+ return _io3(input);
564
+ else if ("linebreak" === input.type)
565
+ return _io4(input);
566
+ else if ("mention" === input.type)
567
+ return _io5(input);
568
+ else if ("emoji" === input.type)
569
+ return _io6(input);
570
+ else if ("autolink" === input.type)
571
+ return _io7(input);
572
+ else
573
+ return false;
574
+ })(); return input => _so0(input); })()(input);
575
+ }
576
+ case ":comment.reactions?": {
577
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
578
+ return ""; return `${JSON.stringify(key)}:${`[${value.map(elem => _so1(elem)).join(",")}]`}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"user":${__typia_transform__jsonStringifyString._jsonStringifyString(input.user)}}`; const _io1 = input => "string" === typeof input.id && "string" === typeof input.user; return input => _so0(input); })()(input);
579
+ }
580
+ case ":comment.replies?": {
581
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
582
+ }
583
+ case ":comment.readMarks?": {
584
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
585
+ }
586
+ case ":connection": {
587
+ return (() => { const _so0 = input => `{${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bucket) : undefined},`}${undefined === input.host ? "" : `"host":${undefined !== input.host ? __typia_transform__jsonStringifyString._jsonStringifyString(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
588
+ if ("string" === typeof input.port)
589
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.port);
590
+ if ("number" === typeof input.port)
591
+ return input.port;
592
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
593
+ method: "typia.json.stringify",
594
+ expected: "(number | string | undefined)",
595
+ value: input.port
596
+ });
597
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so1(input.metafile) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${"\"" + input.protocol + "\""},"type":${"\"" + input.type + "\""}}`; const _so1 = input => `{"content":${__typia_transform__jsonStringifyString._jsonStringifyString(input.content)}}`; const _so2 = input => `{${undefined === input.username ? "" : `"username":${undefined !== input.username ? __typia_transform__jsonStringifyString._jsonStringifyString(input.username) : undefined},`}${undefined === input.password ? "" : `"password":${undefined !== input.password ? __typia_transform__jsonStringifyString._jsonStringifyString(input.password) : undefined},`}${undefined === input.utf8 ? "" : `"utf8":${undefined !== input.utf8 ? input.utf8 : undefined},`}${undefined === input.timezone ? "" : `"timezone":${undefined !== input.timezone ? __typia_transform__jsonStringifyString._jsonStringifyString(input.timezone) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
598
+ if ("string" === typeof input.port)
599
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.port);
600
+ if ("number" === typeof input.port)
601
+ return input.port;
602
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
603
+ method: "typia.json.stringify",
604
+ expected: "(number | string | undefined)",
605
+ value: input.port
606
+ });
607
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so1(input.metafile) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${"\"" + input.protocol + "\""},"host":${__typia_transform__jsonStringifyString._jsonStringifyString(input.host)},"type":${"\"" + input.type + "\""}}`; const _so3 = input => `{${undefined === input.workgroup ? "" : `"workgroup":${undefined !== input.workgroup ? __typia_transform__jsonStringifyString._jsonStringifyString(input.workgroup) : undefined},`}${undefined === input.username ? "" : `"username":${undefined !== input.username ? __typia_transform__jsonStringifyString._jsonStringifyString(input.username) : undefined},`}${undefined === input.password ? "" : `"password":${undefined !== input.password ? __typia_transform__jsonStringifyString._jsonStringifyString(input.password) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
608
+ if ("string" === typeof input.port)
609
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.port);
610
+ if ("number" === typeof input.port)
611
+ return input.port;
612
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
613
+ method: "typia.json.stringify",
614
+ expected: "(number | string | undefined)",
615
+ value: input.port
616
+ });
617
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so1(input.metafile) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${"\"" + input.protocol + "\""},"host":${__typia_transform__jsonStringifyString._jsonStringifyString(input.host)},"share":${__typia_transform__jsonStringifyString._jsonStringifyString(input.share)},"type":${"\"" + input.type + "\""}}`; const _so4 = input => `{${undefined === input.username ? "" : `"username":${undefined !== input.username ? __typia_transform__jsonStringifyString._jsonStringifyString(input.username) : undefined},`}${undefined === input.password ? "" : `"password":${undefined !== input.password ? __typia_transform__jsonStringifyString._jsonStringifyString(input.password) : undefined},`}${undefined === input.privateKey ? "" : `"privateKey":${undefined !== input.privateKey ? __typia_transform__jsonStringifyString._jsonStringifyString(input.privateKey) : undefined},`}${undefined === input.timezone ? "" : `"timezone":${undefined !== input.timezone ? __typia_transform__jsonStringifyString._jsonStringifyString(input.timezone) : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? input.debug : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? __typia_transform__jsonStringifyString._jsonStringifyString(input.root) : undefined},`}${undefined === input.mode ? "" : `"mode":${undefined !== input.mode ? "\"" + input.mode + "\"" : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? (() => {
618
+ if ("string" === typeof input.port)
619
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.port);
620
+ if ("number" === typeof input.port)
621
+ return input.port;
622
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
623
+ method: "typia.json.stringify",
624
+ expected: "(number | string | undefined)",
625
+ value: input.port
626
+ });
627
+ })() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so1(input.metafile) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"protocol":${"\"" + input.protocol + "\""},"host":${__typia_transform__jsonStringifyString._jsonStringifyString(input.host)},"type":${"\"" + input.type + "\""}}`; const _so5 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? __typia_transform__jsonStringifyString._jsonStringifyString(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? __typia_transform__jsonStringifyString._jsonStringifyString(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so6 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${"\"" + input.type + "\""}}`; const _su0 = input => (() => {
628
+ if ("s3" === input.protocol)
629
+ return _so0(input);
630
+ else if ("ftp" === input.protocol)
631
+ return _so2(input);
632
+ else if ("smb" === input.protocol)
633
+ return _so3(input);
634
+ else if ("sftp" === input.protocol)
635
+ return _so4(input);
636
+ else if ("reuters" === input.type)
637
+ return _so5(input);
638
+ else if ("facebook" === input.type)
639
+ return _so6(input);
640
+ else
641
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
642
+ method: "typia.json.stringify",
643
+ expected: "(FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord | ReutersConnectionRecord | FacebookConnectionRecord)",
644
+ value: input
645
+ });
646
+ })(); const _io0 = input => "s3" === input.protocol && true && (undefined === input.bucket || "string" === typeof input.bucket) && "file" === input.type && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io1 = input => "string" === typeof input.content; const _io2 = input => "ftp" === input.protocol && "string" === typeof input.host && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.utf8 || "boolean" === typeof input.utf8) && (undefined === input.timezone || "string" === typeof input.timezone) && "file" === input.type && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io3 = input => "smb" === input.protocol && "string" === typeof input.host && "string" === typeof input.share && (undefined === input.workgroup || "string" === typeof input.workgroup) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && "file" === input.type && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io4 = input => "sftp" === input.protocol && "string" === typeof input.host && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.privateKey || "string" === typeof input.privateKey) && (undefined === input.timezone || "string" === typeof input.timezone) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.root || "string" === typeof input.root) && (undefined === input.mode || "libcurl" === input.mode || "lftp" === input.mode || "openssh" === input.mode || "ssh2" === input.mode) && "file" === input.type && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io5 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io6 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); return input => _su0(input); })()(input);
647
+ }
648
+ case ":connection.methods?": {
649
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
650
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => "{}"; const _io1 = input => true; return input => _so0(input); })()(input);
651
+ }
652
+ case ":connection.stats?": {
653
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.pages ? "" : `"pages":${undefined !== input.pages ? `[${input.pages.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${undefined === input.id || "function" === typeof input.id ? "" : `"id":${undefined !== input.id ? JSON.stringify(input.id) : undefined}`}}`; const _io1 = input => true; return input => _so0(input); })()(input);
654
+ }
655
+ case ":contact": {
656
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.email ? "" : `"email":${undefined !== input.email ? __typia_transform__jsonStringifyString._jsonStringifyString(input.email) : undefined},`}${undefined === input.firstName ? "" : `"firstName":${undefined !== input.firstName ? __typia_transform__jsonStringifyString._jsonStringifyString(input.firstName) : undefined},`}${undefined === input.lastName ? "" : `"lastName":${undefined !== input.lastName ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lastName) : undefined}`}`)}}`; return input => _so0(input); })()(input);
657
+ }
658
+ case ":deepstream.replicate": {
659
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.synced ? "" : `"synced":${undefined !== input.synced ? input.synced : undefined},`}${undefined === input.since ? "" : `"since":${undefined !== input.since ? null !== input.since ? (() => {
660
+ if ("number" === typeof input.since)
661
+ return input.since;
662
+ if ("string" === typeof input.since)
663
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.since);
664
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
665
+ method: "typia.json.stringify",
666
+ expected: "(0 | null | string | undefined)",
667
+ value: input.since
668
+ });
669
+ })() : "null" : undefined}`}`)}}`; return input => _so0(input); })()(input);
670
+ }
671
+ case ":design": {
672
+ return (() => { const _so0 = input => `{"rows":${`[${input.rows.map(elem => _so1(elem)).join(",")}]`}}`; const _so1 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"key":${__typia_transform__jsonStringifyString._jsonStringifyString(input.key)}}`; const _io1 = input => "string" === typeof input.id && "string" === typeof input.key && true; return input => _so0(input); })()(input);
673
+ }
674
+ case ":edit": {
675
+ return (() => { const _so0 = input => `{${undefined === input.active ? "" : `"active":${undefined !== input.active ? input.active : undefined},`}${undefined === input.changeId ? "" : `"changeId":${undefined !== input.changeId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.changeId) : undefined},`}"nodes":${_so1(input.nodes)},"tracks":${`[${input.tracks.map(elem => _so1(elem)).join(",")}]`},"transitions":${_so1(input.transitions)}}`; const _so1 = input => "{}"; const _io1 = input => true; return input => _so0(input); })()(input);
676
+ }
677
+ case ":event": {
678
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? input.duration : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? __typia_transform__jsonStringifyString._jsonStringifyString(input.text) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? _so1(input.styleOverrides) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined}`}`)}}`; const _io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut); return input => _so0(input); })()(input);
679
+ }
680
+ case ":event._template?": {
681
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.mixin ? "" : `"mixin":${undefined !== input.mixin ? `[${input.mixin.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so2(input.layout) : undefined}`}`)}}`; const _so1 = input => "{}"; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined}`}`)}}`; const _io1 = input => true; const _io2 = input => undefined === input.title || "string" === typeof input.title; return input => _so0(input); })()(input);
682
+ }
683
+ case ":event.overlay?": {
684
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
685
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"data":${_so2(input.data)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined},`}${undefined === input.cueCard ? "" : `"cueCard":${undefined !== input.cueCard ? (() => {
686
+ if ("string" === typeof input.cueCard)
687
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.cueCard);
688
+ if ("boolean" === typeof input.cueCard)
689
+ return input.cueCard;
690
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
691
+ method: "typia.json.stringify",
692
+ expected: "(boolean | string | undefined)",
693
+ value: input.cueCard
694
+ });
695
+ })() : undefined},`}${undefined === input.startTime ? "" : `"startTime":${undefined !== input.startTime ? input.startTime : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
696
+ return ""; if (["source", "cueCard", "startTime"].some(regular => regular === key))
697
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
698
+ if ("string" === typeof value)
699
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
700
+ if ("number" === typeof value)
701
+ return value;
702
+ if ("boolean" === typeof value)
703
+ return value;
704
+ if (Array.isArray(value))
705
+ return _sa0(value);
706
+ if ("object" === typeof value && null !== value && false === Array.isArray(value))
707
+ return _so3(value);
708
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
709
+ method: "typia.json.stringify",
710
+ expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
711
+ value: value
712
+ });
713
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
714
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
715
+ if ("string" === typeof value)
716
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
717
+ if ("number" === typeof value)
718
+ return value;
719
+ if ("boolean" === typeof value)
720
+ return value;
721
+ if (Array.isArray(value))
722
+ return _sa0(value);
723
+ if ("object" === typeof value && null !== value && false === Array.isArray(value))
724
+ return _so3(value);
725
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
726
+ method: "typia.json.stringify",
727
+ expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
728
+ value: value
729
+ });
730
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}}`; const _sa0 = input => `[${input.map(elem => null !== elem ? (() => {
731
+ if ("string" === typeof elem)
732
+ return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
733
+ if ("number" === typeof elem)
734
+ return elem;
735
+ if ("boolean" === typeof elem)
736
+ return elem;
737
+ if (Array.isArray(elem))
738
+ return _sa0(elem);
739
+ if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
740
+ return _so3(elem);
741
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
742
+ method: "typia.json.stringify",
743
+ expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
744
+ value: elem
745
+ });
746
+ })() : "null").join(",")}]`; const _io1 = input => "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io2(input.data); const _io2 = input => (undefined === input.source || "string" === typeof input.source) && (undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard) && (undefined === input.startTime || "number" === typeof input.startTime) && Object.keys(input).every(key => {
747
+ if (["source", "cueCard", "startTime"].some(prop => key === prop))
748
+ return true;
749
+ const value = input[key];
750
+ if (undefined === value)
751
+ return true;
752
+ return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io3(value)));
753
+ }); const _io3 = input => Object.keys(input).every(key => {
754
+ const value = input[key];
755
+ if (undefined === value)
756
+ return true;
757
+ return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io3(value)));
758
+ }); const _ia0 = input => input.every(elem => undefined !== elem && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_ia0(elem) || false) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io3(elem)))); return input => _so0(input); })()(input);
759
+ }
760
+ case ":event.template?": {
761
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.mixin ? "" : `"mixin":${undefined !== input.mixin ? `[${input.mixin.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so2(input.layout) : undefined}`}`)}}`; const _so1 = input => "{}"; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined}`}`)}}`; const _io1 = input => true; const _io2 = input => undefined === input.title || "string" === typeof input.title; return input => _so0(input); })()(input);
762
+ }
763
+ case ":event.duration?": {
764
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.scheduled ? "" : `"scheduled":${undefined !== input.scheduled ? input.scheduled : undefined},`}${undefined === input.actual ? "" : `"actual":${undefined !== input.actual ? input.actual : undefined},`}${undefined === input["in"] ? "" : `"in":${undefined !== input["in"] ? input["in"] : undefined},`}${undefined === input.out ? "" : `"out":${undefined !== input.out ? null !== input.out ? input.out : "null" : undefined}`}`)}}`; return input => _so0(input); })()(input);
765
+ }
766
+ case ":event.children?": {
767
+ return (() => { const _so0 = input => `{"value":${`[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; return input => _so0(input); })()(input);
768
+ }
769
+ case ":event.props?": {
770
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined},`}${undefined === input.cueCard ? "" : `"cueCard":${undefined !== input.cueCard ? (() => {
771
+ if ("string" === typeof input.cueCard)
772
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.cueCard);
773
+ if ("boolean" === typeof input.cueCard)
774
+ return input.cueCard;
775
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
776
+ method: "typia.json.stringify",
777
+ expected: "(boolean | string | undefined)",
778
+ value: input.cueCard
779
+ });
780
+ })() : undefined},`}${undefined === input.startTime ? "" : `"startTime":${undefined !== input.startTime ? input.startTime : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
781
+ return ""; if (["source", "cueCard", "startTime"].some(regular => regular === key))
782
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
783
+ if ("string" === typeof value)
784
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
785
+ if ("number" === typeof value)
786
+ return value;
787
+ if ("boolean" === typeof value)
788
+ return value;
789
+ if (Array.isArray(value))
790
+ return _sa0(value);
791
+ if ("object" === typeof value && null !== value && false === Array.isArray(value))
792
+ return _so1(value);
793
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
794
+ method: "typia.json.stringify",
795
+ expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
796
+ value: value
797
+ });
798
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
799
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
800
+ if ("string" === typeof value)
801
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
802
+ if ("number" === typeof value)
803
+ return value;
804
+ if ("boolean" === typeof value)
805
+ return value;
806
+ if (Array.isArray(value))
807
+ return _sa0(value);
808
+ if ("object" === typeof value && null !== value && false === Array.isArray(value))
809
+ return _so1(value);
810
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
811
+ method: "typia.json.stringify",
812
+ expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
813
+ value: value
814
+ });
815
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}}`; const _sa0 = input => `[${input.map(elem => null !== elem ? (() => {
816
+ if ("string" === typeof elem)
817
+ return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
818
+ if ("number" === typeof elem)
819
+ return elem;
820
+ if ("boolean" === typeof elem)
821
+ return elem;
822
+ if (Array.isArray(elem))
823
+ return _sa0(elem);
824
+ if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
825
+ return _so1(elem);
826
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
827
+ method: "typia.json.stringify",
828
+ expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
829
+ value: elem
830
+ });
831
+ })() : "null").join(",")}]`; const _io1 = input => Object.keys(input).every(key => {
832
+ const value = input[key];
833
+ if (undefined === value)
834
+ return true;
835
+ return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value)));
836
+ }); const _ia0 = input => input.every(elem => undefined !== elem && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_ia0(elem) || false) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem)))); return input => _so0(input); })()(input);
837
+ }
838
+ case ":file.replicate": {
839
+ return (() => { const _so0 = input => `{"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"error":${null !== input.error ? _so1(input.error) : "null"}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so2(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so3(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so1(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so1(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
840
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => "{}"; const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
841
+ const value = input[key];
842
+ if (undefined === value)
843
+ return true;
844
+ return "string" === typeof value;
845
+ }); const _io3 = input => true; return input => _so0(input); })()(input);
846
+ }
847
+ case ":file.restrictions": {
848
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
849
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"asset":${__typia_transform__jsonStringifyString._jsonStringifyString(input.asset)},"date":${__typia_transform__jsonStringifyString._jsonStringifyString(input.date)},"user":${__typia_transform__jsonStringifyString._jsonStringifyString(input.user)},"text":${__typia_transform__jsonStringifyString._jsonStringifyString(input.text)},"start":${input.start},"end":${input.end}}`; const _io1 = input => "string" === typeof input.asset && "string" === typeof input.date && "string" === typeof input.user && "string" === typeof input.text && "number" === typeof input.start && "number" === typeof input.end; return input => _so0(input); })()(input);
850
+ }
851
+ case ":file.stats?": {
852
+ return (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => _so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
853
+ if (Array.isArray(input.error))
854
+ return `[${input.error.map(elem => _so2(elem)).join(",")}]`;
855
+ if ("object" === typeof input.error && null !== input.error)
856
+ return _so2(input.error);
857
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
858
+ method: "typia.json.stringify",
859
+ expected: "(Array<NxtError> | NxtError | null)",
860
+ value: input.error
861
+ });
862
+ })() : "null"}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`; const _so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so4(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so2(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
863
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => "{}"; const _io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end); const _io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io3 = input => Object.keys(input).every(key => {
864
+ const value = input[key];
865
+ if (undefined === value)
866
+ return true;
867
+ return "string" === typeof value;
868
+ }); const _io4 = input => true; return input => _so0(input); })()(input);
869
+ }
870
+ case ":general.title": {
871
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
872
+ }
873
+ case ":general.tags": {
874
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
875
+ }
876
+ case ":general.created": {
877
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? __typia_transform__jsonStringifyString._jsonStringifyString(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? __typia_transform__jsonStringifyString._jsonStringifyString(input.origin) : undefined}`}`)}}`; return input => _so0(input); })()(input);
878
+ }
879
+ case ":general.poster": {
880
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? _so1(input.input) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : undefined}`}`)}}`; const _io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file); return input => _so0(input); })()(input);
881
+ }
882
+ case ":general.status": {
883
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
884
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`; const _io1 = input => undefined === input.expose || "boolean" === typeof input.expose; return input => _so0(input); })()(input);
885
+ }
886
+ case ":general.description": {
887
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
888
+ }
889
+ case ":media.source": {
890
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? _so1(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? _so2(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? _so5(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so7(input.transcribe) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : "null" : undefined}`}`)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
891
+ return ""; return `${JSON.stringify(key)}:${_so3(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? _so4(input.styleOverrides) : undefined}`}`)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? __typia_transform__jsonStringifyString._jsonStringifyString(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? __typia_transform__jsonStringifyString._jsonStringifyString(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? _so6(input.crop) : undefined}`}`)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`; const _io1 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io2 = input => Object.keys(input).every(key => {
892
+ const value = input[key];
893
+ if (undefined === value)
894
+ return true;
895
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io3(value);
896
+ }); const _io3 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io4(input.styleOverrides)); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io5 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io6(input.crop); const _io6 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io7 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); return input => _so0(input); })()(input);
897
+ }
898
+ case ":media.consolidate": {
899
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.source || "function" === typeof input.source ? "" : `"source":${undefined !== input.source ? JSON.stringify(input.source) : undefined},`}${undefined === input.target || "function" === typeof input.target ? "" : `"target":${undefined !== input.target ? JSON.stringify(input.target) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? (() => {
900
+ if ("string" === typeof input.preset)
901
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.preset);
902
+ if ("object" === typeof input.preset && null !== input.preset)
903
+ return _so1(input.preset);
904
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
905
+ method: "typia.json.stringify",
906
+ expected: "(RenderPresetObject | string | undefined)",
907
+ value: input.preset
908
+ });
909
+ })() : undefined},`}${undefined === input.error || "function" === typeof input.error ? "" : `"error":${undefined !== input.error ? JSON.stringify(input.error) : undefined}`}`)}}`; const _so1 = input => `{"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"profile":${(() => {
910
+ if ("string" === typeof input.profile)
911
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.profile);
912
+ if (Array.isArray(input.profile))
913
+ return `[${input.profile.map(elem => (() => {
914
+ if ("string" === typeof elem)
915
+ return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
916
+ if ("object" === typeof elem && null !== elem)
917
+ return _so2(elem);
918
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
919
+ method: "typia.json.stringify",
920
+ expected: "(RenderProfileObject | string)",
921
+ value: elem
922
+ });
923
+ })()).join(",")}]`;
924
+ if ("object" === typeof input.profile && null !== input.profile)
925
+ return _so2(input.profile);
926
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
927
+ method: "typia.json.stringify",
928
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
929
+ value: input.profile
930
+ });
931
+ })()}}`; const _so2 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so3(input.transcribe) : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so4(input.translate) : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? _so5(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
932
+ if ("string" === typeof input.subtitle)
933
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle);
934
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
935
+ return _so6(input.subtitle);
936
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
937
+ method: "typia.json.stringify",
938
+ expected: "(SubtitleProfile | string | undefined)",
939
+ value: input.subtitle
940
+ });
941
+ })() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so3 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so4 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined}`}`)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined}`}`)}}`; const _io1 = input => "string" === typeof input.type && (null !== input.profile && undefined !== input.profile && ("string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io2(elem))) || "object" === typeof input.profile && null !== input.profile && _io2(input.profile)))); const _io2 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io3(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io4(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io5(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io6(input.subtitle))); const _io3 = input => "string" === typeof input.engine; const _io4 = input => "string" === typeof input.language; const _io5 = input => undefined === input.pan || "string" === typeof input.pan; const _io6 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); return input => _so0(input); })()(input);
942
+ }
943
+ case ":media.renders?": {
944
+ return (() => { const _so0 = input => `{"children":${`[${input.children.map(elem => _so1(elem)).join(",")}]`}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? `[${input.children.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _io1 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.children || Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem))); return input => _so0(input); })()(input);
945
+ }
946
+ case ":media.transcriptChanges": {
947
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
948
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.patch ? "" : `"patch":${undefined !== input.patch ? `[${input.patch.map(elem => _su0(elem)).join(",")}]` : undefined}`}`)}}`; const _so2 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${"\"" + input.op + "\""},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so3 = input => `{"op":${"\"" + input.op + "\""},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so4 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${"\"" + input.op + "\""},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so5 = input => `{"op":${"\"" + input.op + "\""},"from":${__typia_transform__jsonStringifyString._jsonStringifyString(input.from)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so6 = input => `{"op":${"\"" + input.op + "\""},"from":${__typia_transform__jsonStringifyString._jsonStringifyString(input.from)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so7 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"op":${"\"" + input.op + "\""},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _su0 = input => (() => {
949
+ if ("add" === input.op)
950
+ return _so2(input);
951
+ else if ("remove" === input.op)
952
+ return _so3(input);
953
+ else if ("test" === input.op)
954
+ return _so7(input);
955
+ else if ("replace" === input.op)
956
+ return _so4(input);
957
+ else if ("copy" === input.op)
958
+ return _so6(input);
959
+ else if ("move" === input.op)
960
+ return _so5(input);
961
+ else
962
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
963
+ method: "typia.json.stringify",
964
+ expected: "(AddOperation | RemoveOperation | TestOperation | ReplaceOperation | CopyOperation | MoveOperation)",
965
+ value: input
966
+ });
967
+ })(); const _io1 = input => undefined === input.patch || Array.isArray(input.patch) && input.patch.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)); const _io2 = input => "add" === input.op && "string" === typeof input.path && true; const _io3 = input => "remove" === input.op && "string" === typeof input.path; const _io4 = input => "replace" === input.op && "string" === typeof input.path && true; const _io5 = input => "move" === input.op && "string" === typeof input.from && "string" === typeof input.path; const _io6 = input => "copy" === input.op && "string" === typeof input.from && "string" === typeof input.path; const _io7 = input => "test" === input.op && "string" === typeof input.path && true; const _iu0 = input => (() => {
968
+ if ("add" === input.op)
969
+ return _io2(input);
970
+ else if ("remove" === input.op)
971
+ return _io3(input);
972
+ else if ("test" === input.op)
973
+ return _io7(input);
974
+ else if ("replace" === input.op)
975
+ return _io4(input);
976
+ else if ("copy" === input.op)
977
+ return _io6(input);
978
+ else if ("move" === input.op)
979
+ return _io5(input);
980
+ else
981
+ return false;
982
+ })(); return input => _so0(input); })()(input);
983
+ }
984
+ case ":media.font": {
985
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.sampleText ? "" : `"sampleText":${undefined !== input.sampleText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.sampleText) : undefined}`}`)}}`; return input => _so0(input); })()(input);
986
+ }
987
+ case ":media.restrictions?": {
988
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
989
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"asset":${__typia_transform__jsonStringifyString._jsonStringifyString(input.asset)},"date":${__typia_transform__jsonStringifyString._jsonStringifyString(input.date)},"user":${__typia_transform__jsonStringifyString._jsonStringifyString(input.user)},"text":${__typia_transform__jsonStringifyString._jsonStringifyString(input.text)},"start":${input.start},"end":${input.end},"file":${__typia_transform__jsonStringifyString._jsonStringifyString(input.file)}}`; const _io1 = input => "string" === typeof input.asset && "string" === typeof input.date && "string" === typeof input.user && "string" === typeof input.text && "number" === typeof input.start && "number" === typeof input.end && "string" === typeof input.file; return input => _so0(input); })()(input);
990
+ }
991
+ case ":media.probe?": {
992
+ return (() => { const _so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}${undefined === input.live ? "" : `"live":${undefined !== input.live ? null !== input.live ? input.live : "null" : undefined},`}${undefined === input.url ? "" : `"url":${undefined !== input.url ? null !== input.url ? __typia_transform__jsonStringifyString._jsonStringifyString(input.url) : "null" : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? _so4(input.subtitle) : undefined},`}"error":${null !== input.error ? _so1(input.error) : "null"},"type":${"\"" + input.type + "\""}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so2(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so3(input.data) : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? _so1(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => _so1(elem)).join(",")}]` : "null" : undefined},`}"message":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
993
+ return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => "{}"; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.codec ? "" : `"codec":${undefined !== input.codec ? null !== input.codec ? __typia_transform__jsonStringifyString._jsonStringifyString(input.codec) : "null" : undefined}`}`)}}`; const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
994
+ const value = input[key];
995
+ if (undefined === value)
996
+ return true;
997
+ return "string" === typeof value;
998
+ }); const _io3 = input => true; const _io4 = input => null === input.codec || undefined === input.codec || "string" === typeof input.codec; return input => _so0(input); })()(input);
999
+ }
1000
+ case ":media.updateSubtitles?": {
1001
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1002
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
1003
+ }
1004
+ case ":media.updateGraphics?": {
1005
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1006
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
1007
+ }
1008
+ case ":monitor.stats?": {
1009
+ return (() => { const _so0 = input => `{${undefined === input.gpu || "function" === typeof input.gpu ? "" : `"gpu":${undefined !== input.gpu ? JSON.stringify(input.gpu) : undefined},`}"proc":${_so1(input.proc)},"buddyinfo":${_so3(input.buddyinfo)},"meminfo":${_so4(input.meminfo)},"net":${_so5(input.net)},"var":${_so12(input["var"])}}`; const _so1 = input => `{${undefined === input.cpus ? "" : `"cpus":${undefined !== input.cpus ? `[${input.cpus.map(elem => _so2(elem)).join(",")}]` : undefined},`}${undefined === input.interrupts ? "" : `"interrupts":${undefined !== input.interrupts ? null !== input.interrupts ? `[${input.interrupts.map(elem => elem).join(",")}]` : "null" : undefined},`}${undefined === input.softirqs || "function" === typeof input.softirqs ? "" : `"softirqs":${undefined !== input.softirqs ? JSON.stringify(input.softirqs) : undefined},`}${undefined === input.cmdline || "function" === typeof input.cmdline ? "" : `"cmdline":${undefined !== input.cmdline ? JSON.stringify(input.cmdline) : undefined},`}"cpu":${null !== input.cpu ? _so2(input.cpu) : "null"},"threads":${input.threads},"load":${null !== input.load ? `[${input.load.map(elem => elem).join(",")}]` : "null"},"contextSwitches":${null !== input.contextSwitches ? input.contextSwitches : "null"},"bootTime":${null !== input.bootTime ? input.bootTime : "null"},"processes":${null !== input.processes ? input.processes : "null"},"running":${null !== input.running ? input.running : "null"},"blocked":${null !== input.blocked ? input.blocked : "null"},"timestamp":${input.timestamp},"total":${null !== input.total ? input.total : "null"},"idle":${null !== input.idle ? input.idle : "null"},"active":${null !== input.active ? input.active : "null"},"utilization":${null !== input.utilization ? input.utilization : "null"}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1010
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
1011
+ if ("string" === typeof value)
1012
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
1013
+ if ("number" === typeof value)
1014
+ return value;
1015
+ if ("boolean" === typeof value)
1016
+ return value;
1017
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1018
+ method: "typia.json.stringify",
1019
+ expected: "(boolean | null | number | string)",
1020
+ value: value
1021
+ });
1022
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => `{${undefined === input.normal ? "" : `"normal":${undefined !== input.normal ? `[${input.normal.map(elem => elem).join(",")}]` : undefined},`}${undefined === input.high ? "" : `"high":${undefined !== input.high ? `[${input.high.map(elem => elem).join(",")}]` : undefined},`}"timestamp":${input.timestamp}}`; const _so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1023
+ return ""; return `${JSON.stringify(key)}:${null !== value ? (() => {
1024
+ if ("string" === typeof value)
1025
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
1026
+ if ("number" === typeof value)
1027
+ return value;
1028
+ if ("boolean" === typeof value)
1029
+ return value;
1030
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1031
+ method: "typia.json.stringify",
1032
+ expected: "(boolean | null | number | string)",
1033
+ value: value
1034
+ });
1035
+ })() : "null"}`; }).filter(str => "" !== str).join(",")}}`; const _so5 = input => `{"softnet":${_so6(input.softnet)},"sockstat":${_so8(input.sockstat)},"bonding":${`[${input.bonding.map(elem => _so10(elem)).join(",")}]`},"eth":${`[${input.eth.map(elem => _so11(elem)).join(",")}]`}}`; const _so6 = input => `{${undefined === input.squeezed ? "" : `"squeezed":${undefined !== input.squeezed ? input.squeezed : undefined},`}${undefined === input.squeezedDay ? "" : `"squeezedDay":${undefined !== input.squeezedDay ? input.squeezedDay : undefined},`}${undefined === input.squeezedHour ? "" : `"squeezedHour":${undefined !== input.squeezedHour ? input.squeezedHour : undefined},`}${undefined === input.processed ? "" : `"processed":${undefined !== input.processed ? input.processed : undefined},`}${undefined === input.processedDay ? "" : `"processedDay":${undefined !== input.processedDay ? input.processedDay : undefined},`}${undefined === input.processedHour ? "" : `"processedHour":${undefined !== input.processedHour ? input.processedHour : undefined},`}${undefined === input.processedMinute ? "" : `"processedMinute":${undefined !== input.processedMinute ? input.processedMinute : undefined},`}"timestamp":${input.timestamp},"cpus":${`[${input.cpus.map(elem => _so7(elem)).join(",")}]`}}`; const _so7 = input => `{${undefined === input.processed ? "" : `"processed":${undefined !== input.processed ? input.processed : undefined},`}${undefined === input.dropped ? "" : `"dropped":${undefined !== input.dropped ? input.dropped : undefined},`}${undefined === input.squeezed ? "" : `"squeezed":${undefined !== input.squeezed ? input.squeezed : undefined},`}"cpu":${input.cpu}}`; const _so8 = input => `{${undefined === input.sockets ? "" : `"sockets":${undefined !== input.sockets ? _so9(input.sockets) : undefined},`}${undefined === input.tcp ? "" : `"tcp":${undefined !== input.tcp ? _so9(input.tcp) : undefined},`}${undefined === input.udp ? "" : `"udp":${undefined !== input.udp ? _so9(input.udp) : undefined},`}${undefined === input.udplite ? "" : `"udplite":${undefined !== input.udplite ? _so9(input.udplite) : undefined},`}${undefined === input.raw ? "" : `"raw":${undefined !== input.raw ? _so9(input.raw) : undefined},`}${undefined === input.frag ? "" : `"frag":${undefined !== input.frag ? _so9(input.frag) : undefined},`}"timestamp":${input.timestamp}}`; const _so9 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1036
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so10 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.timestamp ? "" : `"timestamp":${undefined !== input.timestamp ? input.timestamp : undefined},`}${undefined === input.rxBytes ? "" : `"rxBytes":${undefined !== input.rxBytes ? input.rxBytes : undefined},`}${undefined === input.rxBytesOrigin ? "" : `"rxBytesOrigin":${undefined !== input.rxBytesOrigin ? input.rxBytesOrigin : undefined},`}${undefined === input.rxBytesSec ? "" : `"rxBytesSec":${undefined !== input.rxBytesSec ? input.rxBytesSec : undefined},`}${undefined === input.rxBytesValue ? "" : `"rxBytesValue":${undefined !== input.rxBytesValue ? input.rxBytesValue : undefined},`}${undefined === input.rxDropped ? "" : `"rxDropped":${undefined !== input.rxDropped ? input.rxDropped : undefined},`}${undefined === input.rxDroppedOrigin ? "" : `"rxDroppedOrigin":${undefined !== input.rxDroppedOrigin ? input.rxDroppedOrigin : undefined},`}${undefined === input.rxDroppedSec ? "" : `"rxDroppedSec":${undefined !== input.rxDroppedSec ? input.rxDroppedSec : undefined},`}${undefined === input.rxDroppedValue ? "" : `"rxDroppedValue":${undefined !== input.rxDroppedValue ? input.rxDroppedValue : undefined},`}${undefined === input.rxErrors ? "" : `"rxErrors":${undefined !== input.rxErrors ? input.rxErrors : undefined},`}${undefined === input.rxErrorsOrigin ? "" : `"rxErrorsOrigin":${undefined !== input.rxErrorsOrigin ? input.rxErrorsOrigin : undefined},`}${undefined === input.rxErrorsSec ? "" : `"rxErrorsSec":${undefined !== input.rxErrorsSec ? input.rxErrorsSec : undefined},`}${undefined === input.rxErrorsValue ? "" : `"rxErrorsValue":${undefined !== input.rxErrorsValue ? input.rxErrorsValue : undefined},`}${undefined === input.rxPackets ? "" : `"rxPackets":${undefined !== input.rxPackets ? input.rxPackets : undefined},`}${undefined === input.rxPacketsOrigin ? "" : `"rxPacketsOrigin":${undefined !== input.rxPacketsOrigin ? input.rxPacketsOrigin : undefined},`}${undefined === input.rxPacketsSec ? "" : `"rxPacketsSec":${undefined !== input.rxPacketsSec ? input.rxPacketsSec : undefined},`}${undefined === input.rxPacketsValue ? "" : `"rxPacketsValue":${undefined !== input.rxPacketsValue ? input.rxPacketsValue : undefined},`}${undefined === input.txBytes ? "" : `"txBytes":${undefined !== input.txBytes ? input.txBytes : undefined},`}${undefined === input.txBytesOrigin ? "" : `"txBytesOrigin":${undefined !== input.txBytesOrigin ? input.txBytesOrigin : undefined},`}${undefined === input.txBytesSec ? "" : `"txBytesSec":${undefined !== input.txBytesSec ? input.txBytesSec : undefined},`}${undefined === input.txBytesValue ? "" : `"txBytesValue":${undefined !== input.txBytesValue ? input.txBytesValue : undefined},`}${undefined === input.txDropped ? "" : `"txDropped":${undefined !== input.txDropped ? input.txDropped : undefined},`}${undefined === input.txDroppedOrigin ? "" : `"txDroppedOrigin":${undefined !== input.txDroppedOrigin ? input.txDroppedOrigin : undefined},`}${undefined === input.txDroppedSec ? "" : `"txDroppedSec":${undefined !== input.txDroppedSec ? input.txDroppedSec : undefined},`}${undefined === input.txDroppedValue ? "" : `"txDroppedValue":${undefined !== input.txDroppedValue ? input.txDroppedValue : undefined},`}${undefined === input.txErrors ? "" : `"txErrors":${undefined !== input.txErrors ? input.txErrors : undefined},`}${undefined === input.txErrorsOrigin ? "" : `"txErrorsOrigin":${undefined !== input.txErrorsOrigin ? input.txErrorsOrigin : undefined},`}${undefined === input.txErrorsSec ? "" : `"txErrorsSec":${undefined !== input.txErrorsSec ? input.txErrorsSec : undefined},`}${undefined === input.txErrorsValue ? "" : `"txErrorsValue":${undefined !== input.txErrorsValue ? input.txErrorsValue : undefined},`}"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)},"slaves":${`[${input.slaves.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1037
+ return ""; if (["timestamp", "rxBytes", "rxBytesOrigin", "rxBytesSec", "rxBytesValue", "rxDropped", "rxDroppedOrigin", "rxDroppedSec", "rxDroppedValue", "rxErrors", "rxErrorsOrigin", "rxErrorsSec", "rxErrorsValue", "rxPackets", "rxPacketsOrigin", "rxPacketsSec", "rxPacketsValue", "txBytes", "txBytesOrigin", "txBytesSec", "txBytesValue", "txDropped", "txDroppedOrigin", "txDroppedSec", "txDroppedValue", "txErrors", "txErrorsOrigin", "txErrorsSec", "txErrorsValue", "name", "slaves"].some(regular => regular === key))
1038
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so11 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.timestamp ? "" : `"timestamp":${undefined !== input.timestamp ? input.timestamp : undefined},`}${undefined === input.rxBytes ? "" : `"rxBytes":${undefined !== input.rxBytes ? input.rxBytes : undefined},`}${undefined === input.rxBytesOrigin ? "" : `"rxBytesOrigin":${undefined !== input.rxBytesOrigin ? input.rxBytesOrigin : undefined},`}${undefined === input.rxBytesSec ? "" : `"rxBytesSec":${undefined !== input.rxBytesSec ? input.rxBytesSec : undefined},`}${undefined === input.rxBytesValue ? "" : `"rxBytesValue":${undefined !== input.rxBytesValue ? input.rxBytesValue : undefined},`}${undefined === input.rxDropped ? "" : `"rxDropped":${undefined !== input.rxDropped ? input.rxDropped : undefined},`}${undefined === input.rxDroppedOrigin ? "" : `"rxDroppedOrigin":${undefined !== input.rxDroppedOrigin ? input.rxDroppedOrigin : undefined},`}${undefined === input.rxDroppedSec ? "" : `"rxDroppedSec":${undefined !== input.rxDroppedSec ? input.rxDroppedSec : undefined},`}${undefined === input.rxDroppedValue ? "" : `"rxDroppedValue":${undefined !== input.rxDroppedValue ? input.rxDroppedValue : undefined},`}${undefined === input.rxErrors ? "" : `"rxErrors":${undefined !== input.rxErrors ? input.rxErrors : undefined},`}${undefined === input.rxErrorsOrigin ? "" : `"rxErrorsOrigin":${undefined !== input.rxErrorsOrigin ? input.rxErrorsOrigin : undefined},`}${undefined === input.rxErrorsSec ? "" : `"rxErrorsSec":${undefined !== input.rxErrorsSec ? input.rxErrorsSec : undefined},`}${undefined === input.rxErrorsValue ? "" : `"rxErrorsValue":${undefined !== input.rxErrorsValue ? input.rxErrorsValue : undefined},`}${undefined === input.rxPackets ? "" : `"rxPackets":${undefined !== input.rxPackets ? input.rxPackets : undefined},`}${undefined === input.rxPacketsOrigin ? "" : `"rxPacketsOrigin":${undefined !== input.rxPacketsOrigin ? input.rxPacketsOrigin : undefined},`}${undefined === input.rxPacketsSec ? "" : `"rxPacketsSec":${undefined !== input.rxPacketsSec ? input.rxPacketsSec : undefined},`}${undefined === input.rxPacketsValue ? "" : `"rxPacketsValue":${undefined !== input.rxPacketsValue ? input.rxPacketsValue : undefined},`}${undefined === input.txBytes ? "" : `"txBytes":${undefined !== input.txBytes ? input.txBytes : undefined},`}${undefined === input.txBytesOrigin ? "" : `"txBytesOrigin":${undefined !== input.txBytesOrigin ? input.txBytesOrigin : undefined},`}${undefined === input.txBytesSec ? "" : `"txBytesSec":${undefined !== input.txBytesSec ? input.txBytesSec : undefined},`}${undefined === input.txBytesValue ? "" : `"txBytesValue":${undefined !== input.txBytesValue ? input.txBytesValue : undefined},`}${undefined === input.txDropped ? "" : `"txDropped":${undefined !== input.txDropped ? input.txDropped : undefined},`}${undefined === input.txDroppedOrigin ? "" : `"txDroppedOrigin":${undefined !== input.txDroppedOrigin ? input.txDroppedOrigin : undefined},`}${undefined === input.txDroppedSec ? "" : `"txDroppedSec":${undefined !== input.txDroppedSec ? input.txDroppedSec : undefined},`}${undefined === input.txDroppedValue ? "" : `"txDroppedValue":${undefined !== input.txDroppedValue ? input.txDroppedValue : undefined},`}${undefined === input.txErrors ? "" : `"txErrors":${undefined !== input.txErrors ? input.txErrors : undefined},`}${undefined === input.txErrorsOrigin ? "" : `"txErrorsOrigin":${undefined !== input.txErrorsOrigin ? input.txErrorsOrigin : undefined},`}${undefined === input.txErrorsSec ? "" : `"txErrorsSec":${undefined !== input.txErrorsSec ? input.txErrorsSec : undefined},`}${undefined === input.txErrorsValue ? "" : `"txErrorsValue":${undefined !== input.txErrorsValue ? input.txErrorsValue : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}${undefined === input.rxUnicastBytes ? "" : `"rxUnicastBytes":${undefined !== input.rxUnicastBytes ? input.rxUnicastBytes : undefined},`}${undefined === input.rxMulticastBytes ? "" : `"rxMulticastBytes":${undefined !== input.rxMulticastBytes ? input.rxMulticastBytes : undefined},`}${undefined === input.rxBroadcastBytes ? "" : `"rxBroadcastBytes":${undefined !== input.rxBroadcastBytes ? input.rxBroadcastBytes : undefined},`}"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1039
+ return ""; if (["timestamp", "rxBytes", "rxBytesOrigin", "rxBytesSec", "rxBytesValue", "rxDropped", "rxDroppedOrigin", "rxDroppedSec", "rxDroppedValue", "rxErrors", "rxErrorsOrigin", "rxErrorsSec", "rxErrorsValue", "rxPackets", "rxPacketsOrigin", "rxPacketsSec", "rxPacketsValue", "txBytes", "txBytesOrigin", "txBytesSec", "txBytesValue", "txDropped", "txDroppedOrigin", "txDroppedSec", "txDroppedValue", "txErrors", "txErrorsOrigin", "txErrorsSec", "txErrorsValue", "speed", "rxUnicastBytes", "rxMulticastBytes", "rxBroadcastBytes", "name"].some(regular => regular === key))
1040
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so12 = input => `{"used":${input.used},"available":${input.available},"timestamp":${input.timestamp}}`; const _io1 = input => (null === input.cpu || "object" === typeof input.cpu && null !== input.cpu && false === Array.isArray(input.cpu) && _io2(input.cpu)) && (undefined === input.cpus || Array.isArray(input.cpus) && input.cpus.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem))) && "number" === typeof input.threads && (null === input.load || Array.isArray(input.load) && input.load.every(elem => "number" === typeof elem)) && (null === input.interrupts || undefined === input.interrupts || Array.isArray(input.interrupts) && input.interrupts.every(elem => "number" === typeof elem)) && (null === input.contextSwitches || "number" === typeof input.contextSwitches) && (null === input.bootTime || "number" === typeof input.bootTime) && (null === input.processes || "number" === typeof input.processes) && (null === input.running || "number" === typeof input.running) && (null === input.blocked || "number" === typeof input.blocked) && true && true && "number" === typeof input.timestamp && (null === input.total || "number" === typeof input.total) && (null === input.idle || "number" === typeof input.idle) && (null === input.active || "number" === typeof input.active) && (null === input.utilization || "number" === typeof input.utilization); const _io2 = input => Object.keys(input).every(key => {
1041
+ const value = input[key];
1042
+ if (undefined === value)
1043
+ return true;
1044
+ return null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
1045
+ }); const _io3 = input => (undefined === input.normal || Array.isArray(input.normal) && input.normal.every(elem => "number" === typeof elem)) && (undefined === input.high || Array.isArray(input.high) && input.high.every(elem => "number" === typeof elem)) && "number" === typeof input.timestamp; const _io4 = input => Object.keys(input).every(key => {
1046
+ const value = input[key];
1047
+ if (undefined === value)
1048
+ return true;
1049
+ return null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
1050
+ }); const _io5 = input => "object" === typeof input.softnet && null !== input.softnet && _io6(input.softnet) && ("object" === typeof input.sockstat && null !== input.sockstat && _io8(input.sockstat)) && (Array.isArray(input.bonding) && input.bonding.every(elem => "object" === typeof elem && null !== elem && _io10(elem))) && (Array.isArray(input.eth) && input.eth.every(elem => "object" === typeof elem && null !== elem && _io11(elem))); const _io6 = input => "number" === typeof input.timestamp && (undefined === input.squeezed || "number" === typeof input.squeezed) && (undefined === input.squeezedDay || "number" === typeof input.squeezedDay) && (undefined === input.squeezedHour || "number" === typeof input.squeezedHour) && (undefined === input.processed || "number" === typeof input.processed) && (undefined === input.processedDay || "number" === typeof input.processedDay) && (undefined === input.processedHour || "number" === typeof input.processedHour) && (undefined === input.processedMinute || "number" === typeof input.processedMinute) && (Array.isArray(input.cpus) && input.cpus.every(elem => "object" === typeof elem && null !== elem && _io7(elem))); const _io7 = input => "number" === typeof input.cpu && (undefined === input.processed || "number" === typeof input.processed) && (undefined === input.dropped || "number" === typeof input.dropped) && (undefined === input.squeezed || "number" === typeof input.squeezed); const _io8 = input => "number" === typeof input.timestamp && (undefined === input.sockets || "object" === typeof input.sockets && null !== input.sockets && false === Array.isArray(input.sockets) && _io9(input.sockets)) && (undefined === input.tcp || "object" === typeof input.tcp && null !== input.tcp && false === Array.isArray(input.tcp) && _io9(input.tcp)) && (undefined === input.udp || "object" === typeof input.udp && null !== input.udp && false === Array.isArray(input.udp) && _io9(input.udp)) && (undefined === input.udplite || "object" === typeof input.udplite && null !== input.udplite && false === Array.isArray(input.udplite) && _io9(input.udplite)) && (undefined === input.raw || "object" === typeof input.raw && null !== input.raw && false === Array.isArray(input.raw) && _io9(input.raw)) && (undefined === input.frag || "object" === typeof input.frag && null !== input.frag && false === Array.isArray(input.frag) && _io9(input.frag)); const _io9 = input => Object.keys(input).every(key => {
1051
+ const value = input[key];
1052
+ if (undefined === value)
1053
+ return true;
1054
+ return true;
1055
+ }); const _io10 = input => "string" === typeof input.name && (undefined === input.timestamp || "number" === typeof input.timestamp) && (undefined === input.rxBytes || "number" === typeof input.rxBytes) && (undefined === input.rxBytesOrigin || "number" === typeof input.rxBytesOrigin) && (undefined === input.rxBytesSec || "number" === typeof input.rxBytesSec) && (undefined === input.rxBytesValue || "number" === typeof input.rxBytesValue) && (undefined === input.rxDropped || "number" === typeof input.rxDropped) && (undefined === input.rxDroppedOrigin || "number" === typeof input.rxDroppedOrigin) && (undefined === input.rxDroppedSec || "number" === typeof input.rxDroppedSec) && (undefined === input.rxDroppedValue || "number" === typeof input.rxDroppedValue) && (undefined === input.rxErrors || "number" === typeof input.rxErrors) && (undefined === input.rxErrorsOrigin || "number" === typeof input.rxErrorsOrigin) && (undefined === input.rxErrorsSec || "number" === typeof input.rxErrorsSec) && (undefined === input.rxErrorsValue || "number" === typeof input.rxErrorsValue) && (undefined === input.rxPackets || "number" === typeof input.rxPackets) && (undefined === input.rxPacketsOrigin || "number" === typeof input.rxPacketsOrigin) && (undefined === input.rxPacketsSec || "number" === typeof input.rxPacketsSec) && (undefined === input.rxPacketsValue || "number" === typeof input.rxPacketsValue) && (undefined === input.txBytes || "number" === typeof input.txBytes) && (undefined === input.txBytesOrigin || "number" === typeof input.txBytesOrigin) && (undefined === input.txBytesSec || "number" === typeof input.txBytesSec) && (undefined === input.txBytesValue || "number" === typeof input.txBytesValue) && (undefined === input.txDropped || "number" === typeof input.txDropped) && (undefined === input.txDroppedOrigin || "number" === typeof input.txDroppedOrigin) && (undefined === input.txDroppedSec || "number" === typeof input.txDroppedSec) && (undefined === input.txDroppedValue || "number" === typeof input.txDroppedValue) && (undefined === input.txErrors || "number" === typeof input.txErrors) && (undefined === input.txErrorsOrigin || "number" === typeof input.txErrorsOrigin) && (undefined === input.txErrorsSec || "number" === typeof input.txErrorsSec) && (undefined === input.txErrorsValue || "number" === typeof input.txErrorsValue) && (Array.isArray(input.slaves) && input.slaves.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
1056
+ if (["name", "timestamp", "rxBytes", "rxBytesOrigin", "rxBytesSec", "rxBytesValue", "rxDropped", "rxDroppedOrigin", "rxDroppedSec", "rxDroppedValue", "rxErrors", "rxErrorsOrigin", "rxErrorsSec", "rxErrorsValue", "rxPackets", "rxPacketsOrigin", "rxPacketsSec", "rxPacketsValue", "txBytes", "txBytesOrigin", "txBytesSec", "txBytesValue", "txDropped", "txDroppedOrigin", "txDroppedSec", "txDroppedValue", "txErrors", "txErrorsOrigin", "txErrorsSec", "txErrorsValue", "slaves"].some(prop => key === prop))
1057
+ return true;
1058
+ const value = input[key];
1059
+ if (undefined === value)
1060
+ return true;
1061
+ return true;
1062
+ }); const _io11 = input => "string" === typeof input.name && (undefined === input.timestamp || "number" === typeof input.timestamp) && (undefined === input.rxBytes || "number" === typeof input.rxBytes) && (undefined === input.rxBytesOrigin || "number" === typeof input.rxBytesOrigin) && (undefined === input.rxBytesSec || "number" === typeof input.rxBytesSec) && (undefined === input.rxBytesValue || "number" === typeof input.rxBytesValue) && (undefined === input.rxDropped || "number" === typeof input.rxDropped) && (undefined === input.rxDroppedOrigin || "number" === typeof input.rxDroppedOrigin) && (undefined === input.rxDroppedSec || "number" === typeof input.rxDroppedSec) && (undefined === input.rxDroppedValue || "number" === typeof input.rxDroppedValue) && (undefined === input.rxErrors || "number" === typeof input.rxErrors) && (undefined === input.rxErrorsOrigin || "number" === typeof input.rxErrorsOrigin) && (undefined === input.rxErrorsSec || "number" === typeof input.rxErrorsSec) && (undefined === input.rxErrorsValue || "number" === typeof input.rxErrorsValue) && (undefined === input.rxPackets || "number" === typeof input.rxPackets) && (undefined === input.rxPacketsOrigin || "number" === typeof input.rxPacketsOrigin) && (undefined === input.rxPacketsSec || "number" === typeof input.rxPacketsSec) && (undefined === input.rxPacketsValue || "number" === typeof input.rxPacketsValue) && (undefined === input.txBytes || "number" === typeof input.txBytes) && (undefined === input.txBytesOrigin || "number" === typeof input.txBytesOrigin) && (undefined === input.txBytesSec || "number" === typeof input.txBytesSec) && (undefined === input.txBytesValue || "number" === typeof input.txBytesValue) && (undefined === input.txDropped || "number" === typeof input.txDropped) && (undefined === input.txDroppedOrigin || "number" === typeof input.txDroppedOrigin) && (undefined === input.txDroppedSec || "number" === typeof input.txDroppedSec) && (undefined === input.txDroppedValue || "number" === typeof input.txDroppedValue) && (undefined === input.txErrors || "number" === typeof input.txErrors) && (undefined === input.txErrorsOrigin || "number" === typeof input.txErrorsOrigin) && (undefined === input.txErrorsSec || "number" === typeof input.txErrorsSec) && (undefined === input.txErrorsValue || "number" === typeof input.txErrorsValue) && (undefined === input.speed || "number" === typeof input.speed) && (undefined === input.rxUnicastBytes || "number" === typeof input.rxUnicastBytes) && (undefined === input.rxMulticastBytes || "number" === typeof input.rxMulticastBytes) && (undefined === input.rxBroadcastBytes || "number" === typeof input.rxBroadcastBytes) && Object.keys(input).every(key => {
1063
+ if (["name", "timestamp", "rxBytes", "rxBytesOrigin", "rxBytesSec", "rxBytesValue", "rxDropped", "rxDroppedOrigin", "rxDroppedSec", "rxDroppedValue", "rxErrors", "rxErrorsOrigin", "rxErrorsSec", "rxErrorsValue", "rxPackets", "rxPacketsOrigin", "rxPacketsSec", "rxPacketsValue", "txBytes", "txBytesOrigin", "txBytesSec", "txBytesValue", "txDropped", "txDroppedOrigin", "txDroppedSec", "txDroppedValue", "txErrors", "txErrorsOrigin", "txErrorsSec", "txErrorsValue", "speed", "rxUnicastBytes", "rxMulticastBytes", "rxBroadcastBytes"].some(prop => key === prop))
1064
+ return true;
1065
+ const value = input[key];
1066
+ if (undefined === value)
1067
+ return true;
1068
+ return true;
1069
+ }); const _io12 = input => "number" === typeof input.used && "number" === typeof input.available && "number" === typeof input.timestamp; return input => _so0(input); })()(input);
1070
+ }
1071
+ case ":panel": {
1072
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.supports ? "" : `"supports":${undefined !== input.supports ? (() => {
1073
+ if ("string" === typeof input.supports)
1074
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.supports);
1075
+ if (Array.isArray(input.supports))
1076
+ return `[${input.supports.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
1077
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1078
+ method: "typia.json.stringify",
1079
+ expected: "(Array<string> | string | undefined)",
1080
+ value: input.supports
1081
+ });
1082
+ })() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? input.priority : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? input.editorPriority : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so4(input.layout) : undefined},`}${undefined === input.filter ? "" : `"filter":${undefined !== input.filter ? (() => {
1083
+ if ("string" === typeof input.filter)
1084
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.filter);
1085
+ if ("object" === typeof input.filter && null !== input.filter)
1086
+ return _so8(input.filter);
1087
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1088
+ method: "typia.json.stringify",
1089
+ expected: "(__type.o3 | string | undefined)",
1090
+ value: input.filter
1091
+ });
1092
+ })() : undefined},`}${undefined === input.expand ? "" : `"expand":${undefined !== input.expand ? (() => {
1093
+ if ("string" === typeof input.expand)
1094
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.expand);
1095
+ if ("object" === typeof input.expand && null !== input.expand)
1096
+ return _so8(input.expand);
1097
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1098
+ method: "typia.json.stringify",
1099
+ expected: "(__type.o3 | string | undefined)",
1100
+ value: input.expand
1101
+ });
1102
+ })() : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1103
+ return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.computed || "function" === typeof input.computed ? "" : `"computed":${undefined !== input.computed ? JSON.stringify(input.computed) : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? _so3(input.index) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so3 = input => `{"label":${__typia_transform__jsonStringifyString._jsonStringifyString(input.label)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
1104
+ if ("string" === typeof input.panel)
1105
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.panel);
1106
+ if (Array.isArray(input.panel))
1107
+ return _sa0(input.panel);
1108
+ if ("object" === typeof input.panel && null !== input.panel)
1109
+ return _su0(input.panel);
1110
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1111
+ method: "typia.json.stringify",
1112
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1113
+ value: input.panel
1114
+ });
1115
+ })() : undefined},`}${undefined === input.editor ? "" : `"editor":${undefined !== input.editor ? (() => {
1116
+ if ("string" === typeof input.editor)
1117
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.editor);
1118
+ if (Array.isArray(input.editor))
1119
+ return _sa0(input.editor);
1120
+ if ("object" === typeof input.editor && null !== input.editor)
1121
+ return _su0(input.editor);
1122
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1123
+ method: "typia.json.stringify",
1124
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1125
+ value: input.editor
1126
+ });
1127
+ })() : undefined}`}`)}}`; const _so5 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so6 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
1128
+ if ("string" === typeof input.width)
1129
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.width);
1130
+ if ("number" === typeof input.width)
1131
+ return input.width;
1132
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1133
+ method: "typia.json.stringify",
1134
+ expected: "(number | string | undefined)",
1135
+ value: input.width
1136
+ });
1137
+ })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
1138
+ if ("string" === typeof input.widget)
1139
+ return "\"" + input.widget + "\"";
1140
+ if ("object" === typeof input.widget && null !== input.widget)
1141
+ return _so7(input.widget);
1142
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1143
+ method: "typia.json.stringify",
1144
+ expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1145
+ value: input.widget
1146
+ });
1147
+ })() : undefined},`}"property":${__typia_transform__jsonStringifyString._jsonStringifyString(input.property)}}`; const _so7 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so8 = input => `{"__context":${_so9(input.__context)},"__returnValue":${__typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue)}}`; const _so9 = input => "{}"; const _su0 = input => (() => {
1148
+ if (undefined !== input.type)
1149
+ return _so5(input);
1150
+ else if (undefined !== input.property)
1151
+ return _so6(input);
1152
+ else
1153
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1154
+ method: "typia.json.stringify",
1155
+ expected: "(PanelLayoutDivider | PanelLayoutItem)",
1156
+ value: input
1157
+ });
1158
+ })(); const _sa0 = input => `[${input.map(elem => (() => {
1159
+ if ("string" === typeof elem)
1160
+ return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
1161
+ if (Array.isArray(elem))
1162
+ return _sa0(elem);
1163
+ if ("object" === typeof elem && null !== elem)
1164
+ return _su0(elem);
1165
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1166
+ method: "typia.json.stringify",
1167
+ expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1168
+ value: elem
1169
+ });
1170
+ })()).join(",")}]`; const _io1 = input => Object.keys(input).every(key => {
1171
+ const value = input[key];
1172
+ if (undefined === value)
1173
+ return true;
1174
+ return "object" === typeof value && null !== value && _io2(value);
1175
+ }); const _io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf)); const _io3 = input => "string" === typeof input.label && "string" === typeof input.path; const _io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && (_ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && _iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && (_ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && _iu0(input.editor)))); const _io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title); const _io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && _io7(input.widget))); const _io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly); const _io8 = input => "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && _io9(input.__context) && "string" === typeof input.__returnValue; const _io9 = input => true; const _iu0 = input => (() => {
1176
+ if (undefined !== input.type)
1177
+ return _io5(input);
1178
+ else if (undefined !== input.property)
1179
+ return _io6(input);
1180
+ else
1181
+ return false;
1182
+ })(); const _ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && (_ia0(elem) || false) || "object" === typeof elem && null !== elem && _iu0(elem)))); return input => _so0(input); })()(input);
1183
+ }
1184
+ case ":permission?": {
1185
+ return (() => { const _so0 = input => `{"permissions":${`[${input.permissions.map(elem => _su0(elem)).join(",")}]`}}`; const _so1 = input => `{"type":${"\"" + input.type + "\""},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; const _so2 = input => `{"type":${"\"" + input.type + "\""},"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _so3 = input => `{"type":${"\"" + input.type + "\""},"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _su0 = input => (() => {
1186
+ if ("rpc" === input.type)
1187
+ return _so3(input);
1188
+ else if ("asset" === input.type)
1189
+ return _so2(input);
1190
+ else if ("tag" === input.type)
1191
+ return _so1(input);
1192
+ else
1193
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1194
+ method: "typia.json.stringify",
1195
+ expected: "(RpcPermission | AssetPermission | TagPermission)",
1196
+ value: input
1197
+ });
1198
+ })(); const _io1 = input => "tag" === input.type && (null !== input.method && undefined === input.method) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)); const _io2 = input => "asset" === input.type && "string" === typeof input.method && (null !== input.tags && undefined === input.tags); const _io3 = input => "rpc" === input.type && "string" === typeof input.method && (null !== input.tags && undefined === input.tags); const _iu0 = input => (() => {
1199
+ if ("rpc" === input.type)
1200
+ return _io3(input);
1201
+ else if ("asset" === input.type)
1202
+ return _io2(input);
1203
+ else if ("tag" === input.type)
1204
+ return _io1(input);
1205
+ else
1206
+ return false;
1207
+ })(); return input => _so0(input); })()(input);
1208
+ }
1209
+ case ":permission": {
1210
+ return (() => { const _so0 = input => `{"type":${"\"" + input.type + "\""},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; const _so1 = input => `{"type":${"\"" + input.type + "\""},"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _so2 = input => `{"type":${"\"" + input.type + "\""},"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _su0 = input => (() => {
1211
+ if ("rpc" === input.type)
1212
+ return _so2(input);
1213
+ else if ("asset" === input.type)
1214
+ return _so1(input);
1215
+ else if ("tag" === input.type)
1216
+ return _so0(input);
1217
+ else
1218
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1219
+ method: "typia.json.stringify",
1220
+ expected: "(RpcPermission | AssetPermission | TagPermission)",
1221
+ value: input
1222
+ });
1223
+ })(); const _io0 = input => "tag" === input.type && (null !== input.method && undefined === input.method) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)); const _io1 = input => "asset" === input.type && "string" === typeof input.method && (null !== input.tags && undefined === input.tags); const _io2 = input => "rpc" === input.type && "string" === typeof input.method && (null !== input.tags && undefined === input.tags); return input => _su0(input); })()(input);
1224
+ }
1225
+ case ":pipeline-preset": {
1226
+ return (() => { const _iv3 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? "\"" + input.sortMode + "\"" : undefined}`}`)}}`; return input => _so0(input); })()(input);
1227
+ }
1228
+ case ":pipeline": {
1229
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.dummy ? "" : `"dummy":${undefined !== input.dummy ? input.dummy : undefined},`}${undefined === input.assetType ? "" : `"assetType":${undefined !== input.assetType ? "\"" + input.assetType + "\"" : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.bookmarkId ? "" : `"bookmarkId":${undefined !== input.bookmarkId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bookmarkId) : undefined},`}${undefined === input.hiddenCreateMenuItems ? "" : `"hiddenCreateMenuItems":${undefined !== input.hiddenCreateMenuItems ? _so1(input.hiddenCreateMenuItems) : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1230
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => Object.keys(input).every(key => {
1231
+ const value = input[key];
1232
+ if (undefined === value)
1233
+ return true;
1234
+ return true;
1235
+ }); return input => _so0(input); })()(input);
1236
+ }
1237
+ case ":pipeline.items": {
1238
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1239
+ }
1240
+ case ":planning": {
1241
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.deadline ? "" : `"deadline":${undefined !== input.deadline ? null !== input.deadline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.deadline) : "null" : undefined}`}`)}}`; return input => _so0(input); })()(input);
1242
+ }
1243
+ case ":planning.assignees": {
1244
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1245
+ }
1246
+ case ":planning.deadline": {
1247
+ return (() => { const _so0 = input => `{"value":${null !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : "null"}}`; return input => _so0(input); })()(input);
1248
+ }
1249
+ case ":prompter": {
1250
+ return (() => { const _so0 = input => `{${undefined === input.fontFamily ? "" : `"fontFamily":${undefined !== input.fontFamily ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontFamily) : undefined},`}${undefined === input.fontFamilies ? "" : `"fontFamilies":${undefined !== input.fontFamilies ? `[${input.fontFamilies.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.genericFontFamily ? "" : `"genericFontFamily":${undefined !== input.genericFontFamily ? __typia_transform__jsonStringifyString._jsonStringifyString(input.genericFontFamily) : undefined},`}${undefined === input.dummy ? "" : `"dummy":${undefined !== input.dummy ? input.dummy : undefined},`}${undefined === input.showInfo ? "" : `"showInfo":${undefined !== input.showInfo ? input.showInfo : undefined},`}"asset":${__typia_transform__jsonStringifyString._jsonStringifyString(input.asset)},"primaryColor":${__typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColor)},"secondaryColor":${__typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColor)},"backgroundColor":${__typia_transform__jsonStringifyString._jsonStringifyString(input.backgroundColor)},"fontSize":${input.fontSize},"lineHeight":${input.lineHeight},"markerPosition":${input.markerPosition},"padding":${input.padding}}`; return input => _so0(input); })()(input);
1251
+ }
1252
+ case ":publish": {
1253
+ return (() => { const _so0 = input => `{${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so1(input.draft) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so3(input.render) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so17(input.published) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so17(input.remote) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so18(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so19(elem)).join(",")}]` : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.snippet ? "" : `"snippet":${undefined !== input.snippet ? _so2(input.snippet) : undefined}`}`)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined}`}`)}}`; const _so3 = input => `{${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so4(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so12(input.profile) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? _so5(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? _so6(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? _so9(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so11(input.transcribe) : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : "null" : undefined}`}`)}}`; const _so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1254
+ return ""; return `${JSON.stringify(key)}:${_so7(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? _so8(input.styleOverrides) : undefined}`}`)}}`; const _so8 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? __typia_transform__jsonStringifyString._jsonStringifyString(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? __typia_transform__jsonStringifyString._jsonStringifyString(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined}`}`)}}`; const _so9 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? _so10(input.crop) : undefined}`}`)}}`; const _so10 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`; const _so11 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`; const _so12 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so13(input.transcribe) : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so14(input.translate) : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? _so15(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
1255
+ if ("string" === typeof input.subtitle)
1256
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle);
1257
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1258
+ return _so16(input.subtitle);
1259
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1260
+ method: "typia.json.stringify",
1261
+ expected: "(SubtitleProfile | string | undefined)",
1262
+ value: input.subtitle
1263
+ });
1264
+ })() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so13 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so14 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so15 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined}`}`)}}`; const _so16 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined}`}`)}}`; const _so17 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1265
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so18 = input => `{"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _so19 = input => `{"level":${input.level},"code":${__typia_transform__jsonStringifyString._jsonStringifyString(input.code)},"msg":${__typia_transform__jsonStringifyString._jsonStringifyString(input.msg)}}`; const _so20 = input => `{${undefined === input.pageId ? "" : `"pageId":${undefined !== input.pageId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pageId) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so3(input.render) : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so17(input.draft) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so17(input.published) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so17(input.remote) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so18(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so19(elem)).join(",")}]` : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so21 = input => `{${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so22(input.renders) : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so26(input.draft) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so27(input.remote) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so30(input.published) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so3(input.render) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so18(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so19(elem)).join(",")}]` : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so22 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1266
+ return ""; return `${JSON.stringify(key)}:${(() => {
1267
+ if ("string" === typeof value)
1268
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
1269
+ if ("object" === typeof value && null !== value)
1270
+ return _su0(value);
1271
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1272
+ method: "typia.json.stringify",
1273
+ expected: "(ResolvedFilePublishRender | __type.o12 | string)",
1274
+ value: value
1275
+ });
1276
+ })()}`; }).filter(str => "" !== str).join(",")}}`; const _so23 = input => `{${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.collisionStrategy ? "" : `"collisionStrategy":${undefined !== input.collisionStrategy ? "\"" + input.collisionStrategy + "\"" : undefined},`}${undefined === input.ignoreEmptyScene ? "" : `"ignoreEmptyScene":${undefined !== input.ignoreEmptyScene ? input.ignoreEmptyScene : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so4(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so12(input.profile) : undefined},`}"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so24 = input => `{"__context":${_so25(input.__context)},"__returnValue":${_so23(input.__returnValue)}}`; const _so25 = input => `{"publish":${_so21(input.publish)},"directory":${__typia_transform__jsonStringifyString._jsonStringifyString(input.directory)},"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)}}`; const _so26 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1277
+ return ""; if (["directory", "filename"].some(regular => regular === key))
1278
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so27 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so28(input.renders) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1279
+ return ""; if (["directory", "filename", "renders"].some(regular => regular === key))
1280
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so28 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1281
+ return ""; return `${JSON.stringify(key)}:${_so29(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so29 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so19(elem)).join(",")}]` : undefined},`}${undefined === input.query || "function" === typeof input.query ? "" : `"query":${undefined !== input.query ? JSON.stringify(input.query) : undefined},`}${undefined === input.size ? "" : `"size":${undefined !== input.size ? input.size : undefined},`}${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : undefined},`}${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined}`}`)}}`; const _so30 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1282
+ return ""; if (["directory", "filename"].some(regular => regular === key))
1283
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so31 = input => `{${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so26(input.draft) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so32(input.remote) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so30(input.published) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so3(input.render) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so18(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so19(elem)).join(",")}]` : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so32 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? _so33(input.subtitle) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so34(input.metafile) : undefined},`}"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1284
+ return ""; if (["id", "directory", "subtitle", "metafile", "path", "filename"].some(regular => regular === key))
1285
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so33 = input => `{"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so34 = input => `{"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _su0 = input => (() => {
1286
+ if (undefined !== input.path)
1287
+ return _so23(input);
1288
+ else if (undefined !== input.__context)
1289
+ return _so24(input);
1290
+ else
1291
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1292
+ method: "typia.json.stringify",
1293
+ expected: "(ResolvedFilePublishRender | __type.o12)",
1294
+ value: input
1295
+ });
1296
+ })(); const _su1 = input => (() => {
1297
+ if ("youtube" === input.type)
1298
+ return _so0(input);
1299
+ else if ("facebook" === input.type)
1300
+ return _so20(input);
1301
+ else
1302
+ return (() => {
1303
+ if (_io31(input))
1304
+ return _so31(input);
1305
+ if (_io21(input))
1306
+ return _so21(input);
1307
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1308
+ method: "typia.json.stringify",
1309
+ expected: "(FilePublishRecordLegacy | FilePublishRecord)",
1310
+ value: input
1311
+ });
1312
+ })();
1313
+ })(); const _io0 = input => (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io1(input.draft)) && "youtube" === input.type && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && _io17(input.published)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io17(input.remote)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io18(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io19(elem))); const _io1 = input => undefined === input.snippet || "object" === typeof input.snippet && null !== input.snippet && false === Array.isArray(input.snippet) && _io2(input.snippet); const _io2 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description); const _io3 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io4(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io12(input.profile)); const _io4 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io5(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io6(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io9(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io11(input.transcribe)); const _io5 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io6 = input => Object.keys(input).every(key => {
1314
+ const value = input[key];
1315
+ if (undefined === value)
1316
+ return true;
1317
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io7(value);
1318
+ }); const _io7 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io8(input.styleOverrides)); const _io8 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io9 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io10(input.crop); const _io10 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io11 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io12 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io13(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io14(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io15(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io16(input.subtitle))); const _io13 = input => "string" === typeof input.engine; const _io14 = input => "string" === typeof input.language; const _io15 = input => undefined === input.pan || "string" === typeof input.pan; const _io16 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); const _io17 = input => Object.keys(input).every(key => {
1319
+ const value = input[key];
1320
+ if (undefined === value)
1321
+ return true;
1322
+ return true;
1323
+ }); const _io18 = input => "string" === typeof input.method; const _io19 = input => "number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg; const _io20 = input => (undefined === input.pageId || "string" === typeof input.pageId) && "facebook" === input.type && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io17(input.draft)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && _io17(input.published)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io17(input.remote)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io18(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io19(elem))); const _io21 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io22(input.renders)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io26(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io27(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io30(input.published)) && "file" === input.type && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io18(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io19(elem))); const _io22 = input => Object.keys(input).every(key => {
1324
+ const value = input[key];
1325
+ if (undefined === value)
1326
+ return true;
1327
+ return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _iu0(value));
1328
+ }); const _io23 = input => (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.name || "string" === typeof input.name) && "string" === typeof input.path && (undefined === input.collisionStrategy || "overwrite" === input.collisionStrategy || "skip" === input.collisionStrategy) && (undefined === input.ignoreEmptyScene || "boolean" === typeof input.ignoreEmptyScene) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io4(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io12(input.profile)); const _io24 = input => "object" === typeof input.__context && null !== input.__context && _io25(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && _io23(input.__returnValue)); const _io25 = input => "object" === typeof input.publish && null !== input.publish && _io21(input.publish) && "string" === typeof input.directory && "string" === typeof input.name; const _io26 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && Object.keys(input).every(key => {
1329
+ if (["directory", "filename"].some(prop => key === prop))
1330
+ return true;
1331
+ const value = input[key];
1332
+ if (undefined === value)
1333
+ return true;
1334
+ return true;
1335
+ }); const _io27 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io28(input.renders)) && Object.keys(input).every(key => {
1336
+ if (["directory", "filename", "renders"].some(prop => key === prop))
1337
+ return true;
1338
+ const value = input[key];
1339
+ if (undefined === value)
1340
+ return true;
1341
+ return true;
1342
+ }); const _io28 = input => Object.keys(input).every(key => {
1343
+ const value = input[key];
1344
+ if (undefined === value)
1345
+ return true;
1346
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io29(value);
1347
+ }); const _io29 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && true && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash) && (undefined === input.source || "string" === typeof input.source); const _io30 = input => (undefined === input.directory || "string" === typeof input.directory) && "string" === typeof input.filename && Object.keys(input).every(key => {
1348
+ if (["directory", "filename"].some(prop => key === prop))
1349
+ return true;
1350
+ const value = input[key];
1351
+ if (undefined === value)
1352
+ return true;
1353
+ return true;
1354
+ }); const _io31 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io26(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && _io32(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io30(input.published)) && (null !== input.renders && undefined === input.renders) && "file" === input.type && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io18(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io19(elem))); const _io32 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.path && "string" === typeof input.filename && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && _io33(input.subtitle)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io34(input.metafile)) && Object.keys(input).every(key => {
1355
+ if (["id", "path", "filename", "directory", "subtitle", "metafile"].some(prop => key === prop))
1356
+ return true;
1357
+ const value = input[key];
1358
+ if (undefined === value)
1359
+ return true;
1360
+ return true;
1361
+ }); const _io33 = input => "string" === typeof input.path; const _io34 = input => "string" === typeof input.path; const _iu0 = input => (() => {
1362
+ if (undefined !== input.path)
1363
+ return _io23(input);
1364
+ else if (undefined !== input.__context)
1365
+ return _io24(input);
1366
+ else
1367
+ return false;
1368
+ })(); return input => _su1(input); })()(input);
1369
+ }
1370
+ case ":publish.stats?": {
1371
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.retrieved ? "" : `"retrieved":${undefined !== input.retrieved ? _so2(input.retrieved) : undefined},`}${undefined === input.defaults ? "" : `"defaults":${undefined !== input.defaults ? _so2(input.defaults) : undefined}`}`)}}`; const _so1 = input => `{"level":${input.level},"code":${__typia_transform__jsonStringifyString._jsonStringifyString(input.code)},"msg":${__typia_transform__jsonStringifyString._jsonStringifyString(input.msg)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1372
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.retrieved ? "" : `"retrieved":${undefined !== input.retrieved ? _so2(input.retrieved) : undefined},`}${undefined === input.defaults ? "" : `"defaults":${undefined !== input.defaults ? _so2(input.defaults) : undefined}`}`)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.retrieved ? "" : `"retrieved":${undefined !== input.retrieved ? _so5(input.retrieved) : undefined},`}${undefined === input.defaults ? "" : `"defaults":${undefined !== input.defaults ? _so8(input.defaults) : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so6(input.renders) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1373
+ return ""; if (["filename", "directory", "renders"].some(regular => regular === key))
1374
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1375
+ return ""; return `${JSON.stringify(key)}:${_so7(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so7 = input => `{${undefined === input.size ? "" : `"size":${undefined !== input.size ? input.size : undefined},`}${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : undefined},`}"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so8 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`"directory":${__typia_transform__jsonStringifyString._jsonStringifyString(input.directory)},"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)},"renders":${_so9(input.renders)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1376
+ return ""; if (["directory", "filename", "renders"].some(regular => regular === key))
1377
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so9 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1378
+ return ""; return `${JSON.stringify(key)}:${(() => {
1379
+ if ("string" === typeof value)
1380
+ return __typia_transform__jsonStringifyString._jsonStringifyString(value);
1381
+ if ("object" === typeof value && null !== value)
1382
+ return _su0(value);
1383
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1384
+ method: "typia.json.stringify",
1385
+ expected: "(ResolvedFilePublishRender | __type.o9 | string)",
1386
+ value: value
1387
+ });
1388
+ })()}`; }).filter(str => "" !== str).join(",")}}`; const _so10 = input => `{${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.collisionStrategy ? "" : `"collisionStrategy":${undefined !== input.collisionStrategy ? "\"" + input.collisionStrategy + "\"" : undefined},`}${undefined === input.ignoreEmptyScene ? "" : `"ignoreEmptyScene":${undefined !== input.ignoreEmptyScene ? input.ignoreEmptyScene : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so11(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so19(input.profile) : undefined},`}"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so11 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? _so12(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? _so13(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? _so16(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so18(input.transcribe) : undefined}`}`)}}`; const _so12 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : "null" : undefined}`}`)}}`; const _so13 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1389
+ return ""; return `${JSON.stringify(key)}:${_so14(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so14 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? _so15(input.styleOverrides) : undefined}`}`)}}`; const _so15 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? __typia_transform__jsonStringifyString._jsonStringifyString(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? __typia_transform__jsonStringifyString._jsonStringifyString(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined}`}`)}}`; const _so16 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? _so17(input.crop) : undefined}`}`)}}`; const _so17 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`; const _so18 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`; const _so19 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so20(input.transcribe) : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so21(input.translate) : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? _so22(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
1390
+ if ("string" === typeof input.subtitle)
1391
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle);
1392
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1393
+ return _so23(input.subtitle);
1394
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1395
+ method: "typia.json.stringify",
1396
+ expected: "(SubtitleProfile | string | undefined)",
1397
+ value: input.subtitle
1398
+ });
1399
+ })() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so20 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so21 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so22 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined}`}`)}}`; const _so23 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined}`}`)}}`; const _so24 = input => `{"__context":${_so25(input.__context)},"__returnValue":${_so10(input.__returnValue)}}`; const _so25 = input => `{"publish":${_so26(input.publish)},"directory":${__typia_transform__jsonStringifyString._jsonStringifyString(input.directory)},"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)}}`; const _so26 = input => `{${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so9(input.renders) : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so27(input.draft) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so28(input.remote) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so31(input.published) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so32(input.render) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so33(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so27 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1400
+ return ""; if (["directory", "filename"].some(regular => regular === key))
1401
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so28 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so29(input.renders) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1402
+ return ""; if (["directory", "filename", "renders"].some(regular => regular === key))
1403
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so29 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1404
+ return ""; return `${JSON.stringify(key)}:${_so30(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so30 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.query || "function" === typeof input.query ? "" : `"query":${undefined !== input.query ? JSON.stringify(input.query) : undefined},`}${undefined === input.size ? "" : `"size":${undefined !== input.size ? input.size : undefined},`}${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : undefined},`}${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined}`}`)}}`; const _so31 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1405
+ return ""; if (["directory", "filename"].some(regular => regular === key))
1406
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so32 = input => `{${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so11(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so19(input.profile) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so33 = input => `{"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _su0 = input => (() => {
1407
+ if (undefined !== input.path)
1408
+ return _so10(input);
1409
+ else if (undefined !== input.__context)
1410
+ return _so24(input);
1411
+ else
1412
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1413
+ method: "typia.json.stringify",
1414
+ expected: "(ResolvedFilePublishRender | __type.o9)",
1415
+ value: input
1416
+ });
1417
+ })(); const _su1 = input => (() => {
1418
+ if (_io4(input))
1419
+ return _so4(input);
1420
+ if (_io3(input))
1421
+ return _so3(input);
1422
+ if (_io0(input))
1423
+ return _so0(input);
1424
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1425
+ method: "typia.json.stringify",
1426
+ expected: "(FilePublishStatsRecord | FacebookPublishStatsRecord | YoutubePublishStatsRecord)",
1427
+ value: input
1428
+ });
1429
+ })(); const _io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.retrieved || "object" === typeof input.retrieved && null !== input.retrieved && false === Array.isArray(input.retrieved) && _io2(input.retrieved)) && (undefined === input.defaults || "object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) && _io2(input.defaults)); const _io1 = input => "number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg; const _io2 = input => Object.keys(input).every(key => {
1430
+ const value = input[key];
1431
+ if (undefined === value)
1432
+ return true;
1433
+ return true;
1434
+ }); const _io3 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (undefined === input.retrieved || "object" === typeof input.retrieved && null !== input.retrieved && false === Array.isArray(input.retrieved) && _io2(input.retrieved)) && (undefined === input.defaults || "object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) && _io2(input.defaults)); const _io4 = input => (undefined === input.retrieved || "object" === typeof input.retrieved && null !== input.retrieved && false === Array.isArray(input.retrieved) && _io5(input.retrieved)) && (undefined === input.defaults || "object" === typeof input.defaults && null !== input.defaults && _io8(input.defaults)) && (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io5 = input => (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io6(input.renders)) && Object.keys(input).every(key => {
1435
+ if (["filename", "directory", "renders"].some(prop => key === prop))
1436
+ return true;
1437
+ const value = input[key];
1438
+ if (undefined === value)
1439
+ return true;
1440
+ return true;
1441
+ }); const _io6 = input => Object.keys(input).every(key => {
1442
+ const value = input[key];
1443
+ if (undefined === value)
1444
+ return true;
1445
+ return "object" === typeof value && null !== value && _io7(value);
1446
+ }); const _io7 = input => "string" === typeof input.path && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash); const _io8 = input => "string" === typeof input.directory && "string" === typeof input.filename && ("object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io9(input.renders)) && Object.keys(input).every(key => {
1447
+ if (["directory", "filename", "renders"].some(prop => key === prop))
1448
+ return true;
1449
+ const value = input[key];
1450
+ if (undefined === value)
1451
+ return true;
1452
+ return true;
1453
+ }); const _io9 = input => Object.keys(input).every(key => {
1454
+ const value = input[key];
1455
+ if (undefined === value)
1456
+ return true;
1457
+ return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _iu0(value));
1458
+ }); const _io10 = input => (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.name || "string" === typeof input.name) && "string" === typeof input.path && (undefined === input.collisionStrategy || "overwrite" === input.collisionStrategy || "skip" === input.collisionStrategy) && (undefined === input.ignoreEmptyScene || "boolean" === typeof input.ignoreEmptyScene) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io11(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io19(input.profile)); const _io11 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io12(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io13(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io16(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io18(input.transcribe)); const _io12 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io13 = input => Object.keys(input).every(key => {
1459
+ const value = input[key];
1460
+ if (undefined === value)
1461
+ return true;
1462
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io14(value);
1463
+ }); const _io14 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io15(input.styleOverrides)); const _io15 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io16 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io17(input.crop); const _io17 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io18 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io19 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io20(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io21(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io22(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io23(input.subtitle))); const _io20 = input => "string" === typeof input.engine; const _io21 = input => "string" === typeof input.language; const _io22 = input => undefined === input.pan || "string" === typeof input.pan; const _io23 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); const _io24 = input => "object" === typeof input.__context && null !== input.__context && _io25(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && _io10(input.__returnValue)); const _io25 = input => "object" === typeof input.publish && null !== input.publish && _io26(input.publish) && "string" === typeof input.directory && "string" === typeof input.name; const _io26 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io9(input.renders)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io27(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io28(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io31(input.published)) && "file" === input.type && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io32(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io33(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io27 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && Object.keys(input).every(key => {
1464
+ if (["directory", "filename"].some(prop => key === prop))
1465
+ return true;
1466
+ const value = input[key];
1467
+ if (undefined === value)
1468
+ return true;
1469
+ return true;
1470
+ }); const _io28 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io29(input.renders)) && Object.keys(input).every(key => {
1471
+ if (["directory", "filename", "renders"].some(prop => key === prop))
1472
+ return true;
1473
+ const value = input[key];
1474
+ if (undefined === value)
1475
+ return true;
1476
+ return true;
1477
+ }); const _io29 = input => Object.keys(input).every(key => {
1478
+ const value = input[key];
1479
+ if (undefined === value)
1480
+ return true;
1481
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io30(value);
1482
+ }); const _io30 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash) && (undefined === input.source || "string" === typeof input.source); const _io31 = input => (undefined === input.directory || "string" === typeof input.directory) && "string" === typeof input.filename && Object.keys(input).every(key => {
1483
+ if (["directory", "filename"].some(prop => key === prop))
1484
+ return true;
1485
+ const value = input[key];
1486
+ if (undefined === value)
1487
+ return true;
1488
+ return true;
1489
+ }); const _io32 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io11(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io19(input.profile)); const _io33 = input => "string" === typeof input.method; const _iu0 = input => (() => {
1490
+ if (undefined !== input.path)
1491
+ return _io10(input);
1492
+ else if (undefined !== input.__context)
1493
+ return _io24(input);
1494
+ else
1495
+ return false;
1496
+ })(); return input => _su1(input); })()(input);
1497
+ }
1498
+ case ":publish.methods?": {
1499
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1500
+ return ""; return `${JSON.stringify(key)}:${_so1(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so1 = input => `{"rpcId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.rpcId)},"rpcData":${_so2(input.rpcData)}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1501
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => "string" === typeof input.rpcId && ("object" === typeof input.rpcData && null !== input.rpcData && false === Array.isArray(input.rpcData) && _io2(input.rpcData)); const _io2 = input => Object.keys(input).every(key => {
1502
+ const value = input[key];
1503
+ if (undefined === value)
1504
+ return true;
1505
+ return true;
1506
+ }); return input => _so0(input); })()(input);
1507
+ }
1508
+ case ":publish.accepts": {
1509
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
1510
+ }
1511
+ case ":published": {
1512
+ return (() => { const _so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? __typia_transform__jsonStringifyString._jsonStringifyString(input.user) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? input.error : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"parent":${__typia_transform__jsonStringifyString._jsonStringifyString(input.parent)},"asset":${`[${input.asset.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"time":${input.time},"connection":${__typia_transform__jsonStringifyString._jsonStringifyString(input.connection)}}`; return input => _so0(input); })()(input);
1513
+ }
1514
+ case ":render-preset": {
1515
+ return (() => { const _so0 = input => `{"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"profile":${(() => {
1516
+ if ("string" === typeof input.profile)
1517
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.profile);
1518
+ if (Array.isArray(input.profile))
1519
+ return `[${input.profile.map(elem => (() => {
1520
+ if ("string" === typeof elem)
1521
+ return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
1522
+ if ("object" === typeof elem && null !== elem)
1523
+ return _so1(elem);
1524
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1525
+ method: "typia.json.stringify",
1526
+ expected: "(RenderProfileObject | string)",
1527
+ value: elem
1528
+ });
1529
+ })()).join(",")}]`;
1530
+ if ("object" === typeof input.profile && null !== input.profile)
1531
+ return _so1(input.profile);
1532
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1533
+ method: "typia.json.stringify",
1534
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
1535
+ value: input.profile
1536
+ });
1537
+ })()}}`; const _so1 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so2(input.transcribe) : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so3(input.translate) : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? _so4(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
1538
+ if ("string" === typeof input.subtitle)
1539
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle);
1540
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1541
+ return _so5(input.subtitle);
1542
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1543
+ method: "typia.json.stringify",
1544
+ expected: "(SubtitleProfile | string | undefined)",
1545
+ value: input.subtitle
1546
+ });
1547
+ })() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so2 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so3 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined}`}`)}}`; const _io1 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io2(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io3(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io4(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io5(input.subtitle))); const _io2 = input => "string" === typeof input.engine; const _io3 = input => "string" === typeof input.language; const _io4 = input => undefined === input.pan || "string" === typeof input.pan; const _io5 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); return input => _so0(input); })()(input);
1548
+ }
1549
+ case ":render.stats?": {
1550
+ return (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? null !== input.progress ? input.progress : "null" : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? `[${input.error.map(elem => _so1(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? null !== input.status ? (() => {
1551
+ if ("string" === typeof input.status)
1552
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.status);
1553
+ if (Array.isArray(input.status))
1554
+ return `[${input.status.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
1555
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1556
+ method: "typia.json.stringify",
1557
+ expected: "(Array<string> | null | string | undefined)",
1558
+ value: input.status
1559
+ });
1560
+ })() : "null" : undefined},`}${undefined === input.lag ? "" : `"lag":${undefined !== input.lag ? null !== input.lag ? input.lag : "null" : undefined},`}${undefined === input.available ? "" : `"available":${undefined !== input.available ? null !== input.available ? input.available : "null" : undefined},`}${undefined === input.toobusy ? "" : `"toobusy":${undefined !== input.toobusy ? null !== input.toobusy ? input.toobusy : "null" : undefined},`}${undefined === input.cpuAvailable ? "" : `"cpuAvailable":${undefined !== input.cpuAvailable ? null !== input.cpuAvailable ? input.cpuAvailable : "null" : undefined},`}${undefined === input.cpuComputeAvailable ? "" : `"cpuComputeAvailable":${undefined !== input.cpuComputeAvailable ? null !== input.cpuComputeAvailable ? input.cpuComputeAvailable : "null" : undefined},`}${undefined === input.cpuComputeReservation ? "" : `"cpuComputeReservation":${undefined !== input.cpuComputeReservation ? null !== input.cpuComputeReservation ? input.cpuComputeReservation : "null" : undefined},`}${undefined === input.cpuCompute ? "" : `"cpuCompute":${undefined !== input.cpuCompute ? null !== input.cpuCompute ? input.cpuCompute : "null" : undefined},`}${undefined === input.cpuComputeLimit ? "" : `"cpuComputeLimit":${undefined !== input.cpuComputeLimit ? null !== input.cpuComputeLimit ? input.cpuComputeLimit : "null" : undefined},`}${undefined === input.cpuComputeTotal ? "" : `"cpuComputeTotal":${undefined !== input.cpuComputeTotal ? null !== input.cpuComputeTotal ? input.cpuComputeTotal : "null" : undefined},`}${undefined === input.cpuComputeValue ? "" : `"cpuComputeValue":${undefined !== input.cpuComputeValue ? null !== input.cpuComputeValue ? input.cpuComputeValue : "null" : undefined},`}${undefined === input.cpuMemoryAvailable ? "" : `"cpuMemoryAvailable":${undefined !== input.cpuMemoryAvailable ? null !== input.cpuMemoryAvailable ? input.cpuMemoryAvailable : "null" : undefined},`}${undefined === input.cpuMemoryReservation ? "" : `"cpuMemoryReservation":${undefined !== input.cpuMemoryReservation ? null !== input.cpuMemoryReservation ? input.cpuMemoryReservation : "null" : undefined},`}${undefined === input.cpuMemory ? "" : `"cpuMemory":${undefined !== input.cpuMemory ? null !== input.cpuMemory ? input.cpuMemory : "null" : undefined},`}${undefined === input.cpuMemoryLimit ? "" : `"cpuMemoryLimit":${undefined !== input.cpuMemoryLimit ? null !== input.cpuMemoryLimit ? input.cpuMemoryLimit : "null" : undefined},`}${undefined === input.cpuMemoryValue ? "" : `"cpuMemoryValue":${undefined !== input.cpuMemoryValue ? null !== input.cpuMemoryValue ? input.cpuMemoryValue : "null" : undefined},`}${undefined === input.cpuMemoryTotal ? "" : `"cpuMemoryTotal":${undefined !== input.cpuMemoryTotal ? null !== input.cpuMemoryTotal ? input.cpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuType ? "" : `"gpuType":${undefined !== input.gpuType ? null !== input.gpuType ? __typia_transform__jsonStringifyString._jsonStringifyString(input.gpuType) : "null" : undefined},`}${undefined === input.gpuAvailable ? "" : `"gpuAvailable":${undefined !== input.gpuAvailable ? null !== input.gpuAvailable ? input.gpuAvailable : "null" : undefined},`}${undefined === input.gpuComputeAvailable ? "" : `"gpuComputeAvailable":${undefined !== input.gpuComputeAvailable ? null !== input.gpuComputeAvailable ? input.gpuComputeAvailable : "null" : undefined},`}${undefined === input.gpuComputeReservation ? "" : `"gpuComputeReservation":${undefined !== input.gpuComputeReservation ? null !== input.gpuComputeReservation ? input.gpuComputeReservation : "null" : undefined},`}${undefined === input.gpuCompute ? "" : `"gpuCompute":${undefined !== input.gpuCompute ? null !== input.gpuCompute ? input.gpuCompute : "null" : undefined},`}${undefined === input.gpuComputeLimit ? "" : `"gpuComputeLimit":${undefined !== input.gpuComputeLimit ? null !== input.gpuComputeLimit ? input.gpuComputeLimit : "null" : undefined},`}${undefined === input.gpuComputeValue ? "" : `"gpuComputeValue":${undefined !== input.gpuComputeValue ? null !== input.gpuComputeValue ? input.gpuComputeValue : "null" : undefined},`}${undefined === input.gpuComputeTotal ? "" : `"gpuComputeTotal":${undefined !== input.gpuComputeTotal ? null !== input.gpuComputeTotal ? input.gpuComputeTotal : "null" : undefined},`}${undefined === input.gpuMemoryAvailable ? "" : `"gpuMemoryAvailable":${undefined !== input.gpuMemoryAvailable ? null !== input.gpuMemoryAvailable ? input.gpuMemoryAvailable : "null" : undefined},`}${undefined === input.gpuMemoryReservation ? "" : `"gpuMemoryReservation":${undefined !== input.gpuMemoryReservation ? null !== input.gpuMemoryReservation ? input.gpuMemoryReservation : "null" : undefined},`}${undefined === input.gpuMemory ? "" : `"gpuMemory":${undefined !== input.gpuMemory ? null !== input.gpuMemory ? input.gpuMemory : "null" : undefined},`}${undefined === input.gpuMemoryLimit ? "" : `"gpuMemoryLimit":${undefined !== input.gpuMemoryLimit ? null !== input.gpuMemoryLimit ? input.gpuMemoryLimit : "null" : undefined},`}${undefined === input.gpuMemoryValue ? "" : `"gpuMemoryValue":${undefined !== input.gpuMemoryValue ? null !== input.gpuMemoryValue ? input.gpuMemoryValue : "null" : undefined},`}${undefined === input.gpuMemoryTotal ? "" : `"gpuMemoryTotal":${undefined !== input.gpuMemoryTotal ? null !== input.gpuMemoryTotal ? input.gpuMemoryTotal : "null" : undefined},`}${undefined === input.gpuQueueAvailable ? "" : `"gpuQueueAvailable":${undefined !== input.gpuQueueAvailable ? null !== input.gpuQueueAvailable ? input.gpuQueueAvailable : "null" : undefined},`}${undefined === input.gpuQueueReservation ? "" : `"gpuQueueReservation":${undefined !== input.gpuQueueReservation ? null !== input.gpuQueueReservation ? input.gpuQueueReservation : "null" : undefined},`}${undefined === input.gpuQueueLimit ? "" : `"gpuQueueLimit":${undefined !== input.gpuQueueLimit ? null !== input.gpuQueueLimit ? input.gpuQueueLimit : "null" : undefined},`}${undefined === input.gpuQueueValue ? "" : `"gpuQueueValue":${undefined !== input.gpuQueueValue ? null !== input.gpuQueueValue ? input.gpuQueueValue : "null" : undefined},`}${undefined === input.gpuQueueTotal ? "" : `"gpuQueueTotal":${undefined !== input.gpuQueueTotal ? null !== input.gpuQueueTotal ? input.gpuQueueTotal : "null" : undefined},`}${undefined === input.gpuEncoder ? "" : `"gpuEncoder":${undefined !== input.gpuEncoder ? null !== input.gpuEncoder ? input.gpuEncoder : "null" : undefined},`}${undefined === input.gpuEncoderLimit ? "" : `"gpuEncoderLimit":${undefined !== input.gpuEncoderLimit ? null !== input.gpuEncoderLimit ? input.gpuEncoderLimit : "null" : undefined},`}${undefined === input.gpuEncoderValue ? "" : `"gpuEncoderValue":${undefined !== input.gpuEncoderValue ? null !== input.gpuEncoderValue ? input.gpuEncoderValue : "null" : undefined},`}${undefined === input.gpuEncoderTotal ? "" : `"gpuEncoderTotal":${undefined !== input.gpuEncoderTotal ? null !== input.gpuEncoderTotal ? input.gpuEncoderTotal : "null" : undefined},`}${undefined === input.gpuDecoder ? "" : `"gpuDecoder":${undefined !== input.gpuDecoder ? null !== input.gpuDecoder ? input.gpuDecoder : "null" : undefined},`}${undefined === input.gpuDecoderLimit ? "" : `"gpuDecoderLimit":${undefined !== input.gpuDecoderLimit ? null !== input.gpuDecoderLimit ? input.gpuDecoderLimit : "null" : undefined},`}${undefined === input.gpuDecoderValue ? "" : `"gpuDecoderValue":${undefined !== input.gpuDecoderValue ? null !== input.gpuDecoderValue ? input.gpuDecoderValue : "null" : undefined},`}${undefined === input.gpuDecoderTotal ? "" : `"gpuDecoderTotal":${undefined !== input.gpuDecoderTotal ? null !== input.gpuDecoderTotal ? input.gpuDecoderTotal : "null" : undefined},`}${undefined === input.netAvailable ? "" : `"netAvailable":${undefined !== input.netAvailable ? null !== input.netAvailable ? input.netAvailable : "null" : undefined},`}${undefined === input.netTransferAvailable ? "" : `"netTransferAvailable":${undefined !== input.netTransferAvailable ? null !== input.netTransferAvailable ? input.netTransferAvailable : "null" : undefined},`}${undefined === input.netTransferReservation ? "" : `"netTransferReservation":${undefined !== input.netTransferReservation ? null !== input.netTransferReservation ? input.netTransferReservation : "null" : undefined},`}${undefined === input.netTransfer ? "" : `"netTransfer":${undefined !== input.netTransfer ? null !== input.netTransfer ? input.netTransfer : "null" : undefined},`}${undefined === input.netTransferLimit ? "" : `"netTransferLimit":${undefined !== input.netTransferLimit ? null !== input.netTransferLimit ? input.netTransferLimit : "null" : undefined},`}${undefined === input.netTransferValue ? "" : `"netTransferValue":${undefined !== input.netTransferValue ? null !== input.netTransferValue ? input.netTransferValue : "null" : undefined},`}${undefined === input.netTransferTotal ? "" : `"netTransferTotal":${undefined !== input.netTransferTotal ? null !== input.netTransferTotal ? input.netTransferTotal : "null" : undefined},`}${undefined === input.cpu ? "" : `"cpu":${undefined !== input.cpu ? null !== input.cpu ? input.cpu : "null" : undefined},`}${undefined === input.memory ? "" : `"memory":${undefined !== input.memory ? null !== input.memory ? input.memory : "null" : undefined},`}${undefined === input.gpuStat ? "" : `"gpuStat":${undefined !== input.gpuStat ? null !== input.gpuStat ? _so2(input.gpuStat) : "null" : undefined},`}${undefined === input.cpuStat ? "" : `"cpuStat":${undefined !== input.cpuStat ? null !== input.cpuStat ? _so3(input.cpuStat) : "null" : undefined},`}${undefined === input.netStat ? "" : `"netStat":${undefined !== input.netStat ? null !== input.netStat ? _so8(input.netStat) : "null" : undefined},`}${undefined === input.limits || "function" === typeof input.limits ? "" : `"limits":${undefined !== input.limits ? JSON.stringify(input.limits) : undefined},`}${undefined === input.taskset ? "" : `"taskset":${undefined !== input.taskset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.taskset) : undefined},`}"activeCount":${null !== input.activeCount ? input.activeCount : "null"},"totalCount":${null !== input.totalCount ? input.totalCount : "null"}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1561
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1562
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so3 = input => `{"cpu":${_so4(input.cpu)},"mem":${_so5(input.mem)}}`; const _so4 = input => `{"idle":${input.idle},"total":${input.total}}`; const _so5 = input => `{"used":${input.used},"total":${input.total},"arcstats":${_so6(input.arcstats)},"meminfo":${_so7(input.meminfo)}}`; const _so6 = input => `{"size":${null !== input.size ? input.size : "null"}}`; const _so7 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1563
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so8 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.dev ? "" : `"dev":${undefined !== input.dev ? _so9(input.dev) : undefined},`}"used":${input.used}}`; const _so9 = input => `{"used":${input.used}}`; const _io1 = input => Object.keys(input).every(key => {
1564
+ const value = input[key];
1565
+ if (undefined === value)
1566
+ return true;
1567
+ return true;
1568
+ }); const _io2 = input => Object.keys(input).every(key => {
1569
+ const value = input[key];
1570
+ if (undefined === value)
1571
+ return true;
1572
+ return true;
1573
+ }); const _io3 = input => "object" === typeof input.cpu && null !== input.cpu && _io4(input.cpu) && ("object" === typeof input.mem && null !== input.mem && _io5(input.mem)); const _io4 = input => "number" === typeof input.idle && "number" === typeof input.total; const _io5 = input => "number" === typeof input.used && "number" === typeof input.total && ("object" === typeof input.arcstats && null !== input.arcstats && _io6(input.arcstats)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && _io7(input.meminfo)); const _io6 = input => null === input.size || "number" === typeof input.size; const _io7 = input => Object.keys(input).every(key => {
1574
+ const value = input[key];
1575
+ if (undefined === value)
1576
+ return true;
1577
+ return true;
1578
+ }); const _io8 = input => "number" === typeof input.used && (undefined === input.type || "string" === typeof input.type) && (undefined === input.dev || "object" === typeof input.dev && null !== input.dev && _io9(input.dev)); const _io9 = input => "number" === typeof input.used; return input => _so0(input); })()(input);
1579
+ }
1580
+ case ":render.query?": {
1581
+ return (() => { const _so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? __typia_transform__jsonStringifyString._jsonStringifyString(input.parent) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"title":${__typia_transform__jsonStringifyString._jsonStringifyString(input.title)},"description":${_so1(input.description)}}`; const _so1 = input => `{"scene":${_so2(input.scene)},"profile":${_so10(input.profile)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? _so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle) : undefined},`}${undefined === input.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? _so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? _so7(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so9(input.transcribe) : undefined}`}`)}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : "null" : undefined}`}`)}}`; const _so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1582
+ return ""; return `${JSON.stringify(key)}:${_so5(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? _so6(input.styleOverrides) : undefined}`}`)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? __typia_transform__jsonStringifyString._jsonStringifyString(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? __typia_transform__jsonStringifyString._jsonStringifyString(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined}`}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? _so8(input.crop) : undefined}`}`)}}`; const _so8 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`; const _so9 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`; const _so10 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so11(input.transcribe) : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? _so12(input.translate) : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? _so13(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
1583
+ if ("string" === typeof input.subtitle)
1584
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitle);
1585
+ if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1586
+ return _so14(input.subtitle);
1587
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1588
+ method: "typia.json.stringify",
1589
+ expected: "(SubtitleProfile | string | undefined)",
1590
+ value: input.subtitle
1591
+ });
1592
+ })() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so11 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so12 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so13 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined}`}`)}}`; const _so14 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined}`}`)}}`; const _io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && _io10(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io7(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io9(input.transcribe)); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io4 = input => Object.keys(input).every(key => {
1593
+ const value = input[key];
1594
+ if (undefined === value)
1595
+ return true;
1596
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io5(value);
1597
+ }); const _io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io6(input.styleOverrides)); const _io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io8(input.crop); const _io8 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io14(input.subtitle))); const _io11 = input => "string" === typeof input.engine; const _io12 = input => "string" === typeof input.language; const _io13 = input => undefined === input.pan || "string" === typeof input.pan; const _io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); return input => _so0(input); })()(input);
1598
+ }
1599
+ case ":render.result?": {
1600
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? __typia_transform__jsonStringifyString._jsonStringifyString(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? (() => {
1601
+ if (Array.isArray(input.error))
1602
+ return `[${input.error.map(elem => _so1(elem)).join(",")}]`;
1603
+ if ("object" === typeof input.error && null !== input.error && false === Array.isArray(input.error))
1604
+ return _so1(input.error);
1605
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1606
+ method: "typia.json.stringify",
1607
+ expected: "(Array<Record<string, unknown>> | Record<string, unknown> | null | undefined)",
1608
+ value: input.error
1609
+ });
1610
+ })() : "null" : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1611
+ return ""; if (["url", "result", "error"].some(regular => regular === key))
1612
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1613
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => Object.keys(input).every(key => {
1614
+ const value = input[key];
1615
+ if (undefined === value)
1616
+ return true;
1617
+ return true;
1618
+ }); return input => _so0(input); })()(input);
1619
+ }
1620
+ case ":render.schedulers?": {
1621
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1622
+ return ""; return `${JSON.stringify(key)}:${`[${value.map(elem => elem).join(",")}]`}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
1623
+ }
1624
+ case ":revs?": {
1625
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1626
+ }
1627
+ case ":role.tags": {
1628
+ return (() => { const _so0 = input => `{"value":${`[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; return input => _so0(input); })()(input);
1629
+ }
1630
+ case ":script": {
1631
+ return (() => { const _so0 = input => `{"value":${__typia_transform__jsonStringifyString._jsonStringifyString(input.value)}}`; return input => _so0(input); })()(input);
1632
+ }
1633
+ case ":script?": {
1634
+ return (() => { const _so0 = input => `{"value":${_so1(input.value)}}`; const _so1 = input => `{"root":${_so2(input.root)}}`; const _so2 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}${undefined === input.textFormat ? "" : `"textFormat":${undefined !== input.textFormat ? input.textFormat : undefined},`}${undefined === input.textStyle ? "" : `"textStyle":${undefined !== input.textStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version},"children":${`[${input.children.map(elem => _so4(elem)).join(",")}]`},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${"\"" + input.format + "\""},"indent":${input.indent}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1635
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
1636
+ const value = input[key];
1637
+ if (undefined === value)
1638
+ return true;
1639
+ return true;
1640
+ }); const _io4 = input => "string" === typeof input.type && "number" === typeof input.version && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)); return input => _so0(input); })()(input);
1641
+ }
1642
+ case ":script.revisions?": {
1643
+ return (() => { const _so0 = input => `{"value":${`[${input.value.map(elem => _so1(elem)).join(",")}]`}}`; const _so1 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)}}`; const _io1 = input => "string" === typeof input.id && "string" === typeof input.userId; return input => _so0(input); })()(input);
1644
+ }
1645
+ case ":script.revision": {
1646
+ return (() => { const _so0 = input => `{"$parent":${__typia_transform__jsonStringifyString._jsonStringifyString(input.$parent)},"scriptId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.scriptId)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"value":${__typia_transform__jsonStringifyString._jsonStringifyString(input.value)}}`; return input => _so0(input); })()(input);
1647
+ }
1648
+ case ":script.revision?": {
1649
+ return (() => { const _so0 = input => `{"$parent":${__typia_transform__jsonStringifyString._jsonStringifyString(input.$parent)},"scriptId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.scriptId)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"value":${_so1(input.value)}}`; const _so1 = input => `{"root":${_so2(input.root)}}`; const _so2 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}${undefined === input.textFormat ? "" : `"textFormat":${undefined !== input.textFormat ? input.textFormat : undefined},`}${undefined === input.textStyle ? "" : `"textStyle":${undefined !== input.textStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version},"children":${`[${input.children.map(elem => _so4(elem)).join(",")}]`},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${"\"" + input.format + "\""},"indent":${input.indent}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1650
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
1651
+ const value = input[key];
1652
+ if (undefined === value)
1653
+ return true;
1654
+ return true;
1655
+ }); const _io4 = input => "string" === typeof input.type && "number" === typeof input.version && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)); return input => _so0(input); })()(input);
1656
+ }
1657
+ case ":script.content?": {
1658
+ return (() => { const _so0 = input => `{"nodes":${`[${input.nodes.map(elem => _su0(elem)).join(",")}]`}}`; const _so1 = input => `{"type":${"\"" + input.type + "\""},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"mixin":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mixin)},"children":${`[${input.children.map(elem => _so1(elem)).join(",")}]`}}`; const _so2 = input => `{${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined},`}${undefined === input.format ? "" : `"format":${undefined !== input.format ? input.format : undefined},`}"type":${"\"" + input.type + "\""},"text":${__typia_transform__jsonStringifyString._jsonStringifyString(input.text)}}`; const _so3 = input => `{${undefined === input.checked ? "" : `"checked":${undefined !== input.checked ? input.checked : undefined},`}"type":${"\"" + input.type + "\""},"value":${input.value},"children":${`[${input.children.map(elem => _so2(elem)).join(",")}]`}}`; const _so4 = input => `{"type":${"\"" + input.type + "\""},"listType":${"\"" + input.listType + "\""},"tag":${"\"" + input.tag + "\""},"children":${`[${input.children.map(elem => _so3(elem)).join(",")}]`}}`; const _so5 = input => `{"type":${"\"" + input.type + "\""},"children":${`[${input.children.map(elem => _so2(elem)).join(",")}]`}}`; const _so6 = input => `{"type":${"\"" + input.type + "\""},"children":${`[${input.children.map(elem => _so2(elem)).join(",")}]`}}`; const _so7 = input => `{"type":${"\"" + input.type + "\""},"tag":${"\"" + input.tag + "\""},"children":${`[${input.children.map(elem => _so2(elem)).join(",")}]`}}`; const _so8 = input => `{"type":${"\"" + input.type + "\""},"children":${`[${input.children.map(elem => _so2(elem)).join(",")}]`}}`; const _so9 = input => `{"type":${"\"" + input.type + "\""}}`; const _su0 = input => (() => {
1659
+ if ("event" === input.type)
1660
+ return _so1(input);
1661
+ else if ("text" === input.type || "autolink" === input.type || "link" === input.type)
1662
+ return _so2(input);
1663
+ else if ("listitem" === input.type)
1664
+ return _so3(input);
1665
+ else if ("list" === input.type)
1666
+ return _so4(input);
1667
+ else if ("quote" === input.type)
1668
+ return _so8(input);
1669
+ else if ("comment" === input.type)
1670
+ return _so6(input);
1671
+ else if ("paragraph" === input.type)
1672
+ return _so5(input);
1673
+ else if ("heading" === input.type)
1674
+ return _so7(input);
1675
+ else if ("horizontalrule" === input.type)
1676
+ return _so9(input);
1677
+ else
1678
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1679
+ method: "typia.json.stringify",
1680
+ expected: "(EventNodeContent | TextNodeContent | ListItemNodeContent | ListNodeContent | QuoteNodeContent | CommentNodeContent | ParagraphNodeContent | HeadingNodeContent | HorizontalRuleContent)",
1681
+ value: input
1682
+ });
1683
+ })(); const _io1 = input => "event" === input.type && "string" === typeof input.id && "string" === typeof input.mixin && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => ("text" === input.type || "autolink" === input.type || "link" === input.type) && "string" === typeof input.text && (undefined === input.style || "string" === typeof input.style) && (undefined === input.format || "number" === typeof input.format); const _io3 = input => "listitem" === input.type && "number" === typeof input.value && (undefined === input.checked || "boolean" === typeof input.checked) && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io4 = input => "list" === input.type && ("number" === input.listType || "bullet" === input.listType || "check" === input.listType) && ("ul" === input.tag || "ol" === input.tag) && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); const _io5 = input => "paragraph" === input.type && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io6 = input => "comment" === input.type && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io7 = input => "heading" === input.type && ("h1" === input.tag || "h2" === input.tag || "h3" === input.tag) && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io8 = input => "quote" === input.type && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io9 = input => "horizontalrule" === input.type; const _iu0 = input => (() => {
1684
+ if ("event" === input.type)
1685
+ return _io1(input);
1686
+ else if ("text" === input.type || "autolink" === input.type || "link" === input.type)
1687
+ return _io2(input);
1688
+ else if ("listitem" === input.type)
1689
+ return _io3(input);
1690
+ else if ("list" === input.type)
1691
+ return _io4(input);
1692
+ else if ("quote" === input.type)
1693
+ return _io8(input);
1694
+ else if ("comment" === input.type)
1695
+ return _io6(input);
1696
+ else if ("paragraph" === input.type)
1697
+ return _io5(input);
1698
+ else if ("heading" === input.type)
1699
+ return _io7(input);
1700
+ else if ("horizontalrule" === input.type)
1701
+ return _io9(input);
1702
+ else
1703
+ return false;
1704
+ })(); return input => _so0(input); })()(input);
1705
+ }
1706
+ case ":script.text?": {
1707
+ return (() => { const _so0 = input => `{"content":${__typia_transform__jsonStringifyString._jsonStringifyString(input.content)},"graphics":${__typia_transform__jsonStringifyString._jsonStringifyString(input.graphics)}}`; return input => _so0(input); })()(input);
1708
+ }
1709
+ case ":script.children": {
1710
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1711
+ }
1712
+ case ":search?": {
1713
+ return (() => { const _so0 = input => `{${undefined === input.total ? "" : `"total":${undefined !== input.total ? input.total : undefined},`}${undefined === input.relation ? "" : `"relation":${undefined !== input.relation ? __typia_transform__jsonStringifyString._jsonStringifyString(input.relation) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? __typia_transform__jsonStringifyString._jsonStringifyString(input.error) : undefined},`}"hits":${`[${input.hits.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`}}`; return input => _so0(input); })()(input);
1714
+ }
1715
+ case ":settings": {
1716
+ return (() => { const _iv23 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? _so1(input.permission) : undefined},`}${undefined === input["module"] ? "" : `"module":${undefined !== input["module"] ? _so2(input["module"]) : undefined},`}${undefined === input.upload ? "" : `"upload":${undefined !== input.upload ? _so6(input.upload) : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? _so7(input.download) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? _so8(input.browser) : undefined},`}${undefined === input.toolbarTags ? "" : `"toolbarTags":${undefined !== input.toolbarTags ? _so12(input.toolbarTags) : undefined},`}${undefined === input.exclusiveTagGroups ? "" : `"exclusiveTagGroups":${undefined !== input.exclusiveTagGroups ? `[${input.exclusiveTagGroups.map(elem => `[${elem.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`).join(",")}]` : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? _so13(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? _so14(input.assignees) : undefined},`}${undefined === input.comments ? "" : `"comments":${undefined !== input.comments ? _so15(input.comments) : undefined},`}${undefined === input.clock ? "" : `"clock":${undefined !== input.clock ? _so16(input.clock) : undefined},`}${undefined === input.swarm ? "" : `"swarm":${undefined !== input.swarm ? _so17(input.swarm) : undefined},`}${undefined === input.dashboard ? "" : `"dashboard":${undefined !== input.dashboard ? _so18(input.dashboard) : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? _so19(input.script) : undefined},`}${undefined === input.events ? "" : `"events":${undefined !== input.events ? _so24(input.events) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? _so27(input.rundown) : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? _so28(input.gallery) : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? input.history : undefined},`}${undefined === input.keymap ? "" : `"keymap":${undefined !== input.keymap ? _so29(input.keymap) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? _so42(input.media) : undefined},`}${undefined === input.edit ? "" : `"edit":${undefined !== input.edit ? _so55(input.edit) : undefined},`}${undefined === input.commands ? "" : `"commands":${undefined !== input.commands ? `[${input.commands.map(elem => _so57(elem)).join(",")}]` : undefined},`}${undefined === input.predefinedTags ? "" : `"predefinedTags":${undefined !== input.predefinedTags ? `[${input.predefinedTags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.storyboard ? "" : `"storyboard":${undefined !== input.storyboard ? _so58(input.storyboard) : undefined},`}${undefined === input.print ? "" : `"print":${undefined !== input.print ? _so67(input.print) : undefined},`}${undefined === input.hiddenPreviews ? "" : `"hiddenPreviews":${undefined !== input.hiddenPreviews ? `[${input.hiddenPreviews.map(elem => _so68(elem)).join(",")}]` : undefined},`}${undefined === input.plugins ? "" : `"plugins":${undefined !== input.plugins ? _so69(input.plugins) : undefined},`}${undefined === input.crashScreen ? "" : `"crashScreen":${undefined !== input.crashScreen ? input.crashScreen : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? input.debug : undefined},`}${undefined === input.featurePreview ? "" : `"featurePreview":${undefined !== input.featurePreview ? _so72(input.featurePreview) : undefined},`}${undefined === input.flags ? "" : `"flags":${undefined !== input.flags ? _so73(input.flags) : undefined},`}${undefined === input.notifications ? "" : `"notifications":${undefined !== input.notifications ? _so74(input.notifications) : undefined},`}${undefined === input.suppressDeleteAlert ? "" : `"suppressDeleteAlert":${undefined !== input.suppressDeleteAlert ? input.suppressDeleteAlert : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.overrideUserContact ? "" : `"overrideUserContact":${undefined !== input.overrideUserContact ? input.overrideUserContact : undefined},`}${undefined === input.overrideUserLogin ? "" : `"overrideUserLogin":${undefined !== input.overrideUserLogin ? input.overrideUserLogin : undefined}`}`)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.tabs ? "" : `"tabs":${undefined !== input.tabs ? _so3(input.tabs) : undefined}`}`)}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.settingsPanelStore ? "" : `"settingsPanelStore":${undefined !== input.settingsPanelStore ? _so4(input.settingsPanelStore) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1717
+ return ""; if (["settingsPanelStore"].some(regular => regular === key))
1718
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? _so5(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.activeSectionIndex ? "" : `"activeSectionIndex":${undefined !== input.activeSectionIndex ? input.activeSectionIndex : undefined},`}${undefined === input.activeTab ? "" : `"activeTab":${undefined !== input.activeTab ? __typia_transform__jsonStringifyString._jsonStringifyString(input.activeTab) : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.activeTab ? "" : `"activeTab":${undefined !== input.activeTab ? __typia_transform__jsonStringifyString._jsonStringifyString(input.activeTab) : undefined}`}`)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.defaultGrouping ? "" : `"defaultGrouping":${undefined !== input.defaultGrouping ? "\"" + input.defaultGrouping + "\"" : undefined},`}${undefined === input.hideStoryboardCollection ? "" : `"hideStoryboardCollection":${undefined !== input.hideStoryboardCollection ? input.hideStoryboardCollection : undefined},`}${undefined === input.displayUploadFilesDialog ? "" : `"displayUploadFilesDialog":${undefined !== input.displayUploadFilesDialog ? "\"" + input.displayUploadFilesDialog + "\"" : undefined}`}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.displaySaveDialog ? "" : `"displaySaveDialog":${undefined !== input.displaySaveDialog ? input.displaySaveDialog : undefined},`}${undefined === input.batchDownloadDialogMode ? "" : `"batchDownloadDialogMode":${undefined !== input.batchDownloadDialogMode ? "\"" + input.batchDownloadDialogMode + "\"" : undefined}`}`)}}`; const _so8 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.map ? "" : `"map":${undefined !== input.map ? _so9(input.map) : undefined},`}${undefined === input.createMenu ? "" : `"createMenu":${undefined !== input.createMenu ? _so11(input.createMenu) : undefined}`}`)}}`; const _so9 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.clustering ? "" : `"clustering":${undefined !== input.clustering ? input.clustering : undefined},`}${undefined === input.zoom ? "" : `"zoom":${undefined !== input.zoom ? input.zoom : undefined},`}${undefined === input.center ? "" : `"center":${undefined !== input.center ? _so10(input.center) : undefined}`}`)}}`; const _so10 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lat ? "" : `"lat":${undefined !== input.lat ? input.lat : undefined},`}${undefined === input.lon ? "" : `"lon":${undefined !== input.lon ? input.lon : undefined}`}`)}}`; const _so11 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.sortOrder ? "" : `"sortOrder":${undefined !== input.sortOrder ? `[${input.sortOrder.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so12 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so13 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so14 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so15 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so16 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.enable ? "" : `"enable":${undefined !== input.enable ? input.enable : undefined},`}${undefined === input.show24Hours ? "" : `"show24Hours":${undefined !== input.show24Hours ? input.show24Hours : undefined},`}${undefined === input.showAmPm ? "" : `"showAmPm":${undefined !== input.showAmPm ? input.showAmPm : undefined},`}${undefined === input.showSeconds ? "" : `"showSeconds":${undefined !== input.showSeconds ? input.showSeconds : undefined},`}${undefined === input.showDayOfWeek ? "" : `"showDayOfWeek":${undefined !== input.showDayOfWeek ? input.showDayOfWeek : undefined},`}${undefined === input.showDate ? "" : `"showDate":${undefined !== input.showDate ? input.showDate : undefined},`}${undefined === input.format ? "" : `"format":${undefined !== input.format ? __typia_transform__jsonStringifyString._jsonStringifyString(input.format) : undefined}`}`)}}`; const _so17 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.color ? "" : `"color":${undefined !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : undefined},`}${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined}`}`)}}`; const _so18 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.maxMru ? "" : `"maxMru":${undefined !== input.maxMru ? input.maxMru : undefined},`}${undefined === input.maxTabs ? "" : `"maxTabs":${undefined !== input.maxTabs ? input.maxTabs : undefined}`}`)}}`; const _so19 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.createMenu ? "" : `"createMenu":${undefined !== input.createMenu ? _so20(input.createMenu) : undefined},`}${undefined === input.colorTags ? "" : `"colorTags":${undefined !== input.colorTags ? `[${input.colorTags.map(elem => _so21(elem)).join(",")}]` : undefined},`}${undefined === input.readType ? "" : `"readType":${undefined !== input.readType ? "\"" + input.readType + "\"" : undefined},`}${undefined === input.readRate ? "" : `"readRate":${undefined !== input.readRate ? input.readRate : undefined},`}${undefined === input.collapsedNodes ? "" : `"collapsedNodes":${undefined !== input.collapsedNodes ? _so22(input.collapsedNodes) : undefined}`}`)}}`; const _so20 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.sortBy ? "" : `"sortBy":${undefined !== input.sortBy ? "\"" + input.sortBy + "\"" : undefined},`}${undefined === input.showPreview ? "" : `"showPreview":${undefined !== input.showPreview ? input.showPreview : undefined}`}`)}}`; const _so21 = input => `{"name":${null !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : "null"},"icon":${null !== input.icon ? __typia_transform__jsonStringifyString._jsonStringifyString(input.icon) : "null"},"color":${null !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : "null"},"description":${null !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : "null"}}`; const _so22 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1719
+ return ""; return `${JSON.stringify(key)}:${_so23(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so23 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? input.preview : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? input.children : undefined}`}`)}}`; const _so24 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.graphicBaseTemplate ? "" : `"graphicBaseTemplate":${undefined !== input.graphicBaseTemplate ? __typia_transform__jsonStringifyString._jsonStringifyString(input.graphicBaseTemplate) : undefined},`}${undefined === input.favorites ? "" : `"favorites":${undefined !== input.favorites ? `[${input.favorites.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.defaults ? "" : `"defaults":${undefined !== input.defaults ? _so25(input.defaults) : undefined}`}`)}}`; const _so25 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1720
+ return ""; return `${JSON.stringify(key)}:${_so26(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so26 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.event ? "" : `"event":${undefined !== input.event ? __typia_transform__jsonStringifyString._jsonStringifyString(input.event) : undefined},`}${undefined === input.property ? "" : `"property":${undefined !== input.property ? __typia_transform__jsonStringifyString._jsonStringifyString(input.property) : undefined}`}`)}}`; const _so27 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.eventThumbnails ? "" : `"eventThumbnails":${undefined !== input.eventThumbnails ? input.eventThumbnails : undefined}`}`)}}`; const _so28 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.dimOnBlur ? "" : `"dimOnBlur":${undefined !== input.dimOnBlur ? input.dimOnBlur : undefined},`}${undefined === input.float ? "" : `"float":${undefined !== input.float ? "\"" + input.float + "\"" : undefined}`}`)}}`; const _so29 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.display ? "" : `"display":${undefined !== input.display ? _so30(input.display) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? _so32(input.browser) : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? _so33(input.gallery) : undefined},`}${undefined === input.global ? "" : `"global":${undefined !== input.global ? _so34(input.global) : undefined},`}${undefined === input.player ? "" : `"player":${undefined !== input.player ? _so35(input.player) : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? _so36(input.script) : undefined},`}${undefined === input.codeEditor ? "" : `"codeEditor":${undefined !== input.codeEditor ? _so37(input.codeEditor) : undefined},`}${undefined === input.bookmarks ? "" : `"bookmarks":${undefined !== input.bookmarks ? _so38(input.bookmarks) : undefined},`}${undefined === input.edit ? "" : `"edit":${undefined !== input.edit ? _so39(input.edit) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? _so40(input.rundown) : undefined},`}${undefined === input.segment ? "" : `"segment":${undefined !== input.segment ? _so41(input.segment) : undefined}`}`)}}`; const _so30 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1721
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so31 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.sequence ? "" : `"sequence":${undefined !== input.sequence ? __typia_transform__jsonStringifyString._jsonStringifyString(input.sequence) : undefined}`}`)}}`; const _so32 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1722
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so33 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1723
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so34 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1724
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so35 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1725
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so36 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1726
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so37 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1727
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so38 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1728
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so39 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1729
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so40 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1730
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so41 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1731
+ return ""; return `${JSON.stringify(key)}:${_so31(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so42 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.defaultFrameRate ? "" : `"defaultFrameRate":${undefined !== input.defaultFrameRate ? input.defaultFrameRate : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.guide ? "" : `"guide":${undefined !== input.guide ? _so43(input.guide) : undefined},`}${undefined === input.stepManyFrames ? "" : `"stepManyFrames":${undefined !== input.stepManyFrames ? input.stepManyFrames : undefined},`}${undefined === input.liveZoomDuration ? "" : `"liveZoomDuration":${undefined !== input.liveZoomDuration ? input.liveZoomDuration : undefined},`}${undefined === input.importTitleTemplate ? "" : `"importTitleTemplate":${undefined !== input.importTitleTemplate ? __typia_transform__jsonStringifyString._jsonStringifyString(input.importTitleTemplate) : undefined},`}${undefined === input.tile ? "" : `"tile":${undefined !== input.tile ? _so44(input.tile) : undefined},`}${undefined === input.timecodeReference ? "" : `"timecodeReference":${undefined !== input.timecodeReference ? __typia_transform__jsonStringifyString._jsonStringifyString(input.timecodeReference) : undefined},`}${undefined === input.maxSubclipDuration ? "" : `"maxSubclipDuration":${undefined !== input.maxSubclipDuration ? input.maxSubclipDuration : undefined},`}${undefined === input.rewindStep ? "" : `"rewindStep":${undefined !== input.rewindStep ? input.rewindStep : undefined},`}${undefined === input.forwardStep ? "" : `"forwardStep":${undefined !== input.forwardStep ? input.forwardStep : undefined},`}${undefined === input.interlacedPlayback ? "" : `"interlacedPlayback":${undefined !== input.interlacedPlayback ? __typia_transform__jsonStringifyString._jsonStringifyString(input.interlacedPlayback) : undefined},`}${undefined === input.playbackRates ? "" : `"playbackRates":${undefined !== input.playbackRates ? `[${input.playbackRates.map(elem => elem).join(",")}]` : undefined},`}${undefined === input.subtitles ? "" : `"subtitles":${undefined !== input.subtitles ? _so45(input.subtitles) : undefined},`}${undefined === input.subtitleTemplateId ? "" : `"subtitleTemplateId":${undefined !== input.subtitleTemplateId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.subtitleTemplateId) : undefined},`}${undefined === input.initialVolume ? "" : `"initialVolume":${undefined !== input.initialVolume ? __typia_transform__jsonStringifyString._jsonStringifyString(input.initialVolume) : undefined},`}${undefined === input.guides ? "" : `"guides":${undefined !== input.guides ? `[${input.guides.map(elem => _so48(elem)).join(",")}]` : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? input.download : undefined},`}${undefined === input.editMode ? "" : `"editMode":${undefined !== input.editMode ? _so49(input.editMode) : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? _so50(input.transcribe) : undefined},`}${undefined === input.openCommand ? "" : `"openCommand":${undefined !== input.openCommand ? (() => {
1732
+ if ("string" === typeof input.openCommand)
1733
+ return __typia_transform__jsonStringifyString._jsonStringifyString(input.openCommand);
1734
+ if ("object" === typeof input.openCommand && null !== input.openCommand && false === Array.isArray(input.openCommand))
1735
+ return _so54(input.openCommand);
1736
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1737
+ method: "typia.json.stringify",
1738
+ expected: "(__type.o47 | string | undefined)",
1739
+ value: input.openCommand
1740
+ });
1741
+ })() : undefined}`}`)}}`; const _so43 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.mask ? "" : `"mask":${undefined !== input.mask ? input.mask : undefined},`}${undefined === input.actionSafe ? "" : `"actionSafe":${undefined !== input.actionSafe ? input.actionSafe : undefined},`}${undefined === input.titleSafe ? "" : `"titleSafe":${undefined !== input.titleSafe ? input.titleSafe : undefined}`}`)}}`; const _so44 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? (() => {
1742
+ if ("string" === typeof input.preview)
1743
+ return "\"" + input.preview + "\"";
1744
+ if ("boolean" === typeof input.preview)
1745
+ return input.preview;
1746
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1747
+ method: "typia.json.stringify",
1748
+ expected: "(\"disabled\" | \"play\" | \"seek\" | \"seekplay\" | boolean | undefined)",
1749
+ value: input.preview
1750
+ });
1751
+ })() : undefined},`}${undefined === input.showRenderProgress ? "" : `"showRenderProgress":${undefined !== input.showRenderProgress ? input.showRenderProgress : undefined}`}`)}}`; const _so45 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? input.spacing : undefined},`}${undefined === input.maxCharactersPerLine ? "" : `"maxCharactersPerLine":${undefined !== input.maxCharactersPerLine ? input.maxCharactersPerLine : undefined},`}${undefined === input.suggestions ? "" : `"suggestions":${undefined !== input.suggestions ? `[${input.suggestions.map(elem => _so46(elem)).join(",")}]` : undefined},`}${undefined === input.colors ? "" : `"colors":${undefined !== input.colors ? `[${input.colors.map(elem => _so47(elem)).join(",")}]` : undefined}`}`)}}`; const _so46 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.ifAspectRatio ? "" : `"ifAspectRatio":${undefined !== input.ifAspectRatio ? null !== input.ifAspectRatio ? __typia_transform__jsonStringifyString._jsonStringifyString(input.ifAspectRatio) : "null" : undefined},`}${undefined === input.ifLang ? "" : `"ifLang":${undefined !== input.ifLang ? null !== input.ifLang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.ifLang) : "null" : undefined},`}${undefined === input.thenStyle ? "" : `"thenStyle":${undefined !== input.thenStyle ? null !== input.thenStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.thenStyle) : "null" : undefined},`}${undefined === input.thenMaxCharactersPerLine ? "" : `"thenMaxCharactersPerLine":${undefined !== input.thenMaxCharactersPerLine ? null !== input.thenMaxCharactersPerLine ? input.thenMaxCharactersPerLine : "null" : undefined}`}`)}}`; const _so47 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.label ? "" : `"label":${undefined !== input.label ? null !== input.label ? __typia_transform__jsonStringifyString._jsonStringifyString(input.label) : "null" : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? null !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : "null" : undefined}`}`)}}`; const _so48 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.label ? "" : `"label":${undefined !== input.label ? __typia_transform__jsonStringifyString._jsonStringifyString(input.label) : undefined},`}${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? __typia_transform__jsonStringifyString._jsonStringifyString(input.aspectRatio) : undefined}`}`)}}`; const _so49 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.enabled ? "" : `"enabled":${undefined !== input.enabled ? input.enabled : undefined},`}${undefined === input.defaultEnterOption ? "" : `"defaultEnterOption":${undefined !== input.defaultEnterOption ? "\"" + input.defaultEnterOption + "\"" : undefined},`}${undefined === input.defaultExitOption ? "" : `"defaultExitOption":${undefined !== input.defaultExitOption ? "\"" + input.defaultExitOption + "\"" : undefined}`}`)}}`; const _so50 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.subtitleDisclaimer ? "" : `"subtitleDisclaimer":${undefined !== input.subtitleDisclaimer ? _so51(input.subtitleDisclaimer) : undefined}`}`)}}`; const _so51 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.isUserConfigurable ? "" : `"isUserConfigurable":${undefined !== input.isUserConfigurable ? input.isUserConfigurable : undefined},`}${undefined === input.defaultValue ? "" : `"defaultValue":${undefined !== input.defaultValue ? _so52(input.defaultValue) : undefined}`}`)}}`; const _so52 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.enabled ? "" : `"enabled":${undefined !== input.enabled ? input.enabled : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? `[${input.text.map(elem => _so53(elem)).join(",")}]` : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? input.duration : undefined}`}`)}}`; const _so53 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; const _so54 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? __typia_transform__jsonStringifyString._jsonStringifyString(input.url) : undefined},`}${undefined === input.command ? "" : `"command":${undefined !== input.command ? __typia_transform__jsonStringifyString._jsonStringifyString(input.command) : undefined},`}${undefined === input.app ? "" : `"app":${undefined !== input.app ? __typia_transform__jsonStringifyString._jsonStringifyString(input.app) : undefined},`}${undefined === input.args ? "" : `"args":${undefined !== input.args ? `[${input.args.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so55 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.thumbnailView ? "" : `"thumbnailView":${undefined !== input.thumbnailView ? "\"" + input.thumbnailView + "\"" : undefined},`}${undefined === input.voiceOver ? "" : `"voiceOver":${undefined !== input.voiceOver ? _so56(input.voiceOver) : undefined}`}`)}}`; const _so56 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.inputDevice ? "" : `"inputDevice":${undefined !== input.inputDevice ? __typia_transform__jsonStringifyString._jsonStringifyString(input.inputDevice) : undefined},`}${undefined === input.inputGainDb ? "" : `"inputGainDb":${undefined !== input.inputGainDb ? input.inputGainDb : undefined},`}${undefined === input.backgroundReductionDb ? "" : `"backgroundReductionDb":${undefined !== input.backgroundReductionDb ? input.backgroundReductionDb : undefined},`}${undefined === input.recordMode ? "" : `"recordMode":${undefined !== input.recordMode ? "\"" + input.recordMode + "\"" : undefined},`}${undefined === input.preRollDuration ? "" : `"preRollDuration":${undefined !== input.preRollDuration ? input.preRollDuration : undefined}`}`)}}`; const _so57 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.command ? "" : `"command":${undefined !== input.command ? __typia_transform__jsonStringifyString._jsonStringifyString(input.command) : undefined},`}${undefined === input.args ? "" : `"args":${undefined !== input.args ? `[${input.args.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so58 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.folded ? "" : `"folded":${undefined !== input.folded ? _so59(input.folded) : undefined},`}${undefined === input.assets ? "" : `"assets":${undefined !== input.assets ? _so60(input.assets) : undefined},`}${undefined === input.pipeline ? "" : `"pipeline":${undefined !== input.pipeline ? _so64(input.pipeline) : undefined},`}${undefined === input.item ? "" : `"item":${undefined !== input.item ? _so66(input.item) : undefined}`}`)}}`; const _so59 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.auto ? "" : `"auto":${undefined !== input.auto ? input.auto : undefined}`}`)}}`; const _so60 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.story ? "" : `"story":${undefined !== input.story ? _so61(input.story) : undefined},`}${undefined === input.note ? "" : `"note":${undefined !== input.note ? _so63(input.note) : undefined}`}`)}}`; const _so61 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.excerpt ? "" : `"excerpt":${undefined !== input.excerpt ? _so62(input.excerpt) : undefined}`}`)}}`; const _so62 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.maxLines ? "" : `"maxLines":${undefined !== input.maxLines ? input.maxLines : undefined},`}${undefined === input.mode ? "" : `"mode":${undefined !== input.mode ? __typia_transform__jsonStringifyString._jsonStringifyString(input.mode) : undefined},`}${undefined === input.comments ? "" : `"comments":${undefined !== input.comments ? input.comments : undefined}`}`)}}`; const _so63 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.maxHeight ? "" : `"maxHeight":${undefined !== input.maxHeight ? input.maxHeight : undefined}`}`)}}`; const _so64 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.search ? "" : `"search":${undefined !== input.search ? _so65(input.search) : undefined},`}${undefined === input.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? "\"" + input.sortMode + "\"" : undefined}`}`)}}`; const _so65 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.maxItemsDisplayed ? "" : `"maxItemsDisplayed":${undefined !== input.maxItemsDisplayed ? input.maxItemsDisplayed : undefined}`}`)}}`; const _so66 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.maxHeight ? "" : `"maxHeight":${undefined !== input.maxHeight ? input.maxHeight : undefined}`}`)}}`; const _so67 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.fontFamilies ? "" : `"fontFamilies":${undefined !== input.fontFamilies ? `[${input.fontFamilies.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so68 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.folded ? "" : `"folded":${undefined !== input.folded ? input.folded : undefined}`}`)}}`; const _so69 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.adobe ? "" : `"adobe":${undefined !== input.adobe ? _so70(input.adobe) : undefined},`}${undefined === input.rive ? "" : `"rive":${undefined !== input.rive ? _so71(input.rive) : undefined}`}`)}}`; const _so70 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.useProxies ? "" : `"useProxies":${undefined !== input.useProxies ? input.useProxies : undefined}`}`)}}`; const _so71 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.template ? "" : `"template":${undefined !== input.template ? __typia_transform__jsonStringifyString._jsonStringifyString(input.template) : undefined}`}`)}}`; const _so72 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.collections ? "" : `"collections":${undefined !== input.collections ? input.collections : undefined},`}${undefined === input.semanticSearch ? "" : `"semanticSearch":${undefined !== input.semanticSearch ? input.semanticSearch : undefined},`}${undefined === input.ameRemoteRendering ? "" : `"ameRemoteRendering":${undefined !== input.ameRemoteRendering ? input.ameRemoteRendering : undefined}`}`)}}`; const _so73 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.utils ? "" : `"utils":${undefined !== input.utils ? input.utils : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? input.history : undefined},`}${undefined === input.refs ? "" : `"refs":${undefined !== input.refs ? input.refs : undefined},`}${undefined === input.access ? "" : `"access":${undefined !== input.access ? input.access : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? input.files : undefined},`}${undefined === input["export"] ? "" : `"export":${undefined !== input["export"] ? input["export"] : undefined},`}${undefined === input.json ? "" : `"json":${undefined !== input.json ? input.json : undefined},`}${undefined === input.hlsjs ? "" : `"hlsjs":${undefined !== input.hlsjs ? input.hlsjs : undefined},`}${undefined === input.resetRenders ? "" : `"resetRenders":${undefined !== input.resetRenders ? input.resetRenders : undefined},`}${undefined === input.resetReplicas ? "" : `"resetReplicas":${undefined !== input.resetReplicas ? input.resetReplicas : undefined},`}${undefined === input.assetStatus ? "" : `"assetStatus":${undefined !== input.assetStatus ? input.assetStatus : undefined},`}${undefined === input.consolidateMedia ? "" : `"consolidateMedia":${undefined !== input.consolidateMedia ? input.consolidateMedia : undefined},`}${undefined === input.hideInAssetMenu ? "" : `"hideInAssetMenu":${undefined !== input.hideInAssetMenu ? input.hideInAssetMenu : undefined},`}${undefined === input.assetRoute ? "" : `"assetRoute":${undefined !== input.assetRoute ? input.assetRoute : undefined},`}${undefined === input.devWarnings ? "" : `"devWarnings":${undefined !== input.devWarnings ? input.devWarnings : undefined},`}${undefined === input.multiplexWebSockets ? "" : `"multiplexWebSockets":${undefined !== input.multiplexWebSockets ? input.multiplexWebSockets : undefined}`}`)}}`; const _so74 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.events ? "" : `"events":${undefined !== input.events ? _so75(input.events) : undefined}`}`)}}`; const _so75 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.comment ? "" : `"comment":${undefined !== input.comment ? `[${input.comment.map(elem => "\"" + elem + "\"").join(",")}]` : undefined},`}${undefined === input.assigned ? "" : `"assigned":${undefined !== input.assigned ? `[${input.assigned.map(elem => "\"" + elem + "\"").join(",")}]` : undefined},`}${undefined === input.unassigned ? "" : `"unassigned":${undefined !== input.unassigned ? `[${input.unassigned.map(elem => "\"" + elem + "\"").join(",")}]` : undefined},`}${undefined === input.publishSucceeded ? "" : `"publishSucceeded":${undefined !== input.publishSucceeded ? _so76(input.publishSucceeded) : undefined}`}`)}}`; const _so76 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1752
+ return ""; return `${JSON.stringify(key)}:${`[${value.map(elem => "\"" + elem + "\"").join(",")}]`}`; }).filter(str => "" !== str).join(",")}}`; const _io1 = input => (undefined === input.overrideUserContact || "boolean" === typeof input.overrideUserContact) && (undefined === input.overrideUserLogin || "boolean" === typeof input.overrideUserLogin); const _io2 = input => undefined === input.tabs || "object" === typeof input.tabs && null !== input.tabs && false === Array.isArray(input.tabs) && _io3(input.tabs); const _io3 = input => (undefined === input.settingsPanelStore || "object" === typeof input.settingsPanelStore && null !== input.settingsPanelStore && false === Array.isArray(input.settingsPanelStore) && _io4(input.settingsPanelStore)) && Object.keys(input).every(key => {
1753
+ if (["settingsPanelStore"].some(prop => key === prop))
1754
+ return true;
1755
+ const value = input[key];
1756
+ if (undefined === value)
1757
+ return true;
1758
+ return undefined === value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io5(value);
1759
+ }); const _io4 = input => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (undefined === input.activeTab || "string" === typeof input.activeTab); const _io5 = input => undefined === input.activeTab || "string" === typeof input.activeTab; const _io6 = input => (undefined === input.defaultGrouping || "" === input.defaultGrouping || "collection" === input.defaultGrouping || "stitch" === input.defaultGrouping) && (undefined === input.hideStoryboardCollection || "boolean" === typeof input.hideStoryboardCollection) && (undefined === input.displayUploadFilesDialog || "always" === input.displayUploadFilesDialog || "never" === input.displayUploadFilesDialog || "ifMultipleFiles" === input.displayUploadFilesDialog); const _io7 = input => (undefined === input.displaySaveDialog || "boolean" === typeof input.displaySaveDialog) && (undefined === input.batchDownloadDialogMode || "file" === input.batchDownloadDialogMode || "directory" === input.batchDownloadDialogMode); const _io8 = input => (undefined === input.map || "object" === typeof input.map && null !== input.map && false === Array.isArray(input.map) && _io9(input.map)) && (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && _io11(input.createMenu)); const _io9 = input => (undefined === input.clustering || "boolean" === typeof input.clustering) && (undefined === input.zoom || "number" === typeof input.zoom) && (undefined === input.center || "object" === typeof input.center && null !== input.center && false === Array.isArray(input.center) && _io10(input.center)); const _io10 = input => (undefined === input.lat || "number" === typeof input.lat) && (undefined === input.lon || "number" === typeof input.lon); const _io11 = input => undefined === input.sortOrder || Array.isArray(input.sortOrder) && input.sortOrder.every(elem => "string" === typeof elem); const _io12 = input => undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem); const _io13 = input => (undefined === input.include || Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem)) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem)); const _io14 = input => (undefined === input.include || Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem)) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem)); const _io15 = input => (undefined === input.include || Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem)) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem)); const _io16 = input => (undefined === input.enable || "boolean" === typeof input.enable) && (undefined === input.show24Hours || "boolean" === typeof input.show24Hours) && (undefined === input.showAmPm || "boolean" === typeof input.showAmPm) && (undefined === input.showSeconds || "boolean" === typeof input.showSeconds) && (undefined === input.showDayOfWeek || "boolean" === typeof input.showDayOfWeek) && (undefined === input.showDate || "boolean" === typeof input.showDate) && (undefined === input.format || "string" === typeof input.format); const _io17 = input => (undefined === input.color || "string" === typeof input.color) && (undefined === input.name || "string" === typeof input.name); const _io18 = input => (undefined === input.maxMru || "number" === typeof input.maxMru) && (undefined === input.maxTabs || "number" === typeof input.maxTabs); const _io19 = input => (undefined === input.createMenu || "object" === typeof input.createMenu && null !== input.createMenu && false === Array.isArray(input.createMenu) && _io20(input.createMenu)) && (undefined === input.colorTags || Array.isArray(input.colorTags) && input.colorTags.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType) && (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.collapsedNodes || "object" === typeof input.collapsedNodes && null !== input.collapsedNodes && false === Array.isArray(input.collapsedNodes) && _io22(input.collapsedNodes)); const _io20 = input => (undefined === input.sortBy || "index" === input.sortBy || "title" === input.sortBy) && (undefined === input.showPreview || "boolean" === typeof input.showPreview); const _io21 = input => (null === input.name || "string" === typeof input.name) && (null === input.icon || "string" === typeof input.icon) && (null === input.color || "string" === typeof input.color) && (null === input.description || "string" === typeof input.description); const _io22 = input => Object.keys(input).every(key => {
1760
+ const value = input[key];
1761
+ if (undefined === value)
1762
+ return true;
1763
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io23(value);
1764
+ }); const _io23 = input => (undefined === input.preview || "boolean" === typeof input.preview) && (undefined === input.children || "boolean" === typeof input.children); const _io24 = input => (undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate) && (undefined === input.favorites || Array.isArray(input.favorites) && input.favorites.every(elem => "string" === typeof elem)) && (undefined === input.defaults || "object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) && _io25(input.defaults)); const _io25 = input => Object.keys(input).every(key => {
1765
+ const value = input[key];
1766
+ if (undefined === value)
1767
+ return true;
1768
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io26(value);
1769
+ }); const _io26 = input => (undefined === input.event || "string" === typeof input.event) && (undefined === input.property || "string" === typeof input.property); const _io27 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails; const _io28 = input => (undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur) && (undefined === input.float || "rundown" === input.float || "gallery" === input.float || "disabled" === input.float); const _io29 = input => (undefined === input.display || "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && _io30(input.display)) && (undefined === input.browser || "object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && _io32(input.browser)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && _io33(input.gallery)) && (undefined === input.global || "object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && _io34(input.global)) && (undefined === input.player || "object" === typeof input.player && null !== input.player && false === Array.isArray(input.player) && _io35(input.player)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && _io36(input.script)) && (undefined === input.codeEditor || "object" === typeof input.codeEditor && null !== input.codeEditor && false === Array.isArray(input.codeEditor) && _io37(input.codeEditor)) && (undefined === input.bookmarks || "object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && _io38(input.bookmarks)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && _io39(input.edit)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && _io40(input.rundown)) && (undefined === input.segment || "object" === typeof input.segment && null !== input.segment && false === Array.isArray(input.segment) && _io41(input.segment)); const _io30 = input => Object.keys(input).every(key => {
1770
+ const value = input[key];
1771
+ if (undefined === value)
1772
+ return true;
1773
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1774
+ }); const _io31 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.sequence || "string" === typeof input.sequence); const _io32 = input => Object.keys(input).every(key => {
1775
+ const value = input[key];
1776
+ if (undefined === value)
1777
+ return true;
1778
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1779
+ }); const _io33 = input => Object.keys(input).every(key => {
1780
+ const value = input[key];
1781
+ if (undefined === value)
1782
+ return true;
1783
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1784
+ }); const _io34 = input => Object.keys(input).every(key => {
1785
+ const value = input[key];
1786
+ if (undefined === value)
1787
+ return true;
1788
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1789
+ }); const _io35 = input => Object.keys(input).every(key => {
1790
+ const value = input[key];
1791
+ if (undefined === value)
1792
+ return true;
1793
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1794
+ }); const _io36 = input => Object.keys(input).every(key => {
1795
+ const value = input[key];
1796
+ if (undefined === value)
1797
+ return true;
1798
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1799
+ }); const _io37 = input => Object.keys(input).every(key => {
1800
+ const value = input[key];
1801
+ if (undefined === value)
1802
+ return true;
1803
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1804
+ }); const _io38 = input => Object.keys(input).every(key => {
1805
+ const value = input[key];
1806
+ if (undefined === value)
1807
+ return true;
1808
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1809
+ }); const _io39 = input => Object.keys(input).every(key => {
1810
+ const value = input[key];
1811
+ if (undefined === value)
1812
+ return true;
1813
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1814
+ }); const _io40 = input => Object.keys(input).every(key => {
1815
+ const value = input[key];
1816
+ if (undefined === value)
1817
+ return true;
1818
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1819
+ }); const _io41 = input => Object.keys(input).every(key => {
1820
+ const value = input[key];
1821
+ if (undefined === value)
1822
+ return true;
1823
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io31(value);
1824
+ }); const _io42 = input => (undefined === input.defaultFrameRate || "number" === typeof input.defaultFrameRate) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && _io43(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && _io44(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && _io45(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io48(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.editMode || "object" === typeof input.editMode && null !== input.editMode && false === Array.isArray(input.editMode) && _io49(input.editMode)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io50(input.transcribe)) && (null !== input.openCommand && (undefined === input.openCommand || "string" === typeof input.openCommand || "object" === typeof input.openCommand && null !== input.openCommand && false === Array.isArray(input.openCommand) && _io54(input.openCommand))); const _io43 = input => (undefined === input.mask || "boolean" === typeof input.mask) && (undefined === input.actionSafe || "boolean" === typeof input.actionSafe) && (undefined === input.titleSafe || "boolean" === typeof input.titleSafe); const _io44 = input => (undefined === input.preview || "disabled" === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress); const _io45 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine) && (undefined === input.suggestions || Array.isArray(input.suggestions) && input.suggestions.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io46(elem))) && (undefined === input.colors || Array.isArray(input.colors) && input.colors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io47(elem))); const _io46 = input => (null === input.ifAspectRatio || undefined === input.ifAspectRatio || "string" === typeof input.ifAspectRatio) && (null === input.ifLang || undefined === input.ifLang || "string" === typeof input.ifLang) && (null === input.thenStyle || undefined === input.thenStyle || "string" === typeof input.thenStyle) && (null === input.thenMaxCharactersPerLine || undefined === input.thenMaxCharactersPerLine || "number" === typeof input.thenMaxCharactersPerLine); const _io47 = input => (null === input.label || undefined === input.label || "string" === typeof input.label) && (null === input.color || undefined === input.color || "string" === typeof input.color); const _io48 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.aspectRatio || "string" === typeof input.aspectRatio); const _io49 = input => (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.defaultEnterOption || "edit" === input.defaultEnterOption || "createNew" === input.defaultEnterOption || "none" === input.defaultEnterOption) && (undefined === input.defaultExitOption || "none" === input.defaultExitOption || "update" === input.defaultExitOption || "leave" === input.defaultExitOption); const _io50 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io51(input.subtitleDisclaimer); const _io51 = input => (undefined === input.isUserConfigurable || "boolean" === typeof input.isUserConfigurable) && (undefined === input.defaultValue || "object" === typeof input.defaultValue && null !== input.defaultValue && false === Array.isArray(input.defaultValue) && _io52(input.defaultValue)); const _io52 = input => (undefined === input.enabled || false === input.enabled) && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io53(elem))) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.duration || "number" === typeof input.duration); const _io53 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.value || "string" === typeof input.value); const _io54 = input => (undefined === input.url || "string" === typeof input.url) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.app || "string" === typeof input.app) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io55 = input => (undefined === input.thumbnailView || "none" === input.thumbnailView || "filmStrip" === input.thumbnailView || "thumbnail" === input.thumbnailView) && (undefined === input.voiceOver || "object" === typeof input.voiceOver && null !== input.voiceOver && false === Array.isArray(input.voiceOver) && _io56(input.voiceOver)); const _io56 = input => (undefined === input.inputDevice || "string" === typeof input.inputDevice) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.backgroundReductionDb || "number" === typeof input.backgroundReductionDb) && (undefined === input.recordMode || "instant" === input.recordMode || "punchAndRoll" === input.recordMode) && (undefined === input.preRollDuration || "number" === typeof input.preRollDuration); const _io57 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io58 = input => (undefined === input.folded || "object" === typeof input.folded && null !== input.folded && false === Array.isArray(input.folded) && _io59(input.folded)) && (undefined === input.assets || "object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && _io60(input.assets)) && (undefined === input.pipeline || "object" === typeof input.pipeline && null !== input.pipeline && false === Array.isArray(input.pipeline) && _io64(input.pipeline)) && (undefined === input.item || "object" === typeof input.item && null !== input.item && false === Array.isArray(input.item) && _io66(input.item)); const _io59 = input => undefined === input.auto || "boolean" === typeof input.auto; const _io60 = input => (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io61(input.story)) && (undefined === input.note || "object" === typeof input.note && null !== input.note && false === Array.isArray(input.note) && _io63(input.note)); const _io61 = input => undefined === input.excerpt || "object" === typeof input.excerpt && null !== input.excerpt && false === Array.isArray(input.excerpt) && _io62(input.excerpt); const _io62 = input => (undefined === input.maxLines || "number" === typeof input.maxLines) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.comments || "boolean" === typeof input.comments); const _io63 = input => undefined === input.maxHeight || "number" === typeof input.maxHeight; const _io64 = input => (undefined === input.search || "object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) && _io65(input.search)) && (undefined === input.sortMode || true === _iv23.has(input.sortMode)); const _io65 = input => undefined === input.maxItemsDisplayed || "number" === typeof input.maxItemsDisplayed; const _io66 = input => undefined === input.maxHeight || "number" === typeof input.maxHeight; const _io67 = input => undefined === input.fontFamilies || Array.isArray(input.fontFamilies) && input.fontFamilies.every(elem => "string" === typeof elem); const _io68 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.folded || "boolean" === typeof input.folded); const _io69 = input => (undefined === input.adobe || "object" === typeof input.adobe && null !== input.adobe && false === Array.isArray(input.adobe) && _io70(input.adobe)) && (undefined === input.rive || "object" === typeof input.rive && null !== input.rive && false === Array.isArray(input.rive) && _io71(input.rive)); const _io70 = input => undefined === input.useProxies || "boolean" === typeof input.useProxies; const _io71 = input => undefined === input.template || "string" === typeof input.template; const _io72 = input => (undefined === input.collections || "boolean" === typeof input.collections) && (undefined === input.semanticSearch || "boolean" === typeof input.semanticSearch) && (undefined === input.ameRemoteRendering || "boolean" === typeof input.ameRemoteRendering); const _io73 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets); const _io74 = input => undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io75(input.events); const _io75 = input => (undefined === input.comment || Array.isArray(input.comment) && input.comment.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.assigned || Array.isArray(input.assigned) && input.assigned.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.unassigned || Array.isArray(input.unassigned) && input.unassigned.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.publishSucceeded || "object" === typeof input.publishSucceeded && null !== input.publishSucceeded && false === Array.isArray(input.publishSucceeded) && _io76(input.publishSucceeded)); const _io76 = input => Object.keys(input).every(key => {
1825
+ const value = input[key];
1826
+ if (undefined === value)
1827
+ return true;
1828
+ return Array.isArray(value) && value.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem);
1829
+ }); return input => _so0(input); })()(input);
1830
+ }
1831
+ case ":storyboard": {
1832
+ return (() => { const _so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1833
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; return input => _so0(input); })()(input);
1834
+ }
1835
+ case ":storyboard.pipelines": {
1836
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1837
+ }
1838
+ case ":subtitle-style": {
1839
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.scaledBorderAndShadow ? "" : `"scaledBorderAndShadow":${undefined !== input.scaledBorderAndShadow ? input.scaledBorderAndShadow : undefined},`}${undefined === input.futureWordWrapping ? "" : `"futureWordWrapping":${undefined !== input.futureWordWrapping ? input.futureWordWrapping : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? _so1(input.previewSettings) : undefined},`}${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? __typia_transform__jsonStringifyString._jsonStringifyString(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? __typia_transform__jsonStringifyString._jsonStringifyString(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? __typia_transform__jsonStringifyString._jsonStringifyString(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? __typia_transform__jsonStringifyString._jsonStringifyString(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? __typia_transform__jsonStringifyString._jsonStringifyString(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? __typia_transform__jsonStringifyString._jsonStringifyString(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? __typia_transform__jsonStringifyString._jsonStringifyString(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? __typia_transform__jsonStringifyString._jsonStringifyString(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? __typia_transform__jsonStringifyString._jsonStringifyString(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? __typia_transform__jsonStringifyString._jsonStringifyString(input.text) : undefined}`}`)}}`; const _io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text); return input => _so0(input); })()(input);
1840
+ }
1841
+ case ":subtitle": {
1842
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.style || "function" === typeof input.style ? "" : `"style":${undefined !== input.style ? JSON.stringify(input.style) : undefined}`}`)}}`; const _so1 = input => `{${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? __typia_transform__jsonStringifyString._jsonStringifyString(input.text) : undefined},`}"start":${input.start},"end":${input.end}}`; const _io1 = input => (undefined === input.lang || "string" === typeof input.lang) && "number" === typeof input.start && "number" === typeof input.end && (undefined === input.text || "string" === typeof input.text); return input => _so0(input); })()(input);
1843
+ }
1844
+ case ":template": {
1845
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.mixin ? "" : `"mixin":${undefined !== input.mixin ? `[${input.mixin.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1846
+ return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined}`}`)}}`; const _io1 = input => Object.keys(input).every(key => {
1847
+ const value = input[key];
1848
+ if (undefined === value)
1849
+ return true;
1850
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
1851
+ }); const _io2 = input => undefined === input.path || "string" === typeof input.path; return input => _so0(input); })()(input);
1852
+ }
1853
+ case ":_user-notification-status": {
1854
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.assignee ? "" : `"assignee":${undefined !== input.assignee ? _so1(input.assignee) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so2(input.published) : undefined},`}${undefined === input.comment ? "" : `"comment":${undefined !== input.comment ? _so3(input.comment) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? input.value : undefined}`}`)}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
1855
+ if ("boolean" === typeof input.value)
1856
+ return input.value;
1857
+ if (Array.isArray(input.value))
1858
+ return `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
1859
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1860
+ method: "typia.json.stringify",
1861
+ expected: "(Array<string> | true | undefined)",
1862
+ value: input.value
1863
+ });
1864
+ })() : undefined}`}`)}}`; const _io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); const _io2 = input => undefined === input.value || true === input.value; const _io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem)); return input => _so0(input); })()(input);
1865
+ }
1866
+ case ":user-notification": {
1867
+ return (() => { const _so0 = input => `{${undefined === input.triggerId ? "" : `"triggerId":${undefined !== input.triggerId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.triggerId) : undefined},`}"type":${"\"" + input.type + "\""},"payload":${_so1(input.payload)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"reasons":${`[${input.reasons.map(elem => "\"" + elem + "\"").join(",")}]`}}`; const _so1 = input => `{${undefined === input.actionBy ? "" : `"actionBy":${undefined !== input.actionBy ? __typia_transform__jsonStringifyString._jsonStringifyString(input.actionBy) : undefined},`}"assetId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.assetId)}}`; const _so2 = input => `{${undefined === input.triggerId ? "" : `"triggerId":${undefined !== input.triggerId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.triggerId) : undefined},`}"type":${"\"" + input.type + "\""},"payload":${_so3(input.payload)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"reasons":${`[${input.reasons.map(elem => "\"" + elem + "\"").join(",")}]`}}`; const _so3 = input => `{${undefined === input.actionBy ? "" : `"actionBy":${undefined !== input.actionBy ? __typia_transform__jsonStringifyString._jsonStringifyString(input.actionBy) : undefined},`}"assetId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.assetId)}}`; const _so4 = input => `{${undefined === input.triggerId ? "" : `"triggerId":${undefined !== input.triggerId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.triggerId) : undefined},`}"type":${"\"" + input.type + "\""},"payload":${_so5(input.payload)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"reasons":${`[${input.reasons.map(elem => "\"" + elem + "\"").join(",")}]`}}`; const _so5 = input => `{"commentId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.commentId)}}`; const _so6 = input => `{${undefined === input.triggerId ? "" : `"triggerId":${undefined !== input.triggerId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.triggerId) : undefined},`}"type":${"\"" + input.type + "\""},"payload":${_so7(input.payload)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"reasons":${`[${input.reasons.map(elem => "\"" + elem + "\"").join(",")}]`}}`; const _so7 = input => `{"searchId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.searchId)},"assetId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.assetId)}}`; const _so8 = input => `{${undefined === input.triggerId ? "" : `"triggerId":${undefined !== input.triggerId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.triggerId) : undefined},`}"type":${"\"" + input.type + "\""},"payload":${_so9(input.payload)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"timestamp":${__typia_transform__jsonStringifyString._jsonStringifyString(input.timestamp)},"reasons":${`[${input.reasons.map(elem => "\"" + elem + "\"").join(",")}]`}}`; const _so9 = input => `{${undefined === input.userId ? "" : `"userId":${undefined !== input.userId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.userId) : undefined},`}"assetId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.assetId)},"publishId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.publishId)},"connectionId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.connectionId)}}`; const _su0 = input => (() => {
1868
+ if ("publishSucceeded" === input.type)
1869
+ return _so8(input);
1870
+ else if ("added-to-search" === input.type)
1871
+ return _so6(input);
1872
+ else if ("comment" === input.type)
1873
+ return _so4(input);
1874
+ else if ("unassigned" === input.type)
1875
+ return _so2(input);
1876
+ else if ("assigned" === input.type)
1877
+ return _so0(input);
1878
+ else
1879
+ __typia_transform__throwTypeGuardError._throwTypeGuardError({
1880
+ method: "typia.json.stringify",
1881
+ expected: "(UserNotificationPublishSucceeded | UserNotificationAddedToSearch | UserNotificationComment | UserNotificationUnassigned | UserNotificationAssigned)",
1882
+ value: input
1883
+ });
1884
+ })(); const _io0 = input => "assigned" === input.type && ("object" === typeof input.payload && null !== input.payload && _io1(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io1 = input => "string" === typeof input.assetId && (undefined === input.actionBy || "string" === typeof input.actionBy); const _io2 = input => "unassigned" === input.type && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io3 = input => "string" === typeof input.assetId && (undefined === input.actionBy || "string" === typeof input.actionBy); const _io4 = input => "comment" === input.type && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io5 = input => "string" === typeof input.commentId; const _io6 = input => "added-to-search" === input.type && ("object" === typeof input.payload && null !== input.payload && _io7(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io7 = input => "string" === typeof input.searchId && "string" === typeof input.assetId; const _io8 = input => "publishSucceeded" === input.type && ("object" === typeof input.payload && null !== input.payload && _io9(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io9 = input => (undefined === input.userId || "string" === typeof input.userId) && "string" === typeof input.assetId && "string" === typeof input.publishId && "string" === typeof input.connectionId; return input => _su0(input); })()(input);
1885
+ }
1886
+ case ":user-notification.readAt": {
1887
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
1888
+ }
1889
+ case ":user": {
1890
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? __typia_transform__jsonStringifyString._jsonStringifyString(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1891
+ }
1892
+ case ":user.latestSeenNotification": {
1893
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
1894
+ }
1895
+ case ":user.receivedNotifications?": {
1896
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
1897
+ }
1898
+ case ":user.unseenNotifications?": {
1899
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.hasUnseen ? "" : `"hasUnseen":${undefined !== input.hasUnseen ? input.hasUnseen : undefined},`}${undefined === input.latestReceived ? "" : `"latestReceived":${undefined !== input.latestReceived ? __typia_transform__jsonStringifyString._jsonStringifyString(input.latestReceived) : undefined}`}`)}}`; return input => _so0(input); })()(input);
1900
+ }
1901
+ default: throw new Error("Unrecognized domain \"" + domain + "\"");
1902
+ }
1903
+ }
1904
+ }