@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.9

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 (1610) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +72 -2
  3. package/bin/build-dist.mjs +145 -0
  4. package/bin/ns-compiled-adapter.js +46 -0
  5. package/bin/ns-compiled-doctor.js +15 -0
  6. package/bin/ns-compiled-retrace.js +16 -0
  7. package/bin/ns-compiled-verify.js +15 -0
  8. package/bin/ns-compiled.js +26 -0
  9. package/bin/strip-types.js +18 -0
  10. package/config.d.ts +41 -0
  11. package/dist/adapters/active.js +59 -0
  12. package/dist/adapters/first-party.js +12 -0
  13. package/dist/adapters/framework.js +135 -0
  14. package/dist/adapters/hooks.js +115 -0
  15. package/dist/adapters/load.js +188 -0
  16. package/dist/api/adapter-api.js +2 -0
  17. package/dist/api/binding-api.js +11 -0
  18. package/dist/api/elements.js +21 -0
  19. package/dist/api/ir.js +29 -0
  20. package/dist/api/listview.js +27 -0
  21. package/dist/api/rewrite.js +98 -0
  22. package/dist/api/typescript-internal.d.ts +35 -0
  23. package/dist/cli/commands/compile-android.cjs +79 -0
  24. package/dist/cli/commands/compile-doctor.cjs +45 -0
  25. package/dist/cli/commands/compile-ios.cjs +77 -0
  26. package/dist/cli/commands/compile-retrace.cjs +40 -0
  27. package/dist/cli/commands/compile-verify.cjs +73 -0
  28. package/dist/cli/contracts.cjs +36 -0
  29. package/dist/cli/runtime.cjs +166 -0
  30. package/dist/css/css.js +118 -0
  31. package/dist/css/worker.js +242 -0
  32. package/dist/driver/cli.js +95 -0
  33. package/dist/driver/compile.js +571 -0
  34. package/dist/driver/contract.js +136 -0
  35. package/dist/driver/mirror.js +71 -0
  36. package/dist/driver/paths.js +19 -0
  37. package/dist/driver/preflight.js +206 -0
  38. package/dist/driver/toolchain.js +46 -0
  39. package/dist/driver/unimplemented.js +326 -0
  40. package/dist/kit/core-source.js +107 -0
  41. package/dist/kit/kit-index.js +105 -0
  42. package/dist/kit/manifest.js +468 -0
  43. package/dist/kit/overlay.js +56 -0
  44. package/dist/kit/swift-declarations.js +643 -0
  45. package/dist/kotlin/access.js +624 -0
  46. package/dist/kotlin/app-modules.js +111 -0
  47. package/dist/kotlin/arguments.js +397 -0
  48. package/dist/kotlin/assignment.js +226 -0
  49. package/dist/kotlin/builtins.js +575 -0
  50. package/dist/kotlin/calls.js +516 -0
  51. package/dist/kotlin/checked.js +61 -0
  52. package/dist/kotlin/class-accessors.js +129 -0
  53. package/dist/kotlin/class-constructor.js +117 -0
  54. package/dist/kotlin/class-declaration.js +308 -0
  55. package/dist/kotlin/class-fields.js +361 -0
  56. package/dist/kotlin/class-methods.js +213 -0
  57. package/dist/kotlin/classes.js +333 -0
  58. package/dist/kotlin/components.js +445 -0
  59. package/dist/kotlin/construction.js +228 -0
  60. package/dist/kotlin/control-flow.js +188 -0
  61. package/dist/kotlin/conversion.js +513 -0
  62. package/dist/kotlin/core-api.js +762 -0
  63. package/dist/kotlin/core-index.js +228 -0
  64. package/dist/kotlin/declarations.js +461 -0
  65. package/dist/kotlin/diagnostics.js +28 -0
  66. package/dist/kotlin/expression-statements.js +227 -0
  67. package/dist/kotlin/expressions.js +461 -0
  68. package/dist/kotlin/functions.js +474 -0
  69. package/dist/kotlin/global-calls.js +307 -0
  70. package/dist/kotlin/install.js +89 -0
  71. package/dist/kotlin/key-plans.js +117 -0
  72. package/dist/kotlin/kit-gen.js +581 -0
  73. package/dist/kotlin/ktfmt.js +60 -0
  74. package/dist/kotlin/library.js +62 -0
  75. package/dist/kotlin/literals.js +593 -0
  76. package/dist/kotlin/loops.js +184 -0
  77. package/dist/kotlin/mixins.js +103 -0
  78. package/dist/kotlin/modules.js +769 -0
  79. package/dist/kotlin/names.js +274 -0
  80. package/dist/kotlin/narrowing.js +180 -0
  81. package/dist/kotlin/native/api.js +117 -0
  82. package/dist/kotlin/native/bridging.js +254 -0
  83. package/dist/kotlin/native/calls.js +408 -0
  84. package/dist/kotlin/native/classfiles.js +524 -0
  85. package/dist/kotlin/native/classpath.js +32 -0
  86. package/dist/kotlin/native/conversions.js +280 -0
  87. package/dist/kotlin/native/extend.js +302 -0
  88. package/dist/kotlin/native/members.js +240 -0
  89. package/dist/kotlin/native/overloads.js +253 -0
  90. package/dist/kotlin/native/subclasses.js +378 -0
  91. package/dist/kotlin/native/types.js +421 -0
  92. package/dist/kotlin/operators.js +445 -0
  93. package/dist/kotlin/optional-chains.js +279 -0
  94. package/dist/kotlin/overrides.js +825 -0
  95. package/dist/kotlin/placement.js +746 -0
  96. package/dist/kotlin/prototype-calls.js +154 -0
  97. package/dist/kotlin/render.js +363 -0
  98. package/dist/kotlin/state-backend.js +123 -0
  99. package/dist/kotlin/statements.js +426 -0
  100. package/dist/kotlin/static-calls.js +296 -0
  101. package/dist/kotlin/syntax.js +689 -0
  102. package/dist/kotlin/translator-types.js +1 -0
  103. package/dist/kotlin/translator.js +806 -0
  104. package/dist/kotlin/type-facts.js +414 -0
  105. package/dist/kotlin/type-tests.js +250 -0
  106. package/dist/kotlin/types.js +655 -0
  107. package/dist/kotlin/untyped-values.js +354 -0
  108. package/dist/plugins/bindings-android.js +69 -0
  109. package/dist/plugins/bindings.js +93 -0
  110. package/dist/plugins/native-android.js +582 -0
  111. package/dist/plugins/native-ios.js +632 -0
  112. package/dist/plugins/resolve.js +108 -0
  113. package/dist/plugins/source.js +1040 -0
  114. package/dist/program/app-modules.js +52 -0
  115. package/dist/program/app-paths.js +60 -0
  116. package/dist/program/build-caches.js +14 -0
  117. package/dist/program/build-context.js +48 -0
  118. package/dist/program/constructor-factories.js +134 -0
  119. package/dist/program/core-facts.js +151 -0
  120. package/dist/program/core-patches.js +59 -0
  121. package/dist/program/env.js +4 -0
  122. package/dist/program/module-order.js +123 -0
  123. package/dist/program/order.js +23 -0
  124. package/dist/program/patterns.js +99 -0
  125. package/dist/program/platform.js +401 -0
  126. package/dist/program/program.js +726 -0
  127. package/dist/program/properties.js +61 -0
  128. package/dist/program/reach.js +444 -0
  129. package/dist/program/source-lines.js +268 -0
  130. package/dist/program/stable-names.js +112 -0
  131. package/dist/semantics/apis/api.js +31 -0
  132. package/dist/semantics/apis/array.js +69 -0
  133. package/dist/semantics/apis/bigint.js +53 -0
  134. package/dist/semantics/apis/console.js +29 -0
  135. package/dist/semantics/apis/date.js +7 -0
  136. package/dist/semantics/apis/globals.js +40 -0
  137. package/dist/semantics/apis/json.js +6 -0
  138. package/dist/semantics/apis/mapset.js +21 -0
  139. package/dist/semantics/apis/math.js +48 -0
  140. package/dist/semantics/apis/number.js +33 -0
  141. package/dist/semantics/apis/object.js +25 -0
  142. package/dist/semantics/apis/operators.js +316 -0
  143. package/dist/semantics/apis/promise.js +22 -0
  144. package/dist/semantics/apis/regexp.js +15 -0
  145. package/dist/semantics/apis/statics.js +61 -0
  146. package/dist/semantics/apis/string.js +45 -0
  147. package/dist/semantics/ast.js +315 -0
  148. package/dist/semantics/async.js +582 -0
  149. package/dist/semantics/class-plan.js +168 -0
  150. package/dist/semantics/classes.js +425 -0
  151. package/dist/semantics/config.js +29 -0
  152. package/dist/semantics/constant-init.js +107 -0
  153. package/dist/semantics/conversion.js +255 -0
  154. package/dist/semantics/decision-trace.js +304 -0
  155. package/dist/semantics/facts.js +433 -0
  156. package/dist/semantics/forms/by-name.js +338 -0
  157. package/dist/semantics/forms/flow.js +336 -0
  158. package/dist/semantics/forms/forms.js +311 -0
  159. package/dist/semantics/forms/observers.js +513 -0
  160. package/dist/semantics/forms/open.js +218 -0
  161. package/dist/semantics/forms/place-calls.js +387 -0
  162. package/dist/semantics/forms/placements.js +296 -0
  163. package/dist/semantics/forms/results.js +307 -0
  164. package/dist/semantics/forms/union-find.js +157 -0
  165. package/dist/semantics/globals.js +46 -0
  166. package/dist/semantics/lang/arrays.js +238 -0
  167. package/dist/semantics/lang/fields.js +211 -0
  168. package/dist/semantics/lang/members.js +277 -0
  169. package/dist/semantics/lang/prototypes.js +180 -0
  170. package/dist/semantics/lang/this-args.js +189 -0
  171. package/dist/semantics/lang.js +232 -0
  172. package/dist/semantics/ledger.js +157 -0
  173. package/dist/semantics/limits.js +11 -0
  174. package/dist/semantics/losses.js +201 -0
  175. package/dist/semantics/lowering-methods.js +42 -0
  176. package/dist/semantics/marks.js +39 -0
  177. package/dist/semantics/nullish.js +918 -0
  178. package/dist/semantics/observers.js +1 -0
  179. package/dist/semantics/placement.js +698 -0
  180. package/dist/semantics/platform-globals.js +20 -0
  181. package/dist/semantics/read-sites.js +29 -0
  182. package/dist/semantics/refusals.js +206 -0
  183. package/dist/semantics/refuse-construction.js +64 -0
  184. package/dist/semantics/refuse-receivers.js +189 -0
  185. package/dist/semantics/refuse-scope.js +82 -0
  186. package/dist/semantics/regexp.js +219 -0
  187. package/dist/semantics/result-shapes.js +203 -0
  188. package/dist/semantics/runtime.js +482 -0
  189. package/dist/semantics/shape-defined-keys.js +146 -0
  190. package/dist/semantics/shape-instance-keys.js +230 -0
  191. package/dist/semantics/shape-map.js +72 -0
  192. package/dist/semantics/shapes.js +660 -0
  193. package/dist/semantics/sharing.js +406 -0
  194. package/dist/semantics/signals.js +166 -0
  195. package/dist/semantics/spelled.js +45 -0
  196. package/dist/semantics/states/by-name.js +46 -0
  197. package/dist/semantics/states/elements.js +310 -0
  198. package/dist/semantics/states/fields.js +308 -0
  199. package/dist/semantics/states/foreign.js +208 -0
  200. package/dist/semantics/states/lenient.js +246 -0
  201. package/dist/semantics/states/missing.js +289 -0
  202. package/dist/semantics/states/nil.js +223 -0
  203. package/dist/semantics/states/parameters.js +191 -0
  204. package/dist/semantics/states/predicates.js +232 -0
  205. package/dist/semantics/states/reads.js +247 -0
  206. package/dist/semantics/states/results.js +113 -0
  207. package/dist/semantics/states/untrusted.js +141 -0
  208. package/dist/semantics/states/untyped.js +194 -0
  209. package/dist/semantics/states/value-states.js +422 -0
  210. package/dist/semantics/tdz.js +106 -0
  211. package/dist/semantics/threading.js +77 -0
  212. package/dist/semantics/throws.js +878 -0
  213. package/dist/semantics/top-names.js +59 -0
  214. package/dist/semantics/translator-methods.js +597 -0
  215. package/dist/semantics/trust.js +321 -0
  216. package/dist/semantics/type-methods.js +168 -0
  217. package/dist/semantics/type-step.js +116 -0
  218. package/dist/semantics/types.js +456 -0
  219. package/dist/semantics/worker-state.js +198 -0
  220. package/dist/swift/access.js +749 -0
  221. package/dist/swift/app-modules.js +41 -0
  222. package/dist/swift/arguments.js +236 -0
  223. package/dist/swift/assignment.js +270 -0
  224. package/dist/swift/availability.js +146 -0
  225. package/dist/swift/builtins.js +822 -0
  226. package/dist/swift/calls.js +493 -0
  227. package/dist/swift/casts.js +218 -0
  228. package/dist/swift/checked.js +433 -0
  229. package/dist/swift/class-accessors.js +139 -0
  230. package/dist/swift/class-constructor.js +139 -0
  231. package/dist/swift/class-declaration.js +282 -0
  232. package/dist/swift/class-fields.js +360 -0
  233. package/dist/swift/class-methods.js +229 -0
  234. package/dist/swift/classes.js +522 -0
  235. package/dist/swift/components.js +386 -0
  236. package/dist/swift/construction.js +287 -0
  237. package/dist/swift/control-flow.js +210 -0
  238. package/dist/swift/conversion.js +425 -0
  239. package/dist/swift/core-api.js +1068 -0
  240. package/dist/swift/declarations.js +389 -0
  241. package/dist/swift/enums.js +58 -0
  242. package/dist/swift/expression-statements.js +312 -0
  243. package/dist/swift/expressions.js +568 -0
  244. package/dist/swift/from-any.js +316 -0
  245. package/dist/swift/functions.js +487 -0
  246. package/dist/swift/generics.js +124 -0
  247. package/dist/swift/global-calls.js +217 -0
  248. package/dist/swift/install.js +109 -0
  249. package/dist/swift/key-plans.js +136 -0
  250. package/dist/swift/kit-gen.js +605 -0
  251. package/dist/swift/lenient.js +468 -0
  252. package/dist/swift/library.js +109 -0
  253. package/dist/swift/literals.js +509 -0
  254. package/dist/swift/loops.js +244 -0
  255. package/dist/swift/marks.js +212 -0
  256. package/dist/swift/members.js +253 -0
  257. package/dist/swift/method-values.js +177 -0
  258. package/dist/swift/mixins.js +113 -0
  259. package/dist/swift/modules.js +969 -0
  260. package/dist/swift/names.js +371 -0
  261. package/dist/swift/narrowing.js +170 -0
  262. package/dist/swift/native/api.js +269 -0
  263. package/dist/swift/native/bridging.js +240 -0
  264. package/dist/swift/native/calls.js +586 -0
  265. package/dist/swift/native/conversions.js +532 -0
  266. package/dist/swift/native/dispatch.js +218 -0
  267. package/dist/swift/native/members.js +416 -0
  268. package/dist/swift/native/sdk-tables.js +772 -0
  269. package/dist/swift/native/sdk-types.js +1 -0
  270. package/dist/swift/native/sdk.js +409 -0
  271. package/dist/swift/native/subclasses.js +533 -0
  272. package/dist/swift/object-classes.js +396 -0
  273. package/dist/swift/operators.js +571 -0
  274. package/dist/swift/optional-chains.js +405 -0
  275. package/dist/swift/parameters.js +210 -0
  276. package/dist/swift/placement.js +896 -0
  277. package/dist/swift/protocols.js +164 -0
  278. package/dist/swift/prototype-calls.js +227 -0
  279. package/dist/swift/render.js +385 -0
  280. package/dist/swift/results.js +370 -0
  281. package/dist/swift/state-backend.js +243 -0
  282. package/dist/swift/statements.js +505 -0
  283. package/dist/swift/static-calls.js +320 -0
  284. package/dist/swift/syntax.js +916 -0
  285. package/dist/swift/translator-types.js +1 -0
  286. package/dist/swift/translator.js +886 -0
  287. package/dist/swift/type-facts.js +539 -0
  288. package/dist/swift/type-tests.js +211 -0
  289. package/dist/swift/types.js +659 -0
  290. package/dist/targets/android/build.js +598 -0
  291. package/dist/targets/android/compose-mapping.js +218 -0
  292. package/dist/targets/android/deprecations.js +81 -0
  293. package/dist/targets/android/resources.js +80 -0
  294. package/dist/targets/ios/build.js +583 -0
  295. package/dist/targets/ios/core-native.js +149 -0
  296. package/dist/targets/ios/dependencies.js +464 -0
  297. package/dist/targets/ios/plist.js +127 -0
  298. package/dist/targets/ios/resources.js +285 -0
  299. package/dist/targets/ios/retrace.js +196 -0
  300. package/dist/targets/ios/signing.js +84 -0
  301. package/dist/targets/ios/xcodegen.js +39 -0
  302. package/dist/targets/resources.js +180 -0
  303. package/dist/template/model.js +38 -0
  304. package/dist/template/plan.js +576 -0
  305. package/dist/tools/doctor.js +172 -0
  306. package/dist/tools/retrace.js +116 -0
  307. package/dist/tools/verify.js +330 -0
  308. package/dist/types/adapter-api.d.ts +683 -0
  309. package/dist/types/binding-api.d.ts +48 -0
  310. package/dist/types/elements.d.ts +10 -0
  311. package/dist/types/ir.d.ts +245 -0
  312. package/dist/types/listview.d.ts +15 -0
  313. package/dist/types/rewrite.d.ts +18 -0
  314. package/dist/types/typescript-internal.d.ts +35 -0
  315. package/dist/xml/app.js +65 -0
  316. package/dist/xml/bindings.js +308 -0
  317. package/dist/xml/contexts.js +296 -0
  318. package/dist/xml/fold.js +170 -0
  319. package/dist/xml/keys.js +146 -0
  320. package/dist/xml/pages.js +550 -0
  321. package/dist/xml/plan.js +650 -0
  322. package/docs/CLI.md +131 -0
  323. package/docs/cli/compile-android.md +30 -0
  324. package/docs/cli/compile-doctor.md +18 -0
  325. package/docs/cli/compile-ios.md +30 -0
  326. package/docs/cli/compile-retrace.md +18 -0
  327. package/docs/cli/compile-verify.md +18 -0
  328. package/docs/cli/compile.md +15 -0
  329. package/kit-android/build.gradle.kts +65 -0
  330. package/kit-android/consumer-rules.pro +7 -0
  331. package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
  332. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
  333. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +39497 -0
  334. package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
  335. package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
  336. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
  337. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
  338. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
  339. package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
  340. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
  341. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
  342. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
  343. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
  344. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
  345. package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
  346. package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
  347. package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
  348. package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
  349. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
  350. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
  351. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
  352. package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
  353. package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
  354. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
  355. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
  356. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
  357. package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
  358. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
  359. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
  360. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
  361. package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
  362. package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
  363. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
  364. package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
  365. package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
  366. package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
  367. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
  368. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
  369. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
  370. package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
  371. package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
  372. package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
  373. package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
  374. package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
  375. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
  376. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
  377. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
  378. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
  379. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
  380. package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
  381. package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
  382. package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
  383. package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
  384. package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
  385. package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
  386. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
  387. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
  388. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
  389. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
  390. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
  391. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
  392. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
  393. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
  394. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
  395. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
  396. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
  397. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
  398. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
  399. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
  400. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
  401. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
  402. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
  403. package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
  404. package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
  405. package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
  406. package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
  407. package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
  408. package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
  409. package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
  410. package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
  411. package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
  412. package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
  413. package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
  414. package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
  415. package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
  416. package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
  417. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
  418. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
  419. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
  420. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
  421. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
  422. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
  423. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
  424. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
  425. package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
  426. package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
  427. package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
  428. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
  429. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
  430. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
  431. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
  432. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
  433. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
  434. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
  435. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
  436. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
  437. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
  438. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
  439. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
  440. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3597 -0
  441. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
  442. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
  443. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
  444. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
  445. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
  446. package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
  447. package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
  448. package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
  449. package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
  450. package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
  451. package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
  452. package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
  453. package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
  454. package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
  455. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
  456. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
  457. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
  458. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
  459. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
  460. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
  461. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
  462. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
  463. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
  464. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
  465. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
  466. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
  467. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
  468. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
  469. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
  470. package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
  471. package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
  472. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
  473. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
  474. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
  475. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
  476. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
  477. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
  478. package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
  479. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
  480. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
  481. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
  482. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
  483. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
  484. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
  485. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
  486. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
  487. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
  488. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
  489. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
  490. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
  491. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
  492. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
  493. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
  494. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
  495. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
  496. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
  497. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
  498. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
  499. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
  500. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
  501. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
  502. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
  503. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
  504. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
  505. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
  506. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
  507. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
  508. package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
  509. package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
  510. package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
  511. package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
  512. package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
  513. package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
  514. package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
  515. package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
  516. package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
  517. package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
  518. package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
  519. package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
  520. package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
  521. package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
  522. package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
  523. package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
  524. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
  525. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
  526. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
  527. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
  528. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
  529. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
  530. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
  531. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
  532. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
  533. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
  534. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
  535. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
  536. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
  537. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
  538. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
  539. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
  540. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
  541. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
  542. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
  543. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
  544. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
  545. package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
  546. package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
  547. package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
  548. package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
  549. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
  550. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
  551. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
  552. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
  553. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
  554. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
  555. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
  556. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
  557. package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
  558. package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
  559. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
  560. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
  561. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
  562. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
  563. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
  564. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
  565. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
  566. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
  567. package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
  568. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
  569. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
  570. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
  571. package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
  572. package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
  573. package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
  574. package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
  575. package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
  576. package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
  577. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
  578. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
  579. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
  580. package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
  581. package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
  582. package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
  583. package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
  584. package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
  585. package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
  586. package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
  587. package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
  588. package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
  589. package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
  590. package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
  591. package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
  592. package/kit-android/generated/manifest.json +860 -0
  593. package/kit-android/generated/source-lines.json +1 -0
  594. package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
  595. package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
  596. package/kit-android/gradlew +240 -0
  597. package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
  598. package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
  599. package/kit-android/overlays/xml-free/overlay.json +20 -0
  600. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
  601. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +302 -0
  602. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
  603. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
  604. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
  605. package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
  606. package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
  607. package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
  608. package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
  609. package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
  610. package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
  611. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
  612. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
  613. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
  614. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
  615. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
  616. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
  617. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
  618. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +668 -0
  619. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
  620. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
  621. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
  622. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
  623. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
  624. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +651 -0
  625. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
  626. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
  627. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +518 -0
  628. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
  629. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
  630. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
  631. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +292 -0
  632. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
  633. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
  634. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
  635. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
  636. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
  637. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
  638. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
  639. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
  640. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
  641. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1237 -0
  642. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
  643. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
  644. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
  645. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
  646. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
  647. package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
  648. package/kit-apple/Overlays/xml-free/overlay.json +34 -0
  649. package/kit-apple/Package.swift +17 -0
  650. package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
  651. package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
  652. package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
  653. package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
  654. package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
  655. package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
  656. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
  657. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6525 -0
  658. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4713 -0
  659. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
  660. package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
  661. package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
  662. package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
  663. package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
  664. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
  665. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
  666. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
  667. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
  668. package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
  669. package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
  670. package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
  671. package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
  672. package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
  673. package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
  674. package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
  675. package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
  676. package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
  677. package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
  678. package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
  679. package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
  680. package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
  681. package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
  682. package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
  683. package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
  684. package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
  685. package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
  686. package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
  687. package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
  688. package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
  689. package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
  690. package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
  691. package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
  692. package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
  693. package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
  694. package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
  695. package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
  696. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
  697. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
  698. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
  699. package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
  700. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
  701. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
  702. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
  703. package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
  704. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
  705. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
  706. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
  707. package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
  708. package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
  709. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
  710. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
  711. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
  712. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
  713. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
  714. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
  715. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
  716. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
  717. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
  718. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
  719. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
  720. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
  721. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
  722. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
  723. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
  724. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
  725. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
  726. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
  727. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
  728. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
  729. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
  730. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
  731. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
  732. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
  733. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
  734. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
  735. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
  736. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
  737. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
  738. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
  739. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
  740. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
  741. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
  742. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
  743. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
  744. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
  745. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
  746. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
  747. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
  748. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
  749. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
  750. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
  751. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
  752. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
  753. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
  754. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
  755. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
  756. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
  757. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
  758. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
  759. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
  760. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
  761. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
  762. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
  763. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
  764. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
  765. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
  766. package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
  767. package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
  768. package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
  769. package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
  770. package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
  771. package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
  772. package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
  773. package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
  774. package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
  775. package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
  776. package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
  777. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
  778. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
  779. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
  780. package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
  781. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
  782. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
  783. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
  784. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
  785. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
  786. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
  787. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
  788. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
  789. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
  790. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
  791. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
  792. package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
  793. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
  794. package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
  795. package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
  796. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
  797. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
  798. package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
  799. package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_91b5f3.swift +413 -0
  800. package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
  801. package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
  802. package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
  803. package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
  804. package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
  805. package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
  806. package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
  807. package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
  808. package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
  809. package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
  810. package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
  811. package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
  812. package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
  813. package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
  814. package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
  815. package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
  816. package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
  817. package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
  818. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
  819. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
  820. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
  821. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
  822. package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
  823. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
  824. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
  825. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
  826. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
  827. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
  828. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
  829. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
  830. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
  831. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
  832. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
  833. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
  834. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
  835. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
  836. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
  837. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
  838. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
  839. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
  840. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
  841. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
  842. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
  843. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
  844. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
  845. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
  846. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
  847. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
  848. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
  849. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
  850. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
  851. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
  852. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
  853. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
  854. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
  855. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
  856. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
  857. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
  858. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
  859. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
  860. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
  861. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
  862. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
  863. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
  864. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
  865. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
  866. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
  867. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
  868. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
  869. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
  870. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
  871. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
  872. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
  873. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
  874. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
  875. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
  876. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
  877. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
  878. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
  879. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
  880. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
  881. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
  882. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
  883. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
  884. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
  885. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
  886. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
  887. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
  888. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
  889. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
  890. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
  891. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
  892. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
  893. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
  894. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
  895. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
  896. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
  897. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
  898. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
  899. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
  900. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
  901. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
  902. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
  903. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
  904. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
  905. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
  906. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
  907. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
  908. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
  909. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
  910. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
  911. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
  912. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
  913. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
  914. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
  915. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
  916. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
  917. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
  918. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
  919. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
  920. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
  921. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
  922. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
  923. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
  924. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
  925. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
  926. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
  927. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
  928. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
  929. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
  930. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
  931. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
  932. package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
  933. package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
  934. package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
  935. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
  936. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
  937. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
  938. package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
  939. package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
  940. package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
  941. package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
  942. package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
  943. package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
  944. package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
  945. package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
  946. package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
  947. package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
  948. package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
  949. package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
  950. package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
  951. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
  952. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
  953. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
  954. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
  955. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
  956. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
  957. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
  958. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
  959. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
  960. package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
  961. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
  962. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
  963. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
  964. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
  965. package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
  966. package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
  967. package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
  968. package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
  969. package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
  970. package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
  971. package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
  972. package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
  973. package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
  974. package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
  975. package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
  976. package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
  977. package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
  978. package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
  979. package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
  980. package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
  981. package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
  982. package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
  983. package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
  984. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
  985. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
  986. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
  987. package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
  988. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
  989. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
  990. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
  991. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
  992. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
  993. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
  994. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
  995. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
  996. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
  997. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
  998. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
  999. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
  1000. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
  1001. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
  1002. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
  1003. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
  1004. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
  1005. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
  1006. package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
  1007. package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
  1008. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
  1009. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
  1010. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
  1011. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
  1012. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
  1013. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
  1014. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
  1015. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
  1016. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
  1017. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
  1018. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
  1019. package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
  1020. package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
  1021. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
  1022. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
  1023. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
  1024. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
  1025. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
  1026. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
  1027. package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
  1028. package/kit-apple/Sources/NativeScriptKit/Core/Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift +481 -0
  1029. package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
  1030. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
  1031. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
  1032. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
  1033. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
  1034. package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
  1035. package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
  1036. package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
  1037. package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
  1038. package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
  1039. package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
  1040. package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
  1041. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
  1042. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
  1043. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
  1044. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
  1045. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
  1046. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
  1047. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
  1048. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
  1049. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
  1050. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
  1051. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
  1052. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
  1053. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
  1054. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
  1055. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
  1056. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
  1057. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
  1058. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
  1059. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
  1060. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
  1061. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
  1062. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
  1063. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
  1064. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
  1065. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
  1066. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
  1067. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
  1068. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
  1069. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
  1070. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
  1071. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
  1072. package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
  1073. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
  1074. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
  1075. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
  1076. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
  1077. package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
  1078. package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
  1079. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
  1080. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
  1081. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
  1082. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
  1083. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
  1084. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
  1085. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
  1086. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
  1087. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
  1088. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
  1089. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
  1090. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
  1091. package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
  1092. package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
  1093. package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
  1094. package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
  1095. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
  1096. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
  1097. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
  1098. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
  1099. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
  1100. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
  1101. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
  1102. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
  1103. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
  1104. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
  1105. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
  1106. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
  1107. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
  1108. package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
  1109. package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
  1110. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
  1111. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
  1112. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
  1113. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
  1114. package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
  1115. package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
  1116. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
  1117. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
  1118. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
  1119. package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
  1120. package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
  1121. package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
  1122. package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
  1123. package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
  1124. package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
  1125. package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
  1126. package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
  1127. package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
  1128. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
  1129. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
  1130. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
  1131. package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
  1132. package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
  1133. package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
  1134. package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
  1135. package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
  1136. package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
  1137. package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
  1138. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
  1139. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
  1140. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
  1141. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
  1142. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
  1143. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
  1144. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
  1145. package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
  1146. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
  1147. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
  1148. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
  1149. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
  1150. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
  1151. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
  1152. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
  1153. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
  1154. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
  1155. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
  1156. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
  1157. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
  1158. package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
  1159. package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
  1160. package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
  1161. package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
  1162. package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
  1163. package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
  1164. package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
  1165. package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
  1166. package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
  1167. package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
  1168. package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
  1169. package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
  1170. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
  1171. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
  1172. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
  1173. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
  1174. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
  1175. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
  1176. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
  1177. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
  1178. package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
  1179. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
  1180. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
  1181. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
  1182. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
  1183. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
  1184. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
  1185. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
  1186. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
  1187. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
  1188. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
  1189. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
  1190. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
  1191. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
  1192. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
  1193. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
  1194. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
  1195. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
  1196. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
  1197. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
  1198. package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
  1199. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
  1200. package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
  1201. package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
  1202. package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
  1203. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
  1204. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
  1205. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
  1206. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
  1207. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
  1208. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
  1209. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
  1210. package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
  1211. package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
  1212. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
  1213. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
  1214. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
  1215. package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
  1216. package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
  1217. package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
  1218. package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
  1219. package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
  1220. package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
  1221. package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
  1222. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
  1223. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
  1224. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
  1225. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
  1226. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
  1227. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
  1228. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
  1229. package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
  1230. package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
  1231. package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
  1232. package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
  1233. package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
  1234. package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
  1235. package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
  1236. package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
  1237. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
  1238. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
  1239. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
  1240. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
  1241. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
  1242. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
  1243. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
  1244. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
  1245. package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
  1246. package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
  1247. package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
  1248. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
  1249. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
  1250. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
  1251. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
  1252. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
  1253. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
  1254. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
  1255. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
  1256. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
  1257. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
  1258. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
  1259. package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
  1260. package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
  1261. package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
  1262. package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
  1263. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
  1264. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
  1265. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
  1266. package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
  1267. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
  1268. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
  1269. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
  1270. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
  1271. package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
  1272. package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
  1273. package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
  1274. package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
  1275. package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
  1276. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
  1277. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
  1278. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
  1279. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
  1280. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
  1281. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
  1282. package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
  1283. package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
  1284. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
  1285. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
  1286. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
  1287. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
  1288. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
  1289. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
  1290. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
  1291. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
  1292. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
  1293. package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
  1294. package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
  1295. package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
  1296. package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
  1297. package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
  1298. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
  1299. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
  1300. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
  1301. package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
  1302. package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
  1303. package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
  1304. package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
  1305. package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
  1306. package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
  1307. package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
  1308. package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +201 -0
  1309. package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
  1310. package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
  1311. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
  1312. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
  1313. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
  1314. package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
  1315. package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
  1316. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
  1317. package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
  1318. package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
  1319. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
  1320. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
  1321. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
  1322. package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
  1323. package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
  1324. package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
  1325. package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
  1326. package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
  1327. package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
  1328. package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
  1329. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
  1330. package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
  1331. package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
  1332. package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
  1333. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
  1334. package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
  1335. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
  1336. package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
  1337. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
  1338. package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
  1339. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +700 -0
  1340. package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
  1341. package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +326 -0
  1342. package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
  1343. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
  1344. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
  1345. package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
  1346. package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
  1347. package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
  1348. package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
  1349. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
  1350. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +413 -0
  1351. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
  1352. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
  1353. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
  1354. package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
  1355. package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
  1356. package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
  1357. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
  1358. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
  1359. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30789 -0
  1360. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3383 -0
  1361. package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
  1362. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
  1363. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
  1364. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
  1365. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
  1366. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
  1367. package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
  1368. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
  1369. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
  1370. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
  1371. package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
  1372. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
  1373. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
  1374. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
  1375. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
  1376. package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
  1377. package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
  1378. package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
  1379. package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
  1380. package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
  1381. package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
  1382. package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
  1383. package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
  1384. package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
  1385. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
  1386. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
  1387. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
  1388. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
  1389. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
  1390. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
  1391. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
  1392. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
  1393. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
  1394. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
  1395. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
  1396. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
  1397. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
  1398. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
  1399. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
  1400. package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
  1401. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
  1402. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
  1403. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
  1404. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
  1405. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
  1406. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
  1407. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
  1408. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
  1409. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
  1410. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
  1411. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
  1412. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4347 -0
  1413. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
  1414. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
  1415. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
  1416. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
  1417. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
  1418. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
  1419. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
  1420. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
  1421. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
  1422. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
  1423. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
  1424. package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
  1425. package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
  1426. package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
  1427. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
  1428. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
  1429. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
  1430. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
  1431. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
  1432. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
  1433. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
  1434. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
  1435. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
  1436. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
  1437. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
  1438. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
  1439. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
  1440. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
  1441. package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
  1442. package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
  1443. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
  1444. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
  1445. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
  1446. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
  1447. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
  1448. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
  1449. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
  1450. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
  1451. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
  1452. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
  1453. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3238 -0
  1454. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
  1455. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
  1456. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
  1457. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
  1458. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
  1459. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
  1460. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
  1461. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
  1462. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
  1463. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
  1464. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
  1465. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
  1466. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
  1467. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
  1468. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
  1469. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
  1470. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
  1471. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
  1472. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
  1473. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
  1474. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
  1475. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
  1476. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
  1477. package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
  1478. package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
  1479. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
  1480. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
  1481. package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
  1482. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
  1483. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
  1484. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
  1485. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
  1486. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
  1487. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
  1488. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
  1489. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
  1490. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
  1491. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
  1492. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
  1493. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
  1494. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
  1495. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
  1496. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
  1497. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
  1498. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
  1499. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
  1500. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
  1501. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
  1502. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
  1503. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
  1504. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
  1505. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
  1506. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
  1507. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
  1508. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
  1509. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
  1510. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
  1511. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
  1512. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
  1513. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
  1514. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
  1515. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
  1516. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
  1517. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
  1518. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
  1519. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
  1520. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
  1521. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1046 -0
  1522. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
  1523. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
  1524. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
  1525. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
  1526. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
  1527. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
  1528. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
  1529. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
  1530. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
  1531. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
  1532. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
  1533. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
  1534. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
  1535. package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
  1536. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
  1537. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
  1538. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
  1539. package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
  1540. package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
  1541. package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
  1542. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
  1543. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
  1544. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
  1545. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
  1546. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
  1547. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
  1548. package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
  1549. package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
  1550. package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
  1551. package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
  1552. package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
  1553. package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
  1554. package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
  1555. package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
  1556. package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
  1557. package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
  1558. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
  1559. package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
  1560. package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +388 -0
  1561. package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
  1562. package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
  1563. package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
  1564. package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
  1565. package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
  1566. package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
  1567. package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
  1568. package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +64 -0
  1569. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1640 -0
  1570. package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
  1571. package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
  1572. package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
  1573. package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
  1574. package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
  1575. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +470 -0
  1576. package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
  1577. package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
  1578. package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +340 -0
  1579. package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +758 -0
  1580. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
  1581. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +728 -0
  1582. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
  1583. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
  1584. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +588 -0
  1585. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
  1586. package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
  1587. package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
  1588. package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
  1589. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +471 -0
  1590. package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
  1591. package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
  1592. package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +576 -0
  1593. package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
  1594. package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
  1595. package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
  1596. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
  1597. package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
  1598. package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
  1599. package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
  1600. package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
  1601. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2061 -0
  1602. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
  1603. package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
  1604. package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
  1605. package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
  1606. package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
  1607. package/package.json +94 -4
  1608. package/verify/ui-driver/Host/App.swift +7 -0
  1609. package/verify/ui-driver/Tests/Driver.swift +54 -0
  1610. package/verify/ui-driver/project.yml +35 -0
