native-fn 1.0.89 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/dist/index.d.ts +747 -29
  2. package/dist/native.cjs +4283 -74
  3. package/dist/native.min.cjs +1 -1
  4. package/dist/native.min.mjs +1 -1
  5. package/dist/native.mjs +4283 -74
  6. package/dist/native.umd.js +4283 -74
  7. package/dist/native.umd.min.js +1 -1
  8. package/dist/plugin/app/index.cjs +637 -663
  9. package/dist/plugin/app/index.d.ts +4 -114
  10. package/dist/plugin/app/index.min.cjs +1 -1
  11. package/dist/plugin/app/index.min.mjs +1 -1
  12. package/dist/plugin/app/index.mjs +637 -663
  13. package/dist/plugin/app/index.umd.js +637 -663
  14. package/dist/plugin/app/index.umd.min.js +1 -1
  15. package/dist/plugin/app/src/plugin/app/constants/index.d.ts +13 -0
  16. package/dist/plugin/app/src/plugin/app/cores/index.d.ts +3 -2
  17. package/dist/plugin/app/src/plugin/app/index.d.ts +2 -11
  18. package/dist/plugin/app/src/plugin/app/types/app.d.ts +13 -3
  19. package/dist/plugin/app/src/plugin/app/types/index.d.ts +0 -15
  20. package/dist/plugin/app/src/plugin/appearance/cores/index.d.ts +2 -2
  21. package/dist/plugin/app/src/plugin/appearance/index.d.ts +2 -7
  22. package/dist/plugin/app/src/plugin/appearance/types/appearance.d.ts +6 -3
  23. package/dist/plugin/app/src/plugin/appearance/types/index.d.ts +0 -12
  24. package/dist/plugin/app/src/plugin/clipboard/cores/index.d.ts +2 -2
  25. package/dist/plugin/app/src/plugin/clipboard/index.d.ts +2 -4
  26. package/dist/plugin/app/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  27. package/dist/plugin/app/src/plugin/clipboard/types/index.d.ts +0 -10
  28. package/dist/plugin/app/src/plugin/dimension/cores/index.d.ts +2 -2
  29. package/dist/plugin/app/src/plugin/dimension/index.d.ts +3 -4
  30. package/dist/plugin/app/src/plugin/dimension/types/dimensions.d.ts +4 -2
  31. package/dist/plugin/app/src/plugin/dimension/types/index.d.ts +0 -12
  32. package/dist/plugin/app/src/plugin/fullscreen/cores/index.d.ts +2 -2
  33. package/dist/plugin/app/src/plugin/fullscreen/index.d.ts +2 -4
  34. package/dist/plugin/app/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  35. package/dist/plugin/app/src/plugin/fullscreen/types/index.d.ts +0 -10
  36. package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +6 -6
  37. package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +24 -6
  38. package/dist/plugin/app/src/plugin/platform/index.d.ts +2 -11
  39. package/dist/plugin/app/src/plugin/platform/types/index.d.ts +0 -10
  40. package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +22 -14
  41. package/dist/plugin/app/src/plugin/theme/cores/index.d.ts +2 -2
  42. package/dist/plugin/app/src/plugin/theme/index.d.ts +2 -4
  43. package/dist/plugin/app/src/plugin/theme/types/index.d.ts +0 -10
  44. package/dist/plugin/app/src/plugin/theme/types/theme.d.ts +3 -1
  45. package/dist/plugin/app/src/types/native.d.ts +16 -26
  46. package/dist/plugin/appearance/index.cjs +392 -585
  47. package/dist/plugin/appearance/index.d.ts +4 -37
  48. package/dist/plugin/appearance/index.min.cjs +1 -1
  49. package/dist/plugin/appearance/index.min.mjs +1 -1
  50. package/dist/plugin/appearance/index.mjs +392 -585
  51. package/dist/plugin/appearance/index.umd.js +392 -585
  52. package/dist/plugin/appearance/index.umd.min.js +1 -1
  53. package/dist/plugin/appearance/src/plugin/app/constants/index.d.ts +13 -0
  54. package/dist/plugin/appearance/src/plugin/app/cores/index.d.ts +3 -2
  55. package/dist/plugin/appearance/src/plugin/app/index.d.ts +2 -11
  56. package/dist/plugin/appearance/src/plugin/app/types/app.d.ts +13 -3
  57. package/dist/plugin/appearance/src/plugin/app/types/index.d.ts +0 -15
  58. package/dist/plugin/appearance/src/plugin/appearance/cores/index.d.ts +2 -2
  59. package/dist/plugin/appearance/src/plugin/appearance/index.d.ts +2 -7
  60. package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +6 -3
  61. package/dist/plugin/appearance/src/plugin/appearance/types/index.d.ts +0 -12
  62. package/dist/plugin/appearance/src/plugin/clipboard/cores/index.d.ts +2 -2
  63. package/dist/plugin/appearance/src/plugin/clipboard/index.d.ts +2 -4
  64. package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  65. package/dist/plugin/appearance/src/plugin/clipboard/types/index.d.ts +0 -10
  66. package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +2 -2
  67. package/dist/plugin/appearance/src/plugin/dimension/index.d.ts +3 -4
  68. package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +4 -2
  69. package/dist/plugin/appearance/src/plugin/dimension/types/index.d.ts +0 -12
  70. package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +2 -2
  71. package/dist/plugin/appearance/src/plugin/fullscreen/index.d.ts +2 -4
  72. package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  73. package/dist/plugin/appearance/src/plugin/fullscreen/types/index.d.ts +0 -10
  74. package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +6 -6
  75. package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +24 -6
  76. package/dist/plugin/appearance/src/plugin/platform/index.d.ts +2 -11
  77. package/dist/plugin/appearance/src/plugin/platform/types/index.d.ts +0 -10
  78. package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +22 -14
  79. package/dist/plugin/appearance/src/plugin/theme/cores/index.d.ts +2 -2
  80. package/dist/plugin/appearance/src/plugin/theme/index.d.ts +2 -4
  81. package/dist/plugin/appearance/src/plugin/theme/types/index.d.ts +0 -10
  82. package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +3 -1
  83. package/dist/plugin/appearance/src/types/native.d.ts +16 -26
  84. package/dist/plugin/clipboard/index.cjs +48 -822
  85. package/dist/plugin/clipboard/index.d.ts +4 -27
  86. package/dist/plugin/clipboard/index.min.cjs +1 -1
  87. package/dist/plugin/clipboard/index.min.mjs +1 -1
  88. package/dist/plugin/clipboard/index.mjs +48 -822
  89. package/dist/plugin/clipboard/index.umd.js +48 -822
  90. package/dist/plugin/clipboard/index.umd.min.js +1 -1
  91. package/dist/plugin/clipboard/src/plugin/app/constants/index.d.ts +13 -0
  92. package/dist/plugin/clipboard/src/plugin/app/cores/index.d.ts +3 -2
  93. package/dist/plugin/clipboard/src/plugin/app/index.d.ts +2 -11
  94. package/dist/plugin/clipboard/src/plugin/app/types/app.d.ts +13 -3
  95. package/dist/plugin/clipboard/src/plugin/app/types/index.d.ts +0 -15
  96. package/dist/plugin/clipboard/src/plugin/appearance/cores/index.d.ts +2 -2
  97. package/dist/plugin/clipboard/src/plugin/appearance/index.d.ts +2 -7
  98. package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +6 -3
  99. package/dist/plugin/clipboard/src/plugin/appearance/types/index.d.ts +0 -12
  100. package/dist/plugin/clipboard/src/plugin/clipboard/cores/index.d.ts +2 -2
  101. package/dist/plugin/clipboard/src/plugin/clipboard/index.d.ts +2 -4
  102. package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  103. package/dist/plugin/clipboard/src/plugin/clipboard/types/index.d.ts +0 -10
  104. package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +2 -2
  105. package/dist/plugin/clipboard/src/plugin/dimension/index.d.ts +3 -4
  106. package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +4 -2
  107. package/dist/plugin/clipboard/src/plugin/dimension/types/index.d.ts +0 -12
  108. package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +2 -2
  109. package/dist/plugin/clipboard/src/plugin/fullscreen/index.d.ts +2 -4
  110. package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  111. package/dist/plugin/clipboard/src/plugin/fullscreen/types/index.d.ts +0 -10
  112. package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +6 -6
  113. package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +24 -6
  114. package/dist/plugin/clipboard/src/plugin/platform/index.d.ts +2 -11
  115. package/dist/plugin/clipboard/src/plugin/platform/types/index.d.ts +0 -10
  116. package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +22 -14
  117. package/dist/plugin/clipboard/src/plugin/theme/cores/index.d.ts +2 -2
  118. package/dist/plugin/clipboard/src/plugin/theme/index.d.ts +2 -4
  119. package/dist/plugin/clipboard/src/plugin/theme/types/index.d.ts +0 -10
  120. package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +3 -1
  121. package/dist/plugin/clipboard/src/types/native.d.ts +16 -26
  122. package/dist/plugin/dimension/index.cjs +3 -883
  123. package/dist/plugin/dimension/index.d.ts +4 -36
  124. package/dist/plugin/dimension/index.min.cjs +1 -1
  125. package/dist/plugin/dimension/index.min.mjs +1 -1
  126. package/dist/plugin/dimension/index.mjs +3 -883
  127. package/dist/plugin/dimension/index.umd.js +3 -883
  128. package/dist/plugin/dimension/index.umd.min.js +1 -1
  129. package/dist/plugin/dimension/src/plugin/app/constants/index.d.ts +13 -0
  130. package/dist/plugin/dimension/src/plugin/app/cores/index.d.ts +3 -2
  131. package/dist/plugin/dimension/src/plugin/app/index.d.ts +2 -11
  132. package/dist/plugin/dimension/src/plugin/app/types/app.d.ts +13 -3
  133. package/dist/plugin/dimension/src/plugin/app/types/index.d.ts +0 -15
  134. package/dist/plugin/dimension/src/plugin/appearance/cores/index.d.ts +2 -2
  135. package/dist/plugin/dimension/src/plugin/appearance/index.d.ts +2 -7
  136. package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +6 -3
  137. package/dist/plugin/dimension/src/plugin/appearance/types/index.d.ts +0 -12
  138. package/dist/plugin/dimension/src/plugin/clipboard/cores/index.d.ts +2 -2
  139. package/dist/plugin/dimension/src/plugin/clipboard/index.d.ts +2 -4
  140. package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  141. package/dist/plugin/dimension/src/plugin/clipboard/types/index.d.ts +0 -10
  142. package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +2 -2
  143. package/dist/plugin/dimension/src/plugin/dimension/index.d.ts +3 -4
  144. package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +4 -2
  145. package/dist/plugin/dimension/src/plugin/dimension/types/index.d.ts +0 -12
  146. package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +2 -2
  147. package/dist/plugin/dimension/src/plugin/fullscreen/index.d.ts +2 -4
  148. package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  149. package/dist/plugin/dimension/src/plugin/fullscreen/types/index.d.ts +0 -10
  150. package/dist/plugin/dimension/src/plugin/platform/constants/index.d.ts +6 -6
  151. package/dist/plugin/dimension/src/plugin/platform/cores/index.d.ts +24 -6
  152. package/dist/plugin/dimension/src/plugin/platform/index.d.ts +2 -11
  153. package/dist/plugin/dimension/src/plugin/platform/types/index.d.ts +0 -10
  154. package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +22 -14
  155. package/dist/plugin/dimension/src/plugin/theme/cores/index.d.ts +2 -2
  156. package/dist/plugin/dimension/src/plugin/theme/index.d.ts +2 -4
  157. package/dist/plugin/dimension/src/plugin/theme/types/index.d.ts +0 -10
  158. package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +3 -1
  159. package/dist/plugin/dimension/src/types/native.d.ts +16 -26
  160. package/dist/plugin/fullscreen/index.cjs +391 -588
  161. package/dist/plugin/fullscreen/index.d.ts +4 -33
  162. package/dist/plugin/fullscreen/index.min.cjs +1 -1
  163. package/dist/plugin/fullscreen/index.min.mjs +1 -1
  164. package/dist/plugin/fullscreen/index.mjs +391 -588
  165. package/dist/plugin/fullscreen/index.umd.js +391 -588
  166. package/dist/plugin/fullscreen/index.umd.min.js +1 -1
  167. package/dist/plugin/fullscreen/src/plugin/app/constants/index.d.ts +13 -0
  168. package/dist/plugin/fullscreen/src/plugin/app/cores/index.d.ts +3 -2
  169. package/dist/plugin/fullscreen/src/plugin/app/index.d.ts +2 -11
  170. package/dist/plugin/fullscreen/src/plugin/app/types/app.d.ts +13 -3
  171. package/dist/plugin/fullscreen/src/plugin/app/types/index.d.ts +0 -15
  172. package/dist/plugin/fullscreen/src/plugin/appearance/cores/index.d.ts +2 -2
  173. package/dist/plugin/fullscreen/src/plugin/appearance/index.d.ts +2 -7
  174. package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +6 -3
  175. package/dist/plugin/fullscreen/src/plugin/appearance/types/index.d.ts +0 -12
  176. package/dist/plugin/fullscreen/src/plugin/clipboard/cores/index.d.ts +2 -2
  177. package/dist/plugin/fullscreen/src/plugin/clipboard/index.d.ts +2 -4
  178. package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  179. package/dist/plugin/fullscreen/src/plugin/clipboard/types/index.d.ts +0 -10
  180. package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +2 -2
  181. package/dist/plugin/fullscreen/src/plugin/dimension/index.d.ts +3 -4
  182. package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +4 -2
  183. package/dist/plugin/fullscreen/src/plugin/dimension/types/index.d.ts +0 -12
  184. package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +2 -2
  185. package/dist/plugin/fullscreen/src/plugin/fullscreen/index.d.ts +2 -4
  186. package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  187. package/dist/plugin/fullscreen/src/plugin/fullscreen/types/index.d.ts +0 -10
  188. package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +6 -6
  189. package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +24 -6
  190. package/dist/plugin/fullscreen/src/plugin/platform/index.d.ts +2 -11
  191. package/dist/plugin/fullscreen/src/plugin/platform/types/index.d.ts +0 -10
  192. package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +22 -14
  193. package/dist/plugin/fullscreen/src/plugin/theme/cores/index.d.ts +2 -2
  194. package/dist/plugin/fullscreen/src/plugin/theme/index.d.ts +2 -4
  195. package/dist/plugin/fullscreen/src/plugin/theme/types/index.d.ts +0 -10
  196. package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +3 -1
  197. package/dist/plugin/fullscreen/src/types/native.d.ts +16 -26
  198. package/dist/plugin/platform/index.cjs +409 -488
  199. package/dist/plugin/platform/index.d.ts +4 -96
  200. package/dist/plugin/platform/index.min.cjs +1 -1
  201. package/dist/plugin/platform/index.min.mjs +1 -1
  202. package/dist/plugin/platform/index.mjs +409 -488
  203. package/dist/plugin/platform/index.umd.js +409 -488
  204. package/dist/plugin/platform/index.umd.min.js +1 -1
  205. package/dist/plugin/platform/src/plugin/app/constants/index.d.ts +13 -0
  206. package/dist/plugin/platform/src/plugin/app/cores/index.d.ts +3 -2
  207. package/dist/plugin/platform/src/plugin/app/index.d.ts +2 -11
  208. package/dist/plugin/platform/src/plugin/app/types/app.d.ts +13 -3
  209. package/dist/plugin/platform/src/plugin/app/types/index.d.ts +0 -15
  210. package/dist/plugin/platform/src/plugin/appearance/cores/index.d.ts +2 -2
  211. package/dist/plugin/platform/src/plugin/appearance/index.d.ts +2 -7
  212. package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +6 -3
  213. package/dist/plugin/platform/src/plugin/appearance/types/index.d.ts +0 -12
  214. package/dist/plugin/platform/src/plugin/clipboard/cores/index.d.ts +2 -2
  215. package/dist/plugin/platform/src/plugin/clipboard/index.d.ts +2 -4
  216. package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  217. package/dist/plugin/platform/src/plugin/clipboard/types/index.d.ts +0 -10
  218. package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +2 -2
  219. package/dist/plugin/platform/src/plugin/dimension/index.d.ts +3 -4
  220. package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +4 -2
  221. package/dist/plugin/platform/src/plugin/dimension/types/index.d.ts +0 -12
  222. package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +2 -2
  223. package/dist/plugin/platform/src/plugin/fullscreen/index.d.ts +2 -4
  224. package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  225. package/dist/plugin/platform/src/plugin/fullscreen/types/index.d.ts +0 -10
  226. package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +6 -6
  227. package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +24 -6
  228. package/dist/plugin/platform/src/plugin/platform/index.d.ts +2 -11
  229. package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +0 -10
  230. package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +22 -14
  231. package/dist/plugin/platform/src/plugin/theme/cores/index.d.ts +2 -2
  232. package/dist/plugin/platform/src/plugin/theme/index.d.ts +2 -4
  233. package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +0 -10
  234. package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +3 -1
  235. package/dist/plugin/platform/src/types/native.d.ts +16 -26
  236. package/dist/plugin/theme/index.cjs +390 -461
  237. package/dist/plugin/theme/index.d.ts +4 -27
  238. package/dist/plugin/theme/index.min.cjs +1 -1
  239. package/dist/plugin/theme/index.min.mjs +1 -1
  240. package/dist/plugin/theme/index.mjs +390 -461
  241. package/dist/plugin/theme/index.umd.js +390 -461
  242. package/dist/plugin/theme/index.umd.min.js +1 -1
  243. package/dist/plugin/theme/src/plugin/app/constants/index.d.ts +13 -0
  244. package/dist/plugin/theme/src/plugin/app/cores/index.d.ts +3 -2
  245. package/dist/plugin/theme/src/plugin/app/index.d.ts +2 -11
  246. package/dist/plugin/theme/src/plugin/app/types/app.d.ts +13 -3
  247. package/dist/plugin/theme/src/plugin/app/types/index.d.ts +0 -15
  248. package/dist/plugin/theme/src/plugin/appearance/cores/index.d.ts +2 -2
  249. package/dist/plugin/theme/src/plugin/appearance/index.d.ts +2 -7
  250. package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +6 -3
  251. package/dist/plugin/theme/src/plugin/appearance/types/index.d.ts +0 -12
  252. package/dist/plugin/theme/src/plugin/clipboard/cores/index.d.ts +2 -2
  253. package/dist/plugin/theme/src/plugin/clipboard/index.d.ts +2 -4
  254. package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +3 -1
  255. package/dist/plugin/theme/src/plugin/clipboard/types/index.d.ts +0 -10
  256. package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +2 -2
  257. package/dist/plugin/theme/src/plugin/dimension/index.d.ts +3 -4
  258. package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +4 -2
  259. package/dist/plugin/theme/src/plugin/dimension/types/index.d.ts +0 -12
  260. package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +2 -2
  261. package/dist/plugin/theme/src/plugin/fullscreen/index.d.ts +2 -4
  262. package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
  263. package/dist/plugin/theme/src/plugin/fullscreen/types/index.d.ts +0 -10
  264. package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +6 -6
  265. package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +24 -6
  266. package/dist/plugin/theme/src/plugin/platform/index.d.ts +2 -11
  267. package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +0 -10
  268. package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +22 -14
  269. package/dist/plugin/theme/src/plugin/theme/cores/index.d.ts +2 -2
  270. package/dist/plugin/theme/src/plugin/theme/index.d.ts +2 -4
  271. package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +0 -10
  272. package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +3 -1
  273. package/dist/plugin/theme/src/types/native.d.ts +16 -26
  274. package/dist/src/constants/index.d.ts +1 -0
  275. package/dist/src/errors/not-supported-error.d.ts +2 -0
  276. package/dist/src/errors/permission-not-granted-error.d.ts +2 -0
  277. package/dist/src/plugin/Display/constants/index.d.ts +4 -0
  278. package/dist/src/plugin/Display/cores/index.d.ts +3 -0
  279. package/dist/src/plugin/Display/index.d.ts +3 -0
  280. package/dist/src/plugin/Display/types/display.d.ts +13 -0
  281. package/dist/src/plugin/Display/types/index.d.ts +1 -0
  282. package/dist/src/plugin/app/constants/index.d.ts +21 -0
  283. package/dist/src/plugin/app/cores/index.d.ts +10 -2
  284. package/dist/src/plugin/app/index.d.ts +2 -11
  285. package/dist/src/plugin/app/types/app.d.ts +73 -3
  286. package/dist/src/plugin/app/types/index.d.ts +0 -15
  287. package/dist/src/plugin/appearance/constants/index.d.ts +1 -4
  288. package/dist/src/plugin/appearance/index.d.ts +2 -7
  289. package/dist/src/plugin/appearance/types/appearance.d.ts +5 -2
  290. package/dist/src/plugin/appearance/types/appearanceInstance.d.ts +9 -0
  291. package/dist/src/plugin/appearance/types/index.d.ts +0 -12
  292. package/dist/src/plugin/badge/cores/index.d.ts +3 -0
  293. package/dist/src/plugin/badge/index.d.ts +3 -0
  294. package/dist/src/plugin/badge/types/badge.d.ts +10 -0
  295. package/dist/src/plugin/badge/types/index.d.ts +1 -0
  296. package/dist/src/plugin/battery/cores/index.d.ts +3 -0
  297. package/dist/src/plugin/battery/index.d.ts +3 -0
  298. package/dist/src/plugin/battery/types/battery.d.ts +26 -0
  299. package/dist/src/plugin/battery/types/index.d.ts +1 -0
  300. package/dist/src/plugin/clipboard/index.d.ts +2 -4
  301. package/dist/src/plugin/clipboard/types/clipboard.d.ts +2 -0
  302. package/dist/src/plugin/clipboard/types/index.d.ts +0 -10
  303. package/dist/src/plugin/dimension/constants/index.d.ts +42 -2
  304. package/dist/src/plugin/dimension/index.d.ts +3 -4
  305. package/dist/src/plugin/dimension/types/dimensions.d.ts +24 -1
  306. package/dist/src/plugin/dimension/types/index.d.ts +0 -12
  307. package/dist/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
  308. package/dist/src/plugin/fullscreen/cores/index.d.ts +3 -1
  309. package/dist/src/plugin/fullscreen/index.d.ts +2 -4
  310. package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +11 -6
  311. package/dist/src/plugin/fullscreen/types/index.d.ts +0 -10
  312. package/dist/src/plugin/geolocation/constants/index.d.ts +2 -0
  313. package/dist/src/plugin/geolocation/cores/index.d.ts +3 -0
  314. package/dist/src/plugin/geolocation/index.d.ts +3 -0
  315. package/dist/src/plugin/geolocation/types/geolocation.d.ts +12 -0
  316. package/dist/src/plugin/geolocation/types/index.d.ts +1 -0
  317. package/dist/src/plugin/network/cores/index.d.ts +15 -0
  318. package/dist/src/plugin/network/index.d.ts +3 -0
  319. package/dist/src/plugin/network/types/index.d.ts +1 -0
  320. package/dist/src/plugin/network/types/network.d.ts +4 -0
  321. package/dist/src/plugin/notification/cores/index.d.ts +3 -0
  322. package/dist/src/plugin/notification/index.d.ts +3 -0
  323. package/dist/src/plugin/notification/types/index.d.ts +1 -0
  324. package/dist/src/plugin/notification/types/notification.d.ts +27 -0
  325. package/dist/src/plugin/open/constants/index.d.ts +28 -0
  326. package/dist/src/plugin/open/cores/index.d.ts +55 -0
  327. package/dist/src/plugin/open/errors/not-supported-error.d.ts +2 -0
  328. package/dist/src/plugin/open/errors/url-open-error.d.ts +2 -0
  329. package/dist/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
  330. package/dist/src/plugin/open/index.d.ts +3 -0
  331. package/dist/src/plugin/open/types/index.d.ts +1 -0
  332. package/dist/src/plugin/open/types/open.d.ts +187 -0
  333. package/dist/src/plugin/permission/constants/index.d.ts +22 -0
  334. package/dist/src/plugin/permission/cores/index.d.ts +3 -0
  335. package/dist/src/plugin/permission/index.d.ts +3 -0
  336. package/dist/src/plugin/permission/types/index.d.ts +1 -0
  337. package/dist/src/plugin/permission/types/permission.d.ts +10 -0
  338. package/dist/src/plugin/pip/cores/index.d.ts +12 -0
  339. package/dist/src/plugin/pip/index.d.ts +3 -0
  340. package/dist/src/plugin/pip/types/index.d.ts +1 -0
  341. package/dist/src/plugin/pip/types/pip.d.ts +15 -0
  342. package/dist/src/plugin/platform/constants/index.d.ts +5 -6
  343. package/dist/src/plugin/platform/cores/index.d.ts +36 -5
  344. package/dist/src/plugin/platform/index.d.ts +2 -11
  345. package/dist/src/plugin/platform/types/index.d.ts +0 -10
  346. package/dist/src/plugin/platform/types/platform.d.ts +31 -14
  347. package/dist/src/plugin/pwa/cores/index.d.ts +3 -0
  348. package/dist/src/plugin/pwa/index.d.ts +3 -0
  349. package/dist/src/plugin/pwa/types/index.d.ts +1 -0
  350. package/dist/src/plugin/pwa/types/pwa.d.ts +8 -0
  351. package/dist/src/plugin/speech/cores/index.d.ts +53 -0
  352. package/dist/src/plugin/speech/index.d.ts +3 -0
  353. package/dist/src/plugin/speech/types/index.d.ts +1 -0
  354. package/dist/src/plugin/speech/types/speech.d.ts +9 -0
  355. package/dist/src/plugin/theme/index.d.ts +2 -4
  356. package/dist/src/plugin/theme/types/index.d.ts +0 -10
  357. package/dist/src/plugin/theme/types/theme.d.ts +2 -0
  358. package/dist/src/plugin/vibration/cores/index.d.ts +3 -0
  359. package/dist/src/plugin/vibration/index.d.ts +3 -0
  360. package/dist/src/plugin/vibration/types/index.d.ts +1 -0
  361. package/dist/src/plugin/vibration/types/vibration.d.ts +9 -0
  362. package/dist/src/types/event-listener.d.ts +35 -0
  363. package/dist/src/types/index.d.ts +3 -0
  364. package/dist/src/types/listener-entry.d.ts +0 -1
  365. package/dist/src/types/native.d.ts +30 -26
  366. package/dist/src/types/subscription-manager.d.ts +4 -0
  367. package/dist/src/utils/create-env-observer.d.ts +8 -0
  368. package/dist/src/utils/create-hidden-element.d.ts +1 -1
  369. package/dist/src/utils/create-subscription-manager.d.ts +2 -0
  370. package/dist/src/utils/defer.d.ts +1 -0
  371. package/dist/src/utils/event-listener.d.ts +3 -0
  372. package/dist/src/utils/keys.d.ts +1 -0
  373. package/dist/src/utils/now.d.ts +1 -0
  374. package/dist/src/utils/pad-start.d.ts +1 -0
  375. package/dist/src/utils/random-string.d.ts +1 -0
  376. package/dist/src/utils/set-style.d.ts +3 -0
  377. package/package.json +1 -1
