@cgi-learning-hub/ui 1.2.0-dev.1730801938 → 1.2.0-dev.1730802047

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 (162) hide show
  1. package/dist/Backdrop-Br80Nd7t.cjs +1 -0
  2. package/dist/{Backdrop-NYR-wJpx.js → Backdrop-DZxABi0e.js} +290 -289
  3. package/dist/{Box-BOwB0WGP.js → Box-CCNJo4xc.js} +3 -3
  4. package/dist/Box-CHgIMOMk.cjs +1 -0
  5. package/dist/Button-BZ3CM4Ou.cjs +1 -0
  6. package/dist/{Button-DOz72eRZ.js → Button-BbB53SmV.js} +76 -78
  7. package/dist/{ButtonBase-Cc4QJr0W.js → ButtonBase-CWK9_uNc.js} +78 -79
  8. package/dist/ButtonBase-CfGA-YGO.cjs +75 -0
  9. package/dist/{CircularProgress-CQAqrfVo.js → CircularProgress-CCcQGuv7.js} +60 -59
  10. package/dist/CircularProgress-CjmXu0NI.cjs +28 -0
  11. package/dist/DatePicker-BSHPkMOi.cjs +17 -0
  12. package/dist/{DatePicker-DLbJ-Y35.js → DatePicker-DhT2Azgz.js} +3796 -3827
  13. package/dist/DefaultButton-BDGm3E32.cjs +1 -0
  14. package/dist/{DefaultButton-xBiX39mb.js → DefaultButton-DRX60ZWo.js} +22 -23
  15. package/dist/DefaultPropsProvider-BL9ahJBw.cjs +17 -0
  16. package/dist/{DefaultPropsProvider-3gIWHkeE.js → DefaultPropsProvider-DtDY-TZb.js} +2 -1
  17. package/dist/{IconButton-DQ115lN0.js → IconButton-CJADlk4N.js} +60 -70
  18. package/dist/IconButton-CQIpnm5Y.cjs +2 -0
  19. package/dist/{InputAdornment-CQEOPpj_.cjs → InputAdornment-BgclYUXK.cjs} +1 -1
  20. package/dist/{InputAdornment-C91s059c.js → InputAdornment-DB3IsWy6.js} +5 -5
  21. package/dist/InputBase-BgPlZIwC.cjs +3 -0
  22. package/dist/{InputBase-BqiRpsZm.js → InputBase-D4oDoC6z.js} +76 -77
  23. package/dist/{Stack-CRf_NOj5.js → Stack-DkKYFn95.js} +13 -13
  24. package/dist/Stack-h0ulkByu.cjs +1 -0
  25. package/dist/{Tabs-ClaQRksF.js → Tabs-COdZZ9QD.js} +13 -14
  26. package/dist/Tabs-CVG205ba.cjs +4 -0
  27. package/dist/TextField-DYHbqOp9.cjs +14 -0
  28. package/dist/{TextField-poQmKhLJ.js → TextField-PKXBC85g.js} +1457 -1415
  29. package/dist/{Tooltip-h4eHRca2.js → Tooltip-Bjvuk-Lb.js} +1117 -1099
  30. package/dist/Tooltip-D8bjRAAW.cjs +100 -0
  31. package/dist/Typography-Ddo2XgEF.cjs +1 -0
  32. package/dist/{Typography-Brk7us7e.js → Typography-NOCV1w8B.js} +38 -37
  33. package/dist/components/Alert/Alert.cjs.js +1 -1
  34. package/dist/components/Alert/Alert.stories.cjs.js +1 -1
  35. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  36. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  37. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  38. package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
  39. package/dist/components/DatePicker/index.cjs.js +1 -1
  40. package/dist/components/DatePicker/index.es.js +1 -1
  41. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  43. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  44. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +15 -14
  45. package/dist/components/DefaultButton/index.cjs.js +1 -1
  46. package/dist/components/DefaultButton/index.es.js +1 -1
  47. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  48. package/dist/components/Dropzone/Dropzone.es.js +1675 -679
  49. package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
  50. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  51. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  52. package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
  53. package/dist/components/FileList/FileList.cjs.js +1 -1
  54. package/dist/components/FileList/FileList.es.js +1 -1
  55. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  56. package/dist/components/FileList/FileListItem.es.js +21 -33
  57. package/dist/components/IconButton.stories.cjs.js +1 -1
  58. package/dist/components/IconButton.stories.es.js +11 -17
  59. package/dist/components/Loader/Loader.cjs.js +1 -1
  60. package/dist/components/Loader/Loader.es.js +1 -1
  61. package/dist/components/Loader/Loader.stories.cjs.js +1 -1
  62. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  63. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  64. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  65. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  66. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  67. package/dist/components/PaperHeader/PaperHeader.stories.es.js +13 -19
  68. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  69. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  70. package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -1
  71. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  72. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  73. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  74. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  75. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  76. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  77. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  78. package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -1
  79. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  80. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  81. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  82. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  83. package/dist/components/TabList.stories.cjs.js +1 -1
  84. package/dist/components/TabList.stories.es.js +11 -12
  85. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  86. package/dist/components/TextInput/TextInput.es.js +1 -1
  87. package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
  88. package/dist/components/index.cjs.js +1 -1
  89. package/dist/components/index.es.js +17 -17
  90. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  91. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
  92. package/dist/{createSvgIcon-BHNwYp0k.cjs → createSvgIcon-BH5C6nT9.cjs} +1 -1
  93. package/dist/{createSvgIcon-CWZXMIY6.js → createSvgIcon-CCVUTVqS.js} +3 -3
  94. package/dist/{extendSxProp-h_vH_Efx.cjs → extendSxProp-CxNq_K9W.cjs} +1 -1
  95. package/dist/{extendSxProp-Cr6SqfyU.js → extendSxProp-ZFHbVaVf.js} +1 -1
  96. package/dist/{fr-CrUmNQ8y.js → fr-D-ljiFMc.js} +1 -1
  97. package/dist/{fr-Dh4vpkIL.cjs → fr-W-CTnhjw.cjs} +1 -1
  98. package/dist/identifier-8mtH7ZcP.cjs +59 -0
  99. package/dist/{identifier-vL3mZxtO.js → identifier-C_jicJ2R.js} +1001 -1013
  100. package/dist/{index-PJSlkMUh.js → index-1jrO2HSs.js} +3 -3
  101. package/dist/{index-DJfvQgvG.cjs → index-8rVsYib2.cjs} +1 -1
  102. package/dist/{index-CrWaTytV.js → index-C-X1cQ2Z.js} +4 -4
  103. package/dist/index-DoBWXbUD.cjs +1 -0
  104. package/dist/index.cjs.js +1 -1
  105. package/dist/index.es.js +17 -17
  106. package/dist/memoTheme-B1D0RO58.js +15 -0
  107. package/dist/memoTheme-K38b4dAY.cjs +1 -0
  108. package/dist/{refType-CslmN23s.js → useEnhancedEffect-De8QYV_L.js} +11 -9
  109. package/dist/useEnhancedEffect-Dl7COs_u.cjs +1 -0
  110. package/dist/useForkRef-D-DyzOXj.js +21 -0
  111. package/dist/useForkRef-D81w5oMb.cjs +1 -0
  112. package/dist/{useTheme-BZN9T64v.js → useTheme-C18aJRpp.js} +1 -1
  113. package/dist/{useTheme-Cy30-54x.cjs → useTheme-D0cUaNbZ.cjs} +1 -1
  114. package/dist/{useTheme-BcsinTgi.cjs → useTheme-DMgnO6le.cjs} +1 -1
  115. package/dist/{useTheme-Cs6W-67J.js → useTheme-DR3unGHQ.js} +3 -3
  116. package/dist/useThemeProps-9fosi2Au.cjs +1 -0
  117. package/dist/useThemeProps-B8ZTH6Oh.cjs +1 -0
  118. package/dist/useThemeProps-BcqXKsD0.js +24 -0
  119. package/dist/useThemeProps-BwLSmftx.js +27 -0
  120. package/dist/useTimeout-CUZ4CtvQ.js +53 -0
  121. package/dist/useTimeout-Dfi8FwFc.cjs +1 -0
  122. package/package.json +10 -10
  123. package/dist/Backdrop-2u2eUNhW.cjs +0 -1
  124. package/dist/Box-BM-kEZ6w.cjs +0 -1
  125. package/dist/Button-DF4FLm9c.cjs +0 -1
  126. package/dist/ButtonBase-D-LBunY3.cjs +0 -75
  127. package/dist/CircularProgress-Bc4Jb-wh.cjs +0 -28
  128. package/dist/DatePicker-B7Kxulzh.cjs +0 -19
  129. package/dist/DefaultButton-BiytyhNr.cjs +0 -1
  130. package/dist/DefaultPropsProvider-D5gdl0ZP.cjs +0 -17
  131. package/dist/IconButton-C1Q6F-WI.cjs +0 -2
  132. package/dist/InputBase-BhTvM4pD.cjs +0 -3
  133. package/dist/Stack-C-pSEK_U.cjs +0 -1
  134. package/dist/Tabs-DQQR_Rej.cjs +0 -4
  135. package/dist/TextField-ESuNQ6_j.cjs +0 -12
  136. package/dist/Tooltip-iexr64ud.cjs +0 -100
  137. package/dist/Typography-DXUkMq5K.cjs +0 -1
  138. package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
  139. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  140. package/dist/composeClasses-B_ETVugV.cjs +0 -1
  141. package/dist/composeClasses-zmPRtZOg.js +0 -16
  142. package/dist/createSvgIcon-C9v8HKxu.cjs +0 -2
  143. package/dist/createSvgIcon-ampgkdBR.js +0 -89
  144. package/dist/identifier-lU3TQXv0.cjs +0 -59
  145. package/dist/index-B4-7REI3.cjs +0 -1
  146. package/dist/memoTheme-B2EWpIp3.cjs +0 -1
  147. package/dist/memoTheme-O-hJ9iBh.js +0 -13
  148. package/dist/refType-xt9KmJ1e.cjs +0 -1
  149. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  150. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  151. package/dist/useControlled-Bf7_InaL.cjs +0 -3
  152. package/dist/useControlled-D59BLg1S.js +0 -48
  153. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
  154. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  155. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  156. package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
  157. package/dist/useForkRef-CTI33h-3.cjs +0 -1
  158. package/dist/useForkRef-C_4o__cU.js +0 -15
  159. package/dist/useThemeProps-CjDUEYiA.js +0 -40
  160. package/dist/useThemeProps-DxowsTec.cjs +0 -1
  161. package/dist/useTimeout-COCrDKz-.cjs +0 -1
  162. package/dist/useTimeout-CcRdgCDK.js +0 -42