@@ -0,0 +1,4713 @@
1
+ // Generated from @nativescript/core by tools/kit: edit core, not this file.
2
+
3
+ import CFNetwork
4
+ import CoreFoundation
5
+ import CoreGraphics
6
+ import CoreServices
7
+ import CoreText
8
+ import Dispatch
9
+ import Foundation
10
+ import ObjectiveC
11
+ import Photos
12
+ import QuartzCore
13
+ import Symbols
14
+ import SystemConfiguration
15
+ import UIKit
16
+ import WebKit
17
+
18
+ public struct FunctionCell_UIViewOpt_Double_to_UIImage {
19
+ public let f: (UIView?, Double) throws -> UIImage
20
+ public static func implicit(_ value: ((UIView?, Double) throws -> UIImage)?) -> (
21
+ (UIView?, Double) throws -> UIImage
22
+ )? { value }
23
+ public static func present(_ value: ((UIView?, Double) throws -> UIImage)?) throws -> (UIView?, Double) throws ->
24
+ UIImage
25
+ {
26
+ guard let value else { throw jsNoObject() }
27
+ return value
28
+ }
29
+ public static func adapting(_ __h: @escaping (UIView?, Double) throws -> UIImage?) -> (UIView?, Double) throws ->
30
+ UIImage
31
+ {
32
+ let __i = JSFunctionAlias(cell: FunctionCell_UIViewOpt_Double_to_UIImageOpt(f: __h))
33
+ return jsIdentified(
34
+ Self(f: { (__q0: UIView?, __q1: Double) throws -> UIImage in
35
+ return try withExtendedLifetime(__i) { () throws -> UIImage in
36
+ return try jsObjectRequired(__h(__q0, __q1))
37
+ }
38
+ }), __i
39
+ ).f
40
+ }
41
+ public static func adaptingOrNil(_ __h: ((UIView?, Double) throws -> UIImage?)?) -> (
42
+ (UIView?, Double) throws -> UIImage
43
+ )? { if let __h { return adapting(__h) } else { return nil } }
44
+ public static func fromScript(_ __f: Any?) -> (UIView?, Double) throws -> UIImage {
45
+ if let __t = jsFlat(__f) as? (UIView?, Double) throws -> UIImage { return __t }
46
+ let __i = JSFunctionAlias(of: __f)
47
+ return jsIdentified(
48
+ Self(f: { (__p0: UIView?, __p1: Double) throws -> UIImage in
49
+ return try withExtendedLifetime(__i) { () throws -> UIImage in
50
+ return try (jsCastPresent(try jsCall(__f, __p0, __p1)) as UIImage)
51
+ }
52
+ }), __i
53
+ ).f
54
+ }
55
+ public static func fromScriptOrNil(_ __f: Any?) -> ((UIView?, Double) throws -> UIImage)? {
56
+ jsIsNullish(__f) ? nil : fromScript(__f)
57
+ }
58
+ }
59
+
60
+ public struct FunctionCell_UIViewOpt_Double_to_UIImageOpt {
61
+ public let f: (UIView?, Double) throws -> UIImage?
62
+ public static func implicit(_ value: ((UIView?, Double) throws -> UIImage?)?) -> (
63
+ (UIView?, Double) throws -> UIImage?
64
+ )? { value }
65
+ public static func present(_ value: ((UIView?, Double) throws -> UIImage?)?) throws -> (UIView?, Double) throws ->
66
+ UIImage?
67
+ {
68
+ guard let value else { throw jsNoObject() }
69
+ return value
70
+ }
71
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UIView?, Double) throws -> UIImage?)
72
+ -> JSFunctionObject
73
+ {
74
+ jsBoxedFunction(Self(f: __f)) {
75
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
76
+ return try __f((jsArg(__a, 0) as? UIView), (try jsConvertedNumber(jsArg(__a, 1))))
77
+ }
78
+ }
79
+ }
80
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIView?, Double) throws -> UIImage?)?)
81
+ -> JSFunctionObject?
82
+ { if let __f { return script(name, length, __f) } else { return nil } }
83
+ }
84
+
85
+ public struct FunctionCell_JSWeakRef_View_Opt_AnyOpt_to_UIAdaptivePresentationControllerDelegateImpOpt {
86
+ public let f: (JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp?
87
+ public static func implicit(
88
+ _ value: ((JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp?)?
89
+ ) -> ((JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp?)? { value }
90
+ public static func present(
91
+ _ value: ((JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp?)?
92
+ ) throws -> (JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp? {
93
+ guard let value else { throw jsNoObject() }
94
+ return value
95
+ }
96
+ public static func script(
97
+ _ name: String, _ length: Int,
98
+ _ __f: @escaping (JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp?
99
+ ) -> JSFunctionObject {
100
+ jsBoxedFunction(Self(f: __f)) {
101
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
102
+ return try __f((jsArg(__a, 0) as? JSWeakRef<View>), jsArg(__a, 1))
103
+ }
104
+ }
105
+ }
106
+ public static func scriptOrNil(
107
+ _ name: String, _ length: Int,
108
+ _ __f: ((JSWeakRef<View>?, Any?) throws -> UIAdaptivePresentationControllerDelegateImp?)?
109
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
110
+ }
111
+
112
+ public struct FunctionCell_JSWeakRef_View_Opt_AnyOpt_to_UIPopoverPresentationControllerDelegateImpOpt {
113
+ public let f: (JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp?
114
+ public static func implicit(
115
+ _ value: ((JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp?)?
116
+ ) -> ((JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp?)? { value }
117
+ public static func present(
118
+ _ value: ((JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp?)?
119
+ ) throws -> (JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp? {
120
+ guard let value else { throw jsNoObject() }
121
+ return value
122
+ }
123
+ public static func script(
124
+ _ name: String, _ length: Int,
125
+ _ __f: @escaping (JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp?
126
+ ) -> JSFunctionObject {
127
+ jsBoxedFunction(Self(f: __f)) {
128
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
129
+ return try __f((jsArg(__a, 0) as? JSWeakRef<View>), jsArg(__a, 1))
130
+ }
131
+ }
132
+ }
133
+ public static func scriptOrNil(
134
+ _ name: String, _ length: Int,
135
+ _ __f: ((JSWeakRef<View>?, Any?) throws -> UIPopoverPresentationControllerDelegateImp?)?
136
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
137
+ }
138
+
139
+ public struct FunctionCell_ViewOpt_String_to_Void {
140
+ public let f: (View?, String) throws -> Void
141
+ public static func implicit(_ value: ((View?, String) throws -> Void)?) -> ((View?, String) throws -> Void)? {
142
+ value
143
+ }
144
+ public static func present(_ value: ((View?, String) throws -> Void)?) throws -> (View?, String) throws -> Void {
145
+ guard let value else { throw jsNoObject() }
146
+ return value
147
+ }
148
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, String) throws -> Void)
149
+ -> JSFunctionObject
150
+ {
151
+ jsBoxedFunction(Self(f: __f)) {
152
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
153
+ try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsConvertedString(jsArg(__a, 1))))
154
+ return nil
155
+ }
156
+ }
157
+ }
158
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, String) throws -> Void)?)
159
+ -> JSFunctionObject?
160
+ { if let __f { return script(name, length, __f) } else { return nil } }
161
+ }
162
+
163
+ public struct FunctionCell_ViewOpt_AnyOpt_to_Void {
164
+ public let f: (View?, Any?) throws -> Void
165
+ public static func implicit(_ value: ((View?, Any?) throws -> Void)?) -> ((View?, Any?) throws -> Void)? { value }
166
+ public static func present(_ value: ((View?, Any?) throws -> Void)?) throws -> (View?, Any?) throws -> Void {
167
+ guard let value else { throw jsNoObject() }
168
+ return value
169
+ }
170
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Any?) throws -> Void)
171
+ -> JSFunctionObject
172
+ {
173
+ jsBoxedFunction(Self(f: __f)) {
174
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
175
+ try __f((try jsCast(jsArg(__a, 0), View.self)), jsArg(__a, 1))
176
+ return nil
177
+ }
178
+ }
179
+ }
180
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Any?) throws -> Void)?)
181
+ -> JSFunctionObject?
182
+ { if let __f { return script(name, length, __f) } else { return nil } }
183
+ }
184
+
185
+ public struct FunctionCell_String_AnyOpt_to_Void {
186
+ public let f: (String, Any?) throws -> Void
187
+ public static func implicit(_ value: ((String, Any?) throws -> Void)?) -> ((String, Any?) throws -> Void)? { value }
188
+ public static func present(_ value: ((String, Any?) throws -> Void)?) throws -> (String, Any?) throws -> Void {
189
+ guard let value else { throw jsNoObject() }
190
+ return value
191
+ }
192
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Any?) throws -> Void)
193
+ -> JSFunctionObject
194
+ {
195
+ jsBoxedFunction(Self(f: __f)) {
196
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
197
+ try __f((try jsConvertedString(jsArg(__a, 0))), jsArg(__a, 1))
198
+ return nil
199
+ }
200
+ }
201
+ }
202
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Any?) throws -> Void)?)
203
+ -> JSFunctionObject?
204
+ { if let __f { return script(name, length, __f) } else { return nil } }
205
+ }
206
+
207
+ public struct FunctionCell_String_BoolOpt_to_JSArray_AnyOpt_Opt {
208
+ public let f: (String, Bool?) throws -> JSArray<Any?>?
209
+ public static func implicit(_ value: ((String, Bool?) throws -> JSArray<Any?>?)?) -> (
210
+ (String, Bool?) throws -> JSArray<Any?>?
211
+ )? { value }
212
+ public static func present(_ value: ((String, Bool?) throws -> JSArray<Any?>?)?) throws -> (String, Bool?) throws ->
213
+ JSArray<Any?>?
214
+ {
215
+ guard let value else { throw jsNoObject() }
216
+ return value
217
+ }
218
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Bool?) throws -> JSArray<Any?>?)
219
+ -> JSFunctionObject
220
+ {
221
+ jsBoxedFunction(Self(f: __f)) {
222
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
223
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedBoolOrNil(jsArg(__a, 1))))
224
+ }
225
+ }
226
+ }
227
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Bool?) throws -> JSArray<Any?>?)?)
228
+ -> JSFunctionObject?
229
+ { if let __f { return script(name, length, __f) } else { return nil } }
230
+ }
231
+
232
+ public struct FunctionCell_AnyOpt_AnyOpt_to_JSObjectOpt {
233
+ public let f: (Any?, Any?) throws -> JSObject?
234
+ public static func implicit(_ value: ((Any?, Any?) throws -> JSObject?)?) -> ((Any?, Any?) throws -> JSObject?)? {
235
+ value
236
+ }
237
+ public static func present(_ value: ((Any?, Any?) throws -> JSObject?)?) throws -> (Any?, Any?) throws -> JSObject?
238
+ {
239
+ guard let value else { throw jsNoObject() }
240
+ return value
241
+ }
242
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> JSObject?)
243
+ -> JSFunctionObject
244
+ {
245
+ jsBoxedFunction(Self(f: __f)) {
246
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in return try __f(jsArg(__a, 0), jsArg(__a, 1)) }
247
+ }
248
+ }
249
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> JSObject?)?)
250
+ -> JSFunctionObject?
251
+ { if let __f { return script(name, length, __f) } else { return nil } }
252
+ }
253
+
254
+ public struct FunctionCell_AnyOpt_AnyOpt_to_AnyOpt {
255
+ public let f: (Any?, Any?) throws -> Any?
256
+ public static func implicit(_ value: ((Any?, Any?) throws -> Any?)?) -> ((Any?, Any?) throws -> Any?)? { value }
257
+ public static func present(_ value: ((Any?, Any?) throws -> Any?)?) throws -> (Any?, Any?) throws -> Any? {
258
+ guard let value else { throw jsNoObject() }
259
+ return value
260
+ }
261
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> Any?)
262
+ -> JSFunctionObject
263
+ {
264
+ jsBoxedFunction(Self(f: __f)) {
265
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in return try __f(jsArg(__a, 0), jsArg(__a, 1)) }
266
+ }
267
+ }
268
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> Any?)?)
269
+ -> JSFunctionObject?
270
+ { if let __f { return script(name, length, __f) } else { return nil } }
271
+ public static func fromScript(_ __f: Any?) -> (Any?, Any?) throws -> Any? {
272
+ if let __t = jsFlat(__f) as? (Any?, Any?) throws -> Any? { return __t }
273
+ let __i = JSFunctionAlias(of: __f)
274
+ return jsIdentified(
275
+ Self(f: { (__p0: Any?, __p1: Any?) throws -> Any? in
276
+ return try withExtendedLifetime(__i) { () throws -> Any? in return try jsCall(__f, __p0, __p1) }
277
+ }), __i
278
+ ).f
279
+ }
280
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, Any?) throws -> Any?)? {
281
+ jsIsNullish(__f) ? nil : fromScript(__f)
282
+ }
283
+ }
284
+
285
+ public struct FunctionCell_AnyOpt_AnyOpt_to_Double {
286
+ public let f: (Any?, Any?) throws -> Double
287
+ public static func implicit(_ value: ((Any?, Any?) throws -> Double)?) -> ((Any?, Any?) throws -> Double)? { value }
288
+ public static func present(_ value: ((Any?, Any?) throws -> Double)?) throws -> (Any?, Any?) throws -> Double {
289
+ guard let value else { throw jsNoObject() }
290
+ return value
291
+ }
292
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> Double)
293
+ -> JSFunctionObject
294
+ {
295
+ jsBoxedFunction(Self(f: __f)) {
296
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in return try __f(jsArg(__a, 0), jsArg(__a, 1)) }
297
+ }
298
+ }
299
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> Double)?)
300
+ -> JSFunctionObject?
301
+ { if let __f { return script(name, length, __f) } else { return nil } }
302
+ public static func fromScript(_ __f: Any?) -> (Any?, Any?) throws -> Double {
303
+ if let __t = jsFlat(__f) as? (Any?, Any?) throws -> Double { return __t }
304
+ let __i = JSFunctionAlias(of: __f)
305
+ return jsIdentified(
306
+ Self(f: { (__p0: Any?, __p1: Any?) throws -> Double in
307
+ return try withExtendedLifetime(__i) { () throws -> Double in
308
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
309
+ }
310
+ }), __i
311
+ ).f
312
+ }
313
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, Any?) throws -> Double)? {
314
+ jsIsNullish(__f) ? nil : fromScript(__f)
315
+ }
316
+ }
317
+
318
+ public struct FunctionCell_AnyOpt_AnyOpt_to_Bool {
319
+ public let f: (Any?, Any?) throws -> Bool
320
+ public static func implicit(_ value: ((Any?, Any?) throws -> Bool)?) -> ((Any?, Any?) throws -> Bool)? { value }
321
+ public static func present(_ value: ((Any?, Any?) throws -> Bool)?) throws -> (Any?, Any?) throws -> Bool {
322
+ guard let value else { throw jsNoObject() }
323
+ return value
324
+ }
325
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> Bool)
326
+ -> JSFunctionObject
327
+ {
328
+ jsBoxedFunction(Self(f: __f)) {
329
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in return try __f(jsArg(__a, 0), jsArg(__a, 1)) }
330
+ }
331
+ }
332
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> Bool)?)
333
+ -> JSFunctionObject?
334
+ { if let __f { return script(name, length, __f) } else { return nil } }
335
+ public static func fromScript(_ __f: Any?) -> (Any?, Any?) throws -> Bool {
336
+ if let __t = jsFlat(__f) as? (Any?, Any?) throws -> Bool { return __t }
337
+ let __i = JSFunctionAlias(of: __f)
338
+ return jsIdentified(
339
+ Self(f: { (__p0: Any?, __p1: Any?) throws -> Bool in
340
+ return try withExtendedLifetime(__i) { () throws -> Bool in
341
+ return (try jsConvertedBool(try jsCall(__f, __p0, __p1)))
342
+ }
343
+ }), __i
344
+ ).f
345
+ }
346
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, Any?) throws -> Bool)? {
347
+ jsIsNullish(__f) ? nil : fromScript(__f)
348
+ }
349
+ public static func declared(_ id: String, _ __h: @escaping (Any?, Any?) throws -> Bool) -> (Any?, Any?) throws ->
350
+ Bool
351
+ { jsDeclaredFunction(id, Self(f: __h)).f }
352
+ }
353
+
354
+ public struct FunctionCell_AnyOpt_JSArray_String_Opt_to_JSArray_AnyOpt_Opt {
355
+ public let f: (Any?, JSArray<String>?) throws -> JSArray<Any?>?
356
+ public static func implicit(_ value: ((Any?, JSArray<String>?) throws -> JSArray<Any?>?)?) -> (
357
+ (Any?, JSArray<String>?) throws -> JSArray<Any?>?
358
+ )? { value }
359
+ public static func present(_ value: ((Any?, JSArray<String>?) throws -> JSArray<Any?>?)?) throws -> (
360
+ Any?, JSArray<String>?
361
+ ) throws -> JSArray<Any?>? {
362
+ guard let value else { throw jsNoObject() }
363
+ return value
364
+ }
365
+ public static func script(
366
+ _ name: String, _ length: Int, _ __f: @escaping (Any?, JSArray<String>?) throws -> JSArray<Any?>?
367
+ ) -> JSFunctionObject {
368
+ jsBoxedFunction(Self(f: __f)) {
369
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
370
+ return try __f(jsArg(__a, 0), jsArrayOrNil(jsArg(__a, 1), { jsLenientString($0) }))
371
+ }
372
+ }
373
+ }
374
+ public static func scriptOrNil(
375
+ _ name: String, _ length: Int, _ __f: ((Any?, JSArray<String>?) throws -> JSArray<Any?>?)?
376
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
377
+ }
378
+
379
+ public struct FunctionCell_AnyOpt_String_to_AnyOpt {
380
+ public let f: (Any?, String) throws -> Any?
381
+ public static func implicit(_ value: ((Any?, String) throws -> Any?)?) -> ((Any?, String) throws -> Any?)? { value }
382
+ public static func present(_ value: ((Any?, String) throws -> Any?)?) throws -> (Any?, String) throws -> Any? {
383
+ guard let value else { throw jsNoObject() }
384
+ return value
385
+ }
386
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, String) throws -> Any?)
387
+ -> JSFunctionObject
388
+ {
389
+ jsBoxedFunction(Self(f: __f)) {
390
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
391
+ return try __f(jsArg(__a, 0), (try jsConvertedString(jsArg(__a, 1))))
392
+ }
393
+ }
394
+ }
395
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, String) throws -> Any?)?)
396
+ -> JSFunctionObject?
397
+ { if let __f { return script(name, length, __f) } else { return nil } }
398
+ }
399
+
400
+ public struct FunctionCell_AnyOpt_JSArray_String_Opt_to_AnyOpt {
401
+ public let f: (Any?, JSArray<String>?) throws -> Any?
402
+ public static func implicit(_ value: ((Any?, JSArray<String>?) throws -> Any?)?) -> (
403
+ (Any?, JSArray<String>?) throws -> Any?
404
+ )? { value }
405
+ public static func present(_ value: ((Any?, JSArray<String>?) throws -> Any?)?) throws -> (Any?, JSArray<String>?)
406
+ throws -> Any?
407
+ {
408
+ guard let value else { throw jsNoObject() }
409
+ return value
410
+ }
411
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, JSArray<String>?) throws -> Any?)
412
+ -> JSFunctionObject
413
+ {
414
+ jsBoxedFunction(Self(f: __f)) {
415
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
416
+ return try __f(jsArg(__a, 0), jsArrayOrNil(jsArg(__a, 1), { jsLenientString($0) }))
417
+ }
418
+ }
419
+ }
420
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, JSArray<String>?) throws -> Any?)?)
421
+ -> JSFunctionObject?
422
+ { if let __f { return script(name, length, __f) } else { return nil } }
423
+ }
424
+
425
+ public struct FunctionCell_AnyOpt_AnyOpt_to_Void {
426
+ public let f: (Any?, Any?) throws -> Void
427
+ public static func implicit(_ value: ((Any?, Any?) throws -> Void)?) -> ((Any?, Any?) throws -> Void)? { value }
428
+ public static func present(_ value: ((Any?, Any?) throws -> Void)?) throws -> (Any?, Any?) throws -> Void {
429
+ guard let value else { throw jsNoObject() }
430
+ return value
431
+ }
432
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> Void)
433
+ -> JSFunctionObject
434
+ {
435
+ jsBoxedFunction(Self(f: __f)) {
436
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
437
+ try __f(jsArg(__a, 0), jsArg(__a, 1))
438
+ return nil
439
+ }
440
+ }
441
+ }
442
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> Void)?)
443
+ -> JSFunctionObject?
444
+ { if let __f { return script(name, length, __f) } else { return nil } }
445
+ public static func fromScript(_ __f: Any?) -> (Any?, Any?) throws -> Void {
446
+ if let __t = jsFlat(__f) as? (Any?, Any?) throws -> Void { return __t }
447
+ let __i = JSFunctionAlias(of: __f)
448
+ return jsIdentified(
449
+ Self(f: { (__p0: Any?, __p1: Any?) throws -> Void in
450
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try jsCall(__f, __p0, __p1) }
451
+ }), __i
452
+ ).f
453
+ }
454
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, Any?) throws -> Void)? {
455
+ jsIsNullish(__f) ? nil : fromScript(__f)
456
+ }
457
+ public static func adapting(_ __h: @escaping (Any?, JSError?) throws -> Void) -> (Any?, Any?) throws -> Void {
458
+ let __i = JSFunctionAlias(cell: FunctionCell_AnyOpt_JSErrorOpt_to_Void(f: __h))
459
+ return jsIdentified(
460
+ Self(f: { (__q0: Any?, __q1: Any?) throws -> Void in
461
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try __h(__q0, (__q1 as? JSError)) }
462
+ }), __i
463
+ ).f
464
+ }
465
+ }
466
+
467
+ public struct FunctionCell_String_AnyOpt_to_Double {
468
+ public let f: (String, Any?) throws -> Double
469
+ public static func implicit(_ value: ((String, Any?) throws -> Double)?) -> ((String, Any?) throws -> Double)? {
470
+ value
471
+ }
472
+ public static func present(_ value: ((String, Any?) throws -> Double)?) throws -> (String, Any?) throws -> Double {
473
+ guard let value else { throw jsNoObject() }
474
+ return value
475
+ }
476
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Any?) throws -> Double)
477
+ -> JSFunctionObject
478
+ {
479
+ jsBoxedFunction(Self(f: __f)) {
480
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
481
+ return try __f((try jsConvertedString(jsArg(__a, 0))), jsArg(__a, 1))
482
+ }
483
+ }
484
+ }
485
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Any?) throws -> Double)?)
486
+ -> JSFunctionObject?
487
+ { if let __f { return script(name, length, __f) } else { return nil } }
488
+ public static func fromScript(_ __f: Any?) -> (String, Any?) throws -> Double {
489
+ if let __t = jsFlat(__f) as? (String, Any?) throws -> Double { return __t }
490
+ let __i = JSFunctionAlias(of: __f)
491
+ return jsIdentified(
492
+ Self(f: { (__p0: String, __p1: Any?) throws -> Double in
493
+ return try withExtendedLifetime(__i) { () throws -> Double in
494
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
495
+ }
496
+ }), __i
497
+ ).f
498
+ }
499
+ public static func fromScriptOrNil(_ __f: Any?) -> ((String, Any?) throws -> Double)? {
500
+ jsIsNullish(__f) ? nil : fromScript(__f)
501
+ }
502
+ }
503
+
504
+ public struct FunctionCell_String_String_to_StringOpt {
505
+ public let f: (String, String) throws -> String?
506
+ public static func implicit(_ value: ((String, String) throws -> String?)?) -> ((String, String) throws -> String?)?
507
+ { value }
508
+ public static func present(_ value: ((String, String) throws -> String?)?) throws -> (String, String) throws ->
509
+ String?
510
+ {
511
+ guard let value else { throw jsNoObject() }
512
+ return value
513
+ }
514
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, String) throws -> String?)
515
+ -> JSFunctionObject
516
+ {
517
+ jsBoxedFunction(Self(f: __f)) {
518
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
519
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
520
+ }
521
+ }
522
+ }
523
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String) throws -> String?)?)
524
+ -> JSFunctionObject?
525
+ { if let __f { return script(name, length, __f) } else { return nil } }
526
+ }
527
+
528
+ public struct FunctionCell_String_String_to_JSArray_String_Opt {
529
+ public let f: (String, String) throws -> JSArray<String>?
530
+ public static func implicit(_ value: ((String, String) throws -> JSArray<String>?)?) -> (
531
+ (String, String) throws -> JSArray<String>?
532
+ )? { value }
533
+ public static func present(_ value: ((String, String) throws -> JSArray<String>?)?) throws -> (String, String)
534
+ throws -> JSArray<String>?
535
+ {
536
+ guard let value else { throw jsNoObject() }
537
+ return value
538
+ }
539
+ public static func script(
540
+ _ name: String, _ length: Int, _ __f: @escaping (String, String) throws -> JSArray<String>?
541
+ ) -> JSFunctionObject {
542
+ jsBoxedFunction(Self(f: __f)) {
543
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
544
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
545
+ }
546
+ }
547
+ }
548
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String) throws -> JSArray<String>?)?)
549
+ -> JSFunctionObject?
550
+ { if let __f { return script(name, length, __f) } else { return nil } }
551
+ }
552
+
553
+ public struct FunctionCell_String_StringOpt_to_AnyOpt {
554
+ public let f: (String, String?) throws -> Any?
555
+ public static func implicit(_ value: ((String, String?) throws -> Any?)?) -> ((String, String?) throws -> Any?)? {
556
+ value
557
+ }
558
+ public static func present(_ value: ((String, String?) throws -> Any?)?) throws -> (String, String?) throws -> Any?
559
+ {
560
+ guard let value else { throw jsNoObject() }
561
+ return value
562
+ }
563
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, String?) throws -> Any?)
564
+ -> JSFunctionObject
565
+ {
566
+ jsBoxedFunction(Self(f: __f)) {
567
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
568
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedStringOrNil(jsArg(__a, 1))))
569
+ }
570
+ }
571
+ }
572
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String?) throws -> Any?)?)
573
+ -> JSFunctionObject?
574
+ { if let __f { return script(name, length, __f) } else { return nil } }
575
+ }
576
+
577
+ public struct FunctionCell_String_to_AnyOpt_Opt_to_AnyOpt {
578
+ public let f: (String, (() throws -> Any?)?) throws -> Any?
579
+ public static func implicit(_ value: ((String, (() throws -> Any?)?) throws -> Any?)?) -> (
580
+ (String, (() throws -> Any?)?) throws -> Any?
581
+ )? { value }
582
+ public static func present(_ value: ((String, (() throws -> Any?)?) throws -> Any?)?) throws -> (
583
+ String, (() throws -> Any?)?
584
+ ) throws -> Any? {
585
+ guard let value else { throw jsNoObject() }
586
+ return value
587
+ }
588
+ public static func adapting(_ __h: @escaping () throws -> Void) -> (String, (() throws -> Any?)?) throws -> Any? {
589
+ let __i = JSFunctionAlias(cell: FunctionCell_none_to_Void(f: __h))
590
+ return jsIdentified(
591
+ Self(f: { (__q0: String, __q1: (() throws -> Any?)?) throws -> Any? in
592
+ return try withExtendedLifetime(__i) { () throws -> Any? in
593
+ try __h()
594
+ return nil
595
+ }
596
+ }), __i
597
+ ).f
598
+ }
599
+ public static func adaptingOrNil(_ __h: (() throws -> Void)?) -> ((String, (() throws -> Any?)?) throws -> Any?)? {
600
+ if let __h { return adapting(__h) } else { return nil }
601
+ }
602
+ public static func fromScript(_ __f: Any?) -> (String, (() throws -> Any?)?) throws -> Any? {
603
+ if let __t = jsFlat(__f) as? (String, (() throws -> Any?)?) throws -> Any? { return __t }
604
+ let __i = JSFunctionAlias(of: __f)
605
+ return jsIdentified(
606
+ Self(f: { (__p0: String, __p1: (() throws -> Any?)?) throws -> Any? in
607
+ return try withExtendedLifetime(__i) { () throws -> Any? in
608
+ return try jsCall(__f, __p0, FunctionCell_none_to_AnyOpt.scriptOrNil("", 0, __p1))
609
+ }
610
+ }), __i
611
+ ).f
612
+ }
613
+ public static func fromScriptOrNil(_ __f: Any?) -> ((String, (() throws -> Any?)?) throws -> Any?)? {
614
+ jsIsNullish(__f) ? nil : fromScript(__f)
615
+ }
616
+ public static func script(
617
+ _ name: String, _ length: Int, _ __f: @escaping (String, (() throws -> Any?)?) throws -> Any?
618
+ ) -> JSFunctionObject {
619
+ jsBoxedFunction(Self(f: __f)) {
620
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
621
+ return try __f(
622
+ (try jsConvertedString(jsArg(__a, 0))), FunctionCell_none_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1)))
623
+ }
624
+ }
625
+ }
626
+ public static func scriptOrNil(
627
+ _ name: String, _ length: Int, _ __f: ((String, (() throws -> Any?)?) throws -> Any?)?
628
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
629
+ }
630
+
631
+ public struct FunctionCell_String_JSRecord_AnyOpt_Opt_to_Void {
632
+ public let f: (String, JSRecord<Any?>?) throws -> Void
633
+ public static func implicit(_ value: ((String, JSRecord<Any?>?) throws -> Void)?) -> (
634
+ (String, JSRecord<Any?>?) throws -> Void
635
+ )? { value }
636
+ public static func present(_ value: ((String, JSRecord<Any?>?) throws -> Void)?) throws -> (String, JSRecord<Any?>?)
637
+ throws -> Void
638
+ {
639
+ guard let value else { throw jsNoObject() }
640
+ return value
641
+ }
642
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, JSRecord<Any?>?) throws -> Void)
643
+ -> JSFunctionObject
644
+ {
645
+ jsBoxedFunction(Self(f: __f)) {
646
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
647
+ try __f(
648
+ (try jsConvertedString(jsArg(__a, 0))),
649
+ jsRecordOrNil(jsArg(__a, 1), as: JSRecord<Any?>.self, { $0 }))
650
+ return nil
651
+ }
652
+ }
653
+ }
654
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, JSRecord<Any?>?) throws -> Void)?)
655
+ -> JSFunctionObject?
656
+ { if let __f { return script(name, length, __f) } else { return nil } }
657
+ }
658
+
659
+ public struct FunctionCell_JSErrorOpt_AnyOpt_to_Void {
660
+ public let f: (JSError?, Any?) throws -> Void
661
+ public static func implicit(_ value: ((JSError?, Any?) throws -> Void)?) -> ((JSError?, Any?) throws -> Void)? {
662
+ value
663
+ }
664
+ public static func present(_ value: ((JSError?, Any?) throws -> Void)?) throws -> (JSError?, Any?) throws -> Void {
665
+ guard let value else { throw jsNoObject() }
666
+ return value
667
+ }
668
+ }
669
+
670
+ public struct FunctionCell_JSErrorOpt_AnyOpt_to_JSError {
671
+ public let f: (JSError?, Any?) throws -> JSError
672
+ public static func implicit(_ value: ((JSError?, Any?) throws -> JSError)?) -> ((JSError?, Any?) throws -> JSError)?
673
+ { value }
674
+ public static func present(_ value: ((JSError?, Any?) throws -> JSError)?) throws -> (JSError?, Any?) throws ->
675
+ JSError
676
+ {
677
+ guard let value else { throw jsNoObject() }
678
+ return value
679
+ }
680
+ public static func adapting(_ __h: @escaping (JSError?, Any?) throws -> JSError?) -> (JSError?, Any?) throws ->
681
+ JSError
682
+ {
683
+ let __i = JSFunctionAlias(cell: FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt(f: __h))
684
+ return jsIdentified(
685
+ Self(f: { (__q0: JSError?, __q1: Any?) throws -> JSError in
686
+ return try withExtendedLifetime(__i) { () throws -> JSError in
687
+ return try jsObjectRequired(__h(__q0, __q1))
688
+ }
689
+ }), __i
690
+ ).f
691
+ }
692
+ public static func adaptingOrNil(_ __h: ((JSError?, Any?) throws -> JSError?)?) -> (
693
+ (JSError?, Any?) throws -> JSError
694
+ )? { if let __h { return adapting(__h) } else { return nil } }
695
+ public static func fromScript(_ __f: Any?) -> (JSError?, Any?) throws -> JSError {
696
+ if let __t = jsFlat(__f) as? (JSError?, Any?) throws -> JSError { return __t }
697
+ let __i = JSFunctionAlias(of: __f)
698
+ return jsIdentified(
699
+ Self(f: { (__p0: JSError?, __p1: Any?) throws -> JSError in
700
+ return try withExtendedLifetime(__i) { () throws -> JSError in
701
+ return try (jsCastPresent(try jsCall(__f, __p0, __p1)) as JSError)
702
+ }
703
+ }), __i
704
+ ).f
705
+ }
706
+ public static func fromScriptOrNil(_ __f: Any?) -> ((JSError?, Any?) throws -> JSError)? {
707
+ jsIsNullish(__f) ? nil : fromScript(__f)
708
+ }
709
+ }
710
+
711
+ public struct FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt {
712
+ public let f: (JSError?, Any?) throws -> JSError?
713
+ public static func implicit(_ value: ((JSError?, Any?) throws -> JSError?)?) -> (
714
+ (JSError?, Any?) throws -> JSError?
715
+ )? { value }
716
+ public static func present(_ value: ((JSError?, Any?) throws -> JSError?)?) throws -> (JSError?, Any?) throws ->
717
+ JSError?
718
+ {
719
+ guard let value else { throw jsNoObject() }
720
+ return value
721
+ }
722
+ public static func declared(_ id: String, _ __h: @escaping (JSError?, Any?) throws -> JSError?) -> (JSError?, Any?)
723
+ throws -> JSError?
724
+ { jsDeclaredFunction(id, Self(f: __h)).f }
725
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (JSError?, Any?) throws -> JSError?)
726
+ -> JSFunctionObject
727
+ {
728
+ jsBoxedFunction(Self(f: __f)) {
729
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
730
+ return try __f((jsArg(__a, 0) as? JSError), jsArg(__a, 1))
731
+ }
732
+ }
733
+ }
734
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((JSError?, Any?) throws -> JSError?)?)
735
+ -> JSFunctionObject?
736
+ { if let __f { return script(name, length, __f) } else { return nil } }
737
+ }
738
+
739
+ public struct FunctionCell_String_String_to_Void {
740
+ public let f: (String, String) throws -> Void
741
+ public static func implicit(_ value: ((String, String) throws -> Void)?) -> ((String, String) throws -> Void)? {
742
+ value
743
+ }
744
+ public static func present(_ value: ((String, String) throws -> Void)?) throws -> (String, String) throws -> Void {
745
+ guard let value else { throw jsNoObject() }
746
+ return value
747
+ }
748
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, String) throws -> Void)
749
+ -> JSFunctionObject
750
+ {
751
+ jsBoxedFunction(Self(f: __f)) {
752
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
753
+ try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
754
+ return nil
755
+ }
756
+ }
757
+ }
758
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String) throws -> Void)?)
759
+ -> JSFunctionObject?
760
+ { if let __f { return script(name, length, __f) } else { return nil } }
761
+ }
762
+
763
+ public struct FunctionCell_String_AnyOpt_to_Bool {
764
+ public let f: (String, Any?) throws -> Bool
765
+ public static func implicit(_ value: ((String, Any?) throws -> Bool)?) -> ((String, Any?) throws -> Bool)? { value }
766
+ public static func present(_ value: ((String, Any?) throws -> Bool)?) throws -> (String, Any?) throws -> Bool {
767
+ guard let value else { throw jsNoObject() }
768
+ return value
769
+ }
770
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Any?) throws -> Bool)
771
+ -> JSFunctionObject
772
+ {
773
+ jsBoxedFunction(Self(f: __f)) {
774
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
775
+ return try __f((try jsConvertedString(jsArg(__a, 0))), jsArg(__a, 1))
776
+ }
777
+ }
778
+ }
779
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Any?) throws -> Bool)?)
780
+ -> JSFunctionObject?
781
+ { if let __f { return script(name, length, __f) } else { return nil } }
782
+ }
783
+
784
+ public struct FunctionCell_ViewOpt_NativeWindowOpt_to_Void {
785
+ public let f: (View?, NativeWindow?) throws -> Void
786
+ public static func implicit(_ value: ((View?, NativeWindow?) throws -> Void)?) -> (
787
+ (View?, NativeWindow?) throws -> Void
788
+ )? { value }
789
+ public static func present(_ value: ((View?, NativeWindow?) throws -> Void)?) throws -> (View?, NativeWindow?)
790
+ throws -> Void
791
+ {
792
+ guard let value else { throw jsNoObject() }
793
+ return value
794
+ }
795
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, NativeWindow?) throws -> Void)
796
+ -> JSFunctionObject
797
+ {
798
+ jsBoxedFunction(Self(f: __f)) {
799
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
800
+ try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsCast(jsArg(__a, 1), NativeWindow.self)))
801
+ return nil
802
+ }
803
+ }
804
+ }
805
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, NativeWindow?) throws -> Void)?)
806
+ -> JSFunctionObject?
807
+ { if let __f { return script(name, length, __f) } else { return nil } }
808
+ }
809
+
810
+ public struct FunctionCell_String_BoolOpt_to_Void {
811
+ public let f: (String, Bool?) throws -> Void
812
+ public static func implicit(_ value: ((String, Bool?) throws -> Void)?) -> ((String, Bool?) throws -> Void)? {
813
+ value
814
+ }
815
+ public static func present(_ value: ((String, Bool?) throws -> Void)?) throws -> (String, Bool?) throws -> Void {
816
+ guard let value else { throw jsNoObject() }
817
+ return value
818
+ }
819
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Bool?) throws -> Void)
820
+ -> JSFunctionObject
821
+ {
822
+ jsBoxedFunction(Self(f: __f)) {
823
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
824
+ try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedBoolOrNil(jsArg(__a, 1))))
825
+ return nil
826
+ }
827
+ }
828
+ }
829
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Bool?) throws -> Void)?)
830
+ -> JSFunctionObject?
831
+ { if let __f { return script(name, length, __f) } else { return nil } }
832
+ }
833
+
834
+ public struct FunctionCell_Bool_AnyOpt_to_Void {
835
+ public let f: (Bool, Any?) throws -> Void
836
+ public static func implicit(_ value: ((Bool, Any?) throws -> Void)?) -> ((Bool, Any?) throws -> Void)? { value }
837
+ public static func present(_ value: ((Bool, Any?) throws -> Void)?) throws -> (Bool, Any?) throws -> Void {
838
+ guard let value else { throw jsNoObject() }
839
+ return value
840
+ }
841
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Bool, Any?) throws -> Void)
842
+ -> JSFunctionObject
843
+ {
844
+ jsBoxedFunction(Self(f: __f)) {
845
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
846
+ try __f((try jsConvertedBool(jsArg(__a, 0))), jsArg(__a, 1))
847
+ return nil
848
+ }
849
+ }
850
+ }
851
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Bool, Any?) throws -> Void)?)
852
+ -> JSFunctionObject?
853
+ { if let __f { return script(name, length, __f) } else { return nil } }
854
+ }
855
+
856
+ public struct FunctionCell_UIWindowSceneOpt_UIWindowOpt_to_Void {
857
+ public let f: (UIWindowScene?, UIWindow?) throws -> Void
858
+ public static func implicit(_ value: ((UIWindowScene?, UIWindow?) throws -> Void)?) -> (
859
+ (UIWindowScene?, UIWindow?) throws -> Void
860
+ )? { value }
861
+ public static func present(_ value: ((UIWindowScene?, UIWindow?) throws -> Void)?) throws -> (
862
+ UIWindowScene?, UIWindow?
863
+ ) throws -> Void {
864
+ guard let value else { throw jsNoObject() }
865
+ return value
866
+ }
867
+ public static func script(
868
+ _ name: String, _ length: Int, _ __f: @escaping (UIWindowScene?, UIWindow?) throws -> Void
869
+ ) -> JSFunctionObject {
870
+ jsBoxedFunction(Self(f: __f)) {
871
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
872
+ try __f((jsArg(__a, 0) as? UIWindowScene), (jsArg(__a, 1) as? UIWindow))
873
+ return nil
874
+ }
875
+ }
876
+ }
877
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIWindowScene?, UIWindow?) throws -> Void)?)
878
+ -> JSFunctionObject?
879
+ { if let __f { return script(name, length, __f) } else { return nil } }
880
+ }
881
+
882
+ public struct FunctionCell_UIApplicationOpt_NSSetOpt_to_Void {
883
+ public let f: (UIApplication?, NSSet?) throws -> Void
884
+ public static func implicit(_ value: ((UIApplication?, NSSet?) throws -> Void)?) -> (
885
+ (UIApplication?, NSSet?) throws -> Void
886
+ )? { value }
887
+ public static func present(_ value: ((UIApplication?, NSSet?) throws -> Void)?) throws -> (UIApplication?, NSSet?)
888
+ throws -> Void
889
+ {
890
+ guard let value else { throw jsNoObject() }
891
+ return value
892
+ }
893
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UIApplication?, NSSet?) throws -> Void)
894
+ -> JSFunctionObject
895
+ {
896
+ jsBoxedFunction(Self(f: __f)) {
897
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
898
+ try __f((jsArg(__a, 0) as? UIApplication), (jsArg(__a, 1) as? NSSet))
899
+ return nil
900
+ }
901
+ }
902
+ }
903
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIApplication?, NSSet?) throws -> Void)?)
904
+ -> JSFunctionObject?
905
+ { if let __f { return script(name, length, __f) } else { return nil } }
906
+ }
907
+
908
+ public struct FunctionCell_String_NSNotificationOpt_to_Void_to_NotificationObserverOpt {
909
+ public let f: (String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver?
910
+ public static func implicit(
911
+ _ value: ((String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver?)?
912
+ ) -> ((String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver?)? { value }
913
+ public static func present(
914
+ _ value: ((String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver?)?
915
+ ) throws -> (String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver? {
916
+ guard let value else { throw jsNoObject() }
917
+ return value
918
+ }
919
+ public static func script(
920
+ _ name: String, _ length: Int,
921
+ _ __f: @escaping (String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver?
922
+ ) -> JSFunctionObject {
923
+ jsBoxedFunction(Self(f: __f)) {
924
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
925
+ return try __f(
926
+ (try jsConvertedString(jsArg(__a, 0))),
927
+ try FunctionCell_NSNotificationOpt_to_Void.present(
928
+ FunctionCell_NSNotificationOpt_to_Void.fromScriptOrNil(jsArg(__a, 1))))
929
+ }
930
+ }
931
+ }
932
+ public static func scriptOrNil(
933
+ _ name: String, _ length: Int,
934
+ _ __f: ((String, @escaping (NSNotification?) throws -> Void) throws -> NotificationObserver?)?
935
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
936
+ }
937
+
938
+ public struct FunctionCell_AnyOpt_String_to_Void {
939
+ public let f: (Any?, String) throws -> Void
940
+ public static func implicit(_ value: ((Any?, String) throws -> Void)?) -> ((Any?, String) throws -> Void)? { value }
941
+ public static func present(_ value: ((Any?, String) throws -> Void)?) throws -> (Any?, String) throws -> Void {
942
+ guard let value else { throw jsNoObject() }
943
+ return value
944
+ }
945
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, String) throws -> Void)
946
+ -> JSFunctionObject
947
+ {
948
+ jsBoxedFunction(Self(f: __f)) {
949
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
950
+ try __f(jsArg(__a, 0), (try jsConvertedString(jsArg(__a, 1))))
951
+ return nil
952
+ }
953
+ }
954
+ }
955
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, String) throws -> Void)?)
956
+ -> JSFunctionObject?
957
+ { if let __f { return script(name, length, __f) } else { return nil } }
958
+ public static func fromScript(_ __f: Any?) -> (Any?, String) throws -> Void {
959
+ if let __t = jsFlat(__f) as? (Any?, String) throws -> Void { return __t }
960
+ let __i = JSFunctionAlias(of: __f)
961
+ return jsIdentified(
962
+ Self(f: { (__p0: Any?, __p1: String) throws -> Void in
963
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try jsCall(__f, __p0, __p1) }
964
+ }), __i
965
+ ).f
966
+ }
967
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, String) throws -> Void)? {
968
+ jsIsNullish(__f) ? nil : fromScript(__f)
969
+ }
970
+ }
971
+
972
+ public struct FunctionCell_UIWindowOpt_ViewOpt_to_Void {
973
+ public let f: (UIWindow?, View?) throws -> Void
974
+ public static func implicit(_ value: ((UIWindow?, View?) throws -> Void)?) -> ((UIWindow?, View?) throws -> Void)? {
975
+ value
976
+ }
977
+ public static func present(_ value: ((UIWindow?, View?) throws -> Void)?) throws -> (UIWindow?, View?) throws ->
978
+ Void
979
+ {
980
+ guard let value else { throw jsNoObject() }
981
+ return value
982
+ }
983
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UIWindow?, View?) throws -> Void)
984
+ -> JSFunctionObject
985
+ {
986
+ jsBoxedFunction(Self(f: __f)) {
987
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
988
+ try __f((jsArg(__a, 0) as? UIWindow), (try jsCast(jsArg(__a, 1), View.self)))
989
+ return nil
990
+ }
991
+ }
992
+ }
993
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIWindow?, View?) throws -> Void)?)
994
+ -> JSFunctionObject?
995
+ { if let __f { return script(name, length, __f) } else { return nil } }
996
+ }
997
+
998
+ public struct FunctionCell_JSArray_String_Opt_String_to_Void {
999
+ public let f: (JSArray<String>?, String) throws -> Void
1000
+ public static func implicit(_ value: ((JSArray<String>?, String) throws -> Void)?) -> (
1001
+ (JSArray<String>?, String) throws -> Void
1002
+ )? { value }
1003
+ public static func present(_ value: ((JSArray<String>?, String) throws -> Void)?) throws -> (
1004
+ JSArray<String>?, String
1005
+ ) throws -> Void {
1006
+ guard let value else { throw jsNoObject() }
1007
+ return value
1008
+ }
1009
+ public static func declared(_ id: String, _ __h: @escaping (JSArray<String>?, String) throws -> Void) -> (
1010
+ JSArray<String>?, String
1011
+ ) throws -> Void { jsDeclaredFunction(id, Self(f: __h)).f }
1012
+ }
1013
+
1014
+ public struct FunctionCell_Bool_AnyOpt_to_Void_to_Void {
1015
+ public let f: (Bool, @escaping (Any?) throws -> Void) throws -> Void
1016
+ public static func implicit(_ value: ((Bool, @escaping (Any?) throws -> Void) throws -> Void)?) -> (
1017
+ (Bool, @escaping (Any?) throws -> Void) throws -> Void
1018
+ )? { value }
1019
+ public static func present(_ value: ((Bool, @escaping (Any?) throws -> Void) throws -> Void)?) throws -> (
1020
+ Bool, @escaping (Any?) throws -> Void
1021
+ ) throws -> Void {
1022
+ guard let value else { throw jsNoObject() }
1023
+ return value
1024
+ }
1025
+ public static func declared(_ id: String, _ __h: @escaping (Bool, @escaping (Any?) throws -> Void) throws -> Void)
1026
+ -> (Bool, @escaping (Any?) throws -> Void) throws -> Void
1027
+ { jsDeclaredFunction(id, Self(f: __h)).f }
1028
+ }
1029
+
1030
+ public struct FunctionCell_Bool_AnyOpt_to_Void_Opt_to_Void {
1031
+ public let f: (Bool, ((Any?) throws -> Void)?) throws -> Void
1032
+ public static func implicit(_ value: ((Bool, ((Any?) throws -> Void)?) throws -> Void)?) -> (
1033
+ (Bool, ((Any?) throws -> Void)?) throws -> Void
1034
+ )? { value }
1035
+ public static func present(_ value: ((Bool, ((Any?) throws -> Void)?) throws -> Void)?) throws -> (
1036
+ Bool, ((Any?) throws -> Void)?
1037
+ ) throws -> Void {
1038
+ guard let value else { throw jsNoObject() }
1039
+ return value
1040
+ }
1041
+ public static func adapting(_ __h: @escaping (Bool, @escaping (Any?) throws -> Void) throws -> Void) -> (
1042
+ Bool, ((Any?) throws -> Void)?
1043
+ ) throws -> Void {
1044
+ let __i = JSFunctionAlias(cell: FunctionCell_Bool_AnyOpt_to_Void_to_Void(f: __h))
1045
+ return jsIdentified(
1046
+ Self(f: { (__q0: Bool, __q1: ((Any?) throws -> Void)?) throws -> Void in
1047
+ try withExtendedLifetime(__i) { () throws -> Void in
1048
+ _ = try __h(__q0, jsCallable(FunctionCell_AnyOpt_to_Void.adaptingOrNil(__q1), "callback"))
1049
+ }
1050
+ }), __i
1051
+ ).f
1052
+ }
1053
+ }
1054
+
1055
+ public struct FunctionCell_Double_AnyOpt_to_Void {
1056
+ public let f: (Double, Any?) throws -> Void
1057
+ public static func implicit(_ value: ((Double, Any?) throws -> Void)?) -> ((Double, Any?) throws -> Void)? { value }
1058
+ public static func present(_ value: ((Double, Any?) throws -> Void)?) throws -> (Double, Any?) throws -> Void {
1059
+ guard let value else { throw jsNoObject() }
1060
+ return value
1061
+ }
1062
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Any?) throws -> Void)
1063
+ -> JSFunctionObject
1064
+ {
1065
+ jsBoxedFunction(Self(f: __f)) {
1066
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1067
+ try __f((try jsConvertedNumber(jsArg(__a, 0))), jsArg(__a, 1))
1068
+ return nil
1069
+ }
1070
+ }
1071
+ }
1072
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Any?) throws -> Void)?)
1073
+ -> JSFunctionObject?
1074
+ { if let __f { return script(name, length, __f) } else { return nil } }
1075
+ }
1076
+
1077
+ public struct FunctionCell_DoubleOpt_DoubleOpt_to_ObservableArrayOpt {
1078
+ public let f: (Double?, Double?) throws -> ObservableArray?
1079
+ public static func implicit(_ value: ((Double?, Double?) throws -> ObservableArray?)?) -> (
1080
+ (Double?, Double?) throws -> ObservableArray?
1081
+ )? { value }
1082
+ public static func present(_ value: ((Double?, Double?) throws -> ObservableArray?)?) throws -> (Double?, Double?)
1083
+ throws -> ObservableArray?
1084
+ {
1085
+ guard let value else { throw jsNoObject() }
1086
+ return value
1087
+ }
1088
+ public static func script(
1089
+ _ name: String, _ length: Int, _ __f: @escaping (Double?, Double?) throws -> ObservableArray?
1090
+ ) -> JSFunctionObject {
1091
+ jsBoxedFunction(Self(f: __f)) {
1092
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1093
+ return try __f((try jsConvertedNumberOrNil(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
1094
+ }
1095
+ }
1096
+ }
1097
+ public static func scriptOrNil(
1098
+ _ name: String, _ length: Int, _ __f: ((Double?, Double?) throws -> ObservableArray?)?
1099
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1100
+ }
1101
+
1102
+ public struct FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt_AnyOpt_to_AnyOpt {
1103
+ public let f: (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?
1104
+ public static func implicit(
1105
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)?
1106
+ ) -> ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)? { value }
1107
+ public static func present(
1108
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)?
1109
+ ) throws -> (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any? {
1110
+ guard let value else { throw jsNoObject() }
1111
+ return value
1112
+ }
1113
+ public static func script(
1114
+ _ name: String, _ length: Int,
1115
+ _ __f: @escaping (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?
1116
+ ) -> JSFunctionObject {
1117
+ jsBoxedFunction(Self(f: __f)) {
1118
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1119
+ return try __f(
1120
+ try FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.present(
1121
+ FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 0))),
1122
+ jsArg(__a, 1))
1123
+ }
1124
+ }
1125
+ }
1126
+ public static func scriptOrNil(
1127
+ _ name: String, _ length: Int,
1128
+ _ __f: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)?
1129
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1130
+ }
1131
+
1132
+ public struct FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt_AnyOpt_to_Double {
1133
+ public let f: (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double
1134
+ public static func implicit(
1135
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double)?
1136
+ ) -> ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double)? { value }
1137
+ public static func present(
1138
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double)?
1139
+ ) throws -> (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double {
1140
+ guard let value else { throw jsNoObject() }
1141
+ return value
1142
+ }
1143
+ public static func script(
1144
+ _ name: String, _ length: Int,
1145
+ _ __f: @escaping (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double
1146
+ ) -> JSFunctionObject {
1147
+ jsBoxedFunction(Self(f: __f)) {
1148
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1149
+ return try __f(
1150
+ try FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.present(
1151
+ FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 0))),
1152
+ jsArg(__a, 1))
1153
+ }
1154
+ }
1155
+ }
1156
+ public static func scriptOrNil(
1157
+ _ name: String, _ length: Int,
1158
+ _ __f: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Double)?
1159
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1160
+ }
1161
+
1162
+ public struct FunctionCell_AnyOpt_DoubleOpt_to_Bool {
1163
+ public let f: (Any?, Double?) throws -> Bool
1164
+ public static func implicit(_ value: ((Any?, Double?) throws -> Bool)?) -> ((Any?, Double?) throws -> Bool)? {
1165
+ value
1166
+ }
1167
+ public static func present(_ value: ((Any?, Double?) throws -> Bool)?) throws -> (Any?, Double?) throws -> Bool {
1168
+ guard let value else { throw jsNoObject() }
1169
+ return value
1170
+ }
1171
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Double?) throws -> Bool)
1172
+ -> JSFunctionObject
1173
+ {
1174
+ jsBoxedFunction(Self(f: __f)) {
1175
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1176
+ return try __f(jsArg(__a, 0), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
1177
+ }
1178
+ }
1179
+ }
1180
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Double?) throws -> Bool)?)
1181
+ -> JSFunctionObject?
1182
+ { if let __f { return script(name, length, __f) } else { return nil } }
1183
+ }
1184
+
1185
+ public struct FunctionCell_AnyOpt_DoubleOpt_to_Double {
1186
+ public let f: (Any?, Double?) throws -> Double
1187
+ public static func implicit(_ value: ((Any?, Double?) throws -> Double)?) -> ((Any?, Double?) throws -> Double)? {
1188
+ value
1189
+ }
1190
+ public static func present(_ value: ((Any?, Double?) throws -> Double)?) throws -> (Any?, Double?) throws -> Double
1191
+ {
1192
+ guard let value else { throw jsNoObject() }
1193
+ return value
1194
+ }
1195
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Double?) throws -> Double)
1196
+ -> JSFunctionObject
1197
+ {
1198
+ jsBoxedFunction(Self(f: __f)) {
1199
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1200
+ return try __f(jsArg(__a, 0), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
1201
+ }
1202
+ }
1203
+ }
1204
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Double?) throws -> Double)?)
1205
+ -> JSFunctionObject?
1206
+ { if let __f { return script(name, length, __f) } else { return nil } }
1207
+ }
1208
+
1209
+ public struct FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Bool_AnyOpt_to_Bool {
1210
+ public let f: (@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool
1211
+ public static func implicit(
1212
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool)?
1213
+ ) -> ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool)? { value }
1214
+ public static func present(
1215
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool)?
1216
+ ) throws -> (@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool {
1217
+ guard let value else { throw jsNoObject() }
1218
+ return value
1219
+ }
1220
+ public static func script(
1221
+ _ name: String, _ length: Int,
1222
+ _ __f: @escaping (@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool
1223
+ ) -> JSFunctionObject {
1224
+ jsBoxedFunction(Self(f: __f)) {
1225
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1226
+ return try __f(
1227
+ try FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Bool.present(
1228
+ FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Bool.fromScriptOrNil(jsArg(__a, 0))),
1229
+ jsArg(__a, 1))
1230
+ }
1231
+ }
1232
+ }
1233
+ public static func scriptOrNil(
1234
+ _ name: String, _ length: Int,
1235
+ _ __f: ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> Bool)?
1236
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1237
+ }
1238
+
1239
+ public struct FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Void_AnyOpt_to_Void {
1240
+ public let f: (@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void
1241
+ public static func implicit(
1242
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void)?
1243
+ ) -> ((@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void)? { value }
1244
+ public static func present(
1245
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void)?
1246
+ ) throws -> (@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void {
1247
+ guard let value else { throw jsNoObject() }
1248
+ return value
1249
+ }
1250
+ public static func script(
1251
+ _ name: String, _ length: Int,
1252
+ _ __f: @escaping (@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void
1253
+ ) -> JSFunctionObject {
1254
+ jsBoxedFunction(Self(f: __f)) {
1255
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1256
+ try __f(
1257
+ try FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Void.present(
1258
+ FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Void.fromScriptOrNil(jsArg(__a, 0))),
1259
+ jsArg(__a, 1))
1260
+ return nil
1261
+ }
1262
+ }
1263
+ }
1264
+ public static func scriptOrNil(
1265
+ _ name: String, _ length: Int,
1266
+ _ __f: ((@escaping (Any?, Double, ObservableArray?) throws -> Void, Any?) throws -> Void)?
1267
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1268
+ }
1269
+
1270
+ public struct FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt_AnyOpt_to_ObservableArrayOpt {
1271
+ public let f: (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray?
1272
+ public static func implicit(
1273
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray?)?
1274
+ ) -> ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray?)? { value }
1275
+ public static func present(
1276
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray?)?
1277
+ ) throws -> (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray? {
1278
+ guard let value else { throw jsNoObject() }
1279
+ return value
1280
+ }
1281
+ public static func script(
1282
+ _ name: String, _ length: Int,
1283
+ _ __f: @escaping (@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray?
1284
+ ) -> JSFunctionObject {
1285
+ jsBoxedFunction(Self(f: __f)) {
1286
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1287
+ return try __f(
1288
+ try FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.present(
1289
+ FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 0))),
1290
+ jsArg(__a, 1))
1291
+ }
1292
+ }
1293
+ }
1294
+ public static func scriptOrNil(
1295
+ _ name: String, _ length: Int,
1296
+ _ __f: ((@escaping (Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> ObservableArray?)?
1297
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1298
+ }
1299
+
1300
+ public struct FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Bool_AnyOpt_to_ObservableArrayOpt {
1301
+ public let f: (@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray?
1302
+ public static func implicit(
1303
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray?)?
1304
+ ) -> ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray?)? { value }
1305
+ public static func present(
1306
+ _ value: ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray?)?
1307
+ ) throws -> (@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray? {
1308
+ guard let value else { throw jsNoObject() }
1309
+ return value
1310
+ }
1311
+ public static func script(
1312
+ _ name: String, _ length: Int,
1313
+ _ __f: @escaping (@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray?
1314
+ ) -> JSFunctionObject {
1315
+ jsBoxedFunction(Self(f: __f)) {
1316
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1317
+ return try __f(
1318
+ try FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Bool.present(
1319
+ FunctionCell_AnyOpt_Double_ObservableArrayOpt_to_Bool.fromScriptOrNil(jsArg(__a, 0))),
1320
+ jsArg(__a, 1))
1321
+ }
1322
+ }
1323
+ }
1324
+ public static func scriptOrNil(
1325
+ _ name: String, _ length: Int,
1326
+ _ __f: ((@escaping (Any?, Double, ObservableArray?) throws -> Bool, Any?) throws -> ObservableArray?)?
1327
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1328
+ }
1329
+
1330
+ public struct FunctionCell_AnyOpt_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt_AnyOpt_to_AnyOpt {
1331
+ public let f: (@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?
1332
+ public static func implicit(
1333
+ _ value: ((@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)?
1334
+ ) -> ((@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)? { value }
1335
+ public static func present(
1336
+ _ value: ((@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)?
1337
+ ) throws -> (@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any? {
1338
+ guard let value else { throw jsNoObject() }
1339
+ return value
1340
+ }
1341
+ public static func script(
1342
+ _ name: String, _ length: Int,
1343
+ _ __f: @escaping (@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?
1344
+ ) -> JSFunctionObject {
1345
+ jsBoxedFunction(Self(f: __f)) {
1346
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1347
+ return try __f(
1348
+ try FunctionCell_AnyOpt_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.present(
1349
+ FunctionCell_AnyOpt_AnyOpt_Double_ObservableArrayOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 0))),
1350
+ jsArg(__a, 1))
1351
+ }
1352
+ }
1353
+ }
1354
+ public static func scriptOrNil(
1355
+ _ name: String, _ length: Int,
1356
+ _ __f: ((@escaping (Any?, Any?, Double, ObservableArray?) throws -> Any?, Any?) throws -> Any?)?
1357
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1358
+ }
1359
+
1360
+ public struct FunctionCell_Double_JSArray_AnyOpt_Opt_to_Void {
1361
+ public let f: (Double, JSArray<Any?>?) throws -> Void
1362
+ public static func implicit(_ value: ((Double, JSArray<Any?>?) throws -> Void)?) -> (
1363
+ (Double, JSArray<Any?>?) throws -> Void
1364
+ )? { value }
1365
+ public static func present(_ value: ((Double, JSArray<Any?>?) throws -> Void)?) throws -> (Double, JSArray<Any?>?)
1366
+ throws -> Void
1367
+ {
1368
+ guard let value else { throw jsNoObject() }
1369
+ return value
1370
+ }
1371
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, JSArray<Any?>?) throws -> Void)
1372
+ -> JSFunctionObject
1373
+ {
1374
+ jsBoxedFunction(Self(f: __f)) {
1375
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1376
+ try __f(
1377
+ (try jsConvertedNumber(jsArg(__a, 0))), jsArrayOrNil(jsArg(__a, 1), as: JSArray<Any?>.self, { $0 }))
1378
+ return nil
1379
+ }
1380
+ }
1381
+ }
1382
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, JSArray<Any?>?) throws -> Void)?)
1383
+ -> JSFunctionObject?
1384
+ { if let __f { return script(name, length, __f) } else { return nil } }
1385
+ }
1386
+
1387
+ public struct FunctionCell_String_AnyOpt_to_AnyOpt_Opt_to_JSArrayBufferOpt {
1388
+ public let f: (String, ((Any?) throws -> Any?)?) throws -> JSArrayBuffer?
1389
+ public static func implicit(_ value: ((String, ((Any?) throws -> Any?)?) throws -> JSArrayBuffer?)?) -> (
1390
+ (String, ((Any?) throws -> Any?)?) throws -> JSArrayBuffer?
1391
+ )? { value }
1392
+ public static func present(_ value: ((String, ((Any?) throws -> Any?)?) throws -> JSArrayBuffer?)?) throws -> (
1393
+ String, ((Any?) throws -> Any?)?
1394
+ ) throws -> JSArrayBuffer? {
1395
+ guard let value else { throw jsNoObject() }
1396
+ return value
1397
+ }
1398
+ public static func script(
1399
+ _ name: String, _ length: Int, _ __f: @escaping (String, ((Any?) throws -> Any?)?) throws -> JSArrayBuffer?
1400
+ ) -> JSFunctionObject {
1401
+ jsBoxedFunction(Self(f: __f)) {
1402
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1403
+ return try __f(
1404
+ (try jsConvertedString(jsArg(__a, 0))), FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1))
1405
+ )
1406
+ }
1407
+ }
1408
+ }
1409
+ public static func scriptOrNil(
1410
+ _ name: String, _ length: Int, _ __f: ((String, ((Any?) throws -> Any?)?) throws -> JSArrayBuffer?)?
1411
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1412
+ }
1413
+
1414
+ public struct FunctionCell_String_AnyOpt_to_AnyOpt_Opt_to_NSDataOpt {
1415
+ public let f: (String, ((Any?) throws -> Any?)?) throws -> NSData?
1416
+ public static func implicit(_ value: ((String, ((Any?) throws -> Any?)?) throws -> NSData?)?) -> (
1417
+ (String, ((Any?) throws -> Any?)?) throws -> NSData?
1418
+ )? { value }
1419
+ public static func present(_ value: ((String, ((Any?) throws -> Any?)?) throws -> NSData?)?) throws -> (
1420
+ String, ((Any?) throws -> Any?)?
1421
+ ) throws -> NSData? {
1422
+ guard let value else { throw jsNoObject() }
1423
+ return value
1424
+ }
1425
+ public static func script(
1426
+ _ name: String, _ length: Int, _ __f: @escaping (String, ((Any?) throws -> Any?)?) throws -> NSData?
1427
+ ) -> JSFunctionObject {
1428
+ jsBoxedFunction(Self(f: __f)) {
1429
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1430
+ return try __f(
1431
+ (try jsConvertedString(jsArg(__a, 0))), FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1))
1432
+ )
1433
+ }
1434
+ }
1435
+ }
1436
+ public static func scriptOrNil(
1437
+ _ name: String, _ length: Int, _ __f: ((String, ((Any?) throws -> Any?)?) throws -> NSData?)?
1438
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1439
+ }
1440
+
1441
+ public struct FunctionCell_String_AnyOpt_to_AnyOpt_Opt_to_AnyOpt {
1442
+ public let f: (String, ((Any?) throws -> Any?)?) throws -> Any?
1443
+ public static func implicit(_ value: ((String, ((Any?) throws -> Any?)?) throws -> Any?)?) -> (
1444
+ (String, ((Any?) throws -> Any?)?) throws -> Any?
1445
+ )? { value }
1446
+ public static func present(_ value: ((String, ((Any?) throws -> Any?)?) throws -> Any?)?) throws -> (
1447
+ String, ((Any?) throws -> Any?)?
1448
+ ) throws -> Any? {
1449
+ guard let value else { throw jsNoObject() }
1450
+ return value
1451
+ }
1452
+ public static func script(
1453
+ _ name: String, _ length: Int, _ __f: @escaping (String, ((Any?) throws -> Any?)?) throws -> Any?
1454
+ ) -> JSFunctionObject {
1455
+ jsBoxedFunction(Self(f: __f)) {
1456
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1457
+ return try __f(
1458
+ (try jsConvertedString(jsArg(__a, 0))), FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1))
1459
+ )
1460
+ }
1461
+ }
1462
+ }
1463
+ public static func scriptOrNil(
1464
+ _ name: String, _ length: Int, _ __f: ((String, ((Any?) throws -> Any?)?) throws -> Any?)?
1465
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1466
+ }
1467
+
1468
+ public struct FunctionCell_String_AnyOpt_to_AnyOpt_Opt_to_JSArray_AnyOpt_Opt {
1469
+ public let f: (String, ((Any?) throws -> Any?)?) throws -> JSArray<Any?>?
1470
+ public static func implicit(_ value: ((String, ((Any?) throws -> Any?)?) throws -> JSArray<Any?>?)?) -> (
1471
+ (String, ((Any?) throws -> Any?)?) throws -> JSArray<Any?>?
1472
+ )? { value }
1473
+ public static func present(_ value: ((String, ((Any?) throws -> Any?)?) throws -> JSArray<Any?>?)?) throws -> (
1474
+ String, ((Any?) throws -> Any?)?
1475
+ ) throws -> JSArray<Any?>? {
1476
+ guard let value else { throw jsNoObject() }
1477
+ return value
1478
+ }
1479
+ public static func script(
1480
+ _ name: String, _ length: Int, _ __f: @escaping (String, ((Any?) throws -> Any?)?) throws -> JSArray<Any?>?
1481
+ ) -> JSFunctionObject {
1482
+ jsBoxedFunction(Self(f: __f)) {
1483
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1484
+ return try __f(
1485
+ (try jsConvertedString(jsArg(__a, 0))), FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1))
1486
+ )
1487
+ }
1488
+ }
1489
+ }
1490
+ public static func scriptOrNil(
1491
+ _ name: String, _ length: Int, _ __f: ((String, ((Any?) throws -> Any?)?) throws -> JSArray<Any?>?)?
1492
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1493
+ }
1494
+
1495
+ public struct FunctionCell_String_String_to_String {
1496
+ public let f: (String, String) throws -> String
1497
+ public static func implicit(_ value: ((String, String) throws -> String)?) -> ((String, String) throws -> String)? {
1498
+ value
1499
+ }
1500
+ public static func present(_ value: ((String, String) throws -> String)?) throws -> (String, String) throws ->
1501
+ String
1502
+ {
1503
+ guard let value else { throw jsNoObject() }
1504
+ return value
1505
+ }
1506
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, String) throws -> String)
1507
+ -> JSFunctionObject
1508
+ {
1509
+ jsBoxedFunction(Self(f: __f)) {
1510
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1511
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
1512
+ }
1513
+ }
1514
+ }
1515
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String) throws -> String)?)
1516
+ -> JSFunctionObject?
1517
+ { if let __f { return script(name, length, __f) } else { return nil } }
1518
+ }
1519
+
1520
+ public struct FunctionCell_String_AnyOpt_to_AnyOpt_Opt_to_Void {
1521
+ public let f: (String, ((Any?) throws -> Any?)?) throws -> Void
1522
+ public static func implicit(_ value: ((String, ((Any?) throws -> Any?)?) throws -> Void)?) -> (
1523
+ (String, ((Any?) throws -> Any?)?) throws -> Void
1524
+ )? { value }
1525
+ public static func present(_ value: ((String, ((Any?) throws -> Any?)?) throws -> Void)?) throws -> (
1526
+ String, ((Any?) throws -> Any?)?
1527
+ ) throws -> Void {
1528
+ guard let value else { throw jsNoObject() }
1529
+ return value
1530
+ }
1531
+ public static func script(
1532
+ _ name: String, _ length: Int, _ __f: @escaping (String, ((Any?) throws -> Any?)?) throws -> Void
1533
+ ) -> JSFunctionObject {
1534
+ jsBoxedFunction(Self(f: __f)) {
1535
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1536
+ try __f(
1537
+ (try jsConvertedString(jsArg(__a, 0))), FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1))
1538
+ )
1539
+ return nil
1540
+ }
1541
+ }
1542
+ }
1543
+ public static func scriptOrNil(
1544
+ _ name: String, _ length: Int, _ __f: ((String, ((Any?) throws -> Any?)?) throws -> Void)?
1545
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1546
+ }
1547
+
1548
+ public struct FunctionCell_String_String_to_JSPromise_Bool_Opt {
1549
+ public let f: (String, String) throws -> JSPromise<Bool>?
1550
+ public static func implicit(_ value: ((String, String) throws -> JSPromise<Bool>?)?) -> (
1551
+ (String, String) throws -> JSPromise<Bool>?
1552
+ )? { value }
1553
+ public static func present(_ value: ((String, String) throws -> JSPromise<Bool>?)?) throws -> (String, String)
1554
+ throws -> JSPromise<Bool>?
1555
+ {
1556
+ guard let value else { throw jsNoObject() }
1557
+ return value
1558
+ }
1559
+ public static func script(
1560
+ _ name: String, _ length: Int, _ __f: @escaping (String, String) throws -> JSPromise<Bool>?
1561
+ ) -> JSFunctionObject {
1562
+ jsBoxedFunction(Self(f: __f)) {
1563
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1564
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
1565
+ }
1566
+ }
1567
+ }
1568
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String) throws -> JSPromise<Bool>?)?)
1569
+ -> JSFunctionObject?
1570
+ { if let __f { return script(name, length, __f) } else { return nil } }
1571
+ }
1572
+
1573
+ public struct FunctionCell_String_AnyOpt_to_JSPromise_String_Opt {
1574
+ public let f: (String, Any?) throws -> JSPromise<String>?
1575
+ public static func implicit(_ value: ((String, Any?) throws -> JSPromise<String>?)?) -> (
1576
+ (String, Any?) throws -> JSPromise<String>?
1577
+ )? { value }
1578
+ public static func present(_ value: ((String, Any?) throws -> JSPromise<String>?)?) throws -> (String, Any?) throws
1579
+ -> JSPromise<String>?
1580
+ {
1581
+ guard let value else { throw jsNoObject() }
1582
+ return value
1583
+ }
1584
+ public static func script(
1585
+ _ name: String, _ length: Int, _ __f: @escaping (String, Any?) throws -> JSPromise<String>?
1586
+ ) -> JSFunctionObject {
1587
+ jsBoxedFunction(Self(f: __f)) {
1588
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1589
+ return try __f((try jsConvertedString(jsArg(__a, 0))), jsArg(__a, 1))
1590
+ }
1591
+ }
1592
+ }
1593
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Any?) throws -> JSPromise<String>?)?)
1594
+ -> JSFunctionObject?
1595
+ { if let __f { return script(name, length, __f) } else { return nil } }
1596
+ }
1597
+
1598
+ public struct FunctionCell_String_AnyOpt_to_JSPromise_Void_Opt {
1599
+ public let f: (String, Any?) throws -> JSPromise<Void>?
1600
+ public static func implicit(_ value: ((String, Any?) throws -> JSPromise<Void>?)?) -> (
1601
+ (String, Any?) throws -> JSPromise<Void>?
1602
+ )? { value }
1603
+ public static func present(_ value: ((String, Any?) throws -> JSPromise<Void>?)?) throws -> (String, Any?) throws ->
1604
+ JSPromise<Void>?
1605
+ {
1606
+ guard let value else { throw jsNoObject() }
1607
+ return value
1608
+ }
1609
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Any?) throws -> JSPromise<Void>?)
1610
+ -> JSFunctionObject
1611
+ {
1612
+ jsBoxedFunction(Self(f: __f)) {
1613
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1614
+ return try __f((try jsConvertedString(jsArg(__a, 0))), jsArg(__a, 1))
1615
+ }
1616
+ }
1617
+ }
1618
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Any?) throws -> JSPromise<Void>?)?)
1619
+ -> JSFunctionObject?
1620
+ { if let __f { return script(name, length, __f) } else { return nil } }
1621
+ }
1622
+
1623
+ public struct FunctionCell_String_NSDataOpt_to_JSPromise_Void_Opt {
1624
+ public let f: (String, NSData?) throws -> JSPromise<Void>?
1625
+ public static func implicit(_ value: ((String, NSData?) throws -> JSPromise<Void>?)?) -> (
1626
+ (String, NSData?) throws -> JSPromise<Void>?
1627
+ )? { value }
1628
+ public static func present(_ value: ((String, NSData?) throws -> JSPromise<Void>?)?) throws -> (String, NSData?)
1629
+ throws -> JSPromise<Void>?
1630
+ {
1631
+ guard let value else { throw jsNoObject() }
1632
+ return value
1633
+ }
1634
+ public static func script(
1635
+ _ name: String, _ length: Int, _ __f: @escaping (String, NSData?) throws -> JSPromise<Void>?
1636
+ ) -> JSFunctionObject {
1637
+ jsBoxedFunction(Self(f: __f)) {
1638
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1639
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (jsArg(__a, 1) as? NSData))
1640
+ }
1641
+ }
1642
+ }
1643
+ public static func scriptOrNil(
1644
+ _ name: String, _ length: Int, _ __f: ((String, NSData?) throws -> JSPromise<Void>?)?
1645
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1646
+ }
1647
+
1648
+ public struct FunctionCell_AnyOpt_AnyOpt_to_AnyOpt_Opt_to_Void {
1649
+ public let f: (Any?, ((Any?) throws -> Any?)?) throws -> Void
1650
+ public static func implicit(_ value: ((Any?, ((Any?) throws -> Any?)?) throws -> Void)?) -> (
1651
+ (Any?, ((Any?) throws -> Any?)?) throws -> Void
1652
+ )? { value }
1653
+ public static func present(_ value: ((Any?, ((Any?) throws -> Any?)?) throws -> Void)?) throws -> (
1654
+ Any?, ((Any?) throws -> Any?)?
1655
+ ) throws -> Void {
1656
+ guard let value else { throw jsNoObject() }
1657
+ return value
1658
+ }
1659
+ public static func script(
1660
+ _ name: String, _ length: Int, _ __f: @escaping (Any?, ((Any?) throws -> Any?)?) throws -> Void
1661
+ ) -> JSFunctionObject {
1662
+ jsBoxedFunction(Self(f: __f)) {
1663
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1664
+ try __f(jsArg(__a, 0), FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 1)))
1665
+ return nil
1666
+ }
1667
+ }
1668
+ }
1669
+ public static func scriptOrNil(
1670
+ _ name: String, _ length: Int, _ __f: ((Any?, ((Any?) throws -> Any?)?) throws -> Void)?
1671
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1672
+ }
1673
+
1674
+ public struct FunctionCell_String_StringOpt_to_JSPromise_AnyOpt_Opt {
1675
+ public let f: (String, String?) throws -> JSPromise<Any?>?
1676
+ public static func implicit(_ value: ((String, String?) throws -> JSPromise<Any?>?)?) -> (
1677
+ (String, String?) throws -> JSPromise<Any?>?
1678
+ )? { value }
1679
+ public static func present(_ value: ((String, String?) throws -> JSPromise<Any?>?)?) throws -> (String, String?)
1680
+ throws -> JSPromise<Any?>?
1681
+ {
1682
+ guard let value else { throw jsNoObject() }
1683
+ return value
1684
+ }
1685
+ public static func script(
1686
+ _ name: String, _ length: Int, _ __f: @escaping (String, String?) throws -> JSPromise<Any?>?
1687
+ ) -> JSFunctionObject {
1688
+ jsBoxedFunction(Self(f: __f)) {
1689
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1690
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedStringOrNil(jsArg(__a, 1))))
1691
+ }
1692
+ }
1693
+ }
1694
+ public static func scriptOrNil(
1695
+ _ name: String, _ length: Int, _ __f: ((String, String?) throws -> JSPromise<Any?>?)?
1696
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1697
+ }
1698
+
1699
+ public struct FunctionCell_AnyOpt_to_AnyOpt_Opt_StringOpt_to_String {
1700
+ public let f: (((Any?) throws -> Any?)?, String?) throws -> String
1701
+ public static func implicit(_ value: ((((Any?) throws -> Any?)?, String?) throws -> String)?) -> (
1702
+ (((Any?) throws -> Any?)?, String?) throws -> String
1703
+ )? { value }
1704
+ public static func present(_ value: ((((Any?) throws -> Any?)?, String?) throws -> String)?) throws -> (
1705
+ ((Any?) throws -> Any?)?, String?
1706
+ ) throws -> String {
1707
+ guard let value else { throw jsNoObject() }
1708
+ return value
1709
+ }
1710
+ public static func script(
1711
+ _ name: String, _ length: Int, _ __f: @escaping (((Any?) throws -> Any?)?, String?) throws -> String
1712
+ ) -> JSFunctionObject {
1713
+ jsBoxedFunction(Self(f: __f)) {
1714
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1715
+ return try __f(
1716
+ FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsArg(__a, 0)),
1717
+ (try jsConvertedStringOrNil(jsArg(__a, 1))))
1718
+ }
1719
+ }
1720
+ }
1721
+ public static func scriptOrNil(
1722
+ _ name: String, _ length: Int, _ __f: ((((Any?) throws -> Any?)?, String?) throws -> String)?
1723
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1724
+ }
1725
+
1726
+ public struct FunctionCell_AnyOpt_JSErrorOpt_to_Void {
1727
+ public let f: (Any?, JSError?) throws -> Void
1728
+ public static func implicit(_ value: ((Any?, JSError?) throws -> Void)?) -> ((Any?, JSError?) throws -> Void)? {
1729
+ value
1730
+ }
1731
+ public static func present(_ value: ((Any?, JSError?) throws -> Void)?) throws -> (Any?, JSError?) throws -> Void {
1732
+ guard let value else { throw jsNoObject() }
1733
+ return value
1734
+ }
1735
+ public static func adapting(_ __h: @escaping (Any?, Any?) throws -> Void) -> (Any?, JSError?) throws -> Void {
1736
+ let __i = JSFunctionAlias(cell: FunctionCell_AnyOpt_AnyOpt_to_Void(f: __h))
1737
+ return jsIdentified(
1738
+ Self(f: { (__q0: Any?, __q1: JSError?) throws -> Void in
1739
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try __h(__q0, __q1) }
1740
+ }), __i
1741
+ ).f
1742
+ }
1743
+ public static func fromScript(_ __f: Any?) -> (Any?, JSError?) throws -> Void {
1744
+ if let __t = jsFlat(__f) as? (Any?, JSError?) throws -> Void { return __t }
1745
+ let __i = JSFunctionAlias(of: __f)
1746
+ return jsIdentified(
1747
+ Self(f: { (__p0: Any?, __p1: JSError?) throws -> Void in
1748
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try jsCall(__f, __p0, __p1) }
1749
+ }), __i
1750
+ ).f
1751
+ }
1752
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, JSError?) throws -> Void)? {
1753
+ jsIsNullish(__f) ? nil : fromScript(__f)
1754
+ }
1755
+ }
1756
+
1757
+ public struct FunctionCell_String_DoubleOpt_to_StringOpt {
1758
+ public let f: (String, Double?) throws -> String?
1759
+ public static func implicit(_ value: ((String, Double?) throws -> String?)?) -> (
1760
+ (String, Double?) throws -> String?
1761
+ )? { value }
1762
+ public static func present(_ value: ((String, Double?) throws -> String?)?) throws -> (String, Double?) throws ->
1763
+ String?
1764
+ {
1765
+ guard let value else { throw jsNoObject() }
1766
+ return value
1767
+ }
1768
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Double?) throws -> String?)
1769
+ -> JSFunctionObject
1770
+ {
1771
+ jsBoxedFunction(Self(f: __f)) {
1772
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1773
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
1774
+ }
1775
+ }
1776
+ }
1777
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Double?) throws -> String?)?)
1778
+ -> JSFunctionObject?
1779
+ { if let __f { return script(name, length, __f) } else { return nil } }
1780
+ }
1781
+
1782
+ public struct FunctionCell_String_DoubleOpt_to_JSPromise_String_Opt {
1783
+ public let f: (String, Double?) throws -> JSPromise<String>?
1784
+ public static func implicit(_ value: ((String, Double?) throws -> JSPromise<String>?)?) -> (
1785
+ (String, Double?) throws -> JSPromise<String>?
1786
+ )? { value }
1787
+ public static func present(_ value: ((String, Double?) throws -> JSPromise<String>?)?) throws -> (String, Double?)
1788
+ throws -> JSPromise<String>?
1789
+ {
1790
+ guard let value else { throw jsNoObject() }
1791
+ return value
1792
+ }
1793
+ public static func script(
1794
+ _ name: String, _ length: Int, _ __f: @escaping (String, Double?) throws -> JSPromise<String>?
1795
+ ) -> JSFunctionObject {
1796
+ jsBoxedFunction(Self(f: __f)) {
1797
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1798
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
1799
+ }
1800
+ }
1801
+ }
1802
+ public static func scriptOrNil(
1803
+ _ name: String, _ length: Int, _ __f: ((String, Double?) throws -> JSPromise<String>?)?
1804
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1805
+ }
1806
+
1807
+ public struct FunctionCell_Double_AnyOpt_to_ImageSourceOpt {
1808
+ public let f: (Double, Any?) throws -> ImageSource?
1809
+ public static func implicit(_ value: ((Double, Any?) throws -> ImageSource?)?) -> (
1810
+ (Double, Any?) throws -> ImageSource?
1811
+ )? { value }
1812
+ public static func present(_ value: ((Double, Any?) throws -> ImageSource?)?) throws -> (Double, Any?) throws ->
1813
+ ImageSource?
1814
+ {
1815
+ guard let value else { throw jsNoObject() }
1816
+ return value
1817
+ }
1818
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Any?) throws -> ImageSource?)
1819
+ -> JSFunctionObject
1820
+ {
1821
+ jsBoxedFunction(Self(f: __f)) {
1822
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1823
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), jsArg(__a, 1))
1824
+ }
1825
+ }
1826
+ }
1827
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Any?) throws -> ImageSource?)?)
1828
+ -> JSFunctionObject?
1829
+ { if let __f { return script(name, length, __f) } else { return nil } }
1830
+ }
1831
+
1832
+ public struct FunctionCell_Double_AnyOpt_to_JSPromise_ImageSource_Opt {
1833
+ public let f: (Double, Any?) throws -> JSPromise<ImageSource>?
1834
+ public static func implicit(_ value: ((Double, Any?) throws -> JSPromise<ImageSource>?)?) -> (
1835
+ (Double, Any?) throws -> JSPromise<ImageSource>?
1836
+ )? { value }
1837
+ public static func present(_ value: ((Double, Any?) throws -> JSPromise<ImageSource>?)?) throws -> (Double, Any?)
1838
+ throws -> JSPromise<ImageSource>?
1839
+ {
1840
+ guard let value else { throw jsNoObject() }
1841
+ return value
1842
+ }
1843
+ public static func script(
1844
+ _ name: String, _ length: Int, _ __f: @escaping (Double, Any?) throws -> JSPromise<ImageSource>?
1845
+ ) -> JSFunctionObject {
1846
+ jsBoxedFunction(Self(f: __f)) {
1847
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1848
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), jsArg(__a, 1))
1849
+ }
1850
+ }
1851
+ }
1852
+ public static func scriptOrNil(
1853
+ _ name: String, _ length: Int, _ __f: ((Double, Any?) throws -> JSPromise<ImageSource>?)?
1854
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1855
+ }
1856
+
1857
+ public struct FunctionCell_UIImageOpt_AnyOpt_to_UIImageOpt {
1858
+ public let f: (UIImage?, Any?) throws -> UIImage?
1859
+ public static func implicit(_ value: ((UIImage?, Any?) throws -> UIImage?)?) -> (
1860
+ (UIImage?, Any?) throws -> UIImage?
1861
+ )? { value }
1862
+ public static func present(_ value: ((UIImage?, Any?) throws -> UIImage?)?) throws -> (UIImage?, Any?) throws ->
1863
+ UIImage?
1864
+ {
1865
+ guard let value else { throw jsNoObject() }
1866
+ return value
1867
+ }
1868
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UIImage?, Any?) throws -> UIImage?)
1869
+ -> JSFunctionObject
1870
+ {
1871
+ jsBoxedFunction(Self(f: __f)) {
1872
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1873
+ return try __f((jsArg(__a, 0) as? UIImage), jsArg(__a, 1))
1874
+ }
1875
+ }
1876
+ }
1877
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIImage?, Any?) throws -> UIImage?)?)
1878
+ -> JSFunctionObject?
1879
+ { if let __f { return script(name, length, __f) } else { return nil } }
1880
+ }
1881
+
1882
+ public struct FunctionCell_String_JSArray_AnyOpt_to_Void {
1883
+ public let f: (String, JSArray<Any?>) throws -> Void
1884
+ public static func implicit(_ value: ((String, JSArray<Any?>) throws -> Void)?) -> (
1885
+ (String, JSArray<Any?>) throws -> Void
1886
+ )? { value }
1887
+ public static func present(_ value: ((String, JSArray<Any?>) throws -> Void)?) throws -> (String, JSArray<Any?>)
1888
+ throws -> Void
1889
+ {
1890
+ guard let value else { throw jsNoObject() }
1891
+ return value
1892
+ }
1893
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, JSArray<Any?>) throws -> Void)
1894
+ -> JSFunctionObject
1895
+ {
1896
+ jsBoxedFunction(Self(f: __f)) {
1897
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1898
+ try __f((try jsConvertedString(jsArg(__a, 0))), JSArray<Any?>(__a.dropFirst(1).map { $0 }))
1899
+ return nil
1900
+ }
1901
+ }
1902
+ }
1903
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, JSArray<Any?>) throws -> Void)?)
1904
+ -> JSFunctionObject?
1905
+ { if let __f { return script(name, length, __f) } else { return nil } }
1906
+ }
1907
+
1908
+ public struct FunctionCell_String_String_HeadersOpt_to_Void_AnyOpt_to_Void {
1909
+ public let f: (@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void
1910
+ public static func implicit(_ value: ((@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void)?)
1911
+ -> ((@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void)?
1912
+ { value }
1913
+ public static func present(_ value: ((@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void)?)
1914
+ throws -> (@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void
1915
+ {
1916
+ guard let value else { throw jsNoObject() }
1917
+ return value
1918
+ }
1919
+ public static func script(
1920
+ _ name: String, _ length: Int,
1921
+ _ __f: @escaping (@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void
1922
+ ) -> JSFunctionObject {
1923
+ jsBoxedFunction(Self(f: __f)) {
1924
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1925
+ try __f(
1926
+ try FunctionCell_String_String_HeadersOpt_to_Void.present(
1927
+ FunctionCell_String_String_HeadersOpt_to_Void.fromScriptOrNil(jsArg(__a, 0))), jsArg(__a, 1))
1928
+ return nil
1929
+ }
1930
+ }
1931
+ }
1932
+ public static func scriptOrNil(
1933
+ _ name: String, _ length: Int,
1934
+ _ __f: ((@escaping (String, String, Headers?) throws -> Void, Any?) throws -> Void)?
1935
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
1936
+ }
1937
+
1938
+ public struct FunctionCell_Double_DoubleOpt_to_Void {
1939
+ public let f: (Double, Double?) throws -> Void
1940
+ public static func implicit(_ value: ((Double, Double?) throws -> Void)?) -> ((Double, Double?) throws -> Void)? {
1941
+ value
1942
+ }
1943
+ public static func present(_ value: ((Double, Double?) throws -> Void)?) throws -> (Double, Double?) throws -> Void
1944
+ {
1945
+ guard let value else { throw jsNoObject() }
1946
+ return value
1947
+ }
1948
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Double?) throws -> Void)
1949
+ -> JSFunctionObject
1950
+ {
1951
+ jsBoxedFunction(Self(f: __f)) {
1952
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1953
+ try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
1954
+ return nil
1955
+ }
1956
+ }
1957
+ }
1958
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Double?) throws -> Void)?)
1959
+ -> JSFunctionObject?
1960
+ { if let __f { return script(name, length, __f) } else { return nil } }
1961
+ }
1962
+
1963
+ public struct FunctionCell_AnyOpt_SelectorCoreOpt_to_Void {
1964
+ public let f: (Any?, SelectorCore?) throws -> Void
1965
+ public static func implicit(_ value: ((Any?, SelectorCore?) throws -> Void)?) -> (
1966
+ (Any?, SelectorCore?) throws -> Void
1967
+ )? { value }
1968
+ public static func present(_ value: ((Any?, SelectorCore?) throws -> Void)?) throws -> (Any?, SelectorCore?) throws
1969
+ -> Void
1970
+ {
1971
+ guard let value else { throw jsNoObject() }
1972
+ return value
1973
+ }
1974
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, SelectorCore?) throws -> Void)
1975
+ -> JSFunctionObject
1976
+ {
1977
+ jsBoxedFunction(Self(f: __f)) {
1978
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
1979
+ try __f(jsArg(__a, 0), (try jsCast(jsArg(__a, 1), SelectorCore.self)))
1980
+ return nil
1981
+ }
1982
+ }
1983
+ }
1984
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, SelectorCore?) throws -> Void)?)
1985
+ -> JSFunctionObject?
1986
+ { if let __f { return script(name, length, __f) } else { return nil } }
1987
+ }
1988
+
1989
+ public struct FunctionCell_AnyOpt_Bool_to_AnyOpt {
1990
+ public let f: (Any?, Bool) throws -> Any?
1991
+ public static func implicit(_ value: ((Any?, Bool) throws -> Any?)?) -> ((Any?, Bool) throws -> Any?)? { value }
1992
+ public static func present(_ value: ((Any?, Bool) throws -> Any?)?) throws -> (Any?, Bool) throws -> Any? {
1993
+ guard let value else { throw jsNoObject() }
1994
+ return value
1995
+ }
1996
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Bool) throws -> Any?)
1997
+ -> JSFunctionObject
1998
+ {
1999
+ jsBoxedFunction(Self(f: __f)) {
2000
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2001
+ return try __f(jsArg(__a, 0), (try jsConvertedBool(jsArg(__a, 1))))
2002
+ }
2003
+ }
2004
+ }
2005
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Bool) throws -> Any?)?)
2006
+ -> JSFunctionObject?
2007
+ { if let __f { return script(name, length, __f) } else { return nil } }
2008
+ }
2009
+
2010
+ public struct FunctionCell_AnyOpt_JSArray_SelectorCore_Opt_to_JSArray_SelectorCore_Opt {
2011
+ public let f: (Any?, JSArray<SelectorCore>?) throws -> JSArray<SelectorCore>?
2012
+ public static func implicit(_ value: ((Any?, JSArray<SelectorCore>?) throws -> JSArray<SelectorCore>?)?) -> (
2013
+ (Any?, JSArray<SelectorCore>?) throws -> JSArray<SelectorCore>?
2014
+ )? { value }
2015
+ public static func present(_ value: ((Any?, JSArray<SelectorCore>?) throws -> JSArray<SelectorCore>?)?) throws -> (
2016
+ Any?, JSArray<SelectorCore>?
2017
+ ) throws -> JSArray<SelectorCore>? {
2018
+ guard let value else { throw jsNoObject() }
2019
+ return value
2020
+ }
2021
+ public static func script(
2022
+ _ name: String, _ length: Int, _ __f: @escaping (Any?, JSArray<SelectorCore>?) throws -> JSArray<SelectorCore>?
2023
+ ) -> JSFunctionObject {
2024
+ jsBoxedFunction(Self(f: __f)) {
2025
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2026
+ return try __f(
2027
+ jsArg(__a, 0),
2028
+ try jsArrayOrNil(
2029
+ jsArg(__a, 1), as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) }))
2030
+ }
2031
+ }
2032
+ }
2033
+ public static func scriptOrNil(
2034
+ _ name: String, _ length: Int, _ __f: ((Any?, JSArray<SelectorCore>?) throws -> JSArray<SelectorCore>?)?
2035
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
2036
+ }
2037
+
2038
+ public struct FunctionCell_String_SelectorCoreOpt_to_Void {
2039
+ public let f: (String, SelectorCore?) throws -> Void
2040
+ public static func implicit(_ value: ((String, SelectorCore?) throws -> Void)?) -> (
2041
+ (String, SelectorCore?) throws -> Void
2042
+ )? { value }
2043
+ public static func present(_ value: ((String, SelectorCore?) throws -> Void)?) throws -> (String, SelectorCore?)
2044
+ throws -> Void
2045
+ {
2046
+ guard let value else { throw jsNoObject() }
2047
+ return value
2048
+ }
2049
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, SelectorCore?) throws -> Void)
2050
+ -> JSFunctionObject
2051
+ {
2052
+ jsBoxedFunction(Self(f: __f)) {
2053
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2054
+ try __f((try jsConvertedString(jsArg(__a, 0))), (try jsCast(jsArg(__a, 1), SelectorCore.self)))
2055
+ return nil
2056
+ }
2057
+ }
2058
+ }
2059
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, SelectorCore?) throws -> Void)?)
2060
+ -> JSFunctionObject?
2061
+ { if let __f { return script(name, length, __f) } else { return nil } }
2062
+ }
2063
+
2064
+ public struct FunctionCell_JSArray_RuleSet_Opt_Double_to_Void {
2065
+ public let f: (JSArray<RuleSet>?, Double) throws -> Void
2066
+ public static func implicit(_ value: ((JSArray<RuleSet>?, Double) throws -> Void)?) -> (
2067
+ (JSArray<RuleSet>?, Double) throws -> Void
2068
+ )? { value }
2069
+ public static func present(_ value: ((JSArray<RuleSet>?, Double) throws -> Void)?) throws -> (
2070
+ JSArray<RuleSet>?, Double
2071
+ ) throws -> Void {
2072
+ guard let value else { throw jsNoObject() }
2073
+ return value
2074
+ }
2075
+ public static func script(
2076
+ _ name: String, _ length: Int, _ __f: @escaping (JSArray<RuleSet>?, Double) throws -> Void
2077
+ ) -> JSFunctionObject {
2078
+ jsBoxedFunction(Self(f: __f)) {
2079
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2080
+ try __f(
2081
+ try jsArrayOrNil(jsArg(__a, 0), as: JSArray<RuleSet>.self, { try (jsCastPresent($0) as RuleSet) }),
2082
+ (try jsConvertedNumber(jsArg(__a, 1))))
2083
+ return nil
2084
+ }
2085
+ }
2086
+ }
2087
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((JSArray<RuleSet>?, Double) throws -> Void)?)
2088
+ -> JSFunctionObject?
2089
+ { if let __f { return script(name, length, __f) } else { return nil } }
2090
+ }
2091
+
2092
+ public struct FunctionCell_to_AnyOpt_Opt_AnyOpt_to_AnyOpt_Opt_to_JSPromise_AnyOpt {
2093
+ public let f: (((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?>
2094
+ public static func implicit(
2095
+ _ value: ((((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?>)?
2096
+ ) -> ((((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?>)? { value }
2097
+ public static func present(_ value: ((((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?>)?)
2098
+ throws -> (((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?>
2099
+ {
2100
+ guard let value else { throw jsNoObject() }
2101
+ return value
2102
+ }
2103
+ public static func fromScript(_ __f: Any?) -> (((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws ->
2104
+ JSPromise<Any?>
2105
+ {
2106
+ if let __t = jsFlat(__f) as? (((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?> {
2107
+ return __t
2108
+ }
2109
+ let __i = JSFunctionAlias(of: __f)
2110
+ return jsIdentified(
2111
+ Self(f: { (__p0: ((()) throws -> Any?)?, __p1: ((Any?) throws -> Any?)?) throws -> JSPromise<Any?> in
2112
+ return try withExtendedLifetime(__i) { () throws -> JSPromise<Any?> in
2113
+ return jsPromiseOf(
2114
+ try jsCall(
2115
+ __f, FunctionCell_none_to_AnyOpt_2.scriptOrNil("", 1, __p0),
2116
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil("", 1, __p1))
2117
+ ) { $0 }
2118
+ }
2119
+ }), __i
2120
+ ).f
2121
+ }
2122
+ public static func fromScriptOrNil(_ __f: Any?) -> (
2123
+ (((()) throws -> Any?)?, ((Any?) throws -> Any?)?) throws -> JSPromise<Any?>
2124
+ )? { jsIsNullish(__f) ? nil : fromScript(__f) }
2125
+ }
2126
+
2127
+ public struct FunctionCell_ViewBase_String_to_Void {
2128
+ public let f: (ViewBase, String) throws -> Void
2129
+ public static func implicit(_ value: ((ViewBase, String) throws -> Void)?) -> ((ViewBase, String) throws -> Void)? {
2130
+ value
2131
+ }
2132
+ public static func present(_ value: ((ViewBase, String) throws -> Void)?) throws -> (ViewBase, String) throws ->
2133
+ Void
2134
+ {
2135
+ guard let value else { throw jsNoObject() }
2136
+ return value
2137
+ }
2138
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ViewBase, String) throws -> Void)
2139
+ -> JSFunctionObject
2140
+ {
2141
+ jsBoxedFunction(Self(f: __f)) {
2142
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2143
+ try __f(try (jsCastPresent(jsArg(__a, 0)) as ViewBase), (try jsConvertedString(jsArg(__a, 1))))
2144
+ return nil
2145
+ }
2146
+ }
2147
+ }
2148
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ViewBase, String) throws -> Void)?)
2149
+ -> JSFunctionObject?
2150
+ { if let __f { return script(name, length, __f) } else { return nil } }
2151
+ }
2152
+
2153
+ public struct FunctionCell_AnyOpt_ViewBaseOpt_to_Void {
2154
+ public let f: (Any?, ViewBase?) throws -> Void
2155
+ public static func implicit(_ value: ((Any?, ViewBase?) throws -> Void)?) -> ((Any?, ViewBase?) throws -> Void)? {
2156
+ value
2157
+ }
2158
+ public static func present(_ value: ((Any?, ViewBase?) throws -> Void)?) throws -> (Any?, ViewBase?) throws -> Void
2159
+ {
2160
+ guard let value else { throw jsNoObject() }
2161
+ return value
2162
+ }
2163
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, ViewBase?) throws -> Void)
2164
+ -> JSFunctionObject
2165
+ {
2166
+ jsBoxedFunction(Self(f: __f)) {
2167
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2168
+ try __f(jsArg(__a, 0), (try jsCast(jsArg(__a, 1), ViewBase.self)))
2169
+ return nil
2170
+ }
2171
+ }
2172
+ }
2173
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, ViewBase?) throws -> Void)?)
2174
+ -> JSFunctionObject?
2175
+ { if let __f { return script(name, length, __f) } else { return nil } }
2176
+ }
2177
+
2178
+ public struct FunctionCell_String_StringOpt_to_Void {
2179
+ public let f: (String, String?) throws -> Void
2180
+ public static func implicit(_ value: ((String, String?) throws -> Void)?) -> ((String, String?) throws -> Void)? {
2181
+ value
2182
+ }
2183
+ public static func present(_ value: ((String, String?) throws -> Void)?) throws -> (String, String?) throws -> Void
2184
+ {
2185
+ guard let value else { throw jsNoObject() }
2186
+ return value
2187
+ }
2188
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, String?) throws -> Void)
2189
+ -> JSFunctionObject
2190
+ {
2191
+ jsBoxedFunction(Self(f: __f)) {
2192
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2193
+ try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedStringOrNil(jsArg(__a, 1))))
2194
+ return nil
2195
+ }
2196
+ }
2197
+ }
2198
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String?) throws -> Void)?)
2199
+ -> JSFunctionObject?
2200
+ { if let __f { return script(name, length, __f) } else { return nil } }
2201
+ }
2202
+
2203
+ public struct FunctionCell_ViewBaseOpt_String_to_Void {
2204
+ public let f: (ViewBase?, String) throws -> Void
2205
+ public static func implicit(_ value: ((ViewBase?, String) throws -> Void)?) -> ((ViewBase?, String) throws -> Void)?
2206
+ { value }
2207
+ public static func present(_ value: ((ViewBase?, String) throws -> Void)?) throws -> (ViewBase?, String) throws ->
2208
+ Void
2209
+ {
2210
+ guard let value else { throw jsNoObject() }
2211
+ return value
2212
+ }
2213
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ViewBase?, String) throws -> Void)
2214
+ -> JSFunctionObject
2215
+ {
2216
+ jsBoxedFunction(Self(f: __f)) {
2217
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2218
+ try __f((try jsCast(jsArg(__a, 0), ViewBase.self)), (try jsConvertedString(jsArg(__a, 1))))
2219
+ return nil
2220
+ }
2221
+ }
2222
+ }
2223
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ViewBase?, String) throws -> Void)?)
2224
+ -> JSFunctionObject?
2225
+ { if let __f { return script(name, length, __f) } else { return nil } }
2226
+ }
2227
+
2228
+ public struct FunctionCell_String_Bool_to_Void {
2229
+ public let f: (String, Bool) throws -> Void
2230
+ public static func implicit(_ value: ((String, Bool) throws -> Void)?) -> ((String, Bool) throws -> Void)? { value }
2231
+ public static func present(_ value: ((String, Bool) throws -> Void)?) throws -> (String, Bool) throws -> Void {
2232
+ guard let value else { throw jsNoObject() }
2233
+ return value
2234
+ }
2235
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Bool) throws -> Void)
2236
+ -> JSFunctionObject
2237
+ {
2238
+ jsBoxedFunction(Self(f: __f)) {
2239
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2240
+ try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedBool(jsArg(__a, 1))))
2241
+ return nil
2242
+ }
2243
+ }
2244
+ }
2245
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Bool) throws -> Void)?)
2246
+ -> JSFunctionObject?
2247
+ { if let __f { return script(name, length, __f) } else { return nil } }
2248
+ }
2249
+
2250
+ public struct FunctionCell_String_to_Void_to_Void {
2251
+ public let f: (String, @escaping () throws -> Void) throws -> Void
2252
+ public static func implicit(_ value: ((String, @escaping () throws -> Void) throws -> Void)?) -> (
2253
+ (String, @escaping () throws -> Void) throws -> Void
2254
+ )? { value }
2255
+ public static func present(_ value: ((String, @escaping () throws -> Void) throws -> Void)?) throws -> (
2256
+ String, @escaping () throws -> Void
2257
+ ) throws -> Void {
2258
+ guard let value else { throw jsNoObject() }
2259
+ return value
2260
+ }
2261
+ public static func script(
2262
+ _ name: String, _ length: Int, _ __f: @escaping (String, @escaping () throws -> Void) throws -> Void
2263
+ ) -> JSFunctionObject {
2264
+ jsBoxedFunction(Self(f: __f)) {
2265
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2266
+ try __f(
2267
+ (try jsConvertedString(jsArg(__a, 0))),
2268
+ try FunctionCell_none_to_Void.present(FunctionCell_none_to_Void.fromScriptOrNil(jsArg(__a, 1))))
2269
+ return nil
2270
+ }
2271
+ }
2272
+ }
2273
+ public static func scriptOrNil(
2274
+ _ name: String, _ length: Int, _ __f: ((String, @escaping () throws -> Void) throws -> Void)?
2275
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
2276
+ }
2277
+
2278
+ public struct FunctionCell_ViewBaseOpt_DoubleOpt_to_Void {
2279
+ public let f: (ViewBase?, Double?) throws -> Void
2280
+ public static func implicit(_ value: ((ViewBase?, Double?) throws -> Void)?) -> (
2281
+ (ViewBase?, Double?) throws -> Void
2282
+ )? { value }
2283
+ public static func present(_ value: ((ViewBase?, Double?) throws -> Void)?) throws -> (ViewBase?, Double?) throws ->
2284
+ Void
2285
+ {
2286
+ guard let value else { throw jsNoObject() }
2287
+ return value
2288
+ }
2289
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ViewBase?, Double?) throws -> Void)
2290
+ -> JSFunctionObject
2291
+ {
2292
+ jsBoxedFunction(Self(f: __f)) {
2293
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2294
+ try __f((try jsCast(jsArg(__a, 0), ViewBase.self)), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
2295
+ return nil
2296
+ }
2297
+ }
2298
+ }
2299
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ViewBase?, Double?) throws -> Void)?)
2300
+ -> JSFunctionObject?
2301
+ { if let __f { return script(name, length, __f) } else { return nil } }
2302
+ }
2303
+
2304
+ public struct FunctionCell_ViewBaseOpt_DoubleOpt_to_Bool {
2305
+ public let f: (ViewBase?, Double?) throws -> Bool
2306
+ public static func implicit(_ value: ((ViewBase?, Double?) throws -> Bool)?) -> (
2307
+ (ViewBase?, Double?) throws -> Bool
2308
+ )? { value }
2309
+ public static func present(_ value: ((ViewBase?, Double?) throws -> Bool)?) throws -> (ViewBase?, Double?) throws ->
2310
+ Bool
2311
+ {
2312
+ guard let value else { throw jsNoObject() }
2313
+ return value
2314
+ }
2315
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ViewBase?, Double?) throws -> Bool)
2316
+ -> JSFunctionObject
2317
+ {
2318
+ jsBoxedFunction(Self(f: __f)) {
2319
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2320
+ return try __f((try jsCast(jsArg(__a, 0), ViewBase.self)), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
2321
+ }
2322
+ }
2323
+ }
2324
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ViewBase?, Double?) throws -> Bool)?)
2325
+ -> JSFunctionObject?
2326
+ { if let __f { return script(name, length, __f) } else { return nil } }
2327
+ }
2328
+
2329
+ public struct FunctionCell_String_String_to_Bool {
2330
+ public let f: (String, String) throws -> Bool
2331
+ public static func implicit(_ value: ((String, String) throws -> Bool)?) -> ((String, String) throws -> Bool)? {
2332
+ value
2333
+ }
2334
+ public static func present(_ value: ((String, String) throws -> Bool)?) throws -> (String, String) throws -> Bool {
2335
+ guard let value else { throw jsNoObject() }
2336
+ return value
2337
+ }
2338
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, String) throws -> Bool)
2339
+ -> JSFunctionObject
2340
+ {
2341
+ jsBoxedFunction(Self(f: __f)) {
2342
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2343
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
2344
+ }
2345
+ }
2346
+ }
2347
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, String) throws -> Bool)?)
2348
+ -> JSFunctionObject?
2349
+ { if let __f { return script(name, length, __f) } else { return nil } }
2350
+ }
2351
+
2352
+ public struct FunctionCell_AnyOpt_AnyOpt_to_ViewBaseOpt {
2353
+ public let f: (Any?, Any?) throws -> ViewBase?
2354
+ public static func implicit(_ value: ((Any?, Any?) throws -> ViewBase?)?) -> ((Any?, Any?) throws -> ViewBase?)? {
2355
+ value
2356
+ }
2357
+ public static func present(_ value: ((Any?, Any?) throws -> ViewBase?)?) throws -> (Any?, Any?) throws -> ViewBase?
2358
+ {
2359
+ guard let value else { throw jsNoObject() }
2360
+ return value
2361
+ }
2362
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> ViewBase?)
2363
+ -> JSFunctionObject
2364
+ {
2365
+ jsBoxedFunction(Self(f: __f)) {
2366
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in return try __f(jsArg(__a, 0), jsArg(__a, 1)) }
2367
+ }
2368
+ }
2369
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> ViewBase?)?)
2370
+ -> JSFunctionObject?
2371
+ { if let __f { return script(name, length, __f) } else { return nil } }
2372
+ }
2373
+
2374
+ public struct FunctionCell_String_JSArray_AnyOpt_Opt_to_Void {
2375
+ public let f: (String, JSArray<Any?>?) throws -> Void
2376
+ public static func implicit(_ value: ((String, JSArray<Any?>?) throws -> Void)?) -> (
2377
+ (String, JSArray<Any?>?) throws -> Void
2378
+ )? { value }
2379
+ public static func present(_ value: ((String, JSArray<Any?>?) throws -> Void)?) throws -> (String, JSArray<Any?>?)
2380
+ throws -> Void
2381
+ {
2382
+ guard let value else { throw jsNoObject() }
2383
+ return value
2384
+ }
2385
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, JSArray<Any?>?) throws -> Void)
2386
+ -> JSFunctionObject
2387
+ {
2388
+ jsBoxedFunction(Self(f: __f)) {
2389
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2390
+ try __f(
2391
+ (try jsConvertedString(jsArg(__a, 0))), jsArrayOrNil(jsArg(__a, 1), as: JSArray<Any?>.self, { $0 }))
2392
+ return nil
2393
+ }
2394
+ }
2395
+ }
2396
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, JSArray<Any?>?) throws -> Void)?)
2397
+ -> JSFunctionObject?
2398
+ { if let __f { return script(name, length, __f) } else { return nil } }
2399
+ }
2400
+
2401
+ public struct FunctionCell_ViewOpt_Double_to_Void {
2402
+ public let f: (View?, Double) throws -> Void
2403
+ public static func implicit(_ value: ((View?, Double) throws -> Void)?) -> ((View?, Double) throws -> Void)? {
2404
+ value
2405
+ }
2406
+ public static func present(_ value: ((View?, Double) throws -> Void)?) throws -> (View?, Double) throws -> Void {
2407
+ guard let value else { throw jsNoObject() }
2408
+ return value
2409
+ }
2410
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Double) throws -> Void)
2411
+ -> JSFunctionObject
2412
+ {
2413
+ jsBoxedFunction(Self(f: __f)) {
2414
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2415
+ try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsConvertedNumber(jsArg(__a, 1))))
2416
+ return nil
2417
+ }
2418
+ }
2419
+ }
2420
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Double) throws -> Void)?)
2421
+ -> JSFunctionObject?
2422
+ { if let __f { return script(name, length, __f) } else { return nil } }
2423
+ }
2424
+
2425
+ public struct FunctionCell_ViewCommonOpt_AnyOpt_to_Void {
2426
+ public let f: (ViewCommon?, Any?) throws -> Void
2427
+ public static func implicit(_ value: ((ViewCommon?, Any?) throws -> Void)?) -> ((ViewCommon?, Any?) throws -> Void)?
2428
+ { value }
2429
+ public static func present(_ value: ((ViewCommon?, Any?) throws -> Void)?) throws -> (ViewCommon?, Any?) throws ->
2430
+ Void
2431
+ {
2432
+ guard let value else { throw jsNoObject() }
2433
+ return value
2434
+ }
2435
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ViewCommon?, Any?) throws -> Void)
2436
+ -> JSFunctionObject
2437
+ {
2438
+ jsBoxedFunction(Self(f: __f)) {
2439
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2440
+ try __f((try jsCast(jsArg(__a, 0), ViewCommon.self)), jsArg(__a, 1))
2441
+ return nil
2442
+ }
2443
+ }
2444
+ }
2445
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ViewCommon?, Any?) throws -> Void)?)
2446
+ -> JSFunctionObject?
2447
+ { if let __f { return script(name, length, __f) } else { return nil } }
2448
+ }
2449
+
2450
+ public struct FunctionCell_ViewCommonOpt_to_Void_to_Void {
2451
+ public let f: (ViewCommon?, @escaping () throws -> Void) throws -> Void
2452
+ public static func implicit(_ value: ((ViewCommon?, @escaping () throws -> Void) throws -> Void)?) -> (
2453
+ (ViewCommon?, @escaping () throws -> Void) throws -> Void
2454
+ )? { value }
2455
+ public static func present(_ value: ((ViewCommon?, @escaping () throws -> Void) throws -> Void)?) throws -> (
2456
+ ViewCommon?, @escaping () throws -> Void
2457
+ ) throws -> Void {
2458
+ guard let value else { throw jsNoObject() }
2459
+ return value
2460
+ }
2461
+ public static func script(
2462
+ _ name: String, _ length: Int, _ __f: @escaping (ViewCommon?, @escaping () throws -> Void) throws -> Void
2463
+ ) -> JSFunctionObject {
2464
+ jsBoxedFunction(Self(f: __f)) {
2465
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2466
+ try __f(
2467
+ (try jsCast(jsArg(__a, 0), ViewCommon.self)),
2468
+ try FunctionCell_none_to_Void.present(FunctionCell_none_to_Void.fromScriptOrNil(jsArg(__a, 1))))
2469
+ return nil
2470
+ }
2471
+ }
2472
+ }
2473
+ public static func scriptOrNil(
2474
+ _ name: String, _ length: Int, _ __f: ((ViewCommon?, @escaping () throws -> Void) throws -> Void)?
2475
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
2476
+ }
2477
+
2478
+ public struct FunctionCell_Double_Double_to_Void {
2479
+ public let f: (Double, Double) throws -> Void
2480
+ public static func implicit(_ value: ((Double, Double) throws -> Void)?) -> ((Double, Double) throws -> Void)? {
2481
+ value
2482
+ }
2483
+ public static func present(_ value: ((Double, Double) throws -> Void)?) throws -> (Double, Double) throws -> Void {
2484
+ guard let value else { throw jsNoObject() }
2485
+ return value
2486
+ }
2487
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Double) throws -> Void)
2488
+ -> JSFunctionObject
2489
+ {
2490
+ jsBoxedFunction(Self(f: __f)) {
2491
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2492
+ try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedNumber(jsArg(__a, 1))))
2493
+ return nil
2494
+ }
2495
+ }
2496
+ }
2497
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Double) throws -> Void)?)
2498
+ -> JSFunctionObject?
2499
+ { if let __f { return script(name, length, __f) } else { return nil } }
2500
+ }
2501
+
2502
+ public struct FunctionCell_Double_Double_to_Bool {
2503
+ public let f: (Double, Double) throws -> Bool
2504
+ public static func implicit(_ value: ((Double, Double) throws -> Bool)?) -> ((Double, Double) throws -> Bool)? {
2505
+ value
2506
+ }
2507
+ public static func present(_ value: ((Double, Double) throws -> Bool)?) throws -> (Double, Double) throws -> Bool {
2508
+ guard let value else { throw jsNoObject() }
2509
+ return value
2510
+ }
2511
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Double) throws -> Bool)
2512
+ -> JSFunctionObject
2513
+ {
2514
+ jsBoxedFunction(Self(f: __f)) {
2515
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2516
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedNumber(jsArg(__a, 1))))
2517
+ }
2518
+ }
2519
+ }
2520
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Double) throws -> Bool)?)
2521
+ -> JSFunctionObject?
2522
+ { if let __f { return script(name, length, __f) } else { return nil } }
2523
+ }
2524
+
2525
+ public struct FunctionCell_AnyOpt_AnyOpt_to_UIVisualEffectViewOpt {
2526
+ public let f: (Any?, Any?) throws -> UIVisualEffectView?
2527
+ public static func implicit(_ value: ((Any?, Any?) throws -> UIVisualEffectView?)?) -> (
2528
+ (Any?, Any?) throws -> UIVisualEffectView?
2529
+ )? { value }
2530
+ public static func present(_ value: ((Any?, Any?) throws -> UIVisualEffectView?)?) throws -> (Any?, Any?) throws ->
2531
+ UIVisualEffectView?
2532
+ {
2533
+ guard let value else { throw jsNoObject() }
2534
+ return value
2535
+ }
2536
+ public static func script(
2537
+ _ name: String, _ length: Int, _ __f: @escaping (Any?, Any?) throws -> UIVisualEffectView?
2538
+ ) -> JSFunctionObject {
2539
+ jsBoxedFunction(Self(f: __f)) {
2540
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in return try __f(jsArg(__a, 0), jsArg(__a, 1)) }
2541
+ }
2542
+ }
2543
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Any?) throws -> UIVisualEffectView?)?)
2544
+ -> JSFunctionObject?
2545
+ { if let __f { return script(name, length, __f) } else { return nil } }
2546
+ }
2547
+
2548
+ public struct FunctionCell_Double_AnyOpt_to_Double {
2549
+ public let f: (Double, Any?) throws -> Double
2550
+ public static func implicit(_ value: ((Double, Any?) throws -> Double)?) -> ((Double, Any?) throws -> Double)? {
2551
+ value
2552
+ }
2553
+ public static func present(_ value: ((Double, Any?) throws -> Double)?) throws -> (Double, Any?) throws -> Double {
2554
+ guard let value else { throw jsNoObject() }
2555
+ return value
2556
+ }
2557
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Any?) throws -> Double)
2558
+ -> JSFunctionObject
2559
+ {
2560
+ jsBoxedFunction(Self(f: __f)) {
2561
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2562
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), jsArg(__a, 1))
2563
+ }
2564
+ }
2565
+ }
2566
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Any?) throws -> Double)?)
2567
+ -> JSFunctionObject?
2568
+ { if let __f { return script(name, length, __f) } else { return nil } }
2569
+ }
2570
+
2571
+ public struct FunctionCell_UIVisualEffectViewOpt_UIVisualEffectOpt_to_Void {
2572
+ public let f: (UIVisualEffectView?, UIVisualEffect?) throws -> Void
2573
+ public static func implicit(_ value: ((UIVisualEffectView?, UIVisualEffect?) throws -> Void)?) -> (
2574
+ (UIVisualEffectView?, UIVisualEffect?) throws -> Void
2575
+ )? { value }
2576
+ public static func present(_ value: ((UIVisualEffectView?, UIVisualEffect?) throws -> Void)?) throws -> (
2577
+ UIVisualEffectView?, UIVisualEffect?
2578
+ ) throws -> Void {
2579
+ guard let value else { throw jsNoObject() }
2580
+ return value
2581
+ }
2582
+ public static func script(
2583
+ _ name: String, _ length: Int, _ __f: @escaping (UIVisualEffectView?, UIVisualEffect?) throws -> Void
2584
+ ) -> JSFunctionObject {
2585
+ jsBoxedFunction(Self(f: __f)) {
2586
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2587
+ try __f((jsArg(__a, 0) as? UIVisualEffectView), (jsArg(__a, 1) as? UIVisualEffect))
2588
+ return nil
2589
+ }
2590
+ }
2591
+ }
2592
+ public static func scriptOrNil(
2593
+ _ name: String, _ length: Int, _ __f: ((UIVisualEffectView?, UIVisualEffect?) throws -> Void)?
2594
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
2595
+ public static func fromScript(_ __f: Any?) -> (UIVisualEffectView?, UIVisualEffect?) throws -> Void {
2596
+ if let __t = jsFlat(__f) as? (UIVisualEffectView?, UIVisualEffect?) throws -> Void { return __t }
2597
+ let __i = JSFunctionAlias(of: __f)
2598
+ return jsIdentified(
2599
+ Self(f: { (__p0: UIVisualEffectView?, __p1: UIVisualEffect?) throws -> Void in
2600
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try jsCall(__f, __p0, __p1) }
2601
+ }), __i
2602
+ ).f
2603
+ }
2604
+ public static func fromScriptOrNil(_ __f: Any?) -> ((UIVisualEffectView?, UIVisualEffect?) throws -> Void)? {
2605
+ jsIsNullish(__f) ? nil : fromScript(__f)
2606
+ }
2607
+ }
2608
+
2609
+ public struct FunctionCell_Bool_Bool_to_Void {
2610
+ public let f: (Bool, Bool) throws -> Void
2611
+ public static func implicit(_ value: ((Bool, Bool) throws -> Void)?) -> ((Bool, Bool) throws -> Void)? { value }
2612
+ public static func present(_ value: ((Bool, Bool) throws -> Void)?) throws -> (Bool, Bool) throws -> Void {
2613
+ guard let value else { throw jsNoObject() }
2614
+ return value
2615
+ }
2616
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Bool, Bool) throws -> Void)
2617
+ -> JSFunctionObject
2618
+ {
2619
+ jsBoxedFunction(Self(f: __f)) {
2620
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2621
+ try __f((try jsConvertedBool(jsArg(__a, 0))), (try jsConvertedBool(jsArg(__a, 1))))
2622
+ return nil
2623
+ }
2624
+ }
2625
+ }
2626
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Bool, Bool) throws -> Void)?)
2627
+ -> JSFunctionObject?
2628
+ { if let __f { return script(name, length, __f) } else { return nil } }
2629
+ }
2630
+
2631
+ public struct FunctionCell_UIViewControllerOpt_ViewOpt_to_Void {
2632
+ public let f: (UIViewController?, View?) throws -> Void
2633
+ public static func implicit(_ value: ((UIViewController?, View?) throws -> Void)?) -> (
2634
+ (UIViewController?, View?) throws -> Void
2635
+ )? { value }
2636
+ public static func present(_ value: ((UIViewController?, View?) throws -> Void)?) throws -> (
2637
+ UIViewController?, View?
2638
+ ) throws -> Void {
2639
+ guard let value else { throw jsNoObject() }
2640
+ return value
2641
+ }
2642
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UIViewController?, View?) throws -> Void)
2643
+ -> JSFunctionObject
2644
+ {
2645
+ jsBoxedFunction(Self(f: __f)) {
2646
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2647
+ try __f((jsArg(__a, 0) as? UIViewController), (try jsCast(jsArg(__a, 1), View.self)))
2648
+ return nil
2649
+ }
2650
+ }
2651
+ }
2652
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIViewController?, View?) throws -> Void)?)
2653
+ -> JSFunctionObject?
2654
+ { if let __f { return script(name, length, __f) } else { return nil } }
2655
+ }
2656
+
2657
+ public struct FunctionCell_UINavigationBarOpt_ColorOpt_to_Void {
2658
+ public let f: (UINavigationBar?, Color?) throws -> Void
2659
+ public static func implicit(_ value: ((UINavigationBar?, Color?) throws -> Void)?) -> (
2660
+ (UINavigationBar?, Color?) throws -> Void
2661
+ )? { value }
2662
+ public static func present(_ value: ((UINavigationBar?, Color?) throws -> Void)?) throws -> (
2663
+ UINavigationBar?, Color?
2664
+ ) throws -> Void {
2665
+ guard let value else { throw jsNoObject() }
2666
+ return value
2667
+ }
2668
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UINavigationBar?, Color?) throws -> Void)
2669
+ -> JSFunctionObject
2670
+ {
2671
+ jsBoxedFunction(Self(f: __f)) {
2672
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2673
+ try __f((jsArg(__a, 0) as? UINavigationBar), (try jsCast(jsArg(__a, 1), Color.self)))
2674
+ return nil
2675
+ }
2676
+ }
2677
+ }
2678
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UINavigationBar?, Color?) throws -> Void)?)
2679
+ -> JSFunctionObject?
2680
+ { if let __f { return script(name, length, __f) } else { return nil } }
2681
+ }
2682
+
2683
+ public struct FunctionCell_UINavigationBarOpt_AnyOpt_to_Void {
2684
+ public let f: (UINavigationBar?, Any?) throws -> Void
2685
+ public static func implicit(_ value: ((UINavigationBar?, Any?) throws -> Void)?) -> (
2686
+ (UINavigationBar?, Any?) throws -> Void
2687
+ )? { value }
2688
+ public static func present(_ value: ((UINavigationBar?, Any?) throws -> Void)?) throws -> (UINavigationBar?, Any?)
2689
+ throws -> Void
2690
+ {
2691
+ guard let value else { throw jsNoObject() }
2692
+ return value
2693
+ }
2694
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UINavigationBar?, Any?) throws -> Void)
2695
+ -> JSFunctionObject
2696
+ {
2697
+ jsBoxedFunction(Self(f: __f)) {
2698
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2699
+ try __f((jsArg(__a, 0) as? UINavigationBar), jsArg(__a, 1))
2700
+ return nil
2701
+ }
2702
+ }
2703
+ }
2704
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UINavigationBar?, Any?) throws -> Void)?)
2705
+ -> JSFunctionObject?
2706
+ { if let __f { return script(name, length, __f) } else { return nil } }
2707
+ }
2708
+
2709
+ public struct FunctionCell_UINavigationBarOpt_UIImageOpt_to_Void {
2710
+ public let f: (UINavigationBar?, UIImage?) throws -> Void
2711
+ public static func implicit(_ value: ((UINavigationBar?, UIImage?) throws -> Void)?) -> (
2712
+ (UINavigationBar?, UIImage?) throws -> Void
2713
+ )? { value }
2714
+ public static func present(_ value: ((UINavigationBar?, UIImage?) throws -> Void)?) throws -> (
2715
+ UINavigationBar?, UIImage?
2716
+ ) throws -> Void {
2717
+ guard let value else { throw jsNoObject() }
2718
+ return value
2719
+ }
2720
+ public static func script(
2721
+ _ name: String, _ length: Int, _ __f: @escaping (UINavigationBar?, UIImage?) throws -> Void
2722
+ ) -> JSFunctionObject {
2723
+ jsBoxedFunction(Self(f: __f)) {
2724
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2725
+ try __f((jsArg(__a, 0) as? UINavigationBar), (jsArg(__a, 1) as? UIImage))
2726
+ return nil
2727
+ }
2728
+ }
2729
+ }
2730
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UINavigationBar?, UIImage?) throws -> Void)?)
2731
+ -> JSFunctionObject?
2732
+ { if let __f { return script(name, length, __f) } else { return nil } }
2733
+ }
2734
+
2735
+ public struct FunctionCell_UINavigationBarOpt_UINavigationBarAppearanceOpt_to_Void {
2736
+ public let f: (UINavigationBar?, UINavigationBarAppearance?) throws -> Void
2737
+ public static func implicit(_ value: ((UINavigationBar?, UINavigationBarAppearance?) throws -> Void)?) -> (
2738
+ (UINavigationBar?, UINavigationBarAppearance?) throws -> Void
2739
+ )? { value }
2740
+ public static func present(_ value: ((UINavigationBar?, UINavigationBarAppearance?) throws -> Void)?) throws -> (
2741
+ UINavigationBar?, UINavigationBarAppearance?
2742
+ ) throws -> Void {
2743
+ guard let value else { throw jsNoObject() }
2744
+ return value
2745
+ }
2746
+ public static func script(
2747
+ _ name: String, _ length: Int, _ __f: @escaping (UINavigationBar?, UINavigationBarAppearance?) throws -> Void
2748
+ ) -> JSFunctionObject {
2749
+ jsBoxedFunction(Self(f: __f)) {
2750
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2751
+ try __f((jsArg(__a, 0) as? UINavigationBar), (jsArg(__a, 1) as? UINavigationBarAppearance))
2752
+ return nil
2753
+ }
2754
+ }
2755
+ }
2756
+ public static func scriptOrNil(
2757
+ _ name: String, _ length: Int, _ __f: ((UINavigationBar?, UINavigationBarAppearance?) throws -> Void)?
2758
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
2759
+ }
2760
+
2761
+ public struct FunctionCell_SpanOpt_String_to_NSMutableAttributedStringOpt {
2762
+ public let f: (Span?, String) throws -> NSMutableAttributedString?
2763
+ public static func implicit(_ value: ((Span?, String) throws -> NSMutableAttributedString?)?) -> (
2764
+ (Span?, String) throws -> NSMutableAttributedString?
2765
+ )? { value }
2766
+ public static func present(_ value: ((Span?, String) throws -> NSMutableAttributedString?)?) throws -> (
2767
+ Span?, String
2768
+ ) throws -> NSMutableAttributedString? {
2769
+ guard let value else { throw jsNoObject() }
2770
+ return value
2771
+ }
2772
+ public static func script(
2773
+ _ name: String, _ length: Int, _ __f: @escaping (Span?, String) throws -> NSMutableAttributedString?
2774
+ ) -> JSFunctionObject {
2775
+ jsBoxedFunction(Self(f: __f)) {
2776
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2777
+ return try __f((try jsCast(jsArg(__a, 0), Span.self)), (try jsConvertedString(jsArg(__a, 1))))
2778
+ }
2779
+ }
2780
+ }
2781
+ public static func scriptOrNil(
2782
+ _ name: String, _ length: Int, _ __f: ((Span?, String) throws -> NSMutableAttributedString?)?
2783
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
2784
+ }
2785
+
2786
+ public struct FunctionCell_UIFontOpt_StringOpt_to_Double {
2787
+ public let f: (UIFont?, String?) throws -> Double
2788
+ public static func implicit(_ value: ((UIFont?, String?) throws -> Double)?) -> (
2789
+ (UIFont?, String?) throws -> Double
2790
+ )? { value }
2791
+ public static func present(_ value: ((UIFont?, String?) throws -> Double)?) throws -> (UIFont?, String?) throws ->
2792
+ Double
2793
+ {
2794
+ guard let value else { throw jsNoObject() }
2795
+ return value
2796
+ }
2797
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UIFont?, String?) throws -> Double)
2798
+ -> JSFunctionObject
2799
+ {
2800
+ jsBoxedFunction(Self(f: __f)) {
2801
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2802
+ return try __f((jsArg(__a, 0) as? UIFont), (try jsConvertedStringOrNil(jsArg(__a, 1))))
2803
+ }
2804
+ }
2805
+ }
2806
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIFont?, String?) throws -> Double)?)
2807
+ -> JSFunctionObject?
2808
+ { if let __f { return script(name, length, __f) } else { return nil } }
2809
+ }
2810
+
2811
+ public struct FunctionCell_ViewOpt_ViewOpt_to_Void {
2812
+ public let f: (View?, View?) throws -> Void
2813
+ public static func implicit(_ value: ((View?, View?) throws -> Void)?) -> ((View?, View?) throws -> Void)? { value }
2814
+ public static func present(_ value: ((View?, View?) throws -> Void)?) throws -> (View?, View?) throws -> Void {
2815
+ guard let value else { throw jsNoObject() }
2816
+ return value
2817
+ }
2818
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, View?) throws -> Void)
2819
+ -> JSFunctionObject
2820
+ {
2821
+ jsBoxedFunction(Self(f: __f)) {
2822
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2823
+ try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsCast(jsArg(__a, 1), View.self)))
2824
+ return nil
2825
+ }
2826
+ }
2827
+ }
2828
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, View?) throws -> Void)?)
2829
+ -> JSFunctionObject?
2830
+ { if let __f { return script(name, length, __f) } else { return nil } }
2831
+ }
2832
+
2833
+ public struct FunctionCell_Double_String_to_Never {
2834
+ public let f: (Double, String) throws -> Never
2835
+ public static func implicit(_ value: ((Double, String) throws -> Never)?) -> ((Double, String) throws -> Never)? {
2836
+ value
2837
+ }
2838
+ public static func present(_ value: ((Double, String) throws -> Never)?) throws -> (Double, String) throws -> Never
2839
+ {
2840
+ guard let value else { throw jsNoObject() }
2841
+ return value
2842
+ }
2843
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, String) throws -> Never)
2844
+ -> JSFunctionObject
2845
+ {
2846
+ jsBoxedFunction(Self(f: __f)) {
2847
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2848
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
2849
+ }
2850
+ }
2851
+ }
2852
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, String) throws -> Never)?)
2853
+ -> JSFunctionObject?
2854
+ { if let __f { return script(name, length, __f) } else { return nil } }
2855
+ }
2856
+
2857
+ public struct FunctionCell_TokenTypeOpt_String_to_Void {
2858
+ public let f: (TokenType?, String) throws -> Void
2859
+ public static func implicit(_ value: ((TokenType?, String) throws -> Void)?) -> (
2860
+ (TokenType?, String) throws -> Void
2861
+ )? { value }
2862
+ public static func present(_ value: ((TokenType?, String) throws -> Void)?) throws -> (TokenType?, String) throws ->
2863
+ Void
2864
+ {
2865
+ guard let value else { throw jsNoObject() }
2866
+ return value
2867
+ }
2868
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (TokenType?, String) throws -> Void)
2869
+ -> JSFunctionObject
2870
+ {
2871
+ jsBoxedFunction(Self(f: __f)) {
2872
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2873
+ try __f((try jsCast(jsArg(__a, 0), TokenType.self)), (try jsConvertedString(jsArg(__a, 1))))
2874
+ return nil
2875
+ }
2876
+ }
2877
+ }
2878
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((TokenType?, String) throws -> Void)?)
2879
+ -> JSFunctionObject?
2880
+ { if let __f { return script(name, length, __f) } else { return nil } }
2881
+ }
2882
+
2883
+ public struct FunctionCell_TokenTypeOpt_Double_to_Void {
2884
+ public let f: (TokenType?, Double) throws -> Void
2885
+ public static func implicit(_ value: ((TokenType?, Double) throws -> Void)?) -> (
2886
+ (TokenType?, Double) throws -> Void
2887
+ )? { value }
2888
+ public static func present(_ value: ((TokenType?, Double) throws -> Void)?) throws -> (TokenType?, Double) throws ->
2889
+ Void
2890
+ {
2891
+ guard let value else { throw jsNoObject() }
2892
+ return value
2893
+ }
2894
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (TokenType?, Double) throws -> Void)
2895
+ -> JSFunctionObject
2896
+ {
2897
+ jsBoxedFunction(Self(f: __f)) {
2898
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2899
+ try __f((try jsCast(jsArg(__a, 0), TokenType.self)), (try jsConvertedNumber(jsArg(__a, 1))))
2900
+ return nil
2901
+ }
2902
+ }
2903
+ }
2904
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((TokenType?, Double) throws -> Void)?)
2905
+ -> JSFunctionObject?
2906
+ { if let __f { return script(name, length, __f) } else { return nil } }
2907
+ }
2908
+
2909
+ public struct FunctionCell_Double_String_to_Void {
2910
+ public let f: (Double, String) throws -> Void
2911
+ public static func implicit(_ value: ((Double, String) throws -> Void)?) -> ((Double, String) throws -> Void)? {
2912
+ value
2913
+ }
2914
+ public static func present(_ value: ((Double, String) throws -> Void)?) throws -> (Double, String) throws -> Void {
2915
+ guard let value else { throw jsNoObject() }
2916
+ return value
2917
+ }
2918
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, String) throws -> Void)
2919
+ -> JSFunctionObject
2920
+ {
2921
+ jsBoxedFunction(Self(f: __f)) {
2922
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2923
+ try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedString(jsArg(__a, 1))))
2924
+ return nil
2925
+ }
2926
+ }
2927
+ }
2928
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, String) throws -> Void)?)
2929
+ -> JSFunctionObject?
2930
+ { if let __f { return script(name, length, __f) } else { return nil } }
2931
+ }
2932
+
2933
+ public struct FunctionCell_Double_Bool_to_Double {
2934
+ public let f: (Double, Bool) throws -> Double
2935
+ public static func implicit(_ value: ((Double, Bool) throws -> Double)?) -> ((Double, Bool) throws -> Double)? {
2936
+ value
2937
+ }
2938
+ public static func present(_ value: ((Double, Bool) throws -> Double)?) throws -> (Double, Bool) throws -> Double {
2939
+ guard let value else { throw jsNoObject() }
2940
+ return value
2941
+ }
2942
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Bool) throws -> Double)
2943
+ -> JSFunctionObject
2944
+ {
2945
+ jsBoxedFunction(Self(f: __f)) {
2946
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2947
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedBool(jsArg(__a, 1))))
2948
+ }
2949
+ }
2950
+ }
2951
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Bool) throws -> Double)?)
2952
+ -> JSFunctionObject?
2953
+ { if let __f { return script(name, length, __f) } else { return nil } }
2954
+ }
2955
+
2956
+ public struct FunctionCell_TokenTypeOpt_Bool_to_Bool {
2957
+ public let f: (TokenType?, Bool) throws -> Bool
2958
+ public static func implicit(_ value: ((TokenType?, Bool) throws -> Bool)?) -> ((TokenType?, Bool) throws -> Bool)? {
2959
+ value
2960
+ }
2961
+ public static func present(_ value: ((TokenType?, Bool) throws -> Bool)?) throws -> (TokenType?, Bool) throws ->
2962
+ Bool
2963
+ {
2964
+ guard let value else { throw jsNoObject() }
2965
+ return value
2966
+ }
2967
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (TokenType?, Bool) throws -> Bool)
2968
+ -> JSFunctionObject
2969
+ {
2970
+ jsBoxedFunction(Self(f: __f)) {
2971
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2972
+ return try __f((try jsCast(jsArg(__a, 0), TokenType.self)), (try jsConvertedBool(jsArg(__a, 1))))
2973
+ }
2974
+ }
2975
+ }
2976
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((TokenType?, Bool) throws -> Bool)?)
2977
+ -> JSFunctionObject?
2978
+ { if let __f { return script(name, length, __f) } else { return nil } }
2979
+ }
2980
+
2981
+ public struct FunctionCell_DestructuringErrorsOpt_Bool_to_Void {
2982
+ public let f: (DestructuringErrors?, Bool) throws -> Void
2983
+ public static func implicit(_ value: ((DestructuringErrors?, Bool) throws -> Void)?) -> (
2984
+ (DestructuringErrors?, Bool) throws -> Void
2985
+ )? { value }
2986
+ public static func present(_ value: ((DestructuringErrors?, Bool) throws -> Void)?) throws -> (
2987
+ DestructuringErrors?, Bool
2988
+ ) throws -> Void {
2989
+ guard let value else { throw jsNoObject() }
2990
+ return value
2991
+ }
2992
+ public static func script(
2993
+ _ name: String, _ length: Int, _ __f: @escaping (DestructuringErrors?, Bool) throws -> Void
2994
+ ) -> JSFunctionObject {
2995
+ jsBoxedFunction(Self(f: __f)) {
2996
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
2997
+ try __f((try jsCast(jsArg(__a, 0), DestructuringErrors.self)), (try jsConvertedBool(jsArg(__a, 1))))
2998
+ return nil
2999
+ }
3000
+ }
3001
+ }
3002
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((DestructuringErrors?, Bool) throws -> Void)?)
3003
+ -> JSFunctionObject?
3004
+ { if let __f { return script(name, length, __f) } else { return nil } }
3005
+ }
3006
+
3007
+ public struct FunctionCell_DestructuringErrorsOpt_Bool_to_Bool {
3008
+ public let f: (DestructuringErrors?, Bool) throws -> Bool
3009
+ public static func implicit(_ value: ((DestructuringErrors?, Bool) throws -> Bool)?) -> (
3010
+ (DestructuringErrors?, Bool) throws -> Bool
3011
+ )? { value }
3012
+ public static func present(_ value: ((DestructuringErrors?, Bool) throws -> Bool)?) throws -> (
3013
+ DestructuringErrors?, Bool
3014
+ ) throws -> Bool {
3015
+ guard let value else { throw jsNoObject() }
3016
+ return value
3017
+ }
3018
+ public static func script(
3019
+ _ name: String, _ length: Int, _ __f: @escaping (DestructuringErrors?, Bool) throws -> Bool
3020
+ ) -> JSFunctionObject {
3021
+ jsBoxedFunction(Self(f: __f)) {
3022
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3023
+ return try __f(
3024
+ (try jsCast(jsArg(__a, 0), DestructuringErrors.self)), (try jsConvertedBool(jsArg(__a, 1))))
3025
+ }
3026
+ }
3027
+ }
3028
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((DestructuringErrors?, Bool) throws -> Bool)?)
3029
+ -> JSFunctionObject?
3030
+ { if let __f { return script(name, length, __f) } else { return nil } }
3031
+ }
3032
+
3033
+ public struct FunctionCell_String_Bool_to_AnyOpt {
3034
+ public let f: (String, Bool) throws -> Any?
3035
+ public static func implicit(_ value: ((String, Bool) throws -> Any?)?) -> ((String, Bool) throws -> Any?)? { value }
3036
+ public static func present(_ value: ((String, Bool) throws -> Any?)?) throws -> (String, Bool) throws -> Any? {
3037
+ guard let value else { throw jsNoObject() }
3038
+ return value
3039
+ }
3040
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Bool) throws -> Any?)
3041
+ -> JSFunctionObject
3042
+ {
3043
+ jsBoxedFunction(Self(f: __f)) {
3044
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3045
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedBool(jsArg(__a, 1))))
3046
+ }
3047
+ }
3048
+ }
3049
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Bool) throws -> Any?)?)
3050
+ -> JSFunctionObject?
3051
+ { if let __f { return script(name, length, __f) } else { return nil } }
3052
+ }
3053
+
3054
+ public struct FunctionCell_DestructuringErrorsOpt_Bool_to_AnyOpt {
3055
+ public let f: (DestructuringErrors?, Bool) throws -> Any?
3056
+ public static func implicit(_ value: ((DestructuringErrors?, Bool) throws -> Any?)?) -> (
3057
+ (DestructuringErrors?, Bool) throws -> Any?
3058
+ )? { value }
3059
+ public static func present(_ value: ((DestructuringErrors?, Bool) throws -> Any?)?) throws -> (
3060
+ DestructuringErrors?, Bool
3061
+ ) throws -> Any? {
3062
+ guard let value else { throw jsNoObject() }
3063
+ return value
3064
+ }
3065
+ public static func script(
3066
+ _ name: String, _ length: Int, _ __f: @escaping (DestructuringErrors?, Bool) throws -> Any?
3067
+ ) -> JSFunctionObject {
3068
+ jsBoxedFunction(Self(f: __f)) {
3069
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3070
+ return try __f(
3071
+ (try jsCast(jsArg(__a, 0), DestructuringErrors.self)), (try jsConvertedBool(jsArg(__a, 1))))
3072
+ }
3073
+ }
3074
+ }
3075
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((DestructuringErrors?, Bool) throws -> Any?)?)
3076
+ -> JSFunctionObject?
3077
+ { if let __f { return script(name, length, __f) } else { return nil } }
3078
+ }
3079
+
3080
+ public struct FunctionCell_Bool_DestructuringErrorsOpt_to_AnyOpt {
3081
+ public let f: (Bool, DestructuringErrors?) throws -> Any?
3082
+ public static func implicit(_ value: ((Bool, DestructuringErrors?) throws -> Any?)?) -> (
3083
+ (Bool, DestructuringErrors?) throws -> Any?
3084
+ )? { value }
3085
+ public static func present(_ value: ((Bool, DestructuringErrors?) throws -> Any?)?) throws -> (
3086
+ Bool, DestructuringErrors?
3087
+ ) throws -> Any? {
3088
+ guard let value else { throw jsNoObject() }
3089
+ return value
3090
+ }
3091
+ public static func script(
3092
+ _ name: String, _ length: Int, _ __f: @escaping (Bool, DestructuringErrors?) throws -> Any?
3093
+ ) -> JSFunctionObject {
3094
+ jsBoxedFunction(Self(f: __f)) {
3095
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3096
+ return try __f(
3097
+ (try jsConvertedBool(jsArg(__a, 0))), (try jsCast(jsArg(__a, 1), DestructuringErrors.self)))
3098
+ }
3099
+ }
3100
+ }
3101
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Bool, DestructuringErrors?) throws -> Any?)?)
3102
+ -> JSFunctionObject?
3103
+ { if let __f { return script(name, length, __f) } else { return nil } }
3104
+ }
3105
+
3106
+ public struct FunctionCell_Double_AnyOpt_to_AnyOpt {
3107
+ public let f: (Double, Any?) throws -> Any?
3108
+ public static func implicit(_ value: ((Double, Any?) throws -> Any?)?) -> ((Double, Any?) throws -> Any?)? { value }
3109
+ public static func present(_ value: ((Double, Any?) throws -> Any?)?) throws -> (Double, Any?) throws -> Any? {
3110
+ guard let value else { throw jsNoObject() }
3111
+ return value
3112
+ }
3113
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Any?) throws -> Any?)
3114
+ -> JSFunctionObject
3115
+ {
3116
+ jsBoxedFunction(Self(f: __f)) {
3117
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3118
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), jsArg(__a, 1))
3119
+ }
3120
+ }
3121
+ }
3122
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Any?) throws -> Any?)?)
3123
+ -> JSFunctionObject?
3124
+ { if let __f { return script(name, length, __f) } else { return nil } }
3125
+ }
3126
+
3127
+ public struct FunctionCell_JSArray_AnyOpt_Opt_Bool_to_JSArray_AnyOpt_Opt {
3128
+ public let f: (JSArray<Any?>?, Bool) throws -> JSArray<Any?>?
3129
+ public static func implicit(_ value: ((JSArray<Any?>?, Bool) throws -> JSArray<Any?>?)?) -> (
3130
+ (JSArray<Any?>?, Bool) throws -> JSArray<Any?>?
3131
+ )? { value }
3132
+ public static func present(_ value: ((JSArray<Any?>?, Bool) throws -> JSArray<Any?>?)?) throws -> (
3133
+ JSArray<Any?>?, Bool
3134
+ ) throws -> JSArray<Any?>? {
3135
+ guard let value else { throw jsNoObject() }
3136
+ return value
3137
+ }
3138
+ public static func script(
3139
+ _ name: String, _ length: Int, _ __f: @escaping (JSArray<Any?>?, Bool) throws -> JSArray<Any?>?
3140
+ ) -> JSFunctionObject {
3141
+ jsBoxedFunction(Self(f: __f)) {
3142
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3143
+ return try __f(
3144
+ jsArrayOrNil(jsArg(__a, 0), as: JSArray<Any?>.self, { $0 }), (try jsConvertedBool(jsArg(__a, 1))))
3145
+ }
3146
+ }
3147
+ }
3148
+ public static func scriptOrNil(
3149
+ _ name: String, _ length: Int, _ __f: ((JSArray<Any?>?, Bool) throws -> JSArray<Any?>?)?
3150
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
3151
+ }
3152
+
3153
+ public struct FunctionCell_JSDateOpt_JSDateOpt_to_Bool {
3154
+ public let f: (JSDate?, JSDate?) throws -> Bool
3155
+ public static func implicit(_ value: ((JSDate?, JSDate?) throws -> Bool)?) -> ((JSDate?, JSDate?) throws -> Bool)? {
3156
+ value
3157
+ }
3158
+ public static func present(_ value: ((JSDate?, JSDate?) throws -> Bool)?) throws -> (JSDate?, JSDate?) throws ->
3159
+ Bool
3160
+ {
3161
+ guard let value else { throw jsNoObject() }
3162
+ return value
3163
+ }
3164
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (JSDate?, JSDate?) throws -> Bool)
3165
+ -> JSFunctionObject
3166
+ {
3167
+ jsBoxedFunction(Self(f: __f)) {
3168
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3169
+ return try __f(jsDateOrNil(jsArg(__a, 0)), jsDateOrNil(jsArg(__a, 1)))
3170
+ }
3171
+ }
3172
+ }
3173
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((JSDate?, JSDate?) throws -> Bool)?)
3174
+ -> JSFunctionObject?
3175
+ { if let __f { return script(name, length, __f) } else { return nil } }
3176
+ public static func fromScript(_ __f: Any?) -> (JSDate?, JSDate?) throws -> Bool {
3177
+ if let __t = jsFlat(__f) as? (JSDate?, JSDate?) throws -> Bool { return __t }
3178
+ let __i = JSFunctionAlias(of: __f)
3179
+ return jsIdentified(
3180
+ Self(f: { (__p0: JSDate?, __p1: JSDate?) throws -> Bool in
3181
+ return try withExtendedLifetime(__i) { () throws -> Bool in
3182
+ return (try jsConvertedBool(try jsCall(__f, __p0, __p1)))
3183
+ }
3184
+ }), __i
3185
+ ).f
3186
+ }
3187
+ public static func fromScriptOrNil(_ __f: Any?) -> ((JSDate?, JSDate?) throws -> Bool)? {
3188
+ jsIsNullish(__f) ? nil : fromScript(__f)
3189
+ }
3190
+ }
3191
+
3192
+ public struct FunctionCell_AnyOpt_Double_to_Void {
3193
+ public let f: (Any?, Double) throws -> Void
3194
+ public static func implicit(_ value: ((Any?, Double) throws -> Void)?) -> ((Any?, Double) throws -> Void)? { value }
3195
+ public static func present(_ value: ((Any?, Double) throws -> Void)?) throws -> (Any?, Double) throws -> Void {
3196
+ guard let value else { throw jsNoObject() }
3197
+ return value
3198
+ }
3199
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Double) throws -> Void)
3200
+ -> JSFunctionObject
3201
+ {
3202
+ jsBoxedFunction(Self(f: __f)) {
3203
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3204
+ try __f(jsArg(__a, 0), (try jsConvertedNumber(jsArg(__a, 1))))
3205
+ return nil
3206
+ }
3207
+ }
3208
+ }
3209
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Double) throws -> Void)?)
3210
+ -> JSFunctionObject?
3211
+ { if let __f { return script(name, length, __f) } else { return nil } }
3212
+ }
3213
+
3214
+ public struct FunctionCell_PageOpt_BoolOpt_to_Void {
3215
+ public let f: (Page?, Bool?) throws -> Void
3216
+ public static func implicit(_ value: ((Page?, Bool?) throws -> Void)?) -> ((Page?, Bool?) throws -> Void)? { value }
3217
+ public static func present(_ value: ((Page?, Bool?) throws -> Void)?) throws -> (Page?, Bool?) throws -> Void {
3218
+ guard let value else { throw jsNoObject() }
3219
+ return value
3220
+ }
3221
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Page?, Bool?) throws -> Void)
3222
+ -> JSFunctionObject
3223
+ {
3224
+ jsBoxedFunction(Self(f: __f)) {
3225
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3226
+ try __f((try jsCast(jsArg(__a, 0), Page.self)), (try jsConvertedBoolOrNil(jsArg(__a, 1))))
3227
+ return nil
3228
+ }
3229
+ }
3230
+ }
3231
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Page?, Bool?) throws -> Void)?)
3232
+ -> JSFunctionObject?
3233
+ { if let __f { return script(name, length, __f) } else { return nil } }
3234
+ }
3235
+
3236
+ public struct FunctionCell_AnyOpt_Bool_to_Void {
3237
+ public let f: (Any?, Bool) throws -> Void
3238
+ public static func implicit(_ value: ((Any?, Bool) throws -> Void)?) -> ((Any?, Bool) throws -> Void)? { value }
3239
+ public static func present(_ value: ((Any?, Bool) throws -> Void)?) throws -> (Any?, Bool) throws -> Void {
3240
+ guard let value else { throw jsNoObject() }
3241
+ return value
3242
+ }
3243
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Bool) throws -> Void)
3244
+ -> JSFunctionObject
3245
+ {
3246
+ jsBoxedFunction(Self(f: __f)) {
3247
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3248
+ try __f(jsArg(__a, 0), (try jsConvertedBool(jsArg(__a, 1))))
3249
+ return nil
3250
+ }
3251
+ }
3252
+ }
3253
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Bool) throws -> Void)?)
3254
+ -> JSFunctionObject?
3255
+ { if let __f { return script(name, length, __f) } else { return nil } }
3256
+ }
3257
+
3258
+ public struct FunctionCell_ImageSourceOpt_String_to_Void {
3259
+ public let f: (ImageSource?, String) throws -> Void
3260
+ public static func implicit(_ value: ((ImageSource?, String) throws -> Void)?) -> (
3261
+ (ImageSource?, String) throws -> Void
3262
+ )? { value }
3263
+ public static func present(_ value: ((ImageSource?, String) throws -> Void)?) throws -> (ImageSource?, String)
3264
+ throws -> Void
3265
+ {
3266
+ guard let value else { throw jsNoObject() }
3267
+ return value
3268
+ }
3269
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ImageSource?, String) throws -> Void)
3270
+ -> JSFunctionObject
3271
+ {
3272
+ jsBoxedFunction(Self(f: __f)) {
3273
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3274
+ try __f((try jsCast(jsArg(__a, 0), ImageSource.self)), (try jsConvertedString(jsArg(__a, 1))))
3275
+ return nil
3276
+ }
3277
+ }
3278
+ }
3279
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ImageSource?, String) throws -> Void)?)
3280
+ -> JSFunctionObject?
3281
+ { if let __f { return script(name, length, __f) } else { return nil } }
3282
+ }
3283
+
3284
+ public struct FunctionCell_String_JSErrorOpt_to_Void {
3285
+ public let f: (String, JSError?) throws -> Void
3286
+ public static func implicit(_ value: ((String, JSError?) throws -> Void)?) -> ((String, JSError?) throws -> Void)? {
3287
+ value
3288
+ }
3289
+ public static func present(_ value: ((String, JSError?) throws -> Void)?) throws -> (String, JSError?) throws ->
3290
+ Void
3291
+ {
3292
+ guard let value else { throw jsNoObject() }
3293
+ return value
3294
+ }
3295
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, JSError?) throws -> Void)
3296
+ -> JSFunctionObject
3297
+ {
3298
+ jsBoxedFunction(Self(f: __f)) {
3299
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3300
+ try __f((try jsConvertedString(jsArg(__a, 0))), (jsArg(__a, 1) as? JSError))
3301
+ return nil
3302
+ }
3303
+ }
3304
+ }
3305
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, JSError?) throws -> Void)?)
3306
+ -> JSFunctionObject?
3307
+ { if let __f { return script(name, length, __f) } else { return nil } }
3308
+ }
3309
+
3310
+ public struct FunctionCell_AnyOpt_Bool_to_Bool {
3311
+ public let f: (Any?, Bool) throws -> Bool
3312
+ public static func implicit(_ value: ((Any?, Bool) throws -> Bool)?) -> ((Any?, Bool) throws -> Bool)? { value }
3313
+ public static func present(_ value: ((Any?, Bool) throws -> Bool)?) throws -> (Any?, Bool) throws -> Bool {
3314
+ guard let value else { throw jsNoObject() }
3315
+ return value
3316
+ }
3317
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, Bool) throws -> Bool)
3318
+ -> JSFunctionObject
3319
+ {
3320
+ jsBoxedFunction(Self(f: __f)) {
3321
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3322
+ return try __f(jsArg(__a, 0), (try jsConvertedBool(jsArg(__a, 1))))
3323
+ }
3324
+ }
3325
+ }
3326
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Bool) throws -> Bool)?)
3327
+ -> JSFunctionObject?
3328
+ { if let __f { return script(name, length, __f) } else { return nil } }
3329
+ }
3330
+
3331
+ public struct FunctionCell_ViewOpt_Double_to_Bool {
3332
+ public let f: (View?, Double) throws -> Bool
3333
+ public static func implicit(_ value: ((View?, Double) throws -> Bool)?) -> ((View?, Double) throws -> Bool)? {
3334
+ value
3335
+ }
3336
+ public static func present(_ value: ((View?, Double) throws -> Bool)?) throws -> (View?, Double) throws -> Bool {
3337
+ guard let value else { throw jsNoObject() }
3338
+ return value
3339
+ }
3340
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Double) throws -> Bool)
3341
+ -> JSFunctionObject
3342
+ {
3343
+ jsBoxedFunction(Self(f: __f)) {
3344
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3345
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsConvertedNumber(jsArg(__a, 1))))
3346
+ }
3347
+ }
3348
+ }
3349
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Double) throws -> Bool)?)
3350
+ -> JSFunctionObject?
3351
+ { if let __f { return script(name, length, __f) } else { return nil } }
3352
+ }
3353
+
3354
+ public struct FunctionCell_ViewOpt_Bool_to_Void {
3355
+ public let f: (View?, Bool) throws -> Void
3356
+ public static func implicit(_ value: ((View?, Bool) throws -> Void)?) -> ((View?, Bool) throws -> Void)? { value }
3357
+ public static func present(_ value: ((View?, Bool) throws -> Void)?) throws -> (View?, Bool) throws -> Void {
3358
+ guard let value else { throw jsNoObject() }
3359
+ return value
3360
+ }
3361
+ public static func fromScript(_ __f: Any?) -> (View?, Bool) throws -> Void {
3362
+ if let __t = jsFlat(__f) as? (View?, Bool) throws -> Void { return __t }
3363
+ let __i = JSFunctionAlias(of: __f)
3364
+ return jsIdentified(
3365
+ Self(f: { (__p0: View?, __p1: Bool) throws -> Void in
3366
+ try withExtendedLifetime(__i) { () throws -> Void in _ = try jsCall(__f, __p0, __p1) }
3367
+ }), __i
3368
+ ).f
3369
+ }
3370
+ public static func fromScriptOrNil(_ __f: Any?) -> ((View?, Bool) throws -> Void)? {
3371
+ jsIsNullish(__f) ? nil : fromScript(__f)
3372
+ }
3373
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Bool) throws -> Void)
3374
+ -> JSFunctionObject
3375
+ {
3376
+ jsBoxedFunction(Self(f: __f)) {
3377
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3378
+ try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsConvertedBool(jsArg(__a, 1))))
3379
+ return nil
3380
+ }
3381
+ }
3382
+ }
3383
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Bool) throws -> Void)?)
3384
+ -> JSFunctionObject?
3385
+ { if let __f { return script(name, length, __f) } else { return nil } }
3386
+ }
3387
+
3388
+ public struct FunctionCell_String_DoubleOpt_to_Double {
3389
+ public let f: (String, Double?) throws -> Double
3390
+ public static func implicit(_ value: ((String, Double?) throws -> Double)?) -> ((String, Double?) throws -> Double)?
3391
+ { value }
3392
+ public static func present(_ value: ((String, Double?) throws -> Double)?) throws -> (String, Double?) throws ->
3393
+ Double
3394
+ {
3395
+ guard let value else { throw jsNoObject() }
3396
+ return value
3397
+ }
3398
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Double?) throws -> Double)
3399
+ -> JSFunctionObject
3400
+ {
3401
+ jsBoxedFunction(Self(f: __f)) {
3402
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3403
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
3404
+ }
3405
+ }
3406
+ }
3407
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Double?) throws -> Double)?)
3408
+ -> JSFunctionObject?
3409
+ { if let __f { return script(name, length, __f) } else { return nil } }
3410
+ public static func fromScript(_ __f: Any?) -> (String, Double?) throws -> Double {
3411
+ if let __t = jsFlat(__f) as? (String, Double?) throws -> Double { return __t }
3412
+ let __i = JSFunctionAlias(of: __f)
3413
+ return jsIdentified(
3414
+ Self(f: { (__p0: String, __p1: Double?) throws -> Double in
3415
+ return try withExtendedLifetime(__i) { () throws -> Double in
3416
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
3417
+ }
3418
+ }), __i
3419
+ ).f
3420
+ }
3421
+ public static func fromScriptOrNil(_ __f: Any?) -> ((String, Double?) throws -> Double)? {
3422
+ jsIsNullish(__f) ? nil : fromScript(__f)
3423
+ }
3424
+ }
3425
+
3426
+ public struct FunctionCell_Double_JSArray_Order_Opt_to_JSArray_Double_Opt {
3427
+ public let f: (Double, JSArray<Order>?) throws -> JSArray<Double>?
3428
+ public static func implicit(_ value: ((Double, JSArray<Order>?) throws -> JSArray<Double>?)?) -> (
3429
+ (Double, JSArray<Order>?) throws -> JSArray<Double>?
3430
+ )? { value }
3431
+ public static func present(_ value: ((Double, JSArray<Order>?) throws -> JSArray<Double>?)?) throws -> (
3432
+ Double, JSArray<Order>?
3433
+ ) throws -> JSArray<Double>? {
3434
+ guard let value else { throw jsNoObject() }
3435
+ return value
3436
+ }
3437
+ public static func script(
3438
+ _ name: String, _ length: Int, _ __f: @escaping (Double, JSArray<Order>?) throws -> JSArray<Double>?
3439
+ ) -> JSFunctionObject {
3440
+ jsBoxedFunction(Self(f: __f)) {
3441
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3442
+ return try __f(
3443
+ (try jsConvertedNumber(jsArg(__a, 0))),
3444
+ try jsArrayOrNil(
3445
+ jsArg(__a, 1), as: JSArray<Order>.self,
3446
+ { try jsObjectRequired(jsShaped($0) { NativeScriptKit.Order() }) }))
3447
+ }
3448
+ }
3449
+ }
3450
+ public static func scriptOrNil(
3451
+ _ name: String, _ length: Int, _ __f: ((Double, JSArray<Order>?) throws -> JSArray<Double>?)?
3452
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
3453
+ }
3454
+
3455
+ public struct FunctionCell_ItemSpecOpt_Double_to_Void {
3456
+ public let f: (ItemSpec?, Double) throws -> Void
3457
+ public static func implicit(_ value: ((ItemSpec?, Double) throws -> Void)?) -> ((ItemSpec?, Double) throws -> Void)?
3458
+ { value }
3459
+ public static func present(_ value: ((ItemSpec?, Double) throws -> Void)?) throws -> (ItemSpec?, Double) throws ->
3460
+ Void
3461
+ {
3462
+ guard let value else { throw jsNoObject() }
3463
+ return value
3464
+ }
3465
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ItemSpec?, Double) throws -> Void)
3466
+ -> JSFunctionObject
3467
+ {
3468
+ jsBoxedFunction(Self(f: __f)) {
3469
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3470
+ try __f((try jsCast(jsArg(__a, 0), ItemSpec.self)), (try jsConvertedNumber(jsArg(__a, 1))))
3471
+ return nil
3472
+ }
3473
+ }
3474
+ }
3475
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ItemSpec?, Double) throws -> Void)?)
3476
+ -> JSFunctionObject?
3477
+ { if let __f { return script(name, length, __f) } else { return nil } }
3478
+ }
3479
+
3480
+ public struct FunctionCell_ViewOpt_Double_to_Double {
3481
+ public let f: (View?, Double) throws -> Double
3482
+ public static func implicit(_ value: ((View?, Double) throws -> Double)?) -> ((View?, Double) throws -> Double)? {
3483
+ value
3484
+ }
3485
+ public static func present(_ value: ((View?, Double) throws -> Double)?) throws -> (View?, Double) throws -> Double
3486
+ {
3487
+ guard let value else { throw jsNoObject() }
3488
+ return value
3489
+ }
3490
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Double) throws -> Double)
3491
+ -> JSFunctionObject
3492
+ {
3493
+ jsBoxedFunction(Self(f: __f)) {
3494
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3495
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsConvertedNumber(jsArg(__a, 1))))
3496
+ }
3497
+ }
3498
+ }
3499
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Double) throws -> Double)?)
3500
+ -> JSFunctionObject?
3501
+ { if let __f { return script(name, length, __f) } else { return nil } }
3502
+ }
3503
+
3504
+ public struct FunctionCell_ViewOpt_MeasureSpecsOpt_to_Void {
3505
+ public let f: (View?, MeasureSpecs?) throws -> Void
3506
+ public static func implicit(_ value: ((View?, MeasureSpecs?) throws -> Void)?) -> (
3507
+ (View?, MeasureSpecs?) throws -> Void
3508
+ )? { value }
3509
+ public static func present(_ value: ((View?, MeasureSpecs?) throws -> Void)?) throws -> (View?, MeasureSpecs?)
3510
+ throws -> Void
3511
+ {
3512
+ guard let value else { throw jsNoObject() }
3513
+ return value
3514
+ }
3515
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, MeasureSpecs?) throws -> Void)
3516
+ -> JSFunctionObject
3517
+ {
3518
+ jsBoxedFunction(Self(f: __f)) {
3519
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3520
+ try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsCast(jsArg(__a, 1), MeasureSpecs.self)))
3521
+ return nil
3522
+ }
3523
+ }
3524
+ }
3525
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, MeasureSpecs?) throws -> Void)?)
3526
+ -> JSFunctionObject?
3527
+ { if let __f { return script(name, length, __f) } else { return nil } }
3528
+ }
3529
+
3530
+ public struct FunctionCell_MeasureSpecsOpt_Bool_to_Void {
3531
+ public let f: (MeasureSpecs?, Bool) throws -> Void
3532
+ public static func implicit(_ value: ((MeasureSpecs?, Bool) throws -> Void)?) -> (
3533
+ (MeasureSpecs?, Bool) throws -> Void
3534
+ )? { value }
3535
+ public static func present(_ value: ((MeasureSpecs?, Bool) throws -> Void)?) throws -> (MeasureSpecs?, Bool) throws
3536
+ -> Void
3537
+ {
3538
+ guard let value else { throw jsNoObject() }
3539
+ return value
3540
+ }
3541
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (MeasureSpecs?, Bool) throws -> Void)
3542
+ -> JSFunctionObject
3543
+ {
3544
+ jsBoxedFunction(Self(f: __f)) {
3545
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3546
+ try __f((try jsCast(jsArg(__a, 0), MeasureSpecs.self)), (try jsConvertedBool(jsArg(__a, 1))))
3547
+ return nil
3548
+ }
3549
+ }
3550
+ }
3551
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((MeasureSpecs?, Bool) throws -> Void)?)
3552
+ -> JSFunctionObject?
3553
+ { if let __f { return script(name, length, __f) } else { return nil } }
3554
+ }
3555
+
3556
+ public struct FunctionCell_MeasureSpecsOpt_Double_to_Void {
3557
+ public let f: (MeasureSpecs?, Double) throws -> Void
3558
+ public static func implicit(_ value: ((MeasureSpecs?, Double) throws -> Void)?) -> (
3559
+ (MeasureSpecs?, Double) throws -> Void
3560
+ )? { value }
3561
+ public static func present(_ value: ((MeasureSpecs?, Double) throws -> Void)?) throws -> (MeasureSpecs?, Double)
3562
+ throws -> Void
3563
+ {
3564
+ guard let value else { throw jsNoObject() }
3565
+ return value
3566
+ }
3567
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (MeasureSpecs?, Double) throws -> Void)
3568
+ -> JSFunctionObject
3569
+ {
3570
+ jsBoxedFunction(Self(f: __f)) {
3571
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3572
+ try __f((try jsCast(jsArg(__a, 0), MeasureSpecs.self)), (try jsConvertedNumber(jsArg(__a, 1))))
3573
+ return nil
3574
+ }
3575
+ }
3576
+ }
3577
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((MeasureSpecs?, Double) throws -> Void)?)
3578
+ -> JSFunctionObject?
3579
+ { if let __f { return script(name, length, __f) } else { return nil } }
3580
+ }
3581
+
3582
+ public struct FunctionCell_ViewOpt_AnyOpt_to_JSPromise_Void_Opt {
3583
+ public let f: (View?, Any?) throws -> JSPromise<Void>?
3584
+ public static func implicit(_ value: ((View?, Any?) throws -> JSPromise<Void>?)?) -> (
3585
+ (View?, Any?) throws -> JSPromise<Void>?
3586
+ )? { value }
3587
+ public static func present(_ value: ((View?, Any?) throws -> JSPromise<Void>?)?) throws -> (View?, Any?) throws ->
3588
+ JSPromise<Void>?
3589
+ {
3590
+ guard let value else { throw jsNoObject() }
3591
+ return value
3592
+ }
3593
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Any?) throws -> JSPromise<Void>?)
3594
+ -> JSFunctionObject
3595
+ {
3596
+ jsBoxedFunction(Self(f: __f)) {
3597
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3598
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), jsArg(__a, 1))
3599
+ }
3600
+ }
3601
+ }
3602
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Any?) throws -> JSPromise<Void>?)?)
3603
+ -> JSFunctionObject?
3604
+ { if let __f { return script(name, length, __f) } else { return nil } }
3605
+ }
3606
+
3607
+ public struct FunctionCell_ViewOpt_Bool_to_JSPromise_Void_Opt {
3608
+ public let f: (View?, Bool) throws -> JSPromise<Void>?
3609
+ public static func implicit(_ value: ((View?, Bool) throws -> JSPromise<Void>?)?) -> (
3610
+ (View?, Bool) throws -> JSPromise<Void>?
3611
+ )? { value }
3612
+ public static func present(_ value: ((View?, Bool) throws -> JSPromise<Void>?)?) throws -> (View?, Bool) throws ->
3613
+ JSPromise<Void>?
3614
+ {
3615
+ guard let value else { throw jsNoObject() }
3616
+ return value
3617
+ }
3618
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Bool) throws -> JSPromise<Void>?)
3619
+ -> JSFunctionObject
3620
+ {
3621
+ jsBoxedFunction(Self(f: __f)) {
3622
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3623
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), (try jsConvertedBool(jsArg(__a, 1))))
3624
+ }
3625
+ }
3626
+ }
3627
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Bool) throws -> JSPromise<Void>?)?)
3628
+ -> JSFunctionObject?
3629
+ { if let __f { return script(name, length, __f) } else { return nil } }
3630
+ }
3631
+
3632
+ public struct FunctionCell_ViewOpt_AnyOpt_to_AnimationOpt {
3633
+ public let f: (View?, Any?) throws -> Animation?
3634
+ public static func implicit(_ value: ((View?, Any?) throws -> Animation?)?) -> ((View?, Any?) throws -> Animation?)?
3635
+ { value }
3636
+ public static func present(_ value: ((View?, Any?) throws -> Animation?)?) throws -> (View?, Any?) throws ->
3637
+ Animation?
3638
+ {
3639
+ guard let value else { throw jsNoObject() }
3640
+ return value
3641
+ }
3642
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Any?) throws -> Animation?)
3643
+ -> JSFunctionObject
3644
+ {
3645
+ jsBoxedFunction(Self(f: __f)) {
3646
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3647
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), jsArg(__a, 1))
3648
+ }
3649
+ }
3650
+ }
3651
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Any?) throws -> Animation?)?)
3652
+ -> JSFunctionObject?
3653
+ { if let __f { return script(name, length, __f) } else { return nil } }
3654
+ }
3655
+
3656
+ public struct FunctionCell_ViewOpt_AnyOpt_to_AnyOpt {
3657
+ public let f: (View?, Any?) throws -> Any?
3658
+ public static func implicit(_ value: ((View?, Any?) throws -> Any?)?) -> ((View?, Any?) throws -> Any?)? { value }
3659
+ public static func present(_ value: ((View?, Any?) throws -> Any?)?) throws -> (View?, Any?) throws -> Any? {
3660
+ guard let value else { throw jsNoObject() }
3661
+ return value
3662
+ }
3663
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, Any?) throws -> Any?)
3664
+ -> JSFunctionObject
3665
+ {
3666
+ jsBoxedFunction(Self(f: __f)) {
3667
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3668
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), jsArg(__a, 1))
3669
+ }
3670
+ }
3671
+ }
3672
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, Any?) throws -> Any?)?)
3673
+ -> JSFunctionObject?
3674
+ { if let __f { return script(name, length, __f) } else { return nil } }
3675
+ }
3676
+
3677
+ public struct FunctionCell_ListPickerBaseOpt_Double_to_Double {
3678
+ public let f: (ListPickerBase?, Double) throws -> Double
3679
+ public static func implicit(_ value: ((ListPickerBase?, Double) throws -> Double)?) -> (
3680
+ (ListPickerBase?, Double) throws -> Double
3681
+ )? { value }
3682
+ public static func present(_ value: ((ListPickerBase?, Double) throws -> Double)?) throws -> (
3683
+ ListPickerBase?, Double
3684
+ ) throws -> Double {
3685
+ guard let value else { throw jsNoObject() }
3686
+ return value
3687
+ }
3688
+ public static func script(
3689
+ _ name: String, _ length: Int, _ __f: @escaping (ListPickerBase?, Double) throws -> Double
3690
+ ) -> JSFunctionObject {
3691
+ jsBoxedFunction(Self(f: __f)) {
3692
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3693
+ return try __f((try jsCast(jsArg(__a, 0), ListPickerBase.self)), (try jsConvertedNumber(jsArg(__a, 1))))
3694
+ }
3695
+ }
3696
+ }
3697
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ListPickerBase?, Double) throws -> Double)?)
3698
+ -> JSFunctionObject?
3699
+ { if let __f { return script(name, length, __f) } else { return nil } }
3700
+ public static func fromScript(_ __f: Any?) -> (ListPickerBase?, Double) throws -> Double {
3701
+ if let __t = jsFlat(__f) as? (ListPickerBase?, Double) throws -> Double { return __t }
3702
+ let __i = JSFunctionAlias(of: __f)
3703
+ return jsIdentified(
3704
+ Self(f: { (__p0: ListPickerBase?, __p1: Double) throws -> Double in
3705
+ return try withExtendedLifetime(__i) { () throws -> Double in
3706
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
3707
+ }
3708
+ }), __i
3709
+ ).f
3710
+ }
3711
+ public static func fromScriptOrNil(_ __f: Any?) -> ((ListPickerBase?, Double) throws -> Double)? {
3712
+ jsIsNullish(__f) ? nil : fromScript(__f)
3713
+ }
3714
+ }
3715
+
3716
+ public struct FunctionCell_Double_Double_to_AnyOpt {
3717
+ public let f: (Double, Double) throws -> Any?
3718
+ public static func implicit(_ value: ((Double, Double) throws -> Any?)?) -> ((Double, Double) throws -> Any?)? {
3719
+ value
3720
+ }
3721
+ public static func present(_ value: ((Double, Double) throws -> Any?)?) throws -> (Double, Double) throws -> Any? {
3722
+ guard let value else { throw jsNoObject() }
3723
+ return value
3724
+ }
3725
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Double) throws -> Any?)
3726
+ -> JSFunctionObject
3727
+ {
3728
+ jsBoxedFunction(Self(f: __f)) {
3729
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3730
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedNumber(jsArg(__a, 1))))
3731
+ }
3732
+ }
3733
+ }
3734
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Double) throws -> Any?)?)
3735
+ -> JSFunctionObject?
3736
+ { if let __f { return script(name, length, __f) } else { return nil } }
3737
+ }
3738
+
3739
+ public struct FunctionCell_ListViewBaseOpt_AnyOpt_to_AnyOpt {
3740
+ public let f: (ListViewBase?, Any?) throws -> Any?
3741
+ public static func implicit(_ value: ((ListViewBase?, Any?) throws -> Any?)?) -> (
3742
+ (ListViewBase?, Any?) throws -> Any?
3743
+ )? { value }
3744
+ public static func present(_ value: ((ListViewBase?, Any?) throws -> Any?)?) throws -> (ListViewBase?, Any?) throws
3745
+ -> Any?
3746
+ {
3747
+ guard let value else { throw jsNoObject() }
3748
+ return value
3749
+ }
3750
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ListViewBase?, Any?) throws -> Any?)
3751
+ -> JSFunctionObject
3752
+ {
3753
+ jsBoxedFunction(Self(f: __f)) {
3754
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3755
+ return try __f((try jsCast(jsArg(__a, 0), ListViewBase.self)), jsArg(__a, 1))
3756
+ }
3757
+ }
3758
+ }
3759
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ListViewBase?, Any?) throws -> Any?)?)
3760
+ -> JSFunctionObject?
3761
+ { if let __f { return script(name, length, __f) } else { return nil } }
3762
+ public static func fromScript(_ __f: Any?) -> (ListViewBase?, Any?) throws -> Any? {
3763
+ if let __t = jsFlat(__f) as? (ListViewBase?, Any?) throws -> Any? { return __t }
3764
+ let __i = JSFunctionAlias(of: __f)
3765
+ return jsIdentified(
3766
+ Self(f: { (__p0: ListViewBase?, __p1: Any?) throws -> Any? in
3767
+ return try withExtendedLifetime(__i) { () throws -> Any? in return try jsCall(__f, __p0, __p1) }
3768
+ }), __i
3769
+ ).f
3770
+ }
3771
+ public static func fromScriptOrNil(_ __f: Any?) -> ((ListViewBase?, Any?) throws -> Any?)? {
3772
+ jsIsNullish(__f) ? nil : fromScript(__f)
3773
+ }
3774
+ }
3775
+
3776
+ public struct FunctionCell_Double_Bool_to_Void {
3777
+ public let f: (Double, Bool) throws -> Void
3778
+ public static func implicit(_ value: ((Double, Bool) throws -> Void)?) -> ((Double, Bool) throws -> Void)? { value }
3779
+ public static func present(_ value: ((Double, Bool) throws -> Void)?) throws -> (Double, Bool) throws -> Void {
3780
+ guard let value else { throw jsNoObject() }
3781
+ return value
3782
+ }
3783
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Bool) throws -> Void)
3784
+ -> JSFunctionObject
3785
+ {
3786
+ jsBoxedFunction(Self(f: __f)) {
3787
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3788
+ try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedBool(jsArg(__a, 1))))
3789
+ return nil
3790
+ }
3791
+ }
3792
+ }
3793
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Bool) throws -> Void)?)
3794
+ -> JSFunctionObject?
3795
+ { if let __f { return script(name, length, __f) } else { return nil } }
3796
+ }
3797
+
3798
+ public struct FunctionCell_Double_Double_to_Double {
3799
+ public let f: (Double, Double) throws -> Double
3800
+ public static func implicit(_ value: ((Double, Double) throws -> Double)?) -> ((Double, Double) throws -> Double)? {
3801
+ value
3802
+ }
3803
+ public static func present(_ value: ((Double, Double) throws -> Double)?) throws -> (Double, Double) throws ->
3804
+ Double
3805
+ {
3806
+ guard let value else { throw jsNoObject() }
3807
+ return value
3808
+ }
3809
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Double) throws -> Double)
3810
+ -> JSFunctionObject
3811
+ {
3812
+ jsBoxedFunction(Self(f: __f)) {
3813
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3814
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedNumber(jsArg(__a, 1))))
3815
+ }
3816
+ }
3817
+ }
3818
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Double) throws -> Double)?)
3819
+ -> JSFunctionObject?
3820
+ { if let __f { return script(name, length, __f) } else { return nil } }
3821
+ }
3822
+
3823
+ public struct FunctionCell_ViewOpt_NSIndexPathOpt_to_Double {
3824
+ public let f: (View?, NSIndexPath?) throws -> Double
3825
+ public static func implicit(_ value: ((View?, NSIndexPath?) throws -> Double)?) -> (
3826
+ (View?, NSIndexPath?) throws -> Double
3827
+ )? { value }
3828
+ public static func present(_ value: ((View?, NSIndexPath?) throws -> Double)?) throws -> (View?, NSIndexPath?)
3829
+ throws -> Double
3830
+ {
3831
+ guard let value else { throw jsNoObject() }
3832
+ return value
3833
+ }
3834
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (View?, NSIndexPath?) throws -> Double)
3835
+ -> JSFunctionObject
3836
+ {
3837
+ jsBoxedFunction(Self(f: __f)) {
3838
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3839
+ return try __f((try jsCast(jsArg(__a, 0), View.self)), (jsArg(__a, 1) as? NSIndexPath))
3840
+ }
3841
+ }
3842
+ }
3843
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((View?, NSIndexPath?) throws -> Double)?)
3844
+ -> JSFunctionObject?
3845
+ { if let __f { return script(name, length, __f) } else { return nil } }
3846
+ }
3847
+
3848
+ public struct FunctionCell_ListViewCellOpt_NSIndexPathOpt_to_DoubleOpt {
3849
+ public let f: (ListViewCell?, NSIndexPath?) throws -> Double?
3850
+ public static func implicit(_ value: ((ListViewCell?, NSIndexPath?) throws -> Double?)?) -> (
3851
+ (ListViewCell?, NSIndexPath?) throws -> Double?
3852
+ )? { value }
3853
+ public static func present(_ value: ((ListViewCell?, NSIndexPath?) throws -> Double?)?) throws -> (
3854
+ ListViewCell?, NSIndexPath?
3855
+ ) throws -> Double? {
3856
+ guard let value else { throw jsNoObject() }
3857
+ return value
3858
+ }
3859
+ public static func script(
3860
+ _ name: String, _ length: Int, _ __f: @escaping (ListViewCell?, NSIndexPath?) throws -> Double?
3861
+ ) -> JSFunctionObject {
3862
+ jsBoxedFunction(Self(f: __f)) {
3863
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3864
+ return try __f((jsArg(__a, 0) as? ListViewCell), (jsArg(__a, 1) as? NSIndexPath))
3865
+ }
3866
+ }
3867
+ }
3868
+ public static func scriptOrNil(
3869
+ _ name: String, _ length: Int, _ __f: ((ListViewCell?, NSIndexPath?) throws -> Double?)?
3870
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
3871
+ }
3872
+
3873
+ public struct FunctionCell_ListViewCellOpt_NSIndexPathOpt_to_Void {
3874
+ public let f: (ListViewCell?, NSIndexPath?) throws -> Void
3875
+ public static func implicit(_ value: ((ListViewCell?, NSIndexPath?) throws -> Void)?) -> (
3876
+ (ListViewCell?, NSIndexPath?) throws -> Void
3877
+ )? { value }
3878
+ public static func present(_ value: ((ListViewCell?, NSIndexPath?) throws -> Void)?) throws -> (
3879
+ ListViewCell?, NSIndexPath?
3880
+ ) throws -> Void {
3881
+ guard let value else { throw jsNoObject() }
3882
+ return value
3883
+ }
3884
+ public static func script(
3885
+ _ name: String, _ length: Int, _ __f: @escaping (ListViewCell?, NSIndexPath?) throws -> Void
3886
+ ) -> JSFunctionObject {
3887
+ jsBoxedFunction(Self(f: __f)) {
3888
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3889
+ try __f((jsArg(__a, 0) as? ListViewCell), (jsArg(__a, 1) as? NSIndexPath))
3890
+ return nil
3891
+ }
3892
+ }
3893
+ }
3894
+ public static func scriptOrNil(
3895
+ _ name: String, _ length: Int, _ __f: ((ListViewCell?, NSIndexPath?) throws -> Void)?
3896
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
3897
+ }
3898
+
3899
+ public struct FunctionCell_ListViewHeaderCellOpt_Double_to_DoubleOpt {
3900
+ public let f: (ListViewHeaderCell?, Double) throws -> Double?
3901
+ public static func implicit(_ value: ((ListViewHeaderCell?, Double) throws -> Double?)?) -> (
3902
+ (ListViewHeaderCell?, Double) throws -> Double?
3903
+ )? { value }
3904
+ public static func present(_ value: ((ListViewHeaderCell?, Double) throws -> Double?)?) throws -> (
3905
+ ListViewHeaderCell?, Double
3906
+ ) throws -> Double? {
3907
+ guard let value else { throw jsNoObject() }
3908
+ return value
3909
+ }
3910
+ public static func script(
3911
+ _ name: String, _ length: Int, _ __f: @escaping (ListViewHeaderCell?, Double) throws -> Double?
3912
+ ) -> JSFunctionObject {
3913
+ jsBoxedFunction(Self(f: __f)) {
3914
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3915
+ return try __f((jsArg(__a, 0) as? ListViewHeaderCell), (try jsConvertedNumber(jsArg(__a, 1))))
3916
+ }
3917
+ }
3918
+ }
3919
+ public static func scriptOrNil(
3920
+ _ name: String, _ length: Int, _ __f: ((ListViewHeaderCell?, Double) throws -> Double?)?
3921
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
3922
+ }
3923
+
3924
+ public struct FunctionCell_ProgressBaseOpt_Double_to_Double {
3925
+ public let f: (ProgressBase?, Double) throws -> Double
3926
+ public static func implicit(_ value: ((ProgressBase?, Double) throws -> Double)?) -> (
3927
+ (ProgressBase?, Double) throws -> Double
3928
+ )? { value }
3929
+ public static func present(_ value: ((ProgressBase?, Double) throws -> Double)?) throws -> (ProgressBase?, Double)
3930
+ throws -> Double
3931
+ {
3932
+ guard let value else { throw jsNoObject() }
3933
+ return value
3934
+ }
3935
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (ProgressBase?, Double) throws -> Double)
3936
+ -> JSFunctionObject
3937
+ {
3938
+ jsBoxedFunction(Self(f: __f)) {
3939
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3940
+ return try __f((try jsCast(jsArg(__a, 0), ProgressBase.self)), (try jsConvertedNumber(jsArg(__a, 1))))
3941
+ }
3942
+ }
3943
+ }
3944
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((ProgressBase?, Double) throws -> Double)?)
3945
+ -> JSFunctionObject?
3946
+ { if let __f { return script(name, length, __f) } else { return nil } }
3947
+ public static func fromScript(_ __f: Any?) -> (ProgressBase?, Double) throws -> Double {
3948
+ if let __t = jsFlat(__f) as? (ProgressBase?, Double) throws -> Double { return __t }
3949
+ let __i = JSFunctionAlias(of: __f)
3950
+ return jsIdentified(
3951
+ Self(f: { (__p0: ProgressBase?, __p1: Double) throws -> Double in
3952
+ return try withExtendedLifetime(__i) { () throws -> Double in
3953
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
3954
+ }
3955
+ }), __i
3956
+ ).f
3957
+ }
3958
+ public static func fromScriptOrNil(_ __f: Any?) -> ((ProgressBase?, Double) throws -> Double)? {
3959
+ jsIsNullish(__f) ? nil : fromScript(__f)
3960
+ }
3961
+ }
3962
+
3963
+ public struct FunctionCell_JSArray_SegmentedBarItem_Opt_JSArray_SegmentedBarItem_Opt_to_Void {
3964
+ public let f: (JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void
3965
+ public static func implicit(_ value: ((JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void)?)
3966
+ -> ((JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void)?
3967
+ { value }
3968
+ public static func present(_ value: ((JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void)?)
3969
+ throws -> (JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void
3970
+ {
3971
+ guard let value else { throw jsNoObject() }
3972
+ return value
3973
+ }
3974
+ public static func script(
3975
+ _ name: String, _ length: Int,
3976
+ _ __f: @escaping (JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void
3977
+ ) -> JSFunctionObject {
3978
+ jsBoxedFunction(Self(f: __f)) {
3979
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
3980
+ try __f(
3981
+ try jsArrayOrNil(
3982
+ jsArg(__a, 0), as: JSArray<SegmentedBarItem>.self,
3983
+ { try (jsCastPresent($0) as SegmentedBarItem) }),
3984
+ try jsArrayOrNil(
3985
+ jsArg(__a, 1), as: JSArray<SegmentedBarItem>.self,
3986
+ { try (jsCastPresent($0) as SegmentedBarItem) }))
3987
+ return nil
3988
+ }
3989
+ }
3990
+ }
3991
+ public static func scriptOrNil(
3992
+ _ name: String, _ length: Int, _ __f: ((JSArray<SegmentedBarItem>?, JSArray<SegmentedBarItem>?) throws -> Void)?
3993
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
3994
+ }
3995
+
3996
+ public struct FunctionCell_SegmentedBarBaseOpt_Double_to_Double {
3997
+ public let f: (SegmentedBarBase?, Double) throws -> Double
3998
+ public static func implicit(_ value: ((SegmentedBarBase?, Double) throws -> Double)?) -> (
3999
+ (SegmentedBarBase?, Double) throws -> Double
4000
+ )? { value }
4001
+ public static func present(_ value: ((SegmentedBarBase?, Double) throws -> Double)?) throws -> (
4002
+ SegmentedBarBase?, Double
4003
+ ) throws -> Double {
4004
+ guard let value else { throw jsNoObject() }
4005
+ return value
4006
+ }
4007
+ public static func script(
4008
+ _ name: String, _ length: Int, _ __f: @escaping (SegmentedBarBase?, Double) throws -> Double
4009
+ ) -> JSFunctionObject {
4010
+ jsBoxedFunction(Self(f: __f)) {
4011
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4012
+ return try __f(
4013
+ (try jsCast(jsArg(__a, 0), SegmentedBarBase.self)), (try jsConvertedNumber(jsArg(__a, 1))))
4014
+ }
4015
+ }
4016
+ }
4017
+ public static func scriptOrNil(
4018
+ _ name: String, _ length: Int, _ __f: ((SegmentedBarBase?, Double) throws -> Double)?
4019
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4020
+ public static func fromScript(_ __f: Any?) -> (SegmentedBarBase?, Double) throws -> Double {
4021
+ if let __t = jsFlat(__f) as? (SegmentedBarBase?, Double) throws -> Double { return __t }
4022
+ let __i = JSFunctionAlias(of: __f)
4023
+ return jsIdentified(
4024
+ Self(f: { (__p0: SegmentedBarBase?, __p1: Double) throws -> Double in
4025
+ return try withExtendedLifetime(__i) { () throws -> Double in
4026
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
4027
+ }
4028
+ }), __i
4029
+ ).f
4030
+ }
4031
+ public static func fromScriptOrNil(_ __f: Any?) -> ((SegmentedBarBase?, Double) throws -> Double)? {
4032
+ jsIsNullish(__f) ? nil : fromScript(__f)
4033
+ }
4034
+ }
4035
+
4036
+ public struct FunctionCell_SliderBaseOpt_Double_to_Double {
4037
+ public let f: (SliderBase?, Double) throws -> Double
4038
+ public static func implicit(_ value: ((SliderBase?, Double) throws -> Double)?) -> (
4039
+ (SliderBase?, Double) throws -> Double
4040
+ )? { value }
4041
+ public static func present(_ value: ((SliderBase?, Double) throws -> Double)?) throws -> (SliderBase?, Double)
4042
+ throws -> Double
4043
+ {
4044
+ guard let value else { throw jsNoObject() }
4045
+ return value
4046
+ }
4047
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (SliderBase?, Double) throws -> Double)
4048
+ -> JSFunctionObject
4049
+ {
4050
+ jsBoxedFunction(Self(f: __f)) {
4051
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4052
+ return try __f((try jsCast(jsArg(__a, 0), SliderBase.self)), (try jsConvertedNumber(jsArg(__a, 1))))
4053
+ }
4054
+ }
4055
+ }
4056
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((SliderBase?, Double) throws -> Double)?)
4057
+ -> JSFunctionObject?
4058
+ { if let __f { return script(name, length, __f) } else { return nil } }
4059
+ public static func fromScript(_ __f: Any?) -> (SliderBase?, Double) throws -> Double {
4060
+ if let __t = jsFlat(__f) as? (SliderBase?, Double) throws -> Double { return __t }
4061
+ let __i = JSFunctionAlias(of: __f)
4062
+ return jsIdentified(
4063
+ Self(f: { (__p0: SliderBase?, __p1: Double) throws -> Double in
4064
+ return try withExtendedLifetime(__i) { () throws -> Double in
4065
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
4066
+ }
4067
+ }), __i
4068
+ ).f
4069
+ }
4070
+ public static func fromScriptOrNil(_ __f: Any?) -> ((SliderBase?, Double) throws -> Double)? {
4071
+ jsIsNullish(__f) ? nil : fromScript(__f)
4072
+ }
4073
+ }
4074
+
4075
+ public struct FunctionCell_SplitViewBaseOpt_AnyOpt_to_Void {
4076
+ public let f: (SplitViewBase?, Any?) throws -> Void
4077
+ public static func implicit(_ value: ((SplitViewBase?, Any?) throws -> Void)?) -> (
4078
+ (SplitViewBase?, Any?) throws -> Void
4079
+ )? { value }
4080
+ public static func present(_ value: ((SplitViewBase?, Any?) throws -> Void)?) throws -> (SplitViewBase?, Any?)
4081
+ throws -> Void
4082
+ {
4083
+ guard let value else { throw jsNoObject() }
4084
+ return value
4085
+ }
4086
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (SplitViewBase?, Any?) throws -> Void)
4087
+ -> JSFunctionObject
4088
+ {
4089
+ jsBoxedFunction(Self(f: __f)) {
4090
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4091
+ try __f((try jsCast(jsArg(__a, 0), SplitViewBase.self)), jsArg(__a, 1))
4092
+ return nil
4093
+ }
4094
+ }
4095
+ }
4096
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((SplitViewBase?, Any?) throws -> Void)?)
4097
+ -> JSFunctionObject?
4098
+ { if let __f { return script(name, length, __f) } else { return nil } }
4099
+ }
4100
+
4101
+ public struct FunctionCell_UIViewControllerOpt_UIViewControllerOpt_to_Void {
4102
+ public let f: (UIViewController?, UIViewController?) throws -> Void
4103
+ public static func implicit(_ value: ((UIViewController?, UIViewController?) throws -> Void)?) -> (
4104
+ (UIViewController?, UIViewController?) throws -> Void
4105
+ )? { value }
4106
+ public static func present(_ value: ((UIViewController?, UIViewController?) throws -> Void)?) throws -> (
4107
+ UIViewController?, UIViewController?
4108
+ ) throws -> Void {
4109
+ guard let value else { throw jsNoObject() }
4110
+ return value
4111
+ }
4112
+ public static func script(
4113
+ _ name: String, _ length: Int, _ __f: @escaping (UIViewController?, UIViewController?) throws -> Void
4114
+ ) -> JSFunctionObject {
4115
+ jsBoxedFunction(Self(f: __f)) {
4116
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4117
+ try __f((jsArg(__a, 0) as? UIViewController), (jsArg(__a, 1) as? UIViewController))
4118
+ return nil
4119
+ }
4120
+ }
4121
+ }
4122
+ public static func scriptOrNil(
4123
+ _ name: String, _ length: Int, _ __f: ((UIViewController?, UIViewController?) throws -> Void)?
4124
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4125
+ }
4126
+
4127
+ public struct FunctionCell_SplitViewBaseOpt_Double_to_String {
4128
+ public let f: (SplitViewBase?, Double) throws -> String
4129
+ public static func implicit(_ value: ((SplitViewBase?, Double) throws -> String)?) -> (
4130
+ (SplitViewBase?, Double) throws -> String
4131
+ )? { value }
4132
+ public static func present(_ value: ((SplitViewBase?, Double) throws -> String)?) throws -> (SplitViewBase?, Double)
4133
+ throws -> String
4134
+ {
4135
+ guard let value else { throw jsNoObject() }
4136
+ return value
4137
+ }
4138
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (SplitViewBase?, Double) throws -> String)
4139
+ -> JSFunctionObject
4140
+ {
4141
+ jsBoxedFunction(Self(f: __f)) {
4142
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4143
+ return try __f((try jsCast(jsArg(__a, 0), SplitViewBase.self)), (try jsConvertedNumber(jsArg(__a, 1))))
4144
+ }
4145
+ }
4146
+ }
4147
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((SplitViewBase?, Double) throws -> String)?)
4148
+ -> JSFunctionObject?
4149
+ { if let __f { return script(name, length, __f) } else { return nil } }
4150
+ }
4151
+
4152
+ public struct FunctionCell_JSArray_TabViewItem_Opt_JSArray_TabViewItem_Opt_to_Void {
4153
+ public let f: (JSArray<TabViewItem>?, JSArray<TabViewItem>?) throws -> Void
4154
+ public static func implicit(_ value: ((JSArray<TabViewItem>?, JSArray<TabViewItem>?) throws -> Void)?) -> (
4155
+ (JSArray<TabViewItem>?, JSArray<TabViewItem>?) throws -> Void
4156
+ )? { value }
4157
+ public static func present(_ value: ((JSArray<TabViewItem>?, JSArray<TabViewItem>?) throws -> Void)?) throws -> (
4158
+ JSArray<TabViewItem>?, JSArray<TabViewItem>?
4159
+ ) throws -> Void {
4160
+ guard let value else { throw jsNoObject() }
4161
+ return value
4162
+ }
4163
+ public static func script(
4164
+ _ name: String, _ length: Int, _ __f: @escaping (JSArray<TabViewItem>?, JSArray<TabViewItem>?) throws -> Void
4165
+ ) -> JSFunctionObject {
4166
+ jsBoxedFunction(Self(f: __f)) {
4167
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4168
+ try __f(
4169
+ try jsArrayOrNil(
4170
+ jsArg(__a, 0), as: JSArray<TabViewItem>.self, { try (jsCastPresent($0) as TabViewItem) }),
4171
+ try jsArrayOrNil(
4172
+ jsArg(__a, 1), as: JSArray<TabViewItem>.self, { try (jsCastPresent($0) as TabViewItem) }))
4173
+ return nil
4174
+ }
4175
+ }
4176
+ }
4177
+ public static func scriptOrNil(
4178
+ _ name: String, _ length: Int, _ __f: ((JSArray<TabViewItem>?, JSArray<TabViewItem>?) throws -> Void)?
4179
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4180
+ }
4181
+
4182
+ public struct FunctionCell_TabViewBaseOpt_Double_to_Double {
4183
+ public let f: (TabViewBase?, Double) throws -> Double
4184
+ public static func implicit(_ value: ((TabViewBase?, Double) throws -> Double)?) -> (
4185
+ (TabViewBase?, Double) throws -> Double
4186
+ )? { value }
4187
+ public static func present(_ value: ((TabViewBase?, Double) throws -> Double)?) throws -> (TabViewBase?, Double)
4188
+ throws -> Double
4189
+ {
4190
+ guard let value else { throw jsNoObject() }
4191
+ return value
4192
+ }
4193
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (TabViewBase?, Double) throws -> Double)
4194
+ -> JSFunctionObject
4195
+ {
4196
+ jsBoxedFunction(Self(f: __f)) {
4197
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4198
+ return try __f((try jsCast(jsArg(__a, 0), TabViewBase.self)), (try jsConvertedNumber(jsArg(__a, 1))))
4199
+ }
4200
+ }
4201
+ }
4202
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((TabViewBase?, Double) throws -> Double)?)
4203
+ -> JSFunctionObject?
4204
+ { if let __f { return script(name, length, __f) } else { return nil } }
4205
+ public static func fromScript(_ __f: Any?) -> (TabViewBase?, Double) throws -> Double {
4206
+ if let __t = jsFlat(__f) as? (TabViewBase?, Double) throws -> Double { return __t }
4207
+ let __i = JSFunctionAlias(of: __f)
4208
+ return jsIdentified(
4209
+ Self(f: { (__p0: TabViewBase?, __p1: Double) throws -> Double in
4210
+ return try withExtendedLifetime(__i) { () throws -> Double in
4211
+ return (try jsConvertedNumber(try jsCall(__f, __p0, __p1)))
4212
+ }
4213
+ }), __i
4214
+ ).f
4215
+ }
4216
+ public static func fromScriptOrNil(_ __f: Any?) -> ((TabViewBase?, Double) throws -> Double)? {
4217
+ jsIsNullish(__f) ? nil : fromScript(__f)
4218
+ }
4219
+ }
4220
+
4221
+ public struct FunctionCell_UIViewControllerOpt_UIViewOpt_to_Void {
4222
+ public let f: (UIViewController?, UIView?) throws -> Void
4223
+ public static func implicit(_ value: ((UIViewController?, UIView?) throws -> Void)?) -> (
4224
+ (UIViewController?, UIView?) throws -> Void
4225
+ )? { value }
4226
+ public static func present(_ value: ((UIViewController?, UIView?) throws -> Void)?) throws -> (
4227
+ UIViewController?, UIView?
4228
+ ) throws -> Void {
4229
+ guard let value else { throw jsNoObject() }
4230
+ return value
4231
+ }
4232
+ public static func script(
4233
+ _ name: String, _ length: Int, _ __f: @escaping (UIViewController?, UIView?) throws -> Void
4234
+ ) -> JSFunctionObject {
4235
+ jsBoxedFunction(Self(f: __f)) {
4236
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4237
+ try __f((jsArg(__a, 0) as? UIViewController), (jsArg(__a, 1) as? UIView))
4238
+ return nil
4239
+ }
4240
+ }
4241
+ }
4242
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UIViewController?, UIView?) throws -> Void)?)
4243
+ -> JSFunctionObject?
4244
+ { if let __f { return script(name, length, __f) } else { return nil } }
4245
+ }
4246
+
4247
+ public struct FunctionCell_UITabBarControllerOpt_UIViewControllerOpt_to_Void {
4248
+ public let f: (UITabBarController?, UIViewController?) throws -> Void
4249
+ public static func implicit(_ value: ((UITabBarController?, UIViewController?) throws -> Void)?) -> (
4250
+ (UITabBarController?, UIViewController?) throws -> Void
4251
+ )? { value }
4252
+ public static func present(_ value: ((UITabBarController?, UIViewController?) throws -> Void)?) throws -> (
4253
+ UITabBarController?, UIViewController?
4254
+ ) throws -> Void {
4255
+ guard let value else { throw jsNoObject() }
4256
+ return value
4257
+ }
4258
+ public static func script(
4259
+ _ name: String, _ length: Int, _ __f: @escaping (UITabBarController?, UIViewController?) throws -> Void
4260
+ ) -> JSFunctionObject {
4261
+ jsBoxedFunction(Self(f: __f)) {
4262
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4263
+ try __f((jsArg(__a, 0) as? UITabBarController), (jsArg(__a, 1) as? UIViewController))
4264
+ return nil
4265
+ }
4266
+ }
4267
+ }
4268
+ public static func scriptOrNil(
4269
+ _ name: String, _ length: Int, _ __f: ((UITabBarController?, UIViewController?) throws -> Void)?
4270
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4271
+ }
4272
+
4273
+ public struct FunctionCell_UITabBarControllerOpt_UIViewControllerOpt_to_Double {
4274
+ public let f: (UITabBarController?, UIViewController?) throws -> Double
4275
+ public static func implicit(_ value: ((UITabBarController?, UIViewController?) throws -> Double)?) -> (
4276
+ (UITabBarController?, UIViewController?) throws -> Double
4277
+ )? { value }
4278
+ public static func present(_ value: ((UITabBarController?, UIViewController?) throws -> Double)?) throws -> (
4279
+ UITabBarController?, UIViewController?
4280
+ ) throws -> Double {
4281
+ guard let value else { throw jsNoObject() }
4282
+ return value
4283
+ }
4284
+ public static func script(
4285
+ _ name: String, _ length: Int, _ __f: @escaping (UITabBarController?, UIViewController?) throws -> Double
4286
+ ) -> JSFunctionObject {
4287
+ jsBoxedFunction(Self(f: __f)) {
4288
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4289
+ return try __f((jsArg(__a, 0) as? UITabBarController), (jsArg(__a, 1) as? UIViewController))
4290
+ }
4291
+ }
4292
+ }
4293
+ public static func scriptOrNil(
4294
+ _ name: String, _ length: Int, _ __f: ((UITabBarController?, UIViewController?) throws -> Double)?
4295
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4296
+ }
4297
+
4298
+ public struct FunctionCell_UITabBarOpt_AnyOpt_to_Void {
4299
+ public let f: (UITabBar?, Any?) throws -> Void
4300
+ public static func implicit(_ value: ((UITabBar?, Any?) throws -> Void)?) -> ((UITabBar?, Any?) throws -> Void)? {
4301
+ value
4302
+ }
4303
+ public static func present(_ value: ((UITabBar?, Any?) throws -> Void)?) throws -> (UITabBar?, Any?) throws -> Void
4304
+ {
4305
+ guard let value else { throw jsNoObject() }
4306
+ return value
4307
+ }
4308
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (UITabBar?, Any?) throws -> Void)
4309
+ -> JSFunctionObject
4310
+ {
4311
+ jsBoxedFunction(Self(f: __f)) {
4312
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4313
+ try __f((jsArg(__a, 0) as? UITabBar), jsArg(__a, 1))
4314
+ return nil
4315
+ }
4316
+ }
4317
+ }
4318
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((UITabBar?, Any?) throws -> Void)?)
4319
+ -> JSFunctionObject?
4320
+ { if let __f { return script(name, length, __f) } else { return nil } }
4321
+ }
4322
+
4323
+ public struct FunctionCell_UITabBarOpt_UITabBarAppearanceOpt_to_Void {
4324
+ public let f: (UITabBar?, UITabBarAppearance?) throws -> Void
4325
+ public static func implicit(_ value: ((UITabBar?, UITabBarAppearance?) throws -> Void)?) -> (
4326
+ (UITabBar?, UITabBarAppearance?) throws -> Void
4327
+ )? { value }
4328
+ public static func present(_ value: ((UITabBar?, UITabBarAppearance?) throws -> Void)?) throws -> (
4329
+ UITabBar?, UITabBarAppearance?
4330
+ ) throws -> Void {
4331
+ guard let value else { throw jsNoObject() }
4332
+ return value
4333
+ }
4334
+ public static func script(
4335
+ _ name: String, _ length: Int, _ __f: @escaping (UITabBar?, UITabBarAppearance?) throws -> Void
4336
+ ) -> JSFunctionObject {
4337
+ jsBoxedFunction(Self(f: __f)) {
4338
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4339
+ try __f((jsArg(__a, 0) as? UITabBar), (jsArg(__a, 1) as? UITabBarAppearance))
4340
+ return nil
4341
+ }
4342
+ }
4343
+ }
4344
+ public static func scriptOrNil(
4345
+ _ name: String, _ length: Int, _ __f: ((UITabBar?, UITabBarAppearance?) throws -> Void)?
4346
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4347
+ }
4348
+
4349
+ public struct FunctionCell_ViewOpt_String_to_JSPromise_Void {
4350
+ public let f: (View?, String) throws -> JSPromise<Void>
4351
+ public static func implicit(_ value: ((View?, String) throws -> JSPromise<Void>)?) -> (
4352
+ (View?, String) throws -> JSPromise<Void>
4353
+ )? { value }
4354
+ public static func present(_ value: ((View?, String) throws -> JSPromise<Void>)?) throws -> (View?, String) throws
4355
+ -> JSPromise<Void>
4356
+ {
4357
+ guard let value else { throw jsNoObject() }
4358
+ return value
4359
+ }
4360
+ public static func fromScript(_ __f: Any?) -> (View?, String) throws -> JSPromise<Void> {
4361
+ if let __t = jsFlat(__f) as? (View?, String) throws -> JSPromise<Void> { return __t }
4362
+ let __i = JSFunctionAlias(of: __f)
4363
+ return jsIdentified(
4364
+ Self(f: { (__p0: View?, __p1: String) throws -> JSPromise<Void> in
4365
+ return try withExtendedLifetime(__i) { () throws -> JSPromise<Void> in
4366
+ return jsPromiseOf(try jsCall(__f, __p0, __p1)) { _ in () }
4367
+ }
4368
+ }), __i
4369
+ ).f
4370
+ }
4371
+ public static func fromScriptOrNil(_ __f: Any?) -> ((View?, String) throws -> JSPromise<Void>)? {
4372
+ jsIsNullish(__f) ? nil : fromScript(__f)
4373
+ }
4374
+ }
4375
+
4376
+ public struct FunctionCell_to_Void_ViewOpt_to_Void {
4377
+ public let f: (@escaping () throws -> Void, View?) throws -> Void
4378
+ public static func implicit(_ value: ((@escaping () throws -> Void, View?) throws -> Void)?) -> (
4379
+ (@escaping () throws -> Void, View?) throws -> Void
4380
+ )? { value }
4381
+ public static func present(_ value: ((@escaping () throws -> Void, View?) throws -> Void)?) throws -> (
4382
+ @escaping () throws -> Void, View?
4383
+ ) throws -> Void {
4384
+ guard let value else { throw jsNoObject() }
4385
+ return value
4386
+ }
4387
+ public static func script(
4388
+ _ name: String, _ length: Int, _ __f: @escaping (@escaping () throws -> Void, View?) throws -> Void
4389
+ ) -> JSFunctionObject {
4390
+ jsBoxedFunction(Self(f: __f)) {
4391
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4392
+ try __f(
4393
+ try FunctionCell_none_to_Void.present(FunctionCell_none_to_Void.fromScriptOrNil(jsArg(__a, 0))),
4394
+ (try jsCast(jsArg(__a, 1), View.self)))
4395
+ return nil
4396
+ }
4397
+ }
4398
+ }
4399
+ public static func scriptOrNil(
4400
+ _ name: String, _ length: Int, _ __f: ((@escaping () throws -> Void, View?) throws -> Void)?
4401
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4402
+ }
4403
+
4404
+ public struct FunctionCell_to_Void_ViewOpt_to_to_Void_Opt {
4405
+ public let f: (@escaping () throws -> Void, View?) throws -> (() throws -> Void)?
4406
+ public static func implicit(_ value: ((@escaping () throws -> Void, View?) throws -> (() throws -> Void)?)?) -> (
4407
+ (@escaping () throws -> Void, View?) throws -> (() throws -> Void)?
4408
+ )? { value }
4409
+ public static func present(_ value: ((@escaping () throws -> Void, View?) throws -> (() throws -> Void)?)?) throws
4410
+ -> (@escaping () throws -> Void, View?) throws -> (() throws -> Void)?
4411
+ {
4412
+ guard let value else { throw jsNoObject() }
4413
+ return value
4414
+ }
4415
+ public static func script(
4416
+ _ name: String, _ length: Int,
4417
+ _ __f: @escaping (@escaping () throws -> Void, View?) throws -> (() throws -> Void)?
4418
+ ) -> JSFunctionObject {
4419
+ jsBoxedFunction(Self(f: __f)) {
4420
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4421
+ return FunctionCell_none_to_Void.scriptOrNil(
4422
+ "", 0,
4423
+ try __f(
4424
+ try FunctionCell_none_to_Void.present(FunctionCell_none_to_Void.fromScriptOrNil(jsArg(__a, 0))),
4425
+ (try jsCast(jsArg(__a, 1), View.self))))
4426
+ }
4427
+ }
4428
+ }
4429
+ public static func scriptOrNil(
4430
+ _ name: String, _ length: Int, _ __f: ((@escaping () throws -> Void, View?) throws -> (() throws -> Void)?)?
4431
+ ) -> JSFunctionObject? { if let __f { return script(name, length, __f) } else { return nil } }
4432
+ }
4433
+
4434
+ public struct FunctionCell_AnyOpt_JSArray_AnyOpt_to_AnyOpt {
4435
+ public let f: (Any?, JSArray<Any?>) throws -> Any?
4436
+ public static func implicit(_ value: ((Any?, JSArray<Any?>) throws -> Any?)?) -> (
4437
+ (Any?, JSArray<Any?>) throws -> Any?
4438
+ )? { value }
4439
+ public static func present(_ value: ((Any?, JSArray<Any?>) throws -> Any?)?) throws -> (Any?, JSArray<Any?>) throws
4440
+ -> Any?
4441
+ {
4442
+ guard let value else { throw jsNoObject() }
4443
+ return value
4444
+ }
4445
+ public static func fromScript(_ __f: Any?) -> (Any?, JSArray<Any?>) throws -> Any? {
4446
+ if let __t = jsFlat(__f) as? (Any?, JSRest<Any?>) throws -> Any? { return __t }
4447
+ let __i = JSFunctionAlias(of: __f)
4448
+ return jsIdentified(
4449
+ Self(f: { (__p0: Any?, __p1: JSArray<Any?>) throws -> Any? in
4450
+ return try withExtendedLifetime(__i) { () throws -> Any? in
4451
+ return try jsCall(__f, spread: [__p0] + __p1.storage.map { $0 as Any? })
4452
+ }
4453
+ }), __i
4454
+ ).f
4455
+ }
4456
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, JSArray<Any?>) throws -> Any?)? {
4457
+ jsIsNullish(__f) ? nil : fromScript(__f)
4458
+ }
4459
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, JSArray<Any?>) throws -> Any?)
4460
+ -> JSFunctionObject
4461
+ {
4462
+ jsBoxedFunction(Self(f: __f)) {
4463
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4464
+ return try __f(jsArg(__a, 0), JSArray<Any?>(__a.dropFirst(1).map { $0 }))
4465
+ }
4466
+ }
4467
+ }
4468
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, JSArray<Any?>) throws -> Any?)?)
4469
+ -> JSFunctionObject?
4470
+ { if let __f { return script(name, length, __f) } else { return nil } }
4471
+ }
4472
+
4473
+ public struct FunctionCell_AnyOpt_String_to_String {
4474
+ public let f: (Any?, String) throws -> String
4475
+ public static func implicit(_ value: ((Any?, String) throws -> String)?) -> ((Any?, String) throws -> String)? {
4476
+ value
4477
+ }
4478
+ public static func present(_ value: ((Any?, String) throws -> String)?) throws -> (Any?, String) throws -> String {
4479
+ guard let value else { throw jsNoObject() }
4480
+ return value
4481
+ }
4482
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Any?, String) throws -> String)
4483
+ -> JSFunctionObject
4484
+ {
4485
+ jsBoxedFunction(Self(f: __f)) {
4486
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4487
+ return try __f(jsArg(__a, 0), (try jsConvertedString(jsArg(__a, 1))))
4488
+ }
4489
+ }
4490
+ }
4491
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, String) throws -> String)?)
4492
+ -> JSFunctionObject?
4493
+ { if let __f { return script(name, length, __f) } else { return nil } }
4494
+ public static func fromScript(_ __f: Any?) -> (Any?, String) throws -> String {
4495
+ if let __t = jsFlat(__f) as? (Any?, String) throws -> String { return __t }
4496
+ let __i = JSFunctionAlias(of: __f)
4497
+ return jsIdentified(
4498
+ Self(f: { (__p0: Any?, __p1: String) throws -> String in
4499
+ return try withExtendedLifetime(__i) { () throws -> String in
4500
+ return (try jsConvertedString(try jsCall(__f, __p0, __p1)))
4501
+ }
4502
+ }), __i
4503
+ ).f
4504
+ }
4505
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, String) throws -> String)? {
4506
+ jsIsNullish(__f) ? nil : fromScript(__f)
4507
+ }
4508
+ }
4509
+
4510
+ public struct FunctionCell_DoubleOpt_DoubleOpt_to_String {
4511
+ public let f: (Double?, Double?) throws -> String
4512
+ public static func implicit(_ value: ((Double?, Double?) throws -> String)?) -> (
4513
+ (Double?, Double?) throws -> String
4514
+ )? { value }
4515
+ public static func present(_ value: ((Double?, Double?) throws -> String)?) throws -> (Double?, Double?) throws ->
4516
+ String
4517
+ {
4518
+ guard let value else { throw jsNoObject() }
4519
+ return value
4520
+ }
4521
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double?, Double?) throws -> String)
4522
+ -> JSFunctionObject
4523
+ {
4524
+ jsBoxedFunction(Self(f: __f)) {
4525
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4526
+ return try __f((try jsConvertedNumberOrNil(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
4527
+ }
4528
+ }
4529
+ }
4530
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double?, Double?) throws -> String)?)
4531
+ -> JSFunctionObject?
4532
+ { if let __f { return script(name, length, __f) } else { return nil } }
4533
+ public static func fromScript(_ __f: Any?) -> (Double?, Double?) throws -> String {
4534
+ if let __t = jsFlat(__f) as? (Double?, Double?) throws -> String { return __t }
4535
+ let __i = JSFunctionAlias(of: __f)
4536
+ return jsIdentified(
4537
+ Self(f: { (__p0: Double?, __p1: Double?) throws -> String in
4538
+ return try withExtendedLifetime(__i) { () throws -> String in
4539
+ return (try jsConvertedString(try jsCall(__f, __p0, __p1)))
4540
+ }
4541
+ }), __i
4542
+ ).f
4543
+ }
4544
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Double?, Double?) throws -> String)? {
4545
+ jsIsNullish(__f) ? nil : fromScript(__f)
4546
+ }
4547
+ }
4548
+
4549
+ public struct FunctionCell_AnyOpt_DoubleOpt_to_JSArray_String_Opt {
4550
+ public let f: (Any?, Double?) throws -> JSArray<String>?
4551
+ public static func implicit(_ value: ((Any?, Double?) throws -> JSArray<String>?)?) -> (
4552
+ (Any?, Double?) throws -> JSArray<String>?
4553
+ )? { value }
4554
+ public static func present(_ value: ((Any?, Double?) throws -> JSArray<String>?)?) throws -> (Any?, Double?) throws
4555
+ -> JSArray<String>?
4556
+ {
4557
+ guard let value else { throw jsNoObject() }
4558
+ return value
4559
+ }
4560
+ public static func script(
4561
+ _ name: String, _ length: Int, _ __f: @escaping (Any?, Double?) throws -> JSArray<String>?
4562
+ ) -> JSFunctionObject {
4563
+ jsBoxedFunction(Self(f: __f)) {
4564
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4565
+ return try __f(jsArg(__a, 0), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
4566
+ }
4567
+ }
4568
+ }
4569
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Any?, Double?) throws -> JSArray<String>?)?)
4570
+ -> JSFunctionObject?
4571
+ { if let __f { return script(name, length, __f) } else { return nil } }
4572
+ }
4573
+
4574
+ public struct FunctionCell_Double_DoubleOpt_to_String {
4575
+ public let f: (Double, Double?) throws -> String
4576
+ public static func implicit(_ value: ((Double, Double?) throws -> String)?) -> ((Double, Double?) throws -> String)?
4577
+ { value }
4578
+ public static func present(_ value: ((Double, Double?) throws -> String)?) throws -> (Double, Double?) throws ->
4579
+ String
4580
+ {
4581
+ guard let value else { throw jsNoObject() }
4582
+ return value
4583
+ }
4584
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, Double?) throws -> String)
4585
+ -> JSFunctionObject
4586
+ {
4587
+ jsBoxedFunction(Self(f: __f)) {
4588
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4589
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
4590
+ }
4591
+ }
4592
+ }
4593
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, Double?) throws -> String)?)
4594
+ -> JSFunctionObject?
4595
+ { if let __f { return script(name, length, __f) } else { return nil } }
4596
+ public static func fromScript(_ __f: Any?) -> (Double, Double?) throws -> String {
4597
+ if let __t = jsFlat(__f) as? (Double, Double?) throws -> String { return __t }
4598
+ let __i = JSFunctionAlias(of: __f)
4599
+ return jsIdentified(
4600
+ Self(f: { (__p0: Double, __p1: Double?) throws -> String in
4601
+ return try withExtendedLifetime(__i) { () throws -> String in
4602
+ return (try jsConvertedString(try jsCall(__f, __p0, __p1)))
4603
+ }
4604
+ }), __i
4605
+ ).f
4606
+ }
4607
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Double, Double?) throws -> String)? {
4608
+ jsIsNullish(__f) ? nil : fromScript(__f)
4609
+ }
4610
+ }
4611
+
4612
+ public struct FunctionCell_String_DoubleOpt_to_Bool {
4613
+ public let f: (String, Double?) throws -> Bool
4614
+ public static func implicit(_ value: ((String, Double?) throws -> Bool)?) -> ((String, Double?) throws -> Bool)? {
4615
+ value
4616
+ }
4617
+ public static func present(_ value: ((String, Double?) throws -> Bool)?) throws -> (String, Double?) throws -> Bool
4618
+ {
4619
+ guard let value else { throw jsNoObject() }
4620
+ return value
4621
+ }
4622
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (String, Double?) throws -> Bool)
4623
+ -> JSFunctionObject
4624
+ {
4625
+ jsBoxedFunction(Self(f: __f)) {
4626
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4627
+ return try __f((try jsConvertedString(jsArg(__a, 0))), (try jsConvertedNumberOrNil(jsArg(__a, 1))))
4628
+ }
4629
+ }
4630
+ }
4631
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((String, Double?) throws -> Bool)?)
4632
+ -> JSFunctionObject?
4633
+ { if let __f { return script(name, length, __f) } else { return nil } }
4634
+ public static func fromScript(_ __f: Any?) -> (String, Double?) throws -> Bool {
4635
+ if let __t = jsFlat(__f) as? (String, Double?) throws -> Bool { return __t }
4636
+ let __i = JSFunctionAlias(of: __f)
4637
+ return jsIdentified(
4638
+ Self(f: { (__p0: String, __p1: Double?) throws -> Bool in
4639
+ return try withExtendedLifetime(__i) { () throws -> Bool in
4640
+ return (try jsConvertedBool(try jsCall(__f, __p0, __p1)))
4641
+ }
4642
+ }), __i
4643
+ ).f
4644
+ }
4645
+ public static func fromScriptOrNil(_ __f: Any?) -> ((String, Double?) throws -> Bool)? {
4646
+ jsIsNullish(__f) ? nil : fromScript(__f)
4647
+ }
4648
+ }
4649
+
4650
+ public struct FunctionCell_Double_StringOpt_to_String {
4651
+ public let f: (Double, String?) throws -> String
4652
+ public static func implicit(_ value: ((Double, String?) throws -> String)?) -> ((Double, String?) throws -> String)?
4653
+ { value }
4654
+ public static func present(_ value: ((Double, String?) throws -> String)?) throws -> (Double, String?) throws ->
4655
+ String
4656
+ {
4657
+ guard let value else { throw jsNoObject() }
4658
+ return value
4659
+ }
4660
+ public static func script(_ name: String, _ length: Int, _ __f: @escaping (Double, String?) throws -> String)
4661
+ -> JSFunctionObject
4662
+ {
4663
+ jsBoxedFunction(Self(f: __f)) {
4664
+ jsFunction(name, length) { (__a: [Any?]) throws -> Any? in
4665
+ return try __f((try jsConvertedNumber(jsArg(__a, 0))), (try jsConvertedStringOrNil(jsArg(__a, 1))))
4666
+ }
4667
+ }
4668
+ }
4669
+ public static func scriptOrNil(_ name: String, _ length: Int, _ __f: ((Double, String?) throws -> String)?)
4670
+ -> JSFunctionObject?
4671
+ { if let __f { return script(name, length, __f) } else { return nil } }
4672
+ public static func fromScript(_ __f: Any?) -> (Double, String?) throws -> String {
4673
+ if let __t = jsFlat(__f) as? (Double, String?) throws -> String { return __t }
4674
+ let __i = JSFunctionAlias(of: __f)
4675
+ return jsIdentified(
4676
+ Self(f: { (__p0: Double, __p1: String?) throws -> String in
4677
+ return try withExtendedLifetime(__i) { () throws -> String in
4678
+ return (try jsConvertedString(try jsCall(__f, __p0, __p1)))
4679
+ }
4680
+ }), __i
4681
+ ).f
4682
+ }
4683
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Double, String?) throws -> String)? {
4684
+ jsIsNullish(__f) ? nil : fromScript(__f)
4685
+ }
4686
+ }
4687
+
4688
+ public struct FunctionCell_AnyOpt_DoubleOpt_to_JSArray_String {
4689
+ public let f: (Any?, Double?) throws -> JSArray<String>
4690
+ public static func implicit(_ value: ((Any?, Double?) throws -> JSArray<String>)?) -> (
4691
+ (Any?, Double?) throws -> JSArray<String>
4692
+ )? { value }
4693
+ public static func present(_ value: ((Any?, Double?) throws -> JSArray<String>)?) throws -> (Any?, Double?) throws
4694
+ -> JSArray<String>
4695
+ {
4696
+ guard let value else { throw jsNoObject() }
4697
+ return value
4698
+ }
4699
+ public static func fromScript(_ __f: Any?) -> (Any?, Double?) throws -> JSArray<String> {
4700
+ if let __t = jsFlat(__f) as? (Any?, Double?) throws -> JSArray<String> { return __t }
4701
+ let __i = JSFunctionAlias(of: __f)
4702
+ return jsIdentified(
4703
+ Self(f: { (__p0: Any?, __p1: Double?) throws -> JSArray<String> in
4704
+ return try withExtendedLifetime(__i) { () throws -> JSArray<String> in
4705
+ return try jsObjectRequired(jsArrayOrNil(try jsCall(__f, __p0, __p1), { jsLenientString($0) }))
4706
+ }
4707
+ }), __i
4708
+ ).f
4709
+ }
4710
+ public static func fromScriptOrNil(_ __f: Any?) -> ((Any?, Double?) throws -> JSArray<String>)? {
4711
+ jsIsNullish(__f) ? nil : fromScript(__f)
4712
+ }
4713
+ }