@@ -55,6 +55,33 @@
55
55
  return 0;
56
56
  }
57
57
 
58
+ function resolveWindowsVersion(string) {
59
+ if (typeof string === 'undefined')
60
+ return '';
61
+ var mapped = {
62
+ '4.90': 'ME',
63
+ 'NT3.51': 'NT 3.11',
64
+ 'NT4.0': 'NT 4.0',
65
+ 'NT 5.0': '2000',
66
+ 'NT 5.1': 'XP',
67
+ 'NT 5.2': 'XP',
68
+ 'NT 6.0': 'Vista',
69
+ 'NT 6.1': '7',
70
+ 'NT 6.2': '8',
71
+ 'NT 6.3': '8.1',
72
+ 'NT 6.4': '10',
73
+ 'NT 10.0': '10',
74
+ 'ARM': 'RT'
75
+ }[string];
76
+ if (typeof mapped !== 'undefined')
77
+ return mapped;
78
+ return string;
79
+ }
80
+ function resolveUnderscoreVersion(string) {
81
+ if (typeof string === 'undefined')
82
+ return '';
83
+ return string.replace(/_/g, '.');
84
+ }
58
85
  var OS;
59
86
  (function (OS) {
60
87
  OS["Unknown"] = "Unknown";
@@ -94,13 +121,6 @@
94
121
  Browsers["IE"] = "IE";
95
122
  Browsers["SamsungInternet"] = "SamsungInternet";
96
123
  })(Browsers || (Browsers = {}));
