cfsolve 0.1.0-aarch64-linux-gnu

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 (621) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +6 -0
  3. data/LICENSE +21 -0
  4. data/README.md +66 -0
  5. data/THIRD_PARTY_LICENSES/Inflector-0.11.4/LICENSE.md +22 -0
  6. data/THIRD_PARTY_LICENSES/README.md +761 -0
  7. data/THIRD_PARTY_LICENSES/adler2-2.0.1/LICENSE-0BSD +12 -0
  8. data/THIRD_PARTY_LICENSES/adler2-2.0.1/LICENSE-APACHE +201 -0
  9. data/THIRD_PARTY_LICENSES/adler2-2.0.1/LICENSE-MIT +23 -0
  10. data/THIRD_PARTY_LICENSES/ahash-0.8.12/LICENSE-APACHE +201 -0
  11. data/THIRD_PARTY_LICENSES/ahash-0.8.12/LICENSE-MIT +25 -0
  12. data/THIRD_PARTY_LICENSES/aho-corasick-1.1.4/COPYING +3 -0
  13. data/THIRD_PARTY_LICENSES/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  14. data/THIRD_PARTY_LICENSES/alloc-no-stdlib-2.0.4/LICENSE +12 -0
  15. data/THIRD_PARTY_LICENSES/alloc-stdlib-0.2.4/LICENSE +12 -0
  16. data/THIRD_PARTY_LICENSES/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
  17. data/THIRD_PARTY_LICENSES/allocator-api2-0.2.21/LICENSE-MIT +23 -0
  18. data/THIRD_PARTY_LICENSES/android_system_properties-0.1.5/LICENSE-APACHE +13 -0
  19. data/THIRD_PARTY_LICENSES/android_system_properties-0.1.5/LICENSE-MIT +20 -0
  20. data/THIRD_PARTY_LICENSES/anyhow-1.0.104/LICENSE-APACHE +176 -0
  21. data/THIRD_PARTY_LICENSES/anyhow-1.0.104/LICENSE-MIT +23 -0
  22. data/THIRD_PARTY_LICENSES/arrayvec-0.7.6/LICENSE-APACHE +201 -0
  23. data/THIRD_PARTY_LICENSES/arrayvec-0.7.6/LICENSE-MIT +25 -0
  24. data/THIRD_PARTY_LICENSES/ascii-1.1.0/LICENSE-APACHE +201 -0
  25. data/THIRD_PARTY_LICENSES/ascii-1.1.0/LICENSE-MIT +22 -0
  26. data/THIRD_PARTY_LICENSES/ast_node-5.0.0/LICENSE +201 -0
  27. data/THIRD_PARTY_LICENSES/async-compression-0.4.45/LICENSE-APACHE +201 -0
  28. data/THIRD_PARTY_LICENSES/async-compression-0.4.45/LICENSE-MIT +21 -0
  29. data/THIRD_PARTY_LICENSES/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  30. data/THIRD_PARTY_LICENSES/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  31. data/THIRD_PARTY_LICENSES/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  32. data/THIRD_PARTY_LICENSES/autocfg-1.5.0/LICENSE-APACHE +201 -0
  33. data/THIRD_PARTY_LICENSES/autocfg-1.5.0/LICENSE-MIT +25 -0
  34. data/THIRD_PARTY_LICENSES/base64-0.22.1/LICENSE-APACHE +201 -0
  35. data/THIRD_PARTY_LICENSES/base64-0.22.1/LICENSE-MIT +21 -0
  36. data/THIRD_PARTY_LICENSES/base64-simd-0.8.0/LICENSE +21 -0
  37. data/THIRD_PARTY_LICENSES/better_scoped_tls-1.0.1/LICENSE +201 -0
  38. data/THIRD_PARTY_LICENSES/bindgen-0.72.1/LICENSE +29 -0
  39. data/THIRD_PARTY_LICENSES/bitflags-2.13.1/LICENSE-APACHE +201 -0
  40. data/THIRD_PARTY_LICENSES/bitflags-2.13.1/LICENSE-MIT +25 -0
  41. data/THIRD_PARTY_LICENSES/bitvec-1.0.1/LICENSE.txt +21 -0
  42. data/THIRD_PARTY_LICENSES/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  43. data/THIRD_PARTY_LICENSES/block-buffer-0.10.4/LICENSE-MIT +25 -0
  44. data/THIRD_PARTY_LICENSES/brotli-8.0.4/LICENSE.BSD-3-Clause +12 -0
  45. data/THIRD_PARTY_LICENSES/brotli-8.0.4/LICENSE.MIT +19 -0
  46. data/THIRD_PARTY_LICENSES/brotli-decompressor-5.0.3/LICENSE +12 -0
  47. data/THIRD_PARTY_LICENSES/browserslist-data-0.1.4/LICENSE +21 -0
  48. data/THIRD_PARTY_LICENSES/browserslist-rs-0.19.0/LICENSE +21 -0
  49. data/THIRD_PARTY_LICENSES/bstr-1.12.1/COPYING +8 -0
  50. data/THIRD_PARTY_LICENSES/bstr-1.12.1/LICENSE-APACHE +201 -0
  51. data/THIRD_PARTY_LICENSES/bstr-1.12.1/LICENSE-MIT +21 -0
  52. data/THIRD_PARTY_LICENSES/btls-0.5.6/LICENSE +17 -0
  53. data/THIRD_PARTY_LICENSES/btls-sys-0.5.6/BORINGSSL-LICENSE +238 -0
  54. data/THIRD_PARTY_LICENSES/btls-sys-0.5.6/LICENSE-MIT +27 -0
  55. data/THIRD_PARTY_LICENSES/bumpalo-3.20.3/LICENSE-APACHE +201 -0
  56. data/THIRD_PARTY_LICENSES/bumpalo-3.20.3/LICENSE-MIT +25 -0
  57. data/THIRD_PARTY_LICENSES/bytes-1.12.1/LICENSE +25 -0
  58. data/THIRD_PARTY_LICENSES/bytes-str-0.2.7/LICENSE +202 -0
  59. data/THIRD_PARTY_LICENSES/camino-1.2.2/LICENSE-APACHE +201 -0
  60. data/THIRD_PARTY_LICENSES/camino-1.2.2/LICENSE-MIT +23 -0
  61. data/THIRD_PARTY_LICENSES/cargo-platform-0.1.9/LICENSE-APACHE +201 -0
  62. data/THIRD_PARTY_LICENSES/cargo-platform-0.1.9/LICENSE-MIT +23 -0
  63. data/THIRD_PARTY_LICENSES/cargo_metadata-0.19.2/LICENSE-MIT +23 -0
  64. data/THIRD_PARTY_LICENSES/castaway-0.2.4/LICENSE +21 -0
  65. data/THIRD_PARTY_LICENSES/cc-1.2.51/LICENSE-APACHE +201 -0
  66. data/THIRD_PARTY_LICENSES/cc-1.2.51/LICENSE-MIT +25 -0
  67. data/THIRD_PARTY_LICENSES/cexpr-0.6.0/LICENSE-APACHE +201 -0
  68. data/THIRD_PARTY_LICENSES/cexpr-0.6.0/LICENSE-MIT +25 -0
  69. data/THIRD_PARTY_LICENSES/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  70. data/THIRD_PARTY_LICENSES/cfg-if-1.0.4/LICENSE-MIT +25 -0
  71. data/THIRD_PARTY_LICENSES/cfsolve/LICENSE +21 -0
  72. data/THIRD_PARTY_LICENSES/cfsolve-0.1.0/LICENSE +21 -0
  73. data/THIRD_PARTY_LICENSES/chrono-0.4.42/LICENSE.txt +240 -0
  74. data/THIRD_PARTY_LICENSES/clang-sys-1.9.1/LICENSE.txt +202 -0
  75. data/THIRD_PARTY_LICENSES/cmake-0.1.58/LICENSE-APACHE +201 -0
  76. data/THIRD_PARTY_LICENSES/cmake-0.1.58/LICENSE-MIT +25 -0
  77. data/THIRD_PARTY_LICENSES/compact_str-0.7.1/LICENSE +21 -0
  78. data/THIRD_PARTY_LICENSES/compression-codecs-0.4.40/LICENSE-APACHE +201 -0
  79. data/THIRD_PARTY_LICENSES/compression-codecs-0.4.40/LICENSE-MIT +21 -0
  80. data/THIRD_PARTY_LICENSES/compression-core-0.4.33/LICENSE-APACHE +201 -0
  81. data/THIRD_PARTY_LICENSES/compression-core-0.4.33/LICENSE-MIT +21 -0
  82. data/THIRD_PARTY_LICENSES/cookie-0.18.2/LICENSE-APACHE +202 -0
  83. data/THIRD_PARTY_LICENSES/cookie-0.18.2/LICENSE-MIT +26 -0
  84. data/THIRD_PARTY_LICENSES/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
  85. data/THIRD_PARTY_LICENSES/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
  86. data/THIRD_PARTY_LICENSES/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  87. data/THIRD_PARTY_LICENSES/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  88. data/THIRD_PARTY_LICENSES/crc32fast-1.5.1/LICENSE-APACHE +202 -0
  89. data/THIRD_PARTY_LICENSES/crc32fast-1.5.1/LICENSE-MIT +21 -0
  90. data/THIRD_PARTY_LICENSES/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  91. data/THIRD_PARTY_LICENSES/crypto-common-0.1.7/LICENSE-MIT +25 -0
  92. data/THIRD_PARTY_LICENSES/cssparser-0.37.0/LICENSE +373 -0
  93. data/THIRD_PARTY_LICENSES/cssparser-macros-0.7.1/LICENSE +373 -0
  94. data/THIRD_PARTY_LICENSES/darling-0.20.11/LICENSE +21 -0
  95. data/THIRD_PARTY_LICENSES/darling_core-0.20.11/LICENSE +21 -0
  96. data/THIRD_PARTY_LICENSES/darling_macro-0.20.11/LICENSE +21 -0
  97. data/THIRD_PARTY_LICENSES/dashmap-5.5.3/LICENSE +21 -0
  98. data/THIRD_PARTY_LICENSES/data-encoding-2.9.0/LICENSE +22 -0
  99. data/THIRD_PARTY_LICENSES/debugid-0.8.0/LICENSE +201 -0
  100. data/THIRD_PARTY_LICENSES/deranged-0.5.8/LICENSE-Apache +202 -0
  101. data/THIRD_PARTY_LICENSES/deranged-0.5.8/LICENSE-MIT +19 -0
  102. data/THIRD_PARTY_LICENSES/derive_builder-0.20.2/LICENSE-APACHE +202 -0
  103. data/THIRD_PARTY_LICENSES/derive_builder-0.20.2/LICENSE-MIT +21 -0
  104. data/THIRD_PARTY_LICENSES/derive_builder_core-0.20.2/LICENSE-APACHE +202 -0
  105. data/THIRD_PARTY_LICENSES/derive_builder_core-0.20.2/LICENSE-MIT +21 -0
  106. data/THIRD_PARTY_LICENSES/derive_builder_macro-0.20.2/LICENSE-APACHE +202 -0
  107. data/THIRD_PARTY_LICENSES/derive_builder_macro-0.20.2/LICENSE-MIT +21 -0
  108. data/THIRD_PARTY_LICENSES/derive_more-2.1.1/LICENSE +21 -0
  109. data/THIRD_PARTY_LICENSES/derive_more-impl-2.1.1/LICENSE +21 -0
  110. data/THIRD_PARTY_LICENSES/digest-0.10.7/LICENSE-APACHE +201 -0
  111. data/THIRD_PARTY_LICENSES/digest-0.10.7/LICENSE-MIT +25 -0
  112. data/THIRD_PARTY_LICENSES/displaydoc-0.2.5/LICENSE-APACHE +201 -0
  113. data/THIRD_PARTY_LICENSES/displaydoc-0.2.5/LICENSE-MIT +23 -0
  114. data/THIRD_PARTY_LICENSES/dtoa-1.0.11/LICENSE-APACHE +176 -0
  115. data/THIRD_PARTY_LICENSES/dtoa-1.0.11/LICENSE-MIT +23 -0
  116. data/THIRD_PARTY_LICENSES/dtoa-short-0.3.5/LICENSE +373 -0
  117. data/THIRD_PARTY_LICENSES/ego-tree-0.11.0/LICENSE +14 -0
  118. data/THIRD_PARTY_LICENSES/either-1.15.0/LICENSE-APACHE +201 -0
  119. data/THIRD_PARTY_LICENSES/either-1.15.0/LICENSE-MIT +25 -0
  120. data/THIRD_PARTY_LICENSES/equivalent-1.0.2/LICENSE-APACHE +201 -0
  121. data/THIRD_PARTY_LICENSES/equivalent-1.0.2/LICENSE-MIT +25 -0
  122. data/THIRD_PARTY_LICENSES/errno-0.3.14/LICENSE-APACHE +201 -0
  123. data/THIRD_PARTY_LICENSES/errno-0.3.14/LICENSE-MIT +25 -0
  124. data/THIRD_PARTY_LICENSES/fastrand-2.3.0/LICENSE-APACHE +201 -0
  125. data/THIRD_PARTY_LICENSES/fastrand-2.3.0/LICENSE-MIT +23 -0
  126. data/THIRD_PARTY_LICENSES/find-msvc-tools-0.1.6/LICENSE-APACHE +201 -0
  127. data/THIRD_PARTY_LICENSES/find-msvc-tools-0.1.6/LICENSE-MIT +25 -0
  128. data/THIRD_PARTY_LICENSES/fixedbitset-0.5.7/LICENSE-APACHE +201 -0
  129. data/THIRD_PARTY_LICENSES/fixedbitset-0.5.7/LICENSE-MIT +25 -0
  130. data/THIRD_PARTY_LICENSES/flate2-1.1.10/LICENSE-APACHE +201 -0
  131. data/THIRD_PARTY_LICENSES/flate2-1.1.10/LICENSE-MIT +25 -0
  132. data/THIRD_PARTY_LICENSES/fnv-1.0.7/LICENSE-APACHE +201 -0
  133. data/THIRD_PARTY_LICENSES/fnv-1.0.7/LICENSE-MIT +25 -0
  134. data/THIRD_PARTY_LICENSES/foldhash-0.1.5/LICENSE +19 -0
  135. data/THIRD_PARTY_LICENSES/foldhash-0.2.0/LICENSE +19 -0
  136. data/THIRD_PARTY_LICENSES/foreign-types-0.5.0/LICENSE-APACHE +202 -0
  137. data/THIRD_PARTY_LICENSES/foreign-types-0.5.0/LICENSE-MIT +19 -0
  138. data/THIRD_PARTY_LICENSES/foreign-types-macros-0.2.4/LICENSE-APACHE +202 -0
  139. data/THIRD_PARTY_LICENSES/foreign-types-macros-0.2.4/LICENSE-MIT +19 -0
  140. data/THIRD_PARTY_LICENSES/foreign-types-shared-0.3.1/LICENSE-APACHE +202 -0
  141. data/THIRD_PARTY_LICENSES/foreign-types-shared-0.3.1/LICENSE-MIT +19 -0
  142. data/THIRD_PARTY_LICENSES/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  143. data/THIRD_PARTY_LICENSES/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  144. data/THIRD_PARTY_LICENSES/from_variant-3.0.0/LICENSE +201 -0
  145. data/THIRD_PARTY_LICENSES/fs_extra-1.3.0/LICENSE +21 -0
  146. data/THIRD_PARTY_LICENSES/fslock-0.2.1/LICENSE +21 -0
  147. data/THIRD_PARTY_LICENSES/funty-2.0.0/LICENSE.txt +21 -0
  148. data/THIRD_PARTY_LICENSES/futures-channel-0.3.34/LICENSE-APACHE +202 -0
  149. data/THIRD_PARTY_LICENSES/futures-channel-0.3.34/LICENSE-MIT +26 -0
  150. data/THIRD_PARTY_LICENSES/futures-core-0.3.34/LICENSE-APACHE +202 -0
  151. data/THIRD_PARTY_LICENSES/futures-core-0.3.34/LICENSE-MIT +26 -0
  152. data/THIRD_PARTY_LICENSES/futures-sink-0.3.34/LICENSE-APACHE +202 -0
  153. data/THIRD_PARTY_LICENSES/futures-sink-0.3.34/LICENSE-MIT +26 -0
  154. data/THIRD_PARTY_LICENSES/futures-task-0.3.34/LICENSE-APACHE +202 -0
  155. data/THIRD_PARTY_LICENSES/futures-task-0.3.34/LICENSE-MIT +26 -0
  156. data/THIRD_PARTY_LICENSES/futures-util-0.3.34/LICENSE-APACHE +202 -0
  157. data/THIRD_PARTY_LICENSES/futures-util-0.3.34/LICENSE-MIT +26 -0
  158. data/THIRD_PARTY_LICENSES/generic-array-0.14.7/LICENSE +21 -0
  159. data/THIRD_PARTY_LICENSES/getopts-0.2.24/LICENSE-APACHE +201 -0
  160. data/THIRD_PARTY_LICENSES/getopts-0.2.24/LICENSE-MIT +25 -0
  161. data/THIRD_PARTY_LICENSES/getrandom-0.3.4/LICENSE-APACHE +201 -0
  162. data/THIRD_PARTY_LICENSES/getrandom-0.3.4/LICENSE-MIT +26 -0
  163. data/THIRD_PARTY_LICENSES/getrandom-0.4.3/LICENSE-APACHE +201 -0
  164. data/THIRD_PARTY_LICENSES/getrandom-0.4.3/LICENSE-MIT +26 -0
  165. data/THIRD_PARTY_LICENSES/glob-0.3.3/LICENSE-APACHE +201 -0
  166. data/THIRD_PARTY_LICENSES/glob-0.3.3/LICENSE-MIT +25 -0
  167. data/THIRD_PARTY_LICENSES/globset-0.4.18/COPYING +3 -0
  168. data/THIRD_PARTY_LICENSES/globset-0.4.18/LICENSE-MIT +21 -0
  169. data/THIRD_PARTY_LICENSES/hashbrown-0.14.5/LICENSE-APACHE +201 -0
  170. data/THIRD_PARTY_LICENSES/hashbrown-0.14.5/LICENSE-MIT +25 -0
  171. data/THIRD_PARTY_LICENSES/hashbrown-0.16.1/LICENSE-APACHE +201 -0
  172. data/THIRD_PARTY_LICENSES/hashbrown-0.16.1/LICENSE-MIT +25 -0
  173. data/THIRD_PARTY_LICENSES/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  174. data/THIRD_PARTY_LICENSES/hashbrown-0.17.1/LICENSE-MIT +25 -0
  175. data/THIRD_PARTY_LICENSES/heck-0.5.0/LICENSE-APACHE +201 -0
  176. data/THIRD_PARTY_LICENSES/heck-0.5.0/LICENSE-MIT +25 -0
  177. data/THIRD_PARTY_LICENSES/hermit-abi-0.5.2/LICENSE-APACHE +201 -0
  178. data/THIRD_PARTY_LICENSES/hermit-abi-0.5.2/LICENSE-MIT +23 -0
  179. data/THIRD_PARTY_LICENSES/hstr-3.0.3/LICENSE +202 -0
  180. data/THIRD_PARTY_LICENSES/html5ever-0.39.0/LICENSE-APACHE +201 -0
  181. data/THIRD_PARTY_LICENSES/html5ever-0.39.0/LICENSE-MIT +25 -0
  182. data/THIRD_PARTY_LICENSES/http-1.5.0/LICENSE-APACHE +201 -0
  183. data/THIRD_PARTY_LICENSES/http-1.5.0/LICENSE-MIT +25 -0
  184. data/THIRD_PARTY_LICENSES/http-body-1.1.0/LICENSE +25 -0
  185. data/THIRD_PARTY_LICENSES/http-body-util-0.1.5/LICENSE +25 -0
  186. data/THIRD_PARTY_LICENSES/http2-0.5.20/LICENSE +25 -0
  187. data/THIRD_PARTY_LICENSES/httparse-1.10.1/LICENSE-APACHE +201 -0
  188. data/THIRD_PARTY_LICENSES/httparse-1.10.1/LICENSE-MIT +20 -0
  189. data/THIRD_PARTY_LICENSES/iana-time-zone-0.1.64/LICENSE-APACHE +201 -0
  190. data/THIRD_PARTY_LICENSES/iana-time-zone-0.1.64/LICENSE-MIT +25 -0
  191. data/THIRD_PARTY_LICENSES/iana-time-zone-haiku-0.1.2/LICENSE-APACHE +201 -0
  192. data/THIRD_PARTY_LICENSES/iana-time-zone-haiku-0.1.2/LICENSE-MIT +25 -0
  193. data/THIRD_PARTY_LICENSES/icu_collections-2.1.1/LICENSE +46 -0
  194. data/THIRD_PARTY_LICENSES/icu_locale_core-2.3.0/LICENSE +46 -0
  195. data/THIRD_PARTY_LICENSES/icu_normalizer-2.1.1/LICENSE +46 -0
  196. data/THIRD_PARTY_LICENSES/icu_normalizer_data-2.1.1/LICENSE +46 -0
  197. data/THIRD_PARTY_LICENSES/icu_properties-2.1.2/LICENSE +46 -0
  198. data/THIRD_PARTY_LICENSES/icu_properties_data-2.1.2/LICENSE +46 -0
  199. data/THIRD_PARTY_LICENSES/icu_provider-2.3.1/LICENSE +46 -0
  200. data/THIRD_PARTY_LICENSES/ident_case-1.0.1/LICENSE +19 -0
  201. data/THIRD_PARTY_LICENSES/idna-1.1.0/LICENSE-APACHE +201 -0
  202. data/THIRD_PARTY_LICENSES/idna-1.1.0/LICENSE-MIT +25 -0
  203. data/THIRD_PARTY_LICENSES/idna_adapter-1.2.1/LICENSE-APACHE +201 -0
  204. data/THIRD_PARTY_LICENSES/idna_adapter-1.2.1/LICENSE-MIT +25 -0
  205. data/THIRD_PARTY_LICENSES/if_chain-1.0.3/LICENSE-APACHE +201 -0
  206. data/THIRD_PARTY_LICENSES/if_chain-1.0.3/LICENSE-MIT +25 -0
  207. data/THIRD_PARTY_LICENSES/indexmap-2.14.2/LICENSE-APACHE +201 -0
  208. data/THIRD_PARTY_LICENSES/indexmap-2.14.2/LICENSE-MIT +25 -0
  209. data/THIRD_PARTY_LICENSES/ipnet-2.12.2/LICENSE-APACHE +201 -0
  210. data/THIRD_PARTY_LICENSES/ipnet-2.12.2/LICENSE-MIT +7 -0
  211. data/THIRD_PARTY_LICENSES/is-macro-0.3.7/LICENSE +202 -0
  212. data/THIRD_PARTY_LICENSES/itertools-0.13.0/LICENSE-APACHE +201 -0
  213. data/THIRD_PARTY_LICENSES/itertools-0.13.0/LICENSE-MIT +25 -0
  214. data/THIRD_PARTY_LICENSES/itoa-1.0.17/LICENSE-APACHE +176 -0
  215. data/THIRD_PARTY_LICENSES/itoa-1.0.17/LICENSE-MIT +23 -0
  216. data/THIRD_PARTY_LICENSES/jobserver-0.1.35/LICENSE-APACHE +201 -0
  217. data/THIRD_PARTY_LICENSES/jobserver-0.1.35/LICENSE-MIT +25 -0
  218. data/THIRD_PARTY_LICENSES/js-sys-0.3.83/LICENSE-APACHE +201 -0
  219. data/THIRD_PARTY_LICENSES/js-sys-0.3.83/LICENSE-MIT +25 -0
  220. data/THIRD_PARTY_LICENSES/jsonc-parser-0.26.3/LICENSE +21 -0
  221. data/THIRD_PARTY_LICENSES/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  222. data/THIRD_PARTY_LICENSES/lazy_static-1.5.0/LICENSE-MIT +25 -0
  223. data/THIRD_PARTY_LICENSES/libc-0.2.189/LICENSE-APACHE +176 -0
  224. data/THIRD_PARTY_LICENSES/libc-0.2.189/LICENSE-MIT +25 -0
  225. data/THIRD_PARTY_LICENSES/libloading-0.8.9/LICENSE +12 -0
  226. data/THIRD_PARTY_LICENSES/litemap-0.8.1/LICENSE +46 -0
  227. data/THIRD_PARTY_LICENSES/lock_api-0.4.14/LICENSE-APACHE +201 -0
  228. data/THIRD_PARTY_LICENSES/lock_api-0.4.14/LICENSE-MIT +25 -0
  229. data/THIRD_PARTY_LICENSES/log-0.4.34/LICENSE-APACHE +201 -0
  230. data/THIRD_PARTY_LICENSES/log-0.4.34/LICENSE-MIT +25 -0
  231. data/THIRD_PARTY_LICENSES/lru-0.16.2/LICENSE +21 -0
  232. data/THIRD_PARTY_LICENSES/lru-0.18.4/LICENSE +21 -0
  233. data/THIRD_PARTY_LICENSES/markup5ever-0.39.0/LICENSE-APACHE +201 -0
  234. data/THIRD_PARTY_LICENSES/markup5ever-0.39.0/LICENSE-MIT +25 -0
  235. data/THIRD_PARTY_LICENSES/memchr-2.7.6/COPYING +3 -0
  236. data/THIRD_PARTY_LICENSES/memchr-2.7.6/LICENSE-MIT +21 -0
  237. data/THIRD_PARTY_LICENSES/miette-7.6.0/LICENSE +202 -0
  238. data/THIRD_PARTY_LICENSES/miette-derive-7.6.0/LICENSE +229 -0
  239. data/THIRD_PARTY_LICENSES/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  240. data/THIRD_PARTY_LICENSES/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  241. data/THIRD_PARTY_LICENSES/minimal-lexical-0.2.1/LICENSE.md +37 -0
  242. data/THIRD_PARTY_LICENSES/miniz_oxide-0.9.1/LICENSE +25 -0
  243. data/THIRD_PARTY_LICENSES/miniz_oxide-0.9.1/LICENSE-APACHE.md +177 -0
  244. data/THIRD_PARTY_LICENSES/miniz_oxide-0.9.1/LICENSE-MIT.md +24 -0
  245. data/THIRD_PARTY_LICENSES/miniz_oxide-0.9.1/LICENSE-ZLIB.md +14 -0
  246. data/THIRD_PARTY_LICENSES/mio-1.2.3/LICENSE +19 -0
  247. data/THIRD_PARTY_LICENSES/new_debug_unreachable-1.0.6/LICENSE-MIT +25 -0
  248. data/THIRD_PARTY_LICENSES/nom-7.1.3/LICENSE +20 -0
  249. data/THIRD_PARTY_LICENSES/normpath-0.2.0/COPYRIGHT +7 -0
  250. data/THIRD_PARTY_LICENSES/normpath-0.2.0/LICENSE-APACHE +201 -0
  251. data/THIRD_PARTY_LICENSES/normpath-0.2.0/LICENSE-MIT +21 -0
  252. data/THIRD_PARTY_LICENSES/normpath-0.2.0/LICENSE-THIRD-PARTY +210 -0
  253. data/THIRD_PARTY_LICENSES/num-bigint-0.4.6/LICENSE-APACHE +201 -0
  254. data/THIRD_PARTY_LICENSES/num-bigint-0.4.6/LICENSE-MIT +25 -0
  255. data/THIRD_PARTY_LICENSES/num-conv-0.2.2/LICENSE-Apache +177 -0
  256. data/THIRD_PARTY_LICENSES/num-conv-0.2.2/LICENSE-MIT +19 -0
  257. data/THIRD_PARTY_LICENSES/num-integer-0.1.46/LICENSE-APACHE +201 -0
  258. data/THIRD_PARTY_LICENSES/num-integer-0.1.46/LICENSE-MIT +25 -0
  259. data/THIRD_PARTY_LICENSES/num-traits-0.2.19/LICENSE-APACHE +201 -0
  260. data/THIRD_PARTY_LICENSES/num-traits-0.2.19/LICENSE-MIT +25 -0
  261. data/THIRD_PARTY_LICENSES/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  262. data/THIRD_PARTY_LICENSES/num_cpus-1.17.0/LICENSE-MIT +20 -0
  263. data/THIRD_PARTY_LICENSES/once_cell-1.21.3/LICENSE-APACHE +201 -0
  264. data/THIRD_PARTY_LICENSES/once_cell-1.21.3/LICENSE-MIT +23 -0
  265. data/THIRD_PARTY_LICENSES/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  266. data/THIRD_PARTY_LICENSES/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  267. data/THIRD_PARTY_LICENSES/outref-0.5.2/LICENSE +21 -0
  268. data/THIRD_PARTY_LICENSES/owo-colors-4.2.3/LICENSE +21 -0
  269. data/THIRD_PARTY_LICENSES/par-core-2.0.0/LICENSE +202 -0
  270. data/THIRD_PARTY_LICENSES/par-iter-2.0.0/LICENSE +202 -0
  271. data/THIRD_PARTY_LICENSES/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  272. data/THIRD_PARTY_LICENSES/parking_lot-0.12.5/LICENSE-MIT +25 -0
  273. data/THIRD_PARTY_LICENSES/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  274. data/THIRD_PARTY_LICENSES/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  275. data/THIRD_PARTY_LICENSES/path-clean-0.1.0/LICENSE-APACHE +13 -0
  276. data/THIRD_PARTY_LICENSES/path-clean-0.1.0/LICENSE-MIT +18 -0
  277. data/THIRD_PARTY_LICENSES/path-clean-1.0.1/LICENSE-APACHE +13 -0
  278. data/THIRD_PARTY_LICENSES/path-clean-1.0.1/LICENSE-MIT +18 -0
  279. data/THIRD_PARTY_LICENSES/pathdiff-0.2.3/LICENSE-APACHE +201 -0
  280. data/THIRD_PARTY_LICENSES/pathdiff-0.2.3/LICENSE-MIT +23 -0
  281. data/THIRD_PARTY_LICENSES/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  282. data/THIRD_PARTY_LICENSES/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  283. data/THIRD_PARTY_LICENSES/petgraph-0.7.1/LICENSE-APACHE +201 -0
  284. data/THIRD_PARTY_LICENSES/petgraph-0.7.1/LICENSE-MIT +25 -0
  285. data/THIRD_PARTY_LICENSES/phf-0.11.3/LICENSE +20 -0
  286. data/THIRD_PARTY_LICENSES/phf-0.13.1/LICENSE +20 -0
  287. data/THIRD_PARTY_LICENSES/phf_codegen-0.13.1/LICENSE +20 -0
  288. data/THIRD_PARTY_LICENSES/phf_generator-0.11.3/LICENSE +20 -0
  289. data/THIRD_PARTY_LICENSES/phf_generator-0.13.1/LICENSE +20 -0
  290. data/THIRD_PARTY_LICENSES/phf_macros-0.11.3/LICENSE +20 -0
  291. data/THIRD_PARTY_LICENSES/phf_macros-0.13.1/LICENSE +20 -0
  292. data/THIRD_PARTY_LICENSES/phf_shared-0.11.3/LICENSE +20 -0
  293. data/THIRD_PARTY_LICENSES/phf_shared-0.13.1/LICENSE +20 -0
  294. data/THIRD_PARTY_LICENSES/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  295. data/THIRD_PARTY_LICENSES/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  296. data/THIRD_PARTY_LICENSES/pkg-config-0.3.34/LICENSE-APACHE +201 -0
  297. data/THIRD_PARTY_LICENSES/pkg-config-0.3.34/LICENSE-MIT +25 -0
  298. data/THIRD_PARTY_LICENSES/potential_utf-0.1.4/LICENSE +46 -0
  299. data/THIRD_PARTY_LICENSES/powerfmt-0.2.0/LICENSE-Apache +202 -0
  300. data/THIRD_PARTY_LICENSES/powerfmt-0.2.0/LICENSE-MIT +19 -0
  301. data/THIRD_PARTY_LICENSES/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  302. data/THIRD_PARTY_LICENSES/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  303. data/THIRD_PARTY_LICENSES/precomputed-hash-0.1.1/LICENSE +21 -0
  304. data/THIRD_PARTY_LICENSES/precomputed-map-0.2.0/LICENSE +21 -0
  305. data/THIRD_PARTY_LICENSES/preset_env_base-6.0.0/LICENSE +201 -0
  306. data/THIRD_PARTY_LICENSES/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
  307. data/THIRD_PARTY_LICENSES/proc-macro2-1.0.107/LICENSE-MIT +23 -0
  308. data/THIRD_PARTY_LICENSES/quote-1.0.47/LICENSE-APACHE +176 -0
  309. data/THIRD_PARTY_LICENSES/quote-1.0.47/LICENSE-MIT +23 -0
  310. data/THIRD_PARTY_LICENSES/r-efi-5.3.0/LICENSE-APACHE +176 -0
  311. data/THIRD_PARTY_LICENSES/r-efi-6.0.0/LICENSE-APACHE +176 -0
  312. data/THIRD_PARTY_LICENSES/radium-0.7.0/LICENSE.txt +21 -0
  313. data/THIRD_PARTY_LICENSES/radix_fmt-1.0.0/LICENSE +201 -0
  314. data/THIRD_PARTY_LICENSES/rand-0.8.5/COPYRIGHT +12 -0
  315. data/THIRD_PARTY_LICENSES/rand-0.8.5/LICENSE-APACHE +176 -0
  316. data/THIRD_PARTY_LICENSES/rand-0.8.5/LICENSE-MIT +26 -0
  317. data/THIRD_PARTY_LICENSES/rand-0.9.5/COPYRIGHT +12 -0
  318. data/THIRD_PARTY_LICENSES/rand-0.9.5/LICENSE-APACHE +176 -0
  319. data/THIRD_PARTY_LICENSES/rand-0.9.5/LICENSE-MIT +26 -0
  320. data/THIRD_PARTY_LICENSES/rand_chacha-0.9.0/COPYRIGHT +12 -0
  321. data/THIRD_PARTY_LICENSES/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  322. data/THIRD_PARTY_LICENSES/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  323. data/THIRD_PARTY_LICENSES/rand_core-0.6.4/COPYRIGHT +12 -0
  324. data/THIRD_PARTY_LICENSES/rand_core-0.6.4/LICENSE-APACHE +187 -0
  325. data/THIRD_PARTY_LICENSES/rand_core-0.6.4/LICENSE-MIT +26 -0
  326. data/THIRD_PARTY_LICENSES/rand_core-0.9.5/COPYRIGHT +12 -0
  327. data/THIRD_PARTY_LICENSES/rand_core-0.9.5/LICENSE-APACHE +187 -0
  328. data/THIRD_PARTY_LICENSES/rand_core-0.9.5/LICENSE-MIT +26 -0
  329. data/THIRD_PARTY_LICENSES/redox_syscall-0.5.18/LICENSE +22 -0
  330. data/THIRD_PARTY_LICENSES/regex-1.12.2/LICENSE-APACHE +201 -0
  331. data/THIRD_PARTY_LICENSES/regex-1.12.2/LICENSE-MIT +25 -0
  332. data/THIRD_PARTY_LICENSES/regex-automata-0.4.13/LICENSE-APACHE +201 -0
  333. data/THIRD_PARTY_LICENSES/regex-automata-0.4.13/LICENSE-MIT +25 -0
  334. data/THIRD_PARTY_LICENSES/regex-syntax-0.8.8/LICENSE-APACHE +201 -0
  335. data/THIRD_PARTY_LICENSES/regex-syntax-0.8.8/LICENSE-MIT +25 -0
  336. data/THIRD_PARTY_LICENSES/regress-0.10.5/LICENSE-APACHE +201 -0
  337. data/THIRD_PARTY_LICENSES/regress-0.10.5/LICENSE-MIT +21 -0
  338. data/THIRD_PARTY_LICENSES/rustc-hash-2.1.1/LICENSE-APACHE +176 -0
  339. data/THIRD_PARTY_LICENSES/rustc-hash-2.1.1/LICENSE-MIT +23 -0
  340. data/THIRD_PARTY_LICENSES/rustc_version-0.4.1/LICENSE-APACHE +201 -0
  341. data/THIRD_PARTY_LICENSES/rustc_version-0.4.1/LICENSE-MIT +25 -0
  342. data/THIRD_PARTY_LICENSES/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
  343. data/THIRD_PARTY_LICENSES/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
  344. data/THIRD_PARTY_LICENSES/rustversion-1.0.22/LICENSE-APACHE +176 -0
  345. data/THIRD_PARTY_LICENSES/rustversion-1.0.22/LICENSE-MIT +23 -0
  346. data/THIRD_PARTY_LICENSES/ryu-1.0.22/LICENSE-APACHE +176 -0
  347. data/THIRD_PARTY_LICENSES/ryu-1.0.22/LICENSE-BOOST +23 -0
  348. data/THIRD_PARTY_LICENSES/ryu-js-1.0.2/LICENSE-APACHE +176 -0
  349. data/THIRD_PARTY_LICENSES/ryu-js-1.0.2/LICENSE-BOOST +23 -0
  350. data/THIRD_PARTY_LICENSES/scoped-tls-1.0.1/LICENSE-APACHE +201 -0
  351. data/THIRD_PARTY_LICENSES/scoped-tls-1.0.1/LICENSE-MIT +25 -0
  352. data/THIRD_PARTY_LICENSES/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  353. data/THIRD_PARTY_LICENSES/scopeguard-1.2.0/LICENSE-MIT +25 -0
  354. data/THIRD_PARTY_LICENSES/scraper-0.27.0/LICENSE +15 -0
  355. data/THIRD_PARTY_LICENSES/selectors-0.38.0/LICENSE +373 -0
  356. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/CHANGES.md +1 -0
  357. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/Cargo.lock +513 -0
  358. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/Cargo.toml +88 -0
  359. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/Cargo.toml.orig +37 -0
  360. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/README.md +24 -0
  361. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/attr.rs +196 -0
  362. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/bloom.rs +422 -0
  363. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/build.rs +77 -0
  364. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/builder.rs +455 -0
  365. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/context.rs +525 -0
  366. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/kleene_value.rs +131 -0
  367. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/lib.rs +23 -0
  368. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/matching.rs +1609 -0
  369. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/nth_index_cache.rs +102 -0
  370. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/parser.rs +4857 -0
  371. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/relative_selector/cache.rs +81 -0
  372. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/relative_selector/filter.rs +159 -0
  373. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/relative_selector/mod.rs +6 -0
  374. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/sink.rs +31 -0
  375. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/tree.rs +184 -0
  376. data/THIRD_PARTY_LICENSES/selectors-0.38.0/source/visitor.rs +137 -0
  377. data/THIRD_PARTY_LICENSES/semver-1.0.27/LICENSE-APACHE +176 -0
  378. data/THIRD_PARTY_LICENSES/semver-1.0.27/LICENSE-MIT +23 -0
  379. data/THIRD_PARTY_LICENSES/seq-macro-0.3.6/LICENSE-APACHE +176 -0
  380. data/THIRD_PARTY_LICENSES/seq-macro-0.3.6/LICENSE-MIT +23 -0
  381. data/THIRD_PARTY_LICENSES/serde-1.0.228/LICENSE-APACHE +176 -0
  382. data/THIRD_PARTY_LICENSES/serde-1.0.228/LICENSE-MIT +23 -0
  383. data/THIRD_PARTY_LICENSES/serde_core-1.0.228/LICENSE-APACHE +176 -0
  384. data/THIRD_PARTY_LICENSES/serde_core-1.0.228/LICENSE-MIT +23 -0
  385. data/THIRD_PARTY_LICENSES/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  386. data/THIRD_PARTY_LICENSES/serde_derive-1.0.228/LICENSE-MIT +23 -0
  387. data/THIRD_PARTY_LICENSES/serde_json-1.0.151/LICENSE-APACHE +176 -0
  388. data/THIRD_PARTY_LICENSES/serde_json-1.0.151/LICENSE-MIT +23 -0
  389. data/THIRD_PARTY_LICENSES/servo_arc-0.4.3/LICENSE-APACHE +201 -0
  390. data/THIRD_PARTY_LICENSES/servo_arc-0.4.3/LICENSE-MIT +23 -0
  391. data/THIRD_PARTY_LICENSES/sha1-0.10.6/LICENSE-APACHE +201 -0
  392. data/THIRD_PARTY_LICENSES/sha1-0.10.6/LICENSE-MIT +27 -0
  393. data/THIRD_PARTY_LICENSES/sha2-0.10.9/LICENSE-APACHE +201 -0
  394. data/THIRD_PARTY_LICENSES/sha2-0.10.9/LICENSE-MIT +27 -0
  395. data/THIRD_PARTY_LICENSES/shlex-1.3.0/LICENSE-APACHE +13 -0
  396. data/THIRD_PARTY_LICENSES/shlex-1.3.0/LICENSE-MIT +21 -0
  397. data/THIRD_PARTY_LICENSES/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  398. data/THIRD_PARTY_LICENSES/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  399. data/THIRD_PARTY_LICENSES/simd-adler32-0.3.10/LICENSE.md +21 -0
  400. data/THIRD_PARTY_LICENSES/siphasher-0.3.11/COPYING +7 -0
  401. data/THIRD_PARTY_LICENSES/siphasher-1.0.1/COPYING +7 -0
  402. data/THIRD_PARTY_LICENSES/slab-0.4.12/LICENSE +25 -0
  403. data/THIRD_PARTY_LICENSES/smallvec-1.15.1/LICENSE-APACHE +201 -0
  404. data/THIRD_PARTY_LICENSES/smallvec-1.15.1/LICENSE-MIT +25 -0
  405. data/THIRD_PARTY_LICENSES/smartstring-1.0.1/LICENCE.md +355 -0
  406. data/THIRD_PARTY_LICENSES/socket2-0.6.5/LICENSE-APACHE +201 -0
  407. data/THIRD_PARTY_LICENSES/socket2-0.6.5/LICENSE-MIT +25 -0
  408. data/THIRD_PARTY_LICENSES/st-map-0.2.4/LICENSE +202 -0
  409. data/THIRD_PARTY_LICENSES/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  410. data/THIRD_PARTY_LICENSES/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  411. data/THIRD_PARTY_LICENSES/static-map-macro-0.3.4/LICENSE +202 -0
  412. data/THIRD_PARTY_LICENSES/static_assertions-1.1.0/LICENSE-APACHE +202 -0
  413. data/THIRD_PARTY_LICENSES/static_assertions-1.1.0/LICENSE-MIT +21 -0
  414. data/THIRD_PARTY_LICENSES/string_cache-0.9.0/LICENSE-APACHE +201 -0
  415. data/THIRD_PARTY_LICENSES/string_cache-0.9.0/LICENSE-MIT +25 -0
  416. data/THIRD_PARTY_LICENSES/string_cache_codegen-0.6.1/LICENSE-APACHE +201 -0
  417. data/THIRD_PARTY_LICENSES/string_cache_codegen-0.6.1/LICENSE-MIT +25 -0
  418. data/THIRD_PARTY_LICENSES/string_enum-1.0.2/LICENSE +201 -0
  419. data/THIRD_PARTY_LICENSES/strsim-0.11.1/LICENSE +23 -0
  420. data/THIRD_PARTY_LICENSES/swc-52.0.0/LICENSE +201 -0
  421. data/THIRD_PARTY_LICENSES/swc_allocator-4.0.1/LICENSE +201 -0
  422. data/THIRD_PARTY_LICENSES/swc_atoms-9.0.0/LICENSE +201 -0
  423. data/THIRD_PARTY_LICENSES/swc_common-18.0.1/LICENSE +201 -0
  424. data/THIRD_PARTY_LICENSES/swc_compiler_base-45.0.0/LICENSE +201 -0
  425. data/THIRD_PARTY_LICENSES/swc_config-3.1.2/LICENSE +201 -0
  426. data/THIRD_PARTY_LICENSES/swc_config_macro-1.0.1/LICENSE +201 -0
  427. data/THIRD_PARTY_LICENSES/swc_core-54.0.0/LICENSE +201 -0
  428. data/THIRD_PARTY_LICENSES/swc_ecma_ast-19.0.0/LICENSE +201 -0
  429. data/THIRD_PARTY_LICENSES/swc_ecma_codegen-21.0.0/LICENSE +201 -0
  430. data/THIRD_PARTY_LICENSES/swc_ecma_codegen_macros-2.0.2/LICENSE +201 -0
  431. data/THIRD_PARTY_LICENSES/swc_ecma_compat_bugfixes-39.0.0/LICENSE +201 -0
  432. data/THIRD_PARTY_LICENSES/swc_ecma_compat_common-30.0.0/LICENSE +201 -0
  433. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2015-39.0.0/LICENSE +201 -0
  434. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2016-35.0.0/LICENSE +201 -0
  435. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2017-35.0.0/LICENSE +201 -0
  436. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2018-36.0.0/LICENSE +201 -0
  437. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2019-35.0.0/LICENSE +201 -0
  438. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2020-37.0.0/LICENSE +201 -0
  439. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2021-35.0.0/LICENSE +201 -0
  440. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2022-37.0.0/LICENSE +201 -0
  441. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es3-26.0.0/LICENSE +201 -0
  442. data/THIRD_PARTY_LICENSES/swc_ecma_ext_transforms-25.0.0/LICENSE +201 -0
  443. data/THIRD_PARTY_LICENSES/swc_ecma_hooks-0.3.0/LICENSE +201 -0
  444. data/THIRD_PARTY_LICENSES/swc_ecma_loader-18.0.0/LICENSE +201 -0
  445. data/THIRD_PARTY_LICENSES/swc_ecma_minifier-42.0.0/LICENSE +201 -0
  446. data/THIRD_PARTY_LICENSES/swc_ecma_parser-32.0.0/LICENSE +201 -0
  447. data/THIRD_PARTY_LICENSES/swc_ecma_preset_env-45.0.0/LICENSE +201 -0
  448. data/THIRD_PARTY_LICENSES/swc_ecma_transformer-6.0.0/LICENSE +201 -0
  449. data/THIRD_PARTY_LICENSES/swc_ecma_transforms-44.0.0/LICENSE +201 -0
  450. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_base-35.0.0/LICENSE +201 -0
  451. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_classes-35.0.0/LICENSE +201 -0
  452. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_compat-40.0.0/LICENSE +201 -0
  453. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_macros-1.0.1/LICENSE +201 -0
  454. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_module-38.0.0/LICENSE +201 -0
  455. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_optimization-37.0.0/LICENSE +201 -0
  456. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_proposal-35.0.0/LICENSE +201 -0
  457. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_react-38.0.0/LICENSE +201 -0
  458. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_typescript-38.0.0/LICENSE +201 -0
  459. data/THIRD_PARTY_LICENSES/swc_ecma_usage_analyzer-27.0.0/LICENSE +201 -0
  460. data/THIRD_PARTY_LICENSES/swc_ecma_utils-25.0.0/LICENSE +201 -0
  461. data/THIRD_PARTY_LICENSES/swc_ecma_visit-19.0.0/LICENSE +201 -0
  462. data/THIRD_PARTY_LICENSES/swc_eq_ignore_macros-1.0.1/LICENSE +201 -0
  463. data/THIRD_PARTY_LICENSES/swc_error_reporters-20.0.0/LICENSE +201 -0
  464. data/THIRD_PARTY_LICENSES/swc_macros_common-1.0.1/LICENSE +201 -0
  465. data/THIRD_PARTY_LICENSES/swc_node_comments-18.0.0/LICENSE +201 -0
  466. data/THIRD_PARTY_LICENSES/swc_sourcemap-9.3.4/LICENSE +31 -0
  467. data/THIRD_PARTY_LICENSES/swc_timer-1.0.0/LICENSE +201 -0
  468. data/THIRD_PARTY_LICENSES/swc_trace_macro-2.0.2/LICENSE +201 -0
  469. data/THIRD_PARTY_LICENSES/swc_transform_common-12.0.0/LICENSE +201 -0
  470. data/THIRD_PARTY_LICENSES/swc_visit-2.0.1/LICENSE +201 -0
  471. data/THIRD_PARTY_LICENSES/syn-2.0.113/LICENSE-APACHE +176 -0
  472. data/THIRD_PARTY_LICENSES/syn-2.0.113/LICENSE-MIT +23 -0
  473. data/THIRD_PARTY_LICENSES/syn-3.0.5/LICENSE-APACHE +176 -0
  474. data/THIRD_PARTY_LICENSES/syn-3.0.5/LICENSE-MIT +23 -0
  475. data/THIRD_PARTY_LICENSES/sync_wrapper-1.0.2/LICENSE +177 -0
  476. data/THIRD_PARTY_LICENSES/synstructure-0.13.2/LICENSE +7 -0
  477. data/THIRD_PARTY_LICENSES/synstructure-0.14.0/LICENSE +7 -0
  478. data/THIRD_PARTY_LICENSES/tap-1.0.1/LICENSE.txt +21 -0
  479. data/THIRD_PARTY_LICENSES/tendril-0.5.1/LICENSE-APACHE +201 -0
  480. data/THIRD_PARTY_LICENSES/tendril-0.5.1/LICENSE-MIT +25 -0
  481. data/THIRD_PARTY_LICENSES/textwrap-0.16.2/LICENSE +21 -0
  482. data/THIRD_PARTY_LICENSES/thiserror-1.0.69/LICENSE-APACHE +176 -0
  483. data/THIRD_PARTY_LICENSES/thiserror-1.0.69/LICENSE-MIT +23 -0
  484. data/THIRD_PARTY_LICENSES/thiserror-2.0.21/LICENSE-APACHE +176 -0
  485. data/THIRD_PARTY_LICENSES/thiserror-2.0.21/LICENSE-MIT +23 -0
  486. data/THIRD_PARTY_LICENSES/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  487. data/THIRD_PARTY_LICENSES/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  488. data/THIRD_PARTY_LICENSES/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
  489. data/THIRD_PARTY_LICENSES/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
  490. data/THIRD_PARTY_LICENSES/time-0.3.55/LICENSE-Apache +177 -0
  491. data/THIRD_PARTY_LICENSES/time-0.3.55/LICENSE-MIT +19 -0
  492. data/THIRD_PARTY_LICENSES/time-core-0.1.9/LICENSE-Apache +177 -0
  493. data/THIRD_PARTY_LICENSES/time-core-0.1.9/LICENSE-MIT +19 -0
  494. data/THIRD_PARTY_LICENSES/time-macros-0.2.32/LICENSE-Apache +177 -0
  495. data/THIRD_PARTY_LICENSES/time-macros-0.2.32/LICENSE-MIT +19 -0
  496. data/THIRD_PARTY_LICENSES/tinystr-0.8.4/LICENSE +46 -0
  497. data/THIRD_PARTY_LICENSES/tokio-1.53.1/LICENSE +21 -0
  498. data/THIRD_PARTY_LICENSES/tokio-btls-0.5.6/LICENSE-APACHE +202 -0
  499. data/THIRD_PARTY_LICENSES/tokio-btls-0.5.6/LICENSE-MIT +27 -0
  500. data/THIRD_PARTY_LICENSES/tokio-macros-2.7.2/LICENSE +22 -0
  501. data/THIRD_PARTY_LICENSES/tokio-socks-0.5.3/LICENSE +21 -0
  502. data/THIRD_PARTY_LICENSES/tokio-tungstenite-0.29.0/LICENSE +20 -0
  503. data/THIRD_PARTY_LICENSES/tokio-util-0.7.19/LICENSE +21 -0
  504. data/THIRD_PARTY_LICENSES/tower-0.5.3/LICENSE +25 -0
  505. data/THIRD_PARTY_LICENSES/tower-http-0.6.11/LICENSE +25 -0
  506. data/THIRD_PARTY_LICENSES/tower-layer-0.3.3/LICENSE +25 -0
  507. data/THIRD_PARTY_LICENSES/tower-service-0.3.3/LICENSE +25 -0
  508. data/THIRD_PARTY_LICENSES/tracing-0.1.44/LICENSE +25 -0
  509. data/THIRD_PARTY_LICENSES/tracing-attributes-0.1.31/LICENSE +25 -0
  510. data/THIRD_PARTY_LICENSES/tracing-core-0.1.36/LICENSE +25 -0
  511. data/THIRD_PARTY_LICENSES/triomphe-0.1.15/LICENSE-APACHE +201 -0
  512. data/THIRD_PARTY_LICENSES/triomphe-0.1.15/LICENSE-MIT +27 -0
  513. data/THIRD_PARTY_LICENSES/try-lock-0.2.5/LICENSE +21 -0
  514. data/THIRD_PARTY_LICENSES/tungstenite-0.29.0/LICENSE-APACHE +201 -0
  515. data/THIRD_PARTY_LICENSES/tungstenite-0.29.0/LICENSE-MIT +20 -0
  516. data/THIRD_PARTY_LICENSES/typed-builder-0.23.2/LICENSE-APACHE +201 -0
  517. data/THIRD_PARTY_LICENSES/typed-builder-0.23.2/LICENSE-MIT +23 -0
  518. data/THIRD_PARTY_LICENSES/typed-builder-macro-0.23.2/LICENSE-APACHE +201 -0
  519. data/THIRD_PARTY_LICENSES/typed-builder-macro-0.23.2/LICENSE-MIT +23 -0
  520. data/THIRD_PARTY_LICENSES/typenum-1.19.0/LICENSE +1 -0
  521. data/THIRD_PARTY_LICENSES/typenum-1.19.0/LICENSE-APACHE +201 -0
  522. data/THIRD_PARTY_LICENSES/typenum-1.19.0/LICENSE-MIT +21 -0
  523. data/THIRD_PARTY_LICENSES/unicode-id-start-1.4.0/LICENSE-APACHE +176 -0
  524. data/THIRD_PARTY_LICENSES/unicode-id-start-1.4.0/LICENSE-MIT +23 -0
  525. data/THIRD_PARTY_LICENSES/unicode-id-start-1.4.0/LICENSE-UNICODE +39 -0
  526. data/THIRD_PARTY_LICENSES/unicode-ident-1.0.22/LICENSE-APACHE +176 -0
  527. data/THIRD_PARTY_LICENSES/unicode-ident-1.0.22/LICENSE-MIT +23 -0
  528. data/THIRD_PARTY_LICENSES/unicode-ident-1.0.22/LICENSE-UNICODE +39 -0
  529. data/THIRD_PARTY_LICENSES/unicode-linebreak-0.1.5/LICENSE +201 -0
  530. data/THIRD_PARTY_LICENSES/unicode-width-0.1.14/COPYRIGHT +7 -0
  531. data/THIRD_PARTY_LICENSES/unicode-width-0.1.14/LICENSE-APACHE +201 -0
  532. data/THIRD_PARTY_LICENSES/unicode-width-0.1.14/LICENSE-MIT +25 -0
  533. data/THIRD_PARTY_LICENSES/unicode-width-0.2.2/COPYRIGHT +7 -0
  534. data/THIRD_PARTY_LICENSES/unicode-width-0.2.2/LICENSE-APACHE +201 -0
  535. data/THIRD_PARTY_LICENSES/unicode-width-0.2.2/LICENSE-MIT +25 -0
  536. data/THIRD_PARTY_LICENSES/url-2.5.8/LICENSE-APACHE +201 -0
  537. data/THIRD_PARTY_LICENSES/url-2.5.8/LICENSE-MIT +25 -0
  538. data/THIRD_PARTY_LICENSES/utf8_iter-1.0.4/COPYRIGHT +42 -0
  539. data/THIRD_PARTY_LICENSES/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  540. data/THIRD_PARTY_LICENSES/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  541. data/THIRD_PARTY_LICENSES/uuid-1.19.0/LICENSE-APACHE +201 -0
  542. data/THIRD_PARTY_LICENSES/uuid-1.19.0/LICENSE-MIT +26 -0
  543. data/THIRD_PARTY_LICENSES/vergen-9.0.6/LICENSE-APACHE +201 -0
  544. data/THIRD_PARTY_LICENSES/vergen-9.0.6/LICENSE-MIT +25 -0
  545. data/THIRD_PARTY_LICENSES/vergen-lib-0.1.6/LICENSE-APACHE +201 -0
  546. data/THIRD_PARTY_LICENSES/vergen-lib-0.1.6/LICENSE-MIT +25 -0
  547. data/THIRD_PARTY_LICENSES/version_check-0.9.5/LICENSE-APACHE +201 -0
  548. data/THIRD_PARTY_LICENSES/version_check-0.9.5/LICENSE-MIT +19 -0
  549. data/THIRD_PARTY_LICENSES/vsimd-0.8.0/LICENSE +21 -0
  550. data/THIRD_PARTY_LICENSES/want-0.3.1/LICENSE +20 -0
  551. data/THIRD_PARTY_LICENSES/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-APACHE +201 -0
  552. data/THIRD_PARTY_LICENSES/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  553. data/THIRD_PARTY_LICENSES/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-MIT +23 -0
  554. data/THIRD_PARTY_LICENSES/wasip2-1.0.1+wasi-0.2.4/LICENSE-APACHE +201 -0
  555. data/THIRD_PARTY_LICENSES/wasm-bindgen-0.2.106/LICENSE-APACHE +201 -0
  556. data/THIRD_PARTY_LICENSES/wasm-bindgen-0.2.106/LICENSE-MIT +25 -0
  557. data/THIRD_PARTY_LICENSES/wasm-bindgen-macro-0.2.106/LICENSE-APACHE +201 -0
  558. data/THIRD_PARTY_LICENSES/wasm-bindgen-macro-0.2.106/LICENSE-MIT +25 -0
  559. data/THIRD_PARTY_LICENSES/wasm-bindgen-macro-support-0.2.106/LICENSE-APACHE +201 -0
  560. data/THIRD_PARTY_LICENSES/wasm-bindgen-macro-support-0.2.106/LICENSE-MIT +25 -0
  561. data/THIRD_PARTY_LICENSES/wasm-bindgen-shared-0.2.106/LICENSE-APACHE +201 -0
  562. data/THIRD_PARTY_LICENSES/wasm-bindgen-shared-0.2.106/LICENSE-MIT +25 -0
  563. data/THIRD_PARTY_LICENSES/web_atoms-0.2.6/LICENSE-APACHE +201 -0
  564. data/THIRD_PARTY_LICENSES/web_atoms-0.2.6/LICENSE-MIT +25 -0
  565. data/THIRD_PARTY_LICENSES/webpki-root-certs-1.0.9/LICENSE +61 -0
  566. data/THIRD_PARTY_LICENSES/winapi-0.3.9/LICENSE-APACHE +201 -0
  567. data/THIRD_PARTY_LICENSES/winapi-0.3.9/LICENSE-MIT +19 -0
  568. data/THIRD_PARTY_LICENSES/winapi-i686-pc-windows-gnu-0.4.0/LICENSE-APACHE +201 -0
  569. data/THIRD_PARTY_LICENSES/winapi-x86_64-pc-windows-gnu-0.4.0/LICENSE-APACHE +201 -0
  570. data/THIRD_PARTY_LICENSES/windows-core-0.62.2/license-apache-2.0 +201 -0
  571. data/THIRD_PARTY_LICENSES/windows-core-0.62.2/license-mit +21 -0
  572. data/THIRD_PARTY_LICENSES/windows-implement-0.60.2/license-apache-2.0 +201 -0
  573. data/THIRD_PARTY_LICENSES/windows-implement-0.60.2/license-mit +21 -0
  574. data/THIRD_PARTY_LICENSES/windows-interface-0.59.3/license-apache-2.0 +201 -0
  575. data/THIRD_PARTY_LICENSES/windows-interface-0.59.3/license-mit +21 -0
  576. data/THIRD_PARTY_LICENSES/windows-link-0.2.1/license-apache-2.0 +201 -0
  577. data/THIRD_PARTY_LICENSES/windows-link-0.2.1/license-mit +21 -0
  578. data/THIRD_PARTY_LICENSES/windows-result-0.4.1/license-apache-2.0 +201 -0
  579. data/THIRD_PARTY_LICENSES/windows-result-0.4.1/license-mit +21 -0
  580. data/THIRD_PARTY_LICENSES/windows-strings-0.5.1/license-apache-2.0 +201 -0
  581. data/THIRD_PARTY_LICENSES/windows-strings-0.5.1/license-mit +21 -0
  582. data/THIRD_PARTY_LICENSES/windows-sys-0.61.2/license-apache-2.0 +201 -0
  583. data/THIRD_PARTY_LICENSES/windows-sys-0.61.2/license-mit +21 -0
  584. data/THIRD_PARTY_LICENSES/wit-bindgen-0.46.0/LICENSE-APACHE +201 -0
  585. data/THIRD_PARTY_LICENSES/wit-bindgen-0.46.0/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  586. data/THIRD_PARTY_LICENSES/wit-bindgen-0.46.0/LICENSE-MIT +23 -0
  587. data/THIRD_PARTY_LICENSES/wreq-0.16.1/LICENSE +202 -0
  588. data/THIRD_PARTY_LICENSES/wreq-proto-0.2.6/LICENSE +202 -0
  589. data/THIRD_PARTY_LICENSES/wreq-rt-0.2.2-rc.4/LICENSE +201 -0
  590. data/THIRD_PARTY_LICENSES/wreq-util-0.2.0/LICENSE +201 -0
  591. data/THIRD_PARTY_LICENSES/writeable-0.6.4/LICENSE +46 -0
  592. data/THIRD_PARTY_LICENSES/wyz-0.5.1/LICENSE.txt +21 -0
  593. data/THIRD_PARTY_LICENSES/yoke-0.8.3/LICENSE +46 -0
  594. data/THIRD_PARTY_LICENSES/yoke-derive-0.8.4/LICENSE +46 -0
  595. data/THIRD_PARTY_LICENSES/zerocopy-0.8.31/LICENSE-APACHE +202 -0
  596. data/THIRD_PARTY_LICENSES/zerocopy-0.8.31/LICENSE-BSD +24 -0
  597. data/THIRD_PARTY_LICENSES/zerocopy-0.8.31/LICENSE-MIT +26 -0
  598. data/THIRD_PARTY_LICENSES/zerocopy-derive-0.8.31/LICENSE-APACHE +202 -0
  599. data/THIRD_PARTY_LICENSES/zerocopy-derive-0.8.31/LICENSE-BSD +24 -0
  600. data/THIRD_PARTY_LICENSES/zerocopy-derive-0.8.31/LICENSE-MIT +26 -0
  601. data/THIRD_PARTY_LICENSES/zerofrom-0.1.6/LICENSE +46 -0
  602. data/THIRD_PARTY_LICENSES/zerofrom-derive-0.1.6/LICENSE +46 -0
  603. data/THIRD_PARTY_LICENSES/zerotrie-0.2.5/LICENSE +46 -0
  604. data/THIRD_PARTY_LICENSES/zerovec-0.11.8/LICENSE +46 -0
  605. data/THIRD_PARTY_LICENSES/zerovec-derive-0.11.6/LICENSE +46 -0
  606. data/THIRD_PARTY_LICENSES/zlib-rs-0.6.7/LICENSE +19 -0
  607. data/THIRD_PARTY_LICENSES/zmij-1.0.11/LICENSE-MIT +23 -0
  608. data/THIRD_PARTY_LICENSES/zstd-0.13.3/LICENSE +8 -0
  609. data/THIRD_PARTY_LICENSES/zstd-0.14.0/LICENSE +28 -0
  610. data/THIRD_PARTY_LICENSES/zstd-safe-7.3.0/LICENSE +28 -0
  611. data/THIRD_PARTY_LICENSES/zstd-safe-8.0.0/LICENSE +28 -0
  612. data/THIRD_PARTY_LICENSES/zstd-sys-2.1.0+zstd.1.5.7/LICENSE +28 -0
  613. data/THIRD_PARTY_LICENSES/zstd-sys-2.1.0+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
  614. data/UPSTREAM.md +11 -0
  615. data/lib/cfsolve/cfsolve-engine +4 -0
  616. data/lib/cfsolve/profiles/safari-26-ios/answers.json +3606 -0
  617. data/lib/cfsolve/profiles/safari-26-ios/challenge-page-answers.json +3608 -0
  618. data/lib/cfsolve/profiles/safari-26-ios.json +554 -0
  619. data/lib/cfsolve/version.rb +6 -0
  620. data/lib/cfsolve.rb +113 -0
  621. metadata +702 -0
