@thoughtspot/visual-embed-sdk 1.33.0-dc.1 → 1.33.1-dc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/cjs/package.json +5 -5
  2. package/cjs/src/embed/app.d.ts +0 -13
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js.map +1 -1
  5. package/cjs/src/embed/bodyless-conversation.d.ts +1 -1
  6. package/cjs/src/embed/bodyless-conversation.js +1 -1
  7. package/cjs/src/embed/conversation.d.ts +15 -0
  8. package/cjs/src/embed/conversation.d.ts.map +1 -1
  9. package/cjs/src/embed/conversation.js +17 -0
  10. package/cjs/src/embed/conversation.js.map +1 -1
  11. package/cjs/src/embed/conversation.spec.js +1 -1
  12. package/cjs/src/embed/conversation.spec.js.map +1 -1
  13. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  14. package/cjs/src/embed/liveboard.js +2 -1
  15. package/cjs/src/embed/liveboard.js.map +1 -1
  16. package/cjs/src/embed/search.d.ts +0 -13
  17. package/cjs/src/embed/search.d.ts.map +1 -1
  18. package/cjs/src/embed/search.js.map +1 -1
  19. package/cjs/src/types.d.ts +18 -35
  20. package/cjs/src/types.d.ts.map +1 -1
  21. package/cjs/src/types.js +4 -33
  22. package/cjs/src/types.js.map +1 -1
  23. package/cjs/src/utils/graphql/answerService/answerService.d.ts +1 -1
  24. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  25. package/cjs/src/utils/graphql/answerService/answerService.js +1 -1
  26. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  27. package/cjs/src/utils/graphql/answerService/answerService.spec.js +18 -0
  28. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  29. package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  30. package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  31. package/cjs/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
  32. package/cjs/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
  33. package/cjs/src/utils/liveboardService/liveboardService.d.ts +13 -0
  34. package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  35. package/cjs/src/utils/liveboardService/liveboardService.js +13 -0
  36. package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
  37. package/dist/es/index-BwesxE_h.js +7369 -0
  38. package/dist/es/index.js +17483 -0
  39. package/dist/es/react/index.js +24027 -0
  40. package/dist/es/react/src/auth.d.ts +171 -0
  41. package/dist/es/react/src/auth.d.ts.map +1 -0
  42. package/dist/es/react/src/auth.spec.d.ts +15 -0
  43. package/dist/es/react/src/auth.spec.d.ts.map +1 -0
  44. package/dist/es/react/src/authToken.d.ts +17 -0
  45. package/dist/es/react/src/authToken.d.ts.map +1 -0
  46. package/dist/es/react/src/authToken.spec.d.ts +2 -0
  47. package/dist/es/react/src/authToken.spec.d.ts.map +1 -0
  48. package/dist/es/react/src/config.d.ts +21 -0
  49. package/dist/es/react/src/config.d.ts.map +1 -0
  50. package/dist/es/react/src/config.spec.d.ts +5 -0
  51. package/dist/es/react/src/config.spec.d.ts.map +1 -0
  52. package/dist/es/react/src/css-variables.d.ts +384 -0
  53. package/dist/es/react/src/css-variables.d.ts.map +1 -0
  54. package/dist/es/react/src/embed/app.d.ts +478 -0
  55. package/dist/es/react/src/embed/app.d.ts.map +1 -0
  56. package/dist/es/react/src/embed/app.spec.d.ts +2 -0
  57. package/dist/es/react/src/embed/app.spec.d.ts.map +1 -0
  58. package/dist/es/react/src/embed/base.d.ts +136 -0
  59. package/dist/es/react/src/embed/base.d.ts.map +1 -0
  60. package/dist/es/react/src/embed/base.spec.d.ts +2 -0
  61. package/dist/es/react/src/embed/base.spec.d.ts.map +1 -0
  62. package/dist/es/react/src/embed/bodyless-conversation.d.ts +26 -0
  63. package/dist/es/react/src/embed/bodyless-conversation.d.ts.map +1 -0
  64. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts +2 -0
  65. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  66. package/dist/es/react/src/embed/conversation.d.ts +43 -0
  67. package/dist/es/react/src/embed/conversation.d.ts.map +1 -0
  68. package/dist/es/react/src/embed/conversation.spec.d.ts +2 -0
  69. package/dist/es/react/src/embed/conversation.spec.d.ts.map +1 -0
  70. package/dist/es/react/src/embed/embed.spec.d.ts +2 -0
  71. package/dist/es/react/src/embed/embed.spec.d.ts.map +1 -0
  72. package/dist/es/react/src/embed/embedConfig.d.ts +17 -0
  73. package/dist/es/react/src/embed/embedConfig.d.ts.map +1 -0
  74. package/dist/es/react/src/embed/events.spec.d.ts +2 -0
  75. package/dist/es/react/src/embed/events.spec.d.ts.map +1 -0
  76. package/dist/es/react/src/embed/liveboard.d.ts +379 -0
  77. package/dist/es/react/src/embed/liveboard.d.ts.map +1 -0
  78. package/dist/es/react/src/embed/liveboard.spec.d.ts +2 -0
  79. package/dist/es/react/src/embed/liveboard.spec.d.ts.map +1 -0
  80. package/dist/es/react/src/embed/pinboard.spec.d.ts +2 -0
  81. package/dist/es/react/src/embed/pinboard.spec.d.ts.map +1 -0
  82. package/dist/es/react/src/embed/sage.d.ts +148 -0
  83. package/dist/es/react/src/embed/sage.d.ts.map +1 -0
  84. package/dist/es/react/src/embed/sage.spec.d.ts +2 -0
  85. package/dist/es/react/src/embed/sage.spec.d.ts.map +1 -0
  86. package/dist/es/react/src/embed/search-bar.d.ts +93 -0
  87. package/dist/es/react/src/embed/search-bar.d.ts.map +1 -0
  88. package/dist/es/react/src/embed/search.d.ts +282 -0
  89. package/dist/es/react/src/embed/search.d.ts.map +1 -0
  90. package/dist/es/react/src/embed/search.spec.d.ts +2 -0
  91. package/dist/es/react/src/embed/search.spec.d.ts.map +1 -0
  92. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  93. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  94. package/dist/es/react/src/embed/ts-embed.d.ts +374 -0
  95. package/dist/es/react/src/embed/ts-embed.d.ts.map +1 -0
  96. package/dist/es/react/src/embed/ts-embed.spec.d.ts +2 -0
  97. package/dist/es/react/src/embed/ts-embed.spec.d.ts.map +1 -0
  98. package/dist/es/react/src/errors.d.ts +19 -0
  99. package/dist/es/react/src/errors.d.ts.map +1 -0
  100. package/dist/es/react/src/index.d.ts +28 -0
  101. package/dist/es/react/src/index.d.ts.map +1 -0
  102. package/dist/es/react/src/mixpanel-service.d.ts +35 -0
  103. package/dist/es/react/src/mixpanel-service.d.ts.map +1 -0
  104. package/dist/es/react/src/mixpanel-service.spec.d.ts +2 -0
  105. package/dist/es/react/src/mixpanel-service.spec.d.ts.map +1 -0
  106. package/dist/es/react/src/react/all-types-export.d.ts +3 -0
  107. package/dist/es/react/src/react/all-types-export.d.ts.map +1 -0
  108. package/dist/es/react/src/react/all-types-export.spec.d.ts +2 -0
  109. package/dist/es/react/src/react/all-types-export.spec.d.ts.map +1 -0
  110. package/dist/es/react/src/react/index.d.ts +254 -0
  111. package/dist/es/react/src/react/index.d.ts.map +1 -0
  112. package/dist/es/react/src/react/index.spec.d.ts +3 -0
  113. package/dist/es/react/src/react/index.spec.d.ts.map +1 -0
  114. package/dist/es/react/src/react/util.d.ts +19 -0
  115. package/dist/es/react/src/react/util.d.ts.map +1 -0
  116. package/dist/es/react/src/test/test-utils.d.ts +61 -0
  117. package/dist/es/react/src/test/test-utils.d.ts.map +1 -0
  118. package/dist/es/react/src/tokenizedFetch.d.ts +18 -0
  119. package/dist/es/react/src/tokenizedFetch.d.ts.map +1 -0
  120. package/dist/es/react/src/types.d.ts +4363 -0
  121. package/dist/es/react/src/types.d.ts.map +1 -0
  122. package/dist/es/react/src/utils/authService/authService.d.ts +45 -0
  123. package/dist/es/react/src/utils/authService/authService.d.ts.map +1 -0
  124. package/dist/es/react/src/utils/authService/authService.spec.d.ts +2 -0
  125. package/dist/es/react/src/utils/authService/authService.spec.d.ts.map +1 -0
  126. package/dist/es/react/src/utils/authService/index.d.ts +3 -0
  127. package/dist/es/react/src/utils/authService/index.d.ts.map +1 -0
  128. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  129. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  130. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  131. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  132. package/dist/es/react/src/utils/global-styles.d.ts +2 -0
  133. package/dist/es/react/src/utils/global-styles.d.ts.map +1 -0
  134. package/dist/es/react/src/utils/global-styles.spec.d.ts +2 -0
  135. package/dist/es/react/src/utils/global-styles.spec.d.ts.map +1 -0
  136. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  137. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  138. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts +180 -0
  139. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  140. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  141. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  142. package/dist/es/react/src/utils/graphql/graphql-request.d.ts +15 -0
  143. package/dist/es/react/src/utils/graphql/graphql-request.d.ts.map +1 -0
  144. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  145. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  146. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  147. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  148. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  149. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  150. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  151. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  152. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  153. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  154. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  155. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  156. package/dist/es/react/src/utils/graphql/preview-service.d.ts +9 -0
  157. package/dist/es/react/src/utils/graphql/preview-service.d.ts.map +1 -0
  158. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts +2 -0
  159. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  160. package/dist/es/react/src/utils/graphql/sourceService.d.ts +8 -0
  161. package/dist/es/react/src/utils/graphql/sourceService.d.ts.map +1 -0
  162. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts +2 -0
  163. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  164. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts +16 -0
  165. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  166. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  167. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  168. package/dist/es/react/src/utils/logger.d.ts +18 -0
  169. package/dist/es/react/src/utils/logger.d.ts.map +1 -0
  170. package/dist/es/react/src/utils/logger.spec.d.ts +25 -0
  171. package/dist/es/react/src/utils/logger.spec.d.ts.map +1 -0
  172. package/dist/es/react/src/utils/processData.d.ts +22 -0
  173. package/dist/es/react/src/utils/processData.d.ts.map +1 -0
  174. package/dist/es/react/src/utils/processData.spec.d.ts +2 -0
  175. package/dist/es/react/src/utils/processData.spec.d.ts.map +1 -0
  176. package/dist/es/react/src/utils/processTrigger.d.ts +16 -0
  177. package/dist/es/react/src/utils/processTrigger.d.ts.map +1 -0
  178. package/dist/es/react/src/utils/processTrigger.spec.d.ts +2 -0
  179. package/dist/es/react/src/utils/processTrigger.spec.d.ts.map +1 -0
  180. package/dist/es/react/src/utils/reporting.d.ts +16 -0
  181. package/dist/es/react/src/utils/reporting.d.ts.map +1 -0
  182. package/dist/es/react/src/utils/reporting.spec.d.ts +2 -0
  183. package/dist/es/react/src/utils/reporting.spec.d.ts.map +1 -0
  184. package/dist/es/react/src/utils/sessionInfoService.d.ts +66 -0
  185. package/dist/es/react/src/utils/sessionInfoService.d.ts.map +1 -0
  186. package/dist/es/react/src/utils.d.ts +103 -0
  187. package/dist/es/react/src/utils.d.ts.map +1 -0
  188. package/dist/es/react/src/utils.spec.d.ts +2 -0
  189. package/dist/es/react/src/utils.spec.d.ts.map +1 -0
  190. package/dist/es/src/auth.d.ts +171 -0
  191. package/dist/es/src/auth.d.ts.map +1 -0
  192. package/dist/es/src/auth.spec.d.ts +15 -0
  193. package/dist/es/src/auth.spec.d.ts.map +1 -0
  194. package/dist/es/src/authToken.d.ts +17 -0
  195. package/dist/es/src/authToken.d.ts.map +1 -0
  196. package/dist/es/src/authToken.spec.d.ts +2 -0
  197. package/dist/es/src/authToken.spec.d.ts.map +1 -0
  198. package/dist/es/src/config.d.ts +21 -0
  199. package/dist/es/src/config.d.ts.map +1 -0
  200. package/dist/es/src/config.spec.d.ts +5 -0
  201. package/dist/es/src/config.spec.d.ts.map +1 -0
  202. package/dist/es/src/css-variables.d.ts +384 -0
  203. package/dist/es/src/css-variables.d.ts.map +1 -0
  204. package/dist/es/src/embed/app.d.ts +478 -0
  205. package/dist/es/src/embed/app.d.ts.map +1 -0
  206. package/dist/es/src/embed/app.spec.d.ts +2 -0
  207. package/dist/es/src/embed/app.spec.d.ts.map +1 -0
  208. package/dist/es/src/embed/base.d.ts +136 -0
  209. package/dist/es/src/embed/base.d.ts.map +1 -0
  210. package/dist/es/src/embed/base.spec.d.ts +2 -0
  211. package/dist/es/src/embed/base.spec.d.ts.map +1 -0
  212. package/dist/es/src/embed/bodyless-conversation.d.ts +26 -0
  213. package/dist/es/src/embed/bodyless-conversation.d.ts.map +1 -0
  214. package/dist/es/src/embed/bodyless-conversation.spec.d.ts +2 -0
  215. package/dist/es/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  216. package/dist/es/src/embed/conversation.d.ts +43 -0
  217. package/dist/es/src/embed/conversation.d.ts.map +1 -0
  218. package/dist/es/src/embed/conversation.spec.d.ts +2 -0
  219. package/dist/es/src/embed/conversation.spec.d.ts.map +1 -0
  220. package/dist/es/src/embed/embed.spec.d.ts +2 -0
  221. package/dist/es/src/embed/embed.spec.d.ts.map +1 -0
  222. package/dist/es/src/embed/embedConfig.d.ts +17 -0
  223. package/dist/es/src/embed/embedConfig.d.ts.map +1 -0
  224. package/dist/es/src/embed/events.spec.d.ts +2 -0
  225. package/dist/es/src/embed/events.spec.d.ts.map +1 -0
  226. package/dist/es/src/embed/liveboard.d.ts +379 -0
  227. package/dist/es/src/embed/liveboard.d.ts.map +1 -0
  228. package/dist/es/src/embed/liveboard.spec.d.ts +2 -0
  229. package/dist/es/src/embed/liveboard.spec.d.ts.map +1 -0
  230. package/dist/es/src/embed/pinboard.spec.d.ts +2 -0
  231. package/dist/es/src/embed/pinboard.spec.d.ts.map +1 -0
  232. package/dist/es/src/embed/sage.d.ts +148 -0
  233. package/dist/es/src/embed/sage.d.ts.map +1 -0
  234. package/dist/es/src/embed/sage.spec.d.ts +2 -0
  235. package/dist/es/src/embed/sage.spec.d.ts.map +1 -0
  236. package/dist/es/src/embed/search-bar.d.ts +93 -0
  237. package/dist/es/src/embed/search-bar.d.ts.map +1 -0
  238. package/dist/es/src/embed/search.d.ts +282 -0
  239. package/dist/es/src/embed/search.d.ts.map +1 -0
  240. package/dist/es/src/embed/search.spec.d.ts +2 -0
  241. package/dist/es/src/embed/search.spec.d.ts.map +1 -0
  242. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  243. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  244. package/dist/es/src/embed/ts-embed.d.ts +374 -0
  245. package/dist/es/src/embed/ts-embed.d.ts.map +1 -0
  246. package/dist/es/src/embed/ts-embed.spec.d.ts +2 -0
  247. package/dist/es/src/embed/ts-embed.spec.d.ts.map +1 -0
  248. package/dist/es/src/errors.d.ts +19 -0
  249. package/dist/es/src/errors.d.ts.map +1 -0
  250. package/dist/es/src/index.d.ts +28 -0
  251. package/dist/es/src/index.d.ts.map +1 -0
  252. package/dist/es/src/mixpanel-service.d.ts +35 -0
  253. package/dist/es/src/mixpanel-service.d.ts.map +1 -0
  254. package/dist/es/src/mixpanel-service.spec.d.ts +2 -0
  255. package/dist/es/src/mixpanel-service.spec.d.ts.map +1 -0
  256. package/dist/es/src/react/all-types-export.d.ts +3 -0
  257. package/dist/es/src/react/all-types-export.d.ts.map +1 -0
  258. package/dist/es/src/react/all-types-export.spec.d.ts +2 -0
  259. package/dist/es/src/react/all-types-export.spec.d.ts.map +1 -0
  260. package/dist/es/src/react/index.d.ts +254 -0
  261. package/dist/es/src/react/index.d.ts.map +1 -0
  262. package/dist/es/src/react/index.spec.d.ts +3 -0
  263. package/dist/es/src/react/index.spec.d.ts.map +1 -0
  264. package/dist/es/src/react/util.d.ts +19 -0
  265. package/dist/es/src/react/util.d.ts.map +1 -0
  266. package/dist/es/src/test/test-utils.d.ts +61 -0
  267. package/dist/es/src/test/test-utils.d.ts.map +1 -0
  268. package/dist/es/src/tokenizedFetch.d.ts +18 -0
  269. package/dist/es/src/tokenizedFetch.d.ts.map +1 -0
  270. package/dist/es/src/types.d.ts +4363 -0
  271. package/dist/es/src/types.d.ts.map +1 -0
  272. package/dist/es/src/utils/authService/authService.d.ts +45 -0
  273. package/dist/es/src/utils/authService/authService.d.ts.map +1 -0
  274. package/dist/es/src/utils/authService/authService.spec.d.ts +2 -0
  275. package/dist/es/src/utils/authService/authService.spec.d.ts.map +1 -0
  276. package/dist/es/src/utils/authService/index.d.ts +3 -0
  277. package/dist/es/src/utils/authService/index.d.ts.map +1 -0
  278. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  279. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  280. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  281. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  282. package/dist/es/src/utils/global-styles.d.ts +2 -0
  283. package/dist/es/src/utils/global-styles.d.ts.map +1 -0
  284. package/dist/es/src/utils/global-styles.spec.d.ts +2 -0
  285. package/dist/es/src/utils/global-styles.spec.d.ts.map +1 -0
  286. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  287. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  288. package/dist/es/src/utils/graphql/answerService/answerService.d.ts +180 -0
  289. package/dist/es/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  290. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  291. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  292. package/dist/es/src/utils/graphql/graphql-request.d.ts +15 -0
  293. package/dist/es/src/utils/graphql/graphql-request.d.ts.map +1 -0
  294. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  295. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  296. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  297. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  298. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  299. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  300. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  301. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  302. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  303. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  304. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  305. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  306. package/dist/es/src/utils/graphql/preview-service.d.ts +9 -0
  307. package/dist/es/src/utils/graphql/preview-service.d.ts.map +1 -0
  308. package/dist/es/src/utils/graphql/preview-service.spec.d.ts +2 -0
  309. package/dist/es/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  310. package/dist/es/src/utils/graphql/sourceService.d.ts +8 -0
  311. package/dist/es/src/utils/graphql/sourceService.d.ts.map +1 -0
  312. package/dist/es/src/utils/graphql/sourceService.spec.d.ts +2 -0
  313. package/dist/es/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  314. package/dist/es/src/utils/liveboardService/liveboardService.d.ts +16 -0
  315. package/dist/es/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  316. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  317. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  318. package/dist/es/src/utils/logger.d.ts +18 -0
  319. package/dist/es/src/utils/logger.d.ts.map +1 -0
  320. package/dist/es/src/utils/logger.spec.d.ts +25 -0
  321. package/dist/es/src/utils/logger.spec.d.ts.map +1 -0
  322. package/dist/es/src/utils/processData.d.ts +22 -0
  323. package/dist/es/src/utils/processData.d.ts.map +1 -0
  324. package/dist/es/src/utils/processData.spec.d.ts +2 -0
  325. package/dist/es/src/utils/processData.spec.d.ts.map +1 -0
  326. package/dist/es/src/utils/processTrigger.d.ts +16 -0
  327. package/dist/es/src/utils/processTrigger.d.ts.map +1 -0
  328. package/dist/es/src/utils/processTrigger.spec.d.ts +2 -0
  329. package/dist/es/src/utils/processTrigger.spec.d.ts.map +1 -0
  330. package/dist/es/src/utils/reporting.d.ts +16 -0
  331. package/dist/es/src/utils/reporting.d.ts.map +1 -0
  332. package/dist/es/src/utils/reporting.spec.d.ts +2 -0
  333. package/dist/es/src/utils/reporting.spec.d.ts.map +1 -0
  334. package/dist/es/src/utils/sessionInfoService.d.ts +66 -0
  335. package/dist/es/src/utils/sessionInfoService.d.ts.map +1 -0
  336. package/dist/es/src/utils.d.ts +103 -0
  337. package/dist/es/src/utils.d.ts.map +1 -0
  338. package/dist/es/src/utils.spec.d.ts +2 -0
  339. package/dist/es/src/utils.spec.d.ts.map +1 -0
  340. package/dist/src/embed/app.d.ts +0 -13
  341. package/dist/src/embed/app.d.ts.map +1 -1
  342. package/dist/src/embed/bodyless-conversation.d.ts +1 -1
  343. package/dist/src/embed/conversation.d.ts +15 -0
  344. package/dist/src/embed/conversation.d.ts.map +1 -1
  345. package/dist/src/embed/liveboard.d.ts.map +1 -1
  346. package/dist/src/embed/search.d.ts +0 -13
  347. package/dist/src/embed/search.d.ts.map +1 -1
  348. package/dist/src/types.d.ts +18 -35
  349. package/dist/src/types.d.ts.map +1 -1
  350. package/dist/src/utils/graphql/answerService/answerService.d.ts +1 -1
  351. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  352. package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  353. package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  354. package/dist/src/utils/liveboardService/liveboardService.d.ts +13 -0
  355. package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  356. package/dist/tsembed-react.es.js +488 -462
  357. package/dist/tsembed-react.js +686 -503
  358. package/dist/tsembed.es.js +455 -430
  359. package/dist/tsembed.js +672 -468
  360. package/dist/visual-embed-sdk-react-full.d.ts +55 -65
  361. package/dist/visual-embed-sdk-react.d.ts +55 -65
  362. package/dist/visual-embed-sdk.d.ts +40 -65
  363. package/lib/package.json +5 -5
  364. package/lib/src/embed/app.d.ts +0 -13
  365. package/lib/src/embed/app.d.ts.map +1 -1
  366. package/lib/src/embed/app.js.map +1 -1
  367. package/lib/src/embed/bodyless-conversation.d.ts +1 -1
  368. package/lib/src/embed/bodyless-conversation.js +1 -1
  369. package/lib/src/embed/conversation.d.ts +15 -0
  370. package/lib/src/embed/conversation.d.ts.map +1 -1
  371. package/lib/src/embed/conversation.js +17 -0
  372. package/lib/src/embed/conversation.js.map +1 -1
  373. package/lib/src/embed/conversation.spec.js +1 -1
  374. package/lib/src/embed/conversation.spec.js.map +1 -1
  375. package/lib/src/embed/liveboard.d.ts.map +1 -1
  376. package/lib/src/embed/liveboard.js +2 -1
  377. package/lib/src/embed/liveboard.js.map +1 -1
  378. package/lib/src/embed/search.d.ts +0 -13
  379. package/lib/src/embed/search.d.ts.map +1 -1
  380. package/lib/src/embed/search.js.map +1 -1
  381. package/lib/src/types.d.ts +18 -35
  382. package/lib/src/types.d.ts.map +1 -1
  383. package/lib/src/types.js +4 -33
  384. package/lib/src/types.js.map +1 -1
  385. package/lib/src/utils/graphql/answerService/answerService.d.ts +1 -1
  386. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  387. package/lib/src/utils/graphql/answerService/answerService.js +1 -1
  388. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  389. package/lib/src/utils/graphql/answerService/answerService.spec.js +18 -0
  390. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  391. package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
  392. package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
  393. package/lib/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
  394. package/lib/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
  395. package/lib/src/utils/liveboardService/liveboardService.d.ts +13 -0
  396. package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  397. package/lib/src/utils/liveboardService/liveboardService.js +13 -0
  398. package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
  399. package/lib/src/visual-embed-sdk.d.ts +40 -65
  400. package/package.json +5 -5
  401. package/src/embed/app.ts +0 -13
  402. package/src/embed/bodyless-conversation.ts +1 -1
  403. package/src/embed/conversation.spec.ts +1 -1
  404. package/src/embed/conversation.ts +16 -0
  405. package/src/embed/liveboard.ts +2 -0
  406. package/src/embed/search.ts +0 -13
  407. package/src/types.ts +17 -34
  408. package/src/utils/graphql/answerService/answerService.spec.ts +24 -0
  409. package/src/utils/graphql/answerService/answerService.ts +1 -1
  410. package/src/utils/graphql/nlsService/nls-answer-service.ts +7 -2
  411. package/src/utils/liveboardService/liveboardService.ts +13 -0
