kaitai-struct-compiler 0.11.0-SNAPSHOT20240303.235100.7be4a2b → 0.11.0-SNAPSHOT20240308.193506.8aeb79a

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.
@@ -2316,7 +2316,8 @@ $c_Lio_kaitai_struct_Main$.prototype.importAndPrecompile__Lio_kaitai_struct_form
2316
2316
  return $m_Lio_kaitai_struct_Main$().precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable(specs, config)
2317
2317
  })), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
2318
2318
  });
2319
- $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(specs, config) {
2319
+ $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(specs, conf) {
2320
+ new $c_Lio_kaitai_struct_precompile_MarkupClassNames(specs).run__sc_Iterable();
2320
2321
  var this$1 = $n(specs);
2321
2322
  var b = $m_scm_Iterable$().newBuilder__scm_Builder();
2322
2323
  var it = this$1.iterator__sc_Iterator();
@@ -2327,31 +2328,58 @@ $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassS
2327
2328
  if ((x0$1 === null)) {
2328
2329
  throw new $c_s_MatchError(x0$1)
2329
2330
  };
2330
- var classSpec = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
2331
- var xs = $m_Lio_kaitai_struct_Main$().precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_RuntimeConfig__sc_Iterable(specs, classSpec, config);
2331
+ var topClass = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
2332
+ var config = $p_Lio_kaitai_struct_Main$__updateConfigFromMeta__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig($m_Lio_kaitai_struct_Main$(), conf, $n(topClass).Lio_kaitai_struct_format_ClassSpec__f_meta);
2333
+ var xs = new $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, topClass, $n(config).Lio_kaitai_struct_RuntimeConfig__f_opaqueTypes).run__sc_Iterable();
2332
2334
  this$2.addAll__sc_IterableOnce__scm_Growable(xs)
2333
2335
  };
2334
- return $as_sc_Iterable($n(b).result__O())
2335
- });
2336
- $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(classSpecs, topClass, conf) {
2337
- var config = $p_Lio_kaitai_struct_Main$__updateConfigFromMeta__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig(this, conf, $n(topClass).Lio_kaitai_struct_format_ClassSpec__f_meta);
2338
- new $c_Lio_kaitai_struct_precompile_MarkupClassNames(classSpecs).run__sc_Iterable();
2339
- var resolveTypeProblems = new $c_Lio_kaitai_struct_precompile_ResolveTypes(classSpecs, $n(config).Lio_kaitai_struct_RuntimeConfig__f_opaqueTypes).run__sc_Iterable();
2340
- var this$1 = $n(resolveTypeProblems);
2341
- if ((!this$1.isEmpty__Z())) {
2336
+ var resolveTypeProblems = $as_scm_Iterable($n(b).result__O());
2337
+ var this$3 = $n(resolveTypeProblems);
2338
+ if ((!this$3.isEmpty__Z())) {
2342
2339
  return resolveTypeProblems
2343
2340
  };
2344
- new $c_Lio_kaitai_struct_precompile_ParentTypes(classSpecs).run__V();
2345
- new $c_Lio_kaitai_struct_precompile_SpecsValueTypeDerive(classSpecs).run__V();
2346
- new $c_Lio_kaitai_struct_precompile_CalculateSeqSizes(classSpecs).run__V();
2347
- var typeValidatorProblems = new $c_Lio_kaitai_struct_precompile_TypeValidator(classSpecs, topClass).run__sc_Iterable();
2348
- var styleWarnings = new $c_Lio_kaitai_struct_precompile_StyleCheckIds(classSpecs, topClass).run__sc_Iterable();
2349
- var encodingProblems = new $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames(classSpecs).run__sc_Iterable();
2350
- $n(topClass).Lio_kaitai_struct_format_ClassSpec__f_parentClass = $m_Lio_kaitai_struct_format_GenericStructClassSpec$();
2351
- var this$2 = $n(resolveTypeProblems);
2352
- var this$3 = $n($as_sc_IterableOps(this$2.concat__sc_IterableOnce__O(typeValidatorProblems)));
2353
- var this$4 = $n($as_sc_IterableOps(this$3.concat__sc_IterableOnce__O(styleWarnings)));
2354
- return $as_sc_Iterable(this$4.concat__sc_IterableOnce__O(encodingProblems))
2341
+ new $c_Lio_kaitai_struct_precompile_ParentTypes(specs).run__V();
2342
+ new $c_Lio_kaitai_struct_precompile_SpecsValueTypeDerive(specs).run__V();
2343
+ new $c_Lio_kaitai_struct_precompile_CalculateSeqSizes(specs).run__V();
2344
+ var typeValidatorProblems = new $c_Lio_kaitai_struct_precompile_TypeValidator(specs).run__sc_Iterable();
2345
+ var styleWarnings = new $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs).run__sc_Iterable();
2346
+ var encodingProblems = new $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames(specs).run__sc_Iterable();
2347
+ var this$4 = $n(specs);
2348
+ var len = $n(this$4.scm_HashMap__f_scala$collection$mutable$HashMap$$table).u.length;
2349
+ var i = 0;
2350
+ while ((i < len)) {
2351
+ var n = $n(this$4.scm_HashMap__f_scala$collection$mutable$HashMap$$table).get(i);
2352
+ if ((n !== null)) {
2353
+ var this$5 = $n(n);
2354
+ var _$this = this$5;
2355
+ while (true) {
2356
+ var _1 = $n(_$this).scm_HashMap$Node__f__key;
2357
+ var _2 = $n(_$this).scm_HashMap$Node__f__value;
2358
+ $as_T(_1);
2359
+ var typeSpec = $as_Lio_kaitai_struct_format_ClassSpec(_2);
2360
+ try {
2361
+ $n(typeSpec).Lio_kaitai_struct_format_ClassSpec__f_parentClass = $m_Lio_kaitai_struct_format_GenericStructClassSpec$()
2362
+ } catch (e) {
2363
+ if ((e instanceof $c_Lio_kaitai_struct_problems_CompilationProblemException)) {
2364
+ var cpe = $as_Lio_kaitai_struct_problems_CompilationProblemException(e);
2365
+ throw $n($n(cpe).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblemException(typeSpec))
2366
+ } else {
2367
+ throw e
2368
+ }
2369
+ };
2370
+ if (($n(_$this).scm_HashMap$Node__f__next !== null)) {
2371
+ _$this = $n(_$this).scm_HashMap$Node__f__next;
2372
+ continue
2373
+ };
2374
+ break
2375
+ }
2376
+ };
2377
+ i = ((1 + i) | 0)
2378
+ };
2379
+ var this$6 = $n(resolveTypeProblems);
2380
+ var this$7 = $n($as_sc_IterableOps(this$6.concat__sc_IterableOnce__O(typeValidatorProblems)));
2381
+ var this$8 = $n($as_sc_IterableOps(this$7.concat__sc_IterableOnce__O(styleWarnings)));
2382
+ return $as_sc_Iterable(this$8.concat__sc_IterableOnce__O(encodingProblems))
2355
2383
  });
2356
2384
  $c_Lio_kaitai_struct_Main$.prototype.compile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_languages_components_LanguageCompilerStatic__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_CompileLog$SpecSuccess = (function(specs, spec, lang, conf) {
2357
2385
  var config = $p_Lio_kaitai_struct_Main$__updateConfigFromMeta__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig(this, conf, $n(spec).Lio_kaitai_struct_format_ClassSpec__f_meta);
@@ -2974,8 +3002,8 @@ function $m_Lio_kaitai_struct_Utils$() {
2974
3002
  function $c_Lio_kaitai_struct_Version$() {
2975
3003
  this.Lio_kaitai_struct_Version$__f_version = null;
2976
3004
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
2977
- this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240303.235100.7be4a2b";
2978
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-03T23:51:00+00:00"
3005
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240308.193506.8aeb79a";
3006
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-08T19:35:06+00:00"
2979
3007
  }
2980
3008
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
2981
3009
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -19620,95 +19648,6 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
19620
19648
  } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
19621
19649
  var x5 = $as_Lio_kaitai_struct_datatype_DataType$UserType(valType);
19622
19650
  return $thiz.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__O(x5, value, $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name)
19623
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType)) {
19624
- var x1$3 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19625
- switch (x1$3) {
19626
- case "first": {
19627
- return $thiz.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19628
- break
19629
- }
19630
- case "last": {
19631
- return $thiz.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19632
- break
19633
- }
19634
- case "length":
19635
- case "size": {
19636
- return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19637
- break
19638
- }
19639
- case "min": {
19640
- return $thiz.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19641
- break
19642
- }
19643
- case "max": {
19644
- return $thiz.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19645
- break
19646
- }
19647
- default: {
19648
- throw new $c_s_MatchError(x1$3)
19649
- }
19650
- }
19651
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)) {
19652
- var x1$4 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19653
- switch (x1$4) {
19654
- case "length": {
19655
- return $thiz.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19656
- break
19657
- }
19658
- case "reverse": {
19659
- return $thiz.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19660
- break
19661
- }
19662
- case "to_i": {
19663
- var this$1 = $m_s_math_BigInt$();
19664
- return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(value, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(10)));
19665
- break
19666
- }
19667
- default: {
19668
- throw new $c_s_MatchError(x1$4)
19669
- }
19670
- }
19671
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
19672
- var x1$5 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19673
- if ((x1$5 === "to_s")) {
19674
- return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19675
- } else {
19676
- throw new $c_s_MatchError(x1$5)
19677
- }
19678
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatType)) {
19679
- var x1$6 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19680
- if ((x1$6 === "to_i")) {
19681
- return $thiz.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19682
- } else {
19683
- throw new $c_s_MatchError(x1$6)
19684
- }
19685
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType)) {
19686
- var x1$7 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19687
- switch (x1$7) {
19688
- case "first": {
19689
- return $thiz.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19690
- break
19691
- }
19692
- case "last": {
19693
- return $thiz.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19694
- break
19695
- }
19696
- case "size": {
19697
- return $thiz.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19698
- break
19699
- }
19700
- case "min": {
19701
- return $thiz.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19702
- break
19703
- }
19704
- case "max": {
19705
- return $thiz.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19706
- break
19707
- }
19708
- default: {
19709
- throw new $c_s_MatchError(x1$7)
19710
- }
19711
- }
19712
19651
  } else {
19713
19652
  var x$3 = $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$();
19714
19653
  if ((x$3 === valType)) {
@@ -19718,8 +19657,8 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
19718
19657
  var $$x1 = (x$5 === valType)
19719
19658
  };
19720
19659
  if ($$x1) {
19721
- var x1$8 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19722
- switch (x1$8) {
19660
+ var x1$3 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19661
+ switch (x1$3) {
19723
19662
  case "size": {
19724
19663
  return $thiz.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19725
19664
  break
@@ -19733,26 +19672,26 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
19733
19672
  break
19734
19673
  }
19735
19674
  default: {
19736
- throw new $c_s_MatchError(x1$8)
19675
+ throw new $c_s_MatchError(x1$3)
19737
19676
  }
19738
19677
  }
19739
19678
  } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
19740
- var x13 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(valType);
19741
- var x1$9 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19742
- if ((x1$9 === "to_i")) {
19743
- return $thiz.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O(value, x13)
19679
+ var x8 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(valType);
19680
+ var x1$4 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19681
+ if ((x1$4 === "to_i")) {
19682
+ return $thiz.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O(value, x8)
19744
19683
  } else {
19745
19684
  throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("called invalid attribute '" + $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name) + "' on expression of type ") + valType))
19746
19685
  }
