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.

2906 lines
146KB

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