@mjhls/mjh-framework 1.0.1080 → 1.0.1082-404-v4

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 (232) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +6 -6
  3. package/dist/cjs/AD300x250.js +5 -6
  4. package/dist/cjs/AD300x250x600.js +5 -6
  5. package/dist/cjs/AD728x90.js +6 -7
  6. package/dist/cjs/ADFloatingFooter.js +8 -9
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +8 -9
  9. package/dist/cjs/{ADInfeed-3a68b356.js → ADInfeed-98ee4120.js} +6 -6
  10. package/dist/cjs/ADSkyscraper.js +8 -9
  11. package/dist/cjs/ADSponsoredResources.js +8 -9
  12. package/dist/cjs/ADWebcast.js +8 -9
  13. package/dist/cjs/ADWelcome.js +12 -13
  14. package/dist/cjs/{ADlgInfeed-d88a0250.js → ADlgInfeed-55df7d69.js} +4 -4
  15. package/dist/cjs/AccordionPanel.js +17 -17
  16. package/dist/cjs/AdSlot.js +9 -10
  17. package/dist/cjs/AdSlotsProvider.js +5 -6
  18. package/dist/cjs/AlgoliaSearch.js +1784 -1027
  19. package/dist/cjs/AlphabeticList.js +12 -12
  20. package/dist/cjs/ArticleCarousel.js +5 -5
  21. package/dist/cjs/ArticleProgramLandingPage.js +15 -16
  22. package/dist/cjs/ArticleSeriesLandingPage.js +12 -13
  23. package/dist/cjs/ArticleSeriesListing.js +30 -31
  24. package/dist/cjs/AuthWrapper.js +257 -633
  25. package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
  26. package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
  27. package/dist/cjs/Breadcrumbs.js +17 -17
  28. package/dist/cjs/CEDeckSupabase.js +67 -72
  29. package/dist/cjs/CMEDeck.js +61 -66
  30. package/dist/cjs/Column1.js +6 -6
  31. package/dist/cjs/Column2.js +14 -14
  32. package/dist/cjs/Column3.js +26 -27
  33. package/dist/cjs/ConferenceArticleCard.js +13 -13
  34. package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
  35. package/dist/cjs/ContentCardPaginated.js +50 -51
  36. package/dist/cjs/DeckContent.js +59 -60
  37. package/dist/cjs/DeckQueue.js +58 -59
  38. package/dist/cjs/DeckQueuePaginated.js +47 -48
  39. package/dist/cjs/{Dfp-9be904d5.js → Dfp-67646058.js} +17 -18
  40. package/dist/cjs/EventsDeck.js +91 -91
  41. package/dist/cjs/ExternalResources.js +35 -36
  42. package/dist/cjs/Feature.js +17 -17
  43. package/dist/cjs/ForbesHero.js +26 -26
  44. package/dist/cjs/GridContent.js +135 -136
  45. package/dist/cjs/GridContentPaginated.js +122 -123
  46. package/dist/cjs/GridHero.js +27 -27
  47. package/dist/cjs/GroupDeck.js +33 -33
  48. package/dist/cjs/HamMagazine.js +111 -111
  49. package/dist/cjs/Header.js +25 -25
  50. package/dist/cjs/HealthCareProfessionalModal.js +17 -17
  51. package/dist/cjs/Hero.js +5 -5
  52. package/dist/cjs/HighlightenVideo.js +13 -13
  53. package/dist/cjs/HorizontalArticleListing.js +29 -30
  54. package/dist/cjs/HorizontalHero.js +18 -18
  55. package/dist/cjs/{ImageSlider-294d3fc0.js → ImageSlider-7c995858.js} +78 -83
  56. package/dist/cjs/IssueContentDeck.js +50 -50
  57. package/dist/cjs/IssueDeck.js +48 -48
  58. package/dist/cjs/IssueLanding.js +21 -22
  59. package/dist/cjs/LeftNav.js +17 -18
  60. package/dist/cjs/MasterDeck.js +40 -41
  61. package/dist/cjs/MasterDeckPaginated.js +29 -30
  62. package/dist/cjs/MediaSeriesCard.js +20 -21
  63. package/dist/cjs/MediaSeriesLanding.js +38 -39
  64. package/dist/cjs/MediaSeriesLandingPaginated.js +37 -38
  65. package/dist/cjs/NavDvm.js +57 -57
  66. package/dist/cjs/{NavFooter-fa5fae05.js → NavFooter-b7b16d48.js} +11 -11
  67. package/dist/cjs/NavMagazine.js +106 -106
  68. package/dist/cjs/NavNative.js +97 -97
  69. package/dist/cjs/OncliveHero.js +12 -12
  70. package/dist/cjs/OncliveLargeHero.js +50 -50
  71. package/dist/cjs/PageFilter.js +5 -5
  72. package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
  73. package/dist/cjs/PartnerDetailListing.js +55 -56
  74. package/dist/cjs/PartnerDetailListingPaginated.js +54 -55
  75. package/dist/cjs/PdfDownload.js +4 -4
  76. package/dist/cjs/PixelTracking.js +9 -9
  77. package/dist/cjs/PodcastsLanding.js +23 -24
  78. package/dist/cjs/PopUpModal.js +9 -9
  79. package/dist/cjs/PtceDeck.js +14 -14
  80. package/dist/cjs/PubSection.js +14 -15
  81. package/dist/cjs/PubToc.js +4 -4
  82. package/dist/cjs/PublicationDeck.js +44 -44
  83. package/dist/cjs/{PublicationFeature-03de3225.js → PublicationFeature-4b68e0db.js} +30 -30
  84. package/dist/cjs/PublicationLanding.js +75 -75
  85. package/dist/cjs/QueueDeckExpanded.js +246 -247
  86. package/dist/cjs/QueueDeckExpandedPaginated.js +223 -224
  87. package/dist/cjs/RecentNews.js +15 -15
  88. package/dist/cjs/RelatedContent.js +15 -15
  89. package/dist/cjs/RelatedTopicsDropdown.js +14 -14
  90. package/dist/cjs/RolesDeck.js +20 -20
  91. package/dist/cjs/Schema.js +1 -1
  92. package/dist/cjs/Search.js +6 -6
  93. package/dist/cjs/SeriesListingDeck.js +18 -19
  94. package/dist/cjs/{SeriesSlider-621d0cbb.js → SeriesSlider-086a8319.js} +22 -22
  95. package/dist/cjs/SideFooter.js +18 -18
  96. package/dist/cjs/SocialIcons.js +6 -6
  97. package/dist/cjs/{SocialSearchComponent-f874175b.js → SocialSearchComponent-d7e5d3a6.js} +28 -28
  98. package/dist/cjs/SocialShare.js +25 -25
  99. package/dist/cjs/TaxonomyCard.js +44 -44
  100. package/dist/cjs/TaxonomyDescription.js +12 -13
  101. package/dist/cjs/TemplateNormal.js +27 -28
  102. package/dist/cjs/ThumbnailCard.js +10 -10
  103. package/dist/cjs/{Tooltip-f075b7ef.js → Tooltip-b8516cbf.js} +632 -545
  104. package/dist/cjs/Ustream.js +9 -9
  105. package/dist/cjs/VerticalHero.js +11 -11
  106. package/dist/cjs/VideoProgramLandingPage.js +29 -30
  107. package/dist/cjs/VideoSeriesCard.js +14 -14
  108. package/dist/cjs/VideoSeriesFilter.js +5 -5
  109. package/dist/cjs/VideoSeriesLandingPage.js +12 -13
  110. package/dist/cjs/VideoSeriesListing.js +47 -48
  111. package/dist/cjs/View.js +245 -242
  112. package/dist/cjs/YahooHero.js +23 -23
  113. package/dist/cjs/YoutubeGroup.js +33 -33
  114. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-35faab67.js} +5 -5
  115. package/dist/cjs/{defineProperty-e0fb52c5.js → defineProperty-19580e93.js} +2 -4
  116. package/dist/cjs/getQuery.js +1 -2
  117. package/dist/cjs/getRelatedArticle.js +33 -15
  118. package/dist/cjs/getSerializers.js +7 -8
  119. package/dist/cjs/iconBase-be4097c0.js +2 -4
  120. package/dist/cjs/{index-c3f0b162.js → index-171e9e82.js} +717 -498
  121. package/dist/cjs/index-3177f564.js +1573 -0
  122. package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
  123. package/dist/cjs/{index-fc2f1ca2.js → index-7435b964.js} +471 -6
  124. package/dist/cjs/{index-50be6759.js → index-ff83a88b.js} +13 -14
  125. package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
  126. package/dist/cjs/{index.esm-f51609ab.js → index.esm-2ea9e9ff.js} +14 -14
  127. package/dist/cjs/index.js +103 -105
  128. package/dist/cjs/{main-1ec1de84.js → main-ae8472f3.js} +17 -22
  129. package/dist/cjs/{moment-aca40de1.js → moment-f730814d.js} +95 -80
  130. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
  131. package/dist/cjs/timeDifferenceCalc.js +1 -1
  132. package/dist/cjs/ustream-api-3819e4aa.js +1 -1
  133. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
  134. package/dist/esm/AD.js +1 -1
  135. package/dist/esm/AD300x250.js +2 -3
  136. package/dist/esm/AD300x250x600.js +2 -3
  137. package/dist/esm/AD728x90.js +2 -3
  138. package/dist/esm/ADFloatingFooter.js +2 -3
  139. package/dist/esm/ADGutter.js +2 -3
  140. package/dist/esm/{ADInfeed-e8fc8fbb.js → ADInfeed-41bba2c6.js} +1 -1
  141. package/dist/esm/ADSkyscraper.js +2 -3
  142. package/dist/esm/ADSponsoredResources.js +2 -3
  143. package/dist/esm/ADWebcast.js +2 -3
  144. package/dist/esm/ADWelcome.js +2 -3
  145. package/dist/esm/{ADlgInfeed-8a3c14d7.js → ADlgInfeed-3c717ece.js} +1 -1
  146. package/dist/esm/AdSlot.js +2 -3
  147. package/dist/esm/AdSlotsProvider.js +2 -3
  148. package/dist/esm/AlgoliaSearch.js +1402 -645
  149. package/dist/esm/ArticleCarousel.js +1 -1
  150. package/dist/esm/ArticleProgramLandingPage.js +5 -6
  151. package/dist/esm/ArticleSeriesLandingPage.js +5 -6
  152. package/dist/esm/ArticleSeriesListing.js +3 -4
  153. package/dist/esm/AuthWrapper.js +232 -608
  154. package/dist/esm/CEDeckSupabase.js +3 -8
  155. package/dist/esm/CMEDeck.js +3 -8
  156. package/dist/esm/Column3.js +2 -3
  157. package/dist/esm/ConferenceArticleCard.js +1 -1
  158. package/dist/esm/ContentCardPaginated.js +5 -6
  159. package/dist/esm/DeckContent.js +4 -5
  160. package/dist/esm/DeckQueue.js +3 -4
  161. package/dist/esm/DeckQueuePaginated.js +4 -5
  162. package/dist/esm/{Dfp-78070ecb.js → Dfp-3b6eb620.js} +1 -2
  163. package/dist/esm/EventsDeck.js +3 -3
  164. package/dist/esm/ExternalResources.js +6 -7
  165. package/dist/esm/Feature.js +1 -1
  166. package/dist/esm/ForbesHero.js +1 -1
  167. package/dist/esm/GridContent.js +6 -7
  168. package/dist/esm/GridContentPaginated.js +7 -8
  169. package/dist/esm/GridHero.js +1 -1
  170. package/dist/esm/HamMagazine.js +2 -2
  171. package/dist/esm/HighlightenVideo.js +1 -1
  172. package/dist/esm/HorizontalArticleListing.js +5 -6
  173. package/dist/esm/HorizontalHero.js +1 -1
  174. package/dist/esm/{ImageSlider-9250ddc9.js → ImageSlider-75f7b81a.js} +6 -11
  175. package/dist/esm/IssueContentDeck.js +1 -1
  176. package/dist/esm/IssueLanding.js +7 -8
  177. package/dist/esm/LeftNav.js +2 -3
  178. package/dist/esm/MasterDeck.js +5 -6
  179. package/dist/esm/MasterDeckPaginated.js +5 -6
  180. package/dist/esm/MediaSeriesCard.js +5 -6
  181. package/dist/esm/MediaSeriesLanding.js +10 -11
  182. package/dist/esm/MediaSeriesLandingPaginated.js +11 -12
  183. package/dist/esm/NavMagazine.js +2 -2
  184. package/dist/esm/NavNative.js +1 -1
  185. package/dist/esm/OncliveHero.js +1 -1
  186. package/dist/esm/OncliveLargeHero.js +1 -1
  187. package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +2 -2
  188. package/dist/esm/PartnerDetailListing.js +9 -10
  189. package/dist/esm/PartnerDetailListingPaginated.js +10 -11
  190. package/dist/esm/PodcastsLanding.js +8 -9
  191. package/dist/esm/PtceDeck.js +1 -1
  192. package/dist/esm/PubSection.js +5 -6
  193. package/dist/esm/{PublicationFeature-89b7afdb.js → PublicationFeature-6c334891.js} +1 -1
  194. package/dist/esm/QueueDeckExpanded.js +5 -6
  195. package/dist/esm/QueueDeckExpandedPaginated.js +6 -7
  196. package/dist/esm/RelatedContent.js +1 -1
  197. package/dist/esm/SeriesListingDeck.js +3 -4
  198. package/dist/esm/{SeriesSlider-7913a789.js → SeriesSlider-acbdf4c9.js} +1 -1
  199. package/dist/esm/{SocialSearchComponent-ae8da67e.js → SocialSearchComponent-9e65c8d6.js} +1 -1
  200. package/dist/esm/TaxonomyDescription.js +5 -6
  201. package/dist/esm/TemplateNormal.js +3 -4
  202. package/dist/esm/{Tooltip-95655b44.js → Tooltip-fe0ed92d.js} +193 -106
  203. package/dist/esm/Ustream.js +1 -1
  204. package/dist/esm/VerticalHero.js +1 -1
  205. package/dist/esm/VideoProgramLandingPage.js +5 -6
  206. package/dist/esm/VideoSeriesCard.js +1 -1
  207. package/dist/esm/VideoSeriesLandingPage.js +5 -6
  208. package/dist/esm/VideoSeriesListing.js +3 -4
  209. package/dist/esm/View.js +14 -11
  210. package/dist/esm/YahooHero.js +1 -1
  211. package/dist/esm/YoutubeGroup.js +1 -1
  212. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-a2422c4b.js} +3 -3
  213. package/dist/esm/{defineProperty-23a8f8cd.js → defineProperty-e8022d1e.js} +2 -4
  214. package/dist/esm/getQuery.js +1 -2
  215. package/dist/esm/getRelatedArticle.js +34 -16
  216. package/dist/esm/getSerializers.js +5 -6
  217. package/dist/esm/{index-2fe6b5b1.js → index-1d1bbc8c.js} +235 -16
  218. package/dist/esm/index-4550ef23.js +1571 -0
  219. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  220. package/dist/esm/{index-98ca9cec.js → index-c8d5e72b.js} +13 -14
  221. package/dist/esm/index.js +14 -16
  222. package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
  223. package/dist/esm/{moment-bc12cb97.js → moment-48faeb9c.js} +95 -80
  224. package/dist/esm/timeDifferenceCalc.js +1 -1
  225. package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/cjs/events-1b438fe7.js +0 -469
  228. package/dist/cjs/index-f86bb269.js +0 -1571
  229. package/dist/cjs/typeof-1358762e.js +0 -33
  230. package/dist/esm/events-6c3a7a63.js +0 -467
  231. package/dist/esm/index-79cfd25c.js +0 -1569
  232. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -2,21 +2,21 @@ import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallba
2
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-72ed566b.js';
3
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
4
4
  import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-f0fc23eb.js';
5
+ import { l as lib_3 } from './index-5cc7b406.js';
6
6
  import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
10
10
  import './Beam.js';
11
11
  import Segment from './Segment.js';
12
- import { f as main_18, b as main_42, m as main_43 } from './main-f97773b2.js';
12
+ import { f as main_18, b as main_42, m as main_43 } from './main-754d4992.js';
13
13
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
14
14
  import { _ as _extends, b as _extends$1 } from './extends-2f4448b8.js';
15
15
  import { u as urlForFile } from './urlForFile-2e523b67.js';
16
16
  import { L as LazyLoad } from './index-755f2cc2.js';
17
17
  import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
18
18
  import { _ as _typeof$1 } from './typeof-3ab7d3b6.js';
19
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
19
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-a2422c4b.js';
20
20
  import { _ as _JSON$stringify } from './stringify-1e2a5946.js';
21
21
  import { _ as _export, a as _core } from './core.get-iterator-method-95db387d.js';
22
22
  import { _ as _objectToArray } from './_object-to-array-9dfdfb29.js';
@@ -26,7 +26,7 @@ import Button from 'react-bootstrap/Button';
26
26
  import Form from 'react-bootstrap/Form';
