mada-design-system 1.0.0 → 1.0.1

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 (812) hide show
  1. package/eslint.config.cjs +43 -0
  2. package/index.cjs10.js +1 -1
  3. package/index.cjs103.js +1 -1
  4. package/index.cjs106.js +1 -1
  5. package/index.cjs107.js +1 -1
  6. package/index.cjs108.js +1 -4
  7. package/index.cjs109.js +1 -1
  8. package/index.cjs11.js +1 -1
  9. package/index.cjs110.js +1 -1
  10. package/index.cjs111.js +1 -1
  11. package/index.cjs112.js +1 -1
  12. package/index.cjs113.js +1 -1
  13. package/index.cjs114.js +5 -1
  14. package/index.cjs115.js +1 -1
  15. package/index.cjs116.js +1 -1
  16. package/index.cjs117.js +1 -1
  17. package/index.cjs118.js +1 -1
  18. package/index.cjs119.js +1 -5
  19. package/index.cjs12.js +1 -1
  20. package/index.cjs120.js +1 -1
  21. package/index.cjs121.js +1 -1
  22. package/index.cjs122.js +1 -1
  23. package/index.cjs123.js +1 -1
  24. package/index.cjs124.js +1 -1
  25. package/index.cjs125.js +1 -1
  26. package/index.cjs126.js +1 -1
  27. package/index.cjs127.js +1 -1
  28. package/index.cjs128.js +1 -1
  29. package/index.cjs129.js +1 -1
  30. package/index.cjs13.js +1 -1
  31. package/index.cjs130.js +1 -1
  32. package/index.cjs131.js +1 -1
  33. package/index.cjs132.js +1 -1
  34. package/index.cjs133.js +1 -1
  35. package/index.cjs134.js +1 -1
  36. package/index.cjs135.js +1 -1
  37. package/index.cjs136.js +1 -1
  38. package/index.cjs137.js +1 -1
  39. package/index.cjs138.js +1 -1
  40. package/index.cjs139.js +1 -1
  41. package/index.cjs14.js +1 -1
  42. package/index.cjs140.js +1 -1
  43. package/index.cjs141.js +20 -1
  44. package/index.cjs142.js +1 -1
  45. package/index.cjs143.js +1 -1
  46. package/index.cjs144.js +1 -1
  47. package/index.cjs145.js +1 -20
  48. package/index.cjs146.js +1 -1
  49. package/index.cjs147.js +1 -1
  50. package/index.cjs148.js +1 -1
  51. package/index.cjs149.js +1 -1
  52. package/index.cjs15.js +1 -1
  53. package/index.cjs150.js +1 -1
  54. package/index.cjs151.js +1 -1
  55. package/index.cjs152.js +1 -1
  56. package/index.cjs153.js +1 -1
  57. package/index.cjs154.js +1 -1
  58. package/index.cjs155.js +1 -1
  59. package/index.cjs156.js +1 -1
  60. package/index.cjs157.js +1 -1
  61. package/index.cjs158.js +1 -1
  62. package/index.cjs159.js +1 -1
  63. package/index.cjs16.js +1 -1
  64. package/index.cjs160.js +1 -1
  65. package/index.cjs161.js +1 -1
  66. package/index.cjs162.js +1 -1
  67. package/index.cjs163.js +1 -1
  68. package/index.cjs164.js +1 -1
  69. package/index.cjs165.js +1 -1
  70. package/index.cjs166.js +1 -1
  71. package/index.cjs167.js +1 -1
  72. package/index.cjs168.js +1 -1
  73. package/index.cjs169.js +1 -1
  74. package/index.cjs17.js +1 -1
  75. package/index.cjs170.js +1 -1
  76. package/index.cjs171.js +1 -1
  77. package/index.cjs172.js +1 -1
  78. package/index.cjs173.js +1 -1
  79. package/index.cjs174.js +1 -1
  80. package/index.cjs175.js +1 -1
  81. package/index.cjs176.js +1 -1
  82. package/index.cjs177.js +1 -1
  83. package/index.cjs178.js +1 -1
  84. package/index.cjs179.js +1 -1
  85. package/index.cjs18.js +1 -1
  86. package/index.cjs180.js +1 -1
  87. package/index.cjs181.js +1 -1
  88. package/index.cjs182.js +1 -1
  89. package/index.cjs183.js +1 -1
  90. package/index.cjs184.js +1 -1
  91. package/index.cjs185.js +1 -1
  92. package/index.cjs186.js +2 -1
  93. package/index.cjs187.js +1 -1
  94. package/index.cjs188.js +1 -1
  95. package/index.cjs189.js +1 -1
  96. package/index.cjs190.js +1 -1
  97. package/index.cjs191.js +1 -1
  98. package/index.cjs192.js +1 -1
  99. package/index.cjs193.js +1 -1
  100. package/index.cjs194.js +1 -1
  101. package/index.cjs195.js +1 -4
  102. package/index.cjs196.js +1 -1
  103. package/index.cjs197.js +1 -1
  104. package/index.cjs198.js +1 -1
  105. package/index.cjs199.js +1 -1
  106. package/index.cjs20.js +1 -1
  107. package/index.cjs200.js +1 -1
  108. package/index.cjs201.js +1 -1
  109. package/index.cjs202.js +1 -1
  110. package/index.cjs203.js +1 -1
  111. package/index.cjs204.js +1 -1
  112. package/index.cjs205.js +1 -1
  113. package/index.cjs206.js +1 -1
  114. package/index.cjs207.js +1 -1
  115. package/index.cjs208.js +1 -1
  116. package/index.cjs209.js +1 -1
  117. package/index.cjs210.js +1 -1
  118. package/index.cjs211.js +1 -1
  119. package/index.cjs212.js +1 -1
  120. package/index.cjs213.js +1 -1
  121. package/index.cjs214.js +1 -1
  122. package/index.cjs215.js +1 -1
  123. package/index.cjs216.js +1 -1
  124. package/index.cjs217.js +1 -1
  125. package/index.cjs218.js +1 -1
  126. package/index.cjs219.js +1 -1
  127. package/index.cjs22.js +1 -1
  128. package/index.cjs220.js +1 -1
  129. package/index.cjs221.js +1 -1
  130. package/index.cjs222.js +1 -1
  131. package/index.cjs223.js +1 -1
  132. package/index.cjs224.js +1 -1
  133. package/index.cjs225.js +1 -1
  134. package/index.cjs226.js +1 -1
  135. package/index.cjs227.js +1 -1
  136. package/index.cjs228.js +1 -1
  137. package/index.cjs229.js +1 -1
  138. package/index.cjs230.js +1 -1
  139. package/index.cjs231.js +1 -1
  140. package/index.cjs232.js +1 -1
  141. package/index.cjs233.js +1 -1
  142. package/index.cjs234.js +1 -1
  143. package/index.cjs235.js +1 -1
  144. package/index.cjs236.js +1 -1
  145. package/index.cjs237.js +1 -1
  146. package/index.cjs238.js +1 -1
  147. package/index.cjs239.js +1 -1
  148. package/index.cjs240.js +1 -1
  149. package/index.cjs241.js +1 -1
  150. package/index.cjs242.js +1 -1
  151. package/index.cjs243.js +1 -1
  152. package/index.cjs244.js +1 -1
  153. package/index.cjs245.js +1 -1
  154. package/index.cjs246.js +1 -1
  155. package/index.cjs247.js +1 -1
  156. package/index.cjs248.js +1 -1
  157. package/index.cjs249.js +1 -1
  158. package/index.cjs25.js +1 -1
  159. package/index.cjs250.js +1 -1
  160. package/index.cjs251.js +1 -1
  161. package/index.cjs252.js +1 -1
  162. package/index.cjs253.js +1 -1
  163. package/index.cjs254.js +1 -1
  164. package/index.cjs255.js +1 -1
  165. package/index.cjs256.js +1 -1
  166. package/index.cjs257.js +1 -1
  167. package/index.cjs258.js +1 -1
  168. package/index.cjs259.js +1 -1
  169. package/index.cjs26.js +1 -1
  170. package/index.cjs260.js +1 -1
  171. package/index.cjs261.js +1 -1
  172. package/index.cjs262.js +1 -1
  173. package/index.cjs263.js +1 -1
  174. package/index.cjs264.js +1 -1
  175. package/index.cjs265.js +1 -1
  176. package/index.cjs266.js +1 -1
  177. package/index.cjs267.js +1 -1
  178. package/index.cjs268.js +1 -1
  179. package/index.cjs269.js +1 -1
  180. package/index.cjs27.js +1 -1
  181. package/index.cjs270.js +1 -1
  182. package/index.cjs271.js +1 -1
  183. package/index.cjs272.js +1 -1
  184. package/index.cjs273.js +1 -1
  185. package/index.cjs274.js +1 -1
  186. package/index.cjs275.js +1 -1
  187. package/index.cjs276.js +1 -1
  188. package/index.cjs277.js +1 -1
  189. package/index.cjs278.js +1 -1
  190. package/index.cjs279.js +1 -1
  191. package/index.cjs28.js +1 -1
  192. package/index.cjs280.js +1 -1
  193. package/index.cjs281.js +1 -1
  194. package/index.cjs282.js +1 -1
  195. package/index.cjs283.js +1 -1
  196. package/index.cjs284.js +1 -1
  197. package/index.cjs285.js +1 -1
  198. package/index.cjs286.js +1 -1
  199. package/index.cjs287.js +1 -1
  200. package/index.cjs288.js +1 -1
  201. package/index.cjs289.js +1 -1
  202. package/index.cjs29.js +1 -1
  203. package/index.cjs290.js +1 -1
  204. package/index.cjs291.js +1 -1
  205. package/index.cjs292.js +1 -1
  206. package/index.cjs293.js +1 -1
  207. package/index.cjs294.js +1 -1
  208. package/index.cjs295.js +1 -1
  209. package/index.cjs296.js +1 -1
  210. package/index.cjs297.js +1 -1
  211. package/index.cjs298.js +1 -1
  212. package/index.cjs299.js +1 -1
  213. package/index.cjs300.js +1 -1
  214. package/index.cjs301.js +1 -1
  215. package/index.cjs302.js +1 -1
  216. package/index.cjs303.js +1 -1
  217. package/index.cjs304.js +1 -1
  218. package/index.cjs305.js +1 -1
  219. package/index.cjs306.js +1 -1
  220. package/index.cjs307.js +1 -1
  221. package/index.cjs308.js +1 -1
  222. package/index.cjs309.js +1 -1
  223. package/index.cjs31.js +1 -1
  224. package/index.cjs310.js +1 -1
  225. package/index.cjs311.js +1 -1
  226. package/index.cjs312.js +1 -1
  227. package/index.cjs313.js +1 -1
  228. package/index.cjs314.js +1 -1
  229. package/index.cjs315.js +1 -1
  230. package/index.cjs316.js +1 -1
  231. package/index.cjs317.js +1 -1
  232. package/index.cjs318.js +1 -1
  233. package/index.cjs319.js +1 -1
  234. package/index.cjs320.js +1 -1
  235. package/index.cjs321.js +1 -1
  236. package/index.cjs322.js +1 -1
  237. package/index.cjs323.js +1 -1
  238. package/index.cjs324.js +1 -1
  239. package/index.cjs325.js +1 -1
  240. package/index.cjs326.js +1 -1
  241. package/index.cjs327.js +1 -1
  242. package/index.cjs328.js +1 -1
  243. package/index.cjs329.js +1 -1
  244. package/index.cjs33.js +1 -1
  245. package/index.cjs330.js +1 -1
  246. package/index.cjs331.js +1 -1
  247. package/index.cjs332.js +1 -1
  248. package/index.cjs333.js +1 -1
  249. package/index.cjs334.js +1 -1
  250. package/index.cjs335.js +1 -1
  251. package/index.cjs336.js +1 -1
  252. package/index.cjs337.js +1 -1
  253. package/index.cjs338.js +1 -1
  254. package/index.cjs339.js +1 -1
  255. package/index.cjs34.js +1 -1
  256. package/index.cjs340.js +1 -1
  257. package/index.cjs341.js +1 -1
  258. package/index.cjs342.js +1 -1
  259. package/index.cjs343.js +1 -1
  260. package/index.cjs344.js +1 -1
  261. package/index.cjs345.js +1 -1
  262. package/index.cjs346.js +1 -1
  263. package/index.cjs347.js +1 -1
  264. package/index.cjs348.js +1 -1
  265. package/index.cjs349.js +1 -1
  266. package/index.cjs35.js +1 -1
  267. package/index.cjs350.js +1 -1
  268. package/index.cjs351.js +1 -1
  269. package/index.cjs352.js +1 -1
  270. package/index.cjs353.js +1 -1
  271. package/index.cjs354.js +1 -1
  272. package/index.cjs355.js +1 -1
  273. package/index.cjs356.js +1 -1
  274. package/index.cjs357.js +1 -1
  275. package/index.cjs358.js +1 -1
  276. package/index.cjs359.js +1 -1
  277. package/index.cjs36.js +1 -1
  278. package/index.cjs360.js +1 -1
  279. package/index.cjs361.js +1 -1
  280. package/index.cjs362.js +1 -1
  281. package/index.cjs363.js +1 -1
  282. package/index.cjs364.js +1 -1
  283. package/index.cjs365.js +1 -1
  284. package/index.cjs366.js +1 -1
  285. package/index.cjs367.js +1 -1
  286. package/index.cjs368.js +1 -1
  287. package/index.cjs369.js +1 -1
  288. package/index.cjs37.js +1 -1
  289. package/index.cjs370.js +1 -1
  290. package/index.cjs371.js +1 -1
  291. package/index.cjs372.js +1 -1
  292. package/index.cjs373.js +1 -1
  293. package/index.cjs374.js +1 -1
  294. package/index.cjs375.js +1 -1
  295. package/index.cjs376.js +1 -1
  296. package/index.cjs377.js +1 -1
  297. package/index.cjs378.js +1 -1
  298. package/index.cjs379.js +1 -1
  299. package/index.cjs38.js +1 -1
  300. package/index.cjs380.js +1 -1
  301. package/index.cjs381.js +1 -1
  302. package/index.cjs382.js +1 -1
  303. package/index.cjs383.js +1 -1
  304. package/index.cjs384.js +1 -1
  305. package/index.cjs385.js +1 -1
  306. package/index.cjs386.js +1 -1
  307. package/index.cjs387.js +1 -1
  308. package/index.cjs388.js +1 -1
  309. package/index.cjs389.js +1 -1
  310. package/index.cjs39.js +1 -1
  311. package/index.cjs390.js +1 -1
  312. package/index.cjs391.js +1 -1
  313. package/index.cjs392.js +1 -1
  314. package/index.cjs393.js +1 -1
  315. package/index.cjs394.js +1 -1
  316. package/index.cjs395.js +1 -1
  317. package/index.cjs396.js +1 -1
  318. package/index.cjs397.js +1 -1
  319. package/index.cjs398.js +1 -1
  320. package/index.cjs399.js +1 -1
  321. package/index.cjs400.js +1 -1
  322. package/index.cjs401.js +1 -1
  323. package/index.cjs402.js +1 -1
  324. package/index.cjs403.js +1 -1
  325. package/index.cjs404.js +1 -1
  326. package/index.cjs405.js +1 -1
  327. package/index.cjs406.js +1 -1
  328. package/index.cjs407.js +1 -1
  329. package/index.cjs408.js +1 -1
  330. package/index.cjs409.js +1 -1
  331. package/index.cjs410.js +1 -1
  332. package/index.cjs411.js +1 -1
  333. package/index.cjs412.js +1 -1
  334. package/index.cjs413.js +1 -1
  335. package/index.cjs414.js +1 -1
  336. package/index.cjs415.js +1 -1
  337. package/index.cjs416.js +1 -1
  338. package/index.cjs417.js +1 -1
  339. package/index.cjs418.js +1 -1
  340. package/index.cjs419.js +1 -1
  341. package/index.cjs42.js +1 -1
  342. package/index.cjs420.js +1 -1
  343. package/index.cjs421.js +1 -1
  344. package/index.cjs422.js +1 -1
  345. package/index.cjs423.js +1 -1
  346. package/index.cjs43.js +1 -1
  347. package/index.cjs44.js +1 -1
  348. package/index.cjs45.js +1 -1
  349. package/index.cjs46.js +1 -1
  350. package/index.cjs47.js +1 -1
  351. package/index.cjs48.js +1 -1
  352. package/index.cjs49.js +1 -1
  353. package/index.cjs51.js +1 -1
  354. package/index.cjs52.js +1 -1
  355. package/index.cjs53.js +1 -1
  356. package/index.cjs54.js +1 -1
  357. package/index.cjs55.js +1 -1
  358. package/index.cjs57.js +1 -1
  359. package/index.cjs58.js +1 -1
  360. package/index.cjs59.js +1 -1
  361. package/index.cjs6.js +1 -1
  362. package/index.cjs60.js +1 -1
  363. package/index.cjs61.js +1 -1
  364. package/index.cjs62.js +1 -1
  365. package/index.cjs63.js +1 -1
  366. package/index.cjs67.js +1 -1
  367. package/index.cjs68.js +1 -1
  368. package/index.cjs7.js +1 -1
  369. package/index.cjs70.js +1 -1
  370. package/index.cjs71.js +1 -1
  371. package/index.cjs73.js +1 -1
  372. package/index.cjs74.js +1 -1
  373. package/index.cjs78.js +1 -1
  374. package/index.cjs79.js +1 -1
  375. package/index.cjs8.js +1 -1
  376. package/index.cjs80.js +1 -1
  377. package/index.cjs81.js +1 -1
  378. package/index.cjs82.js +1 -1
  379. package/index.cjs83.js +1 -1
  380. package/index.cjs87.js +1 -1
  381. package/index.cjs9.js +1 -1
  382. package/index.cjs90.js +1 -1
  383. package/index.cjs91.js +1 -1
  384. package/index.cjs94.js +1 -1
  385. package/index.cjs99.js +1 -1
  386. package/index.es.d.ts +188 -47
  387. package/index.es10.js +3 -3
  388. package/index.es103.js +4 -4
  389. package/index.es106.js +11 -2408
  390. package/index.es107.js +86 -13
  391. package/index.es108.js +26 -2578
  392. package/index.es109.js +18 -5
  393. package/index.es11.js +1 -1
  394. package/index.es110.js +18 -11
  395. package/index.es111.js +19 -5
  396. package/index.es112.js +1698 -81
  397. package/index.es113.js +32 -23
  398. package/index.es114.js +2596 -18
  399. package/index.es115.js +320 -16
  400. package/index.es116.js +5 -19
  401. package/index.es117.js +11 -1705
  402. package/index.es118.js +11 -33
  403. package/index.es119.js +8 -2596
  404. package/index.es12.js +6 -6
  405. package/index.es120.js +30 -319
  406. package/index.es121.js +2 -11
  407. package/index.es122.js +5 -5
  408. package/index.es123.js +5 -5
  409. package/index.es124.js +10 -7
  410. package/index.es125.js +10 -32
  411. package/index.es126.js +10 -1
  412. package/index.es127.js +14 -11
  413. package/index.es128.js +228 -10
  414. package/index.es129.js +19 -11
  415. package/index.es13.js +1 -1
  416. package/index.es130.js +19 -11
  417. package/index.es131.js +4 -4
  418. package/index.es132.js +1988 -13
  419. package/index.es133.js +10 -228
  420. package/index.es134.js +6 -19
  421. package/index.es135.js +57 -19
  422. package/index.es136.js +6 -11
  423. package/index.es137.js +13 -1944
  424. package/index.es138.js +5 -5
  425. package/index.es139.js +11 -6
  426. package/index.es14.js +6 -6
  427. package/index.es140.js +10 -56
  428. package/index.es141.js +190 -5
  429. package/index.es142.js +4 -10
  430. package/index.es143.js +5 -5
  431. package/index.es144.js +5 -5
  432. package/index.es145.js +11 -191
  433. package/index.es146.js +10 -4
  434. package/index.es147.js +19 -11
  435. package/index.es148.js +7 -11
  436. package/index.es149.js +86 -10
  437. package/index.es15.js +3 -3
  438. package/index.es150.js +5 -5
  439. package/index.es151.js +11 -19
  440. package/index.es152.js +11 -7
  441. package/index.es153.js +10 -86
  442. package/index.es154.js +5 -5
  443. package/index.es155.js +5 -5
  444. package/index.es156.js +2 -11
  445. package/index.es157.js +2 -11
  446. package/index.es158.js +2 -11
  447. package/index.es159.js +2 -11
  448. package/index.es16.js +1 -1
  449. package/index.es160.js +1 -1
  450. package/index.es161.js +2 -2
  451. package/index.es162.js +11 -2
  452. package/index.es163.js +11 -2
  453. package/index.es164.js +11 -2
  454. package/index.es165.js +11 -2
  455. package/index.es166.js +5 -5
  456. package/index.es167.js +5 -5
  457. package/index.es168.js +5 -5
  458. package/index.es169.js +5 -5
  459. package/index.es17.js +2 -2
  460. package/index.es170.js +2 -11
  461. package/index.es171.js +2 -11
  462. package/index.es172.js +5 -5
  463. package/index.es173.js +5 -5
  464. package/index.es174.js +11 -2
  465. package/index.es175.js +11 -2
  466. package/index.es176.js +22 -11
  467. package/index.es177.js +5 -5
  468. package/index.es178.js +5 -5
  469. package/index.es179.js +5 -5
  470. package/index.es18.js +2 -2
  471. package/index.es180.js +16 -21
  472. package/index.es181.js +12 -11
  473. package/index.es182.js +11 -24
  474. package/index.es183.js +5 -5
  475. package/index.es184.js +5 -5
  476. package/index.es185.js +11 -12
  477. package/index.es186.js +156 -10
  478. package/index.es187.js +6 -11
  479. package/index.es188.js +2408 -11
  480. package/index.es189.js +11 -11
  481. package/index.es190.js +6 -505
  482. package/index.es191.js +497 -128
  483. package/index.es192.js +2 -8
  484. package/index.es193.js +31 -2152
  485. package/index.es194.js +12 -2
  486. package/index.es195.js +230 -2267
  487. package/index.es196.js +51 -47
  488. package/index.es197.js +85 -2
  489. package/index.es198.js +2 -4
  490. package/index.es199.js +479 -2
  491. package/index.es20.js +5 -5
  492. package/index.es200.js +49 -12
  493. package/index.es201.js +14 -24
  494. package/index.es202.js +32 -10
  495. package/index.es203.js +1199 -36
  496. package/index.es204.js +37 -1998
  497. package/index.es205.js +12 -7
  498. package/index.es206.js +7 -71
  499. package/index.es207.js +5 -24
  500. package/index.es208.js +6 -31
  501. package/index.es209.js +18 -12
  502. package/index.es210.js +5 -82
  503. package/index.es211.js +5 -5
  504. package/index.es212.js +7 -98
  505. package/index.es213.js +13 -25
  506. package/index.es214.js +15 -38
  507. package/index.es215.js +7 -231
  508. package/index.es216.js +6 -53
  509. package/index.es217.js +10 -478
  510. package/index.es218.js +14 -14
  511. package/index.es219.js +5 -32
  512. package/index.es22.js +1 -1
  513. package/index.es220.js +14 -1201
  514. package/index.es221.js +6 -14
  515. package/index.es222.js +9 -5
  516. package/index.es223.js +6 -38
  517. package/index.es224.js +4 -7
  518. package/index.es225.js +6 -5
  519. package/index.es226.js +580 -5
  520. package/index.es227.js +50 -18
  521. package/index.es228.js +17 -5
  522. package/index.es229.js +8 -5
  523. package/index.es230.js +7 -7
  524. package/index.es231.js +7 -13
  525. package/index.es232.js +5 -15
  526. package/index.es233.js +6 -8
  527. package/index.es234.js +9 -6
  528. package/index.es235.js +5 -10
  529. package/index.es236.js +8 -14
  530. package/index.es237.js +12 -5
  531. package/index.es238.js +5 -14
  532. package/index.es239.js +9 -5
  533. package/index.es240.js +7 -7
  534. package/index.es241.js +10 -6
  535. package/index.es242.js +14 -4
  536. package/index.es243.js +5 -6
  537. package/index.es244.js +5 -580
  538. package/index.es245.js +5 -50
  539. package/index.es246.js +11 -17
  540. package/index.es247.js +10 -6
  541. package/index.es248.js +10 -8
  542. package/index.es249.js +11 -6
  543. package/index.es25.js +1 -1
  544. package/index.es250.js +11 -7
  545. package/index.es251.js +38 -5
  546. package/index.es252.js +65 -7
  547. package/index.es253.js +9 -9
  548. package/index.es254.js +8 -5
  549. package/index.es255.js +7 -8
  550. package/index.es256.js +10 -12
  551. package/index.es257.js +7 -5
  552. package/index.es258.js +7 -9
  553. package/index.es259.js +6 -8
  554. package/index.es26.js +3 -3
  555. package/index.es260.js +15 -10
  556. package/index.es261.js +98 -15
  557. package/index.es262.js +31 -6
  558. package/index.es263.js +9 -6
  559. package/index.es264.js +141 -5
  560. package/index.es265.js +117 -12
  561. package/index.es266.js +98 -11
  562. package/index.es267.js +31 -11
  563. package/index.es268.js +9 -12
  564. package/index.es269.js +141 -12
  565. package/index.es27.js +1 -1
  566. package/index.es270.js +116 -38
  567. package/index.es271.js +67 -64
  568. package/index.es272.js +31 -10
  569. package/index.es273.js +9 -9
  570. package/index.es274.js +153 -8
  571. package/index.es275.js +108 -11
  572. package/index.es276.js +12 -7
  573. package/index.es277.js +24 -7
  574. package/index.es278.js +10 -6
  575. package/index.es279.js +38 -15
  576. package/index.es28.js +57 -57
  577. package/index.es280.js +2000 -52
  578. package/index.es281.js +6 -4
  579. package/index.es282.js +71 -4
  580. package/index.es283.js +24 -15
  581. package/index.es284.js +52 -6
  582. package/index.es285.js +3 -7
  583. package/index.es286.js +4 -16
  584. package/index.es287.js +15 -4
  585. package/index.es288.js +5 -4
  586. package/index.es289.js +8 -5
  587. package/index.es29.js +12 -12
  588. package/index.es290.js +16 -5
  589. package/index.es291.js +4 -4
  590. package/index.es292.js +4 -4
  591. package/index.es293.js +5 -6
  592. package/index.es294.js +5 -24
  593. package/index.es295.js +4 -6
  594. package/index.es296.js +2 -2
  595. package/index.es297.js +5 -5
  596. package/index.es298.js +24 -5
  597. package/index.es299.js +6 -4
  598. package/index.es300.js +4 -5
  599. package/index.es301.js +6 -4
  600. package/index.es302.js +5 -8
  601. package/index.es303.js +3 -4
  602. package/index.es304.js +5 -4
  603. package/index.es305.js +3 -3
  604. package/index.es306.js +8 -6
  605. package/index.es307.js +5 -39
  606. package/index.es308.js +4 -4
  607. package/index.es309.js +4 -7
  608. package/index.es31.js +1 -1
  609. package/index.es310.js +6 -13
  610. package/index.es311.js +38 -6
  611. package/index.es312.js +4 -10
  612. package/index.es313.js +7 -10
  613. package/index.es314.js +13 -8
  614. package/index.es315.js +7 -13
  615. package/index.es316.js +11 -24
  616. package/index.es317.js +11 -20
  617. package/index.es318.js +8 -53
  618. package/index.es319.js +11 -71
  619. package/index.es320.js +24 -10
  620. package/index.es321.js +20 -21
  621. package/index.es322.js +52 -15
  622. package/index.es323.js +73 -19
  623. package/index.es324.js +9 -6
  624. package/index.es325.js +20 -5
  625. package/index.es326.js +16 -23
  626. package/index.es327.js +20 -16
  627. package/index.es328.js +6 -6
  628. package/index.es329.js +5 -4
  629. package/index.es33.js +10 -10
  630. package/index.es330.js +23 -4
  631. package/index.es331.js +16 -5
  632. package/index.es332.js +6 -4
  633. package/index.es333.js +4 -3
  634. package/index.es334.js +4 -6
  635. package/index.es335.js +4 -7
  636. package/index.es336.js +4 -6
  637. package/index.es337.js +3 -5
  638. package/index.es338.js +6 -3
  639. package/index.es339.js +7 -3
  640. package/index.es34.js +239 -225
  641. package/index.es340.js +6 -3
  642. package/index.es341.js +5 -3
  643. package/index.es342.js +3 -4
  644. package/index.es343.js +3 -3
  645. package/index.es344.js +3 -3
  646. package/index.es345.js +3 -3
  647. package/index.es346.js +5 -98
  648. package/index.es347.js +4 -31
  649. package/index.es348.js +4 -9
  650. package/index.es349.js +4 -141
  651. package/index.es35.js +14 -14
  652. package/index.es350.js +58 -116
  653. package/index.es351.js +66 -97
  654. package/index.es352.js +7 -31
  655. package/index.es353.js +5 -9
  656. package/index.es354.js +24 -141
  657. package/index.es355.js +16 -116
  658. package/index.es356.js +8 -68
  659. package/index.es357.js +11 -31
  660. package/index.es358.js +11 -9
  661. package/index.es359.js +21 -152
  662. package/index.es36.js +2 -2
  663. package/index.es360.js +11 -108
  664. package/index.es361.js +9 -7
  665. package/index.es362.js +10 -2
  666. package/index.es363.js +4 -54
  667. package/index.es364.js +5 -55
  668. package/index.es365.js +15 -57
  669. package/index.es366.js +9 -66
  670. package/index.es367.js +18 -6
  671. package/index.es368.js +15 -4
  672. package/index.es369.js +12 -23
  673. package/index.es37.js +3 -3
  674. package/index.es370.js +4 -16
  675. package/index.es371.js +57 -8
  676. package/index.es372.js +29 -9
  677. package/index.es373.js +46 -10
  678. package/index.es374.js +65 -20
  679. package/index.es375.js +37 -10
  680. package/index.es376.js +18 -9
  681. package/index.es377.js +72 -9
  682. package/index.es378.js +72 -4
  683. package/index.es379.js +74 -5
  684. package/index.es38.js +1 -1
  685. package/index.es380.js +73 -15
  686. package/index.es381.js +45 -9
  687. package/index.es382.js +46 -18
  688. package/index.es383.js +58 -15
  689. package/index.es384.js +48 -12
  690. package/index.es385.js +47 -2
  691. package/index.es386.js +77 -7
  692. package/index.es387.js +78 -2
  693. package/index.es388.js +102 -4
  694. package/index.es389.js +39 -49
  695. package/index.es39.js +1 -1
  696. package/index.es390.js +36 -20
  697. package/index.es391.js +39 -39
  698. package/index.es392.js +22 -58
  699. package/index.es393.js +24 -32
  700. package/index.es394.js +24 -13
  701. package/index.es395.js +21 -63
  702. package/index.es396.js +21 -64
  703. package/index.es397.js +21 -66
  704. package/index.es398.js +14 -69
  705. package/index.es399.js +38 -38
  706. package/index.es400.js +38 -39
  707. package/index.es401.js +14 -53
  708. package/index.es402.js +14 -43
  709. package/index.es403.js +6 -46
  710. package/index.es404.js +14 -76
  711. package/index.es405.js +12 -77
  712. package/index.es406.js +28 -102
  713. package/index.es407.js +94 -43
  714. package/index.es408.js +23 -44
  715. package/index.es409.js +37 -45
  716. package/index.es410.js +8 -30
  717. package/index.es411.js +18 -28
  718. package/index.es412.js +14 -27
  719. package/index.es413.js +4 -29
  720. package/index.es414.js +4 -28
  721. package/index.es415.js +28 -28
  722. package/index.es416.js +11 -18
  723. package/index.es417.js +23 -43
  724. package/index.es418.js +5 -45
  725. package/index.es419.js +4 -19
  726. package/index.es42.js +1 -1
  727. package/index.es420.js +12 -19
  728. package/index.es421.js +19 -8
  729. package/index.es422.js +98 -17
  730. package/index.es423.js +47 -17
  731. package/index.es43.js +1 -1
  732. package/index.es44.js +1 -1
  733. package/index.es45.js +2 -2
  734. package/index.es46.js +1 -1
  735. package/index.es47.js +2 -2
  736. package/index.es48.js +7 -7
  737. package/index.es49.js +7 -7
  738. package/index.es51.js +4 -4
  739. package/index.es52.js +4 -4
  740. package/index.es53.js +10 -10
  741. package/index.es54.js +2 -2
  742. package/index.es55.js +11 -11
  743. package/index.es57.js +1 -1
  744. package/index.es58.js +5 -5
  745. package/index.es59.js +1 -1
  746. package/index.es6.js +4 -4
  747. package/index.es60.js +1 -1
  748. package/index.es61.js +2 -2
  749. package/index.es62.js +2 -2
  750. package/index.es63.js +3 -3
  751. package/index.es67.js +1 -1
  752. package/index.es68.js +2 -2
  753. package/index.es7.js +4 -4
  754. package/index.es70.js +2 -2
  755. package/index.es71.js +5 -5
  756. package/index.es73.js +13 -13
  757. package/index.es74.js +3 -3
  758. package/index.es78.js +1 -1
  759. package/index.es79.js +1 -1
  760. package/index.es8.js +2 -2
  761. package/index.es80.js +1 -1
  762. package/index.es81.js +3 -3
  763. package/index.es82.js +4 -4
  764. package/index.es83.js +1 -1
  765. package/index.es87.js +1 -1
  766. package/index.es9.js +4 -4
  767. package/index.es90.js +1 -1
  768. package/index.es91.js +1 -1
  769. package/index.es94.js +39 -36
  770. package/index.es99.js +1 -1
  771. package/package.json +14 -19
  772. package/.eslintrc.cjs +0 -24
  773. package/index.cjs424.js +0 -1
  774. package/index.cjs425.js +0 -1
  775. package/index.cjs426.js +0 -1
  776. package/index.cjs427.js +0 -1
  777. package/index.cjs428.js +0 -1
  778. package/index.cjs429.js +0 -1
  779. package/index.cjs430.js +0 -1
  780. package/index.cjs431.js +0 -1
  781. package/index.cjs432.js +0 -1
  782. package/index.cjs433.js +0 -1
  783. package/index.cjs434.js +0 -1
  784. package/index.cjs435.js +0 -1
  785. package/index.cjs436.js +0 -1
  786. package/index.cjs437.js +0 -1
  787. package/index.cjs438.js +0 -1
  788. package/index.cjs439.js +0 -1
  789. package/index.cjs440.js +0 -1
  790. package/index.cjs441.js +0 -1
  791. package/index.cjs442.js +0 -1
  792. package/index.cjs443.js +0 -1
  793. package/index.es424.js +0 -8
  794. package/index.es425.js +0 -8
  795. package/index.es426.js +0 -32
  796. package/index.es427.js +0 -15
  797. package/index.es428.js +0 -28
  798. package/index.es429.js +0 -8
  799. package/index.es430.js +0 -9
  800. package/index.es431.js +0 -18
  801. package/index.es432.js +0 -15
  802. package/index.es433.js +0 -31
  803. package/index.es434.js +0 -4
  804. package/index.es435.js +0 -46
  805. package/index.es436.js +0 -54
  806. package/index.es437.js +0 -15
  807. package/index.es438.js +0 -7
  808. package/index.es439.js +0 -22
  809. package/index.es440.js +0 -103
  810. package/index.es441.js +0 -49
  811. package/index.es442.js +0 -4
  812. package/index.es443.js +0 -4