97
- var CrossPlatformFramework;
98
- (function (CrossPlatformFramework) {
99
- CrossPlatformFramework["Unknown"] = "Unknown";
100
- CrossPlatformFramework["ReactNative"] = "ReactNative";
101
- CrossPlatformFramework["Electron"] = "Electron";
102
- CrossPlatformFramework["Cordova"] = "Cordova";
103
- })(CrossPlatformFramework || (CrossPlatformFramework = {}));
104
124
  var USER_AGENT = typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgent === 'string' ? globalThis.navigator.userAgent : '';
105
125
  var HIGH_ENTROPY_BRAND_NAME_MAP = {
106
126
  'Google Chrome': 'Chrome',
@@ -110,82 +130,7 @@
110
130
  'HeadlessChrome': 'Chrome Headless',
111
131
  'OperaMobile': 'Opera Mobi',
112
132
  };
113
-
114
- var readyState = 'loading';
115
- var readyCallback = [];
116
- var pendingTasks = 0;
117
- var Platform = {
118
- os: { name: OS.Unknown, version: '' },
119
- engine: { name: Engines.Unknown, version: '' },
120
- browser: { name: Browsers.Unknown, version: '' },
121
- crossPlatformFramework: CrossPlatformFramework.Unknown,
122
- userAgent: USER_AGENT,
123
- get locale() {
124
- return getLocale();
125
- },
126
- get device() {
127
- if (this.os.name === OS.iOS || this.os.name === OS.Android)
128
- return Devices.Mobile;
129
- if (this.os.name === OS.Windows || this.os.name === OS.MacOS)
130
- return Devices.Desktop;
131
- return Devices.Unknown;
132
- },
133
- get renderer() {
134
- return getRenderer();
135
- },
136
- get isWebview() {
137
- return /; ?wv|applewebkit(?!.*safari)/i.test(this.userAgent);
138
- },
139
- get isNode() {
140
- return typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && typeof globalThis.process.versions.node !== 'undefined';
141
- },
142
- get isStandalone() {
143
- if (this.os.name === OS.iOS)
144
- return 'standalone' in globalThis.navigator && !!globalThis.navigator.standalone;
145
- if (!('matchMedia' in globalThis))
146
- return false;
147
- return globalThis.matchMedia('(display-mode: standalone)').matches;
148
- },
149
- onready: function (callback) {
150
- if (readyState === 'complete') {
151
- try {
152
- callback(this);
153
- }
154
- catch (_) {
155
- }
156
- }
157
- else {
158
- readyCallback.push(callback);
159
- }
160
- }
161
- };
162
- function resolveWindowsVersion(string) {
163
- if (typeof string === 'undefined')
164
- return '';
165
- var mapped = {
166
- '4.90': 'ME',
167
- 'NT3.51': 'NT 3.11',
168
- 'NT4.0': 'NT 4.0',
169
- 'NT 5.0': '2000',
170
- 'NT 5.1': 'XP',
171
- 'NT 5.2': 'XP',
172
- 'NT 6.0': 'Vista',
173
- 'NT 6.1': '7',
174
- 'NT 6.2': '8',
175
- 'NT 6.3': '8.1',
176
- 'NT 6.4': '10',
177
- 'NT 10.0': '10',
178
- 'ARM': 'RT'
179
- }[string];
180
- if (typeof mapped !== 'undefined')
181
- return mapped;
182
- return string;
183
- }
184
- function resolveUnderscoreVersion(string) {
185
- if (typeof string === 'undefined')
186
- return '';
187
- return string.replace(/_/g, '.');
188
- }
133
+ var RTL_LANGUAGES = ['ae', 'ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he', 'iw', 'ku', 'mzn', 'nqo', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi'];
189
134
  var OS_RESOLVER_MAP = [
190
135
  [/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
191
136
  [/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i, OS.Windows, resolveWindowsVersion],
@@ -244,157 +189,237 @@
244
189
  [/mobile vr; rv:([\w.]+)\).+firefox/i, Browsers.Firefox],
245
190
  [/firefox\/([\w.]+)/i, Browsers.Firefox],
246
191
  ];
247
- function incrementPendingTasks() {
248
- pendingTasks++;
249
- }
250
- function decrementPendingTasks() {
251
- pendingTasks--;
252
- checkReady();
253
- }
254
- function checkReady() {
255
- if (pendingTasks === 0 && readyState === 'loading') {
256
- readyState = 'complete';
257
- for (var i = 0; i < readyCallback.length; i++) {
258
- try {
259
- readyCallback[i](Platform);
260
- }
261
- catch (_) {
262
- }
263
- }
264
- readyCallback.length = 0;
265
- }
266
- }
267
- function resolveSemanticWindowsVersion(version, defaultValue) {
268
- if (version.major === 10 && version.minor === 0 && version.build >= 22000)
269
- return '11';
270
- if (version.major === 10 && version.minor === 0 && version.build < 22000)
271
- return '10';
272
- if (version.major === 6 && version.minor === 3)
273
- return '8.1';
274
- if (version.major === 6 && version.minor === 2)
275
- return '8';
276
- if (version.major === 6 && version.minor === 1)
277
- return '7';
278
- if (version.major === 6 && version.minor === 0)
279
- return 'Vista';
280
- if (version.major === 5 && version.minor === 1)
281
- return 'XP';
282
- if (version.major === 5 && version.minor === 2)
283
- return 'XP';
284
- if (version.major === 5 && version.minor === 0)
285
- return '2000';
286
- if (version.major === 4 && version.minor === 90)
287
- return 'ME';
288
- if (version.major === 4 && version.minor === 0)
289
- return 'NT 4.0';
290
- if (version.major === 3 && version.minor === 51)
291
- return 'NT 3.11';
292
- return defaultValue;
293
- }
294
- function resolveSemanticDarwinVersion(version, defaultValue) {
295
- if (version.major >= 24)
296
- return '' + (version.major - 9) + '.' + version.minor + '.' + version.build;
297
- if (version.major === 23)
298
- return '14.' + version.minor + '.' + version.build;
299
- if (version.major === 22)
300
- return '13.' + version.minor + '.' + version.build;
301
- if (version.major === 21)
302
- return '12.' + version.minor + '.' + version.build;
303
- if (version.major === 20)
304
- return '11.' + version.minor + '.' + version.build;
305
- if (version.major === 19)
306
- return '10.15.' + version.minor;
307
- if (version.major === 18)
308
- return '10.14.' + version.minor;
309
- if (version.major === 17)
310
- return '10.13.' + version.minor;
311
- if (version.major === 16)
312
- return '10.12.' + version.minor;
313
- if (version.major === 15)
314
- return '10.11.' + version.minor;
315
- if (version.major === 14)
316
- return '10.10.' + version.minor;
317
- if (version.major === 13)
318
- return '10.9.' + version.minor;
319
- if (version.major >= 5 && version.major <= 12)
320
- return '10.' + (version.major - 4) + '.' + version.minor;
321
- return defaultValue;
322
- }
323
- function resolveSemanticAndroidVersion(version, defaultValue) {
324
- if (version.major >= 36)
325
- return '16';
326
- if (version.major === 35)
327
- return '15';
328
- if (version.major === 34)
329
- return '14';
330
- if (version.major === 33)
331
- return '13';
332
- if (version.major === 32)
333
- return '12.1';
334
- if (version.major === 31)
335
- return '12';
336
- if (version.major === 30)
337
- return '11';
338
- if (version.major === 29)
339
- return '10';
340
- if (version.major === 28)
341
- return '9';
342
- if (version.major === 27)
343
- return '8.1';
344
- if (version.major === 26)
345
- return '8.0';
346
- if (version.major === 25)
347
- return '7.1';
348
- if (version.major === 24)
349
- return '7.0';
350
- if (version.major === 23)
351
- return '6.0';
352
- if (version.major === 22)
353
- return '5.1';
354
- if (version.major === 21)
355
- return '5.0';
356
- if (version.major === 20)
357
- return '4.4';
358
- if (version.major === 19)
359
- return '4.4';
360
- if (version.major === 18)
361
- return '4.3';
362
- if (version.major === 17)
363
- return '4.2';
364
- if (version.major === 16)
365
- return '4.1';
366
- if (version.major === 15)
367
- return '4.0.3';
368
- if (version.major === 14)
369
- return '4.0';
370
- if (version.major === 13)
371
- return '3.2';
372
- if (version.major === 12)
373
- return '3.1';
374
- if (version.major === 11)
375
- return '3.0';
376
- if (version.major === 10)
377
- return '2.3.3';
378
- if (version.major === 9)
379
- return '2.3';
380
- if (version.major === 8)
381
- return '2.2';
382
- if (version.major === 7)
383
- return '2.1';
384
- if (version.major === 6)
385
- return '2.0.1';
386
- if (version.major === 5)
387
- return '2.0';
388
- if (version.major === 4)
389
- return '1.6';
390
- if (version.major === 3)
391
- return '1.5';
392
- if (version.major === 2)
393
- return '1.1';
394
- if (version.major === 1)
395
- return '1.0';
396
- return defaultValue;
397
- }
192
+ var BOT_REGEXP = [
193
+ / daum[ /]/i,
194
+ / deusu\//i,
195
+ /(?:^|[^g])news(?!sapphire)/i,
196
+ /(?<! (?:channel\/|google\/))google(?!(app|\/google| pixel))/i,
197
+ /(?<! cu)bots?(?:\b|_)/i,
198
+ /(?<!lib)http/i,
199
+ /(?<![hg]m)score/i,
200
+ /(?<!cam)scan/i,
201
+ /24x7/i,
202
+ /@[a-z][\w-]+\./i,
203
+ /\(\)/i,
204
+ /\.com\b/i,
205
+ /\b\w+\.ai/i,
206
+ /\bmanus-user\//i,
207
+ /\bort\//i,
208
+ /\bperl\b/i,
209
+ /\bsecurityheaders\b/i,
210
+ /\btime\//i,
211
+ /\|/i,
212
+ /^[\w .\-(?:)%]+(?:\/v?\d+(?:\.\d+)?(?:\.\d{1,10})*?)?(?:,|$)/i,
213
+ /^[^ ]{50,}$/i,
214
+ /^\d+\b/i,
215
+ /^\W/i,
216
+ /^\w*search\b/i,
217
+ /^\w+\/[\w()]*$/i,
218
+ /^\w+\/\d\.\d\s\([\w@]+\)$/i,
219
+ /^active/i,
220
+ /^ad muncher/i,
221
+ /^amaya/i,
222
+ /^apache\//i,
223
+ /^avsdevicesdk\//i,
224
+ /^azure/i,
225
+ /^biglotron/i,
226
+ /^bot/i,
227
+ /^bw\//i,
228
+ /^clamav[ /]/i,
229
+ /^client\//i,
230
+ /^cobweb\//i,
231
+ /^custom/i,
232
+ /^ddg[_-]android/i,
233
+ /^discourse/i,
234
+ /^dispatch\/\d/i,
235
+ /^downcast\//i,
236
+ /^duckduckgo/i,
237
+ /^email/i,
238
+ /^facebook/i,
239
+ /^getright\//i,
240
+ /^gozilla\//i,
241
+ /^hobbit/i,
242
+ /^hotzonu/i,
243
+ /^hwcdn\//i,
244
+ /^igetter\//i,
245
+ /^jeode\//i,
246
+ /^jetty\//i,
247
+ /^jigsaw/i,
248
+ /^microsoft bits/i,
249
+ /^movabletype/i,
250
+ /^mozilla\/\d\.\d\s[\w.-]+$/i,
251
+ /^mozilla\/\d\.\d\s\(compatible;?(?:\s[\w-.]+\/\d+\.\d+)?\)$/i,
252
+ /^navermailapp/i,
253
+ /^netsurf/i,
254
+ /^offline/i,
255
+ /^openai\//i,
256
+ /^owler/i,
257
+ /^php/i,
258
+ /^postman/i,
259
+ /^python/i,
260
+ /^rank/i,
261
+ /^read/i,
262
+ /^reed/i,
263
+ /^rest/i,
264
+ /^rss/i,
265
+ /^snapchat/i,
266
+ /^space bison/i,
267
+ /^svn/i,
268
+ /^swcd /i,
269
+ /^taringa/i,
270
+ /^thumbor\//i,
271
+ /^track/i,
272
+ /^w3c/i,
273
+ /^webbandit\//i,
274
+ /^webcopier/i,
275
+ /^wget/i,
276
+ /^whatsapp/i,
277
+ /^wordpress/i,
278
+ /^xenu link sleuth/i,
279
+ /^yahoo/i,
280
+ /^yandex/i,
281
+ /^zdm\/\d/i,
282
+ /^zoom marketplace\//i,
283
+ /advisor/i,
284
+ /agent\b/i,
285
+ /analyzer/i,
286
+ /archive/i,
287
+ /ask jeeves\/teoma/i,
288
+ /audit/i,
289
+ /bit\.ly\//i,
290
+ /bluecoat drtr/i,
291
+ /browsex/i,
292
+ /burpcollaborator/i,
293
+ /capture/i,
294
+ /catch/i,
295
+ /check\b/i,
296
+ /checker/i,
297
+ /chrome-lighthouse/i,
298
+ /chromeframe/i,
299
+ /classifier/i,
300
+ /cloudflare/i,
301
+ /convertify/i,
302
+ /crawl/i,
303
+ /cypress\//i,
304
+ /dareboost/i,
305
+ /datanyze/i,
306
+ /dejaclick/i,
307
+ /detect/i,
308
+ /dmbrowser/i,
309
+ /download/i,
310
+ /exaleadcloudview/i,
311
+ /feed/i,
312
+ /fetcher/i,
313
+ /firephp/i,
314
+ /functionize/i,
315
+ /grab/i,
316
+ /headless/i,
317
+ /httrack/i,
318
+ /hubspot marketing grader/i,
319
+ /ibisbrowser/i,
320
+ /infrawatch/i,
321
+ /insight/i,
322
+ /inspect/i,
323
+ /iplabel/i,
324
+ /java(?!;)/i,
325
+ /library/i,
326
+ /linkcheck/i,
327
+ /mail\.ru\//i,
328
+ /manager/i,
329
+ /measure/i,
330
+ /neustar wpm/i,
331
+ /node\b/i,
332
+ /nutch/i,
333
+ /offbyone/i,
334
+ /onetrust/i,
335
+ /optimize/i,
336
+ /pageburst/i,
337
+ /pagespeed/i,
338
+ /parser/i,
339
+ /phantomjs/i,
340
+ /pingdom/i,
341
+ /powermarks/i,
342
+ /preview/i,
343
+ /proxy/i,
344
+ /ptst[ /]\d/i,
345
+ /retriever/i,
346
+ /rexx;/i,
347
+ /rigor/i,
348
+ /rss\b/i,
349
+ /scrape/i,
350
+ /server/i,
351
+ /sogou/i,
352
+ /sparkler\//i,
353
+ /speedcurve/i,
354
+ /spider/i,
355
+ /splash/i,
356
+ /statuscake/i,
357
+ /supercleaner/i,
358
+ /synapse/i,
359
+ /synthetic/i,
360
+ /tools/i,
361
+ /torrent/i,
362
+ /transcoder/i,
363
+ /url/i,
364
+ /validator/i,
365
+ /virtuoso/i,
366
+ /wappalyzer/i,
367
+ /webglance/i,
368
+ /webkit2png/i,
369
+ /whatcms\//i,
370
+ /xtate\//i
371
+ ];
372
+
373
+ var userAgent = USER_AGENT;
374
+ var Platform = {
375
+ get os() {
376
+ return getOS();
377
+ },
378
+ get engine() {
379
+ return getEngine();
380
+ },
381
+ get browser() {
382
+ return getBrowser();
383
+ },
384
+ get userAgent() {
385
+ return userAgent;
386
+ },
387
+ set userAgent(value) {
388
+ userAgent = value;
389
+ },
390
+ get locale() {
391
+ return getLocale();
392
+ },
393
+ get device() {
394
+ return getDevice();
395
+ },
396
+ get renderer() {
397
+ return getRenderer();
398
+ },
399
+ get isWebview() {
400
+ return getIsWebview();
401
+ },
402
+ get isNode() {
403
+ return getIsNode();
404
+ },
405
+ get isStandalone() {
406
+ return getIsStandalone();
407
+ },
408
+ get isBot() {
409
+ return getIsBot();
410
+ },
411
+ Constants: {
412
+ OS: OS,
413
+ Engines: Engines,
414
+ Browsers: Browsers,
415
+ Devices: Devices,
416
+ },
417
+ Errors: {},
418
+ };
419
+ var parsedFromHighEntropyValuesOS = {};
420
+ var parsedFromHighEntropyValuesBrowser = {};
421
+ var parsedFromHighEntropyValuesEngine = {};
422
+ var parsedFromHighEntropyValuesDevice = null;
398
423
  function resolveVersion(string, resolver) {
399
424
  if (typeof resolver === 'function')
400
425
  return resolver(string);
@@ -411,54 +436,6 @@
411
436
  return { brand: entry, version: '' };
412
437
  return { brand: entry.brand, version: entry.version };
413
438
  }
414
- function getSemanticVersion(string) {
415
- var parts = string.split('.');
416
- return {
417
- major: parseInt(parts[0] || '0'),
418
- minor: parseInt(parts[1] || '0'),
419
- build: parseInt(parts[2] || '0')
420
- };
421
- }
422
- function parseOSFromCordova() {
423
- Platform.crossPlatformFramework = CrossPlatformFramework.Cordova;
424
- if (typeof globalThis.device !== 'undefined') {
425
- switch (globalThis.device.platform) {
426
- case 'Android':
427
- Platform.os = {
428
- name: OS.Android,
429
- version: globalThis.device.version,
430
- };
431
- break;
432
- case 'iOS':
433
- Platform.os = {
434
- name: OS.iOS,
435
- version: globalThis.device.version,
436
- };
437
- break;
438
- }
439
- }
440
- decrementPendingTasks();
441
- }
442
- function getRenderer() {
443
- if (typeof globalThis.document === 'undefined')
444
- return '';
445
- var canvas = globalThis.document.createElement('canvas');
446
- if (typeof canvas.getContext !== 'function')
447
- return '';
448
- var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
449
- if (context === null)
450
- return '';
451
- if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
452
- var extension = context.getExtension('WEBGL_debug_renderer_info');
453
- if (extension === null)
454
- return context.getParameter(context.RENDERER);
455
- else
456
- return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
457
- }
458
- else {
459
- return '';
460
- }
461
- }
462
439
  function normalizeLocale(locale) {
463
440
  if (locale === null || typeof locale === 'undefined')
464
441
  return locale;
@@ -481,13 +458,35 @@
481
458
  parts[1] = parts[1].charAt(0).toUpperCase() + parts[1].slice(1).toLowerCase();
482
459
  return parts.join('-');
483
460
  }
