@performant-software/geospatial 3.1.28 → 3.1.30-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2032) hide show
  1. package/dist/index.cjs100.js +1 -1
  2. package/dist/index.cjs101.js +1 -1
  3. package/dist/index.cjs102.js +1 -1
  4. package/dist/index.cjs103.js +1 -1
  5. package/dist/index.cjs104.js +1 -1
  6. package/dist/index.cjs105.js +1 -1
  7. package/dist/index.cjs106.js +1 -1
  8. package/dist/index.cjs107.js +1 -1
  9. package/dist/index.cjs108.js +1 -1
  10. package/dist/index.cjs111.js +1 -1
  11. package/dist/index.cjs112.js +1 -1
  12. package/dist/index.cjs114.js +1 -1
  13. package/dist/index.cjs115.js +1 -1
  14. package/dist/index.cjs116.js +1 -1
  15. package/dist/index.cjs117.js +1 -1
  16. package/dist/index.cjs122.js +1 -1
  17. package/dist/index.cjs123.js +1 -1
  18. package/dist/index.cjs124.js +1 -1
  19. package/dist/index.cjs125.js +1 -1
  20. package/dist/index.cjs128.js +1 -1
  21. package/dist/index.cjs129.js +1 -1
  22. package/dist/index.cjs13.js +1 -1
  23. package/dist/index.cjs130.js +1 -1
  24. package/dist/index.cjs134.js +1 -1
  25. package/dist/index.cjs137.js +1 -1
  26. package/dist/index.cjs141.js +1 -1
  27. package/dist/index.cjs144.js +1 -1
  28. package/dist/index.cjs15.js +1 -1
  29. package/dist/index.cjs152.js +1 -1
  30. package/dist/index.cjs153.js +1 -1
  31. package/dist/index.cjs154.js +1 -1
  32. package/dist/index.cjs155.js +1 -1
  33. package/dist/index.cjs156.js +1 -1
  34. package/dist/index.cjs157.js +1 -1
  35. package/dist/index.cjs158.js +1 -1
  36. package/dist/index.cjs16.js +1 -1
  37. package/dist/index.cjs160.js +1 -1
  38. package/dist/index.cjs161.js +1 -1
  39. package/dist/index.cjs162.js +1 -1
  40. package/dist/index.cjs163.js +1 -1
  41. package/dist/index.cjs164.js +1 -1
  42. package/dist/index.cjs165.js +1 -1
  43. package/dist/index.cjs166.js +1 -1
  44. package/dist/index.cjs167.js +1 -1
  45. package/dist/index.cjs168.js +1 -1
  46. package/dist/index.cjs17.js +1 -1
  47. package/dist/index.cjs171.js +1 -1
  48. package/dist/index.cjs172.js +1 -1
  49. package/dist/index.cjs174.js +1 -1
  50. package/dist/index.cjs175.js +1 -1
  51. package/dist/index.cjs176.js +1 -1
  52. package/dist/index.cjs177.js +1 -1
  53. package/dist/index.cjs178.js +1 -1
  54. package/dist/index.cjs179.js +1 -1
  55. package/dist/index.cjs18.js +1 -1
  56. package/dist/index.cjs180.js +1 -1
  57. package/dist/index.cjs181.js +1 -1
  58. package/dist/index.cjs187.js +1 -1
  59. package/dist/index.cjs188.js +1 -1
  60. package/dist/index.cjs189.js +1 -1
  61. package/dist/index.cjs19.js +1 -1
  62. package/dist/index.cjs190.js +1 -1
  63. package/dist/index.cjs191.js +1 -1
  64. package/dist/index.cjs194.js +1 -1
  65. package/dist/index.cjs194.js.map +1 -1
  66. package/dist/index.cjs195.js +1 -1
  67. package/dist/index.cjs195.js.map +1 -1
  68. package/dist/index.cjs196.js +1 -1
  69. package/dist/index.cjs196.js.map +1 -1
  70. package/dist/index.cjs197.js +1 -1
  71. package/dist/index.cjs197.js.map +1 -1
  72. package/dist/index.cjs198.js +1 -1
  73. package/dist/index.cjs198.js.map +1 -1
  74. package/dist/index.cjs199.js +1 -1
  75. package/dist/index.cjs199.js.map +1 -1
  76. package/dist/index.cjs20.js +1 -1
  77. package/dist/index.cjs200.js +1 -1
  78. package/dist/index.cjs200.js.map +1 -1
  79. package/dist/index.cjs201.js +1 -1
  80. package/dist/index.cjs201.js.map +1 -1
  81. package/dist/index.cjs202.js +1 -1
  82. package/dist/index.cjs202.js.map +1 -1
  83. package/dist/index.cjs203.js +1 -1
  84. package/dist/index.cjs203.js.map +1 -1
  85. package/dist/index.cjs204.js +1 -1
  86. package/dist/index.cjs204.js.map +1 -1
  87. package/dist/index.cjs205.js +1 -1
  88. package/dist/index.cjs205.js.map +1 -1
  89. package/dist/index.cjs206.js +1 -1
  90. package/dist/index.cjs206.js.map +1 -1
  91. package/dist/index.cjs207.js +1 -1
  92. package/dist/index.cjs207.js.map +1 -1
  93. package/dist/index.cjs208.js +1 -1
  94. package/dist/index.cjs208.js.map +1 -1
  95. package/dist/index.cjs209.js +1 -1
  96. package/dist/index.cjs209.js.map +1 -1
  97. package/dist/index.cjs21.js +1 -1
  98. package/dist/index.cjs210.js +1 -1
  99. package/dist/index.cjs210.js.map +1 -1
  100. package/dist/index.cjs211.js +1 -1
  101. package/dist/index.cjs211.js.map +1 -1
  102. package/dist/index.cjs212.js +1 -1
  103. package/dist/index.cjs212.js.map +1 -1
  104. package/dist/index.cjs213.js +1 -1
  105. package/dist/index.cjs213.js.map +1 -1
  106. package/dist/index.cjs214.js +1 -1
  107. package/dist/index.cjs214.js.map +1 -1
  108. package/dist/index.cjs215.js +1 -1
  109. package/dist/index.cjs215.js.map +1 -1
  110. package/dist/index.cjs216.js +1 -1
  111. package/dist/index.cjs216.js.map +1 -1
  112. package/dist/index.cjs217.js +1 -1
  113. package/dist/index.cjs217.js.map +1 -1
  114. package/dist/index.cjs218.js +1 -1
  115. package/dist/index.cjs218.js.map +1 -1
  116. package/dist/index.cjs219.js +1 -1
  117. package/dist/index.cjs219.js.map +1 -1
  118. package/dist/index.cjs22.js +1 -1
  119. package/dist/index.cjs220.js +1 -1
  120. package/dist/index.cjs220.js.map +1 -1
  121. package/dist/index.cjs221.js +1 -1
  122. package/dist/index.cjs221.js.map +1 -1
  123. package/dist/index.cjs222.js +1 -1
  124. package/dist/index.cjs222.js.map +1 -1
  125. package/dist/index.cjs223.js +1 -1
  126. package/dist/index.cjs223.js.map +1 -1
  127. package/dist/index.cjs224.js +1 -1
  128. package/dist/index.cjs224.js.map +1 -1
  129. package/dist/index.cjs225.js +1 -1
  130. package/dist/index.cjs225.js.map +1 -1
  131. package/dist/index.cjs226.js +1 -1
  132. package/dist/index.cjs226.js.map +1 -1
  133. package/dist/index.cjs227.js +1 -1
  134. package/dist/index.cjs227.js.map +1 -1
  135. package/dist/index.cjs228.js +1 -1
  136. package/dist/index.cjs228.js.map +1 -1
  137. package/dist/index.cjs229.js +1 -1
  138. package/dist/index.cjs229.js.map +1 -1
  139. package/dist/index.cjs23.js +1 -1
  140. package/dist/index.cjs230.js +1 -1
  141. package/dist/index.cjs230.js.map +1 -1
  142. package/dist/index.cjs231.js +1 -1
  143. package/dist/index.cjs231.js.map +1 -1
  144. package/dist/index.cjs232.js +1 -1
  145. package/dist/index.cjs232.js.map +1 -1
  146. package/dist/index.cjs233.js +1 -1
  147. package/dist/index.cjs233.js.map +1 -1
  148. package/dist/index.cjs234.js +1 -1
  149. package/dist/index.cjs234.js.map +1 -1
  150. package/dist/index.cjs235.js +1 -1
  151. package/dist/index.cjs235.js.map +1 -1
  152. package/dist/index.cjs236.js +1 -1
  153. package/dist/index.cjs236.js.map +1 -1
  154. package/dist/index.cjs237.js +1 -1
  155. package/dist/index.cjs237.js.map +1 -1
  156. package/dist/index.cjs238.js +1 -1
  157. package/dist/index.cjs238.js.map +1 -1
  158. package/dist/index.cjs239.js +1 -1
  159. package/dist/index.cjs239.js.map +1 -1
  160. package/dist/index.cjs24.js +1 -1
  161. package/dist/index.cjs240.js +1 -1
  162. package/dist/index.cjs240.js.map +1 -1
  163. package/dist/index.cjs241.js +1 -1
  164. package/dist/index.cjs241.js.map +1 -1
  165. package/dist/index.cjs242.js +1 -1
  166. package/dist/index.cjs242.js.map +1 -1
  167. package/dist/index.cjs243.js +1 -1
  168. package/dist/index.cjs243.js.map +1 -1
  169. package/dist/index.cjs244.js +1 -1
  170. package/dist/index.cjs244.js.map +1 -1
  171. package/dist/index.cjs245.js +1 -7
  172. package/dist/index.cjs245.js.map +1 -1
  173. package/dist/index.cjs246.js +1 -1
  174. package/dist/index.cjs246.js.map +1 -1
  175. package/dist/index.cjs247.js +1 -1
  176. package/dist/index.cjs247.js.map +1 -1
  177. package/dist/index.cjs248.js +1 -1
  178. package/dist/index.cjs248.js.map +1 -1
  179. package/dist/index.cjs249.js +1 -1
  180. package/dist/index.cjs249.js.map +1 -1
  181. package/dist/index.cjs25.js +1 -1
  182. package/dist/index.cjs250.js +1 -1
  183. package/dist/index.cjs250.js.map +1 -1
  184. package/dist/index.cjs251.js +1 -1
  185. package/dist/index.cjs251.js.map +1 -1
  186. package/dist/index.cjs252.js +1 -1
  187. package/dist/index.cjs252.js.map +1 -1
  188. package/dist/index.cjs253.js +1 -1
  189. package/dist/index.cjs253.js.map +1 -1
  190. package/dist/index.cjs254.js +1 -1
  191. package/dist/index.cjs254.js.map +1 -1
  192. package/dist/index.cjs255.js +1 -1
  193. package/dist/index.cjs255.js.map +1 -1
  194. package/dist/index.cjs256.js +1 -1
  195. package/dist/index.cjs256.js.map +1 -1
  196. package/dist/index.cjs257.js +1 -1
  197. package/dist/index.cjs257.js.map +1 -1
  198. package/dist/index.cjs258.js +1 -1
  199. package/dist/index.cjs258.js.map +1 -1
  200. package/dist/index.cjs259.js +1 -1
  201. package/dist/index.cjs259.js.map +1 -1
  202. package/dist/index.cjs26.js +1 -1
  203. package/dist/index.cjs260.js +1 -1
  204. package/dist/index.cjs260.js.map +1 -1
  205. package/dist/index.cjs261.js +1 -1
  206. package/dist/index.cjs261.js.map +1 -1
  207. package/dist/index.cjs262.js +1 -1
  208. package/dist/index.cjs262.js.map +1 -1
  209. package/dist/index.cjs263.js +1 -1
  210. package/dist/index.cjs263.js.map +1 -1
  211. package/dist/index.cjs264.js +1 -1
  212. package/dist/index.cjs264.js.map +1 -1
  213. package/dist/index.cjs265.js +1 -1
  214. package/dist/index.cjs265.js.map +1 -1
  215. package/dist/index.cjs266.js +1 -1
  216. package/dist/index.cjs266.js.map +1 -1
  217. package/dist/index.cjs267.js +1 -1
  218. package/dist/index.cjs267.js.map +1 -1
  219. package/dist/index.cjs268.js +1 -1
  220. package/dist/index.cjs268.js.map +1 -1
  221. package/dist/index.cjs269.js +1 -1
  222. package/dist/index.cjs269.js.map +1 -1
  223. package/dist/index.cjs27.js +1 -1
  224. package/dist/index.cjs270.js +1 -1
  225. package/dist/index.cjs270.js.map +1 -1
  226. package/dist/index.cjs271.js +1 -1
  227. package/dist/index.cjs271.js.map +1 -1
  228. package/dist/index.cjs272.js +7 -1
  229. package/dist/index.cjs272.js.map +1 -1
  230. package/dist/index.cjs273.js +1 -1
  231. package/dist/index.cjs273.js.map +1 -1
  232. package/dist/index.cjs274.js +1 -1
  233. package/dist/index.cjs274.js.map +1 -1
  234. package/dist/index.cjs275.js +1 -1
  235. package/dist/index.cjs275.js.map +1 -1
  236. package/dist/index.cjs276.js +2 -0
  237. package/dist/index.cjs276.js.map +1 -0
  238. package/dist/index.cjs277.js +2 -0
  239. package/dist/index.cjs277.js.map +1 -0
  240. package/dist/index.cjs278.js +2 -0
  241. package/dist/index.cjs278.js.map +1 -0
  242. package/dist/index.cjs279.js +2 -0
  243. package/dist/index.cjs279.js.map +1 -0
  244. package/dist/index.cjs280.js +2 -0
  245. package/dist/index.cjs280.js.map +1 -0
  246. package/dist/index.cjs281.js +2 -0
  247. package/dist/index.cjs281.js.map +1 -0
  248. package/dist/index.cjs282.js +2 -0
  249. package/dist/index.cjs282.js.map +1 -0
  250. package/dist/index.cjs283.js +2 -0
  251. package/dist/index.cjs283.js.map +1 -0
  252. package/dist/index.cjs284.js +2 -0
  253. package/dist/index.cjs284.js.map +1 -0
  254. package/dist/index.cjs285.js +2 -0
  255. package/dist/index.cjs285.js.map +1 -0
  256. package/dist/index.cjs286.js +2 -0
  257. package/dist/index.cjs286.js.map +1 -0
  258. package/dist/index.cjs287.js +2 -0
  259. package/dist/index.cjs287.js.map +1 -0
  260. package/dist/index.cjs288.js +2 -0
  261. package/dist/index.cjs288.js.map +1 -0
  262. package/dist/index.cjs289.js +2 -0
  263. package/dist/index.cjs289.js.map +1 -0
  264. package/dist/index.cjs29.js +1 -1
  265. package/dist/index.cjs290.js +2 -0
  266. package/dist/index.cjs290.js.map +1 -0
  267. package/dist/index.cjs291.js +2 -0
  268. package/dist/index.cjs291.js.map +1 -0
  269. package/dist/index.cjs292.js +2 -0
  270. package/dist/index.cjs292.js.map +1 -0
  271. package/dist/index.cjs293.js +2 -0
  272. package/dist/index.cjs293.js.map +1 -0
  273. package/dist/index.cjs294.js +2 -0
  274. package/dist/index.cjs294.js.map +1 -0
  275. package/dist/index.cjs295.js +2 -0
  276. package/dist/index.cjs295.js.map +1 -0
  277. package/dist/index.cjs296.js +2 -0
  278. package/dist/index.cjs296.js.map +1 -0
  279. package/dist/index.cjs297.js +2 -0
  280. package/dist/index.cjs297.js.map +1 -0
  281. package/dist/index.cjs298.js +2 -0
  282. package/dist/index.cjs298.js.map +1 -0
  283. package/dist/index.cjs299.js +2 -0
  284. package/dist/index.cjs299.js.map +1 -0
  285. package/dist/index.cjs300.js +2 -0
  286. package/dist/index.cjs300.js.map +1 -0
  287. package/dist/index.cjs301.js +2 -0
  288. package/dist/index.cjs301.js.map +1 -0
  289. package/dist/index.cjs302.js +2 -0
  290. package/dist/index.cjs302.js.map +1 -0
  291. package/dist/index.cjs303.js +2 -0
  292. package/dist/index.cjs303.js.map +1 -0
  293. package/dist/index.cjs304.js +2 -0
  294. package/dist/index.cjs304.js.map +1 -0
  295. package/dist/index.cjs305.js +2 -0
  296. package/dist/index.cjs305.js.map +1 -0
  297. package/dist/index.cjs306.js +2 -0
  298. package/dist/index.cjs306.js.map +1 -0
  299. package/dist/index.cjs307.js +2 -0
  300. package/dist/index.cjs307.js.map +1 -0
  301. package/dist/index.cjs308.js +47 -0
  302. package/dist/index.cjs308.js.map +1 -0
  303. package/dist/index.cjs309.js +212 -0
  304. package/dist/index.cjs309.js.map +1 -0
  305. package/dist/index.cjs310.js +62 -0
  306. package/dist/index.cjs310.js.map +1 -0
  307. package/dist/index.cjs311.js +60 -0
  308. package/dist/index.cjs311.js.map +1 -0
  309. package/dist/index.cjs312.js +46 -0
  310. package/dist/index.cjs312.js.map +1 -0
  311. package/dist/index.cjs313.js +52 -0
  312. package/dist/index.cjs313.js.map +1 -0
  313. package/dist/index.cjs314.js +308 -0
  314. package/dist/index.cjs314.js.map +1 -0
  315. package/dist/index.cjs315.js +293 -0
  316. package/dist/index.cjs315.js.map +1 -0
  317. package/dist/index.cjs316.js +6 -0
  318. package/dist/index.cjs316.js.map +1 -0
  319. package/dist/index.cjs317.js +2 -0
  320. package/dist/index.cjs317.js.map +1 -0
  321. package/dist/index.cjs318.js +2 -0
  322. package/dist/index.cjs318.js.map +1 -0
  323. package/dist/index.cjs319.js +2 -0
  324. package/dist/index.cjs319.js.map +1 -0
  325. package/dist/index.cjs32.js +1 -1
  326. package/dist/index.cjs320.js +2 -0
  327. package/dist/index.cjs320.js.map +1 -0
  328. package/dist/index.cjs321.js +2 -0
  329. package/dist/index.cjs321.js.map +1 -0
  330. package/dist/index.cjs322.js +2 -0
  331. package/dist/index.cjs322.js.map +1 -0
  332. package/dist/index.cjs323.js +2 -0
  333. package/dist/index.cjs323.js.map +1 -0
  334. package/dist/index.cjs324.js +2 -0
  335. package/dist/index.cjs324.js.map +1 -0
  336. package/dist/index.cjs325.js +2 -0
  337. package/dist/index.cjs325.js.map +1 -0
  338. package/dist/index.cjs326.js +2 -0
  339. package/dist/index.cjs326.js.map +1 -0
  340. package/dist/index.cjs327.js +2 -0
  341. package/dist/index.cjs327.js.map +1 -0
  342. package/dist/index.cjs328.js +2 -0
  343. package/dist/index.cjs328.js.map +1 -0
  344. package/dist/index.cjs329.js +2 -0
  345. package/dist/index.cjs329.js.map +1 -0
  346. package/dist/index.cjs330.js +2 -0
  347. package/dist/index.cjs330.js.map +1 -0
  348. package/dist/index.cjs331.js +2 -0
  349. package/dist/index.cjs331.js.map +1 -0
  350. package/dist/index.cjs332.js +2 -0
  351. package/dist/index.cjs332.js.map +1 -0
  352. package/dist/index.cjs333.js +2 -0
  353. package/dist/index.cjs333.js.map +1 -0
  354. package/dist/index.cjs334.js +5 -0
  355. package/dist/index.cjs334.js.map +1 -0
  356. package/dist/index.cjs335.js +6 -0
  357. package/dist/index.cjs335.js.map +1 -0
  358. package/dist/index.cjs336.js +2 -0
  359. package/dist/index.cjs336.js.map +1 -0
  360. package/dist/index.cjs337.js +2 -0
  361. package/dist/index.cjs337.js.map +1 -0
  362. package/dist/index.cjs338.js +2 -0
  363. package/dist/index.cjs338.js.map +1 -0
  364. package/dist/index.cjs339.js +2 -0
  365. package/dist/index.cjs339.js.map +1 -0
  366. package/dist/index.cjs34.js +1 -1
  367. package/dist/index.cjs340.js +2 -0
  368. package/dist/index.cjs340.js.map +1 -0
  369. package/dist/index.cjs341.js +2 -0
  370. package/dist/index.cjs341.js.map +1 -0
  371. package/dist/index.cjs342.js +2 -0
  372. package/dist/index.cjs342.js.map +1 -0
  373. package/dist/index.cjs343.js +2 -0
  374. package/dist/index.cjs343.js.map +1 -0
  375. package/dist/index.cjs344.js +2 -0
  376. package/dist/index.cjs344.js.map +1 -0
  377. package/dist/index.cjs345.js +2 -0
  378. package/dist/index.cjs345.js.map +1 -0
  379. package/dist/index.cjs346.js +2 -0
  380. package/dist/index.cjs346.js.map +1 -0
  381. package/dist/index.cjs347.js +2 -0
  382. package/dist/index.cjs347.js.map +1 -0
  383. package/dist/index.cjs348.js +5 -0
  384. package/dist/index.cjs348.js.map +1 -0
  385. package/dist/index.cjs349.js +2 -0
  386. package/dist/index.cjs349.js.map +1 -0
  387. package/dist/index.cjs35.js +1 -1
  388. package/dist/index.cjs350.js +2 -0
  389. package/dist/index.cjs350.js.map +1 -0
  390. package/dist/index.cjs351.js +2 -0
  391. package/dist/index.cjs351.js.map +1 -0
  392. package/dist/index.cjs352.js +2 -0
  393. package/dist/index.cjs352.js.map +1 -0
  394. package/dist/index.cjs353.js +2 -0
  395. package/dist/index.cjs353.js.map +1 -0
  396. package/dist/index.cjs354.js +2 -0
  397. package/dist/index.cjs354.js.map +1 -0
  398. package/dist/index.cjs355.js +2 -0
  399. package/dist/index.cjs355.js.map +1 -0
  400. package/dist/index.cjs356.js +2 -0
  401. package/dist/index.cjs356.js.map +1 -0
  402. package/dist/index.cjs357.js +2 -0
  403. package/dist/index.cjs357.js.map +1 -0
  404. package/dist/index.cjs358.js +2 -0
  405. package/dist/index.cjs358.js.map +1 -0
  406. package/dist/index.cjs359.js +2 -0
  407. package/dist/index.cjs359.js.map +1 -0
  408. package/dist/index.cjs360.js +2 -0
  409. package/dist/index.cjs360.js.map +1 -0
  410. package/dist/index.cjs361.js +2 -0
  411. package/dist/index.cjs361.js.map +1 -0
  412. package/dist/index.cjs362.js +2 -0
  413. package/dist/index.cjs362.js.map +1 -0
  414. package/dist/index.cjs363.js +2 -0
  415. package/dist/index.cjs363.js.map +1 -0
  416. package/dist/index.cjs364.js +2 -0
  417. package/dist/index.cjs364.js.map +1 -0
  418. package/dist/index.cjs365.js +2 -0
  419. package/dist/index.cjs365.js.map +1 -0
  420. package/dist/index.cjs366.js +2 -0
  421. package/dist/index.cjs366.js.map +1 -0
  422. package/dist/index.cjs367.js +2 -0
  423. package/dist/index.cjs367.js.map +1 -0
  424. package/dist/index.cjs368.js +2 -0
  425. package/dist/index.cjs368.js.map +1 -0
  426. package/dist/index.cjs369.js +2 -0
  427. package/dist/index.cjs369.js.map +1 -0
  428. package/dist/index.cjs370.js +2 -0
  429. package/dist/index.cjs370.js.map +1 -0
  430. package/dist/index.cjs371.js +2 -0
  431. package/dist/index.cjs371.js.map +1 -0
  432. package/dist/index.cjs372.js +2 -0
  433. package/dist/index.cjs372.js.map +1 -0
  434. package/dist/index.cjs373.js +2 -0
  435. package/dist/index.cjs373.js.map +1 -0
  436. package/dist/index.cjs374.js +2 -0
  437. package/dist/index.cjs374.js.map +1 -0
  438. package/dist/index.cjs375.js +2 -0
  439. package/dist/index.cjs375.js.map +1 -0
  440. package/dist/index.cjs376.js +2 -0
  441. package/dist/index.cjs376.js.map +1 -0
  442. package/dist/index.cjs377.js +2 -0
  443. package/dist/index.cjs377.js.map +1 -0
  444. package/dist/index.cjs378.js +2 -0
  445. package/dist/index.cjs378.js.map +1 -0
  446. package/dist/index.cjs379.js +2 -0
  447. package/dist/index.cjs379.js.map +1 -0
  448. package/dist/index.cjs38.js +1 -1
  449. package/dist/index.cjs380.js +2 -0
  450. package/dist/index.cjs380.js.map +1 -0
  451. package/dist/index.cjs381.js +2 -0
  452. package/dist/index.cjs381.js.map +1 -0
  453. package/dist/index.cjs382.js +2 -0
  454. package/dist/index.cjs382.js.map +1 -0
  455. package/dist/index.cjs383.js +2 -0
  456. package/dist/index.cjs383.js.map +1 -0
  457. package/dist/index.cjs384.js +2 -0
  458. package/dist/index.cjs384.js.map +1 -0
  459. package/dist/index.cjs385.js +2 -0
  460. package/dist/index.cjs385.js.map +1 -0
  461. package/dist/index.cjs386.js +2 -0
  462. package/dist/index.cjs386.js.map +1 -0
  463. package/dist/index.cjs387.js +2 -0
  464. package/dist/index.cjs387.js.map +1 -0
  465. package/dist/index.cjs388.js +2 -0
  466. package/dist/index.cjs388.js.map +1 -0
  467. package/dist/index.cjs389.js +2 -0
  468. package/dist/index.cjs389.js.map +1 -0
  469. package/dist/index.cjs39.js +1 -1
  470. package/dist/index.cjs390.js +2 -0
  471. package/dist/index.cjs390.js.map +1 -0
  472. package/dist/index.cjs391.js +2 -0
  473. package/dist/index.cjs391.js.map +1 -0
  474. package/dist/index.cjs392.js +2 -0
  475. package/dist/index.cjs392.js.map +1 -0
  476. package/dist/index.cjs393.js +2 -0
  477. package/dist/index.cjs393.js.map +1 -0
  478. package/dist/index.cjs394.js +2 -0
  479. package/dist/index.cjs394.js.map +1 -0
  480. package/dist/index.cjs395.js +2 -0
  481. package/dist/index.cjs395.js.map +1 -0
  482. package/dist/index.cjs396.js +2 -0
  483. package/dist/index.cjs396.js.map +1 -0
  484. package/dist/index.cjs397.js +2 -0
  485. package/dist/index.cjs397.js.map +1 -0
  486. package/dist/index.cjs398.js +2 -0
  487. package/dist/index.cjs398.js.map +1 -0
  488. package/dist/index.cjs399.js +2 -0
  489. package/dist/index.cjs399.js.map +1 -0
  490. package/dist/index.cjs40.js +1 -1
  491. package/dist/index.cjs400.js +2 -0
  492. package/dist/index.cjs400.js.map +1 -0
  493. package/dist/index.cjs401.js +2 -0
  494. package/dist/index.cjs401.js.map +1 -0
  495. package/dist/index.cjs402.js +2 -0
  496. package/dist/index.cjs402.js.map +1 -0
  497. package/dist/index.cjs403.js +2 -0
  498. package/dist/index.cjs403.js.map +1 -0
  499. package/dist/index.cjs404.js +2 -0
  500. package/dist/index.cjs404.js.map +1 -0
  501. package/dist/index.cjs405.js +2 -0
  502. package/dist/index.cjs405.js.map +1 -0
  503. package/dist/index.cjs406.js +2 -0
  504. package/dist/index.cjs406.js.map +1 -0
  505. package/dist/index.cjs407.js +2 -0
  506. package/dist/index.cjs407.js.map +1 -0
  507. package/dist/index.cjs408.js +2 -0
  508. package/dist/index.cjs408.js.map +1 -0
  509. package/dist/index.cjs409.js +2 -0
  510. package/dist/index.cjs409.js.map +1 -0
  511. package/dist/index.cjs410.js +2 -0
  512. package/dist/index.cjs410.js.map +1 -0
  513. package/dist/index.cjs411.js +2 -0
  514. package/dist/index.cjs411.js.map +1 -0
  515. package/dist/index.cjs412.js +2 -0
  516. package/dist/index.cjs412.js.map +1 -0
  517. package/dist/index.cjs413.js +2 -0
  518. package/dist/index.cjs413.js.map +1 -0
  519. package/dist/index.cjs414.js +2 -0
  520. package/dist/index.cjs414.js.map +1 -0
  521. package/dist/index.cjs415.js +2 -0
  522. package/dist/index.cjs415.js.map +1 -0
  523. package/dist/index.cjs416.js +2 -0
  524. package/dist/index.cjs416.js.map +1 -0
  525. package/dist/index.cjs417.js +2 -0
  526. package/dist/index.cjs417.js.map +1 -0
  527. package/dist/index.cjs418.js +2 -0
  528. package/dist/index.cjs418.js.map +1 -0
  529. package/dist/index.cjs419.js +2 -0
  530. package/dist/index.cjs419.js.map +1 -0
  531. package/dist/index.cjs42.js +1 -1
  532. package/dist/index.cjs420.js +2 -0
  533. package/dist/index.cjs420.js.map +1 -0
  534. package/dist/index.cjs421.js +2 -0
  535. package/dist/index.cjs421.js.map +1 -0
  536. package/dist/index.cjs422.js +2 -0
  537. package/dist/index.cjs422.js.map +1 -0
  538. package/dist/index.cjs423.js +2 -0
  539. package/dist/index.cjs423.js.map +1 -0
  540. package/dist/index.cjs424.js +2 -0
  541. package/dist/index.cjs424.js.map +1 -0
  542. package/dist/index.cjs425.js +2 -0
  543. package/dist/index.cjs425.js.map +1 -0
  544. package/dist/index.cjs426.js +2 -0
  545. package/dist/index.cjs426.js.map +1 -0
  546. package/dist/index.cjs427.js +2 -0
  547. package/dist/index.cjs427.js.map +1 -0
  548. package/dist/index.cjs428.js +2 -0
  549. package/dist/index.cjs428.js.map +1 -0
  550. package/dist/index.cjs429.js +2 -0
  551. package/dist/index.cjs429.js.map +1 -0
  552. package/dist/index.cjs43.js +1 -1
  553. package/dist/index.cjs430.js +2 -0
  554. package/dist/index.cjs430.js.map +1 -0
  555. package/dist/index.cjs431.js +2 -0
  556. package/dist/index.cjs431.js.map +1 -0
  557. package/dist/index.cjs432.js +2 -0
  558. package/dist/index.cjs432.js.map +1 -0
  559. package/dist/index.cjs433.js +2 -0
  560. package/dist/index.cjs433.js.map +1 -0
  561. package/dist/index.cjs434.js +2 -0
  562. package/dist/index.cjs434.js.map +1 -0
  563. package/dist/index.cjs435.js +2 -0
  564. package/dist/index.cjs435.js.map +1 -0
  565. package/dist/index.cjs436.js +2 -0
  566. package/dist/index.cjs436.js.map +1 -0
  567. package/dist/index.cjs437.js +2 -0
  568. package/dist/index.cjs437.js.map +1 -0
  569. package/dist/index.cjs438.js +2 -0
  570. package/dist/index.cjs438.js.map +1 -0
  571. package/dist/index.cjs439.js +2 -0
  572. package/dist/index.cjs439.js.map +1 -0
  573. package/dist/index.cjs44.js +1 -1
  574. package/dist/index.cjs440.js +2 -0
  575. package/dist/index.cjs440.js.map +1 -0
  576. package/dist/index.cjs441.js +2 -0
  577. package/dist/index.cjs441.js.map +1 -0
  578. package/dist/index.cjs442.js +2 -0
  579. package/dist/index.cjs442.js.map +1 -0
  580. package/dist/index.cjs443.js +2 -0
  581. package/dist/index.cjs443.js.map +1 -0
  582. package/dist/index.cjs444.js +2 -0
  583. package/dist/index.cjs444.js.map +1 -0
  584. package/dist/index.cjs445.js +2 -0
  585. package/dist/index.cjs445.js.map +1 -0
  586. package/dist/index.cjs446.js +2 -0
  587. package/dist/index.cjs446.js.map +1 -0
  588. package/dist/index.cjs447.js +2 -0
  589. package/dist/index.cjs447.js.map +1 -0
  590. package/dist/index.cjs448.js +2 -0
  591. package/dist/index.cjs448.js.map +1 -0
  592. package/dist/index.cjs449.js +2 -0
  593. package/dist/index.cjs449.js.map +1 -0
  594. package/dist/index.cjs450.js +2 -0
  595. package/dist/index.cjs450.js.map +1 -0
  596. package/dist/index.cjs451.js +2 -0
  597. package/dist/index.cjs451.js.map +1 -0
  598. package/dist/index.cjs452.js +2 -0
  599. package/dist/index.cjs452.js.map +1 -0
  600. package/dist/index.cjs453.js +2 -0
  601. package/dist/index.cjs453.js.map +1 -0
  602. package/dist/index.cjs454.js +2 -0
  603. package/dist/index.cjs454.js.map +1 -0
  604. package/dist/index.cjs455.js +2 -0
  605. package/dist/index.cjs455.js.map +1 -0
  606. package/dist/index.cjs456.js +2 -0
  607. package/dist/index.cjs456.js.map +1 -0
  608. package/dist/index.cjs457.js +2 -0
  609. package/dist/index.cjs457.js.map +1 -0
  610. package/dist/index.cjs458.js +2 -0
  611. package/dist/index.cjs458.js.map +1 -0
  612. package/dist/index.cjs459.js +2 -0
  613. package/dist/index.cjs459.js.map +1 -0
  614. package/dist/index.cjs46.js +1 -1
  615. package/dist/index.cjs460.js +2 -0
  616. package/dist/index.cjs460.js.map +1 -0
  617. package/dist/index.cjs461.js +2 -0
  618. package/dist/index.cjs461.js.map +1 -0
  619. package/dist/index.cjs462.js +2 -0
  620. package/dist/index.cjs462.js.map +1 -0
  621. package/dist/index.cjs463.js +2 -0
  622. package/dist/index.cjs463.js.map +1 -0
  623. package/dist/index.cjs464.js +2 -0
  624. package/dist/index.cjs464.js.map +1 -0
  625. package/dist/index.cjs465.js +2 -0
  626. package/dist/index.cjs465.js.map +1 -0
  627. package/dist/index.cjs466.js +2 -0
  628. package/dist/index.cjs466.js.map +1 -0
  629. package/dist/index.cjs467.js +2 -0
  630. package/dist/index.cjs467.js.map +1 -0
  631. package/dist/index.cjs468.js +2 -0
  632. package/dist/index.cjs468.js.map +1 -0
  633. package/dist/index.cjs469.js +2 -0
  634. package/dist/index.cjs469.js.map +1 -0
  635. package/dist/index.cjs47.js +1 -1
  636. package/dist/index.cjs470.js +2 -0
  637. package/dist/index.cjs470.js.map +1 -0
  638. package/dist/index.cjs471.js +2 -0
  639. package/dist/index.cjs471.js.map +1 -0
  640. package/dist/index.cjs472.js +2 -0
  641. package/dist/index.cjs472.js.map +1 -0
  642. package/dist/index.cjs473.js +2 -0
  643. package/dist/index.cjs473.js.map +1 -0
  644. package/dist/index.cjs474.js +2 -0
  645. package/dist/index.cjs474.js.map +1 -0
  646. package/dist/index.cjs475.js +2 -0
  647. package/dist/index.cjs475.js.map +1 -0
  648. package/dist/index.cjs476.js +2 -0
  649. package/dist/index.cjs476.js.map +1 -0
  650. package/dist/index.cjs477.js +2 -0
  651. package/dist/index.cjs477.js.map +1 -0
  652. package/dist/index.cjs478.js +2 -0
  653. package/dist/index.cjs478.js.map +1 -0
  654. package/dist/index.cjs479.js +2 -0
  655. package/dist/index.cjs479.js.map +1 -0
  656. package/dist/index.cjs48.js +1 -1
  657. package/dist/index.cjs480.js +2 -0
  658. package/dist/index.cjs480.js.map +1 -0
  659. package/dist/index.cjs481.js +2 -0
  660. package/dist/index.cjs481.js.map +1 -0
  661. package/dist/index.cjs482.js +2 -0
  662. package/dist/index.cjs482.js.map +1 -0
  663. package/dist/index.cjs483.js +2 -0
  664. package/dist/index.cjs483.js.map +1 -0
  665. package/dist/index.cjs484.js +2 -0
  666. package/dist/index.cjs484.js.map +1 -0
  667. package/dist/index.cjs485.js +2 -0
  668. package/dist/index.cjs485.js.map +1 -0
  669. package/dist/index.cjs486.js +2 -0
  670. package/dist/index.cjs486.js.map +1 -0
  671. package/dist/index.cjs487.js +2 -0
  672. package/dist/index.cjs487.js.map +1 -0
  673. package/dist/index.cjs488.js +2 -0
  674. package/dist/index.cjs488.js.map +1 -0
  675. package/dist/index.cjs489.js +2 -0
  676. package/dist/index.cjs489.js.map +1 -0
  677. package/dist/index.cjs490.js +2 -0
  678. package/dist/index.cjs490.js.map +1 -0
  679. package/dist/index.cjs491.js +2 -0
  680. package/dist/index.cjs491.js.map +1 -0
  681. package/dist/index.cjs492.js +2 -0
  682. package/dist/index.cjs492.js.map +1 -0
  683. package/dist/index.cjs493.js +2 -0
  684. package/dist/index.cjs493.js.map +1 -0
  685. package/dist/index.cjs494.js +2 -0
  686. package/dist/index.cjs494.js.map +1 -0
  687. package/dist/index.cjs495.js +2 -0
  688. package/dist/index.cjs495.js.map +1 -0
  689. package/dist/index.cjs496.js +2 -0
  690. package/dist/index.cjs496.js.map +1 -0
  691. package/dist/index.cjs497.js +2 -0
  692. package/dist/index.cjs497.js.map +1 -0
  693. package/dist/index.cjs498.js +2 -0
  694. package/dist/index.cjs498.js.map +1 -0
  695. package/dist/index.cjs499.js +2 -0
  696. package/dist/index.cjs499.js.map +1 -0
  697. package/dist/index.cjs50.js +1 -1
  698. package/dist/index.cjs500.js +2 -0
  699. package/dist/index.cjs500.js.map +1 -0
  700. package/dist/index.cjs501.js +2 -0
  701. package/dist/index.cjs501.js.map +1 -0
  702. package/dist/index.cjs502.js +2 -0
  703. package/dist/index.cjs502.js.map +1 -0
  704. package/dist/index.cjs503.js +2 -0
  705. package/dist/index.cjs503.js.map +1 -0
  706. package/dist/index.cjs504.js +2 -0
  707. package/dist/index.cjs504.js.map +1 -0
  708. package/dist/index.cjs505.js +2 -0
  709. package/dist/index.cjs505.js.map +1 -0
  710. package/dist/index.cjs506.js +2 -0
  711. package/dist/index.cjs506.js.map +1 -0
  712. package/dist/index.cjs507.js +2 -0
  713. package/dist/index.cjs507.js.map +1 -0
  714. package/dist/index.cjs508.js +2 -0
  715. package/dist/index.cjs508.js.map +1 -0
  716. package/dist/index.cjs509.js +2 -0
  717. package/dist/index.cjs509.js.map +1 -0
  718. package/dist/index.cjs51.js +1 -1
  719. package/dist/index.cjs510.js +2 -0
  720. package/dist/index.cjs510.js.map +1 -0
  721. package/dist/index.cjs511.js +2 -0
  722. package/dist/index.cjs511.js.map +1 -0
  723. package/dist/index.cjs512.js +2 -0
  724. package/dist/index.cjs512.js.map +1 -0
  725. package/dist/index.cjs513.js +2 -0
  726. package/dist/index.cjs513.js.map +1 -0
  727. package/dist/index.cjs514.js +2 -0
  728. package/dist/index.cjs514.js.map +1 -0
  729. package/dist/index.cjs515.js +2 -0
  730. package/dist/index.cjs515.js.map +1 -0
  731. package/dist/index.cjs516.js +2 -0
  732. package/dist/index.cjs516.js.map +1 -0
  733. package/dist/index.cjs517.js +2 -0
  734. package/dist/index.cjs517.js.map +1 -0
  735. package/dist/index.cjs518.js +2 -0
  736. package/dist/index.cjs518.js.map +1 -0
  737. package/dist/index.cjs519.js +2 -0
  738. package/dist/index.cjs519.js.map +1 -0
  739. package/dist/index.cjs52.js +1 -1
  740. package/dist/index.cjs520.js +2 -0
  741. package/dist/index.cjs520.js.map +1 -0
  742. package/dist/index.cjs521.js +2 -0
  743. package/dist/index.cjs521.js.map +1 -0
  744. package/dist/index.cjs522.js +2 -0
  745. package/dist/index.cjs522.js.map +1 -0
  746. package/dist/index.cjs523.js +2 -0
  747. package/dist/index.cjs523.js.map +1 -0
  748. package/dist/index.cjs524.js +2 -0
  749. package/dist/index.cjs524.js.map +1 -0
  750. package/dist/index.cjs525.js +2 -0
  751. package/dist/index.cjs525.js.map +1 -0
  752. package/dist/index.cjs526.js +2 -0
  753. package/dist/index.cjs526.js.map +1 -0
  754. package/dist/index.cjs527.js +2 -0
  755. package/dist/index.cjs527.js.map +1 -0
  756. package/dist/index.cjs528.js +2 -0
  757. package/dist/index.cjs528.js.map +1 -0
  758. package/dist/index.cjs529.js +2 -0
  759. package/dist/index.cjs529.js.map +1 -0
  760. package/dist/index.cjs530.js +2 -0
  761. package/dist/index.cjs530.js.map +1 -0
  762. package/dist/index.cjs531.js +2 -0
  763. package/dist/index.cjs531.js.map +1 -0
  764. package/dist/index.cjs532.js +2 -0
  765. package/dist/index.cjs532.js.map +1 -0
  766. package/dist/index.cjs533.js +2 -0
  767. package/dist/index.cjs533.js.map +1 -0
  768. package/dist/index.cjs534.js +2 -0
  769. package/dist/index.cjs534.js.map +1 -0
  770. package/dist/index.cjs535.js +2 -0
  771. package/dist/index.cjs535.js.map +1 -0
  772. package/dist/index.cjs536.js +2 -0
  773. package/dist/index.cjs536.js.map +1 -0
  774. package/dist/index.cjs537.js +2 -0
  775. package/dist/index.cjs537.js.map +1 -0
  776. package/dist/index.cjs538.js +2 -0
  777. package/dist/index.cjs538.js.map +1 -0
  778. package/dist/index.cjs539.js +2 -0
  779. package/dist/index.cjs539.js.map +1 -0
  780. package/dist/index.cjs540.js +2 -0
  781. package/dist/index.cjs540.js.map +1 -0
  782. package/dist/index.cjs541.js +2 -0
  783. package/dist/index.cjs541.js.map +1 -0
  784. package/dist/index.cjs542.js +2 -0
  785. package/dist/index.cjs542.js.map +1 -0
  786. package/dist/index.cjs543.js +2 -0
  787. package/dist/index.cjs543.js.map +1 -0
  788. package/dist/index.cjs544.js +2 -0
  789. package/dist/index.cjs544.js.map +1 -0
  790. package/dist/index.cjs545.js +2 -0
  791. package/dist/index.cjs545.js.map +1 -0
  792. package/dist/index.cjs546.js +2 -0
  793. package/dist/index.cjs546.js.map +1 -0
  794. package/dist/index.cjs547.js +2 -0
  795. package/dist/index.cjs547.js.map +1 -0
  796. package/dist/index.cjs548.js +2 -0
  797. package/dist/index.cjs548.js.map +1 -0
  798. package/dist/index.cjs549.js +2 -0
  799. package/dist/index.cjs549.js.map +1 -0
  800. package/dist/index.cjs550.js +2 -0
  801. package/dist/index.cjs550.js.map +1 -0
  802. package/dist/index.cjs551.js +2 -0
  803. package/dist/index.cjs551.js.map +1 -0
  804. package/dist/index.cjs552.js +2 -0
  805. package/dist/index.cjs552.js.map +1 -0
  806. package/dist/index.cjs553.js +2 -0
  807. package/dist/index.cjs553.js.map +1 -0
  808. package/dist/index.cjs554.js +2 -0
  809. package/dist/index.cjs554.js.map +1 -0
  810. package/dist/index.cjs555.js +2 -0
  811. package/dist/index.cjs555.js.map +1 -0
  812. package/dist/index.cjs556.js +2 -0
  813. package/dist/index.cjs556.js.map +1 -0
  814. package/dist/index.cjs557.js +2 -0
  815. package/dist/index.cjs557.js.map +1 -0
  816. package/dist/index.cjs558.js +2 -0
  817. package/dist/index.cjs558.js.map +1 -0
  818. package/dist/index.cjs559.js +2 -0
  819. package/dist/index.cjs559.js.map +1 -0
  820. package/dist/index.cjs56.js +1 -1
  821. package/dist/index.cjs560.js +2 -0
  822. package/dist/index.cjs560.js.map +1 -0
  823. package/dist/index.cjs561.js +9 -0
  824. package/dist/index.cjs561.js.map +1 -0
  825. package/dist/index.cjs562.js +2 -0
  826. package/dist/index.cjs562.js.map +1 -0
  827. package/dist/index.cjs563.js +2 -0
  828. package/dist/index.cjs563.js.map +1 -0
  829. package/dist/index.cjs564.js +2 -0
  830. package/dist/index.cjs564.js.map +1 -0
  831. package/dist/index.cjs565.js +2 -0
  832. package/dist/index.cjs565.js.map +1 -0
  833. package/dist/index.cjs566.js +2 -0
  834. package/dist/index.cjs566.js.map +1 -0
  835. package/dist/index.cjs567.js +2 -0
  836. package/dist/index.cjs567.js.map +1 -0
  837. package/dist/index.cjs568.js +2 -0
  838. package/dist/index.cjs568.js.map +1 -0
  839. package/dist/index.cjs569.js +2 -0
  840. package/dist/index.cjs569.js.map +1 -0
  841. package/dist/index.cjs57.js +1 -1
  842. package/dist/index.cjs570.js +2 -0
  843. package/dist/index.cjs570.js.map +1 -0
  844. package/dist/index.cjs571.js +2 -0
  845. package/dist/index.cjs571.js.map +1 -0
  846. package/dist/index.cjs572.js +2 -0
  847. package/dist/index.cjs572.js.map +1 -0
  848. package/dist/index.cjs573.js +2 -0
  849. package/dist/index.cjs573.js.map +1 -0
  850. package/dist/index.cjs574.js +2 -0
  851. package/dist/index.cjs574.js.map +1 -0
  852. package/dist/index.cjs575.js +2 -0
  853. package/dist/index.cjs575.js.map +1 -0
  854. package/dist/index.cjs576.js +2 -0
  855. package/dist/index.cjs576.js.map +1 -0
  856. package/dist/index.cjs577.js +2 -0
  857. package/dist/index.cjs577.js.map +1 -0
  858. package/dist/index.cjs578.js +2 -0
  859. package/dist/index.cjs578.js.map +1 -0
  860. package/dist/index.cjs579.js +2 -0
  861. package/dist/index.cjs579.js.map +1 -0
  862. package/dist/index.cjs58.js +1 -1
  863. package/dist/index.cjs580.js +2 -0
  864. package/dist/index.cjs580.js.map +1 -0
  865. package/dist/index.cjs581.js +2 -0
  866. package/dist/index.cjs581.js.map +1 -0
  867. package/dist/index.cjs582.js +2 -0
  868. package/dist/index.cjs582.js.map +1 -0
  869. package/dist/index.cjs583.js +2 -0
  870. package/dist/index.cjs583.js.map +1 -0
  871. package/dist/index.cjs584.js +2 -0
  872. package/dist/index.cjs584.js.map +1 -0
  873. package/dist/index.cjs585.js +2 -0
  874. package/dist/index.cjs585.js.map +1 -0
  875. package/dist/index.cjs586.js +2 -0
  876. package/dist/index.cjs586.js.map +1 -0
  877. package/dist/index.cjs587.js +2 -0
  878. package/dist/index.cjs587.js.map +1 -0
  879. package/dist/index.cjs588.js +2 -0
  880. package/dist/index.cjs588.js.map +1 -0
  881. package/dist/index.cjs589.js +2 -0
  882. package/dist/index.cjs589.js.map +1 -0
  883. package/dist/index.cjs590.js +2 -0
  884. package/dist/index.cjs590.js.map +1 -0
  885. package/dist/index.cjs591.js +2 -0
  886. package/dist/index.cjs591.js.map +1 -0
  887. package/dist/index.cjs592.js +2 -0
  888. package/dist/index.cjs592.js.map +1 -0
  889. package/dist/index.cjs593.js +2 -0
  890. package/dist/index.cjs593.js.map +1 -0
  891. package/dist/index.cjs594.js +2 -0
  892. package/dist/index.cjs594.js.map +1 -0
  893. package/dist/index.cjs595.js +2 -0
  894. package/dist/index.cjs595.js.map +1 -0
  895. package/dist/index.cjs596.js +2 -0
  896. package/dist/index.cjs596.js.map +1 -0
  897. package/dist/index.cjs597.js +2 -0
  898. package/dist/index.cjs597.js.map +1 -0
  899. package/dist/index.cjs598.js +2 -0
  900. package/dist/index.cjs598.js.map +1 -0
  901. package/dist/index.cjs599.js +2 -0
  902. package/dist/index.cjs599.js.map +1 -0
  903. package/dist/index.cjs60.js +1 -1
  904. package/dist/index.cjs600.js +2 -0
  905. package/dist/index.cjs600.js.map +1 -0
  906. package/dist/index.cjs601.js +2 -0
  907. package/dist/index.cjs601.js.map +1 -0
  908. package/dist/index.cjs602.js +2 -0
  909. package/dist/index.cjs602.js.map +1 -0
  910. package/dist/index.cjs603.js +2 -0
  911. package/dist/index.cjs603.js.map +1 -0
  912. package/dist/index.cjs604.js +4 -0
  913. package/dist/index.cjs604.js.map +1 -0
  914. package/dist/index.cjs605.js +2 -0
  915. package/dist/index.cjs605.js.map +1 -0
  916. package/dist/index.cjs606.js +2 -0
  917. package/dist/index.cjs606.js.map +1 -0
  918. package/dist/index.cjs607.js +2 -0
  919. package/dist/index.cjs607.js.map +1 -0
  920. package/dist/index.cjs608.js +2 -0
  921. package/dist/index.cjs608.js.map +1 -0
  922. package/dist/index.cjs609.js +2 -0
  923. package/dist/index.cjs609.js.map +1 -0
  924. package/dist/index.cjs61.js +1 -1
  925. package/dist/index.cjs610.js +61 -0
  926. package/dist/index.cjs610.js.map +1 -0
  927. package/dist/index.cjs611.js +2 -0
  928. package/dist/index.cjs611.js.map +1 -0
  929. package/dist/index.cjs612.js +2 -0
  930. package/dist/index.cjs612.js.map +1 -0
  931. package/dist/index.cjs613.js +2 -0
  932. package/dist/index.cjs613.js.map +1 -0
  933. package/dist/index.cjs614.js +2 -0
  934. package/dist/index.cjs614.js.map +1 -0
  935. package/dist/index.cjs615.js +2 -0
  936. package/dist/index.cjs615.js.map +1 -0
  937. package/dist/index.cjs616.js +2 -0
  938. package/dist/index.cjs616.js.map +1 -0
  939. package/dist/index.cjs617.js +2 -0
  940. package/dist/index.cjs617.js.map +1 -0
  941. package/dist/index.cjs618.js +2 -0
  942. package/dist/index.cjs618.js.map +1 -0
  943. package/dist/index.cjs619.js +2 -0
  944. package/dist/index.cjs619.js.map +1 -0
  945. package/dist/index.cjs620.js +2 -0
  946. package/dist/index.cjs620.js.map +1 -0
  947. package/dist/index.cjs621.js +2 -0
  948. package/dist/index.cjs621.js.map +1 -0
  949. package/dist/index.cjs622.js +2 -0
  950. package/dist/index.cjs622.js.map +1 -0
  951. package/dist/index.cjs623.js +2 -0
  952. package/dist/index.cjs623.js.map +1 -0
  953. package/dist/index.cjs624.js +2 -0
  954. package/dist/index.cjs624.js.map +1 -0
  955. package/dist/index.cjs625.js +2 -0
  956. package/dist/index.cjs625.js.map +1 -0
  957. package/dist/index.cjs626.js +2 -0
  958. package/dist/index.cjs626.js.map +1 -0
  959. package/dist/index.cjs627.js +2 -0
  960. package/dist/index.cjs627.js.map +1 -0
  961. package/dist/index.cjs628.js +4 -0
  962. package/dist/index.cjs628.js.map +1 -0
  963. package/dist/index.cjs629.js +2 -0
  964. package/dist/index.cjs629.js.map +1 -0
  965. package/dist/index.cjs63.js +1 -1
  966. package/dist/index.cjs630.js +2 -0
  967. package/dist/index.cjs630.js.map +1 -0
  968. package/dist/index.cjs631.js +2 -0
  969. package/dist/index.cjs631.js.map +1 -0
  970. package/dist/index.cjs632.js +2 -0
  971. package/dist/index.cjs632.js.map +1 -0
  972. package/dist/index.cjs67.js +1 -1
  973. package/dist/index.cjs67.js.map +1 -1
  974. package/dist/index.cjs68.js +1 -440
  975. package/dist/index.cjs68.js.map +1 -1
  976. package/dist/index.cjs69.js +1 -1
  977. package/dist/index.cjs69.js.map +1 -1
  978. package/dist/index.cjs70.js.map +1 -1
  979. package/dist/index.cjs71.js +1 -1
  980. package/dist/index.cjs71.js.map +1 -1
  981. package/dist/index.cjs72.js +1 -1
  982. package/dist/index.cjs72.js.map +1 -1
  983. package/dist/index.cjs73.js +1 -1
  984. package/dist/index.cjs73.js.map +1 -1
  985. package/dist/index.cjs74.js +1 -1
  986. package/dist/index.cjs74.js.map +1 -1
  987. package/dist/index.cjs75.js +1 -1
  988. package/dist/index.cjs75.js.map +1 -1
  989. package/dist/index.cjs76.js +1 -1
  990. package/dist/index.cjs76.js.map +1 -1
  991. package/dist/index.cjs77.js +1 -1
  992. package/dist/index.cjs77.js.map +1 -1
  993. package/dist/index.cjs78.js.map +1 -1
  994. package/dist/index.cjs79.js +1 -1
  995. package/dist/index.cjs79.js.map +1 -1
  996. package/dist/index.cjs80.js +1 -1
  997. package/dist/index.cjs81.js +9 -1
  998. package/dist/index.cjs81.js.map +1 -1
  999. package/dist/index.cjs82.js +17 -1
  1000. package/dist/index.cjs82.js.map +1 -1
  1001. package/dist/index.cjs83.js +743 -1
  1002. package/dist/index.cjs83.js.map +1 -1
  1003. package/dist/index.cjs84.js +1 -9
  1004. package/dist/index.cjs84.js.map +1 -1
  1005. package/dist/index.cjs85.js +1 -17
  1006. package/dist/index.cjs85.js.map +1 -1
  1007. package/dist/index.cjs86.js +1 -743
  1008. package/dist/index.cjs86.js.map +1 -1
  1009. package/dist/index.cjs87.js +1 -1
  1010. package/dist/index.cjs87.js.map +1 -1
  1011. package/dist/index.cjs88.js +1 -1
  1012. package/dist/index.cjs88.js.map +1 -1
  1013. package/dist/index.cjs89.js +1 -1
  1014. package/dist/index.cjs89.js.map +1 -1
  1015. package/dist/index.cjs93.js +1 -1
  1016. package/dist/index.es100.js +1 -1
  1017. package/dist/index.es101.js +1 -1
  1018. package/dist/index.es102.js +1 -1
  1019. package/dist/index.es103.js +1 -1
  1020. package/dist/index.es104.js +1 -1
  1021. package/dist/index.es105.js +1 -1
  1022. package/dist/index.es106.js +1 -1
  1023. package/dist/index.es107.js +1 -1
  1024. package/dist/index.es108.js +1 -1
  1025. package/dist/index.es111.js +1 -1
  1026. package/dist/index.es112.js +1 -1
  1027. package/dist/index.es114.js +3 -3
  1028. package/dist/index.es115.js +1 -1
  1029. package/dist/index.es116.js +2 -2
  1030. package/dist/index.es117.js +1 -1
  1031. package/dist/index.es122.js +1 -1
  1032. package/dist/index.es123.js +1 -1
  1033. package/dist/index.es124.js +1 -1
  1034. package/dist/index.es125.js +1 -1
  1035. package/dist/index.es128.js +2 -2
  1036. package/dist/index.es129.js +2 -2
  1037. package/dist/index.es13.js +5 -5
  1038. package/dist/index.es130.js +1 -1
  1039. package/dist/index.es134.js +2 -2
  1040. package/dist/index.es137.js +1 -1
  1041. package/dist/index.es141.js +1 -1
  1042. package/dist/index.es144.js +1 -1
  1043. package/dist/index.es15.js +1 -1
  1044. package/dist/index.es152.js +1 -1
  1045. package/dist/index.es153.js +1 -1
  1046. package/dist/index.es154.js +1 -1
  1047. package/dist/index.es155.js +2 -2
  1048. package/dist/index.es156.js +1 -1
  1049. package/dist/index.es157.js +1 -1
  1050. package/dist/index.es158.js +1 -1
  1051. package/dist/index.es16.js +4 -4
  1052. package/dist/index.es160.js +2 -2
  1053. package/dist/index.es161.js +2 -2
  1054. package/dist/index.es162.js +1 -1
  1055. package/dist/index.es163.js +1 -1
  1056. package/dist/index.es164.js +1 -1
  1057. package/dist/index.es165.js +1 -1
  1058. package/dist/index.es166.js +2 -2
  1059. package/dist/index.es167.js +2 -2
  1060. package/dist/index.es168.js +1 -1
  1061. package/dist/index.es17.js +3 -3
  1062. package/dist/index.es171.js +2 -2
  1063. package/dist/index.es172.js +2 -2
  1064. package/dist/index.es174.js +2 -2
  1065. package/dist/index.es175.js +1 -1
  1066. package/dist/index.es176.js +2 -2
  1067. package/dist/index.es177.js +1 -1
  1068. package/dist/index.es178.js +2 -2
  1069. package/dist/index.es179.js +1 -1
  1070. package/dist/index.es18.js +3 -3
  1071. package/dist/index.es180.js +1 -1
  1072. package/dist/index.es181.js +1 -1
  1073. package/dist/index.es187.js +1 -1
  1074. package/dist/index.es188.js +2 -2
  1075. package/dist/index.es189.js +1 -1
  1076. package/dist/index.es19.js +1 -1
  1077. package/dist/index.es190.js +1 -1
  1078. package/dist/index.es191.js +1 -1
  1079. package/dist/index.es194.js +201 -16
  1080. package/dist/index.es194.js.map +1 -1
  1081. package/dist/index.es195.js +28 -145
  1082. package/dist/index.es195.js.map +1 -1
  1083. package/dist/index.es196.js +8 -6
  1084. package/dist/index.es196.js.map +1 -1
  1085. package/dist/index.es197.js +7 -5
  1086. package/dist/index.es197.js.map +1 -1
  1087. package/dist/index.es198.js +7 -3
  1088. package/dist/index.es198.js.map +1 -1
  1089. package/dist/index.es199.js +2 -2
  1090. package/dist/index.es199.js.map +1 -1
  1091. package/dist/index.es20.js +1 -1
  1092. package/dist/index.es200.js +3 -38
  1093. package/dist/index.es200.js.map +1 -1
  1094. package/dist/index.es201.js +38 -3
  1095. package/dist/index.es201.js.map +1 -1
  1096. package/dist/index.es202.js +3 -25
  1097. package/dist/index.es202.js.map +1 -1
  1098. package/dist/index.es203.js +25 -2
  1099. package/dist/index.es203.js.map +1 -1
  1100. package/dist/index.es204.js +1 -2
  1101. package/dist/index.es204.js.map +1 -1
  1102. package/dist/index.es205.js +2 -1
  1103. package/dist/index.es205.js.map +1 -1
  1104. package/dist/index.es206.js +2 -33
  1105. package/dist/index.es206.js.map +1 -1
  1106. package/dist/index.es207.js +31 -13
  1107. package/dist/index.es207.js.map +1 -1
  1108. package/dist/index.es208.js +11 -12
  1109. package/dist/index.es208.js.map +1 -1
  1110. package/dist/index.es209.js +13 -8
  1111. package/dist/index.es209.js.map +1 -1
  1112. package/dist/index.es21.js +1 -1
  1113. package/dist/index.es210.js +8 -242
  1114. package/dist/index.es210.js.map +1 -1
  1115. package/dist/index.es211.js +60 -41
  1116. package/dist/index.es211.js.map +1 -1
  1117. package/dist/index.es212.js +63 -3
  1118. package/dist/index.es212.js.map +1 -1
  1119. package/dist/index.es213.js +36 -10
  1120. package/dist/index.es213.js.map +1 -1
  1121. package/dist/index.es214.js +476 -10
  1122. package/dist/index.es214.js.map +1 -1
  1123. package/dist/index.es215.js +164 -30
  1124. package/dist/index.es215.js.map +1 -1
  1125. package/dist/index.es216.js +71 -13
  1126. package/dist/index.es216.js.map +1 -1
  1127. package/dist/index.es217.js +49 -4
  1128. package/dist/index.es217.js.map +1 -1
  1129. package/dist/index.es218.js +379 -7
  1130. package/dist/index.es218.js.map +1 -1
  1131. package/dist/index.es219.js +18 -6
  1132. package/dist/index.es219.js.map +1 -1
  1133. package/dist/index.es22.js +1 -1
  1134. package/dist/index.es220.js +124 -4
  1135. package/dist/index.es220.js.map +1 -1
  1136. package/dist/index.es221.js +355 -3
  1137. package/dist/index.es221.js.map +1 -1
  1138. package/dist/index.es222.js +218 -3
  1139. package/dist/index.es222.js.map +1 -1
  1140. package/dist/index.es223.js +23 -9
  1141. package/dist/index.es223.js.map +1 -1
  1142. package/dist/index.es224.js +58 -18
  1143. package/dist/index.es224.js.map +1 -1
  1144. package/dist/index.es225.js +104 -19
  1145. package/dist/index.es225.js.map +1 -1
  1146. package/dist/index.es226.js +29 -13
  1147. package/dist/index.es226.js.map +1 -1
  1148. package/dist/index.es227.js +29 -15
  1149. package/dist/index.es227.js.map +1 -1
  1150. package/dist/index.es228.js +96 -5
  1151. package/dist/index.es228.js.map +1 -1
  1152. package/dist/index.es229.js +35 -8
  1153. package/dist/index.es229.js.map +1 -1
  1154. package/dist/index.es23.js +1 -1
  1155. package/dist/index.es230.js +18 -7
  1156. package/dist/index.es230.js.map +1 -1
  1157. package/dist/index.es231.js +52 -21
  1158. package/dist/index.es231.js.map +1 -1
  1159. package/dist/index.es232.js +7 -10
  1160. package/dist/index.es232.js.map +1 -1
  1161. package/dist/index.es233.js +527 -9
  1162. package/dist/index.es233.js.map +1 -1
  1163. package/dist/index.es234.js +26 -4
  1164. package/dist/index.es234.js.map +1 -1
  1165. package/dist/index.es235.js +7 -10
  1166. package/dist/index.es235.js.map +1 -1
  1167. package/dist/index.es236.js +4 -7
  1168. package/dist/index.es236.js.map +1 -1
  1169. package/dist/index.es237.js +4 -21
  1170. package/dist/index.es237.js.map +1 -1
  1171. package/dist/index.es238.js +3 -11
  1172. package/dist/index.es238.js.map +1 -1
  1173. package/dist/index.es239.js +3 -18
  1174. package/dist/index.es239.js.map +1 -1
  1175. package/dist/index.es24.js +1 -1
  1176. package/dist/index.es240.js +8 -3
  1177. package/dist/index.es240.js.map +1 -1
  1178. package/dist/index.es241.js +17 -16
  1179. package/dist/index.es241.js.map +1 -1
  1180. package/dist/index.es242.js +19 -10
  1181. package/dist/index.es242.js.map +1 -1
  1182. package/dist/index.es243.js +12 -3
  1183. package/dist/index.es243.js.map +1 -1
  1184. package/dist/index.es244.js +14 -4
  1185. package/dist/index.es244.js.map +1 -1
  1186. package/dist/index.es245.js +5 -7506
  1187. package/dist/index.es245.js.map +1 -1
  1188. package/dist/index.es246.js +8 -2
  1189. package/dist/index.es246.js.map +1 -1
  1190. package/dist/index.es247.js +6 -20
  1191. package/dist/index.es247.js.map +1 -1
  1192. package/dist/index.es248.js +21 -22
  1193. package/dist/index.es248.js.map +1 -1
  1194. package/dist/index.es249.js +10 -3
  1195. package/dist/index.es249.js.map +1 -1
  1196. package/dist/index.es25.js +1 -1
  1197. package/dist/index.es250.js +9 -8
  1198. package/dist/index.es250.js.map +1 -1
  1199. package/dist/index.es251.js +4 -6
  1200. package/dist/index.es251.js.map +1 -1
  1201. package/dist/index.es252.js +10 -24
  1202. package/dist/index.es252.js.map +1 -1
  1203. package/dist/index.es253.js +7 -16
  1204. package/dist/index.es253.js.map +1 -1
  1205. package/dist/index.es254.js +20 -30
  1206. package/dist/index.es254.js.map +1 -1
  1207. package/dist/index.es255.js +10 -21
  1208. package/dist/index.es255.js.map +1 -1
  1209. package/dist/index.es256.js +16 -73
  1210. package/dist/index.es256.js.map +1 -1
  1211. package/dist/index.es257.js +4 -21
  1212. package/dist/index.es257.js.map +1 -1
  1213. package/dist/index.es258.js +16 -39
  1214. package/dist/index.es258.js.map +1 -1
  1215. package/dist/index.es259.js +11 -49
  1216. package/dist/index.es259.js.map +1 -1
  1217. package/dist/index.es26.js +2 -2
  1218. package/dist/index.es260.js +3 -7
  1219. package/dist/index.es260.js.map +1 -1
  1220. package/dist/index.es261.js +4 -20
  1221. package/dist/index.es261.js.map +1 -1
  1222. package/dist/index.es262.js +242 -65
  1223. package/dist/index.es262.js.map +1 -1
  1224. package/dist/index.es263.js +40 -40
  1225. package/dist/index.es263.js.map +1 -1
  1226. package/dist/index.es264.js +3 -64
  1227. package/dist/index.es264.js.map +1 -1
  1228. package/dist/index.es265.js +9 -7
  1229. package/dist/index.es265.js.map +1 -1
  1230. package/dist/index.es266.js +10 -3
  1231. package/dist/index.es266.js.map +1 -1
  1232. package/dist/index.es267.js +29 -11
  1233. package/dist/index.es267.js.map +1 -1
  1234. package/dist/index.es268.js +12 -58
  1235. package/dist/index.es268.js.map +1 -1
  1236. package/dist/index.es269.js +4 -49
  1237. package/dist/index.es269.js.map +1 -1
  1238. package/dist/index.es27.js +2 -2
  1239. package/dist/index.es270.js +22 -2
  1240. package/dist/index.es270.js.map +1 -1
  1241. package/dist/index.es271.js +19 -68
  1242. package/dist/index.es271.js.map +1 -1
  1243. package/dist/index.es272.js +7506 -4
  1244. package/dist/index.es272.js.map +1 -1
  1245. package/dist/index.es273.js +2 -16
  1246. package/dist/index.es273.js.map +1 -1
  1247. package/dist/index.es274.js +271 -3
  1248. package/dist/index.es274.js.map +1 -1
  1249. package/dist/index.es275.js +3 -25
  1250. package/dist/index.es275.js.map +1 -1
  1251. package/dist/index.es276.js +9 -0
  1252. package/dist/index.es276.js.map +1 -0
  1253. package/dist/index.es277.js +11 -0
  1254. package/dist/index.es277.js.map +1 -0
  1255. package/dist/index.es278.js +24 -0
  1256. package/dist/index.es278.js.map +1 -0
  1257. package/dist/index.es279.js +26 -0
  1258. package/dist/index.es279.js.map +1 -0
  1259. package/dist/index.es280.js +28 -0
  1260. package/dist/index.es280.js.map +1 -0
  1261. package/dist/index.es281.js +20 -0
  1262. package/dist/index.es281.js.map +1 -0
  1263. package/dist/index.es282.js +34 -0
  1264. package/dist/index.es282.js.map +1 -0
  1265. package/dist/index.es283.js +25 -0
  1266. package/dist/index.es283.js.map +1 -0
  1267. package/dist/index.es284.js +78 -0
  1268. package/dist/index.es284.js.map +1 -0
  1269. package/dist/index.es285.js +24 -0
  1270. package/dist/index.es285.js.map +1 -0
  1271. package/dist/index.es286.js +44 -0
  1272. package/dist/index.es286.js.map +1 -0
  1273. package/dist/index.es287.js +53 -0
  1274. package/dist/index.es287.js.map +1 -0
  1275. package/dist/index.es288.js +11 -0
  1276. package/dist/index.es288.js.map +1 -0
  1277. package/dist/index.es289.js +24 -0
  1278. package/dist/index.es289.js.map +1 -0
  1279. package/dist/index.es29.js +2 -2
  1280. package/dist/index.es290.js +69 -0
  1281. package/dist/index.es290.js.map +1 -0
  1282. package/dist/index.es291.js +46 -0
  1283. package/dist/index.es291.js.map +1 -0
  1284. package/dist/index.es292.js +67 -0
  1285. package/dist/index.es292.js.map +1 -0
  1286. package/dist/index.es293.js +12 -0
  1287. package/dist/index.es293.js.map +1 -0
  1288. package/dist/index.es294.js +7 -0
  1289. package/dist/index.es294.js.map +1 -0
  1290. package/dist/index.es295.js +16 -0
  1291. package/dist/index.es295.js.map +1 -0
  1292. package/dist/index.es296.js +63 -0
  1293. package/dist/index.es296.js.map +1 -0
  1294. package/dist/index.es297.js +53 -0
  1295. package/dist/index.es297.js.map +1 -0
  1296. package/dist/index.es298.js +418 -0
  1297. package/dist/index.es298.js.map +1 -0
  1298. package/dist/index.es299.js +80 -0
  1299. package/dist/index.es299.js.map +1 -0
  1300. package/dist/index.es300.js +246 -0
  1301. package/dist/index.es300.js.map +1 -0
  1302. package/dist/index.es301.js +33 -0
  1303. package/dist/index.es301.js.map +1 -0
  1304. package/dist/index.es302.js +157 -0
  1305. package/dist/index.es302.js.map +1 -0
  1306. package/dist/index.es303.js +21 -0
  1307. package/dist/index.es303.js.map +1 -0
  1308. package/dist/index.es304.js +17 -0
  1309. package/dist/index.es304.js.map +1 -0
  1310. package/dist/index.es305.js +565 -0
  1311. package/dist/index.es305.js.map +1 -0
  1312. package/dist/index.es306.js +354 -0
  1313. package/dist/index.es306.js.map +1 -0
  1314. package/dist/index.es307.js +67 -0
  1315. package/dist/index.es307.js.map +1 -0
  1316. package/dist/index.es308.js +50 -0
  1317. package/dist/index.es308.js.map +1 -0
  1318. package/dist/index.es309.js +215 -0
  1319. package/dist/index.es309.js.map +1 -0
  1320. package/dist/index.es310.js +65 -0
  1321. package/dist/index.es310.js.map +1 -0
  1322. package/dist/index.es311.js +63 -0
  1323. package/dist/index.es311.js.map +1 -0
  1324. package/dist/index.es312.js +49 -0
  1325. package/dist/index.es312.js.map +1 -0
  1326. package/dist/index.es313.js +55 -0
  1327. package/dist/index.es313.js.map +1 -0
  1328. package/dist/index.es314.js +329 -0
  1329. package/dist/index.es314.js.map +1 -0
  1330. package/dist/index.es315.js +314 -0
  1331. package/dist/index.es315.js.map +1 -0
  1332. package/dist/index.es316.js +259 -0
  1333. package/dist/index.es316.js.map +1 -0
  1334. package/dist/index.es317.js +60 -0
  1335. package/dist/index.es317.js.map +1 -0
  1336. package/dist/index.es318.js +20 -0
  1337. package/dist/index.es318.js.map +1 -0
  1338. package/dist/index.es319.js +30 -0
  1339. package/dist/index.es319.js.map +1 -0
  1340. package/dist/index.es32.js +2 -2
  1341. package/dist/index.es320.js +218 -0
  1342. package/dist/index.es320.js.map +1 -0
  1343. package/dist/index.es321.js +204 -0
  1344. package/dist/index.es321.js.map +1 -0
  1345. package/dist/index.es322.js +9 -0
  1346. package/dist/index.es322.js.map +1 -0
  1347. package/dist/index.es323.js +89 -0
  1348. package/dist/index.es323.js.map +1 -0
  1349. package/dist/index.es324.js +62 -0
  1350. package/dist/index.es324.js.map +1 -0
  1351. package/dist/index.es325.js +17 -0
  1352. package/dist/index.es325.js.map +1 -0
  1353. package/dist/index.es326.js +107 -0
  1354. package/dist/index.es326.js.map +1 -0
  1355. package/dist/index.es327.js +19 -0
  1356. package/dist/index.es327.js.map +1 -0
  1357. package/dist/index.es328.js +204 -0
  1358. package/dist/index.es328.js.map +1 -0
  1359. package/dist/index.es329.js +30 -0
  1360. package/dist/index.es329.js.map +1 -0
  1361. package/dist/index.es330.js +132 -0
  1362. package/dist/index.es330.js.map +1 -0
  1363. package/dist/index.es331.js +20 -0
  1364. package/dist/index.es331.js.map +1 -0
  1365. package/dist/index.es332.js +8 -0
  1366. package/dist/index.es332.js.map +1 -0
  1367. package/dist/index.es333.js +69 -0
  1368. package/dist/index.es333.js.map +1 -0
  1369. package/dist/index.es334.js +164 -0
  1370. package/dist/index.es334.js.map +1 -0
  1371. package/dist/index.es335.js +142 -0
  1372. package/dist/index.es335.js.map +1 -0
  1373. package/dist/index.es336.js +6 -0
  1374. package/dist/index.es336.js.map +1 -0
  1375. package/dist/index.es337.js +19 -0
  1376. package/dist/index.es337.js.map +1 -0
  1377. package/dist/index.es338.js +73 -0
  1378. package/dist/index.es338.js.map +1 -0
  1379. package/dist/index.es339.js +8 -0
  1380. package/dist/index.es339.js.map +1 -0
  1381. package/dist/index.es34.js +2 -2
  1382. package/dist/index.es340.js +31 -0
  1383. package/dist/index.es340.js.map +1 -0
  1384. package/dist/index.es341.js +65 -0
  1385. package/dist/index.es341.js.map +1 -0
  1386. package/dist/index.es342.js +47 -0
  1387. package/dist/index.es342.js.map +1 -0
  1388. package/dist/index.es343.js +25 -0
  1389. package/dist/index.es343.js.map +1 -0
  1390. package/dist/index.es344.js +11 -0
  1391. package/dist/index.es344.js.map +1 -0
  1392. package/dist/index.es345.js +40 -0
  1393. package/dist/index.es345.js.map +1 -0
  1394. package/dist/index.es346.js +132 -0
  1395. package/dist/index.es346.js.map +1 -0
  1396. package/dist/index.es347.js +48 -0
  1397. package/dist/index.es347.js.map +1 -0
  1398. package/dist/index.es348.js +223 -0
  1399. package/dist/index.es348.js.map +1 -0
  1400. package/dist/index.es349.js +40 -0
  1401. package/dist/index.es349.js.map +1 -0
  1402. package/dist/index.es35.js +2 -2
  1403. package/dist/index.es350.js +251 -0
  1404. package/dist/index.es350.js.map +1 -0
  1405. package/dist/index.es351.js +30 -0
  1406. package/dist/index.es351.js.map +1 -0
  1407. package/dist/index.es352.js +7 -0
  1408. package/dist/index.es352.js.map +1 -0
  1409. package/dist/index.es353.js +286 -0
  1410. package/dist/index.es353.js.map +1 -0
  1411. package/dist/index.es354.js +63 -0
  1412. package/dist/index.es354.js.map +1 -0
  1413. package/dist/index.es355.js +54 -0
  1414. package/dist/index.es355.js.map +1 -0
  1415. package/dist/index.es356.js +7 -0
  1416. package/dist/index.es356.js.map +1 -0
  1417. package/dist/index.es357.js +28 -0
  1418. package/dist/index.es357.js.map +1 -0
  1419. package/dist/index.es358.js +48 -0
  1420. package/dist/index.es358.js.map +1 -0
  1421. package/dist/index.es359.js +13 -0
  1422. package/dist/index.es359.js.map +1 -0
  1423. package/dist/index.es360.js +35 -0
  1424. package/dist/index.es360.js.map +1 -0
  1425. package/dist/index.es361.js +31 -0
  1426. package/dist/index.es361.js.map +1 -0
  1427. package/dist/index.es362.js +1360 -0
  1428. package/dist/index.es362.js.map +1 -0
  1429. package/dist/index.es363.js +9 -0
  1430. package/dist/index.es363.js.map +1 -0
  1431. package/dist/index.es364.js +12 -0
  1432. package/dist/index.es364.js.map +1 -0
  1433. package/dist/index.es365.js +10 -0
  1434. package/dist/index.es365.js.map +1 -0
  1435. package/dist/index.es366.js +120 -0
  1436. package/dist/index.es366.js.map +1 -0
  1437. package/dist/index.es367.js +105 -0
  1438. package/dist/index.es367.js.map +1 -0
  1439. package/dist/index.es368.js +23 -0
  1440. package/dist/index.es368.js.map +1 -0
  1441. package/dist/index.es369.js +95 -0
  1442. package/dist/index.es369.js.map +1 -0
  1443. package/dist/index.es370.js +68 -0
  1444. package/dist/index.es370.js.map +1 -0
  1445. package/dist/index.es371.js +16 -0
  1446. package/dist/index.es371.js.map +1 -0
  1447. package/dist/index.es372.js +61 -0
  1448. package/dist/index.es372.js.map +1 -0
  1449. package/dist/index.es373.js +55 -0
  1450. package/dist/index.es373.js.map +1 -0
  1451. package/dist/index.es374.js +23 -0
  1452. package/dist/index.es374.js.map +1 -0
  1453. package/dist/index.es375.js +34 -0
  1454. package/dist/index.es375.js.map +1 -0
  1455. package/dist/index.es376.js +47 -0
  1456. package/dist/index.es376.js.map +1 -0
  1457. package/dist/index.es377.js +35 -0
  1458. package/dist/index.es377.js.map +1 -0
  1459. package/dist/index.es378.js +59 -0
  1460. package/dist/index.es378.js.map +1 -0
  1461. package/dist/index.es379.js +62 -0
  1462. package/dist/index.es379.js.map +1 -0
  1463. package/dist/index.es38.js +1 -1
  1464. package/dist/index.es380.js +32 -0
  1465. package/dist/index.es380.js.map +1 -0
  1466. package/dist/index.es381.js +53 -0
  1467. package/dist/index.es381.js.map +1 -0
  1468. package/dist/index.es382.js +128 -0
  1469. package/dist/index.es382.js.map +1 -0
  1470. package/dist/index.es383.js +44 -0
  1471. package/dist/index.es383.js.map +1 -0
  1472. package/dist/index.es384.js +29 -0
  1473. package/dist/index.es384.js.map +1 -0
  1474. package/dist/index.es385.js +37 -0
  1475. package/dist/index.es385.js.map +1 -0
  1476. package/dist/index.es386.js +28 -0
  1477. package/dist/index.es386.js.map +1 -0
  1478. package/dist/index.es387.js +69 -0
  1479. package/dist/index.es387.js.map +1 -0
  1480. package/dist/index.es388.js +49 -0
  1481. package/dist/index.es388.js.map +1 -0
  1482. package/dist/index.es389.js +27 -0
  1483. package/dist/index.es389.js.map +1 -0
  1484. package/dist/index.es39.js +1 -1
  1485. package/dist/index.es390.js +48 -0
  1486. package/dist/index.es390.js.map +1 -0
  1487. package/dist/index.es391.js +19 -0
  1488. package/dist/index.es391.js.map +1 -0
  1489. package/dist/index.es392.js +38 -0
  1490. package/dist/index.es392.js.map +1 -0
  1491. package/dist/index.es393.js +49 -0
  1492. package/dist/index.es393.js.map +1 -0
  1493. package/dist/index.es394.js +35 -0
  1494. package/dist/index.es394.js.map +1 -0
  1495. package/dist/index.es395.js +37 -0
  1496. package/dist/index.es395.js.map +1 -0
  1497. package/dist/index.es396.js +29 -0
  1498. package/dist/index.es396.js.map +1 -0
  1499. package/dist/index.es397.js +68 -0
  1500. package/dist/index.es397.js.map +1 -0
  1501. package/dist/index.es398.js +105 -0
  1502. package/dist/index.es398.js.map +1 -0
  1503. package/dist/index.es399.js +27 -0
  1504. package/dist/index.es399.js.map +1 -0
  1505. package/dist/index.es40.js +2 -2
  1506. package/dist/index.es400.js +111 -0
  1507. package/dist/index.es400.js.map +1 -0
  1508. package/dist/index.es401.js +50 -0
  1509. package/dist/index.es401.js.map +1 -0
  1510. package/dist/index.es402.js +36 -0
  1511. package/dist/index.es402.js.map +1 -0
  1512. package/dist/index.es403.js +56 -0
  1513. package/dist/index.es403.js.map +1 -0
  1514. package/dist/index.es404.js +174 -0
  1515. package/dist/index.es404.js.map +1 -0
  1516. package/dist/index.es405.js +206 -0
  1517. package/dist/index.es405.js.map +1 -0
  1518. package/dist/index.es406.js +45 -0
  1519. package/dist/index.es406.js.map +1 -0
  1520. package/dist/index.es407.js +18 -0
  1521. package/dist/index.es407.js.map +1 -0
  1522. package/dist/index.es408.js +11 -0
  1523. package/dist/index.es408.js.map +1 -0
  1524. package/dist/index.es409.js +64 -0
  1525. package/dist/index.es409.js.map +1 -0
  1526. package/dist/index.es410.js +50 -0
  1527. package/dist/index.es410.js.map +1 -0
  1528. package/dist/index.es411.js +45 -0
  1529. package/dist/index.es411.js.map +1 -0
  1530. package/dist/index.es412.js +92 -0
  1531. package/dist/index.es412.js.map +1 -0
  1532. package/dist/index.es413.js +89 -0
  1533. package/dist/index.es413.js.map +1 -0
  1534. package/dist/index.es414.js +57 -0
  1535. package/dist/index.es414.js.map +1 -0
  1536. package/dist/index.es415.js +61 -0
  1537. package/dist/index.es415.js.map +1 -0
  1538. package/dist/index.es416.js +58 -0
  1539. package/dist/index.es416.js.map +1 -0
  1540. package/dist/index.es417.js +147 -0
  1541. package/dist/index.es417.js.map +1 -0
  1542. package/dist/index.es418.js +58 -0
  1543. package/dist/index.es418.js.map +1 -0
  1544. package/dist/index.es419.js +85 -0
  1545. package/dist/index.es419.js.map +1 -0
  1546. package/dist/index.es42.js +2 -2
  1547. package/dist/index.es420.js +9 -0
  1548. package/dist/index.es420.js.map +1 -0
  1549. package/dist/index.es421.js +261 -0
  1550. package/dist/index.es421.js.map +1 -0
  1551. package/dist/index.es422.js +108 -0
  1552. package/dist/index.es422.js.map +1 -0
  1553. package/dist/index.es423.js +26 -0
  1554. package/dist/index.es423.js.map +1 -0
  1555. package/dist/index.es424.js +19 -0
  1556. package/dist/index.es424.js.map +1 -0
  1557. package/dist/index.es425.js +11 -0
  1558. package/dist/index.es425.js.map +1 -0
  1559. package/dist/index.es426.js +44 -0
  1560. package/dist/index.es426.js.map +1 -0
  1561. package/dist/index.es427.js +80 -0
  1562. package/dist/index.es427.js.map +1 -0
  1563. package/dist/index.es428.js +108 -0
  1564. package/dist/index.es428.js.map +1 -0
  1565. package/dist/index.es429.js +34 -0
  1566. package/dist/index.es429.js.map +1 -0
  1567. package/dist/index.es43.js +2 -2
  1568. package/dist/index.es430.js +25 -0
  1569. package/dist/index.es430.js.map +1 -0
  1570. package/dist/index.es431.js +14 -0
  1571. package/dist/index.es431.js.map +1 -0
  1572. package/dist/index.es432.js +721 -0
  1573. package/dist/index.es432.js.map +1 -0
  1574. package/dist/index.es433.js +61 -0
  1575. package/dist/index.es433.js.map +1 -0
  1576. package/dist/index.es434.js +62 -0
  1577. package/dist/index.es434.js.map +1 -0
  1578. package/dist/index.es435.js +87 -0
  1579. package/dist/index.es435.js.map +1 -0
  1580. package/dist/index.es436.js +26 -0
  1581. package/dist/index.es436.js.map +1 -0
  1582. package/dist/index.es437.js +56 -0
  1583. package/dist/index.es437.js.map +1 -0
  1584. package/dist/index.es438.js +55 -0
  1585. package/dist/index.es438.js.map +1 -0
  1586. package/dist/index.es439.js +8 -0
  1587. package/dist/index.es439.js.map +1 -0
  1588. package/dist/index.es44.js +2 -2
  1589. package/dist/index.es440.js +8 -0
  1590. package/dist/index.es440.js.map +1 -0
  1591. package/dist/index.es441.js +23 -0
  1592. package/dist/index.es441.js.map +1 -0
  1593. package/dist/index.es442.js +7 -0
  1594. package/dist/index.es442.js.map +1 -0
  1595. package/dist/index.es443.js +11 -0
  1596. package/dist/index.es443.js.map +1 -0
  1597. package/dist/index.es444.js +10 -0
  1598. package/dist/index.es444.js.map +1 -0
  1599. package/dist/index.es445.js +7 -0
  1600. package/dist/index.es445.js.map +1 -0
  1601. package/dist/index.es446.js +5 -0
  1602. package/dist/index.es446.js.map +1 -0
  1603. package/dist/index.es447.js +9 -0
  1604. package/dist/index.es447.js.map +1 -0
  1605. package/dist/index.es448.js +13 -0
  1606. package/dist/index.es448.js.map +1 -0
  1607. package/dist/index.es449.js +8 -0
  1608. package/dist/index.es449.js.map +1 -0
  1609. package/dist/index.es450.js +7 -0
  1610. package/dist/index.es450.js.map +1 -0
  1611. package/dist/index.es451.js +6 -0
  1612. package/dist/index.es451.js.map +1 -0
  1613. package/dist/index.es452.js +7 -0
  1614. package/dist/index.es452.js.map +1 -0
  1615. package/dist/index.es453.js +9 -0
  1616. package/dist/index.es453.js.map +1 -0
  1617. package/dist/index.es454.js +11 -0
  1618. package/dist/index.es454.js.map +1 -0
  1619. package/dist/index.es455.js +8 -0
  1620. package/dist/index.es455.js.map +1 -0
  1621. package/dist/index.es456.js +10 -0
  1622. package/dist/index.es456.js.map +1 -0
  1623. package/dist/index.es457.js +9 -0
  1624. package/dist/index.es457.js.map +1 -0
  1625. package/dist/index.es458.js +12 -0
  1626. package/dist/index.es458.js.map +1 -0
  1627. package/dist/index.es459.js +8 -0
  1628. package/dist/index.es459.js.map +1 -0
  1629. package/dist/index.es46.js +1 -1
  1630. package/dist/index.es460.js +10 -0
  1631. package/dist/index.es460.js.map +1 -0
  1632. package/dist/index.es461.js +10 -0
  1633. package/dist/index.es461.js.map +1 -0
  1634. package/dist/index.es462.js +8 -0
  1635. package/dist/index.es462.js.map +1 -0
  1636. package/dist/index.es463.js +13 -0
  1637. package/dist/index.es463.js.map +1 -0
  1638. package/dist/index.es464.js +10 -0
  1639. package/dist/index.es464.js.map +1 -0
  1640. package/dist/index.es465.js +21 -0
  1641. package/dist/index.es465.js.map +1 -0
  1642. package/dist/index.es466.js +15 -0
  1643. package/dist/index.es466.js.map +1 -0
  1644. package/dist/index.es467.js +7 -0
  1645. package/dist/index.es467.js.map +1 -0
  1646. package/dist/index.es468.js +9 -0
  1647. package/dist/index.es468.js.map +1 -0
  1648. package/dist/index.es469.js +18 -0
  1649. package/dist/index.es469.js.map +1 -0
  1650. package/dist/index.es47.js +2 -2
  1651. package/dist/index.es470.js +26 -0
  1652. package/dist/index.es470.js.map +1 -0
  1653. package/dist/index.es471.js +12 -0
  1654. package/dist/index.es471.js.map +1 -0
  1655. package/dist/index.es472.js +8 -0
  1656. package/dist/index.es472.js.map +1 -0
  1657. package/dist/index.es473.js +118 -0
  1658. package/dist/index.es473.js.map +1 -0
  1659. package/dist/index.es474.js +90 -0
  1660. package/dist/index.es474.js.map +1 -0
  1661. package/dist/index.es475.js +78 -0
  1662. package/dist/index.es475.js.map +1 -0
  1663. package/dist/index.es476.js +13 -0
  1664. package/dist/index.es476.js.map +1 -0
  1665. package/dist/index.es477.js +83 -0
  1666. package/dist/index.es477.js.map +1 -0
  1667. package/dist/index.es478.js +9 -0
  1668. package/dist/index.es478.js.map +1 -0
  1669. package/dist/index.es479.js +19 -0
  1670. package/dist/index.es479.js.map +1 -0
  1671. package/dist/index.es48.js +2 -2
  1672. package/dist/index.es480.js +8 -0
  1673. package/dist/index.es480.js.map +1 -0
  1674. package/dist/index.es481.js +11 -0
  1675. package/dist/index.es481.js.map +1 -0
  1676. package/dist/index.es482.js +7 -0
  1677. package/dist/index.es482.js.map +1 -0
  1678. package/dist/index.es483.js +15 -0
  1679. package/dist/index.es483.js.map +1 -0
  1680. package/dist/index.es484.js +7 -0
  1681. package/dist/index.es484.js.map +1 -0
  1682. package/dist/index.es485.js +8 -0
  1683. package/dist/index.es485.js.map +1 -0
  1684. package/dist/index.es486.js +9 -0
  1685. package/dist/index.es486.js.map +1 -0
  1686. package/dist/index.es487.js +10 -0
  1687. package/dist/index.es487.js.map +1 -0
  1688. package/dist/index.es488.js +9 -0
  1689. package/dist/index.es488.js.map +1 -0
  1690. package/dist/index.es489.js +9 -0
  1691. package/dist/index.es489.js.map +1 -0
  1692. package/dist/index.es490.js +11 -0
  1693. package/dist/index.es490.js.map +1 -0
  1694. package/dist/index.es491.js +14 -0
  1695. package/dist/index.es491.js.map +1 -0
  1696. package/dist/index.es492.js +28 -0
  1697. package/dist/index.es492.js.map +1 -0
  1698. package/dist/index.es493.js +8 -0
  1699. package/dist/index.es493.js.map +1 -0
  1700. package/dist/index.es494.js +9 -0
  1701. package/dist/index.es494.js.map +1 -0
  1702. package/dist/index.es495.js +11 -0
  1703. package/dist/index.es495.js.map +1 -0
  1704. package/dist/index.es496.js +7 -0
  1705. package/dist/index.es496.js.map +1 -0
  1706. package/dist/index.es497.js +7 -0
  1707. package/dist/index.es497.js.map +1 -0
  1708. package/dist/index.es498.js +7 -0
  1709. package/dist/index.es498.js.map +1 -0
  1710. package/dist/index.es499.js +7 -0
  1711. package/dist/index.es499.js.map +1 -0
  1712. package/dist/index.es50.js +1 -1
  1713. package/dist/index.es500.js +7 -0
  1714. package/dist/index.es500.js.map +1 -0
  1715. package/dist/index.es501.js +8 -0
  1716. package/dist/index.es501.js.map +1 -0
  1717. package/dist/index.es502.js +9 -0
  1718. package/dist/index.es502.js.map +1 -0
  1719. package/dist/index.es503.js +12 -0
  1720. package/dist/index.es503.js.map +1 -0
  1721. package/dist/index.es504.js +8 -0
  1722. package/dist/index.es504.js.map +1 -0
  1723. package/dist/index.es505.js +9 -0
  1724. package/dist/index.es505.js.map +1 -0
  1725. package/dist/index.es506.js +8 -0
  1726. package/dist/index.es506.js.map +1 -0
  1727. package/dist/index.es507.js +7 -0
  1728. package/dist/index.es507.js.map +1 -0
  1729. package/dist/index.es508.js +14 -0
  1730. package/dist/index.es508.js.map +1 -0
  1731. package/dist/index.es509.js +34 -0
  1732. package/dist/index.es509.js.map +1 -0
  1733. package/dist/index.es51.js +1 -1
  1734. package/dist/index.es510.js +20 -0
  1735. package/dist/index.es510.js.map +1 -0
  1736. package/dist/index.es511.js +50 -0
  1737. package/dist/index.es511.js.map +1 -0
  1738. package/dist/index.es512.js +227 -0
  1739. package/dist/index.es512.js.map +1 -0
  1740. package/dist/index.es513.js +24 -0
  1741. package/dist/index.es513.js.map +1 -0
  1742. package/dist/index.es514.js +178 -0
  1743. package/dist/index.es514.js.map +1 -0
  1744. package/dist/index.es515.js +24 -0
  1745. package/dist/index.es515.js.map +1 -0
  1746. package/dist/index.es516.js +241 -0
  1747. package/dist/index.es516.js.map +1 -0
  1748. package/dist/index.es517.js +9 -0
  1749. package/dist/index.es517.js.map +1 -0
  1750. package/dist/index.es518.js +158 -0
  1751. package/dist/index.es518.js.map +1 -0
  1752. package/dist/index.es519.js +160 -0
  1753. package/dist/index.es519.js.map +1 -0
  1754. package/dist/index.es52.js +1 -1
  1755. package/dist/index.es520.js +9 -0
  1756. package/dist/index.es520.js.map +1 -0
  1757. package/dist/index.es521.js +13 -0
  1758. package/dist/index.es521.js.map +1 -0
  1759. package/dist/index.es522.js +12 -0
  1760. package/dist/index.es522.js.map +1 -0
  1761. package/dist/index.es523.js +11 -0
  1762. package/dist/index.es523.js.map +1 -0
  1763. package/dist/index.es524.js +9 -0
  1764. package/dist/index.es524.js.map +1 -0
  1765. package/dist/index.es525.js +19 -0
  1766. package/dist/index.es525.js.map +1 -0
  1767. package/dist/index.es526.js +10 -0
  1768. package/dist/index.es526.js.map +1 -0
  1769. package/dist/index.es527.js +10 -0
  1770. package/dist/index.es527.js.map +1 -0
  1771. package/dist/index.es528.js +29 -0
  1772. package/dist/index.es528.js.map +1 -0
  1773. package/dist/index.es529.js +9 -0
  1774. package/dist/index.es529.js.map +1 -0
  1775. package/dist/index.es530.js +43 -0
  1776. package/dist/index.es530.js.map +1 -0
  1777. package/dist/index.es531.js +10 -0
  1778. package/dist/index.es531.js.map +1 -0
  1779. package/dist/index.es532.js +18 -0
  1780. package/dist/index.es532.js.map +1 -0
  1781. package/dist/index.es533.js +9 -0
  1782. package/dist/index.es533.js.map +1 -0
  1783. package/dist/index.es534.js +11 -0
  1784. package/dist/index.es534.js.map +1 -0
  1785. package/dist/index.es535.js +42 -0
  1786. package/dist/index.es535.js.map +1 -0
  1787. package/dist/index.es536.js +6 -0
  1788. package/dist/index.es536.js.map +1 -0
  1789. package/dist/index.es537.js +16 -0
  1790. package/dist/index.es537.js.map +1 -0
  1791. package/dist/index.es538.js +8 -0
  1792. package/dist/index.es538.js.map +1 -0
  1793. package/dist/index.es539.js +5 -0
  1794. package/dist/index.es539.js.map +1 -0
  1795. package/dist/index.es540.js +6 -0
  1796. package/dist/index.es540.js.map +1 -0
  1797. package/dist/index.es541.js +9 -0
  1798. package/dist/index.es541.js.map +1 -0
  1799. package/dist/index.es542.js +17 -0
  1800. package/dist/index.es542.js.map +1 -0
  1801. package/dist/index.es543.js +12 -0
  1802. package/dist/index.es543.js.map +1 -0
  1803. package/dist/index.es544.js +18 -0
  1804. package/dist/index.es544.js.map +1 -0
  1805. package/dist/index.es545.js +6 -0
  1806. package/dist/index.es545.js.map +1 -0
  1807. package/dist/index.es546.js +7 -0
  1808. package/dist/index.es546.js.map +1 -0
  1809. package/dist/index.es547.js +7 -0
  1810. package/dist/index.es547.js.map +1 -0
  1811. package/dist/index.es548.js +7 -0
  1812. package/dist/index.es548.js.map +1 -0
  1813. package/dist/index.es549.js +7 -0
  1814. package/dist/index.es549.js.map +1 -0
  1815. package/dist/index.es550.js +7 -0
  1816. package/dist/index.es550.js.map +1 -0
  1817. package/dist/index.es551.js +33 -0
  1818. package/dist/index.es551.js.map +1 -0
  1819. package/dist/index.es552.js +21 -0
  1820. package/dist/index.es552.js.map +1 -0
  1821. package/dist/index.es553.js +14 -0
  1822. package/dist/index.es553.js.map +1 -0
  1823. package/dist/index.es554.js +9 -0
  1824. package/dist/index.es554.js.map +1 -0
  1825. package/dist/index.es555.js +8 -0
  1826. package/dist/index.es555.js.map +1 -0
  1827. package/dist/index.es556.js +8 -0
  1828. package/dist/index.es556.js.map +1 -0
  1829. package/dist/index.es557.js +9 -0
  1830. package/dist/index.es557.js.map +1 -0
  1831. package/dist/index.es558.js +9 -0
  1832. package/dist/index.es558.js.map +1 -0
  1833. package/dist/index.es559.js +9 -0
  1834. package/dist/index.es559.js.map +1 -0
  1835. package/dist/index.es56.js +2 -2
  1836. package/dist/index.es560.js +10 -0
  1837. package/dist/index.es560.js.map +1 -0
  1838. package/dist/index.es561.js +3029 -0
  1839. package/dist/index.es561.js.map +1 -0
  1840. package/dist/index.es562.js +5 -0
  1841. package/dist/index.es562.js.map +1 -0
  1842. package/dist/index.es563.js +10 -0
  1843. package/dist/index.es563.js.map +1 -0
  1844. package/dist/index.es564.js +10 -0
  1845. package/dist/index.es564.js.map +1 -0
  1846. package/dist/index.es565.js +10 -0
  1847. package/dist/index.es565.js.map +1 -0
  1848. package/dist/index.es566.js +10 -0
  1849. package/dist/index.es566.js.map +1 -0
  1850. package/dist/index.es567.js +21 -0
  1851. package/dist/index.es567.js.map +1 -0
  1852. package/dist/index.es568.js +7 -0
  1853. package/dist/index.es568.js.map +1 -0
  1854. package/dist/index.es569.js +8 -0
  1855. package/dist/index.es569.js.map +1 -0
  1856. package/dist/index.es57.js +3 -3
  1857. package/dist/index.es570.js +8 -0
  1858. package/dist/index.es570.js.map +1 -0
  1859. package/dist/index.es571.js +10 -0
  1860. package/dist/index.es571.js.map +1 -0
  1861. package/dist/index.es572.js +11 -0
  1862. package/dist/index.es572.js.map +1 -0
  1863. package/dist/index.es573.js +14 -0
  1864. package/dist/index.es573.js.map +1 -0
  1865. package/dist/index.es574.js +8 -0
  1866. package/dist/index.es574.js.map +1 -0
  1867. package/dist/index.es575.js +7 -0
  1868. package/dist/index.es575.js.map +1 -0
  1869. package/dist/index.es576.js +7 -0
  1870. package/dist/index.es576.js.map +1 -0
  1871. package/dist/index.es577.js +21 -0
  1872. package/dist/index.es577.js.map +1 -0
  1873. package/dist/index.es578.js +8 -0
  1874. package/dist/index.es578.js.map +1 -0
  1875. package/dist/index.es579.js +8 -0
  1876. package/dist/index.es579.js.map +1 -0
  1877. package/dist/index.es58.js +1 -1
  1878. package/dist/index.es580.js +7 -0
  1879. package/dist/index.es580.js.map +1 -0
  1880. package/dist/index.es581.js +7 -0
  1881. package/dist/index.es581.js.map +1 -0
  1882. package/dist/index.es582.js +18 -0
  1883. package/dist/index.es582.js.map +1 -0
  1884. package/dist/index.es583.js +10 -0
  1885. package/dist/index.es583.js.map +1 -0
  1886. package/dist/index.es584.js +11 -0
  1887. package/dist/index.es584.js.map +1 -0
  1888. package/dist/index.es585.js +9 -0
  1889. package/dist/index.es585.js.map +1 -0
  1890. package/dist/index.es586.js +9 -0
  1891. package/dist/index.es586.js.map +1 -0
  1892. package/dist/index.es587.js +9 -0
  1893. package/dist/index.es587.js.map +1 -0
  1894. package/dist/index.es588.js +9 -0
  1895. package/dist/index.es588.js.map +1 -0
  1896. package/dist/index.es589.js +9 -0
  1897. package/dist/index.es589.js.map +1 -0
  1898. package/dist/index.es590.js +6 -0
  1899. package/dist/index.es590.js.map +1 -0
  1900. package/dist/index.es591.js +9 -0
  1901. package/dist/index.es591.js.map +1 -0
  1902. package/dist/index.es592.js +41 -0
  1903. package/dist/index.es592.js.map +1 -0
  1904. package/dist/index.es593.js +46 -0
  1905. package/dist/index.es593.js.map +1 -0
  1906. package/dist/index.es594.js +37 -0
  1907. package/dist/index.es594.js.map +1 -0
  1908. package/dist/index.es595.js +21 -0
  1909. package/dist/index.es595.js.map +1 -0
  1910. package/dist/index.es596.js +9 -0
  1911. package/dist/index.es596.js.map +1 -0
  1912. package/dist/index.es597.js +47 -0
  1913. package/dist/index.es597.js.map +1 -0
  1914. package/dist/index.es598.js +8 -0
  1915. package/dist/index.es598.js.map +1 -0
  1916. package/dist/index.es599.js +7 -0
  1917. package/dist/index.es599.js.map +1 -0
  1918. package/dist/index.es60.js +1 -1
  1919. package/dist/index.es600.js +31 -0
  1920. package/dist/index.es600.js.map +1 -0
  1921. package/dist/index.es601.js +25 -0
  1922. package/dist/index.es601.js.map +1 -0
  1923. package/dist/index.es602.js +37 -0
  1924. package/dist/index.es602.js.map +1 -0
  1925. package/dist/index.es603.js +215 -0
  1926. package/dist/index.es603.js.map +1 -0
  1927. package/dist/index.es604.js +246 -0
  1928. package/dist/index.es604.js.map +1 -0
  1929. package/dist/index.es605.js +39 -0
  1930. package/dist/index.es605.js.map +1 -0
  1931. package/dist/index.es606.js +18 -0
  1932. package/dist/index.es606.js.map +1 -0
  1933. package/dist/index.es607.js +567 -0
  1934. package/dist/index.es607.js.map +1 -0
  1935. package/dist/index.es608.js +59 -0
  1936. package/dist/index.es608.js.map +1 -0
  1937. package/dist/index.es609.js +338 -0
  1938. package/dist/index.es609.js.map +1 -0
  1939. package/dist/index.es61.js +1 -1
  1940. package/dist/index.es610.js +1103 -0
  1941. package/dist/index.es610.js.map +1 -0
  1942. package/dist/index.es611.js +41 -0
  1943. package/dist/index.es611.js.map +1 -0
  1944. package/dist/index.es612.js +39 -0
  1945. package/dist/index.es612.js.map +1 -0
  1946. package/dist/index.es613.js +51 -0
  1947. package/dist/index.es613.js.map +1 -0
  1948. package/dist/index.es614.js +65 -0
  1949. package/dist/index.es614.js.map +1 -0
  1950. package/dist/index.es615.js +7 -0
  1951. package/dist/index.es615.js.map +1 -0
  1952. package/dist/index.es616.js +13 -0
  1953. package/dist/index.es616.js.map +1 -0
  1954. package/dist/index.es617.js +9 -0
  1955. package/dist/index.es617.js.map +1 -0
  1956. package/dist/index.es618.js +8 -0
  1957. package/dist/index.es618.js.map +1 -0
  1958. package/dist/index.es619.js +9 -0
  1959. package/dist/index.es619.js.map +1 -0
  1960. package/dist/index.es620.js +174 -0
  1961. package/dist/index.es620.js.map +1 -0
  1962. package/dist/index.es621.js +6 -0
  1963. package/dist/index.es621.js.map +1 -0
  1964. package/dist/index.es622.js +8 -0
  1965. package/dist/index.es622.js.map +1 -0
  1966. package/dist/index.es623.js +8 -0
  1967. package/dist/index.es623.js.map +1 -0
  1968. package/dist/index.es624.js +14 -0
  1969. package/dist/index.es624.js.map +1 -0
  1970. package/dist/index.es625.js +10 -0
  1971. package/dist/index.es625.js.map +1 -0
  1972. package/dist/index.es626.js +10 -0
  1973. package/dist/index.es626.js.map +1 -0
  1974. package/dist/index.es627.js +298 -0
  1975. package/dist/index.es627.js.map +1 -0
  1976. package/dist/index.es628.js +27 -0
  1977. package/dist/index.es628.js.map +1 -0
  1978. package/dist/index.es629.js +53 -0
  1979. package/dist/index.es629.js.map +1 -0
  1980. package/dist/index.es63.js +1 -1
  1981. package/dist/index.es630.js +9 -0
  1982. package/dist/index.es630.js.map +1 -0
  1983. package/dist/index.es631.js +11 -0
  1984. package/dist/index.es631.js.map +1 -0
  1985. package/dist/index.es632.js +6 -0
  1986. package/dist/index.es632.js.map +1 -0
  1987. package/dist/index.es67.js +10 -6
  1988. package/dist/index.es67.js.map +1 -1
  1989. package/dist/index.es68.js +163 -13731
  1990. package/dist/index.es68.js.map +1 -1
  1991. package/dist/index.es69.js +1 -1
  1992. package/dist/index.es69.js.map +1 -1
  1993. package/dist/index.es70.js.map +1 -1
  1994. package/dist/index.es71.js +1 -1
  1995. package/dist/index.es71.js.map +1 -1
  1996. package/dist/index.es72.js +1 -1
  1997. package/dist/index.es72.js.map +1 -1
  1998. package/dist/index.es73.js +6 -6
  1999. package/dist/index.es73.js.map +1 -1
  2000. package/dist/index.es74.js +1 -1
  2001. package/dist/index.es74.js.map +1 -1
  2002. package/dist/index.es75.js +4 -4
  2003. package/dist/index.es75.js.map +1 -1
  2004. package/dist/index.es76.js +10 -10
  2005. package/dist/index.es76.js.map +1 -1
  2006. package/dist/index.es77.js +1 -1
  2007. package/dist/index.es77.js.map +1 -1
  2008. package/dist/index.es78.js.map +1 -1
  2009. package/dist/index.es79.js +7 -1992
  2010. package/dist/index.es79.js.map +1 -1
  2011. package/dist/index.es80.js +2 -6
  2012. package/dist/index.es80.js.map +1 -1
  2013. package/dist/index.es81.js +26 -2
  2014. package/dist/index.es81.js.map +1 -1
  2015. package/dist/index.es82.js +588 -7
  2016. package/dist/index.es82.js.map +1 -1
  2017. package/dist/index.es83.js +21352 -2
  2018. package/dist/index.es83.js.map +1 -1
  2019. package/dist/index.es84.js +2 -26
  2020. package/dist/index.es84.js.map +1 -1
  2021. package/dist/index.es85.js +105 -588
  2022. package/dist/index.es85.js.map +1 -1
  2023. package/dist/index.es86.js +10 -21352
  2024. package/dist/index.es86.js.map +1 -1
  2025. package/dist/index.es87.js +1993 -2
  2026. package/dist/index.es87.js.map +1 -1
  2027. package/dist/index.es88.js +5 -105
  2028. package/dist/index.es88.js.map +1 -1
  2029. package/dist/index.es89.js +2 -10
  2030. package/dist/index.es89.js.map +1 -1
  2031. package/dist/index.es93.js +1 -1
  2032. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs405.js","sources":["../../../node_modules/@allmaps/transform/dist/transformers/BaseGcpTransformer.js"],"sourcesContent":["import { isPoint, isLineString, isPolygon, isMultiPoint, isMultiLineString, isMultiPolygon, flipY, mergeOptions, computeBbox } from '@allmaps/stdlib';\nimport { computeDistortionsFromPartialDerivatives } from '../shared/distortion.js';\nimport { Straight } from '../transformation-types/Straight.js';\nimport { Helmert } from '../transformation-types/Helmert.js';\nimport { Polynomial1 } from '../transformation-types/Polynomial1.js';\nimport { Polynomial2 } from '../transformation-types/Polynomial2.js';\nimport { Polynomial3 } from '../transformation-types/Polynomial3.js';\nimport { Projective } from '../transformation-types/Projective.js';\nimport { RBF } from '../transformation-types/RBF.js';\nimport { linearKernel, thinPlateKernel } from '../shared/kernel-functions.js';\nimport { euclideanNorm } from '../shared/norm-functions.js';\nimport { defaultGeneralGcpTransformerOptions, nonWarpingTransformationTypes, refinementOptionsFromBackwardTransformOptions, refinementOptionsFromForwardTransformOptions } from '../shared/transform-functions.js';\nimport { refineLineString, refineRing, getSourceRefinementResolution } from '../shared/refinement-functions.js';\nimport { generalGcpToPointForForward, generalGcpToPointForBackward, invertGeneralGcp } from '../shared/conversion-functions.js';\n/**\n * Abstract class for Ground Control Point Transformers.\n *\n * This class contains all logic to transform geometries\n * made available trough the GeneralGcpTransform and GcpTransform classes.\n *\n * The extending GeneralGcpTransform class handles the general case where:\n * - We read in Ground Control Points using the GeneralGcp type, with `source` and `destination` fields.\n * - We use the terms 'forward' and 'backward' for the two transformations.\n * - Both source and destination space are exected to be 2D cartesian spaces with the same handedness (x- and y-axes have the same orientations).\n *\n * The extending GcpTransform class handles the typical Allmaps case where:\n * - We read in Ground Control Points using the Gcp type, with `resource` and `geo` fields.\n * - We use the terms 'toGeo' for the 'forward' transformation and 'toResource' for the 'backward' transformation.\n * - The `differentHandedness` setting is `true` by default, since we expect the resource coordinates to identify pixels on an image, with origin in the top left and the y-axis pointing down.\n * */\nexport class BaseGcpTransformer {\n generalGcpsInternal;\n sourcePointsInternal;\n destinationPointsInternal;\n type;\n transformerOptions;\n forwardTransformation;\n backwardTransformation;\n /**\n * Create a BaseGcpTransformer\n *\n * @param generalGcps - An array of General Ground Control Points (GCPs)\n * @param type - The transformation type\n * @param partialGeneralGcpTransformerOptions - General GCP Transformer options\n */ constructor(generalGcps, type = 'polynomial', partialGeneralGcpTransformerOptions) {\n this.transformerOptions = mergeOptions(defaultGeneralGcpTransformerOptions, partialGeneralGcpTransformerOptions);\n if (generalGcps.length === 0) {\n throw new Error('No control points');\n }\n this.generalGcpsInternal = generalGcps;\n this.sourcePointsInternal = this.generalGcpsInternal.map((generalGcp) => {\n const source = this.transformerOptions.differentHandedness\n ? flipY(generalGcp.source)\n : generalGcp.source;\n return this.transformerOptions.preForward(source);\n });\n this.destinationPointsInternal = this.generalGcpsInternal.map((generalGcp) => this.transformerOptions.preBackward(generalGcp.destination));\n this.type = type;\n }\n /**\n * Get the forward transformation. Create if it doesn't exist yet.\n */\n getForwardTransformationInternal() {\n if (!this.forwardTransformation) {\n this.forwardTransformation = this.createTransformation(this.sourcePointsInternal, this.destinationPointsInternal);\n }\n return this.forwardTransformation;\n }\n /**\n * Get the backward transformation. Create if it doesn't exist yet.\n */\n getBackwardTransformationInternal() {\n if (!this.backwardTransformation) {\n this.backwardTransformation = this.createTransformation(this.destinationPointsInternal, this.sourcePointsInternal);\n }\n return this.backwardTransformation;\n }\n /**\n * Create the (forward or backward) transformation.\n *\n * Results in forward transformation if source and destination points are entered as such.\n * Results in backward if source points are entered for destination points and vice versa.\n *\n * Results in a transformation of this instance's transformation type.\n *\n * @param sourcePoints - source points\n * @param destinationPoints - destination points\n * @returns Transformation\n */\n createTransformation(sourcePoints, destinationPoints) {\n if (this.type === 'straight') {\n return new Straight(sourcePoints, destinationPoints);\n }\n else if (this.type === 'helmert') {\n return new Helmert(sourcePoints, destinationPoints);\n }\n else if (this.type === 'polynomial1' || this.type === 'polynomial') {\n return new Polynomial1(sourcePoints, destinationPoints);\n }\n else if (this.type === 'polynomial2') {\n return new Polynomial2(sourcePoints, destinationPoints);\n }\n else if (this.type === 'polynomial3') {\n return new Polynomial3(sourcePoints, destinationPoints);\n }\n else if (this.type === 'projective') {\n return new Projective(sourcePoints, destinationPoints);\n }\n else if (this.type === 'thinPlateSpline') {\n return new RBF(sourcePoints, destinationPoints, thinPlateKernel, euclideanNorm, 'thinPlateSpline');\n }\n else if (this.type === 'linear') {\n return new RBF(sourcePoints, destinationPoints, linearKernel, euclideanNorm, 'linear');\n }\n else {\n throw new Error(`Unsupported transformation type: ${this.type}`);\n }\n }\n /**\n * Transform a geometry forward from source space to destination space\n *\n * @param sourceGeometry - Geometry to transform\n * @param partialGeneralGcpTransformOptions - General GCP Transform options\n * @param generalGcpToP - Return type function\n * @returns Forward transform of input geometry\n */\n transformForwardInternal(sourceGeometry, partialGeneralGcpTransformOptions, generalGcpToP = generalGcpToPointForForward) {\n let transformOptions = mergeOptions(this.transformerOptions, partialGeneralGcpTransformOptions);\n if (this.isNonWarping()) {\n transformOptions = mergeOptions(transformOptions, { maxDepth: 0 });\n }\n if (!transformOptions.isMultiGeometry) {\n if (isPoint(sourceGeometry)) {\n return this.transformPointForwardInternal(sourceGeometry, transformOptions, generalGcpToP);\n }\n else if (isLineString(sourceGeometry)) {\n return this.transformLineStringForwardInternal(sourceGeometry, transformOptions, generalGcpToP);\n }\n else if (isPolygon(sourceGeometry)) {\n return this.transformPolygonForwardInternal(sourceGeometry, transformOptions, generalGcpToP);\n }\n else {\n throw new Error('Geometry type not supported');\n }\n }\n else {\n if (transformOptions) {\n transformOptions = mergeOptions(transformOptions, {\n isMultiGeometry: false\n }); // false for piecewise single geometries\n }\n if (isMultiPoint(sourceGeometry)) {\n return sourceGeometry.map((sourcePoint) => this.transformPointForwardInternal(sourcePoint, transformOptions, generalGcpToP));\n }\n else if (isMultiLineString(sourceGeometry)) {\n return sourceGeometry.map((sourceLineString) => this.transformLineStringForwardInternal(sourceLineString, transformOptions, generalGcpToP));\n }\n else if (isMultiPolygon(sourceGeometry)) {\n return sourceGeometry.map((sourcePolygon) => this.transformPolygonForwardInternal(sourcePolygon, transformOptions, generalGcpToP));\n }\n else {\n throw new Error('Geometry type not supported');\n }\n }\n }\n /**\n * Transform a geometry backward from destination space to source space\n *\n * @param destinationGeometry - Geometry to transform\n * @param partialGeneralGcpTransformOptions - General GCP Transform options\n * @param generalGcpToP - Return type function\n * @returns Backward transform of input geometry\n */\n transformBackwardInternal(destinationGeometry, partialGeneralGcpTransformOptions, generalGcpToP = generalGcpToPointForBackward) {\n let transformOptions = mergeOptions(this.transformerOptions, partialGeneralGcpTransformOptions);\n if (this.isNonWarping()) {\n transformOptions = mergeOptions(transformOptions, { maxDepth: 0 });\n }\n if (!transformOptions.isMultiGeometry) {\n if (isPoint(destinationGeometry)) {\n return this.transformPointBackwardInternal(destinationGeometry, transformOptions, generalGcpToP);\n }\n else if (isLineString(destinationGeometry)) {\n return this.transformLineStringBackwardInternal(destinationGeometry, transformOptions, generalGcpToP);\n }\n else if (isPolygon(destinationGeometry)) {\n return this.transformPolygonBackwardInternal(destinationGeometry, transformOptions, generalGcpToP);\n }\n else {\n throw new Error('Geometry type not supported');\n }\n }\n else {\n if (transformOptions) {\n transformOptions = mergeOptions(transformOptions, {\n isMultiGeometry: false\n }); // false for piecewise single geometries\n }\n if (isMultiPoint(destinationGeometry)) {\n return destinationGeometry.map((destinationPoint) => this.transformPointBackwardInternal(destinationPoint, transformOptions, generalGcpToP));\n }\n else if (isMultiLineString(destinationGeometry)) {\n return destinationGeometry.map((destinationLineString) => this.transformLineStringBackwardInternal(destinationLineString, transformOptions, generalGcpToP));\n }\n else if (isMultiPolygon(destinationGeometry)) {\n return destinationGeometry.map((destinationPolygon) => this.transformPolygonBackwardInternal(destinationPolygon, transformOptions, generalGcpToP));\n }\n else {\n throw new Error('Geometry type not supported');\n }\n }\n }\n // Handle specific geometries\n transformPointForwardInternal(point, generalGcpTransformOptions, generalGcpToP = generalGcpToPointForForward) {\n const forwardTransformation = this.getForwardTransformationInternal();\n let source = this.transformerOptions.differentHandedness\n ? flipY(point)\n : point;\n source = generalGcpTransformOptions.preForward(source);\n let destination = forwardTransformation.evaluateFunction(source);\n destination = generalGcpTransformOptions.postForward(destination);\n let partialDerivativeX = undefined;\n let partialDerivativeY = undefined;\n let distortions = new Map();\n if (generalGcpTransformOptions.distortionMeasures.length > 0) {\n partialDerivativeX =\n forwardTransformation.evaluatePartialDerivativeX(source);\n partialDerivativeY =\n forwardTransformation.evaluatePartialDerivativeY(source);\n distortions = computeDistortionsFromPartialDerivatives(generalGcpTransformOptions.distortionMeasures, partialDerivativeX, partialDerivativeY, generalGcpTransformOptions.referenceScale);\n }\n return generalGcpToP({\n source: point, // don't apply differentHandedness here, this is only internally.\n destination,\n partialDerivativeX,\n partialDerivativeY,\n distortions\n });\n }\n transformPointBackwardInternal(point, generalGcpTransformOptions, generalGcpToP = generalGcpToPointForBackward) {\n const backwardTransformation = this.getBackwardTransformationInternal();\n const destination = generalGcpTransformOptions.preBackward(point);\n let source = backwardTransformation.evaluateFunction(destination);\n // apply differentHandedness here again, so it has been applied twice in total and is undone now.\n source = generalGcpTransformOptions.postBackward(source);\n source = this.transformerOptions.differentHandedness\n ? flipY(source)\n : source;\n let partialDerivativeX = undefined;\n let partialDerivativeY = undefined;\n let distortions = new Map();\n if (generalGcpTransformOptions.distortionMeasures.length > 0) {\n partialDerivativeX =\n backwardTransformation.evaluatePartialDerivativeX(destination);\n partialDerivativeX = this.transformerOptions.differentHandedness\n ? flipY(partialDerivativeX)\n : partialDerivativeX;\n partialDerivativeY =\n backwardTransformation.evaluatePartialDerivativeY(destination);\n partialDerivativeY = this.transformerOptions.differentHandedness\n ? flipY(partialDerivativeY)\n : partialDerivativeY;\n distortions = computeDistortionsFromPartialDerivatives(generalGcpTransformOptions.distortionMeasures, partialDerivativeX, partialDerivativeY, generalGcpTransformOptions.referenceScale);\n }\n return generalGcpToP({\n source,\n destination,\n partialDerivativeX,\n partialDerivativeY,\n distortions\n });\n }\n transformLineStringForwardInternal(lineString, generalGcpTransformOptions, generalGcpToP) {\n return refineLineString(lineString, (p) => this.transformPointForwardInternal(p, generalGcpTransformOptions), refinementOptionsFromForwardTransformOptions(generalGcpTransformOptions)).map((generalGcp) => generalGcpToP(generalGcp));\n }\n transformLineStringBackwardInternal(lineString, generalGcpTransformOptions, generalGcpToP) {\n return refineLineString(lineString, (p) => this.transformPointBackwardInternal(p, generalGcpTransformOptions), refinementOptionsFromBackwardTransformOptions(generalGcpTransformOptions)).map((generalGcp) => generalGcpToP(invertGeneralGcp(generalGcp)));\n }\n transformRingForwardInternal(ring, generalGcpTransformOptions, generalGcpToP) {\n return refineRing(ring, (p) => this.transformPointForwardInternal(p, generalGcpTransformOptions), refinementOptionsFromForwardTransformOptions(generalGcpTransformOptions)).map((generalGcp) => generalGcpToP(generalGcp));\n }\n transformRingBackwardInternal(ring, generalGcpTransformOptions, generalGcpToP) {\n return refineRing(ring, (p) => this.transformPointBackwardInternal(p, generalGcpTransformOptions), refinementOptionsFromBackwardTransformOptions(generalGcpTransformOptions)).map((generalGcp) => generalGcpToP(invertGeneralGcp(generalGcp)));\n }\n transformPolygonForwardInternal(polygon, generalGcpTransformOptions, generalGcpToP) {\n return polygon.map((ring) => {\n return this.transformRingForwardInternal(ring, generalGcpTransformOptions, generalGcpToP);\n });\n }\n transformPolygonBackwardInternal(polygon, generalGcpTransformOptions, generalGcpToP) {\n return polygon.map((ring) => {\n return this.transformRingBackwardInternal(ring, generalGcpTransformOptions, generalGcpToP);\n });\n }\n isNonWarping() {\n return (this.transformerOptions.postForward ===\n this.transformerOptions.preBackward &&\n this.transformerOptions.postBackward ===\n this.transformerOptions.preForward &&\n nonWarpingTransformationTypes.includes(this.type));\n }\n getForwardTransformationResolutionInternal(sourceBbox, partialGeneralGcpTransformOptions) {\n const transformOptions = mergeOptions(this.transformerOptions, partialGeneralGcpTransformOptions);\n sourceBbox = sourceBbox ?? computeBbox(this.sourcePointsInternal);\n return getSourceRefinementResolution(sourceBbox, (p) => this.transformPointForwardInternal(p, transformOptions), refinementOptionsFromForwardTransformOptions(transformOptions));\n }\n getBackwardTransformationResolutionInternal(destinationBbox, partialGeneralGcpTransformOptions) {\n const transformOptions = mergeOptions(this.transformerOptions, partialGeneralGcpTransformOptions);\n destinationBbox =\n destinationBbox ?? computeBbox(this.destinationPointsInternal);\n return getSourceRefinementResolution(destinationBbox, (p) => this.transformPointBackwardInternal(p, transformOptions), refinementOptionsFromBackwardTransformOptions(transformOptions));\n }\n}\n"],"names":["BaseGcpTransformer","generalGcps","type","partialGeneralGcpTransformerOptions","mergeOptions","defaultGeneralGcpTransformerOptions","generalGcp","source","flipY","sourcePoints","destinationPoints","Straight","Helmert","Polynomial1","Polynomial2","Polynomial3","Projective","RBF","thinPlateKernel","euclideanNorm","linearKernel","sourceGeometry","partialGeneralGcpTransformOptions","generalGcpToP","generalGcpToPointForForward","transformOptions","isMultiPoint","sourcePoint","isMultiLineString","sourceLineString","isMultiPolygon","sourcePolygon","isPoint","isLineString","isPolygon","destinationGeometry","generalGcpToPointForBackward","destinationPoint","destinationLineString","destinationPolygon","point","generalGcpTransformOptions","forwardTransformation","destination","partialDerivativeX","partialDerivativeY","distortions","computeDistortionsFromPartialDerivatives","backwardTransformation","lineString","refineLineString","p","refinementOptionsFromForwardTransformOptions","refinementOptionsFromBackwardTransformOptions","invertGeneralGcp","ring","refineRing","polygon","nonWarpingTransformationTypes","sourceBbox","computeBbox","getSourceRefinementResolution","destinationBbox"],"mappings":"skBA8BO,MAAMA,CAAmB,CAC5B,oBACA,qBACA,0BACA,KACA,mBACA,sBACA,uBAOI,YAAYC,EAAaC,EAAO,aAAcC,EAAqC,CAEnF,GADA,KAAK,mBAAqBC,eAAaC,EAAAA,oCAAqCF,CAAmC,EAC3GF,EAAY,SAAW,EACvB,MAAM,IAAI,MAAM,mBAAmB,EAEvC,KAAK,oBAAsBA,EAC3B,KAAK,qBAAuB,KAAK,oBAAoB,IAAKK,GAAe,CACrE,MAAMC,EAAS,KAAK,mBAAmB,oBACjCC,EAAAA,MAAMF,EAAW,MAAM,EACvBA,EAAW,OACjB,OAAO,KAAK,mBAAmB,WAAWC,CAAM,CACpD,CAAC,EACD,KAAK,0BAA4B,KAAK,oBAAoB,IAAKD,GAAe,KAAK,mBAAmB,YAAYA,EAAW,WAAW,CAAC,EACzI,KAAK,KAAOJ,CAChB,CAIA,kCAAmC,CAC/B,OAAK,KAAK,wBACN,KAAK,sBAAwB,KAAK,qBAAqB,KAAK,qBAAsB,KAAK,yBAAyB,GAE7G,KAAK,qBAChB,CAIA,mCAAoC,CAChC,OAAK,KAAK,yBACN,KAAK,uBAAyB,KAAK,qBAAqB,KAAK,0BAA2B,KAAK,oBAAoB,GAE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,GACT,KAAK,6BAA6BA,EAAMd,EAA4BlB,CAAa,CAC3F,CACL,CACA,iCAAiCkC,EAAShB,EAA4BlB,EAAe,CACjF,OAAOkC,EAAQ,IAAKF,GACT,KAAK,8BAA8BA,EAAMd,EAA4BlB,CAAa,CAC5F,CACL,CACA,cAAe,CACX,OAAQ,KAAK,mBAAmB,cAC5B,KAAK,mBAAmB,aACxB,KAAK,mBAAmB,eACpB,KAAK,mBAAmB,YAC5BmC,EAAAA,8BAA8B,SAAS,KAAK,IAAI,CACxD,CACA,2CAA2CC,EAAYrC,EAAmC,CACtF,MAAMG,EAAmBrB,EAAAA,aAAa,KAAK,mBAAoBkB,CAAiC,EAChG,OAAAqC,EAAaA,GAAcC,cAAY,KAAK,oBAAoB,EACzDC,gCAA8BF,EAAaR,GAAM,KAAK,8BAA8BA,EAAG1B,CAAgB,EAAG2B,EAAAA,6CAA6C3B,CAAgB,CAAC,CACnL,CACA,4CAA4CqC,EAAiBxC,EAAmC,CAC5F,MAAMG,EAAmBrB,EAAAA,aAAa,KAAK,mBAAoBkB,CAAiC,EAChG,OAAAwC,EACIA,GAAmBF,cAAY,KAAK,yBAAyB,EAC1DC,gCAA8BC,EAAkBX,GAAM,KAAK,+BAA+BA,EAAG1B,CAAgB,EAAG4B,EAAAA,8CAA8C5B,CAAgB,CAAC,CAC1L,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(o){return{source:o.destination,destination:o.source}}function t(o){return o.destination}function i(o){return o.source}function e(o){return o.geo}function n(o){return o.resource}function a(o){return{resource:o.source,geo:o.destination,partialDerivativeX:o.partialDerivativeX,partialDerivativeY:o.partialDerivativeY,distortions:o.distortions,distortion:o.distortion}}function s(o){return{source:o.resource,destination:o.geo,partialDerivativeX:o.partialDerivativeX,partialDerivativeY:o.partialDerivativeY,distortions:o.distortions,distortion:o.distortion}}exports.gcpToGeneralGcp=s;exports.gcpToPointForToGeo=e;exports.gcpToPointForToResource=n;exports.generalGcpToGcp=a;exports.generalGcpToPointForBackward=i;exports.generalGcpToPointForForward=t;exports.invertGeneralGcp=r;
2
+ //# sourceMappingURL=index.cjs406.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs406.js","sources":["../../../node_modules/@allmaps/transform/dist/shared/conversion-functions.js"],"sourcesContent":["// Invert\nexport function invertGeneralGcp(generalGcp) {\n return { source: generalGcp.destination, destination: generalGcp.source };\n}\nexport function invertGcp(gcp) {\n return { resource: gcp.geo, geo: gcp.resource };\n}\n// Select\nexport function generalGcpToPointForForward(generalGcp) {\n return generalGcp.destination;\n}\nexport function generalGcpToPointForBackward(generalGcp) {\n return generalGcp.source;\n}\nexport function gcpToPointForToGeo(gcp) {\n return gcp.geo;\n}\nexport function gcpToPointForToResource(gcp) {\n return gcp.resource;\n}\n// GeneralGcp <> G\nexport function generalGcpToGcp(generalGcp) {\n return {\n resource: generalGcp.source,\n geo: generalGcp.destination,\n partialDerivativeX: generalGcp.partialDerivativeX,\n partialDerivativeY: generalGcp.partialDerivativeY,\n distortions: generalGcp.distortions,\n distortion: generalGcp.distortion\n };\n}\nexport function gcpToGeneralGcp(gcp) {\n return {\n source: gcp.resource,\n destination: gcp.geo,\n partialDerivativeX: gcp.partialDerivativeX,\n partialDerivativeY: gcp.partialDerivativeY,\n distortions: gcp.distortions,\n distortion: gcp.distortion\n };\n}\n// TransformationType\n// TODO: implement this as a separate, callable function in @allmaps/annotation?\nexport function transformationTypeToTypeAndOrder(transformationType) {\n if (transformationType === 'polynomial' ||\n transformationType === 'polynomial1') {\n return {\n type: 'polynomial',\n options: {\n order: 1\n }\n };\n }\n else if (transformationType === 'polynomial2') {\n return {\n type: 'polynomial',\n options: {\n order: 2\n }\n };\n }\n else if (transformationType === 'polynomial3') {\n return {\n type: 'polynomial',\n options: {\n order: 3\n }\n };\n }\n else {\n return {\n type: transformationType\n };\n }\n}\nexport function typeAndOrderToTransformationType(transformation) {\n const type = transformation.type;\n const order = transformation.options?.order;\n let transformationType;\n if (type == 'polynomial1' || type === 'polynomial') {\n transformationType = 'polynomial1';\n }\n else if (type == 'polynomial2' || (type === 'polynomial' && order === 2)) {\n transformationType = 'polynomial2';\n }\n else if (type == 'polynomial3' || (type === 'polynomial' && order === 3)) {\n transformationType = 'polynomial3';\n }\n else if (type === 'thinPlateSpline') {\n transformationType = type;\n }\n else if (type === 'linear') {\n transformationType = type;\n }\n else if (type === 'helmert') {\n transformationType = type;\n }\n else if (type === 'projective') {\n transformationType = type;\n }\n else {\n throw new Error('Unrecognised transformationType.');\n }\n return transformationType;\n}\n"],"names":["invertGeneralGcp","generalGcp","generalGcpToPointForForward","generalGcpToPointForBackward","gcpToPointForToGeo","gcp","gcpToPointForToResource","generalGcpToGcp","gcpToGeneralGcp"],"mappings":"gFACO,SAASA,EAAiBC,EAAY,CACzC,MAAO,CAAE,OAAQA,EAAW,YAAa,YAAaA,EAAW,MAAA,CACrE,CAKO,SAASC,EAA4BD,EAAY,CACpD,OAAOA,EAAW,WACtB,CACO,SAASE,EAA6BF,EAAY,CACrD,OAAOA,EAAW,MACtB,CACO,SAASG,EAAmBC,EAAK,CACpC,OAAOA,EAAI,GACf,CACO,SAASC,EAAwBD,EAAK,CACzC,OAAOA,EAAI,QACf,CAEO,SAASE,EAAgBN,EAAY,CACxC,MAAO,CACH,SAAUA,EAAW,OACrB,IAAKA,EAAW,YAChB,mBAAoBA,EAAW,mBAC/B,mBAAoBA,EAAW,mBAC/B,YAAaA,EAAW,YACxB,WAAYA,EAAW,UAAA,CAE/B,CACO,SAASO,EAAgBH,EAAK,CACjC,MAAO,CACH,OAAQA,EAAI,SACZ,YAAaA,EAAI,IACjB,mBAAoBA,EAAI,mBACxB,mBAAoBA,EAAI,mBACxB,YAAaA,EAAI,YACjB,WAAYA,EAAI,UAAA,CAExB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs408.js");class o extends n.BaseLinearWeightsTransformation{constructor(e,r,t,s){super(e,r,t,s)}getCoefsArrayMatrices(){const e=this.getCoefsArrayMatrix();return[e,e]}getSourcePointCoefsArrays(e){const r=this.getSourcePointCoefsArray(e);return[r,r]}}exports.BaseIndependentLinearWeightsTransformation=o;
2
+ //# sourceMappingURL=index.cjs407.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs407.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/BaseIndependentLinearWeightsTransformation.js"],"sourcesContent":["import { BaseLinearWeightsTransformation } from './BaseLinearWeightsTransformation.js';\n/**\n * Base class for transformation that are a linear combination of weights,\n * where the system of equations for x and y are independent and can hence be solved separately.\n */\nexport class BaseIndependentLinearWeightsTransformation extends BaseLinearWeightsTransformation {\n constructor(sourcePoints, destinationPoints, type, pointCountMinimum) {\n super(sourcePoints, destinationPoints, type, pointCountMinimum);\n }\n getCoefsArrayMatrices() {\n const coefsArrayMatrix = this.getCoefsArrayMatrix();\n return [coefsArrayMatrix, coefsArrayMatrix];\n }\n getSourcePointCoefsArrays(sourcePoint) {\n const sourcePointCoefsArray = this.getSourcePointCoefsArray(sourcePoint);\n return [sourcePointCoefsArray, sourcePointCoefsArray];\n }\n}\n"],"names":["BaseIndependentLinearWeightsTransformation","BaseLinearWeightsTransformation","sourcePoints","destinationPoints","type","pointCountMinimum","coefsArrayMatrix","sourcePoint","sourcePointCoefsArray"],"mappings":"qHAKO,MAAMA,UAAmDC,EAAAA,+BAAgC,CAC5F,YAAYC,EAAcC,EAAmBC,EAAMC,EAAmB,CAClE,MAAMH,EAAcC,EAAmBC,EAAMC,CAAiB,CAClE,CACA,uBAAwB,CACpB,MAAMC,EAAmB,KAAK,oBAAA,EAC9B,MAAO,CAACA,EAAkBA,CAAgB,CAC9C,CACA,0BAA0BC,EAAa,CACnC,MAAMC,EAAwB,KAAK,yBAAyBD,CAAW,EACvE,MAAO,CAACC,EAAuBA,CAAqB,CACxD,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs409.js");class a extends n.BaseTransformation{destinationPointsArrays;constructor(s,t,r,e){super(s,t,r,e),this.destinationPointsArrays=this.getDestinationPointsArrays()}}exports.BaseLinearWeightsTransformation=a;
2
+ //# sourceMappingURL=index.cjs408.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs408.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/BaseLinearWeightsTransformation.js"],"sourcesContent":["import { BaseTransformation } from './BaseTransformation.js';\n/**\n * Base class for transformation that are a linear combination of weights.\n *\n * In general, the system of equations for x and y are dependent on each other, and they are thus solved jointly.\n * For transformations where the system of equations for x and y are independent and can hence be solved separately, a dedicated class exists.\n */\nexport class BaseLinearWeightsTransformation extends BaseTransformation {\n destinationPointsArrays;\n constructor(sourcePoints, destinationPoints, type, pointCountMinimum) {\n super(sourcePoints, destinationPoints, type, pointCountMinimum);\n this.destinationPointsArrays = this.getDestinationPointsArrays();\n }\n}\n"],"names":["BaseLinearWeightsTransformation","BaseTransformation","sourcePoints","destinationPoints","type","pointCountMinimum"],"mappings":"qHAOO,MAAMA,UAAwCC,EAAAA,kBAAmB,CACpE,wBACA,YAAYC,EAAcC,EAAmBC,EAAMC,EAAmB,CAClE,MAAMH,EAAcC,EAAmBC,EAAMC,CAAiB,EAC9D,KAAK,wBAA0B,KAAK,2BAAA,CACxC,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs274.js");class e{sourcePoints;destinationPoints;destinationTransformedSourcePoints;type;pointCount;pointCountMinimum;errors;destinationRmse;constructor(t,i,s,o){if(this.sourcePoints=t,this.destinationPoints=i,this.pointCount=this.sourcePoints.length,this.type=s,this.pointCountMinimum=o,this.pointCount<this.pointCountMinimum)throw new Error("Not enough control points. A "+this.type+" transformation requires a minimum of "+this.pointCountMinimum+" points, but "+this.pointCount+" are given.")}setWeightsArrays(t){this.weightsArrays=t,this.processWeightsArrays()}processWeightsArrays(){}getDestinationTransformedSourcePoints(){return this.destinationTransformedSourcePoints||(this.destinationTransformedSourcePoints=this.sourcePoints.map(t=>this.evaluateFunction(t))),this.destinationTransformedSourcePoints}getMeasures(){return{}}getErrors(){if(!this.errors){const t=this.getDestinationTransformedSourcePoints();this.errors=this.destinationPoints.map((i,s)=>n.distance(i,t[s]))}return this.errors}getDestinationRmse(){if(!this.destinationRmse){const t=this.getDestinationTransformedSourcePoints();this.destinationTransformedSourcePoints||this.getDestinationTransformedSourcePoints(),this.destinationRmse=n.rms(this.destinationPoints,t)}return this.destinationRmse}}exports.BaseTransformation=e;
2
+ //# sourceMappingURL=index.cjs409.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs409.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/BaseTransformation.js"],"sourcesContent":["import { distance, rms } from '@allmaps/stdlib';\n/**\n * Base class for transformation.\n */\nexport class BaseTransformation {\n sourcePoints;\n destinationPoints;\n destinationTransformedSourcePoints;\n type;\n pointCount;\n pointCountMinimum;\n errors;\n destinationRmse;\n /**\n * Create a transformation\n *\n * @param sourcePoints - The source points\n * @param destinationPoints - The destination points\n * @param type - The transformation type\n * @param pointCountMinimum - The minimum number of points for the transformation type\n */\n constructor(sourcePoints, destinationPoints, type, pointCountMinimum) {\n this.sourcePoints = sourcePoints;\n this.destinationPoints = destinationPoints;\n this.pointCount = this.sourcePoints.length;\n this.type = type;\n this.pointCountMinimum = pointCountMinimum;\n if (this.pointCount < this.pointCountMinimum) {\n throw new Error('Not enough control points. A ' +\n this.type +\n ' transformation requires a minimum of ' +\n this.pointCountMinimum +\n ' points, but ' +\n this.pointCount +\n ' are given.');\n }\n }\n /**\n * Set weights.\n *\n * The weights might be obtained in other ways then through solving\n * (e.g. through solving multiple transformation together when staping).\n * This function can be used to set weights computed elsewhere.\n */\n setWeightsArrays(weightsArrays) {\n this.weightsArrays = weightsArrays;\n this.processWeightsArrays();\n }\n processWeightsArrays() {\n return;\n }\n /**\n * Get the destination-transformed source points.\n *\n * @returns source points, transformed to destination domain\n */\n getDestinationTransformedSourcePoints() {\n if (!this.destinationTransformedSourcePoints) {\n this.destinationTransformedSourcePoints = this.sourcePoints.map((sourcePoint) => this.evaluateFunction(sourcePoint));\n }\n return this.destinationTransformedSourcePoints;\n }\n getMeasures() {\n return {};\n }\n getErrors() {\n if (!this.errors) {\n const destinationTransformedSourcePoints = this.getDestinationTransformedSourcePoints();\n this.errors = this.destinationPoints.map((destinationPoint, index) => distance(destinationPoint, destinationTransformedSourcePoints[index]));\n }\n return this.errors;\n }\n getDestinationRmse() {\n if (!this.destinationRmse) {\n const destinationTransformedSourcePoints = this.getDestinationTransformedSourcePoints();\n if (!this.destinationTransformedSourcePoints) {\n this.getDestinationTransformedSourcePoints();\n }\n this.destinationRmse = rms(this.destinationPoints, destinationTransformedSourcePoints);\n }\n return this.destinationRmse;\n }\n}\n"],"names":["BaseTransformation","sourcePoints","destinationPoints","type","pointCountMinimum","weightsArrays","sourcePoint","destinationTransformedSourcePoints","destinationPoint","index","distance","rms"],"mappings":"qHAIO,MAAMA,CAAmB,CAC5B,aACA,kBACA,mCACA,KACA,WACA,kBACA,OACA,gBASA,YAAYC,EAAcC,EAAmBC,EAAMC,EAAmB,CAMlE,GALA,KAAK,aAAeH,EACpB,KAAK,kBAAoBC,EACzB,KAAK,WAAa,KAAK,aAAa,OACpC,KAAK,KAAOC,EACZ,KAAK,kBAAoBC,EACrB,KAAK,WAAa,KAAK,kBACvB,MAAM,IAAI,MAAM,gCACZ,KAAK,KACL,yCACA,KAAK,kBACL,gBACA,KAAK,WACL,aAAa,CAEzB,CAQA,iBAAiBC,EAAe,CAC5B,KAAK,cAAgBA,EACrB,KAAK,qBAAA,CACT,CACA,sBAAuB,CAEvB,CAMA,uCAAwC,CACpC,OAAK,KAAK,qCACN,KAAK,mCAAqC,KAAK,aAAa,IAAKC,GAAgB,KAAK,iBAAiBA,CAAW,CAAC,GAEhH,KAAK,kCAChB,CACA,aAAc,CACV,MAAO,CAAA,CACX,CACA,WAAY,CACR,GAAI,CAAC,KAAK,OAAQ,CACd,MAAMC,EAAqC,KAAK,sCAAA,EAChD,KAAK,OAAS,KAAK,kBAAkB,IAAI,CAACC,EAAkBC,IAAUC,EAAAA,SAASF,EAAkBD,EAAmCE,CAAK,CAAC,CAAC,CAC/I,CACA,OAAO,KAAK,MAChB,CACA,oBAAqB,CACjB,GAAI,CAAC,KAAK,gBAAiB,CACvB,MAAMF,EAAqC,KAAK,sCAAA,EAC3C,KAAK,oCACN,KAAK,sCAAA,EAET,KAAK,gBAAkBI,EAAAA,IAAI,KAAK,kBAAmBJ,CAAkC,CACzF,CACA,OAAO,KAAK,eAChB,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs333.js"),o=require("./index.cjs407.js"),n=require("./index.cjs411.js");class y extends o.BaseIndependentLinearWeightsTransformation{coefsArrayMatrices;coefsArrayMatrix;coefsArrayMatricesSize;coefsArrayMatrixSize;order;weightsArrays;constructor(r,t,s){s=s||1;const e=(s+1)*(s+2)/2;if(super(r,t,"polynomial"+s,e),this.order=s,this.order<1||this.order>3)throw new Error("Only polynomial transformations of order 1, 2 or 3 are supported");this.coefsArrayMatrices=this.getCoefsArrayMatrices(),this.coefsArrayMatrix=this.coefsArrayMatrices[0],this.coefsArrayMatricesSize=this.coefsArrayMatrices.map(a=>i.arrayMatrixSize(a)),this.coefsArrayMatrixSize=i.arrayMatrixSize(this.coefsArrayMatrix)}getDestinationPointsArrays(){return[this.destinationPoints.map(r=>r[0]),this.destinationPoints.map(r=>r[1])]}getCoefsArrayMatrix(){let r=i.newArrayMatrix(this.pointCount,this.pointCountMinimum,0);for(let t=0;t<this.pointCount;t++)r=i.pasteArrayMatrix(r,t,0,[this.getSourcePointCoefsArray(this.sourcePoints[t])]);return r}solve(){this.weightsArrays=n.solveIndependentlyPseudoInverse(this.coefsArrayMatrix,this.destinationPointsArrays)}getTransformationDataAsFloat64Array(){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Polynomial transformation weights not computed");return{weights:new Float64Array([...this.weightsArrays[0],...this.weightsArrays[1]]),sourcePoints:new Float64Array(0)}}}exports.BasePolynomialTransformation=y;
2
+ //# sourceMappingURL=index.cjs410.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs410.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/BasePolynomialTransformation.js"],"sourcesContent":["import { arrayMatrixSize, newArrayMatrix, pasteArrayMatrix } from '@allmaps/stdlib';\nimport { BaseIndependentLinearWeightsTransformation } from './BaseIndependentLinearWeightsTransformation.js';\nimport { solveIndependentlyPseudoInverse } from '../shared/solve-functions.js';\nexport class BasePolynomialTransformation extends BaseIndependentLinearWeightsTransformation {\n coefsArrayMatrices;\n coefsArrayMatrix;\n coefsArrayMatricesSize;\n coefsArrayMatrixSize;\n order;\n weightsArrays;\n constructor(sourcePoints, destinationPoints, order) {\n order = order || 1;\n const pointsCountMinimum = ((order + 1) * (order + 2)) / 2;\n // If there are less control points than there are coefficients to be determined (for each dimension),\n // the system can not be solved\n super(sourcePoints, destinationPoints, ('polynomial' + order), pointsCountMinimum);\n this.order = order;\n if (this.order < 1 || this.order > 3) {\n throw new Error('Only polynomial transformations of order 1, 2 or 3 are supported');\n }\n this.coefsArrayMatrices = this.getCoefsArrayMatrices();\n this.coefsArrayMatrix = this.coefsArrayMatrices[0];\n this.coefsArrayMatricesSize = this.coefsArrayMatrices.map((coefsArrayMatrix) => arrayMatrixSize(coefsArrayMatrix));\n this.coefsArrayMatrixSize = arrayMatrixSize(this.coefsArrayMatrix);\n }\n getDestinationPointsArrays() {\n return [\n this.destinationPoints.map((value) => value[0]),\n this.destinationPoints.map((value) => value[1])\n ];\n }\n getCoefsArrayMatrix() {\n let coefsArrayArray = newArrayMatrix(this.pointCount, this.pointCountMinimum, 0);\n for (let i = 0; i < this.pointCount; i++) {\n coefsArrayArray = pasteArrayMatrix(coefsArrayArray, i, 0, [\n this.getSourcePointCoefsArray(this.sourcePoints[i])\n ]);\n }\n return coefsArrayArray;\n }\n solve() {\n this.weightsArrays = solveIndependentlyPseudoInverse(this.coefsArrayMatrix, this.destinationPointsArrays);\n }\n getTransformationDataAsFloat64Array() {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Polynomial transformation weights not computed');\n }\n // Polynomial: [wx[0], wx[1], ..., wy[0], wy[1], ...]\n return {\n weights: new Float64Array([\n ...this.weightsArrays[0],\n ...this.weightsArrays[1]\n ]),\n sourcePoints: new Float64Array(0)\n };\n }\n}\n"],"names":["BasePolynomialTransformation","BaseIndependentLinearWeightsTransformation","sourcePoints","destinationPoints","order","pointsCountMinimum","coefsArrayMatrix","arrayMatrixSize","value","coefsArrayArray","newArrayMatrix","i","pasteArrayMatrix","solveIndependentlyPseudoInverse"],"mappings":"mLAGO,MAAMA,UAAqCC,EAAAA,0CAA2C,CACzF,mBACA,iBACA,uBACA,qBACA,MACA,cACA,YAAYC,EAAcC,EAAmBC,EAAO,CAChDA,EAAQA,GAAS,EACjB,MAAMC,GAAuBD,EAAQ,IAAMA,EAAQ,GAAM,EAKzD,GAFA,MAAMF,EAAcC,EAAoB,aAAeC,EAAQC,CAAkB,EACjF,KAAK,MAAQD,EACT,KAAK,MAAQ,GAAK,KAAK,MAAQ,EAC/B,MAAM,IAAI,MAAM,kEAAkE,EAEtF,KAAK,mBAAqB,KAAK,sBAAA,EAC/B,KAAK,iBAAmB,KAAK,mBAAmB,CAAC,EACjD,KAAK,uBAAyB,KAAK,mBAAmB,IAAKE,GAAqBC,kBAAgBD,CAAgB,CAAC,EACjH,KAAK,qBAAuBC,kBAAgB,KAAK,gBAAgB,CACrE,CACA,4BAA6B,CACzB,MAAO,CACH,KAAK,kBAAkB,IAAKC,GAAUA,EAAM,CAAC,CAAC,EAC9C,KAAK,kBAAkB,IAAKA,GAAUA,EAAM,CAAC,CAAC,CAAA,CAEtD,CACA,qBAAsB,CAClB,IAAIC,EAAkBC,EAAAA,eAAe,KAAK,WAAY,KAAK,kBAAmB,CAAC,EAC/E,QAASC,EAAI,EAAGA,EAAI,KAAK,WAAYA,IACjCF,EAAkBG,EAAAA,iBAAiBH,EAAiBE,EAAG,EAAG,CACtD,KAAK,yBAAyB,KAAK,aAAaA,CAAC,CAAC,CAAA,CACrD,EAEL,OAAOF,CACX,CACA,OAAQ,CACJ,KAAK,cAAgBI,EAAAA,gCAAgC,KAAK,iBAAkB,KAAK,uBAAuB,CAC5G,CACA,qCAAsC,CAIlC,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,gDAAgD,EAGpE,MAAO,CACH,QAAS,IAAI,aAAa,CACtB,GAAG,KAAK,cAAc,CAAC,EACvB,GAAG,KAAK,cAAc,CAAC,CAAA,CAC1B,EACD,aAAc,IAAI,aAAa,CAAC,CAAA,CAExC,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs420.js");function c(s,t){const o=new e.default([...s[0],...s[1]]),n=e.default.columnVector([...t[0],...t[1]]);return e.pseudoInverse(o).mmul(n).to1DArray()}function l(s,t){const o=new e.default(s),n=[e.default.columnVector(t[0]),e.default.columnVector(t[1])],r=e.pseudoInverse(o);return[r.mmul(n[0]),r.mmul(n[1])].map(a=>a.to1DArray())}function d(s,t){const o=new e.default(s),n=[e.default.columnVector(t[0]),e.default.columnVector(t[1])],r=e.inverse(o);return[r.mmul(n[0]),r.mmul(n[1])].map(a=>a.to1DArray())}function v(s,t){const o=[];for(let i=0;i<t;i++)o.push(s[0][i]),o.push(s[1][i]);const n=new e.SingularValueDecomposition(o);return e.default.from1DArray(3,3,n.rightSingularVectors.getColumn(8)).transpose().to2DArray()}exports.solveIndependentlyInverse=d;exports.solveIndependentlyPseudoInverse=l;exports.solveJointlyPseudoInverse=c;exports.solveJointlySvd=v;
2
+ //# sourceMappingURL=index.cjs411.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs411.js","sources":["../../../node_modules/@allmaps/transform/dist/shared/solve-functions.js"],"sourcesContent":["import Matrix, { inverse, pseudoInverse, SingularValueDecomposition } from 'ml-matrix';\n/**\n * Solve the x and y components jointly using PseudoInverse.\n *\n * This uses the 'Pseudo Inverse' to compute a 'best fit' (least squares) approximate solution\n * for the system of linear equations, which is (in general) over-defined and hence lacks an exact solution.\n * See https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_inverse\n *\n * This will result weightsArray shared by both components: [t_x, t_y, m, n]\n */\nexport function solveJointlyPseudoInverse(coefsArrayMatrices, destinationPointsArrays) {\n const coefsMatrix = new Matrix([\n ...coefsArrayMatrices[0],\n ...coefsArrayMatrices[1]\n ]);\n const destinationPointsMatrix = Matrix.columnVector([\n ...destinationPointsArrays[0],\n ...destinationPointsArrays[1]\n ]);\n const pseudoInverseCoefsMatrix = pseudoInverse(coefsMatrix);\n const weightsMatrix = pseudoInverseCoefsMatrix.mmul(destinationPointsMatrix);\n const weightsArray = weightsMatrix.to1DArray();\n return weightsArray;\n}\n/**\n * Solve the x and y components independently using PseudoInverse.\n *\n * This uses the 'Pseudo Inverse' to compute (for each component, using the same coefs for both)\n * a 'best fit' (least squares) approximate solution for the system of linear equations\n * which is (in general) over-defined and hence lacks an exact solution.\n *\n * See https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_inverse\n *\n * This wil result in a weights array for each component:\n * For order = 1: this.weight = [[a0_x, ax_x, ay_x], [a0_y, ax_y, ay_y]]\n * For order = 2: ... (similar, following the same order as in coefsArrayMatrix)\n * For order = 3: ... (similar, following the same order as in coefsArrayMatrix)\n */\nexport function solveIndependentlyPseudoInverse(coefsArrayMatrix, destinationPointsArrays) {\n const coefsMatrix = new Matrix(coefsArrayMatrix);\n const destinationPointsMatrices = [\n Matrix.columnVector(destinationPointsArrays[0]),\n Matrix.columnVector(destinationPointsArrays[1])\n ];\n const pseudoInverseCoefsMatrix = pseudoInverse(coefsMatrix);\n const weightsMatrices = [\n pseudoInverseCoefsMatrix.mmul(destinationPointsMatrices[0]),\n pseudoInverseCoefsMatrix.mmul(destinationPointsMatrices[1])\n ];\n const weightsArrays = weightsMatrices.map((matrix) => matrix.to1DArray());\n return weightsArrays;\n}\n/**\n * Solve the x and y components independently using exact inverse.\n *\n * This uses the exact inverse to compute (for each component, using the same coefs for both)\n * the exact solution for the system of linear equations\n * which is (in general) invertable to an exact solution.\n *\n * This wil result in a weights array for each component with rbf weights and affine weights.\n */\nexport function solveIndependentlyInverse(coefsArrayMatrix, destinationPointsArrays) {\n const coefsMatrix = new Matrix(coefsArrayMatrix);\n const destinationPointsMatrices = [\n Matrix.columnVector(destinationPointsArrays[0]),\n Matrix.columnVector(destinationPointsArrays[1])\n ];\n const inverseCoefsMatrix = inverse(coefsMatrix);\n const weightsMatrices = [\n inverseCoefsMatrix.mmul(destinationPointsMatrices[0]),\n inverseCoefsMatrix.mmul(destinationPointsMatrices[1])\n ];\n const weightsArrays = weightsMatrices.map((matrix) => matrix.to1DArray());\n return weightsArrays;\n}\n/**\n * Solve the x and y components jointly using singular value decomposition.\n *\n * This uses a singular value decomposition to compute the last (i.e. 9th) 'right singular vector',\n * i.e. the one with the smallest singular value, wich holds the weights for the solution.\n * Note that for a set of gcps that exactly follow a projective transformations,\n * the singular value is null and this vector spans the null-space.\n *\n * This wil result in a weights array for each component with rbf weights and affine weights.\n */\nexport function solveJointlySvd(coefsArrayMatrices, pointCount) {\n // Joint coefs in the same order as in the paper\n // (Otherwise the weights may differ in sign, even though this should not affect the result)\n const coefsMatrix = [];\n for (let i = 0; i < pointCount; i++) {\n coefsMatrix.push(coefsArrayMatrices[0][i]);\n coefsMatrix.push(coefsArrayMatrices[1][i]);\n }\n const svdCoefsMatrix = new SingularValueDecomposition(coefsMatrix);\n const weightsMatrix = Matrix.from1DArray(3, 3, svdCoefsMatrix.rightSingularVectors.getColumn(8)).transpose();\n const weightsArrays = weightsMatrix.to2DArray();\n return weightsArrays;\n}\n"],"names":["solveJointlyPseudoInverse","coefsArrayMatrices","destinationPointsArrays","coefsMatrix","Matrix","destinationPointsMatrix","pseudoInverse","solveIndependentlyPseudoInverse","coefsArrayMatrix","destinationPointsMatrices","pseudoInverseCoefsMatrix","matrix","solveIndependentlyInverse","inverseCoefsMatrix","inverse","solveJointlySvd","pointCount","svdCoefsMatrix","SingularValueDecomposition"],"mappings":"qHAUO,SAASA,EAA0BC,EAAoBC,EAAyB,CACnF,MAAMC,EAAc,IAAIC,UAAO,CAC3B,GAAGH,EAAmB,CAAC,EACvB,GAAGA,EAAmB,CAAC,CAAA,CAC1B,EACKI,EAA0BD,EAAAA,QAAO,aAAa,CAChD,GAAGF,EAAwB,CAAC,EAC5B,GAAGA,EAAwB,CAAC,CAAA,CAC/B,EAID,OAHiCI,EAAAA,cAAcH,CAAW,EACX,KAAKE,CAAuB,EACxC,UAAA,CAEvC,CAeO,SAASE,EAAgCC,EAAkBN,EAAyB,CACvF,MAAMC,EAAc,IAAIC,EAAAA,QAAOI,CAAgB,EACzCC,EAA4B,CAC9BL,EAAAA,QAAO,aAAaF,EAAwB,CAAC,CAAC,EAC9CE,UAAO,aAAaF,EAAwB,CAAC,CAAC,CAAA,EAE5CQ,EAA2BJ,EAAAA,cAAcH,CAAW,EAM1D,MALwB,CACpBO,EAAyB,KAAKD,EAA0B,CAAC,CAAC,EAC1DC,EAAyB,KAAKD,EAA0B,CAAC,CAAC,CAAA,EAExB,IAAKE,GAAWA,EAAO,WAAW,CAE5E,CAUO,SAASC,EAA0BJ,EAAkBN,EAAyB,CACjF,MAAMC,EAAc,IAAIC,EAAAA,QAAOI,CAAgB,EACzCC,EAA4B,CAC9BL,EAAAA,QAAO,aAAaF,EAAwB,CAAC,CAAC,EAC9CE,UAAO,aAAaF,EAAwB,CAAC,CAAC,CAAA,EAE5CW,EAAqBC,EAAAA,QAAQX,CAAW,EAM9C,MALwB,CACpBU,EAAmB,KAAKJ,EAA0B,CAAC,CAAC,EACpDI,EAAmB,KAAKJ,EAA0B,CAAC,CAAC,CAAA,EAElB,IAAKE,GAAWA,EAAO,WAAW,CAE5E,CAWO,SAASI,EAAgBd,EAAoBe,EAAY,CAG5D,MAAMb,EAAc,CAAA,EACpB,QAAS,EAAI,EAAG,EAAIa,EAAY,IAC5Bb,EAAY,KAAKF,EAAmB,CAAC,EAAE,CAAC,CAAC,EACzCE,EAAY,KAAKF,EAAmB,CAAC,EAAE,CAAC,CAAC,EAE7C,MAAMgB,EAAiB,IAAIC,EAAAA,2BAA2Bf,CAAW,EAGjE,OAFsBC,EAAAA,QAAO,YAAY,EAAG,EAAGa,EAAe,qBAAqB,UAAU,CAAC,CAAC,EAAE,UAAA,EAC7D,UAAA,CAExC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs333.js"),a=require("./index.cjs408.js"),o=require("./index.cjs411.js");class h extends a.BaseLinearWeightsTransformation{coefsArrayMatrices;coefsArrayMatricesSize;weightsArray;weightsArrays;constructor(t,r){super(t,r,"helmert",2),this.coefsArrayMatrices=this.getCoefsArrayMatrices(),this.coefsArrayMatricesSize=this.coefsArrayMatrices.map(e=>s.arrayMatrixSize(e))}getDestinationPointsArrays(){return[this.destinationPoints.map(t=>t[0]),this.destinationPoints.map(t=>t[1])]}getCoefsArrayMatrices(){let t=s.newArrayMatrix(this.pointCount,4,0),r=s.newArrayMatrix(this.pointCount,4,0);for(let e=0;e<this.pointCount;e++){const i=this.getSourcePointCoefsArrays(this.sourcePoints[e]);t=s.pasteArrayMatrix(t,e,0,[i[0]]),r=s.pasteArrayMatrix(r,e,0,[i[1]])}return[t,r]}getSourcePointCoefsArrays(t){return[[1,0,t[0],-t[1]],[0,1,t[1],t[0]]]}solve(){this.weightsArray=o.solveJointlyPseudoInverse(this.coefsArrayMatrices,this.destinationPointsArrays),this.weightsArrays=[this.weightsArray,this.weightsArray]}getMeasures(){if(this.weightsArrays||this.solve(),!this.weightsArray)throw new Error("Helmert weights not computed");const t={};return t.scale=Math.sqrt(this.weightsArray[2]**2+this.weightsArray[3]**2),t.rotation=Math.atan2(this.weightsArray[3],this.weightsArray[2]),t.translation=[this.weightsArray[0],this.weightsArray[1]],t}evaluateFunction(t){if(this.weightsArrays||this.solve(),!this.weightsArray)throw new Error("Helmert weights not computed");return[this.weightsArray[0]+this.weightsArray[2]*t[0]-this.weightsArray[3]*t[1],this.weightsArray[1]+this.weightsArray[2]*t[1]+this.weightsArray[3]*t[0]]}evaluatePartialDerivativeX(t){if(this.weightsArrays||this.solve(),!this.weightsArray)throw new Error("Helmert weights not computed");return[this.weightsArray[2],this.weightsArray[3]]}evaluatePartialDerivativeY(t){if(this.weightsArrays||this.solve(),!this.weightsArray)throw new Error("Helmert weights not computed");return[-this.weightsArray[3],this.weightsArray[2]]}getTransformationDataAsFloat64Array(){if(this.weightsArray||this.solve(),!this.weightsArray)throw new Error("Helmert weights not computed");return{weights:new Float64Array(this.weightsArray),sourcePoints:new Float64Array(0)}}}exports.Helmert=h;
2
+ //# sourceMappingURL=index.cjs412.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs412.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/Helmert.js"],"sourcesContent":["import { newArrayMatrix, pasteArrayMatrix, arrayMatrixSize } from '@allmaps/stdlib';\nimport { BaseLinearWeightsTransformation } from './BaseLinearWeightsTransformation.js';\nimport { solveJointlyPseudoInverse } from '../shared/solve-functions.js';\n/**\n * 2D Helmert transformation (= similarity transformation)\n *\n * This transformation is a composition of a translation, rotation and scaling. There is no shearing.\n *\n * For this transformations, the system of equations is solved for x and y jointly.\n */\nexport class Helmert extends BaseLinearWeightsTransformation {\n coefsArrayMatrices;\n coefsArrayMatricesSize;\n weightsArray;\n weightsArrays;\n constructor(sourcePoints, destinationPoints) {\n super(sourcePoints, destinationPoints, 'helmert', 2);\n this.coefsArrayMatrices = this.getCoefsArrayMatrices();\n this.coefsArrayMatricesSize = this.coefsArrayMatrices.map((coefsArrayMatrix) => arrayMatrixSize(coefsArrayMatrix));\n }\n getDestinationPointsArrays() {\n return [\n this.destinationPoints.map((value) => value[0]),\n this.destinationPoints.map((value) => value[1])\n ];\n }\n getCoefsArrayMatrices() {\n let coefsArrayMatrix0 = newArrayMatrix(this.pointCount, 4, 0);\n let coefsArrayMatrix1 = newArrayMatrix(this.pointCount, 4, 0);\n for (let i = 0; i < this.pointCount; i++) {\n const sourcePointCoefsArrays = this.getSourcePointCoefsArrays(this.sourcePoints[i]);\n coefsArrayMatrix0 = pasteArrayMatrix(coefsArrayMatrix0, i, 0, [\n sourcePointCoefsArrays[0]\n ]);\n coefsArrayMatrix1 = pasteArrayMatrix(coefsArrayMatrix1, i, 0, [\n sourcePointCoefsArrays[1]\n ]);\n }\n return [coefsArrayMatrix0, coefsArrayMatrix1];\n }\n /**\n * Get two 1x4 coefsArrays, populating the 2Nx4 coefsArrayMatrices\n * 1 0 x0 -y0\n * 1 0 x1 -y1\n * ...\n * 0 1 y0 x0\n * 0 1 y1 x1\n * ...\n *\n * @param sourcePoint\n */\n getSourcePointCoefsArrays(sourcePoint) {\n return [\n [1, 0, sourcePoint[0], -sourcePoint[1]],\n [0, 1, sourcePoint[1], sourcePoint[0]]\n ];\n }\n solve() {\n this.weightsArray = solveJointlyPseudoInverse(this.coefsArrayMatrices, this.destinationPointsArrays);\n this.weightsArrays = [this.weightsArray, this.weightsArray];\n }\n getMeasures() {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArray) {\n throw new Error('Helmert weights not computed');\n }\n const measures = {};\n measures.scale = Math.sqrt(this.weightsArray[2] ** 2 + this.weightsArray[3] ** 2);\n measures.rotation = Math.atan2(this.weightsArray[3], this.weightsArray[2]);\n measures.translation = [this.weightsArray[0], this.weightsArray[1]];\n return measures;\n }\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArray) {\n throw new Error('Helmert weights not computed');\n }\n const newDestinationPoint = [\n this.weightsArray[0] +\n this.weightsArray[2] * newSourcePoint[0] -\n this.weightsArray[3] * newSourcePoint[1],\n this.weightsArray[1] +\n this.weightsArray[2] * newSourcePoint[1] +\n this.weightsArray[3] * newSourcePoint[0]\n ];\n // Alternatively, using derived helmert measures\n // this.translation[0] +\n // this.scale * Math.cos(rotation) * newSourcePoint[0] -\n // this.scale * Math.sin(rotation) * newSourcePoint[1],\n // this.translation[1] +\n // this.scale * Math.cos(rotation) * newSourcePoint[1] +\n // this.scale * Math.sin(rotation) * newSourcePoint[0]\n return newDestinationPoint;\n }\n evaluatePartialDerivativeX(_newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArray) {\n throw new Error('Helmert weights not computed');\n }\n const newDestinationPointPartDerX = [\n this.weightsArray[2],\n this.weightsArray[3]\n ];\n return newDestinationPointPartDerX;\n }\n evaluatePartialDerivativeY(_newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArray) {\n throw new Error('Helmert weights not computed');\n }\n const newDestinationPointPartDerY = [\n -this.weightsArray[3],\n this.weightsArray[2]\n ];\n return newDestinationPointPartDerY;\n }\n getTransformationDataAsFloat64Array() {\n if (!this.weightsArray) {\n this.solve();\n }\n if (!this.weightsArray) {\n throw new Error('Helmert weights not computed');\n }\n // Helmert: [w0, w1, w2, w3]\n return {\n weights: new Float64Array(this.weightsArray),\n sourcePoints: new Float64Array(0)\n };\n }\n}\n"],"names":["Helmert","BaseLinearWeightsTransformation","sourcePoints","destinationPoints","coefsArrayMatrix","arrayMatrixSize","value","coefsArrayMatrix0","newArrayMatrix","coefsArrayMatrix1","i","sourcePointCoefsArrays","pasteArrayMatrix","sourcePoint","solveJointlyPseudoInverse","measures","newSourcePoint","_newSourcePoint"],"mappings":"mLAUO,MAAMA,UAAgBC,EAAAA,+BAAgC,CACzD,mBACA,uBACA,aACA,cACA,YAAYC,EAAcC,EAAmB,CACzC,MAAMD,EAAcC,EAAmB,UAAW,CAAC,EACnD,KAAK,mBAAqB,KAAK,sBAAA,EAC/B,KAAK,uBAAyB,KAAK,mBAAmB,IAAKC,GAAqBC,kBAAgBD,CAAgB,CAAC,CACrH,CACA,4BAA6B,CACzB,MAAO,CACH,KAAK,kBAAkB,IAAKE,GAAUA,EAAM,CAAC,CAAC,EAC9C,KAAK,kBAAkB,IAAKA,GAAUA,EAAM,CAAC,CAAC,CAAA,CAEtD,CACA,uBAAwB,CACpB,IAAIC,EAAoBC,EAAAA,eAAe,KAAK,WAAY,EAAG,CAAC,EACxDC,EAAoBD,EAAAA,eAAe,KAAK,WAAY,EAAG,CAAC,EAC5D,QAASE,EAAI,EAAGA,EAAI,KAAK,WAAYA,IAAK,CACtC,MAAMC,EAAyB,KAAK,0BAA0B,KAAK,aAAaD,CAAC,CAAC,EAClFH,EAAoBK,EAAAA,iBAAiBL,EAAmBG,EAAG,EAAG,CAC1DC,EAAuB,CAAC,CAAA,CAC3B,EACDF,EAAoBG,EAAAA,iBAAiBH,EAAmBC,EAAG,EAAG,CAC1DC,EAAuB,CAAC,CAAA,CAC3B,CACL,CACA,MAAO,CAACJ,EAAmBE,CAAiB,CAChD,CAYA,0BAA0BI,EAAa,CACnC,MAAO,CACH,CAAC,EAAG,EAAGA,EAAY,CAAC,EAAG,CAACA,EAAY,CAAC,CAAC,EACtC,CAAC,EAAG,EAAGA,EAAY,CAAC,EAAGA,EAAY,CAAC,CAAC,CAAA,CAE7C,CACA,OAAQ,CACJ,KAAK,aAAeC,EAAAA,0BAA0B,KAAK,mBAAoB,KAAK,uBAAuB,EACnG,KAAK,cAAgB,CAAC,KAAK,aAAc,K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GlD,MAAO,CACH,QAAS,IAAI,aAAa,KAAK,YAAY,EAC3C,aAAc,IAAI,aAAa,CAAC,CAAA,CAExC,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs410.js");class h extends n.BasePolynomialTransformation{constructor(t,r){super(t,r,1)}getSourcePointCoefsArray(t){return h.getPolynomial1SourcePointCoefsArray(t)}static getPolynomial1SourcePointCoefsArray(t){return[1,t[0],t[1]]}getHomogeneousTransform(){if(this.weightsArrays)return[this.weightsArrays[0][1],this.weightsArrays[1][1],this.weightsArrays[0][2],this.weightsArrays[1][2],this.weightsArrays[0][0],this.weightsArrays[1][0]]}setWeightsArraysFromHomogeneousTransform(t){this.weightsArrays=[[t[4],t[0],t[2]],[t[5],t[1],t[3]]]}getMeasures(){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const t={};t.translation=[this.weightsArrays[0][0],this.weightsArrays[1][0]];const r=this.weightsArrays[0][1],s=this.weightsArrays[1][1],e=this.weightsArrays[0][2],a=this.weightsArrays[1][2],o=r*a-s*e;if(r!=0||s!=0){const i=Math.sqrt(r*r+s*s);t.rotation=s>0?Math.acos(r/i):-Math.acos(r/i),t.scales=[i,o/i],t.shears=[Math.atan((r*e+s*a)/(i*i)),0]}else if(e!=0||a!=0){const i=Math.sqrt(e*e+a*a);t.rotation=Math.PI/2-(a>0?Math.acos(-e/i):-Math.acos(e/i)),t.scales=[o/i,i],t.shears=[0,Math.atan((r*e+s*a)/(i*i))]}return t}evaluateFunction(t){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let s=0;s<2;s++)r[s]+=this.weightsArrays[s][0]+this.weightsArrays[s][1]*t[0]+this.weightsArrays[s][2]*t[1];return r}evaluatePartialDerivativeX(t){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let s=0;s<2;s++)r[s]+=this.weightsArrays[s][1];return r}evaluatePartialDerivativeY(t){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let s=0;s<2;s++)r[s]+=this.weightsArrays[s][2];return r}}exports.Polynomial1=h;
2
+ //# sourceMappingURL=index.cjs413.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs413.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/Polynomial1.js"],"sourcesContent":["import { BasePolynomialTransformation } from './BasePolynomialTransformation.js';\n/**\n * 2D First-order Polynomial transformation\n *\n * This transformation is a composition of a translation, rotation, scaling and shearing.\n */\nexport class Polynomial1 extends BasePolynomialTransformation {\n constructor(sourcePoints, destinationPoints) {\n super(sourcePoints, destinationPoints, 1);\n }\n getSourcePointCoefsArray(sourcePoint) {\n return Polynomial1.getPolynomial1SourcePointCoefsArray(sourcePoint);\n }\n /**\n * Get 1x3 coefsArray, populating the Nx3 coefsArrayMatrix\n * 1 x0 y0\n * 1 x1 y1\n * 1 x2 y2\n * ...\n *\n * @param sourcePoint\n */\n static getPolynomial1SourcePointCoefsArray(sourcePoint) {\n return [1, sourcePoint[0], sourcePoint[1]];\n }\n getHomogeneousTransform() {\n if (!this.weightsArrays) {\n return undefined;\n }\n return [\n this.weightsArrays[0][1],\n this.weightsArrays[1][1],\n this.weightsArrays[0][2],\n this.weightsArrays[1][2],\n this.weightsArrays[0][0],\n this.weightsArrays[1][0]\n ];\n }\n setWeightsArraysFromHomogeneousTransform(homogeneousTransform) {\n this.weightsArrays = [\n [\n homogeneousTransform[4],\n homogeneousTransform[0],\n homogeneousTransform[2]\n ],\n [\n homogeneousTransform[5],\n homogeneousTransform[1],\n homogeneousTransform[3]\n ]\n ];\n }\n getMeasures() {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const measures = {};\n // From: https://stackoverflow.com/questions/12469770/get-skew-or-rotation-value-from-affine-transformation-matrix\n measures.translation = [this.weightsArrays[0][0], this.weightsArrays[1][0]];\n const a = this.weightsArrays[0][1];\n const b = this.weightsArrays[1][1];\n const c = this.weightsArrays[0][2];\n const d = this.weightsArrays[1][2];\n const delta = a * d - b * c;\n // Apply the QR-like decomposition.\n if (a != 0 || b != 0) {\n const r = Math.sqrt(a * a + b * b);\n measures.rotation = b > 0 ? Math.acos(a / r) : -Math.acos(a / r);\n measures.scales = [r, delta / r];\n measures.shears = [Math.atan((a * c + b * d) / (r * r)), 0];\n }\n else if (c != 0 || d != 0) {\n const s = Math.sqrt(c * c + d * d);\n measures.rotation =\n Math.PI / 2 - (d > 0 ? Math.acos(-c / s) : -Math.acos(c / s));\n measures.scales = [delta / s, s];\n measures.shears = [0, Math.atan((a * c + b * d) / (s * s))];\n }\n else {\n // a = b = c = d = 0\n }\n return measures;\n }\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const newDestinationPoint = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPoint[i] +=\n this.weightsArrays[i][0] +\n this.weightsArrays[i][1] * newSourcePoint[0] +\n this.weightsArrays[i][2] * newSourcePoint[1];\n }\n return newDestinationPoint;\n }\n evaluatePartialDerivativeX(_newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const newDestinationPointPartDerX = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPointPartDerX[i] += this.weightsArrays[i][1];\n }\n return newDestinationPointPartDerX;\n }\n evaluatePartialDerivativeY(_newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const newDestinationPointPartDerY = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPointPartDerY[i] += this.weightsArrays[i][2];\n }\n return newDestinationPointPartDerY;\n }\n}\n"],"names":["Polynomial1","BasePolynomialTransformation","sourcePoints","destinationPoints","sourcePoint","homogeneousTransform","measures","a","b","c","d","delta","r","s","newSourcePoint","newDestinationPoint","i","_newSourcePoint","newDestinationPointPartDerX","newDestinationPointPartDerY"],"mappings":"qHAMO,MAAMA,UAAoBC,EAAAA,4BAA6B,CAC1D,YAAYC,EAAcC,EAAmB,CACzC,MAAMD,EAAcC,EAAmB,CAAC,CAC5C,CACA,yBAAyBC,EAAa,CAClC,OAAOJ,EAAY,oCAAoCI,CAAW,CACtE,CAUA,OAAO,oCAAoCA,EAAa,CACpD,MAAO,CAAC,EAAGA,EAAY,CAAC,EAAGA,EAAY,CAAC,CAAC,CAC7C,CACA,yBAA0B,CACtB,GAAK,KAAK,cAGV,MAAO,CACH,KAAK,cAAc,CAAC,EAAE,CAAC,EACvB,KAAK,cAAc,CAAC,EAAE,CAAC,EACvB,KAAK,cAAc,CAAC,EAAE,CAAC,EACvB,KAAK,cAAc,CAAC,EAAE,CAAC,EACvB,KAAK,cAAc,CAAC,EAAE,CAAC,EACvB,KAAK,cAAc,CAAC,EAAE,CAAC,CAAA,CAE/B,CACA,yCAAyCC,EAAsB,CAC3D,KAAK,cAAgB,CACjB,CACIA,EAAqB,CAAC,EACtBA,EAAqB,CAAC,EACtBA,EAAqB,CAAC,CAAA,EAE1B,CACIA,EAAqB,CAAC,EACtBA,EAAqB,CAAC,EACtBA,EAAqB,CAAC,CAAA,CAC1B,CAER,CACA,aAAc,CAIV,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAE1C,MAAMC,EAAW,CAAA,EAEjBA,EAAS,YAAc,CAAC,KAAK,cAAc,CAAC,EAAE,CAAC,EAAG,KAAK,cAAc,CAAC,EAAE,CAAC,CAAC,EAC1E,MAAMC,EAAI,KAAK,cAAc,CAAC,EAAE,CAAC,EAC3BC,EAAI,KAAK,cAAc,CAAC,EAAE,CAAC,EAC3BC,EAAI,KAAK,cA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GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAE1C,MAAMC,EAA8B,CAAC,EAAG,CAAC,EACzC,QAASF,EAAI,EAAGA,EAAI,EAAGA,IACnBE,EAA4BF,CAAC,GAAK,KAAK,cAAcA,CAAC,EAAE,CAAC,EAE7D,OAAOE,CACX,CACA,2BAA2BD,EAAiB,CAIxC,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAE1C,MAAME,EAA8B,CAAC,EAAG,CAAC,EACzC,QAASH,EAAI,EAAGA,EAAI,EAAGA,IACnBG,EAA4BH,CAAC,GAAK,KAAK,cAAcA,CAAC,EAAE,CAAC,EAE7D,OAAOG,CACX,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs410.js");class i extends e.BasePolynomialTransformation{constructor(t,r){super(t,r,2)}getSourcePointCoefsArray(t){return i.getPolynomial2SourcePointCoefsArray(t)}static getPolynomial2SourcePointCoefsArray(t){return[1,t[0],t[1],t[0]**2,t[1]**2,t[0]*t[1]]}evaluateFunction(t){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let s=0;s<2;s++)r[s]+=this.weightsArrays[s][0]+this.weightsArrays[s][1]*t[0]+this.weightsArrays[s][2]*t[1]+this.weightsArrays[s][3]*t[0]**2+this.weightsArrays[s][4]*t[1]**2+this.weightsArrays[s][5]*t[0]*t[1];return r}evaluatePartialDerivativeX(t){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let s=0;s<2;s++)r[s]+=this.weightsArrays[s][1]+2*this.weightsArrays[s][3]*t[0]+this.weightsArrays[s][5]*t[1];return r}evaluatePartialDerivativeY(t){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let s=0;s<2;s++)r[s]+=this.weightsArrays[s][2]+2*this.weightsArrays[s][4]*t[1]+this.weightsArrays[s][5]*t[0];return r}}exports.Polynomial2=i;
2
+ //# sourceMappingURL=index.cjs414.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs414.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/Polynomial2.js"],"sourcesContent":["import { BasePolynomialTransformation } from './BasePolynomialTransformation.js';\n/**\n * 2D Second-order Polynomial transformation\n */\nexport class Polynomial2 extends BasePolynomialTransformation {\n constructor(sourcePoints, destinationPoints) {\n super(sourcePoints, destinationPoints, 2);\n }\n getSourcePointCoefsArray(sourcePoint) {\n return Polynomial2.getPolynomial2SourcePointCoefsArray(sourcePoint);\n }\n /**\n * Get 1x3 coefsArray, populating the Nx3 coefsArrayMatrix\n * 1 x0 y0 x0^2 y0^2 x0*y0\n * ...\n *\n * @param sourcePoint\n */\n static getPolynomial2SourcePointCoefsArray(sourcePoint) {\n return [\n 1,\n sourcePoint[0],\n sourcePoint[1],\n sourcePoint[0] ** 2,\n sourcePoint[1] ** 2,\n sourcePoint[0] * sourcePoint[1]\n ];\n }\n // Evaluate the transformation function at a new point\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Apply the helmert coefficients to the input point\n const newDestinationPoint = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPoint[i] +=\n this.weightsArrays[i][0] +\n this.weightsArrays[i][1] * newSourcePoint[0] +\n this.weightsArrays[i][2] * newSourcePoint[1] +\n this.weightsArrays[i][3] * newSourcePoint[0] ** 2 +\n this.weightsArrays[i][4] * newSourcePoint[1] ** 2 +\n this.weightsArrays[i][5] * newSourcePoint[0] * newSourcePoint[1];\n }\n return newDestinationPoint;\n }\n // Evaluate the transformation function's partial derivative to x at a new point\n evaluatePartialDerivativeX(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Apply the helmert coefficients to the input point\n const newDestinationPointPartDerX = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPointPartDerX[i] +=\n this.weightsArrays[i][1] +\n 2 * this.weightsArrays[i][3] * newSourcePoint[0] +\n this.weightsArrays[i][5] * newSourcePoint[1];\n }\n return newDestinationPointPartDerX;\n }\n // Evaluate the transformation function's partial derivative to x at a new point\n evaluatePartialDerivativeY(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Apply the helmert coefficients to the input point\n const newDestinationPointPartDerY = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPointPartDerY[i] +=\n this.weightsArrays[i][2] +\n 2 * this.weightsArrays[i][4] * newSourcePoint[1] +\n this.weightsArrays[i][5] * newSourcePoint[0];\n }\n return newDestinationPointPartDerY;\n }\n}\n"],"names":["Polynomial2","BasePolynomialTransformation","sourcePoints","destinationPoints","sourcePoint","newSourcePoint","newDestinationPoint","i","newDestinationPointPartDerX","newDestinationPointPartDerY"],"mappings":"qHAIO,MAAMA,UAAoBC,EAAAA,4BAA6B,CAC1D,YAAYC,EAAcC,EAAmB,CACzC,MAAMD,EAAcC,EAAmB,CAAC,CAC5C,CACA,yBAAyBC,EAAa,CAClC,OAAOJ,EAAY,oCAAoCI,CAAW,CACtE,CAQA,OAAO,oCAAoCA,EAAa,CACpD,MAAO,CACH,EACAA,EAAY,CAAC,EACbA,EAAY,CAAC,EACbA,EAAY,CAAC,GAAK,EAClBA,EAAY,CAAC,GAAK,EAClBA,EAAY,CAAC,EAAIA,EAAY,CAAC,CAAA,CAEtC,CAEA,iBAAiBC,EAAgB,CAI7B,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAG1C,MAAMC,EAAsB,CAAC,EAAG,CAAC,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0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index.cjs410.js");class i extends h.BasePolynomialTransformation{constructor(s,r){super(s,r,3)}getSourcePointCoefsArray(s){return i.getPolynomial3SourcePointCoefsArray(s)}static getPolynomial3SourcePointCoefsArray(s){return[1,s[0],s[1],s[0]**2,s[1]**2,s[0]*s[1],s[0]**3,s[1]**3,s[0]**2*s[1],s[0]*s[1]**2]}evaluateFunction(s){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let t=0;t<2;t++)r[t]+=this.weightsArrays[t][0]+this.weightsArrays[t][1]*s[0]+this.weightsArrays[t][2]*s[1]+this.weightsArrays[t][3]*s[0]**2+this.weightsArrays[t][4]*s[1]**2+this.weightsArrays[t][5]*s[0]*s[1]+this.weightsArrays[t][6]*s[0]**3+this.weightsArrays[t][7]*s[1]**3+this.weightsArrays[t][8]*s[0]**2*s[1]+this.weightsArrays[t][9]*s[0]*s[1]**2;return r}evaluatePartialDerivativeX(s){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let t=0;t<2;t++)r[t]+=this.weightsArrays[t][1]+2*this.weightsArrays[t][3]*s[0]+this.weightsArrays[t][5]*s[1]+3*this.weightsArrays[t][6]*s[0]**2+2*this.weightsArrays[t][8]*s[0]*s[1]+this.weightsArrays[t][9]*s[1]**2;return r}evaluatePartialDerivativeY(s){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const r=[0,0];for(let t=0;t<2;t++)r[t]+=this.weightsArrays[t][2]+2*this.weightsArrays[t][4]*s[1]+this.weightsArrays[t][5]*s[0]+3*this.weightsArrays[t][7]*s[1]**2+this.weightsArrays[t][8]*s[0]**2+2*this.weightsArrays[t][9]*s[0]*s[1];return r}}exports.Polynomial3=i;
2
+ //# sourceMappingURL=index.cjs415.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs415.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/Polynomial3.js"],"sourcesContent":["import { BasePolynomialTransformation } from './BasePolynomialTransformation.js';\n/**\n * 2D Third-order Polynomial transformation\n */\nexport class Polynomial3 extends BasePolynomialTransformation {\n constructor(sourcePoints, destinationPoints) {\n super(sourcePoints, destinationPoints, 3);\n }\n getSourcePointCoefsArray(sourcePoint) {\n return Polynomial3.getPolynomial3SourcePointCoefsArray(sourcePoint);\n }\n /**\n * Get 1x3 coefsArray, populating the Nx3 coefsArrayMatrix\n * 1 x0 y0 x0^2 y0^2 x0*y0 x0^3 y0^3 x0^2*y0 x0*y0^2\n * ...\n *\n * @param sourcePoint\n */\n static getPolynomial3SourcePointCoefsArray(sourcePoint) {\n return [\n 1,\n sourcePoint[0],\n sourcePoint[1],\n sourcePoint[0] ** 2,\n sourcePoint[1] ** 2,\n sourcePoint[0] * sourcePoint[1],\n sourcePoint[0] ** 3,\n sourcePoint[1] ** 3,\n sourcePoint[0] ** 2 * sourcePoint[1],\n sourcePoint[0] * sourcePoint[1] ** 2\n ];\n }\n // Evaluate the transformation function at a new point\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Apply the helmert coefficients to the input point\n const newDestinationPoint = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPoint[i] +=\n this.weightsArrays[i][0] +\n this.weightsArrays[i][1] * newSourcePoint[0] +\n this.weightsArrays[i][2] * newSourcePoint[1] +\n this.weightsArrays[i][3] * newSourcePoint[0] ** 2 +\n this.weightsArrays[i][4] * newSourcePoint[1] ** 2 +\n this.weightsArrays[i][5] * newSourcePoint[0] * newSourcePoint[1] +\n this.weightsArrays[i][6] * newSourcePoint[0] ** 3 +\n this.weightsArrays[i][7] * newSourcePoint[1] ** 3 +\n this.weightsArrays[i][8] * newSourcePoint[0] ** 2 * newSourcePoint[1] +\n this.weightsArrays[i][9] * newSourcePoint[0] * newSourcePoint[1] ** 2;\n }\n return newDestinationPoint;\n }\n // Evaluate the transformation function's partial derivative to x at a new point\n evaluatePartialDerivativeX(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Apply the helmert coefficients to the input point\n const newDestinationPointPartDerX = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPointPartDerX[i] +=\n this.weightsArrays[i][1] +\n 2 * this.weightsArrays[i][3] * newSourcePoint[0] +\n this.weightsArrays[i][5] * newSourcePoint[1] +\n 3 * this.weightsArrays[i][6] * newSourcePoint[0] ** 2 +\n 2 * this.weightsArrays[i][8] * newSourcePoint[0] * newSourcePoint[1] +\n this.weightsArrays[i][9] * newSourcePoint[1] ** 2;\n }\n return newDestinationPointPartDerX;\n }\n // Evaluate the transformation function's partial derivative to x at a new point\n evaluatePartialDerivativeY(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Apply the helmert coefficients to the input point\n const newDestinationPointPartDerY = [0, 0];\n for (let i = 0; i < 2; i++) {\n newDestinationPointPartDerY[i] +=\n this.weightsArrays[i][2] +\n 2 * this.weightsArrays[i][4] * newSourcePoint[1] +\n this.weightsArrays[i][5] * newSourcePoint[0] +\n 3 * this.weightsArrays[i][7] * newSourcePoint[1] ** 2 +\n this.weightsArrays[i][8] * newSourcePoint[0] ** 2 +\n 2 * this.weightsArrays[i][9] * newSourcePoint[0] * newSourcePoint[1];\n }\n return newDestinationPointPartDerY;\n }\n}\n"],"names":["Polynomial3","BasePolynomialTransformation","sourcePoints","destinationPoints","sourcePoint","newSourcePoint","newDestinationPoint","i","newDestinationPointPartDerX","newDestinationPointPartDerY"],"mappings":"qHAIO,MAAMA,UAAoBC,EAAAA,4BAA6B,CAC1D,YAAYC,EAAcC,EAAmB,CACzC,MAAMD,EAAcC,EAAmB,CAAC,CAC5C,CACA,yBAAyBC,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@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs333.js"),h=require("./index.cjs409.js"),y=require("./index.cjs411.js");class A extends h.BaseTransformation{coefsArrayMatrices;weightsArrays;constructor(r,t){super(r,t,"projective",4),this.coefsArrayMatrices=[e.newArrayMatrix(this.pointCount,9,0),e.newArrayMatrix(this.pointCount,9,0)];for(let s=0;s<this.pointCount;s++)this.coefsArrayMatrices[0][s][0]=-r[s][0],this.coefsArrayMatrices[0][s][1]=-r[s][1],this.coefsArrayMatrices[0][s][2]=-1,this.coefsArrayMatrices[0][s][3]=0,this.coefsArrayMatrices[0][s][4]=0,this.coefsArrayMatrices[0][s][5]=0,this.coefsArrayMatrices[0][s][6]=t[s][0]*r[s][0],this.coefsArrayMatrices[0][s][7]=t[s][0]*r[s][1],this.coefsArrayMatrices[0][s][8]=t[s][0],this.coefsArrayMatrices[1][s][0]=0,this.coefsArrayMatrices[1][s][1]=0,this.coefsArrayMatrices[1][s][2]=0,this.coefsArrayMatrices[1][s][3]=-r[s][0],this.coefsArrayMatrices[1][s][4]=-r[s][1],this.coefsArrayMatrices[1][s][5]=-1,this.coefsArrayMatrices[1][s][6]=t[s][1]*r[s][0],this.coefsArrayMatrices[1][s][7]=t[s][1]*r[s][1],this.coefsArrayMatrices[1][s][8]=t[s][1]}solve(){this.weightsArrays=y.solveJointlySvd(this.coefsArrayMatrices,this.pointCount)}evaluateFunction(r){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const t=this.weightsArrays[0][2]*r[0]+this.weightsArrays[1][2]*r[1]+this.weightsArrays[2][2],s=this.weightsArrays[0][0]*r[0]+this.weightsArrays[1][0]*r[1]+this.weightsArrays[2][0],i=this.weightsArrays[0][1]*r[0]+this.weightsArrays[1][1]*r[1]+this.weightsArrays[2][1];return[s/t,i/t]}evaluatePartialDerivativeX(r){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const t=this.weightsArrays[0][2]*r[0]+this.weightsArrays[1][2]*r[1]+this.weightsArrays[2][2],s=this.weightsArrays[0][0]*r[0]+this.weightsArrays[1][0]*r[1]+this.weightsArrays[2][0],i=this.weightsArrays[0][1]*r[0]+this.weightsArrays[1][1]*r[1]+this.weightsArrays[2][1];return[(t*this.weightsArrays[0][0]-this.weightsArrays[0][2]*s)/t**2,(t*this.weightsArrays[0][1]-this.weightsArrays[0][2]*i)/t**2]}evaluatePartialDerivativeY(r){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");const t=this.weightsArrays[0][2]*r[0]+this.weightsArrays[1][2]*r[1]+this.weightsArrays[2][2],s=this.weightsArrays[0][0]*r[0]+this.weightsArrays[1][0]*r[1]+this.weightsArrays[2][0],i=this.weightsArrays[0][1]*r[0]+this.weightsArrays[1][1]*r[1]+this.weightsArrays[2][1];return[(t*this.weightsArrays[1][0]-this.weightsArrays[1][2]*s)/t**2,(t*this.weightsArrays[1][1]-this.weightsArrays[1][2]*i)/t**2]}getTransformationDataAsFloat64Array(){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Projective transformation weights not computed");const r=[];for(let t=0;t<3;t++)for(let s=0;s<3;s++)r.push(this.weightsArrays[t][s]);return{weights:new Float64Array(r),sourcePoints:new Float64Array(0)}}}exports.Projective=A;
2
+ //# sourceMappingURL=index.cjs416.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs416.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/Projective.js"],"sourcesContent":["import { newArrayMatrix } from '@allmaps/stdlib';\nimport { BaseTransformation } from './BaseTransformation.js';\nimport { solveJointlySvd } from '../shared/solve-functions.js';\n/**\n * 2D projective (= perspective) transformation\n *\n * For this transformations, the system of equations is solved for x and y jointly.\n *\n * See for more information:\n * Dubrofsky, Elan. \"Homography estimation.\" Diplomová práce. Vancouver: Univerzita Britské Kolumbie 5 (2009).\n * https://citeseerx.ist.psu.edu/doc/10.1.1.186.4411\n * https://www.cs.ubc.ca/sites/default/files/2022-12/Dubrofsky_Elan.pdf\n */\nexport class Projective extends BaseTransformation {\n coefsArrayMatrices;\n weightsArrays;\n constructor(sourcePoints, destinationPoints) {\n super(sourcePoints, destinationPoints, 'projective', 4);\n // Construct two Nx9 Matrix projectiveCoefsMatrix\n // −x0 −y0 −1 0 0 0 x'0x0 x'0y0 x'0\n // ...\n // 0 0 0 −x0 −y0 −1 y'0x0 y'0y0 y'0\n // ...\n this.coefsArrayMatrices = [\n newArrayMatrix(this.pointCount, 9, 0),\n newArrayMatrix(this.pointCount, 9, 0)\n ];\n for (let i = 0; i < this.pointCount; i++) {\n this.coefsArrayMatrices[0][i][0] = -sourcePoints[i][0];\n this.coefsArrayMatrices[0][i][1] = -sourcePoints[i][1];\n this.coefsArrayMatrices[0][i][2] = -1;\n this.coefsArrayMatrices[0][i][3] = 0;\n this.coefsArrayMatrices[0][i][4] = 0;\n this.coefsArrayMatrices[0][i][5] = 0;\n this.coefsArrayMatrices[0][i][6] =\n destinationPoints[i][0] * sourcePoints[i][0];\n this.coefsArrayMatrices[0][i][7] =\n destinationPoints[i][0] * sourcePoints[i][1];\n this.coefsArrayMatrices[0][i][8] = destinationPoints[i][0];\n this.coefsArrayMatrices[1][i][0] = 0;\n this.coefsArrayMatrices[1][i][1] = 0;\n this.coefsArrayMatrices[1][i][2] = 0;\n this.coefsArrayMatrices[1][i][3] = -sourcePoints[i][0];\n this.coefsArrayMatrices[1][i][4] = -sourcePoints[i][1];\n this.coefsArrayMatrices[1][i][5] = -1;\n this.coefsArrayMatrices[1][i][6] =\n destinationPoints[i][1] * sourcePoints[i][0];\n this.coefsArrayMatrices[1][i][7] =\n destinationPoints[i][1] * sourcePoints[i][1];\n this.coefsArrayMatrices[1][i][8] = destinationPoints[i][1];\n }\n }\n solve() {\n this.weightsArrays = solveJointlySvd(this.coefsArrayMatrices, this.pointCount);\n }\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const c = this.weightsArrays[0][2] * newSourcePoint[0] +\n this.weightsArrays[1][2] * newSourcePoint[1] +\n this.weightsArrays[2][2];\n const num1 = this.weightsArrays[0][0] * newSourcePoint[0] +\n this.weightsArrays[1][0] * newSourcePoint[1] +\n this.weightsArrays[2][0];\n const num2 = this.weightsArrays[0][1] * newSourcePoint[0] +\n this.weightsArrays[1][1] * newSourcePoint[1] +\n this.weightsArrays[2][1];\n const newDestinationPoint = [num1 / c, num2 / c];\n return newDestinationPoint;\n }\n evaluatePartialDerivativeX(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const c = this.weightsArrays[0][2] * newSourcePoint[0] +\n this.weightsArrays[1][2] * newSourcePoint[1] +\n this.weightsArrays[2][2];\n const num1 = this.weightsArrays[0][0] * newSourcePoint[0] +\n this.weightsArrays[1][0] * newSourcePoint[1] +\n this.weightsArrays[2][0];\n const num2 = this.weightsArrays[0][1] * newSourcePoint[0] +\n this.weightsArrays[1][1] * newSourcePoint[1] +\n this.weightsArrays[2][1];\n const newDestinationPointPartDerX = [\n (c * this.weightsArrays[0][0] - this.weightsArrays[0][2] * num1) / c ** 2,\n (c * this.weightsArrays[0][1] - this.weightsArrays[0][2] * num2) / c ** 2\n ];\n return newDestinationPointPartDerX;\n }\n evaluatePartialDerivativeY(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const c = this.weightsArrays[0][2] * newSourcePoint[0] +\n this.weightsArrays[1][2] * newSourcePoint[1] +\n this.weightsArrays[2][2];\n const num1 = this.weightsArrays[0][0] * newSourcePoint[0] +\n this.weightsArrays[1][0] * newSourcePoint[1] +\n this.weightsArrays[2][0];\n const num2 = this.weightsArrays[0][1] * newSourcePoint[0] +\n this.weightsArrays[1][1] * newSourcePoint[1] +\n this.weightsArrays[2][1];\n const newDestinationPointPartDerY = [\n (c * this.weightsArrays[1][0] - this.weightsArrays[1][2] * num1) / c ** 2,\n (c * this.weightsArrays[1][1] - this.weightsArrays[1][2] * num2) / c ** 2\n ];\n return newDestinationPointPartDerY;\n }\n getTransformationDataAsFloat64Array() {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Projective transformation weights not computed');\n }\n // Projective: 3x3 matrix flattened column-major\n const flatWeights = [];\n for (let col = 0; col < 3; col++) {\n for (let row = 0; row < 3; row++) {\n flatWeights.push(this.weightsArrays[col][row]);\n }\n }\n return {\n weights: new Float64Array(flatWeights),\n sourcePoints: new Float64Array(0)\n };\n }\n}\n"],"names":["Projective","BaseTransformation","sourcePoints","destinationPoints","newArrayMatrix","i","solveJointlySvd","newSourcePoint","c","num1","num2","flatWeights","col","row"],"mappings":"mLAaO,MAAMA,UAAmBC,EAAAA,kBAAmB,CAC/C,mBACA,cACA,YAAYC,EAAcC,EAAmB,CACzC,MAAMD,EAAcC,EAAmB,aAAc,CAAC,EAMtD,KAAK,mBAAqB,CACtBC,EAAAA,eAAe,KAAK,WAAY,EAAG,CAAC,EACpCA,EAAAA,eAAe,KAAK,WAAY,EAAG,CAAC,CAAA,EAExC,QAASC,EAAI,EAAGA,EAAI,KAAK,WAAYA,IACjC,KAAK,mBAAmB,CAAC,EAAEA,CAAC,EAAE,CAAC,EAAI,CAACH,EAAaG,CAAC,EAAE,CAAC,EACrD,KAAK,mBAAmB,CAAC,EAAEA,CAAC,EAAE,CAAC,EAAI,CAACH,EAAaG,CAAC,EAAE,CAAC,EACrD,KAAK,mBAAmB,CAAC,EAAEA,CAAC,EAAE,CAAC,EAAI,GACnC,KAAK,mBAAmB,CAAC,EAAEA,CAAC,EAAE,CAAC,EAAI,EACnC,KAAK,mBAAmB,CAAC,EAAEA,CAAC,EAAE,CAAC,EAAI,EACnC,KAAK,mBAAmB,CAAC,EAAEA,CAAC,EAAE,CAAC,EAAI,EACnC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EACrC,aAAc,IAAI,aAAa,CAAC,CAAA,CAExC,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index.cjs333.js"),c=require("./index.cjs413.js"),y=require("./index.cjs407.js"),u=require("./index.cjs411.js");class l extends y.BaseIndependentLinearWeightsTransformation{kernelFunction;normFunction;epsilon;coefsArrayMatrices;coefsArrayMatrix;coefsArrayMatricesSize;coefsArrayMatrixSize;weightsArrays;rbfWeightsArrays;affineWeightsArrays;constructor(i,r,e,s,n,t){super(i,r,n,3),this.kernelFunction=e,this.normFunction=s,this.epsilon=t,this.coefsArrayMatrices=this.getCoefsArrayMatrices(),this.coefsArrayMatrix=this.coefsArrayMatrices[0],this.coefsArrayMatricesSize=this.coefsArrayMatrices.map(o=>f.arrayMatrixSize(o)),this.coefsArrayMatrixSize=f.arrayMatrixSize(this.coefsArrayMatrix)}getDestinationPointsArrays(){return[[...this.destinationPoints,[0,0],[0,0],[0,0]].map(i=>i[0]),[...this.destinationPoints,[0,0],[0,0],[0,0]].map(i=>i[1])]}getCoefsArrayMatrix(){const i=f.newArrayMatrix(this.pointCount,this.pointCount,0);for(let t=0;t<this.pointCount;t++)for(let o=0;o<this.pointCount;o++)i[t][o]=this.normFunction(this.sourcePoints[t],this.sourcePoints[o]);if(this.epsilon===void 0){const t=i.map(o=>o.reduce((a,h)=>a+h,0)).reduce((o,a)=>o+a,0);this.epsilon=t/(Math.pow(this.pointCount,2)-this.pointCount)}const r=f.newArrayMatrix(this.pointCount,this.pointCount,0);for(let t=0;t<this.pointCount;t++)for(let o=0;o<this.pointCount;o++)r[t][o]=this.kernelFunction(i[t][o],{epsilon:this.epsilon});let e=f.newArrayMatrix(this.pointCount,3,0);for(let t=0;t<this.pointCount;t++)e=f.pasteArrayMatrix(e,t,0,[c.Polynomial1.getPolynomial1SourcePointCoefsArray(this.sourcePoints[t])]);const s=f.newArrayMatrix(3,3,0);return f.newBlockArrayMatrix([[r,e],[f.transposeArrayMatrix(e),s]])}getSourcePointCoefsArray(i){return[...this.getRbfKernelSourcePointCoefsArray(i),...c.Polynomial1.getPolynomial1SourcePointCoefsArray(i)]}getRbfKernelSourcePointCoefsArray(i){const r=[];for(let e=0;e<this.pointCount;e++)r.push(this.kernelFunction(this.normFunction(this.sourcePoints[e],i),{epsilon:this.epsilon}));return r}setWeightsArrays(i,r){r&&(this.epsilon=r),super.setWeightsArrays(i)}solve(){this.weightsArrays=u.solveIndependentlyInverse(this.coefsArrayMatrix,this.destinationPointsArrays),this.processWeightsArrays()}processWeightsArrays(){if(!this.weightsArrays)throw new Error("Weights not computed");this.rbfWeightsArrays=this.weightsArrays.map(i=>i.slice(0,this.pointCount)),this.affineWeightsArrays=this.weightsArrays.map(i=>i.slice(this.pointCount))}evaluateFunction(i){if(this.weightsArrays||this.solve(),!this.rbfWeightsArrays||!this.affineWeightsArrays)throw new Error("RBF weights not computed");const r=this.rbfWeightsArrays,e=this.affineWeightsArrays,s=this.sourcePoints.map(t=>this.normFunction(i,t)),n=[0,0];for(let t=0;t<2;t++)n[t]=s.reduce((o,a,h)=>o+this.kernelFunction(a,{epsilon:this.epsilon})*r[t][h],0),n[t]+=e[t][0]+e[t][1]*i[0]+e[t][2]*i[1];return n}evaluatePartialDerivativeX(i){if(this.weightsArrays||this.solve(),!this.rbfWeightsArrays||!this.affineWeightsArrays)throw new Error("RBF weights not computed");const r=this.rbfWeightsArrays,e=this.affineWeightsArrays,s=this.sourcePoints.map(t=>this.normFunction(i,t)),n=[0,0];for(let t=0;t<2;t++)n[t]=s.reduce((o,a,h)=>o+(a===0?0:this.kernelFunction(a,{derivative:1,epsilon:this.epsilon})*((i[0]-this.sourcePoints[h][0])/a)*r[t][h]),0),n[t]+=e[t][1];return n}evaluatePartialDerivativeY(i){if(this.weightsArrays||this.solve(),!this.rbfWeightsArrays||!this.affineWeightsArrays)throw new Error("RBF weights not computed");const r=this.rbfWeightsArrays,e=this.affineWeightsArrays,s=this.sourcePoints.map(t=>this.normFunction(i,t)),n=[0,0];for(let t=0;t<2;t++)n[t]=s.reduce((o,a,h)=>o+(a===0?0:this.kernelFunction(a,{derivative:1,epsilon:this.epsilon})*((i[1]-this.sourcePoints[h][1])/a)*r[t][h]),0),n[t]+=e[t][2];return n}getTransformationDataAsFloat64Array(){if(this.weightsArrays||this.solve(),!this.rbfWeightsArrays||!this.affineWeightsArrays)throw new Error("ThinPlateSpline transformation weights not computed");const i=this.sourcePoints.length,r=new Float64Array(1+2*i+6);r[0]=i;for(let s=0;s<i;s++)r[1+s]=this.rbfWeightsArrays[0][s];for(let s=0;s<i;s++)r[1+i+s]=this.rbfWeightsArrays[1][s];for(let s=0;s<3;s++)r[1+2*i+s]=this.affineWeightsArrays[0][s];for(let s=0;s<3;s++)r[1+2*i+3+s]=this.affineWeightsArrays[1][s];const e=new Float64Array(i*2);for(let s=0;s<i;s++)e[s*2]=this.sourcePoints[s][0],e[s*2+1]=this.sourcePoints[s][1];return{weights:r,sourcePoints:e}}}exports.RBF=l;
2
+ //# sourceMappingURL=index.cjs417.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs417.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/RBF.js"],"sourcesContent":["import { arrayMatrixSize, newArrayMatrix, newBlockArrayMatrix, pasteArrayMatrix, transposeArrayMatrix } from '@allmaps/stdlib';\nimport { Polynomial1 } from './Polynomial1.js';\nimport { BaseIndependentLinearWeightsTransformation } from './BaseIndependentLinearWeightsTransformation.js';\nimport { solveIndependentlyInverse } from '../shared/solve-functions.js';\n/**\n * 2D Radial Basis Functions transformation\n *\n * See notebook https://observablehq.com/d/0b57d3b587542794 for code source and explanation\n */\nexport class RBF extends BaseIndependentLinearWeightsTransformation {\n kernelFunction;\n normFunction;\n epsilon;\n coefsArrayMatrices;\n coefsArrayMatrix;\n coefsArrayMatricesSize;\n coefsArrayMatrixSize;\n weightsArrays;\n rbfWeightsArrays;\n affineWeightsArrays;\n constructor(sourcePoints, destinationPoints, kernelFunction, normFunction, type, epsilon) {\n super(sourcePoints, destinationPoints, type, 3);\n this.kernelFunction = kernelFunction;\n this.normFunction = normFunction;\n this.epsilon = epsilon;\n // Note: getCoefsArrayMatrices can not be moved to the parent class's constructor\n // since for this class it uses properties (normFunction, kernelFunction, epsilon)\n // which are only defined after super()\n this.coefsArrayMatrices = this.getCoefsArrayMatrices();\n this.coefsArrayMatrix = this.coefsArrayMatrices[0];\n this.coefsArrayMatricesSize = this.coefsArrayMatrices.map((coefsArrayMatrix) => arrayMatrixSize(coefsArrayMatrix));\n this.coefsArrayMatrixSize = arrayMatrixSize(this.coefsArrayMatrix);\n }\n getDestinationPointsArrays() {\n return [\n [...this.destinationPoints, [0, 0], [0, 0], [0, 0]].map((value) => value[0]),\n [...this.destinationPoints, [0, 0], [0, 0], [0, 0]].map((value) => value[1])\n ];\n }\n getCoefsArrayMatrix() {\n // Pre-compute kernelsArrayMatrix: fill normsArrayMatrix\n // with the point to point distances between all control points\n const normsArrayMatrix = newArrayMatrix(this.pointCount, this.pointCount, 0);\n for (let i = 0; i < this.pointCount; i++) {\n for (let j = 0; j < this.pointCount; j++) {\n normsArrayMatrix[i][j] = this.normFunction(this.sourcePoints[i], this.sourcePoints[j]);\n }\n }\n // If it's not provided, and if it's an input to the kernelFunction,\n // compute epsilon as the average distance between the control points\n if (this.epsilon === undefined) {\n const normsSum = normsArrayMatrix\n .map((row) => row.reduce((a, c) => a + c, 0))\n .reduce((a, c) => a + c, 0);\n this.epsilon = normsSum / (Math.pow(this.pointCount, 2) - this.pointCount);\n }\n // Finish the computation of kernelsArrayMatrix by applying the requested kernel function\n const kernelCoefsArrayMatrix = newArrayMatrix(this.pointCount, this.pointCount, 0);\n for (let i = 0; i < this.pointCount; i++) {\n for (let j = 0; j < this.pointCount; j++) {\n kernelCoefsArrayMatrix[i][j] = this.kernelFunction(normsArrayMatrix[i][j], {\n epsilon: this.epsilon\n });\n }\n }\n // Construct Nx3 affineCoefsArrayMatrix\n // 1 x0 y0\n // 1 x1 y1\n // 1 x2 y2\n // ...\n let affineCoefsArrayMatrix = newArrayMatrix(this.pointCount, 3, 0);\n for (let i = 0; i < this.pointCount; i++) {\n affineCoefsArrayMatrix = pasteArrayMatrix(affineCoefsArrayMatrix, i, 0, [\n Polynomial1.getPolynomial1SourcePointCoefsArray(this.sourcePoints[i])\n ]);\n }\n // Construct 3x3 zerosArrayMatrix\n const zerosArrayMatrix = newArrayMatrix(3, 3, 0);\n // Combine kernelsArrayMatrix and affineCoefsArrayMatrix\n // into new coefsArrayMatrix, to include the affine transformation\n const coefsArrayMatrix = newBlockArrayMatrix([\n [kernelCoefsArrayMatrix, affineCoefsArrayMatrix],\n [transposeArrayMatrix(affineCoefsArrayMatrix), zerosArrayMatrix]\n ]);\n return coefsArrayMatrix;\n }\n /**\n * Get 1x(N+3) coefsArray, populating the (N+3)x(N+3) coefsArrayMatrix\n *\n * The coefsArray has a 1xN kernel part and a 1x3 affine part.\n *\n * @param sourcePoint\n */\n getSourcePointCoefsArray(sourcePoint) {\n return [\n ...this.getRbfKernelSourcePointCoefsArray(sourcePoint),\n ...Polynomial1.getPolynomial1SourcePointCoefsArray(sourcePoint)\n ];\n }\n getRbfKernelSourcePointCoefsArray(sourcePoint) {\n const kernelSourcePointCoefsArray = [];\n for (let i = 0; i < this.pointCount; i++) {\n kernelSourcePointCoefsArray.push(this.kernelFunction(this.normFunction(this.sourcePoints[i], sourcePoint), {\n epsilon: this.epsilon\n }));\n }\n return kernelSourcePointCoefsArray;\n }\n setWeightsArrays(weightsArrays, epsilon) {\n if (epsilon) {\n this.epsilon = epsilon;\n }\n super.setWeightsArrays(weightsArrays);\n }\n /**\n * Solve the x and y components independently.\n *\n * This uses the exact inverse to compute (for each component, using the same coefs for both)\n * the exact solution for the system of linear equations\n * which is (in general) invertable to an exact solution.\n *\n * This wil result in a weights array for each component with rbf weights and affine weights.\n */\n solve() {\n this.weightsArrays = solveIndependentlyInverse(this.coefsArrayMatrix, this.destinationPointsArrays);\n this.processWeightsArrays();\n }\n processWeightsArrays() {\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n this.rbfWeightsArrays = this.weightsArrays.map((array) => array.slice(0, this.pointCount));\n this.affineWeightsArrays = this.weightsArrays.map((array) => array.slice(this.pointCount));\n }\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.rbfWeightsArrays || !this.affineWeightsArrays) {\n throw new Error('RBF weights not computed');\n }\n const rbfWeights = this.rbfWeightsArrays;\n const affineWeights = this.affineWeightsArrays;\n // Compute the distances of that point to all control points\n const newDistances = this.sourcePoints.map((sourcePoint) => this.normFunction(newSourcePoint, sourcePoint));\n // Sum the weighted contributions of the input point\n const newDestinationPoint = [0, 0];\n for (let i = 0; i < 2; i++) {\n // Apply the weights to the new distances\n newDestinationPoint[i] = newDistances.reduce((sum, dist, index) => sum +\n this.kernelFunction(dist, { epsilon: this.epsilon }) *\n rbfWeights[i][index], 0);\n // Add the affine part\n newDestinationPoint[i] +=\n affineWeights[i][0] +\n affineWeights[i][1] * newSourcePoint[0] +\n affineWeights[i][2] * newSourcePoint[1];\n }\n return newDestinationPoint;\n }\n evaluatePartialDerivativeX(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.rbfWeightsArrays || !this.affineWeightsArrays) {\n throw new Error('RBF weights not computed');\n }\n const rbfWeights = this.rbfWeightsArrays;\n const affineWeights = this.affineWeightsArrays;\n // Compute the distances of that point to all control points\n const newDistances = this.sourcePoints.map((sourcePoint) => this.normFunction(newSourcePoint, sourcePoint));\n // Sum the weighted contributions of the input point\n const newDestinationPointPartDerX = [0, 0];\n for (let i = 0; i < 2; i++) {\n // Apply the weights to the new distances\n newDestinationPointPartDerX[i] = newDistances.reduce((sum, dist, index) => sum +\n (dist === 0\n ? 0\n : this.kernelFunction(dist, {\n derivative: 1,\n epsilon: this.epsilon\n }) *\n ((newSourcePoint[0] - this.sourcePoints[index][0]) / dist) *\n rbfWeights[i][index]), 0);\n // Add the affine part\n newDestinationPointPartDerX[i] += affineWeights[i][1];\n }\n return newDestinationPointPartDerX;\n }\n evaluatePartialDerivativeY(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.rbfWeightsArrays || !this.affineWeightsArrays) {\n throw new Error('RBF weights not computed');\n }\n const rbfWeights = this.rbfWeightsArrays;\n const affineWeights = this.affineWeightsArrays;\n // Compute the distances of that point to all control points\n const newDistances = this.sourcePoints.map((sourcePoint) => this.normFunction(newSourcePoint, sourcePoint));\n // Sum the weighted contributions of the input point\n const newDestinationPointPartDerY = [0, 0];\n for (let i = 0; i < 2; i++) {\n // Apply the weights to the new distances\n newDestinationPointPartDerY[i] = newDistances.reduce((sum, dist, index) => sum +\n (dist === 0\n ? 0\n : this.kernelFunction(dist, {\n derivative: 1,\n epsilon: this.epsilon\n }) *\n ((newSourcePoint[1] - this.sourcePoints[index][1]) / dist) *\n rbfWeights[i][index]), 0);\n // Add the affine part\n newDestinationPointPartDerY[i] += affineWeights[i][2];\n }\n return newDestinationPointPartDerY;\n }\n getTransformationDataAsFloat64Array() {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.rbfWeightsArrays || !this.affineWeightsArrays) {\n throw new Error('ThinPlateSpline transformation weights not computed');\n }\n const n = this.sourcePoints.length;\n // Format: [n, rbfWx[n], rbfWy[n], affineWx[3], affineWy[3]]\n const weights = new Float64Array(1 + 2 * n + 6);\n weights[0] = n;\n for (let i = 0; i < n; i++) {\n weights[1 + i] = this.rbfWeightsArrays[0][i];\n }\n for (let i = 0; i < n; i++) {\n weights[1 + n + i] = this.rbfWeightsArrays[1][i];\n }\n for (let i = 0; i < 3; i++) {\n weights[1 + 2 * n + i] = this.affineWeightsArrays[0][i];\n }\n for (let i = 0; i < 3; i++) {\n weights[1 + 2 * n + 3 + i] = this.affineWeightsArrays[1][i];\n }\n // Flatten source points\n const flatSourcePoints = new Float64Array(n * 2);\n for (let i = 0; i < n; i++) {\n flatSourcePoints[i * 2] = this.sourcePoints[i][0];\n flatSourcePoints[i * 2 + 1] = this.sourcePoints[i][1];\n }\n return {\n weights,\n sourcePoints: flatSourcePoints\n };\n }\n}\n"],"names":["RBF","BaseIndependentLinearWeightsTransformation","sourcePoints","destinationPoints","kernelFunction","normFunction","type","epsilon","coefsArrayMatrix","arrayMatrixSize","value","normsArrayMatrix","newArrayMatrix","i","j","normsSum","row","c","a","kernelCoefsArrayMatrix","affineCoefsArrayMatrix","pasteArrayMatrix","Polynomial1","zerosArrayMatrix","newBlockArrayMatrix","transposeArrayMatrix","sourcePoint","kernelSourcePointCoefsArray","weightsArrays","solveIndependentlyInverse","array","newSourcePoint","rbfWeights","affineWeights","newDistances","newDestinationPoint","sum","dist","index","newDestinationPointPartDerX","newDestinationPointPartDerY","n","weights","flatSourcePoints"],"mappings":"kNASO,MAAMA,UAAYC,EAAAA,0CAA2C,CAChE,eACA,aACA,QACA,mBACA,iBACA,uBACA,qBACA,cACA,iBACA,oBACA,YAAYC,EAAcC,EAAmBC,EAAgBC,EAAcC,EAAMC,EAAS,CACtF,MAAML,EAAcC,EAAmBG,EAAM,CAAC,EAC9C,KAAK,eAAiBF,EACtB,KAAK,aAAeC,EACpB,KAAK,QAAUE,EAIf,KAAK,mBAAqB,KAAK,sBAAA,EAC/B,KAAK,iBAAmB,KAAK,mBAAmB,CAAC,EACjD,KAAK,uBAAyB,KAAK,mBAAmB,IAAKC,GAAqBC,kBAAgBD,CAAgB,CAAC,EACjH,KAAK,qBAAuBC,kBAAgB,KAAK,gBAAgB,CACrE,CACA,4BAA6B,CACzB,MAAO,CACH,CAAC,GAAG,KAAK,kBAAmB,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EAAE,IAAKC,GAAUA,EAAM,CAAC,CAAC,EAC3E,CAAC,GAAG,KAAK,kBAAmB,CAAC,EAAG,CAAC,EAAG,CAAC,EAA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B8B,EAAiB9B,EAAI,CAAC,EAAI,KAAK,aAAaA,CAAC,EAAE,CAAC,EAChD8B,EAAiB9B,EAAI,EAAI,CAAC,EAAI,KAAK,aAAaA,CAAC,EAAE,CAAC,EAExD,MAAO,CACH,QAAA6B,EACA,aAAcC,CAAA,CAEtB,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs412.js"),h=require("./index.cjs409.js");class w extends h.BaseTransformation{weightsArrays;constructor(s,r){super(s,r,"straight",2)}solve(){const r=new o.Helmert(this.sourcePoints,this.destinationPoints).getMeasures().scale,i=this.sourcePoints.reduce((t,e)=>[t[0]+e[0],t[1]+e[1]]).map(t=>t/this.pointCount),n=this.destinationPoints.reduce((t,e)=>[t[0]+e[0],t[1]+e[1]]).map(t=>t/this.pointCount),a=n.map((t,e)=>t-i[e]*r);this.weightsArrays={scale:r,sourcePointsCenter:i,destinationPointsCenter:n,translation:a}}evaluateFunction(s){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");return[this.weightsArrays.translation[0]+this.weightsArrays.scale*s[0],this.weightsArrays.translation[1]+this.weightsArrays.scale*s[1]]}evaluatePartialDerivativeX(s){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");return[this.weightsArrays.scale,0]}evaluatePartialDerivativeY(s){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");return[0,this.weightsArrays.scale]}getTransformationDataAsFloat64Array(){if(this.weightsArrays||this.solve(),!this.weightsArrays)throw new Error("Weights not computed");return{weights:new Float64Array([this.weightsArrays.translation[0],this.weightsArrays.translation[1],this.weightsArrays.scale]),sourcePoints:new Float64Array(0)}}}exports.Straight=w;
2
+ //# sourceMappingURL=index.cjs418.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs418.js","sources":["../../../node_modules/@allmaps/transform/dist/transformation-types/Straight.js"],"sourcesContent":["import { Helmert } from './Helmert.js';\nimport { BaseTransformation } from './BaseTransformation.js';\nexport class Straight extends BaseTransformation {\n weightsArrays;\n constructor(sourcePoints, destinationPoints) {\n super(sourcePoints, destinationPoints, 'straight', 2);\n }\n /** Solve the x and y components jointly.\n *\n * This computes the corresponding Helmert transform and get the scale from it.\n */\n solve() {\n const helmertTransformation = new Helmert(this.sourcePoints, this.destinationPoints);\n const scale = helmertTransformation.getMeasures().scale;\n // Compute the centers of the source points and destination points\n const sourcePointsCenter = this.sourcePoints\n .reduce((center, point) => [center[0] + point[0], center[1] + point[1]])\n .map((coordinate) => coordinate / this.pointCount);\n const destinationPointsCenter = this.destinationPoints\n .reduce((center, point) => [center[0] + point[0], center[1] + point[1]])\n .map((coordinate) => coordinate / this.pointCount);\n // Compute the translation vector from the (scaled) center of the source points to the center of the destination points\n const translation = destinationPointsCenter.map((coord, i) => coord - sourcePointsCenter[i] * scale);\n this.weightsArrays = {\n scale,\n sourcePointsCenter,\n destinationPointsCenter,\n translation\n };\n }\n // Evaluate the transformation function at a new point\n evaluateFunction(newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const newDestinationPoint = [\n this.weightsArrays.translation[0] +\n this.weightsArrays.scale * newSourcePoint[0],\n this.weightsArrays.translation[1] +\n this.weightsArrays.scale * newSourcePoint[1]\n ];\n return newDestinationPoint;\n }\n // Evaluate the transformation function's partial derivative to x at a new point\n evaluatePartialDerivativeX(_newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const newDestinationPointPartDerX = [this.weightsArrays.scale, 0];\n return newDestinationPointPartDerX;\n }\n // Evaluate the transformation function's partial derivative to y at a new point\n evaluatePartialDerivativeY(_newSourcePoint) {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n const newDestinationPointPartDerY = [0, this.weightsArrays.scale];\n return newDestinationPointPartDerY;\n }\n getTransformationDataAsFloat64Array() {\n if (!this.weightsArrays) {\n this.solve();\n }\n if (!this.weightsArrays) {\n throw new Error('Weights not computed');\n }\n // Straight: [tx, ty, scale]\n return {\n weights: new Float64Array([\n this.weightsArrays.translation[0],\n this.weightsArrays.translation[1],\n this.weightsArrays.scale\n ]),\n sourcePoints: new Float64Array(0)\n };\n }\n}\n"],"names":["Straight","BaseTransformation","sourcePoints","destinationPoints","scale","Helmert","sourcePointsCenter","center","point","coordinate","destinationPointsCenter","translation","coord","i","newSourcePoint","_newSourcePoint"],"mappings":"oJAEO,MAAMA,UAAiBC,EAAAA,kBAAmB,CAC7C,cACA,YAAYC,EAAcC,EAAmB,CACzC,MAAMD,EAAcC,EAAmB,WAAY,CAAC,CACxD,CAKA,OAAQ,CAEJ,MAAMC,EADwB,IAAIC,EAAAA,QAAQ,KAAK,aAAc,KAAK,iBAAiB,EAC/C,YAAA,EAAc,MAE5CC,EAAqB,KAAK,aAC3B,OAAO,CAACC,EAAQC,IAAU,CAACD,EAAO,CAAC,EAAIC,EAAM,CAAC,EAAGD,EAAO,CAAC,EAAIC,EAAM,CAAC,CAAC,CAAC,EACtE,IAAKC,GAAeA,EAAa,KAAK,UAAU,EAC/CC,EAA0B,KAAK,kBAChC,OAAO,CAACH,EAAQC,IAAU,CAACD,EAAO,CAAC,EAAIC,EAAM,CAAC,EAAGD,EAAO,CAAC,EAAIC,EAAM,CAAC,CAAC,CAAC,EACtE,IAAKC,GAAeA,EAAa,KAAK,UAAU,EAE/CE,EAAcD,EAAwB,IAAI,CAACE,EAAOC,IAAMD,EAAQN,EAAmBO,CAAC,EAAIT,CAAK,EACnG,KAAK,cAAgB,CACjB,MAAAA,EACA,mBAAAE,EACA,wBAAAI,EACA,YAAAC,CAAA,CAER,CAEA,iBAAiBG,EAAgB,CAI7B,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAQ1C,MAN4B,CACxB,KAAK,cAAc,YAAY,CAAC,EAC5B,KAAK,cAAc,MAAQA,EAAe,CAAC,EAC/C,KAAK,cAAc,YAAY,CAAC,EAC5B,KAAK,cAAc,MAAQA,EAAe,CAAC,CAAA,CAGvD,CAEA,2BAA2BC,EAAiB,CAIxC,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAG1C,MADoC,CAAC,KAAK,cAAc,MAAO,CAAC,CAEpE,CAEA,2BAA2BA,EAAiB,CAIxC,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAG1C,MADoC,CAAC,EAAG,KAAK,cAAc,KAAK,CAEpE,CACA,qCAAsC,CAIlC,GAHK,KAAK,eACN,KAAK,MAAA,EAEL,CAAC,KAAK,cACN,MAAM,IAAI,MAAM,sBAAsB,EAG1C,MAAO,CACH,QAAS,IAAI,aAAa,CACtB,KAAK,cAAc,YAAY,CAAC,EAChC,KAAK,cAAc,YAAY,CAAC,EAChC,KAAK,cAAc,KAAA,CACtB,EACD,aAAc,IAAI,aAAa,CAAC,CAAA,CAExC,CACJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./index.cjs215.js"),u=require("./index.cjs274.js"),C={maxDepth:0,minSourceDistance:0,minDestinationDistance:0,minOffsetRatio:0,minOffsetDistance:1/0,sourceMidPointFunction:u.midPoint,destinationMidPointFunction:u.midPoint};function R(n,o,t){n=u.conformLineString(n);const i=n.map(s=>({source:s,destination:o(s)})),c=f(i,!1).map(s=>d(s,o,t,0)).flat(1);return M(c,!0)}function T(n,o,t){n=u.conformRing(n);const i=n.map(s=>({source:s,destination:o(s)})),c=f(i,!0).map(s=>d(s,o,t,0)).flat(1);return M(c,!1)}function d(n,o,t,i){const e=m(n,o,t,i);return e?[d([n[0],e],o,t,i+1),d([e,n[1]],o,t,i+1)].flat(1):[n]}function m(n,o,t,i){if(i>=t.maxDepth||t.maxDepth<=0||u.distance(n[0].source,n[1].source)<t.minSourceDistance||u.distance(n[0].destination,n[1].destination)<t.minDestinationDistance)return;const{sourceMidPoint:e,destinationMidPointFromRefinementFunction:c,destinationMidPointsDistance:s,destinationLineDistance:r}=F(n,o,t);return b({destinationMidPointsDistance:s,destinationLineDistance:r},t)?{source:e,destination:c}:void 0}function F(n,o,t){const i=t.sourceMidPointFunction(n[0].source,n[1].source),e=t.destinationMidPointFunction(n[0].destination,n[1].destination),c=o(i),s=u.distance(e,c),r=u.distance(n[0].destination,n[1].destination);return{sourceMidPoint:i,destinationMidPointFromRefinementFunction:c,destinationMidPointsDistance:s,destinationLineDistance:r}}function b({destinationMidPointsDistance:n,destinationLineDistance:o},t){return n/o>t.minOffsetRatio||n>t.minOffsetDistance}function v(n,o,t){const i=G.bboxToRectangle(n),e=i[2],c=i[3],s=i[1],r=i[0],P=t.sourceMidPointFunction(e,s),S=t.sourceMidPointFunction(c,r),h=t.sourceMidPointFunction(e,c),p=t.sourceMidPointFunction(s,r),L=[[P,S],[h,p]].map(a=>R(a,o,t).map(l=>l.source));if(L.every(a=>a.length==2))return;const g=L.map(a=>a.slice(0,-1).map((l,D)=>u.squaredDistance(l,a[D+1])));return Math.sqrt(Math.min(...g.flat()))}function f(n,o=!1){const t=n.length-(o?0:1),i=[];for(let e=0;e<t;e++)i.push([n[e],n[(e+1)%n.length]]);return i}function M(n,o=!1){const t=n.map(i=>i[0]);return o&&t.push(n[n.length-1][1]),t}exports.defaultRefinementOptions=C;exports.gcpLinesToGcps=M;exports.gcpsToGcpLines=f;exports.getSourceRefinementResolution=v;exports.newMidGcpIfShouldSplitGcpLine=m;exports.refineLineString=R;exports.refineRing=T;
2
+ //# sourceMappingURL=index.cjs419.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs419.js","sources":["../../../node_modules/@allmaps/transform/dist/shared/refinement-functions.js"],"sourcesContent":["import { midPoint, distance, squaredDistance, conformLineString, conformRing, bboxToRectangle } from '@allmaps/stdlib';\n// About Refinement Functions:\n//\n// Refinement function are used both in forward and backward transformation\n// and are the generalised approach to refine lineStrings, rings etc.\n// when they are transformed using a (forward or backward) 'refinement function'.\n//\n// See the way refinement methods are called:\n// with a different refinementFunction and refinementOptions for the forward and backward case.\n//\n// The concepts of 'source' and 'destination' for refinement methods\n// might therefore differ from the from the transform methods that called them.\n// For forward transform methods, 'source' and 'destination' in the refinement context\n// are the same as in their original transform context.\n// For backward transform methods, they are inversed.\n// Hence, in the refinement contect we always act source > destination.\nexport const defaultRefinementOptions = {\n maxDepth: 0,\n minSourceDistance: 0,\n minDestinationDistance: 0,\n minOffsetRatio: 0,\n minOffsetDistance: Infinity,\n sourceMidPointFunction: midPoint,\n destinationMidPointFunction: midPoint\n};\n// Refine Geometries\nexport function refineLineString(lineString, refinementFunction, refinementOptions) {\n lineString = conformLineString(lineString);\n const gcps = lineString.map((point) => ({\n source: point,\n destination: refinementFunction(point)\n }));\n const gcpLines = gcpsToGcpLines(gcps, false);\n const refinedGcpLines = gcpLines\n .map((gcpLine) => splitGcpLineRecursively(gcpLine, refinementFunction, refinementOptions, 0))\n .flat(1);\n return gcpLinesToGcps(refinedGcpLines, true);\n}\nexport function refineRing(ring, refinementFunction, refinementOptions) {\n ring = conformRing(ring);\n const gcps = ring.map((point) => ({\n source: point,\n destination: refinementFunction(point)\n }));\n const gcpLines = gcpsToGcpLines(gcps, true);\n const refinedGcpLines = gcpLines\n .map((line) => splitGcpLineRecursively(line, refinementFunction, refinementOptions, 0))\n .flat(1);\n return gcpLinesToGcps(refinedGcpLines, false);\n}\nfunction splitGcpLineRecursively(gcpLine, refinementFunction, refinementOptions, depth) {\n const newMidGcp = newMidGcpIfShouldSplitGcpLine(gcpLine, refinementFunction, refinementOptions, depth);\n if (newMidGcp) {\n return [\n splitGcpLineRecursively([gcpLine[0], newMidGcp], refinementFunction, refinementOptions, depth + 1),\n splitGcpLineRecursively([newMidGcp, gcpLine[1]], refinementFunction, refinementOptions, depth + 1)\n ].flat(1);\n }\n else {\n return [gcpLine];\n }\n}\n// Should split line\n// This function checks if a GcpLine should be splits\n// and returns the new midGcp if so, or undefined otherwise\nexport function newMidGcpIfShouldSplitGcpLine(gcpLine, refinementFunction, refinementOptions, depth) {\n if (depth >= refinementOptions.maxDepth ||\n refinementOptions.maxDepth <= 0 ||\n distance(gcpLine[0].source, gcpLine[1].source) <\n refinementOptions.minSourceDistance ||\n distance(gcpLine[0].destination, gcpLine[1].destination) <\n refinementOptions.minDestinationDistance) {\n return undefined;\n }\n const { sourceMidPoint, destinationMidPointFromRefinementFunction, destinationMidPointsDistance, destinationLineDistance } = splitGcpLinePointInfo(gcpLine, refinementFunction, refinementOptions);\n const shouldSplit = shouldSplitGcpLine({\n destinationMidPointsDistance,\n destinationLineDistance\n }, refinementOptions);\n return shouldSplit\n ? {\n source: sourceMidPoint,\n destination: destinationMidPointFromRefinementFunction\n }\n : undefined;\n}\nfunction splitGcpLinePointInfo(gcpLine, refinementFunction, refinementOptions) {\n const sourceMidPoint = refinementOptions.sourceMidPointFunction(gcpLine[0].source, gcpLine[1].source);\n const destinationMidPoint = refinementOptions.destinationMidPointFunction(gcpLine[0].destination, gcpLine[1].destination);\n const destinationMidPointFromRefinementFunction = refinementFunction(sourceMidPoint);\n const destinationMidPointsDistance = distance(destinationMidPoint, destinationMidPointFromRefinementFunction);\n const destinationLineDistance = distance(gcpLine[0].destination, gcpLine[1].destination);\n return {\n sourceMidPoint,\n destinationMidPointFromRefinementFunction,\n destinationMidPointsDistance,\n destinationLineDistance\n };\n}\nfunction shouldSplitGcpLine({ destinationMidPointsDistance, destinationLineDistance }, refinementOptions) {\n return (destinationMidPointsDistance / destinationLineDistance >\n refinementOptions.minOffsetRatio ||\n destinationMidPointsDistance > refinementOptions.minOffsetDistance);\n}\n// Get source refinement resolution\nexport function getSourceRefinementResolution(sourceBbox, refinementFunction, refinementOptions) {\n const sourceRectangle = bboxToRectangle(sourceBbox);\n const sourceTRPoint = sourceRectangle[2];\n const sourceTLPoint = sourceRectangle[3];\n const sourceBRPoint = sourceRectangle[1];\n const sourceBLPoint = sourceRectangle[0];\n const sourceCRPoint = refinementOptions.sourceMidPointFunction(sourceTRPoint, sourceBRPoint);\n const sourceCLPoint = refinementOptions.sourceMidPointFunction(sourceTLPoint, sourceBLPoint);\n const sourceTCPoint = refinementOptions.sourceMidPointFunction(sourceTRPoint, sourceTLPoint);\n const sourceBCPoint = refinementOptions.sourceMidPointFunction(sourceBRPoint, sourceBLPoint);\n // Get horizontal and vertical lines from points\n // Note: Could also add sourceHTLine, sourceHBLine, sourceVLLine, sourceVRLine\n // to get a more accurate resolution (at the expense of more refinement computations),\n // but testing showed this was not needed\n const sourceHCLine = [sourceCRPoint, sourceCLPoint];\n const sourceVCLine = [sourceTCPoint, sourceBCPoint];\n const sourceMultiLine = [sourceHCLine, sourceVCLine];\n // Refine lines\n const sourceRefinedMultiLineString = sourceMultiLine.map((sourceLine) => refineLineString(sourceLine, refinementFunction, refinementOptions).map((generalGcp) => generalGcp.source));\n if (sourceRefinedMultiLineString.every((sourceRefinedLineString) => sourceRefinedLineString.length == 2)) {\n return undefined;\n }\n // Compute minimal line length of refinement\n // Note: Tried to acchieve this by working with unflattened refined line and computing depth\n // but that proved difficult for TypeScript\n const sourceRefinedMultiLineStringSquaredLengths = sourceRefinedMultiLineString.map((sourceRefinedLineString) => sourceRefinedLineString\n .slice(0, -1)\n .map((sourcePoint, index) => squaredDistance(sourcePoint, sourceRefinedLineString[index + 1])));\n const sourceRefinedMultiLineStringMinLength = Math.sqrt(Math.min(...sourceRefinedMultiLineStringSquaredLengths.flat()));\n return sourceRefinedMultiLineStringMinLength;\n}\n// Convert\nexport function gcpsToGcpLines(gcps, close = false) {\n const lineCount = gcps.length - (close ? 0 : 1);\n const lines = [];\n for (let index = 0; index < lineCount; index++) {\n lines.push([gcps[index], gcps[(index + 1) % gcps.length]]);\n }\n return lines;\n}\nexport function gcpLinesToGcps(lines, close = false) {\n const gcps = lines.map((line) => line[0]);\n if (close) {\n gcps.push(lines[lines.length - 1][1]);\n }\n return gcps;\n}\n"],"names":["defaultRefinementOptions","midPoint","refineLineString","lineString","refinementFunction","refinementOptions","conformLineString","gcps","point","refinedGcpLines","gcpsToGcpLines","gcpLine","splitGcpLineRecursively","gcpLinesToGcps","refineRing","ring","conformRing","line","depth","newMidGcp","newMidGcpIfShouldSplitGcpLine","distance","sourceMidPoint","destinationMidPointFromRefinementFunction","destinationMidPointsDistance","destinationLineDistance","splitGcpLinePointInfo","shouldSplitGcpLine","destinationMidPoint","getSourceRefinementResolution","sourceBbox","sourceRectangle","bboxToRectangle","sourceTRPoint","sourceTLPoint","sourceBRPoint","sourceBLPoint","sourceCRPoint","sourceCLPoint","sourceTCPoint","sourceBCPoint","sourceRefinedMultiLineString","sourceLine","generalGcp","sourceRefinedLineString","sourceRefinedMultiLineStringSquaredLengths","sourcePoint","index","squaredDistance","close","lineCount","lines"],"mappings":"oJAgBaA,EAA2B,CACpC,SAAU,EACV,kBAAmB,EACnB,uBAAwB,EACxB,eAAgB,EAChB,kBAAmB,IACnB,uBAAwBC,EAAAA,SACxB,4BAA6BA,EAAAA,QACjC,EAEO,SAASC,EAAiBC,EAAYC,EAAoBC,EAAmB,CAChFF,EAAaG,EAAAA,kBAAkBH,CAAU,EACzC,MAAMI,EAAOJ,EAAW,IAAKK,IAAW,CACpC,OAAQA,EACR,YAAaJ,EAAmBI,CAAK,CAAA,EACvC,EAEIC,EADWC,EAAeH,EAAM,EAAK,EAEtC,IAAKI,GAAYC,EAAwBD,EAASP,EAAoBC,EAAmB,CAAC,CAAC,EAC3F,KAAK,CAAC,EACX,OAAOQ,EAAeJ,EAAiB,EAAI,CAC/C,CACO,SAASK,EAAWC,EAAMX,EAAoBC,EAAmB,CACpEU,EAAOC,EAAAA,YAAYD,CAAI,EACvB,MAAMR,EA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AC,EAElG,OAD8C,KAAK,KAAK,KAAK,IAAI,GAAGF,EAA2C,KAAA,CAAM,CAAC,CAE1H,CAEO,SAASnC,EAAeH,EAAM0C,EAAQ,GAAO,CAChD,MAAMC,EAAY3C,EAAK,QAAU0C,EAAQ,EAAI,GACvCE,EAAQ,CAAA,EACd,QAASJ,EAAQ,EAAGA,EAAQG,EAAWH,IACnCI,EAAM,KAAK,CAAC5C,EAAKwC,CAAK,EAAGxC,GAAMwC,EAAQ,GAAKxC,EAAK,MAAM,CAAC,CAAC,EAE7D,OAAO4C,CACX,CACO,SAAStC,EAAesC,EAAOF,EAAQ,GAAO,CACjD,MAAM1C,EAAO4C,EAAM,IAAKlC,GAASA,EAAK,CAAC,CAAC,EACxC,OAAIgC,GACA1C,EAAK,KAAK4C,EAAMA,EAAM,OAAS,CAAC,EAAE,CAAC,CAAC,EAEjC5C,CACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs218.js"),t=require("./index.cjs39.js"),e=require("./index.cjs224.js"),i=t.isIE11?e.ie11fingerprint(e.mapMethods):r("Map");module.exports=i;
1
+ "use strict";const r=require("./index.cjs235.js"),t=require("./index.cjs39.js"),e=require("./index.cjs241.js"),i=t.isIE11?e.ie11fingerprint(e.mapMethods):r("Map");module.exports=i;
2
2
  //# sourceMappingURL=index.cjs42.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs517.js"),t=e.matrixExports.SingularValueDecomposition,r=e.default.Matrix?e.default.Matrix:e.matrixExports.Matrix,i=e.matrixExports.inverse,o=e.matrixExports.pseudoInverse;exports.SingularValueDecomposition=t;exports.default=r;exports.inverse=i;exports.pseudoInverse=o;
2
+ //# sourceMappingURL=index.cjs420.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs420.js","sources":["../../../node_modules/ml-matrix/matrix.mjs"],"sourcesContent":["import * as matrix from './matrix.js';\n\nexport const AbstractMatrix = matrix.AbstractMatrix;\nexport const CHO = matrix.CHO;\nexport const CholeskyDecomposition = matrix.CholeskyDecomposition;\nexport const DistanceMatrix = matrix.DistanceMatrix;\nexport const EVD = matrix.EVD;\nexport const EigenvalueDecomposition = matrix.EigenvalueDecomposition;\nexport const LU = matrix.LU;\nexport const LuDecomposition = matrix.LuDecomposition;\nexport const Matrix = matrix.Matrix;\nexport const MatrixColumnSelectionView = matrix.MatrixColumnSelectionView;\nexport const MatrixColumnView = matrix.MatrixColumnView;\nexport const MatrixFlipColumnView = matrix.MatrixFlipColumnView;\nexport const MatrixFlipRowView = matrix.MatrixFlipRowView;\nexport const MatrixRowSelectionView = matrix.MatrixRowSelectionView;\nexport const MatrixRowView = matrix.MatrixRowView;\nexport const MatrixSelectionView = matrix.MatrixSelectionView;\nexport const MatrixSubView = matrix.MatrixSubView;\nexport const MatrixTransposeView = matrix.MatrixTransposeView;\nexport const NIPALS = matrix.NIPALS;\nexport const Nipals = matrix.Nipals;\nexport const QR = matrix.QR;\nexport const QrDecomposition = matrix.QrDecomposition;\nexport const SVD = matrix.SVD;\nexport const SingularValueDecomposition = matrix.SingularValueDecomposition;\nexport const SymmetricMatrix = matrix.SymmetricMatrix;\nexport const WrapperMatrix1D = matrix.WrapperMatrix1D;\nexport const WrapperMatrix2D = matrix.WrapperMatrix2D;\nexport const correlation = matrix.correlation;\nexport const covariance = matrix.covariance;\nexport default matrix.default.Matrix ? matrix.default.Matrix : matrix.Matrix;\nexport const determinant = matrix.determinant;\nexport const inverse = matrix.inverse;\nexport const linearDependencies = matrix.linearDependencies;\nexport const pseudoInverse = matrix.pseudoInverse;\nexport const solve = matrix.solve;\nexport const wrap = matrix.wrap;\n"],"names":["SingularValueDecomposition","matrix.SingularValueDecomposition","Matrix","matrix.default","matrix.Matrix","inverse","matrix.inverse","pseudoInverse","matrix.pseudoInverse"],"mappings":"iJAyBaA,EAA6BC,EAAAA,cAAAA,2BAM1CC,EAAeC,EAAAA,QAAe,OAASA,UAAe,OAASC,EAAAA,cAAAA,OAElDC,EAAUC,EAAAA,cAAAA,QAEVC,EAAgBC,EAAAA,cAAAA","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const N=require("./index.cjs271.js"),C=Math.pow(2,-52),j=new Uint32Array(512);class Y{static from(t,i=Q,h=V){const o=t.length,l=new Float64Array(o*2);for(let n=0;n<o;n++){const r=t[n];l[2*n]=i(r),l[2*n+1]=h(r)}return new Y(l)}constructor(t){const i=t.length>>1;if(i>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const h=Math.max(2*i-5,0);this._triangles=new Uint32Array(h*3),this._halfedges=new Int32Array(h*3),this._hashSize=Math.ceil(Math.sqrt(i)),this._hullPrev=new Uint32Array(i),this._hullNext=new Uint32Array(i),this._hullTri=new Uint32Array(i),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(i),this._dists=new Float64Array(i),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:t,_hullPrev:i,_hullNext:h,_hullTri:o,_hullHash:l}=this,n=t.length>>1;let r=1/0,f=1/0,g=-1/0,b=-1/0;for(let e=0;e<n;e++){const u=t[2*e],a=t[2*e+1];u<r&&(r=u),a<f&&(f=a),u>g&&(g=u),a>b&&(b=a),this._ids[e]=e}const x=(r+g)/2,m=(f+b)/2;let c=0,y=0,d=0;for(let e=0,u=1/0;e<n;e++){const a=X(x,m,t[2*e],t[2*e+1]);a<u&&(c=e,u=a)}const T=t[2*c],M=t[2*c+1];for(let e=0,u=1/0;e<n;e++){if(e===c)continue;const a=X(T,M,t[2*e],t[2*e+1]);a<u&&a>0&&(y=e,u=a)}let U=t[2*y],k=t[2*y+1],G=1/0;for(let e=0;e<n;e++){if(e===c||e===y)continue;const u=B(T,M,U,k,t[2*e],t[2*e+1]);u<G&&(d=e,G=u)}let D=t[2*d],E=t[2*d+1];if(G===1/0){for(let a=0;a<n;a++)this._dists[a]=t[2*a]-t[0]||t[2*a+1]-t[1];L(this._ids,this._dists,0,n-1);const e=new Uint32Array(n);let u=0;for(let a=0,w=-1/0;a<n;a++){const A=this._ids[a],S=this._dists[A];S>w&&(e[u++]=A,w=S)}this.hull=e.subarray(0,u),this.triangles=new Uint32Array(0),this.halfedges=new Int32Array(0);return}if(N.orient2d(T,M,U,k,D,E)<0){const e=y,u=U,a=k;y=d,U=D,k=E,d=e,D=u,E=a}const v=J(T,M,U,k,D,E);this._cx=v.x,this._cy=v.y;for(let e=0;e<n;e++)this._dists[e]=X(t[2*e],t[2*e+1],v.x,v.y);L(this._ids,this._dists,0,n-1),this._hullStart=c;let P=3;h[c]=i[d]=y,h[y]=i[c]=d,h[d]=i[y]=c,o[c]=0,o[y]=1,o[d]=2,l.fill(-1),l[this._hashKey(T,M)]=c,l[this._hashKey(U,k)]=y,l[this._hashKey(D,E)]=d,this.trianglesLen=0,this._addTriangle(c,y,d,-1,-1,-1);for(let e=0,u=0,a=0;e<this._ids.length;e++){const w=this._ids[e],A=t[2*w],S=t[2*w+1];if(e>0&&Math.abs(A-u)<=C&&Math.abs(S-a)<=C||(u=A,a=S,w===c||w===y||w===d))continue;let z=0;for(let H=0,F=this._hashKey(A,S);H<this._hashSize&&(z=l[(F+H)%this._hashSize],!(z!==-1&&z!==h[z]));H++);z=i[z];let _=z,p;for(;p=h[_],N.orient2d(A,S,t[2*_],t[2*_+1],t[2*p],t[2*p+1])>=0;)if(_=p,_===z){_=-1;break}if(_===-1)continue;let K=this._addTriangle(_,w,h[_],-1,-1,o[_]);o[w]=this._legalize(K+2),o[_]=K,P++;let I=h[_];for(;p=h[I],N.orient2d(A,S,t[2*I],t[2*I+1],t[2*p],t[2*p+1])<0;)K=this._addTriangle(I,w,p,o[w],-1,o[I]),o[w]=this._legalize(K+2),h[I]=I,P--,I=p;if(_===z)for(;p=i[_],N.orient2d(A,S,t[2*p],t[2*p+1],t[2*_],t[2*_+1])<0;)K=this._addTriangle(p,w,_,-1,o[_],o[p]),this._legalize(K+2),o[p]=K,h[_]=_,P--,_=p;this._hullStart=i[w]=_,h[_]=i[I]=w,h[w]=I,l[this._hashKey(A,S)]=w,l[this._hashKey(t[2*_],t[2*_+1])]=_}this.hull=new Uint32Array(P);for(let e=0,u=this._hullStart;e<P;e++)this.hull[e]=u,u=h[u];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,i){return Math.floor(O(t-this._cx,i-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:i,_halfedges:h,coords:o}=this;let l=0,n=0;for(;;){const r=h[t],f=t-t%3;if(n=f+(t+2)%3,r===-1){if(l===0)break;t=j[--l];continue}const g=r-r%3,b=f+(t+1)%3,x=g+(r+2)%3,m=i[n],c=i[t],y=i[b],d=i[x];if(R(o[2*m],o[2*m+1],o[2*c],o[2*c+1],o[2*y],o[2*y+1],o[2*d],o[2*d+1])){i[t]=d,i[r]=m;const M=h[x];if(M===-1){let k=this._hullStart;do{if(this._hullTri[k]===x){this._hullTri[k]=t;break}k=this._hullPrev[k]}while(k!==this._hullStart)}this._link(t,M),this._link(r,h[n]),this._link(n,x);const U=g+(r+1)%3;l<j.length&&(j[l++]=U)}else{if(l===0)break;t=j[--l]}}return n}_link(t,i){this._halfedges[t]=i,i!==-1&&(this._halfedges[i]=t)}_addTriangle(t,i,h,o,l,n){const r=this.trianglesLen;return this._triangles[r]=t,this._triangles[r+1]=i,this._triangles[r+2]=h,this._link(r,o),this._link(r+1,l),this._link(r+2,n),this.trianglesLen+=3,r}}function O(s,t){const i=s/(Math.abs(s)+Math.abs(t));return(t>0?3-i:1+i)/4}function X(s,t,i,h){const o=s-i,l=t-h;return o*o+l*l}function R(s,t,i,h,o,l,n,r){const f=s-n,g=t-r,b=i-n,x=h-r,m=o-n,c=l-r,y=f*f+g*g,d=b*b+x*x,T=m*m+c*c;return f*(x*T-d*c)-g*(b*T-d*m)+y*(b*c-x*m)<0}function B(s,t,i,h,o,l){const n=i-s,r=h-t,f=o-s,g=l-t,b=n*n+r*r,x=f*f+g*g,m=.5/(n*g-r*f),c=(g*b-r*x)*m,y=(n*x-f*b)*m;return c*c+y*y}function J(s,t,i,h,o,l){const n=i-s,r=h-t,f=o-s,g=l-t,b=n*n+r*r,x=f*f+g*g,m=.5/(n*g-r*f),c=s+(g*b-r*x)*m,y=t+(n*x-f*b)*m;return{x:c,y}}function L(s,t,i,h){if(h-i<=20)for(let o=i+1;o<=h;o++){const l=s[o],n=t[l];let r=o-1;for(;r>=i&&t[s[r]]>n;)s[r+1]=s[r--];s[r+1]=l}else{const o=i+h>>1;let l=i+1,n=h;q(s,o,l),t[s[i]]>t[s[h]]&&q(s,i,h),t[s[l]]>t[s[h]]&&q(s,l,h),t[s[i]]>t[s[l]]&&q(s,i,l);const r=s[l],f=t[r];for(;;){do l++;while(t[s[l]]<f);do n--;while(t[s[n]]>f);if(n<l)break;q(s,l,n)}s[i+1]=s[n],s[n]=r,h-l+1>=n-i?(L(s,t,l,h),L(s,t,i,n-1)):(L(s,t,i,n-1),L(s,t,l,h))}}function q(s,t,i){const h=s[t];s[t]=s[i],s[i]=h}function Q(s){return s[0]}function V(s){return s[1]}module.exports=Y;
2
+ //# sourceMappingURL=index.cjs421.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs421.js","sources":["../../../node_modules/delaunator/index.js"],"sourcesContent":["\nconst EPSILON = Math.pow(2, -52);\nconst EDGE_STACK = new Uint32Array(512);\n\nimport {orient2d} from 'robust-predicates';\n\n/** @template {ArrayLike<number>} T */\nexport default class Delaunator {\n\n /**\n * Constructs a delaunay triangulation object given an array of points (`[x, y]` by default).\n * `getX` and `getY` are optional functions of the form `(point) => value` for custom point formats.\n *\n * @template P\n * @param {P[]} points\n * @param {(p: P) => number} [getX]\n * @param {(p: P) => number} [getY]\n */\n // @ts-expect-error TS2322\n static from(points, getX = defaultGetX, getY = defaultGetY) {\n const n = points.length;\n const coords = new Float64Array(n * 2);\n\n for (let i = 0; i < n; i++) {\n const p = points[i];\n coords[2 * i] = getX(p);\n coords[2 * i + 1] = getY(p);\n }\n\n return new Delaunator(coords);\n }\n\n /**\n * Constructs a delaunay triangulation object given an array of point coordinates of the form:\n * `[x0, y0, x1, y1, ...]` (use a typed array for best performance). Duplicate points are skipped.\n *\n * @param {T} coords\n */\n constructor(coords) {\n const n = coords.length >> 1;\n if (n > 0 && typeof coords[0] !== 'number') throw new Error('Expected coords to contain numbers.');\n\n this.coords = coords;\n\n // arrays that will store the triangulation graph\n const maxTriangles = Math.max(2 * n - 5, 0);\n /** @private */ this._triangles = new Uint32Array(maxTriangles * 3);\n /** @private */ this._halfedges = new Int32Array(maxTriangles * 3);\n\n // temporary arrays for tracking the edges of the advancing convex hull\n /** @private */ this._hashSize = Math.ceil(Math.sqrt(n));\n /** @private */ this._hullPrev = new Uint32Array(n); // edge to prev edge\n /** @private */ this._hullNext = new Uint32Array(n); // edge to next edge\n /** @private */ this._hullTri = new Uint32Array(n); // edge to adjacent triangle\n /** @private */ this._hullHash = new Int32Array(this._hashSize); // angular edge hash\n\n // temporary arrays for sorting points\n /** @private */ this._ids = new Uint32Array(n);\n /** @private */ this._dists = new Float64Array(n);\n\n /** @private */ this.trianglesLen = 0;\n /** @private */ this._cx = 0;\n /** @private */ this._cy = 0;\n /** @private */ this._hullStart = 0;\n\n\n /** A `Uint32Array` array of indices that reference points on the convex hull of the input data, counter-clockwise. */\n this.hull = this._triangles;\n /** A `Uint32Array` array of triangle vertex indices (each group of three numbers forms a triangle). All triangles are directed counterclockwise. */\n this.triangles = this._triangles;\n /**\n * A `Int32Array` array of triangle half-edge indices that allows you to traverse the triangulation.\n * `i`-th half-edge in the array corresponds to vertex `triangles[i]` the half-edge is coming from.\n * `halfedges[i]` is the index of a twin half-edge in an adjacent triangle (or `-1` for outer half-edges on the convex hull).\n */\n this.halfedges = this._halfedges;\n\n this.update();\n }\n\n /**\n * Updates the triangulation if you modified `delaunay.coords` values in place, avoiding expensive memory allocations.\n * Useful for iterative relaxation algorithms such as Lloyd's.\n */\n update() {\n const {coords, _hullPrev: hullPrev, _hullNext: hullNext, _hullTri: hullTri, _hullHash: hullHash} = this;\n const n = coords.length >> 1;\n\n // populate an array of point indices; calculate input data bbox\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n\n for (let i = 0; i < n; i++) {\n const x = coords[2 * i];\n const y = coords[2 * i + 1];\n if (x < minX) minX = x;\n if (y < minY) minY = y;\n if (x > maxX) maxX = x;\n if (y > maxY) maxY = y;\n this._ids[i] = i;\n }\n const cx = (minX + maxX) / 2;\n const cy = (minY + maxY) / 2;\n\n let i0 = 0, i1 = 0, i2 = 0;\n\n // pick a seed point close to the center\n for (let i = 0, minDist = Infinity; i < n; i++) {\n const d = dist(cx, cy, coords[2 * i], coords[2 * i + 1]);\n if (d < minDist) {\n i0 = i;\n minDist = d;\n }\n }\n const i0x = coords[2 * i0];\n const i0y = coords[2 * i0 + 1];\n\n // find the point closest to the seed\n for (let i = 0, minDist = Infinity; i < n; i++) {\n if (i === i0) continue;\n const d = dist(i0x, i0y, coords[2 * i], coords[2 * i + 1]);\n if (d < minDist && d > 0) {\n i1 = i;\n minDist = d;\n }\n }\n let i1x = coords[2 * i1];\n let i1y = coords[2 * i1 + 1];\n\n let minRadius = Infinity;\n\n // find the third point which forms the smallest circumcircle with the first two\n for (let i = 0; i < n; i++) {\n if (i === i0 || i === i1) continue;\n const r = circumradius(i0x, i0y, i1x, i1y, coords[2 * i], coords[2 * i + 1]);\n if (r < minRadius) {\n i2 = i;\n minRadius = r;\n }\n }\n let i2x = coords[2 * i2];\n let i2y = coords[2 * i2 + 1];\n\n if (minRadius === Infinity) {\n // order collinear points by dx (or dy if all x are identical)\n // and return the list as a hull\n for (let i = 0; i < n; i++) {\n this._dists[i] = (coords[2 * i] - coords[0]) || (coords[2 * i + 1] - coords[1]);\n }\n quicksort(this._ids, this._dists, 0, n - 1);\n const hull = new Uint32Array(n);\n let j = 0;\n for (let i = 0, d0 = -Infinity; i < n; i++) {\n const id = this._ids[i];\n const d = this._dists[id];\n if (d > d0) {\n hull[j++] = id;\n d0 = d;\n }\n }\n this.hull = hull.subarray(0, j);\n this.triangles = new Uint32Array(0);\n this.halfedges = new Int32Array(0);\n return;\n }\n\n // swap the order of the seed points for counter-clockwise orientation\n if (orient2d(i0x, i0y, i1x, i1y, i2x, i2y) < 0) {\n const i = i1;\n const x = i1x;\n const y = i1y;\n i1 = i2;\n i1x = i2x;\n i1y = i2y;\n i2 = i;\n i2x = x;\n i2y = y;\n }\n\n const center = circumcenter(i0x, i0y, i1x, i1y, i2x, i2y);\n this._cx = center.x;\n this._cy = center.y;\n\n for (let i = 0; i < n; i++) {\n this._dists[i] = dist(coords[2 * i], coords[2 * i + 1], center.x, center.y);\n }\n\n // sort the points by distance from the seed triangle circumcenter\n quicksort(this._ids, this._dists, 0, n - 1);\n\n // set up the seed triangle as the starting hull\n this._hullStart = i0;\n let hullSize = 3;\n\n hullNext[i0] = hullPrev[i2] = i1;\n hullNext[i1] = hullPrev[i0] = i2;\n hullNext[i2] = hullPrev[i1] = i0;\n\n hullTri[i0] = 0;\n hullTri[i1] = 1;\n hullTri[i2] = 2;\n\n hullHash.fill(-1);\n hullHash[this._hashKey(i0x, i0y)] = i0;\n hullHash[this._hashKey(i1x, i1y)] = i1;\n hullHash[this._hashKey(i2x, i2y)] = i2;\n\n this.trianglesLen = 0;\n this._addTriangle(i0, i1, i2, -1, -1, -1);\n\n for (let k = 0, xp = 0, yp = 0; k < this._ids.length; k++) {\n const i = this._ids[k];\n const x = coords[2 * i];\n const y = coords[2 * i + 1];\n\n // skip near-duplicate points\n if (k > 0 && Math.abs(x - xp) <= EPSILON && Math.abs(y - yp) <= EPSILON) continue;\n xp = x;\n yp = y;\n\n // skip seed triangle points\n if (i === i0 || i === i1 || i === i2) continue;\n\n // find a visible edge on the convex hull using edge hash\n let start = 0;\n for (let j = 0, key = this._hashKey(x, y); j < this._hashSize; j++) {\n start = hullHash[(key + j) % this._hashSize];\n if (start !== -1 && start !== hullNext[start]) break;\n }\n\n start = hullPrev[start];\n let e = start, q;\n while (q = hullNext[e], orient2d(x, y, coords[2 * e], coords[2 * e + 1], coords[2 * q], coords[2 * q + 1]) >= 0) {\n e = q;\n if (e === start) {\n e = -1;\n break;\n }\n }\n if (e === -1) continue; // likely a near-duplicate point; skip it\n\n // add the first triangle from the point\n let t = this._addTriangle(e, i, hullNext[e], -1, -1, hullTri[e]);\n\n // recursively flip triangles from the point until they satisfy the Delaunay condition\n hullTri[i] = this._legalize(t + 2);\n hullTri[e] = t; // keep track of boundary triangles on the hull\n hullSize++;\n\n // walk forward through the hull, adding more triangles and flipping recursively\n let n = hullNext[e];\n while (q = hullNext[n], orient2d(x, y, coords[2 * n], coords[2 * n + 1], coords[2 * q], coords[2 * q + 1]) < 0) {\n t = this._addTriangle(n, i, q, hullTri[i], -1, hullTri[n]);\n hullTri[i] = this._legalize(t + 2);\n hullNext[n] = n; // mark as removed\n hullSize--;\n n = q;\n }\n\n // walk backward from the other side, adding more triangles and flipping\n if (e === start) {\n while (q = hullPrev[e], orient2d(x, y, coords[2 * q], coords[2 * q + 1], coords[2 * e], coords[2 * e + 1]) < 0) {\n t = this._addTriangle(q, i, e, -1, hullTri[e], hullTri[q]);\n this._legalize(t + 2);\n hullTri[q] = t;\n hullNext[e] = e; // mark as removed\n hullSize--;\n e = q;\n }\n }\n\n // update the hull indices\n this._hullStart = hullPrev[i] = e;\n hullNext[e] = hullPrev[n] = i;\n hullNext[i] = n;\n\n // save the two new edges in the hash table\n hullHash[this._hashKey(x, y)] = i;\n hullHash[this._hashKey(coords[2 * e], coords[2 * e + 1])] = e;\n }\n\n this.hull = new Uint32Array(hullSize);\n for (let i = 0, e = this._hullStart; i < hullSize; i++) {\n this.hull[i] = e;\n e = hullNext[e];\n }\n\n // trim typed triangle mesh arrays\n this.triangles = this._triangles.subarray(0, this.trianglesLen);\n this.halfedges = this._halfedges.subarray(0, this.trianglesLen);\n }\n\n /**\n * Calculate an angle-based key for the edge hash used for advancing convex hull.\n *\n * @param {number} x\n * @param {number} y\n * @private\n */\n _hashKey(x, y) {\n return Math.floor(pseudoAngle(x - this._cx, y - this._cy) * this._hashSize) % this._hashSize;\n }\n\n /**\n * Flip an edge in a pair of triangles if it doesn't satisfy the Delaunay condition.\n *\n * @param {number} a\n * @private\n */\n _legalize(a) {\n const {_triangles: triangles, _halfedges: halfedges, coords} = this;\n\n let i = 0;\n let ar = 0;\n\n // recursion eliminated with a fixed-size stack\n while (true) {\n const b = halfedges[a];\n\n /* if the pair of triangles doesn't satisfy the Delaunay condition\n * (p1 is inside the circumcircle of [p0, pl, pr]), flip them,\n * then do the same check/flip recursively for the new pair of triangles\n *\n * pl pl\n * /||\\ / \\\n * al/ || \\bl al/ \\a\n * / || \\ / \\\n * / a||b \\ flip /___ar___\\\n * p0\\ || /p1 => p0\\---bl---/p1\n * \\ || / \\ /\n * ar\\ || /br b\\ /br\n * \\||/ \\ /\n * pr pr\n */\n const a0 = a - a % 3;\n ar = a0 + (a + 2) % 3;\n\n if (b === -1) { // convex hull edge\n if (i === 0) break;\n a = EDGE_STACK[--i];\n continue;\n }\n\n const b0 = b - b % 3;\n const al = a0 + (a + 1) % 3;\n const bl = b0 + (b + 2) % 3;\n\n const p0 = triangles[ar];\n const pr = triangles[a];\n const pl = triangles[al];\n const p1 = triangles[bl];\n\n const illegal = inCircle(\n coords[2 * p0], coords[2 * p0 + 1],\n coords[2 * pr], coords[2 * pr + 1],\n coords[2 * pl], coords[2 * pl + 1],\n coords[2 * p1], coords[2 * p1 + 1]);\n\n if (illegal) {\n triangles[a] = p1;\n triangles[b] = p0;\n\n const hbl = halfedges[bl];\n\n // edge swapped on the other side of the hull (rare); fix the half-edge reference\n if (hbl === -1) {\n let e = this._hullStart;\n do {\n if (this._hullTri[e] === bl) {\n this._hullTri[e] = a;\n break;\n }\n e = this._hullPrev[e];\n } while (e !== this._hullStart);\n }\n this._link(a, hbl);\n this._link(b, halfedges[ar]);\n this._link(ar, bl);\n\n const br = b0 + (b + 1) % 3;\n\n // don't worry about hitting the cap: it can only happen on extremely degenerate input\n if (i < EDGE_STACK.length) {\n EDGE_STACK[i++] = br;\n }\n } else {\n if (i === 0) break;\n a = EDGE_STACK[--i];\n }\n }\n\n return ar;\n }\n\n /**\n * Link two half-edges to each other.\n * @param {number} a\n * @param {number} b\n * @private\n */\n _link(a, b) {\n this._halfedges[a] = b;\n if (b !== -1) this._halfedges[b] = a;\n }\n\n /**\n * Add a new triangle given vertex indices and adjacent half-edge ids.\n *\n * @param {number} i0\n * @param {number} i1\n * @param {number} i2\n * @param {number} a\n * @param {number} b\n * @param {number} c\n * @private\n */\n _addTriangle(i0, i1, i2, a, b, c) {\n const t = this.trianglesLen;\n\n this._triangles[t] = i0;\n this._triangles[t + 1] = i1;\n this._triangles[t + 2] = i2;\n\n this._link(t, a);\n this._link(t + 1, b);\n this._link(t + 2, c);\n\n this.trianglesLen += 3;\n\n return t;\n }\n}\n\n/**\n * Monotonically increases with real angle, but doesn't need expensive trigonometry.\n *\n * @param {number} dx\n * @param {number} dy\n */\nfunction pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}\n\n/**\n * Squared distance between two points.\n *\n * @param {number} ax\n * @param {number} ay\n * @param {number} bx\n * @param {number} by\n */\nfunction dist(ax, ay, bx, by) {\n const dx = ax - bx;\n const dy = ay - by;\n return dx * dx + dy * dy;\n}\n\n/**\n * Check whether point P is inside a circle formed by points A, B, C.\n *\n * @param {number} ax\n * @param {number} ay\n * @param {number} bx\n * @param {number} by\n * @param {number} cx\n * @param {number} cy\n * @param {number} px\n * @param {number} py\n */\nfunction inCircle(ax, ay, bx, by, cx, cy, px, py) {\n const dx = ax - px;\n const dy = ay - py;\n const ex = bx - px;\n const ey = by - py;\n const fx = cx - px;\n const fy = cy - py;\n\n const ap = dx * dx + dy * dy;\n const bp = ex * ex + ey * ey;\n const cp = fx * fx + fy * fy;\n\n return dx * (ey * cp - bp * fy) -\n dy * (ex * cp - bp * fx) +\n ap * (ex * fy - ey * fx) < 0;\n}\n\n/**\n * Squared radius of the circle formed by points A, B, C.\n *\n * @param {number} ax\n * @param {number} ay\n * @param {number} bx\n * @param {number} by\n * @param {number} cx\n * @param {number} cy\n */\nfunction circumradius(ax, ay, bx, by, cx, cy) {\n const dx = bx - ax;\n const dy = by - ay;\n const ex = cx - ax;\n const ey = cy - ay;\n\n const bl = dx * dx + dy * dy;\n const cl = ex * ex + ey * ey;\n const d = 0.5 / (dx * ey - dy * ex);\n\n const x = (ey * bl - dy * cl) * d;\n const y = (dx * cl - ex * bl) * d;\n\n return x * x + y * y;\n}\n\n/**\n * Get coordinates of a circumcenter for points A, B, C.\n *\n * @param {number} ax\n * @param {number} ay\n * @param {number} bx\n * @param {number} by\n * @param {number} cx\n * @param {number} cy\n */\nfunction circumcenter(ax, ay, bx, by, cx, cy) {\n const dx = bx - ax;\n const dy = by - ay;\n const ex = cx - ax;\n const ey = cy - ay;\n\n const bl = dx * dx + dy * dy;\n const cl = ex * ex + ey * ey;\n const d = 0.5 / (dx * ey - dy * ex);\n\n const x = ax + (ey * bl - dy * cl) * d;\n const y = ay + (dx * cl - ex * bl) * d;\n\n return {x, y};\n}\n\n/**\n * Sort points by distance via an array of point indices and an array of calculated distances.\n *\n * @param {Uint32Array} ids\n * @param {Float64Array} dists\n * @param {number} left\n * @param {number} right\n */\nfunction quicksort(ids, dists, left, right) {\n if (right - left <= 20) {\n for (let i = left + 1; i <= right; i++) {\n const temp = ids[i];\n const tempDist = dists[temp];\n let j = i - 1;\n while (j >= left && dists[ids[j]] > tempDist) ids[j + 1] = ids[j--];\n ids[j + 1] = temp;\n }\n } else {\n const median = (left + right) >> 1;\n let i = left + 1;\n let j = right;\n swap(ids, median, i);\n if (dists[ids[left]] > dists[ids[right]]) swap(ids, left, right);\n if (dists[ids[i]] > dists[ids[right]]) swap(ids, i, right);\n if (dists[ids[left]] > dists[ids[i]]) swap(ids, left, i);\n\n const temp = ids[i];\n const tempDist = dists[temp];\n while (true) {\n do i++; while (dists[ids[i]] < tempDist);\n do j--; while (dists[ids[j]] > tempDist);\n if (j < i) break;\n swap(ids, i, j);\n }\n ids[left + 1] = ids[j];\n ids[j] = temp;\n\n if (right - i + 1 >= j - left) {\n quicksort(ids, dists, i, right);\n quicksort(ids, dists, left, j - 1);\n } else {\n quicksort(ids, dists, left, j - 1);\n quicksort(ids, dists, i, right);\n }\n }\n}\n\n/**\n * @param {Uint32Array} arr\n * @param {number} i\n * @param {number} j\n */\nfunction swap(arr, i, j) {\n const tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n}\n\n/** @param {[number, number]} p */\nfunction defaultGetX(p) {\n return p[0];\n}\n/** @param {[number, number]} p */\nfunction defaultGetY(p) {\n return p[1];\n}\n"],"names":["EPSILON","EDGE_STACK","Delaunator","points","getX","defaultGetX","getY","defaultGetY","n","coords","i","p","maxTriangles","hullPrev","hullNext","hullTri","hullHash","minX","minY","maxX","maxY","x","y","cx","cy","i0","i1","i2","minDist","d","dist","i0x","i0y","i1x","i1y","minRadius","r","circumradius","i2x","i2y","quicksort","hull","j","d0","id","orient2d","center","circumcenter","hullSize","k","xp","yp","start","key","e","q","t","pseudoAngle","a","triangles","halfedges","ar","b","a0","b0","al","bl","p0","pr","pl","p1","inCircle","hbl","br","c","dx","dy","ax","ay","bx","by","px","py","ex","ey","fx","fy","ap","bp","cp","cl","ids","dists","left","right","temp","tempDist","median","swap","arr","tmp"],"mappings":"kDACMA,EAAU,KAAK,IAAI,EAAG,GAAG,EACzBC,EAAa,IAAI,YAAY,GAAG,EAKtC,MAAqBC,CAAW,CAY5B,OAAO,KAAKC,EAAQC,EAAOC,EAAaC,EAAOC,EAAa,CACxD,M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,GAAGI,EAAKP,EAAKE,EAAMC,CAAK,EAC3DF,EAAMD,EAAIjF,CAAC,CAAC,EAAIkF,EAAMD,EAAIG,CAAK,CAAC,GAAGI,EAAKP,EAAKjF,EAAGoF,CAAK,EACrDF,EAAMD,EAAIE,CAAI,CAAC,EAAID,EAAMD,EAAIjF,CAAC,CAAC,GAAGwF,EAAKP,EAAKE,EAAMnF,CAAC,EAEvD,MAAMqF,EAAOJ,EAAIjF,CAAC,EACZsF,EAAWJ,EAAMG,CAAI,EAC3B,OAAa,CACT,GAAGrF,UAAYkF,EAAMD,EAAIjF,CAAC,CAAC,EAAIsF,GAC/B,GAAGtD,UAAYkD,EAAMD,EAAIjD,CAAC,CAAC,EAAIsD,GAC/B,GAAItD,EAAIhC,EAAG,MACXwF,EAAKP,EAAKjF,EAAGgC,CAAC,CAClB,CACAiD,EAAIE,EAAO,CAAC,EAAIF,EAAIjD,CAAC,EACrBiD,EAAIjD,CAAC,EAAIqD,EAELD,EAAQpF,EAAI,GAAKgC,EAAImD,GACrBrD,EAAUmD,EAAKC,EAAOlF,EAAGoF,CAAK,EAC9BtD,EAAUmD,EAAKC,EAAOC,EAAMnD,EAAI,CAAC,IAEjCF,EAAUmD,EAAKC,EAAOC,EAAMnD,EAAI,CAAC,EACjCF,EAAUmD,EAAKC,EAAOlF,EAAGoF,CAAK,EAEtC,CACJ,CAOA,SAASI,EAAKC,EAAKzF,EAAGgC,EAAG,CACrB,MAAM0D,EAAMD,EAAIzF,CAAC,EACjByF,EAAIzF,CAAC,EAAIyF,EAAIzD,CAAC,EACdyD,EAAIzD,CAAC,EAAI0D,CACb,CAGA,SAAS/F,EAAYM,EAAG,CACpB,OAAOA,EAAE,CAAC,CACd,CAEA,SAASJ,EAAYI,EAAG,CACpB,OAAOA,EAAE,CAAC,CACd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./index.cjs513.js"),M=require("./index.cjs514.js"),q=require("./index.cjs215.js"),p=require("./index.cjs274.js");function P(n,e,o=!0){const[t,s]=n,[[r,i],[c,l]]=e;return o&&(t===r&&s===i||t===c&&s===l)||(t-r)*(t-c)>0||(s-i)*(s-l)>0?!1:x.orient2d(r,i,c,l,t,s)===0}function y(n){const e=new M(n.length);for(const[o,t]of n)e.add(o,t);return e.finish(),{tree:e,points:n}}function m(n,{tree:e,points:o}){const t=[];for(let s=0;s<n.length;s++){const r=n[s],i=n[(s+1)%n.length],[c,l]=r,[a,g]=i;t.push(r);const d=e.range(Math.min(c,a),Math.min(l,g),Math.max(c,a),Math.max(l,g));if(d.length===0)continue;const f=[];for(const u of d){const[h,b]=o[u];P([h,b],[r,i])&&f.push(o[u])}f.length===1?t.push(f[0]):f.length>1&&(f.sort(([u,h],[b,L])=>(u-c)**2+(h-l)**2-((b-c)**2+(L-l)**2)),t.push(...f))}return t}function D(n,e,o=y(e)){return n.map(t=>m(t,o))}function k(n,e){const o=p.distance(...n),t=Math.ceil(o/e)-1,s=p.lineAngle(n);let r=n[0];const i=[r];for(let c=1;c<=t;c++)r=p.stepDistanceAngle(r,e,s),i.push(r);return i}function R(n,e){n=p.closeRing(n);let o=[];for(let t=0;t<n.length-1;t++)o=o.concat(k([n[t],n[t+1]],e));return o}function v(n,e){return n.map(o=>R(o,e))}function A(n,e){const o=[];for(let t=n[0]+e,s=0;t<=n[2];s++,t+=e)for(let r=n[1]+e,i=0;r<=n[3];i++,r+=e)o.push([t,r]);return o}function B(n){const e=n.map(t=>{const s=p.closeRing(t),r=s.length-1,i=new Float64Array(s.length*2);for(let c=0;c<s.length;c++)i[c*2]=s[c][0],i[c*2+1]=s[c][1];return{coords:i,length:r}}),o=q.computeBbox(n);return{closedRings:e,bbox:o}}function I(n,e,o){if(n<o.bbox[0]||e<o.bbox[1]||n>o.bbox[2]||e>o.bbox[3])return!1;let t=0;const s=o.closedRings;for(let r=0;r<s.length;r++){const i=s[r].coords,c=s[r].length;let l=i[0]-n,a=i[1]-e;for(let g=0;g<c;g++){const d=(g+1)*2,f=i[d]-n,u=i[d+1]-e;if(a===0&&u===0){if(f<=0&&l>=0||l<=0&&f>=0)return 0}else if(u>=0&&a<=0||u<=0&&a>=0){const h=x.orient2d(l,f,a,u,0,0);if(h===0)return 0;(h>0&&u>0&&a<=0||h<0&&u<=0&&a>0)&&t++}l=f,a=u}}return t%2!==0}function F(n,e,o){return o.some(t=>I(n,e,t))}exports.bboxToGridPoints=A;exports.buildKDBushPointIndex=y;exports.coordsInPolygonForInsidenessCheck=I;exports.coordsInPolygonsForInsidenessCheck=F;exports.interpolatePolygon=v;exports.interpolateRing=R;exports.pointOnLine=P;exports.preprocessPolygonForInsideCheck=B;exports.splitPolygonLines=D;exports.splitRingLines=m;
2
+ //# sourceMappingURL=index.cjs422.js.map