@@ -1,5 +1,20 @@
1
+ function _mergeNamespaces(n, m) {
2
+ m.forEach(function (e) {
3
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
4
+ if (k !== 'default' && !(k in n)) {
5
+ var d = Object.getOwnPropertyDescriptor(e, k);
6
+ Object.defineProperty(n, k, d.get ? d : {
7
+ enumerable: true,
8
+ get: function () { return e[k]; }
9
+ });
10
+ }
11
+ });
12
+ });
13
+ return Object.freeze(n);
14
+ }
15
+
1
16
  // istanbul ignore next
2
- const isObject = (obj) => {
17
+ const isObject$1 = (obj) => {
3
18
  if (typeof obj === "object" && obj !== null) {
4
19
  if (typeof Object.getPrototypeOf === "function") {
5
20
  const prototype = Object.getPrototypeOf(obj);
@@ -24,7 +39,7 @@ const merge = (...objects) => objects.reduce((result, current) => {
24
39
  : [...result[key], ...current[key]]
25
40
  : current[key];
26
41
  }
27
- else if (isObject(result[key]) && isObject(current[key])) {
42
+ else if (isObject$1(result[key]) && isObject$1(current[key])) {
28
43
  result[key] = merge(result[key], current[key]);
29
44
  }
30
45
  else {
@@ -3839,7 +3854,7 @@ class Logger {
3839
3854
  this.logMessages(args, LogLevel.WARN);
3840
3855
  }
3841
3856
  }
3842
- const logger = new Logger();
3857
+ const logger$3 = new Logger();
3843
3858
 
3844
3859
  /**
3845
3860
  * Removes all key-value entries from the list cache.
@@ -4122,20 +4137,20 @@ var Symbol$1 = _root.Symbol;
4122
4137
  var _Symbol = Symbol$1;
4123
4138
 
4124
4139
  /** Used for built-in method references. */
4125
- var objectProto = Object.prototype;
4140
+ var objectProto$b = Object.prototype;
4126
4141
 
4127
4142
  /** Used to check objects for own properties. */
4128
- var hasOwnProperty = objectProto.hasOwnProperty;
4143
+ var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4129
4144
 
4130
4145
  /**
4131
4146
  * Used to resolve the
4132
4147
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4133
4148
  * of values.
4134
4149
  */
4135
- var nativeObjectToString = objectProto.toString;
4150
+ var nativeObjectToString$1 = objectProto$b.toString;
4136
4151
 
4137
4152
  /** Built-in value references. */
4138
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4153
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4139
4154
 
4140
4155
  /**
4141
4156
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -4145,20 +4160,20 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4145
4160
  * @returns {string} Returns the raw `toStringTag`.
4146
4161
  */
4147
4162
  function getRawTag(value) {
4148
- var isOwn = hasOwnProperty.call(value, symToStringTag),
4149
- tag = value[symToStringTag];
4163
+ var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
4164
+ tag = value[symToStringTag$1];
4150
4165
 
4151
4166
  try {
4152
- value[symToStringTag] = undefined;
4167
+ value[symToStringTag$1] = undefined;
4153
4168
  var unmasked = true;
4154
4169
  } catch (e) {}
4155
4170
 
4156
- var result = nativeObjectToString.call(value);
4171
+ var result = nativeObjectToString$1.call(value);
4157
4172
  if (unmasked) {
4158
4173
  if (isOwn) {
4159
- value[symToStringTag] = tag;
4174
+ value[symToStringTag$1] = tag;
4160
4175
  } else {
4161
- delete value[symToStringTag];
4176
+ delete value[symToStringTag$1];
4162
4177
  }
4163
4178
  }
4164
4179
  return result;
@@ -4167,14 +4182,14 @@ function getRawTag(value) {
4167
4182
  var _getRawTag = getRawTag;
4168
4183
 
4169
4184
  /** Used for built-in method references. */
4170
- var objectProto$1 = Object.prototype;
4185
+ var objectProto$a = Object.prototype;
4171
4186
 
4172
4187
  /**
4173
4188
  * Used to resolve the
4174
4189
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4175
4190
  * of values.
4176
4191
  */
4177
- var nativeObjectToString$1 = objectProto$1.toString;
4192
+ var nativeObjectToString = objectProto$a.toString;
4178
4193
 
4179
4194
  /**
4180
4195
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -4184,17 +4199,17 @@ var nativeObjectToString$1 = objectProto$1.toString;
4184
4199
  * @returns {string} Returns the converted string.
4185
4200
  */
4186
4201
  function objectToString(value) {
4187
- return nativeObjectToString$1.call(value);
4202
+ return nativeObjectToString.call(value);
4188
4203
  }
4189
4204
 
4190
4205
  var _objectToString = objectToString;
4191
4206
 
4192
4207
  /** `Object#toString` result references. */
4193
- var nullTag = '[object Null]',
4208
+ var nullTag$1 = '[object Null]',
4194
4209
  undefinedTag = '[object Undefined]';
4195
4210
 
4196
4211
  /** Built-in value references. */
4197
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4212
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
4198
4213
 
4199
4214
  /**
4200
4215
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -4205,9 +4220,9 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
4205
4220
  */
4206
4221
  function baseGetTag(value) {
4207
4222
  if (value == null) {
4208
- return value === undefined ? undefinedTag : nullTag;
4223
+ return value === undefined ? undefinedTag : nullTag$1;
4209
4224
  }
4210
- return (symToStringTag$1 && symToStringTag$1 in Object(value))
4225
+ return (symToStringTag && symToStringTag in Object(value))
4211
4226
  ? _getRawTag(value)
4212
4227
  : _objectToString(value);
4213
4228
  }
@@ -4239,16 +4254,16 @@ var _baseGetTag = baseGetTag;
4239
4254
  * _.isObject(null);
4240
4255
  * // => false
4241
4256
  */
4242
- function isObject$1(value) {
4257
+ function isObject(value) {
4243
4258
  var type = typeof value;
4244
4259
  return value != null && (type == 'object' || type == 'function');
4245
4260
  }
4246
4261
 
4247
- var isObject_1 = isObject$1;
4262
+ var isObject_1 = isObject;
4248
4263
 
4249
4264
  /** `Object#toString` result references. */
4250
4265
  var asyncTag = '[object AsyncFunction]',
4251
- funcTag = '[object Function]',
4266
+ funcTag$1 = '[object Function]',
4252
4267
  genTag = '[object GeneratorFunction]',
4253
4268
  proxyTag = '[object Proxy]';
4254
4269
 
@@ -4276,7 +4291,7 @@ function isFunction(value) {
4276
4291
  // The use of `Object#toString` avoids issues with the `typeof` operator
4277
4292
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
4278
4293
  var tag = _baseGetTag(value);
4279
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
4294
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
4280
4295
  }
4281
4296
 
4282
4297
  var isFunction_1 = isFunction;
@@ -4306,10 +4321,10 @@ function isMasked(func) {
4306
4321
  var _isMasked = isMasked;
4307
4322
 
4308
4323
  /** Used for built-in method references. */
4309
- var funcProto = Function.prototype;
4324
+ var funcProto$1 = Function.prototype;
4310
4325
 
4311
4326
  /** Used to resolve the decompiled source of functions. */
4312
- var funcToString = funcProto.toString;
4327
+ var funcToString$1 = funcProto$1.toString;
4313
4328
 
4314
4329
  /**
4315
4330
  * Converts `func` to its source code.
@@ -4321,7 +4336,7 @@ var funcToString = funcProto.toString;
4321
4336
  function toSource(func) {
4322
4337
  if (func != null) {
4323
4338
  try {
4324
- return funcToString.call(func);
4339
+ return funcToString$1.call(func);
4325
4340
  } catch (e) {}
4326
4341
  try {
4327
4342
  return (func + '');
@@ -4342,18 +4357,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
4342
4357
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
4343
4358
 
4344
4359
  /** Used for built-in method references. */
4345
- var funcProto$1 = Function.prototype,
4346
- objectProto$2 = Object.prototype;
4360
+ var funcProto = Function.prototype,
4361
+ objectProto$9 = Object.prototype;
4347
4362
 
4348
4363
  /** Used to resolve the decompiled source of functions. */
4349
- var funcToString$1 = funcProto$1.toString;
4364
+ var funcToString = funcProto.toString;
4350
4365
 
4351
4366
  /** Used to check objects for own properties. */
4352
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
4367
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
4353
4368
 
4354
4369
  /** Used to detect if a method is native. */
4355
4370
  var reIsNative = RegExp('^' +
4356
- funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
4371
+ funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
4357
4372
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
4358
4373
  );
4359
4374
 
@@ -4447,13 +4462,13 @@ function hashDelete(key) {
4447
4462
  var _hashDelete = hashDelete;
4448
4463
 
4449
4464
  /** Used to stand-in for `undefined` hash values. */
4450
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
4465
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4451
4466
 
4452
4467
  /** Used for built-in method references. */
4453
- var objectProto$3 = Object.prototype;
4468
+ var objectProto$8 = Object.prototype;
4454
4469
 
4455
4470
  /** Used to check objects for own properties. */
4456
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
4471
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
4457
4472
 
4458
4473
  /**
4459
4474
  * Gets the hash value for `key`.
@@ -4468,18 +4483,18 @@ function hashGet(key) {
4468
4483
  var data = this.__data__;
4469
4484
  if (_nativeCreate) {
4470
4485
  var result = data[key];
4471
- return result === HASH_UNDEFINED ? undefined : result;
4486
+ return result === HASH_UNDEFINED$2 ? undefined : result;
4472
4487
  }
4473
- return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
4488
+ return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
4474
4489
  }
4475
4490
 
4476
4491
  var _hashGet = hashGet;
4477
4492
 
4478
4493
  /** Used for built-in method references. */
4479
- var objectProto$4 = Object.prototype;
4494
+ var objectProto$7 = Object.prototype;
4480
4495
 
4481
4496
  /** Used to check objects for own properties. */
4482
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
4497
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
4483
4498
 
4484
4499
  /**
4485
4500
  * Checks if a hash value for `key` exists.
@@ -4492,7 +4507,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
4492
4507
  */
4493
4508
  function hashHas(key) {
4494
4509
  var data = this.__data__;
4495
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
4510
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
4496
4511
  }
4497
4512
 
4498
4513
  var _hashHas = hashHas;
@@ -4745,7 +4760,7 @@ Stack.prototype.set = _stackSet;
4745
4760
  var _Stack = Stack;
4746
4761
 
4747
4762
  /** Used to stand-in for `undefined` hash values. */
4748
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4763
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
4749
4764
 
4750
4765
  /**
4751
4766
  * Adds `value` to the array cache.
@@ -4758,7 +4773,7 @@ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
4758
4773
  * @returns {Object} Returns the cache instance.
4759
4774
  */
4760
4775
  function setCacheAdd(value) {
4761
- this.__data__.set(value, HASH_UNDEFINED$2);
4776
+ this.__data__.set(value, HASH_UNDEFINED);
4762
4777
  return this;
4763
4778
  }
4764
4779
 
@@ -4842,8 +4857,8 @@ function cacheHas(cache, key) {
4842
4857
  var _cacheHas = cacheHas;
4843
4858
 
4844
4859
  /** Used to compose bitmasks for value comparisons. */
4845
- var COMPARE_PARTIAL_FLAG = 1,
4846
- COMPARE_UNORDERED_FLAG = 2;
4860
+ var COMPARE_PARTIAL_FLAG$3 = 1,
4861
+ COMPARE_UNORDERED_FLAG$1 = 2;
4847
4862
 
4848
4863
  /**
4849
4864
  * A specialized version of `baseIsEqualDeep` for arrays with support for
@@ -4859,7 +4874,7 @@ var COMPARE_PARTIAL_FLAG = 1,
4859
4874
  * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
4860
4875
  */
4861
4876
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
4862
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
4877
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
4863
4878
  arrLength = array.length,
4864
4879
  othLength = other.length;
4865
4880
 
@@ -4874,7 +4889,7 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
4874
4889
  }
4875
4890
  var index = -1,
4876
4891
  result = true,
4877
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new _SetCache : undefined;
4892
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new _SetCache : undefined;
4878
4893
 
4879
4894
  stack.set(array, other);
4880
4895
  stack.set(other, array);
@@ -4966,22 +4981,22 @@ function setToArray(set) {
4966
4981
  var _setToArray = setToArray;
4967
4982
 
4968
4983
  /** Used to compose bitmasks for value comparisons. */
4969
- var COMPARE_PARTIAL_FLAG$1 = 1,
4970
- COMPARE_UNORDERED_FLAG$1 = 2;
4984
+ var COMPARE_PARTIAL_FLAG$2 = 1,
4985
+ COMPARE_UNORDERED_FLAG = 2;
4971
4986
 
4972
4987
  /** `Object#toString` result references. */
4973
- var boolTag = '[object Boolean]',
4974
- dateTag = '[object Date]',
4975
- errorTag = '[object Error]',
4976
- mapTag = '[object Map]',
4977
- numberTag = '[object Number]',
4978
- regexpTag = '[object RegExp]',
4979
- setTag = '[object Set]',
4980
- stringTag = '[object String]',
4988
+ var boolTag$2 = '[object Boolean]',
4989
+ dateTag$1 = '[object Date]',
4990
+ errorTag$1 = '[object Error]',
4991
+ mapTag$2 = '[object Map]',
4992
+ numberTag$1 = '[object Number]',
4993
+ regexpTag$1 = '[object RegExp]',
4994
+ setTag$2 = '[object Set]',
4995
+ stringTag$1 = '[object String]',
4981
4996
  symbolTag = '[object Symbol]';
4982
4997
 
4983
- var arrayBufferTag = '[object ArrayBuffer]',
4984
- dataViewTag = '[object DataView]';
4998
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
4999
+ dataViewTag$2 = '[object DataView]';
4985
5000
 
4986
5001
  /** Used to convert symbols to primitives and strings. */
4987
5002
  var symbolProto = _Symbol ? _Symbol.prototype : undefined,
@@ -5006,7 +5021,7 @@ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
5006
5021
  */
5007
5022
  function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5008
5023
  switch (tag) {
5009
- case dataViewTag:
5024
+ case dataViewTag$2:
5010
5025
  if ((object.byteLength != other.byteLength) ||
5011
5026
  (object.byteOffset != other.byteOffset)) {
5012
5027
  return false;
@@ -5014,35 +5029,35 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5014
5029
  object = object.buffer;
5015
5030
  other = other.buffer;
5016
5031
 
5017
- case arrayBufferTag:
5032
+ case arrayBufferTag$1:
5018
5033
  if ((object.byteLength != other.byteLength) ||
5019
5034
  !equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
5020
5035
  return false;
5021
5036
  }
5022
5037
  return true;
5023
5038
 
5024
- case boolTag:
5025
- case dateTag:
5026
- case numberTag:
5039
+ case boolTag$2:
5040
+ case dateTag$1:
5041
+ case numberTag$1:
5027
5042
  // Coerce booleans to `1` or `0` and dates to milliseconds.
5028
5043
  // Invalid dates are coerced to `NaN`.
5029
5044
  return eq_1(+object, +other);
5030
5045
 
5031
- case errorTag:
5046
+ case errorTag$1:
5032
5047
  return object.name == other.name && object.message == other.message;
5033
5048
 
5034
- case regexpTag:
5035
- case stringTag:
5049
+ case regexpTag$1:
5050
+ case stringTag$1:
5036
5051
  // Coerce regexes to strings and treat strings, primitives and objects,
5037
5052
  // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
5038
5053
  // for more details.
5039
5054
  return object == (other + '');
5040
5055
 
5041
- case mapTag:
5056
+ case mapTag$2:
5042
5057
  var convert = _mapToArray;
5043
5058
 
5044
- case setTag:
5045
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1;
5059
+ case setTag$2:
5060
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
5046
5061
  convert || (convert = _setToArray);
5047
5062
 
5048
5063
  if (object.size != other.size && !isPartial) {
@@ -5053,7 +5068,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
5053
5068
  if (stacked) {
5054
5069
  return stacked == other;
5055
5070
  }
5056
- bitmask |= COMPARE_UNORDERED_FLAG$1;
5071
+ bitmask |= COMPARE_UNORDERED_FLAG;
5057
5072
 
5058
5073
  // Recursively compare objects (susceptible to call stack limits).
5059
5074
  stack.set(object, other);
@@ -5188,10 +5203,10 @@ function stubArray() {
5188
5203
  var stubArray_1 = stubArray;
5189
5204
 
5190
5205
  /** Used for built-in method references. */
5191
- var objectProto$5 = Object.prototype;
5206
+ var objectProto$6 = Object.prototype;
5192
5207
 
5193
5208
  /** Built-in value references. */
5194
- var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5209
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5195
5210
 
5196
5211
  /* Built-in method references for those with the same name as other `lodash` methods. */
5197
5212
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -5209,7 +5224,7 @@ var getSymbols = !nativeGetSymbols ? stubArray_1 : function(object) {
5209
5224
  }
5210
5225
  object = Object(object);
5211
5226
  return _arrayFilter(nativeGetSymbols(object), function(symbol) {
5212
- return propertyIsEnumerable.call(object, symbol);
5227
+ return propertyIsEnumerable$1.call(object, symbol);
5213
5228
  });
5214
5229
  };
5215
5230
 
@@ -5267,7 +5282,7 @@ function isObjectLike(value) {
5267
5282
  var isObjectLike_1 = isObjectLike;
5268
5283
 
5269
5284
  /** `Object#toString` result references. */
5270
- var argsTag = '[object Arguments]';
5285
+ var argsTag$2 = '[object Arguments]';
5271
5286
 
5272
5287
  /**
5273
5288
  * The base implementation of `_.isArguments`.
@@ -5277,19 +5292,19 @@ var argsTag = '[object Arguments]';
5277
5292
  * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5278
5293
  */
5279
5294
  function baseIsArguments(value) {
5280
- return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
5295
+ return isObjectLike_1(value) && _baseGetTag(value) == argsTag$2;
5281
5296
  }
5282
5297
 
5283
5298
  var _baseIsArguments = baseIsArguments;
5284
5299
 
5285
5300
  /** Used for built-in method references. */
5286
- var objectProto$6 = Object.prototype;
5301
+ var objectProto$5 = Object.prototype;
5287
5302
 
5288
5303
  /** Used to check objects for own properties. */
5289
- var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
5304
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
5290
5305
 
5291
5306
  /** Built-in value references. */
5292
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5307
+ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
5293
5308
 
5294
5309
  /**
5295
5310
  * Checks if `value` is likely an `arguments` object.
@@ -5310,8 +5325,8 @@ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
5310
5325
  * // => false
5311
5326
  */
5312
5327
  var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
5313
- return isObjectLike_1(value) && hasOwnProperty$4.call(value, 'callee') &&
5314
- !propertyIsEnumerable$1.call(value, 'callee');
5328
+ return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
5329
+ !propertyIsEnumerable.call(value, 'callee');
5315
5330
  };
5316
5331
 
5317
5332
  var isArguments_1 = isArguments;
@@ -5337,7 +5352,7 @@ var stubFalse_1 = stubFalse;
5337
5352
 
5338
5353
  var isBuffer_1 = createCommonjsModule(function (module, exports) {
5339
5354
  /** Detect free variable `exports`. */
5340
- var freeExports = exports && !exports.nodeType && exports;
5355
+ var freeExports = exports && !exports.nodeType && exports;
5341
5356
 
5342
5357
  /** Detect free variable `module`. */
5343
5358
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -5374,7 +5389,7 @@ module.exports = isBuffer;
5374
5389
  });
5375
5390
 
5376
5391
  /** Used as references for various `Number` constants. */
5377
- var MAX_SAFE_INTEGER = 9007199254740991;
5392
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
5378
5393
 
5379
5394
  /** Used to detect unsigned integer values. */
5380
5395
  var reIsUint = /^(?:0|[1-9]\d*)$/;
@@ -5389,7 +5404,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
5389
5404
  */
5390
5405
  function isIndex(value, length) {
5391
5406
  var type = typeof value;
5392
- length = length == null ? MAX_SAFE_INTEGER : length;
5407
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
5393
5408
 
5394
5409
  return !!length &&
5395
5410
  (type == 'number' ||
@@ -5400,7 +5415,7 @@ function isIndex(value, length) {
5400
5415
  var _isIndex = isIndex;
5401
5416
 
5402
5417
  /** Used as references for various `Number` constants. */
5403
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
5418
+ var MAX_SAFE_INTEGER = 9007199254740991;
5404
5419
 
5405
5420
  /**
5406
5421
  * Checks if `value` is a valid array-like length.
@@ -5430,27 +5445,27 @@ var MAX_SAFE_INTEGER$1 = 9007199254740991;
5430
5445
  */
5431
5446
  function isLength(value) {
5432
5447
  return typeof value == 'number' &&
5433
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
5448
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5434
5449
  }
5435
5450
 
5436
5451
  var isLength_1 = isLength;
5437
5452
 
5438
5453
  /** `Object#toString` result references. */
5439
5454
  var argsTag$1 = '[object Arguments]',
5440
- arrayTag = '[object Array]',
5455
+ arrayTag$1 = '[object Array]',
5441
5456
  boolTag$1 = '[object Boolean]',
5442
- dateTag$1 = '[object Date]',
5443
- errorTag$1 = '[object Error]',
5444
- funcTag$1 = '[object Function]',
5457
+ dateTag = '[object Date]',
5458
+ errorTag = '[object Error]',
5459
+ funcTag = '[object Function]',
5445
5460
  mapTag$1 = '[object Map]',
5446
- numberTag$1 = '[object Number]',
5447
- objectTag = '[object Object]',
5448
- regexpTag$1 = '[object RegExp]',
5461
+ numberTag = '[object Number]',
5462
+ objectTag$2 = '[object Object]',
5463
+ regexpTag = '[object RegExp]',
5449
5464
  setTag$1 = '[object Set]',
5450
- stringTag$1 = '[object String]',
5451
- weakMapTag = '[object WeakMap]';
5465
+ stringTag = '[object String]',
5466
+ weakMapTag$1 = '[object WeakMap]';
5452
5467
 
5453
- var arrayBufferTag$1 = '[object ArrayBuffer]',
5468
+ var arrayBufferTag = '[object ArrayBuffer]',
5454
5469
  dataViewTag$1 = '[object DataView]',
5455
5470
  float32Tag = '[object Float32Array]',
5456
5471
  float64Tag = '[object Float64Array]',
@@ -5469,14 +5484,14 @@ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
5469
5484
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
5470
5485
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
5471
5486
  typedArrayTags[uint32Tag] = true;
5472
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
5473
- typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
5474
- typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
5475
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
5476
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag$1] =
5477
- typedArrayTags[objectTag] = typedArrayTags[regexpTag$1] =
5478
- typedArrayTags[setTag$1] = typedArrayTags[stringTag$1] =
5479
- typedArrayTags[weakMapTag] = false;
5487
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
5488
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
5489
+ typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
5490
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5491
+ typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
5492
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
5493
+ typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
5494
+ typedArrayTags[weakMapTag$1] = false;
5480
5495
 
5481
5496
  /**
5482
5497
  * The base implementation of `_.isTypedArray` without Node.js optimizations.
@@ -5509,7 +5524,7 @@ var _baseUnary = baseUnary;
5509
5524
 
5510
5525
  var _nodeUtil = createCommonjsModule(function (module, exports) {
5511
5526
  /** Detect free variable `exports`. */
5512
- var freeExports = exports && !exports.nodeType && exports;
5527
+ var freeExports = exports && !exports.nodeType && exports;
5513
5528
 
5514
5529
  /** Detect free variable `module`. */
5515
5530
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -5563,10 +5578,10 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
5563
5578
  var isTypedArray_1 = isTypedArray;
5564
5579
 
5565
5580
  /** Used for built-in method references. */
5566
- var objectProto$7 = Object.prototype;
5581
+ var objectProto$4 = Object.prototype;
5567
5582
 
5568
5583
  /** Used to check objects for own properties. */
5569
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
5584
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
5570
5585
 
5571
5586
  /**
5572
5587
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -5586,7 +5601,7 @@ function arrayLikeKeys(value, inherited) {
5586
5601
  length = result.length;
5587
5602
 
5588
5603
  for (var key in value) {
5589
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
5604
+ if ((inherited || hasOwnProperty$4.call(value, key)) &&
5590
5605
  !(skipIndexes && (
5591
5606
  // Safari 9 has enumerable `arguments.length` in strict mode.
5592
5607
  key == 'length' ||
@@ -5606,7 +5621,7 @@ function arrayLikeKeys(value, inherited) {
5606
5621
  var _arrayLikeKeys = arrayLikeKeys;
5607
5622
 
5608
5623
  /** Used for built-in method references. */
5609
- var objectProto$8 = Object.prototype;
5624
+ var objectProto$3 = Object.prototype;
5610
5625
 
5611
5626
  /**
5612
5627
  * Checks if `value` is likely a prototype object.
@@ -5617,7 +5632,7 @@ var objectProto$8 = Object.prototype;
5617
5632
  */
5618
5633
  function isPrototype(value) {
5619
5634
  var Ctor = value && value.constructor,
5620
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
5635
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
5621
5636
 
5622
5637
  return value === proto;
5623
5638
  }
@@ -5646,10 +5661,10 @@ var nativeKeys = _overArg(Object.keys, Object);
5646
5661
  var _nativeKeys = nativeKeys;
5647
5662
 
5648
5663
  /** Used for built-in method references. */
5649
- var objectProto$9 = Object.prototype;
5664
+ var objectProto$2 = Object.prototype;
5650
5665
 
5651
5666
  /** Used to check objects for own properties. */
5652
- var hasOwnProperty$6 = objectProto$9.hasOwnProperty;
5667
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
5653
5668
 
5654
5669
  /**
5655
5670
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -5664,7 +5679,7 @@ function baseKeys(object) {
5664
5679
  }
5665
5680
  var result = [];
5666
5681
  for (var key in Object(object)) {
5667
- if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
5682
+ if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
5668
5683
  result.push(key);
5669
5684
  }
5670
5685
  }
@@ -5752,13 +5767,13 @@ function getAllKeys(object) {
5752
5767
  var _getAllKeys = getAllKeys;
5753
5768
 
5754
5769
  /** Used to compose bitmasks for value comparisons. */
5755
- var COMPARE_PARTIAL_FLAG$2 = 1;
5770
+ var COMPARE_PARTIAL_FLAG$1 = 1;
5756
5771
 
5757
5772
  /** Used for built-in method references. */
5758
- var objectProto$a = Object.prototype;
5773
+ var objectProto$1 = Object.prototype;
5759
5774
 
5760
5775
  /** Used to check objects for own properties. */
5761
- var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
5776
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
5762
5777
 
5763
5778
  /**
5764
5779
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -5774,7 +5789,7 @@ var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
5774
5789
  * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
5775
5790
  */
5776
5791
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5777
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2,
5792
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
5778
5793
  objProps = _getAllKeys(object),
5779
5794
  objLength = objProps.length,
5780
5795
  othProps = _getAllKeys(other),
@@ -5786,7 +5801,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
5786
5801
  var index = objLength;
5787
5802
  while (index--) {
5788
5803
  var key = objProps[index];
5789
- if (!(isPartial ? key in other : hasOwnProperty$7.call(other, key))) {
5804
+ if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
5790
5805
  return false;
5791
5806
  }
5792
5807
  }
@@ -5861,13 +5876,13 @@ var WeakMap = _getNative(_root, 'WeakMap');
5861
5876
  var _WeakMap = WeakMap;
5862
5877
 
5863
5878
  /** `Object#toString` result references. */
5864
- var mapTag$2 = '[object Map]',
5879
+ var mapTag = '[object Map]',
5865
5880
  objectTag$1 = '[object Object]',
5866
5881
  promiseTag = '[object Promise]',
5867
- setTag$2 = '[object Set]',
5868
- weakMapTag$1 = '[object WeakMap]';
5882
+ setTag = '[object Set]',
5883
+ weakMapTag = '[object WeakMap]';
5869
5884
 
5870
- var dataViewTag$2 = '[object DataView]';
5885
+ var dataViewTag = '[object DataView]';
5871
5886
 
5872
5887
  /** Used to detect maps, sets, and weakmaps. */
5873
5888
  var dataViewCtorString = _toSource(_DataView),
@@ -5886,11 +5901,11 @@ var dataViewCtorString = _toSource(_DataView),
5886
5901
  var getTag = _baseGetTag;
5887
5902
 
5888
5903
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5889
- if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5890
- (_Map && getTag(new _Map) != mapTag$2) ||
5904
+ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
5905
+ (_Map && getTag(new _Map) != mapTag) ||
5891
5906
  (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
5892
- (_Set && getTag(new _Set) != setTag$2) ||
5893
- (_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
5907
+ (_Set && getTag(new _Set) != setTag) ||
5908
+ (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
5894
5909
  getTag = function(value) {
5895
5910
  var result = _baseGetTag(value),
5896
5911
  Ctor = result == objectTag$1 ? value.constructor : undefined,
@@ -5898,11 +5913,11 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5898
5913
 
5899
5914
  if (ctorString) {
5900
5915
  switch (ctorString) {
5901
- case dataViewCtorString: return dataViewTag$2;
5902
- case mapCtorString: return mapTag$2;
5916
+ case dataViewCtorString: return dataViewTag;
5917
+ case mapCtorString: return mapTag;
5903
5918
  case promiseCtorString: return promiseTag;
5904
- case setCtorString: return setTag$2;
5905
- case weakMapCtorString: return weakMapTag$1;
5919
+ case setCtorString: return setTag;
5920
+ case weakMapCtorString: return weakMapTag;
5906
5921
  }
5907
5922
  }
5908
5923
  return result;
@@ -5912,18 +5927,18 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
5912
5927
  var _getTag = getTag;
5913
5928
 
5914
5929
  /** Used to compose bitmasks for value comparisons. */
5915
- var COMPARE_PARTIAL_FLAG$3 = 1;
5930
+ var COMPARE_PARTIAL_FLAG = 1;
5916
5931
 
5917
5932
  /** `Object#toString` result references. */
5918
- var argsTag$2 = '[object Arguments]',
5919
- arrayTag$1 = '[object Array]',
5920
- objectTag$2 = '[object Object]';
5933
+ var argsTag = '[object Arguments]',
5934
+ arrayTag = '[object Array]',
5935
+ objectTag = '[object Object]';
5921
5936
 
5922
5937
  /** Used for built-in method references. */
5923
- var objectProto$b = Object.prototype;
5938
+ var objectProto = Object.prototype;
5924
5939
 
5925
5940
  /** Used to check objects for own properties. */
5926
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
5941
+ var hasOwnProperty$1 = objectProto.hasOwnProperty;
5927
5942
 
5928
5943
  /**
5929
5944
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -5942,14 +5957,14 @@ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
5942
5957
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
5943
5958
  var objIsArr = isArray_1(object),
5944
5959
  othIsArr = isArray_1(other),
5945
- objTag = objIsArr ? arrayTag$1 : _getTag(object),
5946
- othTag = othIsArr ? arrayTag$1 : _getTag(other);
5960
+ objTag = objIsArr ? arrayTag : _getTag(object),
5961
+ othTag = othIsArr ? arrayTag : _getTag(other);
5947
5962
 
5948
- objTag = objTag == argsTag$2 ? objectTag$2 : objTag;
5949
- othTag = othTag == argsTag$2 ? objectTag$2 : othTag;
5963
+ objTag = objTag == argsTag ? objectTag : objTag;
5964
+ othTag = othTag == argsTag ? objectTag : othTag;
5950
5965
 
5951
- var objIsObj = objTag == objectTag$2,
5952
- othIsObj = othTag == objectTag$2,
5966
+ var objIsObj = objTag == objectTag,
5967
+ othIsObj = othTag == objectTag,
5953
5968
  isSameTag = objTag == othTag;
5954
5969
 
5955
5970
  if (isSameTag && isBuffer_1(object)) {
@@ -5965,9 +5980,9 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
5965
5980
  ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
5966
5981
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
5967
5982
  }
5968
- if (!(bitmask & COMPARE_PARTIAL_FLAG$3)) {
5969
- var objIsWrapped = objIsObj && hasOwnProperty$8.call(object, '__wrapped__'),
5970
- othIsWrapped = othIsObj && hasOwnProperty$8.call(other, '__wrapped__');
5983
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
5984
+ var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
5985
+ othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
5971
5986
 
5972
5987
  if (objIsWrapped || othIsWrapped) {
5973
5988
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -6086,7 +6101,7 @@ function failureLoggedFetch(url, options = {}) {
6086
6101
  return fetch(url, options).then(async (r) => {
6087
6102
  var _a;
6088
6103
  if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
6089
- logger.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
6104
+ logger$3.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
6090
6105
  }
6091
6106
  return r;
6092
6107
  });
@@ -6109,7 +6124,7 @@ async function verifyTokenService(thoughtSpotHost, authToken) {
6109
6124
  return res.ok;
6110
6125
  }
6111
6126
  catch (e) {
6112
- logger.warn(`Token Verification Service failed : ${e.message}`);
6127
+ logger$3.warn(`Token Verification Service failed : ${e.message}`);
6113
6128
  }
6114
6129
  return false;
6115
6130
  }
@@ -6212,7 +6227,7 @@ async function getAuthenticationToken(embedConfig) {
6212
6227
  await validateAuthToken(embedConfig, authToken);
6213
6228
  }
6214
6229
  catch (e) {
6215
- logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6230
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
6216
6231
  throw e;
6217
6232
  }
6218
6233
  cachedAuthToken = authToken;
@@ -6220,7 +6235,7 @@ async function getAuthenticationToken(embedConfig) {
6220
6235
  }
6221
6236
  const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
6222
6237
  if (embedConfig.disableTokenVerification) {
6223
- logger.info('Token verification is disabled. Assuming token is valid.');
6238
+ logger$3.info('Token verification is disabled. Assuming token is valid.');
6224
6239
  return true;
6225
6240
  }
6226
6241
  try {
@@ -6930,7 +6945,7 @@ function getSelectedPointsForUnderlyingDataQuery(selectedPoints) {
6930
6945
  function addPointFromColVal(colVal) {
6931
6946
  var _a;
6932
6947
  const dataType = colVal.column.dataType;
6933
- const id = colVal.column.id;
6948
+ colVal.column.id;
6934
6949
  let dataValue;
6935
6950
  if (dataType === 'DATE') {
6936
6951
  if (Number.isFinite(colVal.value)) {
@@ -7078,7 +7093,7 @@ var FuncProto = Function.prototype;
7078
7093
  var ObjProto = Object.prototype;
7079
7094
  var slice = ArrayProto.slice;
7080
7095
  var toString = ObjProto.toString;
7081
- var hasOwnProperty$9 = ObjProto.hasOwnProperty;
7096
+ var hasOwnProperty = ObjProto.hasOwnProperty;
7082
7097
  var windowConsole = window$1.console;
7083
7098
  var navigator = window$1.navigator;
7084
7099
  var document$1 = window$1.document;
@@ -7215,7 +7230,7 @@ _.each = function(obj, iterator, context) {
7215
7230
  }
7216
7231
  } else {
7217
7232
  for (var key in obj) {
7218
- if (hasOwnProperty$9.call(obj, key)) {
7233
+ if (hasOwnProperty.call(obj, key)) {
7219
7234
  if (iterator.call(context, obj[key], key, obj) === breaker) {
7220
7235
  return;
7221
7236
  }
@@ -7251,7 +7266,7 @@ _.isFunction = function(f) {
7251
7266
  };
7252
7267
 
7253
7268
  _.isArguments = function(obj) {
7254
- return !!(obj && hasOwnProperty$9.call(obj, 'callee'));
7269
+ return !!(obj && hasOwnProperty.call(obj, 'callee'));
7255
7270
  };
7256
7271
 
7257
7272
  _.toArray = function(iterable) {
@@ -7339,7 +7354,7 @@ _.isObject = function(obj) {
7339
7354
  _.isEmptyObject = function(obj) {
7340
7355
  if (_.isObject(obj)) {
7341
7356
  for (var key in obj) {
7342
- if (hasOwnProperty$9.call(obj, key)) {
7357
+ if (hasOwnProperty.call(obj, key)) {
7343
7358
  return false;
7344
7359
  }
7345
7360
  }
@@ -7531,7 +7546,7 @@ _.JSONEncode = (function() {
7531
7546
 
7532
7547
  // Iterate through all of the keys in the object.
7533
7548
  for (k in value) {
7534
- if (hasOwnProperty$9.call(value, k)) {
7549
+ if (hasOwnProperty.call(value, k)) {
7535
7550
  v = str(k, value);
7536
7551
  if (v) {
7537
7552
  partial.push(quote(k) + (gap ? ': ' : ':') + v);
@@ -9339,7 +9354,7 @@ RequestQueue.prototype.clear = function() {
9339
9354
  // maximum interval between request retries after exponential backoff
9340
9355
  var MAX_RETRY_INTERVAL_MS = 10 * 60 * 1000; // 10 minutes
9341
9356
 
9342
- var logger$3 = console_with_prefix('batch');
9357
+ var logger = console_with_prefix('batch');
9343
9358
 
9344
9359
  /**
9345
9360
  * RequestBatcher: manages the queueing, flushing, retry etc of requests of one
@@ -9443,7 +9458,7 @@ RequestBatcher.prototype.flush = function(options) {
9443
9458
  try {
9444
9459
 
9445
9460
  if (this.requestInProgress) {
9446
- logger$3.log('Flush: Request already in progress');
9461
+ logger.log('Flush: Request already in progress');
9447
9462
  return;
9448
9463
  }
9449
9464
 
@@ -9604,7 +9619,7 @@ RequestBatcher.prototype.flush = function(options) {
9604
9619
  if (options.unloading) {
9605
9620
  requestOptions.transport = 'sendBeacon';
9606
9621
  }
9607
- logger$3.log('MIXPANEL REQUEST:', dataForRequest);
9622
+ logger.log('MIXPANEL REQUEST:', dataForRequest);
9608
9623
  this.sendRequest(dataForRequest, requestOptions, batchSendCallback);
9609
9624
 
9610
9625
  } catch(err) {
@@ -9617,7 +9632,7 @@ RequestBatcher.prototype.flush = function(options) {
9617
9632
  * Log error to global logger and optional user-defined logger.
9618
9633
  */
9619
9634
  RequestBatcher.prototype.reportError = function(msg, err) {
9620
- logger$3.error.apply(logger$3.error, arguments);
9635
+ logger.error.apply(logger.error, arguments);
9621
9636
  if (this.errorReporter) {
9622
9637
  try {
9623
9638
  if (!(err instanceof Error)) {
@@ -9625,7 +9640,7 @@ RequestBatcher.prototype.reportError = function(msg, err) {
9625
9640
  }
9626
9641
  this.errorReporter(msg, err);
9627
9642
  } catch(err) {
9628
- logger$3.error(err);
9643
+ logger.error(err);
9629
9644
  }
9630
9645
  }
9631
9646
  };
@@ -13178,9 +13193,10 @@ var mixpanel = init_as_module();
13178
13193
 
13179
13194
  var mixpanel_cjs = mixpanel;
13180
13195
 
13181
- var mixpanel$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), mixpanel_cjs, {
13182
- 'default': mixpanel_cjs
13183
- }));
13196
+ var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
13197
+ __proto__: null,
13198
+ default: mixpanel_cjs
13199
+ }, [mixpanel_cjs]);
13184
13200
 
13185
13201
  // Needed to avoid error in CJS builds on some bundlers.
13186
13202
  const mixpanelLib = mixpanel_cjs || mixpanel$1;
@@ -13233,7 +13249,7 @@ function emptyQueue() {
13233
13249
  function initMixpanel(sessionInfo) {
13234
13250
  var _a;
13235
13251
  if (!sessionInfo || !sessionInfo.mixpanelToken) {
13236
- logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
13252
+ logger$3.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
13237
13253
  return;
13238
13254
  }
13239
13255
  // On a public cluster the user is anonymous, so don't set the identify to
@@ -13257,7 +13273,7 @@ function initMixpanel(sessionInfo) {
13257
13273
  }
13258
13274
  }
13259
13275
  catch (e) {
13260
- logger.error('Error initializing mixpanel', e);
13276
+ logger$3.error('Error initializing mixpanel', e);
13261
13277
  }
13262
13278
  }
13263
13279
 
@@ -13613,7 +13629,7 @@ let globalObserver = null;
13613
13629
  */
13614
13630
  function registerReportingObserver(overrideExisting = false) {
13615
13631
  if (!(window.ReportingObserver)) {
13616
- logger.warn(ERROR_MESSAGE.MISSING_REPORTING_OBSERVER);
13632
+ logger$3.warn(ERROR_MESSAGE.MISSING_REPORTING_OBSERVER);
13617
13633
  return null;
13618
13634
  }
13619
13635
  if (overrideExisting) {
@@ -13635,7 +13651,7 @@ function registerReportingObserver(overrideExisting = false) {
13635
13651
  if (!embedConfig.suppressErrorAlerts) {
13636
13652
  alert(ERROR_MESSAGE.CSP_VIOLATION_ALERT);
13637
13653
  }
13638
- logger.error(ERROR_MESSAGE.CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE);
13654
+ logger$3.error(ERROR_MESSAGE.CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE);
13639
13655
  }
13640
13656
  });
13641
13657
  }, { buffered: true });
@@ -13660,7 +13676,7 @@ function tokenizedFailureLoggedFetch(url, options = {}) {
13660
13676
  return tokenizedFetch(url, options).then(async (r) => {
13661
13677
  var _a;
13662
13678
  if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
13663
- logger.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
13679
+ logger$3.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
13664
13680
  }
13665
13681
  return r;
13666
13682
  });
@@ -13710,7 +13726,7 @@ async function isActiveService(thoughtSpotHost) {
13710
13726
  return res.ok;
13711
13727
  }
13712
13728
  catch (e) {
13713
- logger.warn(`Is Logged In Service failed : ${e.message}`);
13729
+ logger$3.warn(`Is Logged In Service failed : ${e.message}`);
13714
13730
  }
13715
13731
  return false;
13716
13732
  }
@@ -13841,7 +13857,7 @@ function setAuthEE(eventEmitter) {
13841
13857
  */
13842
13858
  function notifyAuthSDKSuccess() {
13843
13859
  if (!authEE) {
13844
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13860
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13845
13861
  return;
13846
13862
  }
13847
13863
  authEE.emit(AuthStatus.SDK_SUCCESS);
@@ -13851,7 +13867,7 @@ function notifyAuthSDKSuccess() {
13851
13867
  */
13852
13868
  async function notifyAuthSuccess() {
13853
13869
  if (!authEE) {
13854
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13870
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13855
13871
  return;
13856
13872
  }
13857
13873
  try {
@@ -13859,7 +13875,7 @@ async function notifyAuthSuccess() {
13859
13875
  authEE.emit(AuthStatus.SUCCESS, sessionInfo);
13860
13876
  }
13861
13877
  catch (e) {
13862
- logger.error(ERROR_MESSAGE.SESSION_INFO_FAILED);
13878
+ logger$3.error(ERROR_MESSAGE.SESSION_INFO_FAILED);
13863
13879
  }
13864
13880
  }
13865
13881
  /**
@@ -13868,7 +13884,7 @@ async function notifyAuthSuccess() {
13868
13884
  */
13869
13885
  function notifyAuthFailure(failureType) {
13870
13886
  if (!authEE) {
13871
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13887
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13872
13888
  return;
13873
13889
  }
13874
13890
  authEE.emit(AuthStatus.FAILURE, failureType);
@@ -13878,7 +13894,7 @@ function notifyAuthFailure(failureType) {
13878
13894
  */
13879
13895
  function notifyLogout() {
13880
13896
  if (!authEE) {
13881
- logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13897
+ logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13882
13898
  return;
13883
13899
  }
13884
13900
  authEE.emit(AuthStatus.LOGOUT);
@@ -13917,7 +13933,7 @@ async function postLoginService() {
13917
13933
  }
13918
13934
  }
13919
13935
  catch (e) {
13920
- logger.error('Post login services failed.', e.message, e);
13936
+ logger$3.error('Post login services failed.', e.message, e);
13921
13937
  }
13922
13938
  }
13923
13939
  /**
@@ -14111,7 +14127,7 @@ const doOIDCAuth = async (embedConfig) => {
14111
14127
  await doSSOAuth(embedConfig, ssoEndPoint);
14112
14128
  return loggedInStatus;
14113
14129
  };
14114
- const logout = async (embedConfig) => {
14130
+ const logout$1 = async (embedConfig) => {
14115
14131
  const { thoughtSpotHost } = embedConfig;
14116
14132
  await fetchLogoutService(thoughtSpotHost);
14117
14133
  resetCachedAuthToken();
@@ -14151,6 +14167,14 @@ const authenticate = async (embedConfig) => {
14151
14167
  };
14152
14168
 
14153
14169
  /* eslint-disable camelcase */
14170
+ /* eslint-disable import/no-mutable-exports */
14171
+ /**
14172
+ * Copyright (c) 2022
14173
+ *
14174
+ * Base classes
14175
+ * @summary Base classes
14176
+ * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14177
+ */
14154
14178
  const CONFIG_DEFAULTS = {
14155
14179
  loginFailedMessage: 'Not logged in',
14156
14180
  authTriggerText: 'Authorize',
@@ -14196,7 +14220,7 @@ const hostUrlToFeatureUrl = {
14196
14220
  const prefetch = (url, prefetchFeatures) => {
14197
14221
  if (url === '') {
14198
14222
  // eslint-disable-next-line no-console
14199
- logger.warn('The prefetch method does not have a valid URL');
14223
+ logger$3.warn('The prefetch method does not have a valid URL');
14200
14224
  }
14201
14225
  else {
14202
14226
  const features = prefetchFeatures || [PrefetchFeatures.FullApp];
@@ -14306,11 +14330,11 @@ function disableAutoLogin() {
14306
14330
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
14307
14331
  * @group Global methods
14308
14332
  */
14309
- const logout$1 = (doNotDisableAutoLogin = false) => {
14333
+ const logout = (doNotDisableAutoLogin = false) => {
14310
14334
  if (!doNotDisableAutoLogin) {
14311
14335
  disableAutoLogin();
14312
14336
  }
14313
- return logout(getEmbedConfig()).then((isLoggedIn) => {
14337
+ return logout$1(getEmbedConfig()).then((isLoggedIn) => {
14314
14338
  notifyLogout();
14315
14339
  return isLoggedIn;
14316
14340
  });
@@ -14607,7 +14631,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14607
14631
  });
14608
14632
  }
14609
14633
 
14610
- var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-dc.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"lib/src/index.js",limit:"49 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14634
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.0-dc.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"lib/src/index.js",limit:"49 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14611
14635
 
14612
14636
  /**
14613
14637
  * Copyright (c) 2022
@@ -14616,7 +14640,7 @@ var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-dc.1";var descripti
14616
14640
  * @summary Base classes
14617
14641
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14618
14642
  */
14619
- const { version: version$1 } = pkgInfo;
14643
+ const { version } = pkgInfo;
14620
14644
  /**
14621
14645
  * Global prefix for all Thoughtspot postHash Params.
14622
14646
  */
@@ -14705,7 +14729,7 @@ class TsEmbed {
14705
14729
  });
14706
14730
  }
14707
14731
  catch (e) {
14708
- logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14732
+ logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
14709
14733
  processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
14710
14734
  }
14711
14735
  }
@@ -14733,7 +14757,7 @@ class TsEmbed {
14733
14757
  allOtherKeys.forEach((key) => {
14734
14758
  if (!isUndefined(viewConfig[key])
14735
14759
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14736
- logger.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14760
+ logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14737
14761
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
14738
14762
  + `but a different value "${JSON.stringify(viewConfig[key])}" `
14739
14763
  + 'was passed to the Embed component. '
@@ -14780,7 +14804,7 @@ class TsEmbed {
14780
14804
  error,
14781
14805
  });
14782
14806
  // Log error
14783
- logger.error(error);
14807
+ logger$3.error(error);
14784
14808
  }
14785
14809
  /**
14786
14810
  * Extracts the type field from the event payload
@@ -14845,7 +14869,7 @@ class TsEmbed {
14845
14869
  this.executeCallbacks(EmbedEvent.Error, {
14846
14870
  offlineWarning,
14847
14871
  });
14848
- logger.warn(offlineWarning);
14872
+ logger$3.warn(offlineWarning);
14849
14873
  };
14850
14874
  window.addEventListener('offline', offlineEventListener);
14851
14875
  this.subscribedListeners = {
@@ -14889,7 +14913,7 @@ class TsEmbed {
14889
14913
  queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
14890
14914
  queryParams[Param.ViewPortHeight] = window.innerHeight;
14891
14915
  queryParams[Param.ViewPortWidth] = window.innerWidth;
14892
- queryParams[Param.Version] = version$1;
14916
+ queryParams[Param.Version] = version;
14893
14917
  queryParams[Param.AuthType] = this.embedConfig.authType;
14894
14918
  queryParams[Param.blockNonEmbedFullAppAccess] = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
14895
14919
  if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
@@ -15311,7 +15335,7 @@ class TsEmbed {
15311
15335
  isRegisteredBySDK,
15312
15336
  });
15313
15337
  if (this.isRendered) {
15314
- logger.warn('Please register event handlers before calling render');
15338
+ logger$3.warn('Please register event handlers before calling render');
15315
15339
  }
15316
15340
  const callbacks = this.eventHandlerMap.get(messageType) || [];
15317
15341
  callbacks.push({ options, callback });
@@ -15355,11 +15379,11 @@ class TsEmbed {
15355
15379
  }
15356
15380
  catch (e) {
15357
15381
  eventPort.postMessage({ error: e });
15358
- logger.log(e);
15382
+ logger$3.log(e);
15359
15383
  }
15360
15384
  }
15361
15385
  else {
15362
- logger.log('Event Port is not defined');
15386
+ logger$3.log('Event Port is not defined');
15363
15387
  }
15364
15388
  }
15365
15389
  /**
@@ -15401,7 +15425,7 @@ class TsEmbed {
15401
15425
  */
15402
15426
  preRender(showPreRenderByDefault = false) {
15403
15427
  if (!this.viewConfig.preRenderId) {
15404
- logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15428
+ logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15405
15429
  return this;
15406
15430
  }
15407
15431
  this.isPreRendered = true;
@@ -15446,7 +15470,7 @@ class TsEmbed {
15446
15470
  this.unsubscribeToEvents();
15447
15471
  }
15448
15472
  catch (e) {
15449
- logger.log('Error destroying TS Embed', e);
15473
+ logger$3.log('Error destroying TS Embed', e);
15450
15474
  }
15451
15475
  }
15452
15476
  getUnderlyingFrameElement() {
@@ -15475,7 +15499,7 @@ class TsEmbed {
15475
15499
  */
15476
15500
  showPreRender() {
15477
15501
  if (!this.viewConfig.preRenderId) {
15478
- logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15502
+ logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
15479
15503
  return;
15480
15504
  }
15481
15505
  if (!this.isPreRenderAvailable()) {
@@ -15517,7 +15541,7 @@ class TsEmbed {
15517
15541
  */
15518
15542
  syncPreRenderStyle() {
15519
15543
  if (!this.isPreRenderAvailable() || !this.el) {
15520
- logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
15544
+ logger$3.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
15521
15545
  return;
15522
15546
  }
15523
15547
  const elBoundingClient = this.el.getBoundingClientRect();
@@ -15535,7 +15559,7 @@ class TsEmbed {
15535
15559
  hidePreRender() {
15536
15560
  if (!this.isPreRenderAvailable()) {
15537
15561
  // if the embed component is not preRendered , nothing to hide
15538
- logger.warn('PreRender should be called before hiding it using hidePreRender.');
15562
+ logger$3.warn('PreRender should be called before hiding it using hidePreRender.');
15539
15563
  return;
15540
15564
  }
15541
15565
  const preRenderHideStyles = {
@@ -15690,7 +15714,7 @@ var Page;
15690
15714
  * Define the initial state os column custom group accordions
15691
15715
  * in data panel v2.
15692
15716
  */
15693
- var DataPanelCustomColumnGroupsAccordionState;
15717
+ var DataPanelCustomColumnGroupsAccordionState$1;
15694
15718
  (function (DataPanelCustomColumnGroupsAccordionState) {
15695
15719
  /**
15696
15720
  * Expand all the accordion initially in data panel v2.
@@ -15704,7 +15728,7 @@ var DataPanelCustomColumnGroupsAccordionState;
15704
15728
  * Expand the first accordion and collapse the rest.
15705
15729
  */
15706
15730
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
15707
- })(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
15731
+ })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
15708
15732
  var HomePageSearchBarMode;
15709
15733
  (function (HomePageSearchBarMode) {
15710
15734
  HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
@@ -15753,7 +15777,7 @@ class AppEmbed extends V1Embed {
15753
15777
  getEmbedParams() {
15754
15778
  const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15755
15779
  /* eslint-disable-next-line max-len */
15756
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15780
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15757
15781
  let params = {};
15758
15782
  params[Param.EmbedApp] = true;
15759
15783
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15803,15 +15827,15 @@ class AppEmbed extends V1Embed {
15803
15827
  params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15804
15828
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15805
15829
  if (dataPanelCustomGroupsAccordionInitialState
15806
- === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
15830
+ === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
15807
15831
  || dataPanelCustomGroupsAccordionInitialState
15808
- === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
15832
+ === DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
15809
15833
  /* eslint-disable-next-line max-len */
15810
15834
  params[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
15811
15835
  }
15812
15836
  else {
15813
15837
  /* eslint-disable-next-line max-len */
15814
- params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
15838
+ params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
15815
15839
  }
15816
15840
  const queryParams = getQueryParamString(params, true);
15817
15841
  return queryParams;
@@ -15882,7 +15906,7 @@ class AppEmbed extends V1Embed {
15882
15906
  */
15883
15907
  navigateToPage(path, noReload = false) {
15884
15908
  if (!this.iFrame) {
15885
- logger.log('Please call render before invoking this method');
15909
+ logger$3.log('Please call render before invoking this method');
15886
15910
  return;
15887
15911
  }
15888
15912
  if (noReload) {
@@ -15890,7 +15914,7 @@ class AppEmbed extends V1Embed {
15890
15914
  }
15891
15915
  else {
15892
15916
  if (typeof path !== 'string') {
15893
- logger.warn('Path can only by a string when triggered without noReload');
15917
+ logger$3.warn('Path can only by a string when triggered without noReload');
15894
15918
  return;
15895
15919
  }
15896
15920
  const iframeSrc = this.iFrame.src;
@@ -16252,7 +16276,7 @@ class PinboardEmbed extends LiveboardEmbed {
16252
16276
  * Define the initial state os column custom group accordions
16253
16277
  * in data panel v2.
16254
16278
  */
16255
- var DataPanelCustomColumnGroupsAccordionState$1;
16279
+ var DataPanelCustomColumnGroupsAccordionState;
16256
16280
  (function (DataPanelCustomColumnGroupsAccordionState) {
16257
16281
  /**
16258
16282
  * Expand all the accordion initially in data panel v2.
@@ -16266,7 +16290,7 @@ var DataPanelCustomColumnGroupsAccordionState$1;
16266
16290
  * Expand the first accordion and collapse the rest.
16267
16291
  */
16268
16292
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
16269
- })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
16293
+ })(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
16270
16294
  const HiddenActionItemByDefaultForSearchEmbed = [
16271
16295
  Action.EditACopy,
16272
16296
  Action.SaveAsView,
@@ -16302,7 +16326,7 @@ class SearchEmbed extends TsEmbed {
16302
16326
  var _a;
16303
16327
  const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
16304
16328
  /* eslint-disable-next-line max-len */
16305
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
16329
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
16306
16330
  const queryParams = this.getBaseQueryParams();
16307
16331
  queryParams[Param.HideActions] = [
16308
16332
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -16350,15 +16374,15 @@ class SearchEmbed extends TsEmbed {
16350
16374
  queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
16351
16375
  queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
16352
16376
  if (dataPanelCustomGroupsAccordionInitialState
16353
- === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
16377
+ === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
16354
16378
  || dataPanelCustomGroupsAccordionInitialState
16355
- === DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
16379
+ === DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
16356
16380
  /* eslint-disable-next-line max-len */
16357
16381
  queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
16358
16382
  }
16359
16383
  else {
16360
16384
  /* eslint-disable-next-line max-len */
16361
- queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
16385
+ queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
16362
16386
  }
16363
16387
  let query = '';
16364
16388
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -16391,7 +16415,7 @@ class SearchEmbed extends TsEmbed {
16391
16415
  */
16392
16416
  async render() {
16393
16417
  super.render();
16394
- const { answerId } = this.viewConfig;
16418
+ this.viewConfig;
16395
16419
  const src = this.getIFrameSrc();
16396
16420
  await this.renderIFrame(src);
16397
16421
  getAuthPromise().then(() => {
@@ -17470,16 +17494,16 @@ const ALIAS = Symbol.for('yaml.alias');
17470
17494
  const DOC = Symbol.for('yaml.document');
17471
17495
  const MAP = Symbol.for('yaml.map');
17472
17496
  const PAIR = Symbol.for('yaml.pair');
17473
- const SCALAR = Symbol.for('yaml.scalar');
17497
+ const SCALAR$1 = Symbol.for('yaml.scalar');
17474
17498
  const SEQ = Symbol.for('yaml.seq');
17475
17499
  const NODE_TYPE = Symbol.for('yaml.node.type');
17476
17500
  const isAlias = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === ALIAS;
17477
17501
  const isDocument = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === DOC;
17478
17502
  const isMap = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === MAP;
17479
17503
  const isPair = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === PAIR;
17480
- const isScalar = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR;
17504
+ const isScalar$1 = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR$1;
17481
17505
  const isSeq = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SEQ;
17482
- function isCollection(node) {
17506
+ function isCollection$1(node) {
17483
17507
  if (node && typeof node === 'object')
17484
17508
  switch (node[NODE_TYPE]) {
17485
17509
  case MAP:
@@ -17493,17 +17517,17 @@ function isNode(node) {
17493
17517
  switch (node[NODE_TYPE]) {
17494
17518
  case ALIAS:
17495
17519
  case MAP:
17496
- case SCALAR:
17520
+ case SCALAR$1:
17497
17521
  case SEQ:
17498
17522
  return true;
17499
17523
  }
17500
17524
  return false;
17501
17525
  }
17502
- const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
17526
+ const hasAnchor = (node) => (isScalar$1(node) || isCollection$1(node)) && !!node.anchor;
17503
17527
 
17504
- const BREAK = Symbol('break visit');
17505
- const SKIP = Symbol('skip children');
17506
- const REMOVE = Symbol('remove node');
17528
+ const BREAK$1 = Symbol('break visit');
17529
+ const SKIP$1 = Symbol('skip children');
17530
+ const REMOVE$1 = Symbol('remove node');
17507
17531
  /**
17508
17532
  * Apply a visitor to an AST node or document.
17509
17533
  *
@@ -17534,11 +17558,11 @@ const REMOVE = Symbol('remove node');
17534
17558
  * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
17535
17559
  * specific defined one will be used for each node.
17536
17560
  */
17537
- function visit(node, visitor) {
17561
+ function visit$1(node, visitor) {
17538
17562
  const visitor_ = initVisitor(visitor);
17539
17563
  if (isDocument(node)) {
17540
17564
  const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
17541
- if (cd === REMOVE)
17565
+ if (cd === REMOVE$1)
17542
17566
  node.contents = null;
17543
17567
  }
17544
17568
  else
@@ -17548,11 +17572,11 @@ function visit(node, visitor) {
17548
17572
  // namespace using `var`, but then complains about that because
17549
17573
  // `unique symbol` must be `const`.
17550
17574
  /** Terminate visit traversal completely */
17551
- visit.BREAK = BREAK;
17575
+ visit$1.BREAK = BREAK$1;
17552
17576
  /** Do not visit the children of the current node */
17553
- visit.SKIP = SKIP;
17577
+ visit$1.SKIP = SKIP$1;
17554
17578
  /** Remove the current node */
17555
- visit.REMOVE = REMOVE;
17579
+ visit$1.REMOVE = REMOVE$1;
17556
17580
  function visit_(key, node, visitor, path) {
17557
17581
  const ctrl = callVisitor(key, node, visitor, path);
17558
17582
  if (isNode(ctrl) || isPair(ctrl)) {
@@ -17560,15 +17584,15 @@ function visit_(key, node, visitor, path) {
17560
17584
  return visit_(key, ctrl, visitor, path);
17561
17585
  }
17562
17586
  if (typeof ctrl !== 'symbol') {
17563
- if (isCollection(node)) {
17587
+ if (isCollection$1(node)) {
17564
17588
  path = Object.freeze(path.concat(node));
17565
17589
  for (let i = 0; i < node.items.length; ++i) {
17566
17590
  const ci = visit_(i, node.items[i], visitor, path);
17567
17591
  if (typeof ci === 'number')
17568
17592
  i = ci - 1;
17569
- else if (ci === BREAK)
17570
- return BREAK;
17571
- else if (ci === REMOVE) {
17593
+ else if (ci === BREAK$1)
17594
+ return BREAK$1;
17595
+ else if (ci === REMOVE$1) {
17572
17596
  node.items.splice(i, 1);
17573
17597
  i -= 1;
17574
17598
  }
@@ -17577,14 +17601,14 @@ function visit_(key, node, visitor, path) {
17577
17601
  else if (isPair(node)) {
17578
17602
  path = Object.freeze(path.concat(node));
17579
17603
  const ck = visit_('key', node.key, visitor, path);
17580
- if (ck === BREAK)
17581
- return BREAK;
17582
- else if (ck === REMOVE)
17604
+ if (ck === BREAK$1)
17605
+ return BREAK$1;
17606
+ else if (ck === REMOVE$1)
17583
17607
  node.key = null;
17584
17608
  const cv = visit_('value', node.value, visitor, path);
17585
- if (cv === BREAK)
17586
- return BREAK;
17587
- else if (cv === REMOVE)
17609
+ if (cv === BREAK$1)
17610
+ return BREAK$1;
17611
+ else if (cv === REMOVE$1)
17588
17612
  node.value = null;
17589
17613
  }
17590
17614
  }
@@ -17625,7 +17649,7 @@ async function visitAsync(node, visitor) {
17625
17649
  const visitor_ = initVisitor(visitor);
17626
17650
  if (isDocument(node)) {
17627
17651
  const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
17628
- if (cd === REMOVE)
17652
+ if (cd === REMOVE$1)
17629
17653
  node.contents = null;
17630
17654
  }
17631
17655
  else
@@ -17635,11 +17659,11 @@ async function visitAsync(node, visitor) {
17635
17659
  // namespace using `var`, but then complains about that because
17636
17660
  // `unique symbol` must be `const`.
17637
17661
  /** Terminate visit traversal completely */
17638
- visitAsync.BREAK = BREAK;
17662
+ visitAsync.BREAK = BREAK$1;
17639
17663
  /** Do not visit the children of the current node */
17640
- visitAsync.SKIP = SKIP;
17664
+ visitAsync.SKIP = SKIP$1;
17641
17665
  /** Remove the current node */
17642
- visitAsync.REMOVE = REMOVE;
17666
+ visitAsync.REMOVE = REMOVE$1;
17643
17667
  async function visitAsync_(key, node, visitor, path) {
17644
17668
  const ctrl = await callVisitor(key, node, visitor, path);
17645
17669
  if (isNode(ctrl) || isPair(ctrl)) {
@@ -17647,15 +17671,15 @@ async function visitAsync_(key, node, visitor, path) {
17647
17671
  return visitAsync_(key, ctrl, visitor, path);
17648
17672
  }
17649
17673
  if (typeof ctrl !== 'symbol') {
17650
- if (isCollection(node)) {
17674
+ if (isCollection$1(node)) {
17651
17675
  path = Object.freeze(path.concat(node));
17652
17676
  for (let i = 0; i < node.items.length; ++i) {
17653
17677
  const ci = await visitAsync_(i, node.items[i], visitor, path);
17654
17678
  if (typeof ci === 'number')
17655
17679
  i = ci - 1;
17656
- else if (ci === BREAK)
17657
- return BREAK;
17658
- else if (ci === REMOVE) {
17680
+ else if (ci === BREAK$1)
17681
+ return BREAK$1;
17682
+ else if (ci === REMOVE$1) {
17659
17683
  node.items.splice(i, 1);
17660
17684
  i -= 1;
17661
17685
  }
@@ -17664,14 +17688,14 @@ async function visitAsync_(key, node, visitor, path) {
17664
17688
  else if (isPair(node)) {
17665
17689
  path = Object.freeze(path.concat(node));
17666
17690
  const ck = await visitAsync_('key', node.key, visitor, path);
17667
- if (ck === BREAK)
17668
- return BREAK;
17669
- else if (ck === REMOVE)
17691
+ if (ck === BREAK$1)
17692
+ return BREAK$1;
17693
+ else if (ck === REMOVE$1)
17670
17694
  node.key = null;
17671
17695
  const cv = await visitAsync_('value', node.value, visitor, path);
17672
- if (cv === BREAK)
17673
- return BREAK;
17674
- else if (cv === REMOVE)
17696
+ if (cv === BREAK$1)
17697
+ return BREAK$1;
17698
+ else if (cv === REMOVE$1)
17675
17699
  node.value = null;
17676
17700
  }
17677
17701
  }
@@ -17705,7 +17729,7 @@ function callVisitor(key, node, visitor, path) {
17705
17729
  return visitor.Seq?.(key, node, path);
17706
17730
  if (isPair(node))
17707
17731
  return visitor.Pair?.(key, node, path);
17708
- if (isScalar(node))
17732
+ if (isScalar$1(node))
17709
17733
  return visitor.Scalar?.(key, node, path);
17710
17734
  if (isAlias(node))
17711
17735
  return visitor.Alias?.(key, node, path);
@@ -17713,7 +17737,7 @@ function callVisitor(key, node, visitor, path) {
17713
17737
  }
17714
17738
  function replaceNode(key, path, node) {
17715
17739
  const parent = path[path.length - 1];
17716
- if (isCollection(parent)) {
17740
+ if (isCollection$1(parent)) {
17717
17741
  parent.items[key] = node;
17718
17742
  }
17719
17743
  else if (isPair(parent)) {
@@ -17883,7 +17907,7 @@ class Directives {
17883
17907
  let tagNames;
17884
17908
  if (doc && tagEntries.length > 0 && isNode(doc.contents)) {
17885
17909
  const tags = {};
17886
- visit(doc.contents, (_key, node) => {
17910
+ visit$1(doc.contents, (_key, node) => {
17887
17911
  if (isNode(node) && node.tag)
17888
17912
  tags[node.tag] = true;
17889
17913
  });
@@ -17918,7 +17942,7 @@ function anchorIsValid(anchor) {
17918
17942
  }
17919
17943
  function anchorNames(root) {
17920
17944
  const anchors = new Set();
17921
- visit(root, {
17945
+ visit$1(root, {
17922
17946
  Value(_key, node) {
17923
17947
  if (node.anchor)
17924
17948
  anchors.add(node.anchor);
@@ -17957,7 +17981,7 @@ function createNodeAnchors(doc, prefix) {
17957
17981
  const ref = sourceObjects.get(source);
17958
17982
  if (typeof ref === 'object' &&
17959
17983
  ref.anchor &&
17960
- (isScalar(ref.node) || isCollection(ref.node))) {
17984
+ (isScalar$1(ref.node) || isCollection$1(ref.node))) {
17961
17985
  ref.node.anchor = ref.anchor;
17962
17986
  }
17963
17987
  else {
@@ -18108,10 +18132,10 @@ class Alias extends NodeBase {
18108
18132
  */
18109
18133
  resolve(doc) {
18110
18134
  let found = undefined;
18111
- visit(doc, {
18135
+ visit$1(doc, {
18112
18136
  Node: (_key, node) => {
18113
18137
  if (node === this)
18114
- return visit.BREAK;
18138
+ return visit$1.BREAK;
18115
18139
  if (node.anchor === this.source)
18116
18140
  found = node;
18117
18141
  }
@@ -18169,7 +18193,7 @@ function getAliasCount(doc, node, anchors) {
18169
18193
  const anchor = anchors && source && anchors.get(source);
18170
18194
  return anchor ? anchor.count * anchor.aliasCount : 0;
18171
18195
  }
18172
- else if (isCollection(node)) {
18196
+ else if (isCollection$1(node)) {
18173
18197
  let count = 0;
18174
18198
  for (const item of node.items) {
18175
18199
  const c = getAliasCount(doc, item, anchors);
@@ -18189,7 +18213,7 @@ function getAliasCount(doc, node, anchors) {
18189
18213
  const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object');
18190
18214
  class Scalar extends NodeBase {
18191
18215
  constructor(value) {
18192
- super(SCALAR);
18216
+ super(SCALAR$1);
18193
18217
  this.value = value;
18194
18218
  }
18195
18219
  toJSON(arg, ctx) {
@@ -18351,7 +18375,7 @@ class Collection extends NodeBase {
18351
18375
  else {
18352
18376
  const [key, ...rest] = path;
18353
18377
  const node = this.get(key, true);
18354
- if (isCollection(node))
18378
+ if (isCollection$1(node))
18355
18379
  node.addIn(rest, value);
18356
18380
  else if (node === undefined && this.schema)
18357
18381
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -18368,7 +18392,7 @@ class Collection extends NodeBase {
18368
18392
  if (rest.length === 0)
18369
18393
  return this.delete(key);
18370
18394
  const node = this.get(key, true);
18371
- if (isCollection(node))
18395
+ if (isCollection$1(node))
18372
18396
  return node.deleteIn(rest);
18373
18397
  else
18374
18398
  throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
@@ -18382,9 +18406,9 @@ class Collection extends NodeBase {
18382
18406
  const [key, ...rest] = path;
18383
18407
  const node = this.get(key, true);
18384
18408
  if (rest.length === 0)
18385
- return !keepScalar && isScalar(node) ? node.value : node;
18409
+ return !keepScalar && isScalar$1(node) ? node.value : node;
18386
18410
  else
18387
- return isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
18411
+ return isCollection$1(node) ? node.getIn(rest, keepScalar) : undefined;
18388
18412
  }
18389
18413
  hasAllNullValues(allowScalar) {
18390
18414
  return this.items.every(node => {
@@ -18393,7 +18417,7 @@ class Collection extends NodeBase {
18393
18417
  const n = node.value;
18394
18418
  return (n == null ||
18395
18419
  (allowScalar &&
18396
- isScalar(n) &&
18420
+ isScalar$1(n) &&
18397
18421
  n.value == null &&
18398
18422
  !n.commentBefore &&
18399
18423
  !n.comment &&
@@ -18408,7 +18432,7 @@ class Collection extends NodeBase {
18408
18432
  if (rest.length === 0)
18409
18433
  return this.has(key);
18410
18434
  const node = this.get(key, true);
18411
- return isCollection(node) ? node.hasIn(rest) : false;
18435
+ return isCollection$1(node) ? node.hasIn(rest) : false;
18412
18436
  }
18413
18437
  /**
18414
18438
  * Sets a value in this collection. For `!!set`, `value` needs to be a
@@ -18421,7 +18445,7 @@ class Collection extends NodeBase {
18421
18445
  }
18422
18446
  else {
18423
18447
  const node = this.get(key, true);
18424
- if (isCollection(node))
18448
+ if (isCollection$1(node))
18425
18449
  node.setIn(rest, value);
18426
18450
  else if (node === undefined && this.schema)
18427
18451
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -18968,7 +18992,7 @@ function getTagObject(tags, item) {
18968
18992
  }
18969
18993
  let tagObj = undefined;
18970
18994
  let obj;
18971
- if (isScalar(item)) {
18995
+ if (isScalar$1(item)) {
18972
18996
  obj = item.value;
18973
18997
  const match = tags.filter(t => t.identify?.(obj));
18974
18998
  tagObj =
@@ -18989,7 +19013,7 @@ function stringifyProps(node, tagObj, { anchors, doc }) {
18989
19013
  if (!doc.directives)
18990
19014
  return '';
18991
19015
  const props = [];
18992
- const anchor = (isScalar(node) || isCollection(node)) && node.anchor;
19016
+ const anchor = (isScalar$1(node) || isCollection$1(node)) && node.anchor;
18993
19017
  if (anchor && anchorIsValid(anchor)) {
18994
19018
  anchors.add(anchor);
18995
19019
  props.push(`&${anchor}`);
@@ -18999,7 +19023,7 @@ function stringifyProps(node, tagObj, { anchors, doc }) {
18999
19023
  props.push(doc.directives.tagString(tag));
19000
19024
  return props.join(' ');
19001
19025
  }
19002
- function stringify(item, ctx, onComment, onChompKeep) {
19026
+ function stringify$2(item, ctx, onComment, onChompKeep) {
19003
19027
  if (isPair(item))
19004
19028
  return item.toString(ctx, onComment, onChompKeep);
19005
19029
  if (isAlias(item)) {
@@ -19027,12 +19051,12 @@ function stringify(item, ctx, onComment, onChompKeep) {
19027
19051
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
19028
19052
  const str = typeof tagObj.stringify === 'function'
19029
19053
  ? tagObj.stringify(node, ctx, onComment, onChompKeep)
19030
- : isScalar(node)
19054
+ : isScalar$1(node)
19031
19055
  ? stringifyString(node, ctx, onComment, onChompKeep)
19032
19056
  : node.toString(ctx, onComment, onChompKeep);
19033
19057
  if (!props)
19034
19058
  return str;
19035
- return isScalar(node) || str[0] === '{' || str[0] === '['
19059
+ return isScalar$1(node) || str[0] === '{' || str[0] === '['
19036
19060
  ? `${props} ${str}`
19037
19061
  : `${props}\n${ctx.indent}${str}`;
19038
19062
  }
@@ -19044,7 +19068,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
19044
19068
  if (keyComment) {
19045
19069
  throw new Error('With simple keys, key nodes cannot have comments');
19046
19070
  }
19047
- if (isCollection(key) || (!isNode(key) && typeof key === 'object')) {
19071
+ if (isCollection$1(key) || (!isNode(key) && typeof key === 'object')) {
19048
19072
  const msg = 'With simple keys, collection cannot be used as a key value';
19049
19073
  throw new Error(msg);
19050
19074
  }
@@ -19052,8 +19076,8 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
19052
19076
  let explicitKey = !simpleKeys &&
19053
19077
  (!key ||
19054
19078
  (keyComment && value == null && !ctx.inFlow) ||
19055
- isCollection(key) ||
19056
- (isScalar(key)
19079
+ isCollection$1(key) ||
19080
+ (isScalar$1(key)
19057
19081
  ? key.type === Scalar.BLOCK_FOLDED || key.type === Scalar.BLOCK_LITERAL
19058
19082
  : typeof key === 'object'));
19059
19083
  ctx = Object.assign({}, ctx, {
@@ -19063,7 +19087,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
19063
19087
  });
19064
19088
  let keyCommentDone = false;
19065
19089
  let chompKeep = false;
19066
- let str = stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
19090
+ let str = stringify$2(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
19067
19091
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
19068
19092
  if (simpleKeys)
19069
19093
  throw new Error('With simple keys, single line scalar must not span more than 1024 characters');
@@ -19111,7 +19135,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
19111
19135
  value = doc.createNode(value);
19112
19136
  }
19113
19137
  ctx.implicitKey = false;
19114
- if (!explicitKey && !keyComment && isScalar(value))
19138
+ if (!explicitKey && !keyComment && isScalar$1(value))
19115
19139
  ctx.indentAtStart = str.length + 1;
19116
19140
  chompKeep = false;
19117
19141
  if (!indentSeq &&
@@ -19126,7 +19150,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
19126
19150
  ctx.indent = ctx.indent.substring(2);
19127
19151
  }
19128
19152
  let valueCommentDone = false;
19129
- const valueStr = stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
19153
+ const valueStr = stringify$2(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
19130
19154
  let ws = ' ';
19131
19155
  if (keyComment || vsb || vcb) {
19132
19156
  ws = vsb ? '\n' : '';
@@ -19142,7 +19166,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
19142
19166
  ws += `\n${ctx.indent}`;
19143
19167
  }
19144
19168
  }
19145
- else if (!explicitKey && isCollection(value)) {
19169
+ else if (!explicitKey && isCollection$1(value)) {
19146
19170
  const vs0 = valueStr[0];
19147
19171
  const nl0 = valueStr.indexOf('\n');
19148
19172
  const hasNewline = nl0 !== -1;
@@ -19228,7 +19252,7 @@ function addPairToJSMap(ctx, map, { key, value }) {
19228
19252
  return map;
19229
19253
  }
19230
19254
  const isMergeKey = (key) => key === MERGE_KEY ||
19231
- (isScalar(key) &&
19255
+ (isScalar$1(key) &&
19232
19256
  key.value === MERGE_KEY &&
19233
19257
  (!key.type || key.type === Scalar.PLAIN));
19234
19258
  // If the value associated with a merge key is a single mapping node, each of
@@ -19346,7 +19370,7 @@ function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, fl
19346
19370
  }
19347
19371
  }
19348
19372
  chompKeep = false;
19349
- let str = stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true));
19373
+ let str = stringify$2(item, itemCtx, () => (comment = null), () => (chompKeep = true));
19350
19374
  if (comment)
19351
19375
  str += lineComment(str, itemIndent, commentString(comment));
19352
19376
  if (chompKeep && comment)
@@ -19416,7 +19440,7 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
19416
19440
  }
19417
19441
  if (comment)
19418
19442
  reqNewline = true;
19419
- let str = stringify(item, itemCtx, () => (comment = null));
19443
+ let str = stringify$2(item, itemCtx, () => (comment = null));
19420
19444
  if (i < items.length - 1)
19421
19445
  str += ',';
19422
19446
  if (comment)
@@ -19456,12 +19480,12 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
19456
19480
  }
19457
19481
 
19458
19482
  function findPair(items, key) {
19459
- const k = isScalar(key) ? key.value : key;
19483
+ const k = isScalar$1(key) ? key.value : key;
19460
19484
  for (const it of items) {
19461
19485
  if (isPair(it)) {
19462
19486
  if (it.key === key || it.key === k)
19463
19487
  return it;
19464
- if (isScalar(it.key) && it.key.value === k)
19488
+ if (isScalar$1(it.key) && it.key.value === k)
19465
19489
  return it;
19466
19490
  }
19467
19491
  }
@@ -19525,7 +19549,7 @@ class YAMLMap extends Collection {
19525
19549
  if (!overwrite)
19526
19550
  throw new Error(`Key ${_pair.key} already set`);
19527
19551
  // For scalars, keep the old node & its comments and anchors
19528
- if (isScalar(prev.value) && isScalarValue(_pair.value))
19552
+ if (isScalar$1(prev.value) && isScalarValue(_pair.value))
19529
19553
  prev.value.value = _pair.value;
19530
19554
  else
19531
19555
  prev.value = _pair.value;
@@ -19551,7 +19575,7 @@ class YAMLMap extends Collection {
19551
19575
  get(key, keepScalar) {
19552
19576
  const it = findPair(this.items, key);
19553
19577
  const node = it?.value;
19554
- return (!keepScalar && isScalar(node) ? node.value : node) ?? undefined;
19578
+ return (!keepScalar && isScalar$1(node) ? node.value : node) ?? undefined;
19555
19579
  }
19556
19580
  has(key) {
19557
19581
  return !!findPair(this.items, key);
@@ -19635,7 +19659,7 @@ class YAMLSeq extends Collection {
19635
19659
  if (typeof idx !== 'number')
19636
19660
  return undefined;
19637
19661
  const it = this.items[idx];
19638
- return !keepScalar && isScalar(it) ? it.value : it;
19662
+ return !keepScalar && isScalar$1(it) ? it.value : it;
19639
19663
  }
19640
19664
  /**
19641
19665
  * Checks if the collection includes a value with the key `key`.
@@ -19659,7 +19683,7 @@ class YAMLSeq extends Collection {
19659
19683
  if (typeof idx !== 'number')
19660
19684
  throw new Error(`Expected a valid index, not ${key}.`);
19661
19685
  const prev = this.items[idx];
19662
- if (isScalar(prev) && isScalarValue(value))
19686
+ if (isScalar$1(prev) && isScalarValue(value))
19663
19687
  prev.value = value;
19664
19688
  else
19665
19689
  this.items[idx] = value;
@@ -19701,7 +19725,7 @@ class YAMLSeq extends Collection {
19701
19725
  }
19702
19726
  }
19703
19727
  function asItemIndex(key) {
19704
- let idx = isScalar(key) ? key.value : key;
19728
+ let idx = isScalar$1(key) ? key.value : key;
19705
19729
  if (idx && typeof idx === 'string')
19706
19730
  idx = Number(idx);
19707
19731
  return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0
@@ -19733,26 +19757,26 @@ const string = {
19733
19757
  }
19734
19758
  };
19735
19759
 
19736
- const nullTag$1 = {
19760
+ const nullTag = {
19737
19761
  identify: value => value == null,
19738
19762
  createNode: () => new Scalar(null),
19739
19763
  default: true,
19740
19764
  tag: 'tag:yaml.org,2002:null',
19741
19765
  test: /^(?:~|[Nn]ull|NULL)?$/,
19742
19766
  resolve: () => new Scalar(null),
19743
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag$1.test.test(source)
19767
+ stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
19744
19768
  ? source
19745
19769
  : ctx.options.nullStr
19746
19770
  };
19747
19771
 
19748
- const boolTag$2 = {
19772
+ const boolTag = {
19749
19773
  identify: value => typeof value === 'boolean',
19750
19774
  default: true,
19751
19775
  tag: 'tag:yaml.org,2002:bool',
19752
19776
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
19753
19777
  resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'),
19754
19778
  stringify({ source, value }, ctx) {
19755
- if (source && boolTag$2.test.test(source)) {
19779
+ if (source && boolTag.test.test(source)) {
19756
19780
  const sv = source[0] === 't' || source[0] === 'T';
19757
19781
  if (value === sv)
19758
19782
  return source;
@@ -19784,7 +19808,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
19784
19808
  return n;
19785
19809
  }
19786
19810
 
19787
- const floatNaN = {
19811
+ const floatNaN$1 = {
19788
19812
  identify: value => typeof value === 'number',
19789
19813
  default: true,
19790
19814
  tag: 'tag:yaml.org,2002:float',
@@ -19796,7 +19820,7 @@ const floatNaN = {
19796
19820
  : Number.POSITIVE_INFINITY,
19797
19821
  stringify: stringifyNumber
19798
19822
  };
19799
- const floatExp = {
19823
+ const floatExp$1 = {
19800
19824
  identify: value => typeof value === 'number',
19801
19825
  default: true,
19802
19826
  tag: 'tag:yaml.org,2002:float',
@@ -19808,7 +19832,7 @@ const floatExp = {
19808
19832
  return isFinite(num) ? num.toExponential() : stringifyNumber(node);
19809
19833
  }
19810
19834
  };
19811
- const float = {
19835
+ const float$1 = {
19812
19836
  identify: value => typeof value === 'number',
19813
19837
  default: true,
19814
19838
  tag: 'tag:yaml.org,2002:float',
@@ -19823,53 +19847,53 @@ const float = {
19823
19847
  stringify: stringifyNumber
19824
19848
  };
19825
19849
 
19826
- const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
19827
- const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
19828
- function intStringify(node, radix, prefix) {
19850
+ const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
19851
+ const intResolve$1 = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
19852
+ function intStringify$1(node, radix, prefix) {
19829
19853
  const { value } = node;
19830
- if (intIdentify(value) && value >= 0)
19854
+ if (intIdentify$2(value) && value >= 0)
19831
19855
  return prefix + value.toString(radix);
19832
19856
  return stringifyNumber(node);
19833
19857
  }
19834
- const intOct = {
19835
- identify: value => intIdentify(value) && value >= 0,
19858
+ const intOct$1 = {
19859
+ identify: value => intIdentify$2(value) && value >= 0,
19836
19860
  default: true,
19837
19861
  tag: 'tag:yaml.org,2002:int',
19838
19862
  format: 'OCT',
19839
19863
  test: /^0o[0-7]+$/,
19840
- resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
19841
- stringify: node => intStringify(node, 8, '0o')
19864
+ resolve: (str, _onError, opt) => intResolve$1(str, 2, 8, opt),
19865
+ stringify: node => intStringify$1(node, 8, '0o')
19842
19866
  };
19843
- const int = {
19844
- identify: intIdentify,
19867
+ const int$1 = {
19868
+ identify: intIdentify$2,
19845
19869
  default: true,
19846
19870
  tag: 'tag:yaml.org,2002:int',
19847
19871
  test: /^[-+]?[0-9]+$/,
19848
- resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
19872
+ resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
19849
19873
  stringify: stringifyNumber
19850
19874
  };
19851
- const intHex = {
19852
- identify: value => intIdentify(value) && value >= 0,
19875
+ const intHex$1 = {
19876
+ identify: value => intIdentify$2(value) && value >= 0,
19853
19877
  default: true,
19854
19878
  tag: 'tag:yaml.org,2002:int',
19855
19879
  format: 'HEX',
19856
19880
  test: /^0x[0-9a-fA-F]+$/,
19857
- resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
19858
- stringify: node => intStringify(node, 16, '0x')
19881
+ resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
19882
+ stringify: node => intStringify$1(node, 16, '0x')
19859
19883
  };
19860
19884
 
19861
- const schema = [
19885
+ const schema$2 = [
19862
19886
  map,
19863
19887
  seq,
19864
19888
  string,
19865
- nullTag$1,
19866
- boolTag$2,
19867
- intOct,
19868
- int,
19869
- intHex,
19870
- floatNaN,
19871
- floatExp,
19872
- float
19889
+ nullTag,
19890
+ boolTag,
19891
+ intOct$1,
19892
+ int$1,
19893
+ intHex$1,
19894
+ floatNaN$1,
19895
+ floatExp$1,
19896
+ float$1
19873
19897
  ];
19874
19898
 
19875
19899
  function intIdentify$1(value) {
@@ -20116,7 +20140,7 @@ const omap = {
20116
20140
  const pairs = resolvePairs(seq, onError);
20117
20141
  const seenKeys = [];
20118
20142
  for (const { key } of pairs.items) {
20119
- if (isScalar(key)) {
20143
+ if (isScalar$1(key)) {
20120
20144
  if (seenKeys.includes(key.value)) {
20121
20145
  onError(`Ordered maps must not include duplicate keys: ${key.value}`);
20122
20146
  }
@@ -20153,7 +20177,7 @@ const falseTag = {
20153
20177
  stringify: boolStringify
20154
20178
  };
20155
20179
 
20156
- const floatNaN$1 = {
20180
+ const floatNaN = {
20157
20181
  identify: value => typeof value === 'number',
20158
20182
  default: true,
20159
20183
  tag: 'tag:yaml.org,2002:float',
@@ -20165,7 +20189,7 @@ const floatNaN$1 = {
20165
20189
  : Number.POSITIVE_INFINITY,
20166
20190
  stringify: stringifyNumber
20167
20191
  };
20168
- const floatExp$1 = {
20192
+ const floatExp = {
20169
20193
  identify: value => typeof value === 'number',
20170
20194
  default: true,
20171
20195
  tag: 'tag:yaml.org,2002:float',
@@ -20177,7 +20201,7 @@ const floatExp$1 = {
20177
20201
  return isFinite(num) ? num.toExponential() : stringifyNumber(node);
20178
20202
  }
20179
20203
  };
20180
- const float$1 = {
20204
+ const float = {
20181
20205
  identify: value => typeof value === 'number',
20182
20206
  default: true,
20183
20207
  tag: 'tag:yaml.org,2002:float',
@@ -20195,8 +20219,8 @@ const float$1 = {
20195
20219
  stringify: stringifyNumber
20196
20220
  };
20197
20221
 
20198
- const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
20199
- function intResolve$1(str, offset, radix, { intAsBigInt }) {
20222
+ const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
20223
+ function intResolve(str, offset, radix, { intAsBigInt }) {
20200
20224
  const sign = str[0];
20201
20225
  if (sign === '-' || sign === '+')
20202
20226
  offset += 1;
@@ -20219,48 +20243,48 @@ function intResolve$1(str, offset, radix, { intAsBigInt }) {
20219
20243
  const n = parseInt(str, radix);
20220
20244
  return sign === '-' ? -1 * n : n;
20221
20245
  }
20222
- function intStringify$1(node, radix, prefix) {
20246
+ function intStringify(node, radix, prefix) {
20223
20247
  const { value } = node;
20224
- if (intIdentify$2(value)) {
20248
+ if (intIdentify(value)) {
20225
20249
  const str = value.toString(radix);
20226
20250
  return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
20227
20251
  }
20228
20252
  return stringifyNumber(node);
20229
20253
  }
20230
20254
  const intBin = {
20231
- identify: intIdentify$2,
20255
+ identify: intIdentify,
20232
20256
  default: true,
20233
20257
  tag: 'tag:yaml.org,2002:int',
20234
20258
  format: 'BIN',
20235
20259
  test: /^[-+]?0b[0-1_]+$/,
20236
- resolve: (str, _onError, opt) => intResolve$1(str, 2, 2, opt),
20237
- stringify: node => intStringify$1(node, 2, '0b')
20260
+ resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt),
20261
+ stringify: node => intStringify(node, 2, '0b')
20238
20262
  };
20239
- const intOct$1 = {
20240
- identify: intIdentify$2,
20263
+ const intOct = {
20264
+ identify: intIdentify,
20241
20265
  default: true,
20242
20266
  tag: 'tag:yaml.org,2002:int',
20243
20267
  format: 'OCT',
20244
20268
  test: /^[-+]?0[0-7_]+$/,
20245
- resolve: (str, _onError, opt) => intResolve$1(str, 1, 8, opt),
20246
- stringify: node => intStringify$1(node, 8, '0')
20269
+ resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt),
20270
+ stringify: node => intStringify(node, 8, '0')
20247
20271
  };
20248
- const int$1 = {
20249
- identify: intIdentify$2,
20272
+ const int = {
20273
+ identify: intIdentify,
20250
20274
  default: true,
20251
20275
  tag: 'tag:yaml.org,2002:int',
20252
20276
  test: /^[-+]?[0-9][0-9_]*$/,
20253
- resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
20277
+ resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
20254
20278
  stringify: stringifyNumber
20255
20279
  };
20256
- const intHex$1 = {
20257
- identify: intIdentify$2,
20280
+ const intHex = {
20281
+ identify: intIdentify,
20258
20282
  default: true,
20259
20283
  tag: 'tag:yaml.org,2002:int',
20260
20284
  format: 'HEX',
20261
20285
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
20262
- resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
20263
- stringify: node => intStringify$1(node, 16, '0x')
20286
+ resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
20287
+ stringify: node => intStringify(node, 16, '0x')
20264
20288
  };
20265
20289
 
20266
20290
  class YAMLSet extends YAMLMap {
@@ -20291,7 +20315,7 @@ class YAMLSet extends YAMLMap {
20291
20315
  get(key, keepPair) {
20292
20316
  const pair = findPair(this.items, key);
20293
20317
  return !keepPair && isPair(pair)
20294
- ? isScalar(pair.key)
20318
+ ? isScalar$1(pair.key)
20295
20319
  ? pair.key.value
20296
20320
  : pair.key
20297
20321
  : pair;
@@ -20449,20 +20473,20 @@ const timestamp = {
20449
20473
  stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
20450
20474
  };
20451
20475
 
20452
- const schema$2 = [
20476
+ const schema = [
20453
20477
  map,
20454
20478
  seq,
20455
20479
  string,
20456
- nullTag$1,
20480
+ nullTag,
20457
20481
  trueTag,
20458
20482
  falseTag,
20459
20483
  intBin,
20460
- intOct$1,
20461
- int$1,
20462
- intHex$1,
20463
- floatNaN$1,
20464
- floatExp$1,
20465
- float$1,
20484
+ intOct,
20485
+ int,
20486
+ intHex,
20487
+ floatNaN,
20488
+ floatExp,
20489
+ float,
20466
20490
  binary,
20467
20491
  omap,
20468
20492
  pairs,
@@ -20473,25 +20497,25 @@ const schema$2 = [
20473
20497
  ];
20474
20498
 
20475
20499
  const schemas = new Map([
20476
- ['core', schema],
20500
+ ['core', schema$2],
20477
20501
  ['failsafe', [map, seq, string]],
20478
20502
  ['json', schema$1],
20479
- ['yaml11', schema$2],
20480
- ['yaml-1.1', schema$2]
20503
+ ['yaml11', schema],
20504
+ ['yaml-1.1', schema]
20481
20505
  ]);
20482
20506
  const tagsByName = {
20483
20507
  binary,
20484
- bool: boolTag$2,
20485
- float,
20486
- floatExp,
20487
- floatNaN,
20508
+ bool: boolTag,
20509
+ float: float$1,
20510
+ floatExp: floatExp$1,
20511
+ floatNaN: floatNaN$1,
20488
20512
  floatTime,
20489
- int,
20490
- intHex,
20491
- intOct,
20513
+ int: int$1,
20514
+ intHex: intHex$1,
20515
+ intOct: intOct$1,
20492
20516
  intTime,
20493
20517
  map,
20494
- null: nullTag$1,
20518
+ null: nullTag,
20495
20519
  omap,
20496
20520
  pairs,
20497
20521
  seq,
@@ -20552,7 +20576,7 @@ class Schema {
20552
20576
  this.tags = getTags(customTags, this.name);
20553
20577
  this.toStringOptions = toStringDefaults ?? null;
20554
20578
  Object.defineProperty(this, MAP, { value: map });
20555
- Object.defineProperty(this, SCALAR, { value: string });
20579
+ Object.defineProperty(this, SCALAR$1, { value: string });
20556
20580
  Object.defineProperty(this, SEQ, { value: seq });
20557
20581
  // Used by createMap()
20558
20582
  this.sortMapEntries =
@@ -20606,7 +20630,7 @@ function stringifyDocument(doc, options) {
20606
20630
  contentComment = doc.contents.comment;
20607
20631
  }
20608
20632
  const onChompKeep = contentComment ? undefined : () => (chompKeep = true);
20609
- let body = stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep);
20633
+ let body = stringify$2(doc.contents, ctx, () => (contentComment = null), onChompKeep);
20610
20634
  if (contentComment)
20611
20635
  body += lineComment(body, '', commentString(contentComment));
20612
20636
  if ((body[0] === '|' || body[0] === '>') &&
@@ -20619,7 +20643,7 @@ function stringifyDocument(doc, options) {
20619
20643
  lines.push(body);
20620
20644
  }
20621
20645
  else {
20622
- lines.push(stringify(doc.contents, ctx));
20646
+ lines.push(stringify$2(doc.contents, ctx));
20623
20647
  }
20624
20648
  if (doc.directives?.docEnd) {
20625
20649
  if (doc.comment) {
@@ -20775,7 +20799,7 @@ class Document {
20775
20799
  sourceObjects
20776
20800
  };
20777
20801
  const node = createNode(value, tag, ctx);
20778
- if (flow && isCollection(node))
20802
+ if (flow && isCollection$1(node))
20779
20803
  node.flow = true;
20780
20804
  setAnchors();
20781
20805
  return node;
@@ -20818,7 +20842,7 @@ class Document {
20818
20842
  * `true` (collections are always returned intact).
20819
20843
  */
20820
20844
  get(key, keepScalar) {
20821
- return isCollection(this.contents)
20845
+ return isCollection$1(this.contents)
20822
20846
  ? this.contents.get(key, keepScalar)
20823
20847
  : undefined;
20824
20848
  }
@@ -20829,10 +20853,10 @@ class Document {
20829
20853
  */
20830
20854
  getIn(path, keepScalar) {
20831
20855
  if (isEmptyPath(path))
20832
- return !keepScalar && isScalar(this.contents)
20856
+ return !keepScalar && isScalar$1(this.contents)
20833
20857
  ? this.contents.value
20834
20858
  : this.contents;
20835
- return isCollection(this.contents)
20859
+ return isCollection$1(this.contents)
20836
20860
  ? this.contents.getIn(path, keepScalar)
20837
20861
  : undefined;
20838
20862
  }
@@ -20840,7 +20864,7 @@ class Document {
20840
20864
  * Checks if the document includes a value with the key `key`.
20841
20865
  */
20842
20866
  has(key) {
20843
- return isCollection(this.contents) ? this.contents.has(key) : false;
20867
+ return isCollection$1(this.contents) ? this.contents.has(key) : false;
20844
20868
  }
20845
20869
  /**
20846
20870
  * Checks if the document includes a value at `path`.
@@ -20848,7 +20872,7 @@ class Document {
20848
20872
  hasIn(path) {
20849
20873
  if (isEmptyPath(path))
20850
20874
  return this.contents !== undefined;
20851
- return isCollection(this.contents) ? this.contents.hasIn(path) : false;
20875
+ return isCollection$1(this.contents) ? this.contents.hasIn(path) : false;
20852
20876
  }
20853
20877
  /**
20854
20878
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -20965,7 +20989,7 @@ class Document {
20965
20989
  }
20966
20990
  }
20967
20991
  function assertCollection(contents) {
20968
- if (isCollection(contents))
20992
+ if (isCollection$1(contents))
20969
20993
  return true;
20970
20994
  throw new Error('Expected a YAML collection as document contents');
20971
20995
  }
@@ -21225,8 +21249,8 @@ function mapIncludes(ctx, items, search) {
21225
21249
  const isEqual = typeof uniqueKeys === 'function'
21226
21250
  ? uniqueKeys
21227
21251
  : (a, b) => a === b ||
21228
- (isScalar(a) &&
21229
- isScalar(b) &&
21252
+ (isScalar$1(a) &&
21253
+ isScalar$1(b) &&
21230
21254
  a.value === b.value &&
21231
21255
  !(a.value === '<<' && ctx.schema.merge));
21232
21256
  return items.some(pair => isEqual(pair.key, search));
@@ -22112,11 +22136,11 @@ function composeScalar(ctx, token, tagToken, onError) {
22112
22136
  ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError)
22113
22137
  : token.type === 'scalar'
22114
22138
  ? findScalarTagByTest(ctx, value, token, onError)
22115
- : ctx.schema[SCALAR];
22139
+ : ctx.schema[SCALAR$1];
22116
22140
  let scalar;
22117
22141
  try {
22118
22142
  const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
22119
- scalar = isScalar(res) ? res : new Scalar(res);
22143
+ scalar = isScalar$1(res) ? res : new Scalar(res);
22120
22144
  }
22121
22145
  catch (error) {
22122
22146
  const msg = error instanceof Error ? error.message : String(error);
@@ -22137,7 +22161,7 @@ function composeScalar(ctx, token, tagToken, onError) {
22137
22161
  }
22138
22162
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
22139
22163
  if (tagName === '!')
22140
- return schema[SCALAR]; // non-specific tag
22164
+ return schema[SCALAR$1]; // non-specific tag
22141
22165
  const matchWithTest = [];
22142
22166
  for (const tag of schema.tags) {
22143
22167
  if (!tag.collection && tag.tag === tagName) {
@@ -22158,13 +22182,13 @@ function findScalarTagByName(schema, value, tagName, tagToken, onError) {
22158
22182
  return kt;
22159
22183
  }
22160
22184
  onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
22161
- return schema[SCALAR];
22185
+ return schema[SCALAR$1];
22162
22186
  }
22163
22187
  function findScalarTagByTest({ directives, schema }, value, token, onError) {
22164
- const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR];
22188
+ const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR$1];
22165
22189
  if (schema.compat) {
22166
22190
  const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
22167
- schema[SCALAR];
22191
+ schema[SCALAR$1];
22168
22192
  if (tag.tag !== compat.tag) {
22169
22193
  const ts = directives.tagString(tag.tag);
22170
22194
  const cs = directives.tagString(compat.tag);
@@ -22398,7 +22422,7 @@ class Composer {
22398
22422
  else if (afterEmptyLine || doc.directives.docStart || !dc) {
22399
22423
  doc.commentBefore = comment;
22400
22424
  }
22401
- else if (isCollection(dc) && !dc.flow && dc.items.length > 0) {
22425
+ else if (isCollection$1(dc) && !dc.flow && dc.items.length > 0) {
22402
22426
  let it = dc.items[0];
22403
22427
  if (isPair(it))
22404
22428
  it = it.key;
@@ -22799,9 +22823,9 @@ function stringifyItem({ start, key, sep, value }) {
22799
22823
  return res;
22800
22824
  }
22801
22825
 
22802
- const BREAK$1 = Symbol('break visit');
22803
- const SKIP$1 = Symbol('skip children');
22804
- const REMOVE$1 = Symbol('remove item');
22826
+ const BREAK = Symbol('break visit');
22827
+ const SKIP = Symbol('skip children');
22828
+ const REMOVE = Symbol('remove item');
22805
22829
  /**
22806
22830
  * Apply a visitor to a CST document or item.
22807
22831
  *
@@ -22830,7 +22854,7 @@ const REMOVE$1 = Symbol('remove item');
22830
22854
  * visitor is called on item entry, next visitors are called after handling
22831
22855
  * a non-empty `key` and when exiting the item.
22832
22856
  */
22833
- function visit$1(cst, visitor) {
22857
+ function visit(cst, visitor) {
22834
22858
  if ('type' in cst && cst.type === 'document')
22835
22859
  cst = { start: cst.start, value: cst.value };
22836
22860
  _visit(Object.freeze([]), cst, visitor);
@@ -22839,13 +22863,13 @@ function visit$1(cst, visitor) {
22839
22863
  // namespace using `var`, but then complains about that because
22840
22864
  // `unique symbol` must be `const`.
22841
22865
  /** Terminate visit traversal completely */
22842
- visit$1.BREAK = BREAK$1;
22866
+ visit.BREAK = BREAK;
22843
22867
  /** Do not visit the children of the current item */
22844
- visit$1.SKIP = SKIP$1;
22868
+ visit.SKIP = SKIP;
22845
22869
  /** Remove the current item */
22846
- visit$1.REMOVE = REMOVE$1;
22870
+ visit.REMOVE = REMOVE;
22847
22871
  /** Find the item at `path` from `cst` as the root */
22848
- visit$1.itemAtPath = (cst, path) => {
22872
+ visit.itemAtPath = (cst, path) => {
22849
22873
  let item = cst;
22850
22874
  for (const [field, index] of path) {
22851
22875
  const tok = item?.[field];
@@ -22862,8 +22886,8 @@ visit$1.itemAtPath = (cst, path) => {
22862
22886
  *
22863
22887
  * Throws an error if the collection is not found, which should never happen if the item itself exists.
22864
22888
  */
22865
- visit$1.parentCollection = (cst, path) => {
22866
- const parent = visit$1.itemAtPath(cst, path.slice(0, -1));
22889
+ visit.parentCollection = (cst, path) => {
22890
+ const parent = visit.itemAtPath(cst, path.slice(0, -1));
22867
22891
  const field = path[path.length - 1][0];
22868
22892
  const coll = parent?.[field];
22869
22893
  if (coll && 'items' in coll)
@@ -22881,9 +22905,9 @@ function _visit(path, item, visitor) {
22881
22905
  const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
22882
22906
  if (typeof ci === 'number')
22883
22907
  i = ci - 1;
22884
- else if (ci === BREAK$1)
22885
- return BREAK$1;
22886
- else if (ci === REMOVE$1) {
22908
+ else if (ci === BREAK)
22909
+ return BREAK;
22910
+ else if (ci === REMOVE) {
22887
22911
  token.items.splice(i, 1);
22888
22912
  i -= 1;
22889
22913
  }
@@ -22902,11 +22926,11 @@ const DOCUMENT = '\x02'; // C0: Start of Text
22902
22926
  /** Unexpected end of flow-mode */
22903
22927
  const FLOW_END = '\x18'; // C0: Cancel
22904
22928
  /** Next token is a scalar value */
22905
- const SCALAR$1 = '\x1f'; // C0: Unit Separator
22929
+ const SCALAR = '\x1f'; // C0: Unit Separator
22906
22930
  /** @returns `true` if `token` is a flow or block collection */
22907
- const isCollection$1 = (token) => !!token && 'items' in token;
22931
+ const isCollection = (token) => !!token && 'items' in token;
22908
22932
  /** @returns `true` if `token` is a flow or block scalar; not an alias */
22909
- const isScalar$1 = (token) => !!token &&
22933
+ const isScalar = (token) => !!token &&
22910
22934
  (token.type === 'scalar' ||
22911
22935
  token.type === 'single-quoted-scalar' ||
22912
22936
  token.type === 'double-quoted-scalar' ||
@@ -22921,7 +22945,7 @@ function prettyToken(token) {
22921
22945
  return '<DOC>';
22922
22946
  case FLOW_END:
22923
22947
  return '<FLOW_END>';
22924
- case SCALAR$1:
22948
+ case SCALAR:
22925
22949
  return '<SCALAR>';
22926
22950
  default:
22927
22951
  return JSON.stringify(token);
@@ -22936,7 +22960,7 @@ function tokenType(source) {
22936
22960
  return 'doc-mode';
22937
22961
  case FLOW_END:
22938
22962
  return 'flow-error-end';
22939
- case SCALAR$1:
22963
+ case SCALAR:
22940
22964
  return 'scalar';
22941
22965
  case '---':
22942
22966
  return 'doc-start';
@@ -22993,16 +23017,16 @@ var cst = /*#__PURE__*/Object.freeze({
22993
23017
  BOM: BOM,
22994
23018
  DOCUMENT: DOCUMENT,
22995
23019
  FLOW_END: FLOW_END,
22996
- SCALAR: SCALAR$1,
22997
- isCollection: isCollection$1,
22998
- isScalar: isScalar$1,
22999
- prettyToken: prettyToken,
23000
- tokenType: tokenType,
23020
+ SCALAR: SCALAR,
23001
23021
  createScalarToken: createScalarToken,
23022
+ isCollection: isCollection,
23023
+ isScalar: isScalar,
23024
+ prettyToken: prettyToken,
23002
23025
  resolveAsScalar: resolveAsScalar,
23003
23026
  setScalarValue: setScalarValue,
23004
23027
  stringify: stringify$1,
23005
- visit: visit$1
23028
+ tokenType: tokenType,
23029
+ visit: visit
23006
23030
  });
23007
23031
 
23008
23032
  /*
@@ -23568,7 +23592,7 @@ class Lexer {
23568
23592
  break;
23569
23593
  } while (true);
23570
23594
  }
23571
- yield SCALAR$1;
23595
+ yield SCALAR;
23572
23596
  yield* this.pushToIndex(nl + 1, true);
23573
23597
  return yield* this.parseLineStart();
23574
23598
  }
@@ -23612,7 +23636,7 @@ class Lexer {
23612
23636
  }
23613
23637
  if (!ch && !this.atEnd)
23614
23638
  return this.setNext('plain-scalar');
23615
- yield SCALAR$1;
23639
+ yield SCALAR;
23616
23640
  yield* this.pushToIndex(end + 1, true);
23617
23641
  return inFlow ? 'flow' : 'doc';
23618
23642
  }
@@ -24776,7 +24800,7 @@ function parse(src, reviver, options) {
24776
24800
  }
24777
24801
  return doc.toJS(Object.assign({ reviver: _reviver }, options));
24778
24802
  }
24779
- function stringify$2(value, replacer, options) {
24803
+ function stringify(value, replacer, options) {
24780
24804
  let _replacer = null;
24781
24805
  if (typeof replacer === 'function' || Array.isArray(replacer)) {
24782
24806
  _replacer = replacer;
@@ -24800,71 +24824,72 @@ function stringify$2(value, replacer, options) {
24800
24824
 
24801
24825
  var YAML = /*#__PURE__*/Object.freeze({
24802
24826
  __proto__: null,
24827
+ Alias: Alias,
24803
24828
  CST: cst,
24804
24829
  Composer: Composer,
24805
24830
  Document: Document,
24831
+ Lexer: Lexer,
24832
+ LineCounter: LineCounter,
24833
+ Pair: Pair,
24834
+ Parser: Parser,
24835
+ Scalar: Scalar,
24806
24836
  Schema: Schema,
24807
24837
  YAMLError: YAMLError,
24838
+ YAMLMap: YAMLMap,
24808
24839
  YAMLParseError: YAMLParseError,
24840
+ YAMLSeq: YAMLSeq,
24809
24841
  YAMLWarning: YAMLWarning,
24810
- Alias: Alias,
24811
24842
  isAlias: isAlias,
24812
- isCollection: isCollection,
24843
+ isCollection: isCollection$1,
24813
24844
  isDocument: isDocument,
24814
24845
  isMap: isMap,
24815
24846
  isNode: isNode,
24816
24847
  isPair: isPair,
24817
- isScalar: isScalar,
24848
+ isScalar: isScalar$1,
24818
24849
  isSeq: isSeq,
24819
- Pair: Pair,
24820
- Scalar: Scalar,
24821
- YAMLMap: YAMLMap,
24822
- YAMLSeq: YAMLSeq,
24823
- Lexer: Lexer,
24824
- LineCounter: LineCounter,
24825
- Parser: Parser,
24826
24850
  parse: parse,
24827
24851
  parseAllDocuments: parseAllDocuments,
24828
24852
  parseDocument: parseDocument,
24829
- stringify: stringify$2,
24830
- visit: visit,
24853
+ stringify: stringify,
24854
+ visit: visit$1,
24831
24855
  visitAsync: visitAsync
24832
24856
  });
24833
24857
 
24834
24858
  // `export * as default from ...` fails on Webpack v4
24859
+ // https://github.com/eemeli/yaml/issues/228
24835
24860
 
24836
24861
  var index = /*#__PURE__*/Object.freeze({
24837
24862
  __proto__: null,
24838
- 'default': YAML,
24863
+ Alias: Alias,
24864
+ CST: cst,
24839
24865
  Composer: Composer,
24840
24866
  Document: Document,
24867
+ Lexer: Lexer,
24868
+ LineCounter: LineCounter,
24869
+ Pair: Pair,
24870
+ Parser: Parser,
24871
+ Scalar: Scalar,
24841
24872
  Schema: Schema,
24842
24873
  YAMLError: YAMLError,
24874
+ YAMLMap: YAMLMap,
24843
24875
  YAMLParseError: YAMLParseError,
24876
+ YAMLSeq: YAMLSeq,
24844
24877
  YAMLWarning: YAMLWarning,
24845
- Alias: Alias,
24878
+ default: YAML,
24846
24879
  isAlias: isAlias,
24847
- isCollection: isCollection,
24880
+ isCollection: isCollection$1,
24848
24881
  isDocument: isDocument,
24849
24882
  isMap: isMap,
24850
24883
  isNode: isNode,
24851
24884
  isPair: isPair,
24852
- isScalar: isScalar,
24885
+ isScalar: isScalar$1,
24853
24886
  isSeq: isSeq,
24854
- Pair: Pair,
24855
- Scalar: Scalar,
24856
- YAMLMap: YAMLMap,
24857
- YAMLSeq: YAMLSeq,
24858
- Lexer: Lexer,
24859
- LineCounter: LineCounter,
24860
- Parser: Parser,
24861
24887
  parse: parse,
24862
24888
  parseAllDocuments: parseAllDocuments,
24863
24889
  parseDocument: parseDocument,
24864
- stringify: stringify$2,
24865
- visit: visit,
24866
- visitAsync: visitAsync,
24867
- CST: cst
24890
+ stringify: stringify,
24891
+ visit: visit$1,
24892
+ visitAsync: visitAsync
24868
24893
  });
24869
24894
 
24870
- export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout$1 as logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
24895
+ export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };