diginext-utils 2.0.5 → 2.0.8

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 (178) hide show
  1. package/dist/Checker.d.ts +0 -1
  2. package/dist/Checker.js +27 -45
  3. package/dist/Checker.js.map +1 -0
  4. package/dist/EventDispatcher.d.ts +1 -3
  5. package/dist/EventDispatcher.js +47 -70
  6. package/dist/EventDispatcher.js.map +1 -0
  7. package/dist/FileUpload.d.ts +0 -1
  8. package/dist/FileUpload.js +61 -79
  9. package/dist/FileUpload.js.map +1 -0
  10. package/dist/Slug.d.ts +0 -1
  11. package/dist/Slug.js +329 -347
  12. package/dist/Slug.js.map +1 -0
  13. package/dist/Timer.d.ts +1 -3
  14. package/dist/Timer.js +8 -32
  15. package/dist/Timer.js.map +1 -0
  16. package/dist/Validation.d.ts +1 -3
  17. package/dist/Validation.js +38 -55
  18. package/dist/Validation.js.map +1 -0
  19. package/dist/array.d.ts +19 -21
  20. package/dist/array.js +264 -242
  21. package/dist/array.js.map +1 -0
  22. package/dist/color.d.ts +7 -9
  23. package/dist/color.js +78 -87
  24. package/dist/color.js.map +1 -0
  25. package/dist/console/enableConsole.d.ts +1 -3
  26. package/dist/console/enableConsole.js +10 -36
  27. package/dist/console/enableConsole.js.map +1 -0
  28. package/dist/console/index.d.ts +3 -5
  29. package/dist/console/index.js +15 -42
  30. package/dist/console/index.js.map +1 -0
  31. package/dist/device/browser.d.ts +5 -7
  32. package/dist/device/browser.js +33 -60
  33. package/dist/device/browser.js.map +1 -0
  34. package/dist/device/camera.d.ts +7 -16
  35. package/dist/device/camera.js +167 -187
  36. package/dist/device/camera.js.map +1 -0
  37. package/dist/device.d.ts +4 -6
  38. package/dist/device.js +210 -190
  39. package/dist/device.js.map +1 -0
  40. package/dist/file/createDir.d.ts +1 -2
  41. package/dist/file/createDir.js +14 -34
  42. package/dist/file/createDir.js.map +1 -0
  43. package/dist/file/fileMove.d.ts +1 -3
  44. package/dist/file/fileMove.js +30 -49
  45. package/dist/file/fileMove.js.map +1 -0
  46. package/dist/file/findFilesByExt.d.ts +0 -1
  47. package/dist/file/findFilesByExt.js +40 -58
  48. package/dist/file/findFilesByExt.js.map +1 -0
  49. package/dist/index.d.ts +16 -12
  50. package/dist/index.js +33 -906
  51. package/dist/index.js.map +1 -0
  52. package/dist/math/diffDate.d.ts +1 -3
  53. package/dist/math/diffDate.js +11 -31
  54. package/dist/math/diffDate.js.map +1 -0
  55. package/dist/math/index.d.ts +8 -10
  56. package/dist/math/index.js +87 -71
  57. package/dist/math/index.js.map +1 -0
  58. package/dist/math/positiveNumber.d.ts +1 -3
  59. package/dist/math/positiveNumber.js +14 -51
  60. package/dist/math/positiveNumber.js.map +1 -0
  61. package/dist/name/en.d.ts +1 -3
  62. package/dist/name/en.js +18 -34
  63. package/dist/name/en.js.map +1 -0
  64. package/dist/name/vi.d.ts +1 -3
  65. package/dist/name/vi.js +24 -60
  66. package/dist/name/vi.js.map +1 -0
  67. package/dist/object.d.ts +9 -11
  68. package/dist/object.js +57 -82
  69. package/dist/object.js.map +1 -0
  70. package/dist/permission/requestCamera.d.ts +2 -3
  71. package/dist/permission/requestCamera.js +38 -47
  72. package/dist/permission/requestCamera.js.map +1 -0
  73. package/dist/permission/requestDeviceOrientationControl.d.ts +0 -1
  74. package/dist/permission/requestDeviceOrientationControl.js +36 -198
  75. package/dist/permission/requestDeviceOrientationControl.js.map +1 -0
  76. package/dist/string/formatNumber.d.ts +1 -3
  77. package/dist/string/formatNumber.js +12 -51
  78. package/dist/string/formatNumber.js.map +1 -0
  79. package/dist/string/generatePassword.d.ts +1 -3
  80. package/dist/string/generatePassword.js +21 -50
  81. package/dist/string/generatePassword.js.map +1 -0
  82. package/dist/string/generateUUID.d.ts +1 -3
  83. package/dist/string/generateUUID.js +34 -35
  84. package/dist/string/generateUUID.js.map +1 -0
  85. package/dist/string/index.d.ts +8 -10
  86. package/dist/string/index.js +119 -127
  87. package/dist/string/index.js.map +1 -0
  88. package/dist/string/random.d.ts +6 -8
  89. package/dist/string/random.js +21 -50
  90. package/dist/string/random.js.map +1 -0
  91. package/dist/string/trimNull.d.ts +1 -3
  92. package/dist/string/trimNull.js +15 -41
  93. package/dist/string/trimNull.js.map +1 -0
  94. package/dist/string/url.d.ts +7 -14
  95. package/dist/string/url.js +93 -108
  96. package/dist/string/url.js.map +1 -0
  97. package/package.json +6 -9
  98. package/src/Checker.ts +27 -0
  99. package/src/EventDispatcher.ts +60 -0
  100. package/src/FileUpload.ts +65 -0
  101. package/src/Slug.ts +364 -0
  102. package/src/Timer.ts +5 -0
  103. package/src/Validation.ts +35 -0
  104. package/src/array.ts +261 -0
  105. package/src/color.ts +89 -0
  106. package/src/console/enableConsole.ts +6 -0
  107. package/src/console/index.ts +11 -0
  108. package/src/device/browser.ts +29 -0
  109. package/src/device/camera.ts +209 -0
  110. package/src/device.ts +223 -0
  111. package/src/file/createDir.ts +14 -0
  112. package/src/file/fileMove.ts +32 -0
  113. package/src/file/findFilesByExt.ts +39 -0
  114. package/src/index.ts +17 -0
  115. package/src/math/diffDate.ts +8 -0
  116. package/src/math/index.ts +88 -0
  117. package/src/math/positiveNumber.ts +10 -0
  118. package/src/name/en.ts +24 -0
  119. package/src/name/vi.ts +21 -0
  120. package/src/object.ts +49 -0
  121. package/src/permission/requestCamera.ts +43 -0
  122. package/src/permission/requestDeviceOrientationControl.ts +33 -0
  123. package/src/string/formatNumber.ts +10 -0
  124. package/src/string/generatePassword.ts +16 -0
  125. package/src/string/generateUUID.ts +35 -0
  126. package/src/string/index.ts +145 -0
  127. package/src/string/random.ts +20 -0
  128. package/src/string/trimNull.ts +11 -0
  129. package/src/string/url.ts +109 -0
  130. package/dist/.DS_Store +0 -0
  131. package/dist/Checker.mjs +0 -26
  132. package/dist/EventDispatcher.mjs +0 -52
  133. package/dist/FileUpload.mjs +0 -60
  134. package/dist/Slug.mjs +0 -328
  135. package/dist/Timer.mjs +0 -7
  136. package/dist/Validation.mjs +0 -34
  137. package/dist/array.mjs +0 -44
  138. package/dist/chunk-2R5DRG2S.mjs +0 -28
  139. package/dist/chunk-3NMJTC44.mjs +0 -146
  140. package/dist/chunk-5AL36RZR.mjs +0 -54
  141. package/dist/chunk-7UXN7I4K.mjs +0 -96
  142. package/dist/chunk-A4YWYLCH.mjs +0 -23
  143. package/dist/chunk-AHFJBIQJ.mjs +0 -10
  144. package/dist/chunk-AKU6F3WT.mjs +0 -11
  145. package/dist/chunk-ALNAD4H7.mjs +0 -10
  146. package/dist/chunk-FOWYH6LL.mjs +0 -38
  147. package/dist/chunk-FTE6FZSH.mjs +0 -24
  148. package/dist/chunk-LXQIKFED.mjs +0 -17
  149. package/dist/chunk-NLQXFCPR.mjs +0 -30
  150. package/dist/chunk-QXFH3X2K.mjs +0 -49
  151. package/dist/chunk-R2BH5I6O.mjs +0 -9
  152. package/dist/chunk-S2U7F2JJ.mjs +0 -207
  153. package/dist/chunk-UKRVCU5M.mjs +0 -171
  154. package/dist/color.mjs +0 -68
  155. package/dist/console/enableConsole.mjs +0 -11
  156. package/dist/console/index.mjs +0 -18
  157. package/dist/device/browser.mjs +0 -39
  158. package/dist/device/camera.mjs +0 -146
  159. package/dist/device.mjs +0 -13
  160. package/dist/file/createDir.mjs +0 -16
  161. package/dist/file/fileMove.mjs +0 -32
  162. package/dist/file/findFilesByExt.mjs +0 -42
  163. package/dist/index.mjs +0 -143
  164. package/dist/math/diffDate.mjs +0 -11
  165. package/dist/math/index.mjs +0 -21
  166. package/dist/math/positiveNumber.mjs +0 -19
  167. package/dist/name/en.mjs +0 -18
  168. package/dist/name/vi.mjs +0 -34
  169. package/dist/object.mjs +0 -17
  170. package/dist/permission/requestCamera.mjs +0 -7
  171. package/dist/permission/requestDeviceOrientationControl.mjs +0 -176
  172. package/dist/string/formatNumber.mjs +0 -13
  173. package/dist/string/generatePassword.mjs +0 -22
  174. package/dist/string/generateUUID.mjs +0 -15
  175. package/dist/string/index.mjs +0 -96
  176. package/dist/string/random.mjs +0 -17
  177. package/dist/string/trimNull.mjs +0 -16
  178. package/dist/string/url.mjs +0 -79