461
+ function getRenderer() {
462
+ if (typeof globalThis.document === 'undefined')
463
+ return '';
464
+ var canvas = globalThis.document.createElement('canvas');
465
+ if (typeof canvas.getContext !== 'function')
466
+ return '';
467
+ var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
468
+ if (context === null)
469
+ return '';
470
+ if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
471
+ var extension = context.getExtension('WEBGL_debug_renderer_info');
472
+ if (extension === null)
473
+ return context.getParameter(context.RENDERER);
474
+ else
475
+ return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
476
+ }
477
+ else {
478
+ return '';
479
+ }
480
+ }
484
481
  function getLocale() {
485
482
  var locale = {
486
483
  language: null,
487
484
  languages: [],
488
485
  timezone: null,
489
486
  timezoneOffset: 0,
487
+ isRTL: false,
490
488
  };
489
+ var isRTL = null;
491
490
  function addLanguages(language) {
492
491
  for (var i = 0; i < language.length; i++)
493
492
  addLanguage(language[i]);
@@ -500,53 +499,6 @@
500
499
  locale.languages.push(language);
501
500
  }
502
501
  }
503
- if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
504
- try {
505
- var reactNative = require('react-native');
506
- var nativeModules = reactNative.NativeModules;
507
- if (typeof nativeModules.SettingsManager !== 'undefined') {
508
- var settingManager = nativeModules.SettingsManager;
509
- if (typeof settingManager !== 'undefined') {
510
- var constant = typeof settingManager.getConstants === 'function'
511
- ? settingManager.getConstants()
512
- : settingManager;
513
- if (typeof constant !== 'undefined' && typeof constant.settings !== 'undefined') {
514
- var settings = constant.settings;
515
- if (typeof settings.AppleLocale === 'string')
516
- addLanguage(settings.AppleLocale);
517
- if (Array.isArray(settings.AppleLanguages) && settings.AppleLanguages.length > 0)
518
- addLanguages(settings.AppleLanguages);
519
- }
520
- }
521
- }
522
- if (typeof nativeModules.I18nManager !== 'undefined') {
523
- var i18nManager = nativeModules.I18nManager;
524
- if (typeof i18nManager !== 'undefined') {
525
- var constant = typeof i18nManager.getConstants === 'function'
526
- ? i18nManager.getConstants()
527
- : i18nManager;
528
- if (typeof constant !== 'undefined' && typeof constant.localeIdentifier !== 'undefined')
529
- addLanguage(constant.localeIdentifier);
530
- }
531
- }
532
- }
533
- catch (_) {
534
- }
535
- }
536
- if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron) {
537
- try {
538
- var electron = require('electron');
539
- var app = electron.app;
540
- if (typeof app.getLocale !== 'undefined')
541
- addLanguage(app.getLocale());
542
- if (typeof app.getSystemLocale !== 'undefined')
543
- addLanguage(app.getSystemLocale());
544
- if (typeof app.getPreferredSystemLanguages !== 'undefined')
545
- addLanguages(app.getPreferredSystemLanguages());
546
- }
547
- catch (_) {
548
- }
549
- }
550
502
  if (typeof Intl !== 'undefined') {
551
503
  try {
552
504
  addLanguage(Intl.DateTimeFormat().resolvedOptions().locale);
@@ -576,13 +528,37 @@
576
528
  }
577
529
  catch (_) {
578
530
  }
531
+ if (typeof locale.language === 'string') {
532
+ if (typeof Intl !== 'undefined' && typeof Intl.Locale !== 'undefined') {
533
+ try {
534
+ var intlLocale = new Intl.Locale(locale.language);
535
+ if (typeof intlLocale.getTextInfo === 'function')
536
+ isRTL = intlLocale.getTextInfo().direction === 'rtl';
537
+ else if (typeof intlLocale.textInfo !== 'undefined')
538
+ isRTL = intlLocale.textInfo.direction === 'rtl';
539
+ }
540
+ catch (_) {
541
+ }
542
+ }
543
+ if (typeof isRTL !== 'boolean') {
544
+ var matched = /^([A-Za-z]{1,8})(?:[-_][A-Za-z0-9]{1,8})*$/.exec(locale.language);
545
+ if (matched !== null) {
546
+ var language = matched[1].toLowerCase();
547
+ for (var i = 0; i < RTL_LANGUAGES.length; i++) {
548
+ if (RTL_LANGUAGES[i] === language) {
549
+ isRTL = true;
550
+ break;
551
+ }
552
+ }
553
+ }
554
+ }
555
+ }
556
+ if (typeof isRTL === 'boolean')
557
+ locale.isRTL = isRTL;
579
558
  return locale;
580
559
  }
