@readme/markdown 6.75.0-beta.33 → 6.75.0-beta.35

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.
package/dist/main.js CHANGED
@@ -6910,180 +6910,6 @@ AnchorWithContext.getHref = getHref;
6910
6910
 
6911
6911
  /***/ }),
6912
6912
 
6913
- /***/ 4735:
6914
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6915
-
6916
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6917
- __webpack_require__(3534);
6918
- __webpack_require__(590);
6919
- __webpack_require__(4216);
6920
- __webpack_require__(6611);
6921
- __webpack_require__(9693);
6922
- __webpack_require__(8665);
6923
- __webpack_require__(7787);
6924
- __webpack_require__(4189);
6925
- __webpack_require__(4009);
6926
- __webpack_require__(9218);
6927
- __webpack_require__(7755);
6928
- __webpack_require__(5852);
6929
- __webpack_require__(1412);
6930
- __webpack_require__(7899);
6931
- __webpack_require__(4632);
6932
- __webpack_require__(5086);
6933
- __webpack_require__(4606);
6934
- __webpack_require__(9979);
6935
- __webpack_require__(4602);
6936
- var _excluded = ["src", "alt"],
6937
- _excluded2 = ["lazy", "provider", "url", "title", "html", "iframe", "image", "favicon"];
6938
- __webpack_require__(475);
6939
- __webpack_require__(7136);
6940
- __webpack_require__(785);
6941
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6942
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6943
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6944
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6945
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6946
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
6947
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
6948
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6949
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
6950
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6951
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
6952
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6953
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6954
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6955
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6956
- /* eslint-disable react/jsx-props-no-spreading, jsx-a11y/iframe-has-title */
6957
- var propTypes = __webpack_require__(5556);
6958
- var React = __webpack_require__(1307);
6959
- var Favicon = function Favicon(_ref) {
6960
- var src = _ref.src,
6961
- _ref$alt = _ref.alt,
6962
- alt = _ref$alt === void 0 ? 'favicon' : _ref$alt,
6963
- attr = _objectWithoutProperties(_ref, _excluded);
6964
- return /*#__PURE__*/React.createElement("img", _extends({}, attr, {
6965
- alt: alt,
6966
- height: "14",
6967
- src: src,
6968
- width: "14"
6969
- }));
6970
- };
6971
- Favicon.propTypes = {
6972
- alt: propTypes.string,
6973
- src: propTypes.string
6974
- };
6975
- var Embed = /*#__PURE__*/function (_React$Component) {
6976
- "use strict";
6977
-
6978
- function Embed() {
6979
- _classCallCheck(this, Embed);
6980
- return _callSuper(this, Embed, arguments);
6981
- }
6982
- _inherits(Embed, _React$Component);
6983
- return _createClass(Embed, [{
6984
- key: "render",
6985
- value: function render() {
6986
- var _this$props = this.props,
6987
- _this$props$lazy = _this$props.lazy,
6988
- lazy = _this$props$lazy === void 0 ? true : _this$props$lazy,
6989
- provider = _this$props.provider,
6990
- url = _this$props.url,
6991
- title = _this$props.title,
6992
- html = _this$props.html,
6993
- iframe = _this$props.iframe,
6994
- image = _this$props.image,
6995
- favicon = _this$props.favicon,
6996
- attrs = _objectWithoutProperties(_this$props, _excluded2);
6997
- if (!url) {
6998
- return /*#__PURE__*/React.createElement("div", null);
6999
- }
7000
- if ('iframe' in this.props) {
7001
- return /*#__PURE__*/React.createElement("iframe", _extends({}, attrs, {
7002
- border: "none",
7003
- src: url,
7004
- style: {
7005
- border: 'none',
7006
- display: 'flex',
7007
- margin: 'auto'
7008
- }
7009
- }));
7010
- }
7011
- var classes = ['embed', image && 'embed_hasImg'];
7012
- return /*#__PURE__*/React.createElement("div", {
7013
- className: classes.join(' ')
7014
- }, html ? /*#__PURE__*/React.createElement("div", {
7015
- className: "embed-media",
7016
- dangerouslySetInnerHTML: {
7017
- __html: html
7018
- }
7019
- }) : /*#__PURE__*/React.createElement("a", {
7020
- className: "embed-link",
7021
- href: url,
7022
- rel: "noopener noreferrer",
7023
- target: "_blank"
7024
- }, !image || /*#__PURE__*/React.createElement("img", {
7025
- alt: title,
7026
- className: "embed-img",
7027
- loading: lazy ? 'lazy' : '',
7028
- src: image
7029
- }), title ? /*#__PURE__*/React.createElement("div", {
7030
- className: "embed-body"
7031
- }, !favicon || /*#__PURE__*/React.createElement(Favicon, {
7032
- alt: provider,
7033
- className: "embed-favicon",
7034
- loading: lazy ? 'lazy' : '',
7035
- src: favicon,
7036
- style: {
7037
- "float": 'left'
7038
- }
7039
- }), provider && /*#__PURE__*/React.createElement("small", {
7040
- className: "embed-provider"
7041
- }, provider.search(/^@{1}/) < 0 ? provider : /*#__PURE__*/React.createElement("code", {
7042
- style: {
7043
- fontFamily: 'var(--md-code-font, monospace)'
7044
- }
7045
- }, url)), /*#__PURE__*/React.createElement("div", {
7046
- className: "embed-title"
7047
- }, title)) : /*#__PURE__*/React.createElement("div", {
7048
- className: "embed-body"
7049
- }, /*#__PURE__*/React.createElement("b", null, "View"), ": ", /*#__PURE__*/React.createElement("span", {
7050
- className: "embed-body-url"
7051
- }, url))));
7052
- }
7053
- }]);
7054
- }(React.Component);
7055
- Embed.propTypes = {
7056
- children: propTypes.oneOfType([propTypes.string, propTypes.array, propTypes.shape({}), propTypes.element]),
7057
- favicon: propTypes.string,
7058
- height: propTypes.string,
7059
- html: propTypes.string,
7060
- iframe: propTypes.any,
7061
- image: propTypes.string,
7062
- lazy: propTypes.bool,
7063
- provider: propTypes.string,
7064
- title: propTypes.string,
7065
- url: propTypes.oneOfType([propTypes.string, propTypes.shape({})]),
7066
- width: propTypes.string
7067
- };
7068
- Embed.defaultProps = {
7069
- height: '300px',
7070
- width: '100%'
7071
- };
7072
- var CreateEmbed = function CreateEmbed(_ref2) {
7073
- var lazyImages = _ref2.lazyImages;
7074
- return (
7075
- // eslint-disable-next-line react/display-name
7076
- function (props) {
7077
- return /*#__PURE__*/React.createElement(Embed, _extends({}, props, {
7078
- lazy: lazyImages
7079
- }));
7080
- }
7081
- );
7082
- };
7083
- module.exports = CreateEmbed;
7084
-
7085
- /***/ }),
7086
-
7087
6913
  /***/ 398:
