@okam/stack-ui 1.33.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/components/Button/interface.d.ts +3 -0
  2. package/index.d.ts +1 -0
  3. package/index101.js +1 -1
  4. package/index101.mjs +1 -1
  5. package/index102.js +1 -1
  6. package/index102.mjs +3 -3
  7. package/index103.js +1 -1
  8. package/index103.mjs +1 -1
  9. package/index108.js +1 -1
  10. package/index108.mjs +1 -1
  11. package/index110.js +1 -1
  12. package/index110.mjs +3 -3
  13. package/index111.js +1 -1
  14. package/index111.mjs +3 -3
  15. package/index112.js +1 -1
  16. package/index112.mjs +1 -1
  17. package/index113.js +1 -1
  18. package/index113.mjs +1 -1
  19. package/index114.js +1 -1
  20. package/index114.mjs +1 -1
  21. package/index116.js +1 -1
  22. package/index116.mjs +5 -5
  23. package/index117.js +1 -1
  24. package/index117.mjs +1 -1
  25. package/index119.js +1 -1
  26. package/index119.mjs +3 -3
  27. package/index120.js +1 -1
  28. package/index120.mjs +3 -3
  29. package/index121.js +1 -1
  30. package/index121.mjs +5 -5
  31. package/index122.js +1 -1
  32. package/index122.mjs +1 -1
  33. package/index123.js +1 -1
  34. package/index123.mjs +2 -2
  35. package/index124.js +1 -1
  36. package/index124.mjs +8 -8
  37. package/index125.js +1 -1
  38. package/index125.mjs +1 -1
  39. package/index126.js +1 -1
  40. package/index126.mjs +3 -3
  41. package/index127.js +1 -1
  42. package/index127.mjs +3 -3
  43. package/index131.js +1 -1
  44. package/index131.mjs +1 -1
  45. package/index134.js +1 -1
  46. package/index134.mjs +1 -1
  47. package/index139.js +1 -1
  48. package/index139.mjs +10 -46
  49. package/index140.js +1 -1
  50. package/index140.mjs +12 -241
  51. package/index141.js +1 -2
  52. package/index141.mjs +46 -13
  53. package/index142.js +1 -1
  54. package/index142.mjs +239 -28
  55. package/index143.js +2 -1
  56. package/index143.mjs +13 -52
  57. package/index144.js +1 -1
  58. package/index144.mjs +29 -11
  59. package/index145.js +1 -1
  60. package/index145.mjs +51 -9
  61. package/index146.js +1 -1
  62. package/index146.mjs +20 -21
  63. package/index147.js +1 -1
  64. package/index147.mjs +21 -38
  65. package/index148.js +1 -1
  66. package/index148.mjs +39 -25
  67. package/index149.js +1 -1
  68. package/index149.mjs +24 -254
  69. package/index150.js +1 -1
  70. package/index150.mjs +246 -97
  71. package/index151.js +1 -1
  72. package/index151.mjs +100 -327
  73. package/index152.js +1 -1
  74. package/index152.mjs +332 -23
  75. package/index153.js +1 -1
  76. package/index153.mjs +102 -109
  77. package/index154.js +1 -1
  78. package/index154.mjs +83 -107
  79. package/index155.js +1 -1
  80. package/index155.mjs +26 -83
  81. package/index156.js +1 -1
  82. package/index156.mjs +24 -26
  83. package/index157.js +1 -1
  84. package/index157.mjs +112 -19
  85. package/index159.js +1 -1
  86. package/index159.mjs +69 -23
  87. package/index160.js +1 -1
  88. package/index160.mjs +338 -62
  89. package/index161.js +1 -1
  90. package/index161.mjs +42 -346
  91. package/index162.js +1 -1
  92. package/index162.mjs +4 -46
  93. package/index163.js +1 -1
  94. package/index163.mjs +25 -4
  95. package/index164.js +1 -1
  96. package/index164.mjs +46 -23
  97. package/index165.js +1 -1
  98. package/index165.mjs +4 -46
  99. package/index166.js +1 -1
  100. package/index166.mjs +6 -6
  101. package/index167.js +1 -1
  102. package/index167.mjs +15 -6
  103. package/index168.js +1 -1
  104. package/index168.mjs +21 -14
  105. package/index169.js +1 -1
  106. package/index169.mjs +42 -21
  107. package/index170.js +1 -1
  108. package/index170.mjs +23 -41
  109. package/index171.js +1 -1
  110. package/index171.mjs +37 -24
  111. package/index172.js +1 -1
  112. package/index172.mjs +27 -36
  113. package/index173.js +1 -1
  114. package/index173.mjs +30 -27
  115. package/index174.js +1 -1
  116. package/index174.mjs +13 -30
  117. package/index175.js +1 -1
  118. package/index175.mjs +9 -14
  119. package/index176.js +1 -1
  120. package/index176.mjs +28 -9
  121. package/index177.js +1 -1
  122. package/index177.mjs +9 -28
  123. package/index178.js +1 -1
  124. package/index178.mjs +6 -9
  125. package/index179.js +1 -1
  126. package/index179.mjs +5 -6
  127. package/index180.js +1 -1
  128. package/index180.mjs +7 -5
  129. package/index181.js +1 -1
  130. package/index181.mjs +29 -7
  131. package/index182.js +1 -1
  132. package/index182.mjs +16 -27
  133. package/index183.js +1 -1
  134. package/index183.mjs +12 -17
  135. package/index184.js +1 -1
  136. package/index184.mjs +43 -13
  137. package/index185.js +1 -1
  138. package/index185.mjs +7 -42
  139. package/index186.js +1 -1
  140. package/index186.mjs +5 -8
  141. package/index187.js +1 -1
  142. package/index187.mjs +17 -5
  143. package/index188.js +1 -1
  144. package/index188.mjs +28 -14
  145. package/index189.js +1 -1
  146. package/index189.mjs +24 -28
  147. package/index191.js +1 -1
  148. package/index191.mjs +1 -1
  149. package/index192.js +1 -1
  150. package/index192.mjs +2 -2
  151. package/index194.js +1 -1
  152. package/index194.mjs +4 -4
  153. package/index195.js +1 -1
  154. package/index195.mjs +2 -2
  155. package/index197.js +1 -1
  156. package/index197.mjs +3 -3
  157. package/index198.js +1 -1
  158. package/index198.mjs +1 -1
  159. package/index2.js +1 -1
  160. package/index2.mjs +1 -0
  161. package/index200.js +1 -1
  162. package/index200.mjs +1 -1
  163. package/index202.js +1 -1
  164. package/index202.mjs +1 -1
  165. package/index203.js +1 -1
  166. package/index203.mjs +205 -197
  167. package/index204.js +1 -1
  168. package/index204.mjs +24 -64
  169. package/index205.js +1 -1
  170. package/index205.mjs +4 -143
  171. package/index206.js +1 -1
  172. package/index206.mjs +3 -124
  173. package/index207.js +1 -1
  174. package/index207.mjs +116 -215
  175. package/index208.js +1 -1
  176. package/index208.mjs +23 -184
  177. package/index209.js +1 -1
  178. package/index209.mjs +51 -69
  179. package/index210.js +1 -1
  180. package/index210.mjs +43 -278
  181. package/index211.js +1 -1
  182. package/index211.mjs +31 -92
  183. package/index212.js +1 -1
  184. package/index212.mjs +109 -184
  185. package/index213.js +1 -1
  186. package/index213.mjs +77 -84
  187. package/index214.js +1 -1
  188. package/index214.mjs +101 -58
  189. package/index215.js +1 -1
  190. package/index215.mjs +98 -127
  191. package/index216.js +1 -1
  192. package/index216.mjs +70 -114
  193. package/index217.js +1 -1
  194. package/index217.mjs +91 -118
  195. package/index218.js +1 -1
  196. package/index218.mjs +152 -69
  197. package/index219.js +1 -1
  198. package/index219.mjs +72 -111
  199. package/index220.js +1 -1
  200. package/index220.mjs +60 -51
  201. package/index221.js +1 -1
  202. package/index221.mjs +57 -91
  203. package/index222.js +1 -1
  204. package/index222.mjs +196 -63
  205. package/index223.js +1 -1
  206. package/index223.mjs +59 -51
  207. package/index224.js +1 -1
  208. package/index224.mjs +137 -93
  209. package/index225.js +1 -5
  210. package/index225.mjs +121 -77
  211. package/index226.js +1 -1
  212. package/index226.mjs +208 -2009
  213. package/index227.js +1 -1
  214. package/index227.mjs +188 -57
  215. package/index228.js +1 -1
  216. package/index228.mjs +67 -186
  217. package/index229.js +1 -1
  218. package/index229.mjs +271 -203
  219. package/index230.js +1 -1
  220. package/index230.mjs +98 -24
  221. package/index231.js +1 -1
  222. package/index231.mjs +188 -4
  223. package/index232.js +1 -1
  224. package/index232.mjs +84 -3
  225. package/index233.js +1 -1
  226. package/index233.mjs +56 -123
  227. package/index234.js +1 -1
  228. package/index234.mjs +125 -28
  229. package/index235.js +1 -1
  230. package/index235.mjs +113 -48
  231. package/index236.js +1 -1
  232. package/index236.mjs +119 -41
  233. package/index237.js +1 -1
  234. package/index237.mjs +71 -36
  235. package/index238.js +1 -1
  236. package/index238.mjs +105 -108
  237. package/index239.js +1 -1
  238. package/index239.mjs +52 -77
  239. package/index240.js +1 -1
  240. package/index240.mjs +93 -101
  241. package/index241.js +1 -1
  242. package/index241.mjs +71 -98
  243. package/index242.js +1 -1
  244. package/index242.mjs +54 -70
  245. package/index243.js +1 -1
  246. package/index243.mjs +96 -92
  247. package/index244.js +5 -1
  248. package/index244.mjs +76 -151
  249. package/index245.js +1 -1
  250. package/index245.mjs +2025 -71
  251. package/index246.js +1 -1
  252. package/index246.mjs +59 -61
  253. package/index247.js +1 -1
  254. package/index247.mjs +187 -58
  255. package/index27.js +1 -1
  256. package/index27.mjs +3 -3
  257. package/index286.js +1 -1
  258. package/index286.mjs +4 -130
  259. package/index287.js +1 -1
  260. package/index287.mjs +42 -184
  261. package/index288.js +1 -1
  262. package/index288.mjs +16 -10
  263. package/index289.js +1 -1
  264. package/index289.mjs +16 -4
  265. package/index290.js +1 -1
  266. package/index290.mjs +16 -37
  267. package/index291.js +1 -1
  268. package/index291.mjs +16 -6
  269. package/index292.js +1 -1
  270. package/index292.mjs +16 -30
  271. package/index293.js +1 -1
  272. package/index293.mjs +16 -7
  273. package/index294.js +1 -1
  274. package/index294.mjs +16 -5
  275. package/index295.js +1 -1
  276. package/index295.mjs +16 -49
  277. package/index296.js +1 -1
  278. package/index296.mjs +15 -15
  279. package/index297.js +1 -1
  280. package/index297.mjs +15 -15
  281. package/index298.js +1 -1
  282. package/index298.mjs +12 -12
  283. package/index299.js +1 -1
  284. package/index299.mjs +15 -15
  285. package/index300.js +1 -1
  286. package/index300.mjs +15 -15
  287. package/index301.js +1 -1
  288. package/index301.mjs +15 -15
  289. package/index302.js +1 -1
  290. package/index302.mjs +15 -15
  291. package/index303.js +1 -1
  292. package/index303.mjs +15 -15
  293. package/index304.js +1 -1
  294. package/index304.mjs +15 -15
  295. package/index305.js +1 -1
  296. package/index305.mjs +15 -15
  297. package/index306.js +1 -1
  298. package/index306.mjs +12 -12
  299. package/index307.js +1 -1
  300. package/index307.mjs +15 -15
  301. package/index308.js +1 -1
  302. package/index308.mjs +15 -15
  303. package/index309.js +1 -1
  304. package/index309.mjs +15 -15
  305. package/index310.js +1 -1
  306. package/index310.mjs +12 -12
  307. package/index311.js +1 -1
  308. package/index311.mjs +15 -15
  309. package/index312.js +1 -1
  310. package/index312.mjs +15 -15
  311. package/index313.js +1 -1
  312. package/index313.mjs +15 -15
  313. package/index314.js +1 -1
  314. package/index314.mjs +12 -12
  315. package/index315.js +1 -1
  316. package/index315.mjs +15 -15
  317. package/index316.js +1 -1
  318. package/index316.mjs +15 -15
  319. package/index317.js +1 -1
  320. package/index317.mjs +15 -15
  321. package/index318.js +1 -1
  322. package/index318.mjs +12 -12
  323. package/index319.js +1 -1
  324. package/index319.mjs +15 -15
  325. package/index320.js +1 -1
  326. package/index320.mjs +15 -15
  327. package/index321.js +1 -1
  328. package/index321.mjs +12 -12
  329. package/index322.js +1 -1
  330. package/index322.mjs +130 -15
  331. package/index323.js +1 -1
  332. package/index323.mjs +191 -16
  333. package/index324.js +1 -1
  334. package/index324.mjs +10 -16
  335. package/index325.js +1 -1
  336. package/index325.mjs +4 -16
  337. package/index326.js +1 -1
  338. package/index326.mjs +37 -16
  339. package/index327.js +1 -1
  340. package/index327.mjs +6 -16
  341. package/index328.js +1 -1
  342. package/index328.mjs +30 -16
  343. package/index329.js +1 -1
  344. package/index329.mjs +7 -16
  345. package/index330.js +1 -1
  346. package/index330.mjs +10 -139
  347. package/index331.js +1 -1
  348. package/index331.mjs +6 -197
  349. package/index332.js +1 -1
  350. package/index332.mjs +64 -18
  351. package/index333.js +1 -1
  352. package/index333.mjs +46 -44
  353. package/index334.js +1 -1
  354. package/index334.mjs +27 -45
  355. package/index335.js +1 -1
  356. package/index335.mjs +6 -100
  357. package/index336.js +1 -1
  358. package/index336.mjs +7 -72
  359. package/index337.js +1 -1
  360. package/index337.mjs +5 -58
  361. package/index338.js +1 -1
  362. package/index338.mjs +140 -7
  363. package/index339.js +1 -1
  364. package/index339.mjs +197 -11
  365. package/index340.js +1 -1
  366. package/index340.mjs +23 -7
  367. package/index341.js +1 -1
  368. package/index341.mjs +44 -66
  369. package/index342.js +1 -1
  370. package/index342.mjs +97 -27
  371. package/index343.js +1 -1
  372. package/index343.mjs +72 -7
  373. package/index344.js +1 -1
  374. package/index344.mjs +58 -6
  375. package/index345.js +1 -1
  376. package/index345.mjs +7 -20
  377. package/index346.js +1 -1
  378. package/index346.mjs +20 -5
  379. package/index383.js +1 -1
  380. package/index383.mjs +4 -5
  381. package/index384.js +1 -1
  382. package/index384.mjs +5 -5
  383. package/index385.js +1 -1
  384. package/index385.mjs +9 -5
  385. package/index386.js +1 -1
  386. package/index386.mjs +4 -4
  387. package/index387.js +1 -1
  388. package/index387.mjs +4 -4
  389. package/index388.js +1 -1
  390. package/index388.mjs +4 -4
  391. package/index389.js +1 -1
  392. package/index389.mjs +4 -4
  393. package/index390.js +1 -1
  394. package/index390.mjs +4 -4
  395. package/index391.js +1 -1
  396. package/index391.mjs +4 -4
  397. package/index392.js +1 -1
  398. package/index392.mjs +4 -4
  399. package/index393.js +1 -1
  400. package/index393.mjs +4 -4
  401. package/index394.js +1 -1
  402. package/index394.mjs +4 -4
  403. package/index395.js +1 -1
  404. package/index395.mjs +4 -4
  405. package/index396.js +1 -1
  406. package/index396.mjs +4 -4
  407. package/index397.js +1 -1
  408. package/index397.mjs +4 -4
  409. package/index398.js +1 -1
  410. package/index398.mjs +4 -4
  411. package/index399.js +1 -1
  412. package/index399.mjs +1 -1
  413. package/index400.js +1 -1
  414. package/index400.mjs +1 -1
  415. package/index401.js +1 -1
  416. package/index401.mjs +4 -4
  417. package/index402.js +1 -1
  418. package/index402.mjs +1 -1
  419. package/index403.js +1 -1
  420. package/index403.mjs +4 -4
  421. package/index404.js +1 -1
  422. package/index404.mjs +1 -1
  423. package/index405.js +1 -1
  424. package/index405.mjs +4 -4
  425. package/index406.js +1 -1
  426. package/index406.mjs +4 -4
  427. package/index407.js +1 -1
  428. package/index407.mjs +1 -1
  429. package/index408.js +1 -1
  430. package/index408.mjs +4 -4
  431. package/index409.js +1 -1
  432. package/index409.mjs +1 -1
  433. package/index410.js +1 -1
  434. package/index410.mjs +4 -4
  435. package/index411.js +1 -1
  436. package/index411.mjs +4 -4
  437. package/index412.js +1 -1
  438. package/index412.mjs +1 -1
  439. package/index413.js +1 -1
  440. package/index413.mjs +4 -4
  441. package/index414.js +1 -1
  442. package/index414.mjs +4 -4
  443. package/index415.js +1 -1
  444. package/index415.mjs +4 -4
  445. package/index416.js +1 -1
  446. package/index416.mjs +4 -4
  447. package/index417.js +1 -1
  448. package/index417.mjs +5 -4
  449. package/index418.js +1 -1
  450. package/index418.mjs +5 -5
  451. package/index419.js +1 -1
  452. package/index419.mjs +5 -9
  453. package/index8.js +1 -1
  454. package/index8.mjs +8 -8
  455. package/index99.js +1 -1
  456. package/index99.mjs +1 -1
  457. package/package.json +1 -1
  458. package/providers/SidePanel/interface.d.ts +17 -5
  459. package/types/next-link.d.ts +2 -1
