umwd-components 0.1.827 → 0.1.828

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 (440) hide show
  1. package/dist/cjs/node_modules/object-assign/index.js +2 -2
  2. package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  3. package/dist/cjs/node_modules/prop-types/index.js +1 -1
  4. package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  5. package/dist/cjs/node_modules/safe-buffer/index.js +1 -1
  6. package/dist/cjs/src/components/e-commerce/products/EditReturnStockForm.js +1 -1
  7. package/dist/cjs/src/components/logistics/report/ReportMakingComponent.js +1 -1
  8. package/dist/cjs/src/components/logistics/vendor/EditVendorForm.js +1 -1
  9. package/dist/cjs/src/data/actions/logistics/note/createNoteAction.js +1 -1
  10. package/dist/cjs/src/data/actions/logistics/report/createReportAction.js +1 -1
  11. package/dist/cjs/src/index.js +1 -1
  12. package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
  13. package/dist/esm/_virtual/index2.js +2 -2
  14. package/dist/esm/_virtual/index3.js +2 -2
  15. package/dist/esm/_virtual/index4.js +2 -2
  16. package/dist/esm/node_modules/object-assign/index.js +74 -69
  17. package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +2 -2
  18. package/dist/esm/node_modules/prop-types/index.js +1 -1
  19. package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  20. package/dist/esm/node_modules/safe-buffer/index.js +1 -1
  21. package/dist/esm/src/components/e-commerce/products/EditReturnStockForm.js +11 -22
  22. package/dist/esm/src/components/logistics/report/ReportMakingComponent.js +0 -1
  23. package/dist/esm/src/components/logistics/vendor/EditVendorForm.js +0 -1
  24. package/dist/esm/src/data/actions/logistics/note/createNoteAction.js +0 -2
  25. package/dist/esm/src/data/actions/logistics/report/createReportAction.js +0 -2
  26. package/dist/esm/src/index.js +0 -1
  27. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  28. package/dist/esm/types/data/actions/e-commerce/lead/contactFormAction.d.ts +1 -0
  29. package/dist/esm/types/index.d.ts +0 -3
  30. package/package.json +1 -1
  31. package/dist/cjs/_virtual/_commonjs-dynamic-modules.js +0 -6
  32. package/dist/cjs/_virtual/aes.js +0 -6
  33. package/dist/cjs/_virtual/b64.js +0 -6
  34. package/dist/cjs/_virtual/blowfish.js +0 -6
  35. package/dist/cjs/_virtual/cipher-core.js +0 -6
  36. package/dist/cjs/_virtual/clone.js +0 -6
  37. package/dist/cjs/_virtual/common.js +0 -6
  38. package/dist/cjs/_virtual/context.js +0 -6
  39. package/dist/cjs/_virtual/core2.js +0 -6
  40. package/dist/cjs/_virtual/decode.js +0 -6
  41. package/dist/cjs/_virtual/deflate.js +0 -6
  42. package/dist/cjs/_virtual/dictionary-browser.js +0 -6
  43. package/dist/cjs/_virtual/dictionary.js +0 -6
  44. package/dist/cjs/_virtual/en-us.js +0 -6
  45. package/dist/cjs/_virtual/enc-base64.js +0 -6
  46. package/dist/cjs/_virtual/enc-base64url.js +0 -6
  47. package/dist/cjs/_virtual/enc-utf16.js +0 -6
  48. package/dist/cjs/_virtual/events.js +0 -6
  49. package/dist/cjs/_virtual/evpkdf.js +0 -6
  50. package/dist/cjs/_virtual/format-hex.js +0 -6
  51. package/dist/cjs/_virtual/hmac.js +0 -6
  52. package/dist/cjs/_virtual/huffman.js +0 -6
  53. package/dist/cjs/_virtual/hyphen.js +0 -6
  54. package/dist/cjs/_virtual/index10.js +0 -6
  55. package/dist/cjs/_virtual/index5.js +0 -6
  56. package/dist/cjs/_virtual/index6.js +0 -6
  57. package/dist/cjs/_virtual/index7.js +0 -6
  58. package/dist/cjs/_virtual/index8.js +0 -6
  59. package/dist/cjs/_virtual/index9.js +0 -6
  60. package/dist/cjs/_virtual/inflate.js +0 -6
  61. package/dist/cjs/_virtual/inherits_browser.js +0 -6
  62. package/dist/cjs/_virtual/lib-typedarrays.js +0 -6
  63. package/dist/cjs/_virtual/md5.js +0 -6
  64. package/dist/cjs/_virtual/mode-cfb.js +0 -6
  65. package/dist/cjs/_virtual/mode-ctr-gladman.js +0 -6
  66. package/dist/cjs/_virtual/mode-ctr.js +0 -6
  67. package/dist/cjs/_virtual/mode-ecb.js +0 -6
  68. package/dist/cjs/_virtual/mode-ofb.js +0 -6
  69. package/dist/cjs/_virtual/pad-ansix923.js +0 -6
  70. package/dist/cjs/_virtual/pad-iso10126.js +0 -6
  71. package/dist/cjs/_virtual/pad-iso97971.js +0 -6
  72. package/dist/cjs/_virtual/pad-nopadding.js +0 -6
  73. package/dist/cjs/_virtual/pad-zeropadding.js +0 -6
  74. package/dist/cjs/_virtual/pbkdf2.js +0 -6
  75. package/dist/cjs/_virtual/prefix.js +0 -6
  76. package/dist/cjs/_virtual/rabbit-legacy.js +0 -6
  77. package/dist/cjs/_virtual/rabbit.js +0 -6
  78. package/dist/cjs/_virtual/rc4.js +0 -6
  79. package/dist/cjs/_virtual/ripemd160.js +0 -6
  80. package/dist/cjs/_virtual/scheduler.development.js +0 -6
  81. package/dist/cjs/_virtual/scheduler.production.js +0 -6
  82. package/dist/cjs/_virtual/sha1.js +0 -6
  83. package/dist/cjs/_virtual/sha224.js +0 -6
  84. package/dist/cjs/_virtual/sha256.js +0 -6
  85. package/dist/cjs/_virtual/sha3.js +0 -6
  86. package/dist/cjs/_virtual/sha384.js +0 -6
  87. package/dist/cjs/_virtual/sha512.js +0 -6
  88. package/dist/cjs/_virtual/streams.js +0 -6
  89. package/dist/cjs/_virtual/transform.js +0 -6
  90. package/dist/cjs/_virtual/trees.js +0 -6
  91. package/dist/cjs/_virtual/tripledes.js +0 -6
  92. package/dist/cjs/_virtual/x64-core.js +0 -6
  93. package/dist/cjs/node_modules/@react-pdf/fns/lib/index.js +0 -6
  94. package/dist/cjs/node_modules/@react-pdf/font/lib/index.browser.js +0 -6
  95. package/dist/cjs/node_modules/@react-pdf/image/lib/index.browser.js +0 -6
  96. package/dist/cjs/node_modules/@react-pdf/layout/lib/index.js +0 -6
  97. package/dist/cjs/node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.js +0 -6
  98. package/dist/cjs/node_modules/@react-pdf/png-js/lib/png-js.browser.js +0 -6
  99. package/dist/cjs/node_modules/@react-pdf/primitives/lib/index.js +0 -6
  100. package/dist/cjs/node_modules/@react-pdf/reconciler/lib/index.js +0 -6
  101. package/dist/cjs/node_modules/@react-pdf/reconciler/lib/reconciler-23.js +0 -14
  102. package/dist/cjs/node_modules/@react-pdf/reconciler/lib/reconciler-31.js +0 -26
  103. package/dist/cjs/node_modules/@react-pdf/render/lib/index.js +0 -6
  104. package/dist/cjs/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js +0 -6
  105. package/dist/cjs/node_modules/@react-pdf/stylesheet/lib/index.js +0 -6
  106. package/dist/cjs/node_modules/@react-pdf/textkit/lib/textkit.js +0 -13
  107. package/dist/cjs/node_modules/@swc/helpers/esm/_define_property.js +0 -6
  108. package/dist/cjs/node_modules/abs-svg-path/index.js +0 -6
  109. package/dist/cjs/node_modules/base64-js/index.js +0 -6
  110. package/dist/cjs/node_modules/bidi-js/dist/bidi.js +0 -6
  111. package/dist/cjs/node_modules/brotli/dec/bit_reader.js +0 -6
  112. package/dist/cjs/node_modules/brotli/dec/context.js +0 -6
  113. package/dist/cjs/node_modules/brotli/dec/decode.js +0 -6
  114. package/dist/cjs/node_modules/brotli/dec/dictionary-browser.js +0 -6
  115. package/dist/cjs/node_modules/brotli/dec/dictionary.bin.js +0 -6
  116. package/dist/cjs/node_modules/brotli/dec/dictionary.js +0 -6
  117. package/dist/cjs/node_modules/brotli/dec/huffman.js +0 -6
  118. package/dist/cjs/node_modules/brotli/dec/prefix.js +0 -6
  119. package/dist/cjs/node_modules/brotli/dec/streams.js +0 -6
  120. package/dist/cjs/node_modules/brotli/dec/transform.js +0 -6
  121. package/dist/cjs/node_modules/brotli/decompress.js +0 -6
  122. package/dist/cjs/node_modules/clone/clone.js +0 -6
  123. package/dist/cjs/node_modules/color-name/index.js +0 -6
  124. package/dist/cjs/node_modules/color-string/index.js +0 -6
  125. package/dist/cjs/node_modules/crypto-js/aes.js +0 -6
  126. package/dist/cjs/node_modules/crypto-js/blowfish.js +0 -6
  127. package/dist/cjs/node_modules/crypto-js/cipher-core.js +0 -6
  128. package/dist/cjs/node_modules/crypto-js/core.js +0 -6
  129. package/dist/cjs/node_modules/crypto-js/enc-base64.js +0 -6
  130. package/dist/cjs/node_modules/crypto-js/enc-base64url.js +0 -6
  131. package/dist/cjs/node_modules/crypto-js/enc-utf16.js +0 -6
  132. package/dist/cjs/node_modules/crypto-js/evpkdf.js +0 -6
  133. package/dist/cjs/node_modules/crypto-js/format-hex.js +0 -6
  134. package/dist/cjs/node_modules/crypto-js/hmac.js +0 -6
  135. package/dist/cjs/node_modules/crypto-js/index.js +0 -6
  136. package/dist/cjs/node_modules/crypto-js/lib-typedarrays.js +0 -6
  137. package/dist/cjs/node_modules/crypto-js/md5.js +0 -6
  138. package/dist/cjs/node_modules/crypto-js/mode-cfb.js +0 -6
  139. package/dist/cjs/node_modules/crypto-js/mode-ctr-gladman.js +0 -12
  140. package/dist/cjs/node_modules/crypto-js/mode-ctr.js +0 -6
  141. package/dist/cjs/node_modules/crypto-js/mode-ecb.js +0 -6
  142. package/dist/cjs/node_modules/crypto-js/mode-ofb.js +0 -6
  143. package/dist/cjs/node_modules/crypto-js/pad-ansix923.js +0 -6
  144. package/dist/cjs/node_modules/crypto-js/pad-iso10126.js +0 -6
  145. package/dist/cjs/node_modules/crypto-js/pad-iso97971.js +0 -6
  146. package/dist/cjs/node_modules/crypto-js/pad-nopadding.js +0 -6
  147. package/dist/cjs/node_modules/crypto-js/pad-zeropadding.js +0 -6
  148. package/dist/cjs/node_modules/crypto-js/pbkdf2.js +0 -6
  149. package/dist/cjs/node_modules/crypto-js/rabbit-legacy.js +0 -6
  150. package/dist/cjs/node_modules/crypto-js/rabbit.js +0 -6
  151. package/dist/cjs/node_modules/crypto-js/rc4.js +0 -6
  152. package/dist/cjs/node_modules/crypto-js/ripemd160.js +0 -17
  153. package/dist/cjs/node_modules/crypto-js/sha1.js +0 -6
  154. package/dist/cjs/node_modules/crypto-js/sha224.js +0 -6
  155. package/dist/cjs/node_modules/crypto-js/sha256.js +0 -6
  156. package/dist/cjs/node_modules/crypto-js/sha3.js +0 -6
  157. package/dist/cjs/node_modules/crypto-js/sha384.js +0 -6
  158. package/dist/cjs/node_modules/crypto-js/sha512.js +0 -6
  159. package/dist/cjs/node_modules/crypto-js/tripledes.js +0 -6
  160. package/dist/cjs/node_modules/crypto-js/x64-core.js +0 -6
  161. package/dist/cjs/node_modules/dfa/index.js +0 -6
  162. package/dist/cjs/node_modules/emoji-regex/index.js +0 -6
  163. package/dist/cjs/node_modules/events/events.js +0 -6
  164. package/dist/cjs/node_modules/fast-deep-equal/index.js +0 -6
  165. package/dist/cjs/node_modules/fontkit/dist/browser-module.js +0 -6
  166. package/dist/cjs/node_modules/hsl-to-hex/index.js +0 -6
  167. package/dist/cjs/node_modules/hsl-to-rgb-for-reals/converter.js +0 -6
  168. package/dist/cjs/node_modules/hyphen/hyphen.js +0 -6
  169. package/dist/cjs/node_modules/hyphen/patterns/en-us.js +0 -6
  170. package/dist/cjs/node_modules/inherits/inherits_browser.js +0 -6
  171. package/dist/cjs/node_modules/jay-peg/src/index.js +0 -6
  172. package/dist/cjs/node_modules/jay-peg/src/markers/dac.js +0 -6
  173. package/dist/cjs/node_modules/jay-peg/src/markers/dht.js +0 -6
  174. package/dist/cjs/node_modules/jay-peg/src/markers/dqt.js +0 -6
  175. package/dist/cjs/node_modules/jay-peg/src/markers/dri.js +0 -6
  176. package/dist/cjs/node_modules/jay-peg/src/markers/eoi.js +0 -6
  177. package/dist/cjs/node_modules/jay-peg/src/markers/exif.js +0 -6
  178. package/dist/cjs/node_modules/jay-peg/src/markers/jfif.js +0 -6
  179. package/dist/cjs/node_modules/jay-peg/src/markers/sof.js +0 -6
  180. package/dist/cjs/node_modules/jay-peg/src/markers/soi.js +0 -6
  181. package/dist/cjs/node_modules/jay-peg/src/markers/sos.js +0 -6
  182. package/dist/cjs/node_modules/jay-peg/src/markers/utils.js +0 -6
  183. package/dist/cjs/node_modules/linebreak/dist/module.js +0 -6
  184. package/dist/cjs/node_modules/linebreak/node_modules/base64-js/lib/b64.js +0 -6
  185. package/dist/cjs/node_modules/media-engine/src/index.js +0 -6
  186. package/dist/cjs/node_modules/media-engine/src/operators.js +0 -6
  187. package/dist/cjs/node_modules/media-engine/src/parser.js +0 -6
  188. package/dist/cjs/node_modules/media-engine/src/queries.js +0 -6
  189. package/dist/cjs/node_modules/normalize-svg-path/index.js +0 -6
  190. package/dist/cjs/node_modules/pako/lib/utils/common.js +0 -6
  191. package/dist/cjs/node_modules/pako/lib/zlib/adler32.js +0 -6
  192. package/dist/cjs/node_modules/pako/lib/zlib/constants.js +0 -6
  193. package/dist/cjs/node_modules/pako/lib/zlib/crc32.js +0 -6
  194. package/dist/cjs/node_modules/pako/lib/zlib/deflate.js +0 -6
  195. package/dist/cjs/node_modules/pako/lib/zlib/inffast.js +0 -6
  196. package/dist/cjs/node_modules/pako/lib/zlib/inflate.js +0 -6
  197. package/dist/cjs/node_modules/pako/lib/zlib/inftrees.js +0 -6
  198. package/dist/cjs/node_modules/pako/lib/zlib/messages.js +0 -6
  199. package/dist/cjs/node_modules/pako/lib/zlib/trees.js +0 -6
  200. package/dist/cjs/node_modules/pako/lib/zlib/zstream.js +0 -6
  201. package/dist/cjs/node_modules/parse-svg-path/index.js +0 -6
  202. package/dist/cjs/node_modules/postcss-value-parser/lib/parse.js +0 -6
  203. package/dist/cjs/node_modules/postcss-value-parser/lib/unit.js +0 -6
  204. package/dist/cjs/node_modules/queue/index.js +0 -6
  205. package/dist/cjs/node_modules/restructure/src/Array.js +0 -6
  206. package/dist/cjs/node_modules/restructure/src/Base.js +0 -6
  207. package/dist/cjs/node_modules/restructure/src/Bitfield.js +0 -6
  208. package/dist/cjs/node_modules/restructure/src/Buffer.js +0 -6
  209. package/dist/cjs/node_modules/restructure/src/DecodeStream.js +0 -6
  210. package/dist/cjs/node_modules/restructure/src/EncodeStream.js +0 -6
  211. package/dist/cjs/node_modules/restructure/src/LazyArray.js +0 -6
  212. package/dist/cjs/node_modules/restructure/src/Number.js +0 -6
  213. package/dist/cjs/node_modules/restructure/src/Optional.js +0 -6
  214. package/dist/cjs/node_modules/restructure/src/Pointer.js +0 -6
  215. package/dist/cjs/node_modules/restructure/src/Reserved.js +0 -6
  216. package/dist/cjs/node_modules/restructure/src/String.js +0 -6
  217. package/dist/cjs/node_modules/restructure/src/Struct.js +0 -6
  218. package/dist/cjs/node_modules/restructure/src/VersionedStruct.js +0 -6
  219. package/dist/cjs/node_modules/restructure/src/utils.js +0 -6
  220. package/dist/cjs/node_modules/scheduler/cjs/scheduler.development.js +0 -15
  221. package/dist/cjs/node_modules/scheduler/cjs/scheduler.production.js +0 -15
  222. package/dist/cjs/node_modules/scheduler/index.js +0 -6
  223. package/dist/cjs/node_modules/simple-swizzle/index.js +0 -6
  224. package/dist/cjs/node_modules/simple-swizzle/node_modules/is-arrayish/index.js +0 -6
  225. package/dist/cjs/node_modules/svg-arc-to-cubic-bezier/modules/index.js +0 -6
  226. package/dist/cjs/node_modules/tiny-inflate/index.js +0 -6
  227. package/dist/cjs/node_modules/tslib/tslib.es6.js +0 -6
  228. package/dist/cjs/node_modules/unicode-properties/dist/module.js +0 -6
  229. package/dist/cjs/node_modules/unicode-trie/index.js +0 -6
  230. package/dist/cjs/node_modules/unicode-trie/swap.js +0 -6
  231. package/dist/cjs/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js +0 -6
  232. package/dist/cjs/node_modules/yoga-layout/dist/src/generated/YGEnums.js +0 -6
  233. package/dist/cjs/node_modules/yoga-layout/dist/src/load.js +0 -6
  234. package/dist/cjs/node_modules/yoga-layout/dist/src/wrapAssembly.js +0 -6
  235. package/dist/cjs/src/components/e-commerce/invoice/InvoicePDF.js +0 -7
  236. package/dist/esm/_virtual/_commonjs-dynamic-modules.js +0 -11
  237. package/dist/esm/_virtual/aes.js +0 -9
  238. package/dist/esm/_virtual/b64.js +0 -9
  239. package/dist/esm/_virtual/blowfish.js +0 -9
  240. package/dist/esm/_virtual/cipher-core.js +0 -9
  241. package/dist/esm/_virtual/clone.js +0 -9
  242. package/dist/esm/_virtual/common.js +0 -9
  243. package/dist/esm/_virtual/context.js +0 -9
  244. package/dist/esm/_virtual/core2.js +0 -9
  245. package/dist/esm/_virtual/decode.js +0 -9
  246. package/dist/esm/_virtual/deflate.js +0 -9
  247. package/dist/esm/_virtual/dictionary-browser.js +0 -9
  248. package/dist/esm/_virtual/dictionary.js +0 -9
  249. package/dist/esm/_virtual/en-us.js +0 -9
  250. package/dist/esm/_virtual/enc-base64.js +0 -9
  251. package/dist/esm/_virtual/enc-base64url.js +0 -9
  252. package/dist/esm/_virtual/enc-utf16.js +0 -9
  253. package/dist/esm/_virtual/events.js +0 -9
  254. package/dist/esm/_virtual/evpkdf.js +0 -9
  255. package/dist/esm/_virtual/format-hex.js +0 -9
  256. package/dist/esm/_virtual/hmac.js +0 -9
  257. package/dist/esm/_virtual/huffman.js +0 -9
  258. package/dist/esm/_virtual/hyphen.js +0 -9
  259. package/dist/esm/_virtual/index10.js +0 -9
  260. package/dist/esm/_virtual/index5.js +0 -9
  261. package/dist/esm/_virtual/index6.js +0 -9
  262. package/dist/esm/_virtual/index7.js +0 -9
  263. package/dist/esm/_virtual/index8.js +0 -9
  264. package/dist/esm/_virtual/index9.js +0 -9
  265. package/dist/esm/_virtual/inflate.js +0 -9
  266. package/dist/esm/_virtual/inherits_browser.js +0 -9
  267. package/dist/esm/_virtual/lib-typedarrays.js +0 -9
  268. package/dist/esm/_virtual/md5.js +0 -9
  269. package/dist/esm/_virtual/mode-cfb.js +0 -9
  270. package/dist/esm/_virtual/mode-ctr-gladman.js +0 -9
  271. package/dist/esm/_virtual/mode-ctr.js +0 -9
  272. package/dist/esm/_virtual/mode-ecb.js +0 -9
  273. package/dist/esm/_virtual/mode-ofb.js +0 -9
  274. package/dist/esm/_virtual/pad-ansix923.js +0 -9
  275. package/dist/esm/_virtual/pad-iso10126.js +0 -9
  276. package/dist/esm/_virtual/pad-iso97971.js +0 -9
  277. package/dist/esm/_virtual/pad-nopadding.js +0 -9
  278. package/dist/esm/_virtual/pad-zeropadding.js +0 -9
  279. package/dist/esm/_virtual/pbkdf2.js +0 -9
  280. package/dist/esm/_virtual/prefix.js +0 -9
  281. package/dist/esm/_virtual/rabbit-legacy.js +0 -9
  282. package/dist/esm/_virtual/rabbit.js +0 -9
  283. package/dist/esm/_virtual/rc4.js +0 -9
  284. package/dist/esm/_virtual/ripemd160.js +0 -9
  285. package/dist/esm/_virtual/scheduler.development.js +0 -9
  286. package/dist/esm/_virtual/scheduler.production.js +0 -9
  287. package/dist/esm/_virtual/sha1.js +0 -9
  288. package/dist/esm/_virtual/sha224.js +0 -9
  289. package/dist/esm/_virtual/sha256.js +0 -9
  290. package/dist/esm/_virtual/sha3.js +0 -9
  291. package/dist/esm/_virtual/sha384.js +0 -9
  292. package/dist/esm/_virtual/sha512.js +0 -9
  293. package/dist/esm/_virtual/streams.js +0 -9
  294. package/dist/esm/_virtual/transform.js +0 -9
  295. package/dist/esm/_virtual/trees.js +0 -9
  296. package/dist/esm/_virtual/tripledes.js +0 -9
  297. package/dist/esm/_virtual/x64-core.js +0 -9
  298. package/dist/esm/node_modules/@react-pdf/fns/lib/index.js +0 -254
  299. package/dist/esm/node_modules/@react-pdf/font/lib/index.browser.js +0 -481
  300. package/dist/esm/node_modules/@react-pdf/image/lib/index.browser.js +0 -2217
  301. package/dist/esm/node_modules/@react-pdf/layout/lib/index.js +0 -2982
  302. package/dist/esm/node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.js +0 -47429
  303. package/dist/esm/node_modules/@react-pdf/png-js/lib/png-js.browser.js +0 -12606
  304. package/dist/esm/node_modules/@react-pdf/primitives/lib/index.js +0 -37
  305. package/dist/esm/node_modules/@react-pdf/reconciler/lib/index.js +0 -16
  306. package/dist/esm/node_modules/@react-pdf/reconciler/lib/reconciler-23.js +0 -22
  307. package/dist/esm/node_modules/@react-pdf/reconciler/lib/reconciler-31.js +0 -30
  308. package/dist/esm/node_modules/@react-pdf/render/lib/index.js +0 -2081
  309. package/dist/esm/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js +0 -472
  310. package/dist/esm/node_modules/@react-pdf/stylesheet/lib/index.js +0 -771
  311. package/dist/esm/node_modules/@react-pdf/textkit/lib/textkit.js +0 -2854
  312. package/dist/esm/node_modules/@swc/helpers/esm/_define_property.js +0 -15
  313. package/dist/esm/node_modules/abs-svg-path/index.js +0 -78
  314. package/dist/esm/node_modules/base64-js/index.js +0 -158
  315. package/dist/esm/node_modules/bidi-js/dist/bidi.js +0 -1008
  316. package/dist/esm/node_modules/brotli/dec/bit_reader.js +0 -132
  317. package/dist/esm/node_modules/brotli/dec/context.js +0 -255
  318. package/dist/esm/node_modules/brotli/dec/decode.js +0 -965
  319. package/dist/esm/node_modules/brotli/dec/dictionary-browser.js +0 -35
  320. package/dist/esm/node_modules/brotli/dec/dictionary.bin.js +0 -17
  321. package/dist/esm/node_modules/brotli/dec/dictionary.js +0 -54
  322. package/dist/esm/node_modules/brotli/dec/huffman.js +0 -133
  323. package/dist/esm/node_modules/brotli/dec/prefix.js +0 -70
  324. package/dist/esm/node_modules/brotli/dec/streams.js +0 -44
  325. package/dist/esm/node_modules/brotli/dec/transform.js +0 -264
  326. package/dist/esm/node_modules/brotli/decompress.js +0 -14
  327. package/dist/esm/node_modules/clone/clone.js +0 -272
  328. package/dist/esm/node_modules/color-name/index.js +0 -158
  329. package/dist/esm/node_modules/color-string/index.js +0 -259
  330. package/dist/esm/node_modules/crypto-js/aes.js +0 -251
  331. package/dist/esm/node_modules/crypto-js/blowfish.js +0 -488
  332. package/dist/esm/node_modules/crypto-js/cipher-core.js +0 -909
  333. package/dist/esm/node_modules/crypto-js/core.js +0 -820
  334. package/dist/esm/node_modules/crypto-js/enc-base64.js +0 -149
  335. package/dist/esm/node_modules/crypto-js/enc-base64url.js +0 -161
  336. package/dist/esm/node_modules/crypto-js/enc-utf16.js +0 -162
  337. package/dist/esm/node_modules/crypto-js/evpkdf.js +0 -149
  338. package/dist/esm/node_modules/crypto-js/format-hex.js +0 -80
  339. package/dist/esm/node_modules/crypto-js/hmac.js +0 -156
  340. package/dist/esm/node_modules/crypto-js/index.js +0 -61
  341. package/dist/esm/node_modules/crypto-js/lib-typedarrays.js +0 -89
  342. package/dist/esm/node_modules/crypto-js/md5.js +0 -277
  343. package/dist/esm/node_modules/crypto-js/mode-cfb.js +0 -94
  344. package/dist/esm/node_modules/crypto-js/mode-ctr-gladman.js +0 -130
  345. package/dist/esm/node_modules/crypto-js/mode-ctr.js +0 -72
  346. package/dist/esm/node_modules/crypto-js/mode-ecb.js +0 -54
  347. package/dist/esm/node_modules/crypto-js/mode-ofb.js +0 -68
  348. package/dist/esm/node_modules/crypto-js/pad-ansix923.js +0 -63
  349. package/dist/esm/node_modules/crypto-js/pad-iso10126.js +0 -58
  350. package/dist/esm/node_modules/crypto-js/pad-iso97971.js +0 -54
  351. package/dist/esm/node_modules/crypto-js/pad-nopadding.js +0 -44
  352. package/dist/esm/node_modules/crypto-js/pad-zeropadding.js +0 -61
  353. package/dist/esm/node_modules/crypto-js/pbkdf2.js +0 -160
  354. package/dist/esm/node_modules/crypto-js/rabbit-legacy.js +0 -207
  355. package/dist/esm/node_modules/crypto-js/rabbit.js +0 -209
  356. package/dist/esm/node_modules/crypto-js/rc4.js +0 -156
  357. package/dist/esm/node_modules/crypto-js/ripemd160.js +0 -280
  358. package/dist/esm/node_modules/crypto-js/sha1.js +0 -163
  359. package/dist/esm/node_modules/crypto-js/sha224.js +0 -94
  360. package/dist/esm/node_modules/crypto-js/sha256.js +0 -212
  361. package/dist/esm/node_modules/crypto-js/sha3.js +0 -340
  362. package/dist/esm/node_modules/crypto-js/sha384.js +0 -98
  363. package/dist/esm/node_modules/crypto-js/sha512.js +0 -340
  364. package/dist/esm/node_modules/crypto-js/tripledes.js +0 -796
  365. package/dist/esm/node_modules/crypto-js/x64-core.js +0 -317
  366. package/dist/esm/node_modules/dfa/index.js +0 -101
  367. package/dist/esm/node_modules/emoji-regex/index.js +0 -12
  368. package/dist/esm/node_modules/events/events.js +0 -485
  369. package/dist/esm/node_modules/fast-deep-equal/index.js +0 -56
  370. package/dist/esm/node_modules/fontkit/dist/browser-module.js +0 -13295
  371. package/dist/esm/node_modules/hsl-to-hex/index.js +0 -72
  372. package/dist/esm/node_modules/hsl-to-rgb-for-reals/converter.js +0 -66
  373. package/dist/esm/node_modules/hyphen/hyphen.js +0 -424
  374. package/dist/esm/node_modules/hyphen/patterns/en-us.js +0 -48
  375. package/dist/esm/node_modules/inherits/inherits_browser.js +0 -39
  376. package/dist/esm/node_modules/jay-peg/src/index.js +0 -68
  377. package/dist/esm/node_modules/jay-peg/src/markers/dac.js +0 -25
  378. package/dist/esm/node_modules/jay-peg/src/markers/dht.js +0 -52
  379. package/dist/esm/node_modules/jay-peg/src/markers/dqt.js +0 -26
  380. package/dist/esm/node_modules/jay-peg/src/markers/dri.js +0 -17
  381. package/dist/esm/node_modules/jay-peg/src/markers/eoi.js +0 -17
  382. package/dist/esm/node_modules/jay-peg/src/markers/exif.js +0 -327
  383. package/dist/esm/node_modules/jay-peg/src/markers/jfif.js +0 -24
  384. package/dist/esm/node_modules/jay-peg/src/markers/sof.js +0 -32
  385. package/dist/esm/node_modules/jay-peg/src/markers/soi.js +0 -11
  386. package/dist/esm/node_modules/jay-peg/src/markers/sos.js +0 -57
  387. package/dist/esm/node_modules/jay-peg/src/markers/utils.js +0 -71
  388. package/dist/esm/node_modules/linebreak/dist/module.js +0 -1340
  389. package/dist/esm/node_modules/linebreak/node_modules/base64-js/lib/b64.js +0 -137
  390. package/dist/esm/node_modules/media-engine/src/index.js +0 -26
  391. package/dist/esm/node_modules/media-engine/src/operators.js +0 -36
  392. package/dist/esm/node_modules/media-engine/src/parser.js +0 -147
  393. package/dist/esm/node_modules/media-engine/src/queries.js +0 -64
  394. package/dist/esm/node_modules/normalize-svg-path/index.js +0 -126
  395. package/dist/esm/node_modules/pako/lib/utils/common.js +0 -114
  396. package/dist/esm/node_modules/pako/lib/zlib/adler32.js +0 -57
  397. package/dist/esm/node_modules/pako/lib/zlib/constants.js +0 -78
  398. package/dist/esm/node_modules/pako/lib/zlib/crc32.js +0 -65
  399. package/dist/esm/node_modules/pako/lib/zlib/deflate.js +0 -1880
  400. package/dist/esm/node_modules/pako/lib/zlib/inffast.js +0 -351
  401. package/dist/esm/node_modules/pako/lib/zlib/inflate.js +0 -1557
  402. package/dist/esm/node_modules/pako/lib/zlib/inftrees.js +0 -352
  403. package/dist/esm/node_modules/pako/lib/zlib/messages.js +0 -38
  404. package/dist/esm/node_modules/pako/lib/zlib/trees.js +0 -1232
  405. package/dist/esm/node_modules/pako/lib/zlib/zstream.js +0 -57
  406. package/dist/esm/node_modules/parse-svg-path/index.js +0 -68
  407. package/dist/esm/node_modules/postcss-value-parser/lib/parse.js +0 -333
  408. package/dist/esm/node_modules/postcss-value-parser/lib/unit.js +0 -132
  409. package/dist/esm/node_modules/queue/index.js +0 -211
  410. package/dist/esm/node_modules/restructure/src/Array.js +0 -112
  411. package/dist/esm/node_modules/restructure/src/Base.js +0 -25
  412. package/dist/esm/node_modules/restructure/src/Bitfield.js +0 -47
  413. package/dist/esm/node_modules/restructure/src/Buffer.js +0 -44
  414. package/dist/esm/node_modules/restructure/src/DecodeStream.js +0 -93
  415. package/dist/esm/node_modules/restructure/src/EncodeStream.js +0 -137
  416. package/dist/esm/node_modules/restructure/src/LazyArray.js +0 -82
  417. package/dist/esm/node_modules/restructure/src/Number.js +0 -80
  418. package/dist/esm/node_modules/restructure/src/Optional.js +0 -52
  419. package/dist/esm/node_modules/restructure/src/Pointer.js +0 -175
  420. package/dist/esm/node_modules/restructure/src/Reserved.js +0 -31
  421. package/dist/esm/node_modules/restructure/src/String.js +0 -161
  422. package/dist/esm/node_modules/restructure/src/Struct.js +0 -121
  423. package/dist/esm/node_modules/restructure/src/VersionedStruct.js +0 -147
  424. package/dist/esm/node_modules/restructure/src/utils.js +0 -42
  425. package/dist/esm/node_modules/scheduler/cjs/scheduler.development.js +0 -382
  426. package/dist/esm/node_modules/scheduler/cjs/scheduler.production.js +0 -359
  427. package/dist/esm/node_modules/scheduler/index.js +0 -21
  428. package/dist/esm/node_modules/simple-swizzle/index.js +0 -40
  429. package/dist/esm/node_modules/simple-swizzle/node_modules/is-arrayish/index.js +0 -17
  430. package/dist/esm/node_modules/svg-arc-to-cubic-bezier/modules/index.js +0 -189
  431. package/dist/esm/node_modules/tiny-inflate/index.js +0 -387
  432. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -36
  433. package/dist/esm/node_modules/unicode-properties/dist/module.js +0 -132
  434. package/dist/esm/node_modules/unicode-trie/index.js +0 -150
  435. package/dist/esm/node_modules/unicode-trie/swap.js +0 -33
  436. package/dist/esm/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js +0 -81
  437. package/dist/esm/node_modules/yoga-layout/dist/src/generated/YGEnums.js +0 -217
  438. package/dist/esm/node_modules/yoga-layout/dist/src/load.js +0 -24
  439. package/dist/esm/node_modules/yoga-layout/dist/src/wrapAssembly.js +0 -130
  440. package/dist/esm/src/components/e-commerce/invoice/InvoicePDF.js +0 -181
