watermark-js-plus 1.6.0 → 1.6.2

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 (202) hide show
  1. package/dist/es/node_modules/tslib/tslib.es6.js +86 -0
  2. package/dist/es/src/core/blind.js +82 -0
  3. package/dist/es/src/core/canvas.js +292 -0
  4. package/dist/es/src/core/image.js +63 -0
  5. package/dist/es/src/core/layout/grid.js +36 -0
  6. package/dist/es/src/core/layout/index.js +25 -0
  7. package/dist/es/src/core/watermark.js +248 -0
  8. package/dist/es/src/index.js +3 -0
  9. package/dist/es/src/utils/index.js +199 -0
  10. package/dist/es/src/utils/initialization.js +284 -0
  11. package/dist/es/src/utils/protection.js +13 -0
  12. package/dist/es/style.css +1 -0
  13. package/dist/ie/es/_virtual/_commonjsHelpers.js +3 -0
  14. package/dist/ie/es/_virtual/es.array.fill.js +3 -0
  15. package/dist/ie/es/_virtual/es.array.fill2.js +3 -0
  16. package/dist/ie/es/_virtual/es.array.from.js +3 -0
  17. package/dist/ie/es/_virtual/es.array.from2.js +3 -0
  18. package/dist/ie/es/_virtual/es.array.includes.js +3 -0
  19. package/dist/ie/es/_virtual/es.array.includes2.js +3 -0
  20. package/dist/ie/es/_virtual/es.promise.all.js +3 -0
  21. package/dist/ie/es/_virtual/es.promise.catch.js +3 -0
  22. package/dist/ie/es/_virtual/es.promise.constructor.js +3 -0
  23. package/dist/ie/es/_virtual/es.promise.js +3 -0
  24. package/dist/ie/es/_virtual/es.promise.race.js +3 -0
  25. package/dist/ie/es/_virtual/es.promise.reject.js +3 -0
  26. package/dist/ie/es/_virtual/es.promise.resolve.js +3 -0
  27. package/dist/ie/es/_virtual/es.promise2.js +3 -0
  28. package/dist/ie/es/_virtual/make-built-in.js +3 -0
  29. package/dist/ie/es/_virtual/new-promise-capability.js +3 -0
  30. package/dist/ie/es/_virtual/object-define-properties.js +3 -0
  31. package/dist/ie/es/_virtual/object-define-property.js +3 -0
  32. package/dist/ie/es/_virtual/object-get-own-property-descriptor.js +3 -0
  33. package/dist/ie/es/_virtual/object-get-own-property-names.js +3 -0
  34. package/dist/ie/es/_virtual/object-get-own-property-symbols.js +3 -0
  35. package/dist/ie/es/_virtual/object-property-is-enumerable.js +3 -0
  36. package/dist/ie/es/_virtual/shared-store.js +3 -0
  37. package/dist/ie/es/node_modules/core-js/internals/a-callable.js +23 -0
  38. package/dist/ie/es/node_modules/core-js/internals/a-constructor.js +23 -0
  39. package/dist/ie/es/node_modules/core-js/internals/a-possible-prototype.js +21 -0
  40. package/dist/ie/es/node_modules/core-js/internals/add-to-unscopables.js +34 -0
  41. package/dist/ie/es/node_modules/core-js/internals/an-instance.js +20 -0
  42. package/dist/ie/es/node_modules/core-js/internals/an-object.js +22 -0
  43. package/dist/ie/es/node_modules/core-js/internals/array-fill.js +30 -0
  44. package/dist/ie/es/node_modules/core-js/internals/array-from.js +66 -0
  45. package/dist/ie/es/node_modules/core-js/internals/array-includes.js +47 -0
  46. package/dist/ie/es/node_modules/core-js/internals/array-slice.js +15 -0
  47. package/dist/ie/es/node_modules/core-js/internals/call-with-safe-iteration-closing.js +24 -0
  48. package/dist/ie/es/node_modules/core-js/internals/check-correctness-of-iteration.js +52 -0
  49. package/dist/ie/es/node_modules/core-js/internals/classof-raw.js +20 -0
  50. package/dist/ie/es/node_modules/core-js/internals/classof.js +44 -0
  51. package/dist/ie/es/node_modules/core-js/internals/copy-constructor-properties.js +31 -0
  52. package/dist/ie/es/node_modules/core-js/internals/create-non-enumerable-property.js +24 -0
  53. package/dist/ie/es/node_modules/core-js/internals/create-property-descriptor.js +18 -0
  54. package/dist/ie/es/node_modules/core-js/internals/create-property.js +22 -0
  55. package/dist/ie/es/node_modules/core-js/internals/define-built-in-accessor.js +21 -0
  56. package/dist/ie/es/node_modules/core-js/internals/define-built-in.js +42 -0
  57. package/dist/ie/es/node_modules/core-js/internals/define-global-property.js +24 -0
  58. package/dist/ie/es/node_modules/core-js/internals/descriptors.js +19 -0
  59. package/dist/ie/es/node_modules/core-js/internals/document-create-element.js +23 -0
  60. package/dist/ie/es/node_modules/core-js/internals/enum-bug-keys.js +20 -0
  61. package/dist/ie/es/node_modules/core-js/internals/environment-is-ios-pebble.js +15 -0
  62. package/dist/ie/es/node_modules/core-js/internals/environment-is-ios.js +16 -0
  63. package/dist/ie/es/node_modules/core-js/internals/environment-is-node.js +15 -0
  64. package/dist/ie/es/node_modules/core-js/internals/environment-is-webos-webkit.js +15 -0
  65. package/dist/ie/es/node_modules/core-js/internals/environment-user-agent.js +18 -0
  66. package/dist/ie/es/node_modules/core-js/internals/environment-v8-version.js +40 -0
  67. package/dist/ie/es/node_modules/core-js/internals/environment.js +34 -0
  68. package/dist/ie/es/node_modules/core-js/internals/export.js +72 -0
  69. package/dist/ie/es/node_modules/core-js/internals/fails.js +17 -0
  70. package/dist/ie/es/node_modules/core-js/internals/function-apply.js +22 -0
  71. package/dist/ie/es/node_modules/core-js/internals/function-bind-context.js +27 -0
  72. package/dist/ie/es/node_modules/core-js/internals/function-bind-native.js +20 -0
  73. package/dist/ie/es/node_modules/core-js/internals/function-call.js +19 -0
  74. package/dist/ie/es/node_modules/core-js/internals/function-name.js +30 -0
  75. package/dist/ie/es/node_modules/core-js/internals/function-uncurry-this-accessor.js +22 -0
  76. package/dist/ie/es/node_modules/core-js/internals/function-uncurry-this-clause.js +22 -0
  77. package/dist/ie/es/node_modules/core-js/internals/function-uncurry-this.js +24 -0
  78. package/dist/ie/es/node_modules/core-js/internals/get-built-in.js +23 -0
  79. package/dist/ie/es/node_modules/core-js/internals/get-iterator-method.js +29 -0
  80. package/dist/ie/es/node_modules/core-js/internals/get-iterator.js +29 -0
  81. package/dist/ie/es/node_modules/core-js/internals/get-method.js +22 -0
  82. package/dist/ie/es/node_modules/core-js/internals/global-this.js +27 -0
  83. package/dist/ie/es/node_modules/core-js/internals/has-own-property.js +24 -0
  84. package/dist/ie/es/node_modules/core-js/internals/hidden-keys.js +11 -0
  85. package/dist/ie/es/node_modules/core-js/internals/host-report-errors.js +16 -0
  86. package/dist/ie/es/node_modules/core-js/internals/html.js +15 -0
  87. package/dist/ie/es/node_modules/core-js/internals/ie8-dom-define.js +25 -0
  88. package/dist/ie/es/node_modules/core-js/internals/indexed-object.js +29 -0
  89. package/dist/ie/es/node_modules/core-js/internals/inspect-source.js +28 -0
  90. package/dist/ie/es/node_modules/core-js/internals/internal-state.js +89 -0
  91. package/dist/ie/es/node_modules/core-js/internals/is-array-iterator-method.js +23 -0
  92. package/dist/ie/es/node_modules/core-js/internals/is-callable.js +21 -0
  93. package/dist/ie/es/node_modules/core-js/internals/is-constructor.js +68 -0
  94. package/dist/ie/es/node_modules/core-js/internals/is-forced.js +35 -0
  95. package/dist/ie/es/node_modules/core-js/internals/is-null-or-undefined.js +15 -0
  96. package/dist/ie/es/node_modules/core-js/internals/is-object.js +17 -0
  97. package/dist/ie/es/node_modules/core-js/internals/is-possible-prototype.js +17 -0
  98. package/dist/ie/es/node_modules/core-js/internals/is-pure.js +11 -0
  99. package/dist/ie/es/node_modules/core-js/internals/is-symbol.js +28 -0
  100. package/dist/ie/es/node_modules/core-js/internals/iterate.js +89 -0
  101. package/dist/ie/es/node_modules/core-js/internals/iterator-close.js +37 -0
  102. package/dist/ie/es/node_modules/core-js/internals/iterators.js +11 -0
  103. package/dist/ie/es/node_modules/core-js/internals/length-of-array-like.js +19 -0
  104. package/dist/ie/es/node_modules/core-js/internals/make-built-in.js +73 -0
  105. package/dist/ie/es/node_modules/core-js/internals/math-trunc.js +20 -0
  106. package/dist/ie/es/node_modules/core-js/internals/microtask.js +98 -0
  107. package/dist/ie/es/node_modules/core-js/internals/new-promise-capability.js +32 -0
  108. package/dist/ie/es/node_modules/core-js/internals/object-create.js +102 -0
  109. package/dist/ie/es/node_modules/core-js/internals/object-define-properties.js +37 -0
  110. package/dist/ie/es/node_modules/core-js/internals/object-define-property.js +59 -0
  111. package/dist/ie/es/node_modules/core-js/internals/object-get-own-property-descriptor.js +41 -0
  112. package/dist/ie/es/node_modules/core-js/internals/object-get-own-property-names.js +24 -0
  113. package/dist/ie/es/node_modules/core-js/internals/object-get-own-property-symbols.js +13 -0
  114. package/dist/ie/es/node_modules/core-js/internals/object-is-prototype-of.js +15 -0
  115. package/dist/ie/es/node_modules/core-js/internals/object-keys-internal.js +36 -0
  116. package/dist/ie/es/node_modules/core-js/internals/object-keys.js +22 -0
  117. package/dist/ie/es/node_modules/core-js/internals/object-property-is-enumerable.js +24 -0
  118. package/dist/ie/es/node_modules/core-js/internals/object-set-prototype-of.js +43 -0
  119. package/dist/ie/es/node_modules/core-js/internals/ordinary-to-primitive.js +29 -0
  120. package/dist/ie/es/node_modules/core-js/internals/own-keys.js +30 -0
  121. package/dist/ie/es/node_modules/core-js/internals/perform.js +17 -0
  122. package/dist/ie/es/node_modules/core-js/internals/promise-constructor-detection.js +66 -0
  123. package/dist/ie/es/node_modules/core-js/internals/promise-native-constructor.js +15 -0
  124. package/dist/ie/es/node_modules/core-js/internals/promise-resolve.js +26 -0
  125. package/dist/ie/es/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +21 -0
  126. package/dist/ie/es/node_modules/core-js/internals/queue.js +34 -0
  127. package/dist/ie/es/node_modules/core-js/internals/require-object-coercible.js +22 -0
  128. package/dist/ie/es/node_modules/core-js/internals/safe-get-built-in.js +25 -0
  129. package/dist/ie/es/node_modules/core-js/internals/set-species.js +32 -0
  130. package/dist/ie/es/node_modules/core-js/internals/set-to-string-tag.js +26 -0
  131. package/dist/ie/es/node_modules/core-js/internals/shared-key.js +21 -0
  132. package/dist/ie/es/node_modules/core-js/internals/shared-store.js +28 -0
  133. package/dist/ie/es/node_modules/core-js/internals/shared.js +17 -0
  134. package/dist/ie/es/node_modules/core-js/internals/species-constructor.js +29 -0
  135. package/dist/ie/es/node_modules/core-js/internals/symbol-constructor-detection.js +32 -0
  136. package/dist/ie/es/node_modules/core-js/internals/task.js +139 -0
  137. package/dist/ie/es/node_modules/core-js/internals/to-absolute-index.js +24 -0
  138. package/dist/ie/es/node_modules/core-js/internals/to-indexed-object.js +20 -0
  139. package/dist/ie/es/node_modules/core-js/internals/to-integer-or-infinity.js +21 -0
  140. package/dist/ie/es/node_modules/core-js/internals/to-length.js +22 -0
  141. package/dist/ie/es/node_modules/core-js/internals/to-object.js +21 -0
  142. package/dist/ie/es/node_modules/core-js/internals/to-primitive.js +42 -0
  143. package/dist/ie/es/node_modules/core-js/internals/to-property-key.js +22 -0
  144. package/dist/ie/es/node_modules/core-js/internals/to-string-tag-support.js +20 -0
  145. package/dist/ie/es/node_modules/core-js/internals/try-to-string.js +19 -0
  146. package/dist/ie/es/node_modules/core-js/internals/uid.js +21 -0
  147. package/dist/ie/es/node_modules/core-js/internals/use-symbol-as-uid.js +18 -0
  148. package/dist/ie/es/node_modules/core-js/internals/v8-prototype-define-bug.js +25 -0
  149. package/dist/ie/es/node_modules/core-js/internals/validate-arguments-length.js +16 -0
  150. package/dist/ie/es/node_modules/core-js/internals/weak-map-basic-detection.js +19 -0
  151. package/dist/ie/es/node_modules/core-js/internals/well-known-symbol.js +35 -0
  152. package/dist/ie/es/node_modules/core-js/modules/es.array.fill.js +26 -0
  153. package/dist/ie/es/node_modules/core-js/modules/es.array.from.js +28 -0
  154. package/dist/ie/es/node_modules/core-js/modules/es.array.includes.js +36 -0
  155. package/dist/ie/es/node_modules/core-js/modules/es.promise.all.js +56 -0
  156. package/dist/ie/es/node_modules/core-js/modules/es.promise.catch.js +43 -0
  157. package/dist/ie/es/node_modules/core-js/modules/es.promise.constructor.js +323 -0
  158. package/dist/ie/es/node_modules/core-js/modules/es.promise.js +24 -0
  159. package/dist/ie/es/node_modules/core-js/modules/es.promise.race.js +43 -0
  160. package/dist/ie/es/node_modules/core-js/modules/es.promise.reject.js +28 -0
  161. package/dist/ie/es/node_modules/core-js/modules/es.promise.resolve.js +34 -0
  162. package/dist/ie/es/node_modules/tslib/tslib.es6.js +86 -0
  163. package/dist/ie/es/node_modules/whatwg-fetch/fetch.js +643 -0
  164. package/dist/ie/es/src/core/blind.js +82 -0
  165. package/dist/ie/es/src/core/canvas.js +292 -0
  166. package/dist/ie/es/src/core/image.js +63 -0
  167. package/dist/ie/es/src/core/layout/grid.js +36 -0
  168. package/dist/ie/es/src/core/layout/index.js +25 -0
  169. package/dist/ie/es/src/core/watermark.js +248 -0
  170. package/dist/ie/es/src/index.ie.js +9 -0
  171. package/dist/ie/es/src/utils/index.js +199 -0
  172. package/dist/ie/es/src/utils/initialization.js +284 -0
  173. package/dist/ie/es/src/utils/polyfill.js +5 -0
  174. package/dist/ie/es/src/utils/protection.js +13 -0
  175. package/dist/ie/es/style.css +1 -0
  176. package/dist/ie/index.cjs.js +3 -37
  177. package/dist/ie/index.cjs.js.map +1 -1
  178. package/dist/ie/index.cjs.min.js +1 -1
  179. package/dist/ie/index.esm.js +3 -37
  180. package/dist/ie/index.esm.js.map +1 -1
  181. package/dist/ie/index.esm.min.js +1 -1
  182. package/dist/ie/index.iife.js +3 -37
  183. package/dist/ie/index.iife.js.map +1 -1
  184. package/dist/ie/index.iife.min.js +1 -1
  185. package/dist/ie/index.umd.js +3 -37
  186. package/dist/ie/index.umd.js.map +1 -1
  187. package/dist/ie/index.umd.min.js +1 -1
  188. package/dist/index.cjs.js +1 -35
  189. package/dist/index.cjs.js.map +1 -1
  190. package/dist/index.cjs.min.js +1 -1
  191. package/dist/index.esm.js +1 -35
  192. package/dist/index.esm.js.map +1 -1
  193. package/dist/index.esm.min.js +1 -1
  194. package/dist/index.iife.js +1 -35
  195. package/dist/index.iife.js.map +1 -1
  196. package/dist/index.iife.min.js +1 -1
  197. package/dist/index.umd.js +1 -35
  198. package/dist/index.umd.js.map +1 -1
  199. package/dist/index.umd.min.js +1 -1
  200. package/dist/types/core/watermark.d.ts +0 -4
  201. package/dist/types/style/index.d.ts +1 -1
  202. package/package.json +41 -22
