cfsolve 0.1.0-arm64-darwin

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,525 @@
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::attr::CaseSensitivity;
6
+ use crate::bloom::BloomFilter;
7
+ use crate::nth_index_cache::{NthIndexCache, NthIndexCacheInner};
8
+ use crate::parser::{Selector, SelectorImpl};
9
+ use crate::relative_selector::cache::RelativeSelectorCache;
10
+ use crate::relative_selector::filter::RelativeSelectorFilterMap;
11
+ use crate::tree::{Element, OpaqueElement};
12
+
13
+ /// What kind of selector matching mode we should use.
14
+ ///
15
+ /// There are two modes of selector matching. The difference is only noticeable
16
+ /// in presence of pseudo-elements.
17
+ #[derive(Clone, Copy, Debug, PartialEq)]
18
+ pub enum MatchingMode {
19
+ /// Don't ignore any pseudo-element selectors.
20
+ Normal,
21
+
22
+ /// Ignores any stateless pseudo-element selectors in the rightmost sequence
23
+ /// of simple selectors.
24
+ ///
25
+ /// This is useful, for example, to match against ::before when you aren't a
26
+ /// pseudo-element yourself.
27
+ ///
28
+ /// For example, in presence of `::before:hover`, it would never match, but
29
+ /// `::before` would be ignored as in "matching".
30
+ ///
31
+ /// It's required for all the selectors you match using this mode to have a
32
+ /// pseudo-element.
33
+ ForStatelessPseudoElement,
34
+ }
35
+
36
+ /// The mode to use when matching unvisited and visited links.
37
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
38
+ pub enum VisitedHandlingMode {
39
+ /// All links are matched as if they are unvisted.
40
+ AllLinksUnvisited,
41
+ /// All links are matched as if they are visited and unvisited (both :link
42
+ /// and :visited match).
43
+ ///
44
+ /// This is intended to be used from invalidation code, to be conservative
45
+ /// about whether we need to restyle a link.
46
+ AllLinksVisitedAndUnvisited,
47
+ /// A element's "relevant link" is the element being matched if it is a link
48
+ /// or the nearest ancestor link. The relevant link is matched as though it
49
+ /// is visited, and all other links are matched as if they are unvisited.
50
+ RelevantLinkVisited,
51
+ }
52
+
53
+ impl VisitedHandlingMode {
54
+ #[inline]
55
+ pub fn matches_visited(&self) -> bool {
56
+ matches!(
57
+ *self,
58
+ VisitedHandlingMode::RelevantLinkVisited
59
+ | VisitedHandlingMode::AllLinksVisitedAndUnvisited
60
+ )
61
+ }
62
+
63
+ #[inline]
64
+ pub fn matches_unvisited(&self) -> bool {
65
+ matches!(
66
+ *self,
67
+ VisitedHandlingMode::AllLinksUnvisited
68
+ | VisitedHandlingMode::AllLinksVisitedAndUnvisited
69
+ )
70
+ }
71
+ }
72
+
73
+ /// Whether we need to set selector invalidation flags on elements for this
74
+ /// match request.
75
+ #[derive(Clone, Copy, Debug, PartialEq)]
76
+ pub enum NeedsSelectorFlags {
77
+ No,
78
+ Yes,
79
+ }
80
+
81
+ /// Whether we're matching in the contect of invalidation.
82
+ #[derive(Clone, Copy, PartialEq)]
83
+ pub enum MatchingForInvalidation {
84
+ No,
85
+ Yes,
86
+ YesForComparison,
87
+ }
88
+
89
+ impl MatchingForInvalidation {
90
+ /// Are we matching for invalidation?
91
+ pub fn is_for_invalidation(&self) -> bool {
92
+ matches!(*self, Self::Yes | Self::YesForComparison)
93
+ }
94
+ }
95
+
96
+ /// Which quirks mode is this document in.
97
+ ///
98
+ /// See: https://quirks.spec.whatwg.org/
99
+ #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
100
+ pub enum QuirksMode {
101
+ /// Quirks mode.
102
+ Quirks,
103
+ /// Limited quirks mode.
104
+ LimitedQuirks,
105
+ /// No quirks mode.
106
+ NoQuirks,
107
+ }
108
+
109
+ impl QuirksMode {
110
+ #[inline]
111
+ pub fn classes_and_ids_case_sensitivity(self) -> CaseSensitivity {
112
+ match self {
113
+ QuirksMode::NoQuirks | QuirksMode::LimitedQuirks => CaseSensitivity::CaseSensitive,
114
+ QuirksMode::Quirks => CaseSensitivity::AsciiCaseInsensitive,
115
+ }
116
+ }
117
+ }
118
+
119
+ /// Set of caches (And cache-likes) that speed up expensive selector matches.
120
+ #[derive(Default)]
121
+ pub struct SelectorCaches {
122
+ /// A cache to speed up nth-index-like selectors.
123
+ pub nth_index: NthIndexCache,
124
+ /// A cache to speed up relative selector matches. See module documentation.
125
+ pub relative_selector: RelativeSelectorCache,
126
+ /// A map of bloom filters to fast-reject relative selector matches.
127
+ pub relative_selector_filter_map: RelativeSelectorFilterMap,
128
+ }
129
+
130
+ /// Data associated with the matching process for a element. This context is
131
+ /// used across many selectors for an element, so it's not appropriate for
132
+ /// transient data that applies to only a single selector.
133
+ pub struct MatchingContext<'a, Impl>
134
+ where
135
+ Impl: SelectorImpl,
136
+ {
137
+ /// Input with the matching mode we should use when matching selectors.
138
+ matching_mode: MatchingMode,
139
+ /// Input with the bloom filter used to fast-reject selectors.
140
+ pub bloom_filter: Option<&'a BloomFilter>,
141
+ /// The element which is going to match :scope pseudo-class. It can be
142
+ /// either one :scope element, or the scoping element.
143
+ ///
144
+ /// Note that, although in theory there can be multiple :scope elements,
145
+ /// in current specs, at most one is specified, and when there is one,
146
+ /// scoping element is not relevant anymore, so we use a single field for
147
+ /// them.
148
+ ///
149
+ /// When this is None, :scope will match the root element.
150
+ ///
151
+ /// See https://drafts.csswg.org/selectors-4/#scope-pseudo
152
+ pub scope_element: Option<OpaqueElement>,
153
+
154
+ /// The current shadow host we're collecting :host rules for.
155
+ pub current_host: Option<OpaqueElement>,
156
+
157
+ /// Controls how matching for links is handled.
158
+ visited_handling: VisitedHandlingMode,
159
+
160
+ /// Whether we're currently matching a featureless element.
161
+ pub featureless: bool,
162
+
163
+ /// The current nesting level of selectors that we're matching.
164
+ nesting_level: usize,
165
+
166
+ /// Whether we're inside a negation or not.
167
+ in_negation: bool,
168
+
169
+ /// An optional hook function for checking whether a pseudo-element
170
+ /// should match when matching_mode is ForStatelessPseudoElement.
171
+ pub pseudo_element_matching_fn: Option<&'a dyn Fn(&Impl::PseudoElement) -> bool>,
172
+
173
+ /// Extra implementation-dependent matching data.
174
+ pub extra_data: Impl::ExtraMatchingData<'a>,
175
+
176
+ /// The current element we're anchoring on for evaluating the relative selector.
177
+ current_relative_selector_anchor: Option<OpaqueElement>,
178
+
179
+ quirks_mode: QuirksMode,
180
+ needs_selector_flags: NeedsSelectorFlags,
181
+
182
+ /// Whether we're matching in the context of invalidation.
183
+ matching_for_invalidation: MatchingForInvalidation,
184
+
185
+ /// Whether we're matching in the context of revalidation.
186
+ matching_for_revalidation: bool,
187
+
188
+ /// Caches to speed up expensive selector matches.
189
+ pub selector_caches: &'a mut SelectorCaches,
190
+
191
+ classes_and_ids_case_sensitivity: CaseSensitivity,
192
+ _impl: ::std::marker::PhantomData<Impl>,
193
+ }
194
+
195
+ impl<'a, Impl> MatchingContext<'a, Impl>
196
+ where
197
+ Impl: SelectorImpl,
198
+ {
199
+ /// Constructs a new `MatchingContext`.
200
+ pub fn new(
201
+ matching_mode: MatchingMode,
202
+ bloom_filter: Option<&'a BloomFilter>,
203
+ selector_caches: &'a mut SelectorCaches,
204
+ quirks_mode: QuirksMode,
205
+ needs_selector_flags: NeedsSelectorFlags,
206
+ matching_for_invalidation: MatchingForInvalidation,
207
+ ) -> Self {
208
+ Self::new_internal(
209
+ matching_mode,
210
+ bloom_filter,
211
+ selector_caches,
212
+ VisitedHandlingMode::AllLinksUnvisited,
213
+ quirks_mode,
214
+ needs_selector_flags,
215
+ matching_for_invalidation,
216
+ false,
217
+ )
218
+ }
219
+
220
+ /// Constructs a new `MatchingContext` for revalidation.
221
+ pub fn new_for_revalidation(
222
+ bloom_filter: Option<&'a BloomFilter>,
223
+ selector_caches: &'a mut SelectorCaches,
224
+ quirks_mode: QuirksMode,
225
+ needs_selector_flags: NeedsSelectorFlags,
226
+ ) -> Self {
227
+ Self::new_internal(
228
+ // NB: `MatchingMode` doesn't really matter, given we don't share style
229
+ // between pseudos.
230
+ MatchingMode::Normal,
231
+ bloom_filter,
232
+ selector_caches,
233
+ VisitedHandlingMode::AllLinksUnvisited,
234
+ quirks_mode,
235
+ needs_selector_flags,
236
+ MatchingForInvalidation::No,
237
+ true,
238
+ )
239
+ }
240
+
241
+ /// Constructs a new `MatchingContext` for use in visited matching.
242
+ pub fn new_for_visited(
243
+ matching_mode: MatchingMode,
244
+ bloom_filter: Option<&'a BloomFilter>,
245
+ selector_caches: &'a mut SelectorCaches,
246
+ visited_handling: VisitedHandlingMode,
247
+ quirks_mode: QuirksMode,
248
+ needs_selector_flags: NeedsSelectorFlags,
249
+ matching_for_invalidation: MatchingForInvalidation,
250
+ ) -> Self {
251
+ Self::new_internal(
252
+ matching_mode,
253
+ bloom_filter,
254
+ selector_caches,
255
+ visited_handling,
256
+ quirks_mode,
257
+ needs_selector_flags,
258
+ matching_for_invalidation,
259
+ false,
260
+ )
261
+ }
262
+
263
+ fn new_internal(
264
+ matching_mode: MatchingMode,
265
+ bloom_filter: Option<&'a BloomFilter>,
266
+ selector_caches: &'a mut SelectorCaches,
267
+ visited_handling: VisitedHandlingMode,
268
+ quirks_mode: QuirksMode,
269
+ needs_selector_flags: NeedsSelectorFlags,
270
+ matching_for_invalidation: MatchingForInvalidation,
271
+ matching_for_revalidation: bool,
272
+ ) -> Self {
273
+ Self {
274
+ matching_mode,
275
+ bloom_filter,
276
+ visited_handling,
277
+ quirks_mode,
278
+ classes_and_ids_case_sensitivity: quirks_mode.classes_and_ids_case_sensitivity(),
279
+ needs_selector_flags,
280
+ matching_for_invalidation,
281
+ matching_for_revalidation,
282
+ scope_element: None,
283
+ current_host: None,
284
+ featureless: false,
285
+ nesting_level: 0,
286
+ in_negation: false,
287
+ pseudo_element_matching_fn: None,
288
+ extra_data: Default::default(),
289
+ current_relative_selector_anchor: None,
290
+ selector_caches,
291
+ _impl: ::std::marker::PhantomData,
292
+ }
293
+ }
294
+
295
+ // Grab a reference to the appropriate cache.
296
+ #[inline]
297
+ pub fn nth_index_cache(
298
+ &mut self,
299
+ is_of_type: bool,
300
+ is_from_end: bool,
301
+ selectors: &[Selector<Impl>],
302
+ ) -> &mut NthIndexCacheInner {
303
+ self.selector_caches
304
+ .nth_index
305
+ .get(is_of_type, is_from_end, selectors)
306
+ }
307
+
308
+ /// Whether we're matching a nested selector.
309
+ #[inline]
310
+ pub fn is_nested(&self) -> bool {
311
+ self.nesting_level != 0
312
+ }
313
+
314
+ /// Whether we're matching inside a :not(..) selector.
315
+ #[inline]
316
+ pub fn in_negation(&self) -> bool {
317
+ self.in_negation
318
+ }
319
+
320
+ /// The quirks mode of the document.
321
+ #[inline]
322
+ pub fn quirks_mode(&self) -> QuirksMode {
323
+ self.quirks_mode
324
+ }
325
+
326
+ /// The matching-mode for this selector-matching operation.
327
+ #[inline]
328
+ pub fn matching_mode(&self) -> MatchingMode {
329
+ self.matching_mode
330
+ }
331
+
332
+ /// Whether we need to set selector flags.
333
+ #[inline]
334
+ pub fn needs_selector_flags(&self) -> bool {
335
+ self.needs_selector_flags == NeedsSelectorFlags::Yes
336
+ }
337
+
338
+ /// Whether or not we're matching to invalidate.
339
+ #[inline]
340
+ pub fn matching_for_invalidation(&self) -> bool {
341
+ self.matching_for_invalidation.is_for_invalidation()
342
+ }
343
+
344
+ /// Whether or not we're matching to revalidate.
345
+ #[inline]
346
+ pub fn matching_for_revalidation(&self) -> bool {
347
+ self.matching_for_revalidation
348
+ }
349
+
350
+ /// Whether or not we're comparing for invalidation, if we are matching for invalidation.
351
+ #[inline]
352
+ pub fn matching_for_invalidation_comparison(&self) -> Option<bool> {
353
+ match self.matching_for_invalidation {
354
+ MatchingForInvalidation::No => None,
355
+ MatchingForInvalidation::Yes => Some(false),
356
+ MatchingForInvalidation::YesForComparison => Some(true),
357
+ }
358
+ }
359
+
360
+ /// Run the given matching function for before/after invalidation comparison.
361
+ #[inline]
362
+ pub fn for_invalidation_comparison<F, R>(&mut self, f: F) -> R
363
+ where
364
+ F: FnOnce(&mut Self) -> R,
365
+ {
366
+ debug_assert!(
367
+ self.matching_for_invalidation(),
368
+ "Not matching for invalidation?"
369
+ );
370
+ let prev = self.matching_for_invalidation;
371
+ self.matching_for_invalidation = MatchingForInvalidation::YesForComparison;
372
+ let result = f(self);
373
+ self.matching_for_invalidation = prev;
374
+ result
375
+ }
376
+
377
+ /// The case-sensitivity for class and ID selectors
378
+ #[inline]
379
+ pub fn classes_and_ids_case_sensitivity(&self) -> CaseSensitivity {
380
+ self.classes_and_ids_case_sensitivity
381
+ }
382
+
383
+ /// Runs F with a deeper nesting level.
384
+ #[inline]
385
+ pub fn nest<F, R>(&mut self, f: F) -> R
386
+ where
387
+ F: FnOnce(&mut Self) -> R,
388
+ {
389
+ self.nesting_level += 1;
390
+ let result = f(self);
391
+ self.nesting_level -= 1;
392
+ result
393
+ }
394
+
395
+ /// Runs F with a deeper nesting level, and marking ourselves in a negation,
396
+ /// for a :not(..) selector, for example.
397
+ #[inline]
398
+ pub fn nest_for_negation<F, R>(&mut self, f: F) -> R
399
+ where
400
+ F: FnOnce(&mut Self) -> R,
401
+ {
402
+ let old_in_negation = self.in_negation;
403
+ self.in_negation = !self.in_negation;
404
+ let result = self.nest(f);
405
+ self.in_negation = old_in_negation;
406
+ result
407
+ }
408
+
409
+ #[inline]
410
+ pub fn visited_handling(&self) -> VisitedHandlingMode {
411
+ self.visited_handling
412
+ }
413
+
414
+ /// Runs F with a different featureless element flag.
415
+ #[inline]
416
+ pub fn with_featureless<F, R>(&mut self, featureless: bool, f: F) -> R
417
+ where
418
+ F: FnOnce(&mut Self) -> R,
419
+ {
420
+ let orig = self.featureless;
421
+ self.featureless = featureless;
422
+ let result = f(self);
423
+ self.featureless = orig;
424
+ result
425
+ }
426
+
427
+ /// Returns whether the currently matching element is acting as a featureless element (e.g.,
428
+ /// because we've crossed a shadow boundary). This is used to implement the :host selector
429
+ /// rules properly.
430
+ #[inline]
431
+ pub fn featureless(&self) -> bool {
432
+ self.featureless
433
+ }
434
+
435
+ /// Runs F with a different VisitedHandlingMode.
436
+ #[inline]
437
+ pub fn with_visited_handling_mode<F, R>(
438
+ &mut self,
439
+ handling_mode: VisitedHandlingMode,
440
+ f: F,
441
+ ) -> R
442
+ where
443
+ F: FnOnce(&mut Self) -> R,
444
+ {
445
+ let original_handling_mode = self.visited_handling;
446
+ self.visited_handling = handling_mode;
447
+ let result = f(self);
448
+ self.visited_handling = original_handling_mode;
449
+ result
450
+ }
451
+
452
+ /// Runs F with a given shadow host which is the root of the tree whose
453
+ /// rules we're matching.
454
+ #[inline]
455
+ pub fn with_shadow_host<F, E, R>(&mut self, host: Option<E>, f: F) -> R
456
+ where
457
+ E: Element,
458
+ F: FnOnce(&mut Self) -> R,
459
+ {
460
+ let original_host = self.current_host.take();
461
+ self.current_host = host.map(|h| h.opaque());
462
+ let result = f(self);
463
+ self.current_host = original_host;
464
+ result
465
+ }
466
+
467
+ /// Returns the current shadow host whose shadow root we're matching rules
468
+ /// against.
469
+ #[inline]
470
+ pub fn shadow_host(&self) -> Option<OpaqueElement> {
471
+ self.current_host
472
+ }
473
+
474
+ /// Runs F with a deeper nesting level, with the given element as the anchor,
475
+ /// for a :has(...) selector, for example.
476
+ #[inline]
477
+ pub fn nest_for_relative_selector<F, R>(&mut self, anchor: OpaqueElement, f: F) -> R
478
+ where
479
+ F: FnOnce(&mut Self) -> R,
480
+ {
481
+ debug_assert!(
482
+ self.current_relative_selector_anchor.is_none(),
483
+ "Nesting should've been rejected at parse time"
484
+ );
485
+ self.current_relative_selector_anchor = Some(anchor);
486
+ let result = self.nest(f);
487
+ self.current_relative_selector_anchor = None;
488
+ result
489
+ }
490
+
491
+ /// Runs F with a deeper nesting level, with the given element as the scope.
492
+ #[inline]
493
+ pub fn nest_for_scope<F, R>(&mut self, scope: Option<OpaqueElement>, f: F) -> R
494
+ where
495
+ F: FnOnce(&mut Self) -> R,
496
+ {
497
+ let original_scope_element = self.scope_element;
498
+ self.scope_element = scope;
499
+ let result = f(self);
500
+ self.scope_element = original_scope_element;
501
+ result
502
+ }
503
+
504
+ /// Runs F with a deeper nesting level, with the given element as the scope, for
505
+ /// matching `scope-start` and/or `scope-end` conditions.
506
+ #[inline]
507
+ pub fn nest_for_scope_condition<F, R>(&mut self, scope: Option<OpaqueElement>, f: F) -> R
508
+ where
509
+ F: FnOnce(&mut Self) -> R,
510
+ {
511
+ let original_matching_mode = self.matching_mode;
512
+ // We may as well be matching for a pseudo-element inside `@scope`, but
513
+ // the scope-defining selectors wouldn't be matching them.
514
+ self.matching_mode = MatchingMode::Normal;
515
+ let result = self.nest_for_scope(scope, f);
516
+ self.matching_mode = original_matching_mode;
517
+ result
518
+ }
519
+
520
+ /// Returns the current anchor element to evaluate the relative selector against.
521
+ #[inline]
522
+ pub fn relative_selector_anchor(&self) -> Option<OpaqueElement> {
523
+ self.current_relative_selector_anchor
524
+ }
525
+ }
@@ -0,0 +1,131 @@
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
+ //! Kleen logic: https://en.wikipedia.org/wiki/Three-valued_logic#Kleene_and_Priest_logics
6
+
7
+ /// A "trilean" value based on Kleen logic.
8
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
9
+ pub enum KleeneValue {
10
+ /// False
11
+ False = 0,
12
+ /// True
13
+ True = 1,
14
+ /// Either true or false, but we’re not sure which yet.
15
+ Unknown,
16
+ }
17
+
18
+ impl From<bool> for KleeneValue {
19
+ fn from(b: bool) -> Self {
20
+ if b {
21
+ Self::True
22
+ } else {
23
+ Self::False
24
+ }
25
+ }
26
+ }
27
+
28
+ impl KleeneValue {
29
+ /// Turns this Kleene value to a bool, taking the unknown value as an
30
+ /// argument.
31
+ pub fn to_bool(self, unknown: bool) -> bool {
32
+ match self {
33
+ Self::True => true,
34
+ Self::False => false,
35
+ Self::Unknown => unknown,
36
+ }
37
+ }
38
+
39
+ /// Return true if any result of f() is definitely true.
40
+ /// Otherwise, return the `or` of all values.
41
+ /// Returns false if empty, like that of `Iterator`.
42
+ #[inline(always)]
43
+ pub fn any<T>(iter: impl Iterator<Item = T>, f: impl FnMut(T) -> Self) -> Self {
44
+ Self::any_value(iter, Self::True, Self::False, |a, b| a | b, f)
45
+ }
46
+
47
+ /// Return false if any results of f() is definitely false.
48
+ /// Otherwise, return the `and` of all values.
49
+ /// Returns true if empty, opposite of `Iterator`.
50
+ #[inline(always)]
51
+ pub fn any_false<T>(iter: impl Iterator<Item = T>, f: impl FnMut(T) -> Self) -> Self {
52
+ Self::any_value(iter, Self::False, Self::True, |a, b| a & b, f)
53
+ }
54
+
55
+ #[inline(always)]
56
+ fn any_value<T>(
57
+ iter: impl Iterator<Item = T>,
58
+ value: Self,
59
+ on_empty: Self,
60
+ op: impl Fn(Self, Self) -> Self,
61
+ mut f: impl FnMut(T) -> Self,
62
+ ) -> Self {
63
+ let mut result = None;
64
+ for item in iter {
65
+ let r = f(item);
66
+ if r == value {
67
+ return r;
68
+ }
69
+ if let Some(v) = result.as_mut() {
70
+ *v = op(*v, r);
71
+ } else {
72
+ result = Some(r);
73
+ }
74
+ }
75
+ result.unwrap_or(on_empty)
76
+ }
77
+ }
78
+
79
+ impl std::ops::Not for KleeneValue {
80
+ type Output = Self;
81
+
82
+ fn not(self) -> Self {
83
+ match self {
84
+ Self::True => Self::False,
85
+ Self::False => Self::True,
86
+ Self::Unknown => Self::Unknown,
87
+ }
88
+ }
89
+ }
90
+
91
+ // Implements the logical and operation.
92
+ impl std::ops::BitAnd for KleeneValue {
93
+ type Output = Self;
94
+
95
+ fn bitand(self, other: Self) -> Self {
96
+ if self == Self::False || other == Self::False {
97
+ return Self::False;
98
+ }
99
+ if self == Self::Unknown || other == Self::Unknown {
100
+ return Self::Unknown;
101
+ }
102
+ Self::True
103
+ }
104
+ }
105
+
106
+ // Implements the logical or operation.
107
+ impl std::ops::BitOr for KleeneValue {
108
+ type Output = Self;
109
+
110
+ fn bitor(self, other: Self) -> Self {
111
+ if self == Self::True || other == Self::True {
112
+ return Self::True;
113
+ }
114
+ if self == Self::Unknown || other == Self::Unknown {
115
+ return Self::Unknown;
116
+ }
117
+ Self::False
118
+ }
119
+ }
120
+
121
+ impl std::ops::BitOrAssign for KleeneValue {
122
+ fn bitor_assign(&mut self, other: Self) {
123
+ *self = *self | other;
124
+ }
125
+ }
126
+
127
+ impl std::ops::BitAndAssign for KleeneValue {
128
+ fn bitand_assign(&mut self, other: Self) {
129
+ *self = *self & other;
130
+ }
131
+ }
@@ -0,0 +1,23 @@
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
+ // Make |cargo bench| work.
6
+ #![cfg_attr(feature = "bench", feature(test))]
7
+
8
+ pub mod attr;
9
+ pub mod bloom;
10
+ mod builder;
11
+ pub mod context;
12
+ pub mod kleene_value;
13
+ pub mod matching;
14
+ mod nth_index_cache;
15
+ pub mod parser;
16
+ pub mod relative_selector;
17
+ pub mod sink;
18
+ mod tree;
19
+ pub mod visitor;
20
+
21
+ pub use crate::nth_index_cache::NthIndexCache;
22
+ pub use crate::parser::{Parser, SelectorImpl, SelectorList};
23
+ pub use crate::tree::{Element, OpaqueElement};