581
- function init() {
582
- if ((typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && typeof globalThis.process.versions.electron !== 'undefined') || (/ electron\//i.test(USER_AGENT)))
583
- Platform.crossPlatformFramework = CrossPlatformFramework.Electron;
584
- if (typeof globalThis.navigator !== 'undefined' && globalThis.navigator.product === 'ReactNative')
585
- Platform.crossPlatformFramework = CrossPlatformFramework.ReactNative;
560
+ function getOS() {
561
+ var result = { name: OS.Unknown, version: '' };
586
562
  for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
587
563
  var map = OS_RESOLVER_MAP[i];
588
564
  var regexp = map[0];
@@ -590,18 +566,26 @@
590
566
  var resolver = map[2];
591
567
  var matched = Platform.userAgent.match(regexp);
592
568
  if (matched !== null) {
593
- Platform.os = {
594
- name: os,
595
- version: resolveVersion(matched[1], resolver),
596
- };
569
+ result.name = os;
570
+ result.version = resolveVersion(matched[1], resolver);
597
571
  break;
598
572
  }
599
573
  }
600
- if (Platform.os.name === OS.iOS && compareVersion(Platform.os.version, '18.6') === 0) {
574
+ if (result.name === OS.iOS && compareVersion(result.version, '18.6') === 0) {
601
575
  var version = /\) Version\/([\d.]+)/.exec(Platform.userAgent);
602
576
  if (version !== null && parseInt(version[1].substring(0, 2), 10) >= 26)
603
- Platform.os.version = version[1];
577
+ result.version = version[1];
604
578
  }
579
+ if (Platform.userAgent === USER_AGENT) {
580
+ if (typeof parsedFromHighEntropyValuesOS.name !== 'undefined')
581
+ result.name = parsedFromHighEntropyValuesOS.name;
582
+ if (typeof parsedFromHighEntropyValuesOS.version !== 'undefined')
583
+ result.version = parsedFromHighEntropyValuesOS.version;
584
+ }
585
+ return result;
586
+ }
587
+ function getEngine() {
588
+ var result = { name: Engines.Unknown, version: '' };
605
589
  for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
606
590
  var map = ENGINE_RESOLVER_MAP[i];
607
591
  var regexp = map[0];
@@ -609,13 +593,21 @@
609
593
  var resolver = map[2];
610
594
  var matched = Platform.userAgent.match(regexp);
611
595
  if (matched !== null) {
612
- Platform.engine = {
613
- name: engine,
614
- version: resolveVersion(matched[1], resolver),
615
- };
596
+ result.name = engine;
597
+ result.version = resolveVersion(matched[1], resolver);
616
598
  break;
617
599
  }
618
600
  }
601
+ if (Platform.userAgent === USER_AGENT) {
602
+ if (typeof parsedFromHighEntropyValuesEngine.name !== 'undefined')
603
+ result.name = parsedFromHighEntropyValuesEngine.name;
604
+ if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
605
+ result.version = parsedFromHighEntropyValuesEngine.version;
606
+ }
607
+ return result;
608
+ }
609
+ function getBrowser() {
610
+ var result = { name: Browsers.Unknown, version: '' };
619
611
  for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
620
612
  var map = BROWSER_RESOLVER_MAP[i];
621
613
  var regexp = map[0];
@@ -623,102 +615,49 @@
623
615
  var resolver = map[2];
624
616
  var matched = Platform.userAgent.match(regexp);
625
617
  if (matched !== null) {
626
- Platform.browser = {
627
- name: browser,
628
- version: resolveVersion(matched[1], resolver),
629
- };
618
+ result.name = browser;
619
+ result.version = resolveVersion(matched[1], resolver);
630
620
  break;
631
621
  }
632
622
  }
633
- if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
634
- try {
635
- var reactNative = require('react-native');
636
- var platform = reactNative.Platform;
637
- var os = platform.OS;
638
- var release = '' + platform.Version;
639
- var version = getSemanticVersion(release);
640
- switch (os) {
641
- case 'android':
642
- Platform.os = {
643
- name: OS.Android,
644
- version: resolveSemanticAndroidVersion(version, release),
645
- };
646
- break;
647
- case 'ios':
648
- Platform.os = {
649
- name: OS.iOS,
650
- version: release,
651
- };
652
- break;
653
- case 'windows':
654
- Platform.os = {
655
- name: OS.Windows,
656
- version: resolveSemanticWindowsVersion(version, release),
657
- };
658
- break;
659
- case 'macos':
660
- Platform.os = {
661
- name: OS.MacOS,
662
- version: release,
663
- };
664
- break;
665
- }
666
- }
667
- catch (_) {
668
- }
669
- finally {
670
- }
671
- }
672
- if (Platform.isNode) {
673
- try {
674
- var os = require('os');
675
- var platform = os.platform();
676
- var release = os.release();
677
- var version = getSemanticVersion(release);
678
- switch (platform) {
679
- case 'win32':
680
- Platform.os = {
681
- name: OS.Windows,
682
- version: resolveSemanticWindowsVersion(version, release),
683
- };
684
- break;
685
- case 'darwin':
686
- Platform.os = {
687
- name: OS.MacOS,
688
- version: resolveSemanticDarwinVersion(version, release),
689
- };
690
- break;
691
- case 'android':
692
- Platform.os = {
693
- name: OS.Android,
694
- version: release,
695
- };
696
- break;
697
- case 'linux':
698
- if (/android/i.test(release)) {
699
- Platform.os = {
700
- name: OS.Android,
701
- version: release,
702
- };
703
- }
704
- break;
705
- }
706
- }
707
- catch (_) {
708
- }
709
- finally {
710
- }
711
- }
712
- if (typeof globalThis.document !== 'undefined') {
713
- if (typeof globalThis.device !== 'undefined') {
714
- parseOSFromCordova();
715
- }
716
- else {
717
- globalThis.document.addEventListener("deviceready", parseOSFromCordova, false);
718
- }
623
+ if (Platform.userAgent === USER_AGENT) {
624
+ if (typeof parsedFromHighEntropyValuesBrowser.name !== 'undefined')
625
+ result.name = parsedFromHighEntropyValuesBrowser.name;
626
+ if (typeof parsedFromHighEntropyValuesBrowser.version !== 'undefined')
627
+ result.version = parsedFromHighEntropyValuesBrowser.version;
719
628
  }
629
+ return result;
630
+ }
631
+ function getDevice() {
632
+ if (Platform.userAgent === USER_AGENT && parsedFromHighEntropyValuesDevice !== null)
633
+ return parsedFromHighEntropyValuesDevice;
634
+ if (Platform.os.name === OS.iOS || Platform.os.name === OS.Android)
635
+ return Devices.Mobile;
636
+ if (Platform.os.name === OS.Windows || Platform.os.name === OS.MacOS)
637
+ return Devices.Desktop;
638
+ return Devices.Unknown;
639
+ }
640
+ function getIsWebview() {
641
+ return /; ?wv|applewebkit(?!.*safari)/i.test(Platform.userAgent);
642
+ }
643
+ function getIsNode() {
644
+ return typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && typeof globalThis.process.versions.node !== 'undefined';
645
+ }
646
+ function getIsStandalone() {
647
+ if (Platform.os.name === OS.iOS)
648
+ return 'standalone' in globalThis.navigator && !!globalThis.navigator.standalone;
649
+ if (!('matchMedia' in globalThis))
650
+ return false;
651
+ return globalThis.matchMedia('(display-mode: standalone)').matches;
652
+ }
653
+ function getIsBot() {
654
+ for (var i = 0; i < BOT_REGEXP.length; i++)
655
+ if (BOT_REGEXP[i].test(Platform.userAgent))
656
+ return true;
657
+ return false;
658
+ }
659
+ function parseFromHighEntropyValues() {
720
660
  if (typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgentData !== 'undefined' && typeof globalThis.navigator.userAgentData.getHighEntropyValues !== 'undefined') {
721
- incrementPendingTasks();
722
661
  globalThis.navigator.userAgentData.getHighEntropyValues(['brands', 'fullVersionList', 'mobile', 'model', 'platform', 'platformVersion', 'architecture', 'formFactors', 'bitness', 'uaFullVersion', 'wow64'])
723
662
  .then(function (result) {
724
663
  try {
@@ -739,47 +678,43 @@
739
678
  if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
740
679
  browserName = brandName;
741
680
  if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
742
- Platform.browser.name = Browsers.Chrome;
681
+ parsedFromHighEntropyValuesBrowser.name = Browsers.Chrome;
743
682
  else if (browserName === 'Edge' || browserName === 'Edge WebView2')
744
- Platform.browser.name = Browsers.Edge;
683
+ parsedFromHighEntropyValuesBrowser.name = Browsers.Edge;
745
684
  else if (browserName === 'Opera Mobi')
746
- Platform.browser.name = Browsers.Opera;
747
- Platform.browser.version = brandVersion;
685
+ parsedFromHighEntropyValuesBrowser.name = Browsers.Opera;
686
+ parsedFromHighEntropyValuesBrowser.version = brandVersion;
748
687
  }
749
688
  prevBrandName = brandName;
750
689
  }
751
690
  if (brandName === 'Chromium')
752
- Platform.engine.version = brandVersion;
691
+ parsedFromHighEntropyValuesEngine.version = brandVersion;
753
692
  }
754
693
  if (typeof platformVersion === 'string') {
755
694
  if (Platform.os.name === OS.Windows)
756
- Platform.os.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
695
+ parsedFromHighEntropyValuesOS.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
757
696
  else
758
- Platform.os.version = platformVersion;
697
+ parsedFromHighEntropyValuesOS.version = platformVersion;
759
698
  }
760
699
  if (typeof platform === 'string') {
761
700
  if (/android/i.test(platform))
762
- Platform.os.name = OS.Android;
701
+ parsedFromHighEntropyValuesOS.name = OS.Android;
763
702
  else if (/ios|iphone|ipad/i.test(platform))
764
- Platform.os.name = OS.iOS;
703
+ parsedFromHighEntropyValuesOS.name = OS.iOS;
765
704
  else if (/windows|win32/i.test(platform))
766
- Platform.os.name = OS.Windows;
705
+ parsedFromHighEntropyValuesOS.name = OS.Windows;
767
706
  else if (/macos|macintel/i.test(platform))
768
- Platform.os.name = OS.MacOS;
707
+ parsedFromHighEntropyValuesOS.name = OS.MacOS;
769
708
  }
770
709
  if (result.mobile === true)
771
- Platform.device = Devices.Mobile;
710
+ parsedFromHighEntropyValuesDevice = Devices.Mobile;
772
711
  }
773
712
  catch (_) {
774
713
  }
775
- finally {
776
- decrementPendingTasks();
777
- }
778
714
  });