package/index231.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index294.js");function _(e,t,i){r._(e,t),t.set(e,i)}exports._=_;
1
+ "use strict";const F=require("./index322.js"),y=require("./index325.js"),a=require("./index323.js");function K(P){let{swiper:i,extendParams:N,on:o}=P;N({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),i.a11y={clicked:!1};let r=null,p,u,L=new Date().getTime();function f(e){const t=r;t.length!==0&&(t.innerHTML="",t.innerHTML=e)}function B(e){const t=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(e).replace(/x/g,t)}function g(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","0")})}function M(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","-1")})}function m(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("role",t)})}function x(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-roledescription",t)})}function q(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-controls",t)})}function E(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-label",t)})}function O(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("id",t)})}function H(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-live",t)})}function w(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!0)})}function A(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!1)})}function d(e){if(e.keyCode!==13&&e.keyCode!==32)return;const t=i.params.a11y,n=e.target;if(!(i.pagination&&i.pagination.el&&(n===i.pagination.el||i.pagination.el.contains(e.target))&&!e.target.matches(y.c(i.params.pagination.bulletClass)))){if(i.navigation&&i.navigation.prevEl&&i.navigation.nextEl){const s=a.m(i.navigation.prevEl);a.m(i.navigation.nextEl).includes(n)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?f(t.lastSlideMessage):f(t.nextSlideMessage)),s.includes(n)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?f(t.firstSlideMessage):f(t.prevSlideMessage))}i.pagination&&n.matches(y.c(i.params.pagination.bulletClass))&&n.click()}}function G(){if(i.params.loop||i.params.rewind||!i.navigation)return;const{nextEl:e,prevEl:t}=i.navigation;t&&(i.isBeginning?(w(t),M(t)):(A(t),g(t))),e&&(i.isEnd?(w(e),M(e)):(A(e),g(e)))}function k(){return i.pagination&&i.pagination.bullets&&i.pagination.bullets.length}function C(){return k()&&i.params.pagination.clickable}function U(){const e=i.params.a11y;k()&&i.pagination.bullets.forEach(t=>{i.params.pagination.clickable&&(g(t),i.params.pagination.renderBullet||(m(t,"button"),E(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.h(t)+1)))),t.matches(y.c(i.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}const S=(e,t,n)=>{g(e),e.tagName!=="BUTTON"&&(m(e,"button"),e.addEventListener("keydown",d)),E(e,n),q(e,t)},R=e=>{u&&u!==e.target&&!u.contains(e.target)&&(p=!0),i.a11y.clicked=!0},T=()=>{p=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.destroyed||(i.a11y.clicked=!1)})})},D=e=>{L=new Date().getTime()},h=e=>{if(i.a11y.clicked||!i.params.a11y.scrollOnFocus||new Date().getTime()-L<100)return;const t=e.target.closest(`.${i.params.slideClass}, swiper-slide`);if(!t||!i.slides.includes(t))return;u=t;const n=i.slides.indexOf(t)===i.activeIndex,s=i.params.watchSlidesProgress&&i.visibleSlides&&i.visibleSlides.includes(t);n||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(i.isHorizontal()?i.el.scrollLeft=0:i.el.scrollTop=0,requestAnimationFrame(()=>{p||(i.params.loop?i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")),0):i.slideTo(i.slides.indexOf(t),0),p=!1)}))},I=()=>{const e=i.params.a11y;e.itemRoleDescriptionMessage&&x(i.slides,e.itemRoleDescriptionMessage),e.slideRole&&m(i.slides,e.slideRole);const t=i.slides.length;e.slideLabelMessage&&i.slides.forEach((n,s)=>{const l=i.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):s,c=e.slideLabelMessage.replace(/\{\{index\}\}/,l+1).replace(/\{\{slidesLength\}\}/,t);E(n,c)})},V=()=>{const e=i.params.a11y;i.el.append(r);const t=i.el;e.containerRoleDescriptionMessage&&x(t,e.containerRoleDescriptionMessage),e.containerMessage&&E(t,e.containerMessage),e.containerRole&&m(t,e.containerRole);const n=i.wrapperEl,s=e.id||n.getAttribute("id")||`swiper-wrapper-${B(16)}`,l=i.params.autoplay&&i.params.autoplay.enabled?"off":"polite";O(n,s),H(n,l),I();let{nextEl:c,prevEl:v}=i.navigation?i.navigation:{};c=a.m(c),v=a.m(v),c&&c.forEach(b=>S(b,s,e.nextSlideMessage)),v&&v.forEach(b=>S(b,s,e.prevSlideMessage)),C()&&a.m(i.pagination.el).forEach(z=>{z.addEventListener("keydown",d)}),F.g().addEventListener("visibilitychange",D),i.el.addEventListener("focus",h,!0),i.el.addEventListener("focus",h,!0),i.el.addEventListener("pointerdown",R,!0),i.el.addEventListener("pointerup",T,!0)};function $(){r&&r.remove();let{nextEl:e,prevEl:t}=i.navigation?i.navigation:{};e=a.m(e),t=a.m(t),e&&e.forEach(s=>s.removeEventListener("keydown",d)),t&&t.forEach(s=>s.removeEventListener("keydown",d)),C()&&a.m(i.pagination.el).forEach(l=>{l.removeEventListener("keydown",d)}),F.g().removeEventListener("visibilitychange",D),i.el&&typeof i.el!="string"&&(i.el.removeEventListener("focus",h,!0),i.el.removeEventListener("pointerdown",R,!0),i.el.removeEventListener("pointerup",T,!0))}o("beforeInit",()=>{r=a.c("span",i.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),o("afterInit",()=>{i.params.a11y.enabled&&V()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{i.params.a11y.enabled&&I()}),o("fromEdge toEdge afterInit lock unlock",()=>{i.params.a11y.enabled&&G()}),o("paginationUpdate",()=>{i.params.a11y.enabled&&U()}),o("destroy",()=>{i.params.a11y.enabled&&$()})}module.exports=K;
package/index231.mjs CHANGED
@@ -1,7 +1,191 @@
1
- import { _ as t } from "./index294.mjs";
2
- function a(_, e, i) {
3
- t(_, e), e.set(_, i);
1
+ import { g as F } from "./index322.mjs";
2
+ import { c as y } from "./index325.mjs";
3
+ import { c as K, h as j, m as n } from "./index323.mjs";
4
+ function Y(P) {
5
+ let {
6
+ swiper: i,
7
+ extendParams: N,
8
+ on: o
9
+ } = P;
10
+ N({
11
+ a11y: {
12
+ enabled: !0,
13
+ notificationClass: "swiper-notification",
14
+ prevSlideMessage: "Previous slide",
15
+ nextSlideMessage: "Next slide",
16
+ firstSlideMessage: "This is the first slide",
17
+ lastSlideMessage: "This is the last slide",
18
+ paginationBulletMessage: "Go to slide {{index}}",
19
+ slideLabelMessage: "{{index}} / {{slidesLength}}",
20
+ containerMessage: null,
21
+ containerRoleDescriptionMessage: null,
22
+ containerRole: null,
23
+ itemRoleDescriptionMessage: null,
24
+ slideRole: "group",
25
+ id: null,
26
+ scrollOnFocus: !0
27
+ }
28
+ }), i.a11y = {
29
+ clicked: !1
30
+ };
31
+ let r = null, p, f, L = (/* @__PURE__ */ new Date()).getTime();
32
+ function u(e) {
33
+ const t = r;
34
+ t.length !== 0 && (t.innerHTML = "", t.innerHTML = e);
35
+ }
36
+ function B(e) {
37
+ const t = () => Math.round(16 * Math.random()).toString(16);
38
+ return "x".repeat(e).replace(/x/g, t);
39
+ }
40
+ function g(e) {
41
+ e = n(e), e.forEach((t) => {
42
+ t.setAttribute("tabIndex", "0");
43
+ });
44
+ }
45
+ function x(e) {
46
+ e = n(e), e.forEach((t) => {
47
+ t.setAttribute("tabIndex", "-1");
48
+ });
49
+ }
50
+ function m(e, t) {
51
+ e = n(e), e.forEach((a) => {
52
+ a.setAttribute("role", t);
53
+ });
54
+ }
55
+ function M(e, t) {
56
+ e = n(e), e.forEach((a) => {
57
+ a.setAttribute("aria-roledescription", t);
58
+ });
59
+ }
60
+ function O(e, t) {
61
+ e = n(e), e.forEach((a) => {
62
+ a.setAttribute("aria-controls", t);
63
+ });
64
+ }
65
+ function E(e, t) {
66
+ e = n(e), e.forEach((a) => {
67
+ a.setAttribute("aria-label", t);
68
+ });
69
+ }
70
+ function H(e, t) {
71
+ e = n(e), e.forEach((a) => {
72
+ a.setAttribute("id", t);
73
+ });
74
+ }
75
+ function q(e, t) {
76
+ e = n(e), e.forEach((a) => {
77
+ a.setAttribute("aria-live", t);
78
+ });
79
+ }
80
+ function A(e) {
81
+ e = n(e), e.forEach((t) => {
82
+ t.setAttribute("aria-disabled", !0);
83
+ });
84
+ }
85
+ function w(e) {
86
+ e = n(e), e.forEach((t) => {
87
+ t.setAttribute("aria-disabled", !1);
88
+ });
89
+ }
90
+ function d(e) {
91
+ if (e.keyCode !== 13 && e.keyCode !== 32) return;
92
+ const t = i.params.a11y, a = e.target;
93
+ if (!(i.pagination && i.pagination.el && (a === i.pagination.el || i.pagination.el.contains(e.target)) && !e.target.matches(y(i.params.pagination.bulletClass)))) {
94
+ if (i.navigation && i.navigation.prevEl && i.navigation.nextEl) {
95
+ const s = n(i.navigation.prevEl);
96
+ n(i.navigation.nextEl).includes(a) && (i.isEnd && !i.params.loop || i.slideNext(), i.isEnd ? u(t.lastSlideMessage) : u(t.nextSlideMessage)), s.includes(a) && (i.isBeginning && !i.params.loop || i.slidePrev(), i.isBeginning ? u(t.firstSlideMessage) : u(t.prevSlideMessage));
97
+ }
98
+ i.pagination && a.matches(y(i.params.pagination.bulletClass)) && a.click();
99
+ }
100
+ }
101
+ function G() {
102
+ if (i.params.loop || i.params.rewind || !i.navigation) return;
103
+ const {
104
+ nextEl: e,
105
+ prevEl: t
106
+ } = i.navigation;
107
+ t && (i.isBeginning ? (A(t), x(t)) : (w(t), g(t))), e && (i.isEnd ? (A(e), x(e)) : (w(e), g(e)));
108
+ }
109
+ function k() {
110
+ return i.pagination && i.pagination.bullets && i.pagination.bullets.length;
111
+ }
112
+ function C() {
113
+ return k() && i.params.pagination.clickable;
114
+ }
115
+ function U() {
116
+ const e = i.params.a11y;
117
+ k() && i.pagination.bullets.forEach((t) => {
118
+ i.params.pagination.clickable && (g(t), i.params.pagination.renderBullet || (m(t, "button"), E(t, e.paginationBulletMessage.replace(/\{\{index\}\}/, j(t) + 1)))), t.matches(y(i.params.pagination.bulletActiveClass)) ? t.setAttribute("aria-current", "true") : t.removeAttribute("aria-current");
119
+ });
120
+ }
121
+ const S = (e, t, a) => {
122
+ g(e), e.tagName !== "BUTTON" && (m(e, "button"), e.addEventListener("keydown", d)), E(e, a), O(e, t);
123
+ }, R = (e) => {
124
+ f && f !== e.target && !f.contains(e.target) && (p = !0), i.a11y.clicked = !0;
125
+ }, T = () => {
126
+ p = !1, requestAnimationFrame(() => {
127
+ requestAnimationFrame(() => {
128
+ i.destroyed || (i.a11y.clicked = !1);
129
+ });
130
+ });
131
+ }, D = (e) => {
132
+ L = (/* @__PURE__ */ new Date()).getTime();
133
+ }, h = (e) => {
134
+ if (i.a11y.clicked || !i.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - L < 100) return;
135
+ const t = e.target.closest(`.${i.params.slideClass}, swiper-slide`);
136
+ if (!t || !i.slides.includes(t)) return;
137
+ f = t;
138
+ const a = i.slides.indexOf(t) === i.activeIndex, s = i.params.watchSlidesProgress && i.visibleSlides && i.visibleSlides.includes(t);
139
+ a || s || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (i.isHorizontal() ? i.el.scrollLeft = 0 : i.el.scrollTop = 0, requestAnimationFrame(() => {
140
+ p || (i.params.loop ? i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")), 0) : i.slideTo(i.slides.indexOf(t), 0), p = !1);
141
+ }));
142
+ }, I = () => {
143
+ const e = i.params.a11y;
144
+ e.itemRoleDescriptionMessage && M(i.slides, e.itemRoleDescriptionMessage), e.slideRole && m(i.slides, e.slideRole);
145
+ const t = i.slides.length;
146
+ e.slideLabelMessage && i.slides.forEach((a, s) => {
147
+ const l = i.params.loop ? parseInt(a.getAttribute("data-swiper-slide-index"), 10) : s, c = e.slideLabelMessage.replace(/\{\{index\}\}/, l + 1).replace(/\{\{slidesLength\}\}/, t);
148
+ E(a, c);
149
+ });
150
+ }, V = () => {
151
+ const e = i.params.a11y;
152
+ i.el.append(r);
153
+ const t = i.el;
154
+ e.containerRoleDescriptionMessage && M(t, e.containerRoleDescriptionMessage), e.containerMessage && E(t, e.containerMessage), e.containerRole && m(t, e.containerRole);
155
+ const a = i.wrapperEl, s = e.id || a.getAttribute("id") || `swiper-wrapper-${B(16)}`, l = i.params.autoplay && i.params.autoplay.enabled ? "off" : "polite";
156
+ H(a, s), q(a, l), I();
157
+ let {
158
+ nextEl: c,
159
+ prevEl: v
160
+ } = i.navigation ? i.navigation : {};
161
+ c = n(c), v = n(v), c && c.forEach((b) => S(b, s, e.nextSlideMessage)), v && v.forEach((b) => S(b, s, e.prevSlideMessage)), C() && n(i.pagination.el).forEach((z) => {
162
+ z.addEventListener("keydown", d);
163
+ }), F().addEventListener("visibilitychange", D), i.el.addEventListener("focus", h, !0), i.el.addEventListener("focus", h, !0), i.el.addEventListener("pointerdown", R, !0), i.el.addEventListener("pointerup", T, !0);
164
+ };
165
+ function $() {
166
+ r && r.remove();
167
+ let {
168
+ nextEl: e,
169
+ prevEl: t
170
+ } = i.navigation ? i.navigation : {};
171
+ e = n(e), t = n(t), e && e.forEach((s) => s.removeEventListener("keydown", d)), t && t.forEach((s) => s.removeEventListener("keydown", d)), C() && n(i.pagination.el).forEach((l) => {
172
+ l.removeEventListener("keydown", d);
173
+ }), F().removeEventListener("visibilitychange", D), i.el && typeof i.el != "string" && (i.el.removeEventListener("focus", h, !0), i.el.removeEventListener("pointerdown", R, !0), i.el.removeEventListener("pointerup", T, !0));
174
+ }
175
+ o("beforeInit", () => {
176
+ r = K("span", i.params.a11y.notificationClass), r.setAttribute("aria-live", "assertive"), r.setAttribute("aria-atomic", "true");
177
+ }), o("afterInit", () => {
178
+ i.params.a11y.enabled && V();
179
+ }), o("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
180
+ i.params.a11y.enabled && I();
181
+ }), o("fromEdge toEdge afterInit lock unlock", () => {
182
+ i.params.a11y.enabled && G();
183
+ }), o("paginationUpdate", () => {
184
+ i.params.a11y.enabled && U();
185
+ }), o("destroy", () => {
186
+ i.params.a11y.enabled && $();
187
+ });
4
188
  }
5
189
  export {
6
- a as _
190
+ Y as default
7
191
  };
package/index232.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e,t){return e-t*Math.floor(e/t)}exports.mod=o;
1
+ "use strict";const h=require("./index322.js");function $(w){let{swiper:e,extendParams:S,on:c}=w;S({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let d=!1,l={};const y=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),f=t=>{const o=h.a();let r;t?r=new URL(t):r=o.location;const a=r.pathname.slice(1).split("/").filter(i=>i!==""),n=a.length,s=a[n-2],p=a[n-1];return{key:s,value:p}},m=(t,o)=>{const r=h.a();if(!d||!e.params.history.enabled)return;let a;e.params.url?a=new URL(e.params.url):a=r.location;const n=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${o}"]`):e.slides[o];let s=y(n.getAttribute("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;i[i.length-1]==="/"&&(i=i.slice(0,i.length-1)),s=`${i}/${t?`${t}/`:""}${s}`}else a.pathname.includes(t)||(s=`${t?`${t}/`:""}${s}`);e.params.history.keepQuery&&(s+=a.search);const p=r.history.state;p&&p.value===s||(e.params.history.replaceState?r.history.replaceState({value:s},null,s):r.history.pushState({value:s},null,s))},g=(t,o,r)=>{if(o)for(let a=0,n=e.slides.length;a<n;a+=1){const s=e.slides[a];if(y(s.getAttribute("data-history"))===o){const i=e.getSlideIndex(s);e.slideTo(i,t,r)}}else e.slideTo(0,t,r)},u=()=>{l=f(e.params.url),g(e.params.speed,l.value,!1)},v=()=>{const t=h.a();if(e.params.history){if(!t.history||!t.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(d=!0,l=f(e.params.url),!l.key&&!l.value){e.params.history.replaceState||t.addEventListener("popstate",u);return}g(0,l.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",u)}},b=()=>{const t=h.a();e.params.history.replaceState||t.removeEventListener("popstate",u)};c("init",()=>{e.params.history.enabled&&v()}),c("destroy",()=>{e.params.history.enabled&&b()}),c("transitionEnd _freeModeNoMomentumRelease",()=>{d&&m(e.params.history.key,e.activeIndex)}),c("slideChange",()=>{d&&e.params.cssMode&&m(e.params.history.key,e.activeIndex)})}module.exports=$;
package/index232.mjs CHANGED
@@ -1,6 +1,87 @@
1
- function d(f, a) {
2
- return f - a * Math.floor(f / a);
1
+ import { a as h } from "./index322.mjs";
2
+ function x(w) {
3
+ let {
4
+ swiper: e,
5
+ extendParams: S,
6
+ on: c
7
+ } = w;
8
+ S({
9
+ history: {
10
+ enabled: !1,
11
+ root: "",
12
+ replaceState: !1,
13
+ key: "slides",
14
+ keepQuery: !1
15
+ }
16
+ });
17
+ let d = !1, l = {};
18
+ const y = (t) => t.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), f = (t) => {
19
+ const o = h();
20
+ let r;
21
+ t ? r = new URL(t) : r = o.location;
22
+ const a = r.pathname.slice(1).split("/").filter((i) => i !== ""), n = a.length, s = a[n - 2], p = a[n - 1];
23
+ return {
24
+ key: s,
25
+ value: p
26
+ };
27
+ }, m = (t, o) => {
28
+ const r = h();
29
+ if (!d || !e.params.history.enabled) return;
30
+ let a;
31
+ e.params.url ? a = new URL(e.params.url) : a = r.location;
32
+ const n = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${o}"]`) : e.slides[o];
33
+ let s = y(n.getAttribute("data-history"));
34
+ if (e.params.history.root.length > 0) {
35
+ let i = e.params.history.root;
36
+ i[i.length - 1] === "/" && (i = i.slice(0, i.length - 1)), s = `${i}/${t ? `${t}/` : ""}${s}`;
37
+ } else a.pathname.includes(t) || (s = `${t ? `${t}/` : ""}${s}`);
38
+ e.params.history.keepQuery && (s += a.search);
39
+ const p = r.history.state;
40
+ p && p.value === s || (e.params.history.replaceState ? r.history.replaceState({
41
+ value: s
42
+ }, null, s) : r.history.pushState({
43
+ value: s
44
+ }, null, s));
45
+ }, g = (t, o, r) => {
46
+ if (o)
47
+ for (let a = 0, n = e.slides.length; a < n; a += 1) {
48
+ const s = e.slides[a];
49
+ if (y(s.getAttribute("data-history")) === o) {
50
+ const i = e.getSlideIndex(s);
51
+ e.slideTo(i, t, r);
52
+ }
53
+ }
54
+ else
55
+ e.slideTo(0, t, r);
56
+ }, u = () => {
57
+ l = f(e.params.url), g(e.params.speed, l.value, !1);
58
+ }, v = () => {
59
+ const t = h();
60
+ if (e.params.history) {
61
+ if (!t.history || !t.history.pushState) {
62
+ e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
63
+ return;
64
+ }
65
+ if (d = !0, l = f(e.params.url), !l.key && !l.value) {
66
+ e.params.history.replaceState || t.addEventListener("popstate", u);
67
+ return;
68
+ }
69
+ g(0, l.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", u);
70
+ }
71
+ }, b = () => {
72
+ const t = h();
73
+ e.params.history.replaceState || t.removeEventListener("popstate", u);
74
+ };
75
+ c("init", () => {
76
+ e.params.history.enabled && v();
77
+ }), c("destroy", () => {
78
+ e.params.history.enabled && b();
79
+ }), c("transitionEnd _freeModeNoMomentumRelease", () => {
80
+ d && m(e.params.history.key, e.activeIndex);
81
+ }), c("slideChange", () => {
82
+ d && e.params.cssMode && m(e.params.history.key, e.activeIndex);
83
+ });
3
84
  }
4
85
  export {
5
- d as mod
86
+ x as default
6
87
  };
package/index233.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index194.js"),D=require("./index202.js"),u=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],c=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],f=[1867,1911,1925,1988,2018],i=["meiji","taisho","showa","heisei","reiwa"];function h(e){const r=u.findIndex(([n,a,t])=>e.year<n||e.year===n&&e.month<a||e.year===n&&e.month===a&&e.day<t);return r===-1?u.length-1:r===0?0:r-1}function l(e){let r=f[i.indexOf(e.era)];if(!r)throw new Error("Unknown era: "+e.era);return new y.CalendarDate(e.year+r,e.month,e.day)}class M extends D.GregorianCalendar{fromJulianDay(r){let n=super.fromJulianDay(r),a=h(n);return new y.CalendarDate(this,i[a],n.year-f[a],n.month,n.day)}toJulianDay(r){return super.toJulianDay(l(r))}balanceDate(r){let n=l(r),a=h(n);i[a]!==r.era&&(r.era=i[a],r.year=n.year-f[a]),this.constrainDate(r)}constrainDate(r){let n=i.indexOf(r.era),a=c[n];if(a!=null){let[t,o,$]=a,s=t-f[n];r.year=Math.max(1,Math.min(s,r.year)),r.year===s&&(r.month=Math.min(o,r.month),r.month===o&&(r.day=Math.min($,r.day)))}if(r.year===1&&n>=0){let[,t,o]=u[n];r.month=Math.max(t,r.month),r.month===t&&(r.day=Math.max(o,r.day))}}getEras(){return i}getYearsInEra(r){let n=i.indexOf(r.era),a=u[n],t=u[n+1];if(t==null)return 9999-a[0]+1;let o=t[0]-a[0];return(r.month<t[1]||r.month===t[1]&&r.day<t[2])&&o++,o}getDaysInMonth(r){return super.getDaysInMonth(l(r))}getMinimumMonthInYear(r){let n=m(r);return n?n[1]:1}getMinimumDayInMonth(r){let n=m(r);return n&&r.month===n[1]?n[2]:1}constructor(...r){super(...r),this.identifier="japanese"}}function m(e){if(e.year===1){let r=i.indexOf(e.era);return u[r]}}exports.JapaneseCalendar=M;
1
+ "use strict";const p=require("./index322.js"),S=require("./index323.js");function x(u){let{swiper:e,extendParams:v,emit:l,on:n}=u,r=!1;const h=p.g(),i=p.a();v({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(a,t){if(e.virtual&&e.params.virtual.enabled){const s=e.slides.filter(f=>f.getAttribute("data-hash")===t)[0];return s?parseInt(s.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(S.e(e.slidesEl,`.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0])}}});const o=()=>{l("hashChange");const a=h.location.hash.replace("#",""),t=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],s=t?t.getAttribute("data-hash"):"";if(a!==s){const d=e.params.hashNavigation.getSlideIndex(e,a);if(typeof d>"u"||Number.isNaN(d))return;e.slideTo(d)}},c=()=>{if(!r||!e.params.hashNavigation.enabled)return;const a=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],t=a?a.getAttribute("data-hash")||a.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&i.history&&i.history.replaceState?(i.history.replaceState(null,null,`#${t}`||""),l("hashSet")):(h.location.hash=t||"",l("hashSet"))},g=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;r=!0;const a=h.location.hash.replace("#","");if(a){const s=e.params.hashNavigation.getSlideIndex(e,a);e.slideTo(s||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&i.addEventListener("hashchange",o)},m=()=>{e.params.hashNavigation.watchState&&i.removeEventListener("hashchange",o)};n("init",()=>{e.params.hashNavigation.enabled&&g()}),n("destroy",()=>{e.params.hashNavigation.enabled&&m()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{r&&c()}),n("slideChange",()=>{r&&e.params.cssMode&&c()})}module.exports=x;
package/index233.mjs CHANGED
@@ -1,128 +1,61 @@
1
- import { CalendarDate as $ } from "./index194.mjs";
2
- import { GregorianCalendar as c } from "./index202.mjs";
3
- const f = [
4
- [
5
- 1868,
6
- 9,
7
- 8
8
- ],
9
- [
10
- 1912,
11
- 7,
12
- 30
13
- ],
14
- [
15
- 1926,
16
- 12,
17
- 25
18
- ],
19
- [
20
- 1989,
21
- 1,
22
- 8
23
- ],
24
- [
25
- 2019,
26
- 5,
27
- 1
28
- ]
29
- ], D = [
30
- [
31
- 1912,
32
- 7,
33
- 29
34
- ],
35
- [
36
- 1926,
37
- 12,
38
- 24
39
- ],
40
- [
41
- 1989,
42
- 1,
43
- 7
44
- ],
45
- [
46
- 2019,
47
- 4,
48
- 30
49
- ]
50
- ], u = [
51
- 1867,
52
- 1911,
53
- 1925,
54
- 1988,
55
- 2018
56
- ], i = [
57
- "meiji",
58
- "taisho",
59
- "showa",
60
- "heisei",
61
- "reiwa"
62
- ];
63
- function h(e) {
64
- const r = f.findIndex(([n, a, t]) => e.year < n || e.year === n && e.month < a || e.year === n && e.month === a && e.day < t);
65
- return r === -1 ? f.length - 1 : r === 0 ? 0 : r - 1;
66
- }
67
- function s(e) {
68
- let r = u[i.indexOf(e.era)];
69
- if (!r) throw new Error("Unknown era: " + e.era);
70
- return new $(e.year + r, e.month, e.day);
71
- }
72
- class g extends c {
73
- fromJulianDay(r) {
74
- let n = super.fromJulianDay(r), a = h(n);
75
- return new $(this, i[a], n.year - u[a], n.month, n.day);
76
- }
77
- toJulianDay(r) {
78
- return super.toJulianDay(s(r));
79
- }
80
- balanceDate(r) {
81
- let n = s(r), a = h(n);
82
- i[a] !== r.era && (r.era = i[a], r.year = n.year - u[a]), this.constrainDate(r);
83
- }
84
- constrainDate(r) {
85
- let n = i.indexOf(r.era), a = D[n];
86
- if (a != null) {
87
- let [t, o, y] = a, m = t - u[n];
88
- r.year = Math.max(1, Math.min(m, r.year)), r.year === m && (r.month = Math.min(o, r.month), r.month === o && (r.day = Math.min(y, r.day)));
1
+ import { g as f, a as S } from "./index322.mjs";
2
+ import { e as x } from "./index323.mjs";
3
+ function w(p) {
4
+ let {
5
+ swiper: e,
6
+ extendParams: u,
7
+ emit: l,
8
+ on: n
9
+ } = p, r = !1;
10
+ const h = f(), s = S();
11
+ u({
12
+ hashNavigation: {
13
+ enabled: !1,
14
+ replaceState: !1,
15
+ watchState: !1,
16
+ getSlideIndex(a, t) {
17
+ if (e.virtual && e.params.virtual.enabled) {
18
+ const i = e.slides.filter((v) => v.getAttribute("data-hash") === t)[0];
19
+ return i ? parseInt(i.getAttribute("data-swiper-slide-index"), 10) : 0;
20
+ }
21
+ return e.getSlideIndex(x(e.slidesEl, `.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0]);
22
+ }
89
23
  }
90
- if (r.year === 1 && n >= 0) {
91
- let [, t, o] = f[n];
92
- r.month = Math.max(t, r.month), r.month === t && (r.day = Math.max(o, r.day));
24
+ });
25
+ const o = () => {
26
+ l("hashChange");
27
+ const a = h.location.hash.replace("#", ""), t = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], i = t ? t.getAttribute("data-hash") : "";
28
+ if (a !== i) {
29
+ const d = e.params.hashNavigation.getSlideIndex(e, a);
30
+ if (typeof d > "u" || Number.isNaN(d)) return;
31
+ e.slideTo(d);
93
32
  }
94
- }
95
- getEras() {
96
- return i;
97
- }
98
- getYearsInEra(r) {
99
- let n = i.indexOf(r.era), a = f[n], t = f[n + 1];
100
- if (t == null)
101
- return 9999 - a[0] + 1;
102
- let o = t[0] - a[0];
103
- return (r.month < t[1] || r.month === t[1] && r.day < t[2]) && o++, o;
104
- }
105
- getDaysInMonth(r) {
106
- return super.getDaysInMonth(s(r));
107
- }
108
- getMinimumMonthInYear(r) {
109
- let n = l(r);
110
- return n ? n[1] : 1;
111
- }
112
- getMinimumDayInMonth(r) {
113
- let n = l(r);
114
- return n && r.month === n[1] ? n[2] : 1;
115
- }
116
- constructor(...r) {
117
- super(...r), this.identifier = "japanese";
118
- }
119
- }
120
- function l(e) {
121
- if (e.year === 1) {
122
- let r = i.indexOf(e.era);
123
- return f[r];
124
- }
33
+ }, c = () => {
34
+ if (!r || !e.params.hashNavigation.enabled) return;
35
+ const a = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], t = a ? a.getAttribute("data-hash") || a.getAttribute("data-history") : "";
36
+ e.params.hashNavigation.replaceState && s.history && s.history.replaceState ? (s.history.replaceState(null, null, `#${t}` || ""), l("hashSet")) : (h.location.hash = t || "", l("hashSet"));
37
+ }, m = () => {
38
+ if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return;
39
+ r = !0;
40
+ const a = h.location.hash.replace("#", "");
41
+ if (a) {
42
+ const i = e.params.hashNavigation.getSlideIndex(e, a);
43
+ e.slideTo(i || 0, 0, e.params.runCallbacksOnInit, !0);
44
+ }
45
+ e.params.hashNavigation.watchState && s.addEventListener("hashchange", o);
46
+ }, g = () => {
47
+ e.params.hashNavigation.watchState && s.removeEventListener("hashchange", o);
48
+ };
49
+ n("init", () => {
50
+ e.params.hashNavigation.enabled && m();
51
+ }), n("destroy", () => {
52
+ e.params.hashNavigation.enabled && g();
53
+ }), n("transitionEnd _freeModeNoMomentumRelease", () => {
54
+ r && c();
55
+ }), n("slideChange", () => {
56
+ r && e.params.cssMode && c();
57
+ });
125
58
  }
126
59
  export {
127
- g as JapaneseCalendar
60
+ w as default
128
61
  };
package/index234.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index194.js"),t=require("./index202.js"),o=-543;class i extends t.GregorianCalendar{fromJulianDay(e){let r=super.fromJulianDay(e),u=t.getExtendedYear(r.era,r.year);return new d.CalendarDate(this,u-o,r.month,r.day)}toJulianDay(e){return super.toJulianDay(n(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(n(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function n(a){let[e,r]=t.fromExtendedYear(a.year+o);return new d.CalendarDate(e,r,a.month,a.day)}exports.BuddhistCalendar=i;
1
+ "use strict";const h=require("./index322.js");function V(q){let{swiper:e,extendParams:x,on:s,emit:r,params:u}=q;e.autoplay={running:!1,paused:!1,timeLeft:0},x({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let y,E,w=u&&u.autoplay?u.autoplay.delay:3e3,g=u&&u.autoplay?u.autoplay.delay:3e3,n,f=new Date().getTime(),b,v,p,D,L,o,S;function M(t){!e||e.destroyed||!e.wrapperEl||t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",M),!(S||t.detail&&t.detail.bySwiperTouchMove)&&l())}const O=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?b=!0:b&&(g=n,b=!1);const t=e.autoplay.paused?n:f+g-new Date().getTime();e.autoplay.timeLeft=t,r("autoplayTimeLeft",t,t/w),E=requestAnimationFrame(()=>{O()})},B=()=>{let t;return e.virtual&&e.params.virtual.enabled?t=e.slides.filter(a=>a.classList.contains("swiper-slide-active"))[0]:t=e.slides[e.activeIndex],t?parseInt(t.getAttribute("data-swiper-autoplay"),10):void 0},T=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(E),O();let i=typeof t>"u"?e.params.autoplay.delay:t;w=e.params.autoplay.delay,g=e.params.autoplay.delay;const a=B();!Number.isNaN(a)&&a>0&&typeof t>"u"&&(i=a,w=a,g=a),n=i;const c=e.params.speed,N=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(c,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,c,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(c,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,c,!0,!0),r("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{T()})))};return i>0?(clearTimeout(y),y=setTimeout(()=>{N()},i)):requestAnimationFrame(()=>{N()}),i},I=()=>{f=new Date().getTime(),e.autoplay.running=!0,T(),r("autoplayStart")},m=()=>{e.autoplay.running=!1,clearTimeout(y),cancelAnimationFrame(E),r("autoplayStop")},d=(t,i)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(y),t||(o=!0);const a=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",M):l()};if(e.autoplay.paused=!0,i){L&&(n=e.params.autoplay.delay),L=!1,a();return}n=(n||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&n<0&&!e.params.loop)&&(n<0&&(n=0),a())},l=()=>{e.isEnd&&n<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),o?(o=!1,T(n)):T(),e.autoplay.paused=!1,r("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const t=h.g();t.visibilityState==="hidden"&&(o=!0,d(!0)),t.visibilityState==="visible"&&l()},P=t=>{t.pointerType==="mouse"&&(o=!0,S=!0,!(e.animating||e.autoplay.paused)&&d(!0))},F=t=>{t.pointerType==="mouse"&&(S=!1,e.autoplay.paused&&l())},C=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",P),e.el.addEventListener("pointerleave",F))},_=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",P),e.el.removeEventListener("pointerleave",F))},R=()=>{h.g().addEventListener("visibilitychange",A)},j=()=>{h.g().removeEventListener("visibilitychange",A)};s("init",()=>{e.params.autoplay.enabled&&(C(),R(),I())}),s("destroy",()=>{_(),j(),e.autoplay.running&&m()}),s("_freeModeStaticRelease",()=>{(p||o)&&l()}),s("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?m():d(!0,!0)}),s("beforeTransitionStart",(t,i,a)=>{e.destroyed||!e.autoplay.running||(a||!e.params.autoplay.disableOnInteraction?d(!0,!0):m())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){m();return}v=!0,p=!1,o=!1,D=setTimeout(()=>{o=!0,p=!0,d(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!v)){if(clearTimeout(D),clearTimeout(y),e.params.autoplay.disableOnInteraction){p=!1,v=!1;return}p&&e.params.cssMode&&l(),p=!1,v=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(L=!0)}),Object.assign(e.autoplay,{start:I,stop:m,pause:d,resume:l})}module.exports=V;