wonder-image 2.1.2-alpha.2 → 2.1.2-alpha.21

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 (629) hide show
  1. package/README.md +2 -0
  2. package/dist/backend/body-end.js +1 -2
  3. package/dist/backend/body-end.js.map +1 -1
  4. package/dist/backend/head.css +1 -1
  5. package/dist/backend/head.css.map +1 -1
  6. package/dist/backend/head.js +1 -1
  7. package/dist/backend/head.js.LICENSE.txt +0 -1015
  8. package/dist/backend/head.js.map +1 -1
  9. package/dist/backend/lib.js +0 -1
  10. package/dist/frontend/body-end.js +0 -1
  11. package/dist/frontend/body-end.js.map +1 -1
  12. package/dist/frontend/head.css +1 -1
  13. package/dist/frontend/head.css.map +1 -1
  14. package/dist/frontend/head.js +1 -2
  15. package/dist/frontend/head.js.map +1 -1
  16. package/dist/frontend/lib.js +0 -1
  17. package/dist/frontend/lib.js.map +1 -1
  18. package/dist/images/flags/1x1/cn.svg +11 -0
  19. package/dist/images/flags/1x1/cu.svg +13 -0
  20. package/dist/images/flags/1x1/cv.svg +13 -0
  21. package/dist/images/flags/1x1/cw.svg +14 -0
  22. package/dist/images/flags/1x1/de.svg +5 -0
  23. package/dist/images/flags/1x1/dk.svg +5 -0
  24. package/dist/images/flags/1x1/do.svg +122 -0
  25. package/dist/images/flags/1x1/ee.svg +5 -0
  26. package/dist/images/flags/1x1/eh.svg +11 -0
  27. package/dist/images/flags/1x1/er.svg +13 -0
  28. package/dist/images/flags/1x1/eu.svg +28 -0
  29. package/dist/images/flags/1x1/fi.svg +5 -0
  30. package/dist/images/flags/1x1/fj.svg +123 -0
  31. package/dist/images/flags/1x1/fr.svg +5 -0
  32. package/dist/images/flags/1x1/gb.svg +7 -0
  33. package/dist/images/flags/1x1/gf.svg +5 -0
  34. package/dist/images/flags/1x1/gh.svg +6 -0
  35. package/dist/images/flags/1x1/gn.svg +7 -0
  36. package/dist/images/flags/1x1/gp.svg +5 -0
  37. package/dist/images/flags/1x1/gq.svg +23 -0
  38. package/dist/images/flags/1x1/gr.svg +16 -0
  39. package/dist/images/flags/1x1/gs.svg +132 -0
  40. package/dist/images/flags/1x1/gt.svg +204 -0
  41. package/dist/images/flags/1x1/gu.svg +19 -0
  42. package/dist/images/flags/1x1/gw.svg +15 -0
  43. package/dist/images/flags/1x1/gy.svg +9 -0
  44. package/dist/images/flags/1x1/hm.svg +8 -0
  45. package/dist/images/flags/1x1/hn.svg +18 -0
  46. package/dist/images/flags/1x1/ht.svg +116 -0
  47. package/dist/images/flags/1x1/hu.svg +7 -0
  48. package/dist/images/flags/1x1/id.svg +4 -0
  49. package/dist/images/flags/1x1/im.svg +36 -0
  50. package/dist/images/flags/1x1/in.svg +25 -0
  51. package/dist/images/flags/1x1/iq.svg +10 -0
  52. package/dist/images/flags/1x1/ir.svg +219 -0
  53. package/dist/images/flags/1x1/is.svg +12 -0
  54. package/dist/images/flags/1x1/it.svg +7 -0
  55. package/dist/images/flags/1x1/jm.svg +8 -0
  56. package/dist/images/flags/1x1/kh.svg +61 -0
  57. package/dist/images/flags/1x1/km.svg +16 -0
  58. package/dist/images/flags/1x1/kw.svg +13 -0
  59. package/dist/images/flags/1x1/lb.svg +15 -0
  60. package/dist/images/flags/1x1/ls.svg +8 -0
  61. package/dist/images/flags/1x1/ma.svg +4 -0
  62. package/dist/images/flags/1x1/mc.svg +6 -0
  63. package/dist/images/flags/1x1/mg.svg +7 -0
  64. package/dist/images/flags/1x1/mm.svg +10 -0
  65. package/dist/images/flags/1x1/mo.svg +9 -0
  66. package/dist/images/flags/1x1/mp.svg +86 -0
  67. package/dist/images/flags/1x1/ms.svg +25 -0
  68. package/dist/images/flags/1x1/mw.svg +15 -0
  69. package/dist/images/flags/1x1/mx.svg +377 -0
  70. package/dist/images/flags/1x1/ni.svg +129 -0
  71. package/dist/images/flags/1x1/nu.svg +10 -0
  72. package/dist/images/flags/1x1/om.svg +115 -0
  73. package/dist/images/flags/1x1/pa.svg +13 -0
  74. package/dist/images/flags/1x1/pc.svg +33 -0
  75. package/dist/images/flags/1x1/pf.svg +18 -0
  76. package/dist/images/flags/1x1/pk.svg +15 -0
  77. package/dist/images/flags/1x1/pl.svg +6 -0
  78. package/dist/images/flags/1x1/pr.svg +13 -0
  79. package/dist/images/flags/1x1/pt.svg +57 -0
  80. package/dist/images/flags/1x1/pw.svg +11 -0
  81. package/dist/images/flags/1x1/ru.svg +5 -0
  82. package/dist/images/flags/1x1/sb.svg +13 -0
  83. package/dist/images/flags/1x1/sh.svg +7 -0
  84. package/dist/images/flags/1x1/sj.svg +7 -0
  85. package/dist/images/flags/1x1/sk.svg +9 -0
  86. package/dist/images/flags/1x1/sn.svg +8 -0
  87. package/dist/images/flags/1x1/ss.svg +8 -0
  88. package/dist/images/flags/1x1/sx.svg +56 -0
  89. package/dist/images/flags/1x1/sz.svg +34 -0
  90. package/dist/images/flags/1x1/tc.svg +50 -0
  91. package/dist/images/flags/1x1/tf.svg +15 -0
  92. package/dist/images/flags/1x1/tj.svg +26 -0
  93. package/dist/images/flags/1x1/tk.svg +5 -0
  94. package/dist/images/flags/1x1/tl.svg +13 -0
  95. package/dist/images/flags/1x1/tm.svg +205 -0
  96. package/dist/images/flags/1x1/to.svg +10 -0
  97. package/dist/images/flags/1x1/tt.svg +7 -0
  98. package/dist/images/flags/1x1/tw.svg +32 -0
  99. package/dist/images/flags/1x1/ug.svg +30 -0
  100. package/dist/images/flags/1x1/us.svg +9 -0
  101. package/dist/images/flags/1x1/uy.svg +28 -0
  102. package/dist/images/flags/1x1/uz.svg +30 -0
  103. package/dist/images/flags/1x1/vi.svg +28 -0
  104. package/dist/images/flags/1x1/vn.svg +11 -0
  105. package/dist/images/flags/1x1/vu.svg +21 -0
  106. package/dist/images/flags/1x1/xk.svg +5 -0
  107. package/dist/images/flags/1x1/zw.svg +21 -0
  108. package/dist/images/flags/4x3/ad.svg +150 -0
  109. package/dist/images/flags/4x3/ae.svg +6 -0
  110. package/dist/images/flags/4x3/af.svg +81 -0
  111. package/dist/images/flags/4x3/ag.svg +14 -0
  112. package/dist/images/flags/4x3/ai.svg +29 -0
  113. package/dist/images/flags/4x3/al.svg +5 -0
  114. package/dist/images/flags/4x3/am.svg +5 -0
  115. package/dist/images/flags/4x3/ao.svg +13 -0
  116. package/dist/images/flags/4x3/aq.svg +5 -0
  117. package/dist/images/flags/4x3/ar.svg +32 -0
  118. package/dist/images/flags/4x3/arab.svg +109 -0
  119. package/dist/images/flags/4x3/as.svg +72 -0
  120. package/dist/images/flags/4x3/asean.svg +13 -0
  121. package/dist/images/flags/4x3/at.svg +4 -0
  122. package/dist/images/flags/4x3/au.svg +8 -0
  123. package/dist/images/flags/4x3/aw.svg +186 -0
  124. package/dist/images/flags/4x3/ax.svg +18 -0
  125. package/dist/images/flags/4x3/az.svg +8 -0
  126. package/dist/images/flags/4x3/ba.svg +12 -0
  127. package/dist/images/flags/4x3/bb.svg +6 -0
  128. package/dist/images/flags/4x3/bd.svg +4 -0
  129. package/dist/images/flags/4x3/be.svg +7 -0
  130. package/dist/images/flags/4x3/bf.svg +7 -0
  131. package/dist/images/flags/4x3/bg.svg +5 -0
  132. package/dist/images/flags/4x3/bh.svg +4 -0
  133. package/dist/images/flags/4x3/bi.svg +15 -0
  134. package/dist/images/flags/4x3/bj.svg +14 -0
  135. package/dist/images/flags/4x3/bl.svg +5 -0
  136. package/dist/images/flags/4x3/bm.svg +97 -0
  137. package/dist/images/flags/4x3/bn.svg +36 -0
  138. package/dist/images/flags/4x3/bo.svg +673 -0
  139. package/dist/images/flags/4x3/bq.svg +5 -0
  140. package/dist/images/flags/4x3/br.svg +45 -0
  141. package/dist/images/flags/4x3/bs.svg +13 -0
  142. package/dist/images/flags/4x3/bt.svg +89 -0
  143. package/dist/images/flags/4x3/bv.svg +13 -0
  144. package/dist/images/flags/4x3/bw.svg +7 -0
  145. package/dist/images/flags/4x3/by.svg +18 -0
  146. package/dist/images/flags/4x3/bz.svg +145 -0
  147. package/dist/images/flags/4x3/ca.svg +4 -0
  148. package/dist/images/flags/4x3/cc.svg +19 -0
  149. package/dist/images/flags/4x3/cd.svg +5 -0
  150. package/dist/images/flags/4x3/cefta.svg +13 -0
  151. package/dist/images/flags/4x3/cf.svg +15 -0
  152. package/dist/images/flags/4x3/cg.svg +12 -0
  153. package/dist/images/flags/4x3/ch.svg +9 -0
  154. package/dist/images/flags/4x3/ci.svg +7 -0
  155. package/dist/images/flags/4x3/ck.svg +9 -0
  156. package/dist/images/flags/4x3/cl.svg +13 -0
  157. package/dist/images/flags/4x3/cm.svg +15 -0
  158. package/dist/images/flags/4x3/co.svg +7 -0
  159. package/dist/images/flags/4x3/cp.svg +7 -0
  160. package/dist/images/flags/4x3/cr.svg +7 -0
  161. package/dist/images/flags/4x3/cx.svg +15 -0
  162. package/dist/images/flags/4x3/cy.svg +6 -0
  163. package/dist/images/flags/4x3/cz.svg +5 -0
  164. package/dist/images/flags/4x3/dg.svg +130 -0
  165. package/dist/images/flags/4x3/dj.svg +13 -0
  166. package/dist/images/flags/4x3/dm.svg +152 -0
  167. package/dist/images/flags/4x3/dz.svg +5 -0
  168. package/dist/images/flags/4x3/eac.svg +48 -0
  169. package/dist/images/flags/4x3/ec.svg +138 -0
  170. package/dist/images/flags/4x3/eg.svg +38 -0
  171. package/dist/images/flags/4x3/es-ct.svg +4 -0
  172. package/dist/images/flags/4x3/es-ga.svg +187 -0
  173. package/dist/images/flags/4x3/es-pv.svg +5 -0
  174. package/dist/images/flags/4x3/es.svg +544 -0
  175. package/dist/images/flags/4x3/et.svg +14 -0
  176. package/dist/images/flags/4x3/fk.svg +90 -0
  177. package/dist/images/flags/4x3/fm.svg +11 -0
  178. package/dist/images/flags/4x3/fo.svg +12 -0
  179. package/dist/images/flags/4x3/ga.svg +7 -0
  180. package/dist/images/flags/4x3/gb-eng.svg +5 -0
  181. package/dist/images/flags/4x3/gb-nir.svg +132 -0
  182. package/dist/images/flags/4x3/gb-sct.svg +4 -0
  183. package/dist/images/flags/4x3/gb-wls.svg +9 -0
  184. package/dist/images/flags/4x3/gd.svg +27 -0
  185. package/dist/images/flags/4x3/ge.svg +6 -0
  186. package/dist/images/flags/4x3/gg.svg +9 -0
  187. package/dist/images/flags/4x3/gi.svg +32 -0
  188. package/dist/images/flags/4x3/gl.svg +4 -0
  189. package/dist/images/flags/4x3/gm.svg +14 -0
  190. package/dist/images/flags/4x3/hk.svg +8 -0
  191. package/dist/images/flags/4x3/hr.svg +58 -0
  192. package/dist/images/flags/4x3/ic.svg +7 -0
  193. package/dist/images/flags/4x3/ie.svg +7 -0
  194. package/dist/images/flags/4x3/il.svg +14 -0
  195. package/dist/images/flags/4x3/io.svg +130 -0
  196. package/dist/images/flags/4x3/je.svg +62 -0
  197. package/dist/images/flags/4x3/jo.svg +16 -0
  198. package/dist/images/flags/4x3/jp.svg +11 -0
  199. package/dist/images/flags/4x3/ke.svg +23 -0
  200. package/dist/images/flags/4x3/kg.svg +4 -0
  201. package/dist/images/flags/4x3/ki.svg +36 -0
  202. package/dist/images/flags/4x3/kn.svg +14 -0
  203. package/dist/images/flags/4x3/kp.svg +15 -0
  204. package/dist/images/flags/4x3/kr.svg +24 -0
  205. package/dist/images/flags/4x3/ky.svg +103 -0
  206. package/dist/images/flags/4x3/kz.svg +36 -0
  207. package/dist/images/flags/4x3/la.svg +12 -0
  208. package/dist/images/flags/4x3/lc.svg +8 -0
  209. package/dist/images/flags/4x3/li.svg +43 -0
  210. package/dist/images/flags/4x3/lk.svg +22 -0
  211. package/dist/images/flags/4x3/lr.svg +14 -0
  212. package/dist/images/flags/4x3/lt.svg +7 -0
  213. package/dist/images/flags/4x3/lu.svg +5 -0
  214. package/dist/images/flags/4x3/lv.svg +6 -0
  215. package/dist/images/flags/4x3/ly.svg +13 -0
  216. package/dist/images/flags/4x3/md.svg +70 -0
  217. package/dist/images/flags/4x3/me.svg +116 -0
  218. package/dist/images/flags/4x3/mf.svg +5 -0
  219. package/dist/images/flags/4x3/mh.svg +7 -0
  220. package/dist/images/flags/4x3/mk.svg +5 -0
  221. package/dist/images/flags/4x3/ml.svg +7 -0
  222. package/dist/images/flags/4x3/mn.svg +14 -0
  223. package/dist/images/flags/4x3/mq.svg +5 -0
  224. package/dist/images/flags/4x3/mr.svg +6 -0
  225. package/dist/images/flags/4x3/mt.svg +58 -0
  226. package/dist/images/flags/4x3/mu.svg +8 -0
  227. package/dist/images/flags/4x3/mv.svg +6 -0
  228. package/dist/images/flags/4x3/my.svg +26 -0
  229. package/dist/images/flags/4x3/mz.svg +21 -0
  230. package/dist/images/flags/4x3/na.svg +16 -0
  231. package/dist/images/flags/4x3/nc.svg +13 -0
  232. package/dist/images/flags/4x3/ne.svg +6 -0
  233. package/dist/images/flags/4x3/nf.svg +9 -0
  234. package/dist/images/flags/4x3/ng.svg +6 -0
  235. package/dist/images/flags/4x3/nl.svg +5 -0
  236. package/dist/images/flags/4x3/no.svg +7 -0
  237. package/dist/images/flags/4x3/np.svg +13 -0
  238. package/dist/images/flags/4x3/nr.svg +12 -0
  239. package/dist/images/flags/4x3/nz.svg +36 -0
  240. package/dist/images/flags/4x3/pe.svg +4 -0
  241. package/dist/images/flags/4x3/pg.svg +9 -0
  242. package/dist/images/flags/4x3/ph.svg +6 -0
  243. package/dist/images/flags/4x3/pm.svg +5 -0
  244. package/dist/images/flags/4x3/pn.svg +53 -0
  245. package/dist/images/flags/4x3/ps.svg +6 -0
  246. package/dist/images/flags/4x3/py.svg +157 -0
  247. package/dist/images/flags/4x3/qa.svg +4 -0
  248. package/dist/images/flags/4x3/re.svg +5 -0
  249. package/dist/images/flags/4x3/ro.svg +7 -0
  250. package/dist/images/flags/4x3/rs.svg +292 -0
  251. package/dist/images/flags/4x3/rw.svg +13 -0
  252. package/dist/images/flags/4x3/sa.svg +25 -0
  253. package/dist/images/flags/4x3/sc.svg +7 -0
  254. package/dist/images/flags/4x3/sd.svg +13 -0
  255. package/dist/images/flags/4x3/se.svg +4 -0
  256. package/dist/images/flags/4x3/sg.svg +13 -0
  257. package/dist/images/flags/4x3/sh-ac.svg +689 -0
  258. package/dist/images/flags/4x3/sh-hl.svg +164 -0
  259. package/dist/images/flags/4x3/sh-ta.svg +76 -0
  260. package/dist/images/flags/4x3/si.svg +18 -0
  261. package/dist/images/flags/4x3/sl.svg +7 -0
  262. package/dist/images/flags/4x3/sm.svg +75 -0
  263. package/dist/images/flags/4x3/so.svg +11 -0
  264. package/dist/images/flags/4x3/sr.svg +6 -0
  265. package/dist/images/flags/4x3/st.svg +16 -0
  266. package/dist/images/flags/4x3/sv.svg +593 -0
  267. package/dist/images/flags/4x3/sy.svg +6 -0
  268. package/dist/images/flags/4x3/td.svg +7 -0
  269. package/dist/images/flags/4x3/tg.svg +14 -0
  270. package/dist/images/flags/4x3/th.svg +7 -0
  271. package/dist/images/flags/4x3/tn.svg +4 -0
  272. package/dist/images/flags/4x3/tr.svg +8 -0
  273. package/dist/images/flags/4x3/tv.svg +9 -0
  274. package/dist/images/flags/4x3/tz.svg +13 -0
  275. package/dist/images/flags/4x3/ua.svg +6 -0
  276. package/dist/images/flags/4x3/um.svg +9 -0
  277. package/dist/images/flags/4x3/un.svg +16 -0
  278. package/dist/images/flags/4x3/va.svg +190 -0
  279. package/dist/images/flags/4x3/vc.svg +8 -0
  280. package/dist/images/flags/4x3/ve.svg +26 -0
  281. package/dist/images/flags/4x3/vg.svg +59 -0
  282. package/dist/images/flags/4x3/wf.svg +5 -0
  283. package/dist/images/flags/4x3/ws.svg +7 -0
  284. package/dist/images/flags/4x3/xx.svg +4 -0
  285. package/dist/images/flags/4x3/ye.svg +7 -0
  286. package/dist/images/flags/4x3/yt.svg +5 -0
  287. package/dist/images/flags/4x3/za.svg +17 -0
  288. package/dist/images/flags/4x3/zm.svg +27 -0
  289. package/dist/lib/autonumeric/autonumeric.js +0 -1
  290. package/dist/lib/autonumeric/autonumeric.js.map +1 -1
  291. package/dist/lib/bootstrap/bootstrap-datepicker.js +0 -1
  292. package/dist/lib/bootstrap/bootstrap-datepicker.js.map +1 -1
  293. package/dist/lib/bootstrap/bootstrap-icons.css +1 -1
  294. package/dist/lib/bootstrap/bootstrap-icons.css.map +1 -1
  295. package/dist/lib/bootstrap/bootstrap-icons.js +0 -1
  296. package/dist/lib/bootstrap/bootstrap.js +0 -1
  297. package/dist/lib/bootstrap/bootstrap.js.map +1 -1
  298. package/dist/lib/chartjs/chart.js.LICENSE.txt +1 -1281
  299. package/dist/lib/colorjs/color.js +0 -1
  300. package/dist/lib/colorjs/color.js.map +1 -1
  301. package/dist/lib/datatables/datatables.js.LICENSE.txt +0 -9853
  302. package/dist/lib/dompurify/dompurify.js.LICENSE.txt +0 -908
  303. package/dist/lib/editorjs/editor.js.LICENSE.txt +41 -5629
  304. package/dist/lib/fancyapps/fancyapps.js +0 -1
  305. package/dist/lib/fancyapps/fancyapps.js.map +1 -1
  306. package/dist/lib/filepond/filepond.js.LICENSE.txt +0 -2728
  307. package/dist/lib/fullcalendar/fullcalendar.js +1 -1
  308. package/dist/lib/fullcalendar/fullcalendar.js.LICENSE.txt +0 -3686
  309. package/dist/lib/fullcalendar/fullcalendar.js.map +1 -1
  310. package/dist/lib/image-compare-viewer.js +0 -1
  311. package/dist/lib/jquery/jquery-plugin.js +1 -2
  312. package/dist/lib/jquery/jquery-plugin.js.map +1 -1
  313. package/dist/lib/jquery/jquery.js.LICENSE.txt +0 -3232
  314. package/dist/lib/jstree/jstree.js +0 -1
  315. package/dist/lib/jstree/jstree.js.map +1 -1
  316. package/dist/lib/jszip/jszip.js.LICENSE.txt +0 -42
  317. package/dist/lib/lipis/flag-icons.css +1 -1
  318. package/dist/lib/lipis/flag-icons.css.map +1 -1
  319. package/dist/lib/lipis/flag-icons.js +0 -1
  320. package/dist/lib/moment/moment.js.LICENSE.txt +0 -619
  321. package/dist/lib/quilljs/quill.js +0 -1
  322. package/dist/lib/quilljs/quill.js.map +1 -1
  323. package/dist/lib/rellax/rellax.js +0 -1
  324. package/dist/lib/rellax/rellax.js.map +1 -1
  325. package/dist/lib/select2/select2.js +1 -2
  326. package/dist/lib/select2/select2.js.map +1 -1
  327. package/dist/lib/swiperjs/swiper-plugin.js +0 -1
  328. package/dist/lib/swiperjs/swiper-plugin.js.map +1 -1
  329. package/dist/lib/swiperjs/swiper.js +0 -1
  330. package/dist/lib/swiperjs/swiper.js.map +1 -1
  331. package/dist/lib/videojs/video.js.LICENSE.txt +6 -27809
  332. package/dist/lib/vivus/vivus.js.LICENSE.txt +0 -518
  333. package/index.js +2 -1
  334. package/package.json +23 -21
  335. package/src/class/DeferredContent.js +110 -0
  336. package/dist/backend/body-end.js.LICENSE.txt +0 -44
  337. package/dist/backend/lib.js.LICENSE.txt +0 -1
  338. package/dist/frontend/body-end.js.LICENSE.txt +0 -44
  339. package/dist/frontend/head.js.LICENSE.txt +0 -98
  340. package/dist/frontend/lib.js.LICENSE.txt +0 -239
  341. package/dist/lib/autonumeric/autonumeric.js.LICENSE.txt +0 -49
  342. package/dist/lib/bootstrap/bootstrap-datepicker.js.LICENSE.txt +0 -44
  343. package/dist/lib/bootstrap/bootstrap-icons.js.LICENSE.txt +0 -1
  344. package/dist/lib/bootstrap/bootstrap.js.LICENSE.txt +0 -44
  345. package/dist/lib/colorjs/color.js.LICENSE.txt +0 -7
  346. package/dist/lib/fancyapps/fancyapps.js.LICENSE.txt +0 -9
  347. package/dist/lib/image-compare-viewer.js.LICENSE.txt +0 -3
  348. package/dist/lib/jquery/jquery-plugin.js.LICENSE.txt +0 -1200
  349. package/dist/lib/jstree/jstree.js.LICENSE.txt +0 -44
  350. package/dist/lib/lipis/flag-icons.js.LICENSE.txt +0 -1
  351. package/dist/lib/pdfmake/pdfmake.js +0 -3
  352. package/dist/lib/pdfmake/pdfmake.js.LICENSE.txt +0 -13375
  353. package/dist/lib/pdfmake/pdfmake.js.map +0 -1
  354. package/dist/lib/quilljs/quill.js.LICENSE.txt +0 -3068
  355. package/dist/lib/rellax/rellax.js.LICENSE.txt +0 -143
  356. package/dist/lib/select2/select2.js.LICENSE.txt +0 -3761
  357. package/dist/lib/swiperjs/swiper-plugin.js.LICENSE.txt +0 -1174
  358. package/dist/lib/swiperjs/swiper.js.LICENSE.txt +0 -673
  359. /package/dist/images/{ad.svg → flags/1x1/ad.svg} +0 -0
  360. /package/dist/images/{ae.svg → flags/1x1/ae.svg} +0 -0
  361. /package/dist/images/{af.svg → flags/1x1/af.svg} +0 -0
  362. /package/dist/images/{ag.svg → flags/1x1/ag.svg} +0 -0
  363. /package/dist/images/{ai.svg → flags/1x1/ai.svg} +0 -0
  364. /package/dist/images/{al.svg → flags/1x1/al.svg} +0 -0
  365. /package/dist/images/{am.svg → flags/1x1/am.svg} +0 -0
  366. /package/dist/images/{ao.svg → flags/1x1/ao.svg} +0 -0
  367. /package/dist/images/{aq.svg → flags/1x1/aq.svg} +0 -0
  368. /package/dist/images/{ar.svg → flags/1x1/ar.svg} +0 -0
  369. /package/dist/images/{arab.svg → flags/1x1/arab.svg} +0 -0
  370. /package/dist/images/{as.svg → flags/1x1/as.svg} +0 -0
  371. /package/dist/images/{asean.svg → flags/1x1/asean.svg} +0 -0
  372. /package/dist/images/{at.svg → flags/1x1/at.svg} +0 -0
  373. /package/dist/images/{au.svg → flags/1x1/au.svg} +0 -0
  374. /package/dist/images/{aw.svg → flags/1x1/aw.svg} +0 -0
  375. /package/dist/images/{ax.svg → flags/1x1/ax.svg} +0 -0
  376. /package/dist/images/{az.svg → flags/1x1/az.svg} +0 -0
  377. /package/dist/images/{ba.svg → flags/1x1/ba.svg} +0 -0
  378. /package/dist/images/{bb.svg → flags/1x1/bb.svg} +0 -0
  379. /package/dist/images/{bd.svg → flags/1x1/bd.svg} +0 -0
  380. /package/dist/images/{be.svg → flags/1x1/be.svg} +0 -0
  381. /package/dist/images/{bf.svg → flags/1x1/bf.svg} +0 -0
  382. /package/dist/images/{bg.svg → flags/1x1/bg.svg} +0 -0
  383. /package/dist/images/{bh.svg → flags/1x1/bh.svg} +0 -0
  384. /package/dist/images/{bi.svg → flags/1x1/bi.svg} +0 -0
  385. /package/dist/images/{bj.svg → flags/1x1/bj.svg} +0 -0
  386. /package/dist/images/{bl.svg → flags/1x1/bl.svg} +0 -0
  387. /package/dist/images/{bm.svg → flags/1x1/bm.svg} +0 -0
  388. /package/dist/images/{bn.svg → flags/1x1/bn.svg} +0 -0
  389. /package/dist/images/{bo.svg → flags/1x1/bo.svg} +0 -0
  390. /package/dist/images/{bq.svg → flags/1x1/bq.svg} +0 -0
  391. /package/dist/images/{br.svg → flags/1x1/br.svg} +0 -0
  392. /package/dist/images/{bs.svg → flags/1x1/bs.svg} +0 -0
  393. /package/dist/images/{bt.svg → flags/1x1/bt.svg} +0 -0
  394. /package/dist/images/{bv.svg → flags/1x1/bv.svg} +0 -0
  395. /package/dist/images/{bw.svg → flags/1x1/bw.svg} +0 -0
  396. /package/dist/images/{by.svg → flags/1x1/by.svg} +0 -0
  397. /package/dist/images/{bz.svg → flags/1x1/bz.svg} +0 -0
  398. /package/dist/images/{ca.svg → flags/1x1/ca.svg} +0 -0
  399. /package/dist/images/{cc.svg → flags/1x1/cc.svg} +0 -0
  400. /package/dist/images/{cd.svg → flags/1x1/cd.svg} +0 -0
  401. /package/dist/images/{cefta.svg → flags/1x1/cefta.svg} +0 -0
  402. /package/dist/images/{cf.svg → flags/1x1/cf.svg} +0 -0
  403. /package/dist/images/{cg.svg → flags/1x1/cg.svg} +0 -0
  404. /package/dist/images/{ch.svg → flags/1x1/ch.svg} +0 -0
  405. /package/dist/images/{ci.svg → flags/1x1/ci.svg} +0 -0
  406. /package/dist/images/{ck.svg → flags/1x1/ck.svg} +0 -0
  407. /package/dist/images/{cl.svg → flags/1x1/cl.svg} +0 -0
  408. /package/dist/images/{cm.svg → flags/1x1/cm.svg} +0 -0
  409. /package/dist/images/{co.svg → flags/1x1/co.svg} +0 -0
  410. /package/dist/images/{cp.svg → flags/1x1/cp.svg} +0 -0
  411. /package/dist/images/{cr.svg → flags/1x1/cr.svg} +0 -0
  412. /package/dist/images/{cx.svg → flags/1x1/cx.svg} +0 -0
  413. /package/dist/images/{cy.svg → flags/1x1/cy.svg} +0 -0
  414. /package/dist/images/{cz.svg → flags/1x1/cz.svg} +0 -0
  415. /package/dist/images/{dg.svg → flags/1x1/dg.svg} +0 -0
  416. /package/dist/images/{dj.svg → flags/1x1/dj.svg} +0 -0
  417. /package/dist/images/{dm.svg → flags/1x1/dm.svg} +0 -0
  418. /package/dist/images/{dz.svg → flags/1x1/dz.svg} +0 -0
  419. /package/dist/images/{eac.svg → flags/1x1/eac.svg} +0 -0
  420. /package/dist/images/{ec.svg → flags/1x1/ec.svg} +0 -0
  421. /package/dist/images/{eg.svg → flags/1x1/eg.svg} +0 -0
  422. /package/dist/images/{es-ct.svg → flags/1x1/es-ct.svg} +0 -0
  423. /package/dist/images/{es-ga.svg → flags/1x1/es-ga.svg} +0 -0
  424. /package/dist/images/{es-pv.svg → flags/1x1/es-pv.svg} +0 -0
  425. /package/dist/images/{es.svg → flags/1x1/es.svg} +0 -0
  426. /package/dist/images/{et.svg → flags/1x1/et.svg} +0 -0
  427. /package/dist/images/{fk.svg → flags/1x1/fk.svg} +0 -0
  428. /package/dist/images/{fm.svg → flags/1x1/fm.svg} +0 -0
  429. /package/dist/images/{fo.svg → flags/1x1/fo.svg} +0 -0
  430. /package/dist/images/{ga.svg → flags/1x1/ga.svg} +0 -0
  431. /package/dist/images/{gb-eng.svg → flags/1x1/gb-eng.svg} +0 -0
  432. /package/dist/images/{gb-nir.svg → flags/1x1/gb-nir.svg} +0 -0
  433. /package/dist/images/{gb-sct.svg → flags/1x1/gb-sct.svg} +0 -0
  434. /package/dist/images/{gb-wls.svg → flags/1x1/gb-wls.svg} +0 -0
  435. /package/dist/images/{gd.svg → flags/1x1/gd.svg} +0 -0
  436. /package/dist/images/{ge.svg → flags/1x1/ge.svg} +0 -0
  437. /package/dist/images/{gg.svg → flags/1x1/gg.svg} +0 -0
  438. /package/dist/images/{gi.svg → flags/1x1/gi.svg} +0 -0
  439. /package/dist/images/{gl.svg → flags/1x1/gl.svg} +0 -0
  440. /package/dist/images/{gm.svg → flags/1x1/gm.svg} +0 -0
  441. /package/dist/images/{hk.svg → flags/1x1/hk.svg} +0 -0
  442. /package/dist/images/{hr.svg → flags/1x1/hr.svg} +0 -0
  443. /package/dist/images/{ic.svg → flags/1x1/ic.svg} +0 -0
  444. /package/dist/images/{ie.svg → flags/1x1/ie.svg} +0 -0
  445. /package/dist/images/{il.svg → flags/1x1/il.svg} +0 -0
  446. /package/dist/images/{io.svg → flags/1x1/io.svg} +0 -0
  447. /package/dist/images/{je.svg → flags/1x1/je.svg} +0 -0
  448. /package/dist/images/{jo.svg → flags/1x1/jo.svg} +0 -0
  449. /package/dist/images/{jp.svg → flags/1x1/jp.svg} +0 -0
  450. /package/dist/images/{ke.svg → flags/1x1/ke.svg} +0 -0
  451. /package/dist/images/{kg.svg → flags/1x1/kg.svg} +0 -0
  452. /package/dist/images/{ki.svg → flags/1x1/ki.svg} +0 -0
  453. /package/dist/images/{kn.svg → flags/1x1/kn.svg} +0 -0
  454. /package/dist/images/{kp.svg → flags/1x1/kp.svg} +0 -0
  455. /package/dist/images/{kr.svg → flags/1x1/kr.svg} +0 -0
  456. /package/dist/images/{ky.svg → flags/1x1/ky.svg} +0 -0
  457. /package/dist/images/{kz.svg → flags/1x1/kz.svg} +0 -0
  458. /package/dist/images/{la.svg → flags/1x1/la.svg} +0 -0
  459. /package/dist/images/{lc.svg → flags/1x1/lc.svg} +0 -0
  460. /package/dist/images/{li.svg → flags/1x1/li.svg} +0 -0
  461. /package/dist/images/{lk.svg → flags/1x1/lk.svg} +0 -0
  462. /package/dist/images/{lr.svg → flags/1x1/lr.svg} +0 -0
  463. /package/dist/images/{lt.svg → flags/1x1/lt.svg} +0 -0
  464. /package/dist/images/{lu.svg → flags/1x1/lu.svg} +0 -0
  465. /package/dist/images/{lv.svg → flags/1x1/lv.svg} +0 -0
  466. /package/dist/images/{ly.svg → flags/1x1/ly.svg} +0 -0
  467. /package/dist/images/{md.svg → flags/1x1/md.svg} +0 -0
  468. /package/dist/images/{me.svg → flags/1x1/me.svg} +0 -0
  469. /package/dist/images/{mf.svg → flags/1x1/mf.svg} +0 -0
  470. /package/dist/images/{mh.svg → flags/1x1/mh.svg} +0 -0
  471. /package/dist/images/{mk.svg → flags/1x1/mk.svg} +0 -0
  472. /package/dist/images/{ml.svg → flags/1x1/ml.svg} +0 -0
  473. /package/dist/images/{mn.svg → flags/1x1/mn.svg} +0 -0
  474. /package/dist/images/{mq.svg → flags/1x1/mq.svg} +0 -0
  475. /package/dist/images/{mr.svg → flags/1x1/mr.svg} +0 -0
  476. /package/dist/images/{mt.svg → flags/1x1/mt.svg} +0 -0
  477. /package/dist/images/{mu.svg → flags/1x1/mu.svg} +0 -0
  478. /package/dist/images/{mv.svg → flags/1x1/mv.svg} +0 -0
  479. /package/dist/images/{my.svg → flags/1x1/my.svg} +0 -0
  480. /package/dist/images/{mz.svg → flags/1x1/mz.svg} +0 -0
  481. /package/dist/images/{na.svg → flags/1x1/na.svg} +0 -0
  482. /package/dist/images/{nc.svg → flags/1x1/nc.svg} +0 -0
  483. /package/dist/images/{ne.svg → flags/1x1/ne.svg} +0 -0
  484. /package/dist/images/{nf.svg → flags/1x1/nf.svg} +0 -0
  485. /package/dist/images/{ng.svg → flags/1x1/ng.svg} +0 -0
  486. /package/dist/images/{nl.svg → flags/1x1/nl.svg} +0 -0
  487. /package/dist/images/{no.svg → flags/1x1/no.svg} +0 -0
  488. /package/dist/images/{np.svg → flags/1x1/np.svg} +0 -0
  489. /package/dist/images/{nr.svg → flags/1x1/nr.svg} +0 -0
  490. /package/dist/images/{nz.svg → flags/1x1/nz.svg} +0 -0
  491. /package/dist/images/{pe.svg → flags/1x1/pe.svg} +0 -0
  492. /package/dist/images/{pg.svg → flags/1x1/pg.svg} +0 -0
  493. /package/dist/images/{ph.svg → flags/1x1/ph.svg} +0 -0
  494. /package/dist/images/{pm.svg → flags/1x1/pm.svg} +0 -0
  495. /package/dist/images/{pn.svg → flags/1x1/pn.svg} +0 -0
  496. /package/dist/images/{ps.svg → flags/1x1/ps.svg} +0 -0
  497. /package/dist/images/{py.svg → flags/1x1/py.svg} +0 -0
  498. /package/dist/images/{qa.svg → flags/1x1/qa.svg} +0 -0
  499. /package/dist/images/{re.svg → flags/1x1/re.svg} +0 -0
  500. /package/dist/images/{ro.svg → flags/1x1/ro.svg} +0 -0
  501. /package/dist/images/{rs.svg → flags/1x1/rs.svg} +0 -0
  502. /package/dist/images/{rw.svg → flags/1x1/rw.svg} +0 -0
  503. /package/dist/images/{sa.svg → flags/1x1/sa.svg} +0 -0
  504. /package/dist/images/{sc.svg → flags/1x1/sc.svg} +0 -0
  505. /package/dist/images/{sd.svg → flags/1x1/sd.svg} +0 -0
  506. /package/dist/images/{se.svg → flags/1x1/se.svg} +0 -0
  507. /package/dist/images/{sg.svg → flags/1x1/sg.svg} +0 -0
  508. /package/dist/images/{sh-ac.svg → flags/1x1/sh-ac.svg} +0 -0
  509. /package/dist/images/{sh-hl.svg → flags/1x1/sh-hl.svg} +0 -0
  510. /package/dist/images/{sh-ta.svg → flags/1x1/sh-ta.svg} +0 -0
  511. /package/dist/images/{si.svg → flags/1x1/si.svg} +0 -0
  512. /package/dist/images/{sl.svg → flags/1x1/sl.svg} +0 -0
  513. /package/dist/images/{sm.svg → flags/1x1/sm.svg} +0 -0
  514. /package/dist/images/{so.svg → flags/1x1/so.svg} +0 -0
  515. /package/dist/images/{sr.svg → flags/1x1/sr.svg} +0 -0
  516. /package/dist/images/{st.svg → flags/1x1/st.svg} +0 -0
  517. /package/dist/images/{sv.svg → flags/1x1/sv.svg} +0 -0
  518. /package/dist/images/{sy.svg → flags/1x1/sy.svg} +0 -0
  519. /package/dist/images/{td.svg → flags/1x1/td.svg} +0 -0
  520. /package/dist/images/{tg.svg → flags/1x1/tg.svg} +0 -0
  521. /package/dist/images/{th.svg → flags/1x1/th.svg} +0 -0
  522. /package/dist/images/{tn.svg → flags/1x1/tn.svg} +0 -0
  523. /package/dist/images/{tr.svg → flags/1x1/tr.svg} +0 -0
  524. /package/dist/images/{tv.svg → flags/1x1/tv.svg} +0 -0
  525. /package/dist/images/{tz.svg → flags/1x1/tz.svg} +0 -0
  526. /package/dist/images/{ua.svg → flags/1x1/ua.svg} +0 -0
  527. /package/dist/images/{um.svg → flags/1x1/um.svg} +0 -0
  528. /package/dist/images/{un.svg → flags/1x1/un.svg} +0 -0
  529. /package/dist/images/{va.svg → flags/1x1/va.svg} +0 -0
  530. /package/dist/images/{vc.svg → flags/1x1/vc.svg} +0 -0
  531. /package/dist/images/{ve.svg → flags/1x1/ve.svg} +0 -0
  532. /package/dist/images/{vg.svg → flags/1x1/vg.svg} +0 -0
  533. /package/dist/images/{wf.svg → flags/1x1/wf.svg} +0 -0
  534. /package/dist/images/{ws.svg → flags/1x1/ws.svg} +0 -0
  535. /package/dist/images/{xx.svg → flags/1x1/xx.svg} +0 -0
  536. /package/dist/images/{ye.svg → flags/1x1/ye.svg} +0 -0
  537. /package/dist/images/{yt.svg → flags/1x1/yt.svg} +0 -0
  538. /package/dist/images/{za.svg → flags/1x1/za.svg} +0 -0
  539. /package/dist/images/{zm.svg → flags/1x1/zm.svg} +0 -0
  540. /package/dist/images/{cn.svg → flags/4x3/cn.svg} +0 -0
  541. /package/dist/images/{cu.svg → flags/4x3/cu.svg} +0 -0
  542. /package/dist/images/{cv.svg → flags/4x3/cv.svg} +0 -0
  543. /package/dist/images/{cw.svg → flags/4x3/cw.svg} +0 -0
  544. /package/dist/images/{de.svg → flags/4x3/de.svg} +0 -0
  545. /package/dist/images/{dk.svg → flags/4x3/dk.svg} +0 -0
  546. /package/dist/images/{do.svg → flags/4x3/do.svg} +0 -0
  547. /package/dist/images/{ee.svg → flags/4x3/ee.svg} +0 -0
  548. /package/dist/images/{eh.svg → flags/4x3/eh.svg} +0 -0
  549. /package/dist/images/{er.svg → flags/4x3/er.svg} +0 -0
  550. /package/dist/images/{eu.svg → flags/4x3/eu.svg} +0 -0
  551. /package/dist/images/{fi.svg → flags/4x3/fi.svg} +0 -0
  552. /package/dist/images/{fj.svg → flags/4x3/fj.svg} +0 -0
  553. /package/dist/images/{fr.svg → flags/4x3/fr.svg} +0 -0
  554. /package/dist/images/{gb.svg → flags/4x3/gb.svg} +0 -0
  555. /package/dist/images/{gf.svg → flags/4x3/gf.svg} +0 -0
  556. /package/dist/images/{gh.svg → flags/4x3/gh.svg} +0 -0
  557. /package/dist/images/{gn.svg → flags/4x3/gn.svg} +0 -0
  558. /package/dist/images/{gp.svg → flags/4x3/gp.svg} +0 -0
  559. /package/dist/images/{gq.svg → flags/4x3/gq.svg} +0 -0
  560. /package/dist/images/{gr.svg → flags/4x3/gr.svg} +0 -0
  561. /package/dist/images/{gs.svg → flags/4x3/gs.svg} +0 -0
  562. /package/dist/images/{gt.svg → flags/4x3/gt.svg} +0 -0
  563. /package/dist/images/{gu.svg → flags/4x3/gu.svg} +0 -0
  564. /package/dist/images/{gw.svg → flags/4x3/gw.svg} +0 -0
  565. /package/dist/images/{gy.svg → flags/4x3/gy.svg} +0 -0
  566. /package/dist/images/{hm.svg → flags/4x3/hm.svg} +0 -0
  567. /package/dist/images/{hn.svg → flags/4x3/hn.svg} +0 -0
  568. /package/dist/images/{ht.svg → flags/4x3/ht.svg} +0 -0
  569. /package/dist/images/{hu.svg → flags/4x3/hu.svg} +0 -0
  570. /package/dist/images/{id.svg → flags/4x3/id.svg} +0 -0
  571. /package/dist/images/{im.svg → flags/4x3/im.svg} +0 -0
  572. /package/dist/images/{in.svg → flags/4x3/in.svg} +0 -0
  573. /package/dist/images/{iq.svg → flags/4x3/iq.svg} +0 -0
  574. /package/dist/images/{ir.svg → flags/4x3/ir.svg} +0 -0
  575. /package/dist/images/{is.svg → flags/4x3/is.svg} +0 -0
  576. /package/dist/images/{it.svg → flags/4x3/it.svg} +0 -0
  577. /package/dist/images/{jm.svg → flags/4x3/jm.svg} +0 -0
  578. /package/dist/images/{kh.svg → flags/4x3/kh.svg} +0 -0
  579. /package/dist/images/{km.svg → flags/4x3/km.svg} +0 -0
  580. /package/dist/images/{kw.svg → flags/4x3/kw.svg} +0 -0
  581. /package/dist/images/{lb.svg → flags/4x3/lb.svg} +0 -0
  582. /package/dist/images/{ls.svg → flags/4x3/ls.svg} +0 -0
  583. /package/dist/images/{ma.svg → flags/4x3/ma.svg} +0 -0
  584. /package/dist/images/{mc.svg → flags/4x3/mc.svg} +0 -0
  585. /package/dist/images/{mg.svg → flags/4x3/mg.svg} +0 -0
  586. /package/dist/images/{mm.svg → flags/4x3/mm.svg} +0 -0
  587. /package/dist/images/{mo.svg → flags/4x3/mo.svg} +0 -0
  588. /package/dist/images/{mp.svg → flags/4x3/mp.svg} +0 -0
  589. /package/dist/images/{ms.svg → flags/4x3/ms.svg} +0 -0
  590. /package/dist/images/{mw.svg → flags/4x3/mw.svg} +0 -0
  591. /package/dist/images/{mx.svg → flags/4x3/mx.svg} +0 -0
  592. /package/dist/images/{ni.svg → flags/4x3/ni.svg} +0 -0
  593. /package/dist/images/{nu.svg → flags/4x3/nu.svg} +0 -0
  594. /package/dist/images/{om.svg → flags/4x3/om.svg} +0 -0
  595. /package/dist/images/{pa.svg → flags/4x3/pa.svg} +0 -0
  596. /package/dist/images/{pc.svg → flags/4x3/pc.svg} +0 -0
  597. /package/dist/images/{pf.svg → flags/4x3/pf.svg} +0 -0
  598. /package/dist/images/{pk.svg → flags/4x3/pk.svg} +0 -0
  599. /package/dist/images/{pl.svg → flags/4x3/pl.svg} +0 -0
  600. /package/dist/images/{pr.svg → flags/4x3/pr.svg} +0 -0
  601. /package/dist/images/{pt.svg → flags/4x3/pt.svg} +0 -0
  602. /package/dist/images/{pw.svg → flags/4x3/pw.svg} +0 -0
  603. /package/dist/images/{ru.svg → flags/4x3/ru.svg} +0 -0
  604. /package/dist/images/{sb.svg → flags/4x3/sb.svg} +0 -0
  605. /package/dist/images/{sh.svg → flags/4x3/sh.svg} +0 -0
  606. /package/dist/images/{sj.svg → flags/4x3/sj.svg} +0 -0
  607. /package/dist/images/{sk.svg → flags/4x3/sk.svg} +0 -0
  608. /package/dist/images/{sn.svg → flags/4x3/sn.svg} +0 -0
  609. /package/dist/images/{ss.svg → flags/4x3/ss.svg} +0 -0
  610. /package/dist/images/{sx.svg → flags/4x3/sx.svg} +0 -0
  611. /package/dist/images/{sz.svg → flags/4x3/sz.svg} +0 -0
  612. /package/dist/images/{tc.svg → flags/4x3/tc.svg} +0 -0
  613. /package/dist/images/{tf.svg → flags/4x3/tf.svg} +0 -0
  614. /package/dist/images/{tj.svg → flags/4x3/tj.svg} +0 -0
  615. /package/dist/images/{tk.svg → flags/4x3/tk.svg} +0 -0
  616. /package/dist/images/{tl.svg → flags/4x3/tl.svg} +0 -0
  617. /package/dist/images/{tm.svg → flags/4x3/tm.svg} +0 -0
  618. /package/dist/images/{to.svg → flags/4x3/to.svg} +0 -0
  619. /package/dist/images/{tt.svg → flags/4x3/tt.svg} +0 -0
  620. /package/dist/images/{tw.svg → flags/4x3/tw.svg} +0 -0
  621. /package/dist/images/{ug.svg → flags/4x3/ug.svg} +0 -0
  622. /package/dist/images/{us.svg → flags/4x3/us.svg} +0 -0
  623. /package/dist/images/{uy.svg → flags/4x3/uy.svg} +0 -0
  624. /package/dist/images/{uz.svg → flags/4x3/uz.svg} +0 -0
  625. /package/dist/images/{vi.svg → flags/4x3/vi.svg} +0 -0
  626. /package/dist/images/{vn.svg → flags/4x3/vn.svg} +0 -0
  627. /package/dist/images/{vu.svg → flags/4x3/vu.svg} +0 -0
  628. /package/dist/images/{xk.svg → flags/4x3/xk.svg} +0 -0
  629. /package/dist/images/{zw.svg → flags/4x3/zw.svg} +0 -0