@@ -1,725 +1,1712 @@
1
- import nr, { jsxs as ve, jsx as I, Fragment as Ue } from "react/jsx-runtime";
2
- import { r as or, i as ir } from "../../createSvgIcon-ampgkdBR.js";
3
- import xr, { useMemo as T, useRef as Q, useReducer as Fr, useEffect as ye, useCallback as A, forwardRef as _r, useImperativeHandle as jr, Fragment as Sr } from "react";
4
- import { P as f } from "../../identifier-vL3mZxtO.js";
5
- import { S as Pr } from "../../Stack-CRf_NOj5.js";
6
- import { T as be } from "../../Typography-Brk7us7e.js";
7
- var xe = {}, Ir = ir;
8
- Object.defineProperty(xe, "__esModule", {
9
- value: !0
10
- });
11
- var ar = xe.default = void 0, Tr = Ir(or()), Cr = nr;
12
- ar = xe.default = (0, Tr.default)(/* @__PURE__ */ (0, Cr.jsx)("path", {
1
+ import { jsx as z, jsxs as fa, Fragment as Ka } from "react/jsx-runtime";
2
+ import { c as ai } from "../../createSvgIcon-CCVUTVqS.js";
3
+ import bi, { useMemo as q, useRef as J, useReducer as hi, useEffect as xa, useCallback as y, forwardRef as yi, useImperativeHandle as wi, Fragment as ki } from "react";
4
+ import { P as s } from "../../identifier-C_jicJ2R.js";
5
+ import { S as ji } from "../../Stack-DkKYFn95.js";
6
+ import { T as ga } from "../../Typography-NOCV1w8B.js";
7
+ const zi = ai(/* @__PURE__ */ z("path", {
13
8
  d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
14
- }), "FileUpload");
15
- var Fe = {}, Rr = ir;
16
- Object.defineProperty(Fe, "__esModule", {
17
- value: !0
18
- });
19
- var ur = Fe.default = void 0, zr = Rr(or()), kr = nr;
20
- ur = Fe.default = (0, zr.default)(/* @__PURE__ */ (0, kr.jsx)("path", {
9
+ }), "FileUpload"), Di = ai(/* @__PURE__ */ z("path", {
21
10
  d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"
22
11
  }), "UploadFile");
23
- function C(e, r, t, n) {
24
- function i(o) {
25
- return o instanceof t ? o : new t(function(u) {
26
- u(o);
12
+ function F(a, i, t, n) {
13
+ function p(o) {
14
+ return o instanceof t ? o : new t(function(l) {
15
+ l(o);
27
16
  });
28
17
  }
29
- return new (t || (t = Promise))(function(o, u) {
30
- function s(g) {
18
+ return new (t || (t = Promise))(function(o, l) {
19
+ function r(x) {
31
20
  try {
32
- l(n.next(g));
33
- } catch (y) {
34
- u(y);
21
+ k(n.next(x));
22
+ } catch (j) {
23
+ l(j);
35
24
  }
36
25
  }
37
- function d(g) {
26
+ function v(x) {
38
27
  try {
39
- l(n.throw(g));
40
- } catch (y) {
41
- u(y);
28
+ k(n.throw(x));
29
+ } catch (j) {
30
+ l(j);
42
31
  }
43
32
  }
44
- function l(g) {
45
- g.done ? o(g.value) : i(g.value).then(s, d);
33
+ function k(x) {
34
+ x.done ? o(x.value) : p(x.value).then(r, v);
46
35
  }
47
- l((n = n.apply(e, r || [])).next());
36
+ k((n = n.apply(a, i || [])).next());
48
37
  });
49
38
  }
50
- function R(e, r) {
51
- var t = { label: 0, sent: function() {
52
- if (o[0] & 1) throw o[1];
53
- return o[1];
54
- }, trys: [], ops: [] }, n, i, o, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
55
- return u.next = s(0), u.throw = s(1), u.return = s(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
56
- return this;
57
- }), u;
58
- function s(l) {
59
- return function(g) {
60
- return d([l, g]);
61
- };
62
- }
63
- function d(l) {
64
- if (n) throw new TypeError("Generator is already executing.");
65
- for (; u && (u = 0, l[0] && (t = 0)), t; ) try {
66
- if (n = 1, i && (o = l[0] & 2 ? i.return : l[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, l[1])).done) return o;
67
- switch (i = 0, o && (l = [l[0] & 2, o.value]), l[0]) {
68
- case 0:
69
- case 1:
70
- o = l;
71
- break;
72
- case 4:
73
- return t.label++, { value: l[1], done: !1 };
74
- case 5:
75
- t.label++, i = l[1], l = [0];
76
- continue;
77
- case 7:
78
- l = t.ops.pop(), t.trys.pop();
79
- continue;
80
- default:
81
- if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (l[0] === 6 || l[0] === 2)) {
82
- t = 0;
83
- continue;
84
- }
85
- if (l[0] === 3 && (!o || l[1] > o[0] && l[1] < o[3])) {
86
- t.label = l[1];
87
- break;
88
- }
89
- if (l[0] === 6 && t.label < o[1]) {
90
- t.label = o[1], o = l;
91
- break;
92
- }
93
- if (o && t.label < o[2]) {
94
- t.label = o[2], t.ops.push(l);
95
- break;
96
- }
97
- o[2] && t.ops.pop(), t.trys.pop();
98
- continue;
99
- }
100
- l = r.call(e, t);
101
- } catch (g) {
102
- l = [6, g], i = 0;
103
- } finally {
104
- n = o = 0;
105
- }
106
- if (l[0] & 5) throw l[1];
107
- return { value: l[0] ? l[1] : void 0, done: !0 };
108
- }
109
- }
110
- function qe(e, r) {
111
- var t = typeof Symbol == "function" && e[Symbol.iterator];
112
- if (!t) return e;
113
- var n = t.call(e), i, o = [], u;
114
- try {
115
- for (; (r === void 0 || r-- > 0) && !(i = n.next()).done; ) o.push(i.value);
116
- } catch (s) {
117
- u = { error: s };
118
- } finally {
119
- try {
120
- i && !i.done && (t = n.return) && t.call(n);
121
- } finally {
122
- if (u) throw u.error;
123
- }
124
- }
125
- return o;
126
- }
127
- function Ne(e, r, t) {
128
- if (t || arguments.length === 2) for (var n = 0, i = r.length, o; n < i; n++)
129
- (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
130
- return e.concat(o || Array.prototype.slice.call(r));
131
- }
132
- var Lr = /* @__PURE__ */ new Map([
133
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
134
- ["aac", "audio/aac"],
39
+ const Ei = /* @__PURE__ */ new Map([
40
+ // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
41
+ ["1km", "application/vnd.1000minds.decision-model+xml"],
42
+ ["3dml", "text/vnd.in3d.3dml"],
43
+ ["3ds", "image/x-3ds"],
44
+ ["3g2", "video/3gpp2"],
45
+ ["3gp", "video/3gp"],
46
+ ["3gpp", "video/3gpp"],
47
+ ["3mf", "model/3mf"],
48
+ ["7z", "application/x-7z-compressed"],
49
+ ["7zip", "application/x-7z-compressed"],
50
+ ["123", "application/vnd.lotus-1-2-3"],
51
+ ["aab", "application/x-authorware-bin"],
52
+ ["aac", "audio/x-acc"],
53
+ ["aam", "application/x-authorware-map"],
54
+ ["aas", "application/x-authorware-seg"],
135
55
  ["abw", "application/x-abiword"],
56
+ ["ac", "application/vnd.nokia.n-gage.ac+xml"],
57
+ ["ac3", "audio/ac3"],
58
+ ["acc", "application/vnd.americandynamics.acc"],
59
+ ["ace", "application/x-ace-compressed"],
60
+ ["acu", "application/vnd.acucobol"],
61
+ ["acutc", "application/vnd.acucorp"],
62
+ ["adp", "audio/adpcm"],
63
+ ["aep", "application/vnd.audiograph"],
64
+ ["afm", "application/x-font-type1"],
65
+ ["afp", "application/vnd.ibm.modcap"],
66
+ ["ahead", "application/vnd.ahead.space"],
67
+ ["ai", "application/pdf"],
68
+ ["aif", "audio/x-aiff"],
69
+ ["aifc", "audio/x-aiff"],
70
+ ["aiff", "audio/x-aiff"],
71
+ ["air", "application/vnd.adobe.air-application-installer-package+zip"],
72
+ ["ait", "application/vnd.dvb.ait"],
73
+ ["ami", "application/vnd.amiga.ami"],
74
+ ["amr", "audio/amr"],
75
+ ["apk", "application/vnd.android.package-archive"],
76
+ ["apng", "image/apng"],
77
+ ["appcache", "text/cache-manifest"],
78
+ ["application", "application/x-ms-application"],
79
+ ["apr", "application/vnd.lotus-approach"],
136
80
  ["arc", "application/x-freearc"],
137
- ["avif", "image/avif"],
81
+ ["arj", "application/x-arj"],
82
+ ["asc", "application/pgp-signature"],
83
+ ["asf", "video/x-ms-asf"],
84
+ ["asm", "text/x-asm"],
85
+ ["aso", "application/vnd.accpac.simply.aso"],
86
+ ["asx", "video/x-ms-asf"],
87
+ ["atc", "application/vnd.acucorp"],
88
+ ["atom", "application/atom+xml"],
89
+ ["atomcat", "application/atomcat+xml"],
90
+ ["atomdeleted", "application/atomdeleted+xml"],
91
+ ["atomsvc", "application/atomsvc+xml"],
92
+ ["atx", "application/vnd.antix.game-component"],
93
+ ["au", "audio/x-au"],
138
94
  ["avi", "video/x-msvideo"],
95
+ ["avif", "image/avif"],
96
+ ["aw", "application/applixware"],
97
+ ["azf", "application/vnd.airzip.filesecure.azf"],
98
+ ["azs", "application/vnd.airzip.filesecure.azs"],
99
+ ["azv", "image/vnd.airzip.accelerator.azv"],
139
100
  ["azw", "application/vnd.amazon.ebook"],
101
+ ["b16", "image/vnd.pco.b16"],
102
+ ["bat", "application/x-msdownload"],
103
+ ["bcpio", "application/x-bcpio"],
104
+ ["bdf", "application/x-font-bdf"],
105
+ ["bdm", "application/vnd.syncml.dm+wbxml"],
106
+ ["bdoc", "application/x-bdoc"],
107
+ ["bed", "application/vnd.realvnc.bed"],
108
+ ["bh2", "application/vnd.fujitsu.oasysprs"],
140
109
  ["bin", "application/octet-stream"],
110
+ ["blb", "application/x-blorb"],
111
+ ["blorb", "application/x-blorb"],
112
+ ["bmi", "application/vnd.bmi"],
113
+ ["bmml", "application/vnd.balsamiq.bmml+xml"],
141
114
  ["bmp", "image/bmp"],
115
+ ["book", "application/vnd.framemaker"],
116
+ ["box", "application/vnd.previewsystems.box"],
117
+ ["boz", "application/x-bzip2"],
118
+ ["bpk", "application/octet-stream"],
119
+ ["bpmn", "application/octet-stream"],
120
+ ["bsp", "model/vnd.valve.source.compiled-map"],
121
+ ["btif", "image/prs.btif"],
122
+ ["buffer", "application/octet-stream"],
142
123
  ["bz", "application/x-bzip"],
143
124
  ["bz2", "application/x-bzip2"],
125
+ ["c", "text/x-c"],
126
+ ["c4d", "application/vnd.clonk.c4group"],
127
+ ["c4f", "application/vnd.clonk.c4group"],
128
+ ["c4g", "application/vnd.clonk.c4group"],
129
+ ["c4p", "application/vnd.clonk.c4group"],
130
+ ["c4u", "application/vnd.clonk.c4group"],
131
+ ["c11amc", "application/vnd.cluetrust.cartomobile-config"],
132
+ ["c11amz", "application/vnd.cluetrust.cartomobile-config-pkg"],
133
+ ["cab", "application/vnd.ms-cab-compressed"],
134
+ ["caf", "audio/x-caf"],
135
+ ["cap", "application/vnd.tcpdump.pcap"],
136
+ ["car", "application/vnd.curl.car"],
137
+ ["cat", "application/vnd.ms-pki.seccat"],
138
+ ["cb7", "application/x-cbr"],
139
+ ["cba", "application/x-cbr"],
140
+ ["cbr", "application/x-cbr"],
141
+ ["cbt", "application/x-cbr"],
142
+ ["cbz", "application/x-cbr"],
143
+ ["cc", "text/x-c"],
144
+ ["cco", "application/x-cocoa"],
145
+ ["cct", "application/x-director"],
146
+ ["ccxml", "application/ccxml+xml"],
147
+ ["cdbcmsg", "application/vnd.contact.cmsg"],
144
148
  ["cda", "application/x-cdf"],
149
+ ["cdf", "application/x-netcdf"],
150
+ ["cdfx", "application/cdfx+xml"],
151
+ ["cdkey", "application/vnd.mediastation.cdkey"],
152
+ ["cdmia", "application/cdmi-capability"],
153
+ ["cdmic", "application/cdmi-container"],
154
+ ["cdmid", "application/cdmi-domain"],
155
+ ["cdmio", "application/cdmi-object"],
156
+ ["cdmiq", "application/cdmi-queue"],
157
+ ["cdr", "application/cdr"],
158
+ ["cdx", "chemical/x-cdx"],
159
+ ["cdxml", "application/vnd.chemdraw+xml"],
160
+ ["cdy", "application/vnd.cinderella"],
161
+ ["cer", "application/pkix-cert"],
162
+ ["cfs", "application/x-cfs-compressed"],
163
+ ["cgm", "image/cgm"],
164
+ ["chat", "application/x-chat"],
165
+ ["chm", "application/vnd.ms-htmlhelp"],
166
+ ["chrt", "application/vnd.kde.kchart"],
167
+ ["cif", "chemical/x-cif"],
168
+ ["cii", "application/vnd.anser-web-certificate-issue-initiation"],
169
+ ["cil", "application/vnd.ms-artgalry"],
170
+ ["cjs", "application/node"],
171
+ ["cla", "application/vnd.claymore"],
172
+ ["class", "application/octet-stream"],
173
+ ["clkk", "application/vnd.crick.clicker.keyboard"],
174
+ ["clkp", "application/vnd.crick.clicker.palette"],
175
+ ["clkt", "application/vnd.crick.clicker.template"],
176
+ ["clkw", "application/vnd.crick.clicker.wordbank"],
177
+ ["clkx", "application/vnd.crick.clicker"],
178
+ ["clp", "application/x-msclip"],
179
+ ["cmc", "application/vnd.cosmocaller"],
180
+ ["cmdf", "chemical/x-cmdf"],
181
+ ["cml", "chemical/x-cml"],
182
+ ["cmp", "application/vnd.yellowriver-custom-menu"],
183
+ ["cmx", "image/x-cmx"],
184
+ ["cod", "application/vnd.rim.cod"],
185
+ ["coffee", "text/coffeescript"],
186
+ ["com", "application/x-msdownload"],
187
+ ["conf", "text/plain"],
188
+ ["cpio", "application/x-cpio"],
189
+ ["cpp", "text/x-c"],
190
+ ["cpt", "application/mac-compactpro"],
191
+ ["crd", "application/x-mscardfile"],
192
+ ["crl", "application/pkix-crl"],
193
+ ["crt", "application/x-x509-ca-cert"],
194
+ ["crx", "application/x-chrome-extension"],
195
+ ["cryptonote", "application/vnd.rig.cryptonote"],
145
196
  ["csh", "application/x-csh"],
197
+ ["csl", "application/vnd.citationstyles.style+xml"],
198
+ ["csml", "chemical/x-csml"],
199
+ ["csp", "application/vnd.commonspace"],
200
+ ["csr", "application/octet-stream"],
146
201
  ["css", "text/css"],
202
+ ["cst", "application/x-director"],
147
203
  ["csv", "text/csv"],
204
+ ["cu", "application/cu-seeme"],
205
+ ["curl", "text/vnd.curl"],
206
+ ["cww", "application/prs.cww"],
207
+ ["cxt", "application/x-director"],
208
+ ["cxx", "text/x-c"],
209
+ ["dae", "model/vnd.collada+xml"],
210
+ ["daf", "application/vnd.mobius.daf"],
211
+ ["dart", "application/vnd.dart"],
212
+ ["dataless", "application/vnd.fdsn.seed"],
213
+ ["davmount", "application/davmount+xml"],
214
+ ["dbf", "application/vnd.dbf"],
215
+ ["dbk", "application/docbook+xml"],
216
+ ["dcr", "application/x-director"],
217
+ ["dcurl", "text/vnd.curl.dcurl"],
218
+ ["dd2", "application/vnd.oma.dd2+xml"],
219
+ ["ddd", "application/vnd.fujixerox.ddd"],
220
+ ["ddf", "application/vnd.syncml.dmddf+xml"],
221
+ ["dds", "image/vnd.ms-dds"],
222
+ ["deb", "application/x-debian-package"],
223
+ ["def", "text/plain"],
224
+ ["deploy", "application/octet-stream"],
225
+ ["der", "application/x-x509-ca-cert"],
226
+ ["dfac", "application/vnd.dreamfactory"],
227
+ ["dgc", "application/x-dgc-compressed"],
228
+ ["dic", "text/x-c"],
229
+ ["dir", "application/x-director"],
230
+ ["dis", "application/vnd.mobius.dis"],
231
+ ["disposition-notification", "message/disposition-notification"],
232
+ ["dist", "application/octet-stream"],
233
+ ["distz", "application/octet-stream"],
234
+ ["djv", "image/vnd.djvu"],
235
+ ["djvu", "image/vnd.djvu"],
236
+ ["dll", "application/octet-stream"],
237
+ ["dmg", "application/x-apple-diskimage"],
238
+ ["dmn", "application/octet-stream"],
239
+ ["dmp", "application/vnd.tcpdump.pcap"],
240
+ ["dms", "application/octet-stream"],
241
+ ["dna", "application/vnd.dna"],
148
242
  ["doc", "application/msword"],
243
+ ["docm", "application/vnd.ms-word.template.macroEnabled.12"],
149
244
  ["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
245
+ ["dot", "application/msword"],
246
+ ["dotm", "application/vnd.ms-word.template.macroEnabled.12"],
247
+ ["dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
248
+ ["dp", "application/vnd.osgi.dp"],
249
+ ["dpg", "application/vnd.dpgraph"],
250
+ ["dra", "audio/vnd.dra"],
251
+ ["drle", "image/dicom-rle"],
252
+ ["dsc", "text/prs.lines.tag"],
253
+ ["dssc", "application/dssc+der"],
254
+ ["dtb", "application/x-dtbook+xml"],
255
+ ["dtd", "application/xml-dtd"],
256
+ ["dts", "audio/vnd.dts"],
257
+ ["dtshd", "audio/vnd.dts.hd"],
258
+ ["dump", "application/octet-stream"],
259
+ ["dvb", "video/vnd.dvb.file"],
260
+ ["dvi", "application/x-dvi"],
261
+ ["dwd", "application/atsc-dwd+xml"],
262
+ ["dwf", "model/vnd.dwf"],
263
+ ["dwg", "image/vnd.dwg"],
264
+ ["dxf", "image/vnd.dxf"],
265
+ ["dxp", "application/vnd.spotfire.dxp"],
266
+ ["dxr", "application/x-director"],
267
+ ["ear", "application/java-archive"],
268
+ ["ecelp4800", "audio/vnd.nuera.ecelp4800"],
269
+ ["ecelp7470", "audio/vnd.nuera.ecelp7470"],
270
+ ["ecelp9600", "audio/vnd.nuera.ecelp9600"],
271
+ ["ecma", "application/ecmascript"],
272
+ ["edm", "application/vnd.novadigm.edm"],
273
+ ["edx", "application/vnd.novadigm.edx"],
274
+ ["efif", "application/vnd.picsel"],
275
+ ["ei6", "application/vnd.pg.osasli"],
276
+ ["elc", "application/octet-stream"],
277
+ ["emf", "image/emf"],
278
+ ["eml", "message/rfc822"],
279
+ ["emma", "application/emma+xml"],
280
+ ["emotionml", "application/emotionml+xml"],
281
+ ["emz", "application/x-msmetafile"],
282
+ ["eol", "audio/vnd.digital-winds"],
150
283
  ["eot", "application/vnd.ms-fontobject"],
284
+ ["eps", "application/postscript"],
151
285
  ["epub", "application/epub+zip"],
152
- ["gz", "application/gzip"],
286
+ ["es", "application/ecmascript"],
287
+ ["es3", "application/vnd.eszigno3+xml"],
288
+ ["esa", "application/vnd.osgi.subsystem"],
289
+ ["esf", "application/vnd.epson.esf"],
290
+ ["et3", "application/vnd.eszigno3+xml"],
291
+ ["etx", "text/x-setext"],
292
+ ["eva", "application/x-eva"],
293
+ ["evy", "application/x-envoy"],
294
+ ["exe", "application/octet-stream"],
295
+ ["exi", "application/exi"],
296
+ ["exp", "application/express"],
297
+ ["exr", "image/aces"],
298
+ ["ext", "application/vnd.novadigm.ext"],
299
+ ["ez", "application/andrew-inset"],
300
+ ["ez2", "application/vnd.ezpix-album"],
301
+ ["ez3", "application/vnd.ezpix-package"],
302
+ ["f", "text/x-fortran"],
303
+ ["f4v", "video/mp4"],
304
+ ["f77", "text/x-fortran"],
305
+ ["f90", "text/x-fortran"],
306
+ ["fbs", "image/vnd.fastbidsheet"],
307
+ ["fcdt", "application/vnd.adobe.formscentral.fcdt"],
308
+ ["fcs", "application/vnd.isac.fcs"],
309
+ ["fdf", "application/vnd.fdf"],
310
+ ["fdt", "application/fdt+xml"],
311
+ ["fe_launch", "application/vnd.denovo.fcselayout-link"],
312
+ ["fg5", "application/vnd.fujitsu.oasysgp"],
313
+ ["fgd", "application/x-director"],
314
+ ["fh", "image/x-freehand"],
315
+ ["fh4", "image/x-freehand"],
316
+ ["fh5", "image/x-freehand"],
317
+ ["fh7", "image/x-freehand"],
318
+ ["fhc", "image/x-freehand"],
319
+ ["fig", "application/x-xfig"],
320
+ ["fits", "image/fits"],
321
+ ["flac", "audio/x-flac"],
322
+ ["fli", "video/x-fli"],
323
+ ["flo", "application/vnd.micrografx.flo"],
324
+ ["flv", "video/x-flv"],
325
+ ["flw", "application/vnd.kde.kivio"],
326
+ ["flx", "text/vnd.fmi.flexstor"],
327
+ ["fly", "text/vnd.fly"],
328
+ ["fm", "application/vnd.framemaker"],
329
+ ["fnc", "application/vnd.frogans.fnc"],
330
+ ["fo", "application/vnd.software602.filler.form+xml"],
331
+ ["for", "text/x-fortran"],
332
+ ["fpx", "image/vnd.fpx"],
333
+ ["frame", "application/vnd.framemaker"],
334
+ ["fsc", "application/vnd.fsc.weblaunch"],
335
+ ["fst", "image/vnd.fst"],
336
+ ["ftc", "application/vnd.fluxtime.clip"],
337
+ ["fti", "application/vnd.anser-web-funds-transfer-initiation"],
338
+ ["fvt", "video/vnd.fvt"],
339
+ ["fxp", "application/vnd.adobe.fxp"],
340
+ ["fxpl", "application/vnd.adobe.fxp"],
341
+ ["fzs", "application/vnd.fuzzysheet"],
342
+ ["g2w", "application/vnd.geoplan"],
343
+ ["g3", "image/g3fax"],
344
+ ["g3w", "application/vnd.geospace"],
345
+ ["gac", "application/vnd.groove-account"],
346
+ ["gam", "application/x-tads"],
347
+ ["gbr", "application/rpki-ghostbusters"],
348
+ ["gca", "application/x-gca-compressed"],
349
+ ["gdl", "model/vnd.gdl"],
350
+ ["gdoc", "application/vnd.google-apps.document"],
351
+ ["geo", "application/vnd.dynageo"],
352
+ ["geojson", "application/geo+json"],
353
+ ["gex", "application/vnd.geometry-explorer"],
354
+ ["ggb", "application/vnd.geogebra.file"],
355
+ ["ggt", "application/vnd.geogebra.tool"],
356
+ ["ghf", "application/vnd.groove-help"],
153
357
  ["gif", "image/gif"],
358
+ ["gim", "application/vnd.groove-identity-message"],
359
+ ["glb", "model/gltf-binary"],
360
+ ["gltf", "model/gltf+json"],
361
+ ["gml", "application/gml+xml"],
362
+ ["gmx", "application/vnd.gmx"],
363
+ ["gnumeric", "application/x-gnumeric"],
364
+ ["gpg", "application/gpg-keys"],
365
+ ["gph", "application/vnd.flographit"],
366
+ ["gpx", "application/gpx+xml"],
367
+ ["gqf", "application/vnd.grafeq"],
368
+ ["gqs", "application/vnd.grafeq"],
369
+ ["gram", "application/srgs"],
370
+ ["gramps", "application/x-gramps-xml"],
371
+ ["gre", "application/vnd.geometry-explorer"],
372
+ ["grv", "application/vnd.groove-injector"],
373
+ ["grxml", "application/srgs+xml"],
374
+ ["gsf", "application/x-font-ghostscript"],
375
+ ["gsheet", "application/vnd.google-apps.spreadsheet"],
376
+ ["gslides", "application/vnd.google-apps.presentation"],
377
+ ["gtar", "application/x-gtar"],
378
+ ["gtm", "application/vnd.groove-tool-message"],
379
+ ["gtw", "model/vnd.gtw"],
380
+ ["gv", "text/vnd.graphviz"],
381
+ ["gxf", "application/gxf"],
382
+ ["gxt", "application/vnd.geonext"],
383
+ ["gz", "application/gzip"],
384
+ ["gzip", "application/gzip"],
385
+ ["h", "text/x-c"],
386
+ ["h261", "video/h261"],
387
+ ["h263", "video/h263"],
388
+ ["h264", "video/h264"],
389
+ ["hal", "application/vnd.hal+xml"],
390
+ ["hbci", "application/vnd.hbci"],
391
+ ["hbs", "text/x-handlebars-template"],
392
+ ["hdd", "application/x-virtualbox-hdd"],
393
+ ["hdf", "application/x-hdf"],
154
394
  ["heic", "image/heic"],
395
+ ["heics", "image/heic-sequence"],
155
396
  ["heif", "image/heif"],
397
+ ["heifs", "image/heif-sequence"],
398
+ ["hej2", "image/hej2k"],
399
+ ["held", "application/atsc-held+xml"],
400
+ ["hh", "text/x-c"],
401
+ ["hjson", "application/hjson"],
402
+ ["hlp", "application/winhlp"],
403
+ ["hpgl", "application/vnd.hp-hpgl"],
404
+ ["hpid", "application/vnd.hp-hpid"],
405
+ ["hps", "application/vnd.hp-hps"],
406
+ ["hqx", "application/mac-binhex40"],
407
+ ["hsj2", "image/hsj2"],
408
+ ["htc", "text/x-component"],
409
+ ["htke", "application/vnd.kenameaapp"],
156
410
  ["htm", "text/html"],
157
411
  ["html", "text/html"],
158
- ["ico", "image/vnd.microsoft.icon"],
412
+ ["hvd", "application/vnd.yamaha.hv-dic"],
413
+ ["hvp", "application/vnd.yamaha.hv-voice"],
414
+ ["hvs", "application/vnd.yamaha.hv-script"],
415
+ ["i2g", "application/vnd.intergeo"],
416
+ ["icc", "application/vnd.iccprofile"],
417
+ ["ice", "x-conference/x-cooltalk"],
418
+ ["icm", "application/vnd.iccprofile"],
419
+ ["ico", "image/x-icon"],
159
420
  ["ics", "text/calendar"],
421
+ ["ief", "image/ief"],
422
+ ["ifb", "text/calendar"],
423
+ ["ifm", "application/vnd.shana.informed.formdata"],
424
+ ["iges", "model/iges"],
425
+ ["igl", "application/vnd.igloader"],
426
+ ["igm", "application/vnd.insors.igm"],
427
+ ["igs", "model/iges"],
428
+ ["igx", "application/vnd.micrografx.igx"],
429
+ ["iif", "application/vnd.shana.informed.interchange"],
430
+ ["img", "application/octet-stream"],
431
+ ["imp", "application/vnd.accpac.simply.imp"],
432
+ ["ims", "application/vnd.ms-ims"],
433
+ ["in", "text/plain"],
434
+ ["ini", "text/plain"],
435
+ ["ink", "application/inkml+xml"],
436
+ ["inkml", "application/inkml+xml"],
437
+ ["install", "application/x-install-instructions"],
438
+ ["iota", "application/vnd.astraea-software.iota"],
439
+ ["ipfix", "application/ipfix"],
440
+ ["ipk", "application/vnd.shana.informed.package"],
441
+ ["irm", "application/vnd.ibm.rights-management"],
442
+ ["irp", "application/vnd.irepository.package+xml"],
443
+ ["iso", "application/x-iso9660-image"],
444
+ ["itp", "application/vnd.shana.informed.formtemplate"],
445
+ ["its", "application/its+xml"],
446
+ ["ivp", "application/vnd.immervision-ivp"],
447
+ ["ivu", "application/vnd.immervision-ivu"],
448
+ ["jad", "text/vnd.sun.j2me.app-descriptor"],
449
+ ["jade", "text/jade"],
450
+ ["jam", "application/vnd.jam"],
160
451
  ["jar", "application/java-archive"],
452
+ ["jardiff", "application/x-java-archive-diff"],
453
+ ["java", "text/x-java-source"],
454
+ ["jhc", "image/jphc"],
455
+ ["jisp", "application/vnd.jisp"],
456
+ ["jls", "image/jls"],
457
+ ["jlt", "application/vnd.hp-jlyt"],
458
+ ["jng", "image/x-jng"],
459
+ ["jnlp", "application/x-java-jnlp-file"],
460
+ ["joda", "application/vnd.joost.joda-archive"],
461
+ ["jp2", "image/jp2"],
462
+ ["jpe", "image/jpeg"],
161
463
  ["jpeg", "image/jpeg"],
464
+ ["jpf", "image/jpx"],
162
465
  ["jpg", "image/jpeg"],
163
- ["js", "text/javascript"],
466
+ ["jpg2", "image/jp2"],
467
+ ["jpgm", "video/jpm"],
468
+ ["jpgv", "video/jpeg"],
469
+ ["jph", "image/jph"],
470
+ ["jpm", "video/jpm"],
471
+ ["jpx", "image/jpx"],
472
+ ["js", "application/javascript"],
164
473
  ["json", "application/json"],
474
+ ["json5", "application/json5"],
165
475
  ["jsonld", "application/ld+json"],
476
+ // https://jsonlines.org/
477
+ ["jsonl", "application/jsonl"],
478
+ ["jsonml", "application/jsonml+json"],
479
+ ["jsx", "text/jsx"],
480
+ ["jxr", "image/jxr"],
481
+ ["jxra", "image/jxra"],
482
+ ["jxrs", "image/jxrs"],
483
+ ["jxs", "image/jxs"],
484
+ ["jxsc", "image/jxsc"],
485
+ ["jxsi", "image/jxsi"],
486
+ ["jxss", "image/jxss"],
487
+ ["kar", "audio/midi"],
488
+ ["karbon", "application/vnd.kde.karbon"],
489
+ ["kdb", "application/octet-stream"],
490
+ ["kdbx", "application/x-keepass2"],
491
+ ["key", "application/x-iwork-keynote-sffkey"],
492
+ ["kfo", "application/vnd.kde.kformula"],
493
+ ["kia", "application/vnd.kidspiration"],
494
+ ["kml", "application/vnd.google-earth.kml+xml"],
495
+ ["kmz", "application/vnd.google-earth.kmz"],
496
+ ["kne", "application/vnd.kinar"],
497
+ ["knp", "application/vnd.kinar"],
498
+ ["kon", "application/vnd.kde.kontour"],
499
+ ["kpr", "application/vnd.kde.kpresenter"],
500
+ ["kpt", "application/vnd.kde.kpresenter"],
501
+ ["kpxx", "application/vnd.ds-keypoint"],
502
+ ["ksp", "application/vnd.kde.kspread"],
503
+ ["ktr", "application/vnd.kahootz"],
504
+ ["ktx", "image/ktx"],
505
+ ["ktx2", "image/ktx2"],
506
+ ["ktz", "application/vnd.kahootz"],
507
+ ["kwd", "application/vnd.kde.kword"],
508
+ ["kwt", "application/vnd.kde.kword"],
509
+ ["lasxml", "application/vnd.las.las+xml"],
510
+ ["latex", "application/x-latex"],
511
+ ["lbd", "application/vnd.llamagraphics.life-balance.desktop"],
512
+ ["lbe", "application/vnd.llamagraphics.life-balance.exchange+xml"],
513
+ ["les", "application/vnd.hhe.lesson-player"],
514
+ ["less", "text/less"],
515
+ ["lgr", "application/lgr+xml"],
516
+ ["lha", "application/octet-stream"],
517
+ ["link66", "application/vnd.route66.link66+xml"],
518
+ ["list", "text/plain"],
519
+ ["list3820", "application/vnd.ibm.modcap"],
520
+ ["listafp", "application/vnd.ibm.modcap"],
521
+ ["litcoffee", "text/coffeescript"],
522
+ ["lnk", "application/x-ms-shortcut"],
523
+ ["log", "text/plain"],
524
+ ["lostxml", "application/lost+xml"],
525
+ ["lrf", "application/octet-stream"],
526
+ ["lrm", "application/vnd.ms-lrm"],
527
+ ["ltf", "application/vnd.frogans.ltf"],
528
+ ["lua", "text/x-lua"],
529
+ ["luac", "application/x-lua-bytecode"],
530
+ ["lvp", "audio/vnd.lucent.voice"],
531
+ ["lwp", "application/vnd.lotus-wordpro"],
532
+ ["lzh", "application/octet-stream"],
533
+ ["m1v", "video/mpeg"],
534
+ ["m2a", "audio/mpeg"],
535
+ ["m2v", "video/mpeg"],
536
+ ["m3a", "audio/mpeg"],
537
+ ["m3u", "text/plain"],
538
+ ["m3u8", "application/vnd.apple.mpegurl"],
539
+ ["m4a", "audio/x-m4a"],
540
+ ["m4p", "application/mp4"],
541
+ ["m4s", "video/iso.segment"],
542
+ ["m4u", "application/vnd.mpegurl"],
543
+ ["m4v", "video/x-m4v"],
544
+ ["m13", "application/x-msmediaview"],
545
+ ["m14", "application/x-msmediaview"],
546
+ ["m21", "application/mp21"],
547
+ ["ma", "application/mathematica"],
548
+ ["mads", "application/mads+xml"],
549
+ ["maei", "application/mmt-aei+xml"],
550
+ ["mag", "application/vnd.ecowin.chart"],
551
+ ["maker", "application/vnd.framemaker"],
552
+ ["man", "text/troff"],
553
+ ["manifest", "text/cache-manifest"],
554
+ ["map", "application/json"],
555
+ ["mar", "application/octet-stream"],
556
+ ["markdown", "text/markdown"],
557
+ ["mathml", "application/mathml+xml"],
558
+ ["mb", "application/mathematica"],
559
+ ["mbk", "application/vnd.mobius.mbk"],
560
+ ["mbox", "application/mbox"],
561
+ ["mc1", "application/vnd.medcalcdata"],
562
+ ["mcd", "application/vnd.mcd"],
563
+ ["mcurl", "text/vnd.curl.mcurl"],
564
+ ["md", "text/markdown"],
565
+ ["mdb", "application/x-msaccess"],
566
+ ["mdi", "image/vnd.ms-modi"],
567
+ ["mdx", "text/mdx"],
568
+ ["me", "text/troff"],
569
+ ["mesh", "model/mesh"],
570
+ ["meta4", "application/metalink4+xml"],
571
+ ["metalink", "application/metalink+xml"],
572
+ ["mets", "application/mets+xml"],
573
+ ["mfm", "application/vnd.mfmp"],
574
+ ["mft", "application/rpki-manifest"],
575
+ ["mgp", "application/vnd.osgeo.mapguide.package"],
576
+ ["mgz", "application/vnd.proteus.magazine"],
166
577
  ["mid", "audio/midi"],
167
578
  ["midi", "audio/midi"],
168
- ["mjs", "text/javascript"],
579
+ ["mie", "application/x-mie"],
580
+ ["mif", "application/vnd.mif"],
581
+ ["mime", "message/rfc822"],
582
+ ["mj2", "video/mj2"],
583
+ ["mjp2", "video/mj2"],
584
+ ["mjs", "application/javascript"],
585
+ ["mk3d", "video/x-matroska"],
586
+ ["mka", "audio/x-matroska"],
587
+ ["mkd", "text/x-markdown"],
588
+ ["mks", "video/x-matroska"],
589
+ ["mkv", "video/x-matroska"],
590
+ ["mlp", "application/vnd.dolby.mlp"],
591
+ ["mmd", "application/vnd.chipnuts.karaoke-mmd"],
592
+ ["mmf", "application/vnd.smaf"],
593
+ ["mml", "text/mathml"],
594
+ ["mmr", "image/vnd.fujixerox.edmics-mmr"],
595
+ ["mng", "video/x-mng"],
596
+ ["mny", "application/x-msmoney"],
597
+ ["mobi", "application/x-mobipocket-ebook"],
598
+ ["mods", "application/mods+xml"],
599
+ ["mov", "video/quicktime"],
600
+ ["movie", "video/x-sgi-movie"],
601
+ ["mp2", "audio/mpeg"],
602
+ ["mp2a", "audio/mpeg"],
169
603
  ["mp3", "audio/mpeg"],
170
604
  ["mp4", "video/mp4"],
605
+ ["mp4a", "audio/mp4"],
606
+ ["mp4s", "application/mp4"],
607
+ ["mp4v", "video/mp4"],
608
+ ["mp21", "application/mp21"],
609
+ ["mpc", "application/vnd.mophun.certificate"],
610
+ ["mpd", "application/dash+xml"],
611
+ ["mpe", "video/mpeg"],
171
612
  ["mpeg", "video/mpeg"],
613
+ ["mpg", "video/mpeg"],
614
+ ["mpg4", "video/mp4"],
615
+ ["mpga", "audio/mpeg"],
172
616
  ["mpkg", "application/vnd.apple.installer+xml"],
617
+ ["mpm", "application/vnd.blueice.multipass"],
618
+ ["mpn", "application/vnd.mophun.application"],
619
+ ["mpp", "application/vnd.ms-project"],
620
+ ["mpt", "application/vnd.ms-project"],
621
+ ["mpy", "application/vnd.ibm.minipay"],
622
+ ["mqy", "application/vnd.mobius.mqy"],
623
+ ["mrc", "application/marc"],
624
+ ["mrcx", "application/marcxml+xml"],
625
+ ["ms", "text/troff"],
626
+ ["mscml", "application/mediaservercontrol+xml"],
627
+ ["mseed", "application/vnd.fdsn.mseed"],
628
+ ["mseq", "application/vnd.mseq"],
629
+ ["msf", "application/vnd.epson.msf"],
630
+ ["msg", "application/vnd.ms-outlook"],
631
+ ["msh", "model/mesh"],
632
+ ["msi", "application/x-msdownload"],
633
+ ["msl", "application/vnd.mobius.msl"],
634
+ ["msm", "application/octet-stream"],
635
+ ["msp", "application/octet-stream"],
636
+ ["msty", "application/vnd.muvee.style"],
637
+ ["mtl", "model/mtl"],
638
+ ["mts", "model/vnd.mts"],
639
+ ["mus", "application/vnd.musician"],
640
+ ["musd", "application/mmt-usd+xml"],
641
+ ["musicxml", "application/vnd.recordare.musicxml+xml"],
642
+ ["mvb", "application/x-msmediaview"],
643
+ ["mvt", "application/vnd.mapbox-vector-tile"],
644
+ ["mwf", "application/vnd.mfer"],
645
+ ["mxf", "application/mxf"],
646
+ ["mxl", "application/vnd.recordare.musicxml"],
647
+ ["mxmf", "audio/mobile-xmf"],
648
+ ["mxml", "application/xv+xml"],
649
+ ["mxs", "application/vnd.triscape.mxs"],
650
+ ["mxu", "video/vnd.mpegurl"],
651
+ ["n-gage", "application/vnd.nokia.n-gage.symbian.install"],
652
+ ["n3", "text/n3"],
653
+ ["nb", "application/mathematica"],
654
+ ["nbp", "application/vnd.wolfram.player"],
655
+ ["nc", "application/x-netcdf"],
656
+ ["ncx", "application/x-dtbncx+xml"],
657
+ ["nfo", "text/x-nfo"],
658
+ ["ngdat", "application/vnd.nokia.n-gage.data"],
659
+ ["nitf", "application/vnd.nitf"],
660
+ ["nlu", "application/vnd.neurolanguage.nlu"],
661
+ ["nml", "application/vnd.enliven"],
662
+ ["nnd", "application/vnd.noblenet-directory"],
663
+ ["nns", "application/vnd.noblenet-sealer"],
664
+ ["nnw", "application/vnd.noblenet-web"],
665
+ ["npx", "image/vnd.net-fpx"],
666
+ ["nq", "application/n-quads"],
667
+ ["nsc", "application/x-conference"],
668
+ ["nsf", "application/vnd.lotus-notes"],
669
+ ["nt", "application/n-triples"],
670
+ ["ntf", "application/vnd.nitf"],
671
+ ["numbers", "application/x-iwork-numbers-sffnumbers"],
672
+ ["nzb", "application/x-nzb"],
673
+ ["oa2", "application/vnd.fujitsu.oasys2"],
674
+ ["oa3", "application/vnd.fujitsu.oasys3"],
675
+ ["oas", "application/vnd.fujitsu.oasys"],
676
+ ["obd", "application/x-msbinder"],
677
+ ["obgx", "application/vnd.openblox.game+xml"],
678
+ ["obj", "model/obj"],
679
+ ["oda", "application/oda"],
680
+ ["odb", "application/vnd.oasis.opendocument.database"],
681
+ ["odc", "application/vnd.oasis.opendocument.chart"],
682
+ ["odf", "application/vnd.oasis.opendocument.formula"],
683
+ ["odft", "application/vnd.oasis.opendocument.formula-template"],
684
+ ["odg", "application/vnd.oasis.opendocument.graphics"],
685
+ ["odi", "application/vnd.oasis.opendocument.image"],
686
+ ["odm", "application/vnd.oasis.opendocument.text-master"],
173
687
  ["odp", "application/vnd.oasis.opendocument.presentation"],
174
688
  ["ods", "application/vnd.oasis.opendocument.spreadsheet"],
175
689
  ["odt", "application/vnd.oasis.opendocument.text"],
176
690
  ["oga", "audio/ogg"],
691
+ ["ogex", "model/vnd.opengex"],
692
+ ["ogg", "audio/ogg"],
177
693
  ["ogv", "video/ogg"],
178
694
  ["ogx", "application/ogg"],
179
- ["opus", "audio/opus"],
695
+ ["omdoc", "application/omdoc+xml"],
696
+ ["onepkg", "application/onenote"],
697
+ ["onetmp", "application/onenote"],
698
+ ["onetoc", "application/onenote"],
699
+ ["onetoc2", "application/onenote"],
700
+ ["opf", "application/oebps-package+xml"],
701
+ ["opml", "text/x-opml"],
702
+ ["oprc", "application/vnd.palm"],
703
+ ["opus", "audio/ogg"],
704
+ ["org", "text/x-org"],
705
+ ["osf", "application/vnd.yamaha.openscoreformat"],
706
+ ["osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml"],
707
+ ["osm", "application/vnd.openstreetmap.data+xml"],
708
+ ["otc", "application/vnd.oasis.opendocument.chart-template"],
180
709
  ["otf", "font/otf"],
181
- ["png", "image/png"],
710
+ ["otg", "application/vnd.oasis.opendocument.graphics-template"],
711
+ ["oth", "application/vnd.oasis.opendocument.text-web"],
712
+ ["oti", "application/vnd.oasis.opendocument.image-template"],
713
+ ["otp", "application/vnd.oasis.opendocument.presentation-template"],
714
+ ["ots", "application/vnd.oasis.opendocument.spreadsheet-template"],
715
+ ["ott", "application/vnd.oasis.opendocument.text-template"],
716
+ ["ova", "application/x-virtualbox-ova"],
717
+ ["ovf", "application/x-virtualbox-ovf"],
718
+ ["owl", "application/rdf+xml"],
719
+ ["oxps", "application/oxps"],
720
+ ["oxt", "application/vnd.openofficeorg.extension"],
721
+ ["p", "text/x-pascal"],
722
+ ["p7a", "application/x-pkcs7-signature"],
723
+ ["p7b", "application/x-pkcs7-certificates"],
724
+ ["p7c", "application/pkcs7-mime"],
725
+ ["p7m", "application/pkcs7-mime"],
726
+ ["p7r", "application/x-pkcs7-certreqresp"],
727
+ ["p7s", "application/pkcs7-signature"],
728
+ ["p8", "application/pkcs8"],
729
+ ["p10", "application/x-pkcs10"],
730
+ ["p12", "application/x-pkcs12"],
731
+ ["pac", "application/x-ns-proxy-autoconfig"],
732
+ ["pages", "application/x-iwork-pages-sffpages"],
733
+ ["pas", "text/x-pascal"],
734
+ ["paw", "application/vnd.pawaafile"],
735
+ ["pbd", "application/vnd.powerbuilder6"],
736
+ ["pbm", "image/x-portable-bitmap"],
737
+ ["pcap", "application/vnd.tcpdump.pcap"],
738
+ ["pcf", "application/x-font-pcf"],
739
+ ["pcl", "application/vnd.hp-pcl"],
740
+ ["pclxl", "application/vnd.hp-pclxl"],
741
+ ["pct", "image/x-pict"],
742
+ ["pcurl", "application/vnd.curl.pcurl"],
743
+ ["pcx", "image/x-pcx"],
744
+ ["pdb", "application/x-pilot"],
745
+ ["pde", "text/x-processing"],
182
746
  ["pdf", "application/pdf"],
747
+ ["pem", "application/x-x509-user-cert"],
748
+ ["pfa", "application/x-font-type1"],
749
+ ["pfb", "application/x-font-type1"],
750
+ ["pfm", "application/x-font-type1"],
751
+ ["pfr", "application/font-tdpfr"],
752
+ ["pfx", "application/x-pkcs12"],
753
+ ["pgm", "image/x-portable-graymap"],
754
+ ["pgn", "application/x-chess-pgn"],
755
+ ["pgp", "application/pgp"],
183
756
  ["php", "application/x-httpd-php"],
184
- ["ppt", "application/vnd.ms-powerpoint"],
757
+ ["php3", "application/x-httpd-php"],
758
+ ["php4", "application/x-httpd-php"],
759
+ ["phps", "application/x-httpd-php-source"],
760
+ ["phtml", "application/x-httpd-php"],
761
+ ["pic", "image/x-pict"],
762
+ ["pkg", "application/octet-stream"],
763
+ ["pki", "application/pkixcmp"],
764
+ ["pkipath", "application/pkix-pkipath"],
765
+ ["pkpass", "application/vnd.apple.pkpass"],
766
+ ["pl", "application/x-perl"],
767
+ ["plb", "application/vnd.3gpp.pic-bw-large"],
768
+ ["plc", "application/vnd.mobius.plc"],
769
+ ["plf", "application/vnd.pocketlearn"],
770
+ ["pls", "application/pls+xml"],
771
+ ["pm", "application/x-perl"],
772
+ ["pml", "application/vnd.ctc-posml"],
773
+ ["png", "image/png"],
774
+ ["pnm", "image/x-portable-anymap"],
775
+ ["portpkg", "application/vnd.macports.portpkg"],
776
+ ["pot", "application/vnd.ms-powerpoint"],
777
+ ["potm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
778
+ ["potx", "application/vnd.openxmlformats-officedocument.presentationml.template"],
779
+ ["ppa", "application/vnd.ms-powerpoint"],
780
+ ["ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"],
781
+ ["ppd", "application/vnd.cups-ppd"],
782
+ ["ppm", "image/x-portable-pixmap"],
783
+ ["pps", "application/vnd.ms-powerpoint"],
784
+ ["ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
785
+ ["ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
786
+ ["ppt", "application/powerpoint"],
787
+ ["pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
185
788
  ["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
186
- ["rar", "application/vnd.rar"],
187
- ["rtf", "application/rtf"],
789
+ ["pqa", "application/vnd.palm"],
790
+ ["prc", "application/x-pilot"],
791
+ ["pre", "application/vnd.lotus-freelance"],
792
+ ["prf", "application/pics-rules"],
793
+ ["provx", "application/provenance+xml"],
794
+ ["ps", "application/postscript"],
795
+ ["psb", "application/vnd.3gpp.pic-bw-small"],
796
+ ["psd", "application/x-photoshop"],
797
+ ["psf", "application/x-font-linux-psf"],
798
+ ["pskcxml", "application/pskc+xml"],
799
+ ["pti", "image/prs.pti"],
800
+ ["ptid", "application/vnd.pvi.ptid1"],
801
+ ["pub", "application/x-mspublisher"],
802
+ ["pvb", "application/vnd.3gpp.pic-bw-var"],
803
+ ["pwn", "application/vnd.3m.post-it-notes"],
804
+ ["pya", "audio/vnd.ms-playready.media.pya"],
805
+ ["pyv", "video/vnd.ms-playready.media.pyv"],
806
+ ["qam", "application/vnd.epson.quickanime"],
807
+ ["qbo", "application/vnd.intu.qbo"],
808
+ ["qfx", "application/vnd.intu.qfx"],
809
+ ["qps", "application/vnd.publishare-delta-tree"],
810
+ ["qt", "video/quicktime"],
811
+ ["qwd", "application/vnd.quark.quarkxpress"],
812
+ ["qwt", "application/vnd.quark.quarkxpress"],
813
+ ["qxb", "application/vnd.quark.quarkxpress"],
814
+ ["qxd", "application/vnd.quark.quarkxpress"],
815
+ ["qxl", "application/vnd.quark.quarkxpress"],
816
+ ["qxt", "application/vnd.quark.quarkxpress"],
817
+ ["ra", "audio/x-realaudio"],
818
+ ["ram", "audio/x-pn-realaudio"],
819
+ ["raml", "application/raml+yaml"],
820
+ ["rapd", "application/route-apd+xml"],
821
+ ["rar", "application/x-rar"],
822
+ ["ras", "image/x-cmu-raster"],
823
+ ["rcprofile", "application/vnd.ipunplugged.rcprofile"],
824
+ ["rdf", "application/rdf+xml"],
825
+ ["rdz", "application/vnd.data-vision.rdz"],
826
+ ["relo", "application/p2p-overlay+xml"],
827
+ ["rep", "application/vnd.businessobjects"],
828
+ ["res", "application/x-dtbresource+xml"],
829
+ ["rgb", "image/x-rgb"],
830
+ ["rif", "application/reginfo+xml"],
831
+ ["rip", "audio/vnd.rip"],
832
+ ["ris", "application/x-research-info-systems"],
833
+ ["rl", "application/resource-lists+xml"],
834
+ ["rlc", "image/vnd.fujixerox.edmics-rlc"],
835
+ ["rld", "application/resource-lists-diff+xml"],
836
+ ["rm", "audio/x-pn-realaudio"],
837
+ ["rmi", "audio/midi"],
838
+ ["rmp", "audio/x-pn-realaudio-plugin"],
839
+ ["rms", "application/vnd.jcp.javame.midlet-rms"],
840
+ ["rmvb", "application/vnd.rn-realmedia-vbr"],
841
+ ["rnc", "application/relax-ng-compact-syntax"],
842
+ ["rng", "application/xml"],
843
+ ["roa", "application/rpki-roa"],
844
+ ["roff", "text/troff"],
845
+ ["rp9", "application/vnd.cloanto.rp9"],
846
+ ["rpm", "audio/x-pn-realaudio-plugin"],
847
+ ["rpss", "application/vnd.nokia.radio-presets"],
848
+ ["rpst", "application/vnd.nokia.radio-preset"],
849
+ ["rq", "application/sparql-query"],
850
+ ["rs", "application/rls-services+xml"],
851
+ ["rsa", "application/x-pkcs7"],
852
+ ["rsat", "application/atsc-rsat+xml"],
853
+ ["rsd", "application/rsd+xml"],
854
+ ["rsheet", "application/urc-ressheet+xml"],
855
+ ["rss", "application/rss+xml"],
856
+ ["rtf", "text/rtf"],
857
+ ["rtx", "text/richtext"],
858
+ ["run", "application/x-makeself"],
859
+ ["rusd", "application/route-usd+xml"],
860
+ ["rv", "video/vnd.rn-realvideo"],
861
+ ["s", "text/x-asm"],
862
+ ["s3m", "audio/s3m"],
863
+ ["saf", "application/vnd.yamaha.smaf-audio"],
864
+ ["sass", "text/x-sass"],
865
+ ["sbml", "application/sbml+xml"],
866
+ ["sc", "application/vnd.ibm.secure-container"],
867
+ ["scd", "application/x-msschedule"],
868
+ ["scm", "application/vnd.lotus-screencam"],
869
+ ["scq", "application/scvp-cv-request"],
870
+ ["scs", "application/scvp-cv-response"],
871
+ ["scss", "text/x-scss"],
872
+ ["scurl", "text/vnd.curl.scurl"],
873
+ ["sda", "application/vnd.stardivision.draw"],
874
+ ["sdc", "application/vnd.stardivision.calc"],
875
+ ["sdd", "application/vnd.stardivision.impress"],
876
+ ["sdkd", "application/vnd.solent.sdkm+xml"],
877
+ ["sdkm", "application/vnd.solent.sdkm+xml"],
878
+ ["sdp", "application/sdp"],
879
+ ["sdw", "application/vnd.stardivision.writer"],
880
+ ["sea", "application/octet-stream"],
881
+ ["see", "application/vnd.seemail"],
882
+ ["seed", "application/vnd.fdsn.seed"],
883
+ ["sema", "application/vnd.sema"],
884
+ ["semd", "application/vnd.semd"],
885
+ ["semf", "application/vnd.semf"],
886
+ ["senmlx", "application/senml+xml"],
887
+ ["sensmlx", "application/sensml+xml"],
888
+ ["ser", "application/java-serialized-object"],
889
+ ["setpay", "application/set-payment-initiation"],
890
+ ["setreg", "application/set-registration-initiation"],
891
+ ["sfd-hdstx", "application/vnd.hydrostatix.sof-data"],
892
+ ["sfs", "application/vnd.spotfire.sfs"],
893
+ ["sfv", "text/x-sfv"],
894
+ ["sgi", "image/sgi"],
895
+ ["sgl", "application/vnd.stardivision.writer-global"],
896
+ ["sgm", "text/sgml"],
897
+ ["sgml", "text/sgml"],
188
898
  ["sh", "application/x-sh"],
899
+ ["shar", "application/x-shar"],
900
+ ["shex", "text/shex"],
901
+ ["shf", "application/shf+xml"],
902
+ ["shtml", "text/html"],
903
+ ["sid", "image/x-mrsid-image"],
904
+ ["sieve", "application/sieve"],
905
+ ["sig", "application/pgp-signature"],
906
+ ["sil", "audio/silk"],
907
+ ["silo", "model/mesh"],
908
+ ["sis", "application/vnd.symbian.install"],
909
+ ["sisx", "application/vnd.symbian.install"],
910
+ ["sit", "application/x-stuffit"],
911
+ ["sitx", "application/x-stuffitx"],
912
+ ["siv", "application/sieve"],
913
+ ["skd", "application/vnd.koan"],
914
+ ["skm", "application/vnd.koan"],
915
+ ["skp", "application/vnd.koan"],
916
+ ["skt", "application/vnd.koan"],
917
+ ["sldm", "application/vnd.ms-powerpoint.slide.macroenabled.12"],
918
+ ["sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"],
919
+ ["slim", "text/slim"],
920
+ ["slm", "text/slim"],
921
+ ["sls", "application/route-s-tsid+xml"],
922
+ ["slt", "application/vnd.epson.salt"],
923
+ ["sm", "application/vnd.stepmania.stepchart"],
924
+ ["smf", "application/vnd.stardivision.math"],
925
+ ["smi", "application/smil"],
926
+ ["smil", "application/smil"],
927
+ ["smv", "video/x-smv"],
928
+ ["smzip", "application/vnd.stepmania.package"],
929
+ ["snd", "audio/basic"],
930
+ ["snf", "application/x-font-snf"],
931
+ ["so", "application/octet-stream"],
932
+ ["spc", "application/x-pkcs7-certificates"],
933
+ ["spdx", "text/spdx"],
934
+ ["spf", "application/vnd.yamaha.smaf-phrase"],
935
+ ["spl", "application/x-futuresplash"],
936
+ ["spot", "text/vnd.in3d.spot"],
937
+ ["spp", "application/scvp-vp-response"],
938
+ ["spq", "application/scvp-vp-request"],
939
+ ["spx", "audio/ogg"],
940
+ ["sql", "application/x-sql"],
941
+ ["src", "application/x-wais-source"],
942
+ ["srt", "application/x-subrip"],
943
+ ["sru", "application/sru+xml"],
944
+ ["srx", "application/sparql-results+xml"],
945
+ ["ssdl", "application/ssdl+xml"],
946
+ ["sse", "application/vnd.kodak-descriptor"],
947
+ ["ssf", "application/vnd.epson.ssf"],
948
+ ["ssml", "application/ssml+xml"],
949
+ ["sst", "application/octet-stream"],
950
+ ["st", "application/vnd.sailingtracker.track"],
951
+ ["stc", "application/vnd.sun.xml.calc.template"],
952
+ ["std", "application/vnd.sun.xml.draw.template"],
953
+ ["stf", "application/vnd.wt.stf"],
954
+ ["sti", "application/vnd.sun.xml.impress.template"],
955
+ ["stk", "application/hyperstudio"],
956
+ ["stl", "model/stl"],
957
+ ["stpx", "model/step+xml"],
958
+ ["stpxz", "model/step-xml+zip"],
959
+ ["stpz", "model/step+zip"],
960
+ ["str", "application/vnd.pg.format"],
961
+ ["stw", "application/vnd.sun.xml.writer.template"],
962
+ ["styl", "text/stylus"],
963
+ ["stylus", "text/stylus"],
964
+ ["sub", "text/vnd.dvb.subtitle"],
965
+ ["sus", "application/vnd.sus-calendar"],
966
+ ["susp", "application/vnd.sus-calendar"],
967
+ ["sv4cpio", "application/x-sv4cpio"],
968
+ ["sv4crc", "application/x-sv4crc"],
969
+ ["svc", "application/vnd.dvb.service"],
970
+ ["svd", "application/vnd.svd"],
189
971
  ["svg", "image/svg+xml"],
972
+ ["svgz", "image/svg+xml"],
973
+ ["swa", "application/x-director"],
190
974
  ["swf", "application/x-shockwave-flash"],
975
+ ["swi", "application/vnd.aristanetworks.swi"],
976
+ ["swidtag", "application/swid+xml"],
977
+ ["sxc", "application/vnd.sun.xml.calc"],
978
+ ["sxd", "application/vnd.sun.xml.draw"],
979
+ ["sxg", "application/vnd.sun.xml.writer.global"],
980
+ ["sxi", "application/vnd.sun.xml.impress"],
981
+ ["sxm", "application/vnd.sun.xml.math"],
982
+ ["sxw", "application/vnd.sun.xml.writer"],
983
+ ["t", "text/troff"],
984
+ ["t3", "application/x-t3vm-image"],
985
+ ["t38", "image/t38"],
986
+ ["taglet", "application/vnd.mynfc"],
987
+ ["tao", "application/vnd.tao.intent-module-archive"],
988
+ ["tap", "image/vnd.tencent.tap"],
191
989
  ["tar", "application/x-tar"],
990
+ ["tcap", "application/vnd.3gpp2.tcap"],
991
+ ["tcl", "application/x-tcl"],
992
+ ["td", "application/urc-targetdesc+xml"],
993
+ ["teacher", "application/vnd.smart.teacher"],
994
+ ["tei", "application/tei+xml"],
995
+ ["teicorpus", "application/tei+xml"],
996
+ ["tex", "application/x-tex"],
997
+ ["texi", "application/x-texinfo"],
998
+ ["texinfo", "application/x-texinfo"],
999
+ ["text", "text/plain"],
1000
+ ["tfi", "application/thraud+xml"],
1001
+ ["tfm", "application/x-tex-tfm"],
1002
+ ["tfx", "image/tiff-fx"],
1003
+ ["tga", "image/x-tga"],
1004
+ ["tgz", "application/x-tar"],
1005
+ ["thmx", "application/vnd.ms-officetheme"],
192
1006
  ["tif", "image/tiff"],
193
1007
  ["tiff", "image/tiff"],
1008
+ ["tk", "application/x-tcl"],
1009
+ ["tmo", "application/vnd.tmobile-livetv"],
1010
+ ["toml", "application/toml"],
1011
+ ["torrent", "application/x-bittorrent"],
1012
+ ["tpl", "application/vnd.groove-tool-template"],
1013
+ ["tpt", "application/vnd.trid.tpt"],
1014
+ ["tr", "text/troff"],
1015
+ ["tra", "application/vnd.trueapp"],
1016
+ ["trig", "application/trig"],
1017
+ ["trm", "application/x-msterminal"],
194
1018
  ["ts", "video/mp2t"],
1019
+ ["tsd", "application/timestamped-data"],
1020
+ ["tsv", "text/tab-separated-values"],
1021
+ ["ttc", "font/collection"],
195
1022
  ["ttf", "font/ttf"],
1023
+ ["ttl", "text/turtle"],
1024
+ ["ttml", "application/ttml+xml"],
1025
+ ["twd", "application/vnd.simtech-mindmapper"],
1026
+ ["twds", "application/vnd.simtech-mindmapper"],
1027
+ ["txd", "application/vnd.genomatix.tuxedo"],
1028
+ ["txf", "application/vnd.mobius.txf"],
196
1029
  ["txt", "text/plain"],
1030
+ ["u8dsn", "message/global-delivery-status"],
1031
+ ["u8hdr", "message/global-headers"],
1032
+ ["u8mdn", "message/global-disposition-notification"],
1033
+ ["u8msg", "message/global"],
1034
+ ["u32", "application/x-authorware-bin"],
1035
+ ["ubj", "application/ubjson"],
1036
+ ["udeb", "application/x-debian-package"],
1037
+ ["ufd", "application/vnd.ufdl"],
1038
+ ["ufdl", "application/vnd.ufdl"],
1039
+ ["ulx", "application/x-glulx"],
1040
+ ["umj", "application/vnd.umajin"],
1041
+ ["unityweb", "application/vnd.unity"],
1042
+ ["uoml", "application/vnd.uoml+xml"],
1043
+ ["uri", "text/uri-list"],
1044
+ ["uris", "text/uri-list"],
1045
+ ["urls", "text/uri-list"],
1046
+ ["usdz", "model/vnd.usdz+zip"],
1047
+ ["ustar", "application/x-ustar"],
1048
+ ["utz", "application/vnd.uiq.theme"],
1049
+ ["uu", "text/x-uuencode"],
1050
+ ["uva", "audio/vnd.dece.audio"],
1051
+ ["uvd", "application/vnd.dece.data"],
1052
+ ["uvf", "application/vnd.dece.data"],
1053
+ ["uvg", "image/vnd.dece.graphic"],
1054
+ ["uvh", "video/vnd.dece.hd"],
1055
+ ["uvi", "image/vnd.dece.graphic"],
1056
+ ["uvm", "video/vnd.dece.mobile"],
1057
+ ["uvp", "video/vnd.dece.pd"],
1058
+ ["uvs", "video/vnd.dece.sd"],
1059
+ ["uvt", "application/vnd.dece.ttml+xml"],
1060
+ ["uvu", "video/vnd.uvvu.mp4"],
1061
+ ["uvv", "video/vnd.dece.video"],
1062
+ ["uvva", "audio/vnd.dece.audio"],
1063
+ ["uvvd", "application/vnd.dece.data"],
1064
+ ["uvvf", "application/vnd.dece.data"],
1065
+ ["uvvg", "image/vnd.dece.graphic"],
1066
+ ["uvvh", "video/vnd.dece.hd"],
1067
+ ["uvvi", "image/vnd.dece.graphic"],
1068
+ ["uvvm", "video/vnd.dece.mobile"],
1069
+ ["uvvp", "video/vnd.dece.pd"],
1070
+ ["uvvs", "video/vnd.dece.sd"],
1071
+ ["uvvt", "application/vnd.dece.ttml+xml"],
1072
+ ["uvvu", "video/vnd.uvvu.mp4"],
1073
+ ["uvvv", "video/vnd.dece.video"],
1074
+ ["uvvx", "application/vnd.dece.unspecified"],
1075
+ ["uvvz", "application/vnd.dece.zip"],
1076
+ ["uvx", "application/vnd.dece.unspecified"],
1077
+ ["uvz", "application/vnd.dece.zip"],
1078
+ ["vbox", "application/x-virtualbox-vbox"],
1079
+ ["vbox-extpack", "application/x-virtualbox-vbox-extpack"],
1080
+ ["vcard", "text/vcard"],
1081
+ ["vcd", "application/x-cdlink"],
1082
+ ["vcf", "text/x-vcard"],
1083
+ ["vcg", "application/vnd.groove-vcard"],
1084
+ ["vcs", "text/x-vcalendar"],
1085
+ ["vcx", "application/vnd.vcx"],
1086
+ ["vdi", "application/x-virtualbox-vdi"],
1087
+ ["vds", "model/vnd.sap.vds"],
1088
+ ["vhd", "application/x-virtualbox-vhd"],
1089
+ ["vis", "application/vnd.visionary"],
1090
+ ["viv", "video/vnd.vivo"],
1091
+ ["vlc", "application/videolan"],
1092
+ ["vmdk", "application/x-virtualbox-vmdk"],
1093
+ ["vob", "video/x-ms-vob"],
1094
+ ["vor", "application/vnd.stardivision.writer"],
1095
+ ["vox", "application/x-authorware-bin"],
1096
+ ["vrml", "model/vrml"],
197
1097
  ["vsd", "application/vnd.visio"],
198
- ["wav", "audio/wav"],
1098
+ ["vsf", "application/vnd.vsf"],
1099
+ ["vss", "application/vnd.visio"],
1100
+ ["vst", "application/vnd.visio"],
1101
+ ["vsw", "application/vnd.visio"],
1102
+ ["vtf", "image/vnd.valve.source.texture"],
1103
+ ["vtt", "text/vtt"],
1104
+ ["vtu", "model/vnd.vtu"],
1105
+ ["vxml", "application/voicexml+xml"],
1106
+ ["w3d", "application/x-director"],
1107
+ ["wad", "application/x-doom"],
1108
+ ["wadl", "application/vnd.sun.wadl+xml"],
1109
+ ["war", "application/java-archive"],
1110
+ ["wasm", "application/wasm"],
1111
+ ["wav", "audio/x-wav"],
1112
+ ["wax", "audio/x-ms-wax"],
1113
+ ["wbmp", "image/vnd.wap.wbmp"],
1114
+ ["wbs", "application/vnd.criticaltools.wbs+xml"],
1115
+ ["wbxml", "application/wbxml"],
1116
+ ["wcm", "application/vnd.ms-works"],
1117
+ ["wdb", "application/vnd.ms-works"],
1118
+ ["wdp", "image/vnd.ms-photo"],
199
1119
  ["weba", "audio/webm"],
1120
+ ["webapp", "application/x-web-app-manifest+json"],
200
1121
  ["webm", "video/webm"],
1122
+ ["webmanifest", "application/manifest+json"],
201
1123
  ["webp", "image/webp"],
1124
+ ["wg", "application/vnd.pmi.widget"],
1125
+ ["wgt", "application/widget"],
1126
+ ["wks", "application/vnd.ms-works"],
1127
+ ["wm", "video/x-ms-wm"],
1128
+ ["wma", "audio/x-ms-wma"],
1129
+ ["wmd", "application/x-ms-wmd"],
1130
+ ["wmf", "image/wmf"],
1131
+ ["wml", "text/vnd.wap.wml"],
1132
+ ["wmlc", "application/wmlc"],
1133
+ ["wmls", "text/vnd.wap.wmlscript"],
1134
+ ["wmlsc", "application/vnd.wap.wmlscriptc"],
1135
+ ["wmv", "video/x-ms-wmv"],
1136
+ ["wmx", "video/x-ms-wmx"],
1137
+ ["wmz", "application/x-msmetafile"],
202
1138
  ["woff", "font/woff"],
203
1139
  ["woff2", "font/woff2"],
1140
+ ["word", "application/msword"],
1141
+ ["wpd", "application/vnd.wordperfect"],
1142
+ ["wpl", "application/vnd.ms-wpl"],
1143
+ ["wps", "application/vnd.ms-works"],
1144
+ ["wqd", "application/vnd.wqd"],
1145
+ ["wri", "application/x-mswrite"],
1146
+ ["wrl", "model/vrml"],
1147
+ ["wsc", "message/vnd.wfa.wsc"],
1148
+ ["wsdl", "application/wsdl+xml"],
1149
+ ["wspolicy", "application/wspolicy+xml"],
1150
+ ["wtb", "application/vnd.webturbo"],
1151
+ ["wvx", "video/x-ms-wvx"],
1152
+ ["x3d", "model/x3d+xml"],
1153
+ ["x3db", "model/x3d+fastinfoset"],
1154
+ ["x3dbz", "model/x3d+binary"],
1155
+ ["x3dv", "model/x3d-vrml"],
1156
+ ["x3dvz", "model/x3d+vrml"],
1157
+ ["x3dz", "model/x3d+xml"],
1158
+ ["x32", "application/x-authorware-bin"],
1159
+ ["x_b", "model/vnd.parasolid.transmit.binary"],
1160
+ ["x_t", "model/vnd.parasolid.transmit.text"],
1161
+ ["xaml", "application/xaml+xml"],
1162
+ ["xap", "application/x-silverlight-app"],
1163
+ ["xar", "application/vnd.xara"],
1164
+ ["xav", "application/xcap-att+xml"],
1165
+ ["xbap", "application/x-ms-xbap"],
1166
+ ["xbd", "application/vnd.fujixerox.docuworks.binder"],
1167
+ ["xbm", "image/x-xbitmap"],
1168
+ ["xca", "application/xcap-caps+xml"],
1169
+ ["xcs", "application/calendar+xml"],
1170
+ ["xdf", "application/xcap-diff+xml"],
1171
+ ["xdm", "application/vnd.syncml.dm+xml"],
1172
+ ["xdp", "application/vnd.adobe.xdp+xml"],
1173
+ ["xdssc", "application/dssc+xml"],
1174
+ ["xdw", "application/vnd.fujixerox.docuworks"],
1175
+ ["xel", "application/xcap-el+xml"],
1176
+ ["xenc", "application/xenc+xml"],
1177
+ ["xer", "application/patch-ops-error+xml"],
1178
+ ["xfdf", "application/vnd.adobe.xfdf"],
1179
+ ["xfdl", "application/vnd.xfdl"],
1180
+ ["xht", "application/xhtml+xml"],
204
1181
  ["xhtml", "application/xhtml+xml"],
1182
+ ["xhvml", "application/xv+xml"],
1183
+ ["xif", "image/vnd.xiff"],
1184
+ ["xl", "application/excel"],
1185
+ ["xla", "application/vnd.ms-excel"],
1186
+ ["xlam", "application/vnd.ms-excel.addin.macroEnabled.12"],
1187
+ ["xlc", "application/vnd.ms-excel"],
1188
+ ["xlf", "application/xliff+xml"],
1189
+ ["xlm", "application/vnd.ms-excel"],
205
1190
  ["xls", "application/vnd.ms-excel"],
1191
+ ["xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
1192
+ ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
206
1193
  ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1194
+ ["xlt", "application/vnd.ms-excel"],
1195
+ ["xltm", "application/vnd.ms-excel.template.macroEnabled.12"],
1196
+ ["xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
1197
+ ["xlw", "application/vnd.ms-excel"],
1198
+ ["xm", "audio/xm"],
207
1199
  ["xml", "application/xml"],
1200
+ ["xns", "application/xcap-ns+xml"],
1201
+ ["xo", "application/vnd.olpc-sugar"],
1202
+ ["xop", "application/xop+xml"],
1203
+ ["xpi", "application/x-xpinstall"],
1204
+ ["xpl", "application/xproc+xml"],
1205
+ ["xpm", "image/x-xpixmap"],
1206
+ ["xpr", "application/vnd.is-xpr"],
1207
+ ["xps", "application/vnd.ms-xpsdocument"],
1208
+ ["xpw", "application/vnd.intercon.formnet"],
1209
+ ["xpx", "application/vnd.intercon.formnet"],
1210
+ ["xsd", "application/xml"],
1211
+ ["xsl", "application/xml"],
1212
+ ["xslt", "application/xslt+xml"],
1213
+ ["xsm", "application/vnd.syncml+xml"],
1214
+ ["xspf", "application/xspf+xml"],
208
1215
  ["xul", "application/vnd.mozilla.xul+xml"],
1216
+ ["xvm", "application/xv+xml"],
1217
+ ["xvml", "application/xv+xml"],
1218
+ ["xwd", "image/x-xwindowdump"],
1219
+ ["xyz", "chemical/x-xyz"],
1220
+ ["xz", "application/x-xz"],
1221
+ ["yaml", "text/yaml"],
1222
+ ["yang", "application/yang"],
1223
+ ["yin", "application/yin+xml"],
1224
+ ["yml", "text/yaml"],
1225
+ ["ymp", "text/x-suse-ymp"],
1226
+ ["z", "application/x-compress"],
1227
+ ["z1", "application/x-zmachine"],
1228
+ ["z2", "application/x-zmachine"],
1229
+ ["z3", "application/x-zmachine"],
1230
+ ["z4", "application/x-zmachine"],
1231
+ ["z5", "application/x-zmachine"],
1232
+ ["z6", "application/x-zmachine"],
1233
+ ["z7", "application/x-zmachine"],
1234
+ ["z8", "application/x-zmachine"],
1235
+ ["zaz", "application/vnd.zzazz.deck+xml"],
209
1236
  ["zip", "application/zip"],
210
- ["7z", "application/x-7z-compressed"],
211
- // Others
212
- ["mkv", "video/x-matroska"],
213
- ["mov", "video/quicktime"],
214
- ["msg", "application/vnd.ms-outlook"]
1237
+ ["zir", "application/vnd.zul"],
1238
+ ["zirz", "application/vnd.zul"],
1239
+ ["zmm", "application/vnd.handheld-entertainment+xml"],
1240
+ ["zsh", "text/x-scriptzsh"]
215
1241
  ]);
216
- function B(e, r) {
217
- var t = Mr(e);
218
- if (typeof t.path != "string") {
219
- var n = e.webkitRelativePath;
220
- Object.defineProperty(t, "path", {
221
- value: typeof r == "string" ? r : typeof n == "string" && n.length > 0 ? n : e.name,
1242
+ function T(a, i, t) {
1243
+ const n = Ai(a), { webkitRelativePath: p } = a, o = typeof i == "string" ? i : typeof p == "string" && p.length > 0 ? p : `./${a.name}`;
1244
+ return typeof n.path != "string" && Wa(n, "path", o), Wa(n, "relativePath", o), n;
1245
+ }
1246
+ function Ai(a) {
1247
+ const { name: i } = a;
1248
+ if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1249
+ const n = i.split(".").pop().toLowerCase(), p = Ei.get(n);
1250
+ p && Object.defineProperty(a, "type", {
1251
+ value: p,
222
1252
  writable: !1,
223
1253
  configurable: !1,
224
1254
  enumerable: !0
225
1255
  });
226
1256
  }
227
- return t;
228
- }
229
- function Mr(e) {
230
- var r = e.name, t = r && r.lastIndexOf(".") !== -1;
231
- if (t && !e.type) {
232
- var n = r.split(".").pop().toLowerCase(), i = Lr.get(n);
233
- i && Object.defineProperty(e, "type", {
234
- value: i,
235
- writable: !1,
236
- configurable: !1,
237
- enumerable: !0
238
- });
239
- }
240
- return e;
1257
+ return a;
1258
+ }
1259
+ function Wa(a, i, t) {
1260
+ Object.defineProperty(a, i, {
1261
+ value: t,
1262
+ writable: !1,
1263
+ configurable: !1,
1264
+ enumerable: !0
1265
+ });
241
1266
  }
242
- var $r = [
1267
+ const Fi = [
243
1268
  // Thumbnail cache files for macOS and Windows
244
1269
  ".DS_Store",
1270
+ // macOs
245
1271
  "Thumbs.db"
246
1272
  // Windows
247
1273
  ];
248
- function Kr(e) {
249
- return C(this, void 0, void 0, function() {
250
- return R(this, function(r) {
251
- return Z(e) && Hr(e.dataTransfer) ? [2, qr(e.dataTransfer, e.type)] : Wr(e) ? [2, Br(e)] : Array.isArray(e) && e.every(function(t) {
252
- return "getFile" in t && typeof t.getFile == "function";
253
- }) ? [2, Ur(e)] : [2, []];
254
- });
1274
+ function Oi(a) {
1275
+ return F(this, void 0, void 0, function* () {
1276
+ return X(a) && _i(a.dataTransfer) ? Ti(a.dataTransfer, a.type) : Pi(a) ? Si(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? qi(a) : [];
255
1277
  });
256
1278
  }
257
- function Hr(e) {
258
- return Z(e);
1279
+ function _i(a) {
1280
+ return X(a);
259
1281
  }
260
- function Wr(e) {
261
- return Z(e) && Z(e.target);
1282
+ function Pi(a) {
1283
+ return X(a) && X(a.target);
262
1284
  }
263
- function Z(e) {
264
- return typeof e == "object" && e !== null;
1285
+ function X(a) {
1286
+ return typeof a == "object" && a !== null;
265
1287
  }
266
- function Br(e) {
267
- return De(e.target.files).map(function(r) {
268
- return B(r);
269
- });
1288
+ function Si(a) {
1289
+ return ya(a.target.files).map((i) => T(i));
270
1290
  }
271
- function Ur(e) {
272
- return C(this, void 0, void 0, function() {
273
- var r;
274
- return R(this, function(t) {
275
- switch (t.label) {
276
- case 0:
277
- return [4, Promise.all(e.map(function(n) {
278
- return n.getFile();
279
- }))];
280
- case 1:
281
- return r = t.sent(), [2, r.map(function(n) {
282
- return B(n);
283
- })];
284
- }
285
- });
1291
+ function qi(a) {
1292
+ return F(this, void 0, void 0, function* () {
1293
+ return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => T(t));
286
1294
  });
287
1295
  }
288
- function qr(e, r) {
289
- return C(this, void 0, void 0, function() {
290
- var t, n;
291
- return R(this, function(i) {
292
- switch (i.label) {
293
- case 0:
294
- return e.items ? (t = De(e.items).filter(function(o) {
295
- return o.kind === "file";
296
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Nr))]) : [3, 2];
297
- case 1:
298
- return n = i.sent(), [2, Ge(cr(n))];
299
- case 2:
300
- return [2, Ge(De(e.files).map(function(o) {
301
- return B(o);
302
- }))];
303
- }
304
- });
1296
+ function Ti(a, i) {
1297
+ return F(this, void 0, void 0, function* () {
1298
+ if (a.items) {
1299
+ const t = ya(a.items).filter((p) => p.kind === "file");
1300
+ if (i !== "drop")
1301
+ return t;
1302
+ const n = yield Promise.all(t.map(Ii));
1303
+ return Ba(ii(n));
1304
+ }
1305
+ return Ba(ya(a.files).map((t) => T(t)));
305
1306
  });
306
1307
  }
307
- function Ge(e) {
308
- return e.filter(function(r) {
309
- return $r.indexOf(r.name) === -1;
310
- });
1308
+ function Ba(a) {
1309
+ return a.filter((i) => Fi.indexOf(i.name) === -1);
311
1310
  }
312
- function De(e) {
313
- if (e === null)
1311
+ function ya(a) {
1312
+ if (a === null)
314
1313
  return [];
315
- for (var r = [], t = 0; t < e.length; t++) {
316
- var n = e[t];
317
- r.push(n);
1314
+ const i = [];
1315
+ for (let t = 0; t < a.length; t++) {
1316
+ const n = a[t];
1317
+ i.push(n);
318
1318
  }
319
- return r;
320
- }
321
- function Nr(e) {
322
- if (typeof e.webkitGetAsEntry != "function")
323
- return Ye(e);
324
- var r = e.webkitGetAsEntry();
325
- return r && r.isDirectory ? lr(r) : Ye(e);
326
- }
327
- function cr(e) {
328
- return e.reduce(function(r, t) {
329
- return Ne(Ne([], qe(r), !1), qe(Array.isArray(t) ? cr(t) : [t]), !1);
330
- }, []);
331
- }
332
- function Ye(e) {
333
- var r = e.getAsFile();
334
- if (!r)
335
- return Promise.reject("".concat(e, " is not a File"));
336
- var t = B(r);
337
- return Promise.resolve(t);
338
- }
339
- function Gr(e) {
340
- return C(this, void 0, void 0, function() {
341
- return R(this, function(r) {
342
- return [2, e.isDirectory ? lr(e) : Yr(e)];
343
- });
1319
+ return i;
1320
+ }
1321
+ function Ii(a) {
1322
+ if (typeof a.webkitGetAsEntry != "function")
1323
+ return Ua(a);
1324
+ const i = a.webkitGetAsEntry();
1325
+ return i && i.isDirectory ? ti(i) : Ua(a, i);
1326
+ }
1327
+ function ii(a) {
1328
+ return a.reduce((i, t) => [
1329
+ ...i,
1330
+ ...Array.isArray(t) ? ii(t) : [t]
1331
+ ], []);
1332
+ }
1333
+ function Ua(a, i) {
1334
+ var t;
1335
+ if (typeof a.getAsFileSystemHandle == "function")
1336
+ return a.getAsFileSystemHandle().then((o) => F(this, void 0, void 0, function* () {
1337
+ const l = yield o.getFile();
1338
+ return l.handle = o, T(l);
1339
+ }));
1340
+ const n = a.getAsFile();
1341
+ if (!n)
1342
+ return Promise.reject(`${a} is not a File`);
1343
+ const p = T(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1344
+ return Promise.resolve(p);
1345
+ }
1346
+ function Ci(a) {
1347
+ return F(this, void 0, void 0, function* () {
1348
+ return a.isDirectory ? ti(a) : Ri(a);
344
1349
  });
345
1350
  }
346
- function lr(e) {
347
- var r = e.createReader();
348
- return new Promise(function(t, n) {
349
- var i = [];
1351
+ function ti(a) {
1352
+ const i = a.createReader();
1353
+ return new Promise((t, n) => {
1354
+ const p = [];
350
1355
  function o() {
351
- var u = this;
352
- r.readEntries(function(s) {
353
- return C(u, void 0, void 0, function() {
354
- var d, l, g;
355
- return R(this, function(y) {
356
- switch (y.label) {
357
- case 0:
358
- if (s.length) return [3, 5];
359
- y.label = 1;
360
- case 1:
361
- return y.trys.push([1, 3, , 4]), [4, Promise.all(i)];
362
- case 2:
363
- return d = y.sent(), t(d), [3, 4];
364
- case 3:
365
- return l = y.sent(), n(l), [3, 4];
366
- case 4:
367
- return [3, 6];
368
- case 5:
369
- g = Promise.all(s.map(Gr)), i.push(g), o(), y.label = 6;
370
- case 6:
371
- return [
372
- 2
373
- /*return*/
374
- ];
375
- }
376
- });
377
- });
378
- }, function(s) {
379
- n(s);
1356
+ i.readEntries((l) => F(this, void 0, void 0, function* () {
1357
+ if (l.length) {
1358
+ const r = Promise.all(l.map(Ci));
1359
+ p.push(r), o();
1360
+ } else
1361
+ try {
1362
+ const r = yield Promise.all(p);
1363
+ t(r);
1364
+ } catch (r) {
1365
+ n(r);
1366
+ }
1367
+ }), (l) => {
1368
+ n(l);
380
1369
  });
381
1370
  }
382
1371
  o();
383
1372
  });
384
1373
  }
385
- function Yr(e) {
386
- return C(this, void 0, void 0, function() {
387
- return R(this, function(r) {
388
- return [2, new Promise(function(t, n) {
389
- e.file(function(i) {
390
- var o = B(i, e.fullPath);
391
- t(o);
392
- }, function(i) {
393
- n(i);
394
- });
395
- })];
1374
+ function Ri(a) {
1375
+ return F(this, void 0, void 0, function* () {
1376
+ return new Promise((i, t) => {
1377
+ a.file((n) => {
1378
+ const p = T(n, a.fullPath);
1379
+ i(p);
1380
+ }, (n) => {
1381
+ t(n);
1382
+ });
396
1383
  });
397
1384
  });
398
1385
  }
399
- var Vr = function(e, r) {
400
- if (e && r) {
401
- var t = Array.isArray(r) ? r : r.split(",");
1386
+ var ba = function(a, i) {
1387
+ if (a && i) {
1388
+ var t = Array.isArray(i) ? i : i.split(",");
402
1389
  if (t.length === 0)
403
1390
  return !0;
404
- var n = e.name || "", i = (e.type || "").toLowerCase(), o = i.replace(/\/.*$/, "");
405
- return t.some(function(u) {
406
- var s = u.trim().toLowerCase();
407
- return s.charAt(0) === "." ? n.toLowerCase().endsWith(s) : s.endsWith("/*") ? o === s.replace(/\/.*$/, "") : i === s;
1391
+ var n = a.name || "", p = (a.type || "").toLowerCase(), o = p.replace(/\/.*$/, "");
1392
+ return t.some(function(l) {
1393
+ var r = l.trim().toLowerCase();
1394
+ return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : p === r;
408
1395
  });
409
1396
  }
410
1397
  return !0;
411
1398
  };
412
- function Ve(e) {
413
- return Xr(e) || Qr(e) || fr(e) || Jr();
1399
+ function Na(a) {
1400
+ return $i(a) || Mi(a) || ei(a) || Li();
414
1401
  }
415
- function Jr() {
1402
+ function Li() {
416
1403
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
417
1404
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
418
1405
  }
419
- function Qr(e) {
420
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1406
+ function Mi(a) {
1407
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
421
1408
  }
422
- function Xr(e) {
423
- if (Array.isArray(e)) return we(e);
1409
+ function $i(a) {
1410
+ if (Array.isArray(a)) return wa(a);
424
1411
  }
425
- function Je(e, r) {
426
- var t = Object.keys(e);
1412
+ function Ga(a, i) {
1413
+ var t = Object.keys(a);
427
1414
  if (Object.getOwnPropertySymbols) {
428
- var n = Object.getOwnPropertySymbols(e);
429
- r && (n = n.filter(function(i) {
430
- return Object.getOwnPropertyDescriptor(e, i).enumerable;
1415
+ var n = Object.getOwnPropertySymbols(a);
1416
+ i && (n = n.filter(function(p) {
1417
+ return Object.getOwnPropertyDescriptor(a, p).enumerable;
431
1418
  })), t.push.apply(t, n);
432
1419
  }
433
1420
  return t;
434
1421
  }
435
- function Qe(e) {
436
- for (var r = 1; r < arguments.length; r++) {
437
- var t = arguments[r] != null ? arguments[r] : {};
438
- r % 2 ? Je(Object(t), !0).forEach(function(n) {
439
- sr(e, n, t[n]);
440
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Je(Object(t)).forEach(function(n) {
441
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1422
+ function Ya(a) {
1423
+ for (var i = 1; i < arguments.length; i++) {
1424
+ var t = arguments[i] != null ? arguments[i] : {};
1425
+ i % 2 ? Ga(Object(t), !0).forEach(function(n) {
1426
+ ni(a, n, t[n]);
1427
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ga(Object(t)).forEach(function(n) {
1428
+ Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
442
1429
  });
443
1430
  }
444
- return e;
1431
+ return a;
445
1432
  }
446
- function sr(e, r, t) {
447
- return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1433
+ function ni(a, i, t) {
1434
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
448
1435
  }
449
- function W(e, r) {
450
- return rt(e) || et(e, r) || fr(e, r) || Zr();
1436
+ function K(a, i) {
1437
+ return Wi(a) || Ki(a, i) || ei(a, i) || Hi();
451
1438
  }
452
- function Zr() {
1439
+ function Hi() {
453
1440
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
454
1441
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
455
1442
  }
456
- function fr(e, r) {
457
- if (e) {
458
- if (typeof e == "string") return we(e, r);
459
- var t = Object.prototype.toString.call(e).slice(8, -1);
460
- if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
461
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return we(e, r);
1443
+ function ei(a, i) {
1444
+ if (a) {
1445
+ if (typeof a == "string") return wa(a, i);
1446
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1447
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1448
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return wa(a, i);
462
1449
  }
463
1450
  }
464
- function we(e, r) {
465
- (r == null || r > e.length) && (r = e.length);
466
- for (var t = 0, n = new Array(r); t < r; t++)
467
- n[t] = e[t];
1451
+ function wa(a, i) {
1452
+ (i == null || i > a.length) && (i = a.length);
1453
+ for (var t = 0, n = new Array(i); t < i; t++)
1454
+ n[t] = a[t];
468
1455
  return n;
469
1456
  }
470
- function et(e, r) {
471
- var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1457
+ function Ki(a, i) {
1458
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
472
1459
  if (t != null) {
473
- var n = [], i = !0, o = !1, u, s;
1460
+ var n = [], p = !0, o = !1, l, r;
474
1461
  try {
475
- for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
1462
+ for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
476
1463
  ;
477
- } catch (d) {
478
- o = !0, s = d;
1464
+ } catch (v) {
1465
+ o = !0, r = v;
479
1466
  } finally {
480
1467
  try {
481
- !i && t.return != null && t.return();
1468
+ !p && t.return != null && t.return();
482
1469
  } finally {
483
- if (o) throw s;
1470
+ if (o) throw r;
484
1471
  }
485
1472
  }
486
1473
  return n;
487
1474
  }
488
1475
  }
489
- function rt(e) {
490
- if (Array.isArray(e)) return e;
1476
+ function Wi(a) {
1477
+ if (Array.isArray(a)) return a;
491
1478
  }
492
- var tt = "file-invalid-type", nt = "file-too-large", ot = "file-too-small", it = "too-many-files", at = function(r) {
493
- r = Array.isArray(r) && r.length === 1 ? r[0] : r;
494
- var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
1479
+ var Bi = typeof ba == "function" ? ba : ba.default, Ui = "file-invalid-type", Ni = "file-too-large", Gi = "file-too-small", Yi = "too-many-files", Vi = function(i) {
1480
+ i = Array.isArray(i) && i.length === 1 ? i[0] : i;
1481
+ var t = Array.isArray(i) ? "one of ".concat(i.join(", ")) : i;
495
1482
  return {
496
- code: tt,
1483
+ code: Ui,
497
1484
  message: "File type must be ".concat(t)
498
1485
  };
499
- }, Xe = function(r) {
1486
+ }, Va = function(i) {
500
1487
  return {
501
- code: nt,
502
- message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1488
+ code: Ni,
1489
+ message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
503
1490
  };
504
- }, Ze = function(r) {
1491
+ }, Ja = function(i) {
505
1492
  return {
506
- code: ot,
507
- message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1493
+ code: Gi,
1494
+ message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
508
1495
  };
509
- }, ut = {
510
- code: it,
1496
+ }, Ji = {
1497
+ code: Yi,
511
1498
  message: "Too many files"
512
1499
  };
513
- function pr(e, r) {
514
- var t = e.type === "application/x-moz-file" || Vr(e, r);
515
- return [t, t ? null : at(r)];
516
- }
517
- function dr(e, r, t) {
518
- if (F(e.size))
519
- if (F(r) && F(t)) {
520
- if (e.size > t) return [!1, Xe(t)];
521
- if (e.size < r) return [!1, Ze(r)];
1500
+ function pi(a, i) {
1501
+ var t = a.type === "application/x-moz-file" || Bi(a, i);
1502
+ return [t, t ? null : Vi(i)];
1503
+ }
1504
+ function oi(a, i, t) {
1505
+ if (A(a.size))
1506
+ if (A(i) && A(t)) {
1507
+ if (a.size > t) return [!1, Va(t)];
1508
+ if (a.size < i) return [!1, Ja(i)];
522
1509
  } else {
523
- if (F(r) && e.size < r) return [!1, Ze(r)];
524
- if (F(t) && e.size > t) return [!1, Xe(t)];
1510
+ if (A(i) && a.size < i) return [!1, Ja(i)];
1511
+ if (A(t) && a.size > t) return [!1, Va(t)];
525
1512
  }
526
1513
  return [!0, null];
527
1514
  }
528
- function F(e) {
529
- return e != null;
1515
+ function A(a) {
1516
+ return a != null;
530
1517
  }
531
- function ct(e) {
532
- var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, o = e.multiple, u = e.maxFiles, s = e.validator;
533
- return !o && r.length > 1 || o && u >= 1 && r.length > u ? !1 : r.every(function(d) {
534
- var l = pr(d, t), g = W(l, 1), y = g[0], z = dr(d, n, i), k = W(z, 1), L = k[0], M = s ? s(d) : null;
535
- return y && L && !M;
1518
+ function Qi(a) {
1519
+ var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1520
+ return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(v) {
1521
+ var k = pi(v, t), x = K(k, 1), j = x[0], I = oi(v, n, p), C = K(I, 1), R = C[0], L = r ? r(v) : null;
1522
+ return j && R && !L;
536
1523
  });
537
1524
  }
538
- function ee(e) {
539
- return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
1525
+ function Z(a) {
1526
+ return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
540
1527
  }
541
- function X(e) {
542
- return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(r) {
543
- return r === "Files" || r === "application/x-moz-file";
544
- }) : !!e.target && !!e.target.files;
1528
+ function Q(a) {
1529
+ return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1530
+ return i === "Files" || i === "application/x-moz-file";
1531
+ }) : !!a.target && !!a.target.files;
545
1532
  }
546
- function er(e) {
547
- e.preventDefault();
1533
+ function Qa(a) {
1534
+ a.preventDefault();
548
1535
  }
549
- function lt(e) {
550
- return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
1536
+ function Xi(a) {
1537
+ return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
551
1538
  }
552
- function st(e) {
553
- return e.indexOf("Edge/") !== -1;
1539
+ function Zi(a) {
1540
+ return a.indexOf("Edge/") !== -1;
554
1541
  }
555
- function ft() {
556
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
557
- return lt(e) || st(e);
1542
+ function at() {
1543
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1544
+ return Xi(a) || Zi(a);
558
1545
  }
559
- function E() {
560
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
561
- r[t] = arguments[t];
1546
+ function w() {
1547
+ for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1548
+ i[t] = arguments[t];
562
1549
  return function(n) {
563
- for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
564
- o[u - 1] = arguments[u];
565
- return r.some(function(s) {
566
- return !ee(n) && s && s.apply(void 0, [n].concat(o)), ee(n);
1550
+ for (var p = arguments.length, o = new Array(p > 1 ? p - 1 : 0), l = 1; l < p; l++)
1551
+ o[l - 1] = arguments[l];
1552
+ return i.some(function(r) {
1553
+ return !Z(n) && r && r.apply(void 0, [n].concat(o)), Z(n);
567
1554
  });
568
1555
  };
569
1556
  }
570
- function pt() {
1557
+ function it() {
571
1558
  return "showOpenFilePicker" in window;
572
1559
  }
573
- function dt(e) {
574
- if (F(e)) {
575
- var r = Object.entries(e).filter(function(t) {
576
- var n = W(t, 2), i = n[0], o = n[1], u = !0;
577
- return gr(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), u = !1), (!Array.isArray(o) || !o.every(mr)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), u = !1), u;
1560
+ function tt(a) {
1561
+ if (A(a)) {
1562
+ var i = Object.entries(a).filter(function(t) {
1563
+ var n = K(t, 2), p = n[0], o = n[1], l = !0;
1564
+ return ci(p) || (console.warn('Skipped "'.concat(p, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), l = !1), (!Array.isArray(o) || !o.every(li)) && (console.warn('Skipped "'.concat(p, '" because an invalid file extension was provided.')), l = !1), l;
578
1565
  }).reduce(function(t, n) {
579
- var i = W(n, 2), o = i[0], u = i[1];
580
- return Qe(Qe({}, t), {}, sr({}, o, u));
1566
+ var p = K(n, 2), o = p[0], l = p[1];
1567
+ return Ya(Ya({}, t), {}, ni({}, o, l));
581
1568
  }, {});
582
1569
  return [{
583
1570
  // description is required due to https://crbug.com/1264708
584
1571
  description: "Files",
585
- accept: r
1572
+ accept: i
586
1573
  }];
587
1574
  }
588
- return e;
589
- }
590
- function gt(e) {
591
- if (F(e))
592
- return Object.entries(e).reduce(function(r, t) {
593
- var n = W(t, 2), i = n[0], o = n[1];
594
- return [].concat(Ve(r), [i], Ve(o));
595
- }, []).filter(function(r) {
596
- return gr(r) || mr(r);
1575
+ return a;
1576
+ }
1577
+ function nt(a) {
1578
+ if (A(a))
1579
+ return Object.entries(a).reduce(function(i, t) {
1580
+ var n = K(t, 2), p = n[0], o = n[1];
1581
+ return [].concat(Na(i), [p], Na(o));
1582
+ }, []).filter(function(i) {
1583
+ return ci(i) || li(i);
597
1584
  }).join(",");
598
1585
  }
599
- function mt(e) {
600
- return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
1586
+ function et(a) {
1587
+ return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
601
1588
  }
602
- function vt(e) {
603
- return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
1589
+ function pt(a) {
1590
+ return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
604
1591
  }
605
- function gr(e) {
606
- return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || /\w+\/[-+.\w]+/g.test(e);
1592
+ function ci(a) {
1593
+ return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
607
1594
  }
608
- function mr(e) {
609
- return /^.*\.[\w]+$/.test(e);
1595
+ function li(a) {
1596
+ return /^.*\.[\w]+$/.test(a);
610
1597
  }
611
- var yt = ["children"], bt = ["open"], ht = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Dt = ["refKey", "onChange", "onClick"];
612
- function wt(e) {
613
- return Ot(e) || Et(e) || vr(e) || At();
1598
+ var ot = ["children"], ct = ["open"], lt = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], rt = ["refKey", "onChange", "onClick"];
1599
+ function st(a) {
1600
+ return ut(a) || mt(a) || ri(a) || dt();
614
1601
  }
615
- function At() {
1602
+ function dt() {
616
1603
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
617
1604
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
618
1605
  }
619
- function Et(e) {
620
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1606
+ function mt(a) {
1607
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
621
1608
  }
622
- function Ot(e) {
623
- if (Array.isArray(e)) return Ae(e);
1609
+ function ut(a) {
1610
+ if (Array.isArray(a)) return ka(a);
624
1611
  }
625
- function he(e, r) {
626
- return _t(e) || Ft(e, r) || vr(e, r) || xt();
1612
+ function ha(a, i) {
1613
+ return xt(a) || ft(a, i) || ri(a, i) || vt();
627
1614
  }
628
- function xt() {
1615
+ function vt() {
629
1616
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
630
1617
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
631
1618
  }
632
- function vr(e, r) {
633
- if (e) {
634
- if (typeof e == "string") return Ae(e, r);
635
- var t = Object.prototype.toString.call(e).slice(8, -1);
636
- if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
637
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ae(e, r);
1619
+ function ri(a, i) {
1620
+ if (a) {
1621
+ if (typeof a == "string") return ka(a, i);
1622
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1623
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1624
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ka(a, i);
638
1625
  }
639
1626
  }
640
- function Ae(e, r) {
641
- (r == null || r > e.length) && (r = e.length);
642
- for (var t = 0, n = new Array(r); t < r; t++)
643
- n[t] = e[t];
1627
+ function ka(a, i) {
1628
+ (i == null || i > a.length) && (i = a.length);
1629
+ for (var t = 0, n = new Array(i); t < i; t++)
1630
+ n[t] = a[t];
644
1631
  return n;
645
1632
  }
646
- function Ft(e, r) {
647
- var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1633
+ function ft(a, i) {
1634
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
648
1635
  if (t != null) {
649
- var n = [], i = !0, o = !1, u, s;
1636
+ var n = [], p = !0, o = !1, l, r;
650
1637
  try {
651
- for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
1638
+ for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
652
1639
  ;
653
- } catch (d) {
654
- o = !0, s = d;
1640
+ } catch (v) {
1641
+ o = !0, r = v;
655
1642
  } finally {
656
1643
  try {
657
- !i && t.return != null && t.return();
1644
+ !p && t.return != null && t.return();
658
1645
  } finally {
659
- if (o) throw s;
1646
+ if (o) throw r;
660
1647
  }
661
1648
  }
662
1649
  return n;
663
1650
  }
664
1651
  }
665
- function _t(e) {
666
- if (Array.isArray(e)) return e;
1652
+ function xt(a) {
1653
+ if (Array.isArray(a)) return a;
667
1654
  }
668
- function rr(e, r) {
669
- var t = Object.keys(e);
1655
+ function Xa(a, i) {
1656
+ var t = Object.keys(a);
670
1657
  if (Object.getOwnPropertySymbols) {
671
- var n = Object.getOwnPropertySymbols(e);
672
- r && (n = n.filter(function(i) {
673
- return Object.getOwnPropertyDescriptor(e, i).enumerable;
1658
+ var n = Object.getOwnPropertySymbols(a);
1659
+ i && (n = n.filter(function(p) {
1660
+ return Object.getOwnPropertyDescriptor(a, p).enumerable;
674
1661
  })), t.push.apply(t, n);
675
1662
  }
676
1663
  return t;
677
1664
  }
678
- function p(e) {
679
- for (var r = 1; r < arguments.length; r++) {
680
- var t = arguments[r] != null ? arguments[r] : {};
681
- r % 2 ? rr(Object(t), !0).forEach(function(n) {
682
- Ee(e, n, t[n]);
683
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : rr(Object(t)).forEach(function(n) {
684
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1665
+ function d(a) {
1666
+ for (var i = 1; i < arguments.length; i++) {
1667
+ var t = arguments[i] != null ? arguments[i] : {};
1668
+ i % 2 ? Xa(Object(t), !0).forEach(function(n) {
1669
+ ja(a, n, t[n]);
1670
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Xa(Object(t)).forEach(function(n) {
1671
+ Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
685
1672
  });
686
1673
  }
687
- return e;
1674
+ return a;
688
1675
  }
689
- function Ee(e, r, t) {
690
- return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1676
+ function ja(a, i, t) {
1677
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
691
1678
  }
692
- function re(e, r) {
693
- if (e == null) return {};
694
- var t = jt(e, r), n, i;
1679
+ function aa(a, i) {
1680
+ if (a == null) return {};
1681
+ var t = gt(a, i), n, p;
695
1682
  if (Object.getOwnPropertySymbols) {
696
- var o = Object.getOwnPropertySymbols(e);
697
- for (i = 0; i < o.length; i++)
698
- n = o[i], !(r.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (t[n] = e[n]);
1683
+ var o = Object.getOwnPropertySymbols(a);
1684
+ for (p = 0; p < o.length; p++)
1685
+ n = o[p], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
699
1686
  }
700
1687
  return t;
701
1688
  }
702
- function jt(e, r) {
703
- if (e == null) return {};
704
- var t = {}, n = Object.keys(e), i, o;
1689
+ function gt(a, i) {
1690
+ if (a == null) return {};
1691
+ var t = {}, n = Object.keys(a), p, o;
705
1692
  for (o = 0; o < n.length; o++)
706
- i = n[o], !(r.indexOf(i) >= 0) && (t[i] = e[i]);
1693
+ p = n[o], !(i.indexOf(p) >= 0) && (t[p] = a[p]);
707
1694
  return t;
708
1695
  }
709
- var _e = /* @__PURE__ */ _r(function(e, r) {
710
- var t = e.children, n = re(e, yt), i = br(n), o = i.open, u = re(i, bt);
711
- return jr(r, function() {
1696
+ var Da = /* @__PURE__ */ yi(function(a, i) {
1697
+ var t = a.children, n = aa(a, ot), p = di(n), o = p.open, l = aa(p, ct);
1698
+ return wi(i, function() {
712
1699
  return {
713
1700
  open: o
714
1701
  };
715
- }, [o]), /* @__PURE__ */ xr.createElement(Sr, null, t(p(p({}, u), {}, {
1702
+ }, [o]), /* @__PURE__ */ bi.createElement(ki, null, t(d(d({}, l), {}, {
716
1703
  open: o
717
1704
  })));
718
1705
  });
719
- _e.displayName = "Dropzone";
720
- var yr = {
1706
+ Da.displayName = "Dropzone";
1707
+ var si = {
721
1708
  disabled: !1,
722
- getFilesFromEvent: Kr,
1709
+ getFilesFromEvent: Oi,
723
1710
  maxSize: 1 / 0,
724
1711
  minSize: 0,
725
1712
  multiple: !0,
@@ -730,11 +1717,11 @@ var yr = {
730
1717
  noDrag: !1,
731
1718
  noDragEventsBubbling: !1,
732
1719
  validator: null,
733
- useFsAccessApi: !0,
1720
+ useFsAccessApi: !1,
734
1721
  autoFocus: !1
735
1722
  };
736
- _e.defaultProps = yr;
737
- _e.propTypes = {
1723
+ Da.defaultProps = si;
1724
+ Da.propTypes = {
738
1725
  /**
739
1726
  * Render function that exposes the dropzone state and prop getter fns
740
1727
  *
@@ -750,7 +1737,7 @@ _e.propTypes = {
750
1737
  * @param {File[]} params.acceptedFiles Accepted files
751
1738
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
752
1739
  */
753
- children: f.func,
1740
+ children: s.func,
754
1741
  /**
755
1742
  * Set accepted file types.
756
1743
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -758,90 +1745,90 @@ _e.propTypes = {
758
1745
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
759
1746
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
760
1747
  */
761
- accept: f.objectOf(f.arrayOf(f.string)),
1748
+ accept: s.objectOf(s.arrayOf(s.string)),
762
1749
  /**
763
1750
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
764
1751
  */
765
- multiple: f.bool,
1752
+ multiple: s.bool,
766
1753
  /**
767
1754
  * If false, allow dropped items to take over the current browser window
768
1755
  */
769
- preventDropOnDocument: f.bool,
1756
+ preventDropOnDocument: s.bool,
770
1757
  /**
771
1758
  * If true, disables click to open the native file selection dialog
772
1759
  */
773
- noClick: f.bool,
1760
+ noClick: s.bool,
774
1761
  /**
775
1762
  * If true, disables SPACE/ENTER to open the native file selection dialog.
776
1763
  * Note that it also stops tracking the focus state.
777
1764
  */
778
- noKeyboard: f.bool,
1765
+ noKeyboard: s.bool,
779
1766
  /**
780
1767
  * If true, disables drag 'n' drop
781
1768
  */
782
- noDrag: f.bool,
1769
+ noDrag: s.bool,
783
1770
  /**
784
1771
  * If true, stops drag event propagation to parents
785
1772
  */
786
- noDragEventsBubbling: f.bool,
1773
+ noDragEventsBubbling: s.bool,
787
1774
  /**
788
1775
  * Minimum file size (in bytes)
789
1776
  */
790
- minSize: f.number,
1777
+ minSize: s.number,
791
1778
  /**
792
1779
  * Maximum file size (in bytes)
793
1780
  */
794
- maxSize: f.number,
1781
+ maxSize: s.number,
795
1782
  /**
796
1783
  * Maximum accepted number of files
797
1784
  * The default value is 0 which means there is no limitation to how many files are accepted.
798
1785
  */
799
- maxFiles: f.number,
1786
+ maxFiles: s.number,
800
1787
  /**
801
1788
  * Enable/disable the dropzone
802
1789
  */
803
- disabled: f.bool,
1790
+ disabled: s.bool,
804
1791
  /**
805
1792
  * Use this to provide a custom file aggregator
806
1793
  *
807
1794
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
808
1795
  */
809
- getFilesFromEvent: f.func,
1796
+ getFilesFromEvent: s.func,
810
1797
  /**
811
1798
  * Cb for when closing the file dialog with no selection
812
1799
  */
813
- onFileDialogCancel: f.func,
1800
+ onFileDialogCancel: s.func,
814
1801
  /**
815
1802
  * Cb for when opening the file dialog
816
1803
  */
817
- onFileDialogOpen: f.func,
1804
+ onFileDialogOpen: s.func,
818
1805
  /**
819
1806
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
820
1807
  * to open the file picker instead of using an `<input type="file">` click event.
821
1808
  */
822
- useFsAccessApi: f.bool,
1809
+ useFsAccessApi: s.bool,
823
1810
  /**
824
1811
  * Set to true to focus the root element on render
825
1812
  */
826
- autoFocus: f.bool,
1813
+ autoFocus: s.bool,
827
1814
  /**
828
1815
  * Cb for when the `dragenter` event occurs.
829
1816
  *
830
1817
  * @param {DragEvent} event
831
1818
  */
832
- onDragEnter: f.func,
1819
+ onDragEnter: s.func,
833
1820
  /**
834
1821
  * Cb for when the `dragleave` event occurs
835
1822
  *
836
1823
  * @param {DragEvent} event
837
1824
  */
838
- onDragLeave: f.func,
1825
+ onDragLeave: s.func,
839
1826
  /**
840
1827
  * Cb for when the `dragover` event occurs
841
1828
  *
842
1829
  * @param {DragEvent} event
843
1830
  */
844
- onDragOver: f.func,
1831
+ onDragOver: s.func,
845
1832
  /**
846
1833
  * Cb for when the `drop` event occurs.
847
1834
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -872,7 +1859,7 @@ _e.propTypes = {
872
1859
  * @param {FileRejection[]} fileRejections
873
1860
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
874
1861
  */
875
- onDrop: f.func,
1862
+ onDrop: s.func,
876
1863
  /**
877
1864
  * Cb for when the `drop` event occurs.
878
1865
  * Note that if no files are accepted, this callback is not invoked.
@@ -880,7 +1867,7 @@ _e.propTypes = {
880
1867
  * @param {File[]} files
881
1868
  * @param {(DragEvent|Event)} event
882
1869
  */
883
- onDropAccepted: f.func,
1870
+ onDropAccepted: s.func,
884
1871
  /**
885
1872
  * Cb for when the `drop` event occurs.
886
1873
  * Note that if no files are rejected, this callback is not invoked.
@@ -888,21 +1875,21 @@ _e.propTypes = {
888
1875
  * @param {FileRejection[]} fileRejections
889
1876
  * @param {(DragEvent|Event)} event
890
1877
  */
891
- onDropRejected: f.func,
1878
+ onDropRejected: s.func,
892
1879
  /**
893
1880
  * Cb for when there's some error from any of the promises.
894
1881
  *
895
1882
  * @param {Error} error
896
1883
  */
897
- onError: f.func,
1884
+ onError: s.func,
898
1885
  /**
899
1886
  * Custom validation function. It must return null if there's no errors.
900
1887
  * @param {File} file
901
1888
  * @returns {FileError|FileError[]|null}
902
1889
  */
903
- validator: f.func
1890
+ validator: s.func
904
1891
  };
905
- var Oe = {
1892
+ var za = {
906
1893
  isFocused: !1,
907
1894
  isFileDialogActive: !1,
908
1895
  isDragActive: !1,
@@ -911,253 +1898,262 @@ var Oe = {
911
1898
  acceptedFiles: [],
912
1899
  fileRejections: []
913
1900
  };
914
- function br() {
915
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = p(p({}, yr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, o = r.maxSize, u = r.minSize, s = r.multiple, d = r.maxFiles, l = r.onDragEnter, g = r.onDragLeave, y = r.onDragOver, z = r.onDrop, k = r.onDropAccepted, L = r.onDropRejected, M = r.onFileDialogCancel, te = r.onFileDialogOpen, je = r.useFsAccessApi, Se = r.autoFocus, ne = r.preventDropOnDocument, Pe = r.noClick, oe = r.noKeyboard, Ie = r.noDrag, O = r.noDragEventsBubbling, ie = r.onError, $ = r.validator, K = T(function() {
916
- return gt(t);
917
- }, [t]), Te = T(function() {
918
- return dt(t);
919
- }, [t]), ae = T(function() {
920
- return typeof te == "function" ? te : tr;
921
- }, [te]), U = T(function() {
922
- return typeof M == "function" ? M : tr;
923
- }, [M]), b = Q(null), w = Q(null), hr = Fr(St, Oe), Ce = he(hr, 2), ue = Ce[0], h = Ce[1], Dr = ue.isFocused, Re = ue.isFileDialogActive, q = Q(typeof window < "u" && window.isSecureContext && je && pt()), ze = function() {
924
- !q.current && Re && setTimeout(function() {
925
- if (w.current) {
926
- var c = w.current.files;
927
- c.length || (h({
1901
+ function di() {
1902
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, si), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, k = i.onDragEnter, x = i.onDragLeave, j = i.onDragOver, I = i.onDrop, C = i.onDropAccepted, R = i.onDropRejected, L = i.onFileDialogCancel, ia = i.onFileDialogOpen, Ea = i.useFsAccessApi, Aa = i.autoFocus, ta = i.preventDropOnDocument, Fa = i.noClick, na = i.noKeyboard, Oa = i.noDrag, D = i.noDragEventsBubbling, ea = i.onError, M = i.validator, $ = q(function() {
1903
+ return nt(t);
1904
+ }, [t]), _a = q(function() {
1905
+ return tt(t);
1906
+ }, [t]), pa = q(function() {
1907
+ return typeof ia == "function" ? ia : Za;
1908
+ }, [ia]), W = q(function() {
1909
+ return typeof L == "function" ? L : Za;
1910
+ }, [L]), f = J(null), h = J(null), mi = hi(bt, za), Pa = ha(mi, 2), oa = Pa[0], g = Pa[1], ui = oa.isFocused, Sa = oa.isFileDialogActive, B = J(typeof window < "u" && window.isSecureContext && Ea && it()), qa = function() {
1911
+ !B.current && Sa && setTimeout(function() {
1912
+ if (h.current) {
1913
+ var c = h.current.files;
1914
+ c.length || (g({
928
1915
  type: "closeDialog"
929
- }), U());
1916
+ }), W());
930
1917
  }
931
1918
  }, 300);
932
1919
  };
933
- ye(function() {
934
- return window.addEventListener("focus", ze, !1), function() {
935
- window.removeEventListener("focus", ze, !1);
1920
+ xa(function() {
1921
+ return window.addEventListener("focus", qa, !1), function() {
1922
+ window.removeEventListener("focus", qa, !1);
936
1923
  };
937
- }, [w, Re, U, q]);
938
- var _ = Q([]), ke = function(c) {
939
- b.current && b.current.contains(c.target) || (c.preventDefault(), _.current = []);
1924
+ }, [h, Sa, W, B]);
1925
+ var O = J([]), Ta = function(c) {
1926
+ f.current && f.current.contains(c.target) || (c.preventDefault(), O.current = []);
940
1927
  };
941
- ye(function() {
942
- return ne && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ke, !1)), function() {
943
- ne && (document.removeEventListener("dragover", er), document.removeEventListener("drop", ke));
1928
+ xa(function() {
1929
+ return ta && (document.addEventListener("dragover", Qa, !1), document.addEventListener("drop", Ta, !1)), function() {
1930
+ ta && (document.removeEventListener("dragover", Qa), document.removeEventListener("drop", Ta));
944
1931
  };
945
- }, [b, ne]), ye(function() {
946
- return !n && Se && b.current && b.current.focus(), function() {
1932
+ }, [f, ta]), xa(function() {
1933
+ return !n && Aa && f.current && f.current.focus(), function() {
947
1934
  };
948
- }, [b, Se, n]);
949
- var x = A(function(a) {
950
- ie ? ie(a) : console.error(a);
951
- }, [ie]), Le = A(function(a) {
952
- a.preventDefault(), a.persist(), V(a), _.current = [].concat(wt(_.current), [a.target]), X(a) && Promise.resolve(i(a)).then(function(c) {
953
- if (!(ee(a) && !O)) {
954
- var m = c.length, v = m > 0 && ct({
1935
+ }, [f, Aa, n]);
1936
+ var E = y(function(e) {
1937
+ ea ? ea(e) : console.error(e);
1938
+ }, [ea]), Ia = y(function(e) {
1939
+ e.preventDefault(), e.persist(), Y(e), O.current = [].concat(st(O.current), [e.target]), Q(e) && Promise.resolve(p(e)).then(function(c) {
1940
+ if (!(Z(e) && !D)) {
1941
+ var m = c.length, u = m > 0 && Qi({
955
1942
  files: c,
956
- accept: K,
957
- minSize: u,
1943
+ accept: $,
1944
+ minSize: l,
958
1945
  maxSize: o,
959
- multiple: s,
960
- maxFiles: d,
961
- validator: $
962
- }), D = m > 0 && !v;
963
- h({
964
- isDragAccept: v,
965
- isDragReject: D,
1946
+ multiple: r,
1947
+ maxFiles: v,
1948
+ validator: M
1949
+ }), b = m > 0 && !u;
1950
+ g({
1951
+ isDragAccept: u,
1952
+ isDragReject: b,
966
1953
  isDragActive: !0,
967
1954
  type: "setDraggedFiles"
968
- }), l && l(a);
1955
+ }), k && k(e);
969
1956
  }
970
1957
  }).catch(function(c) {
971
- return x(c);
1958
+ return E(c);
972
1959
  });
973
- }, [i, l, x, O, K, u, o, s, d, $]), Me = A(function(a) {
974
- a.preventDefault(), a.persist(), V(a);
975
- var c = X(a);
976
- if (c && a.dataTransfer)
1960
+ }, [p, k, E, D, $, l, o, r, v, M]), Ca = y(function(e) {
1961
+ e.preventDefault(), e.persist(), Y(e);
1962
+ var c = Q(e);
1963
+ if (c && e.dataTransfer)
977
1964
  try {
978
- a.dataTransfer.dropEffect = "copy";
1965
+ e.dataTransfer.dropEffect = "copy";
979
1966
  } catch {
980
1967
  }
981
- return c && y && y(a), !1;
982
- }, [y, O]), $e = A(function(a) {
983
- a.preventDefault(), a.persist(), V(a);
984
- var c = _.current.filter(function(v) {
985
- return b.current && b.current.contains(v);
986
- }), m = c.indexOf(a.target);
987
- m !== -1 && c.splice(m, 1), _.current = c, !(c.length > 0) && (h({
1968
+ return c && j && j(e), !1;
1969
+ }, [j, D]), Ra = y(function(e) {
1970
+ e.preventDefault(), e.persist(), Y(e);
1971
+ var c = O.current.filter(function(u) {
1972
+ return f.current && f.current.contains(u);
1973
+ }), m = c.indexOf(e.target);
1974
+ m !== -1 && c.splice(m, 1), O.current = c, !(c.length > 0) && (g({
988
1975
  type: "setDraggedFiles",
989
1976
  isDragActive: !1,
990
1977
  isDragAccept: !1,
991
1978
  isDragReject: !1
992
- }), X(a) && g && g(a));
993
- }, [b, g, O]), N = A(function(a, c) {
994
- var m = [], v = [];
995
- a.forEach(function(D) {
996
- var H = pr(D, K), P = he(H, 2), le = P[0], se = P[1], fe = dr(D, u, o), J = he(fe, 2), pe = J[0], de = J[1], ge = $ ? $(D) : null;
997
- if (le && pe && !ge)
998
- m.push(D);
1979
+ }), Q(e) && x && x(e));
1980
+ }, [f, x, D]), U = y(function(e, c) {
1981
+ var m = [], u = [];
1982
+ e.forEach(function(b) {
1983
+ var H = pi(b, $), S = ha(H, 2), la = S[0], ra = S[1], sa = oi(b, l, o), V = ha(sa, 2), da = V[0], ma = V[1], ua = M ? M(b) : null;
1984
+ if (la && da && !ua)
1985
+ m.push(b);
999
1986
  else {
1000
- var me = [se, de];
1001
- ge && (me = me.concat(ge)), v.push({
1002
- file: D,
1003
- errors: me.filter(function(Or) {
1004
- return Or;
1987
+ var va = [ra, ma];
1988
+ ua && (va = va.concat(ua)), u.push({
1989
+ file: b,
1990
+ errors: va.filter(function(gi) {
1991
+ return gi;
1005
1992
  })
1006
1993
  });
1007
1994
  }
1008
- }), (!s && m.length > 1 || s && d >= 1 && m.length > d) && (m.forEach(function(D) {
1009
- v.push({
1010
- file: D,
1011
- errors: [ut]
1995
+ }), (!r && m.length > 1 || r && v >= 1 && m.length > v) && (m.forEach(function(b) {
1996
+ u.push({
1997
+ file: b,
1998
+ errors: [Ji]
1012
1999
  });
1013
- }), m.splice(0)), h({
2000
+ }), m.splice(0)), g({
1014
2001
  acceptedFiles: m,
1015
- fileRejections: v,
2002
+ fileRejections: u,
1016
2003
  type: "setFiles"
1017
- }), z && z(m, v, c), v.length > 0 && L && L(v, c), m.length > 0 && k && k(m, c);
1018
- }, [h, s, K, u, o, d, z, k, L, $]), G = A(function(a) {
1019
- a.preventDefault(), a.persist(), V(a), _.current = [], X(a) && Promise.resolve(i(a)).then(function(c) {
1020
- ee(a) && !O || N(c, a);
2004
+ }), I && I(m, u, c), u.length > 0 && R && R(u, c), m.length > 0 && C && C(m, c);
2005
+ }, [g, r, $, l, o, v, I, C, R, M]), N = y(function(e) {
2006
+ e.preventDefault(), e.persist(), Y(e), O.current = [], Q(e) && Promise.resolve(p(e)).then(function(c) {
2007
+ Z(e) && !D || U(c, e);
1021
2008
  }).catch(function(c) {
1022
- return x(c);
1023
- }), h({
2009
+ return E(c);
2010
+ }), g({
1024
2011
  type: "reset"
1025
2012
  });
1026
- }, [i, N, x, O]), j = A(function() {
1027
- if (q.current) {
1028
- h({
2013
+ }, [p, U, E, D]), _ = y(function() {
2014
+ if (B.current) {
2015
+ g({
1029
2016
  type: "openDialog"
1030
- }), ae();
1031
- var a = {
1032
- multiple: s,
1033
- types: Te
2017
+ }), pa();
2018
+ var e = {
2019
+ multiple: r,
2020
+ types: _a
1034
2021
  };
1035
- window.showOpenFilePicker(a).then(function(c) {
1036
- return i(c);
2022
+ window.showOpenFilePicker(e).then(function(c) {
2023
+ return p(c);
1037
2024
  }).then(function(c) {
1038
- N(c, null), h({
2025
+ U(c, null), g({
1039
2026
  type: "closeDialog"
1040
2027
  });
1041
2028
  }).catch(function(c) {
1042
- mt(c) ? (U(c), h({
2029
+ et(c) ? (W(c), g({
1043
2030
  type: "closeDialog"
1044
- })) : vt(c) ? (q.current = !1, w.current ? (w.current.value = null, w.current.click()) : x(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : x(c);
2031
+ })) : pt(c) ? (B.current = !1, h.current ? (h.current.value = null, h.current.click()) : E(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : E(c);
1045
2032
  });
1046
2033
  return;
1047
2034
  }
1048
- w.current && (h({
2035
+ h.current && (g({
1049
2036
  type: "openDialog"
1050
- }), ae(), w.current.value = null, w.current.click());
1051
- }, [h, ae, U, je, N, x, Te, s]), Ke = A(function(a) {
1052
- !b.current || !b.current.isEqualNode(a.target) || (a.key === " " || a.key === "Enter" || a.keyCode === 32 || a.keyCode === 13) && (a.preventDefault(), j());
1053
- }, [b, j]), He = A(function() {
1054
- h({
2037
+ }), pa(), h.current.value = null, h.current.click());
2038
+ }, [g, pa, W, Ea, U, E, _a, r]), La = y(function(e) {
2039
+ !f.current || !f.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), _());
2040
+ }, [f, _]), Ma = y(function() {
2041
+ g({
1055
2042
  type: "focus"
1056
2043
  });
1057
- }, []), We = A(function() {
1058
- h({
2044
+ }, []), $a = y(function() {
2045
+ g({
1059
2046
  type: "blur"
1060
2047
  });
1061
- }, []), Be = A(function() {
1062
- Pe || (ft() ? setTimeout(j, 0) : j());
1063
- }, [Pe, j]), S = function(c) {
2048
+ }, []), Ha = y(function() {
2049
+ Fa || (at() ? setTimeout(_, 0) : _());
2050
+ }, [Fa, _]), P = function(c) {
1064
2051
  return n ? null : c;
1065
- }, ce = function(c) {
1066
- return oe ? null : S(c);
2052
+ }, ca = function(c) {
2053
+ return na ? null : P(c);
2054
+ }, G = function(c) {
2055
+ return Oa ? null : P(c);
1067
2056
  }, Y = function(c) {
1068
- return Ie ? null : S(c);
1069
- }, V = function(c) {
1070
- O && c.stopPropagation();
1071
- }, wr = T(function() {
2057
+ D && c.stopPropagation();
2058
+ }, vi = q(function() {
1072
2059
  return function() {
1073
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.refKey, m = c === void 0 ? "ref" : c, v = a.role, D = a.onKeyDown, H = a.onFocus, P = a.onBlur, le = a.onClick, se = a.onDragEnter, fe = a.onDragOver, J = a.onDragLeave, pe = a.onDrop, de = re(a, ht);
1074
- return p(p(Ee({
1075
- onKeyDown: ce(E(D, Ke)),
1076
- onFocus: ce(E(H, He)),
1077
- onBlur: ce(E(P, We)),
1078
- onClick: S(E(le, Be)),
1079
- onDragEnter: Y(E(se, Le)),
1080
- onDragOver: Y(E(fe, Me)),
1081
- onDragLeave: Y(E(J, $e)),
1082
- onDrop: Y(E(pe, G)),
1083
- role: typeof v == "string" && v !== "" ? v : "presentation"
1084
- }, m, b), !n && !oe ? {
2060
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, b = e.onKeyDown, H = e.onFocus, S = e.onBlur, la = e.onClick, ra = e.onDragEnter, sa = e.onDragOver, V = e.onDragLeave, da = e.onDrop, ma = aa(e, lt);
2061
+ return d(d(ja({
2062
+ onKeyDown: ca(w(b, La)),
2063
+ onFocus: ca(w(H, Ma)),
2064
+ onBlur: ca(w(S, $a)),
2065
+ onClick: P(w(la, Ha)),
2066
+ onDragEnter: G(w(ra, Ia)),
2067
+ onDragOver: G(w(sa, Ca)),
2068
+ onDragLeave: G(w(V, Ra)),
2069
+ onDrop: G(w(da, N)),
2070
+ role: typeof u == "string" && u !== "" ? u : "presentation"
2071
+ }, m, f), !n && !na ? {
1085
2072
  tabIndex: 0
1086
- } : {}), de);
2073
+ } : {}), ma);
1087
2074
  };
1088
- }, [b, Ke, He, We, Be, Le, Me, $e, G, oe, Ie, n]), Ar = A(function(a) {
1089
- a.stopPropagation();
1090
- }, []), Er = T(function() {
2075
+ }, [f, La, Ma, $a, Ha, Ia, Ca, Ra, N, na, Oa, n]), fi = y(function(e) {
2076
+ e.stopPropagation();
2077
+ }, []), xi = q(function() {
1091
2078
  return function() {
1092
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.refKey, m = c === void 0 ? "ref" : c, v = a.onChange, D = a.onClick, H = re(a, Dt), P = Ee({
1093
- accept: K,
1094
- multiple: s,
2079
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, b = e.onClick, H = aa(e, rt), S = ja({
2080
+ accept: $,
2081
+ multiple: r,
1095
2082
  type: "file",
1096
2083
  style: {
1097
- display: "none"
2084
+ border: 0,
2085
+ clip: "rect(0, 0, 0, 0)",
2086
+ clipPath: "inset(50%)",
2087
+ height: "1px",
2088
+ margin: "0 -1px -1px 0",
2089
+ overflow: "hidden",
2090
+ padding: 0,
2091
+ position: "absolute",
2092
+ width: "1px",
2093
+ whiteSpace: "nowrap"
1098
2094
  },
1099
- onChange: S(E(v, G)),
1100
- onClick: S(E(D, Ar)),
2095
+ onChange: P(w(u, N)),
2096
+ onClick: P(w(b, fi)),
1101
2097
  tabIndex: -1
1102
- }, m, w);
1103
- return p(p({}, P), H);
2098
+ }, m, h);
2099
+ return d(d({}, S), H);
1104
2100
  };
1105
- }, [w, t, s, G, n]);
1106
- return p(p({}, ue), {}, {
1107
- isFocused: Dr && !n,
1108
- getRootProps: wr,
1109
- getInputProps: Er,
1110
- rootRef: b,
1111
- inputRef: w,
1112
- open: S(j)
2101
+ }, [h, t, r, N, n]);
2102
+ return d(d({}, oa), {}, {
2103
+ isFocused: ui && !n,
2104
+ getRootProps: vi,
2105
+ getInputProps: xi,
2106
+ rootRef: f,
2107
+ inputRef: h,
2108
+ open: P(_)
1113
2109
  });
1114
2110
  }
1115
- function St(e, r) {
1116
- switch (r.type) {
2111
+ function bt(a, i) {
2112
+ switch (i.type) {
1117
2113
  case "focus":
1118
- return p(p({}, e), {}, {
2114
+ return d(d({}, a), {}, {
1119
2115
  isFocused: !0
1120
2116
  });
1121
2117
  case "blur":
1122
- return p(p({}, e), {}, {
2118
+ return d(d({}, a), {}, {
1123
2119
  isFocused: !1
1124
2120
  });
1125
2121
  case "openDialog":
1126
- return p(p({}, Oe), {}, {
2122
+ return d(d({}, za), {}, {
1127
2123
  isFileDialogActive: !0
1128
2124
  });
1129
2125
  case "closeDialog":
1130
- return p(p({}, e), {}, {
2126
+ return d(d({}, a), {}, {
1131
2127
  isFileDialogActive: !1
1132
2128
  });
1133
2129
  case "setDraggedFiles":
1134
- return p(p({}, e), {}, {
1135
- isDragActive: r.isDragActive,
1136
- isDragAccept: r.isDragAccept,
1137
- isDragReject: r.isDragReject
2130
+ return d(d({}, a), {}, {
2131
+ isDragActive: i.isDragActive,
2132
+ isDragAccept: i.isDragAccept,
2133
+ isDragReject: i.isDragReject
1138
2134
  });
1139
2135
  case "setFiles":
1140
- return p(p({}, e), {}, {
1141
- acceptedFiles: r.acceptedFiles,
1142
- fileRejections: r.fileRejections
2136
+ return d(d({}, a), {}, {
2137
+ acceptedFiles: i.acceptedFiles,
2138
+ fileRejections: i.fileRejections
1143
2139
  });
1144
2140
  case "reset":
1145
- return p({}, Oe);
2141
+ return d({}, za);
1146
2142
  default:
1147
- return e;
2143
+ return a;
1148
2144
  }
1149
2145
  }
1150
- function tr() {
2146
+ function Za() {
1151
2147
  }
1152
- const kt = ({
1153
- defaultLabel: e = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
1154
- dragLabel: r = "Déposer les fichiers ici",
2148
+ const Dt = ({
2149
+ defaultLabel: a = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
2150
+ dragLabel: i = "Déposer les fichiers ici",
1155
2151
  information: t,
1156
2152
  ...n
1157
2153
  }) => {
1158
- const { getRootProps: i, getInputProps: o, isDragActive: u } = br(n);
1159
- return /* @__PURE__ */ ve(
1160
- Pr,
2154
+ const { getRootProps: p, getInputProps: o, isDragActive: l } = di(n);
2155
+ return /* @__PURE__ */ fa(
2156
+ ji,
1161
2157
  {
1162
2158
  direction: "column",
1163
2159
  justifyContent: "center",
@@ -1171,21 +2167,21 @@ const kt = ({
1171
2167
  sx: {
1172
2168
  cursor: "pointer"
1173
2169
  },
1174
- ...i(),
2170
+ ...p(),
1175
2171
  children: [
1176
- /* @__PURE__ */ I("input", { ...o() }),
1177
- u ? /* @__PURE__ */ ve(Ue, { children: [
1178
- /* @__PURE__ */ I(ar, { color: "primary" }),
1179
- /* @__PURE__ */ I(be, { children: r })
1180
- ] }) : /* @__PURE__ */ ve(Ue, { children: [
1181
- /* @__PURE__ */ I(ur, { color: "primary" }),
1182
- /* @__PURE__ */ I(be, { children: e }),
1183
- t ? /* @__PURE__ */ I(be, { fontSize: "0.875rem", color: "grey", children: t }) : null
2172
+ /* @__PURE__ */ z("input", { ...o() }),
2173
+ l ? /* @__PURE__ */ fa(Ka, { children: [
2174
+ /* @__PURE__ */ z(zi, { color: "primary" }),
2175
+ /* @__PURE__ */ z(ga, { children: i })
2176
+ ] }) : /* @__PURE__ */ fa(Ka, { children: [
2177
+ /* @__PURE__ */ z(Di, { color: "primary" }),
2178
+ /* @__PURE__ */ z(ga, { children: a }),
2179
+ t ? /* @__PURE__ */ z(ga, { fontSize: "0.875rem", color: "grey", children: t }) : null
1184
2180
  ] })
1185
2181
  ]
1186
2182
  }
1187
2183
  );
1188
2184
  };
1189
2185
  export {
1190
- kt as default
2186
+ Dt as default
1191
2187
  };