7088
6914
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7089
6915
 
@@ -7342,25 +7168,6 @@ module.exports = function (argument) {
7342
7168
  };
7343
7169
 
7344
7170
 
7345
- /***/ }),
7346
-
7347
- /***/ 7849:
7348
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7349
-
7350
- "use strict";
7351
-
7352
- var isConstructor = __webpack_require__(1466);
7353
- var tryToString = __webpack_require__(3838);
7354
-
7355
- var $TypeError = TypeError;
7356
-
7357
- // `Assert: IsConstructor(argument) is true`
7358
- module.exports = function (argument) {
7359
- if (isConstructor(argument)) return argument;
7360
- throw new $TypeError(tryToString(argument) + ' is not a constructor');
7361
- };
7362
-
7363
-
7364
7171
  /***/ }),
7365
7172
 
7366
7173
  /***/ 7473:
@@ -10441,22 +10248,6 @@ module.exports = function (it) {
10441
10248
  };
10442
10249
 
10443
10250
 
10444
- /***/ }),
10445
-
10446
- /***/ 4741:
10447
- /***/ ((module) => {
10448
-
10449
- "use strict";
10450
-
10451
- // `SameValue` abstract operation
10452
- // https://tc39.es/ecma262/#sec-samevalue
10453
- // eslint-disable-next-line es/no-object-is -- safe
10454
- module.exports = Object.is || function is(x, y) {
10455
- // eslint-disable-next-line no-self-compare -- NaN check
10456
- return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
10457
- };
10458
-
10459
-
10460
10251
  /***/ }),
10461
10252
 
10462
10253
  /***/ 5282:
@@ -11313,33 +11104,6 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
11313
11104
  } catch (error) { /* empty */ }
11314
11105
 
11315
11106
 
11316
- /***/ }),
11317
-
11318
- /***/ 475:
11319
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
11320
-
11321
- "use strict";
11322
-
11323
- var $ = __webpack_require__(1605);
11324
- var uncurryThis = __webpack_require__(281);
11325
- var IndexedObject = __webpack_require__(8664);
11326
- var toIndexedObject = __webpack_require__(5476);
11327
- var arrayMethodIsStrict = __webpack_require__(2349);
11328
-
11329
- var nativeJoin = uncurryThis([].join);
11330
-
11331
- var ES3_STRINGS = IndexedObject !== Object;
11332
- var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
11333
-
11334
- // `Array.prototype.join` method
11335
- // https://tc39.es/ecma262/#sec-array.prototype.join
11336
- $({ target: 'Array', proto: true, forced: FORCED }, {
11337
- join: function join(separator) {
11338
- return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
11339
- }
11340
- });
11341
-
11342
-
11343
11107
  /***/ }),
11344
11108
 
11345
11109
  /***/ 4913:
@@ -11722,25 +11486,6 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
11722
11486
  });
11723
11487
 
11724
11488
 
11725
- /***/ }),
11726
-
11727
- /***/ 7755:
11728
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
11729
-
11730
- "use strict";
11731
-
11732
- // TODO: Remove from `core-js@4`
11733
- var $ = __webpack_require__(1605);
11734
- var DESCRIPTORS = __webpack_require__(5077);
11735
- var create = __webpack_require__(3105);
11736
-
11737
- // `Object.create` method
11738
- // https://tc39.es/ecma262/#sec-object.create
11739
- $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
11740
- create: create
11741
- });
11742
-
11743
-
11744
11489
  /***/ }),
11745
11490
 
11746
11491
  /***/ 6012:
@@ -11863,31 +11608,6 @@ $({ target: 'Object', stat: true, forced: FORCED }, {
11863
11608
  });
11864
11609
 
11865
11610
 
11866
- /***/ }),
11867
-
11868
- /***/ 1412:
11869
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
11870
-
11871
- "use strict";
11872
-
11873
- var $ = __webpack_require__(1605);
11874
- var fails = __webpack_require__(2074);
11875
- var toObject = __webpack_require__(2612);
11876
- var nativeGetPrototypeOf = __webpack_require__(7970);
11877
- var CORRECT_PROTOTYPE_GETTER = __webpack_require__(7168);
11878
-
11879
- var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
11880
-
11881
- // `Object.getPrototypeOf` method
11882
- // https://tc39.es/ecma262/#sec-object.getprototypeof
11883
- $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
11884
- getPrototypeOf: function getPrototypeOf(it) {
11885
- return nativeGetPrototypeOf(toObject(it));
11886
- }
11887
- });
11888
-
11889
-
11890
-
11891
11611
  /***/ }),
11892
11612
 
11893
11613
  /***/ 7899:
@@ -11911,23 +11631,6 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
11911
11631
  });
11912
11632
 
11913
11633
 
11914
- /***/ }),
11915
-
11916
- /***/ 4632:
11917
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
11918
-
11919
- "use strict";
11920
-
11921
- var $ = __webpack_require__(1605);
11922
- var setPrototypeOf = __webpack_require__(9686);
11923
-
11924
- // `Object.setPrototypeOf` method
11925
- // https://tc39.es/ecma262/#sec-object.setprototypeof
11926
- $({ target: 'Object', stat: true }, {
11927
- setPrototypeOf: setPrototypeOf
11928
- });
11929
-
11930
-
11931
11634
  /***/ }),
11932
11635
 
11933
11636
  /***/ 5086:
@@ -11946,71 +11649,6 @@ if (!TO_STRING_TAG_SUPPORT) {
11946
11649
  }
11947
11650
 
11948
11651
 
11949
- /***/ }),
11950
-
11951
- /***/ 4606:
11952
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
11953
-
11954
- "use strict";
11955
-
11956
- var $ = __webpack_require__(1605);
11957
- var getBuiltIn = __webpack_require__(6492);
11958
- var apply = __webpack_require__(9070);
11959
- var bind = __webpack_require__(8891);
11960
- var aConstructor = __webpack_require__(7849);
11961
- var anObject = __webpack_require__(3938);
11962
- var isObject = __webpack_require__(5335);
11963
- var create = __webpack_require__(3105);
11964
- var fails = __webpack_require__(2074);
11965
-
11966
- var nativeConstruct = getBuiltIn('Reflect', 'construct');
11967
- var ObjectPrototype = Object.prototype;
11968
- var push = [].push;
11969
-
11970
- // `Reflect.construct` method
11971
- // https://tc39.es/ecma262/#sec-reflect.construct
11972
- // MS Edge supports only 2 arguments and argumentsList argument is optional
11973
- // FF Nightly sets third argument as `new.target`, but does not create `this` from it
11974
- var NEW_TARGET_BUG = fails(function () {
11975
- function F() { /* empty */ }
11976
- return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
11977
- });
11978
-
11979
- var ARGS_BUG = !fails(function () {
11980
- nativeConstruct(function () { /* empty */ });
11981
- });
11982
-
11983
- var FORCED = NEW_TARGET_BUG || ARGS_BUG;
11984
-
11985
- $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
11986
- construct: function construct(Target, args /* , newTarget */) {
11987
- aConstructor(Target);
11988
- anObject(args);
11989
- var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
11990
- if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
11991
- if (Target === newTarget) {
11992
- // w/o altered newTarget, optimization for 0-4 arguments
11993
- switch (args.length) {
11994
- case 0: return new Target();
11995
- case 1: return new Target(args[0]);
11996
- case 2: return new Target(args[0], args[1]);
11997
- case 3: return new Target(args[0], args[1], args[2]);
11998
- case 4: return new Target(args[0], args[1], args[2], args[3]);
11999
- }
12000
- // w/o altered newTarget, lot of arguments case
12001
- var $args = [null];
12002
- apply(push, $args, args);
12003
- return new (apply(bind, Target, $args))();
12004
- }
12005
- // with altered newTarget, not support built-in constructors
12006
- var proto = newTarget.prototype;
12007
- var instance = create(isObject(proto) ? proto : ObjectPrototype);
12008
- var result = apply(Target, instance, args);
12009
- return isObject(result) ? result : instance;
12010
- }
12011
- });
12012
-
12013
-
12014
11652
  /***/ }),