@@ -1,909 +0,0 @@
1
- /*
2
- * UMWD-Components
3
- * @copyright Jelle Paulus
4
- * @license MIT
5
- */
6
-
7
- import { commonjsGlobal } from '../../_virtual/_commonjsHelpers.js';
8
- import { __module as cipherCore } from '../../_virtual/cipher-core.js';
9
- import { __require as requireCore } from './core.js';
10
- import { __require as requireEvpkdf } from './evpkdf.js';
11
-
12
- var hasRequiredCipherCore;
13
-
14
- function requireCipherCore () {
15
- if (hasRequiredCipherCore) return cipherCore.exports;
16
- hasRequiredCipherCore = 1;
17
- (function (module, exports) {
18
- (function (root, factory, undef) {
19
- {
20
- // CommonJS
21
- module.exports = factory(requireCore(), requireEvpkdf());
22
- }
23
- }(commonjsGlobal, function (CryptoJS) {
24
-
25
- /**
26
- * Cipher core components.
27
- */
28
- CryptoJS.lib.Cipher || (function (undefined$1) {
29
- // Shortcuts
30
- var C = CryptoJS;
31
- var C_lib = C.lib;
32
- var Base = C_lib.Base;
33
- var WordArray = C_lib.WordArray;
34
- var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
35
- var C_enc = C.enc;
36
- C_enc.Utf8;
37
- var Base64 = C_enc.Base64;
38
- var C_algo = C.algo;
39
- var EvpKDF = C_algo.EvpKDF;
40
-
41
- /**
42
- * Abstract base cipher template.
43
- *
44
- * @property {number} keySize This cipher's key size. Default: 4 (128 bits)
45
- * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
46
- * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
47
- * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
48
- */
49
- var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
50
- /**
51
- * Configuration options.
52
- *
53
- * @property {WordArray} iv The IV to use for this operation.
54
- */
55
- cfg: Base.extend(),
56
-
57
- /**
58
- * Creates this cipher in encryption mode.
59
- *
60
- * @param {WordArray} key The key.
61
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
62
- *
63
- * @return {Cipher} A cipher instance.
64
- *
65
- * @static
66
- *
67
- * @example
68
- *
69
- * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
70
- */
71
- createEncryptor: function (key, cfg) {
72
- return this.create(this._ENC_XFORM_MODE, key, cfg);
73
- },
74
-
75
- /**
76
- * Creates this cipher in decryption mode.
77
- *
78
- * @param {WordArray} key The key.
79
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
80
- *
81
- * @return {Cipher} A cipher instance.
82
- *
83
- * @static
84
- *
85
- * @example
86
- *
87
- * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
88
- */
89
- createDecryptor: function (key, cfg) {
90
- return this.create(this._DEC_XFORM_MODE, key, cfg);
91
- },
92
-
93
- /**
94
- * Initializes a newly created cipher.
95
- *
96
- * @param {number} xformMode Either the encryption or decryption transormation mode constant.
97
- * @param {WordArray} key The key.
98
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
99
- *
100
- * @example
101
- *
102
- * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
103
- */
104
- init: function (xformMode, key, cfg) {
105
- // Apply config defaults
106
- this.cfg = this.cfg.extend(cfg);
107
-
108
- // Store transform mode and key
109
- this._xformMode = xformMode;
110
- this._key = key;
111
-
112
- // Set initial values
113
- this.reset();
114
- },
115
-
116
- /**
117
- * Resets this cipher to its initial state.
118
- *
119
- * @example
120
- *
121
- * cipher.reset();
122
- */
123
- reset: function () {
124
- // Reset data buffer
125
- BufferedBlockAlgorithm.reset.call(this);
126
-
127
- // Perform concrete-cipher logic
128
- this._doReset();
129
- },
130
-
131
- /**
132
- * Adds data to be encrypted or decrypted.
133
- *
134
- * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
135
- *
136
- * @return {WordArray} The data after processing.
137
- *
138
- * @example
139
- *
140
- * var encrypted = cipher.process('data');
141
- * var encrypted = cipher.process(wordArray);
142
- */
143
- process: function (dataUpdate) {
144
- // Append
145
- this._append(dataUpdate);
146
-
147
- // Process available blocks
148
- return this._process();
149
- },
150
-
151
- /**
152
- * Finalizes the encryption or decryption process.
153
- * Note that the finalize operation is effectively a destructive, read-once operation.
154
- *
155
- * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
156
- *
157
- * @return {WordArray} The data after final processing.
158
- *
159
- * @example
160
- *
161
- * var encrypted = cipher.finalize();
162
- * var encrypted = cipher.finalize('data');
163
- * var encrypted = cipher.finalize(wordArray);
164
- */
165
- finalize: function (dataUpdate) {
166
- // Final data update
167
- if (dataUpdate) {
168
- this._append(dataUpdate);
169
- }
170
-
171
- // Perform concrete-cipher logic
172
- var finalProcessedData = this._doFinalize();
173
-
174
- return finalProcessedData;
175
- },
176
-
177
- keySize: 128/32,
178
-
179
- ivSize: 128/32,
180
-
181
- _ENC_XFORM_MODE: 1,
182
-
183
- _DEC_XFORM_MODE: 2,
184
-
185
- /**
186
- * Creates shortcut functions to a cipher's object interface.
187
- *
188
- * @param {Cipher} cipher The cipher to create a helper for.
189
- *
190
- * @return {Object} An object with encrypt and decrypt shortcut functions.
191
- *
192
- * @static
193
- *
194
- * @example
195
- *
196
- * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
197
- */
198
- _createHelper: (function () {
199
- function selectCipherStrategy(key) {
200
- if (typeof key == 'string') {
201
- return PasswordBasedCipher;
202
- } else {
203
- return SerializableCipher;
204
- }
205
- }
206
-
207
- return function (cipher) {
208
- return {
209
- encrypt: function (message, key, cfg) {
210
- return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
211
- },
212
-
213
- decrypt: function (ciphertext, key, cfg) {
214
- return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
215
- }
216
- };
217
- };
218
- }())
219
- });
220
-
221
- /**
222
- * Abstract base stream cipher template.
223
- *
224
- * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
225
- */
226
- C_lib.StreamCipher = Cipher.extend({
227
- _doFinalize: function () {
228
- // Process partial blocks
229
- var finalProcessedBlocks = this._process(true);
230
-
231
- return finalProcessedBlocks;
232
- },
233
-
234
- blockSize: 1
235
- });
236
-
237
- /**
238
- * Mode namespace.
239
- */
240
- var C_mode = C.mode = {};
241
-
242
- /**
243
- * Abstract base block cipher mode template.
244
- */
245
- var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
246
- /**
247
- * Creates this mode for encryption.
248
- *
249
- * @param {Cipher} cipher A block cipher instance.
250
- * @param {Array} iv The IV words.
251
- *
252
- * @static
253
- *
254
- * @example
255
- *
256
- * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
257
- */
258
- createEncryptor: function (cipher, iv) {
259
- return this.Encryptor.create(cipher, iv);
260
- },
261
-
262
- /**
263
- * Creates this mode for decryption.
264
- *
265
- * @param {Cipher} cipher A block cipher instance.
266
- * @param {Array} iv The IV words.
267
- *
268
- * @static
269
- *
270
- * @example
271
- *
272
- * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
273
- */
274
- createDecryptor: function (cipher, iv) {
275
- return this.Decryptor.create(cipher, iv);
276
- },
277
-
278
- /**
279
- * Initializes a newly created mode.
280
- *
281
- * @param {Cipher} cipher A block cipher instance.
282
- * @param {Array} iv The IV words.
283
- *
284
- * @example
285
- *
286
- * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
287
- */
288
- init: function (cipher, iv) {
289
- this._cipher = cipher;
290
- this._iv = iv;
291
- }
292
- });
293
-
294
- /**
295
- * Cipher Block Chaining mode.
296
- */
297
- var CBC = C_mode.CBC = (function () {
298
- /**
299
- * Abstract base CBC mode.
300
- */
301
- var CBC = BlockCipherMode.extend();
302
-
303
- /**
304
- * CBC encryptor.
305
- */
306
- CBC.Encryptor = CBC.extend({
307
- /**
308
- * Processes the data block at offset.
309
- *
310
- * @param {Array} words The data words to operate on.
311
- * @param {number} offset The offset where the block starts.
312
- *
313
- * @example
314
- *
315
- * mode.processBlock(data.words, offset);
316
- */
317
- processBlock: function (words, offset) {
318
- // Shortcuts
319
- var cipher = this._cipher;
320
- var blockSize = cipher.blockSize;
321
-
322
- // XOR and encrypt
323
- xorBlock.call(this, words, offset, blockSize);
324
- cipher.encryptBlock(words, offset);
325
-
326
- // Remember this block to use with next block
327
- this._prevBlock = words.slice(offset, offset + blockSize);
328
- }
329
- });
330
-
331
- /**
332
- * CBC decryptor.
333
- */
334
- CBC.Decryptor = CBC.extend({
335
- /**
336
- * Processes the data block at offset.
337
- *
338
- * @param {Array} words The data words to operate on.
339
- * @param {number} offset The offset where the block starts.
340
- *
341
- * @example
342
- *
343
- * mode.processBlock(data.words, offset);
344
- */
345
- processBlock: function (words, offset) {
346
- // Shortcuts
347
- var cipher = this._cipher;
348
- var blockSize = cipher.blockSize;
349
-
350
- // Remember this block to use with next block
351
- var thisBlock = words.slice(offset, offset + blockSize);
352
-
353
- // Decrypt and XOR
354
- cipher.decryptBlock(words, offset);
355
- xorBlock.call(this, words, offset, blockSize);
356
-
357
- // This block becomes the previous block
358
- this._prevBlock = thisBlock;
359
- }
360
- });
361
-
362
- function xorBlock(words, offset, blockSize) {
363
- var block;
364
-
365
- // Shortcut
366
- var iv = this._iv;
367
-
368
- // Choose mixing block
369
- if (iv) {
370
- block = iv;
371
-
372
- // Remove IV for subsequent blocks
373
- this._iv = undefined$1;
374
- } else {
375
- block = this._prevBlock;
376
- }
377
-
378
- // XOR blocks
379
- for (var i = 0; i < blockSize; i++) {
380
- words[offset + i] ^= block[i];
381
- }
382
- }
383
-
384
- return CBC;
385
- }());
386
-
387
- /**
388
- * Padding namespace.
389
- */
390
- var C_pad = C.pad = {};
391
-
392
- /**
393
- * PKCS #5/7 padding strategy.
394
- */
395
- var Pkcs7 = C_pad.Pkcs7 = {
396
- /**
397
- * Pads data using the algorithm defined in PKCS #5/7.
398
- *
399
- * @param {WordArray} data The data to pad.
400
- * @param {number} blockSize The multiple that the data should be padded to.
401
- *
402
- * @static
403
- *
404
- * @example
405
- *
406
- * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
407
- */
408
- pad: function (data, blockSize) {
409
- // Shortcut
410
- var blockSizeBytes = blockSize * 4;
411
-
412
- // Count padding bytes
413
- var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
414
-
415
- // Create padding word
416
- var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;
417
-
418
- // Create padding
419
- var paddingWords = [];
420
- for (var i = 0; i < nPaddingBytes; i += 4) {
421
- paddingWords.push(paddingWord);
422
- }
423
- var padding = WordArray.create(paddingWords, nPaddingBytes);
424
-
425
- // Add padding
426
- data.concat(padding);
427
- },
428
-
429
- /**
430
- * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
431
- *
432
- * @param {WordArray} data The data to unpad.
433
- *
434
- * @static
435
- *
436
- * @example
437
- *
438
- * CryptoJS.pad.Pkcs7.unpad(wordArray);
439
- */
440
- unpad: function (data) {
441
- // Get number of padding bytes from last byte
442
- var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
443
-
444
- // Remove padding
445
- data.sigBytes -= nPaddingBytes;
446
- }
447
- };
448
-
449
- /**
450
- * Abstract base block cipher template.
451
- *
452
- * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
453
- */
454
- C_lib.BlockCipher = Cipher.extend({
455
- /**
456
- * Configuration options.
457
- *
458
- * @property {Mode} mode The block mode to use. Default: CBC
459
- * @property {Padding} padding The padding strategy to use. Default: Pkcs7
460
- */
461
- cfg: Cipher.cfg.extend({
462
- mode: CBC,
463
- padding: Pkcs7
464
- }),
465
-
466
- reset: function () {
467
- var modeCreator;
468
-
469
- // Reset cipher
470
- Cipher.reset.call(this);
471
-
472
- // Shortcuts
473
- var cfg = this.cfg;
474
- var iv = cfg.iv;
475
- var mode = cfg.mode;
476
-
477
- // Reset block mode
478
- if (this._xformMode == this._ENC_XFORM_MODE) {
479
- modeCreator = mode.createEncryptor;
480
- } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
481
- modeCreator = mode.createDecryptor;
482
- // Keep at least one block in the buffer for unpadding
483
- this._minBufferSize = 1;
484
- }
485
-
486
- if (this._mode && this._mode.__creator == modeCreator) {
487
- this._mode.init(this, iv && iv.words);
488
- } else {
489
- this._mode = modeCreator.call(mode, this, iv && iv.words);
490
- this._mode.__creator = modeCreator;
491
- }
492
- },
493
-
494
- _doProcessBlock: function (words, offset) {
495
- this._mode.processBlock(words, offset);
496
- },
497
-
498
- _doFinalize: function () {
499
- var finalProcessedBlocks;
500
-
501
- // Shortcut
502
- var padding = this.cfg.padding;
503
-
504
- // Finalize
505
- if (this._xformMode == this._ENC_XFORM_MODE) {
506
- // Pad data
507
- padding.pad(this._data, this.blockSize);
508
-
509
- // Process final blocks
510
- finalProcessedBlocks = this._process(true);
511
- } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
512
- // Process final blocks
513
- finalProcessedBlocks = this._process(true);
514
-
515
- // Unpad data
516
- padding.unpad(finalProcessedBlocks);
517
- }
518
-
519
- return finalProcessedBlocks;
520
- },
521
-
522
- blockSize: 128/32
523
- });
524
-
525
- /**
526
- * A collection of cipher parameters.
527
- *
528
- * @property {WordArray} ciphertext The raw ciphertext.
529
- * @property {WordArray} key The key to this ciphertext.
530
- * @property {WordArray} iv The IV used in the ciphering operation.
531
- * @property {WordArray} salt The salt used with a key derivation function.
532
- * @property {Cipher} algorithm The cipher algorithm.
533
- * @property {Mode} mode The block mode used in the ciphering operation.
534
- * @property {Padding} padding The padding scheme used in the ciphering operation.
535
- * @property {number} blockSize The block size of the cipher.
536
- * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
537
- */
538
- var CipherParams = C_lib.CipherParams = Base.extend({
539
- /**
540
- * Initializes a newly created cipher params object.
541
- *
542
- * @param {Object} cipherParams An object with any of the possible cipher parameters.
543
- *
544
- * @example
545
- *
546
- * var cipherParams = CryptoJS.lib.CipherParams.create({
547
- * ciphertext: ciphertextWordArray,
548
- * key: keyWordArray,
549
- * iv: ivWordArray,
550
- * salt: saltWordArray,
551
- * algorithm: CryptoJS.algo.AES,
552
- * mode: CryptoJS.mode.CBC,
553
- * padding: CryptoJS.pad.PKCS7,
554
- * blockSize: 4,
555
- * formatter: CryptoJS.format.OpenSSL
556
- * });
557
- */
558
- init: function (cipherParams) {
559
- this.mixIn(cipherParams);
560
- },
561
-
562
- /**
563
- * Converts this cipher params object to a string.
564
- *
565
- * @param {Format} formatter (Optional) The formatting strategy to use.
566
- *
567
- * @return {string} The stringified cipher params.
568
- *
569
- * @throws Error If neither the formatter nor the default formatter is set.
570
- *
571
- * @example
572
- *
573
- * var string = cipherParams + '';
574
- * var string = cipherParams.toString();
575
- * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
576
- */
577
- toString: function (formatter) {
578
- return (formatter || this.formatter).stringify(this);
579
- }
580
- });
581
-
582
- /**
583
- * Format namespace.
584
- */
585
- var C_format = C.format = {};
586
-
587
- /**
588
- * OpenSSL formatting strategy.
589
- */
590
- var OpenSSLFormatter = C_format.OpenSSL = {
591
- /**
592
- * Converts a cipher params object to an OpenSSL-compatible string.
593
- *
594
- * @param {CipherParams} cipherParams The cipher params object.
595
- *
596
- * @return {string} The OpenSSL-compatible string.
597
- *
598
- * @static
599
- *
600
- * @example
601
- *
602
- * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
603
- */
604
- stringify: function (cipherParams) {
605
- var wordArray;
606
-
607
- // Shortcuts
608
- var ciphertext = cipherParams.ciphertext;
609
- var salt = cipherParams.salt;
610
-
611
- // Format
612
- if (salt) {
613
- wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
614
- } else {
615
- wordArray = ciphertext;
616
- }
617
-
618
- return wordArray.toString(Base64);
619
- },
620
-
621
- /**
622
- * Converts an OpenSSL-compatible string to a cipher params object.
623
- *
624
- * @param {string} openSSLStr The OpenSSL-compatible string.
625
- *
626
- * @return {CipherParams} The cipher params object.
627
- *
628
- * @static
629
- *
630
- * @example
631
- *
632
- * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
633
- */
634
- parse: function (openSSLStr) {
635
- var salt;
636
-
637
- // Parse base64
638
- var ciphertext = Base64.parse(openSSLStr);
639
-
640
- // Shortcut
641
- var ciphertextWords = ciphertext.words;
642
-
643
- // Test for salt
644
- if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
645
- // Extract salt
646
- salt = WordArray.create(ciphertextWords.slice(2, 4));
647
-
648
- // Remove salt from ciphertext
649
- ciphertextWords.splice(0, 4);
650
- ciphertext.sigBytes -= 16;
651
- }
652
-
653
- return CipherParams.create({ ciphertext: ciphertext, salt: salt });
654
- }
655
- };
656
-
657
- /**
658
- * A cipher wrapper that returns ciphertext as a serializable cipher params object.
659
- */
660
- var SerializableCipher = C_lib.SerializableCipher = Base.extend({
661
- /**
662
- * Configuration options.
663
- *
664
- * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
665
- */
666
- cfg: Base.extend({
667
- format: OpenSSLFormatter
668
- }),
669
-
670
- /**
671
- * Encrypts a message.
672
- *
673
- * @param {Cipher} cipher The cipher algorithm to use.
674
- * @param {WordArray|string} message The message to encrypt.
675
- * @param {WordArray} key The key.
676
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
677
- *
678
- * @return {CipherParams} A cipher params object.
679
- *
680
- * @static
681
- *
682
- * @example
683
- *
684
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
685
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
686
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
687
- */
688
- encrypt: function (cipher, message, key, cfg) {
689
- // Apply config defaults
690
- cfg = this.cfg.extend(cfg);
691
-
692
- // Encrypt
693
- var encryptor = cipher.createEncryptor(key, cfg);
694
- var ciphertext = encryptor.finalize(message);
695
-
696
- // Shortcut
697
- var cipherCfg = encryptor.cfg;
698
-
699
- // Create and return serializable cipher params
700
- return CipherParams.create({
701
- ciphertext: ciphertext,
702
- key: key,
703
- iv: cipherCfg.iv,
704
- algorithm: cipher,
705
- mode: cipherCfg.mode,
706
- padding: cipherCfg.padding,
707
- blockSize: cipher.blockSize,
708
- formatter: cfg.format
709
- });
710
- },
711
-
712
- /**
713
- * Decrypts serialized ciphertext.
714
- *
715
- * @param {Cipher} cipher The cipher algorithm to use.
716
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
717
- * @param {WordArray} key The key.
718
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
719
- *
720
- * @return {WordArray} The plaintext.
721
- *
722
- * @static
723
- *
724
- * @example
725
- *
726
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
727
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
728
- */
729
- decrypt: function (cipher, ciphertext, key, cfg) {
730
- // Apply config defaults
731
- cfg = this.cfg.extend(cfg);
732
-
733
- // Convert string to CipherParams
734
- ciphertext = this._parse(ciphertext, cfg.format);
735
-
736
- // Decrypt
737
- var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
738
-
739
- return plaintext;
740
- },
741
-
742
- /**
743
- * Converts serialized ciphertext to CipherParams,
744
- * else assumed CipherParams already and returns ciphertext unchanged.
745
- *
746
- * @param {CipherParams|string} ciphertext The ciphertext.
747
- * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
748
- *
749
- * @return {CipherParams} The unserialized ciphertext.
750
- *
751
- * @static
752
- *
753
- * @example
754
- *
755
- * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
756
- */
757
- _parse: function (ciphertext, format) {
758
- if (typeof ciphertext == 'string') {
759
- return format.parse(ciphertext, this);
760
- } else {
761
- return ciphertext;
762
- }
763
- }
764
- });
765
-
766
- /**
767
- * Key derivation function namespace.
768
- */
769
- var C_kdf = C.kdf = {};
770
-
771
- /**
772
- * OpenSSL key derivation function.
773
- */
774
- var OpenSSLKdf = C_kdf.OpenSSL = {
775
- /**
776
- * Derives a key and IV from a password.
777
- *
778
- * @param {string} password The password to derive from.
779
- * @param {number} keySize The size in words of the key to generate.
780
- * @param {number} ivSize The size in words of the IV to generate.
781
- * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
782
- *
783
- * @return {CipherParams} A cipher params object with the key, IV, and salt.
784
- *
785
- * @static
786
- *
787
- * @example
788
- *
789
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
790
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
791
- */
792
- execute: function (password, keySize, ivSize, salt, hasher) {
793
- // Generate random salt
794
- if (!salt) {
795
- salt = WordArray.random(64/8);
796
- }
797
-
798
- // Derive key and IV
799
- if (!hasher) {
800
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
801
- } else {
802
- var key = EvpKDF.create({ keySize: keySize + ivSize, hasher: hasher }).compute(password, salt);
803
- }
804
-
805
-
806
- // Separate key and IV
807
- var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
808
- key.sigBytes = keySize * 4;
809
-
810
- // Return params
811
- return CipherParams.create({ key: key, iv: iv, salt: salt });
812
- }
813
- };
814
-
815
- /**
816
- * A serializable cipher wrapper that derives the key from a password,
817
- * and returns ciphertext as a serializable cipher params object.
818
- */
819
- var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
820
- /**
821
- * Configuration options.
822
- *
823
- * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
824
- */
825
- cfg: SerializableCipher.cfg.extend({
826
- kdf: OpenSSLKdf
827
- }),
828
-
829
- /**
830
- * Encrypts a message using a password.
831
- *
832
- * @param {Cipher} cipher The cipher algorithm to use.
833
- * @param {WordArray|string} message The message to encrypt.
834
- * @param {string} password The password.
835
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
836
- *
837
- * @return {CipherParams} A cipher params object.
838
- *
839
- * @static
840
- *
841
- * @example
842
- *
843
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
844
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
845
- */
846
- encrypt: function (cipher, message, password, cfg) {
847
- // Apply config defaults
848
- cfg = this.cfg.extend(cfg);
849
-
850
- // Derive key and other params
851
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
852
-
853
- // Add IV to config
854
- cfg.iv = derivedParams.iv;
855
-
856
- // Encrypt
857
- var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
858
-
859
- // Mix in derived params
860
- ciphertext.mixIn(derivedParams);
861
-
862
- return ciphertext;
863
- },
864
-
865
- /**
866
- * Decrypts serialized ciphertext using a password.
867
- *
868
- * @param {Cipher} cipher The cipher algorithm to use.
869
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
870
- * @param {string} password The password.
871
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
872
- *
873
- * @return {WordArray} The plaintext.
874
- *
875
- * @static
876
- *
877
- * @example
878
- *
879
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
880
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
881
- */
882
- decrypt: function (cipher, ciphertext, password, cfg) {
883
- // Apply config defaults
884
- cfg = this.cfg.extend(cfg);
885
-
886
- // Convert string to CipherParams
887
- ciphertext = this._parse(ciphertext, cfg.format);
888
-
889
- // Derive key and other params
890
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
891
-
892
- // Add IV to config
893
- cfg.iv = derivedParams.iv;
894
-
895
- // Decrypt
896
- var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
897
-
898
- return plaintext;
899
- }
900
- });
901
- }());
902
-
903
-
904
- }));
905
- } (cipherCore));
906
- return cipherCore.exports;
907
- }
908
-
909
- export { requireCipherCore as __require };