19747
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType)) {
19748
- var x1$10 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19749
- if ((x1$10 === "to_i")) {
19750
- return $thiz.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19686
+ } else {
19687
+ var x1$5 = $m_Lio_kaitai_struct_translators_MethodArgType$().byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(valType);
19688
+ if ((x1$5 instanceof $c_s_Some)) {
19689
+ var x2 = $as_s_Some(x1$5);
19690
+ var argType = $as_Lio_kaitai_struct_translators_MethodArgType($n(x2).s_Some__f_value);
19691
+ return $p_Lio_kaitai_struct_translators_CommonMethods__invokeMethod__Lio_kaitai_struct_translators_MethodArgType__T__Lio_kaitai_struct_exprlang_Ast$expr__sci_Seq__O($thiz, argType, $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, value, $as_sci_Seq($n($m_s_package$().s_package$__f_Seq).apply__sci_Seq__sc_SeqOps($m_sci_Nil$())))
19751
19692
  } else {
19752
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("called invalid attribute '" + $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name) + "' on expression of type ") + valType))
19693
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("internal compiler error: tried to call attribute '" + $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name) + "' on expression of type ") + valType))
19753
19694
  }
19754
- } else {
19755
- throw new $c_s_MatchError(valType)
19756
19695
  }
19757
19696
  }
19758
19697
  }
@@ -19766,39 +19705,291 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kait
19766
19705
  if ((obj !== null)) {
19767
19706
  if ((methodName !== null)) {
19768
19707
  var objType = $n($as_Lio_kaitai_struct_translators_TypeDetector($thiz)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(obj);
19769
- var _2 = $n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19770
- if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) && (_2 === "substring"))) {
19771
- return $thiz.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(obj, $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0)), $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(1)))
19772
- } else if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) && (_2 === "to_i"))) {
19773
- return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(obj, $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0)))
19774
- } else if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType) && (_2 === "to_s"))) {
19775
- if ((args !== null)) {
19776
- $n($m_s_package$().s_package$__f_Seq);
19777
- if (((new $c_sc_SeqFactory$UnapplySeqWrapper(args), true) && ($n(args).lengthCompare__I__I(1) === 0))) {
19778
- var p3$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0));
19779
- if ((p3$2 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str)) {
19780
- var x4$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Str(p3$2);
19781
- var encoding = $n(x4$2).Lio_kaitai_struct_exprlang_Ast$expr$Str__f_s;
19782
- return $thiz.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O(obj, encoding)
19783
- }
19784
- }
19785
- };
19786
- if ((args !== null)) {
19787
- $n($m_s_package$().s_package$__f_Seq);
19788
- if (((new $c_sc_SeqFactory$UnapplySeqWrapper(args), true) && ($n(args).lengthCompare__I__I(1) === 0))) {
19789
- var x = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0));
19790
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: argument #0: expected string literal, got " + x))
19791
- }
19792
- };
19793
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: expected 1 argument, got " + $n(args).length__I()))
19708
+ var x1$2 = $m_Lio_kaitai_struct_translators_MethodArgType$().byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(objType);
19709
+ if ((x1$2 instanceof $c_s_Some)) {
19710
+ var x2$2 = $as_s_Some(x1$2);
19711
+ var argType = $as_Lio_kaitai_struct_translators_MethodArgType($n(x2$2).s_Some__f_value);
19712
+ return $p_Lio_kaitai_struct_translators_CommonMethods__invokeMethod__Lio_kaitai_struct_translators_MethodArgType__T__Lio_kaitai_struct_exprlang_Ast$expr__sci_Seq__O($thiz, argType, $n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, obj, args)
19794
19713
  } else {
19795
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError((((("don't know how to call method '" + methodName) + "' of object type '") + objType) + "'"))
19714
+ var x = $m_s_None$();
19715
+ if ((x === x1$2)) {
19716
+ throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundError($n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, objType)
19717
+ } else {
19718
+ throw new $c_s_MatchError(x1$2)
19719
+ }
19796
19720
  }
19797
19721
  }
19798
19722
  }
19799
19723
  };
19800
19724
  throw new $c_s_MatchError(func)
19801
19725
  }