@@ -1,51 +1,42 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/permission/requestCamera.ts
20
- var requestCamera_exports = {};
21
- __export(requestCamera_exports, {
22
- requestCamera: () => requestCamera
23
- });
24
- module.exports = __toCommonJS(requestCamera_exports);
25
- var requestCamera = ({ audio = true, video = true }) => {
26
- if (typeof window == "undefined")
27
- return false;
28
- return new Promise((resolve, reject) => {
29
- if (navigator.mediaDevices.getUserMedia === void 0) {
30
- navigator.mediaDevices.getUserMedia = function(constraints) {
31
- var getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
32
- if (!getUserMedia) {
33
- return Promise.reject(new Error("getUserMedia is not implemented in this browser"));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requestCamera = void 0;
4
+ const requestCamera = ({ audio = true, video = true }) => {
5
+ if (typeof window == "undefined")
6
+ return false;
7
+ return new Promise((resolve, reject) => {
8
+ // Older browsers might not implement mediaDevices at all, so we set an empty object first
9
+ // if (navigator.mediaDevices === undefined) {
10
+ // navigator.mediaDevices = {};
11
+ // }
12
+ // Some browsers partially implement mediaDevices. We can't just assign an object
13
+ // with getUserMedia as it would overwrite existing properties.
14
+ // Here, we will just add the getUserMedia property if it's missing.
15
+ if (navigator.mediaDevices.getUserMedia === undefined) {
16
+ navigator.mediaDevices.getUserMedia = function (constraints) {
17
+ // First get ahold of the legacy getUserMedia, if present
18
+ var getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
19
+ // Some browsers just don't implement it - return a rejected promise with an error
20
+ // to keep a consistent interface
21
+ if (!getUserMedia) {
22
+ return Promise.reject(new Error("getUserMedia is not implemented in this browser"));
23
+ }
24
+ // Otherwise, wrap the call to the old navigator.getUserMedia with a Promise
25
+ return new Promise(function (resolve, reject) {
26
+ getUserMedia.call(navigator, constraints, resolve, reject);
27
+ });
28
+ };
34
29
  }
35
- return new Promise(function(resolve2, reject2) {
36
- getUserMedia.call(navigator, constraints, resolve2, reject2);
30
+ navigator.mediaDevices
31
+ .getUserMedia({ audio, video })
32
+ .then(function (stream) {
33
+ resolve(true);
34
+ })
35
+ .catch(function (err) {
36
+ console.log(err.name + ": " + err.message);
37
+ resolve(false);
37
38
  });
38
- };
39
- }
40
- navigator.mediaDevices.getUserMedia({ audio, video }).then(function(stream) {
41
- resolve(true);
42
- }).catch(function(err) {
43
- console.log(err.name + ": " + err.message);
44
- resolve(false);
45
39
  });
46
- });
47
40
  };
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- requestCamera
51
- });
41
+ exports.requestCamera = requestCamera;
42
+ //# sourceMappingURL=requestCamera.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestCamera.js","sourceRoot":"","sources":["../../src/permission/requestCamera.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,EAAE,EAAE;IACxD,IAAI,OAAO,MAAM,IAAI,WAAW;QAAE,OAAO,KAAK,CAAC;IAE/C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,0FAA0F;QAC1F,8CAA8C;QAC9C,gCAAgC;QAChC,IAAI;QAEJ,iFAAiF;QACjF,+DAA+D;QAC/D,oEAAoE;QACpE,IAAI,SAAS,CAAC,YAAY,CAAC,YAAY,KAAK,SAAS,EAAE;YACtD,SAAS,CAAC,YAAY,CAAC,YAAY,GAAG,UAAU,WAAW;gBAC1D,yDAAyD;gBACzD,IAAI,YAAY,GAAI,SAAiB,CAAC,kBAAkB,IAAK,SAAiB,CAAC,eAAe,CAAC;gBAE/F,kFAAkF;gBAClF,iCAAiC;gBACjC,IAAI,CAAC,YAAY,EAAE;oBAClB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC,CAAC;iBACpF;gBAED,4EAA4E;gBAC5E,OAAO,IAAI,OAAO,CAAC,UAAU,OAAO,EAAE,MAAM;oBAC3C,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC;SACF;QAED,SAAS,CAAC,YAAY;aACpB,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;aAC9B,IAAI,CAAC,UAAU,MAAM;YACrB,OAAO,CAAC,IAAI,CAAC,CAAC;QACf,CAAC,CAAC;aACD,KAAK,CAAC,UAAU,GAAG;YACnB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;YAC3C,OAAO,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEO,sCAAa"}
@@ -1,3 +1,2 @@
1
1
  declare const requestDeviceOrientationControl: () => false | Promise<unknown>;
2
-
3
2
  export { requestDeviceOrientationControl };
@@ -1,200 +1,38 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/permission/requestDeviceOrientationControl.ts
20
- var requestDeviceOrientationControl_exports = {};
21
- __export(requestDeviceOrientationControl_exports, {
22
- requestDeviceOrientationControl: () => requestDeviceOrientationControl
23
- });
24
- module.exports = __toCommonJS(requestDeviceOrientationControl_exports);
25
-
26
- // src/device.ts
27
- var isAndroid = () => {
28
- const deviceInfo2 = checkOS();
29
- if (deviceInfo2)
30
- return deviceInfo2.os.toLowerCase() == "android";
31
- console.log("Can't check OS");
32
- return null;
33
- };
34
- var deviceInfo;
35
- var checkOS = () => {
36
- if (typeof window == "undefined")
37
- return {};
38
- if (typeof deviceInfo == "undefined") {
39
- var unknown = "-";
40
- var screenSize = "";
41
- if (screen.width) {
42
- var width = screen.width ? screen.width : "";
43
- var height = screen.height ? screen.height : "";
44
- screenSize += "" + width + " x " + height;
45
- }
46
- var nVer = navigator.appVersion;
47
- var nAgt = navigator.userAgent;
48
- var browser = navigator.appName;
49
- var version = "" + parseFloat(navigator.appVersion);
50
- var majorVersion = parseInt(navigator.appVersion, 10);
51
- var nameOffset, verOffset, ix;
52
- if ((verOffset = nAgt.indexOf("Opera")) != -1) {
53
- browser = "Opera";
54
- version = nAgt.substring(verOffset + 6);
55
- if ((verOffset = nAgt.indexOf("Version")) != -1) {
56
- version = nAgt.substring(verOffset + 8);
57
- }
58
- }
59
- if ((verOffset = nAgt.indexOf("OPR")) != -1) {
60
- browser = "Opera";
61
- version = nAgt.substring(verOffset + 4);
62
- } else if ((verOffset = nAgt.indexOf("Edge")) != -1) {
63
- browser = "Microsoft Edge";
64
- version = nAgt.substring(verOffset + 5);
65
- } else if ((verOffset = nAgt.indexOf("MSIE")) != -1) {
66
- browser = "Microsoft Internet Explorer";
67
- version = nAgt.substring(verOffset + 5);
68
- } else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
69
- browser = "Chrome";
70
- version = nAgt.substring(verOffset + 7);
71
- } else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
72
- browser = "Safari";
73
- version = nAgt.substring(verOffset + 7);
74
- if ((verOffset = nAgt.indexOf("Version")) != -1) {
75
- version = nAgt.substring(verOffset + 8);
76
- }
77
- } else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
78
- browser = "Firefox";
79
- version = nAgt.substring(verOffset + 8);
80
- } else if (nAgt.indexOf("Trident/") != -1) {
81
- browser = "Microsoft Internet Explorer";
82
- version = nAgt.substring(nAgt.indexOf("rv:") + 3);
83
- } else if ((nameOffset = nAgt.lastIndexOf(" ") + 1) < (verOffset = nAgt.lastIndexOf("/"))) {
84
- browser = nAgt.substring(nameOffset, verOffset);
85
- version = nAgt.substring(verOffset + 1);
86
- if (browser.toLowerCase() == browser.toUpperCase()) {
87
- browser = navigator.appName;
88
- }
89
- }
90
- if ((ix = version.indexOf(";")) != -1)
91
- version = version.substring(0, ix);
92
- if ((ix = version.indexOf(" ")) != -1)
93
- version = version.substring(0, ix);
94
- if ((ix = version.indexOf(")")) != -1)
95
- version = version.substring(0, ix);
96
- majorVersion = parseInt("" + version, 10);
97
- if (isNaN(majorVersion)) {
98
- version = "" + parseFloat(navigator.appVersion);
99
- majorVersion = parseInt(navigator.appVersion, 10);
100
- }
101
- var mobile = /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(nVer);
102
- var cookieEnabled = navigator.cookieEnabled ? true : false;
103
- if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
104
- document.cookie = "testcookie";
105
- cookieEnabled = document.cookie.indexOf("testcookie") != -1 ? true : false;
106
- }
107
- var os = unknown;
108
- var clientStrings = [
109
- { s: "Windows 10", r: /(Windows 10.0|Windows NT 10.0)/ },
110
- { s: "Windows 8.1", r: /(Windows 8.1|Windows NT 6.3)/ },
111
- { s: "Windows 8", r: /(Windows 8|Windows NT 6.2)/ },
112
- { s: "Windows 7", r: /(Windows 7|Windows NT 6.1)/ },
113
- { s: "Windows Vista", r: /Windows NT 6.0/ },
114
- { s: "Windows Server 2003", r: /Windows NT 5.2/ },
115
- { s: "Windows XP", r: /(Windows NT 5.1|Windows XP)/ },
116
- { s: "Windows 2000", r: /(Windows NT 5.0|Windows 2000)/ },
117
- { s: "Windows ME", r: /(Win 9x 4.90|Windows ME)/ },
118
- { s: "Windows 98", r: /(Windows 98|Win98)/ },
119
- { s: "Windows 95", r: /(Windows 95|Win95|Windows_95)/ },
120
- { s: "Windows NT 4.0", r: /(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/ },
121
- { s: "Windows CE", r: /Windows CE/ },
122
- { s: "Windows 3.11", r: /Win16/ },
123
- { s: "Android", r: /Android/ },
124
- { s: "Open BSD", r: /OpenBSD/ },
125
- { s: "Sun OS", r: /SunOS/ },
126
- { s: "Linux", r: /(Linux|X11)/ },
127
- { s: "iOS", r: /(iPhone|iPad|iPod)/ },
128
- { s: "Mac OS X", r: /Mac OS X/ },
129
- { s: "Mac OS", r: /(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/ },
130
- { s: "QNX", r: /QNX/ },
131
- { s: "UNIX", r: /UNIX/ },
132
- { s: "BeOS", r: /BeOS/ },
133
- { s: "OS/2", r: /OS\/2/ },
134
- { s: "Search Bot", r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/ }
135
- ];
136
- for (var id in clientStrings) {
137
- var cs = clientStrings[id];
138
- if (cs.r.test(nAgt)) {
139
- os = cs.s;
140
- break;
141
- }
142
- }
143
- var osVersion = unknown;
144
- if (/Windows/.test(os)) {
145
- osVersion = /Windows (.*)/.exec(os)[1];
146
- os = "Windows";
147
- }
148
- switch (os) {
149
- case "Mac OS X":
150
- osVersion = /Mac OS X (10[\.\_\d]+)/.exec(nAgt)[1];
151
- break;
152
- case "Android":
153
- osVersion = /Android ([\.\_\d]+)/.exec(nAgt)[1];
154
- break;
155
- case "iOS":
156
- const _osVersion = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVer);
157
- osVersion = _osVersion[1] + "." + _osVersion[2] + "." + (_osVersion[3] || 0);
158
- break;
159
- }
160
- const _deviceInfo = {
161
- screen: screenSize,
162
- browser,
163
- browserVersion: version,
164
- browserMajorVersion: majorVersion,
165
- mobile,
166
- os,
167
- osVersion,
168
- cookies: cookieEnabled
169
- };
170
- deviceInfo = _deviceInfo;
171
- }
172
- return deviceInfo;
173
- };
174
-
175
- // src/permission/requestDeviceOrientationControl.ts
176
- var requestDeviceOrientationControl = () => {
177
- if (typeof window == "undefined")
178
- return false;
179
- return new Promise((resolve, reject) => {
180
- if (isAndroid())
181
- resolve(true);
182
- if (typeof DeviceMotionEvent != "undefined" && DeviceMotionEvent.requestPermission) {
183
- DeviceMotionEvent.requestPermission().then((response) => {
184
- if (response == "granted") {
185
- resolve(true);
186
- } else {
187
- resolve(false);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requestDeviceOrientationControl = void 0;
4
+ const device_1 = require("../device");
5
+ const requestDeviceOrientationControl = () => {
6
+ if (typeof window == "undefined")
7
+ return false;
8
+ return new Promise((resolve, reject) => {
9
+ if ((0, device_1.isAndroid)())
10
+ resolve(true);
11
+ if (typeof DeviceMotionEvent != "undefined" && DeviceMotionEvent.requestPermission) {
12
+ // (optional) Do something before API request prompt.
13
+ DeviceMotionEvent
14
+ .requestPermission()
15
+ .then((response) => {
16
+ // (optional) Do something after API prompt dismissed.
17
+ if (response == "granted") {
18
+ resolve(true);
19
+ // resolve({ status: true })
20
+ }
21
+ else {
22
+ resolve(false);
23
+ // resolve({ status: false, reason: "DeviceMotionEvent is not support" })
24
+ }
25
+ })
26
+ .catch((response) => {
27
+ resolve(false);
28
+ // resolve({ status: false, reason: response })
29
+ });
30
+ }
31
+ else {
32
+ resolve(false);
33
+ // resolve({ status: false, reason: "DeviceMotionEvent is not defined" })
188
34
  }
189
- }).catch((response) => {
190
- resolve(false);
191
- });
192
- } else {
193
- resolve(false);
194
- }
195
- });
35
+ });
196
36
  };
197
- // Annotate the CommonJS export names for ESM import in node:
198
- 0 && (module.exports = {
199
- requestDeviceOrientationControl
200
- });
37
+ exports.requestDeviceOrientationControl = requestDeviceOrientationControl;
38
+ //# sourceMappingURL=requestDeviceOrientationControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestDeviceOrientationControl.js","sourceRoot":"","sources":["../../src/permission/requestDeviceOrientationControl.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AAEtC,MAAM,+BAA+B,GAAG,GAAG,EAAE;IAC5C,IAAI,OAAO,MAAM,IAAI,WAAW;QAAE,OAAO,KAAK,CAAC;IAC/C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,IAAI,IAAA,kBAAS,GAAE;YAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAE/B,IAAI,OAAO,iBAAiB,IAAI,WAAW,IAAK,iBAAyB,CAAC,iBAAiB,EAAE;YAC5F,qDAAqD;YACpD,iBAAyB;iBACxB,iBAAiB,EAAE;iBACnB,IAAI,CAAC,CAAC,QAAa,EAAE,EAAE;gBACvB,sDAAsD;gBACtD,IAAI,QAAQ,IAAI,SAAS,EAAE;oBAC1B,OAAO,CAAC,IAAI,CAAC,CAAC;oBACd,4BAA4B;iBAC5B;qBAAM;oBACN,OAAO,CAAC,KAAK,CAAC,CAAC;oBACf,yEAAyE;iBACzE;YACF,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,QAAa,EAAE,EAAE;gBACxB,OAAO,CAAC,KAAK,CAAC,CAAC;gBACf,+CAA+C;YAChD,CAAC,CAAC,CAAC;SACJ;aAAM;YACN,OAAO,CAAC,KAAK,CAAC,CAAC;YACf,yEAAyE;SACzE;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEO,0EAA+B"}
@@ -2,6 +2,4 @@
2
2
  * Format the input number with commas
3
3
  * @example 1000000 -> 1,000,000
4
4
  */
5
- declare function formatNumber(num: number, prefix?: string): string;
6
-
7
- export { formatNumber };
5
+ export declare function formatNumber(num: number, prefix?: string): string;
@@ -1,53 +1,14 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/string/formatNumber.ts
20
- var formatNumber_exports = {};
21
- __export(formatNumber_exports, {
22
- formatNumber: () => formatNumber
23
- });
24
- module.exports = __toCommonJS(formatNumber_exports);
25
-
26
- // src/object.ts
27
- var isNull = (object) => {
28
- if (typeof object == "undefined")
29
- return true;
30
- if (object == "")
31
- return true;
32
- if (Array.isArray(object))
33
- return object.length == 0;
34
- if (JSON.stringify(object) == "{}")
35
- return true;
36
- return object == null;
37
- };
38
- var toInt = (object) => {
39
- if (isNull(object))
40
- return 0;
41
- object = object.toString();
42
- return parseInt(object, 10);
43
- };
44
-
45
- // src/string/formatNumber.ts
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatNumber = void 0;
4
+ const object_1 = require("../object");
5
+ /**
6
+ * Format the input number with commas
7
+ * @example 1000000 -> 1,000,000
8
+ */
46
9
  function formatNumber(num, prefix = "$") {
47
- const numRound = Math.round((toInt(num) + Number.EPSILON) * 100) / 100;
48
- return Number.isNaN(numRound) ? "0" : "" + numRound.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, prefix + "1,");
10
+ const numRound = Math.round(((0, object_1.toInt)(num) + Number.EPSILON) * 100) / 100;
11
+ return Number.isNaN(numRound) ? "0" : "" + numRound.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, prefix + "1,");
49
12
  }
50
- // Annotate the CommonJS export names for ESM import in node:
51
- 0 && (module.exports = {
52
- formatNumber
53
- });
13
+ exports.formatNumber = formatNumber;
14
+ //# sourceMappingURL=formatNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatNumber.js","sourceRoot":"","sources":["../../src/string/formatNumber.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAElC;;;GAGG;AACH,SAAgB,YAAY,CAAC,GAAW,EAAE,MAAM,GAAG,GAAG;IACrD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAA,cAAK,EAAC,GAAG,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IACvE,OAAO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;AAClH,CAAC;AAHD,oCAGC"}
@@ -5,6 +5,4 @@
5
5
  * @param {Boolean} hard
6
6
  * @returns
7
7
  */
8
- declare function generatePassword(length?: number, hard?: boolean): string;
9
-
10
- export { generatePassword };
8
+ export declare function generatePassword(length?: number, hard?: boolean): string;
@@ -1,52 +1,23 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/string/generatePassword.ts
20
- var generatePassword_exports = {};
21
- __export(generatePassword_exports, {
22
- generatePassword: () => generatePassword
23
- });
24
- module.exports = __toCommonJS(generatePassword_exports);
25
-
26
- // src/string/random.ts
27
- var textLowCase = "abcdefghijklmnopqrstuvwxyz";
28
- var numeric = "0123456789";
29
- var punctuation = "!@#$%^&*()_+~|}{[];?><,./-=";
30
- var randomStringByLength = (length, str = textLowCase) => {
31
- let result = "";
32
- for (let i = 0; i < length; i++) {
33
- result += str.charAt(Math.floor(Math.random() * str.length));
34
- }
35
- return result;
36
- };
37
-
38
- // src/string/generatePassword.ts
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generatePassword = void 0;
4
+ const random_1 = require("./random");
5
+ /**
6
+ * random password
7
+ * - if hard = true -> random punctuation inside
8
+ * @param {*} length
9
+ * @param {Boolean} hard
10
+ * @returns
11
+ */
39
12
  function generatePassword(length = 6, hard = true) {
40
- if (!Number.isFinite(length))
41
- length = 6;
42
- if (length <= 0)
43
- length = 6;
44
- let pass = randomStringByLength(length, textLowCase + textLowCase.toUpperCase() + numeric);
45
- if (hard)
46
- pass = pass.replace(pass[Math.floor(pass.length / 2)], randomStringByLength(1, punctuation));
47
- return pass;
13
+ if (!Number.isFinite(length))
14
+ length = 6;
15
+ if (length <= 0)
16
+ length = 6;
17
+ let pass = (0, random_1.randomStringByLength)(length, random_1.textLowCase + random_1.textLowCase.toUpperCase() + random_1.numeric);
18
+ if (hard)
19
+ pass = pass.replace(pass[Math.floor(pass.length / 2)], (0, random_1.randomStringByLength)(1, random_1.punctuation));
20
+ return pass;
48
21
  }
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- generatePassword
52
- });
22
+ exports.generatePassword = generatePassword;
23
+ //# sourceMappingURL=generatePassword.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatePassword.js","sourceRoot":"","sources":["../../src/string/generatePassword.ts"],"names":[],"mappings":";;;AAAA,qCAAmF;AAEnF;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI;IACvD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,MAAM,GAAG,CAAC,CAAC;IACzC,IAAI,MAAM,IAAI,CAAC;QAAE,MAAM,GAAG,CAAC,CAAC;IAC5B,IAAI,IAAI,GAAG,IAAA,6BAAoB,EAAC,MAAM,EAAE,oBAAW,GAAG,oBAAW,CAAC,WAAW,EAAE,GAAG,gBAAO,CAAC,CAAC;IAC3F,IAAI,IAAI;QAAE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,IAAA,6BAAoB,EAAC,CAAC,EAAE,oBAAW,CAAC,CAAC,CAAC;IACvG,OAAO,IAAI,CAAC;AACb,CAAC;AAND,4CAMC"}
@@ -1,3 +1 @@
1
- declare function generateUUID(): string;
2
-
3
- export { generateUUID };
1
+ export declare function generateUUID(): string;
@@ -1,37 +1,36 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/string/generateUUID.ts
20
- var generateUUID_exports = {};
21
- __export(generateUUID_exports, {
22
- generateUUID: () => generateUUID
23
- });
24
- module.exports = __toCommonJS(generateUUID_exports);
25
- var _lut = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateUUID = void 0;
4
+ //prettier-ignore
5
+ const _lut = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '0a', '0b', '0c', '0d', '0e', '0f', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '1a', '1b', '1c', '1d', '1e', '1f', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '2a', '2b', '2c', '2d', '2e', '2f', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '3a', '3b', '3c', '3d', '3e', '3f', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '4a', '4b', '4c', '4d', '4e', '4f', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '5a', '5b', '5c', '5d', '5e', '5f', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '6a', '6b', '6c', '6d', '6e', '6f', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '7a', '7b', '7c', '7d', '7e', '7f', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '8a', '8b', '8c', '8d', '8e', '8f', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '9a', '9b', '9c', '9d', '9e', '9f', 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'aa', 'ab', 'ac', 'ad', 'ae', 'af', 'b0', 'b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'b7', 'b8', 'b9', 'ba', 'bb', 'bc', 'bd', 'be', 'bf', 'c0', 'c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8', 'c9', 'ca', 'cb', 'cc', 'cd', 'ce', 'cf', 'd0', 'd1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8', 'd9', 'da', 'db', 'dc', 'dd', 'de', 'df', 'e0', 'e1', 'e2', 'e3', 'e4', 'e5', 'e6', 'e7', 'e8', 'e9', 'ea', 'eb', 'ec', 'ed', 'ee', 'ef', 'f0', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'fa', 'fb', 'fc', 'fd', 'fe', 'ff'];
26
6
  function generateUUID() {
27
- const d0 = Math.random() * 4294967295 | 0;
28
- const d1 = Math.random() * 4294967295 | 0;
29
- const d2 = Math.random() * 4294967295 | 0;
30
- const d3 = Math.random() * 4294967295 | 0;
31
- const uuid = _lut[d0 & 255] + _lut[d0 >> 8 & 255] + _lut[d0 >> 16 & 255] + _lut[d0 >> 24 & 255] + "-" + _lut[d1 & 255] + _lut[d1 >> 8 & 255] + "-" + _lut[d1 >> 16 & 15 | 64] + _lut[d1 >> 24 & 255] + "-" + _lut[d2 & 63 | 128] + _lut[d2 >> 8 & 255] + "-" + _lut[d2 >> 16 & 255] + _lut[d2 >> 24 & 255] + _lut[d3 & 255] + _lut[d3 >> 8 & 255] + _lut[d3 >> 16 & 255] + _lut[d3 >> 24 & 255];
32
- return uuid.toLowerCase();
7
+ // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
8
+ const d0 = (Math.random() * 0xffffffff) | 0;
9
+ const d1 = (Math.random() * 0xffffffff) | 0;
10
+ const d2 = (Math.random() * 0xffffffff) | 0;
11
+ const d3 = (Math.random() * 0xffffffff) | 0;
12
+ const uuid = _lut[d0 & 0xff] +
13
+ _lut[(d0 >> 8) & 0xff] +
14
+ _lut[(d0 >> 16) & 0xff] +
15
+ _lut[(d0 >> 24) & 0xff] +
16
+ "-" +
17
+ _lut[d1 & 0xff] +
18
+ _lut[(d1 >> 8) & 0xff] +
19
+ "-" +
20
+ _lut[((d1 >> 16) & 0x0f) | 0x40] +
21
+ _lut[(d1 >> 24) & 0xff] +
22
+ "-" +
23
+ _lut[(d2 & 0x3f) | 0x80] +
24
+ _lut[(d2 >> 8) & 0xff] +
25
+ "-" +
26
+ _lut[(d2 >> 16) & 0xff] +
27
+ _lut[(d2 >> 24) & 0xff] +
28
+ _lut[d3 & 0xff] +
29
+ _lut[(d3 >> 8) & 0xff] +
30
+ _lut[(d3 >> 16) & 0xff] +
31
+ _lut[(d3 >> 24) & 0xff];
32
+ // .toLowerCase() here flattens concatenated strings to save heap memory space.
33
+ return uuid.toLowerCase();
33
34
  }
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
36
- generateUUID
37
- });
35
+ exports.generateUUID = generateUUID;
36
+ //# sourceMappingURL=generateUUID.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateUUID.js","sourceRoot":"","sources":["../../src/string/generateUUID.ts"],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,MAAM,IAAI,GAAG,CAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAA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