12015
11653
 
12016
11654
  /***/ 7136:
@@ -12186,52 +11824,6 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
12186
11824
  });
12187
11825
 
12188
11826
 
12189
- /***/ }),
12190
-
12191
- /***/ 785:
12192
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
12193
-
12194
- "use strict";
12195
-
12196
- var call = __webpack_require__(2368);
12197
- var fixRegExpWellKnownSymbolLogic = __webpack_require__(779);
12198
- var anObject = __webpack_require__(3938);
12199
- var isNullOrUndefined = __webpack_require__(8406);
12200
- var requireObjectCoercible = __webpack_require__(1229);
12201
- var sameValue = __webpack_require__(4741);
12202
- var toString = __webpack_require__(5362);
12203
- var getMethod = __webpack_require__(6457);
12204
- var regExpExec = __webpack_require__(6793);
12205
-
12206
- // @@search logic
12207
- fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
12208
- return [
12209
- // `String.prototype.search` method
12210
- // https://tc39.es/ecma262/#sec-string.prototype.search
12211
- function search(regexp) {
12212
- var O = requireObjectCoercible(this);
12213
- var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
12214
- return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
12215
- },
12216
- // `RegExp.prototype[@@search]` method
12217
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
12218
- function (string) {
12219
- var rx = anObject(this);
12220
- var S = toString(string);
12221
- var res = maybeCallNative(nativeSearch, rx, S);
12222
-
12223
- if (res.done) return res.value;
12224
-
12225
- var previousLastIndex = rx.lastIndex;
12226
- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
12227
- var result = regExpExec(rx, S);
12228
- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
12229
- return result === null ? -1 : result.index;
12230
- }
12231
- ];
12232
- });
12233
-
12234
-
12235
11827
  /***/ }),
12236
11828
 
12237
11829
  /***/ 7896:
@@ -14665,7 +14257,7 @@ __webpack_require__.d(components_namespaceObject, {
14665
14257
  Callout: () => (components_Callout),
14666
14258
  Code: () => (components_Code),
14667
14259
  CodeTabs: () => (components_CodeTabs),
14668
- Embed: () => ((Embed_default())),
14260
+ Embed: () => (components_Embed),
14669
14261
  GlossaryItem: () => (GlossaryItemWithContext),
14670
14262
  HTMLBlock: () => (components_HTMLBlock),
14671
14263
  Heading: () => ((Heading_default())),
@@ -61382,15 +60974,17 @@ const themes = {
61382
60974
  '\u26A0': 'warn',
61383
60975
  };
61384
60976
  const Callout = (props) => {
61385
- const { attributes, children, icon, heading } = props;
60977
+ const { attributes, children, icon } = props;
61386
60978
  let theme = props.theme || themes[icon] || 'default';
60979
+ const [heading, ...body] = Array.isArray(children) ? children : [children];
60980
+ const empty = !heading.props.children;
61387
60981
  return (
61388
60982
  // @ts-ignore
61389
60983
  external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("blockquote", Object.assign({}, attributes, { className: `callout callout_${theme}`, theme: icon }),
61390
- heading && (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("h3", { className: `callout-heading${heading ? '' : ' empty'}` },
60984
+ external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("h3", { className: `callout-heading${empty ? ' empty' : ''}` },
61391
60985
  external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { className: "callout-icon" }, icon),
61392
- heading)),
61393
- children));
60986
+ !empty && heading),
60987
+ body));
61394
60988
  };
61395
60989
  /* harmony default export */ const components_Callout = (Callout);
61396
60990
 
@@ -61468,9 +61062,46 @@ const CodeTabs = props => {
61468
61062
  };
61469
61063
  /* harmony default export */ const components_CodeTabs = (CodeTabs);