19726
+ function $p_Lio_kaitai_struct_translators_CommonMethods__invokeMethod__Lio_kaitai_struct_translators_MethodArgType__T__Lio_kaitai_struct_exprlang_Ast$expr__sci_Seq__O($thiz, argType, methodName, obj, args) {
19727
+ var nonLocalReturnKey1 = $ct_O__(new $c_O());
19728
+ try {
19729
+ var x1 = $n($thiz.METHODS_BY_TYPE__sci_Map()).get__O__s_Option(argType);
19730
+ if ((x1 instanceof $c_s_Some)) {
19731
+ var x2 = $as_s_Some(x1);
19732
+ var methodList = $as_sci_List($n(x2).s_Some__f_value);
19733
+ var this$2 = $n(methodList);
19734
+ var f = ((x$2$2) => {
19735
+ var x$2 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(x$2$2);
19736
+ return ($n(x$2).name__T() === methodName)
19737
+ });
19738
+ var l = this$2;
19739
+ block: {
19740
+ var result;
19741
+ while (true) {
19742
+ if ($n(l).isEmpty__Z()) {
19743
+ var result = $m_sci_Nil$();
19744
+ break
19745
+ } else {
19746
+ var h = $n(l).head__O();
19747
+ var t = $as_sci_List($n(l).tail__O());
19748
+ if (($uZ(f(h)) === false)) {
19749
+ l = t;
19750
+ continue
19751
+ };
19752
+ var start = l;
19753
+ var remaining = t;
19754
+ while (true) {
19755
+ if ($n(remaining).isEmpty__Z()) {
19756
+ var result = start;
19757
+ break block
19758
+ } else {
19759
+ var x = $n(remaining).head__O();
19760
+ if (($uZ(f(x)) !== false)) {
19761
+ remaining = $as_sci_List($n(remaining).tail__O());
19762
+ continue
19763
+ };
19764
+ var firstMiss = remaining;
19765
+ var newHead = new $c_sci_$colon$colon($n(start).head__O(), $m_sci_Nil$());
19766
+ var toProcess = $as_sci_List($n(start).tail__O());
19767
+ var currentLast = newHead;
19768
+ while ((toProcess !== firstMiss)) {
19769
+ var newElem = new $c_sci_$colon$colon($n(toProcess).head__O(), $m_sci_Nil$());
19770
+ $n(currentLast).sci_$colon$colon__f_next = newElem;
19771
+ currentLast = newElem;
19772
+ toProcess = $as_sci_List($n(toProcess).tail__O())
19773
+ };
19774
+ var next = $as_sci_List($n(firstMiss).tail__O());
19775
+ var nextToCopy = next;
19776
+ while ((!$n(next).isEmpty__Z())) {
19777
+ var head = $n(next).head__O();
19778
+ if (($uZ(f(head)) !== false)) {
19779
+ next = $as_sci_List($n(next).tail__O())
19780
+ } else {
19781
+ while ((nextToCopy !== next)) {
19782
+ var newElem$2 = new $c_sci_$colon$colon($n(nextToCopy).head__O(), $m_sci_Nil$());
19783
+ $n(currentLast).sci_$colon$colon__f_next = newElem$2;
19784
+ currentLast = newElem$2;
19785
+ nextToCopy = $as_sci_List($n(nextToCopy).tail__O())
19786
+ };
19787
+ nextToCopy = $as_sci_List($n(next).tail__O());
19788
+ next = $as_sci_List($n(next).tail__O())
19789
+ }
19790
+ };
19791
+ if ((!$n(nextToCopy).isEmpty__Z())) {
19792
+ $n(currentLast).sci_$colon$colon__f_next = nextToCopy
19793
+ };
19794
+ var result = newHead;
19795
+ break block
19796
+ }
19797
+ }
19798
+ }
19799
+ }
19800
+ };
19801
+ if ($n(result).isEmpty__Z()) {
19802
+ throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg(methodName, argType)
19803
+ } else {
19804
+ var this$3 = $n(result);
19805
+ var f$1 = ((methodSig$2) => {
19806
+ var methodSig = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(methodSig$2);
19807
+ if ($n(methodSig).accepts__sci_Seq__Z(args)) {
19808
+ if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0)) {
19809
+ var x2$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(methodSig);
19810
+ var $$x1 = $n($n(x2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method).apply__O__O(obj)
19811
+ } else if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1)) {
19812
+ var x3 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(methodSig);
19813
+ var $$x1 = $n($n(x3).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method).apply__O__O__O(obj, $n(args).apply__I__O(0))
19814
+ } else if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2)) {
19815
+ var x4 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(methodSig);
19816
+ var $$x1 = $n($n(x4).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method).apply__O__O__O__O(obj, $n(args).apply__I__O(0), $n(args).apply__I__O(1))
19817
+ } else {
19818
+ var $$x1;
19819
+ throw new $c_s_MatchError(methodSig)
19820
+ };
19821
+ throw $ct_sr_NonLocalReturnControl__O__O__(new $c_sr_NonLocalReturnControl(), nonLocalReturnKey1, $$x1)
19822
+ } else {
19823
+ return $n(methodSig).expectedArgs__T()
19824
+ }
19825
+ });
19826
+ if ((this$3 === $m_sci_Nil$())) {
19827
+ var expectedArgProblems = $m_sci_Nil$()
19828
+ } else {
19829
+ var arg1 = this$3.head__O();
19830
+ var h$1 = new $c_sci_$colon$colon(f$1(arg1), $m_sci_Nil$());
19831
+ var t$1 = h$1;
19832
+ var rest = $as_sci_List(this$3.tail__O());
19833
+ while ((rest !== $m_sci_Nil$())) {
19834
+ var arg1$1 = $n(rest).head__O();
19835
+ var nx = new $c_sci_$colon$colon(f$1(arg1$1), $m_sci_Nil$());
19836
+ $n(t$1).sci_$colon$colon__f_next = nx;
19837
+ t$1 = nx;
19838
+ rest = $as_sci_List($n(rest).tail__O())
19839
+ };
19840
+ var expectedArgProblems = h$1
19841
+ };
19842
+ var this$4 = $n(args);
19843
+ throw new $c_Lio_kaitai_struct_precompile_WrongMethodCall(argType, methodName, expectedArgProblems, (("(" + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$4, "", ", ", "")) + ")"))
19844
+ }
19845
+ } else {
19846
+ var x$1 = $m_s_None$();
19847
+ if ((x$1 === x1)) {
19848
+ throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg(methodName, argType)
19849
+ } else {
19850
+ throw new $c_s_MatchError(x1)
19851
+ }
19852
+ }
19853
+ } catch (e) {
19854
+ if ((e instanceof $c_sr_NonLocalReturnControl)) {
19855
+ var ex = $as_sr_NonLocalReturnControl(e);
19856
+ if (($n(ex).sr_NonLocalReturnControl__f_key === nonLocalReturnKey1)) {
19857
+ return $n(ex).value__O()
19858
+ } else {
19859
+ throw $n(ex)
19860
+ }
19861
+ } else {
19862
+ throw e
19863
+ }
19864
+ }
19865
+ }
19866
+ function $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V($thiz) {
19867
+ var this$47 = $n($m_s_Predef$().s_Predef$__f_Map);
19868
+ var self = $m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$();
19869
+ $n($m_s_package$().s_package$__f_List);
19870
+ var array = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "first", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$2) => {
19871
+ var b = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$2);
19872
+ return $thiz.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(b)
19873
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "last", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$3$2) => {
19874
+ var b$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$3$2);
19875
+ return $thiz.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O(b$3)
19876
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "length", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((b$4$2) => {
19877
+ var b$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$4$2);
19878
+ return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(b$4)
19879
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "size", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((b$5$2) => {
19880
+ var b$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$5$2);
19881
+ return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(b$5)
19882
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "min", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$6$2) => {
19883
+ var b$6 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$6$2);
19884
+ return $thiz.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O(b$6)
19885
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "max", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$7$2) => {
19886
+ var b$7 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$7$2);
19887
+ return $thiz.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O(b$7)
19888
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1($thiz, "to_s", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$(), new $c_sjsr_AnonFunction2(((x0$1$2, x1$1$2) => {
19889
+ var x0$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x0$1$2);
19890
+ var x1$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1$1$2);
19891
+ var x1 = new $c_T2(x0$1, x1$1);
19892
+ var obj = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1.T2__f__1);
19893
+ var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1.T2__f__2);
19894
+ if ((arg0 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str)) {
19895
+ var x2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Str(arg0);
19896
+ var encoding = $n(x2).Lio_kaitai_struct_exprlang_Ast$expr$Str__f_s;
19897
+ return $thiz.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O(obj, encoding)
19898
+ } else {
19899
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: argument #0: expected string literal, got " + arg0))
19900
+ }
19901
+ })))];
19902
+ var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
19903
+ var y = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
19904
+ var $$x5 = new $c_T2(self, y);
19905
+ var self$1 = $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$();
19906
+ $n($m_s_package$().s_package$__f_List);
19907
+ var array$1 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_s", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_sjsr_AnonFunction1(((value$2) => {
19908
+ var value = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$2);
19909
+ return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19910
+ })))];
19911
+ var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
19912
+ var y$1 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
19913
+ var $$x4 = new $c_T2(self$1, y$1);
19914
+ var self$2 = $m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$();
19915
+ $n($m_s_package$().s_package$__f_List);
19916
+ var array$2 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((value$3$2) => {
19917
+ var value$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$3$2);
19918
+ return $thiz.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value$3)
19919
+ })))];
19920
+ var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2);
19921
+ var y$2 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$2);
19922
+ var $$x3 = new $c_T2(self$2, y$2);
19923
+ var self$3 = $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$();
19924
+ $n($m_s_package$().s_package$__f_List);
19925
+ var array$3 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "length", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((s$2) => {
19926
+ var s = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$2);
19927
+ return $thiz.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O(s)
19928
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "reverse", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_sjsr_AnonFunction1(((s$3$2) => {
19929
+ var s$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$3$2);
19930
+ return $thiz.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O(s$3)
19931
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((x$1$2) => {
19932
+ var x$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x$1$2);
19933
+ var this$26 = $m_s_math_BigInt$();
19934
+ return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(x$1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$26.apply__I__s_math_BigInt(10)))
19935
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$(), new $c_sjsr_AnonFunction2(((s$4$2, base$2) => {
19936
+ var s$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$4$2);
19937
+ var base = $as_Lio_kaitai_struct_exprlang_Ast$expr(base$2);
19938
+ return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(s$4, base)
19939
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2($thiz, "substring", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_T2($m_Lio_kaitai_struct_translators_MethodArgType$IntArg$(), $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$()), new $c_sjsr_AnonFunction3(((s$5$2, from$2, to$2) => {
19940
+ var s$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$5$2);
19941
+ var from = $as_Lio_kaitai_struct_exprlang_Ast$expr(from$2);
19942
+ var to = $as_Lio_kaitai_struct_exprlang_Ast$expr(to$2);
19943
+ return $thiz.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(s$5, from, to)
19944
+ })))];
19945
+ var elems$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3);
19946
+ var y$3 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$3);
19947
+ var $$x2 = new $c_T2(self$3, y$3);
19948
+ var self$4 = $m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$();
19949
+ $n($m_s_package$().s_package$__f_List);
19950
+ var array$4 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcBooleanType$(), new $c_sjsr_AnonFunction1(((value$4$2) => {
19951
+ var value$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$4$2);
19952
+ return $thiz.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value$4)
19953
+ })))];
19954
+ var elems$4 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$4);
19955
+ var y$4 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$4);
19956
+ var $$x1 = new $c_T2(self$4, y$4);
19957
+ var self$5 = $m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$();
19958
+ $n($m_s_package$().s_package$__f_List);
19959
+ var array$5 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "first", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$2) => {
19960
+ var a = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$2);
19961
+ return $thiz.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(a)
19962
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "last", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$3$2) => {
19963
+ var a$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$3$2);
19964
+ return $thiz.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O(a$3)
19965
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "size", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$4$2) => {
19966
+ var a$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$4$2);
19967
+ return $thiz.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O(a$4)
19968
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "min", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$5$2) => {
19969
+ var a$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$5$2);
19970
+ return $thiz.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O(a$5)
19971
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "max", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$6$2) => {
19972
+ var a$6 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$6$2);
19973
+ return $thiz.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O(a$6)
19974
+ })))];
19975
+ var elems$5 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$5);
19976
+ var y$5 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$5);
19977
+ var array$6 = [$$x5, $$x4, $$x3, $$x2, $$x1, new $c_T2(self$5, y$5)];
19978
+ var elems$6 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$6);
19979
+ $thiz.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V(this$47.from__sc_IterableOnce__sci_Map(elems$6))
19980
+ }
19981
+ function $is_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) {
19982
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig)))
19983
+ }
19984
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) {
19985
+ return (($is_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig"))
19986
+ }
19987
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) {
19988
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig)))
19989
+ }
19990
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) {
19991
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig;", depth))
19992
+ }
19802
19993
  /** @constructor */