@@ -1,13 +1,3 @@
1
- /* eslint-disable */
2
-
3
- /* harmony import */
4
-
5
- /* webpack/runtime/compat get default export */
6
-
7
- /* webpack/runtime/define property getters */
8
-
9
- /* webpack/runtime/hasOwnProperty shorthand */
10
-
11
1
  /*!
12
2
  * FilePond 4.31.1
13
3
  * Licensed under MIT, https://opensource.org/licenses/MIT/
@@ -79,2721 +69,3 @@
79
69
  * Licensed under MIT, https://opensource.org/licenses/MIT/
80
70
  * Please visit https://pqina.nl/filepond/ for details.
81
71
  */
82
-
83
- /*#__PURE__*/
84
-
85
- /**
86
- * Appends the plugin to the target element
87
- */
88
-
89
- /**
90
- * Browse the file system for a file
91
- */
92
-
93
- /**
94
- * Clears all files from the files list
95
- */
96
-
97
- /**
98
- * Destroys the app
99
- */
100
-
101
- /**
102
- * Inserts the plugin after the target element
103
- */
104
-
105
- /**
106
- * Inserts the plugin before the target element
107
- */
108
-
109
- /**
110
- * Load the given file
111
- * @param source - the source of the file (either a File, base64 data uri or url)
112
- * @param options - object, { index: 0 }
113
- */
114
-
115
- /**
116
- * Load the given files
117
- * @param sources - the sources of the files to load
118
- * @param options - object, { index: 0 }
119
- */
120
-
121
- /**
122
- * Moves a file to a new location in the files list
123
- */
124
-
125
- /**
126
- * Override options defined in options object
127
- * @param options
128
- */
129
-
130
- /**
131
- * Removes a file by its name
132
- * @param query { string, number, null }
133
- */
134
-
135
- /**
136
- * Replaces an element with the app
137
- */
138
-
139
- /**
140
- * Request prepare output for file with given name
141
- * @param query { string, number, null }
142
- */
143
-
144
- /**
145
- * Restores the original element
146
- */
147
-
148
- /**
149
- * Returns all files (wrapped in public api)
150
- */
151
-
152
- /**
153
- * Returns the current pond status
154
- */
155
-
156
- /**
157
- * Returns the file objects matching the given query
158
- * @param query { string, number, null }
159
- */
160
-
161
- /**
162
- * Returns the root element
163
- */
164
-
165
- /**
166
- * Returns true if the app root is attached to given element
167
- * @param element
168
- */
169
-
170
- /**
171
- * Sort list of files
172
- */
173
-
174
- /**
175
- * Starts preparing output of all files
176
- */
177
-
178
- /**
179
- * Starts uploading all files
180
- */
181
-
182
- /**
183
- * Upload file with given name
184
- * @param query { string, number, null }
185
- */
186
-
187
- /**
188
- * @param source
189
- * @param index
190
- * @param interactionMethod
191
- */
192
-
193
- /**
194
- * Aborts all ongoing processes
195
- */
196
-
197
- /**
198
- * Reads from dom (never call manually)
199
- * @private
200
- */
201
-
202
- /**
203
- * Sets initial files
204
- */
205
-
206
- /**
207
- * Writes to dom (never call manually)
208
- * @private
209
- */
210
-
211
- /**
212
- * Filters
213
- */
214
-
215
- /**
216
- * Image Preview related
217
- */
218
-
219
- /**
220
- * Polyfill Edge and IE when in Browser
221
- */
222
-
223
- /**
224
- * Generates the download icon
225
- */
226
-
227
- /**
228
- * Image Auto Crop Plugin
229
- */
230
-
231
- /**
232
- * Image Edit Proxy Plugin
233
- */
234
-
235
- /**
236
- * Read Image Orientation Plugin
237
- */
238
-
239
- /**
240
- * Register the download component by inserting the download icon
241
- */
242
-
243
- /************************************************************************/
244
-
245
- /******/
246
-
247
- /***/
248
-
249
- //
250
-
251
- // 'always'
252
-
253
- // 'mismatch' (future feature, only applied if quality differs from input)
254
-
255
- // 'optional'
256
-
257
- // (message, cb) => {}
258
-
259
- // - "camera", "microphone" or "camcorder",
260
-
261
- // - Does not work with multiple on apple devices
262
-
263
- // - If set, acceptedFileTypes must be made to match with media wildcard "image/*", "audio/*" or "video/*"
264
-
265
- // - add metadata
266
-
267
- // - contain => pick smaller dimension
268
-
269
- // - cover => pick biggest dimension
270
-
271
- // - extensions: .png, .jpg, .jpeg ( not enabled yet )
272
-
273
- // - force => force set size
274
-
275
- // - mime types: image/png, image/jpeg, image/gif
276
-
277
- // - must be comma separated
278
-
279
- // - read data (quickly)
280
-
281
- // - wildcards: image/*
282
-
283
- // -1, don't move items to accomodate (either add to top or bottom)
284
-
285
- // 0. perspective
286
-
287
- // 1. translate
288
-
289
- // 2. scale
290
-
291
- // 3. rotate
292
-
293
- // A metadata object to add to all files
294
-
295
- // Add className
296
-
297
- // Add id
298
-
299
- // Added for browsers that do not return the thousands separator (happend on native browser Android 4.4.4)
300
-
301
- // All items processed? No errors?
302
-
303
- // Allow browsing the file system
304
-
305
- // Allow dropping a file on other file to replace it (only works when multiple is set to false)
306
-
307
- // Allow dropping of files
308
-
309
- // Allow dropping of files anywhere on page (prevents browser from opening file if dropped outside of Up)
310
-
311
- // Allow media capture when value is set
312
-
313
- // Allow multiple files (disabled by default, as multiple attribute is also required on input to allow multiple)
314
-
315
- // Allow only selecting directories with browse (no support for filtering dnd at this point)
316
-
317
- // Allow pasting files
318
-
319
- // Allow reordering of files
320
-
321
- // Allow user to remove a file
322
-
323
- // Allows filtering of markup to only show certain shapes
324
-
325
- // Allows user to process a file, when set to false, this removes the file upload button
326
-
327
- // Allows user to revert file upload
328
-
329
- // Amount of times to retry upload of a chunk when it fails
330
-
331
- // Assign the DataTransfer files list to the file input
332
-
333
- // Assistant notifies assistive tech when content changes
334
-
335
- // Background panel
336
-
337
- // Can't run on Opera Mini due to lack of everything
338
-
339
- // Check if module is in cache
340
-
341
- // Chunks
342
-
343
- // Create a DataTransfer instance and add a newly created file
344
-
345
- // Create a new module (and put it into the cache)
346
-
347
- // Custom function to detect type of file
348
-
349
- // Custom function to use as image measure
350
-
351
- // DOCTYPE needs to be set for this to work
352
-
353
- // Data
354
-
355
- // Deal as if is external URL, let's load it!
356
-
357
- // Default index in list to add items that have been dropped at the top of the list
358
-
359
- // Default is locale separator
360
-
361
- // Done!
362
-
363
- // Drag 'n Drop related
364
-
365
- // Drop needs to happen on element (set to false to also load drops outside of Up)
366
-
367
- // Enable chunked uploads
368
-
369
- // Enable or disable file renaming
370
-
371
- // Enable or disable file type validation
372
-
373
- // Enable or disable image orientation reading
374
-
375
- // Enable or disable image preview
376
-
377
- // Enable or disable image resizing
378
-
379
- // Enable or disable validating files on drop
380
-
381
- // Enables custom validity messages
382
-
383
- // Enables or disables reading average image color
384
-
385
- // Enables or disables the previewing of markup
386
-
387
- // Error thrown when image can not be loaded
388
-
389
- // Every JPEG file starts from binary value '0xFFD8'
390
-
391
- // Execute the module function
392
-
393
- // Expose plugin options
394
-
395
- // Feature toggles
396
-
397
- // Field label
398
-
399
- // File size calculations, can set to 1024, this is only used for display, properties use file size base 1000
400
-
401
- // FilePond
402
-
403
- // Filter the files that need to be validated for size
404
-
405
- // Firefox versions before 58 will freeze when running createImageBitmap
406
-
407
- // First 2bytes defines byte align of TIFF data.
408
-
409
- // Fixed preview height
410
-
411
- // Force use of chunk uploads even for files smaller than chunk size
412
-
413
- // Get TIFF Header
414
-
415
- // Has to be a browser
416
-
417
- // If is not async should prepare now
418
-
419
- // If it is 0x4949="I I", it means "Intel" type byte align
420
-
421
- // If it's not present, exit here
422
-
423
- // Input requirements
424
-
425
- // Invalid
426
-
427
- // Label to show when an image is too small or image is too big
428
-
429
- // Labels and status messages
430
-
431
- // List of items
432
-
433
- // Load Files
434
-
435
- // Load base 64, set default name to current date
436
-
437
- // Load blobs, set default name to current date
438
-
439
- // Max image height
440
-
441
- // Max individual file size in bytes
442
-
443
- // Max number of files
444
-
445
- // Max size of preview file for when createImageBitmap is not supported
446
-
447
- // Max size of preview file that we allow to try to instant preview if createImageBitmap is not supported, else image is queued for loading
448
-
449
- // Max total file size in bytes
450
-
451
- // Maximum files to upload in parallel
452
-
453
- // Measure (tests if fixed height was set)
454
-
455
- // Min image height
456
-
457
- // Min individual file size in bytes
458
-
459
- // Missing 0x45786966 Marker? No Exif Header, stop here
460
-
461
- // Nothing found
462
-
463
- // PRIVATE API -------------------------------------------------------------------------------------
464
-
465
- // Require these APIs to feature detect a modern browser
466
-
467
- // Required amount of pixels in the image
468
-
469
- // Required dimensions
470
-
471
- // Return the exports of the module
472
-
473
- // Revert mode
474
-
475
- // Set to 'force' to require the file to be reverted before removal
476
-
477
- // Set to false to always add items to begin or end of list
478
-
479
- // Should upload files immediately on drop
480
-
481
- // Should we upscale small images to fit the max bounding box of the preview area
482
-
483
- // Size of chunks (5MB default)
484
-
485
- // Start at 2 as we skipped two bytes (FFD8)
486
-
487
- // Style of the transparancy indicator used behind images
488
-
489
- // TODO: Fix, should not be needed to kick the internal loop in case no processes are running
490
-
491
- // TODO: if we can, throw error to indicate the items cannot by dropped
492
-
493
- // TODO: see if we can optimize this by measuring root rect
494
-
495
- // TODO: test for directories (should not be allowed)
496
-
497
- // The amount of extra pixels added to the image preview to allow comfortable zooming
498
-
499
- // The module cache
500
-
501
- // The require function
502
-
503
- // The server api end points to use for uploading (see docs)
504
-
505
- // There's our APP1 Marker
506
-
507
- // This aint no JPEG
508
-
509
- // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
510
-
511
- // Try store file if `server` not set
512
-
513
- // Turn into an array of objects so no matter what the input, we can handle it the same way
514
-
515
- // Upload related
516
-
517
- // Use FileReader, problem is that the files property gets lost in the process
518
-
519
- // We check against the normal toString output and if they're the same return a comma when decimal separator is a dot
520
-
521
- // What file types to accept
522
-
523
- // Where to put file
524
-
525
- // [ https://github.com/nielsboogaard/filepond-plugin-get-file ]
526
-
527
- // [ https://pqina.nl/filepond/docs/api/plugins/file-metadata/ ]
528
-
529
- // [ https://pqina.nl/filepond/docs/api/plugins/file-validate-size/ ]
530
-
531
- // [ https://pqina.nl/filepond/docs/api/plugins/file-validate-type/ ]
532
-
533
- // [ https://pqina.nl/filepond/docs/api/plugins/image-crop/ ]
534
-
535
- // [ https://pqina.nl/filepond/docs/api/plugins/image-edit/ ]
536
-
537
- // [ https://pqina.nl/filepond/docs/api/plugins/image-exif-orientation/ ]
538
-
539
- // [ https://pqina.nl/filepond/docs/api/plugins/image-preview/ ]
540
-
541
- // [ https://pqina.nl/filepond/docs/api/plugins/image-resize/ ]
542
-
543
- // [ https://pqina.nl/filepond/docs/api/plugins/image-transform/ ]
544
-
545
- // [ https://pqina.nl/filepond/docs/api/plugins/image-validate-size/ ]
546
-
547
- // [-1, 0, 0, 1, width, 0]
548
-
549
- // [1, 0, 0, -1, 0, height]
550
-
551
- // _not_ getting the style value is faster
552
-
553
- // a completed upload will have a serverFileReference, a failed chunked upload where
554
-
555
- // a file is in error state
556
-
557
- // a new action happened, let's get the matching styles
558
-
559
- // abort
560
-
561
- // abort active process request
562
-
563
- // abort actual request
564
-
565
- // abort does not expect a value
566
-
567
- // abort file load
568
-
569
- // accepted is wildcard mime type
570
-
571
- // access to custom children references
572
-
573
- // access to data store
574
-
575
- // action handlers
576
-
577
- // actions in next write operation
578
-
579
- // active app instances, used to redraw the apps and to find the later
580
-
581
- // active processes
582
-
583
- // actual load is done let's share results
584
-
585
- // actual processing progress
586
-
587
- // add
588
-
589
- // add additional option translators
590
-
591
- // add already selected files
592
-
593
- // add as client
594
-
595
- // add class
596
-
597
- // add credits
598
-
599
- // add default output version if output default set to true or if no variants defined
600
-
601
- // add edit button to preview
602
-
603
- // add filters
604
-
605
- // add getters and setters
606
-
607
- // add headers
608
-
609
- // add height
610
-
611
- // add index no longer needed till possibly next draw
612
-
613
- // add initial listener
614
-
615
- // add it to the list for easy updating from the _write method
616
-
617
- // add item to array
618
-
619
- // add item to list
620
-
621
- // add items!
622
-
623
- // add metadata under same name
624
-
625
- // add mixin functionality
626
-
627
- // add name attribute
628
-
629
- // add new files
630
-
631
- // add one pixel leeway, when using percentages for item width total items can be 1.99 per row
632
-
633
- // add opacity
634
-
635
- // add original file
636
-
637
- // add plugin options to default options
638
-
639
- // add position attribute
640
-
641
- // add progress indicators
642
-
643
- // add resize transforms if set
644
-
645
- // add rest to sources
646
-
647
- // add transforms
648
-
649
- // add width
650
-
651
- // add!
652
-
653
- // adds a plugin extension
654
-
655
- // adjust for parent offset
656
-
657
- // adjust index if is not allowed to pick location
658
-
659
- // align next frame
660
-
661
- // all chunks
662
-
663
- // all done?
664
-
665
- // all is well
666
-
667
- // all items should be validated by all filters as valid
668
-
669
- // allow all other actions
670
-
671
- // allow editing
672
-
673
- // allow parsing of formdata
674
-
675
- // allow plugins to alter the file data
676
-
677
- // allow quick validation of dropped items
678
-
679
- // allow transfer of these items
680
-
681
- // already at target
682
-
683
- // already contained?
684
-
685
- // already has crop metadata set?
686
-
687
- // already queued for processing
688
-
689
- // already registered
690
-
691
- // also 0 is not a valid width or height
692
-
693
- // always remove the required attribute when more than zero items
694
-
695
- // always use jpg extension
696
-
697
- // an error was thrown while loading the file, we need to switch to error state
698
-
699
- // an input file never has a server file reference
700
-
701
- // and we've not yet called the complete method
702
-
703
- // animate view out of view
704
-
705
- // append additional margin (top and left margins are included in top and left automatically)
706
-
707
- // append created child views to root node
708
-
709
- // append crop data
710
-
711
- // append image presenter
712
-
713
- // append new elements to DOM and update those
714
-
715
- // append other props
716
-
717
- // append size data
718
-
719
- // append to DOM
720
-
721
- // applies all image transforms to the image data array
722
-
723
- // apply active styles to element
724
-
725
- // apply filtered colors
726
-
727
- // apply initial style properties
728
-
729
- // apply style properties
730
-
731
- // apply styles
732
-
733
- // apply view props
734
-
735
- // archive the item, this does not remove it from the list
736
-
737
- // as image load could take a while and fire when draw loop is resting we need to give it a kick
738
-
739
- // as revert will remove file from list
740
-
741
- // as we're now processing, fire the progress event
742
-
743
- // as we've now loaded the file the loader is no longer required
744
-
745
- // assign new value
746
-
747
- // assistive only
748
-
749
- // attach events
750
-
751
- // available height for list
752
-
753
- // available space on horizontal axis
754
-
755
- // background image of the output canvas
756
-
757
- // bool to indicate if we're full or not
758
-
759
- // build action object
760
-
761
- // build plugin
762
-
763
- // busy processing or loading
764
-
765
- // by default not marked for removal
766
-
767
- // by default we can drop
768
-
769
- // calculate available space round image center position
770
-
771
- // calculate average image color, disabled for now
772
-
773
- // calculate height based on width
774
-
775
- // calculate inner width and height
776
-
777
- // calculate new heights and widths
778
-
779
- // calculate outer width and height
780
-
781
- // calculate progress values
782
-
783
- // calculate scalar required to fit image
784
-
785
- // calculate scaled preview image size
786
-
787
- // calculate size of ring
788
-
789
- // calculate spring force
790
-
791
- // calculate total progress fraction
792
-
793
- // call
794
-
795
- // call did create
796
-
797
- // call initial filter, will return a promise
798
-
799
- // call read (need to know the size of these elements)
800
-
801
- // callbacks (load, error, progress, abort, transfer)
802
-
803
- // called before creating the blob, receives canvas, expects promise resolve with canvas
804
-
805
- // called for each file that is loaded
806
-
807
- // called for each view that is created right after the 'create' method
808
-
809
- // called when file has loaded succesfully
810
-
811
- // called when the file is about to be processed so it can be piped through the transform filters
812
-
813
- // called when the file is loaded so it can be piped through the filters
814
-
815
- // can always assign default value
816
-
817
- // can now safely remove from view
818
-
819
- // can update progress indicator
820
-
821
- // can't add twice
822
-
823
- // can't compute progress
824
-
825
- // can't draw on half pixels
826
-
827
- // can't upscale image, so if already at correct scale, exit
828
-
829
- // cancel updater
830
-
831
- // cannot revert without a server id for this process
832
-
833
- // canvas memory limit
834
-
835
- // chain filters
836
-
837
- // check if file should be filtered
838
-
839
- // checkmark
840
-
841
- // classname to put on wrapper
842
-
843
- // clean up
844
-
845
- // clean up event
846
-
847
- // clear
848
-
849
- // clear actions queue (we don't want no double actions)
850
-
851
- // clear field value
852
-
853
- // clear group after set amount of time so the status is not read twice
854
-
855
- // clear history if aspect ratio has changed
856
-
857
- // click link (will then in turn activate file input)
858
-
859
- // collected some meta data already
860
-
861
- // compare old value against new value, if they're the same, we're not updating
862
-
863
- // const children = view.childViews;
864
-
865
- // construct private api
866
-
867
- // continue processing
868
-
869
- // continue with the unaltered dataset
870
-
871
- // copy Buttons object
872
-
873
- // copy relative path
874
-
875
- // copy relevant props
876
-
877
- // correct image orientation
878
-
879
- // correctly removed
880
-
881
- // covering target size
882
-
883
- // create
884
-
885
- // create a dnd client
886
-
887
- // create a new blank item
888
-
889
- // create a temporary hyperlink to force the browser to download the file
890
-
891
- // create actual api object
892
-
893
- // create button
894
-
895
- // create copy of actions queue
896
-
897
- // create default event
898
-
899
- // create element with svg and get size
900
-
901
- // create event object to be dispatched
902
-
903
- // create fallback preview
904
-
905
- // create file info view
906
-
907
- // create file status view
908
-
909
- // create final options object by setting options object and then overriding options supplied on element
910
-
911
- // create method, creates apps and adds them to the app array
912
-
913
- // create new instance for each hook
914
-
915
- // create new observer, does not yet exist for this element
916
-
917
- // create new svg file
918
-
919
- // create overlay view
920
-
921
- // create perceived performance progress indicator
922
-
923
- // create regexp shortcut
924
-
925
- // create request
926
-
927
- // create response
928
-
929
- // create the button views
930
-
931
- // create the first image
932
-
933
- // create the get file plugin
934
-
935
- // create the image edit plugin, but only do so if the item is an image
936
-
937
- // create the image preview plugin, but only do so if the item is an image
938
-
939
- // create the label and link it to the file browser
940
-
941
- // create the view
942
-
943
- // created the item, let plugins add methods
944
-
945
- // crop data to pass to editor
946
-
947
- // current active styles
948
-
949
- // current drag position
950
-
951
- // current item status
952
-
953
- // custom handler (should also handle file, load, error, progress and abort)
954
-
955
- // custom initial files array
956
-
957
- // custom type detector method
958
-
959
- // data has been transferred to canvas ( if was ImageBitmap )
960
-
961
- // data has moved to data.js
962
-
963
- // default is single definition
964
-
965
- // default options
966
-
967
- // default start height
968
-
969
- // default values
970
-
971
- // default view definition
972
-
973
- // define getter/value functions for harmony exports
974
-
975
- // define new active styles
976
-
977
- // delete root.element.dataset.disabled; <= this does not work on iOS 10
978
-
979
- // destroy client
980
-
981
- // destroy measure element
982
-
983
- // destroy view
984
-
985
- // destroy worker
986
-
987
- // destroys apps and removes them from the app array
988
-
989
- // determine clip width and height
990
-
991
- // determine if file type will change
992
-
993
- // determine if width changed
994
-
995
- // determine image size of this item
996
-
997
- // determine the format of the blob that we will output
998
-
999
- // determines if a file may be dropped
1000
-
1001
- // different amount of keys
1002
-
1003
- // directories are returned in batches, we need to process all batches before we're done
1004
-
1005
- // disable the field
1006
-
1007
- // dispatch destroy
1008
-
1009
- // dispatch set event for each option
1010
-
1011
- // do local or remote request based on if the url is external
1012
-
1013
- // do mapping of object properties
1014
-
1015
- // do submapping
1016
-
1017
- // doesn't need CSSSupports but is a good way to detect Safari 9+ (we do want to support IE11 though)
1018
-
1019
- // dom modifiers
1020
-
1021
- // don't do anything
1022
-
1023
- // don't do anything while hidden
1024
-
1025
- // don't handle archived items, an item could have been archived (load aborted) while being prepared
1026
-
1027
- // don't handle archived items, an item could have been archived (load aborted) while waiting to be prepared
1028
-
1029
- // don't include in object
1030
-
1031
- // don't re-render if optimizing or hidden (width will be zero resulting in weird animations)
1032
-
1033
- // don't set error state when reverting is optional, it will always resolve
1034
-
1035
- // don't update clip layout
1036
-
1037
- // don't want to click twice
1038
-
1039
- // done
1040
-
1041
- // done (filter out empty files)!
1042
-
1043
- // done loading
1044
-
1045
- // done!
1046
-
1047
- // dont adjust height
1048
-
1049
- // dragging
1050
-
1051
- // draw image
1052
-
1053
- // draw new
1054
-
1055
- // draw the image
1056
-
1057
- // draw the image but first fix orientation and set correct flip
1058
-
1059
- // draw the scaled down version here and use that as source so bitmapdata can be closed
1060
-
1061
- // draw to canvas and start transform chain
1062
-
1063
- // each view requires reference to store
1064
-
1065
- // edit item classname
1066
-
1067
- // editor object
1068
-
1069
- // enable or disable image cropping
1070
-
1071
- // enable or disable image editing
1072
-
1073
- // encode url
1074
-
1075
- // error during load
1076
-
1077
- // error is expected to be an object with type, code, body
1078
-
1079
- // error labels
1080
-
1081
- // error response if item archived
1082
-
1083
- // eslint-disable-next-line no-restricted-globals
1084
-
1085
- // event behaviour
1086
-
1087
- // event handlers
1088
-
1089
- // event info
1090
-
1091
- // event object to params used for `on()` event handlers and callbacks `oninit()`
1092
-
1093
- // exit
1094
-
1095
- // exit if image size is too high and no createImageBitmap support
1096
-
1097
- // exit if this is not an image
1098
-
1099
- // expand rect to fit all child rectangles
1100
-
1101
- // expects promise resolved with blob
1102
-
1103
- // expose
1104
-
1105
- // expose api
1106
-
1107
- // expose internal write api
1108
-
1109
- // expose plugin
1110
-
1111
- // expose public api
1112
-
1113
- // extend item methods
1114
-
1115
- // extract files and move value of webkitRelativePath path to _relativePath
1116
-
1117
- // fallback
1118
-
1119
- // file appended
1120
-
1121
- // file is always section
1122
-
1123
- // file is fine, let's pass it back
1124
-
1125
- // file load progress
1126
-
1127
- // file mock data, if defined
1128
-
1129
- // file model reference
1130
-
1131
- // file panel
1132
-
1133
- // file received
1134
-
1135
- // file states
1136
-
1137
- // file stub is already there
1138
-
1139
- // file to open
1140
-
1141
- // file view
1142
-
1143
- // filename
1144
-
1145
- // files uploading at the exact same speed
1146
-
1147
- // filesize
1148
-
1149
- // filter images to transform
1150
-
1151
- // filter out invalid file items, used to filter dropped directory contents
1152
-
1153
- // filtering if an item is allowed in hopper
1154
-
1155
- // filters file items to determine which are shown as preview
1156
-
1157
- // find Orientation tag
1158
-
1159
- // find matching filters for this key
1160
-
1161
- // find resize
1162
-
1163
- // finish up
1164
-
1165
- // fire enter event
1166
-
1167
- // fire event
1168
-
1169
- // fire loaded event so we know when FilePond is available
1170
-
1171
- // fire pluginloaded event if running in browser, this allows registering the plugin when using async script tags
1172
-
1173
- // fire the abort event so we can switch visuals
1174
-
1175
- // fire update
1176
-
1177
- // first filter to kick things of
1178
-
1179
- // fix height of panel
1180
-
1181
- // fix height of panel so it adheres to aspect ratio
1182
-
1183
- // fixed aspect ratio
1184
-
1185
- // fixed height
1186
-
1187
- // flatten groups
1188
-
1189
- // flexible height
1190
-
1191
- // flip horizontal
1192
-
1193
- // flip vertical
1194
-
1195
- // for IE10
1196
-
1197
- // for async scenarios
1198
-
1199
- // for example: if distance is 10 ms and interval is 16 ms,
1200
-
1201
- // for modern browsers
1202
-
1203
- // for now, update existing image when filtering
1204
-
1205
- // force progress to 1 as we're now done
1206
-
1207
- // force release of canvas memory
1208
-
1209
- // found the orientation tag
1210
-
1211
- // full path to remote server is stored in metadata with key 'url'
1212
-
1213
- // get a quick reference to the item id
1214
-
1215
- // get all actions from store
1216
-
1217
- // get all keys passed
1218
-
1219
- // get arc path
1220
-
1221
- // get base transformation matrix
1222
-
1223
- // get box bounds, we do this only once
1224
-
1225
- // get child rects
1226
-
1227
- // get crop
1228
-
1229
- // get data from canvas
1230
-
1231
- // get default object and add as metadata
1232
-
1233
- // get drag area dimensions
1234
-
1235
- // get element at position
1236
-
1237
- // get exif orientation
1238
-
1239
- // get file reference
1240
-
1241
- // get file url
1242
-
1243
- // get filename
1244
-
1245
- // get filename parts
1246
-
1247
- // get filter
1248
-
1249
- // get headers
1250
-
1251
- // get height min and max
1252
-
1253
- // get id reference
1254
-
1255
- // get image data reference
1256
-
1257
- // get image transform variants
1258
-
1259
- // get interaction type
1260
-
1261
- // get item
1262
-
1263
- // get item children elements and sort based on list sort
1264
-
1265
- // get item reference
1266
-
1267
- // get last added image
1268
-
1269
- // get new index
1270
-
1271
- // get new index of dragged item
1272
-
1273
- // get next chunk to process
1274
-
1275
- // get optional custom measure function
1276
-
1277
- // get orientation from exif data
1278
-
1279
- // get other variants
1280
-
1281
- // get quick reference
1282
-
1283
- // get quick reference to Type utils
1284
-
1285
- // get quick references to various high level parts of the upload tool
1286
-
1287
- // get reference to control
1288
-
1289
- // get reference to created view
1290
-
1291
- // get required dimensions
1292
-
1293
- // get root
1294
-
1295
- // get separate options for easier use
1296
-
1297
- // get subtype
1298
-
1299
- // get svg text
1300
-
1301
- // get the file object
1302
-
1303
- // get the required aspect ratio and exit if it's not set
1304
-
1305
- // get the transfer items as promises
1306
-
1307
- // get the type of the new value
1308
-
1309
- // get title
1310
-
1311
- // get url to file (we'll revoke it later on when done)
1312
-
1313
- // get variants
1314
-
1315
- // get width and height from action, and swap of orientation is incorrect
1316
-
1317
- // get width of stroke
1318
-
1319
- // getDefaultExport function for compatibility with non-harmony modules
1320
-
1321
- // gets the item type
1322
-
1323
- // getting a serverId succeeded but >=0 chunks have been uploaded will have transferId set
1324
-
1325
- // go
1326
-
1327
- // go!
1328
-
1329
- // grid
1330
-
1331
- // grid pattern
1332
-
1333
- // group under single property
1334
-
1335
- // had no previous state, means we are entering this client
1336
-
1337
- // handle changes to the input field
1338
-
1339
- // handle interactions
1340
-
1341
- // handle item
1342
-
1343
- // handle keys
1344
-
1345
- // handle next item!
1346
-
1347
- // handle transform origin
1348
-
1349
- // has returned new filename immidiately
1350
-
1351
- // has timeout so doesn't interfere with remove action
1352
-
1353
- // hide for screenreaders
1354
-
1355
- // hide label
1356
-
1357
- // hide the label for screenreaders, the input element will read the contents of the label when it's focussed. If we don't set aria-hidden the screenreader will also navigate the contents of the label separately from the input.
1358
-
1359
- // hide while contains 0 value
1360
-
1361
- // history of updates
1362
-
1363
- // hooks
1364
-
1365
- // how attributes of the input element are mapped to the options for the plugin
1366
-
1367
- // https://github.com/pqina/filepond-plugin-image-preview/issues/57
1368
-
1369
- // id of file on server
1370
-
1371
- // id of file transfer on server
1372
-
1373
- // id of first item we're about to remove
1374
-
1375
- // id we are allowed to upload the file immediately, lets do it
1376
-
1377
- // if action has an id, filter out actions that don't have this child id
1378
-
1379
- // if allows multiple items, we check if a max item count has been set, if not, there's no limit
1380
-
1381
- // if already at target, we done!
1382
-
1383
- // if already done processing or tried to revert but didn't work, try again
1384
-
1385
- // if aspect ratio has changed, we need to create a new image
1386
-
1387
- // if blob has name property, use as filename if no filename supplied
1388
-
1389
- // if cannot have multiple items, to add one item it should currently not contain items
1390
-
1391
- // if chunked uploads are enabled and we're uploading in chunks for this specific file
1392
-
1393
- // if client want to download file from remote server
1394
-
1395
- // if currently has no position, set target and position to this value
1396
-
1397
- // if currently overflowing but no longer received overflow
1398
-
1399
- // if currently uploading, cancel upload
1400
-
1401
- // if does not allow multiple items and dragging more than one item
1402
-
1403
- // if fake progress is done, and a response has been received,
1404
-
1405
- // if file is already in list
1406
-
1407
- // if file was uploaded but processing was cancelled during perceived processor time store file reference
1408
-
1409
- // if filename supplied but no extension and filename has extension
1410
-
1411
- // if has been processed remove it from the server as well
1412
-
1413
- // if has filter and has resize, move filter to resize operation
1414
-
1415
- // if has received blob, we go with blob, if no response, we return null
1416
-
1417
- // if has received source, we done
1418
-
1419
- // if has response object, we've completed the request
1420
-
1421
- // if image is too small, exit here with original image
1422
-
1423
- // if index is undefined, append
1424
-
1425
- // if is a temp server file we prevent async upload call here (as the file is already on the server)
1426
-
1427
- // if is base64 data uri we need to determine the average size and type
1428
-
1429
- // if is bool withCredentials
1430
-
1431
- // if is called multiple times in close succession we combined all calls together to save resources
1432
-
1433
- // if is cross origin image add cross origin attribute
1434
-
1435
- // if is custom function, done! Dev handles everything.
1436
-
1437
- // if is empty, see if we can extract some info from the files property as a fallback
1438
-
1439
- // if is fixed height or panel has aspect ratio, exit here, height has already been defined
1440
-
1441
- // if is frozen, no longer fires events
1442
-
1443
- // if is hidden we need to know so we exit rest mode when revealed
1444
-
1445
- // if is local item we need to enable upload button so change can be propagated to server
1446
-
1447
- // if is not overflowing currently but does receive overflow value
1448
-
1449
- // if is pasting in input or textarea and the target is outside of a filepond scope, ignore
1450
-
1451
- // if is possible error event, make it the first param
1452
-
1453
- // if is requesting revert and can revert need to call revert handler (not calling request_ because that would also trigger beforeRemoveHook)
1454
-
1455
- // if is rotated incorrectly swap width and height
1456
-
1457
- // if is temp or local file
1458
-
1459
- // if is valid subtype
1460
-
1461
- // if is value in kilobytes
1462
-
1463
- // if is value in megabytes
1464
-
1465
- // if item not is in new value, remove
1466
-
1467
- // if item was archived while in queue, jump to next
1468
-
1469
- // if method is GET, add any received data to url
1470
-
1471
- // if multiple allowed, we can't replace
1472
-
1473
- // if new styles does not match current styles, lets update!
1474
-
1475
- // if no actions, we assume that the view is resting
1476
-
1477
- // if no extension supplied, exit here
1478
-
1479
- // if no file loaded we'll wait for the load event
1480
-
1481
- // if no more clients, clean up observer
1482
-
1483
- // if no source supplied
1484
-
1485
- // if no view found, exit
1486
-
1487
- // if no width or height, just return early.
1488
-
1489
- // if not allowed to reorder file items, exit here
1490
-
1491
- // if not allowed, all fine, exit
1492
-
1493
- // if not in list, remove from object, the instruction will be handled by the server
1494
-
1495
- // if not supported, no API
1496
-
1497
- // if not, we can update the current image
1498
-
1499
- // if one of edges is smaller than target size, exit
1500
-
1501
- // if only passed options
1502
-
1503
- // if origin is local, and we're instant uploading, trigger remove of original
1504
-
1505
- // if parent is a fieldset, get files from parent by selecting all input fields that are not file upload fields
1506
-
1507
- // if perceived progress is 1 ( wait for perceived progress to complete )
1508
-
1509
- // if query is item, get the id
1510
-
1511
- // if reached max capacity and we've just reached it
1512
-
1513
- // if resting, no need to read as numbers will still all be correct
1514
-
1515
- // if root is not actual shadow DOM and does not have elementFromPoint method, use the one on document
1516
-
1517
- // if single file object in array, return the single file object else, return array of
1518
-
1519
- // if size can't be read this browser doesn't support image
1520
-
1521
- // if size is available don't fallback to unknown size message
1522
-
1523
- // if state.progress is null, the server does not allow computing progress and we show the spinner instead
1524
-
1525
- // if the file cannot be edited it should be removed on revert
1526
-
1527
- // if the file is not an image we do not have any business transforming it
1528
-
1529
- // if the index of the item changed, dispatch reorder action
1530
-
1531
- // if the item is a url we guess the mime type by the extension
1532
-
1533
- // if there's a mapping, the original property is always removed
1534
-
1535
- // if this action has a handler, handle the action
1536
-
1537
- // if this file is editable it shouldn't be removed immidiately even when instant uploading
1538
-
1539
- // if this is a local file and the `server.remove` function has been configured,
1540
-
1541
- // if this is a local server file we need to show a different state
1542
-
1543
- // if this is a progress event add the progress amount
1544
-
1545
- // if this is an svg and we want it to stay an svg
1546
-
1547
- // if this is not a jpeg image we are not interested
1548
-
1549
- // if this is not an image we do not have any business cropping it
1550
-
1551
- // if this is not an image we do not have any business cropping it and we'll continue with the unaltered dataset
1552
-
1553
- // if true uploads take at least 750 ms, this ensures the user sees the upload progress giving trust the upload actually happened
1554
-
1555
- // if was archived in the mean time, don't process
1556
-
1557
- // if was idling and no actions stop here
1558
-
1559
- // if was not queued or is already processing exit here
1560
-
1561
- // if was passed a file, and we can chunk it, exit here
1562
-
1563
- // if we already have a server file reference, we don't need to call the onload method
1564
-
1565
- // if we are not doing file type validation exit
1566
-
1567
- // if we can't compute progress, we're not going to fire progress events
1568
-
1569
- // if we reach zero, we make the element inaccessible
1570
-
1571
- // if we should re-upload the file immediately
1572
-
1573
- // if we support scaling using createImageBitmap we use a worker
1574
-
1575
- // if we're below 100% opacity this element can't be clicked
1576
-
1577
- // if we're filtering on element we need to be over the element to drop
1578
-
1579
- // if we're full we need to leave some room between the top of the panel and the list
1580
-
1581
- // if we're instant uploading the file will also be removed if we revert,
1582
-
1583
- // if we're not modifying the image data then we don't have to modify the output
1584
-
1585
- // image aspect ratio
1586
-
1587
- // image bin
1588
-
1589
- // image is already perfect size, no transformations required
1590
-
1591
- // image overlays
1592
-
1593
- // image preview stated
1594
-
1595
- // image view
1596
-
1597
- // image/* -> image
1598
-
1599
- // in a Web Worker so we detect those versions and return false for support
1600
-
1601
- // in rest, don't animate
1602
-
1603
- // information on the root height or fixed height status
1604
-
1605
- // initial properties
1606
-
1607
- // initial props
1608
-
1609
- // initial state (should be serializable)
1610
-
1611
- // input field name to use
1612
-
1613
- // input, if is remote, see if should use custom fetch, else use default fetchBlob
1614
-
1615
- // insert the app before the element
1616
-
1617
- // internal handler
1618
-
1619
- // internal implementation
1620
-
1621
- // invalid queries
1622
-
1623
- // is a single url
1624
-
1625
- // is aborted
1626
-
1627
- // is archived
1628
-
1629
- // is blob or base64, then we need to set the name
1630
-
1631
- // is blocking action (should never block if document is hidden)
1632
-
1633
- // is classified as valid response
1634
-
1635
- // is client error, no way to recover
1636
-
1637
- // is custom implementation
1638
-
1639
- // is explicitely set to null so disable
1640
-
1641
- // is in bytes
1642
-
1643
- // is in try catch as IE11 will throw error if not
1644
-
1645
- // is initial value
1646
-
1647
- // is natural file size
1648
-
1649
- // is normal mime type
1650
-
1651
- // is now hopper scope
1652
-
1653
- // is possible server error, so might be possible to retry
1654
-
1655
- // is promise
1656
-
1657
- // is remote url and no fetch method supplied
1658
-
1659
- // is string input, let's attempt to convert
1660
-
1661
- // is svg subtype
1662
-
1663
- // is the field required
1664
-
1665
- // is valid type?
1666
-
1667
- // it outside of this method
1668
-
1669
- // item could theoretically have been removed in the mean time
1670
-
1671
- // item has been successfully loaded and added to the
1672
-
1673
- // item loaded, allow plugins to
1674
-
1675
- // just bytes
1676
-
1677
- // just return first index
1678
-
1679
- // key does not exist, so this option cannot be set
1680
-
1681
- // kick thread if visibility changes
1682
-
1683
- // kilobytes
1684
-
1685
- // label to show when a type is not allowed
1686
-
1687
- // let element
1688
-
1689
- // let interface know the item has loaded
1690
-
1691
- // let others know we have area ready
1692
-
1693
- // let parent know if we are resting
1694
-
1695
- // let plugins decide if the output data should be prepared at this point
1696
-
1697
- // let start moving to target
1698
-
1699
- // let view know the item has been inserted
1700
-
1701
- // let's get the item width
1702
-
1703
- // let's go!
1704
-
1705
- // let's process the file
1706
-
1707
- // let's replace the item
1708
-
1709
- // let's scale the image in a worker
1710
-
1711
- // let's scale the image in the main thread :(
1712
-
1713
- // let's send our data
1714
-
1715
- // let's start processing
1716
-
1717
- // lets analyze the individual props
1718
-
1719
- // limbo or local
1720
-
1721
- // limit fps
1722
-
1723
- // limit max items to one if not allowed to drop multiple items
1724
-
1725
- // limit the index to the size of the items array
1726
-
1727
- // link list to label bottom position
1728
-
1729
- // list of items so can now be safely returned for use
1730
-
1731
- // load blob contents and wrap in crop svg
1732
-
1733
- // load expects the body to be a server id if
1734
-
1735
- // load file
1736
-
1737
- // load files
1738
-
1739
- // load successful
1740
-
1741
- // load the source data
1742
-
1743
- // location of processing button
1744
-
1745
- // look in meta data property
1746
-
1747
- // loop over all styles for this control
1748
-
1749
- // loop over items and depending on states call abort for ongoing processes
1750
-
1751
- // loop over promises passing value to next promise
1752
-
1753
- // main status
1754
-
1755
- // make sure all bounds are set
1756
-
1757
- // make sure is default scale every frame
1758
-
1759
- // make sure width and height plus viewpox are even numbers so icons are nicely centered
1760
-
1761
- // map all items in a possible items array
1762
-
1763
- // map mime types to extensions
1764
-
1765
- // map values to file objects
1766
-
1767
- // maps transform types to transform functions
1768
-
1769
- // margins will be added after we've recalculated the size
1770
-
1771
- // mark chunks with lower offset as complete
1772
-
1773
- // mark for removal
1774
-
1775
- // markup
1776
-
1777
- // max-height
1778
-
1779
- // maximum size of JPEG, fine for now I guess
1780
-
1781
- // means we'll do this and wait for idle state
1782
-
1783
- // megabytes
1784
-
1785
- // merge with options object
1786
-
1787
- // might have just left this client?
1788
-
1789
- // model
1790
-
1791
- // move credits to bottom
1792
-
1793
- // move remove button to right
1794
-
1795
- // move styles to the back of the mixin list (so adjustments of other mixins are applied to the props correctly)
1796
-
1797
- // move to back of execution queue, FilePond should have been exported by then
1798
-
1799
- // move to draw offset
1800
-
1801
- // move to group
1802
-
1803
- // move value to new property
1804
-
1805
- // moves element to correct position on screen
1806
-
1807
- // necessary for update loop
1808
-
1809
- // need at least a target or position to do springy things
1810
-
1811
- // need at least a width or a height
1812
-
1813
- // need this id to be able to rever the upload
1814
-
1815
- // need this id to be able to revert the upload
1816
-
1817
- // need to know the current child count so appending happens in correct order
1818
-
1819
- // need to set role to list as otherwise it won't be read as a list by VoiceOver
1820
-
1821
- // needs to allow transfer
1822
-
1823
- // needs to be at least one pixel
1824
-
1825
- // needs to be trigger directly as user action needs to be traceable (is not traceable in requestAnimationFrame)
1826
-
1827
- // new retry
1828
-
1829
- // next byte!
1830
-
1831
- // next target value will not be animated to
1832
-
1833
- // nicer label
1834
-
1835
- // no EXIF info defined
1836
-
1837
- // no action supplied
1838
-
1839
- // no action supplied, return stub function, interface will work, but file won't be removed
1840
-
1841
- // no bitmap returned, must be something wrong,
1842
-
1843
- // no children, done!
1844
-
1845
- // no chunk to handle
1846
-
1847
- // no custom measure method supplied, exit here
1848
-
1849
- // no data to add
1850
-
1851
- // no data!
1852
-
1853
- // no editor defined, then exit
1854
-
1855
- // no file received
1856
-
1857
- // no files received
1858
-
1859
- // no height, can't set
1860
-
1861
- // no images to update, exit
1862
-
1863
- // no item found, exit
1864
-
1865
- // no items left
1866
-
1867
- // no longer busy
1868
-
1869
- // no longer required
1870
-
1871
- // no match, skip
1872
-
1873
- // no module.id needed
1874
-
1875
- // no module.loaded needed
1876
-
1877
- // no more chunks to process
1878
-
1879
- // no more retries left
1880
-
1881
- // no need to handle this catch state for now
1882
-
1883
- // no need to read it twice
1884
-
1885
- // no need to set container bounds as these are handles by CSS fixed height
1886
-
1887
- // no need to set same state twice
1888
-
1889
- // no need to transform, exit
1890
-
1891
- // no negative byte sizes
1892
-
1893
- // no orientation supplied
1894
-
1895
- // no preview view attached
1896
-
1897
- // no process controls available
1898
-
1899
- // no progress event when aborted ( onprogress is called once after abort() )
1900
-
1901
- // no request running, can't abort
1902
-
1903
- // no resizing to be done
1904
-
1905
- // no server id, let's give this file the full treatment
1906
-
1907
- // no server response
1908
-
1909
- // no should not add this file
1910
-
1911
- // no transfer for this client
1912
-
1913
- // no transforms necessary, we done!
1914
-
1915
- // no type detector, test now
1916
-
1917
- // no types defined, everything is allowed \o/
1918
-
1919
- // no valid conversions found
1920
-
1921
- // no value, no need to reset
1922
-
1923
- // nope nope nope (probably IE trouble)
1924
-
1925
- // nope, failed
1926
-
1927
- // not a fixed height panel
1928
-
1929
- // not busy
1930
-
1931
- // not in list, add
1932
-
1933
- // not instant uploading, revert immediately
1934
-
1935
- // not interesting in these states ('unsent' and 'openend' as they don't give us any additional info)
1936
-
1937
- // not ready to be processed
1938
-
1939
- // not tweening to a smaller value
1940
-
1941
- // notify listeners of received files
1942
-
1943
- // now add action
1944
-
1945
- // now dispatch these actions
1946
-
1947
- // now idling
1948
-
1949
- // now in busy mode
1950
-
1951
- // now interested in metadata updates
1952
-
1953
- // now over element (no matter if it allows the drop or not)
1954
-
1955
- // now processing
1956
-
1957
- // now processing this chunk
1958
-
1959
- // now ready
1960
-
1961
- // now resting as target is current position, stop moving
1962
-
1963
- // now the list has been modified
1964
-
1965
- // null 'integrated', 'compact', 'circle'
1966
-
1967
- // null or '3:2' or 1
1968
-
1969
- // null, 'image/jpeg', 'image/png'
1970
-
1971
- // null, 0 - 100
1972
-
1973
- // observe item events
1974
-
1975
- // offset
1976
-
1977
- // offset bottom part
1978
-
1979
- // offset center part
1980
-
1981
- // oh no errors
1982
-
1983
- // on(type, () => { })
1984
-
1985
- // oninit = () => {}
1986
-
1987
- // only apply output quality when a transform is required
1988
-
1989
- // only apply transforms in this list
1990
-
1991
- // only filter and crop trigger redraw
1992
-
1993
- // only hook up to item view
1994
-
1995
- // only hook up to item view and only if is enabled for this cropper
1996
-
1997
- // only remove process button
1998
-
1999
- // only remove revert button
2000
-
2001
- // only revert and attempt to upload when we're uploading to a server
2002
-
2003
- // only run for either the file or the file info panel
2004
-
2005
- // only source is available, else add item if possible
2006
-
2007
- // only used when can be dropped on page
2008
-
2009
- // open editor when image is dropped
2010
-
2011
- // open editor when loading a new item
2012
-
2013
- // open up open up!
2014
-
2015
- // opens the editor, if it does not already exist, it creates the editor
2016
-
2017
- // options
2018
-
2019
- // or if only a single item is allowed but we're not allowed to replace it we exit
2020
-
2021
- // or if server does not support progress ( null )
2022
-
2023
- // or if the file isn't big enough for chunked uploads but chunkForce is set then call
2024
-
2025
- // orientation info
2026
-
2027
- // original source
2028
-
2029
- // output format (quality 0 => 100)
2030
-
2031
- // override defaults
2032
-
2033
- // override rect on internal and external rect getter so it takes in account transforms
2034
-
2035
- // overwrite
2036
-
2037
- // parses the given context for plugins (does not include the context element itself)
2038
-
2039
- // pass back to item so we can use it if something goes wrong
2040
-
2041
- // plugins determined the output data should be prepared (or not), can be adjusted with beforePrepareOutput hook
2042
-
2043
- // prevent scrolling and zooming on iOS (only if supports pointer events, for then we can enable reorder)
2044
-
2045
- // process file!
2046
-
2047
- // process queued item
2048
-
2049
- // process queueud items
2050
-
2051
- // processing is paused, wait here
2052
-
2053
- // processing was aborted
2054
-
2055
- // processing went wrong earlier
2056
-
2057
- // progress of load
2058
-
2059
- // progress update
2060
-
2061
- // props
2062
-
2063
- // quality set
2064
-
2065
- // queries
2066
-
2067
- // query is index
2068
-
2069
- // queue and wait till queue is freed up
2070
-
2071
- // queue for later processing
2072
-
2073
- // queue next tick
2074
-
2075
- // queue of items waiting to be processed
2076
-
2077
- // queue till next frame so we're sure the height has been applied this forces the draw image call inside the wrapper view to use the correct height
2078
-
2079
- // quickly append input to temp form and reset form
2080
-
2081
- // random delay as in a list of files you start noticing
2082
-
2083
- // re-call write
2084
-
2085
- // re-inject image head in case of JPEG, as the image head is removed by canvas export
2086
-
2087
- // re-inject input where it originally was
2088
-
2089
- // re-render on window resize start and finish
2090
-
2091
- // read as file
2092
-
2093
- // read child views
2094
-
2095
- // read first batch of files
2096
-
2097
- // read view data
2098
-
2099
- // readers
2100
-
2101
- // recursively read more directories
2102
-
2103
- // register plugins
2104
-
2105
- // register the id for this transfer
2106
-
2107
- // register transfer id
2108
-
2109
- // reject or resolve based on file size
2110
-
2111
- // reject the file so can be dealt with through API
2112
-
2113
- // release canvas
2114
-
2115
- // remember dimensions
2116
-
2117
- // remember original element
2118
-
2119
- // remember request so we can abort it later
2120
-
2121
- // remember the original item source
2122
-
2123
- // remember this plugin
2124
-
2125
- // remember this width
2126
-
2127
- // remove all process buttons
2128
-
2129
- // remove any whitespace as that causes InvalidCharacterError in IE
2130
-
2131
- // remove client
2132
-
2133
- // remove filter
2134
-
2135
- // remove first item as it will be replaced by this item
2136
-
2137
- // remove from child views
2138
-
2139
- // remove generic headers from api object
2140
-
2141
- // remove image head (default)
2142
-
2143
- // remove item
2144
-
2145
- // remove last button (revert) if not allowed
2146
-
2147
- // remove our element
2148
-
2149
- // remove process if no url or process on outline
2150
-
2151
- // remove reference
2152
-
2153
- // remove request reference
2154
-
2155
- // remove the element
2156
-
2157
- // remove the original element
2158
-
2159
- // remove these views
2160
-
2161
- // remove unwanted
2162
-
2163
- // removed from view
2164
-
2165
- // rename the original filename to match the mime type of the output image
2166
-
2167
- // render initial view
2168
-
2169
- // replace source and file object
2170
-
2171
- // replace the target element
2172
-
2173
- // request aborted
2174
-
2175
- // request bounding box dimensions
2176
-
2177
- // request destruction
2178
-
2179
- // request item removal
2180
-
2181
- // request timeout
2182
-
2183
- // request update to panel height
2184
-
2185
- // reset abort callback
2186
-
2187
- // reset file server id and transfer id as now it's not available on the server
2188
-
2189
- // reset input, it's just for exposing a method to drop files, should not retain any state
2190
-
2191
- // reset overflow state
2192
-
2193
- // resize the item panel
2194
-
2195
- // resolve now
2196
-
2197
- // resolves with supplied blob
2198
-
2199
- // restore original dom element
2200
-
2201
- // restore original element
2202
-
2203
- // return an array of files { name:'name', file:File }
2204
-
2205
- // return data
2206
-
2207
- // return new options
2208
-
2209
- // return removeListener function
2210
-
2211
- // return the File object
2212
-
2213
- // return the plugin instance
2214
-
2215
- // returns an app based on the given element hook
2216
-
2217
- // returns the current option value
2218
-
2219
- // returns true if the app was destroyed successfully
2220
-
2221
- // reveal element
2222
-
2223
- // reveal the preview image
2224
-
2225
- // revert before removing from the view...
2226
-
2227
- // revert the upload (fire and forget)
2228
-
2229
- // right before it is set to the item state
2230
-
2231
- // root element should not be changed
2232
-
2233
- // rotate
2234
-
2235
- // route actions
2236
-
2237
- // rows are used to find when we have left the preview area bounding box
2238
-
2239
- // run mixins
2240
-
2241
- // scale
2242
-
2243
- // scale canvas based on pixel density
2244
-
2245
- // scale center part
2246
-
2247
- // scale up width and height when we're dealing with an SVG
2248
-
2249
- // see if already exists, if so, return
2250
-
2251
- // see if item has been removed
2252
-
2253
- // see if props have changed
2254
-
2255
- // see if should reformat headers;
2256
-
2257
- // select
2258
-
2259
- // select last state change action
2260
-
2261
- // send request object
2262
-
2263
- // send source there so dev can remove file from server
2264
-
2265
- // send to the transform worker to transform the blob on a separate thread
2266
-
2267
- // set (possibly) transformed file
2268
-
2269
- // set a stub file object while loading the actual data
2270
-
2271
- // set animator target
2272
-
2273
- // set as active loader
2274
-
2275
- // set as active processor
2276
-
2277
- // set configurable props
2278
-
2279
- // set container bounds (so pushes siblings downwards)
2280
-
2281
- // set credentials
2282
-
2283
- // set current state
2284
-
2285
- // set default FilePond options and add bridge once
2286
-
2287
- // set default crop rectangle
2288
-
2289
- // set default options
2290
-
2291
- // set field value
2292
-
2293
- // set file object
2294
-
2295
- // set filters and colors so we can restore them when re-editing the image
2296
-
2297
- // set global painter
2298
-
2299
- // set handlers
2300
-
2301
- // set id
2302
-
2303
- // set id so can be referenced from outside labels
2304
-
2305
- // set initial meta data
2306
-
2307
- // set initial options
2308
-
2309
- // set initial values
2310
-
2311
- // set label, we use labelled by as otherwise the screenreader does not read the "browse" text in the label (as it has tabindex: 0)
2312
-
2313
- // set list height
2314
-
2315
- // set list height (if is overflowing)
2316
-
2317
- // set loader source data
2318
-
2319
- // set merged color matrix to use in preview plugin
2320
-
2321
- // set name of element (is removed when a value is set)
2322
-
2323
- // set name of file stub
2324
-
2325
- // set onload hanlder
2326
-
2327
- // set original file
2328
-
2329
- // set preview view
2330
-
2331
- // set reference
2332
-
2333
- // set request start
2334
-
2335
- // set size of file stub
2336
-
2337
- // set state
2338
-
2339
- // set timeout if defined (do it after open so IE11 plays ball)
2340
-
2341
- // set to false to copy image exif data to output
2342
-
2343
- // set to false to disable upscaling of image smaller than the target width / height
2344
-
2345
- // set to idle so shows grab cursor
2346
-
2347
- // set to null to remove animation while dragging
2348
-
2349
- // set type of response
2350
-
2351
- // set up transparency grid
2352
-
2353
- // sets correct state to hopper scope
2354
-
2355
- // setup animators
2356
-
2357
- // setup attribute mapping for accept
2358
-
2359
- // setup paste listener for entire page
2360
-
2361
- // setup processor
2362
-
2363
- // setup!
2364
-
2365
- // shortcuts
2366
-
2367
- // should align center
2368
-
2369
- // should be appended?
2370
-
2371
- // should be over an element to drop
2372
-
2373
- // should return a promise
2374
-
2375
- // should return request
2376
-
2377
- // should we post the default transformed file
2378
-
2379
- // should we post the original file
2380
-
2381
- // should we update the output data
2382
-
2383
- // show support by displaying credits
2384
-
2385
- // show the overlay
2386
-
2387
- // show/hide RemoveItem button
2388
-
2389
- // size has been updated
2390
-
2391
- // skip
2392
-
2393
- // slow down based on amount of damping
2394
-
2395
- // so if a before remove file hook is defined we need to run it now
2396
-
2397
- // so when zooming in it doesn't get too blurry
2398
-
2399
- // some actions might trigger events
2400
-
2401
- // something went wrong
2402
-
2403
- // something went wrong during transform phase
2404
-
2405
- // sort items in list
2406
-
2407
- // source is known
2408
-
2409
- // special treatment for remove
2410
-
2411
- // stack
2412
-
2413
- // start at 0
2414
-
2415
- // start creating variants
2416
-
2417
- // start drawing
2418
-
2419
- // start file processing
2420
-
2421
- // start listening to clicks again
2422
-
2423
- // start loading the source
2424
-
2425
- // start painter and fire load event
2426
-
2427
- // start processing file
2428
-
2429
- // start processing more chunks
2430
-
2431
- // start processing the file
2432
-
2433
- // start testing size
2434
-
2435
- // start writing
2436
-
2437
- // starts loading
2438
-
2439
- // stop active processes (file uploads, fetches, stuff like that)
2440
-
2441
- // stop here if aborted, might have happened in between request and callback
2442
-
2443
- // stop listening to resize
2444
-
2445
- // stop listening to the visiblitychange event
2446
-
2447
- // stop updater
2448
-
2449
- // stop worker
2450
-
2451
- // stops from triggering the element a second time
2452
-
2453
- // store current styles so we can compare them to new styles later on
2454
-
2455
- // store file item in file input
2456
-
2457
- // store internally
2458
-
2459
- // store new transforms
2460
-
2461
- // store server ref in hidden input
2462
-
2463
- // styles
2464
-
2465
- // sub status
2466
-
2467
- // subscribe to file load and append required info
2468
-
2469
- // subscribe to file load and append required transformations
2470
-
2471
- // subscribe to file transformations
2472
-
2473
- // svg
2474
-
2475
- // swap width and height if orientation needs correcting
2476
-
2477
- // sync `acceptedFileTypes` property with `accept` attribute
2478
-
2479
- // sync panel height with item height
2480
-
2481
- // target height
2482
-
2483
- // target width
2484
-
2485
- // targetting this client
2486
-
2487
- // tell the view the item has been removed
2488
-
2489
- // test if file is of type image
2490
-
2491
- // test if file is of type image and can be viewed in canvas
2492
-
2493
- // test if is already processed
2494
-
2495
- // test if is content disposition header, if not exit
2496
-
2497
- // test if is filtered
2498
-
2499
- // test if is identity matrix
2500
-
2501
- // test if is no longer hidden
2502
-
2503
- // test if target is the element or if one of its children is
2504
-
2505
- // test if there's still room in the list of files
2506
-
2507
- // test if we're resizing horizontally
2508
-
2509
- // test textarea or input is contained in filepond root
2510
-
2511
- // tests if
2512
-
2513
- // the aspect ratio of the crop ('1:1', '16:9', etc)
2514
-
2515
- // the file is contained in a fieldset with legend that contains the filename
2516
-
2517
- // the file is now loading we need to update the progress indicators
2518
-
2519
- // the file to process
2520
-
2521
- // the file url is no longer needed
2522
-
2523
- // the function that is used to apply the file transformations
2524
-
2525
- // the height of the panel minus the label height
2526
-
2527
- // the icon to use for the edit button
2528
-
2529
- // the id to add to the root element
2530
-
2531
- // the image needs to be resized
2532
-
2533
- // the metadata to send along
2534
-
2535
- // the method of rescaling
2536
-
2537
- // the preview image data (we need this to filter the image)
2538
-
2539
- // the preview is now ready to be drawn
2540
-
2541
- // the rectangle of the element expanded to contain its children including own margin and child margins
2542
-
2543
- // the rectangle of the element expanded to contain its children, does not include any margins
2544
-
2545
- // the rectangle of the element itself
2546
-
2547
- // the request might not go through, for instance, there might be some server trouble
2548
-
2549
- // the room we leave open between the end of the list and the panel bottom
2550
-
2551
- // the total entries to read
2552
-
2553
- // these files don't fit so stop here
2554
-
2555
- // these will then be automatically set to the initial files
2556
-
2557
- // this creates a function that loads the file based on the type of file (string, base64, blob, file) and location of file (local, remote, limbo)
2558
-
2559
- // this isn't fantastic, but because of the stacking of settimeouts plugins can handle the did_load before the did_init
2560
-
2561
- // this multiplies the minimum image resolution,
2562
-
2563
- // this requestAnimationFrame nesting is horrible but it fixes an issue with 100hz displays on Chrome
2564
-
2565
- // this timeout pushes the handler after 'load'
2566
-
2567
- // this would simply bring the browser to its knees and that is not what we want
2568
-
2569
- // timeout identifier, only used when timeout is defined
2570
-
2571
- // timeout used for calling update items
2572
-
2573
- // timeout used for stacking metadata updates
2574
-
2575
- // toggle
2576
-
2577
- // transfer to image tag so no canvas memory wasted on iOS
2578
-
2579
- // transform order is relevant
2580
-
2581
- // translate to other name
2582
-
2583
- // tries to get header info to the app as fast as possible
2584
-
2585
- // try fallback if defined by user, else reject
2586
-
2587
- // try loading the source one more time
2588
-
2589
- // try the oldschool way
2590
-
2591
- // try to access item
2592
-
2593
- // try to add now
2594
-
2595
- // try to copy image head from original file to generated blob
2596
-
2597
- // try to get files from the transfer
2598
-
2599
- // try to get links from transfer, if found we'll exit immediately (unless a file is in the dataTransfer as well, this is because Firefox could represent the file as a URL and a file object at the same time)
2600
-
2601
- // try to get next batch of files
2602
-
2603
- // turn attributes into object
2604
-
2605
- // turn blob response into a file
2606
-
2607
- // turn the file into an image
2608
-
2609
- // type set
2610
-
2611
- // undefined or null
2612
-
2613
- // update
2614
-
2615
- // update OptionTypes, each plugin might have extended the default options
2616
-
2617
- // update actual duration
2618
-
2619
- // update actual progress
2620
-
2621
- // update crop metadata
2622
-
2623
- // update duration
2624
-
2625
- // update editor props that could have changed
2626
-
2627
- // update existing plugins
2628
-
2629
- // update height if is fixed
2630
-
2631
- // update icon and label for revert button when instant uploading
2632
-
2633
- // update image view
2634
-
2635
- // update markup view
2636
-
2637
- // update others about this error
2638
-
2639
- // update position by adding velocity
2640
-
2641
- // update progress bar
2642
-
2643
- // update progress percentage
2644
-
2645
- // update resize operation
2646
-
2647
- // update resting state
2648
-
2649
- // update scalable state
2650
-
2651
- // update text
2652
-
2653
- // update the view
2654
-
2655
- // update transform metadata object
2656
-
2657
- // update value
2658
-
2659
- // update velocity by adding force based on mass
2660
-
2661
- // update view
2662
-
2663
- // updates child views that are currently attached to the DOM
2664
-
2665
- // updates the OptionTypes object based on the current options
2666
-
2667
- // updates the legend of the fieldset so screenreaders can better group buttons
2668
-
2669
- // url
2670
-
2671
- // url is no longer needed
2672
-
2673
- // use for labeling file input (aria-labelledby on file input)
2674
-
2675
- // use math ceil to prevent transparent lines because of rounding errors
2676
-
2677
- // use type detector
2678
-
2679
- // used in instant edit mode
2680
-
2681
- // user or another process aborted the file load (cannot retry)
2682
-
2683
- // user passed a sources array
2684
-
2685
- // user passed sources as arguments, last one might be options object
2686
-
2687
- // validation result
2688
-
2689
- // view is file
2690
-
2691
- // view is file info
2692
-
2693
- // view type
2694
-
2695
- // views on death row
2696
-
2697
- // views to retain
2698
-
2699
- // wait for idle state and then run PREPARE_OUTPUT
2700
-
2701
- // wait for results
2702
-
2703
- // waiting
2704
-
2705
- // waiting for something
2706
-
2707
- // want to remove required, always possible
2708
-
2709
- // want to tween to a smaller value and have a current value
2710
-
2711
- // we add a little delay so the OS file select window can move out of the way before we add our file
2712
-
2713
- // we are really done
2714
-
2715
- // we can drop these items on this client
2716
-
2717
- // we can now scale the panel to the final size
2718
-
2719
- // we check if the current count is smaller than the max count, if so, another file can still be added
2720
-
2721
- // we check if transform is set, if so, we check if property is set
2722
-
2723
- // we don't need to read the entire file to get the orientation
2724
-
2725
- // we done
2726
-
2727
- // we done function
2728
-
2729
- // we done!
2730
-
2731
- // we error function
2732
-
2733
- // we have to link this element to the status element
2734
-
2735
- // we just added somthing to the dom, no rest
2736
-
2737
- // we multiply by .75 as that creates smaller but still clear images on screens with high res displays
2738
-
2739
- // we need the item to get to the crop size
2740
-
2741
- // we need to delay by the difference between interval and dist
2742
-
2743
- // we need to wait an additional 6ms before calling the function)
2744
-
2745
- // we only add required if the field has been deemed required
2746
-
2747
- // we push this forward a bit so the interface is updated correctly
2748
-
2749
- // we put the response in state so we can access
2750
-
2751
- // we resize the image so memory on iOS 12 is released more quickly (it seems)
2752
-
2753
- // we successfully set the value of this option
2754
-
2755
- // we validate the file against the accepted file types
2756
-
2757
- // we want as much pixels to work with as possible,
2758
-
2759
- // we will add those properties to the external API and link them to the viewState
2760
-
2761
- // we'eve received a size indication, let's update the stub
2762
-
2763
- // we've arrived if we're near target and our velocity is near zero
2764
-
2765
- // we've not yet started the real download, stop here
2766
-
2767
- // we've probably received some useful data in response headers
2768
-
2769
- // webpackBootstrap
2770
-
2771
- // what is the type now
2772
-
2773
- // when removing by index the indexes shift after each file removal so we need to convert indexes to ids
2774
-
2775
- // when successfully transformed
2776
-
2777
- // when the animator updates, update the view state value
2778
-
2779
- // where did the file originate
2780
-
2781
- // where did this file come from
2782
-
2783
- // where to insert new items
2784
-
2785
- // which name to prefix the default transformed file with
2786
-
2787
- // which name to prefix the original file with
2788
-
2789
- // will also notify the user when FilePond is not being used, as the user might be occupied with other activities while uploading a file
2790
-
2791
- // will clean up all archived items
2792
-
2793
- // will store image data for future filter updates
2794
-
2795
- // writers
2796
-
2797
- // yay we got our bitmap, let's continue showing the preview
2798
-
2799
- // you want to make use of revert