The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2781 lines
139KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 7 End-User License
  8. Agreement and JUCE Privacy Policy.
  9. End User License Agreement: www.juce.com/juce-7-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. namespace juce
  19. {
  20. // This byte-code is generated from native/java/com/rmsl/juce/ComponentPeerView.java with min sdk version 16
  21. // See juce_core/native/java/README.txt on how to generate this byte-code.
  22. const uint8 javaComponentPeerView[]
  23. {
  24. 0x1f, 0x8b, 0x08, 0x08, 0x02, 0x4b, 0x52, 0x64, 0x00, 0x03, 0x63, 0x6c,
  25. 0x61, 0x73, 0x73, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x78, 0x00, 0xad, 0x7c,
  26. 0x0b, 0x7c, 0x9c, 0x55, 0xb5, 0xef, 0xda, 0xdf, 0x3c, 0x33, 0x79, 0x4d,
  27. 0x26, 0x69, 0x93, 0xa6, 0xaf, 0x49, 0xd2, 0xd2, 0xbc, 0x9a, 0x4c, 0xd3,
  28. 0x67, 0x9a, 0xb4, 0xe4, 0xd1, 0xa6, 0x4d, 0x9a, 0xb4, 0x69, 0x33, 0x4d,
  29. 0x69, 0x52, 0xa5, 0xd3, 0x64, 0xda, 0x0c, 0x9d, 0xcc, 0x4c, 0x67, 0x26,
  30. 0x7d, 0xf0, 0xb2, 0x14, 0x38, 0x54, 0x44, 0x79, 0x6b, 0x91, 0xaa, 0xc8,
  31. 0xe1, 0x51, 0x90, 0x83, 0xa0, 0x15, 0x50, 0xe0, 0x58, 0x39, 0x3c, 0xaa,
  32. 0x70, 0x14, 0x0f, 0xa8, 0xa0, 0xc8, 0x4b, 0x50, 0xae, 0x70, 0x01, 0x05,
  33. 0x15, 0xcf, 0xe5, 0xca, 0xf9, 0xaf, 0xbd, 0xf7, 0x4c, 0xbe, 0x69, 0x52,
  34. 0xc0, 0xfb, 0xbb, 0xc9, 0xef, 0xff, 0xad, 0xb5, 0xd7, 0x5a, 0xfb, 0xbd,
  35. 0xf6, 0xda, 0x7b, 0x7f, 0x93, 0xcc, 0x70, 0x70, 0xbf, 0xcb, 0xb7, 0x70,
  36. 0x31, 0x7d, 0x78, 0xc7, 0xcf, 0x5e, 0x7e, 0x3d, 0x3b, 0xf1, 0xea, 0x7b,
  37. 0x03, 0x3f, 0x78, 0xff, 0xbe, 0xfb, 0x1e, 0xfc, 0xdd, 0x87, 0x17, 0x36,
  38. 0xfc, 0x62, 0xf3, 0x6f, 0x42, 0xd7, 0x1c, 0xed, 0x26, 0x8a, 0x11, 0xd1,
  39. 0xfe, 0xfe, 0x45, 0x1e, 0xd2, 0x3f, 0xcf, 0xad, 0x23, 0x1a, 0x11, 0x4a,
  40. 0xde, 0x01, 0xb8, 0xed, 0x44, 0x21, 0xd0, 0x4a, 0x07, 0x51, 0x05, 0x68,
  41. 0x51, 0x0e, 0xd1, 0xd3, 0xa0, 0xb5, 0xb9, 0x44, 0x10, 0xd1, 0x5d, 0x85,
  42. 0xb0, 0x59, 0x46, 0x74, 0x45, 0x11, 0xca, 0xa9, 0x23, 0x3a, 0x17, 0xb8,
  43. 0x00, 0x38, 0x08, 0x5c, 0x0c, 0xfc, 0x0b, 0x70, 0x39, 0xf0, 0x45, 0xe0,
  44. 0x7a, 0xe0, 0x06, 0xe0, 0x1b, 0xc0, 0xed, 0xc0, 0x7d, 0xc0, 0x4f, 0x81,
  45. 0x5f, 0x03, 0xbf, 0x05, 0x5e, 0x01, 0x5e, 0x03, 0xde, 0x00, 0xde, 0x02,
  46. 0xfe, 0x04, 0xfc, 0x05, 0xf8, 0x6f, 0xe0, 0x1f, 0x80, 0xa8, 0x27, 0xb2,
  47. 0x01, 0x59, 0x40, 0x25, 0xd0, 0x0a, 0xac, 0x02, 0xd6, 0x02, 0x3d, 0xc0,
  48. 0x46, 0x60, 0x0b, 0x30, 0x08, 0x6c, 0x07, 0x82, 0xc0, 0x39, 0xc0, 0x21,
  49. 0xe0, 0x01, 0xe0, 0x19, 0xe0, 0x6d, 0xce, 0xef, 0x23, 0xaa, 0x02, 0x3a,
  50. 0x81, 0x24, 0xf0, 0x25, 0xe0, 0x18, 0xf0, 0x23, 0xe0, 0xb7, 0xc0, 0x9f,
  51. 0x01, 0xe7, 0x02, 0xa2, 0x32, 0xa0, 0x09, 0xd8, 0x02, 0xec, 0x01, 0x8e,
  52. 0x00, 0xc7, 0x81, 0x1f, 0x03, 0x2f, 0x02, 0xae, 0x06, 0xb4, 0x03, 0x68,
  53. 0x05, 0x3e, 0x03, 0x1c, 0x06, 0xbe, 0x06, 0xdc, 0x0f, 0xbc, 0x03, 0xb8,
  54. 0x17, 0x12, 0xb5, 0x03, 0xfb, 0x80, 0x6f, 0x03, 0x2f, 0x01, 0xf6, 0x45,
  55. 0x44, 0x0d, 0x40, 0x00, 0xb8, 0x06, 0x38, 0x01, 0x88, 0xc5, 0x68, 0x0b,
  56. 0x70, 0x09, 0x70, 0x3f, 0xf0, 0x6b, 0xe0, 0x1f, 0xc0, 0xac, 0x25, 0x28,
  57. 0x1b, 0xd8, 0x0e, 0x9c, 0x0b, 0x7c, 0x11, 0xb8, 0x17, 0xf8, 0x15, 0xf0,
  58. 0x16, 0x90, 0xbf, 0x14, 0x73, 0x02, 0xb4, 0x01, 0xfd, 0xc0, 0xa5, 0xc0,
  59. 0x37, 0x81, 0x07, 0x80, 0x9f, 0x00, 0x2f, 0x00, 0xaf, 0x03, 0x6f, 0x02,
  60. 0x1f, 0x02, 0x2e, 0xcc, 0x53, 0x2e, 0x50, 0x00, 0x4c, 0x05, 0x66, 0x00,
  61. 0x15, 0xc0, 0x3c, 0xa0, 0x1e, 0x58, 0x0c, 0x34, 0x03, 0xad, 0x40, 0x07,
  62. 0xd0, 0x0d, 0x6c, 0x04, 0x36, 0x03, 0x03, 0xc0, 0x76, 0x60, 0x17, 0x10,
  63. 0x06, 0xf6, 0x00, 0xfb, 0x81, 0x8b, 0x80, 0xcb, 0x78, 0xfe, 0x81, 0x6b,
  64. 0x80, 0x23, 0xc0, 0x51, 0xe0, 0x16, 0xe0, 0x76, 0xe0, 0x2e, 0xe0, 0x3b,
  65. 0xc0, 0xfd, 0xc0, 0x83, 0xc0, 0x23, 0xc0, 0x49, 0xe0, 0x29, 0xe0, 0xe7,
  66. 0xc0, 0xf3, 0xc0, 0xcb, 0xc0, 0x6b, 0xc0, 0x1b, 0xc0, 0x5b, 0x00, 0x35,
  67. 0x12, 0x4d, 0x01, 0xca, 0x80, 0xf9, 0xc0, 0x72, 0x60, 0x0d, 0xe0, 0x07,
  68. 0x02, 0x40, 0x04, 0x38, 0x0f, 0x38, 0x0c, 0x5c, 0x0f, 0xdc, 0x0c, 0x7c,
  69. 0x1b, 0x78, 0x10, 0x78, 0x02, 0x78, 0x06, 0x78, 0x09, 0x78, 0x13, 0xf8,
  70. 0x1b, 0x60, 0x59, 0x8e, 0xb1, 0x02, 0x66, 0x00, 0x35, 0x40, 0x2b, 0xb0,
  71. 0x1e, 0xe8, 0x03, 0x22, 0xc0, 0x41, 0xe0, 0x5a, 0xe0, 0x36, 0xe0, 0x6e,
  72. 0xe0, 0x3e, 0xe0, 0x24, 0xf0, 0x2b, 0xe0, 0x45, 0xe0, 0x1d, 0xc0, 0xd9,
  73. 0x84, 0x36, 0x01, 0x73, 0x81, 0x45, 0x40, 0x17, 0xb0, 0x0b, 0x88, 0x01,
  74. 0xe7, 0x02, 0x97, 0x00, 0xb7, 0x01, 0xf7, 0x02, 0x8f, 0x03, 0xcf, 0x02,
  75. 0x7f, 0x02, 0xf2, 0x9b, 0x89, 0x4a, 0x81, 0x1a, 0xa0, 0x0d, 0xf0, 0x03,
  76. 0xe7, 0x00, 0x07, 0x80, 0x8b, 0x81, 0x23, 0xc0, 0xb7, 0x81, 0x07, 0x81,
  77. 0x93, 0xc0, 0x2f, 0x81, 0x3f, 0x01, 0x85, 0x2b, 0x30, 0xff, 0x40, 0x23,
  78. 0xb0, 0x09, 0xd8, 0x05, 0x5c, 0x08, 0xdc, 0x06, 0x7c, 0x17, 0x78, 0x14,
  79. 0x78, 0x1e, 0xf8, 0x03, 0xf0, 0x67, 0xc0, 0xb2, 0x12, 0xf3, 0x0a, 0x94,
  80. 0x02, 0x15, 0x80, 0x0f, 0x68, 0x05, 0xfc, 0xc0, 0x4e, 0x60, 0x2f, 0x70,
  81. 0x18, 0xf8, 0x1a, 0xf0, 0x6f, 0xc0, 0x23, 0xc0, 0xcf, 0x81, 0x57, 0x80,
  82. 0x8f, 0x00, 0xdb, 0x99, 0x44, 0xd9, 0xc0, 0x5c, 0x60, 0x09, 0xb0, 0x16,
  83. 0x18, 0x00, 0x42, 0xc0, 0x7e, 0xe0, 0x52, 0xe0, 0x46, 0xe0, 0x2e, 0xe0,
  84. 0x61, 0xe0, 0x29, 0xe0, 0x79, 0xe0, 0x6d, 0xe0, 0x43, 0x60, 0x4a, 0x0b,
  85. 0xd1, 0x6c, 0x60, 0x2e, 0xb0, 0x00, 0x68, 0x03, 0x36, 0x02, 0x3b, 0x80,
  86. 0x51, 0xe0, 0x3c, 0xe0, 0x4b, 0xc0, 0x11, 0xe0, 0x26, 0xe0, 0x2e, 0xe0,
  87. 0x3e, 0xe0, 0xc7, 0xc0, 0x6b, 0xc0, 0x3b, 0x80, 0xb3, 0x95, 0xa8, 0x18,
  88. 0x98, 0x05, 0x9c, 0x01, 0xd4, 0x02, 0xcb, 0x81, 0x36, 0xa0, 0x1f, 0x08,
  89. 0x01, 0x17, 0x02, 0x57, 0x01, 0xff, 0x0a, 0x9c, 0x00, 0x9e, 0x01, 0x7e,
  90. 0x0f, 0x7c, 0x04, 0x38, 0xda, 0xe0, 0xd7, 0xc0, 0x19, 0xc0, 0x22, 0xe0,
  91. 0x4c, 0x60, 0x3d, 0xb0, 0x05, 0x08, 0x00, 0x31, 0xe0, 0x02, 0xe0, 0x0a,
  92. 0xe0, 0x46, 0xe0, 0x4e, 0xe0, 0x01, 0xe0, 0x04, 0xf0, 0x04, 0xf0, 0x4b,
  93. 0xe0, 0x2f, 0x80, 0xb3, 0x1d, 0x63, 0x09, 0x2c, 0x06, 0xfa, 0x80, 0xb3,
  94. 0x81, 0x51, 0x20, 0x0e, 0x1c, 0x02, 0xae, 0x02, 0xee, 0x00, 0x7e, 0x08,
  95. 0x3c, 0x0b, 0xbc, 0x0a, 0x7c, 0x08, 0xb8, 0x56, 0x61, 0xde, 0x80, 0x6a,
  96. 0x60, 0x0d, 0xb0, 0x1d, 0x18, 0x05, 0xce, 0x07, 0x0e, 0x03, 0x47, 0x80,
  97. 0xdb, 0x80, 0xef, 0x01, 0x8f, 0x01, 0xcf, 0x02, 0xaf, 0x00, 0x6f, 0x01,
  98. 0xef, 0x03, 0x53, 0x56, 0xa3, 0xbf, 0xc0, 0x30, 0x70, 0x05, 0x70, 0x17,
  99. 0xf0, 0x24, 0xf0, 0x16, 0x90, 0x87, 0x60, 0xec, 0x03, 0x36, 0x03, 0x17,
  100. 0x00, 0x97, 0x02, 0x5f, 0x04, 0xbe, 0x02, 0x1c, 0x05, 0x7e, 0x08, 0xfc,
  101. 0x11, 0x70, 0xad, 0xc1, 0x9a, 0x01, 0x16, 0x01, 0x2b, 0x80, 0x76, 0xc0,
  102. 0x0f, 0xec, 0x04, 0xf2, 0x38, 0x9e, 0x03, 0xc5, 0xc0, 0x5c, 0xe0, 0x0c,
  103. 0x60, 0x1e, 0xc7, 0x76, 0xa0, 0x0a, 0xa8, 0x06, 0x6a, 0x38, 0xb6, 0x03,
  104. 0xf3, 0x01, 0x84, 0x5c, 0x42, 0xb8, 0x24, 0x84, 0x43, 0x42, 0xb8, 0x23,
  105. 0x84, 0x34, 0x42, 0x08, 0x23, 0x84, 0x2c, 0x42, 0x78, 0x22, 0x84, 0x20,
  106. 0x42, 0x58, 0x21, 0xbd, 0x64, 0x09, 0xee, 0x4e, 0x70, 0x5d, 0x82, 0x3b,
  107. 0x12, 0x5c, 0x8a, 0xe0, 0x16, 0x84, 0x69, 0x25, 0x4c, 0x0d, 0x61, 0x58,
  108. 0x09, 0x43, 0x44, 0xe8, 0x26, 0xad, 0xd6, 0x7b, 0x0b, 0x9a, 0x44, 0x6b,
  109. 0x81, 0x4e, 0xa0, 0x0b, 0xc0, 0xd6, 0x43, 0xd8, 0x92, 0xa8, 0x07, 0x58,
  110. 0x0f, 0x6c, 0x00, 0x7a, 0x81, 0x8d, 0xc0, 0x26, 0xa0, 0x0f, 0xf0, 0x03,
  111. 0x9b, 0x81, 0x7e, 0x60, 0x0b, 0x70, 0x16, 0xb0, 0x15, 0x18, 0x00, 0x06,
  112. 0x81, 0x6d, 0xc0, 0x67, 0x80, 0xcf, 0x02, 0x67, 0x03, 0xdb, 0x81, 0x00,
  113. 0xb0, 0x03, 0x18, 0x01, 0x2e, 0x06, 0xae, 0x04, 0xae, 0x02, 0xae, 0x06,
  114. 0xae, 0x21, 0x35, 0x2e, 0xa9, 0x9f, 0x7c, 0x4d, 0x73, 0x6a, 0xd5, 0x58,
  115. 0x09, 0x9d, 0xf6, 0x68, 0x9e, 0xe5, 0x85, 0x9a, 0x2f, 0x02, 0x5f, 0xa4,
  116. 0xf9, 0x19, 0xe0, 0xa7, 0x68, 0x7e, 0x0e, 0xf8, 0xa9, 0x9a, 0xaf, 0x35,
  117. 0xf1, 0x8b, 0x4c, 0x7c, 0x73, 0xad, 0x9a, 0x07, 0x43, 0x97, 0x5f, 0xa2,
  118. 0x79, 0x2e, 0x67, 0x9a, 0xe6, 0x57, 0x81, 0x9f, 0x01, 0x6a, 0xd7, 0x36,
  119. 0x65, 0x80, 0x93, 0xc7, 0x48, 0xcb, 0xdd, 0x5a, 0xce, 0x7c, 0x81, 0x89,
  120. 0x9f, 0x66, 0xe2, 0x67, 0x9a, 0x78, 0xaf, 0xe6, 0x59, 0x56, 0xae, 0xfb,
  121. 0x52, 0xae, 0x79, 0xbf, 0x2e, 0xb3, 0xc2, 0x54, 0x17, 0xfb, 0xc7, 0x36,
  122. 0x2d, 0x9f, 0xa7, 0xe5, 0xb3, 0x49, 0xf9, 0x06, 0xb7, 0x93, 0x6d, 0xd8,
  123. 0x47, 0x86, 0xc1, 0xcf, 0x22, 0xe5, 0x1b, 0x45, 0xda, 0x7e, 0x91, 0xa9,
  124. 0xae, 0xa5, 0xba, 0xae, 0xd9, 0x9a, 0xe7, 0xbc, 0x15, 0x9a, 0x0f, 0x83,
  125. 0x9f, 0x43, 0xca, 0x7f, 0x92, 0xba, 0x4c, 0xe6, 0xcf, 0xd7, 0xe5, 0x34,
  126. 0xe9, 0x72, 0x66, 0x69, 0x9e, 0xcb, 0xf7, 0x6a, 0xfe, 0x12, 0x9d, 0x97,
  127. 0xfd, 0xed, 0x2a, 0x9d, 0x97, 0x7d, 0xee, 0x88, 0xee, 0x17, 0xf3, 0x37,
  128. 0xd5, 0xaa, 0x79, 0x6f, 0xd1, 0xe5, 0x84, 0x34, 0xcf, 0xed, 0x39, 0x47,
  129. 0xf3, 0x5c, 0xe6, 0x6e, 0xcd, 0x1f, 0x03, 0x1f, 0xd6, 0xfc, 0x71, 0xf0,
  130. 0xa3, 0x9a, 0xe7, 0x36, 0x47, 0x34, 0x7f, 0x02, 0x7c, 0x54, 0xf3, 0xdc,
  131. 0x86, 0x98, 0xe6, 0x9f, 0x06, 0xbf, 0x47, 0xf3, 0x2f, 0x80, 0x4f, 0x68,
  132. 0xfe, 0x35, 0xf0, 0x71, 0xcd, 0xbf, 0x6b, 0xe2, 0x3f, 0x00, 0x9f, 0x4c,
  133. 0xb5, 0x0d, 0x83, 0x3a, 0xa6, 0x79, 0x27, 0xf8, 0x73, 0x35, 0xef, 0x36,
  134. 0xc9, 0x4b, 0x4c, 0xbc, 0x17, 0xfc, 0xe7, 0x34, 0x5f, 0x69, 0x92, 0x2f,
  135. 0x32, 0xf1, 0xcd, 0x26, 0x7e, 0x95, 0x89, 0xe7, 0xf1, 0x49, 0x95, 0xdf,
  136. 0x0d, 0xf9, 0x3e, 0xcd, 0xfb, 0xc1, 0x9f, 0xa7, 0xf9, 0xed, 0xe0, 0xcf,
  137. 0xd7, 0x7c, 0xd8, 0x94, 0xf7, 0x7c, 0x13, 0x7f, 0x89, 0x89, 0xbf, 0x02,
  138. 0xfc, 0xde, 0x54, 0x39, 0x28, 0xff, 0x42, 0xcd, 0x5f, 0x67, 0xb2, 0xf9,
  139. 0xa0, 0x66, 0x9c, 0x67, 0x9f, 0x39, 0x90, 0x2a, 0x1f, 0xfc, 0x05, 0x9a,
  140. 0x3f, 0x6a, 0xea, 0xfb, 0x31, 0xf0, 0x07, 0x35, 0x7f, 0x8f, 0xb9, 0x5f,
  141. 0xb0, 0xdf, 0xaf, 0xf9, 0x87, 0x4c, 0xf2, 0x93, 0xf3, 0xc7, 0xe5, 0x4f,
  142. 0x9b, 0xca, 0x79, 0xc1, 0xdc, 0xfe, 0xda, 0x71, 0xfe, 0x35, 0xc8, 0x2f,
  143. 0xd2, 0xfc, 0x5b, 0xe0, 0x0f, 0x69, 0xfe, 0x7d, 0x93, 0xbd, 0xb5, 0x6e,
  144. 0x9c, 0xcf, 0xa9, 0x53, 0xf1, 0x83, 0xe3, 0x19, 0xff, 0x5c, 0xa2, 0x79,
  145. 0xf6, 0x9f, 0x4b, 0x53, 0x7c, 0xdd, 0x38, 0xef, 0xe5, 0xf3, 0xaf, 0xe6,
  146. 0x6b, 0xc1, 0x5f, 0xa6, 0x79, 0xf6, 0xa5, 0xc3, 0x9a, 0x5f, 0x04, 0xf9,
  147. 0xe7, 0x35, 0xdf, 0x02, 0xfe, 0x0b, 0x9a, 0xef, 0xe6, 0x73, 0xb3, 0xe6,
  148. 0xfd, 0x26, 0x39, 0x8f, 0xed, 0x15, 0x9a, 0xdf, 0xc6, 0xe7, 0x6a, 0xcd,
  149. 0x87, 0x4d, 0xf6, 0x3c, 0x0e, 0x29, 0x9e, 0xfb, 0xfb, 0x25, 0xcd, 0x73,
  150. 0x1f, 0x73, 0x11, 0x7d, 0xee, 0x21, 0x45, 0x3f, 0x23, 0x38, 0xf6, 0x09,
  151. 0x1a, 0x26, 0xde, 0x0f, 0x16, 0xd2, 0x9d, 0x9a, 0x7e, 0x24, 0xa9, 0x20,
  152. 0x21, 0x14, 0x35, 0x34, 0xb5, 0x68, 0x6a, 0xd5, 0xd4, 0x26, 0x94, 0x7d,
  153. 0x81, 0xe0, 0x3d, 0xa4, 0x89, 0x7e, 0x40, 0x4c, 0x0b, 0xe8, 0x61, 0x49,
  154. 0xe7, 0xd3, 0x7a, 0x29, 0xaf, 0xa3, 0x61, 0xc1, 0xfb, 0x4b, 0x01, 0xdd,
  155. 0x4b, 0x4c, 0x2b, 0xe9, 0xbb, 0x92, 0x2a, 0x7d, 0x95, 0xd6, 0x57, 0x83,
  156. 0x0e, 0x68, 0xca, 0xe9, 0x1a, 0xb4, 0xd8, 0x2d, 0x69, 0x2d, 0x0d, 0x0a,
  157. 0xde, 0x93, 0x94, 0xbe, 0x56, 0xeb, 0x6b, 0xa1, 0xd9, 0x29, 0x78, 0xd9,
  158. 0x18, 0x32, 0xa0, 0xd6, 0x61, 0xf5, 0xdf, 0x41, 0x4c, 0xab, 0xe8, 0x3b,
  159. 0x92, 0xa6, 0xe4, 0xb5, 0x94, 0x2f, 0x69, 0x35, 0x15, 0x49, 0xda, 0x4a,
  160. 0xf3, 0x25, 0xcd, 0xa6, 0x3a, 0xc1, 0x31, 0x68, 0x11, 0x05, 0x61, 0x6f,
  161. 0xc3, 0x2e, 0xb6, 0x50, 0x70, 0xac, 0xcd, 0xa5, 0x27, 0x88, 0x69, 0x19,
  162. 0xbd, 0x0e, 0x9a, 0x85, 0xf6, 0x3a, 0x24, 0xdd, 0x42, 0x4b, 0xa1, 0x77,
  163. 0x61, 0x87, 0xe3, 0x74, 0xb6, 0x96, 0x67, 0x63, 0x04, 0x97, 0x09, 0x1e,
  164. 0x4f, 0x95, 0x2e, 0x40, 0xbd, 0x1e, 0xc1, 0xb4, 0x97, 0x16, 0x4b, 0xba,
  165. 0x91, 0x5a, 0x04, 0xef, 0x1f, 0x59, 0xf4, 0x3b, 0x52, 0xf4, 0x35, 0x49,
  166. 0x5b, 0xe8, 0x4c, 0xc1, 0x7b, 0xc6, 0x7a, 0x99, 0xaf, 0x18, 0x3b, 0x1c,
  167. 0xd3, 0x69, 0xc8, 0xf1, 0xbc, 0xa4, 0xed, 0xb4, 0x00, 0xfa, 0x52, 0xb4,
  168. 0x9b, 0xe5, 0xa5, 0x28, 0xf7, 0x31, 0x49, 0xcb, 0xe9, 0x27, 0x3a, 0xfd,
  169. 0x82, 0xa6, 0xff, 0x0b, 0x74, 0xba, 0xd6, 0x33, 0x7d, 0x5c, 0x52, 0x97,
  170. 0xbc, 0xa7, 0x71, 0xfa, 0x45, 0x49, 0x2d, 0xf4, 0x92, 0xa4, 0x38, 0x6f,
  171. 0x6b, 0xfa, 0x8a, 0xa4, 0x82, 0xde, 0xd6, 0xf4, 0x1d, 0xe2, 0x78, 0x6d,
  172. 0xd0, 0x33, 0x92, 0xae, 0xa0, 0xff, 0x4d, 0x1c, 0x77, 0x1b, 0x65, 0xfd,
  173. 0xb3, 0xb0, 0xab, 0x56, 0x08, 0xa6, 0xdb, 0x68, 0x8e, 0xa4, 0xb5, 0x34,
  174. 0x4f, 0x70, 0x2c, 0x5e, 0x4b, 0x77, 0x91, 0xa2, 0x8b, 0x04, 0xc7, 0xe0,
  175. 0xad, 0x94, 0x2b, 0x38, 0xfe, 0x76, 0xc8, 0x7c, 0xe5, 0xe8, 0xe1, 0x14,
  176. 0x99, 0xae, 0xa4, 0x06, 0xc1, 0x71, 0x5f, 0x8d, 0xd3, 0x1c, 0xec, 0xfe,
  177. 0x8a, 0x56, 0xd2, 0xf7, 0x24, 0x75, 0xd2, 0x53, 0x9a, 0xfe, 0xa7, 0xa4,
  178. 0x6e, 0xfa, 0x19, 0xf1, 0xbe, 0x13, 0xa0, 0x7f, 0x48, 0xba, 0x9a, 0x96,
  179. 0x08, 0xa6, 0x43, 0xd4, 0x29, 0xfd, 0x6a, 0x9d, 0xcc, 0x5f, 0x89, 0x93,
  180. 0xc6, 0xbf, 0x49, 0xba, 0x81, 0xbe, 0x2d, 0xe9, 0x19, 0xf4, 0x86, 0xa4,
  181. 0xad, 0x54, 0x29, 0xed, 0xda, 0xa8, 0x4a, 0xa8, 0x74, 0xb5, 0x50, 0x76,
  182. 0x35, 0x92, 0x9e, 0x49, 0x9f, 0xd5, 0xf4, 0x6c, 0x4d, 0xb7, 0x6b, 0x1a,
  183. 0x90, 0x7e, 0xd9, 0x23, 0xcb, 0xaf, 0xd2, 0xed, 0xab, 0x42, 0xbf, 0x7e,
  184. 0x24, 0xa9, 0x6a, 0x57, 0x15, 0x76, 0x95, 0x66, 0xe9, 0xaf, 0xdd, 0xd2,
  185. 0x0e, 0xde, 0x45, 0x0f, 0x4a, 0x3a, 0x8f, 0x7e, 0xa8, 0xd3, 0x27, 0x24,
  186. 0x1d, 0xa4, 0x7a, 0xe9, 0xc7, 0x9d, 0xd2, 0xae, 0x06, 0xe5, 0x95, 0x49,
  187. 0xff, 0x55, 0xf9, 0x6a, 0x21, 0xff, 0xb2, 0xa6, 0x5f, 0x91, 0xb4, 0x94,
  188. 0x8e, 0x48, 0x5a, 0x49, 0x5d, 0x42, 0xd1, 0x75, 0xd2, 0xcf, 0xe7, 0x4b,
  189. 0x7b, 0xf6, 0xf7, 0x93, 0x92, 0x3a, 0xe8, 0xc7, 0x3a, 0xfd, 0xac, 0xa6,
  190. 0xbf, 0xd0, 0xf4, 0xd7, 0x92, 0x56, 0xd0, 0xef, 0x75, 0xfa, 0x0f, 0x92,
  191. 0xf6, 0x91, 0x43, 0x96, 0xb3, 0x95, 0x72, 0x24, 0xad, 0xa6, 0x26, 0x49,
  192. 0xfd, 0xd4, 0x2e, 0xd7, 0xc3, 0x72, 0x59, 0x7e, 0x1d, 0x4e, 0x4e, 0xd7,
  193. 0x4a, 0x6a, 0xa3, 0xeb, 0x24, 0x5d, 0x44, 0xd7, 0x4b, 0x9a, 0x43, 0x37,
  194. 0x48, 0xda, 0x45, 0x5f, 0x95, 0x34, 0x48, 0x37, 0x4a, 0x3a, 0x9b, 0x8e,
  195. 0x6a, 0xfa, 0x35, 0x49, 0x87, 0xe9, 0xeb, 0x3a, 0xff, 0x37, 0x24, 0xad,
  196. 0xa7, 0x9b, 0x24, 0x9d, 0x43, 0xdf, 0x94, 0x74, 0x21, 0xdd, 0xac, 0xf5,
  197. 0xff, 0xaa, 0xe9, 0x2d, 0x92, 0xda, 0xe9, 0x56, 0x9d, 0xbe, 0x4d, 0xd2,
  198. 0x4a, 0xba, 0x5b, 0xd3, 0xe3, 0x9a, 0xde, 0x27, 0xe9, 0x00, 0x7d, 0x5f,
  199. 0xd2, 0xf9, 0xf4, 0x90, 0xa4, 0x8b, 0xe9, 0x11, 0x49, 0x67, 0xd1, 0x7f,
  200. 0x48, 0x3a, 0x95, 0x1e, 0x95, 0x34, 0x97, 0x7e, 0x2a, 0xe9, 0x34, 0xfa,
  201. 0x39, 0xa9, 0xf5, 0xfe, 0x5f, 0x3a, 0x2e, 0x3c, 0xa3, 0xed, 0x7f, 0x29,
  202. 0x69, 0x09, 0xfd, 0x4a, 0x52, 0x0b, 0x3d, 0x27, 0xe9, 0x59, 0xf4, 0x1b,
  203. 0x49, 0x3d, 0xf4, 0xaa, 0xa4, 0x85, 0xf4, 0x47, 0x9d, 0xef, 0x4d, 0x49,
  204. 0xf3, 0xe9, 0x2d, 0x49, 0xd5, 0xfa, 0xa8, 0xc3, 0xef, 0xbb, 0xba, 0x3d,
  205. 0x7f, 0xd2, 0xf4, 0xcf, 0x9a, 0xbe, 0x27, 0xe9, 0x02, 0x7a, 0x5f, 0x52,
  206. 0x1f, 0xfd, 0x45, 0x8f, 0xc7, 0x5f, 0xb5, 0xfe, 0x6f, 0x3a, 0xff, 0x07,
  207. 0x9a, 0xfe, 0x5d, 0xd3, 0xff, 0x96, 0xb4, 0x81, 0xfe, 0x8f, 0xa4, 0x67,
  208. 0xd3, 0x87, 0xba, 0xff, 0xff, 0x57, 0xd2, 0xad, 0x94, 0x2d, 0x14, 0xcd,
  209. 0x93, 0x74, 0x29, 0x15, 0x4b, 0xba, 0x84, 0x4a, 0x34, 0x9d, 0xa6, 0x69,
  210. 0xa9, 0xd6, 0x4f, 0xd7, 0xe9, 0x19, 0x9a, 0xce, 0x94, 0xb4, 0x98, 0x66,
  211. 0x49, 0xda, 0x44, 0xb3, 0x25, 0x5d, 0x43, 0x5e, 0x49, 0x77, 0x50, 0xb9,
  212. 0xa4, 0x6a, 0xbd, 0xd7, 0xe9, 0xf5, 0xce, 0xe9, 0xb9, 0x92, 0xf6, 0xd3,
  213. 0x19, 0x3a, 0xae, 0xce, 0xd3, 0xf6, 0xb5, 0x92, 0x6e, 0x27, 0x9f, 0xa4,
  214. 0x9b, 0xa9, 0x51, 0xd3, 0xe5, 0x92, 0xae, 0xa2, 0x95, 0x42, 0xc5, 0xe5,
  215. 0x36, 0x49, 0xfb, 0x68, 0x95, 0x4e, 0xaf, 0xd6, 0x76, 0x1d, 0x9a, 0xae,
  216. 0x91, 0xb4, 0x86, 0xd6, 0x0a, 0xe5, 0x07, 0x1b, 0x84, 0xf2, 0x8b, 0x5e,
  217. 0x9d, 0xde, 0xa8, 0xe9, 0x26, 0x4d, 0xfb, 0x84, 0xf2, 0x2b, 0xbf, 0x4e,
  218. 0x6f, 0x16, 0xca, 0xbf, 0xfa, 0x85, 0xf2, 0xe3, 0x2d, 0x42, 0x8d, 0xf7,
  219. 0x59, 0x42, 0xf9, 0xf1, 0x56, 0xa1, 0xc6, 0x3d, 0x28, 0xf8, 0xac, 0x3a,
  220. 0x9d, 0xba, 0x25, 0x2d, 0xa7, 0x6d, 0x82, 0xcf, 0xab, 0x73, 0xe9, 0xb7,
  221. 0xc4, 0x74, 0x27, 0xb9, 0xe4, 0xbe, 0x60, 0x90, 0x53, 0xd2, 0x99, 0x34,
  222. 0x24, 0xf8, 0x4c, 0xaa, 0xe2, 0x56, 0x23, 0x4e, 0xa5, 0x4f, 0x4a, 0xaa,
  223. 0xf2, 0x35, 0xc1, 0x6f, 0xee, 0x27, 0xa6, 0x56, 0x7a, 0x40, 0xd2, 0x5d,
  224. 0xf4, 0xef, 0x92, 0xaa, 0x7d, 0x80, 0xe5, 0x53, 0x25, 0xad, 0xa0, 0x1e,
  225. 0xc1, 0x67, 0x55, 0x2f, 0x65, 0x09, 0xbe, 0x1f, 0xa9, 0xf2, 0x56, 0xa2,
  226. 0xbe, 0x6f, 0x91, 0xba, 0x83, 0xb9, 0x49, 0x9d, 0x7d, 0xdf, 0xc5, 0x39,
  227. 0x29, 0x07, 0x74, 0x2d, 0x2e, 0x44, 0xe7, 0xf3, 0x05, 0x89, 0xd4, 0xfd,
  228. 0xcc, 0x4d, 0xea, 0xbc, 0xcb, 0x3f, 0xac, 0xdf, 0x0e, 0xfd, 0x0f, 0xb4,
  229. 0xbe, 0x5a, 0xeb, 0x2b, 0x4c, 0xfa, 0x18, 0xf4, 0xcf, 0x6a, 0x7d, 0x8d,
  230. 0x96, 0x73, 0xf9, 0x1f, 0xe8, 0xf2, 0x0f, 0x43, 0xff, 0x9e, 0xd6, 0xd7,
  231. 0x9a, 0xea, 0x4f, 0xe5, 0x3f, 0x02, 0xbd, 0xbd, 0x53, 0xa5, 0xf9, 0xcc,
  232. 0x2f, 0x4e, 0xd1, 0x1f, 0x83, 0xbe, 0x4e, 0xeb, 0xf9, 0x1e, 0xc0, 0x77,
  233. 0x90, 0x59, 0xba, 0x30, 0xd6, 0x9f, 0x80, 0x7e, 0xa7, 0xd6, 0xdb, 0xf9,
  234. 0xfc, 0x00, 0x9a, 0xac, 0x52, 0xf7, 0xc8, 0x3d, 0xee, 0x05, 0x98, 0x31,
  235. 0x17, 0xa8, 0x8f, 0xa9, 0x58, 0xce, 0x27, 0x08, 0x61, 0xa1, 0xca, 0x39,
  236. 0x11, 0xf7, 0xe3, 0x90, 0xe4, 0xd8, 0xca, 0x8d, 0x95, 0x14, 0x73, 0xff,
  237. 0x14, 0xe3, 0x58, 0x6e, 0x29, 0x26, 0x8f, 0x35, 0xe2, 0x3b, 0x89, 0x3d,
  238. 0x80, 0x73, 0xfc, 0x87, 0xac, 0x5f, 0xa6, 0x85, 0xcb, 0xc6, 0x69, 0xb6,
  239. 0x8f, 0xf9, 0xdc, 0x64, 0xb1, 0x45, 0xbc, 0x3f, 0x43, 0xf9, 0x05, 0x86,
  240. 0xc7, 0x56, 0x60, 0xb3, 0x62, 0xec, 0xf9, 0x1e, 0x35, 0x52, 0xc5, 0xfb,
  241. 0x33, 0xc6, 0xc3, 0xcd, 0x91, 0x61, 0x50, 0xe4, 0xd1, 0xa0, 0x91, 0x43,
  242. 0x83, 0x96, 0x5c, 0xda, 0xe3, 0x5d, 0x09, 0x6b, 0xbe, 0xff, 0x19, 0xe9,
  243. 0x9b, 0x98, 0xea, 0x27, 0xcb, 0x6c, 0xf8, 0x65, 0xfe, 0xd6, 0x2a, 0xf5,
  244. 0xae, 0x33, 0xee, 0xfe, 0x21, 0xd2, 0x39, 0x62, 0x50, 0x64, 0xa7, 0xf5,
  245. 0x9c, 0xeb, 0xee, 0x2a, 0x75, 0x2f, 0xf3, 0x8b, 0x1c, 0xf2, 0x1b, 0x5c,
  246. 0x6a, 0x0b, 0xf6, 0xc1, 0x3c, 0xe4, 0x71, 0x48, 0xfd, 0xfd, 0xa7, 0xd1,
  247. 0xa7, 0xf2, 0x3f, 0x72, 0x1a, 0x7d, 0x16, 0xf4, 0x3c, 0x66, 0x4f, 0x56,
  248. 0xa9, 0x3b, 0x89, 0xbf, 0x25, 0x87, 0x16, 0xf6, 0x86, 0x40, 0xb3, 0x31,
  249. 0x0f, 0x18, 0xab, 0xa1, 0x7b, 0x46, 0xe2, 0xbe, 0x7f, 0xa7, 0xa0, 0x33,
  250. 0xc7, 0xc6, 0x6d, 0xe3, 0x51, 0x28, 0x75, 0x1a, 0x14, 0xf1, 0xfe, 0x18,
  251. 0x67, 0x50, 0x97, 0xd3, 0x43, 0x8d, 0xce, 0x5c, 0x2a, 0x75, 0x5a, 0xd2,
  252. 0x92, 0x65, 0xe0, 0x2b, 0x2d, 0x1e, 0x67, 0xa5, 0xa5, 0xd0, 0xd9, 0x86,
  253. 0xf8, 0x20, 0xa4, 0x66, 0x0a, 0xc6, 0x7f, 0x99, 0xb0, 0x52, 0xa1, 0x73,
  254. 0x05, 0xf9, 0x5b, 0x73, 0xc9, 0xdf, 0x96, 0x2d, 0x47, 0xd7, 0xb0, 0xbb,
  255. 0x0c, 0x7f, 0x7b, 0x36, 0xdd, 0xb3, 0x97, 0x53, 0x16, 0xbb, 0xcb, 0x1e,
  256. 0xf1, 0x7d, 0x96, 0xca, 0xec, 0xfe, 0x8e, 0x5c, 0x5a, 0xe6, 0xc4, 0x0c,
  257. 0xb8, 0x7f, 0xc2, 0x73, 0xe7, 0x78, 0xce, 0xe1, 0xf8, 0x28, 0xe2, 0x7b,
  258. 0x8a, 0x6c, 0x8e, 0x1c, 0x8c, 0xff, 0x36, 0x44, 0x08, 0xd6, 0xfa, 0x57,
  259. 0xe7, 0x51, 0xb9, 0xbd, 0x94, 0x62, 0xbe, 0x42, 0xb2, 0x3b, 0x23, 0xbe,
  260. 0x9b, 0xe9, 0x52, 0xbb, 0x7f, 0x35, 0xe4, 0x1d, 0xaa, 0x87, 0x41, 0xf2,
  261. 0xd8, 0x06, 0x57, 0x67, 0xcb, 0x71, 0x30, 0x64, 0x3f, 0x2f, 0xac, 0x52,
  262. 0xfe, 0x13, 0x71, 0x6f, 0xc1, 0xcc, 0xb9, 0x40, 0xcf, 0x62, 0x6a, 0x5d,
  263. 0x8e, 0x16, 0x36, 0x59, 0xd1, 0xf2, 0x02, 0xf6, 0x0d, 0x0b, 0x66, 0xc0,
  264. 0x63, 0x44, 0x7c, 0x4f, 0x62, 0x8c, 0x60, 0xc3, 0xd4, 0xea, 0xb2, 0xee,
  265. 0xf1, 0xe5, 0x91, 0xc5, 0x9a, 0x27, 0xe7, 0x91, 0xc7, 0xf4, 0x72, 0x3d,
  266. 0xa6, 0x7b, 0xdc, 0x8d, 0xca, 0x5b, 0xbc, 0x67, 0x63, 0xee, 0xc6, 0xf5,
  267. 0x57, 0xeb, 0x39, 0xdd, 0xe3, 0xc5, 0x39, 0x13, 0xcf, 0x33, 0xf1, 0x54,
  268. 0x73, 0xaa, 0xda, 0x72, 0x83, 0x6e, 0xcb, 0x1e, 0x77, 0x2e, 0xd2, 0xec,
  269. 0x75, 0x39, 0x4c, 0x85, 0x6c, 0x8b, 0x30, 0xb5, 0xc5, 0xc2, 0x6d, 0x39,
  270. 0x89, 0x75, 0xe7, 0x92, 0x63, 0x56, 0x21, 0x5c, 0x16, 0x1e, 0x25, 0xab,
  271. 0x25, 0x4f, 0xfa, 0xbc, 0x0d, 0x65, 0xfc, 0xbd, 0x4a, 0xdd, 0x57, 0xfd,
  272. 0xbd, 0xf9, 0x38, 0x65, 0x5a, 0xb0, 0x4e, 0xfc, 0xbd, 0x05, 0x98, 0xc1,
  273. 0x2c, 0x8a, 0xba, 0x1b, 0x78, 0xd6, 0x68, 0x10, 0x9a, 0x02, 0xf4, 0x97,
  274. 0xdf, 0x60, 0xb8, 0xc8, 0xbf, 0xb1, 0x80, 0xb8, 0xd4, 0x01, 0xf4, 0x30,
  275. 0x07, 0xd1, 0x78, 0x0a, 0xc5, 0xbc, 0xf9, 0x28, 0x6b, 0x70, 0x63, 0xbe,
  276. 0x3c, 0x47, 0xf9, 0xfb, 0x3c, 0xe4, 0xf7, 0x17, 0x50, 0xac, 0x65, 0x09,
  277. 0xf9, 0x5a, 0x07, 0x7b, 0xdd, 0xc8, 0x91, 0x0f, 0xef, 0xcc, 0x82, 0x8d,
  278. 0xcb, 0x52, 0x68, 0xf5, 0x50, 0xdc, 0x9f, 0x4d, 0xa2, 0xc1, 0x2f, 0x4b,
  279. 0xc5, 0x1d, 0x06, 0xbf, 0xdc, 0xa7, 0x57, 0xf5, 0x98, 0xc4, 0x7c, 0x75,
  280. 0xe4, 0x36, 0x06, 0x85, 0x07, 0x6b, 0xa0, 0x00, 0xbd, 0xb6, 0xf0, 0x19,
  281. 0x1f, 0xf2, 0xb7, 0xaa, 0x54, 0x1c, 0xf2, 0x7b, 0xb9, 0x9d, 0x59, 0xe4,
  282. 0x2f, 0x73, 0xe3, 0x6c, 0x6b, 0xa3, 0xb8, 0xd7, 0x85, 0xd1, 0x81, 0x35,
  283. 0xe4, 0x83, 0xde, 0x02, 0x44, 0x7a, 0x83, 0x0a, 0x45, 0x09, 0x2d, 0x72,
  284. 0xbb, 0xd1, 0x83, 0x7a, 0xa4, 0x94, 0x64, 0x36, 0x24, 0x2e, 0xd8, 0x45,
  285. 0xbc, 0x1d, 0x48, 0x57, 0x5a, 0x23, 0xee, 0x55, 0xa0, 0x79, 0xa8, 0xd3,
  286. 0x90, 0xe3, 0x90, 0x57, 0xad, 0xee, 0xfc, 0xfe, 0xed, 0x85, 0x18, 0x4f,
  287. 0xbe, 0x75, 0x64, 0xa3, 0x9f, 0x53, 0xd1, 0xb4, 0x05, 0x70, 0xf4, 0x46,
  288. 0x1b, 0x46, 0xc6, 0x50, 0x25, 0xcd, 0x92, 0x25, 0x95, 0xe3, 0xd7, 0x3f,
  289. 0x54, 0x84, 0xf6, 0x56, 0x93, 0xcf, 0x51, 0xe9, 0xf0, 0x6f, 0x2f, 0xc2,
  290. 0x4c, 0xd5, 0xe0, 0xbe, 0x0d, 0x2f, 0x1a, 0x52, 0x65, 0x58, 0x28, 0xdb,
  291. 0xba, 0xa7, 0x77, 0x27, 0xb5, 0x8f, 0xb9, 0x1c, 0x8d, 0x0e, 0x17, 0x6d,
  292. 0x77, 0x18, 0xb4, 0xb8, 0xd8, 0x86, 0xb1, 0xe4, 0x88, 0x56, 0x60, 0x70,
  293. 0xff, 0x9d, 0x7a, 0x4e, 0xcb, 0xaa, 0x55, 0xec, 0xf9, 0xb8, 0xfa, 0x3d,
  294. 0xee, 0x85, 0x0e, 0xac, 0x80, 0x5d, 0xca, 0xc2, 0x01, 0x8b, 0x3d, 0xbe,
  295. 0x5d, 0x38, 0x39, 0xe5, 0x38, 0x2a, 0xb3, 0x33, 0xa5, 0x23, 0x52, 0xba,
  296. 0xcc, 0x81, 0xb5, 0xe2, 0x7e, 0x04, 0x32, 0x97, 0x23, 0xe2, 0x5d, 0x8b,
  297. 0x3b, 0x70, 0x8e, 0xa3, 0xc0, 0x51, 0x60, 0xb8, 0x30, 0xe6, 0xfc, 0xde,
  298. 0xa6, 0xb6, 0x5a, 0xbd, 0xc7, 0x30, 0xd7, 0x39, 0x15, 0x83, 0xbd, 0x00,
  299. 0xa1, 0xa9, 0xd1, 0x6a, 0x25, 0x8f, 0x23, 0xdf, 0x61, 0xd2, 0x09, 0x91,
  300. 0x10, 0x97, 0x38, 0xae, 0xdf, 0x67, 0xe7, 0xf7, 0x14, 0x2e, 0xe8, 0x2c,
  301. 0x72, 0x76, 0x70, 0xce, 0xaf, 0x56, 0xef, 0x81, 0xca, 0x85, 0x8a, 0x8a,
  302. 0x02, 0xb7, 0xae, 0x94, 0xce, 0x5e, 0xad, 0xe6, 0x75, 0x50, 0x14, 0x42,
  303. 0xc7, 0x91, 0x7a, 0xd0, 0x28, 0xd2, 0xbe, 0xce, 0xfa, 0xc5, 0xd5, 0x7c,
  304. 0x7f, 0x61, 0xfd, 0x54, 0x1d, 0x03, 0x3d, 0x62, 0x1b, 0xbc, 0x2a, 0xcf,
  305. 0x14, 0x97, 0x9b, 0xab, 0xd5, 0x3b, 0xb5, 0x72, 0x44, 0xca, 0x98, 0x5b,
  306. 0x46, 0xa3, 0x8d, 0x53, 0xc9, 0x5f, 0x50, 0x8c, 0xde, 0x1d, 0x92, 0x51,
  307. 0xaf, 0x11, 0xb9, 0xd3, 0x32, 0xef, 0xbf, 0x40, 0x36, 0x6e, 0x71, 0x01,
  308. 0x7b, 0x9e, 0xd8, 0x64, 0xf0, 0x7b, 0x3a, 0x41, 0x95, 0x39, 0x11, 0x6f,
  309. 0x39, 0x68, 0xc4, 0x5d, 0x96, 0x21, 0xbf, 0xd7, 0xb8, 0xb7, 0xac, 0x10,
  310. 0xe7, 0xe2, 0xc5, 0xa2, 0x94, 0x36, 0x6f, 0x9a, 0x42, 0xcb, 0x8c, 0xa9,
  311. 0x18, 0xff, 0x6d, 0xe0, 0xfc, 0x9b, 0x50, 0x52, 0x79, 0x31, 0x3c, 0x7b,
  312. 0x2a, 0x46, 0x62, 0xa3, 0x5c, 0x57, 0x7a, 0x76, 0x2d, 0x7b, 0x7c, 0x41,
  313. 0x6a, 0xb0, 0xb2, 0x7d, 0xa3, 0xe1, 0xc0, 0x1d, 0xcc, 0x46, 0x1e, 0xf7,
  314. 0xb6, 0xde, 0x29, 0xf2, 0xe6, 0x2a, 0x64, 0xbc, 0x1e, 0x40, 0xdb, 0xb9,
  315. 0x0f, 0x7e, 0x9c, 0xe5, 0x78, 0xbe, 0x79, 0x5c, 0xd8, 0x9f, 0x7b, 0xaa,
  316. 0xd5, 0xfb, 0xbc, 0x41, 0x51, 0xac, 0xfb, 0x5d, 0x2e, 0xe0, 0x3d, 0xde,
  317. 0x6e, 0x5e, 0x4b, 0x62, 0x1a, 0x46, 0xa9, 0x44, 0x8e, 0x81, 0xd0, 0x25,
  318. 0x71, 0x39, 0x56, 0xb9, 0x4f, 0x6c, 0x22, 0xd2, 0xe5, 0x67, 0xca, 0xfb,
  319. 0xa4, 0x3c, 0xb5, 0x5e, 0xb6, 0x57, 0xab, 0x7d, 0xce, 0xef, 0x2d, 0x41,
  320. 0x5f, 0x2f, 0x96, 0x71, 0xc6, 0x5f, 0x36, 0x0d, 0xa3, 0x33, 0x4f, 0x46,
  321. 0x93, 0x94, 0x5d, 0xf0, 0xb4, 0x76, 0x95, 0x19, 0x76, 0x47, 0xab, 0x55,
  322. 0x4c, 0xea, 0xf3, 0x96, 0xc2, 0xcf, 0x03, 0xd0, 0xb9, 0x64, 0xfb, 0x53,
  323. 0xfa, 0x58, 0x86, 0x3e, 0x92, 0xd6, 0x5b, 0xb5, 0x7f, 0x8f, 0x99, 0xf5,
  324. 0xbe, 0x18, 0xb9, 0x2d, 0x2e, 0x4b, 0xbe, 0x65, 0x3c, 0xff, 0x79, 0x19,
  325. 0xf9, 0x77, 0x4c, 0x28, 0xff, 0x60, 0x86, 0xfe, 0x9c, 0x09, 0xfa, 0x4b,
  326. 0x33, 0xf4, 0x7b, 0x26, 0xe8, 0xaf, 0xce, 0xd0, 0x47, 0xd3, 0x7a, 0xde,
  327. 0xc5, 0x78, 0xfc, 0x2e, 0x37, 0xeb, 0x5b, 0xc2, 0xe4, 0x6e, 0xcf, 0xb1,
  328. 0x14, 0x58, 0xd4, 0x7c, 0xf1, 0x38, 0x9f, 0xa3, 0x7d, 0x5c, 0xcd, 0xd5,
  329. 0x00, 0xbc, 0x24, 0x2f, 0xdd, 0xb7, 0x2f, 0x6b, 0x9d, 0xea, 0xdb, 0x28,
  330. 0xfa, 0x96, 0x97, 0x2e, 0xf7, 0x9b, 0x66, 0x5d, 0xcb, 0x6e, 0x94, 0x3b,
  331. 0x9e, 0xef, 0x58, 0x46, 0xbe, 0x21, 0x99, 0xcf, 0xd0, 0x7e, 0x83, 0x50,
  332. 0xa2, 0xfc, 0xc6, 0x3d, 0x5b, 0xfa, 0x0d, 0xef, 0xd6, 0x5c, 0x5e, 0x67,
  333. 0x8d, 0x7a, 0xa7, 0xd8, 0xd7, 0x3b, 0x13, 0xb1, 0xe7, 0x3c, 0xb2, 0x61,
  334. 0x5f, 0xe6, 0xb3, 0xf4, 0x60, 0xc0, 0x02, 0x60, 0xcd, 0x1a, 0x5b, 0x77,
  335. 0xd8, 0xc9, 0xf3, 0xde, 0x32, 0xe4, 0xe0, 0xbd, 0x0a, 0x2b, 0xd5, 0x5a,
  336. 0x69, 0x78, 0xde, 0xdf, 0x3a, 0xec, 0x44, 0xdc, 0xb4, 0xcb, 0x7d, 0x0b,
  337. 0x32, 0xcb, 0xd6, 0x21, 0x07, 0xec, 0x5d, 0x7c, 0xff, 0xed, 0xdd, 0x1a,
  338. 0xe0, 0x37, 0x0c, 0xbc, 0xa7, 0xf1, 0xdb, 0x6a, 0x97, 0xd8, 0xe3, 0x3e,
  339. 0xc8, 0x6b, 0x03, 0x25, 0x65, 0x61, 0x97, 0xac, 0x22, 0x4f, 0x41, 0xac,
  340. 0xa5, 0x0d, 0x27, 0xd7, 0xc1, 0xfe, 0x19, 0x54, 0x60, 0x1f, 0x1f, 0xd3,
  341. 0xb9, 0x35, 0xea, 0xec, 0x12, 0x71, 0x9f, 0x8b, 0x34, 0xb7, 0xc3, 0x2e,
  342. 0x22, 0x5e, 0x03, 0x63, 0x9b, 0x83, 0x1b, 0xd7, 0x3c, 0xd9, 0xee, 0xd4,
  343. 0x9e, 0xf6, 0x9b, 0x6a, 0x92, 0x71, 0x76, 0x8f, 0xf7, 0x07, 0xa6, 0xb1,
  344. 0xb7, 0x49, 0xd9, 0xef, 0xb5, 0x2e, 0xe6, 0x3f, 0x46, 0xee, 0x06, 0xa5,
  345. 0xb3, 0xcb, 0x5f, 0xa2, 0xb7, 0xb5, 0x6e, 0xaf, 0xfd, 0x5a, 0xb9, 0xff,
  346. 0xe4, 0xeb, 0x35, 0x94, 0xfa, 0xe1, 0xb2, 0x3d, 0x05, 0xf9, 0x22, 0x35,
  347. 0x6e, 0x0b, 0xf4, 0xb8, 0x6d, 0x76, 0x7b, 0xa5, 0xad, 0xa1, 0xd7, 0xc9,
  348. 0x92, 0x1a, 0xce, 0xcd, 0x6d, 0xbd, 0x84, 0xfb, 0x86, 0x1d, 0x0e, 0x63,
  349. 0xe5, 0xc6, 0xc8, 0xc0, 0x2a, 0x9b, 0xcf, 0xd3, 0xd0, 0x8d, 0xd4, 0xe8,
  350. 0xf7, 0xcd, 0x57, 0x4d, 0x87, 0x5d, 0x95, 0xac, 0x6f, 0x19, 0xee, 0xbc,
  351. 0x7d, 0xd7, 0xcc, 0x44, 0x7a, 0x1a, 0x52, 0x2e, 0xec, 0x1b, 0x33, 0x99,
  352. 0xda, 0x22, 0xee, 0x59, 0x4c, 0xed, 0x11, 0x77, 0x29, 0x68, 0xb6, 0xc3,
  353. 0x71, 0xf5, 0x5e, 0xe7, 0x65, 0x28, 0xd9, 0x53, 0x9a, 0xef, 0xf2, 0xb8,
  354. 0xf2, 0x5d, 0xd9, 0x68, 0x05, 0xb7, 0x3f, 0x5a, 0xa3, 0xe2, 0x7a, 0xdf,
  355. 0xc1, 0x99, 0x99, 0xb1, 0x35, 0x2b, 0x3f, 0x2b, 0xe2, 0x4e, 0xa2, 0x5e,
  356. 0x4f, 0x8b, 0xa7, 0xa0, 0x21, 0x6b, 0x36, 0xee, 0x72, 0x25, 0xd4, 0x90,
  357. 0x35, 0x15, 0x74, 0x1a, 0xa8, 0x87, 0xfa, 0x2e, 0xe6, 0x5a, 0x8b, 0x75,
  358. 0x2d, 0x53, 0x99, 0x3a, 0x1c, 0x87, 0xc4, 0xf5, 0x7b, 0xed, 0x57, 0xa0,
  359. 0xbd, 0xf9, 0x22, 0xea, 0x9b, 0x43, 0x47, 0x5c, 0x2e, 0x59, 0x4e, 0x1c,
  360. 0xe5, 0xe4, 0x8b, 0x5c, 0x1d, 0xd7, 0x2f, 0xaa, 0x51, 0xef, 0x97, 0xfb,
  361. 0xae, 0x9a, 0x79, 0xca, 0x1e, 0x92, 0x6f, 0x34, 0xba, 0x7c, 0x7a, 0x47,
  362. 0x9c, 0x49, 0x8b, 0xdd, 0x3c, 0xe7, 0x45, 0x98, 0x2d, 0xec, 0x8c, 0x15,
  363. 0x0d, 0x3e, 0x9c, 0x1c, 0xca, 0xb6, 0x67, 0x63, 0x8f, 0x9a, 0xce, 0x35,
  364. 0x4f, 0x81, 0x3c, 0x27, 0x7b, 0x59, 0x76, 0x71, 0x9a, 0x8f, 0x78, 0x9f,
  365. 0xc0, 0x59, 0xdd, 0xe5, 0xe8, 0xbb, 0x8e, 0xf5, 0x53, 0x39, 0x9f, 0xd3,
  366. 0x71, 0xad, 0xb8, 0x8d, 0x5b, 0x64, 0x91, 0x3d, 0xcf, 0x37, 0xa2, 0x2d,
  367. 0x73, 0xe9, 0x8e, 0x27, 0x5d, 0x18, 0x01, 0x8e, 0xfb, 0x16, 0x39, 0x77,
  368. 0xd7, 0xd4, 0xa8, 0xcf, 0x25, 0xd8, 0x67, 0x33, 0xc6, 0xc0, 0x9e, 0x6f,
  369. 0xe7, 0x1e, 0xf2, 0xfe, 0x14, 0xdb, 0xf2, 0x45, 0xb2, 0x05, 0x3c, 0x53,
  370. 0xf3, 0xed, 0x6c, 0xab, 0xe6, 0xe3, 0x56, 0xe4, 0xe3, 0xfb, 0xa0, 0xd3,
  371. 0x59, 0x40, 0x4e, 0x1e, 0x11, 0x8c, 0xa1, 0xc7, 0x35, 0x5e, 0x02, 0xfa,
  372. 0xe3, 0x4a, 0x62, 0xaf, 0xf7, 0xa0, 0xfd, 0x49, 0xac, 0x48, 0x0f, 0x65,
  373. 0x67, 0xff, 0x42, 0x7c, 0x44, 0x9e, 0x99, 0xcb, 0xc4, 0x3b, 0xd4, 0xf0,
  374. 0xf3, 0xe7, 0xc8, 0x53, 0xd7, 0xf0, 0xca, 0xd5, 0xe4, 0x69, 0x68, 0x28,
  375. 0xfb, 0x2f, 0xf2, 0x6c, 0x2a, 0xb2, 0xf0, 0xeb, 0xc3, 0x86, 0xb2, 0x35,
  376. 0xe4, 0xd9, 0xd1, 0x50, 0xc6, 0xb9, 0xbf, 0xe7, 0x7b, 0x05, 0xc5, 0x37,
  377. 0xe2, 0xbe, 0xd9, 0x77, 0x11, 0xfa, 0xe4, 0x9d, 0x41, 0x77, 0x60, 0x6d,
  378. 0x24, 0x31, 0x36, 0x28, 0xd3, 0x9a, 0xc4, 0x5e, 0x0f, 0x6a, 0x73, 0xc2,
  379. 0x93, 0xad, 0xf7, 0xed, 0x75, 0xf2, 0x67, 0x32, 0x95, 0xf3, 0x2a, 0x5e,
  380. 0x69, 0x87, 0xe5, 0x45, 0x98, 0xad, 0xbe, 0x43, 0x2a, 0x4f, 0x16, 0xfb,
  381. 0x85, 0x77, 0x36, 0x53, 0xdb, 0x2a, 0xbb, 0x70, 0x1d, 0xda, 0xf9, 0x78,
  382. 0x30, 0xe2, 0xf5, 0x72, 0x1a, 0xf7, 0x49, 0x91, 0x7b, 0xa8, 0xe0, 0x36,
  383. 0x6c, 0x65, 0xb2, 0x94, 0x32, 0xd1, 0x2e, 0xfc, 0x22, 0x98, 0x2a, 0x2d,
  384. 0x3f, 0xf7, 0x9f, 0x6b, 0xc1, 0x95, 0xff, 0x5f, 0x5b, 0x70, 0xa5, 0x6c,
  385. 0xc1, 0xa7, 0xa9, 0x97, 0x3f, 0x91, 0x4a, 0x8a, 0xe9, 0x2c, 0xcb, 0x5f,
  386. 0xfa, 0x52, 0x0d, 0x55, 0xbc, 0xad, 0x5a, 0xf0, 0x06, 0x79, 0xa6, 0x2e,
  387. 0xfe, 0x6b, 0x45, 0xba, 0xed, 0x21, 0x94, 0xc1, 0xed, 0x08, 0x71, 0xbd,
  388. 0xd6, 0x3c, 0xd7, 0xa1, 0x55, 0x8f, 0x5b, 0xb9, 0x1d, 0x32, 0x6d, 0xcb,
  389. 0xcb, 0x3d, 0xb4, 0xf9, 0x71, 0x59, 0xa6, 0xe1, 0xb6, 0xa7, 0xcb, 0x7d,
  390. 0xce, 0xee, 0x16, 0x95, 0x2f, 0x7e, 0xba, 0x76, 0x5c, 0xfd, 0xa9, 0x5b,
  391. 0xac, 0xfa, 0xc6, 0x71, 0x44, 0x45, 0x8b, 0x7f, 0x54, 0xab, 0xcf, 0xc9,
  392. 0x62, 0xbe, 0xf3, 0xa9, 0xdd, 0x96, 0x6d, 0xe5, 0xcf, 0xba, 0x16, 0x18,
  393. 0x56, 0xec, 0xf3, 0x4e, 0xac, 0xf9, 0xf9, 0x90, 0xfb, 0xa9, 0xc5, 0xc6,
  394. 0xf1, 0xa0, 0x60, 0x92, 0x98, 0x75, 0x3c, 0x1d, 0xb3, 0x26, 0xea, 0xbe,
  395. 0xf7, 0x31, 0xba, 0xef, 0x7c, 0x8c, 0xee, 0x01, 0xd3, 0x1e, 0xa5, 0xda,
  396. 0xf8, 0x72, 0x4a, 0xe7, 0xfb, 0x2e, 0xce, 0xc0, 0xa7, 0xcb, 0x77, 0x5f,
  397. 0x3a, 0x5f, 0xea, 0x8c, 0xc1, 0x3f, 0x7c, 0xc7, 0xad, 0x91, 0xa7, 0x39,
  398. 0x8e, 0x68, 0x45, 0x74, 0x11, 0x47, 0x04, 0xf2, 0xf8, 0x98, 0x2f, 0x93,
  399. 0x7c, 0x11, 0x7a, 0xc6, 0x14, 0xab, 0x0b, 0x67, 0x65, 0x8f, 0x97, 0x25,
  400. 0x42, 0x95, 0x24, 0x1c, 0xb2, 0x0c, 0xfe, 0x9c, 0x8f, 0xc7, 0x85, 0xd7,
  401. 0x2a, 0x97, 0x9f, 0x4d, 0xea, 0x6c, 0x66, 0x9b, 0xa4, 0x8d, 0x31, 0xdf,
  402. 0x85, 0x68, 0x63, 0x4e, 0xfa, 0x4c, 0x93, 0xa9, 0xdb, 0x9f, 0xd6, 0x59,
  403. 0xe5, 0x2f, 0xd1, 0xdf, 0x52, 0xed, 0x6f, 0xb9, 0x1f, 0x31, 0x3e, 0x95,
  404. 0x4f, 0xb5, 0xff, 0x37, 0xfa, 0x8c, 0xd4, 0xe7, 0x9d, 0x29, 0xef, 0xf9,
  405. 0xea, 0x6e, 0x69, 0xd0, 0xdd, 0x90, 0xf3, 0x6e, 0x1b, 0xf3, 0x56, 0xe0,
  406. 0xfc, 0x54, 0x8e, 0xf6, 0xc4, 0xf8, 0x4f, 0x7e, 0x68, 0xb0, 0xa5, 0x0c,
  407. 0xa9, 0x5a, 0xd4, 0xb3, 0x9e, 0x5a, 0xac, 0x83, 0x2d, 0xb3, 0x90, 0xaa,
  408. 0x46, 0x6a, 0x8d, 0x4c, 0xcd, 0x96, 0xfb, 0x91, 0x55, 0xee, 0x47, 0xc7,
  409. 0x68, 0x7c, 0x3f, 0x2a, 0x43, 0xbe, 0xe9, 0x18, 0x21, 0x9c, 0xbf, 0xbd,
  410. 0x3f, 0xa2, 0x5e, 0x19, 0xdb, 0x9d, 0x34, 0xdb, 0xc6, 0x69, 0xfe, 0xdc,
  411. 0xb7, 0xd2, 0x15, 0x71, 0x0b, 0x79, 0x4f, 0x1d, 0x97, 0x0d, 0xac, 0x81,
  412. 0x77, 0xe1, 0xde, 0x78, 0x0f, 0xea, 0xdf, 0xd6, 0xe1, 0x85, 0xb7, 0x47,
  413. 0xbc, 0x77, 0xd0, 0x30, 0xb4, 0x77, 0xca, 0xe7, 0xb7, 0x68, 0x15, 0x95,
  414. 0x3b, 0xb2, 0xd0, 0x2e, 0x0b, 0xa2, 0x58, 0xa1, 0xb3, 0x88, 0x2a, 0x0e,
  415. 0xb7, 0xd1, 0x19, 0xce, 0x16, 0xde, 0x69, 0xbc, 0x56, 0xba, 0x8c, 0xfc,
  416. 0x6b, 0xb9, 0xad, 0x2e, 0xf4, 0xc1, 0x86, 0xbb, 0x41, 0xc4, 0xeb, 0xe0,
  417. 0x88, 0x3f, 0xcf, 0xe3, 0x8c, 0xb8, 0x1f, 0xd3, 0x6d, 0x5c, 0x21, 0x2a,
  418. 0xe2, 0xab, 0x68, 0x87, 0xa5, 0x9c, 0x7a, 0x2c, 0x86, 0x6d, 0x86, 0x25,
  419. 0x9b, 0x29, 0x6e, 0xb3, 0x27, 0xe4, 0x18, 0x56, 0x1a, 0x8e, 0x83, 0xcb,
  420. 0x30, 0x1b, 0x15, 0xfb, 0x56, 0x93, 0x7e, 0x9b, 0x20, 0x7a, 0x84, 0xc3,
  421. 0xd6, 0xe3, 0x74, 0xc0, 0xe6, 0x3f, 0xa9, 0xc5, 0xb1, 0x47, 0x8e, 0x25,
  422. 0xdf, 0x6e, 0x3d, 0x68, 0xb1, 0xfc, 0xbc, 0xd8, 0x62, 0x95, 0x9f, 0xfd,
  423. 0x8e, 0xff, 0x1c, 0x3c, 0x93, 0xfe, 0xa9, 0xf4, 0xa9, 0x3f, 0x4a, 0xcf,
  424. 0x9f, 0x49, 0xb2, 0xcf, 0xf0, 0x67, 0x51, 0xb9, 0x58, 0x59, 0x86, 0xb1,
  425. 0xfc, 0x73, 0xcb, 0x3e, 0x67, 0x59, 0x72, 0xa5, 0x58, 0x7c, 0xa5, 0x68,
  426. 0xbe, 0x52, 0x98, 0xfd, 0xc0, 0x2a, 0xfd, 0xf8, 0x21, 0xf4, 0x21, 0x8f,
  427. 0x4e, 0x95, 0xc7, 0x7c, 0x5f, 0x92, 0x72, 0xb3, 0x6f, 0x48, 0xfb, 0x96,
  428. 0x07, 0xe1, 0x1b, 0x13, 0xed, 0xf7, 0xf8, 0xbe, 0x2f, 0xed, 0x53, 0xf7,
  429. 0x01, 0x9b, 0x3e, 0x77, 0x64, 0xee, 0x27, 0x16, 0xf4, 0x3d, 0xe6, 0xbb,
  430. 0x1c, 0x27, 0xa2, 0x3c, 0x93, 0x6f, 0x65, 0xd7, 0x28, 0xbf, 0x63, 0xbf,
  431. 0x1e, 0x80, 0x7f, 0xa5, 0x74, 0xbc, 0xa6, 0xdc, 0x35, 0x2a, 0x26, 0x44,
  432. 0xdc, 0x9f, 0x93, 0xe7, 0x17, 0x7e, 0x6f, 0x91, 0x87, 0xd3, 0xef, 0x0c,
  433. 0x79, 0xb3, 0x8c, 0xb8, 0xdb, 0xf9, 0x9e, 0xe0, 0x5d, 0x44, 0x5e, 0x79,
  434. 0x4f, 0x54, 0x7b, 0x59, 0x49, 0x8d, 0xfa, 0x5c, 0x7d, 0x92, 0xba, 0xb7,
  435. 0x7c, 0x01, 0x3b, 0x98, 0x9e, 0x0d, 0x3b, 0xcf, 0x46, 0xbf, 0x3c, 0x23,
  436. 0xaa, 0x36, 0x57, 0xd7, 0xa8, 0xcf, 0xe0, 0xb9, 0x2e, 0x4b, 0xba, 0xae,
  437. 0x88, 0xfb, 0xd2, 0xf4, 0x3b, 0x83, 0x85, 0xe8, 0xa3, 0xdf, 0x37, 0x0b,
  438. 0xb3, 0xcc, 0x7f, 0x57, 0x90, 0x47, 0x99, 0xe7, 0x9c, 0xd4, 0x7b, 0x9f,
  439. 0xc9, 0xde, 0x05, 0xd9, 0xf5, 0x79, 0xb2, 0x29, 0x35, 0x2e, 0x2d, 0xba,
  440. 0x6d, 0x36, 0xb4, 0xcd, 0xa6, 0xc6, 0xe5, 0x30, 0x59, 0x85, 0xd9, 0xb6,
  441. 0xed, 0x63, 0x6c, 0x3f, 0xaf, 0x6d, 0x3f, 0x6d, 0xfd, 0x93, 0xc9, 0x1c,
  442. 0xfa, 0x5e, 0xbd, 0xb5, 0x46, 0xc5, 0x92, 0x89, 0xe3, 0xe5, 0xdf, 0x54,
  443. 0x46, 0xb1, 0x4d, 0xd7, 0x60, 0xcc, 0xd8, 0xde, 0xa9, 0xcf, 0xcb, 0xdb,
  444. 0x4f, 0x6b, 0xbf, 0xb0, 0x1f, 0x2b, 0xa8, 0x65, 0x1f, 0xd9, 0xf6, 0xa8,
  445. 0x7e, 0xd8, 0x27, 0xd4, 0x69, 0xd7, 0xe7, 0xc9, 0xaf, 0xea, 0x32, 0xa2,
  446. 0x9b, 0xcf, 0xa0, 0xb2, 0xf6, 0x3e, 0x0f, 0x4a, 0xb2, 0xf2, 0x5f, 0x89,
  447. 0x18, 0xd6, 0x65, 0xd0, 0xc7, 0x7c, 0x0f, 0x53, 0x99, 0x45, 0xd5, 0x69,
  448. 0xc8, 0x38, 0xf3, 0x4c, 0x8d, 0xfa, 0x7c, 0x9e, 0xd7, 0xa4, 0x5d, 0xae,
  449. 0xc9, 0x56, 0xe1, 0xf1, 0x54, 0x54, 0x60, 0x55, 0x5a, 0xcb, 0xb1, 0xfe,
  450. 0x7b, 0xac, 0x16, 0x9b, 0x5c, 0x8f, 0x96, 0xd4, 0xbc, 0x55, 0x94, 0xa9,
  451. 0xd5, 0xe8, 0xc0, 0x8d, 0xba, 0xc7, 0x21, 0x6c, 0xbc, 0x12, 0xb7, 0x8b,
  452. 0xd4, 0xdf, 0x6a, 0x78, 0xd0, 0x22, 0x9e, 0xeb, 0x6c, 0xb5, 0x46, 0xbc,
  453. 0xcb, 0xbc, 0x96, 0x25, 0xde, 0xc5, 0xde, 0x66, 0xef, 0xc7, 0x8c, 0x1f,
  454. 0x4b, 0x5f, 0xac, 0x51, 0xf1, 0x96, 0xdf, 0x77, 0x79, 0x04, 0xf6, 0xa2,
  455. 0xd6, 0x88, 0xf7, 0x6e, 0xfd, 0xee, 0x27, 0xf5, 0x9e, 0xe4, 0x35, 0xed,
  456. 0x7f, 0xec, 0x47, 0x24, 0x6f, 0xbe, 0xd2, 0x8f, 0xe0, 0xa5, 0x42, 0xbe,
  457. 0x97, 0x59, 0x4c, 0xc2, 0xf0, 0x0b, 0xf6, 0xa2, 0x0d, 0xf2, 0x9d, 0xd2,
  458. 0x4d, 0x56, 0xce, 0x95, 0xd7, 0x3c, 0x7f, 0x7e, 0x1d, 0x1d, 0xb4, 0x41,
  459. 0xb2, 0xee, 0xab, 0xdd, 0x03, 0xf4, 0xba, 0x15, 0xf5, 0x81, 0x1d, 0x5c,
  460. 0xb7, 0x96, 0xae, 0xb4, 0x31, 0x4f, 0xd7, 0x49, 0xd2, 0x4c, 0xef, 0x69,
  461. 0xd5, 0xc0, 0xba, 0x4e, 0x7a, 0xc4, 0xca, 0x53, 0x02, 0xe5, 0xb7, 0x52,
  462. 0xcc, 0xfd, 0x56, 0x3d, 0xec, 0x79, 0x74, 0x6f, 0x4a, 0x76, 0x52, 0x33,
  463. 0xb7, 0x1f, 0x13, 0x53, 0x0b, 0x3e, 0x7f, 0xbc, 0x73, 0x85, 0x28, 0x2c,
  464. 0xba, 0xed, 0x32, 0xba, 0xd9, 0xa6, 0x6b, 0xa6, 0xc7, 0x6c, 0x94, 0x77,
  465. 0x59, 0xf7, 0xfc, 0xba, 0x73, 0x56, 0xec, 0x5f, 0x4f, 0x77, 0x22, 0xb1,
  466. 0x6d, 0xdd, 0x81, 0x75, 0xfb, 0xcf, 0x3b, 0x7e, 0x9c, 0x2e, 0x76, 0x70,
  467. 0x65, 0x03, 0x74, 0xb9, 0x03, 0x2d, 0x7b, 0xfd, 0x9c, 0xcb, 0x77, 0x3f,
  468. 0xba, 0x8e, 0x6e, 0x93, 0x32, 0xba, 0x8b, 0x45, 0xa2, 0xa0, 0xe0, 0xf8,
  469. 0x63, 0xf4, 0xa0, 0x43, 0x96, 0xf4, 0x3b, 0x7a, 0xd7, 0x02, 0x59, 0x88,
  470. 0xfe, 0x86, 0x2e, 0x0f, 0xde, 0xb1, 0xff, 0x17, 0xcd, 0xaf, 0x0d, 0xce,
  471. 0x87, 0xc5, 0x7e, 0x7a, 0xc9, 0xc2, 0x59, 0x8c, 0xa5, 0x5b, 0x8d, 0xae,
  472. 0x7d, 0xf4, 0x02, 0x1b, 0xd1, 0xeb, 0x3c, 0x2c, 0x7f, 0xe4, 0xc7, 0x97,
  473. 0x0d, 0x4e, 0x7f, 0x9d, 0x5f, 0xf6, 0xdc, 0x24, 0xd9, 0x1b, 0x98, 0xfd,
  474. 0x2a, 0x3f, 0xbe, 0xc9, 0x8f, 0xa3, 0x86, 0xac, 0xef, 0x1b, 0xcc, 0x7f,
  475. 0x4d, 0x1a, 0x1c, 0x61, 0xf6, 0x46, 0x25, 0xbe, 0x59, 0x4a, 0xd6, 0xca,
  476. 0x06, 0x18, 0xbf, 0xa7, 0x26, 0xe3, 0x4d, 0x63, 0x9f, 0xf1, 0x2d, 0xcb,
  477. 0xbe, 0xfd, 0xc6, 0xa5, 0x07, 0x5e, 0x3e, 0x1c, 0x3e, 0xd2, 0xdc, 0xbc,
  478. 0xa2, 0xb9, 0x79, 0xe5, 0x57, 0x5a, 0x9a, 0x4f, 0x1a, 0x79, 0xa2, 0x34,
  479. 0xcf, 0xc8, 0xfd, 0x2e, 0x7f, 0x64, 0x95, 0x47, 0xed, 0x32, 0x77, 0xbb,
  480. 0x1e, 0xa2, 0x76, 0x9b, 0x1e, 0xb4, 0x76, 0x59, 0x10, 0x3d, 0xc0, 0xa5,
  481. 0xde, 0x4a, 0xd7, 0xa0, 0x7d, 0x47, 0xe8, 0x72, 0x81, 0xbd, 0xec, 0x2d,
  482. 0xd4, 0x79, 0xfe, 0xba, 0x15, 0xf4, 0x75, 0x01, 0xcd, 0x91, 0x15, 0xf4,
  483. 0x13, 0x07, 0xcc, 0xfe, 0xc0, 0x0d, 0xb9, 0x0c, 0x46, 0xe7, 0x5f, 0x46,
  484. 0x77, 0x70, 0xa9, 0x0f, 0xd8, 0xf1, 0x78, 0xca, 0xce, 0x26, 0xf4, 0x1e,
  485. 0x93, 0x1b, 0xe8, 0x15, 0x9e, 0xd4, 0xc3, 0xf3, 0x9b, 0x07, 0x6e, 0x0d,
  486. 0xad, 0xeb, 0xb9, 0xac, 0x8e, 0xae, 0x95, 0x05, 0xd0, 0xe7, 0xed, 0xdc,
  487. 0x80, 0xfb, 0xe9, 0x72, 0xae, 0xe9, 0x30, 0xdd, 0x28, 0x47, 0xe8, 0x4e,
  488. 0xa3, 0xe0, 0x9d, 0xba, 0x75, 0x41, 0x63, 0xac, 0x6b, 0x1b, 0x3d, 0x61,
  489. 0x91, 0x4d, 0x79, 0xec, 0x77, 0xb7, 0x1d, 0xae, 0x0f, 0x1a, 0xe7, 0x8e,
  490. 0xd0, 0xc3, 0xd2, 0xe4, 0x76, 0xfa, 0xbb, 0x4d, 0x35, 0x7a, 0xc5, 0x65,
  491. 0xf4, 0x7d, 0x94, 0xd5, 0x75, 0xfb, 0x3a, 0x63, 0xae, 0xf0, 0xe6, 0x89,
  492. 0xe2, 0xc2, 0x15, 0x46, 0xb6, 0x98, 0xa7, 0x98, 0x8d, 0xa2, 0x3c, 0x4f,
  493. 0x14, 0xb9, 0xbf, 0xb0, 0xdb, 0xd8, 0x03, 0xce, 0x38, 0x4f, 0x4c, 0xc1,
  494. 0x88, 0x71, 0x83, 0x30, 0x0a, 0xc5, 0x79, 0xf4, 0x30, 0xd8, 0xad, 0xf4,
  495. 0x77, 0x43, 0x56, 0x71, 0xe1, 0xba, 0x66, 0x75, 0x4f, 0x2b, 0x44, 0x14,
  496. 0x66, 0x9f, 0x9f, 0x4d, 0x6a, 0xbf, 0x9f, 0x01, 0x9f, 0x2e, 0xd1, 0xeb,
  497. 0x40, 0x90, 0xb2, 0x49, 0xbd, 0xd7, 0x30, 0xd2, 0xc8, 0x51, 0x7f, 0xdb,
  498. 0xa4, 0x6d, 0x52, 0x7f, 0xd3, 0xb4, 0x50, 0xd3, 0x3a, 0x4d, 0x9d, 0xda,
  499. 0x7e, 0xa6, 0xce, 0x3f, 0x57, 0xcb, 0x6b, 0xb5, 0xbc, 0x4e, 0xaf, 0xb1,
  500. 0x46, 0xec, 0x91, 0x2c, 0x6f, 0xd2, 0x6d, 0x30, 0x4c, 0xf5, 0x35, 0x61,
  501. 0x37, 0x67, 0xbe, 0x20, 0x9d, 0x56, 0xb1, 0x3b, 0xd5, 0x26, 0x6b, 0x9a,
  502. 0x57, 0xef, 0x4e, 0x53, 0x77, 0x4e, 0x43, 0xeb, 0x0c, 0xad, 0x33, 0xf4,
  503. 0x9a, 0x56, 0xe5, 0x3b, 0xe4, 0x39, 0x4a, 0xc9, 0x9a, 0x34, 0x3d, 0x53,
  504. 0xd3, 0x56, 0x59, 0x82, 0x45, 0xeb, 0x71, 0x23, 0x31, 0xd5, 0xa3, 0xde,
  505. 0x0d, 0x58, 0x24, 0x6d, 0xd5, 0x63, 0xa3, 0xde, 0x51, 0x30, 0xcd, 0xd2,
  506. 0x34, 0x57, 0xe7, 0x2d, 0xc0, 0x19, 0xd6, 0x42, 0x6a, 0x7f, 0x4e, 0x95,
  507. 0x51, 0x84, 0xde, 0x72, 0xca, 0x6e, 0xe2, 0x53, 0x7d, 0x49, 0x8d, 0xfb,
  508. 0x0c, 0x4d, 0x67, 0xa6, 0xc7, 0xaf, 0x55, 0x96, 0x53, 0x27, 0x4b, 0x4c,
  509. 0x8d, 0x5d, 0x9d, 0x96, 0xb5, 0x4a, 0x99, 0x55, 0x8e, 0xff, 0x78, 0x59,
  510. 0x8d, 0x5a, 0xd6, 0x68, 0xea, 0x7f, 0xa3, 0x4c, 0xa9, 0x7b, 0x28, 0xd3,
  511. 0x56, 0x52, 0xfb, 0x70, 0xab, 0x29, 0x1f, 0xa3, 0x4d, 0xd3, 0x76, 0xdd,
  512. 0x57, 0xd6, 0xe4, 0x9b, 0xf8, 0xd2, 0xb4, 0x5f, 0x94, 0x9a, 0xc6, 0x38,
  513. 0x3f, 0x3d, 0x77, 0xe5, 0x5a, 0xef, 0xd6, 0x65, 0x4e, 0xd7, 0xf5, 0xd4,
  514. 0xa5, 0x2d, 0x55, 0xdb, 0xea, 0xd2, 0xd6, 0x22, 0x8b, 0x84, 0x8b, 0x70,
  515. 0x59, 0x16, 0x95, 0x64, 0x54, 0x76, 0x91, 0xa8, 0x22, 0x7b, 0x73, 0x28,
  516. 0x12, 0x4a, 0xae, 0x24, 0x63, 0x65, 0x13, 0x59, 0x57, 0x36, 0xe1, 0x69,
  517. 0xe7, 0x67, 0x55, 0x3f, 0xe5, 0xb6, 0x8f, 0x04, 0x22, 0xbb, 0x82, 0x5b,
  518. 0x02, 0xc9, 0xa1, 0x91, 0x60, 0x9c, 0xa6, 0xb6, 0x47, 0x47, 0x63, 0xd1,
  519. 0x48, 0x30, 0x92, 0xec, 0x0d, 0x06, 0xe3, 0xfd, 0xa1, 0xe0, 0xbe, 0xba,
  520. 0x73, 0x02, 0x7b, 0x03, 0xe4, 0x6a, 0x8f, 0x46, 0x22, 0xc1, 0xa1, 0x64,
  521. 0x28, 0x1a, 0x21, 0xd1, 0x41, 0x46, 0x47, 0x27, 0x89, 0x4e, 0x32, 0x3a,
  522. 0xab, 0x80, 0x4e, 0xb2, 0x74, 0x76, 0x72, 0xa2, 0x0b, 0x4c, 0x57, 0x37,
  523. 0x98, 0x6e, 0x12, 0x5d, 0x64, 0x74, 0x31, 0xba, 0x69, 0x66, 0xd7, 0xd8,
  524. 0x50, 0xb0, 0x75, 0x68, 0x28, 0x98, 0x48, 0x84, 0x76, 0x84, 0xc2, 0xa1,
  525. 0xe4, 0x81, 0xf5, 0xd1, 0xe1, 0x60, 0x6f, 0x3c, 0xba, 0x37, 0x34, 0x8c,
  526. 0x1a, 0x8b, 0xd7, 0x05, 0x0f, 0xec, 0x88, 0x06, 0xe2, 0xc3, 0xab, 0x42,
  527. 0x89, 0xd1, 0x50, 0x22, 0xd1, 0x1d, 0x4a, 0x24, 0x83, 0x11, 0x28, 0x04,
  528. 0x4a, 0xea, 0x46, 0xd9, 0xdd, 0x5c, 0x76, 0x77, 0x17, 0x59, 0xbb, 0xbb,
  529. 0x24, 0xd7, 0x0d, 0x91, 0x94, 0x43, 0x86, 0x47, 0x37, 0x4d, 0xed, 0x0e,
  530. 0x44, 0x86, 0xe3, 0xd1, 0xd0, 0x70, 0x7d, 0x20, 0x16, 0xab, 0x6f, 0x45,
  531. 0x23, 0xf7, 0xa2, 0x92, 0x26, 0x5a, 0x94, 0x29, 0x8f, 0xc5, 0xc2, 0xa1,
  532. 0xa1, 0x00, 0xf7, 0x60, 0x4e, 0xca, 0xa6, 0x3b, 0xb4, 0x33, 0x38, 0x74,
  533. 0x60, 0x28, 0x1c, 0x6c, 0x0f, 0x84, 0xc3, 0x3b, 0x02, 0x43, 0xbb, 0x13,
  534. 0x4d, 0x34, 0xed, 0x74, 0xb9, 0xcc, 0xaa, 0xa1, 0x68, 0x04, 0x8d, 0x4c,
  535. 0xd6, 0xb7, 0x33, 0xdd, 0x9f, 0x34, 0xab, 0x76, 0xc5, 0x03, 0xb1, 0x91,
  536. 0xd0, 0x50, 0xa2, 0xbe, 0x3d, 0x10, 0xd9, 0x1b, 0x40, 0x81, 0xb3, 0x26,
  537. 0x51, 0x45, 0xc3, 0xd1, 0x78, 0x47, 0x28, 0x9c, 0x0c, 0xc6, 0x4f, 0xaf,
  538. 0xef, 0x09, 0x24, 0xe3, 0xa1, 0xfd, 0x4d, 0x54, 0xf5, 0xb1, 0xfa, 0x8c,
  539. 0xa2, 0x4a, 0x26, 0x9a, 0xf6, 0x06, 0x42, 0x91, 0xe4, 0xe4, 0x9a, 0xa8,
  540. 0xd4, 0x14, 0x4f, 0xd4, 0x6c, 0xc2, 0x44, 0x37, 0x51, 0x69, 0x5a, 0x11,
  541. 0x4d, 0xd4, 0xb7, 0x8d, 0x85, 0xc2, 0xc3, 0x73, 0xfa, 0x57, 0x6f, 0xea,
  542. 0xeb, 0xdc, 0xb0, 0xbe, 0x89, 0x0a, 0x33, 0x75, 0x91, 0xe1, 0x70, 0xb0,
  543. 0x89, 0x8a, 0xcc, 0xc2, 0xce, 0xb6, 0x50, 0x64, 0x98, 0xdb, 0x34, 0x5e,
  544. 0x3e, 0x8f, 0x54, 0xfd, 0xea, 0xe1, 0x50, 0x32, 0xb0, 0x83, 0xcd, 0x4b,
  545. 0x32, 0x15, 0x7d, 0xc1, 0xb0, 0xf2, 0x2f, 0x73, 0xcd, 0x4a, 0x13, 0x0b,
  546. 0x44, 0xb4, 0x7f, 0x4e, 0xcc, 0x05, 0x5d, 0x44, 0x95, 0x37, 0xf7, 0x34,
  547. 0x9a, 0x3e, 0x0c, 0x53, 0x64, 0x97, 0xec, 0x00, 0x17, 0x70, 0x4a, 0xe1,
  548. 0x7e, 0x3c, 0xd2, 0x85, 0x8f, 0x77, 0x6b, 0x2c, 0x19, 0x0a, 0xf3, 0xd8,
  549. 0x4d, 0x2e, 0x6c, 0xa6, 0xea, 0xb4, 0x70, 0x2f, 0xd6, 0x48, 0x7d, 0xfb,
  550. 0x48, 0x34, 0x1e, 0x8c, 0xca, 0x01, 0x0c, 0xc6, 0xe7, 0x74, 0xc4, 0x03,
  551. 0xa3, 0x69, 0x97, 0x6a, 0xa2, 0x19, 0x1f, 0x63, 0x6b, 0x1e, 0x1f, 0xa9,
  552. 0xc5, 0x6a, 0x58, 0xbd, 0x37, 0x18, 0xc9, 0x18, 0x7f, 0xa9, 0xe8, 0x89,
  553. 0xf2, 0xe0, 0x68, 0x5d, 0x55, 0xa6, 0x8e, 0xd7, 0xe9, 0x9c, 0x0d, 0x91,
  554. 0x8e, 0xe8, 0xd0, 0x58, 0x42, 0xad, 0xe7, 0xd4, 0x2a, 0x32, 0x37, 0x3f,
  555. 0x6d, 0x6a, 0x1e, 0xc5, 0xb4, 0x70, 0x4d, 0x3c, 0x3a, 0x16, 0x6b, 0xa2,
  556. 0x25, 0x13, 0x35, 0xfe, 0x78, 0x30, 0xb8, 0x61, 0x47, 0x22, 0x18, 0xdf,
  557. 0x8b, 0xbe, 0x6d, 0x88, 0xac, 0x09, 0x47, 0x77, 0x04, 0xc2, 0xdd, 0x81,
  558. 0x03, 0xd1, 0xb1, 0xe4, 0x78, 0x35, 0xb3, 0x3f, 0x3e, 0x5f, 0x13, 0x2d,
  559. 0xc8, 0x34, 0x08, 0x98, 0x03, 0x42, 0x7d, 0x46, 0x78, 0xe8, 0x09, 0x44,
  560. 0x02, 0xbb, 0x38, 0x4b, 0xc3, 0xa7, 0xce, 0xc2, 0x11, 0xa5, 0x33, 0xb2,
  561. 0x33, 0x3a, 0xa1, 0xfd, 0x9f, 0x90, 0x27, 0x15, 0x85, 0x9a, 0xa8, 0x2e,
  562. 0x33, 0x5f, 0x28, 0x12, 0x1b, 0x4b, 0x8e, 0x06, 0x93, 0x23, 0xd1, 0xe1,
  563. 0xfa, 0xb6, 0x40, 0x02, 0x85, 0x23, 0x3d, 0x1e, 0x03, 0xcd, 0xde, 0x36,
  564. 0xc1, 0x9e, 0x5d, 0x3c, 0x1a, 0x57, 0xcd, 0xa9, 0x3e, 0xbd, 0xd9, 0x84,
  565. 0x22, 0xe7, 0x7f, 0x82, 0x6d, 0x8f, 0xe4, 0xd3, 0xa3, 0x53, 0xdf, 0x3d,
  566. 0x14, 0x1d, 0xad, 0x8f, 0x8f, 0x26, 0xc2, 0xf5, 0xe7, 0x20, 0xc2, 0xd6,
  567. 0x4f, 0x88, 0xdc, 0x73, 0x32, 0x42, 0x7b, 0x13, 0xd5, 0x7e, 0x72, 0x06,
  568. 0x53, 0x6b, 0xce, 0xfc, 0x44, 0xeb, 0x8f, 0x8d, 0xeb, 0x4d, 0xd4, 0xf1,
  569. 0x89, 0x05, 0x9c, 0x26, 0xf2, 0xcf, 0xc9, 0x74, 0x9c, 0xc6, 0xff, 0xd7,
  570. 0x72, 0xd8, 0xe7, 0x3e, 0x29, 0x2b, 0x2f, 0x7f, 0x39, 0xb8, 0xfe, 0x40,
  571. 0x7c, 0x57, 0x10, 0x2b, 0xab, 0xec, 0x93, 0xb2, 0x34, 0x51, 0x79, 0xf7,
  572. 0x70, 0x20, 0xbc, 0x37, 0xb4, 0xbb, 0x1e, 0x01, 0x26, 0x9a, 0x94, 0x7b,
  573. 0x43, 0xfd, 0xea, 0xc8, 0x50, 0x38, 0x9a, 0x40, 0x9c, 0x69, 0x0f, 0x07,
  574. 0x12, 0x32, 0xe8, 0x4f, 0xb4, 0xe9, 0xc4, 0xe0, 0xc6, 0xb5, 0xbe, 0x6c,
  575. 0x12, 0x7d, 0x4f, 0x70, 0x74, 0x87, 0x36, 0x08, 0xc2, 0x64, 0xe6, 0x24,
  576. 0x26, 0x7d, 0xa1, 0x5d, 0x91, 0x40, 0x72, 0x2c, 0x2e, 0xc3, 0x27, 0x6f,
  577. 0xcc, 0xf5, 0x61, 0x4c, 0x31, 0x42, 0x4a, 0x20, 0xde, 0x17, 0xdc, 0x33,
  578. 0x16, 0x8c, 0x0c, 0x41, 0x53, 0x60, 0xd6, 0xa8, 0xea, 0xca, 0x4d, 0xa2,
  579. 0xce, 0x70, 0x38, 0xb8, 0x2b, 0x10, 0x56, 0x33, 0xb7, 0x7a, 0xff, 0x50,
  580. 0x30, 0xa6, 0x26, 0x7c, 0xce, 0x24, 0x36, 0xf1, 0x5d, 0x63, 0xa3, 0xe8,
  581. 0xbb, 0xc9, 0xaa, 0xd0, 0x6c, 0x85, 0xcd, 0x4f, 0xba, 0x62, 0x99, 0x49,
  582. 0xb8, 0x3e, 0xda, 0x37, 0x36, 0x34, 0xa2, 0x7c, 0xd5, 0x94, 0xcf, 0x63,
  583. 0x32, 0xd9, 0xb0, 0xe3, 0x1c, 0xb9, 0xc3, 0xcc, 0x34, 0xc9, 0xfa, 0x82,
  584. 0x43, 0x63, 0x71, 0xf8, 0xd0, 0x69, 0xb2, 0xa8, 0x20, 0xce, 0x6b, 0x64,
  585. 0x5c, 0x16, 0x0f, 0xee, 0xe4, 0x2d, 0x03, 0xcd, 0xd8, 0x1b, 0x55, 0x5b,
  586. 0xb4, 0x9a, 0x44, 0x53, 0x11, 0xa5, 0x93, 0x98, 0xab, 0xa6, 0x35, 0xd1,
  587. 0x14, 0xa5, 0x93, 0x41, 0xbd, 0x35, 0x1e, 0x0f, 0x1c, 0x60, 0xbf, 0x69,
  588. 0x22, 0xb7, 0x49, 0x3c, 0xb9, 0xa4, 0x99, 0x1c, 0x7d, 0xab, 0xd6, 0x9d,
  589. 0xdd, 0xb9, 0xde, 0x4f, 0x56, 0xff, 0xd6, 0xde, 0xd5, 0x94, 0x7f, 0x8a,
  590. 0x17, 0x51, 0x8e, 0xd9, 0x83, 0x49, 0xf4, 0x93, 0xd1, 0x8f, 0x03, 0x4b,
  591. 0x3f, 0x8e, 0x2f, 0xd6, 0x7e, 0x3e, 0x2a, 0xd9, 0xf8, 0x89, 0xb3, 0x4c,
  592. 0x7f, 0x17, 0xd9, 0xfb, 0xbb, 0x3a, 0x3b, 0x3a, 0x70, 0xba, 0xe9, 0xef,
  593. 0x92, 0x8a, 0x2e, 0x56, 0x58, 0xfa, 0x71, 0x76, 0xc2, 0xa3, 0x9b, 0xc5,
  594. 0x7c, 0xe0, 0xe9, 0xef, 0x1a, 0x80, 0x35, 0x33, 0xdd, 0x5c, 0x46, 0xb7,
  595. 0x34, 0xed, 0x56, 0xa6, 0x7c, 0x0c, 0xea, 0x87, 0x11, 0x04, 0x2c, 0x77,
  596. 0x48, 0x22, 0xab, 0xea, 0x96, 0x59, 0x71, 0x1b, 0x06, 0x3b, 0xd0, 0x25,
  597. 0x9f, 0x38, 0x53, 0xf5, 0x0f, 0xa0, 0xd2, 0x01, 0x69, 0x22, 0x06, 0xc8,
  598. 0x32, 0xc0, 0xa6, 0x78, 0x74, 0x33, 0x0b, 0x35, 0x0c, 0x6d, 0x03, 0x5d,
  599. 0x9c, 0xb6, 0x82, 0xb0, 0x80, 0x35, 0xa8, 0xd6, 0x3e, 0xd0, 0x2d, 0xc5,
  600. 0x36, 0xa6, 0x2c, 0x47, 0x93, 0x06, 0x71, 0x14, 0x1c, 0xec, 0x24, 0xcf,
  601. 0xe0, 0x44, 0x97, 0x2b, 0x1c, 0x9c, 0x64, 0xc6, 0x5d, 0x2a, 0x1e, 0xcf,
  602. 0xf1, 0xf9, 0x7c, 0x69, 0x7e, 0x01, 0xf8, 0xec, 0x71, 0xde, 0x94, 0xc8,
  603. 0xd0, 0x34, 0x98, 0x13, 0x0b, 0xcd, 0x89, 0x45, 0xe6, 0xc4, 0x62, 0x73,
  604. 0x62, 0x89, 0x39, 0xb1, 0xd4, 0x9c, 0x58, 0x66, 0x4e, 0x34, 0x9a, 0x5a,
  605. 0xd3, 0x60, 0xe2, 0x17, 0x9a, 0xf8, 0x45, 0x26, 0x7e, 0xb1, 0x89, 0x5f,
  606. 0x62, 0xe2, 0x97, 0x9a, 0xf8, 0x65, 0x26, 0xbe, 0x71, 0xbc, 0xb2, 0x8e,
  607. 0x70, 0x60, 0x57, 0x82, 0x72, 0x33, 0xb6, 0x25, 0x2a, 0x0a, 0x4c, 0xb2,
  608. 0xfd, 0x71, 0x0e, 0x76, 0xe2, 0xee, 0xc0, 0x8e, 0x60, 0x98, 0x2c, 0x81,
  609. 0xe1, 0x61, 0x9a, 0x86, 0xc7, 0xe4, 0xfb, 0x2f, 0xb9, 0x03, 0x3b, 0x71,
  610. 0x02, 0x64, 0x3f, 0x54, 0x41, 0x7f, 0x98, 0x0a, 0xf8, 0xf0, 0xd1, 0x36,
  611. 0x96, 0x4c, 0x46, 0x23, 0xbd, 0x71, 0x94, 0x2e, 0x45, 0xc1, 0x9d, 0x38,
  612. 0x7b, 0x98, 0xad, 0xec, 0x3b, 0xa2, 0xb0, 0x18, 0x25, 0xfb, 0x50, 0x00,
  613. 0x9b, 0xc4, 0x30, 0xb9, 0x15, 0x35, 0x9d, 0xf6, 0x73, 0x87, 0x32, 0x2e,
  614. 0x08, 0x36, 0x9c, 0x96, 0x03, 0x71, 0xca, 0xe7, 0x70, 0x17, 0x34, 0x99,
  615. 0x15, 0x4b, 0x81, 0x69, 0x9f, 0xd2, 0x47, 0x63, 0xca, 0x1e, 0xe2, 0x5d,
  616. 0x81, 0xcf, 0x9a, 0xad, 0x49, 0xca, 0x4b, 0x27, 0xda, 0xa3, 0x63, 0x91,
  617. 0x24, 0x0a, 0x87, 0x15, 0x4e, 0xa8, 0x09, 0x29, 0xa3, 0x22, 0x7d, 0xae,
  618. 0x4e, 0xb4, 0xc9, 0x86, 0xaa, 0x46, 0xd2, 0xf4, 0xa1, 0x78, 0x30, 0x90,
  619. 0x9c, 0xb8, 0xd5, 0xf0, 0x0e, 0x4b, 0x8e, 0xe1, 0xa8, 0x3c, 0x6e, 0x91,
  620. 0x33, 0xa8, 0x4f, 0x96, 0xe0, 0x22, 0xc3, 0x89, 0x2d, 0xa1, 0xe4, 0x08,
  621. 0x79, 0x77, 0xe2, 0x10, 0x3a, 0x69, 0xbe, 0x44, 0xdb, 0x01, 0x1e, 0x06,
  622. 0xca, 0x62, 0x0b, 0x79, 0x6e, 0xa2, 0x42, 0xb0, 0xa1, 0xc4, 0x88, 0x0c,
  623. 0xf8, 0x1c, 0xc9, 0xa5, 0x3e, 0x67, 0xe7, 0xf8, 0x99, 0x6a, 0x98, 0xa6,
  624. 0x63, 0x71, 0x67, 0x14, 0x27, 0x73, 0xf2, 0xae, 0xd0, 0x39, 0x4c, 0x33,
  625. 0x4e, 0x55, 0x66, 0x5c, 0x73, 0xb2, 0xa4, 0x56, 0x0e, 0x55, 0x7e, 0x9a,
  626. 0xed, 0x09, 0x24, 0x76, 0xa3, 0xd8, 0x29, 0x2c, 0x18, 0xbf, 0x68, 0xa4,
  627. 0x46, 0xce, 0x0d, 0x71, 0x7b, 0x20, 0x1e, 0x4c, 0xf6, 0xa2, 0x3d, 0x32,
  628. 0x67, 0x11, 0x4b, 0x10, 0xeb, 0x3b, 0x71, 0xb4, 0xde, 0xdf, 0x11, 0x8d,
  629. 0xab, 0x51, 0xcb, 0xd5, 0x52, 0xf8, 0x4b, 0x30, 0x9e, 0x20, 0x27, 0x27,
  630. 0x79, 0x0d, 0x52, 0x21, 0x73, 0xa9, 0xee, 0xf0, 0x79, 0x78, 0x75, 0x44,
  631. 0x55, 0x96, 0x21, 0xec, 0x4b, 0x06, 0xe2, 0x49, 0x72, 0x49, 0xb1, 0x9e,
  632. 0x32, 0x0e, 0xa2, 0xa9, 0xd1, 0xcc, 0xe1, 0x04, 0x9f, 0x3a, 0xfd, 0x21,
  633. 0x8c, 0xf2, 0x34, 0xa4, 0x64, 0xa7, 0x83, 0xc3, 0xa7, 0x06, 0x3d, 0xef,
  634. 0x69, 0x55, 0xb2, 0x99, 0x7a, 0x0c, 0xd6, 0x06, 0x43, 0xbb, 0x46, 0x92,
  635. 0xb2, 0x9c, 0xb5, 0xe0, 0xc2, 0x9c, 0x0a, 0x0e, 0x6f, 0x0a, 0xee, 0x42,
  636. 0xff, 0xda, 0xf0, 0x84, 0x27, 0x4d, 0xa6, 0xe2, 0x96, 0x73, 0x77, 0x64,
  637. 0xa9, 0xe6, 0x51, 0x9f, 0x92, 0x12, 0x66, 0x9c, 0x8e, 0xe8, 0x8c, 0x94,
  638. 0xd8, 0x7f, 0x20, 0x16, 0xc4, 0x48, 0xf1, 0x59, 0xa5, 0x3f, 0x14, 0x4f,
  639. 0x8e, 0x05, 0xc2, 0xa9, 0xd3, 0x02, 0x6b, 0x64, 0x57, 0x3b, 0x23, 0x89,
  640. 0x64, 0x00, 0x3b, 0xa7, 0x9c, 0x98, 0x0c, 0x2d, 0xd7, 0xd8, 0xad, 0xf7,
  641. 0x96, 0x0d, 0x91, 0x3e, 0xf8, 0x61, 0x30, 0x22, 0x07, 0x04, 0x95, 0x05,
  642. 0x30, 0x6e, 0xc9, 0xa0, 0xec, 0x93, 0xaa, 0x5a, 0x66, 0xd7, 0x5d, 0x55,
  643. 0xde, 0x9d, 0x33, 0x2e, 0x40, 0x4b, 0x1d, 0x48, 0x6d, 0x0a, 0xec, 0x3b,
  644. 0x2b, 0xc5, 0x6c, 0x95, 0x95, 0x6f, 0x8a, 0x46, 0x93, 0xdc, 0x15, 0x99,
  645. 0x3b, 0x7d, 0x07, 0xe2, 0xee, 0x16, 0x98, 0x05, 0x6a, 0x92, 0xd8, 0x23,
  646. 0xfa, 0x0e, 0x60, 0xc9, 0x8f, 0xf6, 0x61, 0x6b, 0x09, 0xa1, 0xc9, 0x79,
  647. 0x90, 0xa8, 0xd1, 0xde, 0x24, 0xd7, 0x0a, 0x5b, 0xf8, 0x71, 0x5a, 0x08,
  648. 0xaf, 0x1f, 0x1b, 0x65, 0x9f, 0x50, 0x4e, 0xb0, 0x99, 0xaf, 0x62, 0xe1,
  649. 0x50, 0x04, 0xa3, 0xc9, 0x56, 0x09, 0x99, 0x6d, 0x73, 0x24, 0xc4, 0xab,
  650. 0x91, 0xad, 0xa4, 0xd1, 0xa9, 0x47, 0x76, 0xe9, 0x57, 0xfd, 0xa1, 0x74,
  651. 0x94, 0xe2, 0x3c, 0x5b, 0xb0, 0x5a, 0xa2, 0xfb, 0xfc, 0xd1, 0xdd, 0x18,
  652. 0x87, 0x19, 0xe9, 0xb4, 0x34, 0x0a, 0x07, 0x71, 0xfc, 0x8a, 0x85, 0x03,
  653. 0x07, 0xd4, 0x72, 0xb4, 0x42, 0x7b, 0x96, 0x7c, 0x6e, 0xa5, 0x12, 0x2c,
  654. 0x1f, 0xdc, 0x10, 0x33, 0x16, 0xc7, 0xda, 0x28, 0x57, 0x91, 0xaf, 0x35,
  655. 0xb1, 0x58, 0x6f, 0x80, 0x1d, 0x87, 0xdc, 0x69, 0xc1, 0xa6, 0x60, 0x02,
  656. 0x67, 0x8f, 0xb4, 0xa4, 0x2d, 0x1d, 0xcd, 0x28, 0x57, 0x49, 0x56, 0xe9,
  657. 0x85, 0xaf, 0x93, 0x98, 0xb8, 0x55, 0xd1, 0x7d, 0x11, 0xca, 0x4e, 0x27,
  658. 0x37, 0xc7, 0xa8, 0x28, 0x9d, 0x90, 0x93, 0xba, 0x36, 0x34, 0x3c, 0x8c,
  659. 0x96, 0xeb, 0x5a, 0x7b, 0xa2, 0xa8, 0x52, 0xe6, 0xc9, 0x10, 0xc4, 0x03,
  660. 0xbb, 0x52, 0x65, 0x4a, 0x01, 0x8a, 0xd1, 0x65, 0xca, 0xbb, 0x34, 0x15,
  661. 0xea, 0x44, 0x30, 0x8e, 0x18, 0x35, 0xaa, 0xd7, 0x74, 0xce, 0x08, 0x56,
  662. 0x79, 0xaa, 0x1a, 0x2a, 0xe6, 0x54, 0x5f, 0x74, 0xa7, 0x76, 0xd7, 0x78,
  663. 0x74, 0x54, 0x0d, 0x14, 0x39, 0x47, 0x50, 0x82, 0x0c, 0x2c, 0xd6, 0x91,
  664. 0x68, 0x02, 0xab, 0x0e, 0x6b, 0x6a, 0x83, 0x3c, 0xab, 0x24, 0x28, 0x9f,
  665. 0x5f, 0xd1, 0x84, 0x02, 0xe1, 0xf6, 0x40, 0x2c, 0xd1, 0x83, 0x89, 0xa1,
  666. 0x5c, 0x2d, 0x80, 0x13, 0xb0, 0x3f, 0xe4, 0x8f, 0x27, 0x95, 0x37, 0x64,
  667. 0x85, 0x52, 0x0e, 0x4e, 0x39, 0x92, 0x3d, 0x5b, 0xdd, 0x16, 0xa8, 0x00,
  668. 0x01, 0x35, 0x18, 0x97, 0xf5, 0xb4, 0xaa, 0x08, 0x42, 0x4e, 0xd4, 0xdb,
  669. 0x1f, 0x08, 0x8f, 0x05, 0xc9, 0x1e, 0xc2, 0x71, 0x69, 0x77, 0x10, 0x55,
  670. 0x27, 0xd2, 0x8e, 0xef, 0x0c, 0x25, 0x36, 0xc4, 0x02, 0x38, 0x3f, 0x22,
  671. 0x6b, 0x22, 0xbd, 0x78, 0xe5, 0x5b, 0x12, 0x2c, 0x79, 0x88, 0xa2, 0x38,
  672. 0xd2, 0xad, 0xde, 0x1f, 0x0b, 0x47, 0xe3, 0x01, 0xe5, 0x9e, 0x1c, 0x1a,
  673. 0x86, 0xd1, 0x82, 0x84, 0x9e, 0x7b, 0x2a, 0xde, 0x7d, 0x9a, 0xd7, 0x38,
  674. 0xb9, 0x29, 0x45, 0xdf, 0x08, 0x0f, 0xb5, 0x2d, 0x2c, 0xf7, 0x33, 0x7b,
  675. 0x38, 0x18, 0xd9, 0x85, 0x08, 0x6d, 0x8d, 0xf0, 0x14, 0xe6, 0x44, 0xcc,
  676. 0xa1, 0xd2, 0x1e, 0xdd, 0xc1, 0x7b, 0x02, 0x79, 0xa2, 0x3b, 0x77, 0x26,
  677. 0x82, 0xc9, 0xb6, 0x03, 0xed, 0xa9, 0x4d, 0x23, 0x41, 0x05, 0xd1, 0x48,
  678. 0xea, 0xe5, 0x4d, 0xbb, 0xdc, 0x15, 0x10, 0x16, 0xc6, 0x45, 0xab, 0x82,
  679. 0x89, 0x64, 0x3c, 0x7a, 0x80, 0xbd, 0x66, 0x5c, 0xa8, 0x3d, 0xcb, 0x94,
  680. 0x33, 0xe5, 0x5a, 0xd3, 0xc7, 0x45, 0x7d, 0x81, 0xbd, 0xc1, 0xd4, 0x70,
  681. 0xa8, 0x85, 0x6d, 0xb2, 0x97, 0xc3, 0x9d, 0x59, 0x44, 0x5f, 0x32, 0x1a,
  682. 0x8b, 0x41, 0x54, 0x8c, 0x70, 0x2d, 0xdb, 0x71, 0xca, 0x6d, 0x0e, 0x9d,
  683. 0x88, 0xc0, 0x93, 0xf6, 0x51, 0x6e, 0xd4, 0x7c, 0x2d, 0xa7, 0xbc, 0x68,
  684. 0xc6, 0xfe, 0x4d, 0x39, 0xd1, 0x88, 0x5c, 0x09, 0x32, 0xc2, 0x52, 0x56,
  685. 0x34, 0x92, 0x72, 0xe3, 0x5c, 0xc9, 0xf6, 0x8c, 0x85, 0x93, 0xa1, 0x18,
  686. 0x86, 0xd7, 0x21, 0x93, 0x70, 0x45, 0x27, 0x9f, 0x08, 0x64, 0x56, 0x58,
  687. 0xf4, 0x85, 0xce, 0x0d, 0xa6, 0xf6, 0xa6, 0x6c, 0x24, 0x11, 0xcd, 0x5b,
  688. 0xe1, 0xe1, 0xc3, 0x52, 0x87, 0x44, 0x4a, 0xa7, 0x93, 0x9b, 0x82, 0xa3,
  689. 0xa8, 0x4b, 0x26, 0xcd, 0x67, 0x00, 0xb4, 0x41, 0x4d, 0xb0, 0x6c, 0x83,
  690. 0x3d, 0xaa, 0x3c, 0xc1, 0x16, 0x93, 0xde, 0x9e, 0x1b, 0xcb, 0xf0, 0xf3,
  691. 0x99, 0xb1, 0x68, 0x6c, 0x2c, 0x7c, 0xda, 0xdd, 0xb8, 0x00, 0xdb, 0x4a,
  692. 0x32, 0xe3, 0xf5, 0x07, 0x39, 0xe2, 0xea, 0x15, 0x1b, 0x95, 0xc7, 0x11,
  693. 0xc9, 0xe1, 0x14, 0xf1, 0xd3, 0xbf, 0x7d, 0xa3, 0x19, 0x71, 0xd9, 0xc4,
  694. 0xd3, 0x1c, 0x72, 0x5c, 0x4a, 0xcb, 0x5d, 0xa1, 0x1c, 0x9c, 0x69, 0x78,
  695. 0x5a, 0xe4, 0xb8, 0x93, 0x05, 0x7e, 0x42, 0x79, 0x09, 0xde, 0xc2, 0xd2,
  696. 0xaf, 0xc3, 0x28, 0x27, 0xa1, 0x37, 0x24, 0xb9, 0x8f, 0x15, 0x9b, 0x53,
  697. 0x9d, 0xaa, 0xc7, 0x72, 0x99, 0x15, 0x25, 0x26, 0xd9, 0x6f, 0xa8, 0x10,
  698. 0xd2, 0xce, 0x51, 0x3e, 0xe1, 0xb0, 0xaf, 0x24, 0x54, 0x35, 0x5c, 0x22,
  699. 0xda, 0x84, 0x83, 0x16, 0x2f, 0xba, 0x12, 0xa4, 0x26, 0x7d, 0xe9, 0x22,
  700. 0xed, 0xd2, 0xa1, 0x9b, 0x1c, 0x9c, 0xe2, 0x36, 0x4f, 0x49, 0xa4, 0xc2,
  701. 0xf7, 0xe6, 0x90, 0x29, 0xb0, 0x4e, 0x9f, 0x54, 0xcc, 0x7b, 0x74, 0x20,
  702. 0x29, 0x9b, 0xed, 0x0f, 0x62, 0xbb, 0x8e, 0x07, 0xe2, 0x07, 0x52, 0x71,
  703. 0x1c, 0x3b, 0x37, 0x65, 0x27, 0x54, 0xc8, 0x5e, 0x2f, 0x63, 0x60, 0x22,
  704. 0x23, 0x54, 0xbb, 0x52, 0x49, 0xf4, 0x9b, 0x47, 0x65, 0x4b, 0x28, 0x1c,
  705. 0x5e, 0x1f, 0x4d, 0x4a, 0x87, 0xcc, 0x49, 0x60, 0x1d, 0xa6, 0x23, 0x55,
  706. 0x2e, 0xa7, 0xd2, 0x91, 0x0a, 0xc6, 0x3c, 0xa6, 0xaa, 0x1f, 0x5c, 0x49,
  707. 0x6e, 0x02, 0x7e, 0x3e, 0x9e, 0xcc, 0x4e, 0x8c, 0xed, 0x48, 0xdd, 0x33,
  708. 0x29, 0x0b, 0x89, 0x84, 0xbc, 0x96, 0x91, 0x3d, 0xa9, 0x8e, 0x00, 0xb3,
  709. 0x93, 0x99, 0x1b, 0xff, 0x9a, 0x53, 0x0f, 0x30, 0x15, 0x93, 0x18, 0x4c,
  710. 0x38, 0xcf, 0x54, 0x4e, 0x34, 0x3a, 0xcd, 0x51, 0xe1, 0x8c, 0x4f, 0x61,
  711. 0xc9, 0xa1, 0x73, 0xd6, 0x44, 0xbb, 0x8c, 0x7d, 0x7e, 0xe6, 0x44, 0xbd,
  712. 0x79, 0x53, 0x9d, 0xa4, 0x5b, 0x99, 0x7b, 0xac, 0xf7, 0x14, 0x83, 0xce,
  713. 0x09, 0xf1, 0x77, 0x82, 0xc5, 0x84, 0x30, 0x7b, 0xea, 0xd0, 0xf4, 0x4d,
  714. 0xe6, 0x95, 0xa7, 0x76, 0xb8, 0xef, 0x34, 0xce, 0x61, 0x4f, 0x8e, 0x84,
  715. 0x70, 0xcb, 0xd2, 0x74, 0x01, 0x39, 0x93, 0x51, 0x75, 0x83, 0x26, 0x0b,
  716. 0x26, 0x94, 0xca, 0xc6, 0x62, 0xc3, 0x58, 0xc3, 0xa9, 0x33, 0x5e, 0xda,
  717. 0x55, 0x79, 0xa7, 0xd2, 0xa7, 0xb9, 0x2a, 0x65, 0xa2, 0x52, 0xfa, 0xbc,
  718. 0xc8, 0x26, 0xea, 0x00, 0xc1, 0x86, 0xe9, 0x13, 0xe2, 0x2c, 0xb3, 0xe9,
  719. 0x24, 0xfa, 0x32, 0xb3, 0x3e, 0xa3, 0xae, 0xb4, 0x89, 0x6d, 0xaf, 0xdc,
  720. 0x9b, 0x1c, 0x92, 0x6c, 0xd8, 0x49, 0xd6, 0xbd, 0xf2, 0x48, 0xc4, 0x4f,
  721. 0x73, 0x8c, 0x73, 0xef, 0x3d, 0xf5, 0x8c, 0x32, 0x70, 0xe1, 0x85, 0xab,
  722. 0x96, 0x9d, 0x57, 0x3e, 0x84, 0x06, 0x86, 0xc2, 0x72, 0x6f, 0x9a, 0x3f,
  723. 0x8a, 0x45, 0x5d, 0xbe, 0x1c, 0xd1, 0x06, 0x17, 0x95, 0x44, 0xb0, 0xbc,
  724. 0xb6, 0x7c, 0x24, 0x90, 0x98, 0x8f, 0xbb, 0x0b, 0xe2, 0xcb, 0xd8, 0x68,
  725. 0xa2, 0x7c, 0xf9, 0xce, 0x40, 0x38, 0x11, 0xac, 0x2d, 0x1f, 0x0d, 0x45,
  726. 0xe6, 0x07, 0x62, 0xa1, 0xf2, 0xe5, 0x0b, 0x96, 0xd4, 0x96, 0xa3, 0xa8,
  727. 0x04, 0xf2, 0x22, 0x5b, 0x43, 0xdd, 0x82, 0xba, 0xa5, 0xf3, 0xe3, 0x0b,
  728. 0xca, 0x2f, 0x20, 0xa3, 0x41, 0xbc, 0x6a, 0xcc, 0x70, 0x16, 0x5b, 0x8b,
  729. 0x17, 0x16, 0xdb, 0x8b, 0x87, 0x8a, 0x97, 0x17, 0x0f, 0xe0, 0x37, 0xcb,
  730. 0xa8, 0x87, 0xb8, 0xa4, 0xce, 0xf0, 0x19, 0xb7, 0x0b, 0x6b, 0xe9, 0xb5,
  731. 0x46, 0x71, 0xf6, 0x38, 0x9b, 0xab, 0xf2, 0xd8, 0x91, 0xe7, 0xb3, 0xc5,
  732. 0x05, 0xc8, 0xb3, 0xba, 0xd8, 0xa9, 0xb4, 0x1e, 0x68, 0x4b, 0x55, 0xd6,
  733. 0x5a, 0x25, 0x31, 0x20, 0xd9, 0x35, 0xae, 0x9c, 0x6e, 0x2c, 0xe0, 0xac,
  734. 0xa2, 0xa4, 0x66, 0xbc, 0x8c, 0x54, 0x9d, 0x2e, 0x65, 0x96, 0x05, 0xb3,
  735. 0x9d, 0x29, 0xad, 0xcd, 0xa4, 0x95, 0x39, 0x6d, 0x25, 0xb5, 0x25, 0xd5,
  736. 0x25, 0xf3, 0x4b, 0xaa, 0x4a, 0x2a, 0xc9, 0x6a, 0xb7, 0x67, 0x1b, 0xc2,
  737. 0xc3, 0xbf, 0x4b, 0x2e, 0x3a, 0x68, 0x3d, 0x58, 0x6d, 0x71, 0x5d, 0x51,
  738. 0x65, 0x73, 0x1d, 0x9b, 0x2f, 0x5c, 0xef, 0x03, 0xd7, 0xd5, 0x09, 0xd7,
  739. 0xf1, 0xba, 0xa5, 0xe2, 0xae, 0x6a, 0x21, 0x4e, 0x54, 0x1b, 0xe2, 0x65,
  740. 0xd0, 0x83, 0x35, 0x42, 0xdc, 0x04, 0x9c, 0xa8, 0x21, 0xab, 0x30, 0xf2,
  741. 0x0d, 0x21, 0x7f, 0xdb, 0x0e, 0x1e, 0xb4, 0x1e, 0xf6, 0xb5, 0x8b, 0x63,
  742. 0x3e, 0x43, 0x1c, 0xac, 0x27, 0x43, 0x58, 0x0b, 0xaf, 0xf2, 0x0a, 0xcf,
  743. 0x1a, 0x14, 0xfa, 0xf2, 0xc2, 0xb5, 0xe2, 0xf0, 0x02, 0x21, 0x1e, 0x5d,
  744. 0x28, 0xc4, 0xe1, 0x06, 0x21, 0x3e, 0x6c, 0x80, 0x5a, 0x4c, 0x31, 0xc4,
  745. 0x55, 0xde, 0x6e, 0xe4, 0x3a, 0xb8, 0xa8, 0x47, 0xdc, 0xb2, 0x88, 0x2c,
  746. 0x76, 0x2a, 0xe6, 0x1c, 0xc2, 0xb3, 0x1e, 0x79, 0x3e, 0x58, 0x2c, 0x0e,
  747. 0x7b, 0x8f, 0x2d, 0xc1, 0xe3, 0x04, 0x3f, 0x5e, 0x5e, 0x2c, 0x8c, 0xe7,
  748. 0x96, 0x08, 0xe3, 0xe0, 0x52, 0x12, 0x22, 0xbb, 0xd4, 0xe3, 0x87, 0xc9,
  749. 0xb1, 0xc6, 0xcd, 0xe2, 0xe4, 0x52, 0x21, 0xde, 0x00, 0x0e, 0x2f, 0x13,
  750. 0xe2, 0x18, 0x70, 0x12, 0x38, 0xdc, 0x08, 0x19, 0xe8, 0xa3, 0xa0, 0xc7,
  751. 0xa0, 0x7b, 0x19, 0xf4, 0xc3, 0x46, 0x72, 0x34, 0xcc, 0x9e, 0xee, 0x91,
  752. 0x6d, 0xf5, 0xa8, 0xdf, 0xed, 0x28, 0xe3, 0x28, 0x5a, 0xe6, 0x7d, 0xa3,
  753. 0x09, 0x8f, 0xa3, 0xab, 0xf1, 0x78, 0x76, 0x1d, 0x1e, 0x97, 0xb0, 0xec,
  754. 0x2d, 0xc9, 0x35, 0xe3, 0x71, 0xcf, 0x1a, 0x3c, 0x9e, 0xe2, 0xc7, 0x4d,
  755. 0x9c, 0x7c, 0x80, 0xed, 0x2e, 0xe9, 0xe6, 0x6c, 0x2c, 0x3b, 0xca, 0xdc,
  756. 0xb3, 0x2c, 0x7b, 0x97, 0x1f, 0x57, 0x74, 0x70, 0xb3, 0x3b, 0xec, 0x87,
  757. 0x0c, 0x12, 0x80, 0xc5, 0x78, 0x63, 0x15, 0x53, 0x83, 0xe1, 0x7a, 0xb4,
  758. 0xc3, 0xa1, 0xe5, 0xff, 0x0c, 0xa6, 0x00, 0xae, 0xcb, 0xc1, 0x7f, 0x5a,
  759. 0xc0, 0x3e, 0x2e, 0x8e, 0x77, 0xa3, 0xe3, 0xc0, 0x87, 0xc0, 0x43, 0xcd,
  760. 0x42, 0xdc, 0xd3, 0x63, 0x11, 0x47, 0x96, 0xdb, 0xe9, 0xa1, 0xa6, 0x29,
  761. 0xe2, 0x8d, 0x1e, 0x21, 0x9e, 0x86, 0xec, 0x0d, 0xe0, 0x96, 0xf5, 0x42,
  762. 0x3c, 0x00, 0x3c, 0x05, 0x7c, 0x00, 0xdc, 0xb2, 0x01, 0x69, 0xe0, 0x29,
  763. 0xe0, 0x9e, 0xe5, 0x28, 0x03, 0xf4, 0xaa, 0x5e, 0x21, 0xae, 0x58, 0x01,
  764. 0x1e, 0x78, 0x76, 0xa5, 0x10, 0xaf, 0x9d, 0x29, 0xac, 0x27, 0x7a, 0x85,
  765. 0xf5, 0x59, 0xc8, 0x8f, 0xb6, 0xd8, 0xc4, 0x25, 0x1b, 0x91, 0x77, 0xa3,
  766. 0x21, 0xae, 0xd8, 0x64, 0x88, 0x7b, 0x36, 0xc9, 0xcf, 0x81, 0xf9, 0xf3,
  767. 0xc7, 0x47, 0xd6, 0xa8, 0xcf, 0x23, 0x9f, 0x07, 0x7d, 0xd9, 0xc4, 0xbf,
  768. 0xb9, 0x46, 0xe9, 0xff, 0x6a, 0x92, 0x65, 0xad, 0x55, 0x7c, 0x11, 0xe8,
  769. 0xf4, 0xb5, 0xea, 0x33, 0x4f, 0x96, 0x9f, 0x01, 0x7e, 0xc1, 0x5a, 0x65,
  770. 0xbf, 0x7c, 0xed, 0xb8, 0x7d, 0x8f, 0x96, 0x9d, 0xa5, 0xe9, 0x6e, 0xd0,
  771. 0x17, 0xba, 0x28, 0x5d, 0x37, 0xe9, 0xcf, 0x62, 0x9f, 0x85, 0xec, 0x0d,
  772. 0x2d, 0x4f, 0xfd, 0x7c, 0x78, 0x8a, 0x1d, 0xff, 0xeb, 0xdb, 0xfb, 0x90,
  773. 0x39, 0xd7, 0x65, 0xda, 0x15, 0x9d, 0x92, 0xae, 0x5d, 0x97, 0x99, 0x8f,
  774. 0xbf, 0xb7, 0x64, 0x0e, 0x64, 0x2d, 0xa7, 0xc8, 0xf9, 0xff, 0x5d, 0x97,
  775. 0xad, 0x1b, 0xff, 0xde, 0x0f, 0x61, 0xa2, 0xa9, 0xef, 0xec, 0xe2, 0x7e,
  776. 0xa4, 0xbe, 0xb7, 0x8b, 0xfb, 0x9a, 0xfa, 0xee, 0x2e, 0xfe, 0x7c, 0x36,
  777. 0xf5, 0xfd, 0x5d, 0xfc, 0xd9, 0x6d, 0xea, 0x3b, 0xbc, 0xf8, 0x73, 0xeb,
  778. 0xd4, 0xf7, 0x78, 0x09, 0xaf, 0xfa, 0x0e, 0x15, 0xfe, 0x2e, 0x2f, 0x8b,
  779. 0x57, 0x7d, 0x5e, 0xcc, 0xff, 0x3b, 0x27, 0xdc, 0xea, 0x7b, 0x5b, 0xf8,
  780. 0xff, 0x12, 0x0d, 0xaf, 0xaa, 0x8b, 0xbf, 0xeb, 0xcb, 0xea, 0x55, 0x7f,
  781. 0x5b, 0xc3, 0xf3, 0x41, 0x5e, 0x55, 0x0e, 0xff, 0xbf, 0xa2, 0xc5, 0xad,
  782. 0xfe, 0x96, 0xe0, 0x69, 0xf4, 0xdd, 0xae, 0xe5, 0xfc, 0xbf, 0x8c, 0xdc,
  783. 0x70, 0x6e, 0x2b, 0x7f, 0xc7, 0xd8, 0xff, 0x00, 0x46, 0x8f, 0xd1, 0xa9,
  784. 0x9c, 0x4c, 0x00, 0x00
  785. };
  786. //==============================================================================
  787. #if JUCE_PUSH_NOTIFICATIONS && JUCE_MODULE_AVAILABLE_juce_gui_extra
  788. bool juce_handleNotificationIntent (void*);
  789. void juce_firebaseDeviceNotificationsTokenRefreshed (void*);
  790. void juce_firebaseRemoteNotificationReceived (void*);
  791. void juce_firebaseRemoteMessagesDeleted();
  792. void juce_firebaseRemoteMessageSent(void*);
  793. void juce_firebaseRemoteMessageSendError (void*, void*);
  794. #endif
  795. #if JUCE_IN_APP_PURCHASES && JUCE_MODULE_AVAILABLE_juce_product_unlocking
  796. void juce_handleOnResume();
  797. #else
  798. static void juce_handleOnResume() {}
  799. #endif
  800. //==============================================================================
  801. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  802. METHOD (create, "<init>", "(II)V")
  803. DECLARE_JNI_CLASS (AndroidLayoutParams, "android/view/ViewGroup$LayoutParams")
  804. #undef JNI_CLASS_MEMBERS
  805. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  806. METHOD (addView, "addView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V") \
  807. METHOD (removeView, "removeView", "(Landroid/view/View;)V") \
  808. METHOD (updateViewLayout, "updateViewLayout", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V")
  809. DECLARE_JNI_CLASS (AndroidViewManager, "android/view/ViewManager")
  810. #undef JNI_CLASS_MEMBERS
  811. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  812. METHOD (create, "<init>", "(IIIIIII)V") \
  813. FIELD (gravity, "gravity", "I") \
  814. FIELD (windowAnimations, "windowAnimations", "I")
  815. DECLARE_JNI_CLASS (AndroidWindowManagerLayoutParams, "android/view/WindowManager$LayoutParams")
  816. #undef JNI_CLASS_MEMBERS
  817. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  818. FIELD (layoutInDisplayCutoutMode, "layoutInDisplayCutoutMode", "I")
  819. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowManagerLayoutParams28, "android/view/WindowManager$LayoutParams", 28)
  820. #undef JNI_CLASS_MEMBERS
  821. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  822. METHOD (getDisplayCutout, "getDisplayCutout", "()Landroid/view/DisplayCutout;") \
  823. METHOD (consumeDisplayCutout, "consumeDisplayCutout", "()Landroid/view/WindowInsets;")
  824. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsets28, "android/view/WindowInsets", 28)
  825. #undef JNI_CLASS_MEMBERS
  826. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  827. METHOD (getInsets, "getInsets", "(I)Landroid/graphics/Insets;") \
  828. STATICFIELD (CONSUMED, "CONSUMED", "Landroid/view/WindowInsets;")
  829. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsets30, "android/view/WindowInsets", 30)
  830. #undef JNI_CLASS_MEMBERS
  831. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  832. METHOD (getSafeInsetBottom, "getSafeInsetBottom", "()I") \
  833. METHOD (getSafeInsetLeft, "getSafeInsetLeft", "()I") \
  834. METHOD (getSafeInsetRight, "getSafeInsetRight", "()I") \
  835. METHOD (getSafeInsetTop, "getSafeInsetTop", "()I")
  836. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidDisplayCutout, "android/view/DisplayCutout", 28)
  837. #undef JNI_CLASS_MEMBERS
  838. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  839. FIELD (bottom, "bottom", "I") \
  840. FIELD (left, "left", "I") \
  841. FIELD (right, "right", "I") \
  842. FIELD (top, "top", "I")
  843. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidGraphicsInsets, "android/graphics/Insets", 29)
  844. #undef JNI_CLASS_MEMBERS
  845. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  846. STATICMETHOD (ime, "ime", "()I") \
  847. STATICMETHOD (displayCutout, "displayCutout", "()I")
  848. DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsetsType, "android/view/WindowInsets$Type", 30)
  849. #undef JNI_CLASS_MEMBERS
  850. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  851. FIELD (first, "first", "Ljava/lang/Object;") \
  852. FIELD (second, "second", "Ljava/lang/Object;") \
  853. DECLARE_JNI_CLASS (AndroidPair, "android/util/Pair")
  854. #undef JNI_CLASS_MEMBERS
  855. //==============================================================================
  856. namespace
  857. {
  858. enum
  859. {
  860. SYSTEM_UI_FLAG_VISIBLE = 0,
  861. SYSTEM_UI_FLAG_LOW_PROFILE = 1,
  862. SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2,
  863. SYSTEM_UI_FLAG_FULLSCREEN = 4,
  864. SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512,
  865. SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024,
  866. SYSTEM_UI_FLAG_IMMERSIVE = 2048,
  867. SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096
  868. };
  869. constexpr int fullScreenFlags = SYSTEM_UI_FLAG_HIDE_NAVIGATION | SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
  870. constexpr int FLAG_NOT_FOCUSABLE = 0x8;
  871. }
  872. //==============================================================================
  873. static bool supportsDisplayCutout()
  874. {
  875. return getAndroidSDKVersion() >= 28;
  876. }
  877. static BorderSize<int> androidDisplayCutoutToBorderSize (LocalRef<jobject> displayCutout, double displayScale)
  878. {
  879. if (displayCutout == nullptr)
  880. return {};
  881. auto* env = getEnv();
  882. const auto getInset = [&] (jmethodID methodID)
  883. {
  884. return roundToInt (env->CallIntMethod (displayCutout, methodID) / displayScale);
  885. };
  886. return { getInset (AndroidDisplayCutout.getSafeInsetTop),
  887. getInset (AndroidDisplayCutout.getSafeInsetLeft),
  888. getInset (AndroidDisplayCutout.getSafeInsetBottom),
  889. getInset (AndroidDisplayCutout.getSafeInsetRight) };
  890. }
  891. static BorderSize<int> androidInsetsToBorderSize (LocalRef<jobject> insets, double displayScale)
  892. {
  893. if (insets == nullptr)
  894. return {};
  895. auto* env = getEnv();
  896. const auto getInset = [&] (jfieldID fieldID)
  897. {
  898. return roundToInt (env->GetIntField (insets, fieldID) / displayScale);
  899. };
  900. return { getInset (AndroidGraphicsInsets.top),
  901. getInset (AndroidGraphicsInsets.left),
  902. getInset (AndroidGraphicsInsets.bottom),
  903. getInset (AndroidGraphicsInsets.right) };
  904. }
  905. class JuceInsets
  906. {
  907. template <typename Display>
  908. static auto tieDisplay (Display& d) { return std::tie (d.safeAreaInsets, d.keyboardInsets); }
  909. public:
  910. BorderSize<int> displayCutout, keyboard;
  911. static auto tie ( Displays::Display& d) { return tieDisplay (d); }
  912. static auto tie (const Displays::Display& d) { return tieDisplay (d); }
  913. auto tie() const { return std::tie (displayCutout, keyboard); }
  914. };
  915. static JuceInsets getInsetsFromAndroidWindowInsets (LocalRef<jobject> windowInsets, double scale)
  916. {
  917. auto* env = getEnv();
  918. if (windowInsets == nullptr)
  919. return {};
  920. const auto displayCutout = [&]() -> BorderSize<int>
  921. {
  922. if (AndroidWindowInsets28.getDisplayCutout == nullptr)
  923. return {};
  924. const LocalRef<jobject> insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets28.getDisplayCutout) };
  925. return androidDisplayCutoutToBorderSize (insets, scale);
  926. }();
  927. const auto keyboard = [&]() -> BorderSize<int>
  928. {
  929. if (AndroidWindowInsetsType.ime == nullptr || AndroidWindowInsets30.getInsets == nullptr)
  930. return {};
  931. const auto mask = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.ime);
  932. const LocalRef<jobject> insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets30.getInsets, mask) };
  933. return androidInsetsToBorderSize (insets, scale);
  934. }();
  935. return { displayCutout, keyboard };
  936. }
  937. /* The usage of the KeyPress class relies on its keyCode member having the standard ASCII values
  938. represent ASCII keycodes. However in the native Android keycodes the values for special keys
  939. e.g. RETURN, F1-F12 overlap with the ASCII range. Hence we need to translate them.
  940. */
  941. static constexpr int translateAndroidKeyCode (int keyCode) noexcept
  942. {
  943. switch (keyCode)
  944. {
  945. case 7: return '0';
  946. case 8: return '1';
  947. case 9: return '2';
  948. case 10: return '3';
  949. case 11: return '4';
  950. case 12: return '5';
  951. case 13: return '6';
  952. case 14: return '7';
  953. case 15: return '8';
  954. case 16: return '9';
  955. case 17: return '*';
  956. case 18: return '#';
  957. case 19: return KeyPress::upKey; // KEYCODE_DPAD_UP
  958. case 20: return KeyPress::downKey; // KEYCODE_DPAD_DOWN
  959. case 21: return KeyPress::leftKey; // KEYCODE_DPAD_LEFT
  960. case 22: return KeyPress::rightKey; // KEYCODE_DPAD_RIGHT
  961. case 29: return 'A';
  962. case 30: return 'B';
  963. case 31: return 'C';
  964. case 32: return 'D';
  965. case 33: return 'E';
  966. case 34: return 'F';
  967. case 35: return 'G';
  968. case 36: return 'H';
  969. case 37: return 'I';
  970. case 38: return 'J';
  971. case 39: return 'K';
  972. case 40: return 'L';
  973. case 41: return 'M';
  974. case 42: return 'N';
  975. case 43: return 'O';
  976. case 44: return 'P';
  977. case 45: return 'Q';
  978. case 46: return 'R';
  979. case 47: return 'S';
  980. case 48: return 'T';
  981. case 49: return 'U';
  982. case 50: return 'V';
  983. case 51: return 'W';
  984. case 52: return 'X';
  985. case 53: return 'Y';
  986. case 54: return 'Z';
  987. case 55: return ',';
  988. case 56: return '.';
  989. case 61: return KeyPress::tabKey; // KEYCODE_TAB
  990. case 62: return KeyPress::spaceKey; // KEYCODE_SPACE
  991. case 66: return KeyPress::returnKey; // KEYCODE_ENTER
  992. case 67: return KeyPress::backspaceKey; // KEYCODE_DEL
  993. case 68: return '`';
  994. case 69: return '-';
  995. case 70: return '=';
  996. case 71: return '[';
  997. case 72: return ']';
  998. case 73: return '\\';
  999. case 74: return ';';
  1000. case 75: return '\'';
  1001. case 76: return '/';
  1002. case 77: return '@';
  1003. case 81: return '+';
  1004. case 85: return KeyPress::playKey; // KEYCODE_MEDIA_PLAY_PAUSE
  1005. case 86: return KeyPress::stopKey; // KEYCODE_MEDIA_STOP
  1006. case 87: return KeyPress::fastForwardKey; // KEYCODE_MEDIA_NEXT
  1007. case 88: return KeyPress::rewindKey; // KEYCODE_MEDIA_PREVIOUS
  1008. case 92: return KeyPress::pageUpKey; // KEYCODE_PAGE_UP
  1009. case 93: return KeyPress::pageDownKey; // KEYCODE_PAGE_DOWN
  1010. case 111: return KeyPress::escapeKey; // KEYCODE_ESCAPE
  1011. case 112: return KeyPress::deleteKey; // KEYCODE_FORWARD_DEL
  1012. case 122: return KeyPress::homeKey; // KEYCODE_MOVE_HOME
  1013. case 123: return KeyPress::endKey; // KEYCODE_MOVE_END
  1014. case 124: return KeyPress::insertKey; // KEYCODE_INSERT
  1015. case 131: return KeyPress::F1Key; // KEYCODE_F1
  1016. case 132: return KeyPress::F2Key; // KEYCODE_F2
  1017. case 133: return KeyPress::F3Key; // KEYCODE_F3
  1018. case 134: return KeyPress::F4Key; // KEYCODE_F4
  1019. case 135: return KeyPress::F5Key; // KEYCODE_F5
  1020. case 136: return KeyPress::F6Key; // KEYCODE_F6
  1021. case 137: return KeyPress::F7Key; // KEYCODE_F7
  1022. case 138: return KeyPress::F8Key; // KEYCODE_F8
  1023. case 139: return KeyPress::F9Key; // KEYCODE_F9
  1024. case 140: return KeyPress::F10Key; // KEYCODE_F10
  1025. case 141: return KeyPress::F11Key; // KEYCODE_F11
  1026. case 142: return KeyPress::F12Key; // KEYCODE_F12
  1027. case 144: return '0';
  1028. case 145: return '1';
  1029. case 146: return '2';
  1030. case 147: return '3';
  1031. case 148: return '4';
  1032. case 149: return '5';
  1033. case 150: return '6';
  1034. case 151: return '7';
  1035. case 152: return '8';
  1036. case 153: return '9';
  1037. case 154: return '/';
  1038. case 155: return '*';
  1039. case 156: return '-';
  1040. case 157: return '+';
  1041. case 158: return '.';
  1042. case 159: return ',';
  1043. case 161: return '=';
  1044. case 162: return '(';
  1045. case 163: return ')';
  1046. default: return 0;
  1047. }
  1048. }
  1049. static constexpr int translateAndroidKeyboardFlags (int javaFlags) noexcept
  1050. {
  1051. constexpr int metaShiftOn = 0x1;
  1052. constexpr int metaAltOn = 0x02;
  1053. constexpr int metaCtrlOn = 0x1000;
  1054. int flags = 0;
  1055. if ((javaFlags & metaShiftOn) != 0) flags |= ModifierKeys::shiftModifier;
  1056. if ((javaFlags & metaAltOn) != 0) flags |= ModifierKeys::altModifier;
  1057. if ((javaFlags & metaCtrlOn) != 0) flags |= ModifierKeys::ctrlModifier;
  1058. return flags;
  1059. }
  1060. //==============================================================================
  1061. class AndroidComponentPeer : public ComponentPeer,
  1062. private Timer
  1063. {
  1064. public:
  1065. AndroidComponentPeer (Component& comp, int windowStyleFlags, void* nativeViewHandle)
  1066. : ComponentPeer (comp, windowStyleFlags)
  1067. {
  1068. auto* env = getEnv();
  1069. // NB: must not put this in the initialiser list, as it invokes a callback,
  1070. // which will fail if the peer is only half-constructed.
  1071. view = GlobalRef (LocalRef<jobject> (env->NewObject (ComponentPeerView, ComponentPeerView.create,
  1072. getAppContext().get(), (jboolean) component.isOpaque(),
  1073. (jlong) this)));
  1074. if (nativeViewHandle != nullptr)
  1075. {
  1076. viewGroupIsWindow = false;
  1077. // we don't know if the user is holding on to a local ref to this, so
  1078. // explicitly create a new one
  1079. auto nativeView = LocalRef<jobject> (env->NewLocalRef (static_cast<jobject> (nativeViewHandle)));
  1080. if (env->IsInstanceOf (nativeView.get(), AndroidActivity))
  1081. {
  1082. viewGroup = GlobalRef (nativeView);
  1083. env->CallVoidMethod (viewGroup.get(), AndroidActivity.setContentView, view.get());
  1084. }
  1085. else if (env->IsInstanceOf (nativeView.get(), AndroidViewGroup))
  1086. {
  1087. viewGroup = GlobalRef (nativeView);
  1088. LocalRef<jobject> layoutParams (env->NewObject (AndroidLayoutParams, AndroidLayoutParams.create, -2, -2));
  1089. env->CallVoidMethod (view.get(), AndroidView.setLayoutParams, layoutParams.get());
  1090. env->CallVoidMethod ((jobject) viewGroup.get(), AndroidViewGroup.addView, view.get());
  1091. }
  1092. else
  1093. {
  1094. // the native handle you passed as a second argument to Component::addToDesktop must
  1095. // either be an Activity or a ViewGroup
  1096. jassertfalse;
  1097. }
  1098. }
  1099. else
  1100. {
  1101. viewGroupIsWindow = true;
  1102. LocalRef<jobject> viewLayoutParams (env->NewObject (AndroidLayoutParams, AndroidLayoutParams.create, -2, -2));
  1103. env->CallVoidMethod (view.get(), AndroidView.setLayoutParams, viewLayoutParams.get());
  1104. auto physicalBounds = (comp.getBoundsInParent().toFloat() * scale).toNearestInt();
  1105. view.callVoidMethod (AndroidView.layout,
  1106. physicalBounds.getX(), physicalBounds.getY(), physicalBounds.getRight(), physicalBounds.getBottom());
  1107. LocalRef<jobject> windowLayoutParams (env->NewObject (AndroidWindowManagerLayoutParams, AndroidWindowManagerLayoutParams.create,
  1108. physicalBounds.getWidth(), physicalBounds.getHeight(),
  1109. physicalBounds.getX(), physicalBounds.getY(),
  1110. TYPE_APPLICATION, FLAG_NOT_TOUCH_MODAL | FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_NO_LIMITS | FLAG_NOT_FOCUSABLE,
  1111. component.isOpaque() ? PIXEL_FORMAT_OPAQUE : PIXEL_FORMAT_TRANSPARENT));
  1112. env->SetIntField (windowLayoutParams.get(), AndroidWindowManagerLayoutParams.gravity, GRAVITY_LEFT | GRAVITY_TOP);
  1113. env->SetIntField (windowLayoutParams.get(), AndroidWindowManagerLayoutParams.windowAnimations, 0x01030000 /* android.R.style.Animation */);
  1114. if (supportsDisplayCutout())
  1115. {
  1116. if (const auto fieldID = AndroidWindowManagerLayoutParams28.layoutInDisplayCutoutMode)
  1117. env->SetIntField (windowLayoutParams, fieldID, LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS);
  1118. }
  1119. if (Desktop::getInstance().getKioskModeComponent() != nullptr)
  1120. setNavBarsHidden (true);
  1121. LocalRef<jobject> activity (getCurrentActivity());
  1122. if (activity == nullptr)
  1123. activity = getMainActivity();
  1124. viewGroup = GlobalRef (LocalRef<jobject> (env->CallObjectMethod (activity.get(), AndroidContext.getSystemService, javaString ("window").get())));
  1125. env->CallVoidMethod (viewGroup.get(), AndroidViewManager.addView, view.get(), windowLayoutParams.get());
  1126. }
  1127. if (supportsDisplayCutout())
  1128. {
  1129. if (const auto methodID = AndroidView23.setOnApplyWindowInsetsListener)
  1130. {
  1131. env->CallVoidMethod (view,
  1132. methodID,
  1133. CreateJavaInterface (new ViewWindowInsetsListener,
  1134. "android/view/View$OnApplyWindowInsetsListener").get());
  1135. }
  1136. }
  1137. if (isFocused())
  1138. handleFocusGain();
  1139. }
  1140. ~AndroidComponentPeer() override
  1141. {
  1142. stopTimer();
  1143. auto* env = getEnv();
  1144. env->CallVoidMethod (view, ComponentPeerView.clear);
  1145. frontWindow = nullptr;
  1146. GlobalRef localView (view);
  1147. GlobalRef localViewGroup (viewGroup);
  1148. callOnMessageThread ([env, localView, localViewGroup]
  1149. {
  1150. if (env->IsInstanceOf (localViewGroup.get(), AndroidActivity))
  1151. env->CallVoidMethod (localViewGroup.get(), AndroidActivity.setContentView, nullptr);
  1152. else
  1153. env->CallVoidMethod (localViewGroup.get(), AndroidViewManager.removeView, localView.get());
  1154. });
  1155. }
  1156. void* getNativeHandle() const override
  1157. {
  1158. return (void*) view.get();
  1159. }
  1160. void setVisible (bool shouldBeVisible) override
  1161. {
  1162. GlobalRef localView (view);
  1163. callOnMessageThread ([localView, shouldBeVisible]
  1164. {
  1165. localView.callVoidMethod (ComponentPeerView.setVisible, shouldBeVisible);
  1166. });
  1167. }
  1168. void setTitle (const String& title) override
  1169. {
  1170. view.callVoidMethod (ComponentPeerView.setViewName, javaString (title).get());
  1171. }
  1172. void setBounds (const Rectangle<int>& userRect, bool isNowFullScreen) override
  1173. {
  1174. auto bounds = (userRect.toFloat() * scale).toNearestInt();
  1175. if (MessageManager::getInstance()->isThisTheMessageThread())
  1176. {
  1177. fullScreen = isNowFullScreen;
  1178. view.callVoidMethod (AndroidView.layout,
  1179. bounds.getX(), bounds.getY(), bounds.getRight(), bounds.getBottom());
  1180. if (viewGroup != nullptr && viewGroupIsWindow)
  1181. {
  1182. auto* env = getEnv();
  1183. LocalRef<jobject> windowLayoutParams (env->NewObject (AndroidWindowManagerLayoutParams, AndroidWindowManagerLayoutParams.create,
  1184. bounds.getWidth(), bounds.getHeight(), bounds.getX(), bounds.getY(),
  1185. TYPE_APPLICATION, FLAG_NOT_TOUCH_MODAL | FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_NO_LIMITS,
  1186. component.isOpaque() ? PIXEL_FORMAT_OPAQUE : PIXEL_FORMAT_TRANSPARENT));
  1187. env->SetIntField (windowLayoutParams.get(), AndroidWindowManagerLayoutParams.gravity, GRAVITY_LEFT | GRAVITY_TOP);
  1188. env->CallVoidMethod (viewGroup.get(), AndroidViewManager.updateViewLayout, view.get(), windowLayoutParams.get());
  1189. }
  1190. }
  1191. else
  1192. {
  1193. GlobalRef localView (view);
  1194. MessageManager::callAsync ([localView, bounds]
  1195. {
  1196. localView.callVoidMethod (AndroidView.layout,
  1197. bounds.getX(), bounds.getY(), bounds.getRight(), bounds.getBottom());
  1198. });
  1199. }
  1200. }
  1201. Rectangle<int> getBounds() const override
  1202. {
  1203. Rectangle<int> bounds (view.callIntMethod (AndroidView.getLeft),
  1204. view.callIntMethod (AndroidView.getTop),
  1205. view.callIntMethod (AndroidView.getWidth),
  1206. view.callIntMethod (AndroidView.getHeight));
  1207. return (bounds.toFloat() / scale).toNearestInt();
  1208. }
  1209. void handleScreenSizeChange() override
  1210. {
  1211. ComponentPeer::handleScreenSizeChange();
  1212. if (isFullScreen())
  1213. setFullScreen (true);
  1214. }
  1215. Point<int> getScreenPosition() const
  1216. {
  1217. auto* env = getEnv();
  1218. LocalRef<jintArray> position (env->NewIntArray (2));
  1219. env->CallVoidMethod (view.get(), AndroidView.getLocationOnScreen, position.get());
  1220. jint* const screenPosition = env->GetIntArrayElements (position.get(), nullptr);
  1221. Point<int> pos (screenPosition[0], screenPosition[1]);
  1222. env->ReleaseIntArrayElements (position.get(), screenPosition, 0);
  1223. return pos;
  1224. }
  1225. Point<float> localToGlobal (Point<float> relativePosition) override
  1226. {
  1227. return relativePosition + (getScreenPosition().toFloat() / scale);
  1228. }
  1229. using ComponentPeer::localToGlobal;
  1230. Point<float> globalToLocal (Point<float> screenPosition) override
  1231. {
  1232. return screenPosition - (getScreenPosition().toFloat() / scale);
  1233. }
  1234. using ComponentPeer::globalToLocal;
  1235. void setMinimised (bool /*shouldBeMinimised*/) override
  1236. {
  1237. // n/a
  1238. }
  1239. bool isMinimised() const override
  1240. {
  1241. return false;
  1242. }
  1243. void setFullScreen (bool shouldBeFullScreen) override
  1244. {
  1245. if (shouldNavBarsBeHidden (shouldBeFullScreen))
  1246. {
  1247. if (isTimerRunning())
  1248. return;
  1249. startTimer (500);
  1250. }
  1251. else
  1252. {
  1253. setNavBarsHidden (false);
  1254. }
  1255. auto newBounds = [&]
  1256. {
  1257. if (navBarsHidden || shouldBeFullScreen)
  1258. if (auto* display = Desktop::getInstance().getDisplays().getPrimaryDisplay())
  1259. return navBarsHidden ? display->totalArea
  1260. : display->userArea;
  1261. return lastNonFullscreenBounds.isEmpty() ? getBounds() : lastNonFullscreenBounds;
  1262. }();
  1263. if (! newBounds.isEmpty())
  1264. setBounds (newBounds, shouldBeFullScreen);
  1265. component.repaint();
  1266. }
  1267. bool isFullScreen() const override
  1268. {
  1269. return fullScreen;
  1270. }
  1271. void setIcon (const Image& /*newIcon*/) override
  1272. {
  1273. // n/a
  1274. }
  1275. bool contains (Point<int> localPos, bool trueIfInAChildWindow) const override
  1276. {
  1277. return isPositiveAndBelow (localPos.x, component.getWidth())
  1278. && isPositiveAndBelow (localPos.y, component.getHeight())
  1279. && ((! trueIfInAChildWindow) || view.callBooleanMethod (ComponentPeerView.containsPoint,
  1280. (float) localPos.x * scale,
  1281. (float) localPos.y * scale));
  1282. }
  1283. OptionalBorderSize getFrameSizeIfPresent() const override
  1284. {
  1285. // TODO
  1286. return {};
  1287. }
  1288. BorderSize<int> getFrameSize() const override
  1289. {
  1290. // TODO
  1291. return {};
  1292. }
  1293. bool setAlwaysOnTop (bool /*alwaysOnTop*/) override
  1294. {
  1295. // TODO
  1296. return false;
  1297. }
  1298. void toFront (bool makeActive) override
  1299. {
  1300. // Avoid calling bringToFront excessively: it's very slow
  1301. if (frontWindow != this)
  1302. {
  1303. view.callVoidMethod (AndroidView.bringToFront);
  1304. frontWindow = this;
  1305. }
  1306. if (makeActive)
  1307. grabFocus();
  1308. handleBroughtToFront();
  1309. }
  1310. void toBehind (ComponentPeer*) override
  1311. {
  1312. // TODO
  1313. }
  1314. //==============================================================================
  1315. void handleMouseDownCallback (int index, Point<float> sysPos, int64 time)
  1316. {
  1317. lastMousePos = sysPos / scale;
  1318. auto pos = globalToLocal (lastMousePos);
  1319. // this forces a mouse-enter/up event, in case for some reason we didn't get a mouse-up before.
  1320. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1321. pos,
  1322. ModifierKeys::currentModifiers.withoutMouseButtons(),
  1323. MouseInputSource::defaultPressure,
  1324. MouseInputSource::defaultOrientation,
  1325. time,
  1326. {},
  1327. index);
  1328. if (isValidPeer (this))
  1329. handleMouseDragCallback (index, sysPos, time);
  1330. }
  1331. void handleMouseDragCallback (int index, Point<float> sysPos, int64 time)
  1332. {
  1333. lastMousePos = sysPos / scale;
  1334. auto pos = globalToLocal (lastMousePos);
  1335. jassert (index < 64);
  1336. touchesDown = (touchesDown | (1 << (index & 63)));
  1337. ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withoutMouseButtons().withFlags (ModifierKeys::leftButtonModifier);
  1338. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1339. pos,
  1340. ModifierKeys::currentModifiers.withoutMouseButtons().withFlags (ModifierKeys::leftButtonModifier),
  1341. MouseInputSource::defaultPressure,
  1342. MouseInputSource::defaultOrientation,
  1343. time,
  1344. {},
  1345. index);
  1346. }
  1347. void handleMouseUpCallback (int index, Point<float> sysPos, int64 time)
  1348. {
  1349. lastMousePos = sysPos / scale;
  1350. auto pos = globalToLocal (lastMousePos);
  1351. jassert (index < 64);
  1352. touchesDown = (touchesDown & ~(1 << (index & 63)));
  1353. if (touchesDown == 0)
  1354. ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withoutMouseButtons();
  1355. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1356. pos,
  1357. ModifierKeys::currentModifiers.withoutMouseButtons(),
  1358. MouseInputSource::defaultPressure,
  1359. MouseInputSource::defaultOrientation,
  1360. time,
  1361. {},
  1362. index);
  1363. handleMouseEvent (MouseInputSource::InputSourceType::touch,
  1364. MouseInputSource::offscreenMousePos,
  1365. ModifierKeys::currentModifiers.withoutMouseButtons(),
  1366. MouseInputSource::defaultPressure,
  1367. MouseInputSource::defaultOrientation,
  1368. time,
  1369. {},
  1370. index);
  1371. }
  1372. void handleAccessibilityHoverCallback (int command, Point<float> sysPos, int64)
  1373. {
  1374. enum
  1375. {
  1376. TYPE_VIEW_HOVER_ENTER = 0x00000080,
  1377. TYPE_VIEW_HOVER_EXIT = 0x00000100,
  1378. ACTION_HOVER_ENTER = 0x00000009,
  1379. ACTION_HOVER_MOVE = 0x00000007,
  1380. ACTION_HOVER_EXIT = 0x0000000a
  1381. };
  1382. if (auto* topHandler = component.getAccessibilityHandler())
  1383. {
  1384. if (auto* virtualHandler = topHandler->getChildAt ((sysPos / scale).roundToInt()))
  1385. {
  1386. switch (command)
  1387. {
  1388. case ACTION_HOVER_ENTER:
  1389. case ACTION_HOVER_MOVE:
  1390. AccessibilityNativeHandle::sendAccessibilityEventImpl (*virtualHandler, TYPE_VIEW_HOVER_ENTER, 0);
  1391. break;
  1392. case ACTION_HOVER_EXIT:
  1393. AccessibilityNativeHandle::sendAccessibilityEventImpl (*virtualHandler, TYPE_VIEW_HOVER_EXIT, 0);
  1394. break;
  1395. }
  1396. }
  1397. }
  1398. }
  1399. static void handleKeyDownCallback (JNIEnv*, AndroidComponentPeer& t, int k, int kc, int kbFlags)
  1400. {
  1401. ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withOnlyMouseButtons()
  1402. .withFlags (translateAndroidKeyboardFlags (kbFlags));
  1403. t.handleKeyPress (translateAndroidKeyCode (k), static_cast<juce_wchar> (kc));
  1404. }
  1405. static void handleKeyUpCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t, [[maybe_unused]] int k, [[maybe_unused]] int kc)
  1406. {
  1407. }
  1408. static void handleBackButtonCallback (JNIEnv* env, AndroidComponentPeer& t)
  1409. {
  1410. bool handled = false;
  1411. if (auto* app = JUCEApplicationBase::getInstance())
  1412. handled = app->backButtonPressed();
  1413. if (t.isKioskModeComponent())
  1414. t.setNavBarsHidden (t.navBarsHidden);
  1415. if (! handled)
  1416. {
  1417. LocalRef<jobject> activity (getCurrentActivity());
  1418. if (activity != nullptr)
  1419. {
  1420. if (const auto finishMethod = AndroidActivity.finish)
  1421. env->CallVoidMethod (activity.get(), finishMethod);
  1422. }
  1423. }
  1424. }
  1425. static void handleKeyboardHiddenCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t)
  1426. {
  1427. Component::unfocusAllComponents();
  1428. }
  1429. static void handleAppPausedCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t) {}
  1430. static void handleAppResumedCallback (JNIEnv*, AndroidComponentPeer& t)
  1431. {
  1432. if (t.isKioskModeComponent())
  1433. t.setNavBarsHidden (t.navBarsHidden);
  1434. }
  1435. static jlong handleGetFocusedTextInputTargetCallback (JNIEnv*, AndroidComponentPeer& t)
  1436. {
  1437. return reinterpret_cast<jlong> (t.findCurrentTextInputTarget());
  1438. }
  1439. static void handleMovedOrResizedCallback (JNIEnv*, AndroidComponentPeer& t)
  1440. {
  1441. t.handleMovedOrResized();
  1442. }
  1443. //==============================================================================
  1444. AccessibilityNativeHandle* getNativeHandleForViewId (jint virtualViewId) const
  1445. {
  1446. if (auto* handler = (virtualViewId == HOST_VIEW_ID
  1447. ? component.getAccessibilityHandler()
  1448. : AccessibilityNativeHandle::getAccessibilityHandlerForVirtualViewId (virtualViewId)))
  1449. {
  1450. return handler->getNativeImplementation();
  1451. }
  1452. return nullptr;
  1453. }
  1454. static jboolean populateAccessibilityNodeInfoCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId, jobject info)
  1455. {
  1456. if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
  1457. {
  1458. handle->populateNodeInfo (info);
  1459. return true;
  1460. }
  1461. return false;
  1462. }
  1463. static jboolean handlePerformActionCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId, jint action, jobject arguments)
  1464. {
  1465. if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
  1466. return handle->performAction (action, arguments);
  1467. return false;
  1468. }
  1469. static jobject getFocusViewIdForHandler (JNIEnv* env, const AccessibilityHandler* handler)
  1470. {
  1471. if (handler != nullptr)
  1472. return env->NewObject (JavaInteger,
  1473. JavaInteger.constructor,
  1474. handler->getNativeImplementation()->getVirtualViewId());
  1475. return nullptr;
  1476. }
  1477. static jobject getInputFocusViewIdCallback (JNIEnv* env, AndroidComponentPeer& t)
  1478. {
  1479. if (auto* comp = dynamic_cast<Component*> (t.findCurrentTextInputTarget()))
  1480. return getFocusViewIdForHandler (env, comp->getAccessibilityHandler());
  1481. return nullptr;
  1482. }
  1483. static jobject getAccessibilityFocusViewIdCallback (JNIEnv* env, const AndroidComponentPeer& t)
  1484. {
  1485. if (auto* handler = t.component.getAccessibilityHandler())
  1486. {
  1487. if (auto* modal = Component::getCurrentlyModalComponent())
  1488. {
  1489. if (! t.component.isParentOf (modal)
  1490. && t.component.isCurrentlyBlockedByAnotherModalComponent())
  1491. {
  1492. if (auto* modalHandler = modal->getAccessibilityHandler())
  1493. {
  1494. if (auto* focusChild = modalHandler->getChildFocus())
  1495. return getFocusViewIdForHandler (env, focusChild);
  1496. return getFocusViewIdForHandler (env, modalHandler);
  1497. }
  1498. }
  1499. }
  1500. if (auto* focusChild = handler->getChildFocus())
  1501. return getFocusViewIdForHandler (env, focusChild);
  1502. }
  1503. return nullptr;
  1504. }
  1505. //==============================================================================
  1506. bool isFocused() const override
  1507. {
  1508. if (view != nullptr)
  1509. return view.callBooleanMethod (AndroidView.hasFocus);
  1510. return false;
  1511. }
  1512. void grabFocus() override
  1513. {
  1514. if (view != nullptr)
  1515. view.callBooleanMethod (AndroidView.requestFocus);
  1516. }
  1517. static void handleFocusChangeCallback (JNIEnv*, AndroidComponentPeer& t, bool hasFocus)
  1518. {
  1519. if (t.isFullScreen())
  1520. t.setFullScreen (true);
  1521. if (hasFocus)
  1522. t.handleFocusGain();
  1523. else
  1524. t.handleFocusLoss();
  1525. }
  1526. void textInputRequired (Point<int>, TextInputTarget& target) override
  1527. {
  1528. const auto region = target.getHighlightedRegion();
  1529. view.callVoidMethod (ComponentPeerView.showKeyboard,
  1530. static_cast<jint> (target.getKeyboardType()),
  1531. static_cast<jint> (region.getStart()),
  1532. static_cast<jint> (region.getEnd()));
  1533. }
  1534. void closeInputMethodContext() override
  1535. {
  1536. getEnv()->CallVoidMethod (view, ComponentPeerView.closeInputMethodContext);
  1537. }
  1538. void dismissPendingTextInput() override
  1539. {
  1540. closeInputMethodContext();
  1541. view.callVoidMethod (ComponentPeerView.hideKeyboard);
  1542. if (! isTimerRunning())
  1543. startTimer (500);
  1544. }
  1545. //==============================================================================
  1546. static void handleDoFrameCallback (JNIEnv*, AndroidComponentPeer& t, [[maybe_unused]] int64 frameTimeNanos)
  1547. {
  1548. t.vBlankListeners.call ([] (auto& l) { l.onVBlank(); });
  1549. }
  1550. static void handlePaintCallback (JNIEnv* env, AndroidComponentPeer& t, jobject canvas, jobject paint)
  1551. {
  1552. jobject rect = env->CallObjectMethod (canvas, AndroidCanvas.getClipBounds);
  1553. auto left = env->GetIntField (rect, AndroidRect.left);
  1554. auto top = env->GetIntField (rect, AndroidRect.top);
  1555. auto right = env->GetIntField (rect, AndroidRect.right);
  1556. auto bottom = env->GetIntField (rect, AndroidRect.bottom);
  1557. env->DeleteLocalRef (rect);
  1558. auto clip = Rectangle<int>::leftTopRightBottom (left, top, right, bottom);
  1559. if (clip.isEmpty())
  1560. return;
  1561. auto sizeNeeded = clip.getWidth() * clip.getHeight();
  1562. if (t.sizeAllocated < sizeNeeded)
  1563. {
  1564. t.buffer.clear();
  1565. t.sizeAllocated = sizeNeeded;
  1566. t.buffer = GlobalRef (LocalRef<jobject> ((jobject) env->NewIntArray (sizeNeeded)));
  1567. }
  1568. if (jint* dest = env->GetIntArrayElements ((jintArray) t.buffer.get(), nullptr))
  1569. {
  1570. {
  1571. Image temp (new PreallocatedImage (clip.getWidth(), clip.getHeight(),
  1572. dest, ! t.component.isOpaque()));
  1573. {
  1574. LowLevelGraphicsSoftwareRenderer g (temp);
  1575. g.setOrigin (-clip.getPosition());
  1576. g.addTransform (AffineTransform::scale (t.scale));
  1577. t.handlePaint (g);
  1578. }
  1579. }
  1580. env->ReleaseIntArrayElements ((jintArray) t.buffer.get(), dest, 0);
  1581. env->CallVoidMethod (canvas, AndroidCanvas.drawBitmap, (jintArray) t.buffer.get(), 0, clip.getWidth(),
  1582. (jfloat) clip.getX(), (jfloat) clip.getY(),
  1583. clip.getWidth(), clip.getHeight(), true, paint);
  1584. }
  1585. }
  1586. void repaint (const Rectangle<int>& userArea) override
  1587. {
  1588. auto area = (userArea.toFloat() * scale).toNearestInt();
  1589. GlobalRef localView (view);
  1590. callOnMessageThread ([area, localView]
  1591. {
  1592. localView.callVoidMethod (AndroidView.invalidate,
  1593. area.getX(), area.getY(), area.getRight(), area.getBottom());
  1594. });
  1595. }
  1596. void performAnyPendingRepaintsNow() override
  1597. {
  1598. // TODO
  1599. }
  1600. void setAlpha (float /*newAlpha*/) override
  1601. {
  1602. // TODO
  1603. }
  1604. StringArray getAvailableRenderingEngines() override
  1605. {
  1606. return StringArray ("Software Renderer");
  1607. }
  1608. //==============================================================================
  1609. static Point<float> lastMousePos;
  1610. static int64 touchesDown;
  1611. //==============================================================================
  1612. struct StartupActivityCallbackListener : public ActivityLifecycleCallbacks
  1613. {
  1614. void onActivityStarted (jobject /*activity*/) override
  1615. {
  1616. auto* env = getEnv();
  1617. LocalRef<jobject> appContext (getAppContext());
  1618. if (appContext.get() != nullptr)
  1619. {
  1620. env->CallVoidMethod (appContext.get(),
  1621. AndroidApplication.unregisterActivityLifecycleCallbacks,
  1622. activityCallbackListener.get());
  1623. clear();
  1624. activityCallbackListener.clear();
  1625. forceDisplayUpdate();
  1626. }
  1627. }
  1628. };
  1629. private:
  1630. template <auto Member>
  1631. static void mouseCallbackWrapper (JNIEnv*, AndroidComponentPeer& t, jint i, jfloat x, jfloat y, jlong time) { return (t.*Member) (i, Point<float> { x, y }, time); }
  1632. //==============================================================================
  1633. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  1634. METHOD (create, "<init>", "(Landroid/content/Context;ZJ)V") \
  1635. METHOD (clear, "clear", "()V") \
  1636. METHOD (setViewName, "setViewName", "(Ljava/lang/String;)V") \
  1637. METHOD (setVisible, "setVisible", "(Z)V") \
  1638. METHOD (isVisible, "isVisible", "()Z") \
  1639. METHOD (containsPoint, "containsPoint", "(II)Z") \
  1640. METHOD (showKeyboard, "showKeyboard", "(III)V") \
  1641. METHOD (hideKeyboard, "hideKeyboard", "()V") \
  1642. METHOD (closeInputMethodContext, "closeInputMethodContext", "()V") \
  1643. METHOD (setSystemUiVisibilityCompat, "setSystemUiVisibilityCompat", "(I)V") \
  1644. CALLBACK (generatedCallback<&AndroidComponentPeer::handleDoFrameCallback>, "handleDoFrame", "(JJ)V") \
  1645. CALLBACK (generatedCallback<&AndroidComponentPeer::handlePaintCallback>, "handlePaint", "(JLandroid/graphics/Canvas;Landroid/graphics/Paint;)V") \
  1646. CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyDownCallback>, "handleKeyDown", "(JIII)V") \
  1647. CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyUpCallback>, "handleKeyUp", "(JII)V") \
  1648. CALLBACK (generatedCallback<&AndroidComponentPeer::handleBackButtonCallback>, "handleBackButton", "(J)V") \
  1649. CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyboardHiddenCallback>, "handleKeyboardHidden", "(J)V") \
  1650. CALLBACK (generatedCallback<&AndroidComponentPeer::handleGetFocusedTextInputTargetCallback>, "getFocusedTextInputTargetPointer", "(J)J") \
  1651. CALLBACK (generatedCallback<&AndroidComponentPeer::handleMovedOrResizedCallback>, "viewSizeChanged", "(J)V") \
  1652. CALLBACK (generatedCallback<&AndroidComponentPeer::handleFocusChangeCallback>, "focusChanged", "(JZ)V") \
  1653. CALLBACK (generatedCallback<&AndroidComponentPeer::handleAppPausedCallback>, "handleAppPaused", "(J)V") \
  1654. CALLBACK (generatedCallback<&AndroidComponentPeer::handleAppResumedCallback>, "handleAppResumed", "(J)V") \
  1655. CALLBACK (generatedCallback<&AndroidComponentPeer::populateAccessibilityNodeInfoCallback>, "populateAccessibilityNodeInfo", "(JILandroid/view/accessibility/AccessibilityNodeInfo;)Z") \
  1656. CALLBACK (generatedCallback<&AndroidComponentPeer::handlePerformActionCallback>, "handlePerformAction", "(JIILandroid/os/Bundle;)Z") \
  1657. CALLBACK (generatedCallback<&AndroidComponentPeer::getInputFocusViewIdCallback>, "getInputFocusViewId", "(J)Ljava/lang/Integer;") \
  1658. CALLBACK (generatedCallback<&AndroidComponentPeer::getAccessibilityFocusViewIdCallback>, "getAccessibilityFocusViewId", "(J)Ljava/lang/Integer;") \
  1659. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetIsTextInputActive>, "textInputTargetIsTextInputActive", "(J)Z") \
  1660. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetHighlightedRegionBegin>, "textInputTargetGetHighlightedRegionBegin", "(J)I") \
  1661. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetHighlightedRegionEnd>, "textInputTargetGetHighlightedRegionEnd", "(J)I") \
  1662. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetSetHighlightedRegion>, "textInputTargetSetHighlightedRegion", "(JII)V") \
  1663. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetTextInRange>, "textInputTargetGetTextInRange", "(JII)Ljava/lang/String;") \
  1664. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetInsertTextAtCaret>, "textInputTargetInsertTextAtCaret", "(JLjava/lang/String;)V") \
  1665. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetCaretPosition>, "textInputTargetGetCaretPosition", "(J)I") \
  1666. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetTotalNumChars>, "textInputTargetGetTotalNumChars", "(J)I") \
  1667. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetCharIndexForPoint>, "textInputTargetGetCharIndexForPoint", "(JLandroid/graphics/Point;)I") \
  1668. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetKeyboardType>, "textInputTargetGetKeyboardType", "(J)I") \
  1669. CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetSetTemporaryUnderlining>, "textInputTargetSetTemporaryUnderlining", "(JLjava/util/List;)V") \
  1670. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseDownCallback>>, "handleMouseDown", "(JIFFJ)V") \
  1671. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseDragCallback>>, "handleMouseDrag", "(JIFFJ)V") \
  1672. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseUpCallback>>, "handleMouseUp", "(JIFFJ)V") \
  1673. CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleAccessibilityHoverCallback>>, "handleAccessibilityHover", "(JIFFJ)V") \
  1674. DECLARE_JNI_CLASS_WITH_BYTECODE (ComponentPeerView, "com/rmsl/juce/ComponentPeerView", 16, javaComponentPeerView)
  1675. #undef JNI_CLASS_MEMBERS
  1676. static jboolean textInputTargetIsTextInputActive (JNIEnv*, const TextInputTarget& t)
  1677. {
  1678. return t.isTextInputActive();
  1679. }
  1680. static jint textInputTargetGetHighlightedRegionBegin (JNIEnv*, const TextInputTarget& t)
  1681. {
  1682. return t.getHighlightedRegion().getStart();
  1683. }
  1684. static jint textInputTargetGetHighlightedRegionEnd (JNIEnv*, const TextInputTarget& t)
  1685. {
  1686. return t.getHighlightedRegion().getEnd();
  1687. }
  1688. static void textInputTargetSetHighlightedRegion (JNIEnv*, TextInputTarget& t, jint b, jint e)
  1689. {
  1690. t.setHighlightedRegion ({ b, e });
  1691. }
  1692. static jstring textInputTargetGetTextInRange (JNIEnv* env, const TextInputTarget& t, jint b, jint e)
  1693. {
  1694. return env->NewStringUTF (t.getTextInRange ({ b, e }).toUTF8());
  1695. }
  1696. static void textInputTargetInsertTextAtCaret (JNIEnv*, TextInputTarget& t, jstring text)
  1697. {
  1698. t.insertTextAtCaret (juceString (text));
  1699. }
  1700. static jint textInputTargetGetCaretPosition (JNIEnv*, const TextInputTarget& t)
  1701. {
  1702. return t.getCaretPosition();
  1703. }
  1704. static jint textInputTargetGetTotalNumChars (JNIEnv*, const TextInputTarget& t)
  1705. {
  1706. return t.getTotalNumChars();
  1707. }
  1708. static jint textInputTargetGetCharIndexForPoint (JNIEnv* env, const TextInputTarget& t, jobject point)
  1709. {
  1710. return t.getCharIndexForPoint ({ env->GetIntField (point, AndroidPoint.x),
  1711. env->GetIntField (point, AndroidPoint.y) });
  1712. }
  1713. static jint textInputTargetGetKeyboardType (JNIEnv*, TextInputTarget& t)
  1714. {
  1715. return t.getKeyboardType();
  1716. }
  1717. static std::optional<Range<int>> getRangeFromPair (JNIEnv* env, jobject pair)
  1718. {
  1719. if (pair == nullptr)
  1720. return {};
  1721. const auto first = env->GetObjectField (pair, AndroidPair.first);
  1722. const auto second = env->GetObjectField (pair, AndroidPair.second);
  1723. if (first == nullptr || second == nullptr)
  1724. return {};
  1725. const auto begin = env->CallIntMethod (first, JavaInteger.intValue);
  1726. const auto end = env->CallIntMethod (second, JavaInteger.intValue);
  1727. return Range<int> { begin, end };
  1728. }
  1729. static Array<Range<int>> javaListOfPairToArrayOfRange (JNIEnv* env, jobject list)
  1730. {
  1731. if (list == nullptr)
  1732. return {};
  1733. Array<Range<int>> result;
  1734. for (jint i = 0; i < env->CallIntMethod (list, JavaList.size); ++i)
  1735. if (const auto range = getRangeFromPair (env, env->CallObjectMethod (list, JavaList.get, i)))
  1736. result.add (*range);
  1737. return result;
  1738. }
  1739. static void textInputTargetSetTemporaryUnderlining (JNIEnv* env, TextInputTarget& t, jobject list)
  1740. {
  1741. t.setTemporaryUnderlining (javaListOfPairToArrayOfRange (env, list));
  1742. }
  1743. //==============================================================================
  1744. class ViewWindowInsetsListener : public juce::AndroidInterfaceImplementer
  1745. {
  1746. public:
  1747. jobject onApplyWindowInsets (LocalRef<jobject>, LocalRef<jobject> insets)
  1748. {
  1749. auto* env = getEnv();
  1750. const auto& mainDisplay = *Desktop::getInstance().getDisplays().getPrimaryDisplay();
  1751. const auto newInsets = getInsetsFromAndroidWindowInsets (insets, mainDisplay.scale);
  1752. if (newInsets.tie() != JuceInsets::tie (mainDisplay))
  1753. forceDisplayUpdate();
  1754. if (const auto fieldId = AndroidWindowInsets30.CONSUMED)
  1755. return env->GetStaticObjectField (AndroidWindowInsets30, fieldId);
  1756. return env->CallObjectMethod (insets, AndroidWindowInsets28.consumeDisplayCutout);
  1757. }
  1758. private:
  1759. jobject invoke (jobject proxy, jobject method, jobjectArray args) override
  1760. {
  1761. auto* env = getEnv();
  1762. auto methodName = juce::juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));
  1763. if (methodName == "onApplyWindowInsets")
  1764. {
  1765. jassert (env->GetArrayLength (args) == 2);
  1766. LocalRef<jobject> windowView (env->GetObjectArrayElement (args, 0));
  1767. LocalRef<jobject> insets (env->GetObjectArrayElement (args, 1));
  1768. return onApplyWindowInsets (std::move (windowView), std::move (insets));
  1769. }
  1770. // invoke base class
  1771. return AndroidInterfaceImplementer::invoke (proxy, method, args);
  1772. }
  1773. };
  1774. //==============================================================================
  1775. struct PreallocatedImage : public ImagePixelData
  1776. {
  1777. PreallocatedImage (int width_, int height_, jint* data_, bool hasAlpha_)
  1778. : ImagePixelData (Image::ARGB, width_, height_), data (data_), hasAlpha (hasAlpha_)
  1779. {
  1780. if (hasAlpha_)
  1781. zeromem (data_, static_cast<size_t> (width * height) * sizeof (jint));
  1782. }
  1783. ~PreallocatedImage() override
  1784. {
  1785. if (hasAlpha)
  1786. {
  1787. auto pix = (PixelARGB*) data;
  1788. for (int i = width * height; --i >= 0;)
  1789. {
  1790. pix->unpremultiply();
  1791. ++pix;
  1792. }
  1793. }
  1794. }
  1795. std::unique_ptr<ImageType> createType() const override
  1796. {
  1797. return std::make_unique<SoftwareImageType>();
  1798. }
  1799. std::unique_ptr<LowLevelGraphicsContext> createLowLevelContext() override
  1800. {
  1801. return std::make_unique<LowLevelGraphicsSoftwareRenderer> (Image (this));
  1802. }
  1803. void initialiseBitmapData (Image::BitmapData& bm, int x, int y, Image::BitmapData::ReadWriteMode /*mode*/) override
  1804. {
  1805. bm.lineStride = width * static_cast<int> (sizeof (jint));
  1806. bm.pixelStride = static_cast<int> (sizeof (jint));
  1807. bm.pixelFormat = Image::ARGB;
  1808. const auto offset = (size_t) x + (size_t) y * (size_t) width;
  1809. bm.data = (uint8*) (data + offset);
  1810. bm.size = sizeof (jint) * (((size_t) height * (size_t) width) - offset);
  1811. }
  1812. ImagePixelData::Ptr clone() override
  1813. {
  1814. auto s = new PreallocatedImage (width, height, nullptr, hasAlpha);
  1815. s->allocatedData.malloc (sizeof (jint) * static_cast<size_t> (width * height));
  1816. s->data = s->allocatedData;
  1817. memcpy (s->data, data, sizeof (jint) * static_cast<size_t> (width * height));
  1818. return s;
  1819. }
  1820. private:
  1821. jint* data;
  1822. HeapBlock<jint> allocatedData;
  1823. bool hasAlpha;
  1824. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PreallocatedImage)
  1825. };
  1826. //==============================================================================
  1827. void timerCallback() override
  1828. {
  1829. setNavBarsHidden (shouldNavBarsBeHidden (fullScreen));
  1830. setFullScreen (fullScreen);
  1831. stopTimer();
  1832. }
  1833. bool isKioskModeComponent() const
  1834. {
  1835. if (auto* kiosk = Desktop::getInstance().getKioskModeComponent())
  1836. return kiosk->getPeer() == this;
  1837. return false;
  1838. }
  1839. bool shouldNavBarsBeHidden (bool shouldBeFullScreen) const
  1840. {
  1841. return (shouldBeFullScreen && isKioskModeComponent());
  1842. }
  1843. void setNavBarsHidden (bool hidden)
  1844. {
  1845. if (navBarsHidden != hidden)
  1846. {
  1847. navBarsHidden = hidden;
  1848. view.callVoidMethod (ComponentPeerView.setSystemUiVisibilityCompat,
  1849. (navBarsHidden ? (jint) (fullScreenFlags) : (jint) (SYSTEM_UI_FLAG_VISIBLE)));
  1850. }
  1851. }
  1852. template <typename Callback>
  1853. static void callOnMessageThread (Callback&& callback)
  1854. {
  1855. if (MessageManager::getInstance()->isThisTheMessageThread())
  1856. callback();
  1857. else
  1858. MessageManager::callAsync (std::forward<Callback> (callback));
  1859. }
  1860. //==============================================================================
  1861. friend class Displays;
  1862. static AndroidComponentPeer* frontWindow;
  1863. static GlobalRef activityCallbackListener;
  1864. static constexpr int GRAVITY_LEFT = 0x3, GRAVITY_TOP = 0x30;
  1865. static constexpr int TYPE_APPLICATION = 0x2;
  1866. static constexpr int FLAG_NOT_TOUCH_MODAL = 0x20, FLAG_LAYOUT_IN_SCREEN = 0x100, FLAG_LAYOUT_NO_LIMITS = 0x200;
  1867. static constexpr int PIXEL_FORMAT_OPAQUE = -1, PIXEL_FORMAT_TRANSPARENT = -2;
  1868. static constexpr int LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS = 0x3;
  1869. GlobalRef view, viewGroup, buffer;
  1870. bool viewGroupIsWindow = false, fullScreen = false, navBarsHidden = false;
  1871. int sizeAllocated = 0;
  1872. float scale = (float) Desktop::getInstance().getDisplays().getPrimaryDisplay()->scale;
  1873. //==============================================================================
  1874. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidComponentPeer)
  1875. };
  1876. Point<float> AndroidComponentPeer::lastMousePos;
  1877. int64 AndroidComponentPeer::touchesDown = 0;
  1878. AndroidComponentPeer* AndroidComponentPeer::frontWindow = nullptr;
  1879. GlobalRef AndroidComponentPeer::activityCallbackListener;
  1880. //==============================================================================
  1881. ComponentPeer* Component::createNewPeer (int styleFlags, void* nativeWindow)
  1882. {
  1883. return new AndroidComponentPeer (*this, styleFlags, nativeWindow);
  1884. }
  1885. //==============================================================================
  1886. bool Desktop::canUseSemiTransparentWindows() noexcept
  1887. {
  1888. return true;
  1889. }
  1890. class Desktop::NativeDarkModeChangeDetectorImpl : public ActivityLifecycleCallbacks
  1891. {
  1892. public:
  1893. NativeDarkModeChangeDetectorImpl()
  1894. {
  1895. LocalRef<jobject> appContext (getAppContext());
  1896. if (appContext != nullptr)
  1897. {
  1898. auto* env = getEnv();
  1899. myself = GlobalRef (CreateJavaInterface (this, "android/app/Application$ActivityLifecycleCallbacks"));
  1900. env->CallVoidMethod (appContext.get(), AndroidApplication.registerActivityLifecycleCallbacks, myself.get());
  1901. }
  1902. }
  1903. ~NativeDarkModeChangeDetectorImpl() override
  1904. {
  1905. LocalRef<jobject> appContext (getAppContext());
  1906. if (appContext != nullptr && myself != nullptr)
  1907. {
  1908. auto* env = getEnv();
  1909. env->CallVoidMethod (appContext.get(),
  1910. AndroidApplication.unregisterActivityLifecycleCallbacks,
  1911. myself.get());
  1912. clear();
  1913. myself.clear();
  1914. }
  1915. }
  1916. bool isDarkModeEnabled() const noexcept { return darkModeEnabled; }
  1917. void onActivityStarted (jobject /*activity*/) override
  1918. {
  1919. const auto isEnabled = getDarkModeSetting();
  1920. if (darkModeEnabled != isEnabled)
  1921. {
  1922. darkModeEnabled = isEnabled;
  1923. Desktop::getInstance().darkModeChanged();
  1924. }
  1925. }
  1926. private:
  1927. static bool getDarkModeSetting()
  1928. {
  1929. auto* env = getEnv();
  1930. const LocalRef<jobject> resources (env->CallObjectMethod (getAppContext().get(), AndroidContext.getResources));
  1931. const LocalRef<jobject> configuration (env->CallObjectMethod (resources, AndroidResources.getConfiguration));
  1932. const auto uiMode = env->GetIntField (configuration, AndroidConfiguration.uiMode);
  1933. return ((uiMode & UI_MODE_NIGHT_MASK) == UI_MODE_NIGHT_YES);
  1934. }
  1935. static constexpr int UI_MODE_NIGHT_MASK = 0x00000030,
  1936. UI_MODE_NIGHT_NO = 0x00000010,
  1937. UI_MODE_NIGHT_UNDEFINED = 0x00000000,
  1938. UI_MODE_NIGHT_YES = 0x00000020;
  1939. GlobalRef myself;
  1940. bool darkModeEnabled = getDarkModeSetting();
  1941. //==============================================================================
  1942. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NativeDarkModeChangeDetectorImpl)
  1943. };
  1944. std::unique_ptr<Desktop::NativeDarkModeChangeDetectorImpl> Desktop::createNativeDarkModeChangeDetectorImpl()
  1945. {
  1946. return std::make_unique<NativeDarkModeChangeDetectorImpl>();
  1947. }
  1948. bool Desktop::isDarkModeActive() const
  1949. {
  1950. return nativeDarkModeChangeDetectorImpl->isDarkModeEnabled();
  1951. }
  1952. double Desktop::getDefaultMasterScale()
  1953. {
  1954. return 1.0;
  1955. }
  1956. Desktop::DisplayOrientation Desktop::getCurrentOrientation() const
  1957. {
  1958. enum
  1959. {
  1960. ROTATION_0 = 0,
  1961. ROTATION_90 = 1,
  1962. ROTATION_180 = 2,
  1963. ROTATION_270 = 3
  1964. };
  1965. JNIEnv* env = getEnv();
  1966. LocalRef<jstring> windowServiceString (javaString ("window"));
  1967. LocalRef<jobject> windowManager = LocalRef<jobject> (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, windowServiceString.get()));
  1968. if (windowManager.get() != nullptr)
  1969. {
  1970. LocalRef<jobject> display = LocalRef<jobject> (env->CallObjectMethod (windowManager, AndroidWindowManager.getDefaultDisplay));
  1971. if (display.get() != nullptr)
  1972. {
  1973. int rotation = env->CallIntMethod (display, AndroidDisplay.getRotation);
  1974. switch (rotation)
  1975. {
  1976. case ROTATION_0: return upright;
  1977. case ROTATION_90: return rotatedAntiClockwise;
  1978. case ROTATION_180: return upsideDown;
  1979. case ROTATION_270: return rotatedClockwise;
  1980. }
  1981. }
  1982. }
  1983. jassertfalse;
  1984. return upright;
  1985. }
  1986. bool detail::MouseInputSourceList::addSource()
  1987. {
  1988. addSource (sources.size(), MouseInputSource::InputSourceType::touch);
  1989. return true;
  1990. }
  1991. bool detail::MouseInputSourceList::canUseTouch() const
  1992. {
  1993. return true;
  1994. }
  1995. Point<float> MouseInputSource::getCurrentRawMousePosition()
  1996. {
  1997. return AndroidComponentPeer::lastMousePos;
  1998. }
  1999. void MouseInputSource::setRawMousePosition (Point<float>)
  2000. {
  2001. // not needed
  2002. }
  2003. //==============================================================================
  2004. bool KeyPress::isKeyCurrentlyDown (int /*keyCode*/)
  2005. {
  2006. // TODO
  2007. return false;
  2008. }
  2009. JUCE_API void JUCE_CALLTYPE Process::hide()
  2010. {
  2011. auto* env = getEnv();
  2012. LocalRef<jobject> currentActivity (getCurrentActivity().get());
  2013. if (env->CallBooleanMethod (currentActivity.get(), AndroidActivity.moveTaskToBack, true) == 0)
  2014. {
  2015. GlobalRef intent (LocalRef<jobject> (env->NewObject (AndroidIntent, AndroidIntent.constructor)));
  2016. env->CallObjectMethod (intent, AndroidIntent.setAction, javaString ("android.intent.action.MAIN") .get());
  2017. env->CallObjectMethod (intent, AndroidIntent.addCategory, javaString ("android.intent.category.HOME").get());
  2018. env->CallVoidMethod (currentActivity.get(), AndroidContext.startActivity, intent.get());
  2019. }
  2020. }
  2021. //==============================================================================
  2022. // TODO
  2023. JUCE_API bool JUCE_CALLTYPE Process::isForegroundProcess() { return true; }
  2024. JUCE_API void JUCE_CALLTYPE Process::makeForegroundProcess() {}
  2025. //==============================================================================
  2026. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2027. METHOD (show, "show", "()V") \
  2028. METHOD (getWindow, "getWindow", "()Landroid/view/Window;")
  2029. DECLARE_JNI_CLASS (AndroidDialog, "android/app/Dialog")
  2030. #undef JNI_CLASS_MEMBERS
  2031. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2032. METHOD (construct, "<init>", "(Landroid/content/Context;)V") \
  2033. METHOD (create, "create", "()Landroid/app/AlertDialog;") \
  2034. METHOD (setTitle, "setTitle", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;") \
  2035. METHOD (setMessage, "setMessage", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;") \
  2036. METHOD (setCancelable, "setCancelable", "(Z)Landroid/app/AlertDialog$Builder;") \
  2037. METHOD (setOnCancelListener, "setOnCancelListener", "(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;") \
  2038. METHOD (setPositiveButton, "setPositiveButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;") \
  2039. METHOD (setNegativeButton, "setNegativeButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;") \
  2040. METHOD (setNeutralButton, "setNeutralButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;")
  2041. DECLARE_JNI_CLASS (AndroidAlertDialogBuilder, "android/app/AlertDialog$Builder")
  2042. #undef JNI_CLASS_MEMBERS
  2043. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2044. METHOD (dismiss, "dismiss", "()V")
  2045. DECLARE_JNI_CLASS (AndroidDialogInterface, "android/content/DialogInterface")
  2046. #undef JNI_CLASS_MEMBERS
  2047. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2048. DECLARE_JNI_CLASS (AndroidDialogOnClickListener, "android/content/DialogInterface$OnClickListener")
  2049. #undef JNI_CLASS_MEMBERS
  2050. //==============================================================================
  2051. class DialogListener : public juce::AndroidInterfaceImplementer
  2052. {
  2053. public:
  2054. explicit DialogListener (std::function<void()> cb) : callback (std::move (cb)) {}
  2055. jobject invoke (jobject proxy, jobject method, jobjectArray args) override
  2056. {
  2057. auto* env = getEnv();
  2058. auto methodName = juce::juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));
  2059. if (methodName == "onCancel" || methodName == "onClick")
  2060. {
  2061. auto* dialog = env->GetObjectArrayElement (args, 0);
  2062. env->CallVoidMethod (dialog, AndroidDialogInterface.dismiss);
  2063. NullCheckedInvocation::invoke (callback);
  2064. return nullptr;
  2065. }
  2066. // invoke base class
  2067. return AndroidInterfaceImplementer::invoke (proxy, method, args);
  2068. }
  2069. private:
  2070. std::function<void()> callback;
  2071. };
  2072. //==============================================================================
  2073. static bool androidScreenSaverEnabled = true;
  2074. void Desktop::setScreenSaverEnabled (bool shouldEnable)
  2075. {
  2076. constexpr auto FLAG_KEEP_SCREEN_ON = 0x80;
  2077. if (shouldEnable != androidScreenSaverEnabled)
  2078. {
  2079. LocalRef<jobject> activity (getMainActivity());
  2080. if (activity != nullptr)
  2081. {
  2082. auto* env = getEnv();
  2083. LocalRef<jobject> mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow));
  2084. env->CallVoidMethod (mainWindow.get(), AndroidWindow.setFlags, shouldEnable ? 0 : FLAG_KEEP_SCREEN_ON, FLAG_KEEP_SCREEN_ON);
  2085. }
  2086. androidScreenSaverEnabled = shouldEnable;
  2087. }
  2088. }
  2089. bool Desktop::isScreenSaverEnabled()
  2090. {
  2091. return androidScreenSaverEnabled;
  2092. }
  2093. //==============================================================================
  2094. void Desktop::setKioskComponent (Component* kioskComp, bool enableOrDisable, [[maybe_unused]] bool allowMenusAndBars)
  2095. {
  2096. if (AndroidComponentPeer* peer = dynamic_cast<AndroidComponentPeer*> (kioskComp->getPeer()))
  2097. peer->setFullScreen (enableOrDisable);
  2098. else
  2099. jassertfalse; // (this should have been checked by the caller)
  2100. }
  2101. //==============================================================================
  2102. static jint getAndroidOrientationFlag (int orientations) noexcept
  2103. {
  2104. enum
  2105. {
  2106. SCREEN_ORIENTATION_LANDSCAPE = 0,
  2107. SCREEN_ORIENTATION_PORTRAIT = 1,
  2108. SCREEN_ORIENTATION_USER = 2,
  2109. SCREEN_ORIENTATION_REVERSE_LANDSCAPE = 8,
  2110. SCREEN_ORIENTATION_REVERSE_PORTRAIT = 9,
  2111. SCREEN_ORIENTATION_USER_LANDSCAPE = 11,
  2112. SCREEN_ORIENTATION_USER_PORTRAIT = 12,
  2113. };
  2114. switch (orientations)
  2115. {
  2116. case Desktop::upright: return (jint) SCREEN_ORIENTATION_PORTRAIT;
  2117. case Desktop::upsideDown: return (jint) SCREEN_ORIENTATION_REVERSE_PORTRAIT;
  2118. case Desktop::upright + Desktop::upsideDown: return (jint) SCREEN_ORIENTATION_USER_PORTRAIT;
  2119. case Desktop::rotatedAntiClockwise: return (jint) SCREEN_ORIENTATION_LANDSCAPE;
  2120. case Desktop::rotatedClockwise: return (jint) SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
  2121. case Desktop::rotatedClockwise + Desktop::rotatedAntiClockwise: return (jint) SCREEN_ORIENTATION_USER_LANDSCAPE;
  2122. default: return (jint) SCREEN_ORIENTATION_USER;
  2123. }
  2124. }
  2125. void Desktop::allowedOrientationsChanged()
  2126. {
  2127. LocalRef<jobject> activity (getMainActivity());
  2128. if (activity != nullptr)
  2129. getEnv()->CallVoidMethod (activity.get(), AndroidActivity.setRequestedOrientation, getAndroidOrientationFlag (allowedOrientations));
  2130. }
  2131. //==============================================================================
  2132. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2133. METHOD (create, "<init>", "()V") \
  2134. FIELD (density, "density", "F") \
  2135. FIELD (widthPixels, "widthPixels", "I") \
  2136. FIELD (heightPixels, "heightPixels", "I")
  2137. DECLARE_JNI_CLASS (AndroidDisplayMetrics, "android/util/DisplayMetrics")
  2138. #undef JNI_CLASS_MEMBERS
  2139. //==============================================================================
  2140. class LayoutChangeListener : public juce::AndroidInterfaceImplementer
  2141. {
  2142. public:
  2143. virtual void onLayoutChange (LocalRef<jobject> view, int left, int top, int right, int bottom,
  2144. int oldLeft, int oldTop, int oldRight, int oldBottom) = 0;
  2145. private:
  2146. jobject invoke (jobject proxy, jobject method, jobjectArray args) override
  2147. {
  2148. auto* env = getEnv();
  2149. auto methodName = juce::juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));
  2150. if (methodName == "onLayoutChange")
  2151. {
  2152. jassert (env->GetArrayLength (args) == 9);
  2153. LocalRef<jobject> view (env->GetObjectArrayElement (args, 0));
  2154. int dims[8];
  2155. for (int i = 1; i < 9; ++i)
  2156. {
  2157. LocalRef<jobject> integer (env->GetObjectArrayElement (args, i));
  2158. dims[i - 1] = env->CallIntMethod (integer.get(), JavaInteger.intValue);
  2159. }
  2160. onLayoutChange (std::move (view), dims[0], dims[1], dims[2], dims[3],
  2161. dims[4], dims[5], dims[6], dims[7]);
  2162. return nullptr;
  2163. }
  2164. // invoke base class
  2165. return AndroidInterfaceImplementer::invoke (proxy, method, args);
  2166. }
  2167. std::unique_ptr<ModalComponentManager::Callback> callback;
  2168. };
  2169. //==============================================================================
  2170. struct MainActivityWindowLayoutListener : public LayoutChangeListener
  2171. {
  2172. MainActivityWindowLayoutListener (std::function<void()>&& updateDisplaysCb)
  2173. : forceDisplayUpdate (std::move (updateDisplaysCb))
  2174. {
  2175. }
  2176. void onLayoutChange (LocalRef<jobject> /*view*/, int left, int top, int right, int bottom,
  2177. int oldLeft, int oldTop, int oldRight, int oldBottom) override
  2178. {
  2179. auto newBounds = Rectangle<int>::leftTopRightBottom (left, top, right, bottom);
  2180. auto oldBounds = Rectangle<int>::leftTopRightBottom (oldLeft, oldTop, oldRight, oldBottom);
  2181. if (newBounds != oldBounds)
  2182. {
  2183. const auto& mainDisplay = *Desktop::getInstance().getDisplays().getPrimaryDisplay();
  2184. auto userArea = (newBounds.toFloat() / mainDisplay.scale).toNearestInt();
  2185. if (userArea != mainDisplay.userArea)
  2186. forceDisplayUpdate();
  2187. }
  2188. }
  2189. std::function<void()> forceDisplayUpdate;
  2190. };
  2191. //==============================================================================
  2192. void Displays::findDisplays (float masterScale)
  2193. {
  2194. auto* env = getEnv();
  2195. LocalRef<jobject> usableSize (makeAndroidPoint ({}));
  2196. LocalRef<jstring> windowServiceString (javaString ("window"));
  2197. LocalRef<jobject> displayMetrics (env->NewObject (AndroidDisplayMetrics, AndroidDisplayMetrics.create));
  2198. LocalRef<jobject> windowManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, windowServiceString.get()));
  2199. LocalRef<jobject> display (env->CallObjectMethod (windowManager, AndroidWindowManager.getDefaultDisplay));
  2200. if (const auto getRealMetricsMethod = AndroidDisplay17.getRealMetrics)
  2201. env->CallVoidMethod (display, getRealMetricsMethod, displayMetrics.get());
  2202. else
  2203. env->CallVoidMethod (display, AndroidDisplay.getMetrics, displayMetrics.get());
  2204. env->CallVoidMethod (display, AndroidDisplay.getSize, usableSize.get());
  2205. Display d;
  2206. d.isMain = true;
  2207. d.scale = env->GetFloatField (displayMetrics.get(), AndroidDisplayMetrics.density);
  2208. d.dpi = (d.scale * 160.f);
  2209. d.scale *= masterScale;
  2210. d.totalArea = Rectangle<int> (env->GetIntField (displayMetrics.get(), AndroidDisplayMetrics.widthPixels),
  2211. env->GetIntField (displayMetrics.get(), AndroidDisplayMetrics.heightPixels)) / d.scale;
  2212. d.userArea = Rectangle<int> (env->GetIntField (usableSize.get(), AndroidPoint.x),
  2213. env->GetIntField (usableSize.get(), AndroidPoint.y)) / d.scale;
  2214. // unfortunately usableSize still contains the nav bar
  2215. // the best workaround is to try to get the size of the top-level view of
  2216. // the main activity
  2217. LocalRef<jobject> activity (getMainActivity());
  2218. if (activity != nullptr)
  2219. {
  2220. LocalRef<jobject> mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow));
  2221. LocalRef<jobject> decorView (env->CallObjectMethod (mainWindow.get(), AndroidWindow.getDecorView));
  2222. LocalRef<jobject> contentView (env->CallObjectMethod (decorView.get(), AndroidView.findViewById, 0x01020002 /* android.R.id.content */));
  2223. if (contentView != nullptr)
  2224. {
  2225. Rectangle<int> activityArea (env->CallIntMethod (contentView.get(), AndroidView.getLeft),
  2226. env->CallIntMethod (contentView.get(), AndroidView.getTop),
  2227. env->CallIntMethod (contentView.get(), AndroidView.getWidth),
  2228. env->CallIntMethod (contentView.get(), AndroidView.getHeight));
  2229. if (! activityArea.isEmpty())
  2230. d.userArea = activityArea / d.scale;
  2231. if (const auto getRootWindowInsetsMethodId = AndroidView23.getRootWindowInsets)
  2232. {
  2233. LocalRef<jobject> insets (env->CallObjectMethod (contentView.get(), getRootWindowInsetsMethodId));
  2234. JuceInsets::tie (d) = getInsetsFromAndroidWindowInsets (insets, d.scale).tie();
  2235. }
  2236. static bool hasAddedMainActivityListener = false;
  2237. if (! hasAddedMainActivityListener)
  2238. {
  2239. hasAddedMainActivityListener = true;
  2240. env->CallVoidMethod (contentView.get(), AndroidView.addOnLayoutChangeListener,
  2241. CreateJavaInterface (new MainActivityWindowLayoutListener ([this] { refresh(); }),
  2242. "android/view/View$OnLayoutChangeListener").get());
  2243. }
  2244. }
  2245. }
  2246. else
  2247. {
  2248. // the main activity may have not started yet so add an activity listener
  2249. if (AndroidComponentPeer::activityCallbackListener == nullptr)
  2250. {
  2251. LocalRef<jobject> appContext (getAppContext());
  2252. if (appContext.get() != nullptr)
  2253. {
  2254. AndroidComponentPeer::activityCallbackListener = GlobalRef (CreateJavaInterface (
  2255. new AndroidComponentPeer::StartupActivityCallbackListener,
  2256. "android/app/Application$ActivityLifecycleCallbacks"));
  2257. env->CallVoidMethod (appContext.get(),
  2258. AndroidApplication.registerActivityLifecycleCallbacks,
  2259. AndroidComponentPeer::activityCallbackListener.get());
  2260. }
  2261. }
  2262. }
  2263. displays.add (d);
  2264. }
  2265. //==============================================================================
  2266. Image detail::WindowingHelpers::createIconForFile (const File& /*file*/)
  2267. {
  2268. return {};
  2269. }
  2270. //==============================================================================
  2271. class MouseCursor::PlatformSpecificHandle
  2272. {
  2273. public:
  2274. PlatformSpecificHandle (const MouseCursor::StandardCursorType) {}
  2275. PlatformSpecificHandle (const detail::CustomMouseCursorInfo&) {}
  2276. static void showInWindow (PlatformSpecificHandle*, ComponentPeer*) {}
  2277. };
  2278. //==============================================================================
  2279. bool DragAndDropContainer::performExternalDragDropOfFiles (const StringArray& /*files*/, bool /*canMove*/,
  2280. Component* /*srcComp*/, std::function<void()> /*callback*/)
  2281. {
  2282. jassertfalse; // no such thing on Android!
  2283. return false;
  2284. }
  2285. bool DragAndDropContainer::performExternalDragDropOfText (const String& /*text*/, Component* /*srcComp*/,
  2286. std::function<void()> /*callback*/)
  2287. {
  2288. jassertfalse; // no such thing on Android!
  2289. return false;
  2290. }
  2291. //==============================================================================
  2292. void LookAndFeel::playAlertSound()
  2293. {
  2294. }
  2295. //==============================================================================
  2296. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2297. METHOD (getText, "getText", "()Ljava/lang/CharSequence;") \
  2298. METHOD (setText, "setText", "(Ljava/lang/CharSequence;)V")
  2299. DECLARE_JNI_CLASS (AndroidClipboardManager, "android/content/ClipboardManager")
  2300. #undef JNI_CLASS_MEMBERS
  2301. //==============================================================================
  2302. void SystemClipboard::copyTextToClipboard (const String& text)
  2303. {
  2304. auto* env = getEnv();
  2305. LocalRef<jobject> clipboardManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, javaString ("clipboard").get()));
  2306. env->CallVoidMethod (clipboardManager.get(), AndroidClipboardManager.setText, javaString(text).get());
  2307. }
  2308. String SystemClipboard::getTextFromClipboard()
  2309. {
  2310. auto* env = getEnv();
  2311. LocalRef<jobject> clipboardManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, javaString ("clipboard").get()));
  2312. LocalRef<jobject> charSequence (env->CallObjectMethod (clipboardManager.get(), AndroidClipboardManager.getText));
  2313. if (charSequence == nullptr)
  2314. return {};
  2315. return juceString(LocalRef<jstring> ((jstring) env->CallObjectMethod(charSequence.get(), JavaCharSequence.toString)));
  2316. }
  2317. //==============================================================================
  2318. constexpr int extendedKeyModifier = 0x10000;
  2319. const int KeyPress::spaceKey = ' ';
  2320. const int KeyPress::returnKey = extendedKeyModifier + 2;
  2321. const int KeyPress::escapeKey = extendedKeyModifier + 3;
  2322. const int KeyPress::backspaceKey = extendedKeyModifier + 4;
  2323. const int KeyPress::leftKey = extendedKeyModifier + 5;
  2324. const int KeyPress::rightKey = extendedKeyModifier + 6;
  2325. const int KeyPress::upKey = extendedKeyModifier + 7;
  2326. const int KeyPress::downKey = extendedKeyModifier + 8;
  2327. const int KeyPress::pageUpKey = extendedKeyModifier + 9;
  2328. const int KeyPress::pageDownKey = extendedKeyModifier + 10;
  2329. const int KeyPress::endKey = extendedKeyModifier + 11;
  2330. const int KeyPress::homeKey = extendedKeyModifier + 12;
  2331. const int KeyPress::deleteKey = extendedKeyModifier + 13;
  2332. const int KeyPress::insertKey = extendedKeyModifier + 14;
  2333. const int KeyPress::tabKey = extendedKeyModifier + 15;
  2334. const int KeyPress::F1Key = extendedKeyModifier + 16;
  2335. const int KeyPress::F2Key = extendedKeyModifier + 17;
  2336. const int KeyPress::F3Key = extendedKeyModifier + 18;
  2337. const int KeyPress::F4Key = extendedKeyModifier + 19;
  2338. const int KeyPress::F5Key = extendedKeyModifier + 20;
  2339. const int KeyPress::F6Key = extendedKeyModifier + 21;
  2340. const int KeyPress::F7Key = extendedKeyModifier + 22;
  2341. const int KeyPress::F8Key = extendedKeyModifier + 23;
  2342. const int KeyPress::F9Key = extendedKeyModifier + 24;
  2343. const int KeyPress::F10Key = extendedKeyModifier + 25;
  2344. const int KeyPress::F11Key = extendedKeyModifier + 26;
  2345. const int KeyPress::F12Key = extendedKeyModifier + 27;
  2346. const int KeyPress::F13Key = extendedKeyModifier + 28;
  2347. const int KeyPress::F14Key = extendedKeyModifier + 29;
  2348. const int KeyPress::F15Key = extendedKeyModifier + 30;
  2349. const int KeyPress::F16Key = extendedKeyModifier + 31;
  2350. const int KeyPress::F17Key = extendedKeyModifier + 32;
  2351. const int KeyPress::F18Key = extendedKeyModifier + 33;
  2352. const int KeyPress::F19Key = extendedKeyModifier + 34;
  2353. const int KeyPress::F20Key = extendedKeyModifier + 35;
  2354. const int KeyPress::F21Key = extendedKeyModifier + 36;
  2355. const int KeyPress::F22Key = extendedKeyModifier + 37;
  2356. const int KeyPress::F23Key = extendedKeyModifier + 38;
  2357. const int KeyPress::F24Key = extendedKeyModifier + 39;
  2358. const int KeyPress::F25Key = extendedKeyModifier + 40;
  2359. const int KeyPress::F26Key = extendedKeyModifier + 41;
  2360. const int KeyPress::F27Key = extendedKeyModifier + 42;
  2361. const int KeyPress::F28Key = extendedKeyModifier + 43;
  2362. const int KeyPress::F29Key = extendedKeyModifier + 44;
  2363. const int KeyPress::F30Key = extendedKeyModifier + 45;
  2364. const int KeyPress::F31Key = extendedKeyModifier + 46;
  2365. const int KeyPress::F32Key = extendedKeyModifier + 47;
  2366. const int KeyPress::F33Key = extendedKeyModifier + 48;
  2367. const int KeyPress::F34Key = extendedKeyModifier + 49;
  2368. const int KeyPress::F35Key = extendedKeyModifier + 50;
  2369. const int KeyPress::numberPad0 = extendedKeyModifier + 51;
  2370. const int KeyPress::numberPad1 = extendedKeyModifier + 52;
  2371. const int KeyPress::numberPad2 = extendedKeyModifier + 53;
  2372. const int KeyPress::numberPad3 = extendedKeyModifier + 54;
  2373. const int KeyPress::numberPad4 = extendedKeyModifier + 55;
  2374. const int KeyPress::numberPad5 = extendedKeyModifier + 56;
  2375. const int KeyPress::numberPad6 = extendedKeyModifier + 57;
  2376. const int KeyPress::numberPad7 = extendedKeyModifier + 58;
  2377. const int KeyPress::numberPad8 = extendedKeyModifier + 59;
  2378. const int KeyPress::numberPad9 = extendedKeyModifier + 60;
  2379. const int KeyPress::numberPadAdd = extendedKeyModifier + 61;
  2380. const int KeyPress::numberPadSubtract = extendedKeyModifier + 62;
  2381. const int KeyPress::numberPadMultiply = extendedKeyModifier + 63;
  2382. const int KeyPress::numberPadDivide = extendedKeyModifier + 64;
  2383. const int KeyPress::numberPadSeparator = extendedKeyModifier + 65;
  2384. const int KeyPress::numberPadDecimalPoint = extendedKeyModifier + 66;
  2385. const int KeyPress::numberPadEquals = extendedKeyModifier + 67;
  2386. const int KeyPress::numberPadDelete = extendedKeyModifier + 68;
  2387. const int KeyPress::playKey = extendedKeyModifier + 69;
  2388. const int KeyPress::stopKey = extendedKeyModifier + 70;
  2389. const int KeyPress::fastForwardKey = extendedKeyModifier + 71;
  2390. const int KeyPress::rewindKey = extendedKeyModifier + 72;
  2391. //==============================================================================
  2392. #ifdef JUCE_PUSH_NOTIFICATIONS_ACTIVITY
  2393. struct JuceActivityNewIntentListener
  2394. {
  2395. #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
  2396. CALLBACK (appNewIntent, "appNewIntent", "(Landroid/content/Intent;)V") \
  2397. CALLBACK (appOnResume, "appOnResume", "()V")
  2398. DECLARE_JNI_CLASS (JavaActivity, JUCE_PUSH_NOTIFICATIONS_ACTIVITY)
  2399. #undef JNI_CLASS_MEMBERS
  2400. static void JNICALL appNewIntent (JNIEnv*, jobject /*activity*/, jobject intentData)
  2401. {
  2402. juce_handleNotificationIntent (static_cast<void*> (intentData));
  2403. }
  2404. static void JNICALL appOnResume (JNIEnv*, jobject)
  2405. {
  2406. juce_handleOnResume();
  2407. }
  2408. };
  2409. #endif
  2410. } // namespace juce