19803
19994
  function $c_Lio_kaitai_struct_translators_CommonSizeOf$() {
19804
19995
  /*<skip>*/
@@ -19864,6 +20055,64 @@ function $m_Lio_kaitai_struct_translators_CommonSizeOf$() {
19864
20055
  };
19865
20056
  return $n_Lio_kaitai_struct_translators_CommonSizeOf$
19866
20057
  }
20058
+ function $is_Lio_kaitai_struct_translators_MethodArgType(obj) {
20059
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_MethodArgType)))
20060
+ }
20061
+ function $as_Lio_kaitai_struct_translators_MethodArgType(obj) {
20062
+ return (($is_Lio_kaitai_struct_translators_MethodArgType(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.MethodArgType"))
20063
+ }
20064
+ function $isArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) {
20065
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_MethodArgType)))
20066
+ }
20067
+ function $asArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) {
20068
+ return (($isArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.MethodArgType;", depth))
20069
+ }
20070
+ /** @constructor */
20071
+ function $c_Lio_kaitai_struct_translators_MethodArgType$() {
20072
+ /*<skip>*/
20073
+ }
20074
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype = new $h_O();
20075
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$;
20076
+ /** @constructor */
20077
+ function $h_Lio_kaitai_struct_translators_MethodArgType$() {
20078
+ /*<skip>*/
20079
+ }
20080
+ $h_Lio_kaitai_struct_translators_MethodArgType$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$.prototype;
20081
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.byDataType__Lio_kaitai_struct_datatype_DataType__s_Option = (function(dataType) {
20082
+ return ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$IntArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$StrArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$()) : $m_s_None$()))))))
20083
+ });
20084
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z = (function(actualType, expectedType) {
20085
+ var this$1 = $n(this.byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(actualType));
20086
+ if (this$1.isEmpty__Z()) {
20087
+ var $$x1 = $m_s_None$()
20088
+ } else {
20089
+ var arg1 = this$1.get__O();
20090
+ var t = $as_Lio_kaitai_struct_translators_MethodArgType(arg1);
20091
+ if ((t === null)) {
20092
+ var $$x2 = (expectedType === null)
20093
+ } else {
20094
+ var this$2 = $n(t);
20095
+ var $$x2 = (this$2 === expectedType)
20096
+ };
20097
+ var $$x1 = new $c_s_Some($$x2)
20098
+ };
20099
+ var this$3 = $n($$x1);
20100
+ return $uZ((this$3.isEmpty__Z() ? false : this$3.get__O()))
20101
+ });
20102
+ var $d_Lio_kaitai_struct_translators_MethodArgType$ = new $TypeData().initClass({
20103
+ Lio_kaitai_struct_translators_MethodArgType$: 0
20104
+ }, false, "io.kaitai.struct.translators.MethodArgType$", {
20105
+ Lio_kaitai_struct_translators_MethodArgType$: 1,
20106
+ O: 1
20107
+ });
20108
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$;
20109
+ var $n_Lio_kaitai_struct_translators_MethodArgType$;
20110
+ function $m_Lio_kaitai_struct_translators_MethodArgType$() {
20111
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$)) {
20112
+ $n_Lio_kaitai_struct_translators_MethodArgType$ = new $c_Lio_kaitai_struct_translators_MethodArgType$()
20113
+ };
20114
+ return $n_Lio_kaitai_struct_translators_MethodArgType$
20115
+ }
19867
20116
  function $is_Lio_kaitai_struct_translators_TranslatorResult(obj) {
19868
20117
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_TranslatorResult)))
19869
20118
  }
@@ -37826,10 +38075,12 @@ function $p_Lio_kaitai_struct_precompile_ResolveTypes__realResolveEnumSpec__Lio_
37826
38075
  }
37827
38076
  }
37828
38077
  /** @constructor */
37829
- function $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, opaqueTypes) {
38078
+ function $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, topClass, opaqueTypes) {
37830
38079
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs = null;
38080
+ this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass = null;
37831
38081
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes = false;
37832
38082
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs = specs;
38083
+ this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass = topClass;
37833
38084
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes = opaqueTypes
37834
38085
  }
37835
38086
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype = new $h_O();
@@ -37840,10 +38091,13 @@ function $h_Lio_kaitai_struct_precompile_ResolveTypes() {
37840
38091
  }
37841
38092
  $h_Lio_kaitai_struct_precompile_ResolveTypes.prototype = $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype;
37842
38093
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.run__sc_Iterable = (function() {
37843
- return $n(this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((curClass$2) => {
38094
+ return $as_sc_Iterable($n($n(this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((curClass$2) => {
37844
38095
  var curClass = $as_Lio_kaitai_struct_format_ClassSpec(curClass$2);
37845
38096
  return this.resolveUserTypes__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(curClass)
37846
- })))
38097
+ })))).map__F1__O(new $c_sjsr_AnonFunction1(((problem$2) => {
38098
+ var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(problem$2);
38099
+ return $n(problem).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblem(this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass)
38100
+ }))))
37847
38101
  });
37848
38102
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.resolveUserTypes__Lio_kaitai_struct_format_ClassSpec__sc_Iterable = (function(curClass) {
37849
38103
  var this$1 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_seq);
@@ -38007,11 +38261,11 @@ var $d_Lio_kaitai_struct_precompile_ResolveTypes = new $TypeData().initClass({
38007
38261
  });
38008
38262
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.$classData = $d_Lio_kaitai_struct_precompile_ResolveTypes;
38009
38263
  /** @constructor */
38010
- function $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs, topClass) {
38264
+ function $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs) {
38011
38265
  this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs = null;
38012
38266
  this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = null;
38013
38267
  this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs = specs;
38014
- this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, topClass)
38268
+ this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, $n(specs).Lio_kaitai_struct_format_ClassSpecs__f_firstSpec)
38015
38269
  }
38016
38270
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype = new $h_O();
38017
38271
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.constructor = $c_Lio_kaitai_struct_precompile_StyleCheckIds;
@@ -38021,10 +38275,29 @@ function $h_Lio_kaitai_struct_precompile_StyleCheckIds() {
38021
38275
  }
38022
38276
  $h_Lio_kaitai_struct_precompile_StyleCheckIds.prototype = $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype;
38023
38277
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.run__sc_Iterable = (function() {
38024
- return $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((spec$2) => {
38025
- var spec = $as_Lio_kaitai_struct_format_ClassSpec(spec$2);
38026
- return this.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(spec)
38027
- })))
38278
+ var this$1 = $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs);
38279
+ var b = $m_scm_Iterable$().newBuilder__scm_Builder();
38280
+ var it = this$1.iterator__sc_Iterator();
38281
+ while ($n(it).hasNext__Z()) {
38282
+ var this$3 = $n(b);
38283
+ var arg1 = $n(it).next__O();
38284
+ var x0$1 = $as_T2(arg1);
38285
+ if ((x0$1 === null)) {
38286
+ throw new $c_s_MatchError(x0$1)
38287
+ };
38288
+ $as_T($n(x0$1).T2__f__1);
38289
+ var typeSpec = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
38290
+ $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_topClass = typeSpec;
38291
+ var xs = $as_sc_IterableOnce($n($n(typeSpec).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((spec$2) => {
38292
+ var spec = $as_Lio_kaitai_struct_format_ClassSpec(spec$2);
38293
+ return this.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(spec)
38294
+ })))).map__F1__O(new $c_sjsr_AnonFunction1(((typeSpec) => ((problem$2) => {
38295
+ var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(problem$2);
38296
+ return $n(problem).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblem(typeSpec)
38297
+ }))(typeSpec))));
38298
+ this$3.addAll__sc_IterableOnce__scm_Growable(xs)
38299
+ };
38300
+ return $as_sc_Iterable($n(b).result__O())
38028
38301
  });
38029
38302
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable = (function(spec) {
38030
38303
  $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass = spec;
@@ -38227,12 +38500,12 @@ var $d_Lio_kaitai_struct_precompile_StyleCheckIds = new $TypeData().initClass({
38227
38500
  });
38228
38501
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.$classData = $d_Lio_kaitai_struct_precompile_StyleCheckIds;
38229
38502
  /** @constructor */
38230
- function $c_Lio_kaitai_struct_precompile_TypeValidator(specs, topClass) {
38503
+ function $c_Lio_kaitai_struct_precompile_TypeValidator(specs) {
38231
38504
  this.Lio_kaitai_struct_precompile_TypeValidator__f_specs = null;
38232
38505
  this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = null;
38233
38506
  this.Lio_kaitai_struct_precompile_TypeValidator__f_detector = null;
38234
38507
  this.Lio_kaitai_struct_precompile_TypeValidator__f_specs = specs;
38235
- this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, topClass);
38508
+ this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, $n(specs).Lio_kaitai_struct_format_ClassSpecs__f_firstSpec);
38236
38509
  this.Lio_kaitai_struct_precompile_TypeValidator__f_detector = new $c_Lio_kaitai_struct_translators_ExpressionValidator(this.Lio_kaitai_struct_precompile_TypeValidator__f_provider)
38237
38510
  }
38238
38511
  $c_Lio_kaitai_struct_precompile_TypeValidator.prototype = new $h_O();
@@ -51044,8 +51317,10 @@ $c_Lio_kaitai_struct_problems_ProblemCoords.prototype.$classData = $d_Lio_kaitai
51044
51317
  function $c_Lio_kaitai_struct_translators_ExpressionValidator(provider) {
51045
51318
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
51046
51319
  this.Lio_kaitai_struct_translators_ExpressionValidator__f_provider = null;
51320
+ this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE = null;
51047
51321
  this.Lio_kaitai_struct_translators_ExpressionValidator__f_provider = provider;
51048
- $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider)
51322
+ $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
51323
+ $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V(this)
51049
51324
  }
51050
51325
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype = new $h_Lio_kaitai_struct_translators_TypeDetector();
51051
51326
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.constructor = $c_Lio_kaitai_struct_translators_ExpressionValidator;
@@ -51069,6 +51344,12 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesMin__Lio_kai
51069
51344
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
51070
51345
  this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(b)
51071
51346
  });
51347
+ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
51348
+ return this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE
51349
+ });
51350
+ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
51351
+ this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE = x$1
51352
+ });
51072
51353
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(v) {
51073
51354
  if (((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum) || ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$FloatNum) || ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str) || (v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool))))) {
51074
51355
  return (void 0)
@@ -51176,8 +51457,18 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
51176
51457
  var idx = $n(x25).Lio_kaitai_struct_exprlang_Ast$expr$Subscript__f_idx;
51177
51458
  if ((container !== null)) {
51178
51459
  if ((idx !== null)) {
51179
- this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(container);
51180
- this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(idx);
51460
+ var x1$2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(container);
51461
+ if (((x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType) || (x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType))) {
51462
+ this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(container);
51463
+ var x1$3 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(idx);
51464
+ if ((x1$3 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
51465
+ this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(idx)
51466
+ } else {
51467
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("subscript operation on arrays require index to be integer, but found " + x1$3))
51468
+ }
51469
+ } else {
51470
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("subscript operation is not supported on object type " + x1$2))
51471
+ };
51181
51472
  return (void 0)
51182
51473
  }
51183
51474
  }
@@ -64345,6 +64636,687 @@ function $m_Lio_kaitai_struct_problems_ProblemSeverity$Warning$() {
64345
64636
  return $n_Lio_kaitai_struct_problems_ProblemSeverity$Warning$
64346
64637
  }
64347
64638
  /** @constructor */