61470
61064
 
61471
- // EXTERNAL MODULE: ./components/Embed/index.jsx
61472
- var Embed = __webpack_require__(4735);
61473
- var Embed_default = /*#__PURE__*/__webpack_require__.n(Embed);
61065
+ ;// CONCATENATED MODULE: ./components/Embed/index.tsx
61066
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
61067
+ var t = {};
61068
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
61069
+ t[p] = s[p];
61070
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
61071
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
61072
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
61073
+ t[p[i]] = s[p[i]];
61074
+ }
61075
+ return t;
61076
+ };
61077
+
61078
+ const Favicon = (_a) => {
61079
+ var { src, alt = 'favicon' } = _a, attr = __rest(_a, ["src", "alt"]);
61080
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("img", Object.assign({}, attr, { alt: alt, height: "14", src: src, width: "14" })));
61081
+ };
61082
+ const Embed = (_a) => {
61083
+ var { lazy = true, url, provider, title, html, iframe, image, favicon } = _a, attrs = __rest(_a, ["lazy", "url", "provider", "title", "html", "iframe", "image", "favicon"]);
61084
+ if (iframe) {
61085
+ return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("iframe", Object.assign({}, attrs, { src: url, style: { border: 'none', display: 'flex', margin: 'auto' } }));
61086
+ }
61087
+ if (!provider)
61088
+ provider = new URL(url).hostname
61089
+ .split(/(?:www)?\./)
61090
+ .filter(i => i)
61091
+ .join('.');
61092
+ const classes = ['embed', image ? 'embed_hasImg' : ''];
61093
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: classes.join(' ') }, html ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-media", dangerouslySetInnerHTML: { __html: html } })) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("a", { className: "embed-link", href: url, rel: "noopener noreferrer", target: "_blank" },
61094
+ !image || external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("img", { alt: title, className: "embed-img", loading: lazy ? 'lazy' : undefined, src: image }),
61095
+ title ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-body" },
61096
+ !favicon || external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Favicon, { alt: provider, src: favicon }),
61097
+ provider && (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("small", { className: "embed-provider" }, provider.search(/^@{1}/) < 0 ? (provider) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("code", { style: { fontFamily: 'var(--md-code-font, monospace)' } }, url)))),
61098
+ external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-title" }, title))) : (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "embed-body" },
61099
+ external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("b", null, "View"),
61100
+ ": ",
61101
+ external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("span", { className: "embed-body-url" }, url)))))));
61102
+ };
61103
+ /* harmony default export */ const components_Embed = (Embed);
61104
+
61474
61105
  // EXTERNAL MODULE: external "@tippyjs/react"
61475
61106
  var react_ = __webpack_require__(6570);
61476
61107
  var react_default = /*#__PURE__*/__webpack_require__.n(react_);
@@ -61540,8 +61171,9 @@ var Heading = __webpack_require__(398);
61540
61171
  var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading);
61541
61172
  ;// CONCATENATED MODULE: ./components/Image/index.tsx
61542
61173
 
61543
- const Image = ({ align = '', alt = '', border = false, caption, className = '', height = 'auto', src = '', title = '', width = 'auto', lazy = false, }) => {
61174
+ const Image = (Props) => {
61544
61175
  const [lightbox, setLightbox] = external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useState(false);
61176
+ const { align = '', alt = '', border = false, caption, className = '', height = 'auto', src, title = '', width = 'auto', lazy = false, } = Props;
61545
61177
  if (className === 'emoji') {
61546
61178
  return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { src: src, width: width, height: height, title: title, alt: alt, loading: lazy ? 'lazy' : 'eager' });
61547
61179
  }
@@ -61781,54 +61413,50 @@ var parseOptions = function parseOptions() {
61781
61413
  return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
61782
61414
  });
61783
61415
 
61416
+ ;// CONCATENATED MODULE: ./enums.ts
61417
+ var NodeTypes;
61418
+ (function (NodeTypes) {
61419
+ NodeTypes["callout"] = "rdme-callout";
61420
+ NodeTypes["codeTabs"] = "code-tabs";
61421
+ NodeTypes["emoji"] = "emoji";
61422
+ NodeTypes["i"] = "i";
61423
+ NodeTypes["image"] = "image";
61424
+ NodeTypes["htmlBlock"] = "html-block";
61425
+ NodeTypes["embed"] = "rdme-embed";
61426
+ })(NodeTypes || (NodeTypes = {}));
61427
+
61784
61428
  ;// CONCATENATED MODULE: ./processor/transform/callouts.ts
61785
61429
 
61786
61430
 
61431
+
61787
61432
  const callouts_regex = `^(${emoji_regex().source}|⚠)(\\s+|$)`;
