prebid.js 6.8.0 → 6.12.0

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 (2020) hide show
  1. package/.babelrc.js +2 -1
  2. package/.circleci/config.yml +3 -3
  3. package/.eslintrc.js +8 -1
  4. package/README.md +11 -5
  5. package/dist/33acrossBidAdapter.js +1 -0
  6. package/dist/a4gBidAdapter.js +1 -0
  7. package/dist/ablidaBidAdapter.js +1 -0
  8. package/dist/adWMGAnalyticsAdapter.js +1 -0
  9. package/dist/adWMGBidAdapter.js +1 -0
  10. package/dist/adagioAnalyticsAdapter.js +1 -0
  11. package/dist/adagioBidAdapter.js +1 -0
  12. package/dist/adbookpspBidAdapter.js +1 -0
  13. package/dist/addefendBidAdapter.js +1 -0
  14. package/dist/adfBidAdapter.js +1 -0
  15. package/dist/adgenerationBidAdapter.js +1 -0
  16. package/dist/adhashBidAdapter.js +1 -0
  17. package/dist/adheseBidAdapter.js +1 -0
  18. package/dist/adkernelAdnAnalyticsAdapter.js +1 -0
  19. package/dist/adkernelAdnBidAdapter.js +1 -0
  20. package/dist/adkernelBidAdapter.js +1 -0
  21. package/dist/adlooxAdServerVideo.js +1 -0
  22. package/dist/adlooxAnalyticsAdapter.js +1 -0
  23. package/dist/adlooxRtdProvider.js +1 -0
  24. package/dist/admanBidAdapter.js +1 -0
  25. package/dist/admixerBidAdapter.js +1 -0
  26. package/dist/admixerIdSystem.js +1 -0
  27. package/dist/adnowBidAdapter.js +1 -0
  28. package/dist/adnuntiusBidAdapter.js +1 -0
  29. package/dist/adnuntiusRtdProvider.js +1 -0
  30. package/dist/adoceanBidAdapter.js +1 -0
  31. package/dist/adomikAnalyticsAdapter.js +1 -0
  32. package/dist/adotBidAdapter.js +1 -0
  33. package/dist/adpartnerBidAdapter.js +1 -0
  34. package/dist/adplusBidAdapter.js +1 -0
  35. package/dist/adpod.js +1 -0
  36. package/dist/adponeBidAdapter.js +1 -0
  37. package/dist/adprimeBidAdapter.js +1 -0
  38. package/dist/adqueryBidAdapter.js +1 -0
  39. package/dist/adqueryIdSystem.js +1 -0
  40. package/dist/adrelevantisBidAdapter.js +1 -0
  41. package/dist/adriverBidAdapter.js +1 -0
  42. package/dist/adtargetBidAdapter.js +1 -0
  43. package/dist/adtelligentBidAdapter.js +1 -0
  44. package/dist/adtelligentIdSystem.js +1 -0
  45. package/dist/adtrueBidAdapter.js +1 -0
  46. package/dist/aduptechBidAdapter.js +1 -0
  47. package/dist/advangelistsBidAdapter.js +1 -0
  48. package/dist/adxcgAnalyticsAdapter.js +1 -0
  49. package/dist/adxcgBidAdapter.js +1 -0
  50. package/dist/adxpremiumAnalyticsAdapter.js +1 -0
  51. package/dist/adyoulikeBidAdapter.js +1 -0
  52. package/dist/afpBidAdapter.js +1 -0
  53. package/dist/airgridRtdProvider.js +1 -0
  54. package/dist/ajaBidAdapter.js +1 -0
  55. package/dist/akamaiDAPIdSystem.js +1 -0
  56. package/dist/akamaiDapRtdProvider.js +1 -0
  57. package/dist/amxBidAdapter.js +1 -0
  58. package/dist/amxIdSystem.js +1 -0
  59. package/dist/aniviewBidAdapter.js +1 -0
  60. package/dist/aolBidAdapter.js +1 -0
  61. package/dist/apacdexBidAdapter.js +1 -0
  62. package/dist/appierAnalyticsAdapter.js +1 -0
  63. package/dist/appierBidAdapter.js +1 -0
  64. package/dist/appnexusAnalyticsAdapter.js +1 -0
  65. package/dist/appnexusBidAdapter.js +1 -0
  66. package/dist/apstreamBidAdapter.js +1 -0
  67. package/dist/asealBidAdapter.js +1 -0
  68. package/dist/asoBidAdapter.js +1 -0
  69. package/dist/astraoneBidAdapter.js +1 -0
  70. package/dist/atsAnalyticsAdapter.js +1 -0
  71. package/dist/audiencerunBidAdapter.js +1 -0
  72. package/dist/automatadBidAdapter.js +1 -0
  73. package/dist/axonixBidAdapter.js +1 -0
  74. package/dist/beachfrontBidAdapter.js +1 -0
  75. package/dist/beopBidAdapter.js +1 -0
  76. package/dist/betweenBidAdapter.js +1 -0
  77. package/dist/bidViewability.js +1 -0
  78. package/dist/bidViewabilityIO.js +1 -0
  79. package/dist/bidglassBidAdapter.js +1 -0
  80. package/dist/bidscubeBidAdapter.js +1 -0
  81. package/dist/big-richmediaBidAdapter.js +1 -0
  82. package/dist/bizzclickBidAdapter.js +1 -0
  83. package/dist/bliinkBidAdapter.js +1 -0
  84. package/dist/bluebillywigBidAdapter.js +1 -0
  85. package/dist/boldwinBidAdapter.js +1 -0
  86. package/dist/brandmetricsRtdProvider.js +1 -0
  87. package/dist/braveBidAdapter.js +1 -0
  88. package/dist/bridgewellBidAdapter.js +1 -0
  89. package/dist/brightMountainMediaBidAdapter.js +1 -0
  90. package/dist/brightcomBidAdapter.js +1 -0
  91. package/dist/britepoolIdSystem.js +1 -0
  92. package/dist/browsiRtdProvider.js +1 -0
  93. package/dist/bucksenseBidAdapter.js +1 -0
  94. package/dist/buzzoolaBidAdapter.js +1 -0
  95. package/dist/byDataAnalyticsAdapter.js +1 -0
  96. package/dist/categoryTranslation.js +1 -0
  97. package/dist/ccxBidAdapter.js +1 -0
  98. package/dist/cleanioRtdProvider.js +1 -0
  99. package/dist/cleanmedianetBidAdapter.js +1 -0
  100. package/dist/clickforceBidAdapter.js +1 -0
  101. package/dist/codefuelBidAdapter.js +1 -0
  102. package/dist/cointrafficBidAdapter.js +1 -0
  103. package/dist/coinzillaBidAdapter.js +1 -0
  104. package/dist/colossussspBidAdapter.js +1 -0
  105. package/dist/compassBidAdapter.js +1 -0
  106. package/dist/concertAnalyticsAdapter.js +1 -0
  107. package/dist/concertBidAdapter.js +1 -0
  108. package/dist/connectIdSystem.js +1 -0
  109. package/dist/connectadBidAdapter.js +1 -0
  110. package/dist/consentManagement.js +1 -0
  111. package/dist/consentManagementUsp.js +1 -0
  112. package/dist/consumableBidAdapter.js +1 -0
  113. package/dist/contentexchangeBidAdapter.js +1 -0
  114. package/dist/conversantBidAdapter.js +1 -0
  115. package/dist/cpmstarBidAdapter.js +1 -0
  116. package/dist/craftBidAdapter.js +1 -0
  117. package/dist/criteoBidAdapter.js +1 -0
  118. package/dist/criteoIdSystem.js +1 -0
  119. package/dist/currency.js +1 -0
  120. package/dist/cwireBidAdapter.js +1 -0
  121. package/dist/dailyhuntBidAdapter.js +1 -0
  122. package/dist/datablocksAnalyticsAdapter.js +1 -0
  123. package/dist/datablocksBidAdapter.js +1 -0
  124. package/dist/dchain.js +1 -0
  125. package/dist/debugging.js +1 -0
  126. package/dist/deepintentBidAdapter.js +1 -0
  127. package/dist/deepintentDpesIdSystem.js +1 -0
  128. package/dist/deltaprojectsBidAdapter.js +1 -0
  129. package/dist/dfpAdServerVideo.js +1 -0
  130. package/dist/dgkeywordRtdProvider.js +1 -0
  131. package/dist/displayioBidAdapter.js +1 -0
  132. package/dist/districtmDMXBidAdapter.js +1 -0
  133. package/dist/dmdIdSystem.js +1 -0
  134. package/dist/docereeBidAdapter.js +1 -0
  135. package/dist/dspxBidAdapter.js +1 -0
  136. package/dist/e_volutionBidAdapter.js +1 -0
  137. package/dist/ebdrBidAdapter.js +1 -0
  138. package/dist/emx_digitalBidAdapter.js +1 -0
  139. package/dist/engageyaBidAdapter.js +1 -0
  140. package/dist/enrichmentFpdModule.js +1 -0
  141. package/dist/eplanningAnalyticsAdapter.js +1 -0
  142. package/dist/eplanningBidAdapter.js +1 -0
  143. package/dist/etargetBidAdapter.js +1 -0
  144. package/dist/express.js +1 -0
  145. package/dist/fabrickIdSystem.js +1 -0
  146. package/dist/feedadBidAdapter.js +1 -0
  147. package/dist/fintezaAnalyticsAdapter.js +1 -0
  148. package/dist/flocIdSystem.js +1 -0
  149. package/dist/fluctBidAdapter.js +1 -0
  150. package/dist/fpdModule.js +1 -0
  151. package/dist/freeWheelAdserverVideo.js +1 -0
  152. package/dist/freewheel-sspBidAdapter.js +1 -0
  153. package/dist/gammaBidAdapter.js +1 -0
  154. package/dist/gamoshiBidAdapter.js +1 -0
  155. package/dist/gdprEnforcement.js +1 -0
  156. package/dist/geoedgeRtdProvider.js +1 -0
  157. package/dist/getintentBidAdapter.js +1 -0
  158. package/dist/gjirafaBidAdapter.js +1 -0
  159. package/dist/glimpseBidAdapter.js +1 -0
  160. package/dist/glomexBidAdapter.js +1 -0
  161. package/dist/gmosspBidAdapter.js +1 -0
  162. package/dist/gnetBidAdapter.js +1 -0
  163. package/dist/goldbachBidAdapter.js +1 -0
  164. package/dist/googleAnalyticsAdapter.js +1 -0
  165. package/dist/gothamadsBidAdapter.js +1 -0
  166. package/dist/gptPreAuction.js +1 -0
  167. package/dist/gridBidAdapter.js +1 -0
  168. package/dist/gridNMBidAdapter.js +1 -0
  169. package/dist/growadvertisingBidAdapter.js +1 -0
  170. package/dist/gumgumBidAdapter.js +1 -0
  171. package/dist/h12mediaBidAdapter.js +1 -0
  172. package/dist/hadronIdSystem.js +1 -0
  173. package/dist/hadronRtdProvider.js +1 -0
  174. package/dist/haloIdSystem.js +1 -0
  175. package/dist/haloRtdProvider.js +1 -0
  176. package/dist/hybridBidAdapter.js +1 -0
  177. package/dist/iasRtdProvider.js +1 -0
  178. package/dist/id5AnalyticsAdapter.js +1 -0
  179. package/dist/id5IdSystem.js +1 -0
  180. package/dist/idImportLibrary.js +1 -0
  181. package/dist/identityLinkIdSystem.js +1 -0
  182. package/dist/idxIdSystem.js +1 -0
  183. package/dist/imRtdProvider.js +1 -0
  184. package/dist/impactifyBidAdapter.js +1 -0
  185. package/dist/improvedigitalBidAdapter.js +1 -0
  186. package/dist/imuIdSystem.js +1 -0
  187. package/dist/inmarBidAdapter.js +1 -0
  188. package/dist/innityBidAdapter.js +1 -0
  189. package/dist/inskinBidAdapter.js +1 -0
  190. package/dist/insticatorBidAdapter.js +1 -0
  191. package/dist/instreamTracking.js +1 -0
  192. package/dist/integr8BidAdapter.js +1 -0
  193. package/dist/intentIqIdSystem.js +1 -0
  194. package/dist/interactiveOffersBidAdapter.js +1 -0
  195. package/dist/intersectionRtdProvider.js +1 -0
  196. package/dist/invamiaBidAdapter.js +1 -0
  197. package/dist/invibesBidAdapter.js +1 -0
  198. package/dist/invisiblyAnalyticsAdapter.js +1 -0
  199. package/dist/ipromBidAdapter.js +1 -0
  200. package/dist/iqmBidAdapter.js +1 -0
  201. package/dist/iqzoneBidAdapter.js +1 -0
  202. package/dist/ixBidAdapter.js +1 -0
  203. package/dist/jixieBidAdapter.js +1 -0
  204. package/dist/justIdSystem.js +1 -0
  205. package/dist/justpremiumBidAdapter.js +1 -0
  206. package/dist/jwplayerRtdProvider.js +1 -0
  207. package/dist/kargoAnalyticsAdapter.js +1 -0
  208. package/dist/kargoBidAdapter.js +1 -0
  209. package/dist/kinessoIdSystem.js +1 -0
  210. package/dist/koblerBidAdapter.js +1 -0
  211. package/dist/konduitAnalyticsAdapter.js +1 -0
  212. package/dist/konduitWrapper.js +1 -0
  213. package/dist/krushmediaBidAdapter.js +1 -0
  214. package/dist/kubientBidAdapter.js +1 -0
  215. package/dist/limelightDigitalBidAdapter.js +1 -0
  216. package/dist/liveIntentIdSystem.js +1 -0
  217. package/dist/livewrappedAnalyticsAdapter.js +1 -0
  218. package/dist/livewrappedBidAdapter.js +1 -0
  219. package/dist/liveyieldAnalyticsAdapter.js +1 -0
  220. package/dist/lkqdBidAdapter.js +1 -0
  221. package/dist/lockerdomeBidAdapter.js +1 -0
  222. package/dist/loganBidAdapter.js +1 -0
  223. package/dist/logicadBidAdapter.js +1 -0
  224. package/dist/loglyliftBidAdapter.js +1 -0
  225. package/dist/lotamePanoramaIdSystem.js +1 -0
  226. package/dist/lunamediahbBidAdapter.js +1 -0
  227. package/dist/luponmediaBidAdapter.js +1 -0
  228. package/dist/madvertiseBidAdapter.js +1 -0
  229. package/dist/malltvAnalyticsAdapter.js +1 -0
  230. package/dist/malltvBidAdapter.js +1 -0
  231. package/dist/mantisBidAdapter.js +1 -0
  232. package/dist/marsmediaAnalyticsAdapter.js +1 -0
  233. package/dist/marsmediaBidAdapter.js +1 -0
  234. package/dist/mass.js +1 -0
  235. package/dist/mathildeadsBidAdapter.js +1 -0
  236. package/dist/mediaforceBidAdapter.js +1 -0
  237. package/dist/mediakeysBidAdapter.js +1 -0
  238. package/dist/medianetAnalyticsAdapter.js +1 -0
  239. package/dist/medianetBidAdapter.js +1 -0
  240. package/dist/medianetRtdProvider.js +1 -0
  241. package/dist/mediasquareBidAdapter.js +1 -0
  242. package/dist/merkleIdSystem.js +1 -0
  243. package/dist/mgidBidAdapter.js +1 -0
  244. package/dist/microadBidAdapter.js +1 -0
  245. package/dist/missenaBidAdapter.js +1 -0
  246. package/dist/multibid.js +1 -0
  247. package/dist/mwOpenLinkIdSystem.js +1 -0
  248. package/dist/my6senseBidAdapter.js +1 -0
  249. package/dist/mytargetBidAdapter.js +1 -0
  250. package/dist/nativoBidAdapter.js +1 -0
  251. package/dist/naveggIdSystem.js +1 -0
  252. package/dist/netIdSystem.js +1 -0
  253. package/dist/nextMillenniumBidAdapter.js +1 -0
  254. package/dist/nextrollBidAdapter.js +1 -0
  255. package/dist/nextrollIdSystem.js +1 -0
  256. package/dist/nexx360BidAdapter.js +1 -0
  257. package/dist/nobidBidAdapter.js +1 -0
  258. package/dist/not-for-prod/prebid.js +418 -0
  259. package/dist/novatiqIdSystem.js +1 -0
  260. package/dist/oguryBidAdapter.js +1 -0
  261. package/dist/oneVideoBidAdapter.js +1 -0
  262. package/dist/onetagBidAdapter.js +1 -0
  263. package/dist/onomagicBidAdapter.js +1 -0
  264. package/dist/ooloAnalyticsAdapter.js +1 -0
  265. package/dist/openwebBidAdapter.js +1 -0
  266. package/dist/openxAnalyticsAdapter.js +1 -0
  267. package/dist/openxBidAdapter.js +1 -0
  268. package/dist/operaadsBidAdapter.js +1 -0
  269. package/dist/optimeraRtdProvider.js +1 -0
  270. package/dist/optimonAnalyticsAdapter.js +1 -0
  271. package/dist/optoutBidAdapter.js +1 -0
  272. package/dist/orbidderBidAdapter.js +1 -0
  273. package/dist/otmBidAdapter.js +1 -0
  274. package/dist/outbrainBidAdapter.js +1 -0
  275. package/dist/ozoneBidAdapter.js +1 -0
  276. package/dist/padsquadBidAdapter.js +1 -0
  277. package/dist/parrableIdSystem.js +1 -0
  278. package/dist/permutiveRtdProvider.js +1 -0
  279. package/dist/pilotxBidAdapter.js +1 -0
  280. package/dist/pixfutureBidAdapter.js +1 -0
  281. package/dist/prebid-core.js +9 -0
  282. package/dist/prebidServerBidAdapter.js +1 -0
  283. package/dist/prebidmanagerAnalyticsAdapter.js +1 -0
  284. package/dist/priceFloors.js +1 -0
  285. package/dist/proxistoreBidAdapter.js +1 -0
  286. package/dist/pubCommonId.js +1 -0
  287. package/dist/pubProvidedIdSystem.js +1 -0
  288. package/dist/pubgeniusBidAdapter.js +1 -0
  289. package/dist/publinkIdSystem.js +1 -0
  290. package/dist/pubmaticAnalyticsAdapter.js +1 -0
  291. package/dist/pubmaticBidAdapter.js +1 -0
  292. package/dist/pubperfAnalyticsAdapter.js +1 -0
  293. package/dist/pubstackAnalyticsAdapter.js +1 -0
  294. package/dist/pubwiseAnalyticsAdapter.js +1 -0
  295. package/dist/pubwiseBidAdapter.js +1 -0
  296. package/dist/pubxBidAdapter.js +1 -0
  297. package/dist/pubxaiAnalyticsAdapter.js +1 -0
  298. package/dist/pulsepointAnalyticsAdapter.js +1 -0
  299. package/dist/pulsepointBidAdapter.js +1 -0
  300. package/dist/pxyzBidAdapter.js +1 -0
  301. package/dist/quantcastBidAdapter.js +1 -0
  302. package/dist/quantcastIdSystem.js +1 -0
  303. package/dist/qwarryBidAdapter.js +1 -0
  304. package/dist/radsBidAdapter.js +1 -0
  305. package/dist/rakutenBidAdapter.js +1 -0
  306. package/dist/readpeakBidAdapter.js +1 -0
  307. package/dist/realvuAnalyticsAdapter.js +1 -0
  308. package/dist/reconciliationRtdProvider.js +1 -0
  309. package/dist/relaidoBidAdapter.js +1 -0
  310. package/dist/relevantAnalyticsAdapter.js +1 -0
  311. package/dist/resetdigitalBidAdapter.js +1 -0
  312. package/dist/revcontentBidAdapter.js +1 -0
  313. package/dist/rhythmoneBidAdapter.js +1 -0
  314. package/dist/richaudienceBidAdapter.js +1 -0
  315. package/dist/riseBidAdapter.js +1 -0
  316. package/dist/rivrAnalyticsAdapter.js +1 -0
  317. package/dist/roxotAnalyticsAdapter.js +1 -0
  318. package/dist/rtbhouseBidAdapter.js +1 -0
  319. package/dist/rtbsapeBidAdapter.js +1 -0
  320. package/dist/rtdModule.js +1 -0
  321. package/dist/rubiconAnalyticsAdapter.js +1 -0
  322. package/dist/rubiconBidAdapter.js +1 -0
  323. package/dist/s2sTesting.js +1 -0
  324. package/dist/saambaaBidAdapter.js +1 -0
  325. package/dist/scaleableAnalyticsAdapter.js +1 -0
  326. package/dist/schain.js +1 -0
  327. package/dist/seedingAllianceBidAdapter.js +1 -0
  328. package/dist/seedtagBidAdapter.js +1 -0
  329. package/dist/sharedIdSystem.js +1 -0
  330. package/dist/sharethroughAnalyticsAdapter.js +1 -0
  331. package/dist/sharethroughBidAdapter.js +1 -0
  332. package/dist/showheroes-bsBidAdapter.js +1 -0
  333. package/dist/sigmoidAnalyticsAdapter.js +1 -0
  334. package/dist/sirdataRtdProvider.js +1 -0
  335. package/dist/sizeMappingV2.js +1 -0
  336. package/dist/slimcutBidAdapter.js +1 -0
  337. package/dist/smaatoBidAdapter.js +1 -0
  338. package/dist/smartadserverBidAdapter.js +1 -0
  339. package/dist/smarticoBidAdapter.js +1 -0
  340. package/dist/smartxBidAdapter.js +1 -0
  341. package/dist/smartyadsBidAdapter.js +1 -0
  342. package/dist/smilewantedBidAdapter.js +1 -0
  343. package/dist/sonobiAnalyticsAdapter.js +1 -0
  344. package/dist/sonobiBidAdapter.js +1 -0
  345. package/dist/sortableAnalyticsAdapter.js +1 -0
  346. package/dist/sortableBidAdapter.js +1 -0
  347. package/dist/sovrnAnalyticsAdapter.js +1 -0
  348. package/dist/sovrnBidAdapter.js +1 -0
  349. package/dist/spotxBidAdapter.js +1 -0
  350. package/dist/sspBCBidAdapter.js +1 -0
  351. package/dist/staqAnalyticsAdapter.js +1 -0
  352. package/dist/stroeerCoreBidAdapter.js +1 -0
  353. package/dist/sublimeBidAdapter.js +1 -0
  354. package/dist/synacormediaBidAdapter.js +1 -0
  355. package/dist/talkadsBidAdapter.js +1 -0
  356. package/dist/tapadIdSystem.js +1 -0
  357. package/dist/tappxBidAdapter.js +1 -0
  358. package/dist/targetVideoBidAdapter.js +1 -0
  359. package/dist/teadsBidAdapter.js +1 -0
  360. package/dist/telariaBidAdapter.js +1 -0
  361. package/dist/temedyaBidAdapter.js +1 -0
  362. package/dist/terceptAnalyticsAdapter.js +1 -0
  363. package/dist/theAdxBidAdapter.js +1 -0
  364. package/dist/timeoutRtdProvider.js +1 -0
  365. package/dist/tpmnBidAdapter.js +1 -0
  366. package/dist/trionBidAdapter.js +1 -0
  367. package/dist/tripleliftBidAdapter.js +1 -0
  368. package/dist/truereachBidAdapter.js +1 -0
  369. package/dist/trustpidSystem.js +1 -0
  370. package/dist/trustxBidAdapter.js +1 -0
  371. package/dist/ucfunnelAnalyticsAdapter.js +1 -0
  372. package/dist/ucfunnelBidAdapter.js +1 -0
  373. package/dist/uid2IdSystem.js +1 -0
  374. package/dist/underdogmediaBidAdapter.js +1 -0
  375. package/dist/undertoneBidAdapter.js +1 -0
  376. package/dist/unicornBidAdapter.js +1 -0
  377. package/dist/unifiedIdSystem.js +1 -0
  378. package/dist/unrulyBidAdapter.js +1 -0
  379. package/dist/userId.js +1 -0
  380. package/dist/userIdTargeting.js +1 -0
  381. package/dist/validationFpdModule.js +1 -0
  382. package/dist/vdoaiBidAdapter.js +1 -0
  383. package/dist/ventesBidAdapter.js +1 -0
  384. package/dist/verizonMediaIdSystem.js +1 -0
  385. package/dist/vibrantmediaBidAdapter.js +1 -0
  386. package/dist/vidazooBidAdapter.js +1 -0
  387. package/dist/videobyteBidAdapter.js +1 -0
  388. package/dist/videoreachBidAdapter.js +1 -0
  389. package/dist/vidoomyBidAdapter.js +1 -0
  390. package/dist/viewability.js +1 -0
  391. package/dist/viewdeosDXBidAdapter.js +1 -0
  392. package/dist/visxBidAdapter.js +1 -0
  393. package/dist/vlybyBidAdapter.js +1 -0
  394. package/dist/voxBidAdapter.js +1 -0
  395. package/dist/vrtcalBidAdapter.js +1 -0
  396. package/dist/vuukleBidAdapter.js +1 -0
  397. package/dist/waardexBidAdapter.js +1 -0
  398. package/dist/weboramaRtdProvider.js +1 -0
  399. package/dist/welectBidAdapter.js +1 -0
  400. package/dist/widespaceBidAdapter.js +1 -0
  401. package/dist/winrBidAdapter.js +1 -0
  402. package/dist/wipesBidAdapter.js +1 -0
  403. package/dist/yahoosspBidAdapter.js +1 -0
  404. package/dist/yieldlabBidAdapter.js +1 -0
  405. package/dist/yieldliftBidAdapter.js +1 -0
  406. package/dist/yieldmoBidAdapter.js +1 -0
  407. package/dist/yieldmoSyntheticInventoryModule.js +1 -0
  408. package/dist/yieldoneAnalyticsAdapter.js +1 -0
  409. package/dist/yieldoneBidAdapter.js +1 -0
  410. package/dist/yuktamediaAnalyticsAdapter.js +1 -0
  411. package/dist/zeotapIdPlusIdSystem.js +1 -0
  412. package/dist/zetaBidAdapter.js +1 -0
  413. package/dist/zeta_global_sspAnalyticsAdapter.js +1 -0
  414. package/dist/zeta_global_sspBidAdapter.js +1 -0
  415. package/integrationExamples/gpt/{haloRtdProvider_example.html → hadronRtdProvider_example.html} +9 -9
  416. package/integrationExamples/gpt/idImportLibrary_example.html +2 -2
  417. package/integrationExamples/gpt/userId_example.html +2 -2
  418. package/integrationExamples/gpt/weboramaRtdProvider_example.html +154 -115
  419. package/integrationExamples/gpt/x-domain/creative.html +13 -6
  420. package/modules/.submodules.json +4 -0
  421. package/modules/adkernelBidAdapter.js +2 -1
  422. package/modules/adnuntiusRtdProvider.js +96 -0
  423. package/modules/adnuntiusRtdProvider.md +41 -0
  424. package/modules/adotBidAdapter.js +516 -567
  425. package/modules/adotBidAdapter.md +6 -44
  426. package/modules/adpod.js +12 -14
  427. package/modules/adyoulikeBidAdapter.js +3 -1
  428. package/modules/appnexusBidAdapter.js +3 -2
  429. package/modules/asealBidAdapter.js +58 -0
  430. package/modules/asealBidAdapter.md +52 -0
  431. package/modules/automatadBidAdapter.js +10 -7
  432. package/modules/big-richmediaBidAdapter.js +117 -0
  433. package/modules/big-richmediaBidAdapter.md +82 -0
  434. package/modules/bizzclickBidAdapter.js +5 -3
  435. package/modules/conversantBidAdapter.js +7 -0
  436. package/modules/currency.js +1 -4
  437. package/modules/debugging/bidInterceptor.js +229 -0
  438. package/modules/debugging/index.js +62 -0
  439. package/modules/debugging/pbsInterceptor.js +38 -0
  440. package/modules/dspxBidAdapter.js +69 -29
  441. package/modules/dspxBidAdapter.md +2 -1
  442. package/modules/fluctBidAdapter.js +18 -1
  443. package/modules/googleAnalyticsAdapter.js +22 -4
  444. package/modules/googleAnalyticsAdapter.md +1 -0
  445. package/modules/gridBidAdapter.js +26 -7
  446. package/modules/hadronIdSystem.js +96 -0
  447. package/modules/hadronIdSystem.md +35 -0
  448. package/modules/hadronRtdProvider.js +254 -0
  449. package/modules/hadronRtdProvider.md +126 -0
  450. package/modules/haloIdSystem.md +4 -35
  451. package/modules/haloRtdProvider.md +3 -126
  452. package/modules/imRtdProvider.js +10 -0
  453. package/modules/improvedigitalBidAdapter.js +5 -0
  454. package/modules/iqzoneBidAdapter.js +10 -3
  455. package/modules/iqzoneBidAdapter.md +16 -0
  456. package/modules/ixBidAdapter.js +35 -21
  457. package/modules/justIdSystem.js +206 -0
  458. package/modules/justIdSystem.md +70 -0
  459. package/modules/kubientBidAdapter.js +60 -28
  460. package/modules/lkqdBidAdapter.js +234 -0
  461. package/modules/lkqdBidAdapter.md +1 -1
  462. package/modules/lunamediahbBidAdapter.js +32 -4
  463. package/modules/malltvBidAdapter.js +7 -3
  464. package/modules/malltvBidAdapter.md +64 -51
  465. package/modules/mass.js +3 -5
  466. package/modules/mediakeysBidAdapter.js +0 -5
  467. package/modules/medianetAnalyticsAdapter.js +1 -1
  468. package/modules/mediasquareBidAdapter.js +9 -1
  469. package/modules/nextMillenniumBidAdapter.js +1 -0
  470. package/modules/nexx360BidAdapter.js +149 -0
  471. package/modules/nexx360BidAdapter.md +35 -0
  472. package/modules/novatiqIdSystem.js +68 -15
  473. package/modules/novatiqIdSystem.md +69 -7
  474. package/modules/oguryBidAdapter.js +7 -14
  475. package/modules/prebidServerBidAdapter/index.js +128 -90
  476. package/modules/priceFloors.js +20 -12
  477. package/modules/pubmaticBidAdapter.js +1 -1
  478. package/modules/richaudienceBidAdapter.js +15 -3
  479. package/modules/riseBidAdapter.js +17 -6
  480. package/modules/rtbhouseBidAdapter.js +2 -0
  481. package/modules/rubiconAnalyticsAdapter.js +5 -0
  482. package/modules/rubiconBidAdapter.js +2 -2
  483. package/modules/sizeMappingV2.js +1 -8
  484. package/modules/sortableAnalyticsAdapter.js +5 -4
  485. package/modules/sspBCBidAdapter.js +53 -20
  486. package/modules/telariaBidAdapter.js +22 -29
  487. package/modules/trustpidSystem.js +197 -0
  488. package/modules/trustpidSystem.md +45 -0
  489. package/modules/trustxBidAdapter.js +11 -6
  490. package/modules/userId/eids.js +22 -1
  491. package/modules/userId/eids.md +18 -2
  492. package/modules/userId/userId.md +17 -2
  493. package/modules/vibrantmediaBidAdapter.js +220 -0
  494. package/modules/vibrantmediaBidAdapter.md +92 -0
  495. package/modules/vidazooBidAdapter.js +3 -2
  496. package/modules/vidoomyBidAdapter.js +8 -0
  497. package/modules/vidoomyBidAdapter.md +4 -2
  498. package/modules/weboramaRtdProvider.js +264 -34
  499. package/modules/weboramaRtdProvider.md +110 -40
  500. package/modules/yahoosspBidAdapter.js +1 -1
  501. package/modules/yieldoneBidAdapter.js +6 -0
  502. package/package.json +2 -1
  503. package/plugins/eslint/node_modules/ansi-regex/index.js +4 -0
  504. package/plugins/eslint/node_modules/ansi-regex/license +21 -0
  505. package/plugins/eslint/node_modules/ansi-regex/package.json +56 -0
  506. package/plugins/eslint/node_modules/ansi-regex/readme.md +33 -0
  507. package/plugins/eslint/node_modules/ansi-styles/index.js +65 -0
  508. package/plugins/eslint/node_modules/ansi-styles/license +21 -0
  509. package/plugins/eslint/node_modules/ansi-styles/package.json +50 -0
  510. package/plugins/eslint/node_modules/ansi-styles/readme.md +86 -0
  511. package/plugins/eslint/node_modules/argparse/CHANGELOG.md +185 -0
  512. package/plugins/eslint/node_modules/argparse/LICENSE +21 -0
  513. package/plugins/eslint/node_modules/argparse/README.md +257 -0
  514. package/plugins/eslint/node_modules/argparse/index.js +3 -0
  515. package/plugins/eslint/node_modules/argparse/lib/action/append/constant.js +47 -0
  516. package/plugins/eslint/node_modules/argparse/lib/action/append.js +53 -0
  517. package/plugins/eslint/node_modules/argparse/lib/action/count.js +40 -0
  518. package/plugins/eslint/node_modules/argparse/lib/action/help.js +47 -0
  519. package/plugins/eslint/node_modules/argparse/lib/action/store/constant.js +43 -0
  520. package/plugins/eslint/node_modules/argparse/lib/action/store/false.js +27 -0
  521. package/plugins/eslint/node_modules/argparse/lib/action/store/true.js +26 -0
  522. package/plugins/eslint/node_modules/argparse/lib/action/store.js +50 -0
  523. package/plugins/eslint/node_modules/argparse/lib/action/subparsers.js +149 -0
  524. package/plugins/eslint/node_modules/argparse/lib/action/version.js +47 -0
  525. package/plugins/eslint/node_modules/argparse/lib/action.js +146 -0
  526. package/plugins/eslint/node_modules/argparse/lib/action_container.js +482 -0
  527. package/plugins/eslint/node_modules/argparse/lib/argparse.js +14 -0
  528. package/plugins/eslint/node_modules/argparse/lib/argument/error.js +50 -0
  529. package/plugins/eslint/node_modules/argparse/lib/argument/exclusive.js +54 -0
  530. package/plugins/eslint/node_modules/argparse/lib/argument/group.js +75 -0
  531. package/plugins/eslint/node_modules/argparse/lib/argument_parser.js +1161 -0
  532. package/plugins/eslint/node_modules/argparse/lib/const.js +21 -0
  533. package/plugins/eslint/node_modules/argparse/lib/help/added_formatters.js +87 -0
  534. package/plugins/eslint/node_modules/argparse/lib/help/formatter.js +795 -0
  535. package/plugins/eslint/node_modules/argparse/lib/namespace.js +76 -0
  536. package/plugins/eslint/node_modules/argparse/lib/utils.js +57 -0
  537. package/plugins/eslint/node_modules/argparse/package.json +34 -0
  538. package/plugins/eslint/node_modules/asn1/LICENSE +19 -0
  539. package/plugins/eslint/node_modules/asn1/README.md +50 -0
  540. package/plugins/eslint/node_modules/asn1/lib/ber/errors.js +13 -0
  541. package/plugins/eslint/node_modules/asn1/lib/ber/index.js +27 -0
  542. package/plugins/eslint/node_modules/asn1/lib/ber/reader.js +267 -0
  543. package/plugins/eslint/node_modules/asn1/lib/ber/types.js +36 -0
  544. package/plugins/eslint/node_modules/asn1/lib/ber/writer.js +317 -0
  545. package/plugins/eslint/node_modules/asn1/lib/index.js +20 -0
  546. package/plugins/eslint/node_modules/asn1/package.json +26 -0
  547. package/plugins/eslint/node_modules/asn1/tst/ber/reader.test.js +172 -0
  548. package/plugins/eslint/node_modules/asn1/tst/ber/writer.test.js +296 -0
  549. package/plugins/eslint/node_modules/assert-plus/README.md +126 -0
  550. package/plugins/eslint/node_modules/assert-plus/assert.js +245 -0
  551. package/plugins/eslint/node_modules/assert-plus/package.json +16 -0
  552. package/plugins/eslint/node_modules/assertion-error/History.md +14 -0
  553. package/plugins/eslint/node_modules/assertion-error/README.md +41 -0
  554. package/plugins/eslint/node_modules/assertion-error/index.js +110 -0
  555. package/plugins/eslint/node_modules/assertion-error/package.json +27 -0
  556. package/plugins/eslint/node_modules/async/CHANGELOG.md +125 -0
  557. package/plugins/eslint/node_modules/async/LICENSE +19 -0
  558. package/plugins/eslint/node_modules/async/README.md +1877 -0
  559. package/plugins/eslint/node_modules/async/dist/async.js +1265 -0
  560. package/plugins/eslint/node_modules/async/dist/async.min.js +2 -0
  561. package/plugins/eslint/node_modules/async/lib/async.js +1265 -0
  562. package/plugins/eslint/node_modules/async/package.json +85 -0
  563. package/plugins/eslint/node_modules/aws-sign2/LICENSE +55 -0
  564. package/plugins/eslint/node_modules/aws-sign2/README.md +4 -0
  565. package/plugins/eslint/node_modules/aws-sign2/index.js +202 -0
  566. package/plugins/eslint/node_modules/aws-sign2/package.json +16 -0
  567. package/plugins/eslint/node_modules/camelcase/index.js +56 -0
  568. package/plugins/eslint/node_modules/camelcase/license +21 -0
  569. package/plugins/eslint/node_modules/camelcase/package.json +39 -0
  570. package/plugins/eslint/node_modules/camelcase/readme.md +57 -0
  571. package/plugins/eslint/node_modules/camelcase-keys/index.js +12 -0
  572. package/plugins/eslint/node_modules/camelcase-keys/license +21 -0
  573. package/plugins/eslint/node_modules/camelcase-keys/package.json +52 -0
  574. package/plugins/eslint/node_modules/camelcase-keys/readme.md +54 -0
  575. package/plugins/eslint/node_modules/chai/CONTRIBUTING.md +173 -0
  576. package/plugins/eslint/node_modules/chai/History.md +937 -0
  577. package/plugins/eslint/node_modules/chai/README.md +109 -0
  578. package/plugins/eslint/node_modules/chai/ReleaseNotes.md +587 -0
  579. package/plugins/eslint/node_modules/chai/bower.json +27 -0
  580. package/plugins/eslint/node_modules/chai/chai.js +4800 -0
  581. package/plugins/eslint/node_modules/chai/index.js +1 -0
  582. package/plugins/eslint/node_modules/chai/karma.conf.js +28 -0
  583. package/plugins/eslint/node_modules/chai/karma.sauce.js +41 -0
  584. package/plugins/eslint/node_modules/chai/lib/chai/assertion.js +135 -0
  585. package/plugins/eslint/node_modules/chai/lib/chai/config.js +50 -0
  586. package/plugins/eslint/node_modules/chai/lib/chai/core/assertions.js +1359 -0
  587. package/plugins/eslint/node_modules/chai/lib/chai/interface/assert.js +1056 -0
  588. package/plugins/eslint/node_modules/chai/lib/chai/interface/expect.js +12 -0
  589. package/plugins/eslint/node_modules/chai/lib/chai/interface/should.js +78 -0
  590. package/plugins/eslint/node_modules/chai/lib/chai/utils/addChainableMethod.js +111 -0
  591. package/plugins/eslint/node_modules/chai/lib/chai/utils/addMethod.js +43 -0
  592. package/plugins/eslint/node_modules/chai/lib/chai/utils/addProperty.js +40 -0
  593. package/plugins/eslint/node_modules/chai/lib/chai/utils/flag.js +32 -0
  594. package/plugins/eslint/node_modules/chai/lib/chai/utils/getActual.js +18 -0
  595. package/plugins/eslint/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +25 -0
  596. package/plugins/eslint/node_modules/chai/lib/chai/utils/getMessage.js +50 -0
  597. package/plugins/eslint/node_modules/chai/lib/chai/utils/getName.js +20 -0
  598. package/plugins/eslint/node_modules/chai/lib/chai/utils/getPathValue.js +102 -0
  599. package/plugins/eslint/node_modules/chai/lib/chai/utils/getProperties.js +35 -0
  600. package/plugins/eslint/node_modules/chai/lib/chai/utils/index.js +114 -0
  601. package/plugins/eslint/node_modules/chai/lib/chai/utils/inspect.js +333 -0
  602. package/plugins/eslint/node_modules/chai/lib/chai/utils/objDisplay.js +49 -0
  603. package/plugins/eslint/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +53 -0
  604. package/plugins/eslint/node_modules/chai/lib/chai/utils/overwriteMethod.js +51 -0
  605. package/plugins/eslint/node_modules/chai/lib/chai/utils/overwriteProperty.js +54 -0
  606. package/plugins/eslint/node_modules/chai/lib/chai/utils/test.js +26 -0
  607. package/plugins/eslint/node_modules/chai/lib/chai/utils/transferFlags.js +44 -0
  608. package/plugins/eslint/node_modules/chai/lib/chai/utils/type.js +45 -0
  609. package/plugins/eslint/node_modules/chai/lib/chai.js +87 -0
  610. package/plugins/eslint/node_modules/chai/package.json +42 -0
  611. package/plugins/eslint/node_modules/chai/sauce.browsers.js +128 -0
  612. package/plugins/eslint/node_modules/chalk/index.js +116 -0
  613. package/plugins/eslint/node_modules/chalk/license +21 -0
  614. package/plugins/eslint/node_modules/chalk/package.json +70 -0
  615. package/plugins/eslint/node_modules/chalk/readme.md +213 -0
  616. package/plugins/eslint/node_modules/cli-width/.travis.yml +11 -0
  617. package/plugins/eslint/node_modules/cli-width/LICENSE +13 -0
  618. package/plugins/eslint/node_modules/cli-width/README.md +36 -0
  619. package/plugins/eslint/node_modules/cli-width/coverage/coverage.json +1 -0
  620. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/base.css +182 -0
  621. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/cli-width/index.html +73 -0
  622. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/cli-width/index.js.html +129 -0
  623. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/index.html +73 -0
  624. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/prettify.css +1 -0
  625. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/prettify.js +1 -0
  626. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  627. package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/sorter.js +156 -0
  628. package/plugins/eslint/node_modules/cli-width/coverage/lcov.info +32 -0
  629. package/plugins/eslint/node_modules/cli-width/index.js +28 -0
  630. package/plugins/eslint/node_modules/cli-width/package.json +29 -0
  631. package/plugins/eslint/node_modules/combined-stream/License +19 -0
  632. package/plugins/eslint/node_modules/combined-stream/Readme.md +132 -0
  633. package/plugins/eslint/node_modules/combined-stream/lib/combined_stream.js +188 -0
  634. package/plugins/eslint/node_modules/combined-stream/package.json +24 -0
  635. package/plugins/eslint/node_modules/commander/Readme.md +208 -0
  636. package/plugins/eslint/node_modules/commander/index.js +876 -0
  637. package/plugins/eslint/node_modules/commander/package.json +13 -0
  638. package/plugins/eslint/node_modules/coveralls/.travis.yml +6 -0
  639. package/plugins/eslint/node_modules/coveralls/Makefile +20 -0
  640. package/plugins/eslint/node_modules/coveralls/README.md +129 -0
  641. package/plugins/eslint/node_modules/coveralls/fixtures/istanbul.lcov +131 -0
  642. package/plugins/eslint/node_modules/coveralls/fixtures/lib/index.js +172 -0
  643. package/plugins/eslint/node_modules/coveralls/fixtures/onefile.lcov +116 -0
  644. package/plugins/eslint/node_modules/coveralls/index.js +7 -0
  645. package/plugins/eslint/node_modules/coveralls/lib/convertLcovToCoveralls.js +111 -0
  646. package/plugins/eslint/node_modules/coveralls/lib/detectLocalGit.js +27 -0
  647. package/plugins/eslint/node_modules/coveralls/lib/fetchGitData.js +108 -0
  648. package/plugins/eslint/node_modules/coveralls/lib/getOptions.js +125 -0
  649. package/plugins/eslint/node_modules/coveralls/lib/handleInput.js +39 -0
  650. package/plugins/eslint/node_modules/coveralls/lib/logger.js +18 -0
  651. package/plugins/eslint/node_modules/coveralls/lib/sendToCoveralls.js +11 -0
  652. package/plugins/eslint/node_modules/coveralls/package.json +56 -0
  653. package/plugins/eslint/node_modules/coveralls/test/convertLcovToCoveralls.js +82 -0
  654. package/plugins/eslint/node_modules/coveralls/test/fetchGitData.js +182 -0
  655. package/plugins/eslint/node_modules/coveralls/test/getOptions.js +403 -0
  656. package/plugins/eslint/node_modules/coveralls/test/handleInput.js +78 -0
  657. package/plugins/eslint/node_modules/coveralls/test/logger.js +32 -0
  658. package/plugins/eslint/node_modules/coveralls/test/sendToCoveralls.js +27 -0
  659. package/plugins/eslint/node_modules/dateformat/.travis.yml +4 -0
  660. package/plugins/eslint/node_modules/dateformat/LICENSE +20 -0
  661. package/plugins/eslint/node_modules/dateformat/Readme.md +82 -0
  662. package/plugins/eslint/node_modules/dateformat/lib/dateformat.js +226 -0
  663. package/plugins/eslint/node_modules/dateformat/package.json +36 -0
  664. package/plugins/eslint/node_modules/dateformat/test/test_dayofweek.js +15 -0
  665. package/plugins/eslint/node_modules/dateformat/test/test_formats.js +76 -0
  666. package/plugins/eslint/node_modules/dateformat/test/test_isoutcdatetime.js +11 -0
  667. package/plugins/eslint/node_modules/dateformat/test/weekofyear/test_weekofyear.js +4 -0
  668. package/plugins/eslint/node_modules/dateformat/test/weekofyear/test_weekofyear.sh +27 -0
  669. package/plugins/eslint/node_modules/debug/.jshintrc +3 -0
  670. package/plugins/eslint/node_modules/debug/History.md +195 -0
  671. package/plugins/eslint/node_modules/debug/Makefile +36 -0
  672. package/plugins/eslint/node_modules/debug/Readme.md +188 -0
  673. package/plugins/eslint/node_modules/debug/bower.json +28 -0
  674. package/plugins/eslint/node_modules/debug/browser.js +168 -0
  675. package/plugins/eslint/node_modules/debug/component.json +19 -0
  676. package/plugins/eslint/node_modules/debug/debug.js +197 -0
  677. package/plugins/eslint/node_modules/debug/node.js +209 -0
  678. package/plugins/eslint/node_modules/debug/package.json +34 -0
  679. package/plugins/eslint/node_modules/decamelize/index.js +13 -0
  680. package/plugins/eslint/node_modules/decamelize/license +21 -0
  681. package/plugins/eslint/node_modules/decamelize/package.json +38 -0
  682. package/plugins/eslint/node_modules/decamelize/readme.md +48 -0
  683. package/plugins/eslint/node_modules/deep-eql/History.md +28 -0
  684. package/plugins/eslint/node_modules/deep-eql/README.md +52 -0
  685. package/plugins/eslint/node_modules/deep-eql/index.js +1 -0
  686. package/plugins/eslint/node_modules/deep-eql/karma.conf.js +20 -0
  687. package/plugins/eslint/node_modules/deep-eql/lib/eql.js +257 -0
  688. package/plugins/eslint/node_modules/deep-eql/package.json +37 -0
  689. package/plugins/eslint/node_modules/delayed-stream/License +19 -0
  690. package/plugins/eslint/node_modules/delayed-stream/Makefile +7 -0
  691. package/plugins/eslint/node_modules/delayed-stream/Readme.md +154 -0
  692. package/plugins/eslint/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
  693. package/plugins/eslint/node_modules/delayed-stream/package.json +20 -0
  694. package/plugins/eslint/node_modules/delayed-stream/test/common.js +6 -0
  695. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js +38 -0
  696. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js +21 -0
  697. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js +14 -0
  698. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-stream.js +48 -0
  699. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-handle-source-errors.js +15 -0
  700. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-max-data-size.js +18 -0
  701. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-pipe-resumes.js +13 -0
  702. package/plugins/eslint/node_modules/delayed-stream/test/integration/test-proxy-readable.js +13 -0
  703. package/plugins/eslint/node_modules/delayed-stream/test/run.js +7 -0
  704. package/plugins/eslint/node_modules/diff/README.md +181 -0
  705. package/plugins/eslint/node_modules/diff/diff.js +619 -0
  706. package/plugins/eslint/node_modules/diff/package.json +44 -0
  707. package/plugins/eslint/node_modules/doctrine/.jshintrc +28 -0
  708. package/plugins/eslint/node_modules/doctrine/.scripted +6 -0
  709. package/plugins/eslint/node_modules/doctrine/.travis.yml +7 -0
  710. package/plugins/eslint/node_modules/doctrine/CONTRIBUTING.md +5 -0
  711. package/plugins/eslint/node_modules/doctrine/LICENSE.BSD +19 -0
  712. package/plugins/eslint/node_modules/doctrine/LICENSE.closure-compiler +202 -0
  713. package/plugins/eslint/node_modules/doctrine/LICENSE.esprima +19 -0
  714. package/plugins/eslint/node_modules/doctrine/README.md +176 -0
  715. package/plugins/eslint/node_modules/doctrine/coverage/coverage-final.json +2 -0
  716. package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/base.css +182 -0
  717. package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/index.html +72 -0
  718. package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/prettify.css +1 -0
  719. package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/prettify.js +1 -0
  720. package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  721. package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/sorter.js +156 -0
  722. package/plugins/eslint/node_modules/doctrine/coverage/lcov.info +0 -0
  723. package/plugins/eslint/node_modules/doctrine/eslint.json +22 -0
  724. package/plugins/eslint/node_modules/doctrine/gulpfile.js +120 -0
  725. package/plugins/eslint/node_modules/doctrine/lib/doctrine.js +809 -0
  726. package/plugins/eslint/node_modules/doctrine/lib/typed.js +1261 -0
  727. package/plugins/eslint/node_modules/doctrine/lib/utility.js +54 -0
  728. package/plugins/eslint/node_modules/doctrine/package.json +54 -0
  729. package/plugins/eslint/node_modules/doctrine/test/midstream.js +61 -0
  730. package/plugins/eslint/node_modules/doctrine/test/parse.js +2219 -0
  731. package/plugins/eslint/node_modules/doctrine/test/strict.js +168 -0
  732. package/plugins/eslint/node_modules/doctrine/test/stringify.js +413 -0
  733. package/plugins/eslint/node_modules/doctrine/test/test.html +31 -0
  734. package/plugins/eslint/node_modules/doctrine/test/unwrap.js +60 -0
  735. package/plugins/eslint/node_modules/escodegen/LICENSE.BSD +19 -0
  736. package/plugins/eslint/node_modules/escodegen/LICENSE.source-map +27 -0
  737. package/plugins/eslint/node_modules/escodegen/README.md +116 -0
  738. package/plugins/eslint/node_modules/escodegen/escodegen.js +2578 -0
  739. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/ChangeLog +77 -0
  740. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/LICENSE.BSD +19 -0
  741. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/README.md +24 -0
  742. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/esprima.js +3772 -0
  743. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/package.json +83 -0
  744. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/compat.js +241 -0
  745. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/reflect.js +422 -0
  746. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/run.js +67 -0
  747. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/runner.js +495 -0
  748. package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/test.js +25593 -0
  749. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/.editorconfig +10 -0
  750. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/.jshintrc +16 -0
  751. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
  752. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/README.md +124 -0
  753. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/estraverse.js +845 -0
  754. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/gulpfile.js +70 -0
  755. package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/package.json +43 -0
  756. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/LICENSE.BSD +19 -0
  757. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/README.md +174 -0
  758. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/ast.js +144 -0
  759. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/code.js +135 -0
  760. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/keyword.js +165 -0
  761. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/utils.js +33 -0
  762. package/plugins/eslint/node_modules/escodegen/node_modules/esutils/package.json +44 -0
  763. package/plugins/eslint/node_modules/escodegen/package.json +62 -0
  764. package/plugins/eslint/node_modules/espree/README.md +232 -0
  765. package/plugins/eslint/node_modules/espree/espree.js +5533 -0
  766. package/plugins/eslint/node_modules/espree/lib/ast-node-factory.js +964 -0
  767. package/plugins/eslint/node_modules/espree/lib/ast-node-types.js +119 -0
  768. package/plugins/eslint/node_modules/espree/lib/comment-attachment.js +183 -0
  769. package/plugins/eslint/node_modules/espree/lib/features.js +117 -0
  770. package/plugins/eslint/node_modules/espree/lib/messages.js +99 -0
  771. package/plugins/eslint/node_modules/espree/lib/string-map.js +55 -0
  772. package/plugins/eslint/node_modules/espree/lib/syntax.js +189 -0
  773. package/plugins/eslint/node_modules/espree/lib/token-info.js +90 -0
  774. package/plugins/eslint/node_modules/espree/lib/xhtml-entities.js +293 -0
  775. package/plugins/eslint/node_modules/espree/package.json +83 -0
  776. package/plugins/eslint/node_modules/espree/test/compat.js +255 -0
  777. package/plugins/eslint/node_modules/espree/test/reflect.js +422 -0
  778. package/plugins/eslint/node_modules/espree/test/run.js +68 -0
  779. package/plugins/eslint/node_modules/espree/test/runner.js +492 -0
  780. package/plugins/eslint/node_modules/espree/test/test.js +34 -0
  781. package/plugins/eslint/node_modules/esprima/ChangeLog +174 -0
  782. package/plugins/eslint/node_modules/esprima/LICENSE.BSD +21 -0
  783. package/plugins/eslint/node_modules/esprima/README.md +27 -0
  784. package/plugins/eslint/node_modules/esprima/esprima.js +5740 -0
  785. package/plugins/eslint/node_modules/esprima/package.json +99 -0
  786. package/plugins/eslint/node_modules/esutils/LICENSE.BSD +19 -0
  787. package/plugins/eslint/node_modules/esutils/README.md +169 -0
  788. package/plugins/eslint/node_modules/esutils/lib/ast.js +144 -0
  789. package/plugins/eslint/node_modules/esutils/lib/code.js +101 -0
  790. package/plugins/eslint/node_modules/esutils/lib/keyword.js +137 -0
  791. package/plugins/eslint/node_modules/esutils/lib/utils.js +33 -0
  792. package/plugins/eslint/node_modules/esutils/package.json +49 -0
  793. package/plugins/eslint/node_modules/fast-levenshtein/LICENSE.md +25 -0
  794. package/plugins/eslint/node_modules/fast-levenshtein/README.md +120 -0
  795. package/plugins/eslint/node_modules/fast-levenshtein/levenshtein.js +198 -0
  796. package/plugins/eslint/node_modules/fast-levenshtein/package.json +36 -0
  797. package/plugins/eslint/node_modules/figures/index.js +147 -0
  798. package/plugins/eslint/node_modules/figures/license +21 -0
  799. package/plugins/eslint/node_modules/figures/node_modules/object-assign/index.js +90 -0
  800. package/plugins/eslint/node_modules/figures/node_modules/object-assign/license +21 -0
  801. package/plugins/eslint/node_modules/figures/node_modules/object-assign/package.json +42 -0
  802. package/plugins/eslint/node_modules/figures/node_modules/object-assign/readme.md +61 -0
  803. package/plugins/eslint/node_modules/figures/package.json +45 -0
  804. package/plugins/eslint/node_modules/figures/readme.md +115 -0
  805. package/plugins/eslint/node_modules/forever-agent/LICENSE +55 -0
  806. package/plugins/eslint/node_modules/forever-agent/README.md +4 -0
  807. package/plugins/eslint/node_modules/forever-agent/index.js +119 -0
  808. package/plugins/eslint/node_modules/forever-agent/package.json +16 -0
  809. package/plugins/eslint/node_modules/form-data/License +19 -0
  810. package/plugins/eslint/node_modules/form-data/Readme.md +175 -0
  811. package/plugins/eslint/node_modules/form-data/lib/form_data.js +351 -0
  812. package/plugins/eslint/node_modules/form-data/node_modules/async/.travis.yml +5 -0
  813. package/plugins/eslint/node_modules/form-data/node_modules/async/LICENSE +19 -0
  814. package/plugins/eslint/node_modules/form-data/node_modules/async/README.md +1647 -0
  815. package/plugins/eslint/node_modules/form-data/node_modules/async/bower.json +38 -0
  816. package/plugins/eslint/node_modules/form-data/node_modules/async/component.json +16 -0
  817. package/plugins/eslint/node_modules/form-data/node_modules/async/lib/async.js +1123 -0
  818. package/plugins/eslint/node_modules/form-data/node_modules/async/package.json +54 -0
  819. package/plugins/eslint/node_modules/form-data/node_modules/async/support/sync-package-managers.js +53 -0
  820. package/plugins/eslint/node_modules/form-data/package.json +34 -0
  821. package/plugins/eslint/node_modules/glob/.travis.yml +3 -0
  822. package/plugins/eslint/node_modules/glob/LICENSE +27 -0
  823. package/plugins/eslint/node_modules/glob/README.md +250 -0
  824. package/plugins/eslint/node_modules/glob/examples/g.js +9 -0
  825. package/plugins/eslint/node_modules/glob/examples/usr-local.js +9 -0
  826. package/plugins/eslint/node_modules/glob/glob.js +728 -0
  827. package/plugins/eslint/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
  828. package/plugins/eslint/node_modules/glob/node_modules/minimatch/README.md +218 -0
  829. package/plugins/eslint/node_modules/glob/node_modules/minimatch/minimatch.js +1061 -0
  830. package/plugins/eslint/node_modules/glob/node_modules/minimatch/package.json +28 -0
  831. package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
  832. package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/brace-expand.js +33 -0
  833. package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/caching.js +14 -0
  834. package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
  835. package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
  836. package/plugins/eslint/node_modules/glob/package.json +28 -0
  837. package/plugins/eslint/node_modules/glob/test/00-setup.js +176 -0
  838. package/plugins/eslint/node_modules/glob/test/bash-comparison.js +63 -0
  839. package/plugins/eslint/node_modules/glob/test/bash-results.json +351 -0
  840. package/plugins/eslint/node_modules/glob/test/cwd-test.js +55 -0
  841. package/plugins/eslint/node_modules/glob/test/globstar-match.js +19 -0
  842. package/plugins/eslint/node_modules/glob/test/mark.js +118 -0
  843. package/plugins/eslint/node_modules/glob/test/new-glob-optional-options.js +10 -0
  844. package/plugins/eslint/node_modules/glob/test/nocase-nomagic.js +113 -0
  845. package/plugins/eslint/node_modules/glob/test/pause-resume.js +73 -0
  846. package/plugins/eslint/node_modules/glob/test/readme-issue.js +36 -0
  847. package/plugins/eslint/node_modules/glob/test/root-nomount.js +39 -0
  848. package/plugins/eslint/node_modules/glob/test/root.js +46 -0
  849. package/plugins/eslint/node_modules/glob/test/stat.js +32 -0
  850. package/plugins/eslint/node_modules/glob/test/zz-cleanup.js +11 -0
  851. package/plugins/eslint/node_modules/globals/globals.json +1245 -0
  852. package/plugins/eslint/node_modules/globals/index.js +1 -0
  853. package/plugins/eslint/node_modules/globals/license +21 -0
  854. package/plugins/eslint/node_modules/globals/package.json +35 -0
  855. package/plugins/eslint/node_modules/globals/readme.md +39 -0
  856. package/plugins/eslint/node_modules/growl/History.md +63 -0
  857. package/plugins/eslint/node_modules/growl/Readme.md +108 -0
  858. package/plugins/eslint/node_modules/growl/lib/growl.js +290 -0
  859. package/plugins/eslint/node_modules/growl/package.json +15 -0
  860. package/plugins/eslint/node_modules/growl/test.js +31 -0
  861. package/plugins/eslint/node_modules/has-flag/index.js +10 -0
  862. package/plugins/eslint/node_modules/has-flag/license +21 -0
  863. package/plugins/eslint/node_modules/has-flag/package.json +48 -0
  864. package/plugins/eslint/node_modules/has-flag/readme.md +64 -0
  865. package/plugins/eslint/node_modules/http-signature/.dir-locals.el +6 -0
  866. package/plugins/eslint/node_modules/http-signature/LICENSE +18 -0
  867. package/plugins/eslint/node_modules/http-signature/README.md +79 -0
  868. package/plugins/eslint/node_modules/http-signature/http_signing.md +296 -0
  869. package/plugins/eslint/node_modules/http-signature/lib/index.js +26 -0
  870. package/plugins/eslint/node_modules/http-signature/lib/parser.js +304 -0
  871. package/plugins/eslint/node_modules/http-signature/lib/signer.js +178 -0
  872. package/plugins/eslint/node_modules/http-signature/lib/util.js +304 -0
  873. package/plugins/eslint/node_modules/http-signature/lib/verify.js +42 -0
  874. package/plugins/eslint/node_modules/http-signature/package.json +37 -0
  875. package/plugins/eslint/node_modules/indent-string/index.js +20 -0
  876. package/plugins/eslint/node_modules/indent-string/license +21 -0
  877. package/plugins/eslint/node_modules/indent-string/package.json +36 -0
  878. package/plugins/eslint/node_modules/indent-string/readme.md +58 -0
  879. package/plugins/eslint/node_modules/inquirer/README.md +295 -0
  880. package/plugins/eslint/node_modules/inquirer/lib/inquirer.js +79 -0
  881. package/plugins/eslint/node_modules/inquirer/lib/objects/choice.js +44 -0
  882. package/plugins/eslint/node_modules/inquirer/lib/objects/choices.js +180 -0
  883. package/plugins/eslint/node_modules/inquirer/lib/objects/separator.js +47 -0
  884. package/plugins/eslint/node_modules/inquirer/lib/prompts/base.js +231 -0
  885. package/plugins/eslint/node_modules/inquirer/lib/prompts/checkbox.js +258 -0
  886. package/plugins/eslint/node_modules/inquirer/lib/prompts/confirm.js +105 -0
  887. package/plugins/eslint/node_modules/inquirer/lib/prompts/expand.js +258 -0
  888. package/plugins/eslint/node_modules/inquirer/lib/prompts/input.js +106 -0
  889. package/plugins/eslint/node_modules/inquirer/lib/prompts/list.js +194 -0
  890. package/plugins/eslint/node_modules/inquirer/lib/prompts/password.js +153 -0
  891. package/plugins/eslint/node_modules/inquirer/lib/prompts/rawlist.js +191 -0
  892. package/plugins/eslint/node_modules/inquirer/lib/ui/baseUI.js +83 -0
  893. package/plugins/eslint/node_modules/inquirer/lib/ui/bottom-bar.js +77 -0
  894. package/plugins/eslint/node_modules/inquirer/lib/ui/prompt.js +136 -0
  895. package/plugins/eslint/node_modules/inquirer/lib/utils/events.js +32 -0
  896. package/plugins/eslint/node_modules/inquirer/lib/utils/tty.js +130 -0
  897. package/plugins/eslint/node_modules/inquirer/lib/utils/utils.js +123 -0
  898. package/plugins/eslint/node_modules/inquirer/package.json +44 -0
  899. package/plugins/eslint/node_modules/isarray/README.md +54 -0
  900. package/plugins/eslint/node_modules/isarray/component.json +19 -0
  901. package/plugins/eslint/node_modules/isarray/index.js +3 -0
  902. package/plugins/eslint/node_modules/isarray/package.json +25 -0
  903. package/plugins/eslint/node_modules/istanbul/CHANGELOG.md +304 -0
  904. package/plugins/eslint/node_modules/istanbul/LICENSE +24 -0
  905. package/plugins/eslint/node_modules/istanbul/README.md +269 -0
  906. package/plugins/eslint/node_modules/istanbul/index.js +153 -0
  907. package/plugins/eslint/node_modules/istanbul/lib/assets/base.css +182 -0
  908. package/plugins/eslint/node_modules/istanbul/lib/assets/sort-arrow-sprite.png +0 -0
  909. package/plugins/eslint/node_modules/istanbul/lib/assets/sorter.js +156 -0
  910. package/plugins/eslint/node_modules/istanbul/lib/assets/vendor/prettify.css +1 -0
  911. package/plugins/eslint/node_modules/istanbul/lib/assets/vendor/prettify.js +1 -0
  912. package/plugins/eslint/node_modules/istanbul/lib/cli.js +94 -0
  913. package/plugins/eslint/node_modules/istanbul/lib/collector.js +122 -0
  914. package/plugins/eslint/node_modules/istanbul/lib/command/check-coverage.js +195 -0
  915. package/plugins/eslint/node_modules/istanbul/lib/command/common/run-with-cover.js +261 -0
  916. package/plugins/eslint/node_modules/istanbul/lib/command/cover.js +33 -0
  917. package/plugins/eslint/node_modules/istanbul/lib/command/help.js +102 -0
  918. package/plugins/eslint/node_modules/istanbul/lib/command/index.js +33 -0
  919. package/plugins/eslint/node_modules/istanbul/lib/command/instrument.js +261 -0
  920. package/plugins/eslint/node_modules/istanbul/lib/command/report.js +123 -0
  921. package/plugins/eslint/node_modules/istanbul/lib/command/test.js +31 -0
  922. package/plugins/eslint/node_modules/istanbul/lib/config.js +483 -0
  923. package/plugins/eslint/node_modules/istanbul/lib/hook.js +198 -0
  924. package/plugins/eslint/node_modules/istanbul/lib/instrumenter.js +1040 -0
  925. package/plugins/eslint/node_modules/istanbul/lib/object-utils.js +425 -0
  926. package/plugins/eslint/node_modules/istanbul/lib/register-plugins.js +15 -0
  927. package/plugins/eslint/node_modules/istanbul/lib/report/clover.js +227 -0
  928. package/plugins/eslint/node_modules/istanbul/lib/report/cobertura.js +221 -0
  929. package/plugins/eslint/node_modules/istanbul/lib/report/common/defaults.js +49 -0
  930. package/plugins/eslint/node_modules/istanbul/lib/report/html.js +567 -0
  931. package/plugins/eslint/node_modules/istanbul/lib/report/index.js +104 -0
  932. package/plugins/eslint/node_modules/istanbul/lib/report/json-summary.js +75 -0
  933. package/plugins/eslint/node_modules/istanbul/lib/report/json.js +69 -0
  934. package/plugins/eslint/node_modules/istanbul/lib/report/lcov.js +65 -0
  935. package/plugins/eslint/node_modules/istanbul/lib/report/lcovonly.js +103 -0
  936. package/plugins/eslint/node_modules/istanbul/lib/report/none.js +41 -0
  937. package/plugins/eslint/node_modules/istanbul/lib/report/teamcity.js +92 -0
  938. package/plugins/eslint/node_modules/istanbul/lib/report/templates/foot.txt +18 -0
  939. package/plugins/eslint/node_modules/istanbul/lib/report/templates/head.txt +36 -0
  940. package/plugins/eslint/node_modules/istanbul/lib/report/text-lcov.js +50 -0
  941. package/plugins/eslint/node_modules/istanbul/lib/report/text-summary.js +93 -0
  942. package/plugins/eslint/node_modules/istanbul/lib/report/text.js +234 -0
  943. package/plugins/eslint/node_modules/istanbul/lib/reporter.js +111 -0
  944. package/plugins/eslint/node_modules/istanbul/lib/store/fslookup.js +61 -0
  945. package/plugins/eslint/node_modules/istanbul/lib/store/index.js +123 -0
  946. package/plugins/eslint/node_modules/istanbul/lib/store/memory.js +56 -0
  947. package/plugins/eslint/node_modules/istanbul/lib/store/tmp.js +81 -0
  948. package/plugins/eslint/node_modules/istanbul/lib/util/factory.js +88 -0
  949. package/plugins/eslint/node_modules/istanbul/lib/util/file-matcher.js +76 -0
  950. package/plugins/eslint/node_modules/istanbul/lib/util/file-writer.js +154 -0
  951. package/plugins/eslint/node_modules/istanbul/lib/util/help-formatter.js +30 -0
  952. package/plugins/eslint/node_modules/istanbul/lib/util/input-error.js +12 -0
  953. package/plugins/eslint/node_modules/istanbul/lib/util/insertion-text.js +109 -0
  954. package/plugins/eslint/node_modules/istanbul/lib/util/meta.js +13 -0
  955. package/plugins/eslint/node_modules/istanbul/lib/util/tree-summarizer.js +213 -0
  956. package/plugins/eslint/node_modules/istanbul/lib/util/writer.js +92 -0
  957. package/plugins/eslint/node_modules/istanbul/lib/util/yui-load-hook.js +49 -0
  958. package/plugins/eslint/node_modules/istanbul/node_modules/esprima/ChangeLog +143 -0
  959. package/plugins/eslint/node_modules/istanbul/node_modules/esprima/LICENSE.BSD +21 -0
  960. package/plugins/eslint/node_modules/istanbul/node_modules/esprima/README.md +22 -0
  961. package/plugins/eslint/node_modules/istanbul/node_modules/esprima/esprima.js +5637 -0
  962. package/plugins/eslint/node_modules/istanbul/node_modules/esprima/package.json +87 -0
  963. package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/browser.js +2 -0
  964. package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/index.js +84 -0
  965. package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/license +21 -0
  966. package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/package.json +66 -0
  967. package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/readme.md +60 -0
  968. package/plugins/eslint/node_modules/istanbul/package.json +117 -0
  969. package/plugins/eslint/node_modules/js-yaml/CHANGELOG.md +557 -0
  970. package/plugins/eslint/node_modules/js-yaml/LICENSE +21 -0
  971. package/plugins/eslint/node_modules/js-yaml/README.md +299 -0
  972. package/plugins/eslint/node_modules/js-yaml/dist/js-yaml.js +3989 -0
  973. package/plugins/eslint/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
  974. package/plugins/eslint/node_modules/js-yaml/index.js +7 -0
  975. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
  976. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
  977. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
  978. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
  979. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
  980. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
  981. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
  982. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
  983. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
  984. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
  985. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
  986. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
  987. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
  988. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
  989. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
  990. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
  991. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
  992. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
  993. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
  994. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
  995. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
  996. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
  997. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
  998. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
  999. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
  1000. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
  1001. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
  1002. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
  1003. package/plugins/eslint/node_modules/js-yaml/lib/js-yaml.js +39 -0
  1004. package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/ChangeLog +235 -0
  1005. package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/LICENSE.BSD +21 -0
  1006. package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/README.md +46 -0
  1007. package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/dist/esprima.js +6709 -0
  1008. package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/package.json +112 -0
  1009. package/plugins/eslint/node_modules/js-yaml/package.json +49 -0
  1010. package/plugins/eslint/node_modules/lcov-parse/.travis.yml +5 -0
  1011. package/plugins/eslint/node_modules/lcov-parse/LICENSE +25 -0
  1012. package/plugins/eslint/node_modules/lcov-parse/README.md +79 -0
  1013. package/plugins/eslint/node_modules/lcov-parse/lib/index.js +122 -0
  1014. package/plugins/eslint/node_modules/lcov-parse/package.json +39 -0
  1015. package/plugins/eslint/node_modules/lcov-parse/tests/info/parts.info +415 -0
  1016. package/plugins/eslint/node_modules/lcov-parse/tests/parse.js +115 -0
  1017. package/plugins/eslint/node_modules/levn/LICENSE +22 -0
  1018. package/plugins/eslint/node_modules/levn/README.md +195 -0
  1019. package/plugins/eslint/node_modules/levn/lib/cast.js +298 -0
  1020. package/plugins/eslint/node_modules/levn/lib/coerce.js +285 -0
  1021. package/plugins/eslint/node_modules/levn/lib/index.js +22 -0
  1022. package/plugins/eslint/node_modules/levn/lib/parse-string.js +113 -0
  1023. package/plugins/eslint/node_modules/levn/lib/parse.js +102 -0
  1024. package/plugins/eslint/node_modules/levn/package.json +52 -0
  1025. package/plugins/eslint/node_modules/lodash/LICENSE +22 -0
  1026. package/plugins/eslint/node_modules/lodash/README.md +121 -0
  1027. package/plugins/eslint/node_modules/lodash/array/chunk.js +46 -0
  1028. package/plugins/eslint/node_modules/lodash/array/compact.js +30 -0
  1029. package/plugins/eslint/node_modules/lodash/array/difference.js +29 -0
  1030. package/plugins/eslint/node_modules/lodash/array/drop.js +39 -0
  1031. package/plugins/eslint/node_modules/lodash/array/dropRight.js +40 -0
  1032. package/plugins/eslint/node_modules/lodash/array/dropRightWhile.js +59 -0
  1033. package/plugins/eslint/node_modules/lodash/array/dropWhile.js +59 -0
  1034. package/plugins/eslint/node_modules/lodash/array/fill.js +44 -0
  1035. package/plugins/eslint/node_modules/lodash/array/findIndex.js +53 -0
  1036. package/plugins/eslint/node_modules/lodash/array/findLastIndex.js +53 -0
  1037. package/plugins/eslint/node_modules/lodash/array/first.js +22 -0
  1038. package/plugins/eslint/node_modules/lodash/array/flatten.js +32 -0
  1039. package/plugins/eslint/node_modules/lodash/array/flattenDeep.js +21 -0
  1040. package/plugins/eslint/node_modules/lodash/array/head.js +1 -0
  1041. package/plugins/eslint/node_modules/lodash/array/indexOf.js +53 -0
  1042. package/plugins/eslint/node_modules/lodash/array/initial.js +20 -0
  1043. package/plugins/eslint/node_modules/lodash/array/intersection.js +58 -0
  1044. package/plugins/eslint/node_modules/lodash/array/last.js +19 -0
  1045. package/plugins/eslint/node_modules/lodash/array/lastIndexOf.js +60 -0
  1046. package/plugins/eslint/node_modules/lodash/array/object.js +1 -0
  1047. package/plugins/eslint/node_modules/lodash/array/pull.js +52 -0
  1048. package/plugins/eslint/node_modules/lodash/array/pullAt.js +40 -0
  1049. package/plugins/eslint/node_modules/lodash/array/remove.js +64 -0
  1050. package/plugins/eslint/node_modules/lodash/array/rest.js +21 -0
  1051. package/plugins/eslint/node_modules/lodash/array/slice.js +30 -0
  1052. package/plugins/eslint/node_modules/lodash/array/sortedIndex.js +53 -0
  1053. package/plugins/eslint/node_modules/lodash/array/sortedLastIndex.js +25 -0
  1054. package/plugins/eslint/node_modules/lodash/array/tail.js +1 -0
  1055. package/plugins/eslint/node_modules/lodash/array/take.js +39 -0
  1056. package/plugins/eslint/node_modules/lodash/array/takeRight.js +40 -0
  1057. package/plugins/eslint/node_modules/lodash/array/takeRightWhile.js +59 -0
  1058. package/plugins/eslint/node_modules/lodash/array/takeWhile.js +59 -0
  1059. package/plugins/eslint/node_modules/lodash/array/union.js +24 -0
  1060. package/plugins/eslint/node_modules/lodash/array/uniq.js +71 -0
  1061. package/plugins/eslint/node_modules/lodash/array/unique.js +1 -0
  1062. package/plugins/eslint/node_modules/lodash/array/unzip.js +47 -0
  1063. package/plugins/eslint/node_modules/lodash/array/unzipWith.js +41 -0
  1064. package/plugins/eslint/node_modules/lodash/array/without.js +27 -0
  1065. package/plugins/eslint/node_modules/lodash/array/xor.js +35 -0
  1066. package/plugins/eslint/node_modules/lodash/array/zip.js +21 -0
  1067. package/plugins/eslint/node_modules/lodash/array/zipObject.js +43 -0
  1068. package/plugins/eslint/node_modules/lodash/array/zipWith.js +36 -0
  1069. package/plugins/eslint/node_modules/lodash/array.js +44 -0
  1070. package/plugins/eslint/node_modules/lodash/chain/chain.js +35 -0
  1071. package/plugins/eslint/node_modules/lodash/chain/commit.js +1 -0
  1072. package/plugins/eslint/node_modules/lodash/chain/concat.js +1 -0
  1073. package/plugins/eslint/node_modules/lodash/chain/lodash.js +125 -0
  1074. package/plugins/eslint/node_modules/lodash/chain/plant.js +1 -0
  1075. package/plugins/eslint/node_modules/lodash/chain/reverse.js +1 -0
  1076. package/plugins/eslint/node_modules/lodash/chain/run.js +1 -0
  1077. package/plugins/eslint/node_modules/lodash/chain/tap.js +29 -0
  1078. package/plugins/eslint/node_modules/lodash/chain/thru.js +26 -0
  1079. package/plugins/eslint/node_modules/lodash/chain/toJSON.js +1 -0
  1080. package/plugins/eslint/node_modules/lodash/chain/toString.js +1 -0
  1081. package/plugins/eslint/node_modules/lodash/chain/value.js +1 -0
  1082. package/plugins/eslint/node_modules/lodash/chain/valueOf.js +1 -0
  1083. package/plugins/eslint/node_modules/lodash/chain/wrapperChain.js +32 -0
  1084. package/plugins/eslint/node_modules/lodash/chain/wrapperCommit.js +32 -0
  1085. package/plugins/eslint/node_modules/lodash/chain/wrapperConcat.js +34 -0
  1086. package/plugins/eslint/node_modules/lodash/chain/wrapperPlant.js +45 -0
  1087. package/plugins/eslint/node_modules/lodash/chain/wrapperReverse.js +43 -0
  1088. package/plugins/eslint/node_modules/lodash/chain/wrapperToString.js +17 -0
  1089. package/plugins/eslint/node_modules/lodash/chain/wrapperValue.js +20 -0
  1090. package/plugins/eslint/node_modules/lodash/chain.js +16 -0
  1091. package/plugins/eslint/node_modules/lodash/collection/all.js +1 -0
  1092. package/plugins/eslint/node_modules/lodash/collection/any.js +1 -0
  1093. package/plugins/eslint/node_modules/lodash/collection/at.js +29 -0
  1094. package/plugins/eslint/node_modules/lodash/collection/collect.js +1 -0
  1095. package/plugins/eslint/node_modules/lodash/collection/contains.js +1 -0
  1096. package/plugins/eslint/node_modules/lodash/collection/countBy.js +54 -0
  1097. package/plugins/eslint/node_modules/lodash/collection/detect.js +1 -0
  1098. package/plugins/eslint/node_modules/lodash/collection/each.js +1 -0
  1099. package/plugins/eslint/node_modules/lodash/collection/eachRight.js +1 -0
  1100. package/plugins/eslint/node_modules/lodash/collection/every.js +66 -0
  1101. package/plugins/eslint/node_modules/lodash/collection/filter.js +61 -0
  1102. package/plugins/eslint/node_modules/lodash/collection/find.js +56 -0
  1103. package/plugins/eslint/node_modules/lodash/collection/findLast.js +25 -0
  1104. package/plugins/eslint/node_modules/lodash/collection/findWhere.js +37 -0
  1105. package/plugins/eslint/node_modules/lodash/collection/foldl.js +1 -0
  1106. package/plugins/eslint/node_modules/lodash/collection/foldr.js +1 -0
  1107. package/plugins/eslint/node_modules/lodash/collection/forEach.js +37 -0
  1108. package/plugins/eslint/node_modules/lodash/collection/forEachRight.js +26 -0
  1109. package/plugins/eslint/node_modules/lodash/collection/groupBy.js +59 -0
  1110. package/plugins/eslint/node_modules/lodash/collection/include.js +1 -0
  1111. package/plugins/eslint/node_modules/lodash/collection/includes.js +57 -0
  1112. package/plugins/eslint/node_modules/lodash/collection/indexBy.js +53 -0
  1113. package/plugins/eslint/node_modules/lodash/collection/inject.js +1 -0
  1114. package/plugins/eslint/node_modules/lodash/collection/invoke.js +42 -0
  1115. package/plugins/eslint/node_modules/lodash/collection/map.js +68 -0
  1116. package/plugins/eslint/node_modules/lodash/collection/max.js +1 -0
  1117. package/plugins/eslint/node_modules/lodash/collection/min.js +1 -0
  1118. package/plugins/eslint/node_modules/lodash/collection/partition.js +66 -0
  1119. package/plugins/eslint/node_modules/lodash/collection/pluck.js +31 -0
  1120. package/plugins/eslint/node_modules/lodash/collection/reduce.js +44 -0
  1121. package/plugins/eslint/node_modules/lodash/collection/reduceRight.js +29 -0
  1122. package/plugins/eslint/node_modules/lodash/collection/reject.js +50 -0
  1123. package/plugins/eslint/node_modules/lodash/collection/sample.js +50 -0
  1124. package/plugins/eslint/node_modules/lodash/collection/select.js +1 -0
  1125. package/plugins/eslint/node_modules/lodash/collection/shuffle.js +24 -0
  1126. package/plugins/eslint/node_modules/lodash/collection/size.js +30 -0
  1127. package/plugins/eslint/node_modules/lodash/collection/some.js +67 -0
  1128. package/plugins/eslint/node_modules/lodash/collection/sortBy.js +71 -0
  1129. package/plugins/eslint/node_modules/lodash/collection/sortByAll.js +52 -0
  1130. package/plugins/eslint/node_modules/lodash/collection/sortByOrder.js +55 -0
  1131. package/plugins/eslint/node_modules/lodash/collection/sum.js +1 -0
  1132. package/plugins/eslint/node_modules/lodash/collection/where.js +37 -0
  1133. package/plugins/eslint/node_modules/lodash/collection.js +44 -0
  1134. package/plugins/eslint/node_modules/lodash/date/now.js +24 -0
  1135. package/plugins/eslint/node_modules/lodash/date.js +3 -0
  1136. package/plugins/eslint/node_modules/lodash/function/after.js +48 -0
  1137. package/plugins/eslint/node_modules/lodash/function/ary.js +34 -0
  1138. package/plugins/eslint/node_modules/lodash/function/backflow.js +1 -0
  1139. package/plugins/eslint/node_modules/lodash/function/before.js +42 -0
  1140. package/plugins/eslint/node_modules/lodash/function/bind.js +56 -0
  1141. package/plugins/eslint/node_modules/lodash/function/bindAll.js +50 -0
  1142. package/plugins/eslint/node_modules/lodash/function/bindKey.js +66 -0
  1143. package/plugins/eslint/node_modules/lodash/function/compose.js +1 -0
  1144. package/plugins/eslint/node_modules/lodash/function/curry.js +51 -0
  1145. package/plugins/eslint/node_modules/lodash/function/curryRight.js +48 -0
  1146. package/plugins/eslint/node_modules/lodash/function/debounce.js +181 -0
  1147. package/plugins/eslint/node_modules/lodash/function/defer.js +25 -0
  1148. package/plugins/eslint/node_modules/lodash/function/delay.js +26 -0
  1149. package/plugins/eslint/node_modules/lodash/function/flow.js +25 -0
  1150. package/plugins/eslint/node_modules/lodash/function/flowRight.js +25 -0
  1151. package/plugins/eslint/node_modules/lodash/function/memoize.js +80 -0
  1152. package/plugins/eslint/node_modules/lodash/function/modArgs.js +58 -0
  1153. package/plugins/eslint/node_modules/lodash/function/negate.js +32 -0
  1154. package/plugins/eslint/node_modules/lodash/function/once.js +24 -0
  1155. package/plugins/eslint/node_modules/lodash/function/partial.js +43 -0
  1156. package/plugins/eslint/node_modules/lodash/function/partialRight.js +42 -0
  1157. package/plugins/eslint/node_modules/lodash/function/rearg.js +40 -0
  1158. package/plugins/eslint/node_modules/lodash/function/restParam.js +58 -0
  1159. package/plugins/eslint/node_modules/lodash/function/spread.js +44 -0
  1160. package/plugins/eslint/node_modules/lodash/function/throttle.js +62 -0
  1161. package/plugins/eslint/node_modules/lodash/function/wrap.js +33 -0
  1162. package/plugins/eslint/node_modules/lodash/function.js +28 -0
  1163. package/plugins/eslint/node_modules/lodash/index.js +12351 -0
  1164. package/plugins/eslint/node_modules/lodash/internal/LazyWrapper.js +26 -0
  1165. package/plugins/eslint/node_modules/lodash/internal/LodashWrapper.js +21 -0
  1166. package/plugins/eslint/node_modules/lodash/internal/MapCache.js +24 -0
  1167. package/plugins/eslint/node_modules/lodash/internal/SetCache.js +29 -0
  1168. package/plugins/eslint/node_modules/lodash/internal/arrayConcat.js +25 -0
  1169. package/plugins/eslint/node_modules/lodash/internal/arrayCopy.js +20 -0
  1170. package/plugins/eslint/node_modules/lodash/internal/arrayEach.js +22 -0
  1171. package/plugins/eslint/node_modules/lodash/internal/arrayEachRight.js +21 -0
  1172. package/plugins/eslint/node_modules/lodash/internal/arrayEvery.js +23 -0
  1173. package/plugins/eslint/node_modules/lodash/internal/arrayExtremum.js +30 -0
  1174. package/plugins/eslint/node_modules/lodash/internal/arrayFilter.js +25 -0
  1175. package/plugins/eslint/node_modules/lodash/internal/arrayMap.js +21 -0
  1176. package/plugins/eslint/node_modules/lodash/internal/arrayPush.js +20 -0
  1177. package/plugins/eslint/node_modules/lodash/internal/arrayReduce.js +26 -0
  1178. package/plugins/eslint/node_modules/lodash/internal/arrayReduceRight.js +24 -0
  1179. package/plugins/eslint/node_modules/lodash/internal/arraySome.js +23 -0
  1180. package/plugins/eslint/node_modules/lodash/internal/arraySum.js +20 -0
  1181. package/plugins/eslint/node_modules/lodash/internal/assignDefaults.js +13 -0
  1182. package/plugins/eslint/node_modules/lodash/internal/assignOwnDefaults.js +26 -0
  1183. package/plugins/eslint/node_modules/lodash/internal/assignWith.js +32 -0
  1184. package/plugins/eslint/node_modules/lodash/internal/baseAssign.js +19 -0
  1185. package/plugins/eslint/node_modules/lodash/internal/baseAt.js +32 -0
  1186. package/plugins/eslint/node_modules/lodash/internal/baseCallback.js +35 -0
  1187. package/plugins/eslint/node_modules/lodash/internal/baseClone.js +128 -0
  1188. package/plugins/eslint/node_modules/lodash/internal/baseCompareAscending.js +34 -0
  1189. package/plugins/eslint/node_modules/lodash/internal/baseCopy.js +23 -0
  1190. package/plugins/eslint/node_modules/lodash/internal/baseCreate.js +23 -0
  1191. package/plugins/eslint/node_modules/lodash/internal/baseDelay.js +21 -0
  1192. package/plugins/eslint/node_modules/lodash/internal/baseDifference.js +55 -0
  1193. package/plugins/eslint/node_modules/lodash/internal/baseEach.js +15 -0
  1194. package/plugins/eslint/node_modules/lodash/internal/baseEachRight.js +15 -0
  1195. package/plugins/eslint/node_modules/lodash/internal/baseEvery.js +22 -0
  1196. package/plugins/eslint/node_modules/lodash/internal/baseExtremum.js +29 -0
  1197. package/plugins/eslint/node_modules/lodash/internal/baseFill.js +31 -0
  1198. package/plugins/eslint/node_modules/lodash/internal/baseFilter.js +22 -0
  1199. package/plugins/eslint/node_modules/lodash/internal/baseFind.js +25 -0
  1200. package/plugins/eslint/node_modules/lodash/internal/baseFindIndex.js +23 -0
  1201. package/plugins/eslint/node_modules/lodash/internal/baseFlatten.js +41 -0
  1202. package/plugins/eslint/node_modules/lodash/internal/baseFor.js +17 -0
  1203. package/plugins/eslint/node_modules/lodash/internal/baseForIn.js +17 -0
  1204. package/plugins/eslint/node_modules/lodash/internal/baseForOwn.js +17 -0
  1205. package/plugins/eslint/node_modules/lodash/internal/baseForOwnRight.js +17 -0
  1206. package/plugins/eslint/node_modules/lodash/internal/baseForRight.js +15 -0
  1207. package/plugins/eslint/node_modules/lodash/internal/baseFunctions.js +27 -0
  1208. package/plugins/eslint/node_modules/lodash/internal/baseGet.js +29 -0
  1209. package/plugins/eslint/node_modules/lodash/internal/baseIndexOf.js +27 -0
  1210. package/plugins/eslint/node_modules/lodash/internal/baseIsEqual.js +28 -0
  1211. package/plugins/eslint/node_modules/lodash/internal/baseIsEqualDeep.js +102 -0
  1212. package/plugins/eslint/node_modules/lodash/internal/baseIsFunction.js +15 -0
  1213. package/plugins/eslint/node_modules/lodash/internal/baseIsMatch.js +52 -0
  1214. package/plugins/eslint/node_modules/lodash/internal/baseLodash.js +10 -0
  1215. package/plugins/eslint/node_modules/lodash/internal/baseMap.js +23 -0
  1216. package/plugins/eslint/node_modules/lodash/internal/baseMatches.js +30 -0
  1217. package/plugins/eslint/node_modules/lodash/internal/baseMatchesProperty.js +45 -0
  1218. package/plugins/eslint/node_modules/lodash/internal/baseMerge.js +56 -0
  1219. package/plugins/eslint/node_modules/lodash/internal/baseMergeDeep.js +67 -0
  1220. package/plugins/eslint/node_modules/lodash/internal/baseProperty.js +14 -0
  1221. package/plugins/eslint/node_modules/lodash/internal/basePropertyDeep.js +19 -0
  1222. package/plugins/eslint/node_modules/lodash/internal/basePullAt.js +30 -0
  1223. package/plugins/eslint/node_modules/lodash/internal/baseRandom.js +18 -0
  1224. package/plugins/eslint/node_modules/lodash/internal/baseReduce.js +24 -0
  1225. package/plugins/eslint/node_modules/lodash/internal/baseSetData.js +17 -0
  1226. package/plugins/eslint/node_modules/lodash/internal/baseSlice.js +32 -0
  1227. package/plugins/eslint/node_modules/lodash/internal/baseSome.js +23 -0
  1228. package/plugins/eslint/node_modules/lodash/internal/baseSortBy.js +21 -0
  1229. package/plugins/eslint/node_modules/lodash/internal/baseSortByOrder.js +31 -0
  1230. package/plugins/eslint/node_modules/lodash/internal/baseSum.js +20 -0
  1231. package/plugins/eslint/node_modules/lodash/internal/baseToString.js +13 -0
  1232. package/plugins/eslint/node_modules/lodash/internal/baseUniq.js +60 -0
  1233. package/plugins/eslint/node_modules/lodash/internal/baseValues.js +22 -0
  1234. package/plugins/eslint/node_modules/lodash/internal/baseWhile.js +24 -0
  1235. package/plugins/eslint/node_modules/lodash/internal/baseWrapperValue.js +29 -0
  1236. package/plugins/eslint/node_modules/lodash/internal/binaryIndex.js +39 -0
  1237. package/plugins/eslint/node_modules/lodash/internal/binaryIndexBy.js +57 -0
  1238. package/plugins/eslint/node_modules/lodash/internal/bindCallback.js +39 -0
  1239. package/plugins/eslint/node_modules/lodash/internal/bufferClone.js +20 -0
  1240. package/plugins/eslint/node_modules/lodash/internal/cacheIndexOf.js +19 -0
  1241. package/plugins/eslint/node_modules/lodash/internal/cachePush.js +20 -0
  1242. package/plugins/eslint/node_modules/lodash/internal/charsLeftIndex.js +18 -0
  1243. package/plugins/eslint/node_modules/lodash/internal/charsRightIndex.js +17 -0
  1244. package/plugins/eslint/node_modules/lodash/internal/compareAscending.js +16 -0
  1245. package/plugins/eslint/node_modules/lodash/internal/compareMultiple.js +44 -0
  1246. package/plugins/eslint/node_modules/lodash/internal/composeArgs.js +34 -0
  1247. package/plugins/eslint/node_modules/lodash/internal/composeArgsRight.js +36 -0
  1248. package/plugins/eslint/node_modules/lodash/internal/createAggregator.js +35 -0
  1249. package/plugins/eslint/node_modules/lodash/internal/createAssigner.js +41 -0
  1250. package/plugins/eslint/node_modules/lodash/internal/createBaseEach.js +31 -0
  1251. package/plugins/eslint/node_modules/lodash/internal/createBaseFor.js +27 -0
  1252. package/plugins/eslint/node_modules/lodash/internal/createBindWrapper.js +22 -0
  1253. package/plugins/eslint/node_modules/lodash/internal/createCache.js +21 -0
  1254. package/plugins/eslint/node_modules/lodash/internal/createCompounder.js +26 -0
  1255. package/plugins/eslint/node_modules/lodash/internal/createCtorWrapper.js +37 -0
  1256. package/plugins/eslint/node_modules/lodash/internal/createCurry.js +23 -0
  1257. package/plugins/eslint/node_modules/lodash/internal/createDefaults.js +22 -0
  1258. package/plugins/eslint/node_modules/lodash/internal/createExtremum.js +33 -0
  1259. package/plugins/eslint/node_modules/lodash/internal/createFind.js +25 -0
  1260. package/plugins/eslint/node_modules/lodash/internal/createFindIndex.js +21 -0
  1261. package/plugins/eslint/node_modules/lodash/internal/createFindKey.js +18 -0
  1262. package/plugins/eslint/node_modules/lodash/internal/createFlow.js +74 -0
  1263. package/plugins/eslint/node_modules/lodash/internal/createForEach.js +20 -0
  1264. package/plugins/eslint/node_modules/lodash/internal/createForIn.js +20 -0
  1265. package/plugins/eslint/node_modules/lodash/internal/createForOwn.js +19 -0
  1266. package/plugins/eslint/node_modules/lodash/internal/createHybridWrapper.js +111 -0
  1267. package/plugins/eslint/node_modules/lodash/internal/createObjectMapper.js +26 -0
  1268. package/plugins/eslint/node_modules/lodash/internal/createPadDir.js +18 -0
  1269. package/plugins/eslint/node_modules/lodash/internal/createPadding.js +29 -0
  1270. package/plugins/eslint/node_modules/lodash/internal/createPartial.js +20 -0
  1271. package/plugins/eslint/node_modules/lodash/internal/createPartialWrapper.js +43 -0
  1272. package/plugins/eslint/node_modules/lodash/internal/createReduce.js +22 -0
  1273. package/plugins/eslint/node_modules/lodash/internal/createRound.js +23 -0
  1274. package/plugins/eslint/node_modules/lodash/internal/createSortedIndex.js +20 -0
  1275. package/plugins/eslint/node_modules/lodash/internal/createWrapper.js +86 -0
  1276. package/plugins/eslint/node_modules/lodash/internal/deburrLetter.js +33 -0
  1277. package/plugins/eslint/node_modules/lodash/internal/equalArrays.js +51 -0
  1278. package/plugins/eslint/node_modules/lodash/internal/equalByTag.js +48 -0
  1279. package/plugins/eslint/node_modules/lodash/internal/equalObjects.js +67 -0
  1280. package/plugins/eslint/node_modules/lodash/internal/escapeHtmlChar.js +22 -0
  1281. package/plugins/eslint/node_modules/lodash/internal/escapeRegExpChar.js +38 -0
  1282. package/plugins/eslint/node_modules/lodash/internal/escapeStringChar.js +22 -0
  1283. package/plugins/eslint/node_modules/lodash/internal/getData.js +15 -0
  1284. package/plugins/eslint/node_modules/lodash/internal/getFuncName.js +25 -0
  1285. package/plugins/eslint/node_modules/lodash/internal/getLength.js +15 -0
  1286. package/plugins/eslint/node_modules/lodash/internal/getMatchData.js +21 -0
  1287. package/plugins/eslint/node_modules/lodash/internal/getNative.js +16 -0
  1288. package/plugins/eslint/node_modules/lodash/internal/getView.js +33 -0
  1289. package/plugins/eslint/node_modules/lodash/internal/indexOfNaN.js +23 -0
  1290. package/plugins/eslint/node_modules/lodash/internal/initCloneArray.js +26 -0
  1291. package/plugins/eslint/node_modules/lodash/internal/initCloneByTag.js +63 -0
  1292. package/plugins/eslint/node_modules/lodash/internal/initCloneObject.js +16 -0
  1293. package/plugins/eslint/node_modules/lodash/internal/invokePath.js +26 -0
  1294. package/plugins/eslint/node_modules/lodash/internal/isArrayLike.js +15 -0
  1295. package/plugins/eslint/node_modules/lodash/internal/isIndex.js +24 -0
  1296. package/plugins/eslint/node_modules/lodash/internal/isIterateeCall.js +28 -0
  1297. package/plugins/eslint/node_modules/lodash/internal/isKey.js +28 -0
  1298. package/plugins/eslint/node_modules/lodash/internal/isLaziable.js +27 -0
  1299. package/plugins/eslint/node_modules/lodash/internal/isLength.js +20 -0
  1300. package/plugins/eslint/node_modules/lodash/internal/isObjectLike.js +12 -0
  1301. package/plugins/eslint/node_modules/lodash/internal/isSpace.js +14 -0
  1302. package/plugins/eslint/node_modules/lodash/internal/isStrictComparable.js +15 -0
  1303. package/plugins/eslint/node_modules/lodash/internal/lazyClone.js +23 -0
  1304. package/plugins/eslint/node_modules/lodash/internal/lazyReverse.js +23 -0
  1305. package/plugins/eslint/node_modules/lodash/internal/lazyValue.js +72 -0
  1306. package/plugins/eslint/node_modules/lodash/internal/mapDelete.js +14 -0
  1307. package/plugins/eslint/node_modules/lodash/internal/mapGet.js +14 -0
  1308. package/plugins/eslint/node_modules/lodash/internal/mapHas.js +20 -0
  1309. package/plugins/eslint/node_modules/lodash/internal/mapSet.js +18 -0
  1310. package/plugins/eslint/node_modules/lodash/internal/mergeData.js +89 -0
  1311. package/plugins/eslint/node_modules/lodash/internal/mergeDefaults.js +15 -0
  1312. package/plugins/eslint/node_modules/lodash/internal/metaMap.js +9 -0
  1313. package/plugins/eslint/node_modules/lodash/internal/pickByArray.js +28 -0
  1314. package/plugins/eslint/node_modules/lodash/internal/pickByCallback.js +22 -0
  1315. package/plugins/eslint/node_modules/lodash/internal/reEscape.js +4 -0
  1316. package/plugins/eslint/node_modules/lodash/internal/reEvaluate.js +4 -0
  1317. package/plugins/eslint/node_modules/lodash/internal/reInterpolate.js +4 -0
  1318. package/plugins/eslint/node_modules/lodash/internal/realNames.js +4 -0
  1319. package/plugins/eslint/node_modules/lodash/internal/reorder.js +29 -0
  1320. package/plugins/eslint/node_modules/lodash/internal/replaceHolders.js +28 -0
  1321. package/plugins/eslint/node_modules/lodash/internal/setData.js +41 -0
  1322. package/plugins/eslint/node_modules/lodash/internal/shimKeys.js +41 -0
  1323. package/plugins/eslint/node_modules/lodash/internal/sortedUniq.js +29 -0
  1324. package/plugins/eslint/node_modules/lodash/internal/toIterable.js +22 -0
  1325. package/plugins/eslint/node_modules/lodash/internal/toObject.js +14 -0
  1326. package/plugins/eslint/node_modules/lodash/internal/toPath.js +28 -0
  1327. package/plugins/eslint/node_modules/lodash/internal/trimmedLeftIndex.js +19 -0
  1328. package/plugins/eslint/node_modules/lodash/internal/trimmedRightIndex.js +18 -0
  1329. package/plugins/eslint/node_modules/lodash/internal/unescapeHtmlChar.js +22 -0
  1330. package/plugins/eslint/node_modules/lodash/internal/wrapperClone.js +18 -0
  1331. package/plugins/eslint/node_modules/lodash/lang/clone.js +70 -0
  1332. package/plugins/eslint/node_modules/lodash/lang/cloneDeep.js +55 -0
  1333. package/plugins/eslint/node_modules/lodash/lang/eq.js +1 -0
  1334. package/plugins/eslint/node_modules/lodash/lang/gt.js +25 -0
  1335. package/plugins/eslint/node_modules/lodash/lang/gte.js +25 -0
  1336. package/plugins/eslint/node_modules/lodash/lang/isArguments.js +34 -0
  1337. package/plugins/eslint/node_modules/lodash/lang/isArray.js +40 -0
  1338. package/plugins/eslint/node_modules/lodash/lang/isBoolean.js +35 -0
  1339. package/plugins/eslint/node_modules/lodash/lang/isDate.js +35 -0
  1340. package/plugins/eslint/node_modules/lodash/lang/isElement.js +24 -0
  1341. package/plugins/eslint/node_modules/lodash/lang/isEmpty.js +47 -0
  1342. package/plugins/eslint/node_modules/lodash/lang/isEqual.js +54 -0
  1343. package/plugins/eslint/node_modules/lodash/lang/isError.js +36 -0
  1344. package/plugins/eslint/node_modules/lodash/lang/isFinite.js +35 -0
  1345. package/plugins/eslint/node_modules/lodash/lang/isFunction.js +38 -0
  1346. package/plugins/eslint/node_modules/lodash/lang/isMatch.js +49 -0
  1347. package/plugins/eslint/node_modules/lodash/lang/isNaN.js +34 -0
  1348. package/plugins/eslint/node_modules/lodash/lang/isNative.js +48 -0
  1349. package/plugins/eslint/node_modules/lodash/lang/isNull.js +21 -0
  1350. package/plugins/eslint/node_modules/lodash/lang/isNumber.js +41 -0
  1351. package/plugins/eslint/node_modules/lodash/lang/isObject.js +28 -0
  1352. package/plugins/eslint/node_modules/lodash/lang/isPlainObject.js +71 -0
  1353. package/plugins/eslint/node_modules/lodash/lang/isRegExp.js +35 -0
  1354. package/plugins/eslint/node_modules/lodash/lang/isString.js +35 -0
  1355. package/plugins/eslint/node_modules/lodash/lang/isTypedArray.js +74 -0
  1356. package/plugins/eslint/node_modules/lodash/lang/isUndefined.js +21 -0
  1357. package/plugins/eslint/node_modules/lodash/lang/lt.js +25 -0
  1358. package/plugins/eslint/node_modules/lodash/lang/lte.js +25 -0
  1359. package/plugins/eslint/node_modules/lodash/lang/toArray.js +32 -0
  1360. package/plugins/eslint/node_modules/lodash/lang/toPlainObject.js +31 -0
  1361. package/plugins/eslint/node_modules/lodash/lang.js +32 -0
  1362. package/plugins/eslint/node_modules/lodash/math/add.js +19 -0
  1363. package/plugins/eslint/node_modules/lodash/math/ceil.js +25 -0
  1364. package/plugins/eslint/node_modules/lodash/math/floor.js +25 -0
  1365. package/plugins/eslint/node_modules/lodash/math/max.js +56 -0
  1366. package/plugins/eslint/node_modules/lodash/math/min.js +56 -0
  1367. package/plugins/eslint/node_modules/lodash/math/round.js +25 -0
  1368. package/plugins/eslint/node_modules/lodash/math/sum.js +50 -0
  1369. package/plugins/eslint/node_modules/lodash/math.js +9 -0
  1370. package/plugins/eslint/node_modules/lodash/number/inRange.js +47 -0
  1371. package/plugins/eslint/node_modules/lodash/number/random.js +70 -0
  1372. package/plugins/eslint/node_modules/lodash/number.js +4 -0
  1373. package/plugins/eslint/node_modules/lodash/object/assign.js +43 -0
  1374. package/plugins/eslint/node_modules/lodash/object/create.js +47 -0
  1375. package/plugins/eslint/node_modules/lodash/object/defaults.js +25 -0
  1376. package/plugins/eslint/node_modules/lodash/object/defaultsDeep.js +25 -0
  1377. package/plugins/eslint/node_modules/lodash/object/extend.js +1 -0
  1378. package/plugins/eslint/node_modules/lodash/object/findKey.js +54 -0
  1379. package/plugins/eslint/node_modules/lodash/object/findLastKey.js +54 -0
  1380. package/plugins/eslint/node_modules/lodash/object/forIn.js +33 -0
  1381. package/plugins/eslint/node_modules/lodash/object/forInRight.js +31 -0
  1382. package/plugins/eslint/node_modules/lodash/object/forOwn.js +33 -0
  1383. package/plugins/eslint/node_modules/lodash/object/forOwnRight.js +31 -0
  1384. package/plugins/eslint/node_modules/lodash/object/functions.js +23 -0
  1385. package/plugins/eslint/node_modules/lodash/object/get.js +33 -0
  1386. package/plugins/eslint/node_modules/lodash/object/has.js +57 -0
  1387. package/plugins/eslint/node_modules/lodash/object/invert.js +60 -0
  1388. package/plugins/eslint/node_modules/lodash/object/keys.js +45 -0
  1389. package/plugins/eslint/node_modules/lodash/object/keysIn.js +64 -0
  1390. package/plugins/eslint/node_modules/lodash/object/mapKeys.js +25 -0
  1391. package/plugins/eslint/node_modules/lodash/object/mapValues.js +46 -0
  1392. package/plugins/eslint/node_modules/lodash/object/merge.js +54 -0
  1393. package/plugins/eslint/node_modules/lodash/object/methods.js +1 -0
  1394. package/plugins/eslint/node_modules/lodash/object/omit.js +47 -0
  1395. package/plugins/eslint/node_modules/lodash/object/pairs.js +33 -0
  1396. package/plugins/eslint/node_modules/lodash/object/pick.js +42 -0
  1397. package/plugins/eslint/node_modules/lodash/object/result.js +49 -0
  1398. package/plugins/eslint/node_modules/lodash/object/set.js +55 -0
  1399. package/plugins/eslint/node_modules/lodash/object/transform.js +61 -0
  1400. package/plugins/eslint/node_modules/lodash/object/values.js +33 -0
  1401. package/plugins/eslint/node_modules/lodash/object/valuesIn.js +31 -0
  1402. package/plugins/eslint/node_modules/lodash/object.js +31 -0
  1403. package/plugins/eslint/node_modules/lodash/package.json +20 -0
  1404. package/plugins/eslint/node_modules/lodash/string/camelCase.js +27 -0
  1405. package/plugins/eslint/node_modules/lodash/string/capitalize.js +21 -0
  1406. package/plugins/eslint/node_modules/lodash/string/deburr.js +29 -0
  1407. package/plugins/eslint/node_modules/lodash/string/endsWith.js +40 -0
  1408. package/plugins/eslint/node_modules/lodash/string/escape.js +48 -0
  1409. package/plugins/eslint/node_modules/lodash/string/escapeRegExp.js +32 -0
  1410. package/plugins/eslint/node_modules/lodash/string/kebabCase.js +26 -0
  1411. package/plugins/eslint/node_modules/lodash/string/pad.js +47 -0
  1412. package/plugins/eslint/node_modules/lodash/string/padLeft.js +27 -0
  1413. package/plugins/eslint/node_modules/lodash/string/padRight.js +27 -0
  1414. package/plugins/eslint/node_modules/lodash/string/parseInt.js +46 -0
  1415. package/plugins/eslint/node_modules/lodash/string/repeat.js +47 -0
  1416. package/plugins/eslint/node_modules/lodash/string/snakeCase.js +26 -0
  1417. package/plugins/eslint/node_modules/lodash/string/startCase.js +26 -0
  1418. package/plugins/eslint/node_modules/lodash/string/startsWith.js +36 -0
  1419. package/plugins/eslint/node_modules/lodash/string/template.js +226 -0
  1420. package/plugins/eslint/node_modules/lodash/string/templateSettings.js +67 -0
  1421. package/plugins/eslint/node_modules/lodash/string/trim.js +42 -0
  1422. package/plugins/eslint/node_modules/lodash/string/trimLeft.js +36 -0
  1423. package/plugins/eslint/node_modules/lodash/string/trimRight.js +36 -0
  1424. package/plugins/eslint/node_modules/lodash/string/trunc.js +105 -0
  1425. package/plugins/eslint/node_modules/lodash/string/unescape.js +33 -0
  1426. package/plugins/eslint/node_modules/lodash/string/words.js +38 -0
  1427. package/plugins/eslint/node_modules/lodash/string.js +25 -0
  1428. package/plugins/eslint/node_modules/lodash/support.js +10 -0
  1429. package/plugins/eslint/node_modules/lodash/utility/attempt.js +32 -0
  1430. package/plugins/eslint/node_modules/lodash/utility/callback.js +53 -0
  1431. package/plugins/eslint/node_modules/lodash/utility/constant.js +23 -0
  1432. package/plugins/eslint/node_modules/lodash/utility/identity.js +20 -0
  1433. package/plugins/eslint/node_modules/lodash/utility/iteratee.js +1 -0
  1434. package/plugins/eslint/node_modules/lodash/utility/matches.js +33 -0
  1435. package/plugins/eslint/node_modules/lodash/utility/matchesProperty.js +32 -0
  1436. package/plugins/eslint/node_modules/lodash/utility/method.js +33 -0
  1437. package/plugins/eslint/node_modules/lodash/utility/methodOf.js +32 -0
  1438. package/plugins/eslint/node_modules/lodash/utility/mixin.js +82 -0
  1439. package/plugins/eslint/node_modules/lodash/utility/noop.js +19 -0
  1440. package/plugins/eslint/node_modules/lodash/utility/property.js +31 -0
  1441. package/plugins/eslint/node_modules/lodash/utility/propertyOf.js +30 -0
  1442. package/plugins/eslint/node_modules/lodash/utility/range.js +66 -0
  1443. package/plugins/eslint/node_modules/lodash/utility/times.js +60 -0
  1444. package/plugins/eslint/node_modules/lodash/utility/uniqueId.js +27 -0
  1445. package/plugins/eslint/node_modules/lodash/utility.js +18 -0
  1446. package/plugins/eslint/node_modules/lodash.clonedeep/LICENSE +22 -0
  1447. package/plugins/eslint/node_modules/lodash.clonedeep/README.md +20 -0
  1448. package/plugins/eslint/node_modules/lodash.clonedeep/index.js +63 -0
  1449. package/plugins/eslint/node_modules/lodash.clonedeep/package.json +23 -0
  1450. package/plugins/eslint/node_modules/lodash.isplainobject/LICENSE +22 -0
  1451. package/plugins/eslint/node_modules/lodash.isplainobject/README.md +20 -0
  1452. package/plugins/eslint/node_modules/lodash.isplainobject/index.js +103 -0
  1453. package/plugins/eslint/node_modules/lodash.isplainobject/package.json +24 -0
  1454. package/plugins/eslint/node_modules/lodash.keys/LICENSE +22 -0
  1455. package/plugins/eslint/node_modules/lodash.keys/README.md +20 -0
  1456. package/plugins/eslint/node_modules/lodash.keys/index.js +236 -0
  1457. package/plugins/eslint/node_modules/lodash.keys/package.json +24 -0
  1458. package/plugins/eslint/node_modules/lodash.merge/LICENSE +22 -0
  1459. package/plugins/eslint/node_modules/lodash.merge/README.md +20 -0
  1460. package/plugins/eslint/node_modules/lodash.merge/index.js +266 -0
  1461. package/plugins/eslint/node_modules/lodash.merge/package.json +32 -0
  1462. package/plugins/eslint/node_modules/log-driver/.travis.yml +6 -0
  1463. package/plugins/eslint/node_modules/log-driver/Makefile +20 -0
  1464. package/plugins/eslint/node_modules/log-driver/README.md +99 -0
  1465. package/plugins/eslint/node_modules/log-driver/coverage/coverage.json +1 -0
  1466. package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/index.html +350 -0
  1467. package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/logdriver/index.html +350 -0
  1468. package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/logdriver/index.js.html +502 -0
  1469. package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/prettify.css +1 -0
  1470. package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/prettify.js +1 -0
  1471. package/plugins/eslint/node_modules/log-driver/coverage/lcov.info +77 -0
  1472. package/plugins/eslint/node_modules/log-driver/index.js +60 -0
  1473. package/plugins/eslint/node_modules/log-driver/package.json +40 -0
  1474. package/plugins/eslint/node_modules/lolex/.min-wd +13 -0
  1475. package/plugins/eslint/node_modules/lolex/LICENSE +27 -0
  1476. package/plugins/eslint/node_modules/lolex/Readme.md +161 -0
  1477. package/plugins/eslint/node_modules/lolex/lolex.js +428 -0
  1478. package/plugins/eslint/node_modules/lolex/package.json +35 -0
  1479. package/plugins/eslint/node_modules/lolex/src/lolex.js +422 -0
  1480. package/plugins/eslint/node_modules/lolex/test/lolex-test.js +1089 -0
  1481. package/plugins/eslint/node_modules/lru-cache/.travis.yml +8 -0
  1482. package/plugins/eslint/node_modules/lru-cache/CONTRIBUTORS +14 -0
  1483. package/plugins/eslint/node_modules/lru-cache/LICENSE +15 -0
  1484. package/plugins/eslint/node_modules/lru-cache/README.md +137 -0
  1485. package/plugins/eslint/node_modules/lru-cache/lib/lru-cache.js +334 -0
  1486. package/plugins/eslint/node_modules/lru-cache/package.json +21 -0
  1487. package/plugins/eslint/node_modules/lru-cache/test/basic.js +396 -0
  1488. package/plugins/eslint/node_modules/lru-cache/test/foreach.js +120 -0
  1489. package/plugins/eslint/node_modules/lru-cache/test/memory-leak.js +51 -0
  1490. package/plugins/eslint/node_modules/lru-cache/test/serialize.js +216 -0
  1491. package/plugins/eslint/node_modules/meow/index.js +82 -0
  1492. package/plugins/eslint/node_modules/meow/license +21 -0
  1493. package/plugins/eslint/node_modules/meow/node_modules/object-assign/index.js +90 -0
  1494. package/plugins/eslint/node_modules/meow/node_modules/object-assign/license +21 -0
  1495. package/plugins/eslint/node_modules/meow/node_modules/object-assign/package.json +42 -0
  1496. package/plugins/eslint/node_modules/meow/node_modules/object-assign/readme.md +61 -0
  1497. package/plugins/eslint/node_modules/meow/package.json +58 -0
  1498. package/plugins/eslint/node_modules/meow/readme.md +159 -0
  1499. package/plugins/eslint/node_modules/mime/LICENSE +19 -0
  1500. package/plugins/eslint/node_modules/mime/README.md +66 -0
  1501. package/plugins/eslint/node_modules/mime/mime.js +114 -0
  1502. package/plugins/eslint/node_modules/mime/package.json +22 -0
  1503. package/plugins/eslint/node_modules/mime/test.js +84 -0
  1504. package/plugins/eslint/node_modules/mime/types/mime.types +1588 -0
  1505. package/plugins/eslint/node_modules/mime/types/node.types +77 -0
  1506. package/plugins/eslint/node_modules/mime-types/.travis.yml +12 -0
  1507. package/plugins/eslint/node_modules/mime-types/LICENSE +22 -0
  1508. package/plugins/eslint/node_modules/mime-types/Makefile +9 -0
  1509. package/plugins/eslint/node_modules/mime-types/README.md +101 -0
  1510. package/plugins/eslint/node_modules/mime-types/SOURCES.md +17 -0
  1511. package/plugins/eslint/node_modules/mime-types/component.json +16 -0
  1512. package/plugins/eslint/node_modules/mime-types/lib/custom.json +27 -0
  1513. package/plugins/eslint/node_modules/mime-types/lib/index.js +75 -0
  1514. package/plugins/eslint/node_modules/mime-types/lib/mime.json +3317 -0
  1515. package/plugins/eslint/node_modules/mime-types/lib/node.json +55 -0
  1516. package/plugins/eslint/node_modules/mime-types/package.json +34 -0
  1517. package/plugins/eslint/node_modules/minimatch/LICENSE +15 -0
  1518. package/plugins/eslint/node_modules/minimatch/README.md +216 -0
  1519. package/plugins/eslint/node_modules/minimatch/browser.js +1159 -0
  1520. package/plugins/eslint/node_modules/minimatch/minimatch.js +912 -0
  1521. package/plugins/eslint/node_modules/minimatch/package.json +32 -0
  1522. package/plugins/eslint/node_modules/mkdirp/LICENSE +21 -0
  1523. package/plugins/eslint/node_modules/mkdirp/index.js +99 -0
  1524. package/plugins/eslint/node_modules/mkdirp/package.json +34 -0
  1525. package/plugins/eslint/node_modules/mkdirp/readme.markdown +100 -0
  1526. package/plugins/eslint/node_modules/mocha/CHANGELOG.md +1262 -0
  1527. package/plugins/eslint/node_modules/mocha/LICENSE +22 -0
  1528. package/plugins/eslint/node_modules/mocha/images/error.png +0 -0
  1529. package/plugins/eslint/node_modules/mocha/images/ok.png +0 -0
  1530. package/plugins/eslint/node_modules/mocha/index.js +3 -0
  1531. package/plugins/eslint/node_modules/mocha/lib/browser/debug.js +4 -0
  1532. package/plugins/eslint/node_modules/mocha/lib/browser/events.js +193 -0
  1533. package/plugins/eslint/node_modules/mocha/lib/browser/progress.js +117 -0
  1534. package/plugins/eslint/node_modules/mocha/lib/browser/tty.js +11 -0
  1535. package/plugins/eslint/node_modules/mocha/lib/context.js +104 -0
  1536. package/plugins/eslint/node_modules/mocha/lib/hook.js +46 -0
  1537. package/plugins/eslint/node_modules/mocha/lib/interfaces/bdd.js +117 -0
  1538. package/plugins/eslint/node_modules/mocha/lib/interfaces/common.js +85 -0
  1539. package/plugins/eslint/node_modules/mocha/lib/interfaces/exports.js +61 -0
  1540. package/plugins/eslint/node_modules/mocha/lib/interfaces/index.js +4 -0
  1541. package/plugins/eslint/node_modules/mocha/lib/interfaces/qunit.js +94 -0
  1542. package/plugins/eslint/node_modules/mocha/lib/interfaces/tdd.js +106 -0
  1543. package/plugins/eslint/node_modules/mocha/lib/mocha.js +503 -0
  1544. package/plugins/eslint/node_modules/mocha/lib/ms.js +128 -0
  1545. package/plugins/eslint/node_modules/mocha/lib/pending.js +15 -0
  1546. package/plugins/eslint/node_modules/mocha/lib/reporters/base.js +487 -0
  1547. package/plugins/eslint/node_modules/mocha/lib/reporters/doc.js +62 -0
  1548. package/plugins/eslint/node_modules/mocha/lib/reporters/dot.js +66 -0
  1549. package/plugins/eslint/node_modules/mocha/lib/reporters/html-cov.js +56 -0
  1550. package/plugins/eslint/node_modules/mocha/lib/reporters/html.js +343 -0
  1551. package/plugins/eslint/node_modules/mocha/lib/reporters/index.js +19 -0
  1552. package/plugins/eslint/node_modules/mocha/lib/reporters/json-cov.js +151 -0
  1553. package/plugins/eslint/node_modules/mocha/lib/reporters/json-stream.js +60 -0
  1554. package/plugins/eslint/node_modules/mocha/lib/reporters/json.js +90 -0
  1555. package/plugins/eslint/node_modules/mocha/lib/reporters/landing.js +92 -0
  1556. package/plugins/eslint/node_modules/mocha/lib/reporters/list.js +61 -0
  1557. package/plugins/eslint/node_modules/mocha/lib/reporters/markdown.js +97 -0
  1558. package/plugins/eslint/node_modules/mocha/lib/reporters/min.js +36 -0
  1559. package/plugins/eslint/node_modules/mocha/lib/reporters/nyan.js +261 -0
  1560. package/plugins/eslint/node_modules/mocha/lib/reporters/progress.js +89 -0
  1561. package/plugins/eslint/node_modules/mocha/lib/reporters/spec.js +83 -0
  1562. package/plugins/eslint/node_modules/mocha/lib/reporters/tap.js +68 -0
  1563. package/plugins/eslint/node_modules/mocha/lib/reporters/templates/coverage.jade +51 -0
  1564. package/plugins/eslint/node_modules/mocha/lib/reporters/templates/menu.jade +13 -0
  1565. package/plugins/eslint/node_modules/mocha/lib/reporters/templates/script.html +34 -0
  1566. package/plugins/eslint/node_modules/mocha/lib/reporters/templates/style.html +324 -0
  1567. package/plugins/eslint/node_modules/mocha/lib/reporters/xunit.js +166 -0
  1568. package/plugins/eslint/node_modules/mocha/lib/runnable.js +363 -0
  1569. package/plugins/eslint/node_modules/mocha/lib/runner.js +894 -0
  1570. package/plugins/eslint/node_modules/mocha/lib/suite.js +395 -0
  1571. package/plugins/eslint/node_modules/mocha/lib/template.html +18 -0
  1572. package/plugins/eslint/node_modules/mocha/lib/test.js +44 -0
  1573. package/plugins/eslint/node_modules/mocha/lib/utils.js +750 -0
  1574. package/plugins/eslint/node_modules/mocha/mocha.css +314 -0
  1575. package/plugins/eslint/node_modules/mocha/mocha.js +13149 -0
  1576. package/plugins/eslint/node_modules/mocha/node_modules/escape-string-regexp/index.js +11 -0
  1577. package/plugins/eslint/node_modules/mocha/node_modules/escape-string-regexp/package.json +36 -0
  1578. package/plugins/eslint/node_modules/mocha/node_modules/escape-string-regexp/readme.md +27 -0
  1579. package/plugins/eslint/node_modules/mocha/node_modules/minimist/.travis.yml +4 -0
  1580. package/plugins/eslint/node_modules/mocha/node_modules/minimist/LICENSE +18 -0
  1581. package/plugins/eslint/node_modules/mocha/node_modules/minimist/example/parse.js +2 -0
  1582. package/plugins/eslint/node_modules/mocha/node_modules/minimist/index.js +187 -0
  1583. package/plugins/eslint/node_modules/mocha/node_modules/minimist/package.json +40 -0
  1584. package/plugins/eslint/node_modules/mocha/node_modules/minimist/readme.markdown +73 -0
  1585. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/dash.js +24 -0
  1586. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/default_bool.js +20 -0
  1587. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/dotted.js +16 -0
  1588. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/long.js +31 -0
  1589. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/parse.js +318 -0
  1590. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/parse_modified.js +9 -0
  1591. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/short.js +67 -0
  1592. package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/whitespace.js +8 -0
  1593. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/.travis.yml +8 -0
  1594. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/LICENSE +21 -0
  1595. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/examples/pow.js +6 -0
  1596. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/index.js +98 -0
  1597. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/package.json +27 -0
  1598. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/readme.markdown +100 -0
  1599. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/chmod.js +41 -0
  1600. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/clobber.js +38 -0
  1601. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/mkdirp.js +28 -0
  1602. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/opts_fs.js +29 -0
  1603. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/opts_fs_sync.js +27 -0
  1604. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/perm.js +32 -0
  1605. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/perm_sync.js +36 -0
  1606. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/race.js +37 -0
  1607. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/rel.js +32 -0
  1608. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/return.js +25 -0
  1609. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/return_sync.js +24 -0
  1610. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/root.js +19 -0
  1611. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/sync.js +32 -0
  1612. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/umask.js +28 -0
  1613. package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/umask_sync.js +32 -0
  1614. package/plugins/eslint/node_modules/mocha/node_modules/supports-color/cli.js +29 -0
  1615. package/plugins/eslint/node_modules/mocha/node_modules/supports-color/index.js +39 -0
  1616. package/plugins/eslint/node_modules/mocha/node_modules/supports-color/package.json +51 -0
  1617. package/plugins/eslint/node_modules/mocha/node_modules/supports-color/readme.md +44 -0
  1618. package/plugins/eslint/node_modules/mocha/package.json +374 -0
  1619. package/plugins/eslint/node_modules/ms/LICENSE +20 -0
  1620. package/plugins/eslint/node_modules/ms/README.md +35 -0
  1621. package/plugins/eslint/node_modules/ms/index.js +125 -0
  1622. package/plugins/eslint/node_modules/ms/package.json +20 -0
  1623. package/plugins/eslint/node_modules/oauth-sign/LICENSE +55 -0
  1624. package/plugins/eslint/node_modules/oauth-sign/README.md +4 -0
  1625. package/plugins/eslint/node_modules/oauth-sign/index.js +43 -0
  1626. package/plugins/eslint/node_modules/oauth-sign/package.json +19 -0
  1627. package/plugins/eslint/node_modules/oauth-sign/test.js +49 -0
  1628. package/plugins/eslint/node_modules/object-assign/index.js +26 -0
  1629. package/plugins/eslint/node_modules/object-assign/license +21 -0
  1630. package/plugins/eslint/node_modules/object-assign/package.json +38 -0
  1631. package/plugins/eslint/node_modules/object-assign/readme.md +51 -0
  1632. package/plugins/eslint/node_modules/optionator/LICENSE +22 -0
  1633. package/plugins/eslint/node_modules/optionator/README.md +200 -0
  1634. package/plugins/eslint/node_modules/optionator/lib/coerce.js +367 -0
  1635. package/plugins/eslint/node_modules/optionator/lib/help.js +242 -0
  1636. package/plugins/eslint/node_modules/optionator/lib/index.js +417 -0
  1637. package/plugins/eslint/node_modules/optionator/lib/parse-type.js +143 -0
  1638. package/plugins/eslint/node_modules/optionator/lib/util.js +46 -0
  1639. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/LICENSE +18 -0
  1640. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/README.markdown +70 -0
  1641. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/example/center.js +10 -0
  1642. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/example/meat.js +3 -0
  1643. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/index.js +76 -0
  1644. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/package.json +37 -0
  1645. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/test/break.js +30 -0
  1646. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/test/idleness.txt +63 -0
  1647. package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/test/wrap.js +31 -0
  1648. package/plugins/eslint/node_modules/optionator/package.json +44 -0
  1649. package/plugins/eslint/node_modules/prelude-ls/CHANGELOG.md +99 -0
  1650. package/plugins/eslint/node_modules/prelude-ls/LICENSE +22 -0
  1651. package/plugins/eslint/node_modules/prelude-ls/README.md +15 -0
  1652. package/plugins/eslint/node_modules/prelude-ls/lib/Func.js +65 -0
  1653. package/plugins/eslint/node_modules/prelude-ls/lib/List.js +686 -0
  1654. package/plugins/eslint/node_modules/prelude-ls/lib/Num.js +130 -0
  1655. package/plugins/eslint/node_modules/prelude-ls/lib/Obj.js +154 -0
  1656. package/plugins/eslint/node_modules/prelude-ls/lib/Str.js +92 -0
  1657. package/plugins/eslint/node_modules/prelude-ls/lib/index.js +178 -0
  1658. package/plugins/eslint/node_modules/prelude-ls/package.json +52 -0
  1659. package/plugins/eslint/node_modules/qs/.jshintignore +1 -0
  1660. package/plugins/eslint/node_modules/qs/.jshintrc +10 -0
  1661. package/plugins/eslint/node_modules/qs/.travis.yml +4 -0
  1662. package/plugins/eslint/node_modules/qs/LICENSE +28 -0
  1663. package/plugins/eslint/node_modules/qs/Makefile +8 -0
  1664. package/plugins/eslint/node_modules/qs/README.md +120 -0
  1665. package/plugins/eslint/node_modules/qs/index.js +1 -0
  1666. package/plugins/eslint/node_modules/qs/lib/index.js +15 -0
  1667. package/plugins/eslint/node_modules/qs/lib/parse.js +151 -0
  1668. package/plugins/eslint/node_modules/qs/lib/stringify.js +52 -0
  1669. package/plugins/eslint/node_modules/qs/lib/utils.js +131 -0
  1670. package/plugins/eslint/node_modules/qs/package.json +29 -0
  1671. package/plugins/eslint/node_modules/qs/test/parse.js +236 -0
  1672. package/plugins/eslint/node_modules/qs/test/stringify.js +123 -0
  1673. package/plugins/eslint/node_modules/redent/index.js +7 -0
  1674. package/plugins/eslint/node_modules/redent/license +21 -0
  1675. package/plugins/eslint/node_modules/redent/package.json +43 -0
  1676. package/plugins/eslint/node_modules/redent/readme.md +48 -0
  1677. package/plugins/eslint/node_modules/request/.travis.yml +12 -0
  1678. package/plugins/eslint/node_modules/request/CHANGELOG.md +954 -0
  1679. package/plugins/eslint/node_modules/request/LICENSE +55 -0
  1680. package/plugins/eslint/node_modules/request/README.md +421 -0
  1681. package/plugins/eslint/node_modules/request/index.js +166 -0
  1682. package/plugins/eslint/node_modules/request/lib/cookies.js +40 -0
  1683. package/plugins/eslint/node_modules/request/lib/copy.js +8 -0
  1684. package/plugins/eslint/node_modules/request/lib/debug.js +7 -0
  1685. package/plugins/eslint/node_modules/request/lib/getSafe.js +34 -0
  1686. package/plugins/eslint/node_modules/request/lib/optional.js +5 -0
  1687. package/plugins/eslint/node_modules/request/package.json +44 -0
  1688. package/plugins/eslint/node_modules/request/request.js +1428 -0
  1689. package/plugins/eslint/node_modules/resolve/.travis.yml +4 -0
  1690. package/plugins/eslint/node_modules/resolve/LICENSE +18 -0
  1691. package/plugins/eslint/node_modules/resolve/example/async.js +5 -0
  1692. package/plugins/eslint/node_modules/resolve/example/sync.js +3 -0
  1693. package/plugins/eslint/node_modules/resolve/index.js +5 -0
  1694. package/plugins/eslint/node_modules/resolve/lib/async.js +192 -0
  1695. package/plugins/eslint/node_modules/resolve/lib/caller.js +8 -0
  1696. package/plugins/eslint/node_modules/resolve/lib/core.js +4 -0
  1697. package/plugins/eslint/node_modules/resolve/lib/core.json +38 -0
  1698. package/plugins/eslint/node_modules/resolve/lib/node-modules-paths.js +38 -0
  1699. package/plugins/eslint/node_modules/resolve/lib/sync.js +81 -0
  1700. package/plugins/eslint/node_modules/resolve/package.json +29 -0
  1701. package/plugins/eslint/node_modules/resolve/readme.markdown +148 -0
  1702. package/plugins/eslint/node_modules/resolve/test/core.js +12 -0
  1703. package/plugins/eslint/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  1704. package/plugins/eslint/node_modules/resolve/test/dotdot/index.js +1 -0
  1705. package/plugins/eslint/node_modules/resolve/test/dotdot.js +29 -0
  1706. package/plugins/eslint/node_modules/resolve/test/faulty_basedir.js +17 -0
  1707. package/plugins/eslint/node_modules/resolve/test/filter.js +18 -0
  1708. package/plugins/eslint/node_modules/resolve/test/filter_sync.js +15 -0
  1709. package/plugins/eslint/node_modules/resolve/test/mock.js +142 -0
  1710. package/plugins/eslint/node_modules/resolve/test/mock_sync.js +68 -0
  1711. package/plugins/eslint/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  1712. package/plugins/eslint/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  1713. package/plugins/eslint/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  1714. package/plugins/eslint/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  1715. package/plugins/eslint/node_modules/resolve/test/module_dir.js +56 -0
  1716. package/plugins/eslint/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  1717. package/plugins/eslint/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  1718. package/plugins/eslint/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  1719. package/plugins/eslint/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  1720. package/plugins/eslint/node_modules/resolve/test/node_path.js +48 -0
  1721. package/plugins/eslint/node_modules/resolve/test/nonstring.js +9 -0
  1722. package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  1723. package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/alt.js +0 -0
  1724. package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/deeper/ref.js +0 -0
  1725. package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/package.json +4 -0
  1726. package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/ref.js +0 -0
  1727. package/plugins/eslint/node_modules/resolve/test/pathfilter.js +35 -0
  1728. package/plugins/eslint/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  1729. package/plugins/eslint/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  1730. package/plugins/eslint/node_modules/resolve/test/precedence/aaa.js +1 -0
  1731. package/plugins/eslint/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  1732. package/plugins/eslint/node_modules/resolve/test/precedence/bbb.js +1 -0
  1733. package/plugins/eslint/node_modules/resolve/test/precedence.js +23 -0
  1734. package/plugins/eslint/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  1735. package/plugins/eslint/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  1736. package/plugins/eslint/node_modules/resolve/test/resolver/baz/package.json +3 -0
  1737. package/plugins/eslint/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  1738. package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +1 -0
  1739. package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +3 -0
  1740. package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  1741. package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  1742. package/plugins/eslint/node_modules/resolve/test/resolver/cup.coffee +1 -0
  1743. package/plugins/eslint/node_modules/resolve/test/resolver/foo.js +1 -0
  1744. package/plugins/eslint/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  1745. package/plugins/eslint/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  1746. package/plugins/eslint/node_modules/resolve/test/resolver/mug.coffee +0 -0
  1747. package/plugins/eslint/node_modules/resolve/test/resolver/mug.js +0 -0
  1748. package/plugins/eslint/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  1749. package/plugins/eslint/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  1750. package/plugins/eslint/node_modules/resolve/test/resolver/punycode/node_modules/punycode/index.js +0 -0
  1751. package/plugins/eslint/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  1752. package/plugins/eslint/node_modules/resolve/test/resolver/without_basedir/main.js +6 -0
  1753. package/plugins/eslint/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +1 -0
  1754. package/plugins/eslint/node_modules/resolve/test/resolver.js +281 -0
  1755. package/plugins/eslint/node_modules/resolve/test/resolver_sync.js +180 -0
  1756. package/plugins/eslint/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json +1 -0
  1757. package/plugins/eslint/node_modules/resolve/test/subdirs/node_modules/a/package.json +1 -0
  1758. package/plugins/eslint/node_modules/resolve/test/subdirs.js +13 -0
  1759. package/plugins/eslint/node_modules/semver/.travis.yml +5 -0
  1760. package/plugins/eslint/node_modules/semver/LICENSE +15 -0
  1761. package/plugins/eslint/node_modules/semver/Makefile +24 -0
  1762. package/plugins/eslint/node_modules/semver/README.md +303 -0
  1763. package/plugins/eslint/node_modules/semver/foot.js.txt +6 -0
  1764. package/plugins/eslint/node_modules/semver/head.js.txt +2 -0
  1765. package/plugins/eslint/node_modules/semver/package.json +21 -0
  1766. package/plugins/eslint/node_modules/semver/semver.browser.js +1201 -0
  1767. package/plugins/eslint/node_modules/semver/semver.browser.js.gz +0 -0
  1768. package/plugins/eslint/node_modules/semver/semver.js +1205 -0
  1769. package/plugins/eslint/node_modules/semver/semver.min.js +1 -0
  1770. package/plugins/eslint/node_modules/semver/semver.min.js.gz +0 -0
  1771. package/plugins/eslint/node_modules/semver/test/amd.js +15 -0
  1772. package/plugins/eslint/node_modules/semver/test/big-numbers.js +31 -0
  1773. package/plugins/eslint/node_modules/semver/test/clean.js +29 -0
  1774. package/plugins/eslint/node_modules/semver/test/gtr.js +173 -0
  1775. package/plugins/eslint/node_modules/semver/test/index.js +685 -0
  1776. package/plugins/eslint/node_modules/semver/test/ltr.js +181 -0
  1777. package/plugins/eslint/node_modules/semver/test/major-minor-patch.js +72 -0
  1778. package/plugins/eslint/node_modules/semver/test/no-module.js +19 -0
  1779. package/plugins/eslint/node_modules/shelljs/.documentup.json +6 -0
  1780. package/plugins/eslint/node_modules/shelljs/.jshintrc +7 -0
  1781. package/plugins/eslint/node_modules/shelljs/.travis.yml +5 -0
  1782. package/plugins/eslint/node_modules/shelljs/LICENSE +26 -0
  1783. package/plugins/eslint/node_modules/shelljs/README.md +569 -0
  1784. package/plugins/eslint/node_modules/shelljs/global.js +3 -0
  1785. package/plugins/eslint/node_modules/shelljs/make.js +47 -0
  1786. package/plugins/eslint/node_modules/shelljs/package.json +35 -0
  1787. package/plugins/eslint/node_modules/shelljs/scripts/generate-docs.js +21 -0
  1788. package/plugins/eslint/node_modules/shelljs/scripts/run-tests.js +50 -0
  1789. package/plugins/eslint/node_modules/shelljs/shell.js +157 -0
  1790. package/plugins/eslint/node_modules/shelljs/src/cat.js +43 -0
  1791. package/plugins/eslint/node_modules/shelljs/src/cd.js +19 -0
  1792. package/plugins/eslint/node_modules/shelljs/src/chmod.js +208 -0
  1793. package/plugins/eslint/node_modules/shelljs/src/common.js +203 -0
  1794. package/plugins/eslint/node_modules/shelljs/src/cp.js +201 -0
  1795. package/plugins/eslint/node_modules/shelljs/src/dirs.js +191 -0
  1796. package/plugins/eslint/node_modules/shelljs/src/echo.js +20 -0
  1797. package/plugins/eslint/node_modules/shelljs/src/error.js +10 -0
  1798. package/plugins/eslint/node_modules/shelljs/src/exec.js +181 -0
  1799. package/plugins/eslint/node_modules/shelljs/src/find.js +51 -0
  1800. package/plugins/eslint/node_modules/shelljs/src/grep.js +52 -0
  1801. package/plugins/eslint/node_modules/shelljs/src/ln.js +53 -0
  1802. package/plugins/eslint/node_modules/shelljs/src/ls.js +126 -0
  1803. package/plugins/eslint/node_modules/shelljs/src/mkdir.js +68 -0
  1804. package/plugins/eslint/node_modules/shelljs/src/mv.js +80 -0
  1805. package/plugins/eslint/node_modules/shelljs/src/popd.js +1 -0
  1806. package/plugins/eslint/node_modules/shelljs/src/pushd.js +1 -0
  1807. package/plugins/eslint/node_modules/shelljs/src/pwd.js +11 -0
  1808. package/plugins/eslint/node_modules/shelljs/src/rm.js +145 -0
  1809. package/plugins/eslint/node_modules/shelljs/src/sed.js +43 -0
  1810. package/plugins/eslint/node_modules/shelljs/src/tempdir.js +56 -0
  1811. package/plugins/eslint/node_modules/shelljs/src/test.js +85 -0
  1812. package/plugins/eslint/node_modules/shelljs/src/to.js +29 -0
  1813. package/plugins/eslint/node_modules/shelljs/src/toEnd.js +29 -0
  1814. package/plugins/eslint/node_modules/shelljs/src/which.js +83 -0
  1815. package/plugins/eslint/node_modules/sinon/.editorconfig +17 -0
  1816. package/plugins/eslint/node_modules/sinon/.jscsrc +13 -0
  1817. package/plugins/eslint/node_modules/sinon/CONTRIBUTING.md +124 -0
  1818. package/plugins/eslint/node_modules/sinon/GPATH +0 -0
  1819. package/plugins/eslint/node_modules/sinon/GRTAGS +0 -0
  1820. package/plugins/eslint/node_modules/sinon/GSYMS +0 -0
  1821. package/plugins/eslint/node_modules/sinon/GTAGS +0 -0
  1822. package/plugins/eslint/node_modules/sinon/LICENSE +27 -0
  1823. package/plugins/eslint/node_modules/sinon/README.md +46 -0
  1824. package/plugins/eslint/node_modules/sinon/lib/sinon/assert.js +214 -0
  1825. package/plugins/eslint/node_modules/sinon/lib/sinon/behavior.js +359 -0
  1826. package/plugins/eslint/node_modules/sinon/lib/sinon/call.js +219 -0
  1827. package/plugins/eslint/node_modules/sinon/lib/sinon/collection.js +167 -0
  1828. package/plugins/eslint/node_modules/sinon/lib/sinon/extend.js +103 -0
  1829. package/plugins/eslint/node_modules/sinon/lib/sinon/format.js +88 -0
  1830. package/plugins/eslint/node_modules/sinon/lib/sinon/log_error.js +68 -0
  1831. package/plugins/eslint/node_modules/sinon/lib/sinon/match.js +254 -0
  1832. package/plugins/eslint/node_modules/sinon/lib/sinon/mock.js +456 -0
  1833. package/plugins/eslint/node_modules/sinon/lib/sinon/sandbox.js +162 -0
  1834. package/plugins/eslint/node_modules/sinon/lib/sinon/spy.js +454 -0
  1835. package/plugins/eslint/node_modules/sinon/lib/sinon/stub.js +180 -0
  1836. package/plugins/eslint/node_modules/sinon/lib/sinon/test.js +101 -0
  1837. package/plugins/eslint/node_modules/sinon/lib/sinon/test_case.js +103 -0
  1838. package/plugins/eslint/node_modules/sinon/lib/sinon/times_in_words.js +43 -0
  1839. package/plugins/eslint/node_modules/sinon/lib/sinon/typeOf.js +50 -0
  1840. package/plugins/eslint/node_modules/sinon/lib/sinon/util/core.js +390 -0
  1841. package/plugins/eslint/node_modules/sinon/lib/sinon/util/event.js +111 -0
  1842. package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_server.js +240 -0
  1843. package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_server_with_clock.js +101 -0
  1844. package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_timers.js +77 -0
  1845. package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_xdomain_request.js +223 -0
  1846. package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_xml_http_request.js +620 -0
  1847. package/plugins/eslint/node_modules/sinon/lib/sinon/util/timers_ie.js +30 -0
  1848. package/plugins/eslint/node_modules/sinon/lib/sinon/util/xdr_ie.js +13 -0
  1849. package/plugins/eslint/node_modules/sinon/lib/sinon/util/xhr_ie.js +18 -0
  1850. package/plugins/eslint/node_modules/sinon/lib/sinon.js +46 -0
  1851. package/plugins/eslint/node_modules/sinon/package.json +44 -0
  1852. package/plugins/eslint/node_modules/sinon/pkg/sinon-1.14.1.js +5931 -0
  1853. package/plugins/eslint/node_modules/sinon/pkg/sinon-ie-1.14.1.js +97 -0
  1854. package/plugins/eslint/node_modules/sinon/pkg/sinon-ie.js +97 -0
  1855. package/plugins/eslint/node_modules/sinon/pkg/sinon-server-1.14.1.js +2104 -0
  1856. package/plugins/eslint/node_modules/sinon/pkg/sinon-timers-1.14.1.js +111 -0
  1857. package/plugins/eslint/node_modules/sinon/pkg/sinon-timers-ie-1.14.1.js +65 -0
  1858. package/plugins/eslint/node_modules/sinon/pkg/sinon.js +5931 -0
  1859. package/plugins/eslint/node_modules/source-map/.travis.yml +4 -0
  1860. package/plugins/eslint/node_modules/source-map/CHANGELOG.md +201 -0
  1861. package/plugins/eslint/node_modules/source-map/LICENSE +28 -0
  1862. package/plugins/eslint/node_modules/source-map/Makefile.dryice.js +166 -0
  1863. package/plugins/eslint/node_modules/source-map/README.md +479 -0
  1864. package/plugins/eslint/node_modules/source-map/lib/source-map/array-set.js +97 -0
  1865. package/plugins/eslint/node_modules/source-map/lib/source-map/base64-vlq.js +142 -0
  1866. package/plugins/eslint/node_modules/source-map/lib/source-map/base64.js +42 -0
  1867. package/plugins/eslint/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +420 -0
  1868. package/plugins/eslint/node_modules/source-map/lib/source-map/binary-search.js +80 -0
  1869. package/plugins/eslint/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +303 -0
  1870. package/plugins/eslint/node_modules/source-map/lib/source-map/mapping-list.js +86 -0
  1871. package/plugins/eslint/node_modules/source-map/lib/source-map/source-map-consumer.js +222 -0
  1872. package/plugins/eslint/node_modules/source-map/lib/source-map/source-map-generator.js +400 -0
  1873. package/plugins/eslint/node_modules/source-map/lib/source-map/source-node.js +414 -0
  1874. package/plugins/eslint/node_modules/source-map/lib/source-map/util.js +319 -0
  1875. package/plugins/eslint/node_modules/source-map/lib/source-map.js +8 -0
  1876. package/plugins/eslint/node_modules/source-map/package.json +66 -0
  1877. package/plugins/eslint/node_modules/source-map/test/run-tests.js +62 -0
  1878. package/plugins/eslint/node_modules/source-map/test/source-map/test-api.js +26 -0
  1879. package/plugins/eslint/node_modules/source-map/test/source-map/test-array-set.js +104 -0
  1880. package/plugins/eslint/node_modules/source-map/test/source-map/test-base64-vlq.js +23 -0
  1881. package/plugins/eslint/node_modules/source-map/test/source-map/test-base64.js +35 -0
  1882. package/plugins/eslint/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  1883. package/plugins/eslint/node_modules/source-map/test/source-map/test-dog-fooding.js +84 -0
  1884. package/plugins/eslint/node_modules/source-map/test/source-map/test-source-map-consumer.js +874 -0
  1885. package/plugins/eslint/node_modules/source-map/test/source-map/test-source-map-generator.js +679 -0
  1886. package/plugins/eslint/node_modules/source-map/test/source-map/test-source-node.js +612 -0
  1887. package/plugins/eslint/node_modules/source-map/test/source-map/test-util.js +216 -0
  1888. package/plugins/eslint/node_modules/source-map/test/source-map/util.js +299 -0
  1889. package/plugins/eslint/node_modules/strip-ansi/index.js +6 -0
  1890. package/plugins/eslint/node_modules/strip-ansi/license +21 -0
  1891. package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
  1892. package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
  1893. package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +64 -0
  1894. package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +39 -0
  1895. package/plugins/eslint/node_modules/strip-ansi/package.json +57 -0
  1896. package/plugins/eslint/node_modules/strip-ansi/readme.md +33 -0
  1897. package/plugins/eslint/node_modules/strip-indent/cli.js +49 -0
  1898. package/plugins/eslint/node_modules/strip-indent/index.js +16 -0
  1899. package/plugins/eslint/node_modules/strip-indent/license +21 -0
  1900. package/plugins/eslint/node_modules/strip-indent/package.json +46 -0
  1901. package/plugins/eslint/node_modules/strip-indent/readme.md +61 -0
  1902. package/plugins/eslint/node_modules/strip-json-comments/cli.js +41 -0
  1903. package/plugins/eslint/node_modules/strip-json-comments/license +21 -0
  1904. package/plugins/eslint/node_modules/strip-json-comments/package.json +46 -0
  1905. package/plugins/eslint/node_modules/strip-json-comments/readme.md +80 -0
  1906. package/plugins/eslint/node_modules/strip-json-comments/strip-json-comments.js +73 -0
  1907. package/plugins/eslint/node_modules/supports-color/index.js +50 -0
  1908. package/plugins/eslint/node_modules/supports-color/license +21 -0
  1909. package/plugins/eslint/node_modules/supports-color/package.json +49 -0
  1910. package/plugins/eslint/node_modules/supports-color/readme.md +36 -0
  1911. package/plugins/eslint/node_modules/trim-newlines/index.js +13 -0
  1912. package/plugins/eslint/node_modules/trim-newlines/license +21 -0
  1913. package/plugins/eslint/node_modules/trim-newlines/package.json +42 -0
  1914. package/plugins/eslint/node_modules/trim-newlines/readme.md +46 -0
  1915. package/plugins/eslint/node_modules/tunnel-agent/LICENSE +55 -0
  1916. package/plugins/eslint/node_modules/tunnel-agent/README.md +4 -0
  1917. package/plugins/eslint/node_modules/tunnel-agent/index.js +243 -0
  1918. package/plugins/eslint/node_modules/tunnel-agent/package.json +20 -0
  1919. package/plugins/eslint/node_modules/type-check/LICENSE +22 -0
  1920. package/plugins/eslint/node_modules/type-check/README.md +210 -0
  1921. package/plugins/eslint/node_modules/type-check/lib/check.js +126 -0
  1922. package/plugins/eslint/node_modules/type-check/lib/index.js +16 -0
  1923. package/plugins/eslint/node_modules/type-check/lib/parse-type.js +196 -0
  1924. package/plugins/eslint/node_modules/type-check/package.json +40 -0
  1925. package/plugins/eslint/node_modules/type-detect/History.md +18 -0
  1926. package/plugins/eslint/node_modules/type-detect/README.md +193 -0
  1927. package/plugins/eslint/node_modules/type-detect/index.js +1 -0
  1928. package/plugins/eslint/node_modules/type-detect/lib/type.js +142 -0
  1929. package/plugins/eslint/node_modules/type-detect/package.json +31 -0
  1930. package/plugins/eslint/node_modules/underscore/LICENSE +23 -0
  1931. package/plugins/eslint/node_modules/underscore/README.md +22 -0
  1932. package/plugins/eslint/node_modules/underscore/package.json +41 -0
  1933. package/plugins/eslint/node_modules/underscore/underscore-min.js +6 -0
  1934. package/plugins/eslint/node_modules/underscore/underscore.js +1415 -0
  1935. package/plugins/eslint/node_modules/which/CHANGELOG.md +152 -0
  1936. package/plugins/eslint/node_modules/which/LICENSE +15 -0
  1937. package/plugins/eslint/node_modules/which/README.md +51 -0
  1938. package/plugins/eslint/node_modules/which/package.json +30 -0
  1939. package/plugins/eslint/node_modules/which/which.js +135 -0
  1940. package/plugins/pbjsGlobals.js +1 -1
  1941. package/src/adapterManager.js +24 -19
  1942. package/src/adapters/bidderFactory.js +155 -131
  1943. package/src/adloader.js +3 -1
  1944. package/src/auction.js +111 -123
  1945. package/src/auctionIndex.js +85 -0
  1946. package/src/auctionManager.js +3 -0
  1947. package/src/bidderSettings.js +69 -0
  1948. package/src/bidfactory.js +18 -6
  1949. package/src/debugging.js +31 -19
  1950. package/src/native.js +29 -21
  1951. package/src/secureCreatives.js +26 -12
  1952. package/src/targeting.js +11 -2
  1953. package/src/utils.js +24 -17
  1954. package/src/video.js +10 -11
  1955. package/src/videoCache.js +10 -9
  1956. package/test/fixtures/fixtures.js +2 -1
  1957. package/test/helpers/indexStub.js +28 -0
  1958. package/test/spec/auctionmanager_spec.js +145 -98
  1959. package/test/spec/config_spec.js +24 -1
  1960. package/test/spec/debugging_spec.js +29 -6
  1961. package/test/spec/modules/adnuntiusRtdProvider_spec.js +145 -0
  1962. package/test/spec/modules/adotBidAdapter_spec.js +294 -3124
  1963. package/test/spec/modules/adpod_spec.js +91 -156
  1964. package/test/spec/modules/adyoulikeBidAdapter_spec.js +15 -1
  1965. package/test/spec/modules/asealBidAdapter_spec.js +144 -0
  1966. package/test/spec/modules/automatadBidAdapter_spec.js +23 -7
  1967. package/test/spec/modules/big-richmediaBidAdapter_spec.js +310 -0
  1968. package/test/spec/modules/bizzclickBidAdapter_spec.js +16 -0
  1969. package/test/spec/modules/conversantBidAdapter_spec.js +54 -2
  1970. package/test/spec/modules/currency_spec.js +15 -9
  1971. package/test/spec/modules/debugging_mod_spec.js +451 -0
  1972. package/test/spec/modules/dspxBidAdapter_spec.js +20 -15
  1973. package/test/spec/modules/eids_spec.js +2 -2
  1974. package/test/spec/modules/fluctBidAdapter_spec.js +92 -0
  1975. package/test/spec/modules/gridBidAdapter_spec.js +44 -0
  1976. package/test/spec/modules/gumgumBidAdapter_spec.js +3 -3
  1977. package/test/spec/modules/hadronIdSystem_spec.js +57 -0
  1978. package/test/spec/modules/hadronRtdProvider_spec.js +762 -0
  1979. package/test/spec/modules/imRtdProvider_spec.js +30 -1
  1980. package/test/spec/modules/improvedigitalBidAdapter_spec.js +19 -0
  1981. package/test/spec/modules/iqzoneBidAdapter_spec.js +1 -0
  1982. package/test/spec/modules/ixBidAdapter_spec.js +75 -2
  1983. package/test/spec/modules/justIdSystem_spec.js +216 -0
  1984. package/test/spec/modules/kubientBidAdapter_spec.js +183 -87
  1985. package/test/spec/modules/lkqdBidAdapter_spec.js +323 -0
  1986. package/test/spec/modules/lunamediahbBidAdapter_spec.js +27 -1
  1987. package/test/spec/modules/mass_spec.js +2 -14
  1988. package/test/spec/modules/mediakeysBidAdapter_spec.js +9 -5
  1989. package/test/spec/modules/mediasquareBidAdapter_spec.js +25 -1
  1990. package/test/spec/modules/nexx360BidAdapter_spec.js +140 -0
  1991. package/test/spec/modules/novatiqIdSystem_spec.js +18 -0
  1992. package/test/spec/modules/oguryBidAdapter_spec.js +63 -5
  1993. package/test/spec/modules/prebidServerBidAdapter_spec.js +43 -6
  1994. package/test/spec/modules/priceFloors_spec.js +83 -24
  1995. package/test/spec/modules/pubmaticBidAdapter_spec.js +40 -0
  1996. package/test/spec/modules/riseBidAdapter_spec.js +30 -4
  1997. package/test/spec/modules/rubiconAnalyticsAdapter_spec.js +31 -1
  1998. package/test/spec/modules/rubiconBidAdapter_spec.js +1 -1
  1999. package/test/spec/modules/sortableAnalyticsAdapter_spec.js +2 -3
  2000. package/test/spec/modules/sspBCBidAdapter_spec.js +7 -7
  2001. package/test/spec/modules/telariaBidAdapter_spec.js +1 -3
  2002. package/test/spec/modules/trustpidSystem_spec.js +232 -0
  2003. package/test/spec/modules/trustxBidAdapter_spec.js +33 -0
  2004. package/test/spec/modules/userId_spec.js +39 -39
  2005. package/test/spec/modules/vibrantmediaBidAdapter_spec.js +1237 -0
  2006. package/test/spec/modules/vidazooBidAdapter_spec.js +3 -1
  2007. package/test/spec/modules/vidoomyBidAdapter_spec.js +7 -1
  2008. package/test/spec/modules/weboramaRtdProvider_spec.js +536 -20
  2009. package/test/spec/modules/yieldoneBidAdapter_spec.js +33 -0
  2010. package/test/spec/native_spec.js +62 -40
  2011. package/test/spec/unit/core/adapterManager_spec.js +22 -0
  2012. package/test/spec/unit/core/auctionIndex_spec.js +129 -0
  2013. package/test/spec/unit/core/bidderFactory_spec.js +65 -12
  2014. package/test/spec/unit/core/bidderSettings_spec.js +123 -0
  2015. package/test/spec/unit/core/targeting_spec.js +93 -0
  2016. package/test/spec/unit/pbjs_api_spec.js +63 -41
  2017. package/test/spec/unit/secureCreatives_spec.js +66 -32
  2018. package/test/spec/utils_spec.js +8 -1
  2019. package/test/spec/videoCache_spec.js +18 -19
  2020. package/test/spec/video_spec.js +51 -61
@@ -0,0 +1,3989 @@
1
+ /*! js-yaml 3.14.1 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+ 'use strict';
3
+
4
+
5
+ var loader = require('./js-yaml/loader');
6
+ var dumper = require('./js-yaml/dumper');
7
+
8
+
9
+ function deprecated(name) {
10
+ return function () {
11
+ throw new Error('Function ' + name + ' is deprecated and cannot be used.');
12
+ };
13
+ }
14
+
15
+
16
+ module.exports.Type = require('./js-yaml/type');
17
+ module.exports.Schema = require('./js-yaml/schema');
18
+ module.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');
19
+ module.exports.JSON_SCHEMA = require('./js-yaml/schema/json');
20
+ module.exports.CORE_SCHEMA = require('./js-yaml/schema/core');
21
+ module.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
22
+ module.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');
23
+ module.exports.load = loader.load;
24
+ module.exports.loadAll = loader.loadAll;
25
+ module.exports.safeLoad = loader.safeLoad;
26
+ module.exports.safeLoadAll = loader.safeLoadAll;
27
+ module.exports.dump = dumper.dump;
28
+ module.exports.safeDump = dumper.safeDump;
29
+ module.exports.YAMLException = require('./js-yaml/exception');
30
+
31
+ // Deprecated schema names from JS-YAML 2.0.x
32
+ module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');
33
+ module.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
34
+ module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');
35
+
36
+ // Deprecated functions from JS-YAML 1.x.x
37
+ module.exports.scan = deprecated('scan');
38
+ module.exports.parse = deprecated('parse');
39
+ module.exports.compose = deprecated('compose');
40
+ module.exports.addConstructor = deprecated('addConstructor');
41
+
42
+ },{"./js-yaml/dumper":3,"./js-yaml/exception":4,"./js-yaml/loader":5,"./js-yaml/schema":7,"./js-yaml/schema/core":8,"./js-yaml/schema/default_full":9,"./js-yaml/schema/default_safe":10,"./js-yaml/schema/failsafe":11,"./js-yaml/schema/json":12,"./js-yaml/type":13}],2:[function(require,module,exports){
43
+ 'use strict';
44
+
45
+
46
+ function isNothing(subject) {
47
+ return (typeof subject === 'undefined') || (subject === null);
48
+ }
49
+
50
+
51
+ function isObject(subject) {
52
+ return (typeof subject === 'object') && (subject !== null);
53
+ }
54
+
55
+
56
+ function toArray(sequence) {
57
+ if (Array.isArray(sequence)) return sequence;
58
+ else if (isNothing(sequence)) return [];
59
+
60
+ return [ sequence ];
61
+ }
62
+
63
+
64
+ function extend(target, source) {
65
+ var index, length, key, sourceKeys;
66
+
67
+ if (source) {
68
+ sourceKeys = Object.keys(source);
69
+
70
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
71
+ key = sourceKeys[index];
72
+ target[key] = source[key];
73
+ }
74
+ }
75
+
76
+ return target;
77
+ }
78
+
79
+
80
+ function repeat(string, count) {
81
+ var result = '', cycle;
82
+
83
+ for (cycle = 0; cycle < count; cycle += 1) {
84
+ result += string;
85
+ }
86
+
87
+ return result;
88
+ }
89
+
90
+
91
+ function isNegativeZero(number) {
92
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
93
+ }
94
+
95
+
96
+ module.exports.isNothing = isNothing;
97
+ module.exports.isObject = isObject;
98
+ module.exports.toArray = toArray;
99
+ module.exports.repeat = repeat;
100
+ module.exports.isNegativeZero = isNegativeZero;
101
+ module.exports.extend = extend;
102
+
103
+ },{}],3:[function(require,module,exports){
104
+ 'use strict';
105
+
106
+ /*eslint-disable no-use-before-define*/
107
+
108
+ var common = require('./common');
109
+ var YAMLException = require('./exception');
110
+ var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
111
+ var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
112
+
113
+ var _toString = Object.prototype.toString;
114
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
115
+
116
+ var CHAR_TAB = 0x09; /* Tab */
117
+ var CHAR_LINE_FEED = 0x0A; /* LF */
118
+ var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
119
+ var CHAR_SPACE = 0x20; /* Space */
120
+ var CHAR_EXCLAMATION = 0x21; /* ! */
121
+ var CHAR_DOUBLE_QUOTE = 0x22; /* " */
122
+ var CHAR_SHARP = 0x23; /* # */
123
+ var CHAR_PERCENT = 0x25; /* % */
124
+ var CHAR_AMPERSAND = 0x26; /* & */
125
+ var CHAR_SINGLE_QUOTE = 0x27; /* ' */
126
+ var CHAR_ASTERISK = 0x2A; /* * */
127
+ var CHAR_COMMA = 0x2C; /* , */
128
+ var CHAR_MINUS = 0x2D; /* - */
129
+ var CHAR_COLON = 0x3A; /* : */
130
+ var CHAR_EQUALS = 0x3D; /* = */
131
+ var CHAR_GREATER_THAN = 0x3E; /* > */
132
+ var CHAR_QUESTION = 0x3F; /* ? */
133
+ var CHAR_COMMERCIAL_AT = 0x40; /* @ */
134
+ var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
135
+ var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
136
+ var CHAR_GRAVE_ACCENT = 0x60; /* ` */
137
+ var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
138
+ var CHAR_VERTICAL_LINE = 0x7C; /* | */
139
+ var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
140
+
141
+ var ESCAPE_SEQUENCES = {};
142
+
143
+ ESCAPE_SEQUENCES[0x00] = '\\0';
144
+ ESCAPE_SEQUENCES[0x07] = '\\a';
145
+ ESCAPE_SEQUENCES[0x08] = '\\b';
146
+ ESCAPE_SEQUENCES[0x09] = '\\t';
147
+ ESCAPE_SEQUENCES[0x0A] = '\\n';
148
+ ESCAPE_SEQUENCES[0x0B] = '\\v';
149
+ ESCAPE_SEQUENCES[0x0C] = '\\f';
150
+ ESCAPE_SEQUENCES[0x0D] = '\\r';
151
+ ESCAPE_SEQUENCES[0x1B] = '\\e';
152
+ ESCAPE_SEQUENCES[0x22] = '\\"';
153
+ ESCAPE_SEQUENCES[0x5C] = '\\\\';
154
+ ESCAPE_SEQUENCES[0x85] = '\\N';
155
+ ESCAPE_SEQUENCES[0xA0] = '\\_';
156
+ ESCAPE_SEQUENCES[0x2028] = '\\L';
157
+ ESCAPE_SEQUENCES[0x2029] = '\\P';
158
+
159
+ var DEPRECATED_BOOLEANS_SYNTAX = [
160
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
161
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
162
+ ];
163
+
164
+ function compileStyleMap(schema, map) {
165
+ var result, keys, index, length, tag, style, type;
166
+
167
+ if (map === null) return {};
168
+
169
+ result = {};
170
+ keys = Object.keys(map);
171
+
172
+ for (index = 0, length = keys.length; index < length; index += 1) {
173
+ tag = keys[index];
174
+ style = String(map[tag]);
175
+
176
+ if (tag.slice(0, 2) === '!!') {
177
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
178
+ }
179
+ type = schema.compiledTypeMap['fallback'][tag];
180
+
181
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
182
+ style = type.styleAliases[style];
183
+ }
184
+
185
+ result[tag] = style;
186
+ }
187
+
188
+ return result;
189
+ }
190
+
191
+ function encodeHex(character) {
192
+ var string, handle, length;
193
+
194
+ string = character.toString(16).toUpperCase();
195
+
196
+ if (character <= 0xFF) {
197
+ handle = 'x';
198
+ length = 2;
199
+ } else if (character <= 0xFFFF) {
200
+ handle = 'u';
201
+ length = 4;
202
+ } else if (character <= 0xFFFFFFFF) {
203
+ handle = 'U';
204
+ length = 8;
205
+ } else {
206
+ throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
207
+ }
208
+
209
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
210
+ }
211
+
212
+ function State(options) {
213
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
214
+ this.indent = Math.max(1, (options['indent'] || 2));
215
+ this.noArrayIndent = options['noArrayIndent'] || false;
216
+ this.skipInvalid = options['skipInvalid'] || false;
217
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
218
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
219
+ this.sortKeys = options['sortKeys'] || false;
220
+ this.lineWidth = options['lineWidth'] || 80;
221
+ this.noRefs = options['noRefs'] || false;
222
+ this.noCompatMode = options['noCompatMode'] || false;
223
+ this.condenseFlow = options['condenseFlow'] || false;
224
+
225
+ this.implicitTypes = this.schema.compiledImplicit;
226
+ this.explicitTypes = this.schema.compiledExplicit;
227
+
228
+ this.tag = null;
229
+ this.result = '';
230
+
231
+ this.duplicates = [];
232
+ this.usedDuplicates = null;
233
+ }
234
+
235
+ // Indents every line in a string. Empty lines (\n only) are not indented.
236
+ function indentString(string, spaces) {
237
+ var ind = common.repeat(' ', spaces),
238
+ position = 0,
239
+ next = -1,
240
+ result = '',
241
+ line,
242
+ length = string.length;
243
+
244
+ while (position < length) {
245
+ next = string.indexOf('\n', position);
246
+ if (next === -1) {
247
+ line = string.slice(position);
248
+ position = length;
249
+ } else {
250
+ line = string.slice(position, next + 1);
251
+ position = next + 1;
252
+ }
253
+
254
+ if (line.length && line !== '\n') result += ind;
255
+
256
+ result += line;
257
+ }
258
+
259
+ return result;
260
+ }
261
+
262
+ function generateNextLine(state, level) {
263
+ return '\n' + common.repeat(' ', state.indent * level);
264
+ }
265
+
266
+ function testImplicitResolving(state, str) {
267
+ var index, length, type;
268
+
269
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
270
+ type = state.implicitTypes[index];
271
+
272
+ if (type.resolve(str)) {
273
+ return true;
274
+ }
275
+ }
276
+
277
+ return false;
278
+ }
279
+
280
+ // [33] s-white ::= s-space | s-tab
281
+ function isWhitespace(c) {
282
+ return c === CHAR_SPACE || c === CHAR_TAB;
283
+ }
284
+
285
+ // Returns true if the character can be printed without escaping.
286
+ // From YAML 1.2: "any allowed characters known to be non-printable
287
+ // should also be escaped. [However,] This isn’t mandatory"
288
+ // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
289
+ function isPrintable(c) {
290
+ return (0x00020 <= c && c <= 0x00007E)
291
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
292
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF /* BOM */)
293
+ || (0x10000 <= c && c <= 0x10FFFF);
294
+ }
295
+
296
+ // [34] ns-char ::= nb-char - s-white
297
+ // [27] nb-char ::= c-printable - b-char - c-byte-order-mark
298
+ // [26] b-char ::= b-line-feed | b-carriage-return
299
+ // [24] b-line-feed ::= #xA /* LF */
300
+ // [25] b-carriage-return ::= #xD /* CR */
301
+ // [3] c-byte-order-mark ::= #xFEFF
302
+ function isNsChar(c) {
303
+ return isPrintable(c) && !isWhitespace(c)
304
+ // byte-order-mark
305
+ && c !== 0xFEFF
306
+ // b-char
307
+ && c !== CHAR_CARRIAGE_RETURN
308
+ && c !== CHAR_LINE_FEED;
309
+ }
310
+
311
+ // Simplified test for values allowed after the first character in plain style.
312
+ function isPlainSafe(c, prev) {
313
+ // Uses a subset of nb-char - c-flow-indicator - ":" - "#"
314
+ // where nb-char ::= c-printable - b-char - c-byte-order-mark.
315
+ return isPrintable(c) && c !== 0xFEFF
316
+ // - c-flow-indicator
317
+ && c !== CHAR_COMMA
318
+ && c !== CHAR_LEFT_SQUARE_BRACKET
319
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
320
+ && c !== CHAR_LEFT_CURLY_BRACKET
321
+ && c !== CHAR_RIGHT_CURLY_BRACKET
322
+ // - ":" - "#"
323
+ // /* An ns-char preceding */ "#"
324
+ && c !== CHAR_COLON
325
+ && ((c !== CHAR_SHARP) || (prev && isNsChar(prev)));
326
+ }
327
+
328
+ // Simplified test for values allowed as the first character in plain style.
329
+ function isPlainSafeFirst(c) {
330
+ // Uses a subset of ns-char - c-indicator
331
+ // where ns-char = nb-char - s-white.
332
+ return isPrintable(c) && c !== 0xFEFF
333
+ && !isWhitespace(c) // - s-white
334
+ // - (c-indicator ::=
335
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
336
+ && c !== CHAR_MINUS
337
+ && c !== CHAR_QUESTION
338
+ && c !== CHAR_COLON
339
+ && c !== CHAR_COMMA
340
+ && c !== CHAR_LEFT_SQUARE_BRACKET
341
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
342
+ && c !== CHAR_LEFT_CURLY_BRACKET
343
+ && c !== CHAR_RIGHT_CURLY_BRACKET
344
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
345
+ && c !== CHAR_SHARP
346
+ && c !== CHAR_AMPERSAND
347
+ && c !== CHAR_ASTERISK
348
+ && c !== CHAR_EXCLAMATION
349
+ && c !== CHAR_VERTICAL_LINE
350
+ && c !== CHAR_EQUALS
351
+ && c !== CHAR_GREATER_THAN
352
+ && c !== CHAR_SINGLE_QUOTE
353
+ && c !== CHAR_DOUBLE_QUOTE
354
+ // | “%” | “@” | “`”)
355
+ && c !== CHAR_PERCENT
356
+ && c !== CHAR_COMMERCIAL_AT
357
+ && c !== CHAR_GRAVE_ACCENT;
358
+ }
359
+
360
+ // Determines whether block indentation indicator is required.
361
+ function needIndentIndicator(string) {
362
+ var leadingSpaceRe = /^\n* /;
363
+ return leadingSpaceRe.test(string);
364
+ }
365
+
366
+ var STYLE_PLAIN = 1,
367
+ STYLE_SINGLE = 2,
368
+ STYLE_LITERAL = 3,
369
+ STYLE_FOLDED = 4,
370
+ STYLE_DOUBLE = 5;
371
+
372
+ // Determines which scalar styles are possible and returns the preferred style.
373
+ // lineWidth = -1 => no limit.
374
+ // Pre-conditions: str.length > 0.
375
+ // Post-conditions:
376
+ // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
377
+ // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
378
+ // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
379
+ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
380
+ var i;
381
+ var char, prev_char;
382
+ var hasLineBreak = false;
383
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
384
+ var shouldTrackWidth = lineWidth !== -1;
385
+ var previousLineBreak = -1; // count the first line correctly
386
+ var plain = isPlainSafeFirst(string.charCodeAt(0))
387
+ && !isWhitespace(string.charCodeAt(string.length - 1));
388
+
389
+ if (singleLineOnly) {
390
+ // Case: no block styles.
391
+ // Check for disallowed characters to rule out plain and single.
392
+ for (i = 0; i < string.length; i++) {
393
+ char = string.charCodeAt(i);
394
+ if (!isPrintable(char)) {
395
+ return STYLE_DOUBLE;
396
+ }
397
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
398
+ plain = plain && isPlainSafe(char, prev_char);
399
+ }
400
+ } else {
401
+ // Case: block styles permitted.
402
+ for (i = 0; i < string.length; i++) {
403
+ char = string.charCodeAt(i);
404
+ if (char === CHAR_LINE_FEED) {
405
+ hasLineBreak = true;
406
+ // Check if any line can be folded.
407
+ if (shouldTrackWidth) {
408
+ hasFoldableLine = hasFoldableLine ||
409
+ // Foldable line = too long, and not more-indented.
410
+ (i - previousLineBreak - 1 > lineWidth &&
411
+ string[previousLineBreak + 1] !== ' ');
412
+ previousLineBreak = i;
413
+ }
414
+ } else if (!isPrintable(char)) {
415
+ return STYLE_DOUBLE;
416
+ }
417
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
418
+ plain = plain && isPlainSafe(char, prev_char);
419
+ }
420
+ // in case the end is missing a \n
421
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
422
+ (i - previousLineBreak - 1 > lineWidth &&
423
+ string[previousLineBreak + 1] !== ' '));
424
+ }
425
+ // Although every style can represent \n without escaping, prefer block styles
426
+ // for multiline, since they're more readable and they don't add empty lines.
427
+ // Also prefer folding a super-long line.
428
+ if (!hasLineBreak && !hasFoldableLine) {
429
+ // Strings interpretable as another type have to be quoted;
430
+ // e.g. the string 'true' vs. the boolean true.
431
+ return plain && !testAmbiguousType(string)
432
+ ? STYLE_PLAIN : STYLE_SINGLE;
433
+ }
434
+ // Edge case: block indentation indicator can only have one digit.
435
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
436
+ return STYLE_DOUBLE;
437
+ }
438
+ // At this point we know block styles are valid.
439
+ // Prefer literal style unless we want to fold.
440
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
441
+ }
442
+
443
+ // Note: line breaking/folding is implemented for only the folded style.
444
+ // NB. We drop the last trailing newline (if any) of a returned block scalar
445
+ // since the dumper adds its own newline. This always works:
446
+ // • No ending newline => unaffected; already using strip "-" chomping.
447
+ // • Ending newline => removed then restored.
448
+ // Importantly, this keeps the "+" chomp indicator from gaining an extra line.
449
+ function writeScalar(state, string, level, iskey) {
450
+ state.dump = (function () {
451
+ if (string.length === 0) {
452
+ return "''";
453
+ }
454
+ if (!state.noCompatMode &&
455
+ DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {
456
+ return "'" + string + "'";
457
+ }
458
+
459
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
460
+ // As indentation gets deeper, let the width decrease monotonically
461
+ // to the lower bound min(state.lineWidth, 40).
462
+ // Note that this implies
463
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
464
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
465
+ // This behaves better than a constant minimum width which disallows narrower options,
466
+ // or an indent threshold which causes the width to suddenly increase.
467
+ var lineWidth = state.lineWidth === -1
468
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
469
+
470
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
471
+ var singleLineOnly = iskey
472
+ // No block styles in flow mode.
473
+ || (state.flowLevel > -1 && level >= state.flowLevel);
474
+ function testAmbiguity(string) {
475
+ return testImplicitResolving(state, string);
476
+ }
477
+
478
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
479
+ case STYLE_PLAIN:
480
+ return string;
481
+ case STYLE_SINGLE:
482
+ return "'" + string.replace(/'/g, "''") + "'";
483
+ case STYLE_LITERAL:
484
+ return '|' + blockHeader(string, state.indent)
485
+ + dropEndingNewline(indentString(string, indent));
486
+ case STYLE_FOLDED:
487
+ return '>' + blockHeader(string, state.indent)
488
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
489
+ case STYLE_DOUBLE:
490
+ return '"' + escapeString(string, lineWidth) + '"';
491
+ default:
492
+ throw new YAMLException('impossible error: invalid scalar style');
493
+ }
494
+ }());
495
+ }
496
+
497
+ // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
498
+ function blockHeader(string, indentPerLevel) {
499
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
500
+
501
+ // note the special case: the string '\n' counts as a "trailing" empty line.
502
+ var clip = string[string.length - 1] === '\n';
503
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
504
+ var chomp = keep ? '+' : (clip ? '' : '-');
505
+
506
+ return indentIndicator + chomp + '\n';
507
+ }
508
+
509
+ // (See the note for writeScalar.)
510
+ function dropEndingNewline(string) {
511
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
512
+ }
513
+
514
+ // Note: a long line without a suitable break point will exceed the width limit.
515
+ // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
516
+ function foldString(string, width) {
517
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
518
+ // unless they're before or after a more-indented line, or at the very
519
+ // beginning or end, in which case $k$ maps to $k$.
520
+ // Therefore, parse each chunk as newline(s) followed by a content line.
521
+ var lineRe = /(\n+)([^\n]*)/g;
522
+
523
+ // first line (possibly an empty line)
524
+ var result = (function () {
525
+ var nextLF = string.indexOf('\n');
526
+ nextLF = nextLF !== -1 ? nextLF : string.length;
527
+ lineRe.lastIndex = nextLF;
528
+ return foldLine(string.slice(0, nextLF), width);
529
+ }());
530
+ // If we haven't reached the first content line yet, don't add an extra \n.
531
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
532
+ var moreIndented;
533
+
534
+ // rest of the lines
535
+ var match;
536
+ while ((match = lineRe.exec(string))) {
537
+ var prefix = match[1], line = match[2];
538
+ moreIndented = (line[0] === ' ');
539
+ result += prefix
540
+ + (!prevMoreIndented && !moreIndented && line !== ''
541
+ ? '\n' : '')
542
+ + foldLine(line, width);
543
+ prevMoreIndented = moreIndented;
544
+ }
545
+
546
+ return result;
547
+ }
548
+
549
+ // Greedy line breaking.
550
+ // Picks the longest line under the limit each time,
551
+ // otherwise settles for the shortest line over the limit.
552
+ // NB. More-indented lines *cannot* be folded, as that would add an extra \n.
553
+ function foldLine(line, width) {
554
+ if (line === '' || line[0] === ' ') return line;
555
+
556
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
557
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
558
+ var match;
559
+ // start is an inclusive index. end, curr, and next are exclusive.
560
+ var start = 0, end, curr = 0, next = 0;
561
+ var result = '';
562
+
563
+ // Invariants: 0 <= start <= length-1.
564
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
565
+ // Inside the loop:
566
+ // A match implies length >= 2, so curr and next are <= length-2.
567
+ while ((match = breakRe.exec(line))) {
568
+ next = match.index;
569
+ // maintain invariant: curr - start <= width
570
+ if (next - start > width) {
571
+ end = (curr > start) ? curr : next; // derive end <= length-2
572
+ result += '\n' + line.slice(start, end);
573
+ // skip the space that was output as \n
574
+ start = end + 1; // derive start <= length-1
575
+ }
576
+ curr = next;
577
+ }
578
+
579
+ // By the invariants, start <= length-1, so there is something left over.
580
+ // It is either the whole string or a part starting from non-whitespace.
581
+ result += '\n';
582
+ // Insert a break if the remainder is too long and there is a break available.
583
+ if (line.length - start > width && curr > start) {
584
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
585
+ } else {
586
+ result += line.slice(start);
587
+ }
588
+
589
+ return result.slice(1); // drop extra \n joiner
590
+ }
591
+
592
+ // Escapes a double-quoted string.
593
+ function escapeString(string) {
594
+ var result = '';
595
+ var char, nextChar;
596
+ var escapeSeq;
597
+
598
+ for (var i = 0; i < string.length; i++) {
599
+ char = string.charCodeAt(i);
600
+ // Check for surrogate pairs (reference Unicode 3.0 section "3.7 Surrogates").
601
+ if (char >= 0xD800 && char <= 0xDBFF/* high surrogate */) {
602
+ nextChar = string.charCodeAt(i + 1);
603
+ if (nextChar >= 0xDC00 && nextChar <= 0xDFFF/* low surrogate */) {
604
+ // Combine the surrogate pair and store it escaped.
605
+ result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);
606
+ // Advance index one extra since we already used that char here.
607
+ i++; continue;
608
+ }
609
+ }
610
+ escapeSeq = ESCAPE_SEQUENCES[char];
611
+ result += !escapeSeq && isPrintable(char)
612
+ ? string[i]
613
+ : escapeSeq || encodeHex(char);
614
+ }
615
+
616
+ return result;
617
+ }
618
+
619
+ function writeFlowSequence(state, level, object) {
620
+ var _result = '',
621
+ _tag = state.tag,
622
+ index,
623
+ length;
624
+
625
+ for (index = 0, length = object.length; index < length; index += 1) {
626
+ // Write only valid elements.
627
+ if (writeNode(state, level, object[index], false, false)) {
628
+ if (index !== 0) _result += ',' + (!state.condenseFlow ? ' ' : '');
629
+ _result += state.dump;
630
+ }
631
+ }
632
+
633
+ state.tag = _tag;
634
+ state.dump = '[' + _result + ']';
635
+ }
636
+
637
+ function writeBlockSequence(state, level, object, compact) {
638
+ var _result = '',
639
+ _tag = state.tag,
640
+ index,
641
+ length;
642
+
643
+ for (index = 0, length = object.length; index < length; index += 1) {
644
+ // Write only valid elements.
645
+ if (writeNode(state, level + 1, object[index], true, true)) {
646
+ if (!compact || index !== 0) {
647
+ _result += generateNextLine(state, level);
648
+ }
649
+
650
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
651
+ _result += '-';
652
+ } else {
653
+ _result += '- ';
654
+ }
655
+
656
+ _result += state.dump;
657
+ }
658
+ }
659
+
660
+ state.tag = _tag;
661
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
662
+ }
663
+
664
+ function writeFlowMapping(state, level, object) {
665
+ var _result = '',
666
+ _tag = state.tag,
667
+ objectKeyList = Object.keys(object),
668
+ index,
669
+ length,
670
+ objectKey,
671
+ objectValue,
672
+ pairBuffer;
673
+
674
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
675
+
676
+ pairBuffer = '';
677
+ if (index !== 0) pairBuffer += ', ';
678
+
679
+ if (state.condenseFlow) pairBuffer += '"';
680
+
681
+ objectKey = objectKeyList[index];
682
+ objectValue = object[objectKey];
683
+
684
+ if (!writeNode(state, level, objectKey, false, false)) {
685
+ continue; // Skip this pair because of invalid key;
686
+ }
687
+
688
+ if (state.dump.length > 1024) pairBuffer += '? ';
689
+
690
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
691
+
692
+ if (!writeNode(state, level, objectValue, false, false)) {
693
+ continue; // Skip this pair because of invalid value.
694
+ }
695
+
696
+ pairBuffer += state.dump;
697
+
698
+ // Both key and value are valid.
699
+ _result += pairBuffer;
700
+ }
701
+
702
+ state.tag = _tag;
703
+ state.dump = '{' + _result + '}';
704
+ }
705
+
706
+ function writeBlockMapping(state, level, object, compact) {
707
+ var _result = '',
708
+ _tag = state.tag,
709
+ objectKeyList = Object.keys(object),
710
+ index,
711
+ length,
712
+ objectKey,
713
+ objectValue,
714
+ explicitPair,
715
+ pairBuffer;
716
+
717
+ // Allow sorting keys so that the output file is deterministic
718
+ if (state.sortKeys === true) {
719
+ // Default sorting
720
+ objectKeyList.sort();
721
+ } else if (typeof state.sortKeys === 'function') {
722
+ // Custom sort function
723
+ objectKeyList.sort(state.sortKeys);
724
+ } else if (state.sortKeys) {
725
+ // Something is wrong
726
+ throw new YAMLException('sortKeys must be a boolean or a function');
727
+ }
728
+
729
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
730
+ pairBuffer = '';
731
+
732
+ if (!compact || index !== 0) {
733
+ pairBuffer += generateNextLine(state, level);
734
+ }
735
+
736
+ objectKey = objectKeyList[index];
737
+ objectValue = object[objectKey];
738
+
739
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
740
+ continue; // Skip this pair because of invalid key.
741
+ }
742
+
743
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
744
+ (state.dump && state.dump.length > 1024);
745
+
746
+ if (explicitPair) {
747
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
748
+ pairBuffer += '?';
749
+ } else {
750
+ pairBuffer += '? ';
751
+ }
752
+ }
753
+
754
+ pairBuffer += state.dump;
755
+
756
+ if (explicitPair) {
757
+ pairBuffer += generateNextLine(state, level);
758
+ }
759
+
760
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
761
+ continue; // Skip this pair because of invalid value.
762
+ }
763
+
764
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
765
+ pairBuffer += ':';
766
+ } else {
767
+ pairBuffer += ': ';
768
+ }
769
+
770
+ pairBuffer += state.dump;
771
+
772
+ // Both key and value are valid.
773
+ _result += pairBuffer;
774
+ }
775
+
776
+ state.tag = _tag;
777
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
778
+ }
779
+
780
+ function detectType(state, object, explicit) {
781
+ var _result, typeList, index, length, type, style;
782
+
783
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
784
+
785
+ for (index = 0, length = typeList.length; index < length; index += 1) {
786
+ type = typeList[index];
787
+
788
+ if ((type.instanceOf || type.predicate) &&
789
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
790
+ (!type.predicate || type.predicate(object))) {
791
+
792
+ state.tag = explicit ? type.tag : '?';
793
+
794
+ if (type.represent) {
795
+ style = state.styleMap[type.tag] || type.defaultStyle;
796
+
797
+ if (_toString.call(type.represent) === '[object Function]') {
798
+ _result = type.represent(object, style);
799
+ } else if (_hasOwnProperty.call(type.represent, style)) {
800
+ _result = type.represent[style](object, style);
801
+ } else {
802
+ throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
803
+ }
804
+
805
+ state.dump = _result;
806
+ }
807
+
808
+ return true;
809
+ }
810
+ }
811
+
812
+ return false;
813
+ }
814
+
815
+ // Serializes `object` and writes it to global `result`.
816
+ // Returns true on success, or false on invalid object.
817
+ //
818
+ function writeNode(state, level, object, block, compact, iskey) {
819
+ state.tag = null;
820
+ state.dump = object;
821
+
822
+ if (!detectType(state, object, false)) {
823
+ detectType(state, object, true);
824
+ }
825
+
826
+ var type = _toString.call(state.dump);
827
+
828
+ if (block) {
829
+ block = (state.flowLevel < 0 || state.flowLevel > level);
830
+ }
831
+
832
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
833
+ duplicateIndex,
834
+ duplicate;
835
+
836
+ if (objectOrArray) {
837
+ duplicateIndex = state.duplicates.indexOf(object);
838
+ duplicate = duplicateIndex !== -1;
839
+ }
840
+
841
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
842
+ compact = false;
843
+ }
844
+
845
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
846
+ state.dump = '*ref_' + duplicateIndex;
847
+ } else {
848
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
849
+ state.usedDuplicates[duplicateIndex] = true;
850
+ }
851
+ if (type === '[object Object]') {
852
+ if (block && (Object.keys(state.dump).length !== 0)) {
853
+ writeBlockMapping(state, level, state.dump, compact);
854
+ if (duplicate) {
855
+ state.dump = '&ref_' + duplicateIndex + state.dump;
856
+ }
857
+ } else {
858
+ writeFlowMapping(state, level, state.dump);
859
+ if (duplicate) {
860
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
861
+ }
862
+ }
863
+ } else if (type === '[object Array]') {
864
+ var arrayLevel = (state.noArrayIndent && (level > 0)) ? level - 1 : level;
865
+ if (block && (state.dump.length !== 0)) {
866
+ writeBlockSequence(state, arrayLevel, state.dump, compact);
867
+ if (duplicate) {
868
+ state.dump = '&ref_' + duplicateIndex + state.dump;
869
+ }
870
+ } else {
871
+ writeFlowSequence(state, arrayLevel, state.dump);
872
+ if (duplicate) {
873
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
874
+ }
875
+ }
876
+ } else if (type === '[object String]') {
877
+ if (state.tag !== '?') {
878
+ writeScalar(state, state.dump, level, iskey);
879
+ }
880
+ } else {
881
+ if (state.skipInvalid) return false;
882
+ throw new YAMLException('unacceptable kind of an object to dump ' + type);
883
+ }
884
+
885
+ if (state.tag !== null && state.tag !== '?') {
886
+ state.dump = '!<' + state.tag + '> ' + state.dump;
887
+ }
888
+ }
889
+
890
+ return true;
891
+ }
892
+
893
+ function getDuplicateReferences(object, state) {
894
+ var objects = [],
895
+ duplicatesIndexes = [],
896
+ index,
897
+ length;
898
+
899
+ inspectNode(object, objects, duplicatesIndexes);
900
+
901
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
902
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
903
+ }
904
+ state.usedDuplicates = new Array(length);
905
+ }
906
+
907
+ function inspectNode(object, objects, duplicatesIndexes) {
908
+ var objectKeyList,
909
+ index,
910
+ length;
911
+
912
+ if (object !== null && typeof object === 'object') {
913
+ index = objects.indexOf(object);
914
+ if (index !== -1) {
915
+ if (duplicatesIndexes.indexOf(index) === -1) {
916
+ duplicatesIndexes.push(index);
917
+ }
918
+ } else {
919
+ objects.push(object);
920
+
921
+ if (Array.isArray(object)) {
922
+ for (index = 0, length = object.length; index < length; index += 1) {
923
+ inspectNode(object[index], objects, duplicatesIndexes);
924
+ }
925
+ } else {
926
+ objectKeyList = Object.keys(object);
927
+
928
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
929
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
930
+ }
931
+ }
932
+ }
933
+ }
934
+ }
935
+
936
+ function dump(input, options) {
937
+ options = options || {};
938
+
939
+ var state = new State(options);
940
+
941
+ if (!state.noRefs) getDuplicateReferences(input, state);
942
+
943
+ if (writeNode(state, 0, input, true, true)) return state.dump + '\n';
944
+
945
+ return '';
946
+ }
947
+
948
+ function safeDump(input, options) {
949
+ return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
950
+ }
951
+
952
+ module.exports.dump = dump;
953
+ module.exports.safeDump = safeDump;
954
+
955
+ },{"./common":2,"./exception":4,"./schema/default_full":9,"./schema/default_safe":10}],4:[function(require,module,exports){
956
+ // YAML error class. http://stackoverflow.com/questions/8458984
957
+ //
958
+ 'use strict';
959
+
960
+ function YAMLException(reason, mark) {
961
+ // Super constructor
962
+ Error.call(this);
963
+
964
+ this.name = 'YAMLException';
965
+ this.reason = reason;
966
+ this.mark = mark;
967
+ this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');
968
+
969
+ // Include stack trace in error object
970
+ if (Error.captureStackTrace) {
971
+ // Chrome and NodeJS
972
+ Error.captureStackTrace(this, this.constructor);
973
+ } else {
974
+ // FF, IE 10+ and Safari 6+. Fallback for others
975
+ this.stack = (new Error()).stack || '';
976
+ }
977
+ }
978
+
979
+
980
+ // Inherit from Error
981
+ YAMLException.prototype = Object.create(Error.prototype);
982
+ YAMLException.prototype.constructor = YAMLException;
983
+
984
+
985
+ YAMLException.prototype.toString = function toString(compact) {
986
+ var result = this.name + ': ';
987
+
988
+ result += this.reason || '(unknown reason)';
989
+
990
+ if (!compact && this.mark) {
991
+ result += ' ' + this.mark.toString();
992
+ }
993
+
994
+ return result;
995
+ };
996
+
997
+
998
+ module.exports = YAMLException;
999
+
1000
+ },{}],5:[function(require,module,exports){
1001
+ 'use strict';
1002
+
1003
+ /*eslint-disable max-len,no-use-before-define*/
1004
+
1005
+ var common = require('./common');
1006
+ var YAMLException = require('./exception');
1007
+ var Mark = require('./mark');
1008
+ var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
1009
+ var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
1010
+
1011
+
1012
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
1013
+
1014
+
1015
+ var CONTEXT_FLOW_IN = 1;
1016
+ var CONTEXT_FLOW_OUT = 2;
1017
+ var CONTEXT_BLOCK_IN = 3;
1018
+ var CONTEXT_BLOCK_OUT = 4;
1019
+
1020
+
1021
+ var CHOMPING_CLIP = 1;
1022
+ var CHOMPING_STRIP = 2;
1023
+ var CHOMPING_KEEP = 3;
1024
+
1025
+
1026
+ var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
1027
+ var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
1028
+ var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
1029
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
1030
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1031
+
1032
+
1033
+ function _class(obj) { return Object.prototype.toString.call(obj); }
1034
+
1035
+ function is_EOL(c) {
1036
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
1037
+ }
1038
+
1039
+ function is_WHITE_SPACE(c) {
1040
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
1041
+ }
1042
+
1043
+ function is_WS_OR_EOL(c) {
1044
+ return (c === 0x09/* Tab */) ||
1045
+ (c === 0x20/* Space */) ||
1046
+ (c === 0x0A/* LF */) ||
1047
+ (c === 0x0D/* CR */);
1048
+ }
1049
+
1050
+ function is_FLOW_INDICATOR(c) {
1051
+ return c === 0x2C/* , */ ||
1052
+ c === 0x5B/* [ */ ||
1053
+ c === 0x5D/* ] */ ||
1054
+ c === 0x7B/* { */ ||
1055
+ c === 0x7D/* } */;
1056
+ }
1057
+
1058
+ function fromHexCode(c) {
1059
+ var lc;
1060
+
1061
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1062
+ return c - 0x30;
1063
+ }
1064
+
1065
+ /*eslint-disable no-bitwise*/
1066
+ lc = c | 0x20;
1067
+
1068
+ if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
1069
+ return lc - 0x61 + 10;
1070
+ }
1071
+
1072
+ return -1;
1073
+ }
1074
+
1075
+ function escapedHexLen(c) {
1076
+ if (c === 0x78/* x */) { return 2; }
1077
+ if (c === 0x75/* u */) { return 4; }
1078
+ if (c === 0x55/* U */) { return 8; }
1079
+ return 0;
1080
+ }
1081
+
1082
+ function fromDecimalCode(c) {
1083
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1084
+ return c - 0x30;
1085
+ }
1086
+
1087
+ return -1;
1088
+ }
1089
+
1090
+ function simpleEscapeSequence(c) {
1091
+ /* eslint-disable indent */
1092
+ return (c === 0x30/* 0 */) ? '\x00' :
1093
+ (c === 0x61/* a */) ? '\x07' :
1094
+ (c === 0x62/* b */) ? '\x08' :
1095
+ (c === 0x74/* t */) ? '\x09' :
1096
+ (c === 0x09/* Tab */) ? '\x09' :
1097
+ (c === 0x6E/* n */) ? '\x0A' :
1098
+ (c === 0x76/* v */) ? '\x0B' :
1099
+ (c === 0x66/* f */) ? '\x0C' :
1100
+ (c === 0x72/* r */) ? '\x0D' :
1101
+ (c === 0x65/* e */) ? '\x1B' :
1102
+ (c === 0x20/* Space */) ? ' ' :
1103
+ (c === 0x22/* " */) ? '\x22' :
1104
+ (c === 0x2F/* / */) ? '/' :
1105
+ (c === 0x5C/* \ */) ? '\x5C' :
1106
+ (c === 0x4E/* N */) ? '\x85' :
1107
+ (c === 0x5F/* _ */) ? '\xA0' :
1108
+ (c === 0x4C/* L */) ? '\u2028' :
1109
+ (c === 0x50/* P */) ? '\u2029' : '';
1110
+ }
1111
+
1112
+ function charFromCodepoint(c) {
1113
+ if (c <= 0xFFFF) {
1114
+ return String.fromCharCode(c);
1115
+ }
1116
+ // Encode UTF-16 surrogate pair
1117
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
1118
+ return String.fromCharCode(
1119
+ ((c - 0x010000) >> 10) + 0xD800,
1120
+ ((c - 0x010000) & 0x03FF) + 0xDC00
1121
+ );
1122
+ }
1123
+
1124
+ var simpleEscapeCheck = new Array(256); // integer, for fast access
1125
+ var simpleEscapeMap = new Array(256);
1126
+ for (var i = 0; i < 256; i++) {
1127
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
1128
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
1129
+ }
1130
+
1131
+
1132
+ function State(input, options) {
1133
+ this.input = input;
1134
+
1135
+ this.filename = options['filename'] || null;
1136
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
1137
+ this.onWarning = options['onWarning'] || null;
1138
+ this.legacy = options['legacy'] || false;
1139
+ this.json = options['json'] || false;
1140
+ this.listener = options['listener'] || null;
1141
+
1142
+ this.implicitTypes = this.schema.compiledImplicit;
1143
+ this.typeMap = this.schema.compiledTypeMap;
1144
+
1145
+ this.length = input.length;
1146
+ this.position = 0;
1147
+ this.line = 0;
1148
+ this.lineStart = 0;
1149
+ this.lineIndent = 0;
1150
+
1151
+ this.documents = [];
1152
+
1153
+ /*
1154
+ this.version;
1155
+ this.checkLineBreaks;
1156
+ this.tagMap;
1157
+ this.anchorMap;
1158
+ this.tag;
1159
+ this.anchor;
1160
+ this.kind;
1161
+ this.result;*/
1162
+
1163
+ }
1164
+
1165
+
1166
+ function generateError(state, message) {
1167
+ return new YAMLException(
1168
+ message,
1169
+ new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));
1170
+ }
1171
+
1172
+ function throwError(state, message) {
1173
+ throw generateError(state, message);
1174
+ }
1175
+
1176
+ function throwWarning(state, message) {
1177
+ if (state.onWarning) {
1178
+ state.onWarning.call(null, generateError(state, message));
1179
+ }
1180
+ }
1181
+
1182
+
1183
+ var directiveHandlers = {
1184
+
1185
+ YAML: function handleYamlDirective(state, name, args) {
1186
+
1187
+ var match, major, minor;
1188
+
1189
+ if (state.version !== null) {
1190
+ throwError(state, 'duplication of %YAML directive');
1191
+ }
1192
+
1193
+ if (args.length !== 1) {
1194
+ throwError(state, 'YAML directive accepts exactly one argument');
1195
+ }
1196
+
1197
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
1198
+
1199
+ if (match === null) {
1200
+ throwError(state, 'ill-formed argument of the YAML directive');
1201
+ }
1202
+
1203
+ major = parseInt(match[1], 10);
1204
+ minor = parseInt(match[2], 10);
1205
+
1206
+ if (major !== 1) {
1207
+ throwError(state, 'unacceptable YAML version of the document');
1208
+ }
1209
+
1210
+ state.version = args[0];
1211
+ state.checkLineBreaks = (minor < 2);
1212
+
1213
+ if (minor !== 1 && minor !== 2) {
1214
+ throwWarning(state, 'unsupported YAML version of the document');
1215
+ }
1216
+ },
1217
+
1218
+ TAG: function handleTagDirective(state, name, args) {
1219
+
1220
+ var handle, prefix;
1221
+
1222
+ if (args.length !== 2) {
1223
+ throwError(state, 'TAG directive accepts exactly two arguments');
1224
+ }
1225
+
1226
+ handle = args[0];
1227
+ prefix = args[1];
1228
+
1229
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
1230
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
1231
+ }
1232
+
1233
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
1234
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1235
+ }
1236
+
1237
+ if (!PATTERN_TAG_URI.test(prefix)) {
1238
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
1239
+ }
1240
+
1241
+ state.tagMap[handle] = prefix;
1242
+ }
1243
+ };
1244
+
1245
+
1246
+ function captureSegment(state, start, end, checkJson) {
1247
+ var _position, _length, _character, _result;
1248
+
1249
+ if (start < end) {
1250
+ _result = state.input.slice(start, end);
1251
+
1252
+ if (checkJson) {
1253
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
1254
+ _character = _result.charCodeAt(_position);
1255
+ if (!(_character === 0x09 ||
1256
+ (0x20 <= _character && _character <= 0x10FFFF))) {
1257
+ throwError(state, 'expected valid JSON character');
1258
+ }
1259
+ }
1260
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
1261
+ throwError(state, 'the stream contains non-printable characters');
1262
+ }
1263
+
1264
+ state.result += _result;
1265
+ }
1266
+ }
1267
+
1268
+ function mergeMappings(state, destination, source, overridableKeys) {
1269
+ var sourceKeys, key, index, quantity;
1270
+
1271
+ if (!common.isObject(source)) {
1272
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1273
+ }
1274
+
1275
+ sourceKeys = Object.keys(source);
1276
+
1277
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1278
+ key = sourceKeys[index];
1279
+
1280
+ if (!_hasOwnProperty.call(destination, key)) {
1281
+ destination[key] = source[key];
1282
+ overridableKeys[key] = true;
1283
+ }
1284
+ }
1285
+ }
1286
+
1287
+ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
1288
+ var index, quantity;
1289
+
1290
+ // The output is a plain object here, so keys can only be strings.
1291
+ // We need to convert keyNode to a string, but doing so can hang the process
1292
+ // (deeply nested arrays that explode exponentially using aliases).
1293
+ if (Array.isArray(keyNode)) {
1294
+ keyNode = Array.prototype.slice.call(keyNode);
1295
+
1296
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1297
+ if (Array.isArray(keyNode[index])) {
1298
+ throwError(state, 'nested arrays are not supported inside keys');
1299
+ }
1300
+
1301
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
1302
+ keyNode[index] = '[object Object]';
1303
+ }
1304
+ }
1305
+ }
1306
+
1307
+ // Avoid code execution in load() via toString property
1308
+ // (still use its own toString for arrays, timestamps,
1309
+ // and whatever user schema extensions happen to have @@toStringTag)
1310
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
1311
+ keyNode = '[object Object]';
1312
+ }
1313
+
1314
+
1315
+ keyNode = String(keyNode);
1316
+
1317
+ if (_result === null) {
1318
+ _result = {};
1319
+ }
1320
+
1321
+ if (keyTag === 'tag:yaml.org,2002:merge') {
1322
+ if (Array.isArray(valueNode)) {
1323
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1324
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
1325
+ }
1326
+ } else {
1327
+ mergeMappings(state, _result, valueNode, overridableKeys);
1328
+ }
1329
+ } else {
1330
+ if (!state.json &&
1331
+ !_hasOwnProperty.call(overridableKeys, keyNode) &&
1332
+ _hasOwnProperty.call(_result, keyNode)) {
1333
+ state.line = startLine || state.line;
1334
+ state.position = startPos || state.position;
1335
+ throwError(state, 'duplicated mapping key');
1336
+ }
1337
+ _result[keyNode] = valueNode;
1338
+ delete overridableKeys[keyNode];
1339
+ }
1340
+
1341
+ return _result;
1342
+ }
1343
+
1344
+ function readLineBreak(state) {
1345
+ var ch;
1346
+
1347
+ ch = state.input.charCodeAt(state.position);
1348
+
1349
+ if (ch === 0x0A/* LF */) {
1350
+ state.position++;
1351
+ } else if (ch === 0x0D/* CR */) {
1352
+ state.position++;
1353
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
1354
+ state.position++;
1355
+ }
1356
+ } else {
1357
+ throwError(state, 'a line break is expected');
1358
+ }
1359
+
1360
+ state.line += 1;
1361
+ state.lineStart = state.position;
1362
+ }
1363
+
1364
+ function skipSeparationSpace(state, allowComments, checkIndent) {
1365
+ var lineBreaks = 0,
1366
+ ch = state.input.charCodeAt(state.position);
1367
+
1368
+ while (ch !== 0) {
1369
+ while (is_WHITE_SPACE(ch)) {
1370
+ ch = state.input.charCodeAt(++state.position);
1371
+ }
1372
+
1373
+ if (allowComments && ch === 0x23/* # */) {
1374
+ do {
1375
+ ch = state.input.charCodeAt(++state.position);
1376
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
1377
+ }
1378
+
1379
+ if (is_EOL(ch)) {
1380
+ readLineBreak(state);
1381
+
1382
+ ch = state.input.charCodeAt(state.position);
1383
+ lineBreaks++;
1384
+ state.lineIndent = 0;
1385
+
1386
+ while (ch === 0x20/* Space */) {
1387
+ state.lineIndent++;
1388
+ ch = state.input.charCodeAt(++state.position);
1389
+ }
1390
+ } else {
1391
+ break;
1392
+ }
1393
+ }
1394
+
1395
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
1396
+ throwWarning(state, 'deficient indentation');
1397
+ }
1398
+
1399
+ return lineBreaks;
1400
+ }
1401
+
1402
+ function testDocumentSeparator(state) {
1403
+ var _position = state.position,
1404
+ ch;
1405
+
1406
+ ch = state.input.charCodeAt(_position);
1407
+
1408
+ // Condition state.position === state.lineStart is tested
1409
+ // in parent on each call, for efficiency. No needs to test here again.
1410
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
1411
+ ch === state.input.charCodeAt(_position + 1) &&
1412
+ ch === state.input.charCodeAt(_position + 2)) {
1413
+
1414
+ _position += 3;
1415
+
1416
+ ch = state.input.charCodeAt(_position);
1417
+
1418
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
1419
+ return true;
1420
+ }
1421
+ }
1422
+
1423
+ return false;
1424
+ }
1425
+
1426
+ function writeFoldedLines(state, count) {
1427
+ if (count === 1) {
1428
+ state.result += ' ';
1429
+ } else if (count > 1) {
1430
+ state.result += common.repeat('\n', count - 1);
1431
+ }
1432
+ }
1433
+
1434
+
1435
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1436
+ var preceding,
1437
+ following,
1438
+ captureStart,
1439
+ captureEnd,
1440
+ hasPendingContent,
1441
+ _line,
1442
+ _lineStart,
1443
+ _lineIndent,
1444
+ _kind = state.kind,
1445
+ _result = state.result,
1446
+ ch;
1447
+
1448
+ ch = state.input.charCodeAt(state.position);
1449
+
1450
+ if (is_WS_OR_EOL(ch) ||
1451
+ is_FLOW_INDICATOR(ch) ||
1452
+ ch === 0x23/* # */ ||
1453
+ ch === 0x26/* & */ ||
1454
+ ch === 0x2A/* * */ ||
1455
+ ch === 0x21/* ! */ ||
1456
+ ch === 0x7C/* | */ ||
1457
+ ch === 0x3E/* > */ ||
1458
+ ch === 0x27/* ' */ ||
1459
+ ch === 0x22/* " */ ||
1460
+ ch === 0x25/* % */ ||
1461
+ ch === 0x40/* @ */ ||
1462
+ ch === 0x60/* ` */) {
1463
+ return false;
1464
+ }
1465
+
1466
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
1467
+ following = state.input.charCodeAt(state.position + 1);
1468
+
1469
+ if (is_WS_OR_EOL(following) ||
1470
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1471
+ return false;
1472
+ }
1473
+ }
1474
+
1475
+ state.kind = 'scalar';
1476
+ state.result = '';
1477
+ captureStart = captureEnd = state.position;
1478
+ hasPendingContent = false;
1479
+
1480
+ while (ch !== 0) {
1481
+ if (ch === 0x3A/* : */) {
1482
+ following = state.input.charCodeAt(state.position + 1);
1483
+
1484
+ if (is_WS_OR_EOL(following) ||
1485
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1486
+ break;
1487
+ }
1488
+
1489
+ } else if (ch === 0x23/* # */) {
1490
+ preceding = state.input.charCodeAt(state.position - 1);
1491
+
1492
+ if (is_WS_OR_EOL(preceding)) {
1493
+ break;
1494
+ }
1495
+
1496
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
1497
+ withinFlowCollection && is_FLOW_INDICATOR(ch)) {
1498
+ break;
1499
+
1500
+ } else if (is_EOL(ch)) {
1501
+ _line = state.line;
1502
+ _lineStart = state.lineStart;
1503
+ _lineIndent = state.lineIndent;
1504
+ skipSeparationSpace(state, false, -1);
1505
+
1506
+ if (state.lineIndent >= nodeIndent) {
1507
+ hasPendingContent = true;
1508
+ ch = state.input.charCodeAt(state.position);
1509
+ continue;
1510
+ } else {
1511
+ state.position = captureEnd;
1512
+ state.line = _line;
1513
+ state.lineStart = _lineStart;
1514
+ state.lineIndent = _lineIndent;
1515
+ break;
1516
+ }
1517
+ }
1518
+
1519
+ if (hasPendingContent) {
1520
+ captureSegment(state, captureStart, captureEnd, false);
1521
+ writeFoldedLines(state, state.line - _line);
1522
+ captureStart = captureEnd = state.position;
1523
+ hasPendingContent = false;
1524
+ }
1525
+
1526
+ if (!is_WHITE_SPACE(ch)) {
1527
+ captureEnd = state.position + 1;
1528
+ }
1529
+
1530
+ ch = state.input.charCodeAt(++state.position);
1531
+ }
1532
+
1533
+ captureSegment(state, captureStart, captureEnd, false);
1534
+
1535
+ if (state.result) {
1536
+ return true;
1537
+ }
1538
+
1539
+ state.kind = _kind;
1540
+ state.result = _result;
1541
+ return false;
1542
+ }
1543
+
1544
+ function readSingleQuotedScalar(state, nodeIndent) {
1545
+ var ch,
1546
+ captureStart, captureEnd;
1547
+
1548
+ ch = state.input.charCodeAt(state.position);
1549
+
1550
+ if (ch !== 0x27/* ' */) {
1551
+ return false;
1552
+ }
1553
+
1554
+ state.kind = 'scalar';
1555
+ state.result = '';
1556
+ state.position++;
1557
+ captureStart = captureEnd = state.position;
1558
+
1559
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1560
+ if (ch === 0x27/* ' */) {
1561
+ captureSegment(state, captureStart, state.position, true);
1562
+ ch = state.input.charCodeAt(++state.position);
1563
+
1564
+ if (ch === 0x27/* ' */) {
1565
+ captureStart = state.position;
1566
+ state.position++;
1567
+ captureEnd = state.position;
1568
+ } else {
1569
+ return true;
1570
+ }
1571
+
1572
+ } else if (is_EOL(ch)) {
1573
+ captureSegment(state, captureStart, captureEnd, true);
1574
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1575
+ captureStart = captureEnd = state.position;
1576
+
1577
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1578
+ throwError(state, 'unexpected end of the document within a single quoted scalar');
1579
+
1580
+ } else {
1581
+ state.position++;
1582
+ captureEnd = state.position;
1583
+ }
1584
+ }
1585
+
1586
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
1587
+ }
1588
+
1589
+ function readDoubleQuotedScalar(state, nodeIndent) {
1590
+ var captureStart,
1591
+ captureEnd,
1592
+ hexLength,
1593
+ hexResult,
1594
+ tmp,
1595
+ ch;
1596
+
1597
+ ch = state.input.charCodeAt(state.position);
1598
+
1599
+ if (ch !== 0x22/* " */) {
1600
+ return false;
1601
+ }
1602
+
1603
+ state.kind = 'scalar';
1604
+ state.result = '';
1605
+ state.position++;
1606
+ captureStart = captureEnd = state.position;
1607
+
1608
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1609
+ if (ch === 0x22/* " */) {
1610
+ captureSegment(state, captureStart, state.position, true);
1611
+ state.position++;
1612
+ return true;
1613
+
1614
+ } else if (ch === 0x5C/* \ */) {
1615
+ captureSegment(state, captureStart, state.position, true);
1616
+ ch = state.input.charCodeAt(++state.position);
1617
+
1618
+ if (is_EOL(ch)) {
1619
+ skipSeparationSpace(state, false, nodeIndent);
1620
+
1621
+ // TODO: rework to inline fn with no type cast?
1622
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
1623
+ state.result += simpleEscapeMap[ch];
1624
+ state.position++;
1625
+
1626
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
1627
+ hexLength = tmp;
1628
+ hexResult = 0;
1629
+
1630
+ for (; hexLength > 0; hexLength--) {
1631
+ ch = state.input.charCodeAt(++state.position);
1632
+
1633
+ if ((tmp = fromHexCode(ch)) >= 0) {
1634
+ hexResult = (hexResult << 4) + tmp;
1635
+
1636
+ } else {
1637
+ throwError(state, 'expected hexadecimal character');
1638
+ }
1639
+ }
1640
+
1641
+ state.result += charFromCodepoint(hexResult);
1642
+
1643
+ state.position++;
1644
+
1645
+ } else {
1646
+ throwError(state, 'unknown escape sequence');
1647
+ }
1648
+
1649
+ captureStart = captureEnd = state.position;
1650
+
1651
+ } else if (is_EOL(ch)) {
1652
+ captureSegment(state, captureStart, captureEnd, true);
1653
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1654
+ captureStart = captureEnd = state.position;
1655
+
1656
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1657
+ throwError(state, 'unexpected end of the document within a double quoted scalar');
1658
+
1659
+ } else {
1660
+ state.position++;
1661
+ captureEnd = state.position;
1662
+ }
1663
+ }
1664
+
1665
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
1666
+ }
1667
+
1668
+ function readFlowCollection(state, nodeIndent) {
1669
+ var readNext = true,
1670
+ _line,
1671
+ _tag = state.tag,
1672
+ _result,
1673
+ _anchor = state.anchor,
1674
+ following,
1675
+ terminator,
1676
+ isPair,
1677
+ isExplicitPair,
1678
+ isMapping,
1679
+ overridableKeys = {},
1680
+ keyNode,
1681
+ keyTag,
1682
+ valueNode,
1683
+ ch;
1684
+
1685
+ ch = state.input.charCodeAt(state.position);
1686
+
1687
+ if (ch === 0x5B/* [ */) {
1688
+ terminator = 0x5D;/* ] */
1689
+ isMapping = false;
1690
+ _result = [];
1691
+ } else if (ch === 0x7B/* { */) {
1692
+ terminator = 0x7D;/* } */
1693
+ isMapping = true;
1694
+ _result = {};
1695
+ } else {
1696
+ return false;
1697
+ }
1698
+
1699
+ if (state.anchor !== null) {
1700
+ state.anchorMap[state.anchor] = _result;
1701
+ }
1702
+
1703
+ ch = state.input.charCodeAt(++state.position);
1704
+
1705
+ while (ch !== 0) {
1706
+ skipSeparationSpace(state, true, nodeIndent);
1707
+
1708
+ ch = state.input.charCodeAt(state.position);
1709
+
1710
+ if (ch === terminator) {
1711
+ state.position++;
1712
+ state.tag = _tag;
1713
+ state.anchor = _anchor;
1714
+ state.kind = isMapping ? 'mapping' : 'sequence';
1715
+ state.result = _result;
1716
+ return true;
1717
+ } else if (!readNext) {
1718
+ throwError(state, 'missed comma between flow collection entries');
1719
+ }
1720
+
1721
+ keyTag = keyNode = valueNode = null;
1722
+ isPair = isExplicitPair = false;
1723
+
1724
+ if (ch === 0x3F/* ? */) {
1725
+ following = state.input.charCodeAt(state.position + 1);
1726
+
1727
+ if (is_WS_OR_EOL(following)) {
1728
+ isPair = isExplicitPair = true;
1729
+ state.position++;
1730
+ skipSeparationSpace(state, true, nodeIndent);
1731
+ }
1732
+ }
1733
+
1734
+ _line = state.line;
1735
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1736
+ keyTag = state.tag;
1737
+ keyNode = state.result;
1738
+ skipSeparationSpace(state, true, nodeIndent);
1739
+
1740
+ ch = state.input.charCodeAt(state.position);
1741
+
1742
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
1743
+ isPair = true;
1744
+ ch = state.input.charCodeAt(++state.position);
1745
+ skipSeparationSpace(state, true, nodeIndent);
1746
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1747
+ valueNode = state.result;
1748
+ }
1749
+
1750
+ if (isMapping) {
1751
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);
1752
+ } else if (isPair) {
1753
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
1754
+ } else {
1755
+ _result.push(keyNode);
1756
+ }
1757
+
1758
+ skipSeparationSpace(state, true, nodeIndent);
1759
+
1760
+ ch = state.input.charCodeAt(state.position);
1761
+
1762
+ if (ch === 0x2C/* , */) {
1763
+ readNext = true;
1764
+ ch = state.input.charCodeAt(++state.position);
1765
+ } else {
1766
+ readNext = false;
1767
+ }
1768
+ }
1769
+
1770
+ throwError(state, 'unexpected end of the stream within a flow collection');
1771
+ }
1772
+
1773
+ function readBlockScalar(state, nodeIndent) {
1774
+ var captureStart,
1775
+ folding,
1776
+ chomping = CHOMPING_CLIP,
1777
+ didReadContent = false,
1778
+ detectedIndent = false,
1779
+ textIndent = nodeIndent,
1780
+ emptyLines = 0,
1781
+ atMoreIndented = false,
1782
+ tmp,
1783
+ ch;
1784
+
1785
+ ch = state.input.charCodeAt(state.position);
1786
+
1787
+ if (ch === 0x7C/* | */) {
1788
+ folding = false;
1789
+ } else if (ch === 0x3E/* > */) {
1790
+ folding = true;
1791
+ } else {
1792
+ return false;
1793
+ }
1794
+
1795
+ state.kind = 'scalar';
1796
+ state.result = '';
1797
+
1798
+ while (ch !== 0) {
1799
+ ch = state.input.charCodeAt(++state.position);
1800
+
1801
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
1802
+ if (CHOMPING_CLIP === chomping) {
1803
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
1804
+ } else {
1805
+ throwError(state, 'repeat of a chomping mode identifier');
1806
+ }
1807
+
1808
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
1809
+ if (tmp === 0) {
1810
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
1811
+ } else if (!detectedIndent) {
1812
+ textIndent = nodeIndent + tmp - 1;
1813
+ detectedIndent = true;
1814
+ } else {
1815
+ throwError(state, 'repeat of an indentation width identifier');
1816
+ }
1817
+
1818
+ } else {
1819
+ break;
1820
+ }
1821
+ }
1822
+
1823
+ if (is_WHITE_SPACE(ch)) {
1824
+ do { ch = state.input.charCodeAt(++state.position); }
1825
+ while (is_WHITE_SPACE(ch));
1826
+
1827
+ if (ch === 0x23/* # */) {
1828
+ do { ch = state.input.charCodeAt(++state.position); }
1829
+ while (!is_EOL(ch) && (ch !== 0));
1830
+ }
1831
+ }
1832
+
1833
+ while (ch !== 0) {
1834
+ readLineBreak(state);
1835
+ state.lineIndent = 0;
1836
+
1837
+ ch = state.input.charCodeAt(state.position);
1838
+
1839
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
1840
+ (ch === 0x20/* Space */)) {
1841
+ state.lineIndent++;
1842
+ ch = state.input.charCodeAt(++state.position);
1843
+ }
1844
+
1845
+ if (!detectedIndent && state.lineIndent > textIndent) {
1846
+ textIndent = state.lineIndent;
1847
+ }
1848
+
1849
+ if (is_EOL(ch)) {
1850
+ emptyLines++;
1851
+ continue;
1852
+ }
1853
+
1854
+ // End of the scalar.
1855
+ if (state.lineIndent < textIndent) {
1856
+
1857
+ // Perform the chomping.
1858
+ if (chomping === CHOMPING_KEEP) {
1859
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
1860
+ } else if (chomping === CHOMPING_CLIP) {
1861
+ if (didReadContent) { // i.e. only if the scalar is not empty.
1862
+ state.result += '\n';
1863
+ }
1864
+ }
1865
+
1866
+ // Break this `while` cycle and go to the funciton's epilogue.
1867
+ break;
1868
+ }
1869
+
1870
+ // Folded style: use fancy rules to handle line breaks.
1871
+ if (folding) {
1872
+
1873
+ // Lines starting with white space characters (more-indented lines) are not folded.
1874
+ if (is_WHITE_SPACE(ch)) {
1875
+ atMoreIndented = true;
1876
+ // except for the first content line (cf. Example 8.1)
1877
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
1878
+
1879
+ // End of more-indented block.
1880
+ } else if (atMoreIndented) {
1881
+ atMoreIndented = false;
1882
+ state.result += common.repeat('\n', emptyLines + 1);
1883
+
1884
+ // Just one line break - perceive as the same line.
1885
+ } else if (emptyLines === 0) {
1886
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
1887
+ state.result += ' ';
1888
+ }
1889
+
1890
+ // Several line breaks - perceive as different lines.
1891
+ } else {
1892
+ state.result += common.repeat('\n', emptyLines);
1893
+ }
1894
+
1895
+ // Literal style: just add exact number of line breaks between content lines.
1896
+ } else {
1897
+ // Keep all line breaks except the header line break.
1898
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
1899
+ }
1900
+
1901
+ didReadContent = true;
1902
+ detectedIndent = true;
1903
+ emptyLines = 0;
1904
+ captureStart = state.position;
1905
+
1906
+ while (!is_EOL(ch) && (ch !== 0)) {
1907
+ ch = state.input.charCodeAt(++state.position);
1908
+ }
1909
+
1910
+ captureSegment(state, captureStart, state.position, false);
1911
+ }
1912
+
1913
+ return true;
1914
+ }
1915
+
1916
+ function readBlockSequence(state, nodeIndent) {
1917
+ var _line,
1918
+ _tag = state.tag,
1919
+ _anchor = state.anchor,
1920
+ _result = [],
1921
+ following,
1922
+ detected = false,
1923
+ ch;
1924
+
1925
+ if (state.anchor !== null) {
1926
+ state.anchorMap[state.anchor] = _result;
1927
+ }
1928
+
1929
+ ch = state.input.charCodeAt(state.position);
1930
+
1931
+ while (ch !== 0) {
1932
+
1933
+ if (ch !== 0x2D/* - */) {
1934
+ break;
1935
+ }
1936
+
1937
+ following = state.input.charCodeAt(state.position + 1);
1938
+
1939
+ if (!is_WS_OR_EOL(following)) {
1940
+ break;
1941
+ }
1942
+
1943
+ detected = true;
1944
+ state.position++;
1945
+
1946
+ if (skipSeparationSpace(state, true, -1)) {
1947
+ if (state.lineIndent <= nodeIndent) {
1948
+ _result.push(null);
1949
+ ch = state.input.charCodeAt(state.position);
1950
+ continue;
1951
+ }
1952
+ }
1953
+
1954
+ _line = state.line;
1955
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
1956
+ _result.push(state.result);
1957
+ skipSeparationSpace(state, true, -1);
1958
+
1959
+ ch = state.input.charCodeAt(state.position);
1960
+
1961
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
1962
+ throwError(state, 'bad indentation of a sequence entry');
1963
+ } else if (state.lineIndent < nodeIndent) {
1964
+ break;
1965
+ }
1966
+ }
1967
+
1968
+ if (detected) {
1969
+ state.tag = _tag;
1970
+ state.anchor = _anchor;
1971
+ state.kind = 'sequence';
1972
+ state.result = _result;
1973
+ return true;
1974
+ }
1975
+ return false;
1976
+ }
1977
+
1978
+ function readBlockMapping(state, nodeIndent, flowIndent) {
1979
+ var following,
1980
+ allowCompact,
1981
+ _line,
1982
+ _pos,
1983
+ _tag = state.tag,
1984
+ _anchor = state.anchor,
1985
+ _result = {},
1986
+ overridableKeys = {},
1987
+ keyTag = null,
1988
+ keyNode = null,
1989
+ valueNode = null,
1990
+ atExplicitKey = false,
1991
+ detected = false,
1992
+ ch;
1993
+
1994
+ if (state.anchor !== null) {
1995
+ state.anchorMap[state.anchor] = _result;
1996
+ }
1997
+
1998
+ ch = state.input.charCodeAt(state.position);
1999
+
2000
+ while (ch !== 0) {
2001
+ following = state.input.charCodeAt(state.position + 1);
2002
+ _line = state.line; // Save the current line.
2003
+ _pos = state.position;
2004
+
2005
+ //
2006
+ // Explicit notation case. There are two separate blocks:
2007
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
2008
+ //
2009
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
2010
+
2011
+ if (ch === 0x3F/* ? */) {
2012
+ if (atExplicitKey) {
2013
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
2014
+ keyTag = keyNode = valueNode = null;
2015
+ }
2016
+
2017
+ detected = true;
2018
+ atExplicitKey = true;
2019
+ allowCompact = true;
2020
+
2021
+ } else if (atExplicitKey) {
2022
+ // i.e. 0x3A/* : */ === character after the explicit key.
2023
+ atExplicitKey = false;
2024
+ allowCompact = true;
2025
+
2026
+ } else {
2027
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
2028
+ }
2029
+
2030
+ state.position += 1;
2031
+ ch = following;
2032
+
2033
+ //
2034
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
2035
+ //
2036
+ } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
2037
+
2038
+ if (state.line === _line) {
2039
+ ch = state.input.charCodeAt(state.position);
2040
+
2041
+ while (is_WHITE_SPACE(ch)) {
2042
+ ch = state.input.charCodeAt(++state.position);
2043
+ }
2044
+
2045
+ if (ch === 0x3A/* : */) {
2046
+ ch = state.input.charCodeAt(++state.position);
2047
+
2048
+ if (!is_WS_OR_EOL(ch)) {
2049
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
2050
+ }
2051
+
2052
+ if (atExplicitKey) {
2053
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
2054
+ keyTag = keyNode = valueNode = null;
2055
+ }
2056
+
2057
+ detected = true;
2058
+ atExplicitKey = false;
2059
+ allowCompact = false;
2060
+ keyTag = state.tag;
2061
+ keyNode = state.result;
2062
+
2063
+ } else if (detected) {
2064
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed');
2065
+
2066
+ } else {
2067
+ state.tag = _tag;
2068
+ state.anchor = _anchor;
2069
+ return true; // Keep the result of `composeNode`.
2070
+ }
2071
+
2072
+ } else if (detected) {
2073
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
2074
+
2075
+ } else {
2076
+ state.tag = _tag;
2077
+ state.anchor = _anchor;
2078
+ return true; // Keep the result of `composeNode`.
2079
+ }
2080
+
2081
+ } else {
2082
+ break; // Reading is done. Go to the epilogue.
2083
+ }
2084
+
2085
+ //
2086
+ // Common reading code for both explicit and implicit notations.
2087
+ //
2088
+ if (state.line === _line || state.lineIndent > nodeIndent) {
2089
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
2090
+ if (atExplicitKey) {
2091
+ keyNode = state.result;
2092
+ } else {
2093
+ valueNode = state.result;
2094
+ }
2095
+ }
2096
+
2097
+ if (!atExplicitKey) {
2098
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);
2099
+ keyTag = keyNode = valueNode = null;
2100
+ }
2101
+
2102
+ skipSeparationSpace(state, true, -1);
2103
+ ch = state.input.charCodeAt(state.position);
2104
+ }
2105
+
2106
+ if (state.lineIndent > nodeIndent && (ch !== 0)) {
2107
+ throwError(state, 'bad indentation of a mapping entry');
2108
+ } else if (state.lineIndent < nodeIndent) {
2109
+ break;
2110
+ }
2111
+ }
2112
+
2113
+ //
2114
+ // Epilogue.
2115
+ //
2116
+
2117
+ // Special case: last mapping's node contains only the key in explicit notation.
2118
+ if (atExplicitKey) {
2119
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
2120
+ }
2121
+
2122
+ // Expose the resulting mapping.
2123
+ if (detected) {
2124
+ state.tag = _tag;
2125
+ state.anchor = _anchor;
2126
+ state.kind = 'mapping';
2127
+ state.result = _result;
2128
+ }
2129
+
2130
+ return detected;
2131
+ }
2132
+
2133
+ function readTagProperty(state) {
2134
+ var _position,
2135
+ isVerbatim = false,
2136
+ isNamed = false,
2137
+ tagHandle,
2138
+ tagName,
2139
+ ch;
2140
+
2141
+ ch = state.input.charCodeAt(state.position);
2142
+
2143
+ if (ch !== 0x21/* ! */) return false;
2144
+
2145
+ if (state.tag !== null) {
2146
+ throwError(state, 'duplication of a tag property');
2147
+ }
2148
+
2149
+ ch = state.input.charCodeAt(++state.position);
2150
+
2151
+ if (ch === 0x3C/* < */) {
2152
+ isVerbatim = true;
2153
+ ch = state.input.charCodeAt(++state.position);
2154
+
2155
+ } else if (ch === 0x21/* ! */) {
2156
+ isNamed = true;
2157
+ tagHandle = '!!';
2158
+ ch = state.input.charCodeAt(++state.position);
2159
+
2160
+ } else {
2161
+ tagHandle = '!';
2162
+ }
2163
+
2164
+ _position = state.position;
2165
+
2166
+ if (isVerbatim) {
2167
+ do { ch = state.input.charCodeAt(++state.position); }
2168
+ while (ch !== 0 && ch !== 0x3E/* > */);
2169
+
2170
+ if (state.position < state.length) {
2171
+ tagName = state.input.slice(_position, state.position);
2172
+ ch = state.input.charCodeAt(++state.position);
2173
+ } else {
2174
+ throwError(state, 'unexpected end of the stream within a verbatim tag');
2175
+ }
2176
+ } else {
2177
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2178
+
2179
+ if (ch === 0x21/* ! */) {
2180
+ if (!isNamed) {
2181
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
2182
+
2183
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
2184
+ throwError(state, 'named tag handle cannot contain such characters');
2185
+ }
2186
+
2187
+ isNamed = true;
2188
+ _position = state.position + 1;
2189
+ } else {
2190
+ throwError(state, 'tag suffix cannot contain exclamation marks');
2191
+ }
2192
+ }
2193
+
2194
+ ch = state.input.charCodeAt(++state.position);
2195
+ }
2196
+
2197
+ tagName = state.input.slice(_position, state.position);
2198
+
2199
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
2200
+ throwError(state, 'tag suffix cannot contain flow indicator characters');
2201
+ }
2202
+ }
2203
+
2204
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
2205
+ throwError(state, 'tag name cannot contain such characters: ' + tagName);
2206
+ }
2207
+
2208
+ if (isVerbatim) {
2209
+ state.tag = tagName;
2210
+
2211
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
2212
+ state.tag = state.tagMap[tagHandle] + tagName;
2213
+
2214
+ } else if (tagHandle === '!') {
2215
+ state.tag = '!' + tagName;
2216
+
2217
+ } else if (tagHandle === '!!') {
2218
+ state.tag = 'tag:yaml.org,2002:' + tagName;
2219
+
2220
+ } else {
2221
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
2222
+ }
2223
+
2224
+ return true;
2225
+ }
2226
+
2227
+ function readAnchorProperty(state) {
2228
+ var _position,
2229
+ ch;
2230
+
2231
+ ch = state.input.charCodeAt(state.position);
2232
+
2233
+ if (ch !== 0x26/* & */) return false;
2234
+
2235
+ if (state.anchor !== null) {
2236
+ throwError(state, 'duplication of an anchor property');
2237
+ }
2238
+
2239
+ ch = state.input.charCodeAt(++state.position);
2240
+ _position = state.position;
2241
+
2242
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2243
+ ch = state.input.charCodeAt(++state.position);
2244
+ }
2245
+
2246
+ if (state.position === _position) {
2247
+ throwError(state, 'name of an anchor node must contain at least one character');
2248
+ }
2249
+
2250
+ state.anchor = state.input.slice(_position, state.position);
2251
+ return true;
2252
+ }
2253
+
2254
+ function readAlias(state) {
2255
+ var _position, alias,
2256
+ ch;
2257
+
2258
+ ch = state.input.charCodeAt(state.position);
2259
+
2260
+ if (ch !== 0x2A/* * */) return false;
2261
+
2262
+ ch = state.input.charCodeAt(++state.position);
2263
+ _position = state.position;
2264
+
2265
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2266
+ ch = state.input.charCodeAt(++state.position);
2267
+ }
2268
+
2269
+ if (state.position === _position) {
2270
+ throwError(state, 'name of an alias node must contain at least one character');
2271
+ }
2272
+
2273
+ alias = state.input.slice(_position, state.position);
2274
+
2275
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
2276
+ throwError(state, 'unidentified alias "' + alias + '"');
2277
+ }
2278
+
2279
+ state.result = state.anchorMap[alias];
2280
+ skipSeparationSpace(state, true, -1);
2281
+ return true;
2282
+ }
2283
+
2284
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
2285
+ var allowBlockStyles,
2286
+ allowBlockScalars,
2287
+ allowBlockCollections,
2288
+ indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
2289
+ atNewLine = false,
2290
+ hasContent = false,
2291
+ typeIndex,
2292
+ typeQuantity,
2293
+ type,
2294
+ flowIndent,
2295
+ blockIndent;
2296
+
2297
+ if (state.listener !== null) {
2298
+ state.listener('open', state);
2299
+ }
2300
+
2301
+ state.tag = null;
2302
+ state.anchor = null;
2303
+ state.kind = null;
2304
+ state.result = null;
2305
+
2306
+ allowBlockStyles = allowBlockScalars = allowBlockCollections =
2307
+ CONTEXT_BLOCK_OUT === nodeContext ||
2308
+ CONTEXT_BLOCK_IN === nodeContext;
2309
+
2310
+ if (allowToSeek) {
2311
+ if (skipSeparationSpace(state, true, -1)) {
2312
+ atNewLine = true;
2313
+
2314
+ if (state.lineIndent > parentIndent) {
2315
+ indentStatus = 1;
2316
+ } else if (state.lineIndent === parentIndent) {
2317
+ indentStatus = 0;
2318
+ } else if (state.lineIndent < parentIndent) {
2319
+ indentStatus = -1;
2320
+ }
2321
+ }
2322
+ }
2323
+
2324
+ if (indentStatus === 1) {
2325
+ while (readTagProperty(state) || readAnchorProperty(state)) {
2326
+ if (skipSeparationSpace(state, true, -1)) {
2327
+ atNewLine = true;
2328
+ allowBlockCollections = allowBlockStyles;
2329
+
2330
+ if (state.lineIndent > parentIndent) {
2331
+ indentStatus = 1;
2332
+ } else if (state.lineIndent === parentIndent) {
2333
+ indentStatus = 0;
2334
+ } else if (state.lineIndent < parentIndent) {
2335
+ indentStatus = -1;
2336
+ }
2337
+ } else {
2338
+ allowBlockCollections = false;
2339
+ }
2340
+ }
2341
+ }
2342
+
2343
+ if (allowBlockCollections) {
2344
+ allowBlockCollections = atNewLine || allowCompact;
2345
+ }
2346
+
2347
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
2348
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
2349
+ flowIndent = parentIndent;
2350
+ } else {
2351
+ flowIndent = parentIndent + 1;
2352
+ }
2353
+
2354
+ blockIndent = state.position - state.lineStart;
2355
+
2356
+ if (indentStatus === 1) {
2357
+ if (allowBlockCollections &&
2358
+ (readBlockSequence(state, blockIndent) ||
2359
+ readBlockMapping(state, blockIndent, flowIndent)) ||
2360
+ readFlowCollection(state, flowIndent)) {
2361
+ hasContent = true;
2362
+ } else {
2363
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
2364
+ readSingleQuotedScalar(state, flowIndent) ||
2365
+ readDoubleQuotedScalar(state, flowIndent)) {
2366
+ hasContent = true;
2367
+
2368
+ } else if (readAlias(state)) {
2369
+ hasContent = true;
2370
+
2371
+ if (state.tag !== null || state.anchor !== null) {
2372
+ throwError(state, 'alias node should not have any properties');
2373
+ }
2374
+
2375
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
2376
+ hasContent = true;
2377
+
2378
+ if (state.tag === null) {
2379
+ state.tag = '?';
2380
+ }
2381
+ }
2382
+
2383
+ if (state.anchor !== null) {
2384
+ state.anchorMap[state.anchor] = state.result;
2385
+ }
2386
+ }
2387
+ } else if (indentStatus === 0) {
2388
+ // Special case: block sequences are allowed to have same indentation level as the parent.
2389
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
2390
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
2391
+ }
2392
+ }
2393
+
2394
+ if (state.tag !== null && state.tag !== '!') {
2395
+ if (state.tag === '?') {
2396
+ // Implicit resolving is not allowed for non-scalar types, and '?'
2397
+ // non-specific tag is only automatically assigned to plain scalars.
2398
+ //
2399
+ // We only need to check kind conformity in case user explicitly assigns '?'
2400
+ // tag, for example like this: "!<?> [0]"
2401
+ //
2402
+ if (state.result !== null && state.kind !== 'scalar') {
2403
+ throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
2404
+ }
2405
+
2406
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
2407
+ type = state.implicitTypes[typeIndex];
2408
+
2409
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
2410
+ state.result = type.construct(state.result);
2411
+ state.tag = type.tag;
2412
+ if (state.anchor !== null) {
2413
+ state.anchorMap[state.anchor] = state.result;
2414
+ }
2415
+ break;
2416
+ }
2417
+ }
2418
+ } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
2419
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
2420
+
2421
+ if (state.result !== null && type.kind !== state.kind) {
2422
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
2423
+ }
2424
+
2425
+ if (!type.resolve(state.result)) { // `state.result` updated in resolver if matched
2426
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
2427
+ } else {
2428
+ state.result = type.construct(state.result);
2429
+ if (state.anchor !== null) {
2430
+ state.anchorMap[state.anchor] = state.result;
2431
+ }
2432
+ }
2433
+ } else {
2434
+ throwError(state, 'unknown tag !<' + state.tag + '>');
2435
+ }
2436
+ }
2437
+
2438
+ if (state.listener !== null) {
2439
+ state.listener('close', state);
2440
+ }
2441
+ return state.tag !== null || state.anchor !== null || hasContent;
2442
+ }
2443
+
2444
+ function readDocument(state) {
2445
+ var documentStart = state.position,
2446
+ _position,
2447
+ directiveName,
2448
+ directiveArgs,
2449
+ hasDirectives = false,
2450
+ ch;
2451
+
2452
+ state.version = null;
2453
+ state.checkLineBreaks = state.legacy;
2454
+ state.tagMap = {};
2455
+ state.anchorMap = {};
2456
+
2457
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2458
+ skipSeparationSpace(state, true, -1);
2459
+
2460
+ ch = state.input.charCodeAt(state.position);
2461
+
2462
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
2463
+ break;
2464
+ }
2465
+
2466
+ hasDirectives = true;
2467
+ ch = state.input.charCodeAt(++state.position);
2468
+ _position = state.position;
2469
+
2470
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2471
+ ch = state.input.charCodeAt(++state.position);
2472
+ }
2473
+
2474
+ directiveName = state.input.slice(_position, state.position);
2475
+ directiveArgs = [];
2476
+
2477
+ if (directiveName.length < 1) {
2478
+ throwError(state, 'directive name must not be less than one character in length');
2479
+ }
2480
+
2481
+ while (ch !== 0) {
2482
+ while (is_WHITE_SPACE(ch)) {
2483
+ ch = state.input.charCodeAt(++state.position);
2484
+ }
2485
+
2486
+ if (ch === 0x23/* # */) {
2487
+ do { ch = state.input.charCodeAt(++state.position); }
2488
+ while (ch !== 0 && !is_EOL(ch));
2489
+ break;
2490
+ }
2491
+
2492
+ if (is_EOL(ch)) break;
2493
+
2494
+ _position = state.position;
2495
+
2496
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2497
+ ch = state.input.charCodeAt(++state.position);
2498
+ }
2499
+
2500
+ directiveArgs.push(state.input.slice(_position, state.position));
2501
+ }
2502
+
2503
+ if (ch !== 0) readLineBreak(state);
2504
+
2505
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
2506
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
2507
+ } else {
2508
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
2509
+ }
2510
+ }
2511
+
2512
+ skipSeparationSpace(state, true, -1);
2513
+
2514
+ if (state.lineIndent === 0 &&
2515
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
2516
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
2517
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
2518
+ state.position += 3;
2519
+ skipSeparationSpace(state, true, -1);
2520
+
2521
+ } else if (hasDirectives) {
2522
+ throwError(state, 'directives end mark is expected');
2523
+ }
2524
+
2525
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
2526
+ skipSeparationSpace(state, true, -1);
2527
+
2528
+ if (state.checkLineBreaks &&
2529
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
2530
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content');
2531
+ }
2532
+
2533
+ state.documents.push(state.result);
2534
+
2535
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
2536
+
2537
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
2538
+ state.position += 3;
2539
+ skipSeparationSpace(state, true, -1);
2540
+ }
2541
+ return;
2542
+ }
2543
+
2544
+ if (state.position < (state.length - 1)) {
2545
+ throwError(state, 'end of the stream or a document separator is expected');
2546
+ } else {
2547
+ return;
2548
+ }
2549
+ }
2550
+
2551
+
2552
+ function loadDocuments(input, options) {
2553
+ input = String(input);
2554
+ options = options || {};
2555
+
2556
+ if (input.length !== 0) {
2557
+
2558
+ // Add tailing `\n` if not exists
2559
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
2560
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
2561
+ input += '\n';
2562
+ }
2563
+
2564
+ // Strip BOM
2565
+ if (input.charCodeAt(0) === 0xFEFF) {
2566
+ input = input.slice(1);
2567
+ }
2568
+ }
2569
+
2570
+ var state = new State(input, options);
2571
+
2572
+ var nullpos = input.indexOf('\0');
2573
+
2574
+ if (nullpos !== -1) {
2575
+ state.position = nullpos;
2576
+ throwError(state, 'null byte is not allowed in input');
2577
+ }
2578
+
2579
+ // Use 0 as string terminator. That significantly simplifies bounds check.
2580
+ state.input += '\0';
2581
+
2582
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
2583
+ state.lineIndent += 1;
2584
+ state.position += 1;
2585
+ }
2586
+
2587
+ while (state.position < (state.length - 1)) {
2588
+ readDocument(state);
2589
+ }
2590
+
2591
+ return state.documents;
2592
+ }
2593
+
2594
+
2595
+ function loadAll(input, iterator, options) {
2596
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
2597
+ options = iterator;
2598
+ iterator = null;
2599
+ }
2600
+
2601
+ var documents = loadDocuments(input, options);
2602
+
2603
+ if (typeof iterator !== 'function') {
2604
+ return documents;
2605
+ }
2606
+
2607
+ for (var index = 0, length = documents.length; index < length; index += 1) {
2608
+ iterator(documents[index]);
2609
+ }
2610
+ }
2611
+
2612
+
2613
+ function load(input, options) {
2614
+ var documents = loadDocuments(input, options);
2615
+
2616
+ if (documents.length === 0) {
2617
+ /*eslint-disable no-undefined*/
2618
+ return undefined;
2619
+ } else if (documents.length === 1) {
2620
+ return documents[0];
2621
+ }
2622
+ throw new YAMLException('expected a single document in the stream, but found more');
2623
+ }
2624
+
2625
+
2626
+ function safeLoadAll(input, iterator, options) {
2627
+ if (typeof iterator === 'object' && iterator !== null && typeof options === 'undefined') {
2628
+ options = iterator;
2629
+ iterator = null;
2630
+ }
2631
+
2632
+ return loadAll(input, iterator, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
2633
+ }
2634
+
2635
+
2636
+ function safeLoad(input, options) {
2637
+ return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
2638
+ }
2639
+
2640
+
2641
+ module.exports.loadAll = loadAll;
2642
+ module.exports.load = load;
2643
+ module.exports.safeLoadAll = safeLoadAll;
2644
+ module.exports.safeLoad = safeLoad;
2645
+
2646
+ },{"./common":2,"./exception":4,"./mark":6,"./schema/default_full":9,"./schema/default_safe":10}],6:[function(require,module,exports){
2647
+ 'use strict';
2648
+
2649
+
2650
+ var common = require('./common');
2651
+
2652
+
2653
+ function Mark(name, buffer, position, line, column) {
2654
+ this.name = name;
2655
+ this.buffer = buffer;
2656
+ this.position = position;
2657
+ this.line = line;
2658
+ this.column = column;
2659
+ }
2660
+
2661
+
2662
+ Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
2663
+ var head, start, tail, end, snippet;
2664
+
2665
+ if (!this.buffer) return null;
2666
+
2667
+ indent = indent || 4;
2668
+ maxLength = maxLength || 75;
2669
+
2670
+ head = '';
2671
+ start = this.position;
2672
+
2673
+ while (start > 0 && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {
2674
+ start -= 1;
2675
+ if (this.position - start > (maxLength / 2 - 1)) {
2676
+ head = ' ... ';
2677
+ start += 5;
2678
+ break;
2679
+ }
2680
+ }
2681
+
2682
+ tail = '';
2683
+ end = this.position;
2684
+
2685
+ while (end < this.buffer.length && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end)) === -1) {
2686
+ end += 1;
2687
+ if (end - this.position > (maxLength / 2 - 1)) {
2688
+ tail = ' ... ';
2689
+ end -= 5;
2690
+ break;
2691
+ }
2692
+ }
2693
+
2694
+ snippet = this.buffer.slice(start, end);
2695
+
2696
+ return common.repeat(' ', indent) + head + snippet + tail + '\n' +
2697
+ common.repeat(' ', indent + this.position - start + head.length) + '^';
2698
+ };
2699
+
2700
+
2701
+ Mark.prototype.toString = function toString(compact) {
2702
+ var snippet, where = '';
2703
+
2704
+ if (this.name) {
2705
+ where += 'in "' + this.name + '" ';
2706
+ }
2707
+
2708
+ where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
2709
+
2710
+ if (!compact) {
2711
+ snippet = this.getSnippet();
2712
+
2713
+ if (snippet) {
2714
+ where += ':\n' + snippet;
2715
+ }
2716
+ }
2717
+
2718
+ return where;
2719
+ };
2720
+
2721
+
2722
+ module.exports = Mark;
2723
+
2724
+ },{"./common":2}],7:[function(require,module,exports){
2725
+ 'use strict';
2726
+
2727
+ /*eslint-disable max-len*/
2728
+
2729
+ var common = require('./common');
2730
+ var YAMLException = require('./exception');
2731
+ var Type = require('./type');
2732
+
2733
+
2734
+ function compileList(schema, name, result) {
2735
+ var exclude = [];
2736
+
2737
+ schema.include.forEach(function (includedSchema) {
2738
+ result = compileList(includedSchema, name, result);
2739
+ });
2740
+
2741
+ schema[name].forEach(function (currentType) {
2742
+ result.forEach(function (previousType, previousIndex) {
2743
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
2744
+ exclude.push(previousIndex);
2745
+ }
2746
+ });
2747
+
2748
+ result.push(currentType);
2749
+ });
2750
+
2751
+ return result.filter(function (type, index) {
2752
+ return exclude.indexOf(index) === -1;
2753
+ });
2754
+ }
2755
+
2756
+
2757
+ function compileMap(/* lists... */) {
2758
+ var result = {
2759
+ scalar: {},
2760
+ sequence: {},
2761
+ mapping: {},
2762
+ fallback: {}
2763
+ }, index, length;
2764
+
2765
+ function collectType(type) {
2766
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
2767
+ }
2768
+
2769
+ for (index = 0, length = arguments.length; index < length; index += 1) {
2770
+ arguments[index].forEach(collectType);
2771
+ }
2772
+ return result;
2773
+ }
2774
+
2775
+
2776
+ function Schema(definition) {
2777
+ this.include = definition.include || [];
2778
+ this.implicit = definition.implicit || [];
2779
+ this.explicit = definition.explicit || [];
2780
+
2781
+ this.implicit.forEach(function (type) {
2782
+ if (type.loadKind && type.loadKind !== 'scalar') {
2783
+ throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
2784
+ }
2785
+ });
2786
+
2787
+ this.compiledImplicit = compileList(this, 'implicit', []);
2788
+ this.compiledExplicit = compileList(this, 'explicit', []);
2789
+ this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
2790
+ }
2791
+
2792
+
2793
+ Schema.DEFAULT = null;
2794
+
2795
+
2796
+ Schema.create = function createSchema() {
2797
+ var schemas, types;
2798
+
2799
+ switch (arguments.length) {
2800
+ case 1:
2801
+ schemas = Schema.DEFAULT;
2802
+ types = arguments[0];
2803
+ break;
2804
+
2805
+ case 2:
2806
+ schemas = arguments[0];
2807
+ types = arguments[1];
2808
+ break;
2809
+
2810
+ default:
2811
+ throw new YAMLException('Wrong number of arguments for Schema.create function');
2812
+ }
2813
+
2814
+ schemas = common.toArray(schemas);
2815
+ types = common.toArray(types);
2816
+
2817
+ if (!schemas.every(function (schema) { return schema instanceof Schema; })) {
2818
+ throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
2819
+ }
2820
+
2821
+ if (!types.every(function (type) { return type instanceof Type; })) {
2822
+ throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
2823
+ }
2824
+
2825
+ return new Schema({
2826
+ include: schemas,
2827
+ explicit: types
2828
+ });
2829
+ };
2830
+
2831
+
2832
+ module.exports = Schema;
2833
+
2834
+ },{"./common":2,"./exception":4,"./type":13}],8:[function(require,module,exports){
2835
+ // Standard YAML's Core schema.
2836
+ // http://www.yaml.org/spec/1.2/spec.html#id2804923
2837
+ //
2838
+ // NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
2839
+ // So, Core schema has no distinctions from JSON schema is JS-YAML.
2840
+
2841
+
2842
+ 'use strict';
2843
+
2844
+
2845
+ var Schema = require('../schema');
2846
+
2847
+
2848
+ module.exports = new Schema({
2849
+ include: [
2850
+ require('./json')
2851
+ ]
2852
+ });
2853
+
2854
+ },{"../schema":7,"./json":12}],9:[function(require,module,exports){
2855
+ // JS-YAML's default schema for `load` function.
2856
+ // It is not described in the YAML specification.
2857
+ //
2858
+ // This schema is based on JS-YAML's default safe schema and includes
2859
+ // JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.
2860
+ //
2861
+ // Also this schema is used as default base schema at `Schema.create` function.
2862
+
2863
+
2864
+ 'use strict';
2865
+
2866
+
2867
+ var Schema = require('../schema');
2868
+
2869
+
2870
+ module.exports = Schema.DEFAULT = new Schema({
2871
+ include: [
2872
+ require('./default_safe')
2873
+ ],
2874
+ explicit: [
2875
+ require('../type/js/undefined'),
2876
+ require('../type/js/regexp'),
2877
+ require('../type/js/function')
2878
+ ]
2879
+ });
2880
+
2881
+ },{"../schema":7,"../type/js/function":18,"../type/js/regexp":19,"../type/js/undefined":20,"./default_safe":10}],10:[function(require,module,exports){
2882
+ // JS-YAML's default schema for `safeLoad` function.
2883
+ // It is not described in the YAML specification.
2884
+ //
2885
+ // This schema is based on standard YAML's Core schema and includes most of
2886
+ // extra types described at YAML tag repository. (http://yaml.org/type/)
2887
+
2888
+
2889
+ 'use strict';
2890
+
2891
+
2892
+ var Schema = require('../schema');
2893
+
2894
+
2895
+ module.exports = new Schema({
2896
+ include: [
2897
+ require('./core')
2898
+ ],
2899
+ implicit: [
2900
+ require('../type/timestamp'),
2901
+ require('../type/merge')
2902
+ ],
2903
+ explicit: [
2904
+ require('../type/binary'),
2905
+ require('../type/omap'),
2906
+ require('../type/pairs'),
2907
+ require('../type/set')
2908
+ ]
2909
+ });
2910
+
2911
+ },{"../schema":7,"../type/binary":14,"../type/merge":22,"../type/omap":24,"../type/pairs":25,"../type/set":27,"../type/timestamp":29,"./core":8}],11:[function(require,module,exports){
2912
+ // Standard YAML's Failsafe schema.
2913
+ // http://www.yaml.org/spec/1.2/spec.html#id2802346
2914
+
2915
+
2916
+ 'use strict';
2917
+
2918
+
2919
+ var Schema = require('../schema');
2920
+
2921
+
2922
+ module.exports = new Schema({
2923
+ explicit: [
2924
+ require('../type/str'),
2925
+ require('../type/seq'),
2926
+ require('../type/map')
2927
+ ]
2928
+ });
2929
+
2930
+ },{"../schema":7,"../type/map":21,"../type/seq":26,"../type/str":28}],12:[function(require,module,exports){
2931
+ // Standard YAML's JSON schema.
2932
+ // http://www.yaml.org/spec/1.2/spec.html#id2803231
2933
+ //
2934
+ // NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
2935
+ // So, this schema is not such strict as defined in the YAML specification.
2936
+ // It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
2937
+
2938
+
2939
+ 'use strict';
2940
+
2941
+
2942
+ var Schema = require('../schema');
2943
+
2944
+
2945
+ module.exports = new Schema({
2946
+ include: [
2947
+ require('./failsafe')
2948
+ ],
2949
+ implicit: [
2950
+ require('../type/null'),
2951
+ require('../type/bool'),
2952
+ require('../type/int'),
2953
+ require('../type/float')
2954
+ ]
2955
+ });
2956
+
2957
+ },{"../schema":7,"../type/bool":15,"../type/float":16,"../type/int":17,"../type/null":23,"./failsafe":11}],13:[function(require,module,exports){
2958
+ 'use strict';
2959
+
2960
+ var YAMLException = require('./exception');
2961
+
2962
+ var TYPE_CONSTRUCTOR_OPTIONS = [
2963
+ 'kind',
2964
+ 'resolve',
2965
+ 'construct',
2966
+ 'instanceOf',
2967
+ 'predicate',
2968
+ 'represent',
2969
+ 'defaultStyle',
2970
+ 'styleAliases'
2971
+ ];
2972
+
2973
+ var YAML_NODE_KINDS = [
2974
+ 'scalar',
2975
+ 'sequence',
2976
+ 'mapping'
2977
+ ];
2978
+
2979
+ function compileStyleAliases(map) {
2980
+ var result = {};
2981
+
2982
+ if (map !== null) {
2983
+ Object.keys(map).forEach(function (style) {
2984
+ map[style].forEach(function (alias) {
2985
+ result[String(alias)] = style;
2986
+ });
2987
+ });
2988
+ }
2989
+
2990
+ return result;
2991
+ }
2992
+
2993
+ function Type(tag, options) {
2994
+ options = options || {};
2995
+
2996
+ Object.keys(options).forEach(function (name) {
2997
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
2998
+ throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
2999
+ }
3000
+ });
3001
+
3002
+ // TODO: Add tag format check.
3003
+ this.tag = tag;
3004
+ this.kind = options['kind'] || null;
3005
+ this.resolve = options['resolve'] || function () { return true; };
3006
+ this.construct = options['construct'] || function (data) { return data; };
3007
+ this.instanceOf = options['instanceOf'] || null;
3008
+ this.predicate = options['predicate'] || null;
3009
+ this.represent = options['represent'] || null;
3010
+ this.defaultStyle = options['defaultStyle'] || null;
3011
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
3012
+
3013
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
3014
+ throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
3015
+ }
3016
+ }
3017
+
3018
+ module.exports = Type;
3019
+
3020
+ },{"./exception":4}],14:[function(require,module,exports){
3021
+ 'use strict';
3022
+
3023
+ /*eslint-disable no-bitwise*/
3024
+
3025
+ var NodeBuffer;
3026
+
3027
+ try {
3028
+ // A trick for browserified version, to not include `Buffer` shim
3029
+ var _require = require;
3030
+ NodeBuffer = _require('buffer').Buffer;
3031
+ } catch (__) {}
3032
+
3033
+ var Type = require('../type');
3034
+
3035
+
3036
+ // [ 64, 65, 66 ] -> [ padding, CR, LF ]
3037
+ var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
3038
+
3039
+
3040
+ function resolveYamlBinary(data) {
3041
+ if (data === null) return false;
3042
+
3043
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
3044
+
3045
+ // Convert one by one.
3046
+ for (idx = 0; idx < max; idx++) {
3047
+ code = map.indexOf(data.charAt(idx));
3048
+
3049
+ // Skip CR/LF
3050
+ if (code > 64) continue;
3051
+
3052
+ // Fail on illegal characters
3053
+ if (code < 0) return false;
3054
+
3055
+ bitlen += 6;
3056
+ }
3057
+
3058
+ // If there are any bits left, source was corrupted
3059
+ return (bitlen % 8) === 0;
3060
+ }
3061
+
3062
+ function constructYamlBinary(data) {
3063
+ var idx, tailbits,
3064
+ input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
3065
+ max = input.length,
3066
+ map = BASE64_MAP,
3067
+ bits = 0,
3068
+ result = [];
3069
+
3070
+ // Collect by 6*4 bits (3 bytes)
3071
+
3072
+ for (idx = 0; idx < max; idx++) {
3073
+ if ((idx % 4 === 0) && idx) {
3074
+ result.push((bits >> 16) & 0xFF);
3075
+ result.push((bits >> 8) & 0xFF);
3076
+ result.push(bits & 0xFF);
3077
+ }
3078
+
3079
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
3080
+ }
3081
+
3082
+ // Dump tail
3083
+
3084
+ tailbits = (max % 4) * 6;
3085
+
3086
+ if (tailbits === 0) {
3087
+ result.push((bits >> 16) & 0xFF);
3088
+ result.push((bits >> 8) & 0xFF);
3089
+ result.push(bits & 0xFF);
3090
+ } else if (tailbits === 18) {
3091
+ result.push((bits >> 10) & 0xFF);
3092
+ result.push((bits >> 2) & 0xFF);
3093
+ } else if (tailbits === 12) {
3094
+ result.push((bits >> 4) & 0xFF);
3095
+ }
3096
+
3097
+ // Wrap into Buffer for NodeJS and leave Array for browser
3098
+ if (NodeBuffer) {
3099
+ // Support node 6.+ Buffer API when available
3100
+ return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
3101
+ }
3102
+
3103
+ return result;
3104
+ }
3105
+
3106
+ function representYamlBinary(object /*, style*/) {
3107
+ var result = '', bits = 0, idx, tail,
3108
+ max = object.length,
3109
+ map = BASE64_MAP;
3110
+
3111
+ // Convert every three bytes to 4 ASCII characters.
3112
+
3113
+ for (idx = 0; idx < max; idx++) {
3114
+ if ((idx % 3 === 0) && idx) {
3115
+ result += map[(bits >> 18) & 0x3F];
3116
+ result += map[(bits >> 12) & 0x3F];
3117
+ result += map[(bits >> 6) & 0x3F];
3118
+ result += map[bits & 0x3F];
3119
+ }
3120
+
3121
+ bits = (bits << 8) + object[idx];
3122
+ }
3123
+
3124
+ // Dump tail
3125
+
3126
+ tail = max % 3;
3127
+
3128
+ if (tail === 0) {
3129
+ result += map[(bits >> 18) & 0x3F];
3130
+ result += map[(bits >> 12) & 0x3F];
3131
+ result += map[(bits >> 6) & 0x3F];
3132
+ result += map[bits & 0x3F];
3133
+ } else if (tail === 2) {
3134
+ result += map[(bits >> 10) & 0x3F];
3135
+ result += map[(bits >> 4) & 0x3F];
3136
+ result += map[(bits << 2) & 0x3F];
3137
+ result += map[64];
3138
+ } else if (tail === 1) {
3139
+ result += map[(bits >> 2) & 0x3F];
3140
+ result += map[(bits << 4) & 0x3F];
3141
+ result += map[64];
3142
+ result += map[64];
3143
+ }
3144
+
3145
+ return result;
3146
+ }
3147
+
3148
+ function isBinary(object) {
3149
+ return NodeBuffer && NodeBuffer.isBuffer(object);
3150
+ }
3151
+
3152
+ module.exports = new Type('tag:yaml.org,2002:binary', {
3153
+ kind: 'scalar',
3154
+ resolve: resolveYamlBinary,
3155
+ construct: constructYamlBinary,
3156
+ predicate: isBinary,
3157
+ represent: representYamlBinary
3158
+ });
3159
+
3160
+ },{"../type":13}],15:[function(require,module,exports){
3161
+ 'use strict';
3162
+
3163
+ var Type = require('../type');
3164
+
3165
+ function resolveYamlBoolean(data) {
3166
+ if (data === null) return false;
3167
+
3168
+ var max = data.length;
3169
+
3170
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
3171
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
3172
+ }
3173
+
3174
+ function constructYamlBoolean(data) {
3175
+ return data === 'true' ||
3176
+ data === 'True' ||
3177
+ data === 'TRUE';
3178
+ }
3179
+
3180
+ function isBoolean(object) {
3181
+ return Object.prototype.toString.call(object) === '[object Boolean]';
3182
+ }
3183
+
3184
+ module.exports = new Type('tag:yaml.org,2002:bool', {
3185
+ kind: 'scalar',
3186
+ resolve: resolveYamlBoolean,
3187
+ construct: constructYamlBoolean,
3188
+ predicate: isBoolean,
3189
+ represent: {
3190
+ lowercase: function (object) { return object ? 'true' : 'false'; },
3191
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
3192
+ camelcase: function (object) { return object ? 'True' : 'False'; }
3193
+ },
3194
+ defaultStyle: 'lowercase'
3195
+ });
3196
+
3197
+ },{"../type":13}],16:[function(require,module,exports){
3198
+ 'use strict';
3199
+
3200
+ var common = require('../common');
3201
+ var Type = require('../type');
3202
+
3203
+ var YAML_FLOAT_PATTERN = new RegExp(
3204
+ // 2.5e4, 2.5 and integers
3205
+ '^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
3206
+ // .2e4, .2
3207
+ // special case, seems not from spec
3208
+ '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
3209
+ // 20:59
3210
+ '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' +
3211
+ // .inf
3212
+ '|[-+]?\\.(?:inf|Inf|INF)' +
3213
+ // .nan
3214
+ '|\\.(?:nan|NaN|NAN))$');
3215
+
3216
+ function resolveYamlFloat(data) {
3217
+ if (data === null) return false;
3218
+
3219
+ if (!YAML_FLOAT_PATTERN.test(data) ||
3220
+ // Quick hack to not allow integers end with `_`
3221
+ // Probably should update regexp & check speed
3222
+ data[data.length - 1] === '_') {
3223
+ return false;
3224
+ }
3225
+
3226
+ return true;
3227
+ }
3228
+
3229
+ function constructYamlFloat(data) {
3230
+ var value, sign, base, digits;
3231
+
3232
+ value = data.replace(/_/g, '').toLowerCase();
3233
+ sign = value[0] === '-' ? -1 : 1;
3234
+ digits = [];
3235
+
3236
+ if ('+-'.indexOf(value[0]) >= 0) {
3237
+ value = value.slice(1);
3238
+ }
3239
+
3240
+ if (value === '.inf') {
3241
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
3242
+
3243
+ } else if (value === '.nan') {
3244
+ return NaN;
3245
+
3246
+ } else if (value.indexOf(':') >= 0) {
3247
+ value.split(':').forEach(function (v) {
3248
+ digits.unshift(parseFloat(v, 10));
3249
+ });
3250
+
3251
+ value = 0.0;
3252
+ base = 1;
3253
+
3254
+ digits.forEach(function (d) {
3255
+ value += d * base;
3256
+ base *= 60;
3257
+ });
3258
+
3259
+ return sign * value;
3260
+
3261
+ }
3262
+ return sign * parseFloat(value, 10);
3263
+ }
3264
+
3265
+
3266
+ var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
3267
+
3268
+ function representYamlFloat(object, style) {
3269
+ var res;
3270
+
3271
+ if (isNaN(object)) {
3272
+ switch (style) {
3273
+ case 'lowercase': return '.nan';
3274
+ case 'uppercase': return '.NAN';
3275
+ case 'camelcase': return '.NaN';
3276
+ }
3277
+ } else if (Number.POSITIVE_INFINITY === object) {
3278
+ switch (style) {
3279
+ case 'lowercase': return '.inf';
3280
+ case 'uppercase': return '.INF';
3281
+ case 'camelcase': return '.Inf';
3282
+ }
3283
+ } else if (Number.NEGATIVE_INFINITY === object) {
3284
+ switch (style) {
3285
+ case 'lowercase': return '-.inf';
3286
+ case 'uppercase': return '-.INF';
3287
+ case 'camelcase': return '-.Inf';
3288
+ }
3289
+ } else if (common.isNegativeZero(object)) {
3290
+ return '-0.0';
3291
+ }
3292
+
3293
+ res = object.toString(10);
3294
+
3295
+ // JS stringifier can build scientific format without dots: 5e-100,
3296
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
3297
+
3298
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
3299
+ }
3300
+
3301
+ function isFloat(object) {
3302
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
3303
+ (object % 1 !== 0 || common.isNegativeZero(object));
3304
+ }
3305
+
3306
+ module.exports = new Type('tag:yaml.org,2002:float', {
3307
+ kind: 'scalar',
3308
+ resolve: resolveYamlFloat,
3309
+ construct: constructYamlFloat,
3310
+ predicate: isFloat,
3311
+ represent: representYamlFloat,
3312
+ defaultStyle: 'lowercase'
3313
+ });
3314
+
3315
+ },{"../common":2,"../type":13}],17:[function(require,module,exports){
3316
+ 'use strict';
3317
+
3318
+ var common = require('../common');
3319
+ var Type = require('../type');
3320
+
3321
+ function isHexCode(c) {
3322
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
3323
+ ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
3324
+ ((0x61/* a */ <= c) && (c <= 0x66/* f */));
3325
+ }
3326
+
3327
+ function isOctCode(c) {
3328
+ return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
3329
+ }
3330
+
3331
+ function isDecCode(c) {
3332
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
3333
+ }
3334
+
3335
+ function resolveYamlInteger(data) {
3336
+ if (data === null) return false;
3337
+
3338
+ var max = data.length,
3339
+ index = 0,
3340
+ hasDigits = false,
3341
+ ch;
3342
+
3343
+ if (!max) return false;
3344
+
3345
+ ch = data[index];
3346
+
3347
+ // sign
3348
+ if (ch === '-' || ch === '+') {
3349
+ ch = data[++index];
3350
+ }
3351
+
3352
+ if (ch === '0') {
3353
+ // 0
3354
+ if (index + 1 === max) return true;
3355
+ ch = data[++index];
3356
+
3357
+ // base 2, base 8, base 16
3358
+
3359
+ if (ch === 'b') {
3360
+ // base 2
3361
+ index++;
3362
+
3363
+ for (; index < max; index++) {
3364
+ ch = data[index];
3365
+ if (ch === '_') continue;
3366
+ if (ch !== '0' && ch !== '1') return false;
3367
+ hasDigits = true;
3368
+ }
3369
+ return hasDigits && ch !== '_';
3370
+ }
3371
+
3372
+
3373
+ if (ch === 'x') {
3374
+ // base 16
3375
+ index++;
3376
+
3377
+ for (; index < max; index++) {
3378
+ ch = data[index];
3379
+ if (ch === '_') continue;
3380
+ if (!isHexCode(data.charCodeAt(index))) return false;
3381
+ hasDigits = true;
3382
+ }
3383
+ return hasDigits && ch !== '_';
3384
+ }
3385
+
3386
+ // base 8
3387
+ for (; index < max; index++) {
3388
+ ch = data[index];
3389
+ if (ch === '_') continue;
3390
+ if (!isOctCode(data.charCodeAt(index))) return false;
3391
+ hasDigits = true;
3392
+ }
3393
+ return hasDigits && ch !== '_';
3394
+ }
3395
+
3396
+ // base 10 (except 0) or base 60
3397
+
3398
+ // value should not start with `_`;
3399
+ if (ch === '_') return false;
3400
+
3401
+ for (; index < max; index++) {
3402
+ ch = data[index];
3403
+ if (ch === '_') continue;
3404
+ if (ch === ':') break;
3405
+ if (!isDecCode(data.charCodeAt(index))) {
3406
+ return false;
3407
+ }
3408
+ hasDigits = true;
3409
+ }
3410
+
3411
+ // Should have digits and should not end with `_`
3412
+ if (!hasDigits || ch === '_') return false;
3413
+
3414
+ // if !base60 - done;
3415
+ if (ch !== ':') return true;
3416
+
3417
+ // base60 almost not used, no needs to optimize
3418
+ return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
3419
+ }
3420
+
3421
+ function constructYamlInteger(data) {
3422
+ var value = data, sign = 1, ch, base, digits = [];
3423
+
3424
+ if (value.indexOf('_') !== -1) {
3425
+ value = value.replace(/_/g, '');
3426
+ }
3427
+
3428
+ ch = value[0];
3429
+
3430
+ if (ch === '-' || ch === '+') {
3431
+ if (ch === '-') sign = -1;
3432
+ value = value.slice(1);
3433
+ ch = value[0];
3434
+ }
3435
+
3436
+ if (value === '0') return 0;
3437
+
3438
+ if (ch === '0') {
3439
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
3440
+ if (value[1] === 'x') return sign * parseInt(value, 16);
3441
+ return sign * parseInt(value, 8);
3442
+ }
3443
+
3444
+ if (value.indexOf(':') !== -1) {
3445
+ value.split(':').forEach(function (v) {
3446
+ digits.unshift(parseInt(v, 10));
3447
+ });
3448
+
3449
+ value = 0;
3450
+ base = 1;
3451
+
3452
+ digits.forEach(function (d) {
3453
+ value += (d * base);
3454
+ base *= 60;
3455
+ });
3456
+
3457
+ return sign * value;
3458
+
3459
+ }
3460
+
3461
+ return sign * parseInt(value, 10);
3462
+ }
3463
+
3464
+ function isInteger(object) {
3465
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
3466
+ (object % 1 === 0 && !common.isNegativeZero(object));
3467
+ }
3468
+
3469
+ module.exports = new Type('tag:yaml.org,2002:int', {
3470
+ kind: 'scalar',
3471
+ resolve: resolveYamlInteger,
3472
+ construct: constructYamlInteger,
3473
+ predicate: isInteger,
3474
+ represent: {
3475
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
3476
+ octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },
3477
+ decimal: function (obj) { return obj.toString(10); },
3478
+ /* eslint-disable max-len */
3479
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
3480
+ },
3481
+ defaultStyle: 'decimal',
3482
+ styleAliases: {
3483
+ binary: [ 2, 'bin' ],
3484
+ octal: [ 8, 'oct' ],
3485
+ decimal: [ 10, 'dec' ],
3486
+ hexadecimal: [ 16, 'hex' ]
3487
+ }
3488
+ });
3489
+
3490
+ },{"../common":2,"../type":13}],18:[function(require,module,exports){
3491
+ 'use strict';
3492
+
3493
+ var esprima;
3494
+
3495
+ // Browserified version does not have esprima
3496
+ //
3497
+ // 1. For node.js just require module as deps
3498
+ // 2. For browser try to require mudule via external AMD system.
3499
+ // If not found - try to fallback to window.esprima. If not
3500
+ // found too - then fail to parse.
3501
+ //
3502
+ try {
3503
+ // workaround to exclude package from browserify list.
3504
+ var _require = require;
3505
+ esprima = _require('esprima');
3506
+ } catch (_) {
3507
+ /* eslint-disable no-redeclare */
3508
+ /* global window */
3509
+ if (typeof window !== 'undefined') esprima = window.esprima;
3510
+ }
3511
+
3512
+ var Type = require('../../type');
3513
+
3514
+ function resolveJavascriptFunction(data) {
3515
+ if (data === null) return false;
3516
+
3517
+ try {
3518
+ var source = '(' + data + ')',
3519
+ ast = esprima.parse(source, { range: true });
3520
+
3521
+ if (ast.type !== 'Program' ||
3522
+ ast.body.length !== 1 ||
3523
+ ast.body[0].type !== 'ExpressionStatement' ||
3524
+ (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
3525
+ ast.body[0].expression.type !== 'FunctionExpression')) {
3526
+ return false;
3527
+ }
3528
+
3529
+ return true;
3530
+ } catch (err) {
3531
+ return false;
3532
+ }
3533
+ }
3534
+
3535
+ function constructJavascriptFunction(data) {
3536
+ /*jslint evil:true*/
3537
+
3538
+ var source = '(' + data + ')',
3539
+ ast = esprima.parse(source, { range: true }),
3540
+ params = [],
3541
+ body;
3542
+
3543
+ if (ast.type !== 'Program' ||
3544
+ ast.body.length !== 1 ||
3545
+ ast.body[0].type !== 'ExpressionStatement' ||
3546
+ (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
3547
+ ast.body[0].expression.type !== 'FunctionExpression')) {
3548
+ throw new Error('Failed to resolve function');
3549
+ }
3550
+
3551
+ ast.body[0].expression.params.forEach(function (param) {
3552
+ params.push(param.name);
3553
+ });
3554
+
3555
+ body = ast.body[0].expression.body.range;
3556
+
3557
+ // Esprima's ranges include the first '{' and the last '}' characters on
3558
+ // function expressions. So cut them out.
3559
+ if (ast.body[0].expression.body.type === 'BlockStatement') {
3560
+ /*eslint-disable no-new-func*/
3561
+ return new Function(params, source.slice(body[0] + 1, body[1] - 1));
3562
+ }
3563
+ // ES6 arrow functions can omit the BlockStatement. In that case, just return
3564
+ // the body.
3565
+ /*eslint-disable no-new-func*/
3566
+ return new Function(params, 'return ' + source.slice(body[0], body[1]));
3567
+ }
3568
+
3569
+ function representJavascriptFunction(object /*, style*/) {
3570
+ return object.toString();
3571
+ }
3572
+
3573
+ function isFunction(object) {
3574
+ return Object.prototype.toString.call(object) === '[object Function]';
3575
+ }
3576
+
3577
+ module.exports = new Type('tag:yaml.org,2002:js/function', {
3578
+ kind: 'scalar',
3579
+ resolve: resolveJavascriptFunction,
3580
+ construct: constructJavascriptFunction,
3581
+ predicate: isFunction,
3582
+ represent: representJavascriptFunction
3583
+ });
3584
+
3585
+ },{"../../type":13}],19:[function(require,module,exports){
3586
+ 'use strict';
3587
+
3588
+ var Type = require('../../type');
3589
+
3590
+ function resolveJavascriptRegExp(data) {
3591
+ if (data === null) return false;
3592
+ if (data.length === 0) return false;
3593
+
3594
+ var regexp = data,
3595
+ tail = /\/([gim]*)$/.exec(data),
3596
+ modifiers = '';
3597
+
3598
+ // if regexp starts with '/' it can have modifiers and must be properly closed
3599
+ // `/foo/gim` - modifiers tail can be maximum 3 chars
3600
+ if (regexp[0] === '/') {
3601
+ if (tail) modifiers = tail[1];
3602
+
3603
+ if (modifiers.length > 3) return false;
3604
+ // if expression starts with /, is should be properly terminated
3605
+ if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;
3606
+ }
3607
+
3608
+ return true;
3609
+ }
3610
+
3611
+ function constructJavascriptRegExp(data) {
3612
+ var regexp = data,
3613
+ tail = /\/([gim]*)$/.exec(data),
3614
+ modifiers = '';
3615
+
3616
+ // `/foo/gim` - tail can be maximum 4 chars
3617
+ if (regexp[0] === '/') {
3618
+ if (tail) modifiers = tail[1];
3619
+ regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
3620
+ }
3621
+
3622
+ return new RegExp(regexp, modifiers);
3623
+ }
3624
+
3625
+ function representJavascriptRegExp(object /*, style*/) {
3626
+ var result = '/' + object.source + '/';
3627
+
3628
+ if (object.global) result += 'g';
3629
+ if (object.multiline) result += 'm';
3630
+ if (object.ignoreCase) result += 'i';
3631
+
3632
+ return result;
3633
+ }
3634
+
3635
+ function isRegExp(object) {
3636
+ return Object.prototype.toString.call(object) === '[object RegExp]';
3637
+ }
3638
+
3639
+ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
3640
+ kind: 'scalar',
3641
+ resolve: resolveJavascriptRegExp,
3642
+ construct: constructJavascriptRegExp,
3643
+ predicate: isRegExp,
3644
+ represent: representJavascriptRegExp
3645
+ });
3646
+
3647
+ },{"../../type":13}],20:[function(require,module,exports){
3648
+ 'use strict';
3649
+
3650
+ var Type = require('../../type');
3651
+
3652
+ function resolveJavascriptUndefined() {
3653
+ return true;
3654
+ }
3655
+
3656
+ function constructJavascriptUndefined() {
3657
+ /*eslint-disable no-undefined*/
3658
+ return undefined;
3659
+ }
3660
+
3661
+ function representJavascriptUndefined() {
3662
+ return '';
3663
+ }
3664
+
3665
+ function isUndefined(object) {
3666
+ return typeof object === 'undefined';
3667
+ }
3668
+
3669
+ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
3670
+ kind: 'scalar',
3671
+ resolve: resolveJavascriptUndefined,
3672
+ construct: constructJavascriptUndefined,
3673
+ predicate: isUndefined,
3674
+ represent: representJavascriptUndefined
3675
+ });
3676
+
3677
+ },{"../../type":13}],21:[function(require,module,exports){
3678
+ 'use strict';
3679
+
3680
+ var Type = require('../type');
3681
+
3682
+ module.exports = new Type('tag:yaml.org,2002:map', {
3683
+ kind: 'mapping',
3684
+ construct: function (data) { return data !== null ? data : {}; }
3685
+ });
3686
+
3687
+ },{"../type":13}],22:[function(require,module,exports){
3688
+ 'use strict';
3689
+
3690
+ var Type = require('../type');
3691
+
3692
+ function resolveYamlMerge(data) {
3693
+ return data === '<<' || data === null;
3694
+ }
3695
+
3696
+ module.exports = new Type('tag:yaml.org,2002:merge', {
3697
+ kind: 'scalar',
3698
+ resolve: resolveYamlMerge
3699
+ });
3700
+
3701
+ },{"../type":13}],23:[function(require,module,exports){
3702
+ 'use strict';
3703
+
3704
+ var Type = require('../type');
3705
+
3706
+ function resolveYamlNull(data) {
3707
+ if (data === null) return true;
3708
+
3709
+ var max = data.length;
3710
+
3711
+ return (max === 1 && data === '~') ||
3712
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
3713
+ }
3714
+
3715
+ function constructYamlNull() {
3716
+ return null;
3717
+ }
3718
+
3719
+ function isNull(object) {
3720
+ return object === null;
3721
+ }
3722
+
3723
+ module.exports = new Type('tag:yaml.org,2002:null', {
3724
+ kind: 'scalar',
3725
+ resolve: resolveYamlNull,
3726
+ construct: constructYamlNull,
3727
+ predicate: isNull,
3728
+ represent: {
3729
+ canonical: function () { return '~'; },
3730
+ lowercase: function () { return 'null'; },
3731
+ uppercase: function () { return 'NULL'; },
3732
+ camelcase: function () { return 'Null'; }
3733
+ },
3734
+ defaultStyle: 'lowercase'
3735
+ });
3736
+
3737
+ },{"../type":13}],24:[function(require,module,exports){
3738
+ 'use strict';
3739
+
3740
+ var Type = require('../type');
3741
+
3742
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
3743
+ var _toString = Object.prototype.toString;
3744
+
3745
+ function resolveYamlOmap(data) {
3746
+ if (data === null) return true;
3747
+
3748
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey,
3749
+ object = data;
3750
+
3751
+ for (index = 0, length = object.length; index < length; index += 1) {
3752
+ pair = object[index];
3753
+ pairHasKey = false;
3754
+
3755
+ if (_toString.call(pair) !== '[object Object]') return false;
3756
+
3757
+ for (pairKey in pair) {
3758
+ if (_hasOwnProperty.call(pair, pairKey)) {
3759
+ if (!pairHasKey) pairHasKey = true;
3760
+ else return false;
3761
+ }
3762
+ }
3763
+
3764
+ if (!pairHasKey) return false;
3765
+
3766
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
3767
+ else return false;
3768
+ }
3769
+
3770
+ return true;
3771
+ }
3772
+
3773
+ function constructYamlOmap(data) {
3774
+ return data !== null ? data : [];
3775
+ }
3776
+
3777
+ module.exports = new Type('tag:yaml.org,2002:omap', {
3778
+ kind: 'sequence',
3779
+ resolve: resolveYamlOmap,
3780
+ construct: constructYamlOmap
3781
+ });
3782
+
3783
+ },{"../type":13}],25:[function(require,module,exports){
3784
+ 'use strict';
3785
+
3786
+ var Type = require('../type');
3787
+
3788
+ var _toString = Object.prototype.toString;
3789
+
3790
+ function resolveYamlPairs(data) {
3791
+ if (data === null) return true;
3792
+
3793
+ var index, length, pair, keys, result,
3794
+ object = data;
3795
+
3796
+ result = new Array(object.length);
3797
+
3798
+ for (index = 0, length = object.length; index < length; index += 1) {
3799
+ pair = object[index];
3800
+
3801
+ if (_toString.call(pair) !== '[object Object]') return false;
3802
+
3803
+ keys = Object.keys(pair);
3804
+
3805
+ if (keys.length !== 1) return false;
3806
+
3807
+ result[index] = [ keys[0], pair[keys[0]] ];
3808
+ }
3809
+
3810
+ return true;
3811
+ }
3812
+
3813
+ function constructYamlPairs(data) {
3814
+ if (data === null) return [];
3815
+
3816
+ var index, length, pair, keys, result,
3817
+ object = data;
3818
+
3819
+ result = new Array(object.length);
3820
+
3821
+ for (index = 0, length = object.length; index < length; index += 1) {
3822
+ pair = object[index];
3823
+
3824
+ keys = Object.keys(pair);
3825
+
3826
+ result[index] = [ keys[0], pair[keys[0]] ];
3827
+ }
3828
+
3829
+ return result;
3830
+ }
3831
+
3832
+ module.exports = new Type('tag:yaml.org,2002:pairs', {
3833
+ kind: 'sequence',
3834
+ resolve: resolveYamlPairs,
3835
+ construct: constructYamlPairs
3836
+ });
3837
+
3838
+ },{"../type":13}],26:[function(require,module,exports){
3839
+ 'use strict';
3840
+
3841
+ var Type = require('../type');
3842
+
3843
+ module.exports = new Type('tag:yaml.org,2002:seq', {
3844
+ kind: 'sequence',
3845
+ construct: function (data) { return data !== null ? data : []; }
3846
+ });
3847
+
3848
+ },{"../type":13}],27:[function(require,module,exports){
3849
+ 'use strict';
3850
+
3851
+ var Type = require('../type');
3852
+
3853
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
3854
+
3855
+ function resolveYamlSet(data) {
3856
+ if (data === null) return true;
3857
+
3858
+ var key, object = data;
3859
+
3860
+ for (key in object) {
3861
+ if (_hasOwnProperty.call(object, key)) {
3862
+ if (object[key] !== null) return false;
3863
+ }
3864
+ }
3865
+
3866
+ return true;
3867
+ }
3868
+
3869
+ function constructYamlSet(data) {
3870
+ return data !== null ? data : {};
3871
+ }
3872
+
3873
+ module.exports = new Type('tag:yaml.org,2002:set', {
3874
+ kind: 'mapping',
3875
+ resolve: resolveYamlSet,
3876
+ construct: constructYamlSet
3877
+ });
3878
+
3879
+ },{"../type":13}],28:[function(require,module,exports){
3880
+ 'use strict';
3881
+
3882
+ var Type = require('../type');
3883
+
3884
+ module.exports = new Type('tag:yaml.org,2002:str', {
3885
+ kind: 'scalar',
3886
+ construct: function (data) { return data !== null ? data : ''; }
3887
+ });
3888
+
3889
+ },{"../type":13}],29:[function(require,module,exports){
3890
+ 'use strict';
3891
+
3892
+ var Type = require('../type');
3893
+
3894
+ var YAML_DATE_REGEXP = new RegExp(
3895
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
3896
+ '-([0-9][0-9])' + // [2] month
3897
+ '-([0-9][0-9])$'); // [3] day
3898
+
3899
+ var YAML_TIMESTAMP_REGEXP = new RegExp(
3900
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
3901
+ '-([0-9][0-9]?)' + // [2] month
3902
+ '-([0-9][0-9]?)' + // [3] day
3903
+ '(?:[Tt]|[ \\t]+)' + // ...
3904
+ '([0-9][0-9]?)' + // [4] hour
3905
+ ':([0-9][0-9])' + // [5] minute
3906
+ ':([0-9][0-9])' + // [6] second
3907
+ '(?:\\.([0-9]*))?' + // [7] fraction
3908
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
3909
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
3910
+
3911
+ function resolveYamlTimestamp(data) {
3912
+ if (data === null) return false;
3913
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
3914
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
3915
+ return false;
3916
+ }
3917
+
3918
+ function constructYamlTimestamp(data) {
3919
+ var match, year, month, day, hour, minute, second, fraction = 0,
3920
+ delta = null, tz_hour, tz_minute, date;
3921
+
3922
+ match = YAML_DATE_REGEXP.exec(data);
3923
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
3924
+
3925
+ if (match === null) throw new Error('Date resolve error');
3926
+
3927
+ // match: [1] year [2] month [3] day
3928
+
3929
+ year = +(match[1]);
3930
+ month = +(match[2]) - 1; // JS month starts with 0
3931
+ day = +(match[3]);
3932
+
3933
+ if (!match[4]) { // no hour
3934
+ return new Date(Date.UTC(year, month, day));
3935
+ }
3936
+
3937
+ // match: [4] hour [5] minute [6] second [7] fraction
3938
+
3939
+ hour = +(match[4]);
3940
+ minute = +(match[5]);
3941
+ second = +(match[6]);
3942
+
3943
+ if (match[7]) {
3944
+ fraction = match[7].slice(0, 3);
3945
+ while (fraction.length < 3) { // milli-seconds
3946
+ fraction += '0';
3947
+ }
3948
+ fraction = +fraction;
3949
+ }
3950
+
3951
+ // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
3952
+
3953
+ if (match[9]) {
3954
+ tz_hour = +(match[10]);
3955
+ tz_minute = +(match[11] || 0);
3956
+ delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
3957
+ if (match[9] === '-') delta = -delta;
3958
+ }
3959
+
3960
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
3961
+
3962
+ if (delta) date.setTime(date.getTime() - delta);
3963
+
3964
+ return date;
3965
+ }
3966
+
3967
+ function representYamlTimestamp(object /*, style*/) {
3968
+ return object.toISOString();
3969
+ }
3970
+
3971
+ module.exports = new Type('tag:yaml.org,2002:timestamp', {
3972
+ kind: 'scalar',
3973
+ resolve: resolveYamlTimestamp,
3974
+ construct: constructYamlTimestamp,
3975
+ instanceOf: Date,
3976
+ represent: representYamlTimestamp
3977
+ });
3978
+
3979
+ },{"../type":13}],"/":[function(require,module,exports){
3980
+ 'use strict';
3981
+
3982
+
3983
+ var yaml = require('./lib/js-yaml.js');
3984
+
3985
+
3986
+ module.exports = yaml;
3987
+
3988
+ },{"./lib/js-yaml.js":1}]},{},[])("/")
3989
+ });