64639
+ function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(outer, name, returnType, method) {
64640
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name = null;
64641
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType = null;
64642
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method = null;
64643
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer = null;
64644
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name = name;
64645
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType = returnType;
64646
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method = method;
64647
+ if ((outer === null)) {
64648
+ $n(null)
64649
+ } else {
64650
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer = outer
64651
+ }
64652
+ }
64653
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype = new $h_O();
64654
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0;
64655
+ /** @constructor */
64656
+ function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig0() {
64657
+ /*<skip>*/
64658
+ }
64659
+ $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype;
64660
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.name__T = (function() {
64661
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name
64662
+ });
64663
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.expectedArgs__T = (function() {
64664
+ return "()"
64665
+ });
64666
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.accepts__sci_Seq__Z = (function(argsValues) {
64667
+ return $n(argsValues).isEmpty__Z()
64668
+ });
64669
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productPrefix__T = (function() {
64670
+ return "MethodSig0"
64671
+ });
64672
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productArity__I = (function() {
64673
+ return 3
64674
+ });
64675
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productElement__I__O = (function(x$1) {
64676
+ switch (x$1) {
64677
+ case 0: {
64678
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name;
64679
+ break
64680
+ }
64681
+ case 1: {
64682
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
64683
+ break
64684
+ }
64685
+ case 2: {
64686
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
64687
+ break
64688
+ }
64689
+ default: {
64690
+ return $m_sr_Statics$().ioobe__I__O(x$1)
64691
+ }
64692
+ }
64693
+ });
64694
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productIterator__sc_Iterator = (function() {
64695
+ return new $c_sr_ScalaRunTime$$anon$1(this)
64696
+ });
64697
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.hashCode__I = (function() {
64698
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
64699
+ return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
64700
+ });
64701
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.toString__T = (function() {
64702
+ return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
64703
+ });
64704
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.equals__O__Z = (function(x$1) {
64705
+ if ((this === x$1)) {
64706
+ return true
64707
+ } else if (((x$1 instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0) && ($n($as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(x$1)).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer === this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer))) {
64708
+ var MethodSig0$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(x$1);
64709
+ if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name === $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name)) {
64710
+ var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
64711
+ var x$2 = $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
64712
+ var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
64713
+ } else {
64714
+ var $$x1 = false
64715
+ };
64716
+ if ($$x1) {
64717
+ var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
64718
+ var x$4 = $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
64719
+ if (((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))) {
64720
+ $n(MethodSig0$1);
64721
+ return true
64722
+ } else {
64723
+ return false
64724
+ }
64725
+ } else {
64726
+ return false
64727
+ }
64728
+ } else {
64729
+ return false
64730
+ }
64731
+ });
64732
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj) {
64733
+ return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig0"))
64734
+ }
64735
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) {
64736
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig0)))
64737
+ }
64738
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) {
64739
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig0;", depth))
64740
+ }
64741
+ var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig0 = new $TypeData().initClass({
64742
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig0: 0
64743
+ }, false, "io.kaitai.struct.translators.CommonMethods$MethodSig0", {
64744
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig0: 1,
64745
+ O: 1,
64746
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
64747
+ s_Product: 1,
64748
+ s_Equals: 1,
64749
+ Ljava_io_Serializable: 1
64750
+ });
64751
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig0;
64752
+ /** @constructor */
64753
+ function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(outer, name, returnType, argTypes, method) {
64754
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name = null;
64755
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType = null;
64756
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes = null;
64757
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method = null;
64758
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer = null;
64759
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name = name;
64760
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType = returnType;
64761
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes = argTypes;
64762
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method = method;
64763
+ if ((outer === null)) {
64764
+ $n(null)
64765
+ } else {
64766
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer = outer
64767
+ }
64768
+ }
64769
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype = new $h_O();
64770
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1;
64771
+ /** @constructor */
64772
+ function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig1() {
64773
+ /*<skip>*/
64774
+ }
64775
+ $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype;
64776
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.name__T = (function() {
64777
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name
64778
+ });
64779
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.expectedArgs__T = (function() {
64780
+ return (("(" + this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes) + ")")
64781
+ });
64782
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.accepts__sci_Seq__Z = (function(argsValues) {
64783
+ if ((argsValues !== null)) {
64784
+ $n($m_s_package$().s_package$__f_Seq);
64785
+ if (((new $c_sc_SeqFactory$UnapplySeqWrapper(argsValues), true) && ($n(argsValues).lengthCompare__I__I(1) === 0))) {
64786
+ var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(0));
64787
+ return $m_Lio_kaitai_struct_translators_MethodArgType$().isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z($n($as_Lio_kaitai_struct_translators_TypeDetector(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(arg0), this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes)
64788
+ }
64789
+ };
64790
+ return false
64791
+ });
64792
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productPrefix__T = (function() {
64793
+ return "MethodSig1"
64794
+ });
64795
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productArity__I = (function() {
64796
+ return 4
64797
+ });
64798
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productElement__I__O = (function(x$1) {
64799
+ switch (x$1) {
64800
+ case 0: {
64801
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name;
64802
+ break
64803
+ }
64804
+ case 1: {
64805
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
64806
+ break
64807
+ }
64808
+ case 2: {
64809
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
64810
+ break
64811
+ }
64812
+ case 3: {
64813
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
64814
+ break
64815
+ }
64816
+ default: {
64817
+ return $m_sr_Statics$().ioobe__I__O(x$1)
64818
+ }
64819
+ }
64820
+ });
64821
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productIterator__sc_Iterator = (function() {
64822
+ return new $c_sr_ScalaRunTime$$anon$1(this)
64823
+ });
64824
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.hashCode__I = (function() {
64825
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
64826
+ return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
64827
+ });
64828
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.toString__T = (function() {
64829
+ return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
64830
+ });
64831
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.equals__O__Z = (function(x$1) {
64832
+ if ((this === x$1)) {
64833
+ return true
64834
+ } else if (((x$1 instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1) && ($n($as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(x$1)).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer === this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer))) {
64835
+ var MethodSig1$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(x$1);
64836
+ if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name === $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name)) {
64837
+ var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
64838
+ var x$2 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
64839
+ var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
64840
+ } else {
64841
+ var $$x1 = false
64842
+ };
64843
+ if ($$x1) {
64844
+ var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
64845
+ var x$4 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
64846
+ if ((x$3 === null)) {
64847
+ var $$x2 = (x$4 === null)
64848
+ } else {
64849
+ var this$1 = $n(x$3);
64850
+ var $$x2 = (this$1 === x$4)
64851
+ };
64852
+ if ($$x2) {
64853
+ var x$5 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
64854
+ var x$6 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
64855
+ if ((x$5 === null)) {
64856
+ var $$x3 = (x$6 === null)
64857
+ } else {
64858
+ var this$2 = $n(x$5);
64859
+ var $$x3 = (this$2 === x$6)
64860
+ };
64861
+ if ($$x3) {
64862
+ $n(MethodSig1$1);
64863
+ return true
64864
+ } else {
64865
+ return false
64866
+ }
64867
+ } else {
64868
+ return false
64869
+ }
64870
+ } else {
64871
+ return false
64872
+ }
64873
+ } else {
64874
+ return false
64875
+ }
64876
+ });
64877
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj) {
64878
+ return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig1"))
64879
+ }
64880
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) {
64881
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig1)))
64882
+ }
64883
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) {
64884
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig1;", depth))
64885
+ }
64886
+ var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig1 = new $TypeData().initClass({
64887
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig1: 0
64888
+ }, false, "io.kaitai.struct.translators.CommonMethods$MethodSig1", {
64889
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig1: 1,
64890
+ O: 1,
64891
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
64892
+ s_Product: 1,
64893
+ s_Equals: 1,
64894
+ Ljava_io_Serializable: 1
64895
+ });
64896
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig1;
64897
+ /** @constructor */
64898
+ function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(outer, name, returnType, argTypes, method) {
64899
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name = null;
64900
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType = null;
64901
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes = null;
64902
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method = null;
64903
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer = null;
64904
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name = name;
64905
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType = returnType;
64906
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes = argTypes;
64907
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method = method;
64908
+ if ((outer === null)) {
64909
+ $n(null)
64910
+ } else {
64911
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer = outer
64912
+ }
64913
+ }
64914
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype = new $h_O();
64915
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2;
64916
+ /** @constructor */
64917
+ function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig2() {
64918
+ /*<skip>*/
64919
+ }
64920
+ $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype;
64921
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.name__T = (function() {
64922
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name
64923
+ });
64924
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.expectedArgs__T = (function() {
64925
+ return (((("(" + $n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__1) + ", ") + $n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__2) + ")")
64926
+ });
64927
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.accepts__sci_Seq__Z = (function(argsValues) {
64928
+ if ((argsValues !== null)) {
64929
+ $n($m_s_package$().s_package$__f_Seq);
64930
+ if (((new $c_sc_SeqFactory$UnapplySeqWrapper(argsValues), true) && ($n(argsValues).lengthCompare__I__I(2) === 0))) {
64931
+ var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(0));
64932
+ var arg1 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(1));
64933
+ return ($m_Lio_kaitai_struct_translators_MethodArgType$().isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z($n($as_Lio_kaitai_struct_translators_TypeDetector(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(arg0), $as_Lio_kaitai_struct_translators_MethodArgType($n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__1)) && $m_Lio_kaitai_struct_translators_MethodArgType$().isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z($n($as_Lio_kaitai_struct_translators_TypeDetector(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(arg1), $as_Lio_kaitai_struct_translators_MethodArgType($n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__2)))
64934
+ }
64935
+ };
64936
+ return false
64937
+ });
64938
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productPrefix__T = (function() {
64939
+ return "MethodSig2"
64940
+ });
64941
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productArity__I = (function() {
64942
+ return 4
64943
+ });
64944
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productElement__I__O = (function(x$1) {
64945
+ switch (x$1) {
64946
+ case 0: {
64947
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name;
64948
+ break
64949
+ }
64950
+ case 1: {
64951
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
64952
+ break
64953
+ }
64954
+ case 2: {
64955
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
64956
+ break
64957
+ }
64958
+ case 3: {
64959
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
64960
+ break
64961
+ }
64962
+ default: {
64963
+ return $m_sr_Statics$().ioobe__I__O(x$1)
64964
+ }
64965
+ }
64966
+ });
64967
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productIterator__sc_Iterator = (function() {
64968
+ return new $c_sr_ScalaRunTime$$anon$1(this)
64969
+ });
64970
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.hashCode__I = (function() {
64971
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
64972
+ return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
64973
+ });
64974
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.toString__T = (function() {
64975
+ return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
64976
+ });
64977
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.equals__O__Z = (function(x$1) {
64978
+ if ((this === x$1)) {
64979
+ return true
64980
+ } else if (((x$1 instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2) && ($n($as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(x$1)).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer === this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer))) {
64981
+ var MethodSig2$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(x$1);
64982
+ if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name === $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name)) {
64983
+ var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
64984
+ var x$2 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
64985
+ var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
64986
+ } else {
64987
+ var $$x1 = false
64988
+ };
64989
+ if ($$x1) {
64990
+ var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
64991
+ var x$4 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
64992
+ if (((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))) {
64993
+ var x$5 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
64994
+ var x$6 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
64995
+ if ((x$5 === null)) {
64996
+ var $$x2 = (x$6 === null)
64997
+ } else {
64998
+ var this$1 = $n(x$5);
64999
+ var $$x2 = (this$1 === x$6)
65000
+ };
65001
+ if ($$x2) {
65002
+ $n(MethodSig2$1);
65003
+ return true
65004
+ } else {
65005
+ return false
65006
+ }
65007
+ } else {
65008
+ return false
65009
+ }
65010
+ } else {
65011
+ return false
65012
+ }
65013
+ } else {
65014
+ return false
65015
+ }
65016
+ });
65017
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj) {
65018
+ return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig2"))
65019
+ }
65020
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) {
65021
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig2)))
65022
+ }
65023
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) {
65024
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig2;", depth))
65025
+ }
65026
+ var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig2 = new $TypeData().initClass({
65027
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig2: 0
65028
+ }, false, "io.kaitai.struct.translators.CommonMethods$MethodSig2", {
65029
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig2: 1,
65030
+ O: 1,
65031
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
65032
+ s_Product: 1,
65033
+ s_Equals: 1,
65034
+ Ljava_io_Serializable: 1
65035
+ });
65036
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig2;
65037
+ /** @constructor */
65038
+ function $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
65039
+ /*<skip>*/
65040
+ }
65041
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype = new $h_O();
65042
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
65043
+ /** @constructor */
65044
+ function $h_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
65045
+ /*<skip>*/
65046
+ }
65047
+ $h_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype;
65048
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.toString__T = (function() {
65049
+ return "array"
65050
+ });
65051
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productPrefix__T = (function() {
65052
+ return "ArrayArg"
65053
+ });
65054
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productArity__I = (function() {
65055
+ return 0
65056
+ });
65057
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productElement__I__O = (function(x$1) {
65058
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65059
+ });
65060
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productIterator__sc_Iterator = (function() {
65061
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65062
+ });
65063
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.hashCode__I = (function() {
65064
+ return (-1228265123)
65065
+ });
65066
+ var $d_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$ = new $TypeData().initClass({
65067
+ Lio_kaitai_struct_translators_MethodArgType$ArrayArg$: 0
65068
+ }, false, "io.kaitai.struct.translators.MethodArgType$ArrayArg$", {
65069
+ Lio_kaitai_struct_translators_MethodArgType$ArrayArg$: 1,
65070
+ O: 1,
65071
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65072
+ s_Product: 1,
65073
+ s_Equals: 1,
65074
+ Ljava_io_Serializable: 1
65075
+ });
65076
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
65077
+ var $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
65078
+ function $m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
65079
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$)) {
65080
+ $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$()
65081
+ };
65082
+ return $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$
65083
+ }
65084
+ /** @constructor */
65085
+ function $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
65086
+ /*<skip>*/
65087
+ }
65088
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype = new $h_O();
65089
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
65090
+ /** @constructor */
65091
+ function $h_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
65092
+ /*<skip>*/
65093
+ }
65094
+ $h_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype;
65095
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.toString__T = (function() {
65096
+ return "boolean"
65097
+ });
65098
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productPrefix__T = (function() {
65099
+ return "BooleanArg"
65100
+ });
65101
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productArity__I = (function() {
65102
+ return 0
65103
+ });
65104
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productElement__I__O = (function(x$1) {
65105
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65106
+ });
65107
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productIterator__sc_Iterator = (function() {
65108
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65109
+ });
65110
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.hashCode__I = (function() {
65111
+ return 1380065582
65112
+ });
65113
+ var $d_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$ = new $TypeData().initClass({
65114
+ Lio_kaitai_struct_translators_MethodArgType$BooleanArg$: 0
65115
+ }, false, "io.kaitai.struct.translators.MethodArgType$BooleanArg$", {
65116
+ Lio_kaitai_struct_translators_MethodArgType$BooleanArg$: 1,
65117
+ O: 1,
65118
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65119
+ s_Product: 1,
65120
+ s_Equals: 1,
65121
+ Ljava_io_Serializable: 1
65122
+ });
65123
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
65124
+ var $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
65125
+ function $m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
65126
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$)) {
65127
+ $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$()
65128
+ };
65129
+ return $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$
65130
+ }
65131
+ /** @constructor */
65132
+ function $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
65133
+ /*<skip>*/
65134
+ }
65135
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype = new $h_O();
65136
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
65137
+ /** @constructor */
65138
+ function $h_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
65139
+ /*<skip>*/
65140
+ }
65141
+ $h_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype;
65142
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.toString__T = (function() {
65143
+ return "byte array"
65144
+ });
65145
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productPrefix__T = (function() {
65146
+ return "BytesArg"
65147
+ });
65148
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productArity__I = (function() {
65149
+ return 0
65150
+ });
65151
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productElement__I__O = (function(x$1) {
65152
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65153
+ });
65154
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productIterator__sc_Iterator = (function() {
65155
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65156
+ });
65157
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.hashCode__I = (function() {
65158
+ return (-1802089973)
65159
+ });
65160
+ var $d_Lio_kaitai_struct_translators_MethodArgType$BytesArg$ = new $TypeData().initClass({
65161
+ Lio_kaitai_struct_translators_MethodArgType$BytesArg$: 0
65162
+ }, false, "io.kaitai.struct.translators.MethodArgType$BytesArg$", {
65163
+ Lio_kaitai_struct_translators_MethodArgType$BytesArg$: 1,
65164
+ O: 1,
65165
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65166
+ s_Product: 1,
65167
+ s_Equals: 1,
65168
+ Ljava_io_Serializable: 1
65169
+ });
65170
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
65171
+ var $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
65172
+ function $m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
65173
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$)) {
65174
+ $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$()
65175
+ };
65176
+ return $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$
65177
+ }
65178
+ /** @constructor */
65179
+ function $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
65180
+ /*<skip>*/
65181
+ }
65182
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype = new $h_O();
65183
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
65184
+ /** @constructor */
65185
+ function $h_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
65186
+ /*<skip>*/
65187
+ }
65188
+ $h_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype;
65189
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.toString__T = (function() {
65190
+ return "float"
65191
+ });
65192
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productPrefix__T = (function() {
65193
+ return "FloatArg"
65194
+ });
65195
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productArity__I = (function() {
65196
+ return 0
65197
+ });
65198
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productElement__I__O = (function(x$1) {
65199
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65200
+ });
65201
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productIterator__sc_Iterator = (function() {
65202
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65203
+ });
65204
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.hashCode__I = (function() {
65205
+ return 2074728058
65206
+ });
65207
+ var $d_Lio_kaitai_struct_translators_MethodArgType$FloatArg$ = new $TypeData().initClass({
65208
+ Lio_kaitai_struct_translators_MethodArgType$FloatArg$: 0
65209
+ }, false, "io.kaitai.struct.translators.MethodArgType$FloatArg$", {
65210
+ Lio_kaitai_struct_translators_MethodArgType$FloatArg$: 1,
65211
+ O: 1,
65212
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65213
+ s_Product: 1,
65214
+ s_Equals: 1,
65215
+ Ljava_io_Serializable: 1
65216
+ });
65217
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
65218
+ var $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
65219
+ function $m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
65220
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$)) {
65221
+ $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$()
65222
+ };
65223
+ return $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$
65224
+ }
65225
+ /** @constructor */
65226
+ function $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
65227
+ /*<skip>*/
65228
+ }
65229
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype = new $h_O();
65230
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
65231
+ /** @constructor */
65232
+ function $h_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
65233
+ /*<skip>*/
65234
+ }
65235
+ $h_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype;
65236
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.toString__T = (function() {
65237
+ return "integer"
65238
+ });
65239
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productPrefix__T = (function() {
65240
+ return "IntArg"
65241
+ });
65242
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productArity__I = (function() {
65243
+ return 0
65244
+ });
65245
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productElement__I__O = (function(x$1) {
65246
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65247
+ });
65248
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productIterator__sc_Iterator = (function() {
65249
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65250
+ });
65251
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.hashCode__I = (function() {
65252
+ return (-2099930105)
65253
+ });
65254
+ var $d_Lio_kaitai_struct_translators_MethodArgType$IntArg$ = new $TypeData().initClass({
65255
+ Lio_kaitai_struct_translators_MethodArgType$IntArg$: 0
65256
+ }, false, "io.kaitai.struct.translators.MethodArgType$IntArg$", {
65257
+ Lio_kaitai_struct_translators_MethodArgType$IntArg$: 1,
65258
+ O: 1,
65259
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65260
+ s_Product: 1,
65261
+ s_Equals: 1,
65262
+ Ljava_io_Serializable: 1
65263
+ });
65264
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
65265
+ var $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
65266
+ function $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
65267
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$IntArg$)) {
65268
+ $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$()
65269
+ };
65270
+ return $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$
65271
+ }
65272
+ /** @constructor */
65273
+ function $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
65274
+ /*<skip>*/
65275
+ }
65276
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype = new $h_O();
65277
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
65278
+ /** @constructor */
65279
+ function $h_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
65280
+ /*<skip>*/
65281
+ }
65282
+ $h_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype;
65283
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.toString__T = (function() {
65284
+ return "string"
65285
+ });
65286
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productPrefix__T = (function() {
65287
+ return "StrArg"
65288
+ });
65289
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productArity__I = (function() {
65290
+ return 0
65291
+ });
65292
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productElement__I__O = (function(x$1) {
65293
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65294
+ });
65295
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productIterator__sc_Iterator = (function() {
65296
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65297
+ });
65298
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.hashCode__I = (function() {
65299
+ return (-1808157051)
65300
+ });
65301
+ var $d_Lio_kaitai_struct_translators_MethodArgType$StrArg$ = new $TypeData().initClass({
65302
+ Lio_kaitai_struct_translators_MethodArgType$StrArg$: 0
65303
+ }, false, "io.kaitai.struct.translators.MethodArgType$StrArg$", {
65304
+ Lio_kaitai_struct_translators_MethodArgType$StrArg$: 1,
65305
+ O: 1,
65306
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65307
+ s_Product: 1,
65308
+ s_Equals: 1,
65309
+ Ljava_io_Serializable: 1
65310
+ });
65311
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
65312
+ var $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
65313
+ function $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
65314
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$StrArg$)) {
65315
+ $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$()
65316
+ };
65317
+ return $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$
65318
+ }
65319
+ /** @constructor */
64348
65320
  function $c_Lio_kaitai_struct_translators_ResultLocalVar(n) {
64349
65321
  this.Lio_kaitai_struct_translators_ResultLocalVar__f_n = 0;
64350
65322
  this.Lio_kaitai_struct_translators_ResultLocalVar__f_n = n
@@ -73057,6 +74029,26 @@ var $d_Lio_kaitai_struct_precompile_TypeUndecidedError = new $TypeData().initCla
73057
74029
  Ljava_io_Serializable: 1
73058
74030
  });
73059
74031
  $c_Lio_kaitai_struct_precompile_TypeUndecidedError.prototype.$classData = $d_Lio_kaitai_struct_precompile_TypeUndecidedError;
74032
+ class $c_Lio_kaitai_struct_precompile_WrongMethodCall extends $c_Lio_kaitai_struct_precompile_ExpressionError {
74033
+ constructor(dataType, methodName, expectedSigs, actualSig) {
74034
+ super();
74035
+ var this$1 = $n(expectedSigs);
74036
+ var msg = ((((((("wrong arguments to method call `" + methodName) + "` on ") + dataType) + ": expected ") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, "", " or ", "")) + ", got ") + actualSig);
74037
+ $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
74038
+ };
74039
+ }
74040
+ var $d_Lio_kaitai_struct_precompile_WrongMethodCall = new $TypeData().initClass({
74041
+ Lio_kaitai_struct_precompile_WrongMethodCall: 0
74042
+ }, false, "io.kaitai.struct.precompile.WrongMethodCall", {
74043
+ Lio_kaitai_struct_precompile_WrongMethodCall: 1,
74044
+ Lio_kaitai_struct_precompile_ExpressionError: 1,
74045
+ jl_RuntimeException: 1,
74046
+ jl_Exception: 1,
74047
+ jl_Throwable: 1,
74048
+ O: 1,
74049
+ Ljava_io_Serializable: 1
74050
+ });
74051
+ $c_Lio_kaitai_struct_precompile_WrongMethodCall.prototype.$classData = $d_Lio_kaitai_struct_precompile_WrongMethodCall;
73060
74052
  /** @constructor */
73061
74053
  function $c_Lio_kaitai_struct_problems_EnumNotFoundErr(name, curClass, path, fileName) {
73062
74054
  this.Lio_kaitai_struct_problems_EnumNotFoundErr__f_name = null;
@@ -76263,6 +77255,18 @@ var $d_scm_HashSet$$anon$3 = new $TypeData().initClass({
76263
77255
  sc_IterableOnceOps: 1
76264
77256
  });
76265
77257
  $c_scm_HashSet$$anon$3.prototype.$classData = $d_scm_HashSet$$anon$3;
77258
+ function $is_scm_Iterable(obj) {
77259
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scm_Iterable)))
77260
+ }
77261
+ function $as_scm_Iterable(obj) {
77262
+ return (($is_scm_Iterable(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.Iterable"))
77263
+ }
77264
+ function $isArrayOf_scm_Iterable(obj, depth) {
77265
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_Iterable)))
77266
+ }
77267
+ function $asArrayOf_scm_Iterable(obj, depth) {
77268
+ return (($isArrayOf_scm_Iterable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.Iterable;", depth))
77269
+ }
76266
77270
  /** @constructor */
76267
77271
  function $c_s_math_Ordering$$anon$5(ord$2, f$3) {
76268
77272
  this.s_math_Ordering$$anon$5__f_ord$2 = null;
@@ -77885,9 +78889,9 @@ var $d_Lio_kaitai_struct_format_ValueInstanceSpec = new $TypeData().initClass({
77885
78889
  });
77886
78890
  $c_Lio_kaitai_struct_format_ValueInstanceSpec.prototype.$classData = $d_Lio_kaitai_struct_format_ValueInstanceSpec;
77887
78891
  class $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError extends $c_Lio_kaitai_struct_precompile_NotFoundError {
77888
- constructor(label, enum$1, enumDefPath) {
78892
+ constructor(label, enumName, enumDefPath) {
77889
78893
  super();
77890
- var msg = (((((((("unable to find enum member '" + enum$1) + "::") + label) + "' (enum '") + enum$1) + "' defined at /") + enumDefPath) + ")");
78894
+ var msg = (((((((("unable to find enum member '" + enumName) + "::") + label) + "' (enum '") + enumName) + "' defined at /") + enumDefPath) + ")");
77891
78895
  $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
77892
78896
  };
77893
78897
  }
@@ -78033,6 +79037,26 @@ var $d_Lio_kaitai_struct_precompile_MethodNotFoundError = new $TypeData().initCl
78033
79037
  Ljava_io_Serializable: 1
78034
79038
  });
78035
79039
  $c_Lio_kaitai_struct_precompile_MethodNotFoundError.prototype.$classData = $d_Lio_kaitai_struct_precompile_MethodNotFoundError;
79040
+ class $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg extends $c_Lio_kaitai_struct_precompile_NotFoundError {
79041
+ constructor(name, argType) {
79042
+ super();
79043
+ var msg = (((("don't know how to call method '" + name) + "' of object type '") + argType) + "'");
79044
+ $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
79045
+ };
79046
+ }
79047
+ var $d_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg = new $TypeData().initClass({
79048
+ Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg: 0
79049
+ }, false, "io.kaitai.struct.precompile.MethodNotFoundErrorWithArg", {
79050
+ Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg: 1,
79051
+ Lio_kaitai_struct_precompile_NotFoundError: 1,
79052
+ Lio_kaitai_struct_precompile_ExpressionError: 1,
79053
+ jl_RuntimeException: 1,
79054
+ jl_Exception: 1,
79055
+ jl_Throwable: 1,
79056
+ O: 1,
79057
+ Ljava_io_Serializable: 1
79058
+ });
79059
+ $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg.prototype.$classData = $d_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg;
78036
79060
  class $c_Lio_kaitai_struct_precompile_TypeNotFoundError extends $c_Lio_kaitai_struct_precompile_NotFoundError {
78037
79061
  constructor(name, curClass) {
78038
79062
  super();
@@ -81401,12 +82425,14 @@ function $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_tra
81401
82425
  $thiz.Lio_kaitai_struct_translators_BaseTranslator__f_provider = provider;
81402
82426
  $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__($thiz, provider);
81403
82427
  $f_Lio_kaitai_struct_translators_CommonLiterals__$init$__V($thiz);
82428
+ $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V($thiz);
81404
82429
  return $thiz
81405
82430
  }
81406
82431
  /** @constructor */
81407
82432
  function $c_Lio_kaitai_struct_translators_BaseTranslator() {
81408
82433
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
81409
82434
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
82435
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
81410
82436
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null
81411
82437
  }
81412
82438
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype = new $h_Lio_kaitai_struct_translators_TypeDetector();
@@ -81470,6 +82496,12 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strLiteralGenericCC__C
81470
82496
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strLiteralUnicode__C__T = (function(code) {
81471
82497
  return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralUnicode__C__T(this, code)
81472
82498
  });
82499
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
82500
+ return this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE
82501
+ });
82502
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
82503
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = x$1
82504
+ });
81473
82505
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
81474
82506
  return this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap
81475
82507
  });
@@ -81847,12 +82879,14 @@ function $c_Lio_kaitai_struct_translators_GoTranslator(out, provider, importList
81847
82879
  this.Lio_kaitai_struct_translators_GoTranslator__f_IMPORT_CHARMAP = null;
81848
82880
  this.Lio_kaitai_struct_translators_GoTranslator__f_ENCODINGS = null;
81849
82881
  this.Lio_kaitai_struct_translators_GoTranslator__f_localVarNum = 0;
82882
+ this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE = null;
81850
82883
  this.Lio_kaitai_struct_translators_GoTranslator__f_asciiCharQuoteMap = null;
81851
82884
  this.Lio_kaitai_struct_translators_GoTranslator__f_out = out;
81852
82885
  this.Lio_kaitai_struct_translators_GoTranslator__f_provider = provider;
81853
82886
  this.Lio_kaitai_struct_translators_GoTranslator__f_importList = importList;
81854
82887
  $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
81855
82888
  $f_Lio_kaitai_struct_translators_CommonLiterals__$init$__V(this);
82889
+ $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V(this);
81856
82890
  this.Lio_kaitai_struct_translators_GoTranslator__f_returnRes = $m_s_None$();
81857
82891
  this.Lio_kaitai_struct_translators_GoTranslator__f_IMPORT_CHARMAP = "golang.org/x/text/encoding/charmap";
81858
82892
  var this$22 = $n($m_s_Predef$().s_Predef$__f_Map);
@@ -81915,6 +82949,12 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralGenericCC__C__
81915
82949
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralUnicode__C__T = (function(code) {
81916
82950
  return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralUnicode__C__T(this, code)
81917
82951
  });
82952
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
82953
+ return this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE
82954
+ });
82955
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
82956
+ this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE = x$1
82957
+ });
81918
82958
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
81919
82959
  return this.Lio_kaitai_struct_translators_GoTranslator__f_asciiCharQuoteMap
81920
82960
  });
@@ -84161,6 +85201,7 @@ $c_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes.prototype.$classData =
84161
85201
  function $c_Lio_kaitai_struct_translators_CSharpTranslator(provider, importList) {
84162
85202
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84163
85203
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85204
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84164
85205
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84165
85206
  this.Lio_kaitai_struct_translators_CSharpTranslator__f_importList = null;
84166
85207
  this.Lio_kaitai_struct_translators_CSharpTranslator__f_asciiCharQuoteMap = null;
@@ -84409,6 +85450,7 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.$classData = $d_Lio_
84409
85450
  function $c_Lio_kaitai_struct_translators_JavaScriptTranslator(provider) {
84410
85451
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84411
85452
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85453
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84412
85454
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84413
85455
  $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider)
84414
85456
  }
@@ -84622,6 +85664,7 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.$classData = $d_
84622
85664
  function $c_Lio_kaitai_struct_translators_JavaTranslator(provider, importList) {
84623
85665
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84624
85666
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85667
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84625
85668
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84626
85669
  this.Lio_kaitai_struct_translators_JavaTranslator__f_importList = null;
84627
85670
  this.Lio_kaitai_struct_translators_JavaTranslator__f_importList = importList;
@@ -84962,6 +86005,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.$classData = $d_Lio_ka
84962
86005
  function $c_Lio_kaitai_struct_translators_NimTranslator(provider, importList) {
84963
86006
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84964
86007
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86008
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84965
86009
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84966
86010
  this.Lio_kaitai_struct_translators_NimTranslator__f_importList = null;
84967
86011
  this.Lio_kaitai_struct_translators_NimTranslator__f_importList = importList;
@@ -85279,6 +86323,7 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.$classData = $d_Lio_kai
85279
86323
  function $c_Lio_kaitai_struct_translators_PerlTranslator(provider, importList) {
85280
86324
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
85281
86325
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86326
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
85282
86327
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
85283
86328
  this.Lio_kaitai_struct_translators_PerlTranslator__f_importList = null;
85284
86329
  this.Lio_kaitai_struct_translators_PerlTranslator__f_asciiCharQuoteMap = null;
@@ -85624,6 +86669,7 @@ function $ct_Lio_kaitai_struct_translators_PythonTranslator__Lio_kaitai_struct_t
85624
86669
  function $c_Lio_kaitai_struct_translators_PythonTranslator() {
85625
86670
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
85626
86671
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86672
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
85627
86673
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
85628
86674
  this.Lio_kaitai_struct_translators_PythonTranslator__f_importList = null;
85629
86675
  this.Lio_kaitai_struct_translators_PythonTranslator__f_asciiCharQuoteMap = null
@@ -85882,6 +86928,7 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.$classData = $d_Lio_
85882
86928
  function $c_Lio_kaitai_struct_translators_RubyTranslator(provider) {
85883
86929
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
85884
86930
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86931
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
85885
86932
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
85886
86933
  this.Lio_kaitai_struct_translators_RubyTranslator__f_asciiCharQuoteMap = null;
85887
86934
  $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
@@ -86129,6 +87176,7 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.$classData = $d_Lio_ka
86129
87176
  function $c_Lio_kaitai_struct_translators_RustTranslator(provider, config) {
86130
87177
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
86131
87178
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
87179
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
86132
87180
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
86133
87181
  this.Lio_kaitai_struct_translators_RustTranslator__f_asciiCharQuoteMap = null;
86134
87182
  $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
@@ -86938,6 +87986,7 @@ function $m_s_reflect_ManifestFactory$UnitManifest$() {
86938
87986
  function $c_Lio_kaitai_struct_translators_ConstructTranslator(provider, importList) {
86939
87987
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
86940
87988
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
87989
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
86941
87990
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
86942
87991
  this.Lio_kaitai_struct_translators_PythonTranslator__f_importList = null;
86943
87992
  this.Lio_kaitai_struct_translators_PythonTranslator__f_asciiCharQuoteMap = null;
@@ -86997,6 +88046,7 @@ $c_Lio_kaitai_struct_translators_ConstructTranslator.prototype.$classData = $d_L
86997
88046
  function $c_Lio_kaitai_struct_translators_CppTranslator(provider, importListSrc, importListHdr, config) {
86998
88047
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
86999
88048
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
88049
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
87000
88050
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
87001
88051
  this.Lio_kaitai_struct_translators_CppTranslator__f_importListSrc = null;
87002
88052
  this.Lio_kaitai_struct_translators_CppTranslator__f_importListHdr = null;
@@ -87417,6 +88467,7 @@ function $p_Lio_kaitai_struct_translators_LuaTranslator__decEscapeByteArray__sci
87417
88467
  function $c_Lio_kaitai_struct_translators_LuaTranslator(provider, importList) {
87418
88468
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
87419
88469
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
88470
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
87420
88471
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
87421
88472
  this.Lio_kaitai_struct_translators_LuaTranslator__f_importList = null;
87422
88473
  this.Lio_kaitai_struct_translators_LuaTranslator__f_asciiCharQuoteMap = null;
@@ -87736,6 +88787,7 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.$classData = $d_Lio_kai
87736
88787
  function $c_Lio_kaitai_struct_translators_PHPTranslator(provider, config) {
87737
88788
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
87738
88789
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
88790
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
87739
88791
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
87740
88792
  this.Lio_kaitai_struct_translators_PHPTranslator__f_asciiCharQuoteMap = null;
87741
88793
  this.Lio_kaitai_struct_translators_PHPTranslator__f_namespaceRef = null;