@medipass/web-sdk 13.0.0 → 13.0.1

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 (386) hide show
  1. package/dist/_virtual/rolldown_runtime.js +1 -25
  2. package/dist/index.js +14 -17
  3. package/dist/index.js.map +1 -1
  4. package/dist/resources/accounts.js +4 -5
  5. package/dist/resources/accounts.js.map +1 -1
  6. package/dist/resources/auth.js +5 -7
  7. package/dist/resources/auth.js.map +1 -1
  8. package/dist/resources/devices.js +5 -6
  9. package/dist/resources/devices.js.map +1 -1
  10. package/dist/resources/members.js +4 -5
  11. package/dist/resources/members.js.map +1 -1
  12. package/dist/resources/payments.js +3 -4
  13. package/dist/resources/payments.js.map +1 -1
  14. package/dist/resources/self-checkout-sessions.js +8 -9
  15. package/dist/resources/self-checkout-sessions.js.map +1 -1
  16. package/dist/services/storage.js +5 -9
  17. package/dist/services/storage.js.map +1 -1
  18. package/dist/services/version.js +8 -10
  19. package/dist/services/version.js.map +1 -1
  20. package/dist/utils/does-param-exist.js +2 -4
  21. package/dist/utils/does-param-exist.js.map +1 -1
  22. package/dist/utils/professions.js +5 -7
  23. package/dist/utils/professions.js.map +1 -1
  24. package/dist/utils/request.js +3 -5
  25. package/dist/utils/request.js.map +1 -1
  26. package/dist/utils/staff.js +6 -8
  27. package/dist/utils/staff.js.map +1 -1
  28. package/package.json +10 -12
  29. package/dist/node_modules/compare-versions/index.js +0 -60
  30. package/dist/node_modules/compare-versions/index.js.map +0 -1
  31. package/dist/node_modules/jwt-decode/build/esm/index.js +0 -50
  32. package/dist/node_modules/jwt-decode/build/esm/index.js.map +0 -1
  33. package/dist/node_modules/lodash/_DataView.js +0 -15
  34. package/dist/node_modules/lodash/_DataView.js.map +0 -1
  35. package/dist/node_modules/lodash/_Hash.js +0 -38
  36. package/dist/node_modules/lodash/_Hash.js.map +0 -1
  37. package/dist/node_modules/lodash/_ListCache.js +0 -38
  38. package/dist/node_modules/lodash/_ListCache.js.map +0 -1
  39. package/dist/node_modules/lodash/_Map.js +0 -15
  40. package/dist/node_modules/lodash/_Map.js.map +0 -1
  41. package/dist/node_modules/lodash/_MapCache.js +0 -38
  42. package/dist/node_modules/lodash/_MapCache.js.map +0 -1
  43. package/dist/node_modules/lodash/_Promise.js +0 -15
  44. package/dist/node_modules/lodash/_Promise.js.map +0 -1
  45. package/dist/node_modules/lodash/_Set.js +0 -15
  46. package/dist/node_modules/lodash/_Set.js.map +0 -1
  47. package/dist/node_modules/lodash/_SetCache.js +0 -31
  48. package/dist/node_modules/lodash/_SetCache.js.map +0 -1
  49. package/dist/node_modules/lodash/_Stack.js +0 -34
  50. package/dist/node_modules/lodash/_Stack.js.map +0 -1
  51. package/dist/node_modules/lodash/_Symbol.js +0 -15
  52. package/dist/node_modules/lodash/_Symbol.js.map +0 -1
  53. package/dist/node_modules/lodash/_Uint8Array.js +0 -15
  54. package/dist/node_modules/lodash/_Uint8Array.js.map +0 -1
  55. package/dist/node_modules/lodash/_WeakMap.js +0 -15
  56. package/dist/node_modules/lodash/_WeakMap.js.map +0 -1
  57. package/dist/node_modules/lodash/_apply.js +0 -31
  58. package/dist/node_modules/lodash/_apply.js.map +0 -1
  59. package/dist/node_modules/lodash/_arrayFilter.js +0 -29
  60. package/dist/node_modules/lodash/_arrayFilter.js.map +0 -1
  61. package/dist/node_modules/lodash/_arrayIncludes.js +0 -26
  62. package/dist/node_modules/lodash/_arrayIncludes.js.map +0 -1
  63. package/dist/node_modules/lodash/_arrayIncludesWith.js +0 -26
  64. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +0 -1
  65. package/dist/node_modules/lodash/_arrayLikeKeys.js +0 -34
  66. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +0 -1
  67. package/dist/node_modules/lodash/_arrayMap.js +0 -26
  68. package/dist/node_modules/lodash/_arrayMap.js.map +0 -1
  69. package/dist/node_modules/lodash/_arrayPush.js +0 -25
  70. package/dist/node_modules/lodash/_arrayPush.js.map +0 -1
  71. package/dist/node_modules/lodash/_arraySome.js +0 -27
  72. package/dist/node_modules/lodash/_arraySome.js.map +0 -1
  73. package/dist/node_modules/lodash/_assignMergeValue.js +0 -27
  74. package/dist/node_modules/lodash/_assignMergeValue.js.map +0 -1
  75. package/dist/node_modules/lodash/_assignValue.js +0 -31
  76. package/dist/node_modules/lodash/_assignValue.js.map +0 -1
  77. package/dist/node_modules/lodash/_assocIndexOf.js +0 -27
  78. package/dist/node_modules/lodash/_assocIndexOf.js.map +0 -1
  79. package/dist/node_modules/lodash/_baseAssignValue.js +0 -32
  80. package/dist/node_modules/lodash/_baseAssignValue.js.map +0 -1
  81. package/dist/node_modules/lodash/_baseCreate.js +0 -35
  82. package/dist/node_modules/lodash/_baseCreate.js.map +0 -1
  83. package/dist/node_modules/lodash/_baseFindIndex.js +0 -28
  84. package/dist/node_modules/lodash/_baseFindIndex.js.map +0 -1
  85. package/dist/node_modules/lodash/_baseFlatten.js +0 -38
  86. package/dist/node_modules/lodash/_baseFlatten.js.map +0 -1
  87. package/dist/node_modules/lodash/_baseFor.js +0 -25
  88. package/dist/node_modules/lodash/_baseFor.js.map +0 -1
  89. package/dist/node_modules/lodash/_baseForOwn.js +0 -26
  90. package/dist/node_modules/lodash/_baseForOwn.js.map +0 -1
  91. package/dist/node_modules/lodash/_baseGet.js +0 -29
  92. package/dist/node_modules/lodash/_baseGet.js.map +0 -1
  93. package/dist/node_modules/lodash/_baseGetAllKeys.js +0 -30
  94. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +0 -1
  95. package/dist/node_modules/lodash/_baseGetTag.js +0 -31
  96. package/dist/node_modules/lodash/_baseGetTag.js.map +0 -1
  97. package/dist/node_modules/lodash/_baseHasIn.js +0 -23
  98. package/dist/node_modules/lodash/_baseHasIn.js.map +0 -1
  99. package/dist/node_modules/lodash/_baseIndexOf.js +0 -28
  100. package/dist/node_modules/lodash/_baseIndexOf.js.map +0 -1
  101. package/dist/node_modules/lodash/_baseIsArguments.js +0 -27
  102. package/dist/node_modules/lodash/_baseIsArguments.js.map +0 -1
  103. package/dist/node_modules/lodash/_baseIsEqual.js +0 -34
  104. package/dist/node_modules/lodash/_baseIsEqual.js.map +0 -1
  105. package/dist/node_modules/lodash/_baseIsEqualDeep.js +0 -67
  106. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +0 -1
  107. package/dist/node_modules/lodash/_baseIsMatch.js +0 -48
  108. package/dist/node_modules/lodash/_baseIsMatch.js.map +0 -1
  109. package/dist/node_modules/lodash/_baseIsNaN.js +0 -22
  110. package/dist/node_modules/lodash/_baseIsNaN.js.map +0 -1
  111. package/dist/node_modules/lodash/_baseIsNative.js +0 -44
  112. package/dist/node_modules/lodash/_baseIsNative.js.map +0 -1
  113. package/dist/node_modules/lodash/_baseIsTypedArray.js +0 -33
  114. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +0 -1
  115. package/dist/node_modules/lodash/_baseIteratee.js +0 -31
  116. package/dist/node_modules/lodash/_baseIteratee.js.map +0 -1
  117. package/dist/node_modules/lodash/_baseKeys.js +0 -30
  118. package/dist/node_modules/lodash/_baseKeys.js.map +0 -1
  119. package/dist/node_modules/lodash/_baseKeysIn.js +0 -31
  120. package/dist/node_modules/lodash/_baseKeysIn.js.map +0 -1
  121. package/dist/node_modules/lodash/_baseMatches.js +0 -30
  122. package/dist/node_modules/lodash/_baseMatches.js.map +0 -1
  123. package/dist/node_modules/lodash/_baseMatchesProperty.js +0 -37
  124. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +0 -1
  125. package/dist/node_modules/lodash/_baseMerge.js +0 -43
  126. package/dist/node_modules/lodash/_baseMerge.js.map +0 -1
  127. package/dist/node_modules/lodash/_baseMergeDeep.js +0 -76
  128. package/dist/node_modules/lodash/_baseMergeDeep.js.map +0 -1
  129. package/dist/node_modules/lodash/_basePickBy.js +0 -33
  130. package/dist/node_modules/lodash/_basePickBy.js.map +0 -1
  131. package/dist/node_modules/lodash/_baseProperty.js +0 -24
  132. package/dist/node_modules/lodash/_baseProperty.js.map +0 -1
  133. package/dist/node_modules/lodash/_basePropertyDeep.js +0 -26
  134. package/dist/node_modules/lodash/_basePropertyDeep.js.map +0 -1
  135. package/dist/node_modules/lodash/_baseRest.js +0 -27
  136. package/dist/node_modules/lodash/_baseRest.js.map +0 -1
  137. package/dist/node_modules/lodash/_baseSet.js +0 -45
  138. package/dist/node_modules/lodash/_baseSet.js.map +0 -1
  139. package/dist/node_modules/lodash/_baseSetToString.js +0 -32
  140. package/dist/node_modules/lodash/_baseSetToString.js.map +0 -1
  141. package/dist/node_modules/lodash/_baseTimes.js +0 -26
  142. package/dist/node_modules/lodash/_baseTimes.js.map +0 -1
  143. package/dist/node_modules/lodash/_baseToString.js +0 -36
  144. package/dist/node_modules/lodash/_baseToString.js.map +0 -1
  145. package/dist/node_modules/lodash/_baseUnary.js +0 -24
  146. package/dist/node_modules/lodash/_baseUnary.js.map +0 -1
  147. package/dist/node_modules/lodash/_baseUniq.js +0 -57
  148. package/dist/node_modules/lodash/_baseUniq.js.map +0 -1
  149. package/dist/node_modules/lodash/_cacheHas.js +0 -23
  150. package/dist/node_modules/lodash/_cacheHas.js.map +0 -1
  151. package/dist/node_modules/lodash/_castFunction.js +0 -24
  152. package/dist/node_modules/lodash/_castFunction.js.map +0 -1
  153. package/dist/node_modules/lodash/_castPath.js +0 -29
  154. package/dist/node_modules/lodash/_castPath.js.map +0 -1
  155. package/dist/node_modules/lodash/_cloneArrayBuffer.js +0 -26
  156. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +0 -1
  157. package/dist/node_modules/lodash/_cloneBuffer.js +0 -34
  158. package/dist/node_modules/lodash/_cloneBuffer.js.map +0 -1
  159. package/dist/node_modules/lodash/_cloneTypedArray.js +0 -26
  160. package/dist/node_modules/lodash/_cloneTypedArray.js.map +0 -1
  161. package/dist/node_modules/lodash/_copyArray.js +0 -26
  162. package/dist/node_modules/lodash/_copyArray.js.map +0 -1
  163. package/dist/node_modules/lodash/_copyObject.js +0 -38
  164. package/dist/node_modules/lodash/_copyObject.js.map +0 -1
  165. package/dist/node_modules/lodash/_coreJsData.js +0 -15
  166. package/dist/node_modules/lodash/_coreJsData.js.map +0 -1
  167. package/dist/node_modules/lodash/_createAssigner.js +0 -38
  168. package/dist/node_modules/lodash/_createAssigner.js.map +0 -1
  169. package/dist/node_modules/lodash/_createBaseFor.js +0 -29
  170. package/dist/node_modules/lodash/_createBaseFor.js.map +0 -1
  171. package/dist/node_modules/lodash/_createSet.js +0 -26
  172. package/dist/node_modules/lodash/_createSet.js.map +0 -1
  173. package/dist/node_modules/lodash/_defineProperty.js +0 -21
  174. package/dist/node_modules/lodash/_defineProperty.js.map +0 -1
  175. package/dist/node_modules/lodash/_equalArrays.js +0 -64
  176. package/dist/node_modules/lodash/_equalArrays.js.map +0 -1
  177. package/dist/node_modules/lodash/_equalByTag.js +0 -74
  178. package/dist/node_modules/lodash/_equalByTag.js.map +0 -1
  179. package/dist/node_modules/lodash/_equalObjects.js +0 -64
  180. package/dist/node_modules/lodash/_equalObjects.js.map +0 -1
  181. package/dist/node_modules/lodash/_freeGlobal.js +0 -14
  182. package/dist/node_modules/lodash/_freeGlobal.js.map +0 -1
  183. package/dist/node_modules/lodash/_getAllKeys.js +0 -26
  184. package/dist/node_modules/lodash/_getAllKeys.js.map +0 -1
  185. package/dist/node_modules/lodash/_getAllKeysIn.js +0 -27
  186. package/dist/node_modules/lodash/_getAllKeysIn.js.map +0 -1
  187. package/dist/node_modules/lodash/_getMapData.js +0 -26
  188. package/dist/node_modules/lodash/_getMapData.js.map +0 -1
  189. package/dist/node_modules/lodash/_getMatchData.js +0 -34
  190. package/dist/node_modules/lodash/_getMatchData.js.map +0 -1
  191. package/dist/node_modules/lodash/_getNative.js +0 -27
  192. package/dist/node_modules/lodash/_getNative.js.map +0 -1
  193. package/dist/node_modules/lodash/_getPrototype.js +0 -15
  194. package/dist/node_modules/lodash/_getPrototype.js.map +0 -1
  195. package/dist/node_modules/lodash/_getRawTag.js +0 -44
  196. package/dist/node_modules/lodash/_getRawTag.js.map +0 -1
  197. package/dist/node_modules/lodash/_getSymbols.js +0 -32
  198. package/dist/node_modules/lodash/_getSymbols.js.map +0 -1
  199. package/dist/node_modules/lodash/_getSymbolsIn.js +0 -32
  200. package/dist/node_modules/lodash/_getSymbolsIn.js.map +0 -1
  201. package/dist/node_modules/lodash/_getTag.js +0 -44
  202. package/dist/node_modules/lodash/_getTag.js.map +0 -1
  203. package/dist/node_modules/lodash/_getValue.js +0 -23
  204. package/dist/node_modules/lodash/_getValue.js.map +0 -1
  205. package/dist/node_modules/lodash/_hasPath.js +0 -40
  206. package/dist/node_modules/lodash/_hasPath.js.map +0 -1
  207. package/dist/node_modules/lodash/_hashClear.js +0 -25
  208. package/dist/node_modules/lodash/_hashClear.js.map +0 -1
  209. package/dist/node_modules/lodash/_hashDelete.js +0 -27
  210. package/dist/node_modules/lodash/_hashDelete.js.map +0 -1
  211. package/dist/node_modules/lodash/_hashGet.js +0 -35
  212. package/dist/node_modules/lodash/_hashGet.js.map +0 -1
  213. package/dist/node_modules/lodash/_hashHas.js +0 -29
  214. package/dist/node_modules/lodash/_hashHas.js.map +0 -1
  215. package/dist/node_modules/lodash/_hashSet.js +0 -32
  216. package/dist/node_modules/lodash/_hashSet.js.map +0 -1
  217. package/dist/node_modules/lodash/_initCloneObject.js +0 -26
  218. package/dist/node_modules/lodash/_initCloneObject.js.map +0 -1
  219. package/dist/node_modules/lodash/_isFlattenable.js +0 -28
  220. package/dist/node_modules/lodash/_isFlattenable.js.map +0 -1
  221. package/dist/node_modules/lodash/_isIndex.js +0 -29
  222. package/dist/node_modules/lodash/_isIndex.js.map +0 -1
  223. package/dist/node_modules/lodash/_isIterateeCall.js +0 -33
  224. package/dist/node_modules/lodash/_isIterateeCall.js.map +0 -1
  225. package/dist/node_modules/lodash/_isKey.js +0 -31
  226. package/dist/node_modules/lodash/_isKey.js.map +0 -1
  227. package/dist/node_modules/lodash/_isKeyable.js +0 -23
  228. package/dist/node_modules/lodash/_isKeyable.js.map +0 -1
  229. package/dist/node_modules/lodash/_isMasked.js +0 -29
  230. package/dist/node_modules/lodash/_isMasked.js.map +0 -1
  231. package/dist/node_modules/lodash/_isPrototype.js +0 -25
  232. package/dist/node_modules/lodash/_isPrototype.js.map +0 -1
  233. package/dist/node_modules/lodash/_isStrictComparable.js +0 -25
  234. package/dist/node_modules/lodash/_isStrictComparable.js.map +0 -1
  235. package/dist/node_modules/lodash/_listCacheClear.js +0 -23
  236. package/dist/node_modules/lodash/_listCacheClear.js.map +0 -1
  237. package/dist/node_modules/lodash/_listCacheDelete.js +0 -33
  238. package/dist/node_modules/lodash/_listCacheDelete.js.map +0 -1
  239. package/dist/node_modules/lodash/_listCacheGet.js +0 -27
  240. package/dist/node_modules/lodash/_listCacheGet.js.map +0 -1
  241. package/dist/node_modules/lodash/_listCacheHas.js +0 -26
  242. package/dist/node_modules/lodash/_listCacheHas.js.map +0 -1
  243. package/dist/node_modules/lodash/_listCacheSet.js +0 -32
  244. package/dist/node_modules/lodash/_listCacheSet.js.map +0 -1
  245. package/dist/node_modules/lodash/_mapCacheClear.js +0 -31
  246. package/dist/node_modules/lodash/_mapCacheClear.js.map +0 -1
  247. package/dist/node_modules/lodash/_mapCacheDelete.js +0 -28
  248. package/dist/node_modules/lodash/_mapCacheDelete.js.map +0 -1
  249. package/dist/node_modules/lodash/_mapCacheGet.js +0 -26
  250. package/dist/node_modules/lodash/_mapCacheGet.js.map +0 -1
  251. package/dist/node_modules/lodash/_mapCacheHas.js +0 -26
  252. package/dist/node_modules/lodash/_mapCacheHas.js.map +0 -1
  253. package/dist/node_modules/lodash/_mapCacheSet.js +0 -30
  254. package/dist/node_modules/lodash/_mapCacheSet.js.map +0 -1
  255. package/dist/node_modules/lodash/_mapToArray.js +0 -26
  256. package/dist/node_modules/lodash/_mapToArray.js.map +0 -1
  257. package/dist/node_modules/lodash/_matchesStrictComparable.js +0 -27
  258. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +0 -1
  259. package/dist/node_modules/lodash/_memoizeCapped.js +0 -32
  260. package/dist/node_modules/lodash/_memoizeCapped.js.map +0 -1
  261. package/dist/node_modules/lodash/_nativeCreate.js +0 -14
  262. package/dist/node_modules/lodash/_nativeCreate.js.map +0 -1
  263. package/dist/node_modules/lodash/_nativeKeys.js +0 -14
  264. package/dist/node_modules/lodash/_nativeKeys.js.map +0 -1
  265. package/dist/node_modules/lodash/_nativeKeysIn.js +0 -26
  266. package/dist/node_modules/lodash/_nativeKeysIn.js.map +0 -1
  267. package/dist/node_modules/lodash/_nodeUtil.js +0 -28
  268. package/dist/node_modules/lodash/_nodeUtil.js.map +0 -1
  269. package/dist/node_modules/lodash/_objectToString.js +0 -28
  270. package/dist/node_modules/lodash/_objectToString.js.map +0 -1
  271. package/dist/node_modules/lodash/_overArg.js +0 -25
  272. package/dist/node_modules/lodash/_overArg.js.map +0 -1
  273. package/dist/node_modules/lodash/_overRest.js +0 -36
  274. package/dist/node_modules/lodash/_overRest.js.map +0 -1
  275. package/dist/node_modules/lodash/_root.js +0 -18
  276. package/dist/node_modules/lodash/_root.js.map +0 -1
  277. package/dist/node_modules/lodash/_safeGet.js +0 -25
  278. package/dist/node_modules/lodash/_safeGet.js.map +0 -1
  279. package/dist/node_modules/lodash/_setCacheAdd.js +0 -28
  280. package/dist/node_modules/lodash/_setCacheAdd.js.map +0 -1
  281. package/dist/node_modules/lodash/_setCacheHas.js +0 -24
  282. package/dist/node_modules/lodash/_setCacheHas.js.map +0 -1
  283. package/dist/node_modules/lodash/_setToArray.js +0 -26
  284. package/dist/node_modules/lodash/_setToArray.js.map +0 -1
  285. package/dist/node_modules/lodash/_setToString.js +0 -24
  286. package/dist/node_modules/lodash/_setToString.js.map +0 -1
  287. package/dist/node_modules/lodash/_shortOut.js +0 -35
  288. package/dist/node_modules/lodash/_shortOut.js.map +0 -1
  289. package/dist/node_modules/lodash/_stackClear.js +0 -25
  290. package/dist/node_modules/lodash/_stackClear.js.map +0 -1
  291. package/dist/node_modules/lodash/_stackDelete.js +0 -26
  292. package/dist/node_modules/lodash/_stackDelete.js.map +0 -1
  293. package/dist/node_modules/lodash/_stackGet.js +0 -24
  294. package/dist/node_modules/lodash/_stackGet.js.map +0 -1
  295. package/dist/node_modules/lodash/_stackHas.js +0 -24
  296. package/dist/node_modules/lodash/_stackHas.js.map +0 -1
  297. package/dist/node_modules/lodash/_stackSet.js +0 -43
  298. package/dist/node_modules/lodash/_stackSet.js.map +0 -1
  299. package/dist/node_modules/lodash/_strictIndexOf.js +0 -27
  300. package/dist/node_modules/lodash/_strictIndexOf.js.map +0 -1
  301. package/dist/node_modules/lodash/_stringToPath.js +0 -33
  302. package/dist/node_modules/lodash/_stringToPath.js.map +0 -1
  303. package/dist/node_modules/lodash/_toKey.js +0 -28
  304. package/dist/node_modules/lodash/_toKey.js.map +0 -1
  305. package/dist/node_modules/lodash/_toSource.js +0 -32
  306. package/dist/node_modules/lodash/_toSource.js.map +0 -1
  307. package/dist/node_modules/lodash/constant.js +0 -36
  308. package/dist/node_modules/lodash/constant.js.map +0 -1
  309. package/dist/node_modules/lodash/eq.js +0 -47
  310. package/dist/node_modules/lodash/eq.js.map +0 -1
  311. package/dist/node_modules/lodash/flatten.js +0 -31
  312. package/dist/node_modules/lodash/flatten.js.map +0 -1
  313. package/dist/node_modules/lodash/forOwn.js +0 -46
  314. package/dist/node_modules/lodash/forOwn.js.map +0 -1
  315. package/dist/node_modules/lodash/get.js +0 -43
  316. package/dist/node_modules/lodash/get.js.map +0 -1
  317. package/dist/node_modules/lodash/hasIn.js +0 -44
  318. package/dist/node_modules/lodash/hasIn.js.map +0 -1
  319. package/dist/node_modules/lodash/identity.js +0 -31
  320. package/dist/node_modules/lodash/identity.js.map +0 -1
  321. package/dist/node_modules/lodash/isArguments.js +0 -44
  322. package/dist/node_modules/lodash/isArguments.js.map +0 -1
  323. package/dist/node_modules/lodash/isArray.js +0 -36
  324. package/dist/node_modules/lodash/isArray.js.map +0 -1
  325. package/dist/node_modules/lodash/isArrayLike.js +0 -43
  326. package/dist/node_modules/lodash/isArrayLike.js.map +0 -1
  327. package/dist/node_modules/lodash/isArrayLikeObject.js +0 -43
  328. package/dist/node_modules/lodash/isArrayLikeObject.js.map +0 -1
  329. package/dist/node_modules/lodash/isBuffer.js +0 -39
  330. package/dist/node_modules/lodash/isBuffer.js.map +0 -1
  331. package/dist/node_modules/lodash/isEmpty.js +0 -67
  332. package/dist/node_modules/lodash/isEmpty.js.map +0 -1
  333. package/dist/node_modules/lodash/isFunction.js +0 -39
  334. package/dist/node_modules/lodash/isFunction.js.map +0 -1
  335. package/dist/node_modules/lodash/isLength.js +0 -43
  336. package/dist/node_modules/lodash/isLength.js.map +0 -1
  337. package/dist/node_modules/lodash/isObject.js +0 -41
  338. package/dist/node_modules/lodash/isObject.js.map +0 -1
  339. package/dist/node_modules/lodash/isObjectLike.js +0 -39
  340. package/dist/node_modules/lodash/isObjectLike.js.map +0 -1
  341. package/dist/node_modules/lodash/isPlainObject.js +0 -61
  342. package/dist/node_modules/lodash/isPlainObject.js.map +0 -1
  343. package/dist/node_modules/lodash/isSymbol.js +0 -37
  344. package/dist/node_modules/lodash/isSymbol.js.map +0 -1
  345. package/dist/node_modules/lodash/isTypedArray.js +0 -35
  346. package/dist/node_modules/lodash/isTypedArray.js.map +0 -1
  347. package/dist/node_modules/lodash/keys.js +0 -47
  348. package/dist/node_modules/lodash/keys.js.map +0 -1
  349. package/dist/node_modules/lodash/keysIn.js +0 -42
  350. package/dist/node_modules/lodash/keysIn.js.map +0 -1
  351. package/dist/node_modules/lodash/memoize.js +0 -73
  352. package/dist/node_modules/lodash/memoize.js.map +0 -1
  353. package/dist/node_modules/lodash/merge.js +0 -49
  354. package/dist/node_modules/lodash/merge.js.map +0 -1
  355. package/dist/node_modules/lodash/negate.js +0 -47
  356. package/dist/node_modules/lodash/negate.js.map +0 -1
  357. package/dist/node_modules/lodash/noop.js +0 -25
  358. package/dist/node_modules/lodash/noop.js.map +0 -1
  359. package/dist/node_modules/lodash/omitBy.js +0 -39
  360. package/dist/node_modules/lodash/omitBy.js.map +0 -1
  361. package/dist/node_modules/lodash/pickBy.js +0 -45
  362. package/dist/node_modules/lodash/pickBy.js.map +0 -1
  363. package/dist/node_modules/lodash/property.js +0 -42
  364. package/dist/node_modules/lodash/property.js.map +0 -1
  365. package/dist/node_modules/lodash/stubArray.js +0 -33
  366. package/dist/node_modules/lodash/stubArray.js.map +0 -1
  367. package/dist/node_modules/lodash/stubFalse.js +0 -28
  368. package/dist/node_modules/lodash/stubFalse.js.map +0 -1
  369. package/dist/node_modules/lodash/toPlainObject.js +0 -42
  370. package/dist/node_modules/lodash/toPlainObject.js.map +0 -1
  371. package/dist/node_modules/lodash/toString.js +0 -38
  372. package/dist/node_modules/lodash/toString.js.map +0 -1
  373. package/dist/node_modules/lodash/uniq.js +0 -35
  374. package/dist/node_modules/lodash/uniq.js.map +0 -1
  375. package/dist/node_modules/pify/index.js +0 -79
  376. package/dist/node_modules/pify/index.js.map +0 -1
  377. package/dist/node_modules/platform/platform.js +0 -891
  378. package/dist/node_modules/platform/platform.js.map +0 -1
  379. package/dist/node_modules/store/src/store-engine.js +0 -158
  380. package/dist/node_modules/store/src/store-engine.js.map +0 -1
  381. package/dist/node_modules/store/src/util.js +0 -98
  382. package/dist/node_modules/store/src/util.js.map +0 -1
  383. package/dist/node_modules/store/storages/localStorage.js +0 -42
  384. package/dist/node_modules/store/storages/localStorage.js.map +0 -1
  385. package/dist/node_modules/store/storages/sessionStorage.js +0 -42
  386. package/dist/node_modules/store/storages/sessionStorage.js.map +0 -1
@@ -1,891 +0,0 @@
1
- import { __commonJSMin } from "../../_virtual/rolldown_runtime.js";
2
-
3
- //#region ../../node_modules/platform/platform.js
4
- var require_platform = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- (function() {
6
- "use strict";
7
- /** Used to determine if values are of the language type `Object`. */
8
- var objectTypes = {
9
- "function": true,
10
- "object": true
11
- };
12
- /** Used as a reference to the global object. */
13
- var root = objectTypes[typeof window] && window || this;
14
- /** Detect free variable `exports`. */
15
- var freeExports = objectTypes[typeof exports] && exports;
16
- /** Detect free variable `module`. */
17
- var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;
18
- /** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */
19
- var freeGlobal = freeExports && freeModule && typeof global == "object" && global;
20
- if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) root = freeGlobal;
21
- /**
22
- * Used as the maximum length of an array-like object.
23
- * See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
24
- * for more details.
25
- */
26
- var maxSafeInteger = Math.pow(2, 53) - 1;
27
- /** Regular expression to detect Opera. */
28
- var reOpera = /\bOpera/;
29
- /** Used for native method references. */
30
- var objectProto = Object.prototype;
31
- /** Used to check for own properties of an object. */
32
- var hasOwnProperty = objectProto.hasOwnProperty;
33
- /** Used to resolve the internal `[[Class]]` of values. */
34
- var toString = objectProto.toString;
35
- /**
36
- * Capitalizes a string value.
37
- *
38
- * @private
39
- * @param {string} string The string to capitalize.
40
- * @returns {string} The capitalized string.
41
- */
42
- function capitalize(string) {
43
- string = String(string);
44
- return string.charAt(0).toUpperCase() + string.slice(1);
45
- }
46
- /**
47
- * A utility function to clean up the OS name.
48
- *
49
- * @private
50
- * @param {string} os The OS name to clean up.
51
- * @param {string} [pattern] A `RegExp` pattern matching the OS name.
52
- * @param {string} [label] A label for the OS.
53
- */
54
- function cleanupOS(os, pattern, label) {
55
- var data = {
56
- "10.0": "10",
57
- "6.4": "10 Technical Preview",
58
- "6.3": "8.1",
59
- "6.2": "8",
60
- "6.1": "Server 2008 R2 / 7",
61
- "6.0": "Server 2008 / Vista",
62
- "5.2": "Server 2003 / XP 64-bit",
63
- "5.1": "XP",
64
- "5.01": "2000 SP1",
65
- "5.0": "2000",
66
- "4.0": "NT",
67
- "4.90": "ME"
68
- };
69
- if (pattern && label && /^Win/i.test(os) && !/^Windows Phone /i.test(os) && (data = data[/[\d.]+$/.exec(os)])) os = "Windows " + data;
70
- os = String(os);
71
- if (pattern && label) os = os.replace(RegExp(pattern, "i"), label);
72
- os = format(os.replace(/ ce$/i, " CE").replace(/\bhpw/i, "web").replace(/\bMacintosh\b/, "Mac OS").replace(/_PowerPC\b/i, " OS").replace(/\b(OS X) [^ \d]+/i, "$1").replace(/\bMac (OS X)\b/, "$1").replace(/\/(\d)/, " $1").replace(/_/g, ".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, "").replace(/\bx86\.64\b/gi, "x86_64").replace(/\b(Windows Phone) OS\b/, "$1").replace(/\b(Chrome OS \w+) [\d.]+\b/, "$1").split(" on ")[0]);
73
- return os;
74
- }
75
- /**
76
- * An iteration utility for arrays and objects.
77
- *
78
- * @private
79
- * @param {Array|Object} object The object to iterate over.
80
- * @param {Function} callback The function called per iteration.
81
- */
82
- function each(object, callback) {
83
- var index = -1, length = object ? object.length : 0;
84
- if (typeof length == "number" && length > -1 && length <= maxSafeInteger) while (++index < length) callback(object[index], index, object);
85
- else forOwn(object, callback);
86
- }
87
- /**
88
- * Trim and conditionally capitalize string values.
89
- *
90
- * @private
91
- * @param {string} string The string to format.
92
- * @returns {string} The formatted string.
93
- */
94
- function format(string) {
95
- string = trim(string);
96
- return /^(?:webOS|i(?:OS|P))/.test(string) ? string : capitalize(string);
97
- }
98
- /**
99
- * Iterates over an object's own properties, executing the `callback` for each.
100
- *
101
- * @private
102
- * @param {Object} object The object to iterate over.
103
- * @param {Function} callback The function executed per own property.
104
- */
105
- function forOwn(object, callback) {
106
- for (var key in object) if (hasOwnProperty.call(object, key)) callback(object[key], key, object);
107
- }
108
- /**
109
- * Gets the internal `[[Class]]` of a value.
110
- *
111
- * @private
112
- * @param {*} value The value.
113
- * @returns {string} The `[[Class]]`.
114
- */
115
- function getClassOf(value) {
116
- return value == null ? capitalize(value) : toString.call(value).slice(8, -1);
117
- }
118
- /**
119
- * Host objects can return type values that are different from their actual
120
- * data type. The objects we are concerned with usually return non-primitive
121
- * types of "object", "function", or "unknown".
122
- *
123
- * @private
124
- * @param {*} object The owner of the property.
125
- * @param {string} property The property to check.
126
- * @returns {boolean} Returns `true` if the property value is a non-primitive, else `false`.
127
- */
128
- function isHostType(object, property) {
129
- var type = object != null ? typeof object[property] : "number";
130
- return !/^(?:boolean|number|string|undefined)$/.test(type) && (type == "object" ? !!object[property] : true);
131
- }
132
- /**
133
- * Prepares a string for use in a `RegExp` by making hyphens and spaces optional.
134
- *
135
- * @private
136
- * @param {string} string The string to qualify.
137
- * @returns {string} The qualified string.
138
- */
139
- function qualify(string) {
140
- return String(string).replace(/([ -])(?!$)/g, "$1?");
141
- }
142
- /**
143
- * A bare-bones `Array#reduce` like utility function.
144
- *
145
- * @private
146
- * @param {Array} array The array to iterate over.
147
- * @param {Function} callback The function called per iteration.
148
- * @returns {*} The accumulated result.
149
- */
150
- function reduce(array, callback) {
151
- var accumulator = null;
152
- each(array, function(value, index) {
153
- accumulator = callback(accumulator, value, index, array);
154
- });
155
- return accumulator;
156
- }
157
- /**
158
- * Removes leading and trailing whitespace from a string.
159
- *
160
- * @private
161
- * @param {string} string The string to trim.
162
- * @returns {string} The trimmed string.
163
- */
164
- function trim(string) {
165
- return String(string).replace(/^ +| +$/g, "");
166
- }
167
- /**
168
- * Creates a new platform object.
169
- *
170
- * @memberOf platform
171
- * @param {Object|string} [ua=navigator.userAgent] The user agent string or
172
- * context object.
173
- * @returns {Object} A platform object.
174
- */
175
- function parse(ua) {
176
- /** The environment context object. */
177
- var context = root;
178
- /** Used to flag when a custom context is provided. */
179
- var isCustomContext = ua && typeof ua == "object" && getClassOf(ua) != "String";
180
- if (isCustomContext) {
181
- context = ua;
182
- ua = null;
183
- }
184
- /** Browser navigator object. */
185
- var nav = context.navigator || {};
186
- /** Browser user agent string. */
187
- var userAgent = nav.userAgent || "";
188
- ua || (ua = userAgent);
189
- /** Used to detect if browser is like Chrome. */
190
- var likeChrome = isCustomContext ? !!nav.likeChrome : /\bChrome\b/.test(ua) && !/internal|\n/i.test(toString.toString());
191
- /** Internal `[[Class]]` value shortcuts. */
192
- var objectClass = "Object", airRuntimeClass = isCustomContext ? objectClass : "ScriptBridgingProxyObject", enviroClass = isCustomContext ? objectClass : "Environment", javaClass = isCustomContext && context.java ? "JavaPackage" : getClassOf(context.java), phantomClass = isCustomContext ? objectClass : "RuntimeObject";
193
- /** Detect Java environments. */
194
- var java = /\bJava/.test(javaClass) && context.java;
195
- /** Detect Rhino. */
196
- var rhino = java && getClassOf(context.environment) == enviroClass;
197
- /** A character to represent alpha. */
198
- var alpha = java ? "a" : "α";
199
- /** A character to represent beta. */
200
- var beta = java ? "b" : "β";
201
- /** Browser document object. */
202
- var doc = context.document || {};
203
- /**
204
- * Detect Opera browser (Presto-based).
205
- * http://www.howtocreate.co.uk/operaStuff/operaObject.html
206
- * http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/#operamini
207
- */
208
- var opera = context.operamini || context.opera;
209
- /** Opera `[[Class]]`. */
210
- var operaClass = reOpera.test(operaClass = isCustomContext && opera ? opera["[[Class]]"] : getClassOf(opera)) ? operaClass : opera = null;
211
- /** Temporary variable used over the script's lifetime. */
212
- var data;
213
- /** The CPU architecture. */
214
- var arch = ua;
215
- /** Platform description array. */
216
- var description = [];
217
- /** Platform alpha/beta indicator. */
218
- var prerelease = null;
219
- /** A flag to indicate that environment features should be used to resolve the platform. */
220
- var useFeatures = ua == userAgent;
221
- /** The browser/environment version. */
222
- var version = useFeatures && opera && typeof opera.version == "function" && opera.version();
223
- /** A flag to indicate if the OS ends with "/ Version" */
224
- var isSpecialCasedOS;
225
- var layout = getLayout([
226
- {
227
- "label": "EdgeHTML",
228
- "pattern": "Edge"
229
- },
230
- "Trident",
231
- {
232
- "label": "WebKit",
233
- "pattern": "AppleWebKit"
234
- },
235
- "iCab",
236
- "Presto",
237
- "NetFront",
238
- "Tasman",
239
- "KHTML",
240
- "Gecko"
241
- ]);
242
- var name = getName([
243
- "Adobe AIR",
244
- "Arora",
245
- "Avant Browser",
246
- "Breach",
247
- "Camino",
248
- "Electron",
249
- "Epiphany",
250
- "Fennec",
251
- "Flock",
252
- "Galeon",
253
- "GreenBrowser",
254
- "iCab",
255
- "Iceweasel",
256
- "K-Meleon",
257
- "Konqueror",
258
- "Lunascape",
259
- "Maxthon",
260
- {
261
- "label": "Microsoft Edge",
262
- "pattern": "Edge"
263
- },
264
- "Midori",
265
- "Nook Browser",
266
- "PaleMoon",
267
- "PhantomJS",
268
- "Raven",
269
- "Rekonq",
270
- "RockMelt",
271
- {
272
- "label": "Samsung Internet",
273
- "pattern": "SamsungBrowser"
274
- },
275
- "SeaMonkey",
276
- {
277
- "label": "Silk",
278
- "pattern": "(?:Cloud9|Silk-Accelerated)"
279
- },
280
- "Sleipnir",
281
- "SlimBrowser",
282
- {
283
- "label": "SRWare Iron",
284
- "pattern": "Iron"
285
- },
286
- "Sunrise",
287
- "Swiftfox",
288
- "Waterfox",
289
- "WebPositive",
290
- "Opera Mini",
291
- {
292
- "label": "Opera Mini",
293
- "pattern": "OPiOS"
294
- },
295
- "Opera",
296
- {
297
- "label": "Opera",
298
- "pattern": "OPR"
299
- },
300
- "Chrome",
301
- {
302
- "label": "Chrome Mobile",
303
- "pattern": "(?:CriOS|CrMo)"
304
- },
305
- {
306
- "label": "Firefox",
307
- "pattern": "(?:Firefox|Minefield)"
308
- },
309
- {
310
- "label": "Firefox for iOS",
311
- "pattern": "FxiOS"
312
- },
313
- {
314
- "label": "IE",
315
- "pattern": "IEMobile"
316
- },
317
- {
318
- "label": "IE",
319
- "pattern": "MSIE"
320
- },
321
- "Safari"
322
- ]);
323
- var product = getProduct([
324
- {
325
- "label": "BlackBerry",
326
- "pattern": "BB10"
327
- },
328
- "BlackBerry",
329
- {
330
- "label": "Galaxy S",
331
- "pattern": "GT-I9000"
332
- },
333
- {
334
- "label": "Galaxy S2",
335
- "pattern": "GT-I9100"
336
- },
337
- {
338
- "label": "Galaxy S3",
339
- "pattern": "GT-I9300"
340
- },
341
- {
342
- "label": "Galaxy S4",
343
- "pattern": "GT-I9500"
344
- },
345
- {
346
- "label": "Galaxy S5",
347
- "pattern": "SM-G900"
348
- },
349
- {
350
- "label": "Galaxy S6",
351
- "pattern": "SM-G920"
352
- },
353
- {
354
- "label": "Galaxy S6 Edge",
355
- "pattern": "SM-G925"
356
- },
357
- {
358
- "label": "Galaxy S7",
359
- "pattern": "SM-G930"
360
- },
361
- {
362
- "label": "Galaxy S7 Edge",
363
- "pattern": "SM-G935"
364
- },
365
- "Google TV",
366
- "Lumia",
367
- "iPad",
368
- "iPod",
369
- "iPhone",
370
- "Kindle",
371
- {
372
- "label": "Kindle Fire",
373
- "pattern": "(?:Cloud9|Silk-Accelerated)"
374
- },
375
- "Nexus",
376
- "Nook",
377
- "PlayBook",
378
- "PlayStation Vita",
379
- "PlayStation",
380
- "TouchPad",
381
- "Transformer",
382
- {
383
- "label": "Wii U",
384
- "pattern": "WiiU"
385
- },
386
- "Wii",
387
- "Xbox One",
388
- {
389
- "label": "Xbox 360",
390
- "pattern": "Xbox"
391
- },
392
- "Xoom"
393
- ]);
394
- var manufacturer = getManufacturer({
395
- "Apple": {
396
- "iPad": 1,
397
- "iPhone": 1,
398
- "iPod": 1
399
- },
400
- "Archos": {},
401
- "Amazon": {
402
- "Kindle": 1,
403
- "Kindle Fire": 1
404
- },
405
- "Asus": { "Transformer": 1 },
406
- "Barnes & Noble": { "Nook": 1 },
407
- "BlackBerry": { "PlayBook": 1 },
408
- "Google": {
409
- "Google TV": 1,
410
- "Nexus": 1
411
- },
412
- "HP": { "TouchPad": 1 },
413
- "HTC": {},
414
- "LG": {},
415
- "Microsoft": {
416
- "Xbox": 1,
417
- "Xbox One": 1
418
- },
419
- "Motorola": { "Xoom": 1 },
420
- "Nintendo": {
421
- "Wii U": 1,
422
- "Wii": 1
423
- },
424
- "Nokia": { "Lumia": 1 },
425
- "Samsung": {
426
- "Galaxy S": 1,
427
- "Galaxy S2": 1,
428
- "Galaxy S3": 1,
429
- "Galaxy S4": 1
430
- },
431
- "Sony": {
432
- "PlayStation": 1,
433
- "PlayStation Vita": 1
434
- }
435
- });
436
- var os = getOS([
437
- "Windows Phone",
438
- "Android",
439
- "CentOS",
440
- {
441
- "label": "Chrome OS",
442
- "pattern": "CrOS"
443
- },
444
- "Debian",
445
- "Fedora",
446
- "FreeBSD",
447
- "Gentoo",
448
- "Haiku",
449
- "Kubuntu",
450
- "Linux Mint",
451
- "OpenBSD",
452
- "Red Hat",
453
- "SuSE",
454
- "Ubuntu",
455
- "Xubuntu",
456
- "Cygwin",
457
- "Symbian OS",
458
- "hpwOS",
459
- "webOS ",
460
- "webOS",
461
- "Tablet OS",
462
- "Tizen",
463
- "Linux",
464
- "Mac OS X",
465
- "Macintosh",
466
- "Mac",
467
- "Windows 98;",
468
- "Windows "
469
- ]);
470
- /**
471
- * Picks the layout engine from an array of guesses.
472
- *
473
- * @private
474
- * @param {Array} guesses An array of guesses.
475
- * @returns {null|string} The detected layout engine.
476
- */
477
- function getLayout(guesses) {
478
- return reduce(guesses, function(result, guess) {
479
- return result || RegExp("\\b" + (guess.pattern || qualify(guess)) + "\\b", "i").exec(ua) && (guess.label || guess);
480
- });
481
- }
482
- /**
483
- * Picks the manufacturer from an array of guesses.
484
- *
485
- * @private
486
- * @param {Array} guesses An object of guesses.
487
- * @returns {null|string} The detected manufacturer.
488
- */
489
- function getManufacturer(guesses) {
490
- return reduce(guesses, function(result, value, key) {
491
- return result || (value[product] || value[/^[a-z]+(?: +[a-z]+\b)*/i.exec(product)] || RegExp("\\b" + qualify(key) + "(?:\\b|\\w*\\d)", "i").exec(ua)) && key;
492
- });
493
- }
494
- /**
495
- * Picks the browser name from an array of guesses.
496
- *
497
- * @private
498
- * @param {Array} guesses An array of guesses.
499
- * @returns {null|string} The detected browser name.
500
- */
501
- function getName(guesses) {
502
- return reduce(guesses, function(result, guess) {
503
- return result || RegExp("\\b" + (guess.pattern || qualify(guess)) + "\\b", "i").exec(ua) && (guess.label || guess);
504
- });
505
- }
506
- /**
507
- * Picks the OS name from an array of guesses.
508
- *
509
- * @private
510
- * @param {Array} guesses An array of guesses.
511
- * @returns {null|string} The detected OS name.
512
- */
513
- function getOS(guesses) {
514
- return reduce(guesses, function(result, guess) {
515
- var pattern = guess.pattern || qualify(guess);
516
- if (!result && (result = RegExp("\\b" + pattern + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(ua))) result = cleanupOS(result, pattern, guess.label || guess);
517
- return result;
518
- });
519
- }
520
- /**
521
- * Picks the product name from an array of guesses.
522
- *
523
- * @private
524
- * @param {Array} guesses An array of guesses.
525
- * @returns {null|string} The detected product name.
526
- */
527
- function getProduct(guesses) {
528
- return reduce(guesses, function(result, guess) {
529
- var pattern = guess.pattern || qualify(guess);
530
- if (!result && (result = RegExp("\\b" + pattern + " *\\d+[.\\w_]*", "i").exec(ua) || RegExp("\\b" + pattern + " *\\w+-[\\w]*", "i").exec(ua) || RegExp("\\b" + pattern + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(ua))) {
531
- if ((result = String(guess.label && !RegExp(pattern, "i").test(guess.label) ? guess.label : result).split("/"))[1] && !/[\d.]+/.test(result[0])) result[0] += " " + result[1];
532
- guess = guess.label || guess;
533
- result = format(result[0].replace(RegExp(pattern, "i"), guess).replace(RegExp("; *(?:" + guess + "[_-])?", "i"), " ").replace(RegExp("(" + guess + ")[-_.]?(\\w)", "i"), "$1 $2"));
534
- }
535
- return result;
536
- });
537
- }
538
- /**
539
- * Resolves the version using an array of UA patterns.
540
- *
541
- * @private
542
- * @param {Array} patterns An array of UA patterns.
543
- * @returns {null|string} The detected version.
544
- */
545
- function getVersion(patterns) {
546
- return reduce(patterns, function(result, pattern) {
547
- return result || (RegExp(pattern + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(ua) || 0)[1] || null;
548
- });
549
- }
550
- /**
551
- * Returns `platform.description` when the platform object is coerced to a string.
552
- *
553
- * @name toString
554
- * @memberOf platform
555
- * @returns {string} Returns `platform.description` if available, else an empty string.
556
- */
557
- function toStringPlatform() {
558
- return this.description || "";
559
- }
560
- layout && (layout = [layout]);
561
- if (manufacturer && !product) product = getProduct([manufacturer]);
562
- if (data = /\bGoogle TV\b/.exec(product)) product = data[0];
563
- if (/\bSimulator\b/i.test(ua)) product = (product ? product + " " : "") + "Simulator";
564
- if (name == "Opera Mini" && /\bOPiOS\b/.test(ua)) description.push("running in Turbo/Uncompressed mode");
565
- if (name == "IE" && /\blike iPhone OS\b/.test(ua)) {
566
- data = parse(ua.replace(/like iPhone OS/, ""));
567
- manufacturer = data.manufacturer;
568
- product = data.product;
569
- } else if (/^iP/.test(product)) {
570
- name || (name = "Safari");
571
- os = "iOS" + ((data = / OS ([\d_]+)/i.exec(ua)) ? " " + data[1].replace(/_/g, ".") : "");
572
- } else if (name == "Konqueror" && !/buntu/i.test(os)) os = "Kubuntu";
573
- else if (manufacturer && manufacturer != "Google" && (/Chrome/.test(name) && !/\bMobile Safari\b/i.test(ua) || /\bVita\b/.test(product)) || /\bAndroid\b/.test(os) && /^Chrome/.test(name) && /\bVersion\//i.test(ua)) {
574
- name = "Android Browser";
575
- os = /\bAndroid\b/.test(os) ? os : "Android";
576
- } else if (name == "Silk") {
577
- if (!/\bMobi/i.test(ua)) {
578
- os = "Android";
579
- description.unshift("desktop mode");
580
- }
581
- if (/Accelerated *= *true/i.test(ua)) description.unshift("accelerated");
582
- } else if (name == "PaleMoon" && (data = /\bFirefox\/([\d.]+)\b/.exec(ua))) description.push("identifying as Firefox " + data[1]);
583
- else if (name == "Firefox" && (data = /\b(Mobile|Tablet|TV)\b/i.exec(ua))) {
584
- os || (os = "Firefox OS");
585
- product || (product = data[1]);
586
- } else if (!name || (data = !/\bMinefield\b/i.test(ua) && /\b(?:Firefox|Safari)\b/.exec(name))) {
587
- if (name && !product && /[\/,]|^[^(]+?\)/.test(ua.slice(ua.indexOf(data + "/") + 8))) name = null;
588
- if ((data = product || manufacturer || os) && (product || manufacturer || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(os))) name = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(os) ? os : data) + " Browser";
589
- } else if (name == "Electron" && (data = (/\bChrome\/([\d.]+)\b/.exec(ua) || 0)[1])) description.push("Chromium " + data);
590
- if (!version) version = getVersion([
591
- "(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))",
592
- "Version",
593
- qualify(name),
594
- "(?:Firefox|Minefield|NetFront)"
595
- ]);
596
- if (data = layout == "iCab" && parseFloat(version) > 3 && "WebKit" || /\bOpera\b/.test(name) && (/\bOPR\b/.test(ua) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(ua) && !/^(?:Trident|EdgeHTML)$/.test(layout) && "WebKit" || !layout && /\bMSIE\b/i.test(ua) && (os == "Mac OS" ? "Tasman" : "Trident") || layout == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(name) && "NetFront") layout = [data];
597
- if (name == "IE" && (data = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ua) || 0)[1])) {
598
- name += " Mobile";
599
- os = "Windows Phone " + (/\+$/.test(data) ? data : data + ".x");
600
- description.unshift("desktop mode");
601
- } else if (/\bWPDesktop\b/i.test(ua)) {
602
- name = "IE Mobile";
603
- os = "Windows Phone 8.x";
604
- description.unshift("desktop mode");
605
- version || (version = (/\brv:([\d.]+)/.exec(ua) || 0)[1]);
606
- } else if (name != "IE" && layout == "Trident" && (data = /\brv:([\d.]+)/.exec(ua))) {
607
- if (name) description.push("identifying as " + name + (version ? " " + version : ""));
608
- name = "IE";
609
- version = data[1];
610
- }
611
- if (useFeatures) {
612
- if (isHostType(context, "global")) {
613
- if (java) {
614
- data = java.lang.System;
615
- arch = data.getProperty("os.arch");
616
- os = os || data.getProperty("os.name") + " " + data.getProperty("os.version");
617
- }
618
- if (rhino) {
619
- try {
620
- version = context.require("ringo/engine").version.join(".");
621
- name = "RingoJS";
622
- } catch (e) {
623
- if ((data = context.system) && data.global.system == context.system) {
624
- name = "Narwhal";
625
- os || (os = data[0].os || null);
626
- }
627
- }
628
- if (!name) name = "Rhino";
629
- } else if (typeof context.process == "object" && !context.process.browser && (data = context.process)) {
630
- if (typeof data.versions == "object") {
631
- if (typeof data.versions.electron == "string") {
632
- description.push("Node " + data.versions.node);
633
- name = "Electron";
634
- version = data.versions.electron;
635
- } else if (typeof data.versions.nw == "string") {
636
- description.push("Chromium " + version, "Node " + data.versions.node);
637
- name = "NW.js";
638
- version = data.versions.nw;
639
- }
640
- }
641
- if (!name) {
642
- name = "Node.js";
643
- arch = data.arch;
644
- os = data.platform;
645
- version = /[\d.]+/.exec(data.version);
646
- version = version ? version[0] : null;
647
- }
648
- }
649
- } else if (getClassOf(data = context.runtime) == airRuntimeClass) {
650
- name = "Adobe AIR";
651
- os = data.flash.system.Capabilities.os;
652
- } else if (getClassOf(data = context.phantom) == phantomClass) {
653
- name = "PhantomJS";
654
- version = (data = data.version || null) && data.major + "." + data.minor + "." + data.patch;
655
- } else if (typeof doc.documentMode == "number" && (data = /\bTrident\/(\d+)/i.exec(ua))) {
656
- version = [version, doc.documentMode];
657
- if ((data = +data[1] + 4) != version[1]) {
658
- description.push("IE " + version[1] + " mode");
659
- layout && (layout[1] = "");
660
- version[1] = data;
661
- }
662
- version = name == "IE" ? String(version[1].toFixed(1)) : version[0];
663
- } else if (typeof doc.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(name)) {
664
- description.push("masking as " + name + " " + version);
665
- name = "IE";
666
- version = "11.0";
667
- layout = ["Trident"];
668
- os = "Windows";
669
- }
670
- os = os && format(os);
671
- }
672
- if (version && (data = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(version) || /(?:alpha|beta)(?: ?\d)?/i.exec(ua + ";" + (useFeatures && nav.appMinorVersion)) || /\bMinefield\b/i.test(ua) && "a")) {
673
- prerelease = /b/i.test(data) ? "beta" : "alpha";
674
- version = version.replace(RegExp(data + "\\+?$"), "") + (prerelease == "beta" ? beta : alpha) + (/\d+\+?/.exec(data) || "");
675
- }
676
- if (name == "Fennec" || name == "Firefox" && /\b(?:Android|Firefox OS)\b/.test(os)) name = "Firefox Mobile";
677
- else if (name == "Maxthon" && version) version = version.replace(/\.[\d.]+/, ".x");
678
- else if (/\bXbox\b/i.test(product)) {
679
- if (product == "Xbox 360") os = null;
680
- if (product == "Xbox 360" && /\bIEMobile\b/.test(ua)) description.unshift("mobile mode");
681
- } else if ((/^(?:Chrome|IE|Opera)$/.test(name) || name && !product && !/Browser|Mobi/.test(name)) && (os == "Windows CE" || /Mobi/i.test(ua))) name += " Mobile";
682
- else if (name == "IE" && useFeatures) try {
683
- if (context.external === null) description.unshift("platform preview");
684
- } catch (e) {
685
- description.unshift("embedded");
686
- }
687
- else if ((/\bBlackBerry\b/.test(product) || /\bBB10\b/.test(ua)) && (data = (RegExp(product.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(ua) || 0)[1] || version)) {
688
- data = [data, /BB10/.test(ua)];
689
- os = (data[1] ? (product = null, manufacturer = "BlackBerry") : "Device Software") + " " + data[0];
690
- version = null;
691
- } else if (this != forOwn && product != "Wii" && (useFeatures && opera || /Opera/.test(name) && /\b(?:MSIE|Firefox)\b/i.test(ua) || name == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(os) || name == "IE" && (os && !/^Win/.test(os) && version > 5.5 || /\bWindows XP\b/.test(os) && version > 8 || version == 8 && !/\bTrident\b/.test(ua))) && !reOpera.test(data = parse.call(forOwn, ua.replace(reOpera, "") + ";")) && data.name) {
692
- data = "ing as " + data.name + ((data = data.version) ? " " + data : "");
693
- if (reOpera.test(name)) {
694
- if (/\bIE\b/.test(data) && os == "Mac OS") os = null;
695
- data = "identify" + data;
696
- } else {
697
- data = "mask" + data;
698
- if (operaClass) name = format(operaClass.replace(/([a-z])([A-Z])/g, "$1 $2"));
699
- else name = "Opera";
700
- if (/\bIE\b/.test(data)) os = null;
701
- if (!useFeatures) version = null;
702
- }
703
- layout = ["Presto"];
704
- description.push(data);
705
- }
706
- if (data = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(ua) || 0)[1]) {
707
- data = [parseFloat(data.replace(/\.(\d)$/, ".0$1")), data];
708
- if (name == "Safari" && data[1].slice(-1) == "+") {
709
- name = "WebKit Nightly";
710
- prerelease = "alpha";
711
- version = data[1].slice(0, -1);
712
- } else if (version == data[1] || version == (data[2] = (/\bSafari\/([\d.]+\+?)/i.exec(ua) || 0)[1])) version = null;
713
- data[1] = (/\bChrome\/([\d.]+)/i.exec(ua) || 0)[1];
714
- if (data[0] == 537.36 && data[2] == 537.36 && parseFloat(data[1]) >= 28 && layout == "WebKit") layout = ["Blink"];
715
- if (!useFeatures || !likeChrome && !data[1]) {
716
- layout && (layout[1] = "like Safari");
717
- data = (data = data[0], data < 400 ? 1 : data < 500 ? 2 : data < 526 ? 3 : data < 533 ? 4 : data < 534 ? "4+" : data < 535 ? 5 : data < 537 ? 6 : data < 538 ? 7 : data < 601 ? 8 : "8");
718
- } else {
719
- layout && (layout[1] = "like Chrome");
720
- data = data[1] || (data = data[0], data < 530 ? 1 : data < 532 ? 2 : data < 532.05 ? 3 : data < 533 ? 4 : data < 534.03 ? 5 : data < 534.07 ? 6 : data < 534.1 ? 7 : data < 534.13 ? 8 : data < 534.16 ? 9 : data < 534.24 ? 10 : data < 534.3 ? 11 : data < 535.01 ? 12 : data < 535.02 ? "13+" : data < 535.07 ? 15 : data < 535.11 ? 16 : data < 535.19 ? 17 : data < 536.05 ? 18 : data < 536.1 ? 19 : data < 537.01 ? 20 : data < 537.11 ? "21+" : data < 537.13 ? 23 : data < 537.18 ? 24 : data < 537.24 ? 25 : data < 537.36 ? 26 : layout != "Blink" ? "27" : "28");
721
- }
722
- layout && (layout[1] += " " + (data += typeof data == "number" ? ".x" : /[.+]/.test(data) ? "" : "+"));
723
- if (name == "Safari" && (!version || parseInt(version) > 45)) version = data;
724
- }
725
- if (name == "Opera" && (data = /\bzbov|zvav$/.exec(os))) {
726
- name += " ";
727
- description.unshift("desktop mode");
728
- if (data == "zvav") {
729
- name += "Mini";
730
- version = null;
731
- } else name += "Mobile";
732
- os = os.replace(RegExp(" *" + data + "$"), "");
733
- } else if (name == "Safari" && /\bChrome\b/.exec(layout && layout[1])) {
734
- description.unshift("desktop mode");
735
- name = "Chrome Mobile";
736
- version = null;
737
- if (/\bOS X\b/.test(os)) {
738
- manufacturer = "Apple";
739
- os = "iOS 4.3+";
740
- } else os = null;
741
- }
742
- if (version && version.indexOf(data = /[\d.]+$/.exec(os)) == 0 && ua.indexOf("/" + data + "-") > -1) os = trim(os.replace(data, ""));
743
- if (layout && !/\b(?:Avant|Nook)\b/.test(name) && (/Browser|Lunascape|Maxthon/.test(name) || name != "Safari" && /^iOS/.test(os) && /\bSafari\b/.test(layout[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(name) && layout[1])) (data = layout[layout.length - 1]) && description.push(data);
744
- if (description.length) description = ["(" + description.join("; ") + ")"];
745
- if (manufacturer && product && product.indexOf(manufacturer) < 0) description.push("on " + manufacturer);
746
- if (product) description.push((/^on /.test(description[description.length - 1]) ? "" : "on ") + product);
747
- if (os) {
748
- data = / ([\d.+]+)$/.exec(os);
749
- isSpecialCasedOS = data && os.charAt(os.length - data[0].length - 1) == "/";
750
- os = {
751
- "architecture": 32,
752
- "family": data && !isSpecialCasedOS ? os.replace(data[0], "") : os,
753
- "version": data ? data[1] : null,
754
- "toString": function() {
755
- var version$1 = this.version;
756
- return this.family + (version$1 && !isSpecialCasedOS ? " " + version$1 : "") + (this.architecture == 64 ? " 64-bit" : "");
757
- }
758
- };
759
- }
760
- if ((data = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(arch)) && !/\bi686\b/i.test(arch)) {
761
- if (os) {
762
- os.architecture = 64;
763
- os.family = os.family.replace(RegExp(" *" + data), "");
764
- }
765
- if (name && (/\bWOW64\b/i.test(ua) || useFeatures && /\w(?:86|32)$/.test(nav.cpuClass || nav.platform) && !/\bWin64; x64\b/i.test(ua))) description.unshift("32-bit");
766
- } else if (os && /^OS X/.test(os.family) && name == "Chrome" && parseFloat(version) >= 39) os.architecture = 64;
767
- ua || (ua = null);
768
- /**
769
- * The platform object.
770
- *
771
- * @name platform
772
- * @type Object
773
- */
774
- var platform$1 = {};
775
- /**
776
- * The platform description.
777
- *
778
- * @memberOf platform
779
- * @type string|null
780
- */
781
- platform$1.description = ua;
782
- /**
783
- * The name of the browser's layout engine.
784
- *
785
- * The list of common layout engines include:
786
- * "Blink", "EdgeHTML", "Gecko", "Trident" and "WebKit"
787
- *
788
- * @memberOf platform
789
- * @type string|null
790
- */
791
- platform$1.layout = layout && layout[0];
792
- /**
793
- * The name of the product's manufacturer.
794
- *
795
- * The list of manufacturers include:
796
- * "Apple", "Archos", "Amazon", "Asus", "Barnes & Noble", "BlackBerry",
797
- * "Google", "HP", "HTC", "LG", "Microsoft", "Motorola", "Nintendo",
798
- * "Nokia", "Samsung" and "Sony"
799
- *
800
- * @memberOf platform
801
- * @type string|null
802
- */
803
- platform$1.manufacturer = manufacturer;
804
- /**
805
- * The name of the browser/environment.
806
- *
807
- * The list of common browser names include:
808
- * "Chrome", "Electron", "Firefox", "Firefox for iOS", "IE",
809
- * "Microsoft Edge", "PhantomJS", "Safari", "SeaMonkey", "Silk",
810
- * "Opera Mini" and "Opera"
811
- *
812
- * Mobile versions of some browsers have "Mobile" appended to their name:
813
- * eg. "Chrome Mobile", "Firefox Mobile", "IE Mobile" and "Opera Mobile"
814
- *
815
- * @memberOf platform
816
- * @type string|null
817
- */
818
- platform$1.name = name;
819
- /**
820
- * The alpha/beta release indicator.
821
- *
822
- * @memberOf platform
823
- * @type string|null
824
- */
825
- platform$1.prerelease = prerelease;
826
- /**
827
- * The name of the product hosting the browser.
828
- *
829
- * The list of common products include:
830
- *
831
- * "BlackBerry", "Galaxy S4", "Lumia", "iPad", "iPod", "iPhone", "Kindle",
832
- * "Kindle Fire", "Nexus", "Nook", "PlayBook", "TouchPad" and "Transformer"
833
- *
834
- * @memberOf platform
835
- * @type string|null
836
- */
837
- platform$1.product = product;
838
- /**
839
- * The browser's user agent string.
840
- *
841
- * @memberOf platform
842
- * @type string|null
843
- */
844
- platform$1.ua = ua;
845
- /**
846
- * The browser/environment version.
847
- *
848
- * @memberOf platform
849
- * @type string|null
850
- */
851
- platform$1.version = name && version;
852
- /**
853
- * The name of the operating system.
854
- *
855
- * @memberOf platform
856
- * @type Object
857
- */
858
- platform$1.os = os || {
859
- "architecture": null,
860
- "family": null,
861
- "version": null,
862
- "toString": function() {
863
- return "null";
864
- }
865
- };
866
- platform$1.parse = parse;
867
- platform$1.toString = toStringPlatform;
868
- if (platform$1.version) description.unshift(version);
869
- if (platform$1.name) description.unshift(name);
870
- if (os && name && !(os == String(os).split(" ")[0] && (os == name.split(" ")[0] || product))) description.push(product ? "(" + os + ")" : "on " + os);
871
- if (description.length) platform$1.description = description.join(" ");
872
- return platform$1;
873
- }
874
- var platform = parse();
875
- if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
876
- root.platform = platform;
877
- define(function() {
878
- return platform;
879
- });
880
- } else if (freeExports && freeModule) forOwn(platform, function(value, key) {
881
- freeExports[key] = value;
882
- });
883
- else root.platform = platform;
884
- }).call(exports);
885
- }));
886
-
887
- //#endregion
888
- export default require_platform();
889
-
890
- export { require_platform };
891
- //# sourceMappingURL=platform.js.map