27
27
  import ReactGA from 'react-ga';
28
28
  import GroupDeck from './GroupDeck.js';
29
- import { m as moment } from './moment-bc12cb97.js';
29
+ import { m as moment } from './moment-48faeb9c.js';
30
30
  import SocialShare from './SocialShare.js';
31
31
  import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-e6f28e5c.js';
32
32
  import Pagination from 'react-bootstrap/Pagination';
@@ -695,7 +695,7 @@ debug.names;
695
695
  debug.skips;
696
696
  debug.formatters;
697
697
 
698
- var browser = createCommonjsModule(function (module, exports) {
698
+ var browser$1 = createCommonjsModule(function (module, exports) {
699
699
  /**
700
700
  * This is the web browser implementation of `debug()`.
701
701
  *
@@ -882,13 +882,13 @@ function localstorage() {
882
882
  } catch (e) {}
883
883
  }
884
884
  });
885
- browser.log;
886
- browser.formatArgs;
887
- browser.save;
888
- browser.load;
889
- browser.useColors;
890
- browser.storage;
891
- browser.colors;
885
+ browser$1.log;
886
+ browser$1.formatArgs;
887
+ browser$1.save;
888
+ browser$1.load;
889
+ browser$1.useColors;
890
+ browser$1.storage;
891
+ browser$1.colors;
892
892
 
893
893
  // MIT lisence
894
894
  // from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
@@ -912,16 +912,227 @@ var tty = {
912
912
  };
913
913
 
914
914
  // shim for using process in browser
915
+ // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
916
+
917
+ function defaultSetTimout() {
918
+ throw new Error('setTimeout has not been defined');
919
+ }
920
+ function defaultClearTimeout () {
921
+ throw new Error('clearTimeout has not been defined');
922
+ }
923
+ var cachedSetTimeout = defaultSetTimout;
924
+ var cachedClearTimeout = defaultClearTimeout;
925
+ if (typeof global.setTimeout === 'function') {
926
+ cachedSetTimeout = setTimeout;
927
+ }
928
+ if (typeof global.clearTimeout === 'function') {
929
+ cachedClearTimeout = clearTimeout;
930
+ }
931
+
932
+ function runTimeout(fun) {
933
+ if (cachedSetTimeout === setTimeout) {
934
+ //normal enviroments in sane situations
935
+ return setTimeout(fun, 0);
936
+ }
937
+ // if setTimeout wasn't available but was latter defined
938
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
939
+ cachedSetTimeout = setTimeout;
940
+ return setTimeout(fun, 0);
941
+ }
942
+ try {
943
+ // when when somebody has screwed with setTimeout but no I.E. maddness
944
+ return cachedSetTimeout(fun, 0);
945
+ } catch(e){
946
+ try {
947
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
948
+ return cachedSetTimeout.call(null, fun, 0);
949
+ } catch(e){
950
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
951
+ return cachedSetTimeout.call(this, fun, 0);
952
+ }
953
+ }
954
+
955
+
956
+ }
957
+ function runClearTimeout(marker) {
958
+ if (cachedClearTimeout === clearTimeout) {
959
+ //normal enviroments in sane situations
960
+ return clearTimeout(marker);
961
+ }
962
+ // if clearTimeout wasn't available but was latter defined
963
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
964
+ cachedClearTimeout = clearTimeout;
965
+ return clearTimeout(marker);
966
+ }
967
+ try {
968
+ // when when somebody has screwed with setTimeout but no I.E. maddness
969
+ return cachedClearTimeout(marker);
970
+ } catch (e){
971
+ try {
972
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
973
+ return cachedClearTimeout.call(null, marker);
974
+ } catch (e){
975
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
976
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
977
+ return cachedClearTimeout.call(this, marker);
978
+ }
979
+ }
980
+
981
+
982
+
983
+ }
984
+ var queue = [];
985
+ var draining = false;
986
+ var currentQueue;
987
+ var queueIndex = -1;
988
+
989
+ function cleanUpNextTick() {
990
+ if (!draining || !currentQueue) {
991
+ return;
992
+ }
993
+ draining = false;
994
+ if (currentQueue.length) {
995
+ queue = currentQueue.concat(queue);
996
+ } else {
997
+ queueIndex = -1;
998
+ }
999
+ if (queue.length) {
1000
+ drainQueue();
1001
+ }
1002
+ }
1003
+
1004
+ function drainQueue() {
1005
+ if (draining) {
1006
+ return;
1007
+ }
1008
+ var timeout = runTimeout(cleanUpNextTick);
1009
+ draining = true;
1010
+
1011
+ var len = queue.length;
1012
+ while(len) {
1013
+ currentQueue = queue;
1014
+ queue = [];
1015
+ while (++queueIndex < len) {
1016
+ if (currentQueue) {
1017
+ currentQueue[queueIndex].run();
1018
+ }
1019
+ }
1020
+ queueIndex = -1;
1021
+ len = queue.length;
1022
+ }
1023
+ currentQueue = null;
1024
+ draining = false;
1025
+ runClearTimeout(timeout);
1026
+ }
1027
+ function nextTick(fun) {
1028
+ var args = new Array(arguments.length - 1);
1029
+ if (arguments.length > 1) {
1030
+ for (var i = 1; i < arguments.length; i++) {
1031
+ args[i - 1] = arguments[i];
1032
+ }
1033
+ }
1034
+ queue.push(new Item(fun, args));
1035
+ if (queue.length === 1 && !draining) {
1036
+ runTimeout(drainQueue);
1037
+ }
1038
+ }
1039
+ // v8 likes predictible objects
1040
+ function Item(fun, array) {
1041
+ this.fun = fun;
1042
+ this.array = array;
1043
+ }
1044
+ Item.prototype.run = function () {
1045
+ this.fun.apply(null, this.array);
1046
+ };
1047
+ var title = 'browser';
1048
+ var platform = 'browser';
1049
+ var browser = true;
1050
+ var env = {};
1051
+ var argv = [];
1052
+ var version = ''; // empty string to avoid regexp issues
1053
+ var versions = {};
1054
+ var release = {};
1055
+ var config = {};
1056
+
1057
+ function noop() {}
1058
+
1059
+ var on = noop;
1060
+ var addListener = noop;
1061
+ var once = noop;
1062
+ var off = noop;
1063
+ var removeListener = noop;
1064
+ var removeAllListeners = noop;
1065
+ var emit = noop;
1066
+
1067
+ function binding(name) {
1068
+ throw new Error('process.binding is not supported');
1069
+ }
1070
+
1071
+ function cwd () { return '/' }
1072
+ function chdir (dir) {
1073
+ throw new Error('process.chdir is not supported');
1074
+ }function umask() { return 0; }
915
1075
 
916
1076
  // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
917
1077
  var performance = global.performance || {};
918
- performance.now ||
1078
+ var performanceNow =
1079
+ performance.now ||
919
1080
  performance.mozNow ||
920
1081
  performance.msNow ||
921
1082
  performance.oNow ||
922
1083
  performance.webkitNow ||
923
1084
  function(){ return (new Date()).getTime() };
924
1085
 
1086
+ // generate timestamp or delta
1087
+ // see http://nodejs.org/api/process.html#process_process_hrtime
1088
+ function hrtime(previousTimestamp){
1089
+ var clocktime = performanceNow.call(performance)*1e-3;
1090
+ var seconds = Math.floor(clocktime);
1091
+ var nanoseconds = Math.floor((clocktime%1)*1e9);
1092
+ if (previousTimestamp) {
1093
+ seconds = seconds - previousTimestamp[0];
1094
+ nanoseconds = nanoseconds - previousTimestamp[1];
1095
+ if (nanoseconds<0) {
1096
+ seconds--;
1097
+ nanoseconds += 1e9;
1098
+ }
1099
+ }
1100
+ return [seconds,nanoseconds]
1101
+ }
1102
+
1103
+ var startTime = new Date();
1104
+ function uptime() {
1105
+ var currentTime = new Date();
1106
+ var dif = currentTime - startTime;
1107
+ return dif / 1000;
1108
+ }
1109
+
1110
+ var process$1 = {
1111
+ nextTick: nextTick,
1112
+ title: title,
1113
+ browser: browser,
1114
+ env: env,
1115
+ argv: argv,
1116
+ version: version,
1117
+ versions: versions,
1118
+ on: on,
1119
+ addListener: addListener,
1120
+ once: once,
1121
+ off: off,
1122
+ removeListener: removeListener,
1123
+ removeAllListeners: removeAllListeners,
1124
+ emit: emit,
1125
+ binding: binding,
1126
+ cwd: cwd,
1127
+ chdir: chdir,
1128
+ umask: umask,
1129
+ hrtime: hrtime,
1130
+ platform: platform,
1131
+ release: release,
1132
+ config: config,
1133
+ uptime: uptime
1134
+ };
1135
+
925
1136
  var inherits;
926
1137
  if (typeof Object.create === 'function'){
927
1138
  inherits = function inherits(ctor, superCtor) {
@@ -998,10 +1209,18 @@ function deprecate(fn, msg) {
998
1209
  };
999
1210
  }
1000
1211
 
1212
+ if (process$1.noDeprecation === true) {
1213
+ return fn;
1214
+ }
1215
+
1001
1216
  var warned = false;
1002
1217
  function deprecated() {
1003
1218
  if (!warned) {
1004
- {
1219
+ if (process$1.throwDeprecation) {
1220
+ throw new Error(msg);
1221
+ } else if (process$1.traceDeprecation) {
1222
+ console.trace(msg);
1223
+ } else {
1005
1224
  console.error(msg);
1006
1225
  }
1007
1226
  warned = true;
@@ -1016,7 +1235,7 @@ var debugs = {};
1016
1235
  var debugEnviron;
1017
1236
  function debuglog(set) {
1018
1237
  if (isUndefined(debugEnviron))
1019
- debugEnviron = '';
1238
+ debugEnviron = process$1.env.NODE_DEBUG || '';
1020
1239
  set = set.toUpperCase();
1021
1240
  if (!debugs[set]) {
1022
1241
  if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
@@ -1763,7 +1982,7 @@ var src = createCommonjsModule(function (module) {
1763
1982
  */
1764
1983
 
1765
1984
  if (typeof process !== 'undefined' && process.type === 'renderer') {
1766
- module.exports = browser;
1985
+ module.exports = browser$1;
1767
1986
  } else {
1768
1987
  module.exports = node;
1769
1988
  }