@@ -0,0 +1,196 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+
5
+ use crate::parser::SelectorImpl;
6
+ use cssparser::ToCss;
7
+ use std::fmt;
8
+
9
+ #[cfg(feature = "to_shmem")]
10
+ use to_shmem_derive::ToShmem;
11
+
12
+ #[derive(Clone, Eq, PartialEq)]
13
+ #[cfg_attr(feature = "to_shmem", derive(ToShmem))]
14
+ #[cfg_attr(feature = "to_shmem", shmem(no_bounds))]
15
+ pub struct AttrSelectorWithOptionalNamespace<Impl: SelectorImpl> {
16
+ #[cfg_attr(feature = "to_shmem", shmem(field_bound))]
17
+ pub namespace: Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>,
18
+ #[cfg_attr(feature = "to_shmem", shmem(field_bound))]
19
+ pub local_name: Impl::LocalName,
20
+ pub local_name_lower: Impl::LocalName,
21
+ #[cfg_attr(feature = "to_shmem", shmem(field_bound))]
22
+ pub operation: ParsedAttrSelectorOperation<Impl::AttrValue>,
23
+ }
24
+
25
+ impl<Impl: SelectorImpl> AttrSelectorWithOptionalNamespace<Impl> {
26
+ pub fn namespace(&self) -> Option<NamespaceConstraint<&Impl::NamespaceUrl>> {
27
+ self.namespace.as_ref().map(|ns| match ns {
28
+ NamespaceConstraint::Any => NamespaceConstraint::Any,
29
+ NamespaceConstraint::Specific((_, ref url)) => NamespaceConstraint::Specific(url),
30
+ })
31
+ }
32
+ }
33
+
34
+ #[derive(Clone, Eq, PartialEq)]
35
+ #[cfg_attr(feature = "to_shmem", derive(ToShmem))]
36
+ pub enum NamespaceConstraint<NamespaceUrl> {
37
+ Any,
38
+
39
+ /// Empty string for no namespace
40
+ Specific(NamespaceUrl),
41
+ }
42
+
43
+ #[derive(Clone, Eq, PartialEq)]
44
+ #[cfg_attr(feature = "to_shmem", derive(ToShmem))]
45
+ pub enum ParsedAttrSelectorOperation<AttrValue> {
46
+ Exists,
47
+ WithValue {
48
+ operator: AttrSelectorOperator,
49
+ case_sensitivity: ParsedCaseSensitivity,
50
+ value: AttrValue,
51
+ },
52
+ }
53
+
54
+ #[derive(Clone, Eq, PartialEq)]
55
+ pub enum AttrSelectorOperation<AttrValue> {
56
+ Exists,
57
+ WithValue {
58
+ operator: AttrSelectorOperator,
59
+ case_sensitivity: CaseSensitivity,
60
+ value: AttrValue,
61
+ },
62
+ }
63
+
64
+ impl<AttrValue> AttrSelectorOperation<AttrValue> {
65
+ pub fn eval_str(&self, element_attr_value: &str) -> bool
66
+ where
67
+ AttrValue: AsRef<str>,
68
+ {
69
+ match *self {
70
+ AttrSelectorOperation::Exists => true,
71
+ AttrSelectorOperation::WithValue {
72
+ operator,
73
+ case_sensitivity,
74
+ ref value,
75
+ } => operator.eval_str(element_attr_value, value.as_ref(), case_sensitivity),
76
+ }
77
+ }
78
+ }
79
+
80
+ #[derive(Clone, Copy, Eq, PartialEq)]
81
+ #[cfg_attr(feature = "to_shmem", derive(ToShmem))]
82
+ pub enum AttrSelectorOperator {
83
+ Equal,
84
+ Includes,
85
+ DashMatch,
86
+ Prefix,
87
+ Substring,
88
+ Suffix,
89
+ }
90
+
91
+ impl ToCss for AttrSelectorOperator {
92
+ fn to_css<W>(&self, dest: &mut W) -> fmt::Result
93
+ where
94
+ W: fmt::Write,
95
+ {
96
+ // https://drafts.csswg.org/cssom/#serializing-selectors
97
+ // See "attribute selector".
98
+ dest.write_str(match *self {
99
+ AttrSelectorOperator::Equal => "=",
100
+ AttrSelectorOperator::Includes => "~=",
101
+ AttrSelectorOperator::DashMatch => "|=",
102
+ AttrSelectorOperator::Prefix => "^=",
103
+ AttrSelectorOperator::Substring => "*=",
104
+ AttrSelectorOperator::Suffix => "$=",
105
+ })
106
+ }
107
+ }
108
+
109
+ impl AttrSelectorOperator {
110
+ pub fn eval_str(
111
+ self,
112
+ element_attr_value: &str,
113
+ attr_selector_value: &str,
114
+ case_sensitivity: CaseSensitivity,
115
+ ) -> bool {
116
+ let e = element_attr_value.as_bytes();
117
+ let s = attr_selector_value.as_bytes();
118
+ let case = case_sensitivity;
119
+ match self {
120
+ AttrSelectorOperator::Equal => case.eq(e, s),
121
+ AttrSelectorOperator::Prefix => {
122
+ !s.is_empty() && e.len() >= s.len() && case.eq(&e[..s.len()], s)
123
+ },
124
+ AttrSelectorOperator::Suffix => {
125
+ !s.is_empty() && e.len() >= s.len() && case.eq(&e[(e.len() - s.len())..], s)
126
+ },
127
+ AttrSelectorOperator::Substring => {
128
+ !s.is_empty() && case.contains(element_attr_value, attr_selector_value)
129
+ },
130
+ AttrSelectorOperator::Includes => {
131
+ !s.is_empty()
132
+ && element_attr_value
133
+ .split(SELECTOR_WHITESPACE)
134
+ .any(|part| case.eq(part.as_bytes(), s))
135
+ },
136
+ AttrSelectorOperator::DashMatch => {
137
+ case.eq(e, s) || (e.get(s.len()) == Some(&b'-') && case.eq(&e[..s.len()], s))
138
+ },
139
+ }
140
+ }
141
+ }
142
+
143
+ /// The definition of whitespace per CSS Selectors Level 3 § 4.
144
+ pub static SELECTOR_WHITESPACE: &[char] = &[' ', '\t', '\n', '\r', '\x0C'];
145
+
146
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
147
+ #[cfg_attr(feature = "to_shmem", derive(ToShmem))]
148
+ pub enum ParsedCaseSensitivity {
149
+ /// 's' was specified.
150
+ ExplicitCaseSensitive,
151
+ /// 'i' was specified.
152
+ AsciiCaseInsensitive,
153
+ /// No flags were specified and HTML says this is a case-sensitive attribute.
154
+ CaseSensitive,
155
+ /// No flags were specified and HTML says this is a case-insensitive attribute.
156
+ AsciiCaseInsensitiveIfInHtmlElementInHtmlDocument,
157
+ }
158
+
159
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
160
+ pub enum CaseSensitivity {
161
+ CaseSensitive,
162
+ AsciiCaseInsensitive,
163
+ }
164
+
165
+ impl CaseSensitivity {
166
+ pub fn eq(self, a: &[u8], b: &[u8]) -> bool {
167
+ match self {
168
+ CaseSensitivity::CaseSensitive => a == b,
169
+ CaseSensitivity::AsciiCaseInsensitive => a.eq_ignore_ascii_case(b),
170
+ }
171
+ }
172
+
173
+ pub fn contains(self, haystack: &str, needle: &str) -> bool {
174
+ match self {
175
+ CaseSensitivity::CaseSensitive => haystack.contains(needle),
176
+ CaseSensitivity::AsciiCaseInsensitive => {
177
+ if let Some((&n_first_byte, n_rest)) = needle.as_bytes().split_first() {
178
+ haystack.bytes().enumerate().any(|(i, byte)| {
179
+ if !byte.eq_ignore_ascii_case(&n_first_byte) {
180
+ return false;
181
+ }
182
+ let after_this_byte = &haystack.as_bytes()[i + 1..];
183
+ match after_this_byte.get(..n_rest.len()) {
184
+ None => false,
185
+ Some(haystack_slice) => haystack_slice.eq_ignore_ascii_case(n_rest),
186
+ }
187
+ })
188
+ } else {
189
+ // any_str.contains("") == true,
190
+ // though these cases should be handled with *NeverMatches and never go here.
191
+ true
192
+ }
193
+ },
194
+ }
195
+ }
196
+ }
@@ -0,0 +1,422 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+
5
+ //! Counting and non-counting Bloom filters tuned for use as ancestor filters
6
+ //! for selector matching.
7
+
8
+ use std::fmt::{self, Debug};
9
+
10
+ // The top 8 bits of the 32-bit hash value are not used by the bloom filter.
11
+ // Consumers may rely on this to pack hashes more efficiently.
12
+ pub const BLOOM_HASH_MASK: u32 = 0x00ffffff;
13
+ const KEY_SIZE: usize = 12;
14
+
15
+ const ARRAY_SIZE: usize = 1 << KEY_SIZE;
16
+ const KEY_MASK: u32 = (1 << KEY_SIZE) - 1;
17
+
18
+ /// A counting Bloom filter with 8-bit counters.
19
+ pub type BloomFilter = CountingBloomFilter<BloomStorageU8>;
20
+
21
+ /// A counting Bloom filter with parameterized storage to handle
22
+ /// counters of different sizes. For now we assume that having two hash
23
+ /// functions is enough, but we may revisit that decision later.
24
+ ///
25
+ /// The filter uses an array with 2**KeySize entries.
26
+ ///
27
+ /// Assuming a well-distributed hash function, a Bloom filter with
28
+ /// array size M containing N elements and
29
+ /// using k hash function has expected false positive rate exactly
30
+ ///
31
+ /// $ (1 - (1 - 1/M)^{kN})^k $
32
+ ///
33
+ /// because each array slot has a
34
+ ///
35
+ /// $ (1 - 1/M)^{kN} $
36
+ ///
37
+ /// chance of being 0, and the expected false positive rate is the
38
+ /// probability that all of the k hash functions will hit a nonzero
39
+ /// slot.
40
+ ///
41
+ /// For reasonable assumptions (M large, kN large, which should both
42
+ /// hold if we're worried about false positives) about M and kN this
43
+ /// becomes approximately
44
+ ///
45
+ /// $$ (1 - \exp(-kN/M))^k $$
46
+ ///
47
+ /// For our special case of k == 2, that's $(1 - \exp(-2N/M))^2$,
48
+ /// or in other words
49
+ ///
50
+ /// $$ N/M = -0.5 * \ln(1 - \sqrt(r)) $$
51
+ ///
52
+ /// where r is the false positive rate. This can be used to compute
53
+ /// the desired KeySize for a given load N and false positive rate r.
54
+ ///
55
+ /// If N/M is assumed small, then the false positive rate can
56
+ /// further be approximated as 4*N^2/M^2. So increasing KeySize by
57
+ /// 1, which doubles M, reduces the false positive rate by about a
58
+ /// factor of 4, and a false positive rate of 1% corresponds to
59
+ /// about M/N == 20.
60
+ ///
61
+ /// What this means in practice is that for a few hundred keys using a
62
+ /// KeySize of 12 gives false positive rates on the order of 0.25-4%.
63
+ ///
64
+ /// Similarly, using a KeySize of 10 would lead to a 4% false
65
+ /// positive rate for N == 100 and to quite bad false positive
66
+ /// rates for larger N.
67
+ #[derive(Clone, Default)]
68
+ pub struct CountingBloomFilter<S>
69
+ where
70
+ S: BloomStorage,
71
+ {
72
+ storage: S,
73
+ }
74
+
75
+ impl<S> CountingBloomFilter<S>
76
+ where
77
+ S: BloomStorage,
78
+ {
79
+ /// Creates a new bloom filter.
80
+ #[inline]
81
+ pub fn new() -> Self {
82
+ Default::default()
83
+ }
84
+
85
+ #[inline]
86
+ pub fn clear(&mut self) {
87
+ self.storage = Default::default();
88
+ }
89
+
90
+ // Slow linear accessor to make sure the bloom filter is zeroed. This should
91
+ // never be used in release builds.
92
+ #[cfg(debug_assertions)]
93
+ pub fn is_zeroed(&self) -> bool {
94
+ self.storage.is_zeroed()
95
+ }
96
+
97
+ #[cfg(not(debug_assertions))]
98
+ pub fn is_zeroed(&self) -> bool {
99
+ unreachable!()
100
+ }
101
+
102
+ /// Inserts an item with a particular hash into the bloom filter.
103
+ #[inline]
104
+ pub fn insert_hash(&mut self, hash: u32) {
105
+ self.storage.adjust_first_slot(hash, true);
106
+ self.storage.adjust_second_slot(hash, true);
107
+ }
108
+
109
+ /// Removes an item with a particular hash from the bloom filter.
110
+ #[inline]
111
+ pub fn remove_hash(&mut self, hash: u32) {
112
+ self.storage.adjust_first_slot(hash, false);
113
+ self.storage.adjust_second_slot(hash, false);
114
+ }
115
+
116
+ /// Check whether the filter might contain an item with the given hash.
117
+ /// This can sometimes return true even if the item is not in the filter,
118
+ /// but will never return false for items that are actually in the filter.
119
+ #[inline]
120
+ pub fn might_contain_hash(&self, hash: u32) -> bool {
121
+ !self.storage.first_slot_is_empty(hash) && !self.storage.second_slot_is_empty(hash)
122
+ }
123
+ }
124
+
125
+ impl<S> Debug for CountingBloomFilter<S>
126
+ where
127
+ S: BloomStorage,
128
+ {
129
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
130
+ let mut slots_used = 0;
131
+ for i in 0..ARRAY_SIZE {
132
+ if !self.storage.slot_is_empty(i) {
133
+ slots_used += 1;
134
+ }
135
+ }
136
+ write!(f, "BloomFilter({}/{})", slots_used, ARRAY_SIZE)
137
+ }
138
+ }
139
+
140
+ pub trait BloomStorage: Clone + Default {
141
+ fn slot_is_empty(&self, index: usize) -> bool;
142
+ fn adjust_slot(&mut self, index: usize, increment: bool);
143
+ fn is_zeroed(&self) -> bool;
144
+
145
+ #[inline]
146
+ fn first_slot_is_empty(&self, hash: u32) -> bool {
147
+ self.slot_is_empty(Self::first_slot_index(hash))
148
+ }
149
+
150
+ #[inline]
151
+ fn second_slot_is_empty(&self, hash: u32) -> bool {
152
+ self.slot_is_empty(Self::second_slot_index(hash))
153
+ }
154
+
155
+ #[inline]
156
+ fn adjust_first_slot(&mut self, hash: u32, increment: bool) {
157
+ self.adjust_slot(Self::first_slot_index(hash), increment)
158
+ }
159
+
160
+ #[inline]
161
+ fn adjust_second_slot(&mut self, hash: u32, increment: bool) {
162
+ self.adjust_slot(Self::second_slot_index(hash), increment)
163
+ }
164
+
165
+ #[inline]
166
+ fn first_slot_index(hash: u32) -> usize {
167
+ hash1(hash) as usize
168
+ }
169
+
170
+ #[inline]
171
+ fn second_slot_index(hash: u32) -> usize {
172
+ hash2(hash) as usize
173
+ }
174
+ }
175
+
176
+ /// Storage class for a CountingBloomFilter that has 8-bit counters.
177
+ pub struct BloomStorageU8 {
178
+ counters: [u8; ARRAY_SIZE],
179
+ }
180
+
181
+ impl BloomStorage for BloomStorageU8 {
182
+ #[inline]
183
+ fn adjust_slot(&mut self, index: usize, increment: bool) {
184
+ let slot = &mut self.counters[index];
185
+ if *slot != 0xff {
186
+ // full
187
+ if increment {
188
+ *slot += 1;
189
+ } else {
190
+ *slot -= 1;
191
+ }
192
+ }
193
+ }
194
+
195
+ #[inline]
196
+ fn slot_is_empty(&self, index: usize) -> bool {
197
+ self.counters[index] == 0
198
+ }
199
+
200
+ #[inline]
201
+ fn is_zeroed(&self) -> bool {
202
+ self.counters.iter().all(|x| *x == 0)
203
+ }
204
+ }
205
+
206
+ impl Default for BloomStorageU8 {
207
+ fn default() -> Self {
208
+ BloomStorageU8 {
209
+ counters: [0; ARRAY_SIZE],
210
+ }
211
+ }
212
+ }
213
+
214
+ impl Clone for BloomStorageU8 {
215
+ fn clone(&self) -> Self {
216
+ BloomStorageU8 {
217
+ counters: self.counters,
218
+ }
219
+ }
220
+ }
221
+
222
+ /// Storage class for a CountingBloomFilter that has 1-bit counters.
223
+ pub struct BloomStorageBool {
224
+ counters: [u8; ARRAY_SIZE / 8],
225
+ }
226
+
227
+ impl BloomStorage for BloomStorageBool {
228
+ #[inline]
229
+ fn adjust_slot(&mut self, index: usize, increment: bool) {
230
+ let bit = 1 << (index % 8);
231
+ let byte = &mut self.counters[index / 8];
232
+
233
+ // Since we have only one bit for storage, decrementing it
234
+ // should never do anything. Assert against an accidental
235
+ // decrementing of a bit that was never set.
236
+ assert!(
237
+ increment || (*byte & bit) != 0,
238
+ "should not decrement if slot is already false"
239
+ );
240
+
241
+ if increment {
242
+ *byte |= bit;
243
+ }
244
+ }
245
+
246
+ #[inline]
247
+ fn slot_is_empty(&self, index: usize) -> bool {
248
+ let bit = 1 << (index % 8);
249
+ (self.counters[index / 8] & bit) == 0
250
+ }
251
+
252
+ #[inline]
253
+ fn is_zeroed(&self) -> bool {
254
+ self.counters.iter().all(|x| *x == 0)
255
+ }
256
+ }
257
+
258
+ impl Default for BloomStorageBool {
259
+ fn default() -> Self {
260
+ BloomStorageBool {
261
+ counters: [0; ARRAY_SIZE / 8],
262
+ }
263
+ }
264
+ }
265
+
266
+ impl Clone for BloomStorageBool {
267
+ fn clone(&self) -> Self {
268
+ BloomStorageBool {
269
+ counters: self.counters,
270
+ }
271
+ }
272
+ }
273
+
274
+ #[inline]
275
+ fn hash1(hash: u32) -> u32 {
276
+ hash & KEY_MASK
277
+ }
278
+
279
+ #[inline]
280
+ fn hash2(hash: u32) -> u32 {
281
+ (hash >> KEY_SIZE) & KEY_MASK
282
+ }
283
+
284
+ #[test]
285
+ fn create_and_insert_some_stuff() {
286
+ use rustc_hash::FxHasher;
287
+ use std::hash::{Hash, Hasher};
288
+ use std::mem::transmute;
289
+
290
+ fn hash_as_str(i: usize) -> u32 {
291
+ let mut hasher = FxHasher::default();
292
+ let s = i.to_string();
293
+ s.hash(&mut hasher);
294
+ let hash: u64 = hasher.finish();
295
+ (hash >> 32) as u32 ^ (hash as u32)
296
+ }
297
+
298
+ let mut bf = BloomFilter::new();
299
+
300
+ // Statically assert that ARRAY_SIZE is a multiple of 8, which
301
+ // BloomStorageBool relies on.
302
+ unsafe {
303
+ transmute::<[u8; ARRAY_SIZE % 8], [u8; 0]>([]);
304
+ }
305
+
306
+ for i in 0_usize..1000 {
307
+ bf.insert_hash(hash_as_str(i));
308
+ }
309
+
310
+ for i in 0_usize..1000 {
311
+ assert!(bf.might_contain_hash(hash_as_str(i)));
312
+ }
313
+
314
+ let false_positives = (1001_usize..2000)
315
+ .filter(|i| bf.might_contain_hash(hash_as_str(*i)))
316
+ .count();
317
+
318
+ assert!(false_positives < 190, "{} is not < 190", false_positives); // 19%.
319
+
320
+ for i in 0_usize..100 {
321
+ bf.remove_hash(hash_as_str(i));
322
+ }
323
+
324
+ for i in 100_usize..1000 {
325
+ assert!(bf.might_contain_hash(hash_as_str(i)));
326
+ }
327
+
328
+ let false_positives = (0_usize..100)
329
+ .filter(|i| bf.might_contain_hash(hash_as_str(*i)))
330
+ .count();
331
+
332
+ assert!(false_positives < 20, "{} is not < 20", false_positives); // 20%.
333
+
334
+ bf.clear();
335
+
336
+ for i in 0_usize..2000 {
337
+ assert!(!bf.might_contain_hash(hash_as_str(i)));
338
+ }
339
+ }
340
+
341
+ #[cfg(feature = "bench")]
342
+ #[cfg(test)]
343
+ mod bench {
344
+ extern crate test;
345
+ use super::BloomFilter;
346
+
347
+ #[derive(Default)]
348
+ struct HashGenerator(u32);
349
+
350
+ impl HashGenerator {
351
+ fn next(&mut self) -> u32 {
352
+ // Each hash is split into two twelve-bit segments, which are used
353
+ // as an index into an array. We increment each by 64 so that we
354
+ // hit the next cache line, and then another 1 so that our wrapping
355
+ // behavior leads us to different entries each time.
356
+ //
357
+ // Trying to simulate cold caches is rather difficult with the cargo
358
+ // benchmarking setup, so it may all be moot depending on the number
359
+ // of iterations that end up being run. But we might as well.
360
+ self.0 += (65) + (65 << super::KEY_SIZE);
361
+ self.0
362
+ }
363
+ }
364
+
365
+ #[bench]
366
+ fn create_insert_1000_remove_100_lookup_100(b: &mut test::Bencher) {
367
+ b.iter(|| {
368
+ let mut gen1 = HashGenerator::default();
369
+ let mut gen2 = HashGenerator::default();
370
+ let mut bf = BloomFilter::new();
371
+ for _ in 0_usize..1000 {
372
+ bf.insert_hash(gen1.next());
373
+ }
374
+ for _ in 0_usize..100 {
375
+ bf.remove_hash(gen2.next());
376
+ }
377
+ for _ in 100_usize..200 {
378
+ test::black_box(bf.might_contain_hash(gen2.next()));
379
+ }
380
+ });
381
+ }
382
+
383
+ #[bench]
384
+ fn might_contain_10(b: &mut test::Bencher) {
385
+ let bf = BloomFilter::new();
386
+ let mut gen = HashGenerator::default();
387
+ b.iter(|| {
388
+ for _ in 0..10 {
389
+ test::black_box(bf.might_contain_hash(gen.next()));
390
+ }
391
+ });
392
+ }
393
+
394
+ #[bench]
395
+ fn clear(b: &mut test::Bencher) {
396
+ let mut bf = Box::new(BloomFilter::new());
397
+ b.iter(|| test::black_box(&mut bf).clear());
398
+ }
399
+
400
+ #[bench]
401
+ fn insert_10(b: &mut test::Bencher) {
402
+ let mut bf = BloomFilter::new();
403
+ let mut gen = HashGenerator::default();
404
+ b.iter(|| {
405
+ for _ in 0..10 {
406
+ test::black_box(bf.insert_hash(gen.next()));
407
+ }
408
+ });
409
+ }
410
+
411
+ #[bench]
412
+ fn remove_10(b: &mut test::Bencher) {
413
+ let mut bf = BloomFilter::new();
414
+ let mut gen = HashGenerator::default();
415
+ // Note: this will underflow, and that's ok.
416
+ b.iter(|| {
417
+ for _ in 0..10 {
418
+ bf.remove_hash(gen.next())
419
+ }
420
+ });
421
+ }
422
+ }
@@ -0,0 +1,77 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+
5
+ extern crate phf_codegen;
6
+
7
+ use std::env;
8
+ use std::fs::File;
9
+ use std::io::{BufWriter, Write};
10
+ use std::path::Path;
11
+
12
+ fn main() {
13
+ let path = Path::new(&env::var_os("OUT_DIR").unwrap())
14
+ .join("ascii_case_insensitive_html_attributes.rs");
15
+ let mut file = BufWriter::new(File::create(&path).unwrap());
16
+
17
+ let mut set = phf_codegen::Set::new();
18
+ for name in ASCII_CASE_INSENSITIVE_HTML_ATTRIBUTES.split_whitespace() {
19
+ set.entry(name);
20
+ }
21
+ write!(
22
+ &mut file,
23
+ "{{ static SET: ::phf::Set<&'static str> = {}; &SET }}",
24
+ set.build(),
25
+ )
26
+ .unwrap();
27
+ }
28
+
29
+ /// <https://html.spec.whatwg.org/multipage/#selectors>
30
+ static ASCII_CASE_INSENSITIVE_HTML_ATTRIBUTES: &str = r#"
31
+ accept
32
+ accept-charset
33
+ align
34
+ alink
35
+ axis
36
+ bgcolor
37
+ charset
38
+ checked
39
+ clear
40
+ codetype
41
+ color
42
+ compact
43
+ declare
44
+ defer
45
+ dir
46
+ direction
47
+ disabled
48
+ enctype
49
+ face
50
+ frame
51
+ hreflang
52
+ http-equiv
53
+ lang
54
+ language
55
+ link
56
+ media
57
+ method
58
+ multiple
59
+ nohref
60
+ noresize
61
+ noshade
62
+ nowrap
63
+ readonly
64
+ rel
65
+ rev
66
+ rules
67
+ scope
68
+ scrolling
69
+ selected
70
+ shape
71
+ target
72
+ text
73
+ type
74
+ valign
75
+ valuetype
76
+ vlink
77
+ "#;