package/index.cjs188.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs208.js");const t=e.default("CheckCircle",[["path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",key:"1s1o4d"}]]);exports.default=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xe=require("./index.cjs200.js");var Ae={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},b,k;exports.Log=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(exports.Log||{});(e=>{function t(){b=3,k=Ae}e.reset=t;function s(r){if(!(0<=r&&r<=4))throw new Error("Invalid log level");b=r}e.setLevel=s;function i(r){k=r}e.setLogger=i})(exports.Log||(exports.Log={}));var g=class y{constructor(t){this._name=t}debug(...t){b>=4&&k.debug(y._format(this._name,this._method),...t)}info(...t){b>=3&&k.info(y._format(this._name,this._method),...t)}warn(...t){b>=2&&k.warn(y._format(this._name,this._method),...t)}error(...t){b>=1&&k.error(y._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const i=new y(`${t}.${s}`);return i.debug("begin"),i}static _format(t,s){const i=`[${t}]`;return s?`${i} ${s}:`:i}static debug(t,...s){b>=4&&k.debug(y._format(t),...s)}static info(t,...s){b>=3&&k.info(y._format(t),...s)}static warn(t,...s){b>=2&&k.warn(y._format(t),...s)}static error(t,...s){b>=1&&k.error(y._format(t),...s)}};exports.Log.reset();var H=class{static decode(e){try{return xe.jwtDecode(e)}catch(t){throw g.error("JwtUtils.decode",t),t}}static async generateSignedJwt(e,t,s){const i=_.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),r=_.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=`${i}.${r}`,n=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},s,new TextEncoder().encode(o)),a=_.encodeBase64Url(new Uint8Array(n));return`${o}.${a}`}static async generateSignedJwtWithHmac(e,t,s){const i=_.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),r=_.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=`${i}.${r}`,n=await window.crypto.subtle.sign("HMAC",s,new TextEncoder().encode(o)),a=_.encodeBase64Url(new Uint8Array(n));return`${o}.${a}`}},Oe="10000000-1000-4000-8000-100000000000",L=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),oe=class m{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return Oe.replace(/[018]/g,s=>(+s^m._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return m.generateUUIDv4()+m.generateUUIDv4()+m.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const i=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",i);return L(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw g.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const r=new TextEncoder().encode([t,s].join(":"));return L(r)}static async hash(t,s){const i=new TextEncoder().encode(s),r=await crypto.subtle.digest(t,i);return new Uint8Array(r)}static async customCalculateJwkThumbprint(t){let s;switch(t.kty){case"RSA":s={e:t.e,kty:t.kty,n:t.n};break;case"EC":s={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":s={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":s={crv:t.k,kty:t.kty};break;default:throw new Error("Unknown jwk type")}const i=await m.hash("SHA-256",JSON.stringify(s));return m.encodeBase64Url(i)}static async generateDPoPProof({url:t,accessToken:s,httpMethod:i,keyPair:r,nonce:o}){let n,a;const c={jti:window.crypto.randomUUID(),htm:i??"GET",htu:t,iat:Math.floor(Date.now()/1e3)};s&&(n=await m.hash("SHA-256",s),a=m.encodeBase64Url(n),c.ath=a),o&&(c.nonce=o);try{const l=await crypto.subtle.exportKey("jwk",r.publicKey),d={alg:"ES256",typ:"dpop+jwt",jwk:{crv:l.crv,kty:l.kty,x:l.x,y:l.y}};return await H.generateSignedJwt(d,c,r.privateKey)}catch(l){throw l instanceof TypeError?new Error(`Error exporting dpop public key: ${l.message}`):l}}static async generateDPoPJkt(t){try{const s=await crypto.subtle.exportKey("jwk",t.publicKey);return await m.customCalculateJwkThumbprint(s)}catch(s){throw s instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${s.message}`):s}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}static async generateClientAssertionJwt(t,s,i,r="HS256"){const o=Math.floor(Date.now()/1e3),n={alg:r,typ:"JWT"},a={iss:t,sub:t,aud:i,jti:m.generateUUIDv4(),exp:o+300,iat:o},l={HS256:"SHA-256",HS384:"SHA-384",HS512:"SHA-512"}[r];if(!l)throw new Error(`Unsupported algorithm: ${r}. Supported algorithms are: HS256, HS384, HS512`);const d=new TextEncoder,h=await crypto.subtle.importKey("raw",d.encode(s),{name:"HMAC",hash:l},!1,["sign"]);return await H.generateSignedJwtWithHmac(n,a,h)}};oe.encodeBase64Url=e=>L(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var _=oe,I=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new g(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},se=class{static center({...e}){var t,s,i;return e.width==null&&(e.width=(t=[800,720,600,480].find(r=>r<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((i=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},T=class D extends I{constructor(){super(...arguments),this._logger=new g(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-D.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=D.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const i=D.getEpochTime()+t;if(this.expiration===i&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=i;const r=Math.min(t,5);this._timerHandle=setInterval(this._callback,r*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},F=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const i=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(i.slice(1))}},M=";",C=class extends Error{constructor(e,t){var s,i,r;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw g.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(i=e.error_uri)!=null?i:null,this.state=e.userState,this.session_state=(r=e.session_state)!=null?r:null,this.url_state=e.url_state}},K=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},ae=class{constructor(e){this._logger=new g("AccessTokenEvents"),this._expiringTimer=new T("Access token expiring"),this._expiredTimer=new T("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}async load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let r=s-this._expiringNotificationTimeInSeconds;r<=0&&(r=1),t.debug("registering expiring timer, raising in",r,"seconds"),this._expiringTimer.init(r)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const i=s+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},ce=class{constructor(e,t,s,i,r){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=r,this._logger=new g("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=n=>{n.origin===this._frame_origin&&n.source===this._frame.contentWindow&&(n.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):n.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(n.data+" message from check session op iframe"))};const o=new URL(s);this._frame_origin=o.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=o.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},G=class{constructor(){this._logger=new g("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},z=class extends Error{constructor(e,t){super(t),this.name="ErrorDPoPNonce",this.nonce=e}},Q=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new g("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...i}=t;if(!s)return await fetch(e,i);const r=new AbortController,o=setTimeout(()=>r.abort(),s*1e3);try{return await fetch(e,{...t,signal:r.signal})}catch(n){throw n instanceof DOMException&&n.name==="AbortError"?new K("Network timed out"):n}finally{clearTimeout(o)}}async getJson(e,{token:t,credentials:s,timeoutInSeconds:i}={}){const r=this._logger.create("getJson"),o={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),o.Authorization="Bearer "+t),this._appendExtraHeaders(o);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:o,timeoutInSeconds:i,credentials:s})}catch(l){throw r.error("Network Error"),l}r.debug("HTTP response received, status",n.status);const a=n.headers.get("Content-Type");if(a&&!this._contentTypes.find(l=>a.startsWith(l))&&r.throw(new Error(`Invalid response Content-Type: ${a??"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(a!=null&&a.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let c;try{c=await n.json()}catch(l){throw r.error("Error parsing JSON response",l),n.ok?l:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",c),c.error?new C(c):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(c)}`);return c}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:i,initCredentials:r,extraHeaders:o}){const n=this._logger.create("postForm"),a={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...o};s!==void 0&&(a.Authorization="Basic "+s),this._appendExtraHeaders(a);let c;try{n.debug("url:",e),c=await this.fetchWithTimeout(e,{method:"POST",headers:a,body:t,timeoutInSeconds:i,credentials:r})}catch(u){throw n.error("Network error"),u}n.debug("HTTP response received, status",c.status);const l=c.headers.get("Content-Type");if(l&&!this._contentTypes.find(u=>l.startsWith(u)))throw new Error(`Invalid response Content-Type: ${l??"undefined"}, from URL: ${e}`);const d=await c.text();let h={};if(d)try{h=JSON.parse(d)}catch(u){throw n.error("Error parsing JSON response",u),c.ok?u:new Error(`${c.statusText} (${c.status})`)}if(!c.ok){if(n.error("Error from server:",h),c.headers.has("dpop-nonce")){const u=c.headers.get("dpop-nonce");throw new z(u,`${JSON.stringify(h)}`)}throw h.error?new C(h,t):new Error(`${c.statusText} (${c.status}): ${JSON.stringify(h)}`)}return h}_appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),i=["accept","content-type"],r=["authorization"];s.length!==0&&s.forEach(o=>{if(i.includes(o.toLocaleLowerCase())){t.warn("Protected header could not be set",o,i);return}if(r.includes(o.toLocaleLowerCase())&&Object.keys(e).includes(o)){t.warn("Header could not be overridden",o,r);return}const n=typeof this._extraHeaders[o]=="function"?this._extraHeaders[o]():this._extraHeaders[o];n&&n!==""&&(e[o]=n)})}},le=class{constructor(e){this._settings=e,this._logger=new g("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new Q(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},t,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(s.debug("resolved"),i[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},X=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new g("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s<e;s++){const i=await this._store.key(s);i&&i.indexOf(this._prefix)===0&&t.push(i.substr(this._prefix.length))}return t}},qe="code",Me="openid",Ne="client_secret_post",He=900,W=class{constructor({authority:e,metadataUrl:t,metadata:s,signingKeys:i,metadataSeed:r,client_id:o,client_secret:n,response_type:a=qe,scope:c=Me,redirect_uri:l,post_logout_redirect_uri:d,client_authentication:h=Ne,token_endpoint_auth_signing_alg:u="HS256",prompt:w,display:U,max_age:x,ui_locales:A,acr_values:O,resource:P,response_mode:q,filterProtocolClaims:R=!0,loadUserInfo:S=!1,requestTimeoutInSeconds:p,staleStateAgeInSeconds:E=He,mergeClaimsStrategy:v={array:"replace"},disablePKCE:f=!1,stateStore:N,revokeTokenAdditionalContentTypes:ke,fetchRequestCredentials:ee,refreshTokenAllowedScope:Ee,extraQueryParams:Te={},extraTokenParams:Pe={},extraHeaders:Re={},dpop:Ie,omitScopeWhenRequesting:Ce=!1}){var te;if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=s,this.metadataSeed=r,this.signingKeys=i,this.client_id=o,this.client_secret=n,this.response_type=a,this.scope=c,this.redirect_uri=l,this.post_logout_redirect_uri=d,this.client_authentication=h,this.token_endpoint_auth_signing_alg=u,this.prompt=w,this.display=U,this.max_age=x,this.ui_locales=A,this.acr_values=O,this.resource=P,this.response_mode=q,this.filterProtocolClaims=R??!0,this.loadUserInfo=!!S,this.staleStateAgeInSeconds=E,this.mergeClaimsStrategy=v,this.omitScopeWhenRequesting=Ce,this.disablePKCE=!!f,this.revokeTokenAdditionalContentTypes=ke,this.fetchRequestCredentials=ee||"same-origin",this.requestTimeoutInSeconds=p,N)this.stateStore=N;else{const Ue=typeof window<"u"?window.localStorage:new G;this.stateStore=new X({store:Ue})}if(this.refreshTokenAllowedScope=Ee,this.extraQueryParams=Te,this.extraTokenParams=Pe,this.extraHeaders=Re,this.dpop=Ie,this.dpop&&!((te=this.dpop)!=null&&te.store))throw new Error("A DPoPStore is required when dpop is enabled")}},je=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new g("UserInfoService"),this._getClaimsFromJwt=async s=>{const i=this._logger.create("_getClaimsFromJwt");try{const r=H.decode(s);return i.debug("JWT decoding successful"),r}catch(r){throw i.error("Error parsing JWT response"),r}},this._jsonService=new Q(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const i=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("got claims",i),i}},de=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new g("TokenClient"),this._jsonService=new Q(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:i=this._settings.client_secret,extraHeaders:r,...o}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),o.code||n.throw(new Error("A code is required"));const a=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[h,u]of Object.entries(o))u!=null&&a.set(h,u);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&i==null)throw n.throw(new Error("A client_secret is required")),null;let c;const l=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":c=_.generateBasicAuth(s,i);break;case"client_secret_post":a.append("client_id",s),i&&a.append("client_secret",i);break;case"client_secret_jwt":{const h=await _.generateClientAssertionJwt(s,i,l,this._settings.token_endpoint_auth_signing_alg);a.append("client_id",s),a.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),a.append("client_assertion",h);break}}n.debug("got token endpoint");const d=await this._jsonService.postForm(l,{body:a,basicAuth:c,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:r});return n.debug("got response"),d}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:i=this._settings.scope,...r}){const o=this._logger.create("exchangeCredentials");t||o.throw(new Error("A client_id is required"));const n=new URLSearchParams({grant_type:e});this._settings.omitScopeWhenRequesting||n.set("scope",i);for(const[d,h]of Object.entries(r))h!=null&&n.set(d,h);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&s==null)throw o.throw(new Error("A client_secret is required")),null;let a;const c=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":a=_.generateBasicAuth(t,s);break;case"client_secret_post":n.append("client_id",t),s&&n.append("client_secret",s);break;case"client_secret_jwt":{const d=await _.generateClientAssertionJwt(t,s,c,this._settings.token_endpoint_auth_signing_alg);n.append("client_id",t),n.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),n.append("client_assertion",d);break}}o.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:n,basicAuth:a,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return o.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:i,extraHeaders:r,...o}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),o.refresh_token||n.throw(new Error("A refresh_token is required"));const a=new URLSearchParams({grant_type:e});for(const[h,u]of Object.entries(o))Array.isArray(u)?u.forEach(w=>a.append(h,w)):u!=null&&a.set(h,u);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&s==null)throw n.throw(new Error("A client_secret is required")),null;let c;const l=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":c=_.generateBasicAuth(t,s);break;case"client_secret_post":a.append("client_id",t),s&&a.append("client_secret",s);break;case"client_secret_jwt":{const h=await _.generateClientAssertionJwt(t,s,l,this._settings.token_endpoint_auth_signing_alg);a.append("client_id",t),a.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),a.append("client_assertion",h);break}}n.debug("got token endpoint");const d=await this._jsonService.postForm(l,{body:a,basicAuth:c,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:r});return n.debug("got response"),d}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const i=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const r=new URLSearchParams;for(const[o,n]of Object.entries(e))n!=null&&r.set(o,n);r.set("client_id",this._settings.client_id),this._settings.client_secret&&r.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:r,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),s.debug("got response")}},De=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new g("ResponseValidator"),this._userInfoService=new je(this._settings,this._metadataService),this._tokenClient=new de(this._settings,this._metadataService)}async validateSigninResponse(e,t,s){const i=this._logger.create("validateSigninResponse");this._processSigninState(e,t),i.debug("state processed"),await this._processCode(e,t,s),i.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),i.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),i.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse"),i=e.isOpenId&&!!e.id_token;i&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,i),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,i;const r=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(i=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const o=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,o),r.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new C(e)}_processSigninState(e,t){var s;const i=this._logger.create("_processSigninState");if(t.id!==e.state&&i.throw(new Error("State does not match")),t.client_id||i.throw(new Error("No client_id on state")),t.authority||i.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&i.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&i.throw(new Error("client_id mismatch on settings vs. signin state")),i.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw i.warn("Response was error",e.error),new C(e);t.code_verifier&&!e.code&&i.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){i.debug("not loading user info");return}i.debug("loading user info");const r=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),s&&r.sub!==e.profile.sub&&i.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(r)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t,s){const i=this._logger.create("_processCode");if(e.code){i.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:s,...t.extraTokenParams});Object.assign(e,r)}else i.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");const r=H.decode((s=e.id_token)!=null?s:"");if(r.sub||i.throw(new Error("ID Token is missing a subject claim")),t){const o=H.decode(t);r.sub!==o.sub&&i.throw(new Error("sub in id_token does not match current sub")),r.auth_time&&r.auth_time!==o.auth_time&&i.throw(new Error("auth_time in id_token does not match original auth_time")),r.azp&&r.azp!==o.azp&&i.throw(new Error("azp in id_token does not match original azp")),!r.azp&&o.azp&&i.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=r}},j=class B{constructor(t){this.id=t.id||_.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=T.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new g("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return g.createStatic("State","fromStorageString"),Promise.resolve(new B(JSON.parse(t)))}static async clearStaleState(t,s){const i=g.createStatic("State","clearStaleState"),r=T.getEpochTime()-s,o=await t.getAllKeys();i.debug("got keys",o);for(let n=0;n<o.length;n++){const a=o[n],c=await t.get(a);let l=!1;if(c)try{const d=await B.fromStorageString(c);i.debug("got item from key:",a,d.created),d.created<=r&&(l=!0)}catch(d){i.error("Error parsing state for key:",a,d),l=!0}else i.debug("no item in storage for key:",a),l=!0;l&&(i.debug("removed item for key:",a),t.remove(a))}}},Y=class V extends j{constructor(t){super(t),this.code_verifier=t.code_verifier,this.code_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo}static async create(t){const s=t.code_verifier===!0?_.generateCodeVerifier():t.code_verifier||void 0,i=s?await _.generateCodeChallenge(s):void 0;return new V({...t,code_verifier:s,code_challenge:i})}toStorageString(){return new g("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(t){g.createStatic("SigninState","fromStorageString");const s=JSON.parse(t);return V.create(s)}},he=class ge{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:s,client_id:i,redirect_uri:r,response_type:o,scope:n,state_data:a,response_mode:c,request_type:l,client_secret:d,nonce:h,url_state:u,resource:w,skipUserInfo:U,extraQueryParams:x,extraTokenParams:A,disablePKCE:O,dpopJkt:P,omitScopeWhenRequesting:q,...R}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!i)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!r)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!o)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!n)throw this._logger.error("create: No scope passed"),new Error("scope");if(!s)throw this._logger.error("create: No authority passed"),new Error("authority");const S=await Y.create({data:a,request_type:l,url_state:u,code_verifier:!O,client_id:i,authority:s,redirect_uri:r,response_mode:c,client_secret:d,scope:n,extraTokenParams:A,skipUserInfo:U}),p=new URL(t);p.searchParams.append("client_id",i),p.searchParams.append("redirect_uri",r),p.searchParams.append("response_type",o),q||p.searchParams.append("scope",n),h&&p.searchParams.append("nonce",h),P&&p.searchParams.append("dpop_jkt",P);let E=S.id;u&&(E=`${E}${M}${u}`),p.searchParams.append("state",E),S.code_challenge&&(p.searchParams.append("code_challenge",S.code_challenge),p.searchParams.append("code_challenge_method","S256")),w&&(Array.isArray(w)?w:[w]).forEach(f=>p.searchParams.append("resource",f));for(const[v,f]of Object.entries({response_mode:c,...R,...x}))f!=null&&p.searchParams.append(v,f.toString());return new ge({url:p.href,state:S})}};he._logger=new g("SigninRequest");var $e=he,Je="openid",$=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(M);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(M))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-T.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+T.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(Je))||!!this.id_token}},We=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:i,extraQueryParams:r,request_type:o,client_id:n,url_state:a}){if(this._logger=new g("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const c=new URL(e);if(s&&c.searchParams.append("id_token_hint",s),n&&c.searchParams.append("client_id",n),i&&(c.searchParams.append("post_logout_redirect_uri",i),t||a)){this.state=new j({data:t,request_type:o,url_state:a});let l=this.state.id;a&&(l=`${l}${M}${a}`),c.searchParams.append("state",l)}for(const[l,d]of Object.entries({...r}))d!=null&&c.searchParams.append(l,d.toString());this.url=c.href}},ue=class{constructor(e){if(this.state=e.get("state"),this.state){const t=decodeURIComponent(this.state).split(M);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(M))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},Ke=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Le=["sub","iss","aud","exp","iat"],Fe=class{constructor(e){this._settings=e,this._logger=new g("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=Ke;for(const i of s)Le.includes(i)||delete t[i]}return t}mergeClaims(e,t){const s={...e};for(const[i,r]of Object.entries(t))if(s[i]!==r)if(Array.isArray(s[i])||Array.isArray(r))if(this._settings.mergeClaimsStrategy.array=="replace")s[i]=r;else{const o=Array.isArray(s[i])?s[i]:[s[i]];for(const n of Array.isArray(r)?r:[r])o.includes(n)||o.push(n);s[i]=o}else typeof s[i]=="object"&&typeof r=="object"?s[i]=this.mergeClaims(s[i],r):s[i]=r;return s}},Z=class{constructor(e,t){this.keys=e,this.nonce=t}},_e=class{constructor(e,t){this._logger=new g("OidcClient"),this.settings=e instanceof W?e:new W(e),this.metadataService=t??new le(this.settings),this._claimsService=new Fe(this.settings),this._validator=new De(this.settings,this.metadataService,this._claimsService),this._tokenClient=new de(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:i,id_token_hint:r,login_hint:o,skipUserInfo:n,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:d=this.settings.scope,redirect_uri:h=this.settings.redirect_uri,prompt:u=this.settings.prompt,display:w=this.settings.display,max_age:U=this.settings.max_age,ui_locales:x=this.settings.ui_locales,acr_values:A=this.settings.acr_values,resource:O=this.settings.resource,response_mode:P=this.settings.response_mode,extraQueryParams:q=this.settings.extraQueryParams,extraTokenParams:R=this.settings.extraTokenParams,dpopJkt:S,omitScopeWhenRequesting:p=this.settings.omitScopeWhenRequesting}){const E=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const v=await this.metadataService.getAuthorizationEndpoint();E.debug("Received authorization endpoint",v);const f=await $e.create({url:v,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:h,response_type:l,scope:d,state_data:e,url_state:c,prompt:u,display:w,max_age:U,ui_locales:x,id_token_hint:r,login_hint:o,acr_values:A,dpopJkt:S,resource:O,request:t,request_uri:s,extraQueryParams:q,extraTokenParams:R,request_type:i,response_mode:P,client_secret:this.settings.client_secret,skipUserInfo:n,nonce:a,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:p});await this.clearStaleState();const N=f.state;return await this.settings.stateStore.set(N.id,N.toStorageString()),f}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),i=new $(F.readParams(e,this.settings.response_mode));if(!i.state)throw s.throw(new Error("No state in response")),null;const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Y.fromStorageString(r),response:i}}async processSigninResponse(e,t,s=!0){const i=this._logger.create("processSigninResponse"),{state:r,response:o}=await this.readSigninResponseState(e,s);if(i.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const n=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:n}}try{await this._validator.validateSigninResponse(o,r,t)}catch(n){if(n instanceof z&&this.settings.dpop){const a=await this.getDpopProof(this.settings.dpop.store,n.nonce);t.DPoP=a,await this._validator.validateSigninResponse(o,r,t)}else throw n}return o}async getDpopProof(e,t){let s,i;return(await e.getAllKeys()).includes(this.settings.client_id)?(i=await e.get(this.settings.client_id),i.nonce!==t&&t&&(i.nonce=t,await e.set(this.settings.client_id,i))):(s=await _.generateDPoPKeys(),i=new Z(s,t),await e.set(this.settings.client_id,i)),await _.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:i.keys,nonce:i.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:i={}}){const r=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),o=new $(new URLSearchParams);return Object.assign(o,r),await this._validator.validateCredentialsResponse(o,s),o}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,extraTokenParams:o}){var n;const a=this._logger.create("useRefreshToken");let c;if(this.settings.refreshTokenAllowedScope===void 0)c=e.scope;else{const h=this.settings.refreshTokenAllowedScope.split(" ");c=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(w=>h.includes(w)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const h=await this.getDpopProof(this.settings.dpop.store);r={...r,DPoP:h}}let l;try{l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:c,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,...o})}catch(h){if(h instanceof z&&this.settings.dpop)r.DPoP=await this.getDpopProof(this.settings.dpop.store,h.nonce),l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:c,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,...o});else throw h}const d=new $(new URLSearchParams);return Object.assign(d,l),a.debug("validating response",d),await this._validator.validateRefreshResponse(d,{...e,scope:c}),d}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:i,url_state:r,post_logout_redirect_uri:o=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const a=this._logger.create("createSignoutRequest"),c=await this.metadataService.getEndSessionEndpoint();if(!c)throw a.throw(new Error("No end session endpoint")),null;a.debug("Received end session endpoint",c),!s&&o&&!t&&(s=this.settings.client_id);const l=new We({url:c,id_token_hint:t,client_id:s,post_logout_redirect_uri:o,state_data:e,extraQueryParams:n,request_type:i,url_state:r});await this.clearStaleState();const d=l.state;return d&&(a.debug("Signout request has state to persist"),await this.settings.stateStore.set(d.id,d.toStorageString())),l}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),i=new ue(F.readParams(e,this.settings.response_mode));if(!i.state){if(s.debug("No state in response"),i.error)throw s.warn("Response was error:",i.error),new C(i);return{state:void 0,response:i}}const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await j.fromStorageString(r),response:i}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:i}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,s)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),j.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},pe=class{constructor(e){this._userManager=e,this._logger=new g("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const i=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,i.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,i.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const r=await this._userManager.metadataService.getCheckSessionIframe();if(r){i.debug("initializing check session iframe");const o=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new ce(this._callback,o,r,n,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else i.warn("no check session iframe found in the metadata")}catch(r){i.error("Error from getCheckSessionIframe:",r instanceof Error?r.message:r)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const i=await this._userManager.querySessionStatus();if(i){const r={session_state:i.session_state,profile:i.sub?{sub:i.sub}:null};this._start(r)}}catch(i){t.error("error from querySessionStatus",i instanceof Error?i.message:i)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let i=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(i=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),i?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},J=class we{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-T.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+T.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new g("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return g.createStatic("User","fromStorageString"),new we(JSON.parse(t))}},ie="oidc-client",fe=class{constructor(){this._abort=new I("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:i}=await new Promise((r,o)=>{const n=c=>{var l;const d=c.data,h=(l=e.scriptOrigin)!=null?l:window.location.origin;if(!(c.origin!==h||(d==null?void 0:d.source)!==ie)){try{const u=F.readParams(d.url,e.response_mode).get("state");if(u||t.warn("no state found in response url"),c.source!==this._window&&u!==e.state)return}catch{this._dispose(),o(new Error("Invalid response from window"))}r(d)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1));const a=new BroadcastChannel(`oidc-client-popup-${e.state}`);a.addEventListener("message",n,!1),this._disposeHandlers.add(()=>a.close()),this._disposeHandlers.add(this._abort.addHandler(c=>{this._dispose(),o(c)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,i=window.location.origin){const r={source:ie,url:t,keepOpen:s},o=new g("_notifyParent");if(e)o.debug("With parent. Using parent.postMessage."),e.postMessage(r,i);else{o.debug("No parent. Using BroadcastChannel.");const n=new URL(t).searchParams.get("state");if(!n)throw new Error("No parent and no state in URL. Can't complete notification.");const a=new BroadcastChannel(`oidc-client-popup-${n}`);a.postMessage(r),a.close()}}},me={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Se="_blank",ze=60,Be=2,ve=10,ye=class extends W{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:i=me,popupWindowTarget:r=Se,redirectMethod:o="assign",redirectTarget:n="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,requestTimeoutInSeconds:l,silent_redirect_uri:d=e.redirect_uri,silentRequestTimeoutInSeconds:h,automaticSilentRenew:u=!0,validateSubOnSilentRenew:w=!0,includeIdTokenInSilentRenew:U=!1,monitorSession:x=!1,monitorAnonymousSession:A=!1,checkSessionIntervalInSeconds:O=Be,query_status_response_type:P="code",stopCheckSessionOnError:q=!0,revokeTokenTypes:R=["access_token","refresh_token"],revokeTokensOnSignout:S=!1,includeIdTokenInSilentSignout:p=!1,accessTokenExpiringNotificationTimeInSeconds:E=ze,userStore:v}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=i,this.popupWindowTarget=r,this.redirectMethod=o,this.redirectTarget=n,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=d,this.silentRequestTimeoutInSeconds=h||l||ve,this.automaticSilentRenew=u,this.validateSubOnSilentRenew=w,this.includeIdTokenInSilentRenew=U,this.monitorSession=x,this.monitorAnonymousSession=A,this.checkSessionIntervalInSeconds=O,this.stopCheckSessionOnError=q,this.query_status_response_type=P,this.revokeTokenTypes=R,this.revokeTokensOnSignout=S,this.includeIdTokenInSilentSignout=p,this.accessTokenExpiringNotificationTimeInSeconds=E,v)this.userStore=v;else{const f=typeof window<"u"?window.sessionStorage:new G;this.userStore=new X({store:f})}}},re=class be extends fe{constructor({silentRequestTimeoutInSeconds:t=ve}){super(),this._logger=new g("IFrameWindow"),this._timeoutInSeconds=t,this._frame=be.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new K("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var i;const r=s.target;(i=r.parentNode)==null||i.removeChild(r),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},Ve=class{constructor(e){this._settings=e,this._logger=new g("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new re({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),re.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Ge=500,Qe=1e3,ne=class extends fe{constructor({popupWindowTarget:e=Se,popupWindowFeatures:t={},popupSignal:s,popupAbortOnClose:i}){super(),this._logger=new g("PopupWindow");const r=se.center({...me,...t});this._window=window.open(void 0,e,se.serialize(r)),this.abortOnClose=!!i,s&&s.addEventListener("abort",()=>{var o;this._abort.raise(new Error((o=s.reason)!=null?o:"Popup aborted"))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Qe)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug("Popup closed by user or isolated by redirect"),i(),this._disposeHandlers.delete(i),this.abortOnClose&&this._abort.raise(new Error("Popup closed by user")))},Ge),i=()=>clearInterval(s);return this._disposeHandlers.add(i),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){super._notifyParent(window.opener,e,t),!t&&!window.opener&&window.close()}},Xe=class{constructor(e){this._settings=e,this._logger=new g("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:s,popupAbortOnClose:i}){return new ne({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:s,popupAbortOnClose:i})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),ne.notifyOpener(e,t)}},Ye=class{constructor(e){this._settings=e,this._logger=new g("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let i=window.self;t==="top"&&(i=(s=window.top)!=null?s:window.self);const r=i.location[e].bind(i.location);let o;return{navigate:async n=>(this._logger.create("navigate"),await new Promise((c,l)=>{o=l,window.addEventListener("pageshow",()=>c(window.location.href)),r(n.url)})),close:()=>{this._logger.create("close"),o==null||o(new Error("Redirect aborted")),i.stop()}}}async callback(){}},Ze=class extends ae{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new g("UserManagerEvents"),this._userLoaded=new I("User loaded"),this._userUnloaded=new I("User unloaded"),this._silentRenewError=new I("Silent renew error"),this._userSignedIn=new I("User signed in"),this._userSignedOut=new I("User signed out"),this._userSessionChanged=new I("User session changed")}async load(e,t=!0){await super.load(e),t&&await this._userLoaded.raise(e)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},et=class{constructor(e){this._userManager=e,this._logger=new g("SilentRenewService"),this._isStarted=!1,this._retryTimer=new T("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof K){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},tt=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},st=class{constructor(e,t,s,i){this._logger=new g("UserManager"),this.settings=new ye(e),this._client=new _e(e),this._redirectNavigator=t??new Ye(this.settings),this._popupNavigator=s??new Xe(this.settings),this._iframeNavigator=i??new Ve(this.settings),this._events=new Ze(this.settings),this._silentRenewService=new et(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new pe(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(e=!1){const t=this._logger.create("getUser"),s=await this._loadUser();return s?(t.info("user loaded"),await this._events.load(s,e),s):(t.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){var t;this._logger.create("signinRedirect");const{redirectMethod:s,...i}=e;let r;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(r=await this.generateDPoPJkt(this.settings.dpop));const o=await this._redirectNavigator.prepare({redirectMethod:s});await this._signinStart({request_type:"si:r",dpopJkt:r,...i},o)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const i=this._logger.create("signinResourceOwnerCredential"),r=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");const o=await this._buildUser(r);return o.profile&&o.profile.sub?i.info("success, signed in subject",o.profile.sub):i.info("no subject"),o}async signinPopup(e={}){var t;const s=this._logger.create("signinPopup");let i;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(i=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:r,popupWindowTarget:o,popupSignal:n,popupAbortOnClose:a,...c}=e,l=this.settings.popup_redirect_uri;l||s.throw(new Error("No popup_redirect_uri configured"));const d=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:o,popupSignal:n,popupAbortOnClose:a}),h=await this._signin({request_type:"si:p",redirect_uri:l,display:"popup",dpopJkt:i,...c},d);return h&&(h.profile&&h.profile.sub?s.info("success, signed in subject",h.profile.sub):s.info("no subject")),h}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t,s;const i=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...o}=e;let n=await this._loadUser();if(!e.forceIframeAuth&&(n!=null&&n.refresh_token)){i.debug("using refresh token");const h=new tt(n);return await this._useRefreshToken({state:h,redirect_uri:o.redirect_uri,resource:o.resource,extraTokenParams:o.extraTokenParams,timeoutInSeconds:r})}let a;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(a=await this.generateDPoPJkt(this.settings.dpop));const c=this.settings.silent_redirect_uri;c||i.throw(new Error("No silent_redirect_uri configured"));let l;n&&this.settings.validateSubOnSilentRenew&&(i.debug("subject prior to silent renew:",n.profile.sub),l=n.profile.sub);const d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,dpopJkt:a,...o},d,l),n&&((s=n.profile)!=null&&s.sub?i.info("success, signed in subject",n.profile.sub):i.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),s=new J({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":await this.signinPopupCallback(e);break;case"si:s":await this.signinSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(s)switch(s.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...i}=e,r=this.settings.silent_redirect_uri;r||t.throw(new Error("No silent_redirect_uri configured"));const o=await this._loadUser(),n=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:r,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?o==null?void 0:o.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},n);try{const c={},l=await this._client.processSigninResponse(a.url,c);return t.debug("got signin response"),l.session_state&&l.profile.sub?(t.info("success for subject",l.profile.sub),{session_state:l.session_state,sub:l.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof C)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const i=await this._signinStart(e,t);return await this._signinEnd(i.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const i=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),i={},r=await this._client.processSigninResponse(e,i);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),i=new J(e);if(t){if(t!==i.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new C({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(i),s.debug("user stored"),await this._events.load(i),i}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...i}=e,r=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},r),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:i,popupSignal:r,...o}=e,n=this.settings.popup_post_logout_redirect_uri,a=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:i,popupSignal:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...o},a),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const i=this._logger.create("_signoutStart");try{const r=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(r);const o=e.id_token_hint||r&&r.id_token;o&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=o),await this.removeUser(),i.debug("user removed, creating signout request");const n=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:n.url,state:(s=n.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...r}=e,o=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,n=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:n,id_token_hint:o,...r},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const i=t.filter(r=>typeof e[r]=="string");if(!i.length){s.debug("no need to revoke due to no token(s)");return}for(const r of i)await this._client.revokeToken(e[r],r),s.info(`${r} revoked successfully`),r!=="access_token"&&(e[r]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),J.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(e,t,s,i){var r,o;const n=await((o=(r=this.settings.dpop)==null?void 0:r.store)==null?void 0:o.get(this.settings.client_id));if(n)return await _.generateDPoPProof({url:e,accessToken:t==null?void 0:t.access_token,httpMethod:s,keyPair:n.keys,nonce:i})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);if(!t){const s=await _.generateDPoPKeys();t=new Z(s),await e.store.set(this.settings.client_id,t)}return await _.generateDPoPJkt(t.keys)}};exports.AccessTokenEvents=ae;exports.CheckSessionIFrame=ce;exports.DPoPState=Z;exports.ErrorResponse=C;exports.ErrorTimeout=K;exports.InMemoryWebStorage=G;exports.Logger=g;exports.MetadataService=le;exports.OidcClient=_e;exports.OidcClientSettingsStore=W;exports.SessionMonitor=pe;exports.SigninResponse=$;exports.SigninState=Y;exports.SignoutResponse=ue;exports.State=j;exports.User=J;exports.UserManager=st;exports.UserManagerSettingsStore=ye;exports.WebStorageStateStore=X;
package/index.cjs189.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs208.js");const t=e.default("WarningAmber",[["path",{d:"M12 6.49L19.53 19.5H4.47L12 6.49ZM12 2.5L1 21.5H23L12 2.5ZM13 16.5H11V18.5H13V16.5ZM13 10.5H11V14.5H13V10.5Z",key:"f47gkq"}]]);exports.default=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs277.js"),a=require("./index.cjs280.js"),u=require("./index.cjs283.js");function g(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),e=1;e<t;e++)n[e-1]=arguments[e];return typeof r=="function"?i.createTailwindMerge.apply(void 0,[a.getDefaultConfig,r].concat(n)):i.createTailwindMerge.apply(void 0,[function(){return u.mergeConfigs(a.getDefaultConfig(),r)}].concat(n))}exports.extendTailwindMerge=g;
package/index.cjs190.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var R=Symbol.for("immer-nothing"),N=Symbol.for("immer-draftable"),u=Symbol.for("immer-state"),L=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function f(e,...t){if(process.env.NODE_ENV!=="production"){const r=L[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var h=Object.getPrototypeOf;function _(e){return!!e&&!!e[u]}function a(e){var t;return e?G(e)||Array.isArray(e)||!!e[N]||!!((t=e.constructor)!=null&&t[N])||b(e)||v(e):!1}var V=Object.prototype.constructor.toString(),U=new WeakMap;function G(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=U.get(r);return n===void 0&&(n=Function.toString.call(r),U.set(r,n)),n===V}function z(e,t,r=!0){S(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function S(e){const t=e[u];return t?t.type_:Array.isArray(e)?1:b(e)?2:v(e)?3:0}function A(e,t){return S(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function H(e,t,r){const n=S(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function b(e){return e instanceof Map}function v(e){return e instanceof Set}function d(e){return e.copy_||e.base_}function k(e,t){if(b(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=G(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[u];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],c=n[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(n[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[s]})}return Object.create(h(e),n)}else{const n=h(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function D(e,t=!1){return I(e)||_(e)||!a(e)||(S(e)>1&&Object.defineProperties(e,{set:w,add:w,clear:w,delete:w}),Object.freeze(e),t&&Object.values(e).forEach(r=>D(r,!0))),e}function te(){f(2)}var w={value:te};function I(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var re={};function y(e){const t=re[e];return t||f(0,e),t}var p;function X(){return p}function ne(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function $(e,t){t&&(y("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function C(e){M(e),e.drafts_.forEach(ie),e.drafts_=null}function M(e){e===p&&(p=e.parent_)}function K(e){return p=ne(p,e)}function ie(e){const t=e[u];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function W(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[u].modified_&&(C(t),f(4)),a(e)&&(e=O(t,e),t.parent_||g(t,e)),t.patches_&&y("Patches").generateReplacementPatches_(r[u].base_,e,t.patches_,t.inversePatches_)):e=O(t,r,[]),C(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==R?e:void 0}function O(e,t,r){if(I(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[u];if(!i)return z(t,(o,s)=>B(e,i,t,o,s,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return g(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let s=o,c=!1;i.type_===3&&(s=new Set(o),o.clear(),c=!0),z(s,(l,m)=>B(e,i,o,l,m,r,c),n),g(e,o,!1),r&&e.patches_&&y("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function B(e,t,r,n,i,o,s){if(i==null||typeof i!="object"&&!s)return;const c=I(i);if(!(c&&!s)){if(process.env.NODE_ENV!=="production"&&i===r&&f(5),_(i)){const l=o&&t&&t.type_!==3&&!A(t.assigned_,n)?o.concat(n):void 0,m=O(e,i,l);if(H(r,n,m),_(m))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(a(i)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&c)return;O(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(b(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&g(e,i)}}}function g(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&D(t,r)}function oe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:X(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=x;r&&(i=[n],o=P);const{revoke:s,proxy:c}=Proxy.revocable(i,o);return n.draft_=c,n.revoke_=s,c}var x={get(e,t){if(t===u)return e;const r=d(e);if(!A(r,t))return se(e,r,t);const n=r[t];return e.finalized_||!a(n)?n:n===F(e.base_,t)?(E(e),e.copy_[t]=T(n,e)):n},has(e,t){return t in d(e)},ownKeys(e){return Reflect.ownKeys(d(e))},set(e,t,r){const n=q(d(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=F(d(e),t),o=i==null?void 0:i[u];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ee(r,i)&&(r!==void 0||A(e.base_,t)))return!0;E(e),j(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return F(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,E(e),j(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=d(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){f(11)},getPrototypeOf(e){return h(e.base_)},setPrototypeOf(){f(12)}},P={};z(x,(e,t)=>{P[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});P.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&f(13),P.set.call(this,e,t,void 0)};P.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&f(14),x.set.call(this,e[0],t,r,e[0])};function F(e,t){const r=e[u];return(r?d(r):e)[t]}function se(e,t,r){var i;const n=q(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function q(e,t){if(!(t in e))return;let r=h(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=h(r)}}function j(e){e.modified_||(e.modified_=!0,e.parent_&&j(e.parent_))}function E(e){e.copy_||(e.copy_=k(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var J=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(l=o,...m){return s.produce(l,Z=>r.call(this,Z,...m))}}typeof r!="function"&&f(6),n!==void 0&&typeof n!="function"&&f(7);let i;if(a(t)){const o=K(this),s=T(t,void 0);let c=!0;try{i=r(s),c=!1}finally{c?C(o):M(o)}return $(o,n),W(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===R&&(i=void 0),this.autoFreeze_&&D(i,!0),n){const o=[],s=[];y("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else f(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,l=>t(l,...c));let n,i;return[this.produce(t,r,(s,c)=>{n=s,i=c}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){a(e)||f(8),_(e)&&(e=Q(e));const t=K(this),r=T(e,void 0);return r[u].isManual_=!0,M(t),r}finishDraft(e,t){const r=e&&e[u];(!r||!r.isManual_)&&f(9);const{scope_:n}=r;return $(n,t),W(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=y("Patches").applyPatches_;return _(e)?n(e,t):this.produce(e,i=>n(i,t))}};function T(e,t){const r=b(e)?y("MapSet").proxyMap_(e,t):v(e)?y("MapSet").proxySet_(e,t):oe(e,t);return(t?t.scope_:X()).drafts_.push(r),r}function Q(e){return _(e)||f(10,e),Y(e)}function Y(e){if(!a(e)||I(e))return e;const t=e[u];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=k(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=k(e,!0);return z(r,(i,o)=>{H(r,i,Y(o))},n),t&&(t.finalized_=!1),r}var ce=new J,fe=ce.produce;exports.Immer=J;exports.current=Q;exports.freeze=D;exports.immerable=N;exports.isDraft=_;exports.isDraftable=a;exports.nothing=R;exports.produce=fe;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./index.cjs245.js"),r=require("./index.cjs208.js");function t(e){return!(!i.isDate(e)&&typeof e!="number"||isNaN(+r.toDate(e)))}exports.default=t;exports.isValid=t;
package/index.cjs191.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_AUTH_URL:"#{AppAuthUrl}#",VITE_APP_BASE_URL:"#{AppBaseUrl}#",VITE_OIDC_CLIENT_ID:"#{ClientId}#",VITE_OIDC_CLIENT_SECRET:"#{ClientSecret}#"},O=new Map,S=d=>{const c=O.get(d);return c?Object.fromEntries(Object.entries(c.stores).map(([i,l])=>[i,l.getState()])):{}},C=(d,c,i)=>{if(d===void 0)return{type:"untracked",connection:c.connect(i)};const l=O.get(i.name);if(l)return{type:"tracked",store:d,...l};const o={connection:c.connect(i),stores:{}};return O.set(i.name,o),{type:"tracked",store:d,...o}},g=(d,c={})=>(i,l,o)=>{const{enabled:y,anonymousActionType:I,store:r,...f}=c;let T;try{T=(y??(E?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!T)return d(i,l,o);const{connection:t,...p}=C(r,T,f);let v=!0;o.setState=(n,a,e)=>{const s=i(n,a);if(!v)return s;const h=e===void 0?{type:I||"anonymous"}:typeof e=="string"?{type:e}:e;return r===void 0?(t==null||t.send(h,l()),s):(t==null||t.send({...h,type:`${r}/${h.type}`},{...S(f.name),[r]:o.getState()}),s)};const u=(...n)=>{const a=v;v=!1,i(...n),v=a},_=d(o.setState,l,o);if(p.type==="untracked"?t==null||t.init(_):(p.stores[p.store]=o,t==null||t.init(Object.fromEntries(Object.entries(p.stores).map(([n,a])=>[n,n===p.store?_:a.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let n=!1;const a=o.dispatch;o.dispatch=(...e)=>{(E?"production":void 0)!=="production"&&e[0].type==="__setState"&&!n&&(n=!0),a(...e)}}return t.subscribe(n=>{var a;switch(n.type){case"ACTION":return typeof n.payload!="string"?void 0:m(n.payload,e=>{if(e.type==="__setState"){if(r===void 0){u(e.state);return}Object.keys(e.state).length;const s=e.state[r];if(s==null)return;JSON.stringify(o.getState())!==JSON.stringify(s)&&u(s);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(e)});case"DISPATCH":switch(n.payload.type){case"RESET":return u(_),r===void 0?t==null?void 0:t.init(o.getState()):t==null?void 0:t.init(S(f.name));case"COMMIT":if(r===void 0){t==null||t.init(o.getState());return}return t==null?void 0:t.init(S(f.name));case"ROLLBACK":return m(n.state,e=>{if(r===void 0){u(e),t==null||t.init(o.getState());return}u(e[r]),t==null||t.init(S(f.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return m(n.state,e=>{if(r===void 0){u(e);return}JSON.stringify(o.getState())!==JSON.stringify(e[r])&&u(e[r])});case"IMPORT_STATE":{const{nextLiftedState:e}=n.payload,s=(a=e.computedStates.slice(-1)[0])==null?void 0:a.state;if(!s)return;u(r===void 0?s:s[r]),t==null||t.send(null,e);return}case"PAUSE_RECORDING":return v=!v}return}}),_},b=g,m=(d,c)=>{let i;try{i=JSON.parse(d)}catch{}i!==void 0&&c(i)};exports.devtools=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var R=Symbol.for("immer-nothing"),N=Symbol.for("immer-draftable"),u=Symbol.for("immer-state"),L=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function f(e,...t){if(process.env.NODE_ENV!=="production"){const r=L[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var h=Object.getPrototypeOf;function _(e){return!!e&&!!e[u]}function a(e){var t;return e?G(e)||Array.isArray(e)||!!e[N]||!!((t=e.constructor)!=null&&t[N])||b(e)||v(e):!1}var V=Object.prototype.constructor.toString(),U=new WeakMap;function G(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=U.get(r);return n===void 0&&(n=Function.toString.call(r),U.set(r,n)),n===V}function z(e,t,r=!0){S(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function S(e){const t=e[u];return t?t.type_:Array.isArray(e)?1:b(e)?2:v(e)?3:0}function A(e,t){return S(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function H(e,t,r){const n=S(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function b(e){return e instanceof Map}function v(e){return e instanceof Set}function d(e){return e.copy_||e.base_}function k(e,t){if(b(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=G(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[u];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],c=n[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(n[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[s]})}return Object.create(h(e),n)}else{const n=h(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function D(e,t=!1){return I(e)||_(e)||!a(e)||(S(e)>1&&Object.defineProperties(e,{set:w,add:w,clear:w,delete:w}),Object.freeze(e),t&&Object.values(e).forEach(r=>D(r,!0))),e}function te(){f(2)}var w={value:te};function I(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var re={};function y(e){const t=re[e];return t||f(0,e),t}var p;function X(){return p}function ne(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function $(e,t){t&&(y("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function C(e){M(e),e.drafts_.forEach(ie),e.drafts_=null}function M(e){e===p&&(p=e.parent_)}function K(e){return p=ne(p,e)}function ie(e){const t=e[u];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function W(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[u].modified_&&(C(t),f(4)),a(e)&&(e=O(t,e),t.parent_||g(t,e)),t.patches_&&y("Patches").generateReplacementPatches_(r[u].base_,e,t.patches_,t.inversePatches_)):e=O(t,r,[]),C(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==R?e:void 0}function O(e,t,r){if(I(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[u];if(!i)return z(t,(o,s)=>B(e,i,t,o,s,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return g(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let s=o,c=!1;i.type_===3&&(s=new Set(o),o.clear(),c=!0),z(s,(l,m)=>B(e,i,o,l,m,r,c),n),g(e,o,!1),r&&e.patches_&&y("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function B(e,t,r,n,i,o,s){if(i==null||typeof i!="object"&&!s)return;const c=I(i);if(!(c&&!s)){if(process.env.NODE_ENV!=="production"&&i===r&&f(5),_(i)){const l=o&&t&&t.type_!==3&&!A(t.assigned_,n)?o.concat(n):void 0,m=O(e,i,l);if(H(r,n,m),_(m))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(a(i)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&c)return;O(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(b(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&g(e,i)}}}function g(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&D(t,r)}function oe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:X(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=x;r&&(i=[n],o=P);const{revoke:s,proxy:c}=Proxy.revocable(i,o);return n.draft_=c,n.revoke_=s,c}var x={get(e,t){if(t===u)return e;const r=d(e);if(!A(r,t))return se(e,r,t);const n=r[t];return e.finalized_||!a(n)?n:n===F(e.base_,t)?(E(e),e.copy_[t]=T(n,e)):n},has(e,t){return t in d(e)},ownKeys(e){return Reflect.ownKeys(d(e))},set(e,t,r){const n=q(d(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=F(d(e),t),o=i==null?void 0:i[u];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ee(r,i)&&(r!==void 0||A(e.base_,t)))return!0;E(e),j(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return F(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,E(e),j(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=d(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){f(11)},getPrototypeOf(e){return h(e.base_)},setPrototypeOf(){f(12)}},P={};z(x,(e,t)=>{P[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});P.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&f(13),P.set.call(this,e,t,void 0)};P.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&f(14),x.set.call(this,e[0],t,r,e[0])};function F(e,t){const r=e[u];return(r?d(r):e)[t]}function se(e,t,r){var i;const n=q(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function q(e,t){if(!(t in e))return;let r=h(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=h(r)}}function j(e){e.modified_||(e.modified_=!0,e.parent_&&j(e.parent_))}function E(e){e.copy_||(e.copy_=k(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var J=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(l=o,...m){return s.produce(l,Z=>r.call(this,Z,...m))}}typeof r!="function"&&f(6),n!==void 0&&typeof n!="function"&&f(7);let i;if(a(t)){const o=K(this),s=T(t,void 0);let c=!0;try{i=r(s),c=!1}finally{c?C(o):M(o)}return $(o,n),W(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===R&&(i=void 0),this.autoFreeze_&&D(i,!0),n){const o=[],s=[];y("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else f(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,l=>t(l,...c));let n,i;return[this.produce(t,r,(s,c)=>{n=s,i=c}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){a(e)||f(8),_(e)&&(e=Q(e));const t=K(this),r=T(e,void 0);return r[u].isManual_=!0,M(t),r}finishDraft(e,t){const r=e&&e[u];(!r||!r.isManual_)&&f(9);const{scope_:n}=r;return $(n,t),W(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=y("Patches").applyPatches_;return _(e)?n(e,t):this.produce(e,i=>n(i,t))}};function T(e,t){const r=b(e)?y("MapSet").proxyMap_(e,t):v(e)?y("MapSet").proxySet_(e,t):oe(e,t);return(t?t.scope_:X()).drafts_.push(r),r}function Q(e){return _(e)||f(10,e),Y(e)}function Y(e){if(!a(e)||I(e))return e;const t=e[u];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=k(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=k(e,!0);return z(r,(i,o)=>{H(r,i,Y(o))},n),t&&(t.finalized_=!1),r}var ce=new J,fe=ce.produce;exports.Immer=J;exports.current=Q;exports.freeze=D;exports.immerable=N;exports.isDraft=_;exports.isDraftable=a;exports.nothing=R;exports.produce=fe;
package/index.cjs192.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs190.js"),u=n=>(r,m,e)=>(e.setState=(t,i,...o)=>{const c=typeof t=="function"?s.produce(t):t;return r(c,i,...o)},n(e.setState,m,e)),S=u;exports.immer=S;
1
+ "use strict";const e=require("./index.cjs197.js");e.__require();
package/index.cjs193.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index.cjs194.js"),o3=require("./index.cjs195.js");var u3=w.__module.exports,z;function f3(){return z||(z=1,(function(C,l3){(function(h,D){C.exports=D(o3.__require())})(u3,function(h){if(h==null)throw new Error("Cannot find moment");var D={ummalquraData:[28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},T=/(\[[^\[]*\])|(\\)?i(Mo|MM?M?M?|Do|DDDo|DD?D?D?|w[o|w]?|YYYYY|YYYY|YY|gg(ggg?)?)|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,v=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,S=/\d\d?/,O=/\d{1,3}/,b=/\d{3}/,j=/\d{1,4}/,x=/[+\-]?\d{1,6}/,P=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.?)|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,G=/Z|[\+\-]\d\d:?\d\d/i,J=/T/i,Z=/[\+\-]?\d+(\.\d{1,3})?/,V={hd:"idate",hm:"imonth",hy:"iyear"},p={},I="DDD w M D".split(" "),q="M D w".split(" "),l={iM:function(){return this.iMonth()+1},iMMM:function(e){return this.localeData().iMonthsShort(this,e)},iMMMM:function(e){return this.localeData().iMonths(this,e)},iD:function(){return this.iDate()},iDDD:function(){return this.iDayOfYear()},iw:function(){return this.iWeek()},iYY:function(){return d(this.iYear()%100,2)},iYYYY:function(){return d(this.iYear(),4)},iYYYYY:function(){return d(this.iYear(),5)},igg:function(){return d(this.iWeekYear()%100,2)},igggg:function(){return this.iWeekYear()},iggggg:function(){return d(this.iWeekYear(),5)}},M;function A(e,t){return function(i){return d(e.call(this,i),t)}}function $(e,t){return function(i){return this.localeData().ordinal(e.call(this,i),t)}}for(;I.length;)M=I.pop(),l["i"+M+"o"]=$(l["i"+M],M);for(;q.length;)M=q.pop(),l["i"+M+M]=A(l["i"+M],2);l.iDDDD=A(l.iDDD,3);function F(e,t){var i;for(i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function d(e,t){for(var i=e+"";i.length<t;)i="0"+i;return i}function E(e){return Object.prototype.toString.call(e)==="[object Array]"}function m(e){return e&&(V[e]||e.toLowerCase().replace(/(.)s$/,"$1"))}function Y(e,t,i,r){var a=e._isUTC?"UTC":"";e._d["set"+a+"FullYear"](t),e._d["set"+a+"Month"](i),e._d["set"+a+"Date"](r)}function H(e){function t(){}return t.prototype=e,new t}function U(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):"".__proto__?e.__proto__:e.constructor.prototype}F(U(h.localeData()),{_iMonths:["Muharram","Safar","Rabi' al-Awwal","Rabi' al-Thani","Jumada al-Ula","Jumada al-Alkhirah","Rajab","Sha’ban","Ramadhan","Shawwal","Thul-Qi’dah","Thul-Hijjah"],iMonths:function(e){return this._iMonths[e.iMonth()]},_iMonthsShort:["Muh","Saf","Rab-I","Rab-II","Jum-I","Jum-II","Raj","Sha","Ram","Shw","Dhu-Q","Dhu-H"],iMonthsShort:function(e){return this._iMonthsShort[e.iMonth()]},iMonthsParse:function(e){var t,i,r;for(this._iMonthsParse||(this._iMonthsParse=[]),t=0;t<12;t+=1)if(this._iMonthsParse[t]||(i=s([2e3,(2+t)%12,25]),r="^"+this.iMonths(i,"")+"$|^"+this.iMonthsShort(i,"")+"$",this._iMonthsParse[t]=new RegExp(r.replace(".",""),"i")),this._iMonthsParse[t].test(e))return t}});var N={iMonths:"محرم_صفر_ربيع الأول_ربيع الثاني_جمادى الأولى_جمادى الآخرة_رجب_شعبان_رمضان_شوال_ذو القعدة_ذو الحجة".split("_"),iMonthsShort:"محرم_صفر_ربيع ١_ربيع ٢_جمادى ١_جمادى ٢_رجب_شعبان_رمضان_شوال_ذو القعدة_ذو الحجة".split("_")};if(typeof h.updateLocale=="function")h.updateLocale("ar-sa",N);else{var B=h.locale();h.defineLocale("ar-sa",N),h.locale(B)}function Q(e){var t=e.match(T),i=t.length,r;for(r=0;r<i;r+=1)l[t[r]]&&(t[r]=l[t[r]]);return function(a){var n="";for(r=0;r<i;r+=1)n+=t[r]instanceof Function?"["+t[r].call(a,e)+"]":t[r];return n}}function R(e,t){switch(e){case"iDDDD":return b;case"iYYYY":return j;case"iYYYYY":return x;case"iDDD":return O;case"iMMM":case"iMMMM":return P;case"iMM":case"iDD":case"iYY":case"iM":case"iD":return S;case"DDDD":return b;case"YYYY":return j;case"YYYYY":return x;case"S":case"SS":case"SSS":case"DDD":return O;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return P;case"a":case"A":return h.localeData(t._l)._meridiemParse;case"X":return Z;case"Z":case"ZZ":return G;case"T":return J;case"MM":case"DD":case"YY":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":return S;default:return new RegExp(e.replace("\\",""))}}function X(e,t,i){var r,a=i._a;switch(e){case"iM":case"iMM":a[1]=t==null?0:~~t-1;break;case"iMMM":case"iMMMM":r=h.localeData(i._l).iMonthsParse(t),r!=null?a[1]=r:i._isValid=!1;break;case"iD":case"iDD":case"iDDD":case"iDDDD":t!=null&&(a[2]=~~t);break;case"iYY":a[0]=~~t+(~~t>47?1300:1400);break;case"iYYYY":case"iYYYYY":a[0]=~~t}t==null&&(i._isValid=!1)}function K(e){var t,i,r=e._a[0],a=e._a[1],n=e._a[2];return r==null&&a==null&&n==null?[0,0,1]:(r=r||0,a=a||0,n=n||1,(n<1||n>s.iDaysInMonth(r,a))&&(e._isValid=!1),t=g(r,a,n),i=_(t.gy,t.gm,t.gd),e._hDiff=0,~~i.hy!==r&&(e._hDiff+=1),~~i.hm!==a&&(e._hDiff+=1),~~i.hd!==n&&(e._hDiff+=1),[t.gy,t.gm,t.gd])}function e3(e){var t=e._f.match(T),i=e._i,r=t.length,a,n,o;for(e._a=[],a=0;a<r;a+=1)n=t[a],o=(R(n,e).exec(i)||[])[0],o&&(i=i.slice(i.indexOf(o)+o.length)),l[n]&&X(n,o,e);return i&&(e._il=i),K(e)}function t3(e,t){var i=e._f.length,r,a,n,o,u,c;if(i===0)return k(new Date(NaN));for(r=0;r<i;r+=1)a=e._f[r],u=0,n=k(e._i,a,e._l,t),n.isValid()&&(u+=n._hDiff,n._il&&(u+=n._il.length),(c==null||u<c)&&(c=u,o=n));return o}function i3(e){var t=e._i,i="",r="",a=e._f.match(T),n=a.length,o,u,c;for(o=0;o<n;o+=1)u=a[o],c=(R(u,e).exec(t)||[])[0],c&&(t=t.slice(t.indexOf(c)+c.length)),l[u]instanceof Function||(r+=u,c&&(i+=c));e._i=i,e._f=r}function W(e,t,i){var r=i-t,a=i-e.day(),n;return a>r&&(a-=7),a<r-7&&(a+=7),n=s(e).add(a,"d"),{week:Math.ceil(n.iDayOfYear()/7),year:n.iYear()}}function k(e,t,i,r){var a={_i:e,_f:t,_l:i},n,o,u;if(t){if(E(t))return t3(a,r);n=e3(a),i3(a),t="YYYY-MM-DD-"+a._f,e=d(n[0],4)+"-"+d(n[1]+1,2)+"-"+d(n[2],2)+"-"+a._i}return r?o=h.utc(e,t,i):o=h(e,t,i),a._isValid===!1&&(o._isValid=!1),o._hDiff=a._hDiff||0,u=H(s.fn),F(u,o),u}function s(e,t,i){return k(e,t,i,!1)}F(s,h),s.fn=H(h.fn),s.utc=function(e,t,i){return k(e,t,i,!0)},s.fn.format=function(e){var t,i,r=this;if(e){for(t=5,i=function(a){return r.localeData().longDateFormat(a)||a};t>0&&v.test(e);)t-=1,e=e.replace(v,i);p[e]||(p[e]=Q(e)),e=p[e](this)}return h.fn.format.call(this,e)},s.fn.iYear=function(e){var t,i,r;return typeof e=="number"?(i=_(this.year(),this.month(),this.date()),t=Math.min(i.hd,s.iDaysInMonth(e,i.hm)),r=g(e,i.hm,t),Y(this,r.gy,r.gm,r.gd),(this.month()!==r.gm||this.date()!==r.gd||this.year()!==r.gy)&&Y(this,r.gy,r.gm,r.gd),h.updateOffset(this),this):_(this.year(),this.month(),this.date()).hy},s.fn.iMonth=function(e){var t,i,r;if(e!=null){if(typeof e=="string")if(e=this.localeData().iMonthsParse(e),e>=0)e-=1;else return this;return i=_(this.year(),this.month(),this.date()),t=Math.min(i.hd,s.iDaysInMonth(i.hy,e)),this.iYear(i.hy+f(e,12)),e=y(e,12),e<0&&(e+=12,this.iYear(this.iYear()-1)),r=g(this.iYear(),e,t),Y(this,r.gy,r.gm,r.gd),(this.month()!==r.gm||this.date()!==r.gd||this.year()!==r.gy)&&Y(this,r.gy,r.gm,r.gd),h.updateOffset(this),this}else return _(this.year(),this.month(),this.date()).hm},s.fn.iDate=function(e){var t,i;return typeof e=="number"?(t=_(this.year(),this.month(),this.date()),i=g(t.hy,t.hm,e),Y(this,i.gy,i.gm,i.gd),(this.month()!==i.gm||this.date()!==i.gd||this.year()!==i.gy)&&Y(this,i.gy,i.gm,i.gd),h.updateOffset(this),this):_(this.year(),this.month(),this.date()).hd},s.fn.iDayOfYear=function(e){var t=Math.round((s(this).startOf("day")-s(this).startOf("iYear"))/864e5)+1;return e==null?t:this.add(e-t,"d")},s.fn.iDaysInMonth=function(){return parseInt(s(this).endOf("iMonth").format("iDD"))},s.fn.iWeek=function(e){var t=W(this,this.localeData()._week.dow,this.localeData()._week.doy).week;return e==null?t:this.add((e-t)*7,"d")},s.fn.iWeekYear=function(e){var t=W(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return e==null?t:this.add(e-t,"y")},s.fn.add=function(e,t){var i;return t!==null&&!isNaN(+t)&&(i=e,e=t,t=i),t=m(t),t==="iyear"?this.iYear(this.iYear()+e):t==="imonth"?this.iMonth(this.iMonth()+e):t==="idate"?this.iDate(this.iDate()+e):h.fn.add.call(this,e,t),this},s.fn.subtract=function(e,t){var i;return t!==null&&!isNaN(+t)&&(i=e,e=t,t=i),t=m(t),t==="iyear"?this.iYear(this.iYear()-e):t==="imonth"?this.iMonth(this.iMonth()-e):t==="idate"?this.iDate(this.iDate()-e):h.fn.subtract.call(this,e,t),this},s.fn.startOf=function(e){return e=m(e),e==="iyear"||e==="imonth"?(e==="iyear"&&this.iMonth(0),this.iDate(1),this.hours(0),this.minutes(0),this.seconds(0),this.milliseconds(0),this):h.fn.startOf.call(this,e)},s.fn.endOf=function(e){return e=m(e),e===void 0||e==="milisecond"?this:this.startOf(e).add(1,e==="isoweek"?"week":e).subtract(1,"milliseconds")},s.fn.clone=function(){return s(this)},s.fn.iYears=s.fn.iYear,s.fn.iMonths=s.fn.iMonth,s.fn.iDates=s.fn.iDate,s.fn.iWeeks=s.fn.iWeek,s.iDaysInMonth=function(e,t){var i=L(e,t+1),r=D.ummalquraData[i]-D.ummalquraData[i-1];return r};function _(e,t,i){var r=a3(n3(e,t+1,i));return r.hm-=1,r}function g(e,t,i){var r=s3(r3(e,t+1,i));return r.gm-=1,r}return s.iConvert={toHijri:_,toGregorian:g},s;function f(e,t){return~~(e/t)}function y(e,t){return e-~~(e/t)*t}function r3(e,t,i){var r=L(e,t),a=i+D.ummalquraData[r-1]-1,n=a+24e5;return n}function a3(e){var t=e-24e5,i=h3(t),r=i+16260,a=Math.floor((r-1)/12),n=a+1,o=r-12*a,u=t-D.ummalquraData[i-1]+1;return{hy:n,hm:o,hd:u}}function n3(e,t,i){var r=f((e+f(t-8,6)+100100)*1461,4)+f(153*y(t+9,12)+2,5)+i-34840408;return r=r-f(f(e+100100+f(t-8,6),100)*3,4)+752,r}function s3(e){var t,i,r,a,n;return t=4*e+139361631,t=t+f(f(4*e+183187720,146097)*3,4)*4-3908,i=f(y(t,1461),4)*5+308,r=f(y(i,153),5)+1,a=y(f(i,153),12)+1,n=f(t,1461)-100100+f(8-a,6),{gy:n,gm:a,gd:r}}function L(e,t){var i=e-1,r=i*12+1+(t-1),a=r-16260;return a}function h3(e){for(var t=0;t<D.ummalquraData.length;t=t+1)if(D.ummalquraData[t]>e)return t}})})(w.__module)),w.__module.exports}exports.__require=f3;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./index.cjs194.js");const m=(a,u)=>{const r=t.forwardRef(({color:f="currentColor",size:o=24,strokeWidth:b=2,absoluteStrokeWidth:g,className:s="",children:e,...l},n)=>t.createElement("svg",{ref:n,...d.default,width:o,height:o,className:[s].join(" "),...l},[...u.map(([c,i])=>t.createElement(c,i)),...Array.isArray(e)?e:[e]]));return r.displayName=`${a}`,r};exports.default=m;
package/index.cjs194.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor"};exports.default=e;
package/index.cjs195.js CHANGED
@@ -1,4 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pi=require("./index.cjs198.js"),ze=require("./index.cjs199.js");var Oi=ze.__module.exports,vs;function Ti(){return vs||(vs=1,(function(Ze,bi){(function($e,l){Ze.exports=l()})(Oi,(function(){var $e;function l(){return $e.apply(null,arguments)}function Ys(e){$e=e}function P(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ee(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qe(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function T(e){return e===void 0}function E(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ce(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Tt(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function J(e,t){for(var s in t)w(t,s)&&(e[s]=t[s]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function L(e,t,s,r){return es(e,t,s,r,!0).utc()}function ps(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function c(e){return e._pf==null&&(e._pf=ps()),e._pf}var Be;Array.prototype.some?Be=Array.prototype.some:Be=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Je(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=c(e),s=Be.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Ye(e){var t=L(NaN);return e!=null?J(c(t),e):c(t).userInvalidated=!0,t}var bt=l.momentProperties=[],Qe=!1;function Xe(e,t){var s,r,a,n=bt.length;if(T(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),T(t._i)||(e._i=t._i),T(t._f)||(e._f=t._f),T(t._l)||(e._l=t._l),T(t._strict)||(e._strict=t._strict),T(t._tzm)||(e._tzm=t._tzm),T(t._isUTC)||(e._isUTC=t._isUTC),T(t._offset)||(e._offset=t._offset),T(t._pf)||(e._pf=c(t)),T(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=bt[s],a=t[r],T(a)||(e[r]=a);return e}function me(e){Xe(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qe===!1&&(Qe=!0,l.updateOffset(this),Qe=!1)}function R(e){return e instanceof me||e!=null&&e._isAMomentObject!=null}function xt(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"}function x(e,t){var s=!0;return J(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),s){var r=[],a,n,i,u=arguments.length;for(n=0;n<u;n++){if(a="",typeof arguments[n]=="object"){a+=`
2
- [`+n+"] ";for(i in arguments[0])w(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}xt(e+`
3
- Arguments: `+Array.prototype.slice.call(r).join("")+`
4
- `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Nt={};function Wt(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),Nt[e]||(xt(t),Nt[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Os(e){var t,s;for(s in e)w(e,s)&&(t=e[s],U(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ke(e,t){var s=J({},e),r;for(r in t)w(t,r)&&(ee(e[r])&&ee(t[r])?(s[r]={},J(s[r],e[r]),J(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)w(e,r)&&!w(t,r)&&ee(e[r])&&(s[r]=J({},s[r]));return s}function et(e){e!=null&&this.set(e)}var tt;Object.keys?tt=Object.keys:tt=function(e){var t,s=[];for(t in e)w(e,t)&&s.push(t);return s};var Ts={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function bs(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return U(r)?r.call(t,s):r}function I(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rt={},ae={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(ae[e]=a),t&&(ae[t[0]]=function(){return I(a.apply(this,arguments),t[1],t[2])}),s&&(ae[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function xs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ns(e){var t=e.match(st),s,r;for(s=0,r=t.length;s<r;s++)ae[t[s]]?t[s]=ae[t[s]]:t[s]=xs(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=U(t[i])?t[i].call(a,e):t[i];return n}}function Oe(e,t){return e.isValid()?(t=Pt(t,e.localeData()),rt[t]=rt[t]||Ns(t),rt[t](e)):e.localeData().invalidDate()}function Pt(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(pe.lastIndex=0;s>=0&&pe.test(e);)e=e.replace(pe,r),pe.lastIndex=0,s-=1;return e}var Ws={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ps(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(st).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Rs="Invalid date";function Fs(){return this._invalidDate}var Cs="%d",Ls=/\d{1,2}/;function Us(e){return this._ordinal.replace("%d",e)}var Is={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Hs(e,t,s,r){var a=this._relativeTime[s];return U(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Es(e,t){var s=this._relativeTime[e>0?"future":"past"];return U(s)?s(t):s.replace(/%s/i,t)}var Rt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function N(e){return typeof e=="string"?Rt[e]||Rt[e.toLowerCase()]:void 0}function at(e){var t={},s,r;for(r in e)w(e,r)&&(s=N(r),s&&(t[s]=e[r]));return t}var As={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Vs(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:As[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Ft=/\d/,b=/\d\d/,Ct=/\d{3}/,nt=/\d{4}/,Te=/[+-]?\d{6}/,M=/\d\d?/,Lt=/\d\d\d\d?/,Ut=/\d\d\d\d\d\d?/,be=/\d{1,3}/,it=/\d{1,4}/,xe=/[+-]?\d{1,6}/,ne=/\d+/,Ne=/[+-]?\d+/,Gs=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,js=/[+-]?\d+(\.\d{1,3})?/,_e=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ie=/^[1-9]\d?/,ot=/^([1-9]\d|\d)/,Pe;Pe={};function d(e,t,s){Pe[e]=U(t)?t:function(r,a){return r&&s?s:t}}function zs(e,t){return w(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(Zs(e))}function Zs(e){return A(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function A(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=W(t)),s}var lt={};function g(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),E(t)&&(r=function(n,i){i[t]=m(n)}),a=e.length,s=0;s<a;s++)lt[e[s]]=r}function ye(e,t){g(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function $s(e,t,s){t!=null&&w(lt,e)&&lt[e](t,s._a,s,e)}function Re(e){return e%4===0&&e%100!==0||e%400===0}var p=0,V=1,H=2,Y=3,F=4,G=5,te=6,qs=7,Bs=8;h("Y",0,0,function(){var e=this.year();return e<=9999?I(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),d("Y",Ne),d("YY",M,b),d("YYYY",it,nt),d("YYYYY",xe,Te),d("YYYYYY",xe,Te),g(["YYYYY","YYYYYY"],p),g("YYYY",function(e,t){t[p]=e.length===2?l.parseTwoDigitYear(e):m(e)}),g("YY",function(e,t){t[p]=l.parseTwoDigitYear(e)}),g("Y",function(e,t){t[p]=parseInt(e,10)});function we(e){return Re(e)?366:365}l.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var It=oe("FullYear",!0);function Js(){return Re(this.year())}function oe(e,t){return function(s){return s!=null?(Ht(this,e,s),l.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Ht(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Re(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function Qs(e){return e=N(e),U(this[e])?this[e]():this}function Xs(e,t){if(typeof e=="object"){e=at(e);var s=Vs(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=N(e),U(this[e]))return this[e](t);return this}function Ks(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ut(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Ks(t,12);return e+=(t-s)/12,s===1?Re(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),d("M",M,ie),d("MM",M,b),d("MMM",function(e,t){return t.monthsShortRegex(e)}),d("MMMM",function(e,t){return t.monthsRegex(e)}),g(["M","MM"],function(e,t){t[V]=m(e)-1}),g(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[V]=a:c(s).invalidMonth=e});var er="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,tr=_e,sr=_e;function rr(e,t){return e?P(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||At).test(t)?"format":"standalone"][e.month()]:P(this._months)?this._months:this._months.standalone}function ar(e,t){return e?P(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[At.test(t)?"format":"standalone"][e.month()]:P(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function nr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=L([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:null):(a=v.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:(a=v.call(this._longMonthsParse,i),a!==-1?a:null)):(a=v.call(this._longMonthsParse,i),a!==-1?a:(a=v.call(this._shortMonthsParse,i),a!==-1?a:null))}function ir(e,t,s){var r,a,n;if(this._monthsParseExact)return nr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=L([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function Vt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=m(t);else if(t=e.localeData().monthsParse(t),!E(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,ut(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function Gt(e){return e!=null?(Vt(this,e),l.updateOffset(this,!0),this):ke(this,"Month")}function or(){return ut(this.year(),this.month())}function lr(e){return this._monthsParseExact?(w(this,"_monthsRegex")||jt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=tr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ur(e){return this._monthsParseExact?(w(this,"_monthsRegex")||jt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=sr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function jt(){function e(f,_){return _.length-f.length}var t=[],s=[],r=[],a,n,i,u;for(a=0;a<12;a++)n=L([2e3,a]),i=A(this.monthsShort(n,"")),u=A(this.months(n,"")),t.push(i),s.push(u),r.push(u),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dr(e,t,s,r,a,n,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function ge(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,s){var r=7+t-s,a=(7+ge(e,0,r).getUTCDay()-t)%7;return-a+r-1}function zt(e,t,s,r,a){var n=(7+s-r)%7,i=Fe(e,r,a),u=1+7*(t-1)+n+i,f,_;return u<=0?(f=e-1,_=we(f)+u):u>we(e)?(f=e+1,_=u-we(e)):(f=e,_=u),{year:f,dayOfYear:_}}function Me(e,t,s){var r=Fe(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+j(i,t,s)):a>j(e.year(),t,s)?(n=a-j(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function j(e,t,s){var r=Fe(e,t,s),a=Fe(e+1,t,s);return(we(e)-r+a)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",M,ie),d("ww",M,b),d("W",M,ie),d("WW",M,b),ye(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=m(e)});function hr(e){return Me(e,this._week.dow,this._week.doy).week}var fr={dow:0,doy:6};function cr(){return this._week.dow}function mr(){return this._week.doy}function _r(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function yr(e){var t=Me(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",M),d("e",M),d("E",M),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:c(s).invalidWeekday=e}),ye(["d","e","E"],function(e,t,s,r){t[r]=m(e)});function wr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function kr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var gr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sr=_e,Dr=_e,vr=_e;function Yr(e,t){var s=P(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?dt(s,this._week.dow):e?s[e.day()]:s}function pr(e){return e===!0?dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Or(e){return e===!0?dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Tr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=L([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1||(a=v.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=v.call(this._minWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function br(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Tr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=L([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function xr(e){if(!this.isValid())return e!=null?this:NaN;var t=ke(this,"Day");return e!=null?(e=wr(e,this.localeData()),this.add(e-t,"d")):t}function Nr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Wr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=kr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Pr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ht.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Sr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Rr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ht.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ht.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ht(){function e(O,B){return B.length-O.length}var t=[],s=[],r=[],a=[],n,i,u,f,_;for(n=0;n<7;n++)i=L([2e3,1]).day(n),u=A(this.weekdaysMin(i,"")),f=A(this.weekdaysShort(i,"")),_=A(this.weekdays(i,"")),t.push(u),s.push(f),r.push(_),a.push(u),a.push(f),a.push(_);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ft(){return this.hours()%12||12}function Cr(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,ft),h("k",["kk",2],0,Cr),h("hmm",0,0,function(){return""+ft.apply(this)+I(this.minutes(),2)}),h("hmmss",0,0,function(){return""+ft.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)});function $t(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}$t("a",!0),$t("A",!1);function qt(e,t){return t._meridiemParse}d("a",qt),d("A",qt),d("H",M,ot),d("h",M,ie),d("k",M,ie),d("HH",M,b),d("hh",M,b),d("kk",M,b),d("hmm",Lt),d("hmmss",Ut),d("Hmm",Lt),d("Hmmss",Ut),g(["H","HH"],Y),g(["k","kk"],function(e,t,s){var r=m(e);t[Y]=r===24?0:r}),g(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),g(["h","hh"],function(e,t,s){t[Y]=m(e),c(s).bigHour=!0}),g("hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r)),c(s).bigHour=!0}),g("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r,2)),t[G]=m(e.substr(a)),c(s).bigHour=!0}),g("Hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r))}),g("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r,2)),t[G]=m(e.substr(a))});function Lr(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ur=/[ap]\.?m?\.?/i,Ir=oe("Hours",!0);function Hr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Bt={calendar:Ts,longDateFormat:Ws,invalidDate:Rs,ordinal:Cs,dayOfMonthOrdinalParse:Ls,relativeTime:Is,months:er,monthsShort:Et,week:fr,weekdays:gr,weekdaysMin:Mr,weekdaysShort:Zt,meridiemParse:Ur},D={},Se={},De;function Er(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Jt(e){return e&&e.toLowerCase().replace("_","-")}function Ar(e){for(var t=0,s,r,a,n;t<e.length;){for(n=Jt(e[t]).split("-"),s=n.length,r=Jt(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ce(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Er(n,r)>=s-1)break;s--}t++}return De}function Vr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ce(e){var t=null,s;if(D[e]===void 0&&Ze&&Ze.exports&&Vr(e))try{t=De._abbr,s=pi.commonjsRequire,s("./locale/"+e),Q(t)}catch{D[e]=null}return D[e]}function Q(e,t){var s;return e&&(T(t)?s=z(e):s=ct(e,t),s&&(De=s)),De._abbr}function ct(e,t){if(t!==null){var s,r=Bt;if(t.abbr=e,D[e]!=null)Wt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=Ce(t.parentLocale),s!=null)r=s._config;else return Se[t.parentLocale]||(Se[t.parentLocale]=[]),Se[t.parentLocale].push({name:e,config:t}),null;return D[e]=new et(Ke(r,t)),Se[e]&&Se[e].forEach(function(a){ct(a.name,a.config)}),Q(e),D[e]}else return delete D[e],null}function Gr(e,t){if(t!=null){var s,r,a=Bt;D[e]!=null&&D[e].parentLocale!=null?D[e].set(Ke(D[e]._config,t)):(r=Ce(e),r!=null&&(a=r._config),t=Ke(a,t),r==null&&(t.abbr=e),s=new et(t),s.parentLocale=D[e],D[e]=s),Q(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===Q()&&Q(e)):D[e]!=null&&delete D[e]);return D[e]}function z(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return De;if(!P(e)){if(t=Ce(e),t)return t;e=[e]}return Ar(e)}function jr(){return tt(D)}function mt(e){var t,s=e._a;return s&&c(e).overflow===-2&&(t=s[V]<0||s[V]>11?V:s[H]<1||s[H]>ut(s[p],s[V])?H:s[Y]<0||s[Y]>24||s[Y]===24&&(s[F]!==0||s[G]!==0||s[te]!==0)?Y:s[F]<0||s[F]>59?F:s[G]<0||s[G]>59?G:s[te]<0||s[te]>999?te:-1,c(e)._overflowDayOfYear&&(t<p||t>H)&&(t=H),c(e)._overflowWeeks&&t===-1&&(t=qs),c(e)._overflowWeekday&&t===-1&&(t=Bs),c(e).overflow=t),e}var zr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$r=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qr=/^\/?Date\((-?\d+)/i,Br=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Qt(e){var t,s,r=e._i,a=zr.exec(r)||Zr.exec(r),n,i,u,f,_=Le.length,O=_t.length;if(a){for(c(e).iso=!0,t=0,s=_;t<s;t++)if(Le[t][1].exec(a[1])){i=Le[t][0],n=Le[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=O;t<s;t++)if(_t[t][1].exec(a[3])){u=(a[2]||" ")+_t[t][0];break}if(u==null){e._isValid=!1;return}}if(!n&&u!=null){e._isValid=!1;return}if(a[4])if($r.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(f||""),wt(e)}else e._isValid=!1}function Qr(e,t,s,r,a,n){var i=[Xr(e),Et.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function Xr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Kr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ea(e,t,s){if(e){var r=Zt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return c(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function ta(e,t,s){if(e)return Jr[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function Xt(e){var t=Br.exec(Kr(e._i)),s;if(t){if(s=Qr(t[4],t[3],t[2],t[5],t[6],t[7]),!ea(t[1],s,e))return;e._a=s,e._tzm=ta(t[8],t[9],t[10]),e._d=ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),c(e).rfc2822=!0}else e._isValid=!1}function sa(e){var t=qr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Qt(e),e._isValid===!1)delete e._isValid;else return;if(Xt(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function le(e,t,s){return e??t??s}function ra(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function yt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=ra(e),e._w&&e._a[H]==null&&e._a[V]==null&&aa(e),e._dayOfYear!=null&&(i=le(e._a[p],a[p]),(e._dayOfYear>we(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),s=ge(i,0,e._dayOfYear),e._a[V]=s.getUTCMonth(),e._a[H]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[F]===0&&e._a[G]===0&&e._a[te]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?ge:dr).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function aa(e){var t,s,r,a,n,i,u,f,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=le(t.GG,e._a[p],Me(S(),1,4).year),r=le(t.W,1),a=le(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,_=Me(S(),n,i),s=le(t.gg,e._a[p],_.year),r=le(t.w,_.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>j(s,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(u=zt(s,r,a,n,i),e._a[p]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function wt(e){if(e._f===l.ISO_8601){Qt(e);return}if(e._f===l.RFC_2822){Xt(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,_,O;for(a=Pt(e._f,e._locale).match(st)||[],O=a.length,s=0;s<O;s++)n=a[s],r=(t.match(zs(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&c(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),ae[n]?(r?c(e).empty=!1:c(e).unusedTokens.push(n),$s(n,r,e)):e._strict&&!r&&c(e).unusedTokens.push(n);c(e).charsLeftOver=u-f,t.length>0&&c(e).unusedInput.push(t),e._a[Y]<=12&&c(e).bigHour===!0&&e._a[Y]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[Y]=na(e._locale,e._a[Y],e._meridiem),_=c(e).era,_!==null&&(e._a[p]=e._locale.erasConvertYear(_,e._a[p])),yt(e),mt(e)}function na(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ia(e){var t,s,r,a,n,i,u=!1,f=e._f.length;if(f===0){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)n=0,i=!1,t=Xe({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],wt(t),Je(t)&&(i=!0),n+=c(t).charsLeftOver,n+=c(t).unusedTokens.length*10,c(t).score=n,u?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(u=!0));J(e,s||t)}function oa(e){if(!e._d){var t=at(e._i),s=t.day===void 0?t.date:t.day;e._a=Tt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),yt(e)}}function la(e){var t=new me(mt(Kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Kt(e){var t=e._i,s=e._f;return e._locale=e._locale||z(e._l),t===null||s===void 0&&t===""?Ye({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),R(t)?new me(mt(t)):(ce(t)?e._d=t:P(s)?ia(e):s?wt(e):ua(e),Je(e)||(e._d=null),e))}function ua(e){var t=e._i;T(t)?e._d=new Date(l.now()):ce(t)?e._d=new Date(t.valueOf()):typeof t=="string"?sa(e):P(t)?(e._a=Tt(t.slice(0),function(s){return parseInt(s,10)}),yt(e)):ee(t)?oa(e):E(t)?e._d=new Date(t):l.createFromInputFallback(e)}function es(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(ee(e)&&qe(e)||P(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,la(n)}function S(e,t,s,r){return es(e,t,s,r,!1)}var da=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=S.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ye()}),ha=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=S.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ye()});function ts(e,t){var s,r;if(t.length===1&&P(t[0])&&(t=t[0]),!t.length)return S();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function fa(){var e=[].slice.call(arguments,0);return ts("isBefore",e)}function ca(){var e=[].slice.call(arguments,0);return ts("isAfter",e)}var ma=function(){return Date.now?Date.now():+new Date},ve=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _a(e){var t,s=!1,r,a=ve.length;for(t in e)if(w(e,t)&&!(v.call(ve,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[ve[r]]){if(s)return!1;parseFloat(e[ve[r]])!==m(e[ve[r]])&&(s=!0)}return!0}function ya(){return this._isValid}function wa(){return C(NaN)}function Ue(e){var t=at(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,f=t.minute||0,_=t.second||0,O=t.millisecond||0;this._isValid=_a(t),this._milliseconds=+O+_*1e3+f*6e4+u*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=z(),this._bubble()}function Ie(e){return e instanceof Ue}function kt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ka(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)m(e[i])!==m(t[i])&&n++;return n+a}function ss(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+I(~~(s/60),2)+t+I(~~s%60,2)})}ss("Z",":"),ss("ZZ",""),d("Z",We),d("ZZ",We),g(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=gt(We,e)});var ga=/([\+\-]|\d\d)/gi;function gt(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(ga)||["-",0,0],n=+(a[1]*60)+m(a[2]),n===0?0:a[0]==="+"?n:-n)}function Mt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(R(e)||ce(e)?e.valueOf():S(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),l.updateOffset(s,!1),s):S(e).local()}function St(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Ma(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=gt(We,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=St(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?is(this,C(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:St(this)}function Sa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Da(e){return this.utcOffset(0,e)}function va(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(St(this),"m")),this}function Ya(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=gt(Gs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function pa(e){return this.isValid()?(e=e?S(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Oa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ta(){if(!T(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Xe(e,this),e=Kt(e),e._a?(t=e._isUTC?L(e._a):S(e._a),this._isDSTShifted=this.isValid()&&ka(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ba(){return this.isValid()?!this._isUTC:!1}function xa(){return this.isValid()?this._isUTC:!1}function rs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Na=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var s=e,r=null,a,n,i;return Ie(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:E(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Na.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:m(r[H])*a,h:m(r[Y])*a,m:m(r[F])*a,s:m(r[G])*a,ms:m(kt(r[te]*1e3))*a}):(r=Wa.exec(e))?(a=r[1]==="-"?-1:1,s={y:se(r[2],a),M:se(r[3],a),w:se(r[4],a),d:se(r[5],a),h:se(r[6],a),m:se(r[7],a),s:se(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Pa(S(s.from),S(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ue(s),Ie(e)&&w(e,"_locale")&&(n._locale=e._locale),Ie(e)&&w(e,"_isValid")&&(n._isValid=e._isValid),n}C.fn=Ue.prototype,C.invalid=wa;function se(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function as(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Pa(e,t){var s;return e.isValid()&&t.isValid()?(t=Mt(t,e),e.isBefore(t)?s=as(e,t):(s=as(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ns(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Wt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=C(s,r),is(this,a,e),this}}function is(e,t,s,r){var a=t._milliseconds,n=kt(t._days),i=kt(t._months);e.isValid()&&(r=r??!0,i&&Vt(e,ke(e,"Month")+i*s),n&&Ht(e,"Date",ke(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Ra=ns(1,"add"),Fa=ns(-1,"subtract");function os(e){return typeof e=="string"||e instanceof String}function Ca(e){return R(e)||ce(e)||os(e)||E(e)||Ua(e)||La(e)||e===null||e===void 0}function La(e){var t=ee(e)&&!qe(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||w(e,n);return t&&s}function Ua(e){var t=P(e),s=!1;return t&&(s=e.filter(function(r){return!E(r)&&os(e)}).length===0),t&&s}function Ia(e){var t=ee(e)&&!qe(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||w(e,n);return t&&s}function Ha(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ea(e,t){arguments.length===1&&(arguments[0]?Ca(arguments[0])?(e=arguments[0],t=void 0):Ia(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||S(),r=Mt(s,this).startOf("day"),a=l.calendarFormat(this,r)||"sameElse",n=t&&(U(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,S(s)))}function Aa(){return new me(this)}function Va(e,t){var s=R(e)?e:S(e);return this.isValid()&&s.isValid()?(t=N(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ga(e,t){var s=R(e)?e:S(e);return this.isValid()&&s.isValid()?(t=N(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function ja(e,t,s,r){var a=R(e)?e:S(e),n=R(t)?t:S(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function za(e,t){var s=R(e)?e:S(e),r;return this.isValid()&&s.isValid()?(t=N(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Za(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $a(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qa(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=Mt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=N(t),t){case"year":n=He(this,r)/12;break;case"month":n=He(this,r);break;case"quarter":n=He(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:W(n)}function He(e,t){if(e.date()<t.date())return-He(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ba(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ja(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Oe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oe(s,"Z")):Oe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function Xa(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Oe(this,e);return this.localeData().postformat(t)}function Ka(e,t){return this.isValid()&&(R(e)&&e.isValid()||S(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function en(e){return this.from(S(),e)}function tn(e,t){return this.isValid()&&(R(e)&&e.isValid()||S(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sn(e){return this.to(S(),e)}function ls(e){var t;return e===void 0?this._locale._abbr:(t=z(e),t!=null&&(this._locale=t),this)}var us=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ds(){return this._locale}var Ee=1e3,ue=60*Ee,Ae=60*ue,hs=(365*400+97)*24*Ae;function de(e,t){return(e%t+t)%t}function fs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-hs:new Date(e,t,s).valueOf()}function cs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-hs:Date.UTC(e,t,s)}function rn(e){var t,s;if(e=N(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?cs:fs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=de(t+(this._isUTC?0:this.utcOffset()*ue),Ae);break;case"minute":t=this._d.valueOf(),t-=de(t,ue);break;case"second":t=this._d.valueOf(),t-=de(t,Ee);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function an(e){var t,s;if(e=N(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?cs:fs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ae-de(t+(this._isUTC?0:this.utcOffset()*ue),Ae)-1;break;case"minute":t=this._d.valueOf(),t+=ue-de(t,ue)-1;break;case"second":t=this._d.valueOf(),t+=Ee-de(t,Ee)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function nn(){return this._d.valueOf()-(this._offset||0)*6e4}function on(){return Math.floor(this.valueOf()/1e3)}function ln(){return new Date(this.valueOf())}function un(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function hn(){return this.isValid()?this.toISOString():null}function fn(){return Je(this)}function cn(){return J({},c(this))}function mn(){return c(this).overflow}function _n(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",Dt),d("NN",Dt),d("NNN",Dt),d("NNNN",On),d("NNNNN",Tn),g(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?c(s).era=a:c(s).invalidEra=e}),d("y",ne),d("yy",ne),d("yyy",ne),d("yyyy",ne),d("yo",bn),g(["y","yy","yyy","yyyy"],p),g(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[p]=s._locale.eraYearOrdinalParse(e,a):t[p]=parseInt(e,10)});function yn(e,t){var s,r,a,n=this._eras||z("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=l(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=l(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function wn(e,t,s){var r,a,n=this.eras(),i,u,f;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),u=n[r].abbr.toUpperCase(),f=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(f===e)return n[r];break}else if([i,u,f].indexOf(e)>=0)return n[r]}function kn(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function gn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Mn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Sn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Dn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-l(a[e].since).year())*s+a[e].offset;return this.year()}function vn(e){return w(this,"_erasNameRegex")||vt.call(this),e?this._erasNameRegex:this._erasRegex}function Yn(e){return w(this,"_erasAbbrRegex")||vt.call(this),e?this._erasAbbrRegex:this._erasRegex}function pn(e){return w(this,"_erasNarrowRegex")||vt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dt(e,t){return t.erasAbbrRegex(e)}function On(e,t){return t.erasNameRegex(e)}function Tn(e,t){return t.erasNarrowRegex(e)}function bn(e,t){return t._eraYearOrdinalRegex||ne}function vt(){var e=[],t=[],s=[],r=[],a,n,i,u,f,_=this.eras();for(a=0,n=_.length;a<n;++a)i=A(_[a].name),u=A(_[a].abbr),f=A(_[a].narrow),t.push(i),e.push(u),s.push(f),r.push(i),r.push(u),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ve(e,t){h(0,[e,e.length],0,t)}Ve("gggg","weekYear"),Ve("ggggg","weekYear"),Ve("GGGG","isoWeekYear"),Ve("GGGGG","isoWeekYear"),d("G",Ne),d("g",Ne),d("GG",M,b),d("gg",M,b),d("GGGG",it,nt),d("gggg",it,nt),d("GGGGG",xe,Te),d("ggggg",xe,Te),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=m(e)}),ye(["gg","GG"],function(e,t,s,r){t[r]=l.parseTwoDigitYear(e)});function xn(e){return ms.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Nn(e){return ms.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wn(){return j(this.year(),1,4)}function Pn(){return j(this.isoWeekYear(),1,4)}function Rn(){var e=this.localeData()._week;return j(this.year(),e.dow,e.doy)}function Fn(){var e=this.localeData()._week;return j(this.weekYear(),e.dow,e.doy)}function ms(e,t,s,r,a){var n;return e==null?Me(this,r,a).year:(n=j(e,r,a),t>n&&(t=n),Cn.call(this,e,t,s,r,a))}function Cn(e,t,s,r,a){var n=zt(e,t,s,r,a),i=ge(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),d("Q",Ft),g("Q",function(e,t){t[V]=(m(e)-1)*3});function Ln(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),d("D",M,ie),d("DD",M,b),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),g(["D","DD"],H),g("Do",function(e,t){t[H]=m(e.match(M)[0])});var _s=oe("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",be),d("DDDD",Ct),g(["DDD","DDDD"],function(e,t,s){s._dayOfYear=m(e)});function Un(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),d("m",M,ot),d("mm",M,b),g(["m","mm"],F);var In=oe("Minutes",!1);h("s",["ss",2],0,"second"),d("s",M,ot),d("ss",M,b),g(["s","ss"],G);var Hn=oe("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),d("S",be,Ft),d("SS",be,b),d("SSS",be,Ct);var X,ys;for(X="SSSS";X.length<=9;X+="S")d(X,ne);function En(e,t){t[te]=m(("0."+e)*1e3)}for(X="S";X.length<=9;X+="S")g(X,En);ys=oe("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function An(){return this._isUTC?"UTC":""}function Vn(){return this._isUTC?"Coordinated Universal Time":""}var o=me.prototype;o.add=Ra,o.calendar=Ea,o.clone=Aa,o.diff=qa,o.endOf=an,o.format=Xa,o.from=Ka,o.fromNow=en,o.to=tn,o.toNow=sn,o.get=Qs,o.invalidAt=mn,o.isAfter=Va,o.isBefore=Ga,o.isBetween=ja,o.isSame=za,o.isSameOrAfter=Za,o.isSameOrBefore=$a,o.isValid=fn,o.lang=us,o.locale=ls,o.localeData=ds,o.max=ha,o.min=da,o.parsingFlags=cn,o.set=Xs,o.startOf=rn,o.subtract=Fa,o.toArray=un,o.toObject=dn,o.toDate=ln,o.toISOString=Ja,o.inspect=Qa,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=hn,o.toString=Ba,o.unix=on,o.valueOf=nn,o.creationData=_n,o.eraName=gn,o.eraNarrow=Mn,o.eraAbbr=Sn,o.eraYear=Dn,o.year=It,o.isLeapYear=Js,o.weekYear=xn,o.isoWeekYear=Nn,o.quarter=o.quarters=Ln,o.month=Gt,o.daysInMonth=or,o.week=o.weeks=_r,o.isoWeek=o.isoWeeks=yr,o.weeksInYear=Rn,o.weeksInWeekYear=Fn,o.isoWeeksInYear=Wn,o.isoWeeksInISOWeekYear=Pn,o.date=_s,o.day=o.days=xr,o.weekday=Nr,o.isoWeekday=Wr,o.dayOfYear=Un,o.hour=o.hours=Ir,o.minute=o.minutes=In,o.second=o.seconds=Hn,o.millisecond=o.milliseconds=ys,o.utcOffset=Ma,o.utc=Da,o.local=va,o.parseZone=Ya,o.hasAlignedHourOffset=pa,o.isDST=Oa,o.isLocal=ba,o.isUtcOffset=xa,o.isUtc=rs,o.isUTC=rs,o.zoneAbbr=An,o.zoneName=Vn,o.dates=x("dates accessor is deprecated. Use date instead.",_s),o.months=x("months accessor is deprecated. Use month instead",Gt),o.years=x("years accessor is deprecated. Use year instead",It),o.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Sa),o.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ta);function Gn(e){return S(e*1e3)}function jn(){return S.apply(null,arguments).parseZone()}function ws(e){return e}var k=et.prototype;k.calendar=bs,k.longDateFormat=Ps,k.invalidDate=Fs,k.ordinal=Us,k.preparse=ws,k.postformat=ws,k.relativeTime=Hs,k.pastFuture=Es,k.set=Os,k.eras=yn,k.erasParse=wn,k.erasConvertYear=kn,k.erasAbbrRegex=Yn,k.erasNameRegex=vn,k.erasNarrowRegex=pn,k.months=rr,k.monthsShort=ar,k.monthsParse=ir,k.monthsRegex=ur,k.monthsShortRegex=lr,k.week=hr,k.firstDayOfYear=mr,k.firstDayOfWeek=cr,k.weekdays=Yr,k.weekdaysMin=Or,k.weekdaysShort=pr,k.weekdaysParse=br,k.weekdaysRegex=Pr,k.weekdaysShortRegex=Rr,k.weekdaysMinRegex=Fr,k.isPM=Lr,k.meridiem=Hr;function Ge(e,t,s,r){var a=z(),n=L().set(r,t);return a[s](n,e)}function ks(e,t,s){if(E(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ge(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Ge(e,r,s,"month");return a}function Yt(e,t,s,r){typeof e=="boolean"?(E(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,E(t)&&(s=t,t=void 0),t=t||"");var a=z(),n=e?a._week.dow:0,i,u=[];if(s!=null)return Ge(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=Ge(t,(i+n)%7,r,"day");return u}function zn(e,t){return ks(e,t,"months")}function Zn(e,t){return ks(e,t,"monthsShort")}function $n(e,t,s){return Yt(e,t,s,"weekdays")}function qn(e,t,s){return Yt(e,t,s,"weekdaysShort")}function Bn(e,t,s){return Yt(e,t,s,"weekdaysMin")}Q("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=m(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=x("moment.lang is deprecated. Use moment.locale instead.",Q),l.langData=x("moment.langData is deprecated. Use moment.localeData instead.",z);var Z=Math.abs;function Jn(){var e=this._data;return this._milliseconds=Z(this._milliseconds),this._days=Z(this._days),this._months=Z(this._months),e.milliseconds=Z(e.milliseconds),e.seconds=Z(e.seconds),e.minutes=Z(e.minutes),e.hours=Z(e.hours),e.months=Z(e.months),e.years=Z(e.years),this}function gs(e,t,s,r){var a=C(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Qn(e,t){return gs(this,e,t,1)}function Xn(e,t){return gs(this,e,t,-1)}function Ms(e){return e<0?Math.floor(e):Math.ceil(e)}function Kn(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Ms(pt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=W(e/1e3),r.seconds=a%60,n=W(a/60),r.minutes=n%60,i=W(n/60),r.hours=i%24,t+=W(i/24),f=W(Ss(t)),s+=f,t-=Ms(pt(f)),u=W(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Ss(e){return e*4800/146097}function pt(e){return e*146097/4800}function ei(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=N(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Ss(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(pt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function $(e){return function(){return this.as(e)}}var Ds=$("ms"),ti=$("s"),si=$("m"),ri=$("h"),ai=$("d"),ni=$("w"),ii=$("M"),oi=$("Q"),li=$("y"),ui=Ds;function di(){return C(this)}function hi(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function re(e){return function(){return this.isValid()?this._data[e]:NaN}}var fi=re("milliseconds"),ci=re("seconds"),mi=re("minutes"),_i=re("hours"),yi=re("days"),wi=re("months"),ki=re("years");function gi(){return W(this.days()/7)}var q=Math.round,he={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function Si(e,t,s,r){var a=C(e).abs(),n=q(a.as("s")),i=q(a.as("m")),u=q(a.as("h")),f=q(a.as("d")),_=q(a.as("M")),O=q(a.as("w")),B=q(a.as("y")),K=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||u<=1&&["h"]||u<s.h&&["hh",u]||f<=1&&["d"]||f<s.d&&["dd",f];return s.w!=null&&(K=K||O<=1&&["w"]||O<s.w&&["ww",O]),K=K||_<=1&&["M"]||_<s.M&&["MM",_]||B<=1&&["y"]||["yy",B],K[2]=t,K[3]=+e>0,K[4]=r,Mi.apply(null,K)}function Di(e){return e===void 0?q:typeof e=="function"?(q=e,!0):!1}function vi(e,t){return he[e]===void 0?!1:t===void 0?he[e]:(he[e]=t,e==="s"&&(he.ss=t-1),!0)}function Yi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=he,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},he,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Si(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var Ot=Math.abs;function fe(e){return(e>0)-(e<0)||+e}function je(){if(!this.isValid())return this.localeData().invalidDate();var e=Ot(this._milliseconds)/1e3,t=Ot(this._days),s=Ot(this._months),r,a,n,i,u=this.asSeconds(),f,_,O,B;return u?(r=W(e/60),a=W(r/60),e%=60,r%=60,n=W(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",_=fe(this._months)!==fe(u)?"-":"",O=fe(this._days)!==fe(u)?"-":"",B=fe(this._milliseconds)!==fe(u)?"-":"",f+"P"+(n?_+n+"Y":"")+(s?_+s+"M":"")+(t?O+t+"D":"")+(a||r||e?"T":"")+(a?B+a+"H":"")+(r?B+r+"M":"")+(e?B+i+"S":"")):"P0D"}var y=Ue.prototype;y.isValid=ya,y.abs=Jn,y.add=Qn,y.subtract=Xn,y.as=ei,y.asMilliseconds=Ds,y.asSeconds=ti,y.asMinutes=si,y.asHours=ri,y.asDays=ai,y.asWeeks=ni,y.asMonths=ii,y.asQuarters=oi,y.asYears=li,y.valueOf=ui,y._bubble=Kn,y.clone=di,y.get=hi,y.milliseconds=fi,y.seconds=ci,y.minutes=mi,y.hours=_i,y.days=yi,y.weeks=gi,y.months=wi,y.years=ki,y.humanize=Yi,y.toISOString=je,y.toString=je,y.toJSON=je,y.locale=ls,y.localeData=ds,y.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",je),y.lang=us,h("X",0,0,"unix"),h("x",0,0,"valueOf"),d("x",Ne),d("X",js),g("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),g("x",function(e,t,s){s._d=new Date(m(e))});return l.version="2.30.1",Ys(S),l.fn=o,l.min=fa,l.max=ca,l.now=ma,l.utc=L,l.unix=Gn,l.months=zn,l.isDate=ce,l.locale=Q,l.invalid=Ye,l.duration=C,l.isMoment=R,l.weekdays=$n,l.parseZone=jn,l.localeData=z,l.isDuration=Ie,l.monthsShort=Zn,l.weekdaysMin=Bn,l.defineLocale=ct,l.updateLocale=Gr,l.locales=jr,l.weekdaysShort=qn,l.normalizeUnits=N,l.relativeTimeRounding=Di,l.relativeTimeThreshold=vi,l.calendarFormat=Ha,l.prototype=o,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}))})(ze.__module)),ze.__module.exports}exports.__require=Ti;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function D(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return o.useMemo(()=>u=>{e.forEach(r=>r(u))},e)}const h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function i(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function l(n){return"nodeType"in n}function c(n){var e,t;return n?i(n)?n:l(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function E(n){const{Document:e}=c(n);return n instanceof e}function g(n){return i(n)?!1:n instanceof c(n).HTMLElement}function S(n){return n instanceof c(n).SVGElement}function L(n){return n?i(n)?n.document:l(n)?E(n)?n:g(n)||S(n)?n.ownerDocument:document:document:document}const d=h?o.useLayoutEffect:o.useEffect;function R(n){const e=o.useRef(n);return d(()=>{e.current=n}),o.useCallback(function(){for(var t=arguments.length,u=new Array(t),r=0;r<t;r++)u[r]=arguments[r];return e.current==null?void 0:e.current(...u)},[])}function O(){const n=o.useRef(null),e=o.useCallback((u,r)=>{n.current=setInterval(u,r)},[]),t=o.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function V(n,e){e===void 0&&(e=[n]);const t=o.useRef(n);return d(()=>{t.current!==n&&(t.current=n)},e),t}function j(n,e){const t=o.useRef();return o.useMemo(()=>{const u=n(t.current);return t.current=u,u},[...e])}function I(n){const e=R(n),t=o.useRef(null),u=o.useCallback(r=>{r!==t.current&&(e==null||e(r,t.current)),t.current=r},[]);return[t,u]}function N(n){const e=o.useRef();return o.useEffect(()=>{e.current=n},[n]),e.current}let f={};function X(n,e){return o.useMemo(()=>{if(e)return e;const t=f[n]==null?0:f[n]+1;return f[n]=t,n+"-"+t},[n,e])}function y(n){return function(e){for(var t=arguments.length,u=new Array(t>1?t-1:0),r=1;r<t;r++)u[r-1]=arguments[r];return u.reduce((s,M)=>{const v=Object.entries(M);for(const[m,p]of v){const w=s[m];w!=null&&(s[m]=w+n*p)}return s},{...e})}}const Y=y(1),A=y(-1);function T(n){return"clientX"in n&&"clientY"in n}function F(n){if(!n)return!1;const{KeyboardEvent:e}=c(n.target);return e&&n instanceof e}function C(n){if(!n)return!1;const{TouchEvent:e}=c(n.target);return e&&n instanceof e}function W(n){if(C(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return T(n)?{x:n.clientX,y:n.clientY}:null}const a=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[a.Translate.toString(n),a.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:u}=n;return e+" "+t+"ms "+u}}}),b="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function q(n){return n.matches(b)?n:n.querySelector(b)}exports.CSS=a;exports.add=Y;exports.canUseDOM=h;exports.findFirstFocusableNode=q;exports.getEventCoordinates=W;exports.getOwnerDocument=L;exports.getWindow=c;exports.hasViewportRelativeCoordinates=T;exports.isDocument=E;exports.isHTMLElement=g;exports.isKeyboardEvent=F;exports.isNode=l;exports.isSVGElement=S;exports.isTouchEvent=C;exports.isWindow=i;exports.subtract=A;exports.useCombinedRefs=D;exports.useEvent=R;exports.useInterval=O;exports.useIsomorphicLayoutEffect=d;exports.useLatestValue=V;exports.useLazyMemo=j;exports.useNodeRef=I;exports.usePrevious=N;exports.useUniqueId=X;
package/index.cjs196.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o extends Error{}o.prototype.name="InvalidTokenError";function c(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function s(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return c(e)}catch{return atob(e)}}function d(t,e){if(typeof t!="string")throw new o("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new o(`Invalid token specified: missing part #${r+1}`);let i;try{i=s(n)}catch(a){throw new o(`Invalid token specified: invalid base64 for part #${r+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new o(`Invalid token specified: invalid json for part #${r+1} (${a.message})`)}}exports.InvalidTokenError=o;exports.jwtDecode=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c={display:"none"};function r(e){let{id:n,value:t}=e;return o.createElement("div",{id:n,style:c},t)}function u(e){let{id:n,announcement:t,ariaLiveType:i="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return o.createElement("div",{id:n,style:a,role:"status","aria-live":i,"aria-atomic":!0},t)}function d(){const[e,n]=o.useState("");return{announce:o.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}exports.HiddenText=r;exports.LiveRegion=u;exports.useAnnouncement=d;
package/index.cjs197.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs210.js");e.__require();
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index.cjs198.js");var h,E;function V(){if(E)return h;E=1;var L="Expected a function",O=NaN,G="[object Symbol]",M=/^\s+|\s+$/g,q=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,N=/^0o[0-7]+$/i,R=parseInt,W=typeof g.commonjsGlobal=="object"&&g.commonjsGlobal&&g.commonjsGlobal.Object===Object&&g.commonjsGlobal,$=typeof self=="object"&&self&&self.Object===Object&&self,A=W||$||Function("return this")(),B=Object.prototype,F=B.toString,P=Math.max,H=Math.min,y=function(){return A.Date.now()};function D(e,r,i){var a,u,l,c,t,f,s=0,S=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(L);r=I(r)||0,j(i)&&(S=!!i.leading,d="maxWait"in i,l=d?P(I(i.maxWait)||0,r):l,p="trailing"in i?!!i.trailing:p);function v(n){var o=a,m=u;return a=u=void 0,s=n,c=e.apply(m,o),c}function z(n){return s=n,t=setTimeout(b,r),S?v(n):c}function J(n){var o=n-f,m=n-s,k=r-o;return d?H(k,l-m):k}function x(n){var o=n-f,m=n-s;return f===void 0||o>=r||o<0||d&&m>=l}function b(){var n=y();if(x(n))return _(n);t=setTimeout(b,J(n))}function _(n){return t=void 0,p&&a?v(n):(a=u=void 0,c)}function K(){t!==void 0&&clearTimeout(t),s=0,a=f=u=t=void 0}function Q(){return t===void 0?c:_(y())}function T(){var n=y(),o=x(n);if(a=arguments,u=this,f=n,o){if(t===void 0)return z(f);if(d)return t=setTimeout(b,r),v(f)}return t===void 0&&(t=setTimeout(b,r)),c}return T.cancel=K,T.flush=Q,T}function j(e){var r=typeof e;return!!e&&(r=="object"||r=="function")}function U(e){return!!e&&typeof e=="object"}function X(e){return typeof e=="symbol"||U(e)&&F.call(e)==G}function I(e){if(typeof e=="number")return e;if(X(e))return O;if(j(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=j(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=e.replace(M,"");var i=C.test(e);return i||N.test(e)?R(e.slice(2),i?2:8):q.test(e)?O:+e}return h=D,h}exports.__require=V;
package/index.cjs198.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}exports.commonjsRequire=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};exports.commonjsGlobal=e;
package/index.cjs199.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs204.js"),b=r=>{const{offsetWidth:h,offsetHeight:t}=r;return{width:h,height:t}},x=r=>r,S=r=>{const h=Math.max(r.startIndex-r.overscan,0),t=Math.min(r.endIndex+r.overscan,r.count-1),s=[];for(let e=h;e<=t;e++)s.push(e);return s},w=(r,h)=>{const t=r.scrollElement;if(!t)return;const s=r.targetWindow;if(!s)return;const e=i=>{const{width:o,height:a}=i;h({width:Math.round(o),height:Math.round(a)})};if(e(b(t)),!s.ResizeObserver)return()=>{};const n=new s.ResizeObserver(i=>{const o=()=>{const a=i[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){e({width:c.inlineSize,height:c.blockSize});return}}e(b(t))};r.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return n.observe(t,{box:"border-box"}),()=>{n.unobserve(t)}},v={passive:!0},E=typeof window>"u"?!0:"onscrollend"in window,I=(r,h)=>{const t=r.scrollElement;if(!t)return;const s=r.targetWindow;if(!s)return;let e=0;const n=r.options.useScrollendEvent&&E?()=>{}:u.debounce(s,()=>{h(e,!1)},r.options.isScrollingResetDelay),i=l=>()=>{const{horizontal:f,isRtl:d}=r.options;e=f?t.scrollLeft*(d&&-1||1):t.scrollTop,n(),h(e,l)},o=i(!0),a=i(!1);a(),t.addEventListener("scroll",o,v);const c=r.options.useScrollendEvent&&E;return c&&t.addEventListener("scrollend",a,v),()=>{t.removeEventListener("scroll",o),c&&t.removeEventListener("scrollend",a)}},O=(r,h,t)=>{if(h!=null&&h.borderBoxSize){const s=h.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}return r[t.options.horizontal?"offsetWidth":"offsetHeight"]},C=(r,{adjustments:h=0,behavior:t},s)=>{var e,n;const i=r+h;(n=(e=s.scrollElement)==null?void 0:e.scrollTo)==null||n.call(e,{[s.options.horizontal?"left":"top"]:i,behavior:t})};class R{constructor(h){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(e=>{e.forEach(n=>{const i=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var e;(e=s())==null||e.disconnect(),t=null},observe:e=>{var n;return(n=s())==null?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return(n=s())==null?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([s,e])=>{typeof e>"u"&&delete t[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:x,rangeExtractor:S,onChange:()=>{},measureElement:O,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var s,e;(e=(s=this.options).onChange)==null||e.call(s,this,t)},this.maybeNotify=u.memo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=n,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,s)=>{const e=new Map,n=new Map;for(let i=s-1;i>=0;i--){const o=t[i];if(e.has(o.lane))continue;const a=n.get(o.lane);if(a==null||o.end>a.end?n.set(o.lane,o):o.end<a.end&&e.set(o.lane,!0),e.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((i,o)=>i.end===o.end?i.index-o.index:i.end-o.end)[0]:void 0},this.getMeasurementOptions=u.memo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,s,e,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:s,scrollMargin:e,getItemKey:n,enabled:i}),{key:!1}),this.getMeasurements=u.memo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:s,scrollMargin:e,getItemKey:n,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(l=>{this.itemSizeCache.set(l.key,l.size)}));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let l=a;l<t;l++){const f=n(l),d=this.options.lanes===1?c[l-1]:this.getFurthestMeasurement(c,l),g=d?d.end+this.options.gap:s+e,m=o.get(f),p=typeof m=="number"?m:this.options.estimateSize(l),M=g+p,z=d?d.lane:l%this.options.lanes;c[l]={index:l,start:g,size:p,end:M,key:f,lane:z}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=u.memo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,s,e,n)=>this.range=t.length>0&&s>0?_({measurements:t,outerSize:s,scrollOffset:e,lanes:n}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=u.memo(()=>{let t=null,s=null;const e=this.calculateRange();return e&&(t=e.startIndex,s=e.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,e,n,i)=>n===null||i===null?[]:t({startIndex:n,endIndex:i,overscan:s,count:e}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const s=this.options.indexAttribute,e=t.getAttribute(s);return e?parseInt(e,10):-1},this._measureElement=(t,s)=>{const e=this.indexFromElement(t),n=this.measurementsCache[e];if(!n)return;const i=n.key,o=this.elementsCache.get(i);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(i,t)),t.isConnected&&this.resizeItem(e,this.options.measureElement(t,s,this))},this.resizeItem=(t,s)=>{const e=this.measurementsCache[t];if(!e)return;const n=this.itemSizeCache.get(e.key)??e.size,i=s-n;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(e,i,this):e.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(e.index),this.itemSizeCache=new Map(this.itemSizeCache.set(e.key,s)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((s,e)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(e))});return}this._measureElement(t,void 0)},this.getVirtualItems=u.memo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,s)=>{const e=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],a=s[o];e.push(a)}return e},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const s=this.getMeasurements();if(s.length!==0)return u.notUndefined(s[y(0,s.length-1,e=>u.notUndefined(s[e]).start,t)])},this.getOffsetForAlignment=(t,s,e=0)=>{const n=this.getSize(),i=this.getScrollOffset();s==="auto"&&(s=t>=i+n?"end":"start"),s==="center"?t+=(e-n)/2:s==="end"&&(t-=n);const o=this.getTotalSize()+this.options.scrollMargin-n;return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const e=this.measurementsCache[t];if(!e)return;const n=this.getSize(),i=this.getScrollOffset();if(s==="auto")if(e.end>=i+n-this.options.scrollPaddingEnd)s="end";else if(e.start<=i+this.options.scrollPaddingStart)s="start";else return[i,s];const o=s==="end"?e.end+this.options.scrollPaddingEnd:e.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,s,e.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:s="start",behavior:e}={})=>{e==="smooth"&&this.isDynamicMode(),this._scrollToOffset(this.getOffsetForAlignment(t,s),{adjustments:void 0,behavior:e})},this.scrollToIndex=(t,{align:s="auto",behavior:e}={})=>{e==="smooth"&&this.isDynamicMode(),t=Math.max(0,Math.min(t,this.options.count-1));let n=0;const i=10,o=c=>{if(!this.targetWindow)return;const l=this.getOffsetForIndex(t,c);if(!l)return;const[f,d]=l;this._scrollToOffset(f,{adjustments:void 0,behavior:e}),this.targetWindow.requestAnimationFrame(()=>{const g=this.getScrollOffset(),m=this.getOffsetForIndex(t,d);m&&(u.approxEqual(m[0],g)||a(d))})},a=c=>{this.targetWindow&&(n++,n<i&&(process.env.NODE_ENV!=="production"&&this.options.debug,this.targetWindow.requestAnimationFrame(()=>o(c))))};o(s)},this.scrollBy=(t,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode(),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var t;const s=this.getMeasurements();let e;if(s.length===0)e=this.options.paddingStart;else if(this.options.lanes===1)e=((t=s[s.length-1])==null?void 0:t.end)??0;else{const n=Array(this.options.lanes).fill(null);let i=s.length-1;for(;i>=0&&n.some(o=>o===null);){const o=s[i];n[o.lane]===null&&(n[o.lane]=o.end),i--}e=Math.max(...n.filter(o=>o!==null))}return Math.max(e-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:s,behavior:e})=>{this.options.scrollToFn(t,{behavior:e,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(h)}}const y=(r,h,t,s)=>{for(;r<=h;){const e=(r+h)/2|0,n=t(e);if(n<s)r=e+1;else if(n>s)h=e-1;else return e}return r>0?r-1:0};function _({measurements:r,outerSize:h,scrollOffset:t,lanes:s}){const e=r.length-1,n=a=>r[a].start;if(r.length<=s)return{startIndex:0,endIndex:e};let i=y(0,e,n,t),o=i;if(s===1)for(;o<e&&r[o].end<t+h;)o++;else if(s>1){const a=Array(s).fill(0);for(;o<e&&a.some(l=>l<t+h);){const l=r[o];a[l.lane]=l.end,o++}const c=Array(s).fill(t+h);for(;i>=0&&c.some(l=>l>=t);){const l=r[i];c[l.lane]=l.start,i--}i=Math.max(0,i-i%s),o=Math.min(e,o+(s-1-o%s))}return{startIndex:i,endIndex:o}}exports.approxEqual=u.approxEqual;exports.debounce=u.debounce;exports.memo=u.memo;exports.notUndefined=u.notUndefined;exports.Virtualizer=R;exports.defaultKeyExtractor=x;exports.defaultRangeExtractor=S;exports.elementScroll=C;exports.measureElement=O;exports.observeElementOffset=I;exports.observeElementRect=w;