61788
61433
  const calloutTransformer = () => {
61789
61434
  return (tree) => {
61790
61435
  visit(tree, 'blockquote', (node) => {
61791
- try {
61792
- if (!(node.children[0].type === 'paragraph' && node.children[0].children[0].type === 'text'))
61793
- return;
61794
- const startText = node.children[0].children[0].value;
61795
- const [match, icon] = startText.match(callouts_regex) || [];
61796
- if (icon && match) {
61797
- const heading = startText.slice(match.length);
61798
- node.children.shift();
61799
- node.type = 'rdme-callout';
61800
- node.data = {
61801
- hName: 'Callout',
61802
- hProperties: {
61803
- heading,
61804
- icon,
61805
- },
61806
- };
61807
- }
61808
- }
61809
- catch (e) {
61810
- console.log(e);
61436
+ if (!(node.children[0].type === 'paragraph' && node.children[0].children[0].type === 'text'))
61437
+ return;
61438
+ const startText = node.children[0].children[0].value;
61439
+ const [match, icon] = startText.match(callouts_regex) || [];
61440
+ if (icon && match) {
61441
+ const heading = startText.slice(match.length);
61442
+ node.children[0].children[0].value = heading;
61443
+ node.type = NodeTypes.callout;
61444
+ node.data = {
61445
+ hName: 'Callout',
61446
+ hProperties: {
61447
+ icon,
61448
+ },
61449
+ };
61811
61450
  }
61812
61451
  });
61813
61452
  };
61814
61453
  };
61815
61454
  /* harmony default export */ const callouts = (calloutTransformer);
61816
61455
 
61817
- ;// CONCATENATED MODULE: ./enums.ts
61818
- var NodeTypes;
61819
- (function (NodeTypes) {
61820
- NodeTypes["callout"] = "callout";
61821
- NodeTypes["codeTabs"] = "code-tabs";
61822
- NodeTypes["emoji"] = "emoji";
61823
- NodeTypes["i"] = "i";
61824
- NodeTypes["image"] = "image";
61825
- NodeTypes["htmlBlock"] = "html-block";
61826
- })(NodeTypes || (NodeTypes = {}));
61827
-
61828
61456
  ;// CONCATENATED MODULE: ./processor/transform/code-tabs.ts
61829
61457
 
61830
61458
 
61831
- const codeTabs = () => tree => {
61459
+ const codeTabsTransformer = () => tree => {
61832
61460
  visit(tree, 'code', (node) => {
61833
61461
  const { lang, meta, value } = node;
61834
61462
  node.data = {
@@ -61871,7 +61499,31 @@ const codeTabs = () => tree => {
61871
61499
  });
61872
61500
  return tree;
61873
61501
  };
61874
- /* harmony default export */ const code_tabs = (codeTabs);
61502
+ /* harmony default export */ const code_tabs = (codeTabsTransformer);
61503
+
61504
+ ;// CONCATENATED MODULE: ./processor/transform/embeds.ts
61505
+
61506
+
61507
+ const embedTransformer = () => {
61508
+ return (tree) => {
61509
+ visit(tree, 'link', (node, _, parent) => {
61510
+ var _a, _b;
61511
+ if (parent.type !== 'paragraph' || parent.children.length > 1 || node.title !== '@embed')
61512
+ return;
61513
+ const newNode = {
61514
+ type: NodeTypes.embed,
61515
+ data: {
61516
+ hProperties: { title: (_b = (_a = node.children[0]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : node.url, url: node.url, provider: node.url },
61517
+ hName: 'Embed',
61518
+ },
61519
+ position: node.position,
61520
+ children: [],
61521
+ };
61522
+ parent = newNode;
61523
+ });
61524
+ };
61525
+ };
61526
+ /* harmony default export */ const transform_embeds = (embedTransformer);
61875
61527
 
61876
61528
  ;// CONCATENATED MODULE: ./node_modules/gemoji/index.js
61877
61529
  /**
@@ -78859,10 +78511,12 @@ const gemojiTransformer = () => (tree) => {
78859
78511
 
78860
78512
  ;// CONCATENATED MODULE: ./processor/transform/readme-components.ts
78861
78513
 
78514
+
78515
+
78862
78516
  const readme_components_types = {
78863
- Callout: 'rdme-callout',
78517
+ Callout: NodeTypes['callout'],
78864
78518
  Code: 'code',
78865
- CodeTabs: 'code-tabs',
78519
+ CodeTabs: NodeTypes['codeTabs'],
78866
78520
  Image: 'image',
78867
78521
  Table: 'table',
78868
78522
  tr: 'tableRow',
@@ -78875,6 +78529,7 @@ const attributes = (jsx) => jsx.attributes.reduce((memo, attr) => {
78875
78529
  return memo;
78876
78530
  }, {});
78877
78531
  const coerceJsxToMd = ({ components = {} } = {}) => (node, index, parent) => {
78532
+ var _a;
78878
78533
  if (node.name in components)
78879
78534
  return;
78880
78535
  if (node.name === 'Code') {
@@ -78916,6 +78571,21 @@ const coerceJsxToMd = ({ components = {} } = {}) => (node, index, parent) => {
78916
78571
  };
78917
78572
  parent.children[index] = mdNode;
78918
78573
  }
78574
+ else if (node.name === 'Callout') {
78575
+ const { heading, icon } = attributes(node);
78576
+ const child = mdast(heading);
78577
+ // @ts-ignore
78578
+ const mdNode = {
78579
+ children: [(_a = child === null || child === void 0 ? void 0 : child.children) === null || _a === void 0 ? void 0 : _a[0], ...node.children].filter(Boolean),
78580
+ type: NodeTypes.callout,
78581
+ data: {
78582
+ hName: node.name,
78583
+ hProperties: { icon },
78584
+ },
78585
+ position: node.position,
78586
+ };
78587
+ parent.children[index] = mdNode;
78588
+ }
78919
78589
  else if (node.name in readme_components_types) {
78920
78590
  const hProperties = attributes(node);
78921
78591
  // @ts-ignore
@@ -78950,15 +78620,36 @@ const readmeComponents = (opts) => () => tree => {
78950
78620
 
78951
78621
 
78952
78622
 
78953
- /* harmony default export */ const transform = ([callouts, code_tabs, gemoji_]);
78954
78623
 
78955
- ;// CONCATENATED MODULE: ./processor/compile/gemoji.ts
78956
- const gemoji_gemoji = (node) => `:${node.name}:`;
78957
- /* harmony default export */ const compile_gemoji = (gemoji_gemoji);
78624
+ /* harmony default export */ const transform = ([callouts, code_tabs, transform_embeds, gemoji_]);
78625
+
78626
+ ;// CONCATENATED MODULE: ./processor/compile/callout.ts
78627
+
78628
+ const callout = (node, _, state, info) => {
78629
+ const tracker = state.createTracker(info);
78630
+ const exit = state.enter(NodeTypes.callout);
78631
+ state.join.push(() => 0);
78632
+ const value = state.containerFlow(node, tracker.current());
78633
+ state.join.pop();
78634
+ exit();
78635
+ let lines = value.split('\n');
78636
+ if (lines.length > 1) {
78637
+ const [first, ...rest] = lines;
78638
+ lines = [first, '', ...rest];
78639
+ }
78640
+ let content = lines
78641
+ .map((line, index) => (index > 0 ? `>${line.length > 0 ? ' ' : ''}${line}` : line))
78642
+ .join('\n');
78643
+ if (content.match(/^[^\n]/))
78644
+ content = ' ' + content;
78645
+ const block = `> ${node.data.hProperties.icon}${content}`;
78646
+ return block;
78647
+ };
78648
+ /* harmony default export */ const compile_callout = (callout);
78958
78649
 
78959
78650
  ;// CONCATENATED MODULE: ./processor/compile/code-tabs.ts
78960
78651
 
78961
- const code_tabs_codeTabs = (node, _, state, info) => {
78652
+ const codeTabs = (node, _, state, info) => {
78962
78653
  const exit = state.enter(NodeTypes.codeTabs);
78963
78654
  const tracker = state.createTracker(info);
78964
78655
  state.join.push(() => 0);
@@ -78967,7 +78658,29 @@ const code_tabs_codeTabs = (node, _, state, info) => {
78967
78658
  exit();
78968
78659
  return value;
78969
78660
  };
78970
- /* harmony default export */ const compile_code_tabs = (code_tabs_codeTabs);
78661
+ /* harmony default export */ const compile_code_tabs = (codeTabs);
78662
+
78663
+ ;// CONCATENATED MODULE: ./processor/compile/embed.ts
78664
+ const embed_embed = (node) => {
78665
+ var _a, _b;
78666
+ const { image, favicon, iframe, title, url } = ((_a = node.data) === null || _a === void 0 ? void 0 : _a.hProperties) || {};
78667
+ const complexEmbed = Boolean(image) || Boolean(favicon) || iframe;
78668
+ if (complexEmbed)
78669
+ return `<Embed ${Object.assign({}, (_b = node.data) === null || _b === void 0 ? void 0 : _b.hProperties)} />`;
78670
+ return `[${title}](${url} "@embed")'`;
78671
+ };
78672
+ /* harmony default export */ const compile_embed = (embed_embed);
78673
+
78674
+ ;// CONCATENATED MODULE: ./processor/compile/gemoji.ts
78675
+ const gemoji_gemoji = (node) => `:${node.name}:`;
78676
+ /* harmony default export */ const compile_gemoji = (gemoji_gemoji);
78677
+
78678
+ ;// CONCATENATED MODULE: ./processor/compile/html-block.ts
78679
+ const htmlBlock = (node) => {
78680
+ const html = node.data.hProperties.html;
78681
+ return `<HTMLBlock>${JSON.stringify({ html }, null, 2)}</HTMLBlock>`;
78682
+ };
78683
+ /* harmony default export */ const html_block = (htmlBlock);
78971
78684
 
78972
78685
  ;// CONCATENATED MODULE: ./processor/compile/image.ts
78973
78686
  const compile_image_image = (node) => {
@@ -78980,31 +78693,27 @@ const compile_image_image = (node) => {
78980
78693
  };
78981
78694
  /* harmony default export */ const compile_image = (compile_image_image);
78982
78695
 
78983
- ;// CONCATENATED MODULE: ./processor/compile/html-block.ts
78984
- const htmlBlock = (node) => {
78985
- const html = node.data.hProperties.html;
78986
- return `<HTMLBlock>${JSON.stringify({ html }, null, 2)}</HTMLBlock>`;
78987
- };
78988
- /* harmony default export */ const html_block = (htmlBlock);
78989
-
78990
78696
  ;// CONCATENATED MODULE: ./processor/compile/index.ts
78991
78697
 
78992
78698
 
78993
78699
 
78994
78700
 
78995
78701
 
78702
+
78703
+
78996
78704
  function compilers() {
78997
78705
  const data = this.data();
78998
78706
  const toMarkdownExtensions = data.toMarkdownExtensions || (data.toMarkdownExtensions = []);
78999
78707
  const handlers = {
78708
+ [NodeTypes.callout]: compile_callout,
79000
78709
  [NodeTypes.emoji]: compile_gemoji,
79001
78710
  [NodeTypes.codeTabs]: compile_code_tabs,
79002
- [NodeTypes.image]: compile_image,
78711
+ [NodeTypes.embed]: compile_embed,
79003
78712
  [NodeTypes.htmlBlock]: html_block,
78713
+ [NodeTypes.image]: compile_image,
79004
78714
  };
79005
78715
  toMarkdownExtensions.push({ extensions: [{ handlers }] });
79006
78716
  }
79007
- ;
79008
78717
  /* harmony default export */ const processor_compile = (compilers);
79009
78718
 
79010
78719
  ;// CONCATENATED MODULE: ./errors/mdx-syntax-error.ts
@@ -79028,7 +78737,7 @@ class MdxSyntaxError extends SyntaxError {
79028
78737
  }
79029
78738
 
79030
78739
  ;// CONCATENATED MODULE: ./index.tsx
79031
- var __rest = (undefined && undefined.__rest) || function (s, e) {
78740
+ var index_rest = (undefined && undefined.__rest) || function (s, e) {
79032
78741
  var t = {};
79033
78742
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
79034
78743
  t[p] = s[p];
@@ -79079,7 +78788,7 @@ const reactProcessor = (opts = {}) => {
79079
78788
  };
79080
78789
  const index_compile = (text, opts = {}) => {
79081
78790
  try {
79082
- return String(compileSync(text, Object.assign({ outputFormat: 'function-body', providerImportSource: '#', remarkPlugins }, opts))).replace(/await import\(_resolveDynamicMdxSpecifier\('react'\)\)/, 'arguments[0].imports.React');
78791
+ return String(compileSync(text, Object.assign({ outputFormat: 'function-body', providerImportSource: '#', remarkPlugins }, opts))).replace(/await import\(_resolveDynamicMdxSpecifier\(('react'|"react")\)\)/, 'arguments[0].imports.React');
79083
78792
  }
79084
78793
  catch (error) {
79085
78794
  console.error(error);
@@ -79088,7 +78797,7 @@ const index_compile = (text, opts = {}) => {
79088
78797
  };
79089
78798
  const index_run = async (code, _opts = {}) => {
79090
78799
  const { Fragment } = jsx_runtime_namespaceObject;
79091
- const { components } = _opts, opts = __rest(_opts, ["components"]);
78800
+ const { components } = _opts, opts = index_rest(_opts, ["components"]);
79092
78801
  const file = await run(code, Object.assign(Object.assign(Object.assign({}, jsx_runtime_namespaceObject), { Fragment, baseUrl: "file:///home/runner/work/markdown/markdown/index.tsx", imports: { React: (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()) }, useMDXComponents: makeUseMDXComponents(components) }), opts));
79093
78802
  return (file === null || file === void 0 ? void 0 : file.default) || (() => null);
79094
78803
  };