779
715
  }
780
- checkReady();
781
716
  }
782
- init();
717
+ parseFromHighEntropyValues();
783
718
 
784
719
  var currentAppearance = null;
785
720
  var appearanceIntervalId = null;
@@ -787,10 +722,11 @@
787
722
  get value() {
788
723
  return getAppearance();
789
724
  },
790
- set value(appearance) {
791
- setAppearance(appearance);
792
- },
793
725
  onchange: onchange,
726
+ Constants: {
727
+ Appearances: Appearances
728
+ },
729
+ Errors: {}
794
730
  };
795
731
  function getAppearanceFromEngine() {
796
732
  var img = new Image();
@@ -811,53 +747,11 @@
811
747
  return Appearances.Dark;
812
748
  return Appearances.Light;
813
749
  }
814
- function getAppearanceFromReactNative() {
815
- try {
816
- var reactNative = require('react-native');
817
- return reactNative.Appearance.getColorScheme() || Appearances.Unknown;
818
- }
819
- catch (_) {
820
- return Appearances.Unknown;
821
- }
822
- }
823
- function getAppearanceFromElectron() {
824
- try {
825
- var electron = require('electron');
826
- return electron.nativeTheme.shouldUseDarkColors ? Appearances.Dark : Appearances.Light;
827
- }
828
- catch (_) {
829
- return Appearances.Unknown;
830
- }
831
- }
832
750
  function getAppearance() {
833
- if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative)
834
- return getAppearanceFromReactNative();
835
- if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron)
836
- return getAppearanceFromElectron();
837
751
  if (Platform.browser.name === Browsers.SamsungInternet)
838
752
  return getAppearanceFromEngine();
839
753
  return getAppearanceFromMediaQuery();
840
754
  }
841
- function setAppearance(appearance) {
842
- if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
843
- try {
844
- var reactNative = require('react-native');
845
- reactNative.Appearance.setColorScheme(appearance);
846
- return;
847
- }
848
- catch (_) {
849
- }
850
- }
851
- if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron) {
852
- try {
853
- var electron = require('electron');
854
- electron.nativeTheme.themeSource = appearance || 'system';
855
- return;
856
- }
857
- catch (_) {
858
- }
859
- }
860
- }
861
755
  function startPolling() {
862
756
  currentAppearance = getAppearanceFromEngine();
863
757
  appearanceIntervalId = globalThis.setInterval(function () {
@@ -923,79 +817,6 @@
923
817
  return i;
924
818
  return -1;
925
819
  }
926
- function onchangeReactNative(entry) {
927
- try {
928
- var reactNative = require('react-native');
929
- var isRemoved_1 = false;
930
- var listener = function (preferences) {
931
- if (isRemoved_1)
932
- return;
933
- entry.fn(preferences.colorScheme || Appearances.Unknown);
934
- if (entry.once)
935
- cleanup_1();
936
- };
937
- var cleanup_1 = function () {
938
- if (isRemoved_1)
939
- return;
940
- if (typeof entry.signal !== 'undefined')
941
- entry.signal.removeEventListener('abort', cleanup_1);
942
- isRemoved_1 = true;
943
- subscription_1.remove();
944
- };
945
- if (typeof entry.signal !== 'undefined') {
946
- if (entry.signal.aborted) {
947
- return function () {
948
- };
949
- }
950
- entry.signal.addEventListener('abort', cleanup_1);
951
- }
952
- var subscription_1 = reactNative.Appearance.addChangeListener(listener);
953
- return function () {
954
- subscription_1.remove();
955
- };
956
- }
957
- catch (_) {
958
- }
959
- return function () {
960
- };
961
- }
962
- function onchangeElectron(entry) {
963
- try {
964
- var electron = require('electron');
965
- var nativeTheme_1 = electron.nativeTheme;
966
- var isRemoved_2 = false;
967
- var listener_1 = function () {
968
- if (isRemoved_2)
969
- return;
970
- entry.fn(getAppearanceFromElectron());
971
- if (entry.once)
972
- cleanup_2();
973
- };
974
- var cleanup_2 = function () {
975
- if (isRemoved_2)
976
- return;
977
- if (typeof entry.signal !== 'undefined')
978
- entry.signal.removeEventListener('abort', cleanup_2);
979
- isRemoved_2 = true;
980
- nativeTheme_1.removeListener('updated', listener_1);
981
- };
982
- if (typeof entry.signal !== 'undefined') {
983
- if (entry.signal.aborted) {
984
- return function () {
985
- };
986
- }
987
- entry.signal.addEventListener('abort', cleanup_2);
988
- }
989
- nativeTheme_1.on('updated', listener_1);
990
- return function () {
991
- nativeTheme_1.removeListener('updated', listener_1);
992
- };
993
- }
994
- catch (_) {
995
- }
996
- return function () {
997
- };
998
- }
999
820
  function onchange(listener, options) {
1000
821
  if (options === void 0) { options = false; }
1001
822
  var entry = { fn: listener, capture: false, once: false };
@@ -1007,10 +828,6 @@
1007
828
  entry.once = options.once;
1008
829
  if (typeof options.signal !== 'undefined')
1009
830
  entry.signal = options.signal;
1010
- if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative)
1011
- return onchangeReactNative(entry);
1012
- if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron)
1013
- return onchangeElectron(entry);
1014
831
  var index = indexOfEntry(entry);
1015
832
  if (index === -1) {
1016
833
  ENTRIES.push(entry);
@@ -1041,16 +858,6 @@
1041
858
  };
1042
859
  }
1043
860
 
1044
- var NativeAppearancePlugin = {
1045
- installed: false,
1046
- name: 'Appearance',
1047
- module: Appearance,
1048
- Constants: {
1049
- Appearances: Appearances,
1050
- },
1051
- Errors: {}
1052
- };
1053
-
1054
- return NativeAppearancePlugin;
861
+ return Appearance;
1055
862
 
1056
863
  }));