@@ -0,0 +1,89 @@
1
+ import { __require as requireWeakMapBasicDetection } from './weak-map-basic-detection.js';
2
+ import { __require as requireGlobalThis } from './global-this.js';
3
+ import { __require as requireIsObject } from './is-object.js';
4
+ import { __require as requireCreateNonEnumerableProperty } from './create-non-enumerable-property.js';
5
+ import { __require as requireHasOwnProperty } from './has-own-property.js';
6
+ import { __require as requireSharedStore } from './shared-store.js';
7
+ import { __require as requireSharedKey } from './shared-key.js';
8
+ import { __require as requireHiddenKeys } from './hidden-keys.js';
9
+
10
+ var internalState;
11
+ var hasRequiredInternalState;
12
+
13
+ function requireInternalState () {
14
+ if (hasRequiredInternalState) return internalState;
15
+ hasRequiredInternalState = 1;
16
+ var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
17
+ var globalThis = requireGlobalThis();
18
+ var isObject = requireIsObject();
19
+ var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
20
+ var hasOwn = requireHasOwnProperty();
21
+ var shared = requireSharedStore();
22
+ var sharedKey = requireSharedKey();
23
+ var hiddenKeys = requireHiddenKeys();
24
+
25
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
26
+ var TypeError = globalThis.TypeError;
27
+ var WeakMap = globalThis.WeakMap;
28
+ var set, get, has;
29
+
30
+ var enforce = function (it) {
31
+ return has(it) ? get(it) : set(it, {});
32
+ };
33
+
34
+ var getterFor = function (TYPE) {
35
+ return function (it) {
36
+ var state;
37
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
38
+ throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
39
+ } return state;
40
+ };
41
+ };
42
+
43
+ if (NATIVE_WEAK_MAP || shared.state) {
44
+ var store = shared.state || (shared.state = new WeakMap());
45
+ /* eslint-disable no-self-assign -- prototype methods protection */
46
+ store.get = store.get;
47
+ store.has = store.has;
48
+ store.set = store.set;
49
+ /* eslint-enable no-self-assign -- prototype methods protection */
50
+ set = function (it, metadata) {
51
+ if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
52
+ metadata.facade = it;
53
+ store.set(it, metadata);
54
+ return metadata;
55
+ };
56
+ get = function (it) {
57
+ return store.get(it) || {};
58
+ };
59
+ has = function (it) {
60
+ return store.has(it);
61
+ };
62
+ } else {
63
+ var STATE = sharedKey('state');
64
+ hiddenKeys[STATE] = true;
65
+ set = function (it, metadata) {
66
+ if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
67
+ metadata.facade = it;
68
+ createNonEnumerableProperty(it, STATE, metadata);
69
+ return metadata;
70
+ };
71
+ get = function (it) {
72
+ return hasOwn(it, STATE) ? it[STATE] : {};
73
+ };
74
+ has = function (it) {
75
+ return hasOwn(it, STATE);
76
+ };
77
+ }
78
+
79
+ internalState = {
80
+ set: set,
81
+ get: get,
82
+ has: has,
83
+ enforce: enforce,
84
+ getterFor: getterFor
85
+ };
86
+ return internalState;
87
+ }
88
+
89
+ export { requireInternalState as __require };
@@ -0,0 +1,23 @@
1
+ import { __require as requireWellKnownSymbol } from './well-known-symbol.js';
2
+ import { __require as requireIterators } from './iterators.js';
3
+
4
+ var isArrayIteratorMethod;
5
+ var hasRequiredIsArrayIteratorMethod;
6
+
7
+ function requireIsArrayIteratorMethod () {
8
+ if (hasRequiredIsArrayIteratorMethod) return isArrayIteratorMethod;
9
+ hasRequiredIsArrayIteratorMethod = 1;
10
+ var wellKnownSymbol = requireWellKnownSymbol();
11
+ var Iterators = requireIterators();
12
+
13
+ var ITERATOR = wellKnownSymbol('iterator');
14
+ var ArrayPrototype = Array.prototype;
15
+
16
+ // check on default Array iterator
17
+ isArrayIteratorMethod = function (it) {
18
+ return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
19
+ };
20
+ return isArrayIteratorMethod;
21
+ }
22
+
23
+ export { requireIsArrayIteratorMethod as __require };
@@ -0,0 +1,21 @@
1
+ var isCallable;
2
+ var hasRequiredIsCallable;
3
+
4
+ function requireIsCallable () {
5
+ if (hasRequiredIsCallable) return isCallable;
6
+ hasRequiredIsCallable = 1;
7
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
8
+ var documentAll = typeof document == 'object' && document.all;
9
+
10
+ // `IsCallable` abstract operation
11
+ // https://tc39.es/ecma262/#sec-iscallable
12
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
13
+ isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
14
+ return typeof argument == 'function' || argument === documentAll;
15
+ } : function (argument) {
16
+ return typeof argument == 'function';
17
+ };
18
+ return isCallable;
19
+ }
20
+
21
+ export { requireIsCallable as __require };
@@ -0,0 +1,68 @@
1
+ import { __require as requireFunctionUncurryThis } from './function-uncurry-this.js';
2
+ import { __require as requireFails } from './fails.js';
3
+ import { __require as requireIsCallable } from './is-callable.js';
4
+ import { __require as requireClassof } from './classof.js';
5
+ import { __require as requireGetBuiltIn } from './get-built-in.js';
6
+ import { __require as requireInspectSource } from './inspect-source.js';
7
+
8
+ var isConstructor;
9
+ var hasRequiredIsConstructor;
10
+
11
+ function requireIsConstructor () {
12
+ if (hasRequiredIsConstructor) return isConstructor;
13
+ hasRequiredIsConstructor = 1;
14
+ var uncurryThis = requireFunctionUncurryThis();
15
+ var fails = requireFails();
16
+ var isCallable = requireIsCallable();
17
+ var classof = requireClassof();
18
+ var getBuiltIn = requireGetBuiltIn();
19
+ var inspectSource = requireInspectSource();
20
+
21
+ var noop = function () { /* empty */ };
22
+ var construct = getBuiltIn('Reflect', 'construct');
23
+ var constructorRegExp = /^\s*(?:class|function)\b/;
24
+ var exec = uncurryThis(constructorRegExp.exec);
25
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
26
+
27
+ var isConstructorModern = function isConstructor(argument) {
28
+ if (!isCallable(argument)) return false;
29
+ try {
30
+ construct(noop, [], argument);
31
+ return true;
32
+ } catch (error) {
33
+ return false;
34
+ }
35
+ };
36
+
37
+ var isConstructorLegacy = function isConstructor(argument) {
38
+ if (!isCallable(argument)) return false;
39
+ switch (classof(argument)) {
40
+ case 'AsyncFunction':
41
+ case 'GeneratorFunction':
42
+ case 'AsyncGeneratorFunction': return false;
43
+ }
44
+ try {
45
+ // we can't check .prototype since constructors produced by .bind haven't it
46
+ // `Function#toString` throws on some built-it function in some legacy engines
47
+ // (for example, `DOMQuad` and similar in FF41-)
48
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
49
+ } catch (error) {
50
+ return true;
51
+ }
52
+ };
53
+
54
+ isConstructorLegacy.sham = true;
55
+
56
+ // `IsConstructor` abstract operation
57
+ // https://tc39.es/ecma262/#sec-isconstructor
58
+ isConstructor = !construct || fails(function () {
59
+ var called;
60
+ return isConstructorModern(isConstructorModern.call)
61
+ || !isConstructorModern(Object)
62
+ || !isConstructorModern(function () { called = true; })
63
+ || called;
64
+ }) ? isConstructorLegacy : isConstructorModern;
65
+ return isConstructor;
66
+ }
67
+
68
+ export { requireIsConstructor as __require };
@@ -0,0 +1,35 @@
1
+ import { __require as requireFails } from './fails.js';
2
+ import { __require as requireIsCallable } from './is-callable.js';
3
+
4
+ var isForced_1;
5
+ var hasRequiredIsForced;
6
+
7
+ function requireIsForced () {
8
+ if (hasRequiredIsForced) return isForced_1;
9
+ hasRequiredIsForced = 1;
10
+ var fails = requireFails();
11
+ var isCallable = requireIsCallable();
12
+
13
+ var replacement = /#|\.prototype\./;
14
+
15
+ var isForced = function (feature, detection) {
16
+ var value = data[normalize(feature)];
17
+ return value === POLYFILL ? true
18
+ : value === NATIVE ? false
19
+ : isCallable(detection) ? fails(detection)
20
+ : !!detection;
21
+ };
22
+
23
+ var normalize = isForced.normalize = function (string) {
24
+ return String(string).replace(replacement, '.').toLowerCase();
25
+ };
26
+
27
+ var data = isForced.data = {};
28
+ var NATIVE = isForced.NATIVE = 'N';
29
+ var POLYFILL = isForced.POLYFILL = 'P';
30
+
31
+ isForced_1 = isForced;
32
+ return isForced_1;
33
+ }
34
+
35
+ export { requireIsForced as __require };
@@ -0,0 +1,15 @@
1
+ var isNullOrUndefined;
2
+ var hasRequiredIsNullOrUndefined;
3
+
4
+ function requireIsNullOrUndefined () {
5
+ if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
6
+ hasRequiredIsNullOrUndefined = 1;
7
+ // we can't use just `it == null` since of `document.all` special case
8
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
9
+ isNullOrUndefined = function (it) {
10
+ return it === null || it === undefined;
11
+ };
12
+ return isNullOrUndefined;
13
+ }
14
+
15
+ export { requireIsNullOrUndefined as __require };
@@ -0,0 +1,17 @@
1
+ import { __require as requireIsCallable } from './is-callable.js';
2
+
3
+ var isObject;
4
+ var hasRequiredIsObject;
5
+
6
+ function requireIsObject () {
7
+ if (hasRequiredIsObject) return isObject;
8
+ hasRequiredIsObject = 1;
9
+ var isCallable = requireIsCallable();
10
+
11
+ isObject = function (it) {
12
+ return typeof it == 'object' ? it !== null : isCallable(it);
13
+ };
14
+ return isObject;
15
+ }
16
+
17
+ export { requireIsObject as __require };
@@ -0,0 +1,17 @@
1
+ import { __require as requireIsObject } from './is-object.js';
2
+
3
+ var isPossiblePrototype;
4
+ var hasRequiredIsPossiblePrototype;
5
+
6
+ function requireIsPossiblePrototype () {
7
+ if (hasRequiredIsPossiblePrototype) return isPossiblePrototype;
8
+ hasRequiredIsPossiblePrototype = 1;
9
+ var isObject = requireIsObject();
10
+
11
+ isPossiblePrototype = function (argument) {
12
+ return isObject(argument) || argument === null;
13
+ };
14
+ return isPossiblePrototype;
15
+ }
16
+
17
+ export { requireIsPossiblePrototype as __require };
@@ -0,0 +1,11 @@
1
+ var isPure;
2
+ var hasRequiredIsPure;
3
+
4
+ function requireIsPure () {
5
+ if (hasRequiredIsPure) return isPure;
6
+ hasRequiredIsPure = 1;
7
+ isPure = false;
8
+ return isPure;
9
+ }
10
+
11
+ export { requireIsPure as __require };
@@ -0,0 +1,28 @@
1
+ import { __require as requireGetBuiltIn } from './get-built-in.js';
2
+ import { __require as requireIsCallable } from './is-callable.js';
3
+ import { __require as requireObjectIsPrototypeOf } from './object-is-prototype-of.js';
4
+ import { __require as requireUseSymbolAsUid } from './use-symbol-as-uid.js';
5
+
6
+ var isSymbol;
7
+ var hasRequiredIsSymbol;
8
+
9
+ function requireIsSymbol () {
10
+ if (hasRequiredIsSymbol) return isSymbol;
11
+ hasRequiredIsSymbol = 1;
12
+ var getBuiltIn = requireGetBuiltIn();
13
+ var isCallable = requireIsCallable();
14
+ var isPrototypeOf = requireObjectIsPrototypeOf();
15
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
16
+
17
+ var $Object = Object;
18
+
19
+ isSymbol = USE_SYMBOL_AS_UID ? function (it) {
20
+ return typeof it == 'symbol';
21
+ } : function (it) {
22
+ var $Symbol = getBuiltIn('Symbol');
23
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
24
+ };
25
+ return isSymbol;
26
+ }
27
+
28
+ export { requireIsSymbol as __require };
@@ -0,0 +1,89 @@
1
+ import { __require as requireFunctionBindContext } from './function-bind-context.js';
2
+ import { __require as requireFunctionCall } from './function-call.js';
3
+ import { __require as requireAnObject } from './an-object.js';
4
+ import { __require as requireTryToString } from './try-to-string.js';
5
+ import { __require as requireIsArrayIteratorMethod } from './is-array-iterator-method.js';
6
+ import { __require as requireLengthOfArrayLike } from './length-of-array-like.js';
7
+ import { __require as requireObjectIsPrototypeOf } from './object-is-prototype-of.js';
8
+ import { __require as requireGetIterator } from './get-iterator.js';
9
+ import { __require as requireGetIteratorMethod } from './get-iterator-method.js';
10
+ import { __require as requireIteratorClose } from './iterator-close.js';
11
+
12
+ var iterate;
13
+ var hasRequiredIterate;
14
+
15
+ function requireIterate () {
16
+ if (hasRequiredIterate) return iterate;
17
+ hasRequiredIterate = 1;
18
+ var bind = requireFunctionBindContext();
19
+ var call = requireFunctionCall();
20
+ var anObject = requireAnObject();
21
+ var tryToString = requireTryToString();
22
+ var isArrayIteratorMethod = requireIsArrayIteratorMethod();
23
+ var lengthOfArrayLike = requireLengthOfArrayLike();
24
+ var isPrototypeOf = requireObjectIsPrototypeOf();
25
+ var getIterator = requireGetIterator();
26
+ var getIteratorMethod = requireGetIteratorMethod();
27
+ var iteratorClose = requireIteratorClose();
28
+
29
+ var $TypeError = TypeError;
30
+
31
+ var Result = function (stopped, result) {
32
+ this.stopped = stopped;
33
+ this.result = result;
34
+ };
35
+
36
+ var ResultPrototype = Result.prototype;
37
+
38
+ iterate = function (iterable, unboundFunction, options) {
39
+ var that = options && options.that;
40
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
41
+ var IS_RECORD = !!(options && options.IS_RECORD);
42
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
43
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
44
+ var fn = bind(unboundFunction, that);
45
+ var iterator, iterFn, index, length, result, next, step;
46
+
47
+ var stop = function (condition) {
48
+ if (iterator) iteratorClose(iterator, 'normal', condition);
49
+ return new Result(true, condition);
50
+ };
51
+
52
+ var callFn = function (value) {
53
+ if (AS_ENTRIES) {
54
+ anObject(value);
55
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
56
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
57
+ };
58
+
59
+ if (IS_RECORD) {
60
+ iterator = iterable.iterator;
61
+ } else if (IS_ITERATOR) {
62
+ iterator = iterable;
63
+ } else {
64
+ iterFn = getIteratorMethod(iterable);
65
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
66
+ // optimisation for array iterators
67
+ if (isArrayIteratorMethod(iterFn)) {
68
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
69
+ result = callFn(iterable[index]);
70
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
71
+ } return new Result(false);
72
+ }
73
+ iterator = getIterator(iterable, iterFn);
74
+ }
75
+
76
+ next = IS_RECORD ? iterable.next : iterator.next;
77
+ while (!(step = call(next, iterator)).done) {
78
+ try {
79
+ result = callFn(step.value);
80
+ } catch (error) {
81
+ iteratorClose(iterator, 'throw', error);
82
+ }
83
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
84
+ } return new Result(false);
85
+ };
86
+ return iterate;
87
+ }
88
+
89
+ export { requireIterate as __require };
@@ -0,0 +1,37 @@
1
+ import { __require as requireFunctionCall } from './function-call.js';
2
+ import { __require as requireAnObject } from './an-object.js';
3
+ import { __require as requireGetMethod } from './get-method.js';
4
+
5
+ var iteratorClose;
6
+ var hasRequiredIteratorClose;
7
+
8
+ function requireIteratorClose () {
9
+ if (hasRequiredIteratorClose) return iteratorClose;
10
+ hasRequiredIteratorClose = 1;
11
+ var call = requireFunctionCall();
12
+ var anObject = requireAnObject();
13
+ var getMethod = requireGetMethod();
14
+
15
+ iteratorClose = function (iterator, kind, value) {
16
+ var innerResult, innerError;
17
+ anObject(iterator);
18
+ try {
19
+ innerResult = getMethod(iterator, 'return');
20
+ if (!innerResult) {
21
+ if (kind === 'throw') throw value;
22
+ return value;
23
+ }
24
+ innerResult = call(innerResult, iterator);
25
+ } catch (error) {
26
+ innerError = true;
27
+ innerResult = error;
28
+ }
29
+ if (kind === 'throw') throw value;
30
+ if (innerError) throw innerResult;
31
+ anObject(innerResult);
32
+ return value;
33
+ };
34
+ return iteratorClose;
35
+ }
36
+
37
+ export { requireIteratorClose as __require };
@@ -0,0 +1,11 @@
1
+ var iterators;
2
+ var hasRequiredIterators;
3
+
4
+ function requireIterators () {
5
+ if (hasRequiredIterators) return iterators;
6
+ hasRequiredIterators = 1;
7
+ iterators = {};
8
+ return iterators;
9
+ }
10
+
11
+ export { requireIterators as __require };
@@ -0,0 +1,19 @@
1
+ import { __require as requireToLength } from './to-length.js';
2
+
3
+ var lengthOfArrayLike;
4
+ var hasRequiredLengthOfArrayLike;
5
+
6
+ function requireLengthOfArrayLike () {
7
+ if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
8
+ hasRequiredLengthOfArrayLike = 1;
9
+ var toLength = requireToLength();
10
+
11
+ // `LengthOfArrayLike` abstract operation
12
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
13
+ lengthOfArrayLike = function (obj) {
14
+ return toLength(obj.length);
15
+ };
16
+ return lengthOfArrayLike;
17
+ }
18
+
19
+ export { requireLengthOfArrayLike as __require };
@@ -0,0 +1,73 @@
1
+ import { __module as makeBuiltIn } from '../../../_virtual/make-built-in.js';
2
+ import { __require as requireFunctionUncurryThis } from './function-uncurry-this.js';
3
+ import { __require as requireFails } from './fails.js';
4
+ import { __require as requireIsCallable } from './is-callable.js';
5
+ import { __require as requireHasOwnProperty } from './has-own-property.js';
6
+ import { __require as requireDescriptors } from './descriptors.js';
7
+ import { __require as requireFunctionName } from './function-name.js';
8
+ import { __require as requireInspectSource } from './inspect-source.js';
9
+ import { __require as requireInternalState } from './internal-state.js';
10
+
11
+ var hasRequiredMakeBuiltIn;
12
+
13
+ function requireMakeBuiltIn () {
14
+ if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
15
+ hasRequiredMakeBuiltIn = 1;
16
+ var uncurryThis = requireFunctionUncurryThis();
17
+ var fails = requireFails();
18
+ var isCallable = requireIsCallable();
19
+ var hasOwn = requireHasOwnProperty();
20
+ var DESCRIPTORS = requireDescriptors();
21
+ var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
22
+ var inspectSource = requireInspectSource();
23
+ var InternalStateModule = requireInternalState();
24
+
25
+ var enforceInternalState = InternalStateModule.enforce;
26
+ var getInternalState = InternalStateModule.get;
27
+ var $String = String;
28
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
29
+ var defineProperty = Object.defineProperty;
30
+ var stringSlice = uncurryThis(''.slice);
31
+ var replace = uncurryThis(''.replace);
32
+ var join = uncurryThis([].join);
33
+
34
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
35
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
36
+ });
37
+
38
+ var TEMPLATE = String(String).split('String');
39
+
40
+ var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
41
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
42
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
43
+ }
44
+ if (options && options.getter) name = 'get ' + name;
45
+ if (options && options.setter) name = 'set ' + name;
46
+ if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
47
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
48
+ else value.name = name;
49
+ }
50
+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
51
+ defineProperty(value, 'length', { value: options.arity });
52
+ }
53
+ try {
54
+ if (options && hasOwn(options, 'constructor') && options.constructor) {
55
+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
56
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
57
+ } else if (value.prototype) value.prototype = undefined;
58
+ } catch (error) { /* empty */ }
59
+ var state = enforceInternalState(value);
60
+ if (!hasOwn(state, 'source')) {
61
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
62
+ } return value;
63
+ };
64
+
65
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
66
+ // eslint-disable-next-line no-extend-native -- required
67
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
68
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
69
+ }, 'toString');
70
+ return makeBuiltIn.exports;
71
+ }
72
+
73
+ export { requireMakeBuiltIn as __require };
@@ -0,0 +1,20 @@
1
+ var mathTrunc;
2
+ var hasRequiredMathTrunc;
3
+
4
+ function requireMathTrunc () {
5
+ if (hasRequiredMathTrunc) return mathTrunc;
6
+ hasRequiredMathTrunc = 1;
7
+ var ceil = Math.ceil;
8
+ var floor = Math.floor;
9
+
10
+ // `Math.trunc` method
11
+ // https://tc39.es/ecma262/#sec-math.trunc
12
+ // eslint-disable-next-line es/no-math-trunc -- safe
13
+ mathTrunc = Math.trunc || function trunc(x) {
14
+ var n = +x;
15
+ return (n > 0 ? floor : ceil)(n);
16
+ };
17
+ return mathTrunc;
18
+ }
19
+
20
+ export { requireMathTrunc as __require };