[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> block-library.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["blockLibrary"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  30  /******/
  31  /******/     // expose the modules object (__webpack_modules__)
  32  /******/     __webpack_require__.m = modules;
  33  /******/
  34  /******/     // expose the module cache
  35  /******/     __webpack_require__.c = installedModules;
  36  /******/
  37  /******/     // define getter function for harmony exports
  38  /******/     __webpack_require__.d = function(exports, name, getter) {
  39  /******/         if(!__webpack_require__.o(exports, name)) {
  40  /******/             Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41  /******/         }
  42  /******/     };
  43  /******/
  44  /******/     // define __esModule on exports
  45  /******/     __webpack_require__.r = function(exports) {
  46  /******/         if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47  /******/             Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48  /******/         }
  49  /******/         Object.defineProperty(exports, '__esModule', { value: true });
  50  /******/     };
  51  /******/
  52  /******/     // create a fake namespace object
  53  /******/     // mode & 1: value is a module id, require it
  54  /******/     // mode & 2: merge all properties of value into the ns
  55  /******/     // mode & 4: return value when already ns object
  56  /******/     // mode & 8|1: behave like require
  57  /******/     __webpack_require__.t = function(value, mode) {
  58  /******/         if(mode & 1) value = __webpack_require__(value);
  59  /******/         if(mode & 8) return value;
  60  /******/         if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61  /******/         var ns = Object.create(null);
  62  /******/         __webpack_require__.r(ns);
  63  /******/         Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64  /******/         if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65  /******/         return ns;
  66  /******/     };
  67  /******/
  68  /******/     // getDefaultExport function for compatibility with non-harmony modules
  69  /******/     __webpack_require__.n = function(module) {
  70  /******/         var getter = module && module.__esModule ?
  71  /******/ 			function getDefault() { return module['default']; } :
  72  /******/ 			function getModuleExports() { return module; };
  73  /******/         __webpack_require__.d(getter, 'a', getter);
  74  /******/         return getter;
  75  /******/     };
  76  /******/
  77  /******/     // Object.prototype.hasOwnProperty.call
  78  /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79  /******/
  80  /******/     // __webpack_public_path__
  81  /******/     __webpack_require__.p = "";
  82  /******/
  83  /******/
  84  /******/     // Load entry module and return exports
  85  /******/     return __webpack_require__(__webpack_require__.s = "./node_modules/@wordpress/block-library/build-module/index.js");
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
  91  /*!*******************************************************************!*\
  92    !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
  93    \*******************************************************************/
  94  /*! exports provided: default */
  95  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  96  
  97  "use strict";
  98  __webpack_require__.r(__webpack_exports__);
  99  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithHoles; });
 100  function _arrayWithHoles(arr) {
 101    if (Array.isArray(arr)) return arr;
 102  }
 103  
 104  /***/ }),
 105  
 106  /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
 107  /*!**********************************************************************!*\
 108    !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***!
 109    \**********************************************************************/
 110  /*! exports provided: default */
 111  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 112  
 113  "use strict";
 114  __webpack_require__.r(__webpack_exports__);
 115  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithoutHoles; });
 116  function _arrayWithoutHoles(arr) {
 117    if (Array.isArray(arr)) {
 118      for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
 119        arr2[i] = arr[i];
 120      }
 121  
 122      return arr2;
 123    }
 124  }
 125  
 126  /***/ }),
 127  
 128  /***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
 129  /*!**************************************************************************!*\
 130    !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
 131    \**************************************************************************/
 132  /*! exports provided: default */
 133  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 134  
 135  "use strict";
 136  __webpack_require__.r(__webpack_exports__);
 137  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _assertThisInitialized; });
 138  function _assertThisInitialized(self) {
 139    if (self === void 0) {
 140      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
 141    }
 142  
 143    return self;
 144  }
 145  
 146  /***/ }),
 147  
 148  /***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
 149  /*!*******************************************************************!*\
 150    !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
 151    \*******************************************************************/
 152  /*! exports provided: default */
 153  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 154  
 155  "use strict";
 156  __webpack_require__.r(__webpack_exports__);
 157  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _classCallCheck; });
 158  function _classCallCheck(instance, Constructor) {
 159    if (!(instance instanceof Constructor)) {
 160      throw new TypeError("Cannot call a class as a function");
 161    }
 162  }
 163  
 164  /***/ }),
 165  
 166  /***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js":
 167  /*!****************************************************************!*\
 168    !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***!
 169    \****************************************************************/
 170  /*! exports provided: default */
 171  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 172  
 173  "use strict";
 174  __webpack_require__.r(__webpack_exports__);
 175  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _createClass; });
 176  function _defineProperties(target, props) {
 177    for (var i = 0; i < props.length; i++) {
 178      var descriptor = props[i];
 179      descriptor.enumerable = descriptor.enumerable || false;
 180      descriptor.configurable = true;
 181      if ("value" in descriptor) descriptor.writable = true;
 182      Object.defineProperty(target, descriptor.key, descriptor);
 183    }
 184  }
 185  
 186  function _createClass(Constructor, protoProps, staticProps) {
 187    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 188    if (staticProps) _defineProperties(Constructor, staticProps);
 189    return Constructor;
 190  }
 191  
 192  /***/ }),
 193  
 194  /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
 195  /*!*******************************************************************!*\
 196    !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
 197    \*******************************************************************/
 198  /*! exports provided: default */
 199  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 200  
 201  "use strict";
 202  __webpack_require__.r(__webpack_exports__);
 203  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; });
 204  function _defineProperty(obj, key, value) {
 205    if (key in obj) {
 206      Object.defineProperty(obj, key, {
 207        value: value,
 208        enumerable: true,
 209        configurable: true,
 210        writable: true
 211      });
 212    } else {
 213      obj[key] = value;
 214    }
 215  
 216    return obj;
 217  }
 218  
 219  /***/ }),
 220  
 221  /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
 222  /*!************************************************************!*\
 223    !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
 224    \************************************************************/
 225  /*! exports provided: default */
 226  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 227  
 228  "use strict";
 229  __webpack_require__.r(__webpack_exports__);
 230  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
 231  function _extends() {
 232    _extends = Object.assign || function (target) {
 233      for (var i = 1; i < arguments.length; i++) {
 234        var source = arguments[i];
 235  
 236        for (var key in source) {
 237          if (Object.prototype.hasOwnProperty.call(source, key)) {
 238            target[key] = source[key];
 239          }
 240        }
 241      }
 242  
 243      return target;
 244    };
 245  
 246    return _extends.apply(this, arguments);
 247  }
 248  
 249  /***/ }),
 250  
 251  /***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
 252  /*!*******************************************************************!*\
 253    !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
 254    \*******************************************************************/
 255  /*! exports provided: default */
 256  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 257  
 258  "use strict";
 259  __webpack_require__.r(__webpack_exports__);
 260  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; });
 261  function _getPrototypeOf(o) {
 262    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 263      return o.__proto__ || Object.getPrototypeOf(o);
 264    };
 265    return _getPrototypeOf(o);
 266  }
 267  
 268  /***/ }),
 269  
 270  /***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js":
 271  /*!*************************************************************!*\
 272    !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***!
 273    \*************************************************************/
 274  /*! exports provided: default */
 275  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 276  
 277  "use strict";
 278  __webpack_require__.r(__webpack_exports__);
 279  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inherits; });
 280  /* harmony import */ var _setPrototypeOf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
 281  
 282  function _inherits(subClass, superClass) {
 283    if (typeof superClass !== "function" && superClass !== null) {
 284      throw new TypeError("Super expression must either be null or a function");
 285    }
 286  
 287    subClass.prototype = Object.create(superClass && superClass.prototype, {
 288      constructor: {
 289        value: subClass,
 290        writable: true,
 291        configurable: true
 292      }
 293    });
 294    if (superClass) Object(_setPrototypeOf__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass);
 295  }
 296  
 297  /***/ }),
 298  
 299  /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
 300  /*!********************************************************************!*\
 301    !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
 302    \********************************************************************/
 303  /*! exports provided: default */
 304  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 305  
 306  "use strict";
 307  __webpack_require__.r(__webpack_exports__);
 308  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArray; });
 309  function _iterableToArray(iter) {
 310    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
 311  }
 312  
 313  /***/ }),
 314  
 315  /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
 316  /*!*************************************************************************!*\
 317    !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
 318    \*************************************************************************/
 319  /*! exports provided: default */
 320  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 321  
 322  "use strict";
 323  __webpack_require__.r(__webpack_exports__);
 324  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArrayLimit; });
 325  function _iterableToArrayLimit(arr, i) {
 326    var _arr = [];
 327    var _n = true;
 328    var _d = false;
 329    var _e = undefined;
 330  
 331    try {
 332      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 333        _arr.push(_s.value);
 334  
 335        if (i && _arr.length === i) break;
 336      }
 337    } catch (err) {
 338      _d = true;
 339      _e = err;
 340    } finally {
 341      try {
 342        if (!_n && _i["return"] != null) _i["return"]();
 343      } finally {
 344        if (_d) throw _e;
 345      }
 346    }
 347  
 348    return _arr;
 349  }
 350  
 351  /***/ }),
 352  
 353  /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
 354  /*!********************************************************************!*\
 355    !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
 356    \********************************************************************/
 357  /*! exports provided: default */
 358  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 359  
 360  "use strict";
 361  __webpack_require__.r(__webpack_exports__);
 362  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableRest; });
 363  function _nonIterableRest() {
 364    throw new TypeError("Invalid attempt to destructure non-iterable instance");
 365  }
 366  
 367  /***/ }),
 368  
 369  /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
 370  /*!**********************************************************************!*\
 371    !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***!
 372    \**********************************************************************/
 373  /*! exports provided: default */
 374  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 375  
 376  "use strict";
 377  __webpack_require__.r(__webpack_exports__);
 378  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableSpread; });
 379  function _nonIterableSpread() {
 380    throw new TypeError("Invalid attempt to spread non-iterable instance");
 381  }
 382  
 383  /***/ }),
 384  
 385  /***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js":
 386  /*!*****************************************************************!*\
 387    !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread.js ***!
 388    \*****************************************************************/
 389  /*! exports provided: default */
 390  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 391  
 392  "use strict";
 393  __webpack_require__.r(__webpack_exports__);
 394  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectSpread; });
 395  /* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
 396  
 397  function _objectSpread(target) {
 398    for (var i = 1; i < arguments.length; i++) {
 399      var source = arguments[i] != null ? arguments[i] : {};
 400      var ownKeys = Object.keys(source);
 401  
 402      if (typeof Object.getOwnPropertySymbols === 'function') {
 403        ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
 404          return Object.getOwnPropertyDescriptor(source, sym).enumerable;
 405        }));
 406      }
 407  
 408      ownKeys.forEach(function (key) {
 409        Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]);
 410      });
 411    }
 412  
 413    return target;
 414  }
 415  
 416  /***/ }),
 417  
 418  /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":
 419  /*!****************************************************************************!*\
 420    !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***!
 421    \****************************************************************************/
 422  /*! exports provided: default */
 423  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 424  
 425  "use strict";
 426  __webpack_require__.r(__webpack_exports__);
 427  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutProperties; });
 428  /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
 429  
 430  function _objectWithoutProperties(source, excluded) {
 431    if (source == null) return {};
 432    var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(source, excluded);
 433    var key, i;
 434  
 435    if (Object.getOwnPropertySymbols) {
 436      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 437  
 438      for (i = 0; i < sourceSymbolKeys.length; i++) {
 439        key = sourceSymbolKeys[i];
 440        if (excluded.indexOf(key) >= 0) continue;
 441        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
 442        target[key] = source[key];
 443      }
 444    }
 445  
 446    return target;
 447  }
 448  
 449  /***/ }),
 450  
 451  /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
 452  /*!*********************************************************************************!*\
 453    !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
 454    \*********************************************************************************/
 455  /*! exports provided: default */
 456  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 457  
 458  "use strict";
 459  __webpack_require__.r(__webpack_exports__);
 460  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
 461  function _objectWithoutPropertiesLoose(source, excluded) {
 462    if (source == null) return {};
 463    var target = {};
 464    var sourceKeys = Object.keys(source);
 465    var key, i;
 466  
 467    for (i = 0; i < sourceKeys.length; i++) {
 468      key = sourceKeys[i];
 469      if (excluded.indexOf(key) >= 0) continue;
 470      target[key] = source[key];
 471    }
 472  
 473    return target;
 474  }
 475  
 476  /***/ }),
 477  
 478  /***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
 479  /*!******************************************************************************!*\
 480    !*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
 481    \******************************************************************************/
 482  /*! exports provided: default */
 483  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 484  
 485  "use strict";
 486  __webpack_require__.r(__webpack_exports__);
 487  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _possibleConstructorReturn; });
 488  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
 489  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
 490  
 491  
 492  function _possibleConstructorReturn(self, call) {
 493    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(call) === "object" || typeof call === "function")) {
 494      return call;
 495    }
 496  
 497    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__["default"])(self);
 498  }
 499  
 500  /***/ }),
 501  
 502  /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
 503  /*!*******************************************************************!*\
 504    !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
 505    \*******************************************************************/
 506  /*! exports provided: default */
 507  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 508  
 509  "use strict";
 510  __webpack_require__.r(__webpack_exports__);
 511  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; });
 512  function _setPrototypeOf(o, p) {
 513    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 514      o.__proto__ = p;
 515      return o;
 516    };
 517  
 518    return _setPrototypeOf(o, p);
 519  }
 520  
 521  /***/ }),
 522  
 523  /***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
 524  /*!******************************************************************!*\
 525    !*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
 526    \******************************************************************/
 527  /*! exports provided: default */
 528  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 529  
 530  "use strict";
 531  __webpack_require__.r(__webpack_exports__);
 532  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _slicedToArray; });
 533  /* harmony import */ var _arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
 534  /* harmony import */ var _iterableToArrayLimit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
 535  /* harmony import */ var _nonIterableRest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableRest */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
 536  
 537  
 538  
 539  function _slicedToArray(arr, i) {
 540    return Object(_arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArrayLimit__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || Object(_nonIterableRest__WEBPACK_IMPORTED_MODULE_2__["default"])();
 541  }
 542  
 543  /***/ }),
 544  
 545  /***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
 546  /*!**********************************************************************!*\
 547    !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
 548    \**********************************************************************/
 549  /*! exports provided: default */
 550  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 551  
 552  "use strict";
 553  __webpack_require__.r(__webpack_exports__);
 554  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toConsumableArray; });
 555  /* harmony import */ var _arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js");
 556  /* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
 557  /* harmony import */ var _nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");
 558  
 559  
 560  
 561  function _toConsumableArray(arr) {
 562    return Object(_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__["default"])();
 563  }
 564  
 565  /***/ }),
 566  
 567  /***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
 568  /*!***********************************************************!*\
 569    !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
 570    \***********************************************************/
 571  /*! exports provided: default */
 572  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 573  
 574  "use strict";
 575  __webpack_require__.r(__webpack_exports__);
 576  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _typeof; });
 577  function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
 578  
 579  function _typeof(obj) {
 580    if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
 581      _typeof = function _typeof(obj) {
 582        return _typeof2(obj);
 583      };
 584    } else {
 585      _typeof = function _typeof(obj) {
 586        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
 587      };
 588    }
 589  
 590    return _typeof(obj);
 591  }
 592  
 593  /***/ }),
 594  
 595  /***/ "./node_modules/@wordpress/block-library/build-module/archives/edit.js":
 596  /*!*****************************************************************************!*\
 597    !*** ./node_modules/@wordpress/block-library/build-module/archives/edit.js ***!
 598    \*****************************************************************************/
 599  /*! exports provided: default */
 600  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 601  
 602  "use strict";
 603  __webpack_require__.r(__webpack_exports__);
 604  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ArchivesEdit; });
 605  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
 606  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 607  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
 608  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
 609  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
 610  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
 611  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
 612  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__);
 613  
 614  
 615  /**
 616   * WordPress dependencies
 617   */
 618  
 619  
 620  
 621  /**
 622   * Internal dependencies
 623   */
 624  
 625  
 626  function ArchivesEdit(_ref) {
 627    var attributes = _ref.attributes,
 628        setAttributes = _ref.setAttributes;
 629    var align = attributes.align,
 630        showPostCounts = attributes.showPostCounts,
 631        displayAsDropdown = attributes.displayAsDropdown;
 632    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["PanelBody"], {
 633      title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Archives Settings')
 634    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["ToggleControl"], {
 635      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Display as Dropdown'),
 636      checked: displayAsDropdown,
 637      onChange: function onChange() {
 638        return setAttributes({
 639          displayAsDropdown: !displayAsDropdown
 640        });
 641      }
 642    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["ToggleControl"], {
 643      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Show Post Counts'),
 644      checked: showPostCounts,
 645      onChange: function onChange() {
 646        return setAttributes({
 647          showPostCounts: !showPostCounts
 648        });
 649      }
 650    }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["BlockAlignmentToolbar"], {
 651      value: align,
 652      onChange: function onChange(nextAlign) {
 653        setAttributes({
 654          align: nextAlign
 655        });
 656      },
 657      controls: ['left', 'center', 'right']
 658    })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Disabled"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["ServerSideRender"], {
 659      block: "core/archives",
 660      attributes: attributes
 661    })));
 662  }
 663  
 664  
 665  /***/ }),
 666  
 667  /***/ "./node_modules/@wordpress/block-library/build-module/archives/index.js":
 668  /*!******************************************************************************!*\
 669    !*** ./node_modules/@wordpress/block-library/build-module/archives/index.js ***!
 670    \******************************************************************************/
 671  /*! exports provided: name, settings */
 672  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 673  
 674  "use strict";
 675  __webpack_require__.r(__webpack_exports__);
 676  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
 677  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
 678  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
 679  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 680  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
 681  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
 682  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/archives/edit.js");
 683  
 684  
 685  /**
 686   * WordPress dependencies
 687   */
 688  
 689  /**
 690   * Internal dependencies
 691   */
 692  
 693  
 694  var name = 'core/archives';
 695  var settings = {
 696    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Archives'),
 697    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a monthly archive of your site’s Posts.'),
 698    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
 699      viewBox: "0 0 24 24",
 700      xmlns: "http://www.w3.org/2000/svg"
 701    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
 702      fill: "none",
 703      d: "M0 0h24v24H0V0z"
 704    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
 705      d: "M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"
 706    }))),
 707    category: 'widgets',
 708    supports: {
 709      html: false
 710    },
 711    getEditWrapperProps: function getEditWrapperProps(attributes) {
 712      var align = attributes.align;
 713  
 714      if (['left', 'center', 'right'].includes(align)) {
 715        return {
 716          'data-align': align
 717        };
 718      }
 719    },
 720    edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
 721    save: function save() {
 722      // Handled by PHP.
 723      return null;
 724    }
 725  };
 726  
 727  
 728  /***/ }),
 729  
 730  /***/ "./node_modules/@wordpress/block-library/build-module/audio/edit.js":
 731  /*!**************************************************************************!*\
 732    !*** ./node_modules/@wordpress/block-library/build-module/audio/edit.js ***!
 733    \**************************************************************************/
 734  /*! exports provided: default */
 735  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 736  
 737  "use strict";
 738  __webpack_require__.r(__webpack_exports__);
 739  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
 740  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
 741  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
 742  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
 743  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
 744  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
 745  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
 746  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
 747  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
 748  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
 749  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
 750  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
 751  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
 752  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__);
 753  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
 754  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__);
 755  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
 756  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_12__);
 757  
 758  
 759  
 760  
 761  
 762  
 763  
 764  
 765  
 766  
 767  /**
 768   * WordPress dependencies
 769   */
 770  
 771  
 772  
 773  
 774  
 775  var ALLOWED_MEDIA_TYPES = ['audio'];
 776  
 777  var AudioEdit =
 778  /*#__PURE__*/
 779  function (_Component) {
 780    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(AudioEdit, _Component);
 781  
 782    function AudioEdit() {
 783      var _this;
 784  
 785      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, AudioEdit);
 786  
 787      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(AudioEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited
 788      // without setting the actual value outside of the edit UI
 789  
 790      _this.state = {
 791        editing: !_this.props.attributes.src
 792      };
 793      _this.toggleAttribute = _this.toggleAttribute.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
 794      _this.onSelectURL = _this.onSelectURL.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
 795      return _this;
 796    }
 797  
 798    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(AudioEdit, [{
 799      key: "componentDidMount",
 800      value: function componentDidMount() {
 801        var _this2 = this;
 802  
 803        var _this$props = this.props,
 804            attributes = _this$props.attributes,
 805            noticeOperations = _this$props.noticeOperations,
 806            setAttributes = _this$props.setAttributes;
 807        var id = attributes.id,
 808            _attributes$src = attributes.src,
 809            src = _attributes$src === void 0 ? '' : _attributes$src;
 810  
 811        if (!id && src.indexOf('blob:') === 0) {
 812          var file = Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_12__["getBlobByURL"])(src);
 813  
 814          if (file) {
 815            Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["mediaUpload"])({
 816              filesList: [file],
 817              onFileChange: function onFileChange(_ref) {
 818                var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 1),
 819                    _ref2$ = _ref2[0],
 820                    mediaId = _ref2$.id,
 821                    url = _ref2$.url;
 822  
 823                setAttributes({
 824                  id: mediaId,
 825                  src: url
 826                });
 827              },
 828              onError: function onError(e) {
 829                setAttributes({
 830                  src: undefined,
 831                  id: undefined
 832                });
 833  
 834                _this2.setState({
 835                  editing: true
 836                });
 837  
 838                noticeOperations.createErrorNotice(e);
 839              },
 840              allowedTypes: ALLOWED_MEDIA_TYPES
 841            });
 842          }
 843        }
 844      }
 845    }, {
 846      key: "toggleAttribute",
 847      value: function toggleAttribute(attribute) {
 848        var _this3 = this;
 849  
 850        return function (newValue) {
 851          _this3.props.setAttributes(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, attribute, newValue));
 852        };
 853      }
 854    }, {
 855      key: "onSelectURL",
 856      value: function onSelectURL(newSrc) {
 857        var _this$props2 = this.props,
 858            attributes = _this$props2.attributes,
 859            setAttributes = _this$props2.setAttributes;
 860        var src = attributes.src; // Set the block's src from the edit component's state, and switch off
 861        // the editing UI.
 862  
 863        if (newSrc !== src) {
 864          setAttributes({
 865            src: newSrc,
 866            id: undefined
 867          });
 868        }
 869  
 870        this.setState({
 871          editing: false
 872        });
 873      }
 874    }, {
 875      key: "render",
 876      value: function render() {
 877        var _this4 = this;
 878  
 879        var _this$props$attribute = this.props.attributes,
 880            autoplay = _this$props$attribute.autoplay,
 881            caption = _this$props$attribute.caption,
 882            loop = _this$props$attribute.loop,
 883            preload = _this$props$attribute.preload,
 884            src = _this$props$attribute.src;
 885        var _this$props3 = this.props,
 886            setAttributes = _this$props3.setAttributes,
 887            isSelected = _this$props3.isSelected,
 888            className = _this$props3.className,
 889            noticeOperations = _this$props3.noticeOperations,
 890            noticeUI = _this$props3.noticeUI;
 891        var editing = this.state.editing;
 892  
 893        var switchToEditing = function switchToEditing() {
 894          _this4.setState({
 895            editing: true
 896          });
 897        };
 898  
 899        var onSelectAudio = function onSelectAudio(media) {
 900          if (!media || !media.url) {
 901            // in this case there was an error and we should continue in the editing state
 902            // previous attributes should be removed because they may be temporary blob urls
 903            setAttributes({
 904              src: undefined,
 905              id: undefined
 906            });
 907            switchToEditing();
 908            return;
 909          } // sets the block's attribute and updates the edit component from the
 910          // selected media, then switches off the editing UI
 911  
 912  
 913          setAttributes({
 914            src: media.url,
 915            id: media.id
 916          });
 917  
 918          _this4.setState({
 919            src: media.url,
 920            editing: false
 921          });
 922        };
 923  
 924        if (editing) {
 925          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["MediaPlaceholder"], {
 926            icon: "media-audio",
 927            labels: {
 928              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Audio'),
 929              name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('an audio')
 930            },
 931            className: className,
 932            onSelect: onSelectAudio,
 933            onSelectURL: this.onSelectURL,
 934            accept: "audio/*",
 935            allowedTypes: ALLOWED_MEDIA_TYPES,
 936            value: this.props.attributes,
 937            notices: noticeUI,
 938            onError: noticeOperations.createErrorNotice
 939          });
 940        }
 941        /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
 942  
 943  
 944        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["IconButton"], {
 945          className: "components-icon-button components-toolbar__control",
 946          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Edit audio'),
 947          onClick: switchToEditing,
 948          icon: "edit"
 949        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["PanelBody"], {
 950          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Audio Settings')
 951        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
 952          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Autoplay'),
 953          onChange: this.toggleAttribute('autoplay'),
 954          checked: autoplay
 955        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
 956          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Loop'),
 957          onChange: this.toggleAttribute('loop'),
 958          checked: loop
 959        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["SelectControl"], {
 960          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Preload'),
 961          value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset.
 962          ,
 963          onChange: function onChange(value) {
 964            return setAttributes({
 965              preload: 'none' !== value ? value : undefined
 966            });
 967          },
 968          options: [{
 969            value: 'auto',
 970            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Auto')
 971          }, {
 972            value: 'metadata',
 973            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Metadata')
 974          }, {
 975            value: 'none',
 976            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('None')
 977          }]
 978        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("figure", {
 979          className: className
 980        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Disabled"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("audio", {
 981          controls: "controls",
 982          src: src
 983        })), (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["RichText"].isEmpty(caption) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["RichText"], {
 984          tagName: "figcaption",
 985          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Write caption…'),
 986          value: caption,
 987          onChange: function onChange(value) {
 988            return setAttributes({
 989              caption: value
 990            });
 991          },
 992          inlineToolbar: true
 993        })));
 994        /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
 995      }
 996    }]);
 997  
 998    return AudioEdit;
 999  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
1000  
1001  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["withNotices"])(AudioEdit));
1002  
1003  
1004  /***/ }),
1005  
1006  /***/ "./node_modules/@wordpress/block-library/build-module/audio/index.js":
1007  /*!***************************************************************************!*\
1008    !*** ./node_modules/@wordpress/block-library/build-module/audio/index.js ***!
1009    \***************************************************************************/
1010  /*! exports provided: name, settings */
1011  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1012  
1013  "use strict";
1014  __webpack_require__.r(__webpack_exports__);
1015  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
1016  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
1017  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
1018  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1019  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1020  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
1021  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
1022  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__);
1023  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/audio/edit.js");
1024  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
1025  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
1026  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
1027  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_5__);
1028  
1029  
1030  /**
1031   * WordPress dependencies
1032   */
1033  
1034  
1035  /**
1036   * Internal dependencies
1037   */
1038  
1039  
1040  
1041  
1042  var name = 'core/audio';
1043  var settings = {
1044    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Audio'),
1045    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an audio file and a simple audio player.'),
1046    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
1047      viewBox: "0 0 24 24",
1048      xmlns: "http://www.w3.org/2000/svg"
1049    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
1050      d: "M0,0h24v24H0V0z",
1051      fill: "none"
1052    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
1053      d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"
1054    })),
1055    category: 'common',
1056    attributes: {
1057      src: {
1058        type: 'string',
1059        source: 'attribute',
1060        selector: 'audio',
1061        attribute: 'src'
1062      },
1063      caption: {
1064        source: 'html',
1065        selector: 'figcaption'
1066      },
1067      id: {
1068        type: 'number'
1069      },
1070      autoplay: {
1071        type: 'boolean',
1072        source: 'attribute',
1073        selector: 'audio',
1074        attribute: 'autoplay'
1075      },
1076      loop: {
1077        type: 'boolean',
1078        source: 'attribute',
1079        selector: 'audio',
1080        attribute: 'loop'
1081      },
1082      preload: {
1083        type: 'string',
1084        source: 'attribute',
1085        selector: 'audio',
1086        attribute: 'preload'
1087      }
1088    },
1089    transforms: {
1090      from: [{
1091        type: 'files',
1092        isMatch: function isMatch(files) {
1093          return files.length === 1 && files[0].type.indexOf('audio/') === 0;
1094        },
1095        transform: function transform(files) {
1096          var file = files[0]; // We don't need to upload the media directly here
1097          // It's already done as part of the `componentDidMount`
1098          // in the audio block
1099  
1100          var block = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/audio', {
1101            src: Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_5__["createBlobURL"])(file)
1102          });
1103          return block;
1104        }
1105      }]
1106    },
1107    supports: {
1108      align: true
1109    },
1110    edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"],
1111    save: function save(_ref) {
1112      var attributes = _ref.attributes;
1113      var autoplay = attributes.autoplay,
1114          caption = attributes.caption,
1115          loop = attributes.loop,
1116          preload = attributes.preload,
1117          src = attributes.src;
1118      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("figure", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("audio", {
1119        controls: "controls",
1120        src: src,
1121        autoPlay: autoplay,
1122        loop: loop,
1123        preload: preload
1124      }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["RichText"].Content, {
1125        tagName: "figcaption",
1126        value: caption
1127      }));
1128    }
1129  };
1130  
1131  
1132  /***/ }),
1133  
1134  /***/ "./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js":
1135  /*!**************************************************************************************!*\
1136    !*** ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js ***!
1137    \**************************************************************************************/
1138  /*! exports provided: default */
1139  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1140  
1141  "use strict";
1142  __webpack_require__.r(__webpack_exports__);
1143  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
1144  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
1145  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
1146  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
1147  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
1148  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
1149  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
1150  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
1151  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
1152  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);
1153  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1154  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);
1155  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
1156  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__);
1157  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
1158  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__);
1159  
1160  
1161  
1162  
1163  
1164  
1165  
1166  
1167  /**
1168   * WordPress dependencies
1169   */
1170  
1171  
1172  
1173  
1174  
1175  
1176  var ReusableBlockEditPanel =
1177  /*#__PURE__*/
1178  function (_Component) {
1179    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(ReusableBlockEditPanel, _Component);
1180  
1181    function ReusableBlockEditPanel() {
1182      var _this;
1183  
1184      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ReusableBlockEditPanel);
1185  
1186      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(ReusableBlockEditPanel).apply(this, arguments));
1187      _this.titleField = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
1188      _this.editButton = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
1189      _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
1190      _this.handleTitleChange = _this.handleTitleChange.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
1191      _this.handleTitleKeyDown = _this.handleTitleKeyDown.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
1192      return _this;
1193    }
1194  
1195    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(ReusableBlockEditPanel, [{
1196      key: "componentDidMount",
1197      value: function componentDidMount() {
1198        // Select the input text when the form opens.
1199        if (this.props.isEditing && this.titleField.current) {
1200          this.titleField.current.select();
1201        }
1202      }
1203    }, {
1204      key: "componentDidUpdate",
1205      value: function componentDidUpdate(prevProps) {
1206        // Select the input text only once when the form opens.
1207        if (!prevProps.isEditing && this.props.isEditing) {
1208          this.titleField.current.select();
1209        } // Move focus back to the Edit button after pressing the Escape key, Cancel, or Save.
1210  
1211  
1212        if ((prevProps.isEditing || prevProps.isSaving) && !this.props.isEditing && !this.props.isSaving) {
1213          this.editButton.current.focus();
1214        }
1215      }
1216    }, {
1217      key: "handleFormSubmit",
1218      value: function handleFormSubmit(event) {
1219        event.preventDefault();
1220        this.props.onSave();
1221      }
1222    }, {
1223      key: "handleTitleChange",
1224      value: function handleTitleChange(event) {
1225        this.props.onChangeTitle(event.target.value);
1226      }
1227    }, {
1228      key: "handleTitleKeyDown",
1229      value: function handleTitleKeyDown(event) {
1230        if (event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__["ESCAPE"]) {
1231          event.stopPropagation();
1232          this.props.onCancel();
1233        }
1234      }
1235    }, {
1236      key: "render",
1237      value: function render() {
1238        var _this$props = this.props,
1239            isEditing = _this$props.isEditing,
1240            title = _this$props.title,
1241            isSaving = _this$props.isSaving,
1242            onEdit = _this$props.onEdit,
1243            instanceId = _this$props.instanceId;
1244        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, !isEditing && !isSaving && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
1245          className: "reusable-block-edit-panel"
1246        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("b", {
1247          className: "reusable-block-edit-panel__info"
1248        }, title), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["Button"], {
1249          ref: this.editButton,
1250          isLarge: true,
1251          className: "reusable-block-edit-panel__button",
1252          onClick: onEdit
1253        }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Edit'))), (isEditing || isSaving) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("form", {
1254          className: "reusable-block-edit-panel",
1255          onSubmit: this.handleFormSubmit
1256        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("label", {
1257          htmlFor: "reusable-block-edit-panel__title-".concat(instanceId),
1258          className: "reusable-block-edit-panel__label"
1259        }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Name:')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("input", {
1260          ref: this.titleField,
1261          type: "text",
1262          disabled: isSaving,
1263          className: "reusable-block-edit-panel__title",
1264          value: title,
1265          onChange: this.handleTitleChange,
1266          onKeyDown: this.handleTitleKeyDown,
1267          id: "reusable-block-edit-panel__title-".concat(instanceId)
1268        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["Button"], {
1269          type: "submit",
1270          isLarge: true,
1271          isBusy: isSaving,
1272          disabled: !title || isSaving,
1273          className: "reusable-block-edit-panel__button"
1274        }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Save'))));
1275      }
1276    }]);
1277  
1278    return ReusableBlockEditPanel;
1279  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
1280  
1281  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__["withInstanceId"])(ReusableBlockEditPanel));
1282  
1283  
1284  /***/ }),
1285  
1286  /***/ "./node_modules/@wordpress/block-library/build-module/block/edit.js":
1287  /*!**************************************************************************!*\
1288    !*** ./node_modules/@wordpress/block-library/build-module/block/edit.js ***!
1289    \**************************************************************************/
1290  /*! exports provided: default */
1291  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1292  
1293  "use strict";
1294  __webpack_require__.r(__webpack_exports__);
1295  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
1296  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
1297  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
1298  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
1299  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
1300  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
1301  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
1302  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
1303  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
1304  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
1305  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ "lodash");
1306  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);
1307  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
1308  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__);
1309  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
1310  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__);
1311  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1312  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__);
1313  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
1314  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__);
1315  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
1316  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_14__);
1317  /* harmony import */ var _edit_panel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./edit-panel */ "./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js");
1318  /* harmony import */ var _indicator__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./indicator */ "./node_modules/@wordpress/block-library/build-module/block/indicator/index.js");
1319  
1320  
1321  
1322  
1323  
1324  
1325  
1326  
1327  
1328  
1329  /**
1330   * External dependencies
1331   */
1332  
1333  /**
1334   * WordPress dependencies
1335   */
1336  
1337  
1338  
1339  
1340  
1341  
1342  
1343  /**
1344   * Internal dependencies
1345   */
1346  
1347  
1348  
1349  
1350  var ReusableBlockEdit =
1351  /*#__PURE__*/
1352  function (_Component) {
1353    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(ReusableBlockEdit, _Component);
1354  
1355    function ReusableBlockEdit(_ref) {
1356      var _this;
1357  
1358      var reusableBlock = _ref.reusableBlock;
1359  
1360      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, ReusableBlockEdit);
1361  
1362      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(ReusableBlockEdit).apply(this, arguments));
1363      _this.startEditing = _this.startEditing.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
1364      _this.stopEditing = _this.stopEditing.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
1365      _this.setAttributes = _this.setAttributes.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
1366      _this.setTitle = _this.setTitle.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
1367      _this.save = _this.save.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
1368  
1369      if (reusableBlock && reusableBlock.isTemporary) {
1370        // Start in edit mode when we're working with a newly created reusable block
1371        _this.state = {
1372          isEditing: true,
1373          title: reusableBlock.title,
1374          changedAttributes: {}
1375        };
1376      } else {
1377        // Start in preview mode when we're working with an existing reusable block
1378        _this.state = {
1379          isEditing: false,
1380          title: null,
1381          changedAttributes: null
1382        };
1383      }
1384  
1385      return _this;
1386    }
1387  
1388    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(ReusableBlockEdit, [{
1389      key: "componentDidMount",
1390      value: function componentDidMount() {
1391        if (!this.props.reusableBlock) {
1392          this.props.fetchReusableBlock();
1393        }
1394      }
1395    }, {
1396      key: "startEditing",
1397      value: function startEditing() {
1398        var reusableBlock = this.props.reusableBlock;
1399        this.setState({
1400          isEditing: true,
1401          title: reusableBlock.title,
1402          changedAttributes: {}
1403        });
1404      }
1405    }, {
1406      key: "stopEditing",
1407      value: function stopEditing() {
1408        this.setState({
1409          isEditing: false,
1410          title: null,
1411          changedAttributes: null
1412        });
1413      }
1414    }, {
1415      key: "setAttributes",
1416      value: function setAttributes(attributes) {
1417        this.setState(function (prevState) {
1418          if (prevState.changedAttributes !== null) {
1419            return {
1420              changedAttributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, prevState.changedAttributes, attributes)
1421            };
1422          }
1423        });
1424      }
1425    }, {
1426      key: "setTitle",
1427      value: function setTitle(title) {
1428        this.setState({
1429          title: title
1430        });
1431      }
1432    }, {
1433      key: "save",
1434      value: function save() {
1435        var _this$props = this.props,
1436            reusableBlock = _this$props.reusableBlock,
1437            onUpdateTitle = _this$props.onUpdateTitle,
1438            updateAttributes = _this$props.updateAttributes,
1439            block = _this$props.block,
1440            onSave = _this$props.onSave;
1441        var _this$state = this.state,
1442            title = _this$state.title,
1443            changedAttributes = _this$state.changedAttributes;
1444  
1445        if (title !== reusableBlock.title) {
1446          onUpdateTitle(title);
1447        }
1448  
1449        updateAttributes(block.clientId, changedAttributes);
1450        onSave();
1451        this.stopEditing();
1452      }
1453    }, {
1454      key: "render",
1455      value: function render() {
1456        var _this$props2 = this.props,
1457            isSelected = _this$props2.isSelected,
1458            reusableBlock = _this$props2.reusableBlock,
1459            block = _this$props2.block,
1460            isFetching = _this$props2.isFetching,
1461            isSaving = _this$props2.isSaving;
1462        var _this$state2 = this.state,
1463            isEditing = _this$state2.isEditing,
1464            title = _this$state2.title,
1465            changedAttributes = _this$state2.changedAttributes;
1466  
1467        if (!reusableBlock && isFetching) {
1468          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Placeholder"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Spinner"], null));
1469        }
1470  
1471        if (!reusableBlock || !block) {
1472          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Placeholder"], null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Block has been deleted or is unavailable.'));
1473        }
1474  
1475        var element = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["BlockEdit"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props, {
1476          isSelected: isEditing && isSelected,
1477          clientId: block.clientId,
1478          name: block.name,
1479          attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, block.attributes, changedAttributes),
1480          setAttributes: isEditing ? this.setAttributes : lodash__WEBPACK_IMPORTED_MODULE_9__["noop"]
1481        }));
1482  
1483        if (!isEditing) {
1484          element = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Disabled"], null, element);
1485        }
1486  
1487        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, (isSelected || isEditing) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_edit_panel__WEBPACK_IMPORTED_MODULE_15__["default"], {
1488          isEditing: isEditing,
1489          title: title !== null ? title : reusableBlock.title,
1490          isSaving: isSaving && !reusableBlock.isTemporary,
1491          onEdit: this.startEditing,
1492          onChangeTitle: this.setTitle,
1493          onSave: this.save,
1494          onCancel: this.stopEditing
1495        }), !isSelected && !isEditing && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_indicator__WEBPACK_IMPORTED_MODULE_16__["default"], {
1496          title: reusableBlock.title
1497        }), element);
1498      }
1499    }]);
1500  
1501    return ReusableBlockEdit;
1502  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
1503  
1504  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_14__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withSelect"])(function (select, ownProps) {
1505    var _select = select('core/editor'),
1506        getReusableBlock = _select.getReusableBlock,
1507        isFetchingReusableBlock = _select.isFetchingReusableBlock,
1508        isSavingReusableBlock = _select.isSavingReusableBlock,
1509        getBlock = _select.getBlock;
1510  
1511    var ref = ownProps.attributes.ref;
1512    var reusableBlock = getReusableBlock(ref);
1513    return {
1514      reusableBlock: reusableBlock,
1515      isFetching: isFetchingReusableBlock(ref),
1516      isSaving: isSavingReusableBlock(ref),
1517      block: reusableBlock ? getBlock(reusableBlock.clientId) : null
1518    };
1519  }), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withDispatch"])(function (dispatch, ownProps) {
1520    var _dispatch = dispatch('core/editor'),
1521        fetchReusableBlocks = _dispatch.fetchReusableBlocks,
1522        updateBlockAttributes = _dispatch.updateBlockAttributes,
1523        updateReusableBlockTitle = _dispatch.updateReusableBlockTitle,
1524        saveReusableBlock = _dispatch.saveReusableBlock;
1525  
1526    var ref = ownProps.attributes.ref;
1527    return {
1528      fetchReusableBlock: Object(lodash__WEBPACK_IMPORTED_MODULE_9__["partial"])(fetchReusableBlocks, ref),
1529      updateAttributes: updateBlockAttributes,
1530      onUpdateTitle: Object(lodash__WEBPACK_IMPORTED_MODULE_9__["partial"])(updateReusableBlockTitle, ref),
1531      onSave: Object(lodash__WEBPACK_IMPORTED_MODULE_9__["partial"])(saveReusableBlock, ref)
1532    };
1533  })])(ReusableBlockEdit));
1534  
1535  
1536  /***/ }),
1537  
1538  /***/ "./node_modules/@wordpress/block-library/build-module/block/index.js":
1539  /*!***************************************************************************!*\
1540    !*** ./node_modules/@wordpress/block-library/build-module/block/index.js ***!
1541    \***************************************************************************/
1542  /*! exports provided: name, settings */
1543  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1544  
1545  "use strict";
1546  __webpack_require__.r(__webpack_exports__);
1547  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
1548  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
1549  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1550  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
1551  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/block/edit.js");
1552  /**
1553   * WordPress dependencies
1554   */
1555  
1556  /**
1557   * Internal dependencies
1558   */
1559  
1560  
1561  var name = 'core/block';
1562  var settings = {
1563    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Reusable Block'),
1564    category: 'reusable',
1565    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Create content, and save it to reuse across your site. Update the block, and the changes apply everywhere it’s used.'),
1566    attributes: {
1567      ref: {
1568        type: 'number'
1569      }
1570    },
1571    supports: {
1572      customClassName: false,
1573      html: false,
1574      inserter: false
1575    },
1576    edit: _edit__WEBPACK_IMPORTED_MODULE_1__["default"],
1577    save: function save() {
1578      return null;
1579    }
1580  };
1581  
1582  
1583  /***/ }),
1584  
1585  /***/ "./node_modules/@wordpress/block-library/build-module/block/indicator/index.js":
1586  /*!*************************************************************************************!*\
1587    !*** ./node_modules/@wordpress/block-library/build-module/block/indicator/index.js ***!
1588    \*************************************************************************************/
1589  /*! exports provided: default */
1590  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1591  
1592  "use strict";
1593  __webpack_require__.r(__webpack_exports__);
1594  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
1595  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1596  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
1597  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
1598  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1599  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
1600  
1601  
1602  /**
1603   * WordPress dependencies
1604   */
1605  
1606  
1607  
1608  function ReusableBlockIndicator(_ref) {
1609    var title = _ref.title;
1610    // translators: %s: title/name of the reusable block
1611    var tooltipText = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Reusable Block: %s'), title);
1612    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Tooltip"], {
1613      text: tooltipText
1614    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
1615      className: "reusable-block-indicator"
1616    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Dashicon"], {
1617      icon: "controls-repeat"
1618    })));
1619  }
1620  
1621  /* harmony default export */ __webpack_exports__["default"] = (ReusableBlockIndicator);
1622  
1623  
1624  /***/ }),
1625  
1626  /***/ "./node_modules/@wordpress/block-library/build-module/button/edit.js":
1627  /*!***************************************************************************!*\
1628    !*** ./node_modules/@wordpress/block-library/build-module/button/edit.js ***!
1629    \***************************************************************************/
1630  /*! exports provided: default */
1631  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1632  
1633  "use strict";
1634  __webpack_require__.r(__webpack_exports__);
1635  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
1636  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
1637  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
1638  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
1639  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
1640  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
1641  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
1642  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
1643  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
1644  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
1645  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
1646  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1647  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
1648  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
1649  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__);
1650  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
1651  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_11__);
1652  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
1653  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__);
1654  
1655  
1656  
1657  
1658  
1659  
1660  
1661  
1662  
1663  /**
1664   * External dependencies
1665   */
1666  
1667  /**
1668   * WordPress dependencies
1669   */
1670  
1671  
1672  
1673  
1674  
1675  
1676  var _window = window,
1677      getComputedStyle = _window.getComputedStyle;
1678  var FallbackStyles = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_11__["withFallbackStyles"])(function (node, ownProps) {
1679    var textColor = ownProps.textColor,
1680        backgroundColor = ownProps.backgroundColor;
1681    var backgroundColorValue = backgroundColor && backgroundColor.color;
1682    var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available.
1683  
1684    var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null;
1685    return {
1686      fallbackBackgroundColor: backgroundColorValue || !node ? undefined : getComputedStyle(node).backgroundColor,
1687      fallbackTextColor: textColorValue || !textNode ? undefined : getComputedStyle(textNode).color
1688    };
1689  });
1690  
1691  var ButtonEdit =
1692  /*#__PURE__*/
1693  function (_Component) {
1694    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(ButtonEdit, _Component);
1695  
1696    function ButtonEdit() {
1697      var _this;
1698  
1699      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ButtonEdit);
1700  
1701      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(ButtonEdit).apply(this, arguments));
1702      _this.nodeRef = null;
1703      _this.bindRef = _this.bindRef.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
1704      return _this;
1705    }
1706  
1707    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ButtonEdit, [{
1708      key: "bindRef",
1709      value: function bindRef(node) {
1710        if (!node) {
1711          return;
1712        }
1713  
1714        this.nodeRef = node;
1715      }
1716    }, {
1717      key: "render",
1718      value: function render() {
1719        var _classnames;
1720  
1721        var _this$props = this.props,
1722            attributes = _this$props.attributes,
1723            backgroundColor = _this$props.backgroundColor,
1724            textColor = _this$props.textColor,
1725            setBackgroundColor = _this$props.setBackgroundColor,
1726            setTextColor = _this$props.setTextColor,
1727            fallbackBackgroundColor = _this$props.fallbackBackgroundColor,
1728            fallbackTextColor = _this$props.fallbackTextColor,
1729            setAttributes = _this$props.setAttributes,
1730            isSelected = _this$props.isSelected,
1731            className = _this$props.className;
1732        var text = attributes.text,
1733            url = attributes.url,
1734            title = attributes.title;
1735        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", {
1736          className: className,
1737          title: title,
1738          ref: this.bindRef
1739        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"], {
1740          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Add text…'),
1741          value: text,
1742          onChange: function onChange(value) {
1743            return setAttributes({
1744              text: value
1745            });
1746          },
1747          formattingControls: ['bold', 'italic', 'strikethrough'],
1748          className: classnames__WEBPACK_IMPORTED_MODULE_8___default()('wp-block-button__link', (_classnames = {
1749            'has-background': backgroundColor.color
1750          }, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, backgroundColor.class, backgroundColor.class), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, 'has-text-color', textColor.color), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, textColor.class, textColor.class), _classnames)),
1751          style: {
1752            backgroundColor: backgroundColor.color,
1753            color: textColor.color
1754          },
1755          keepPlaceholderOnFocus: true
1756        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["PanelColorSettings"], {
1757          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Color Settings'),
1758          colorSettings: [{
1759            value: backgroundColor.color,
1760            onChange: setBackgroundColor,
1761            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Background Color')
1762          }, {
1763            value: textColor.color,
1764            onChange: setTextColor,
1765            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Text Color')
1766          }]
1767        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["ContrastChecker"], {
1768          isLargeText: true,
1769          textColor: textColor.color,
1770          backgroundColor: backgroundColor.color,
1771          fallbackBackgroundColor: fallbackBackgroundColor,
1772          fallbackTextColor: fallbackTextColor
1773        })))), isSelected && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("form", {
1774          className: "block-library-button__inline-link",
1775          onSubmit: function onSubmit(event) {
1776            return event.preventDefault();
1777          }
1778        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_11__["Dashicon"], {
1779          icon: "admin-links"
1780        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["URLInput"], {
1781          value: url,
1782          onChange: function onChange(value) {
1783            return setAttributes({
1784              url: value
1785            });
1786          }
1787        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_11__["IconButton"], {
1788          icon: "editor-break",
1789          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Apply'),
1790          type: "submit"
1791        })));
1792      }
1793    }]);
1794  
1795    return ButtonEdit;
1796  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]);
1797  
1798  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__["compose"])([Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["withColors"])('backgroundColor', {
1799    textColor: 'color'
1800  }), FallbackStyles])(ButtonEdit));
1801  
1802  
1803  /***/ }),
1804  
1805  /***/ "./node_modules/@wordpress/block-library/build-module/button/index.js":
1806  /*!****************************************************************************!*\
1807    !*** ./node_modules/@wordpress/block-library/build-module/button/index.js ***!
1808    \****************************************************************************/
1809  /*! exports provided: name, settings */
1810  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1811  
1812  "use strict";
1813  __webpack_require__.r(__webpack_exports__);
1814  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
1815  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
1816  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
1817  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
1818  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
1819  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
1820  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
1821  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
1822  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ "lodash");
1823  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
1824  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1825  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
1826  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
1827  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
1828  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/button/edit.js");
1829  
1830  
1831  
1832  
1833  /**
1834   * External dependencies
1835   */
1836  
1837  
1838  /**
1839   * WordPress dependencies
1840   */
1841  
1842  
1843  
1844  /**
1845   * Internal dependencies
1846   */
1847  
1848  
1849  var blockAttributes = {
1850    url: {
1851      type: 'string',
1852      source: 'attribute',
1853      selector: 'a',
1854      attribute: 'href'
1855    },
1856    title: {
1857      type: 'string',
1858      source: 'attribute',
1859      selector: 'a',
1860      attribute: 'title'
1861    },
1862    text: {
1863      source: 'html',
1864      selector: 'a'
1865    },
1866    backgroundColor: {
1867      type: 'string'
1868    },
1869    textColor: {
1870      type: 'string'
1871    },
1872    customBackgroundColor: {
1873      type: 'string'
1874    },
1875    customTextColor: {
1876      type: 'string'
1877    }
1878  };
1879  var name = 'core/button';
1880  
1881  var colorsMigration = function colorsMigration(attributes) {
1882    return Object(lodash__WEBPACK_IMPORTED_MODULE_4__["omit"])(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, attributes, {
1883      customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
1884      customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined
1885    }), ['color', 'textColor']);
1886  };
1887  
1888  var settings = {
1889    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Button'),
1890    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Want visitors to click to subscribe, buy, or read more? Get their attention with a button.'),
1891    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("svg", {
1892      viewBox: "0 0 24 24",
1893      xmlns: "http://www.w3.org/2000/svg"
1894    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
1895      fill: "none",
1896      d: "M0 0h24v24H0V0z"
1897    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
1898      d: "M19 6H5L3 8v8l2 2h14l2-2V8l-2-2zm0 10H5V8h14v8z"
1899    }))),
1900    category: 'layout',
1901    attributes: blockAttributes,
1902    supports: {
1903      align: true,
1904      alignWide: false
1905    },
1906    styles: [{
1907      name: 'default',
1908      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Rounded'),
1909      isDefault: true
1910    }, {
1911      name: 'outline',
1912      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Outline')
1913    }, {
1914      name: 'squared',
1915      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Squared')
1916    }],
1917    edit: _edit__WEBPACK_IMPORTED_MODULE_7__["default"],
1918    save: function save(_ref) {
1919      var _classnames;
1920  
1921      var attributes = _ref.attributes;
1922      var url = attributes.url,
1923          text = attributes.text,
1924          title = attributes.title,
1925          backgroundColor = attributes.backgroundColor,
1926          textColor = attributes.textColor,
1927          customBackgroundColor = attributes.customBackgroundColor,
1928          customTextColor = attributes.customTextColor;
1929      var textClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('color', textColor);
1930      var backgroundClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('background-color', backgroundColor);
1931      var buttonClasses = classnames__WEBPACK_IMPORTED_MODULE_3___default()('wp-block-button__link', (_classnames = {
1932        'has-text-color': textColor || customTextColor
1933      }, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, textClass, textClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, backgroundClass, backgroundClass), _classnames));
1934      var buttonStyle = {
1935        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
1936        color: textClass ? undefined : customTextColor
1937      };
1938      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
1939        tagName: "a",
1940        className: buttonClasses,
1941        href: url,
1942        title: title,
1943        style: buttonStyle,
1944        value: text
1945      }));
1946    },
1947    deprecated: [{
1948      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_4__["pick"])(blockAttributes, ['url', 'title', 'text']), {
1949        color: {
1950          type: 'string'
1951        },
1952        textColor: {
1953          type: 'string'
1954        },
1955        align: {
1956          type: 'string',
1957          default: 'none'
1958        }
1959      }),
1960      save: function save(_ref2) {
1961        var attributes = _ref2.attributes;
1962        var url = attributes.url,
1963            text = attributes.text,
1964            title = attributes.title,
1965            align = attributes.align,
1966            color = attributes.color,
1967            textColor = attributes.textColor;
1968        var buttonStyle = {
1969          backgroundColor: color,
1970          color: textColor
1971        };
1972        var linkClass = 'wp-block-button__link';
1973        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", {
1974          className: "align".concat(align)
1975        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
1976          tagName: "a",
1977          className: linkClass,
1978          href: url,
1979          title: title,
1980          style: buttonStyle,
1981          value: text
1982        }));
1983      },
1984      migrate: colorsMigration
1985    }, {
1986      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_4__["pick"])(blockAttributes, ['url', 'title', 'text']), {
1987        color: {
1988          type: 'string'
1989        },
1990        textColor: {
1991          type: 'string'
1992        },
1993        align: {
1994          type: 'string',
1995          default: 'none'
1996        }
1997      }),
1998      save: function save(_ref3) {
1999        var attributes = _ref3.attributes;
2000        var url = attributes.url,
2001            text = attributes.text,
2002            title = attributes.title,
2003            align = attributes.align,
2004            color = attributes.color,
2005            textColor = attributes.textColor;
2006        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", {
2007          className: "align".concat(align),
2008          style: {
2009            backgroundColor: color
2010          }
2011        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
2012          tagName: "a",
2013          href: url,
2014          title: title,
2015          style: {
2016            color: textColor
2017          },
2018          value: text
2019        }));
2020      },
2021      migrate: colorsMigration
2022    }]
2023  };
2024  
2025  
2026  /***/ }),
2027  
2028  /***/ "./node_modules/@wordpress/block-library/build-module/categories/edit.js":
2029  /*!*******************************************************************************!*\
2030    !*** ./node_modules/@wordpress/block-library/build-module/categories/edit.js ***!
2031    \*******************************************************************************/
2032  /*! exports provided: default */
2033  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2034  
2035  "use strict";
2036  __webpack_require__.r(__webpack_exports__);
2037  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
2038  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
2039  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
2040  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
2041  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
2042  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
2043  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2044  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
2045  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
2046  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);
2047  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
2048  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__);
2049  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2050  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
2051  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash */ "lodash");
2052  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
2053  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
2054  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__);
2055  
2056  
2057  
2058  
2059  
2060  
2061  
2062  
2063  /**
2064   * WordPress dependencies
2065   */
2066  
2067  
2068  
2069  
2070  
2071  
2072  
2073  var CategoriesEdit =
2074  /*#__PURE__*/
2075  function (_Component) {
2076    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(CategoriesEdit, _Component);
2077  
2078    function CategoriesEdit() {
2079      var _this;
2080  
2081      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, CategoriesEdit);
2082  
2083      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(CategoriesEdit).apply(this, arguments));
2084      _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
2085      _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
2086      _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
2087      return _this;
2088    }
2089  
2090    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(CategoriesEdit, [{
2091      key: "toggleDisplayAsDropdown",
2092      value: function toggleDisplayAsDropdown() {
2093        var _this$props = this.props,
2094            attributes = _this$props.attributes,
2095            setAttributes = _this$props.setAttributes;
2096        var displayAsDropdown = attributes.displayAsDropdown;
2097        setAttributes({
2098          displayAsDropdown: !displayAsDropdown
2099        });
2100      }
2101    }, {
2102      key: "toggleShowPostCounts",
2103      value: function toggleShowPostCounts() {
2104        var _this$props2 = this.props,
2105            attributes = _this$props2.attributes,
2106            setAttributes = _this$props2.setAttributes;
2107        var showPostCounts = attributes.showPostCounts;
2108        setAttributes({
2109          showPostCounts: !showPostCounts
2110        });
2111      }
2112    }, {
2113      key: "toggleShowHierarchy",
2114      value: function toggleShowHierarchy() {
2115        var _this$props3 = this.props,
2116            attributes = _this$props3.attributes,
2117            setAttributes = _this$props3.setAttributes;
2118        var showHierarchy = attributes.showHierarchy;
2119        setAttributes({
2120          showHierarchy: !showHierarchy
2121        });
2122      }
2123    }, {
2124      key: "getCategories",
2125      value: function getCategories() {
2126        var parentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
2127        var categories = this.props.categories;
2128  
2129        if (!categories || !categories.length) {
2130          return [];
2131        }
2132  
2133        if (parentId === null) {
2134          return categories;
2135        }
2136  
2137        return categories.filter(function (category) {
2138          return category.parent === parentId;
2139        });
2140      }
2141    }, {
2142      key: "getCategoryListClassName",
2143      value: function getCategoryListClassName(level) {
2144        var className = this.props.className;
2145        return "".concat(className, "__list ").concat(className, "__list-level-").concat(level);
2146      }
2147    }, {
2148      key: "renderCategoryName",
2149      value: function renderCategoryName(category) {
2150        if (!category.name) {
2151          return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('(Untitled)');
2152        }
2153  
2154        return Object(lodash__WEBPACK_IMPORTED_MODULE_10__["unescape"])(category.name).trim();
2155      }
2156    }, {
2157      key: "renderCategoryList",
2158      value: function renderCategoryList() {
2159        var _this2 = this;
2160  
2161        var showHierarchy = this.props.attributes.showHierarchy;
2162        var parentId = showHierarchy ? 0 : null;
2163        var categories = this.getCategories(parentId);
2164        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", {
2165          className: this.getCategoryListClassName(0)
2166        }, categories.map(function (category) {
2167          return _this2.renderCategoryListItem(category, 0);
2168        }));
2169      }
2170    }, {
2171      key: "renderCategoryListItem",
2172      value: function renderCategoryListItem(category, level) {
2173        var _this3 = this;
2174  
2175        var _this$props$attribute = this.props.attributes,
2176            showHierarchy = _this$props$attribute.showHierarchy,
2177            showPostCounts = _this$props$attribute.showPostCounts;
2178        var childCategories = this.getCategories(category.id);
2179        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", {
2180          key: category.id
2181        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", {
2182          href: category.link,
2183          target: "_blank"
2184        }, this.renderCategoryName(category)), showPostCounts && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("span", {
2185          className: "".concat(this.props.className, "__post-count")
2186        }, ' ', "(", category.count, ")"), showHierarchy && !!childCategories.length && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", {
2187          className: this.getCategoryListClassName(level + 1)
2188        }, childCategories.map(function (childCategory) {
2189          return _this3.renderCategoryListItem(childCategory, level + 1);
2190        })));
2191      }
2192    }, {
2193      key: "renderCategoryDropdown",
2194      value: function renderCategoryDropdown() {
2195        var _this4 = this;
2196  
2197        var showHierarchy = this.props.attributes.showHierarchy;
2198        var parentId = showHierarchy ? 0 : null;
2199        var categories = this.getCategories(parentId);
2200        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("select", {
2201          className: "".concat(this.props.className, "__dropdown")
2202        }, categories.map(function (category) {
2203          return _this4.renderCategoryDropdownItem(category, 0);
2204        }));
2205      }
2206    }, {
2207      key: "renderCategoryDropdownItem",
2208      value: function renderCategoryDropdownItem(category, level) {
2209        var _this5 = this;
2210  
2211        var _this$props$attribute2 = this.props.attributes,
2212            showHierarchy = _this$props$attribute2.showHierarchy,
2213            showPostCounts = _this$props$attribute2.showPostCounts;
2214        var childCategories = this.getCategories(category.id);
2215        return [Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("option", {
2216          key: category.id
2217        }, Object(lodash__WEBPACK_IMPORTED_MODULE_10__["times"])(level * 3, function () {
2218          return '\xa0';
2219        }), this.renderCategoryName(category), !!showPostCounts ? " (".concat(category.count, ")") : ''), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) {
2220          return _this5.renderCategoryDropdownItem(childCategory, level + 1);
2221        })];
2222      }
2223    }, {
2224      key: "render",
2225      value: function render() {
2226        var _this$props4 = this.props,
2227            attributes = _this$props4.attributes,
2228            setAttributes = _this$props4.setAttributes,
2229            isRequesting = _this$props4.isRequesting;
2230        var align = attributes.align,
2231            displayAsDropdown = attributes.displayAsDropdown,
2232            showHierarchy = attributes.showHierarchy,
2233            showPostCounts = attributes.showPostCounts;
2234        var inspectorControls = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["PanelBody"], {
2235          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Categories Settings')
2236        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["ToggleControl"], {
2237          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Display as Dropdown'),
2238          checked: displayAsDropdown,
2239          onChange: this.toggleDisplayAsDropdown
2240        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["ToggleControl"], {
2241          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Show Hierarchy'),
2242          checked: showHierarchy,
2243          onChange: this.toggleShowHierarchy
2244        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["ToggleControl"], {
2245          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Show Post Counts'),
2246          checked: showPostCounts,
2247          onChange: this.toggleShowPostCounts
2248        })));
2249  
2250        if (isRequesting) {
2251          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, inspectorControls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["Placeholder"], {
2252            icon: "admin-post",
2253            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Categories')
2254          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["Spinner"], null)));
2255        }
2256  
2257        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, inspectorControls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["BlockAlignmentToolbar"], {
2258          value: align,
2259          onChange: function onChange(nextAlign) {
2260            setAttributes({
2261              align: nextAlign
2262            });
2263          },
2264          controls: ['left', 'center', 'right', 'full']
2265        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
2266          className: this.props.className
2267        }, displayAsDropdown ? this.renderCategoryDropdown() : this.renderCategoryList()));
2268      }
2269    }]);
2270  
2271    return CategoriesEdit;
2272  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
2273  
2274  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__["withSelect"])(function (select) {
2275    var _select = select('core'),
2276        getEntityRecords = _select.getEntityRecords;
2277  
2278    var _select2 = select('core/data'),
2279        isResolving = _select2.isResolving;
2280  
2281    var query = {
2282      per_page: -1
2283    };
2284    return {
2285      categories: getEntityRecords('taxonomy', 'category', query),
2286      isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query])
2287    };
2288  })(CategoriesEdit));
2289  
2290  
2291  /***/ }),
2292  
2293  /***/ "./node_modules/@wordpress/block-library/build-module/categories/index.js":
2294  /*!********************************************************************************!*\
2295    !*** ./node_modules/@wordpress/block-library/build-module/categories/index.js ***!
2296    \********************************************************************************/
2297  /*! exports provided: name, settings */
2298  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2299  
2300  "use strict";
2301  __webpack_require__.r(__webpack_exports__);
2302  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
2303  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
2304  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2305  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2306  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2307  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
2308  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/categories/edit.js");
2309  
2310  
2311  /**
2312   * WordPress dependencies
2313   */
2314  
2315  /**
2316   * Internal dependencies
2317   */
2318  
2319  
2320  var name = 'core/categories';
2321  var settings = {
2322    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Categories'),
2323    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a list of all your site’s categories.'),
2324    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
2325      viewBox: "0 0 24 24",
2326      xmlns: "http://www.w3.org/2000/svg"
2327    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2328      d: "M0,0h24v24H0V0z",
2329      fill: "none"
2330    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2331      d: "M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"
2332    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2333      d: "m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
2334    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2335      d: "m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"
2336    })),
2337    category: 'widgets',
2338    attributes: {
2339      showPostCounts: {
2340        type: 'boolean',
2341        default: false
2342      },
2343      displayAsDropdown: {
2344        type: 'boolean',
2345        default: false
2346      },
2347      showHierarchy: {
2348        type: 'boolean',
2349        default: false
2350      },
2351      align: {
2352        type: 'string'
2353      }
2354    },
2355    supports: {
2356      html: false
2357    },
2358    getEditWrapperProps: function getEditWrapperProps(attributes) {
2359      var align = attributes.align;
2360  
2361      if ('left' === align || 'right' === align || 'full' === align) {
2362        return {
2363          'data-align': align
2364        };
2365      }
2366    },
2367    edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
2368    save: function save() {
2369      return null;
2370    }
2371  };
2372  
2373  
2374  /***/ }),
2375  
2376  /***/ "./node_modules/@wordpress/block-library/build-module/classic/edit.js":
2377  /*!****************************************************************************!*\
2378    !*** ./node_modules/@wordpress/block-library/build-module/classic/edit.js ***!
2379    \****************************************************************************/
2380  /*! exports provided: default */
2381  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2382  
2383  "use strict";
2384  __webpack_require__.r(__webpack_exports__);
2385  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ClassicEdit; });
2386  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
2387  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
2388  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
2389  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
2390  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
2391  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
2392  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
2393  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2394  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
2395  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2396  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);
2397  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
2398  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__);
2399  
2400  
2401  
2402  
2403  
2404  
2405  
2406  
2407  
2408  /**
2409   * WordPress dependencies
2410   */
2411  
2412  
2413  
2414  
2415  function isTmceEmpty(editor) {
2416    // When tinyMce is empty the content seems to be:
2417    // <p><br data-mce-bogus="1"></p>
2418    // avoid expensive checks for large documents
2419    var body = editor.getBody();
2420  
2421    if (body.childNodes.length > 1) {
2422      return false;
2423    } else if (body.childNodes.length === 0) {
2424      return true;
2425    }
2426  
2427    if (body.childNodes[0].childNodes.length > 1) {
2428      return false;
2429    }
2430  
2431    return /^\n?$/.test(body.innerText || body.textContent);
2432  }
2433  
2434  var ClassicEdit =
2435  /*#__PURE__*/
2436  function (_Component) {
2437    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(ClassicEdit, _Component);
2438  
2439    function ClassicEdit(props) {
2440      var _this;
2441  
2442      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ClassicEdit);
2443  
2444      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(ClassicEdit).call(this, props));
2445      _this.initialize = _this.initialize.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
2446      _this.onSetup = _this.onSetup.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
2447      _this.focus = _this.focus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
2448      return _this;
2449    }
2450  
2451    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ClassicEdit, [{
2452      key: "componentDidMount",
2453      value: function componentDidMount() {
2454        var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce,
2455            baseURL = _window$wpEditorL10n$.baseURL,
2456            suffix = _window$wpEditorL10n$.suffix;
2457        window.tinymce.EditorManager.overrideDefaults({
2458          base_url: baseURL,
2459          suffix: suffix
2460        });
2461  
2462        if (document.readyState === 'complete') {
2463          this.initialize();
2464        } else {
2465          window.addEventListener('DOMContentLoaded', this.initialize);
2466        }
2467      }
2468    }, {
2469      key: "componentWillUnmount",
2470      value: function componentWillUnmount() {
2471        window.addEventListener('DOMContentLoaded', this.initialize);
2472        wp.oldEditor.remove("editor-".concat(this.props.clientId));
2473      }
2474    }, {
2475      key: "componentDidUpdate",
2476      value: function componentDidUpdate(prevProps) {
2477        var _this$props = this.props,
2478            clientId = _this$props.clientId,
2479            content = _this$props.attributes.content;
2480        var editor = window.tinymce.get("editor-".concat(clientId));
2481  
2482        if (prevProps.attributes.content !== content) {
2483          editor.setContent(content || '');
2484        }
2485      }
2486    }, {
2487      key: "initialize",
2488      value: function initialize() {
2489        var clientId = this.props.clientId;
2490        var settings = window.wpEditorL10n.tinymce.settings;
2491        wp.oldEditor.initialize("editor-".concat(clientId), {
2492          tinymce: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, settings, {
2493            inline: true,
2494            content_css: false,
2495            fixed_toolbar_container: "#toolbar-".concat(clientId),
2496            setup: this.onSetup
2497          })
2498        });
2499      }
2500    }, {
2501      key: "onSetup",
2502      value: function onSetup(editor) {
2503        var _this2 = this;
2504  
2505        var _this$props2 = this.props,
2506            content = _this$props2.attributes.content,
2507            setAttributes = _this$props2.setAttributes;
2508        var ref = this.ref;
2509        this.editor = editor; // Disable TinyMCE's keyboard shortcut help.
2510  
2511        editor.on('BeforeExecCommand', function (event) {
2512          if (event.command === 'WP_Help') {
2513            event.preventDefault();
2514          }
2515        });
2516  
2517        if (content) {
2518          editor.on('loadContent', function () {
2519            return editor.setContent(content);
2520          });
2521        }
2522  
2523        editor.on('blur', function () {
2524          setAttributes({
2525            content: editor.getContent()
2526          });
2527          return false;
2528        });
2529        editor.on('keydown', function (event) {
2530          if ((event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__["BACKSPACE"] || event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__["DELETE"]) && isTmceEmpty(editor)) {
2531            // delete the block
2532            _this2.props.onReplace([]);
2533  
2534            event.preventDefault();
2535            event.stopImmediatePropagation();
2536          }
2537  
2538          var altKey = event.altKey;
2539          /*
2540           * Prevent Mousetrap from kicking in: TinyMCE already uses its own
2541           * `alt+f10` shortcut to focus its toolbar.
2542           */
2543  
2544          if (altKey && event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_9__["F10"]) {
2545            event.stopPropagation();
2546          }
2547        });
2548        editor.addButton('kitchensink', {
2549          tooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["_x"])('More', 'button to expand options'),
2550          icon: 'dashicon dashicons-editor-kitchensink',
2551          onClick: function onClick() {
2552            var button = this;
2553            var active = !button.active();
2554            button.active(active);
2555            editor.dom.toggleClass(ref, 'has-advanced-toolbar', active);
2556          }
2557        });
2558        editor.addButton('wp_add_media', {
2559          tooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Insert Media'),
2560          icon: 'dashicon dashicons-admin-media',
2561          cmd: 'WP_Medialib'
2562        });
2563        editor.on('init', function () {
2564          var rootNode = _this2.editor.getBody(); // Create the toolbar by refocussing the editor.
2565  
2566  
2567          if (document.activeElement === rootNode) {
2568            rootNode.blur();
2569  
2570            _this2.editor.focus();
2571          }
2572        });
2573      }
2574    }, {
2575      key: "focus",
2576      value: function focus() {
2577        if (this.editor) {
2578          this.editor.focus();
2579        }
2580      }
2581    }, {
2582      key: "onToolbarKeyDown",
2583      value: function onToolbarKeyDown(event) {
2584        // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar.
2585        event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar.
2586  
2587        event.nativeEvent.stopImmediatePropagation();
2588      }
2589    }, {
2590      key: "render",
2591      value: function render() {
2592        var _this3 = this;
2593  
2594        var clientId = this.props.clientId; // Disable reason: the toolbar itself is non-interactive, but must capture
2595        // events from the KeyboardShortcuts component to stop their propagation.
2596  
2597        /* eslint-disable jsx-a11y/no-static-element-interactions */
2598  
2599        return [// Disable reason: Clicking on this visual placeholder should create
2600        // the toolbar, it can also be created by focussing the field below.
2601  
2602        /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
2603        Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", {
2604          key: "toolbar",
2605          id: "toolbar-".concat(clientId),
2606          ref: function ref(_ref) {
2607            return _this3.ref = _ref;
2608          },
2609          className: "block-library-classic__toolbar",
2610          onClick: this.focus,
2611          "data-placeholder": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Classic'),
2612          onKeyDown: this.onToolbarKeyDown
2613        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", {
2614          key: "editor",
2615          id: "editor-".concat(clientId),
2616          className: "wp-block-freeform block-library-rich-text__tinymce"
2617        })];
2618        /* eslint-enable jsx-a11y/no-static-element-interactions */
2619      }
2620    }]);
2621  
2622    return ClassicEdit;
2623  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]);
2624  
2625  
2626  
2627  
2628  /***/ }),
2629  
2630  /***/ "./node_modules/@wordpress/block-library/build-module/classic/index.js":
2631  /*!*****************************************************************************!*\
2632    !*** ./node_modules/@wordpress/block-library/build-module/classic/index.js ***!
2633    \*****************************************************************************/
2634  /*! exports provided: name, settings */
2635  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2636  
2637  "use strict";
2638  __webpack_require__.r(__webpack_exports__);
2639  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
2640  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
2641  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2642  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2643  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2644  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
2645  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/classic/edit.js");
2646  
2647  
2648  /**
2649   * WordPress dependencies
2650   */
2651  
2652  
2653  /**
2654   * Internal dependencies
2655   */
2656  
2657  
2658  var name = 'core/freeform';
2659  var settings = {
2660    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Classic'),
2661    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('It’s the classic WordPress editor and it’s a block! Drop the editor right in.'),
2662    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
2663      viewBox: "0 0 24 24",
2664      xmlns: "http://www.w3.org/2000/svg"
2665    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2666      d: "M0,0h24v24H0V0z M0,0h24v24H0V0z",
2667      fill: "none"
2668    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2669      d: "m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"
2670    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2671      x: "11",
2672      y: "8",
2673      width: "2",
2674      height: "2"
2675    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2676      x: "11",
2677      y: "11",
2678      width: "2",
2679      height: "2"
2680    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2681      x: "8",
2682      y: "8",
2683      width: "2",
2684      height: "2"
2685    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2686      x: "8",
2687      y: "11",
2688      width: "2",
2689      height: "2"
2690    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2691      x: "5",
2692      y: "11",
2693      width: "2",
2694      height: "2"
2695    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2696      x: "5",
2697      y: "8",
2698      width: "2",
2699      height: "2"
2700    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2701      x: "8",
2702      y: "14",
2703      width: "8",
2704      height: "2"
2705    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2706      x: "14",
2707      y: "11",
2708      width: "2",
2709      height: "2"
2710    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2711      x: "14",
2712      y: "8",
2713      width: "2",
2714      height: "2"
2715    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2716      x: "17",
2717      y: "11",
2718      width: "2",
2719      height: "2"
2720    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
2721      x: "17",
2722      y: "8",
2723      width: "2",
2724      height: "2"
2725    })),
2726    category: 'formatting',
2727    attributes: {
2728      content: {
2729        type: 'string',
2730        source: 'html'
2731      }
2732    },
2733    supports: {
2734      className: false,
2735      customClassName: false
2736    },
2737    edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
2738    save: function save(_ref) {
2739      var attributes = _ref.attributes;
2740      var content = attributes.content;
2741      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, content);
2742    }
2743  };
2744  
2745  
2746  /***/ }),
2747  
2748  /***/ "./node_modules/@wordpress/block-library/build-module/code/edit.js":
2749  /*!*************************************************************************!*\
2750    !*** ./node_modules/@wordpress/block-library/build-module/code/edit.js ***!
2751    \*************************************************************************/
2752  /*! exports provided: default */
2753  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2754  
2755  "use strict";
2756  __webpack_require__.r(__webpack_exports__);
2757  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CodeEdit; });
2758  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2759  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2760  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2761  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
2762  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
2763  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__);
2764  
2765  
2766  /**
2767   * WordPress dependencies
2768   */
2769  
2770  /**
2771   * Internal dependencies
2772   */
2773  
2774  
2775  function CodeEdit(_ref) {
2776    var attributes = _ref.attributes,
2777        setAttributes = _ref.setAttributes,
2778        className = _ref.className;
2779    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
2780      className: className
2781    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["PlainText"], {
2782      value: attributes.content,
2783      onChange: function onChange(content) {
2784        return setAttributes({
2785          content: content
2786        });
2787      },
2788      placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Write code…'),
2789      "aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Code')
2790    }));
2791  }
2792  
2793  
2794  /***/ }),
2795  
2796  /***/ "./node_modules/@wordpress/block-library/build-module/code/index.js":
2797  /*!**************************************************************************!*\
2798    !*** ./node_modules/@wordpress/block-library/build-module/code/index.js ***!
2799    \**************************************************************************/
2800  /*! exports provided: name, settings */
2801  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2802  
2803  "use strict";
2804  __webpack_require__.r(__webpack_exports__);
2805  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
2806  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
2807  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2808  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2809  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2810  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
2811  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
2812  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
2813  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/code/edit.js");
2814  
2815  
2816  /**
2817   * WordPress dependencies
2818   */
2819  
2820  
2821  /**
2822   * Internal dependencies
2823   */
2824  
2825  
2826  var name = 'core/code';
2827  var settings = {
2828    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Code'),
2829    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add text that respects your spacing and tabs -- perfect for displaying code.'),
2830    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
2831      viewBox: "0 0 24 24",
2832      xmlns: "http://www.w3.org/2000/svg"
2833    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2834      d: "M0,0h24v24H0V0z",
2835      fill: "none"
2836    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
2837      d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"
2838    })),
2839    category: 'formatting',
2840    attributes: {
2841      content: {
2842        type: 'string',
2843        source: 'text',
2844        selector: 'code'
2845      }
2846    },
2847    supports: {
2848      html: false
2849    },
2850    transforms: {
2851      from: [{
2852        type: 'pattern',
2853        trigger: 'enter',
2854        regExp: /^```$/,
2855        transform: function transform() {
2856          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/code');
2857        }
2858      }, {
2859        type: 'raw',
2860        isMatch: function isMatch(node) {
2861          return node.nodeName === 'PRE' && node.children.length === 1 && node.firstChild.nodeName === 'CODE';
2862        },
2863        schema: {
2864          pre: {
2865            children: {
2866              code: {
2867                children: {
2868                  '#text': {}
2869                }
2870              }
2871            }
2872          }
2873        }
2874      }]
2875    },
2876    edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"],
2877    save: function save(_ref) {
2878      var attributes = _ref.attributes;
2879      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("pre", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("code", null, attributes.content));
2880    }
2881  };
2882  
2883  
2884  /***/ }),
2885  
2886  /***/ "./node_modules/@wordpress/block-library/build-module/columns/column.js":
2887  /*!******************************************************************************!*\
2888    !*** ./node_modules/@wordpress/block-library/build-module/columns/column.js ***!
2889    \******************************************************************************/
2890  /*! exports provided: name, settings */
2891  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2892  
2893  "use strict";
2894  __webpack_require__.r(__webpack_exports__);
2895  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
2896  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
2897  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2898  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2899  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2900  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
2901  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
2902  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__);
2903  
2904  
2905  /**
2906   * WordPress dependencies
2907   */
2908  
2909  
2910  var name = 'core/column';
2911  var settings = {
2912    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Column'),
2913    parent: ['core/columns'],
2914    icon: 'columns',
2915    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('A single column within a columns block.'),
2916    category: 'common',
2917    supports: {
2918      inserter: false
2919    },
2920    edit: function edit() {
2921      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["InnerBlocks"], {
2922        templateLock: false
2923      });
2924    },
2925    save: function save() {
2926      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["InnerBlocks"].Content, null));
2927    }
2928  };
2929  
2930  
2931  /***/ }),
2932  
2933  /***/ "./node_modules/@wordpress/block-library/build-module/columns/index.js":
2934  /*!*****************************************************************************!*\
2935    !*** ./node_modules/@wordpress/block-library/build-module/columns/index.js ***!
2936    \*****************************************************************************/
2937  /*! exports provided: name, settings */
2938  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2939  
2940  "use strict";
2941  __webpack_require__.r(__webpack_exports__);
2942  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
2943  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
2944  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
2945  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2946  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
2947  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash");
2948  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
2949  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
2950  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
2951  /* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! memize */ "./node_modules/memize/index.js");
2952  /* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_4__);
2953  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2954  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
2955  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
2956  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);
2957  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
2958  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__);
2959  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
2960  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__);
2961  
2962  
2963  
2964  /**
2965   * External dependencies
2966   */
2967  
2968  
2969  
2970  /**
2971   * WordPress dependencies
2972   */
2973  
2974  
2975  
2976  
2977  
2978  
2979  /**
2980   * Allowed blocks constant is passed to InnerBlocks precisely as specified here.
2981   * The contents of the array should never change.
2982   * The array should contain the name of each block that is allowed.
2983   * In columns block, the only block we allow is 'core/column'.
2984   *
2985   * @constant
2986   * @type {string[]}
2987  */
2988  
2989  var ALLOWED_BLOCKS = ['core/column'];
2990  /**
2991   * Returns the layouts configuration for a given number of columns.
2992   *
2993   * @param {number} columns Number of columns.
2994   *
2995   * @return {Object[]} Columns layout configuration.
2996   */
2997  
2998  var getColumnsTemplate = memize__WEBPACK_IMPORTED_MODULE_4___default()(function (columns) {
2999    return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["times"])(columns, function () {
3000      return ['core/column'];
3001    });
3002  });
3003  var name = 'core/columns';
3004  var settings = {
3005    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["sprintf"])(
3006    /* translators: Block title modifier */
3007    Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('%1$s (%2$s)'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Columns'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('beta')),
3008    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("svg", {
3009      viewBox: "0 0 24 24",
3010      xmlns: "http://www.w3.org/2000/svg"
3011    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("path", {
3012      fill: "none",
3013      d: "M0 0h24v24H0V0z"
3014    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("path", {
3015      d: "M21 4H3L2 5v14l1 1h18l1-1V5l-1-1zM8 18H4V6h4v12zm6 0h-4V6h4v12zm6 0h-4V6h4v12z"
3016    }))),
3017    category: 'layout',
3018    attributes: {
3019      columns: {
3020        type: 'number',
3021        default: 2
3022      }
3023    },
3024    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'),
3025    supports: {
3026      align: ['wide', 'full']
3027    },
3028    deprecated: [{
3029      attributes: {
3030        columns: {
3031          type: 'number',
3032          default: 2
3033        }
3034      },
3035      isEligible: function isEligible(attributes, innerBlocks) {
3036        return innerBlocks.some(Object(lodash__WEBPACK_IMPORTED_MODULE_2__["property"])(['attributes', 'layout']));
3037      },
3038      migrate: function migrate(attributes, innerBlocks) {
3039        function withoutLayout(block) {
3040          return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, block, {
3041            attributes: Object(lodash__WEBPACK_IMPORTED_MODULE_2__["omit"])(block.attributes, ['layout'])
3042          });
3043        }
3044  
3045        var columns = innerBlocks.reduce(function (result, innerBlock) {
3046          var layout = innerBlock.attributes.layout;
3047          var columnIndex, columnMatch;
3048  
3049          if (layout && (columnMatch = layout.match(/^column-(\d+)$/))) {
3050            columnIndex = Number(columnMatch[1]) - 1;
3051          } else {
3052            columnIndex = 0;
3053          }
3054  
3055          if (!result[columnIndex]) {
3056            result[columnIndex] = [];
3057          }
3058  
3059          result[columnIndex].push(withoutLayout(innerBlock));
3060          return result;
3061        }, []);
3062        var migratedInnerBlocks = columns.map(function (columnBlocks) {
3063          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/column', {}, columnBlocks);
3064        });
3065        return [attributes, migratedInnerBlocks];
3066      },
3067      save: function save(_ref) {
3068        var attributes = _ref.attributes;
3069        var columns = attributes.columns;
3070        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
3071          className: "has-".concat(columns, "-columns")
3072        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["InnerBlocks"].Content, null));
3073      }
3074    }],
3075    edit: function edit(_ref2) {
3076      var attributes = _ref2.attributes,
3077          setAttributes = _ref2.setAttributes,
3078          className = _ref2.className;
3079      var columns = attributes.columns;
3080      var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, "has-".concat(columns, "-columns"));
3081      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__["PanelBody"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__["RangeControl"], {
3082        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Columns'),
3083        value: columns,
3084        onChange: function onChange(nextColumns) {
3085          setAttributes({
3086            columns: nextColumns
3087          });
3088        },
3089        min: 2,
3090        max: 6
3091      }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
3092        className: classes
3093      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["InnerBlocks"], {
3094        template: getColumnsTemplate(columns),
3095        templateLock: "all",
3096        allowedBlocks: ALLOWED_BLOCKS
3097      })));
3098    },
3099    save: function save(_ref3) {
3100      var attributes = _ref3.attributes;
3101      var columns = attributes.columns;
3102      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
3103        className: "has-".concat(columns, "-columns")
3104      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["InnerBlocks"].Content, null));
3105    }
3106  };
3107  
3108  
3109  /***/ }),
3110  
3111  /***/ "./node_modules/@wordpress/block-library/build-module/cover-image/index.js":
3112  /*!*********************************************************************************!*\
3113    !*** ./node_modules/@wordpress/block-library/build-module/cover-image/index.js ***!
3114    \*********************************************************************************/
3115  /*! exports provided: name, settings */
3116  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3117  
3118  "use strict";
3119  __webpack_require__.r(__webpack_exports__);
3120  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
3121  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
3122  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
3123  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
3124  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3125  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
3126  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
3127  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
3128  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
3129  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);
3130  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3131  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
3132  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
3133  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__);
3134  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
3135  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__);
3136  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
3137  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__);
3138  
3139  
3140  
3141  
3142  /**
3143   * External dependencies
3144   */
3145  
3146  /**
3147   * WordPress dependencies
3148   */
3149  
3150  
3151  
3152  
3153  
3154  
3155  
3156  var validAlignments = ['left', 'center', 'right', 'wide', 'full'];
3157  var blockAttributes = {
3158    title: {
3159      source: 'html',
3160      selector: 'p'
3161    },
3162    url: {
3163      type: 'string'
3164    },
3165    align: {
3166      type: 'string'
3167    },
3168    contentAlign: {
3169      type: 'string',
3170      default: 'center'
3171    },
3172    id: {
3173      type: 'number'
3174    },
3175    hasParallax: {
3176      type: 'boolean',
3177      default: false
3178    },
3179    dimRatio: {
3180      type: 'number',
3181      default: 50
3182    },
3183    overlayColor: {
3184      type: 'string'
3185    },
3186    customOverlayColor: {
3187      type: 'string'
3188    }
3189  };
3190  var name = 'core/cover-image';
3191  var ALLOWED_MEDIA_TYPES = ['image'];
3192  var settings = {
3193    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Cover Image'),
3194    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Add a full-width image, and layer text over it — great for headers.'),
3195    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("svg", {
3196      xmlns: "http://www.w3.org/2000/svg",
3197      viewBox: "0 0 24 24"
3198    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
3199      d: "M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"
3200    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
3201      d: "M0 0h24v24H0z",
3202      fill: "none"
3203    })),
3204    category: 'common',
3205    attributes: blockAttributes,
3206    transforms: {
3207      from: [{
3208        type: 'block',
3209        blocks: ['core/heading'],
3210        transform: function transform(_ref) {
3211          var content = _ref.content;
3212          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/cover-image', {
3213            title: content
3214          });
3215        }
3216      }, {
3217        type: 'block',
3218        blocks: ['core/image'],
3219        transform: function transform(_ref2) {
3220          var caption = _ref2.caption,
3221              url = _ref2.url,
3222              align = _ref2.align,
3223              id = _ref2.id;
3224          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/cover-image', {
3225            title: caption,
3226            url: url,
3227            align: align,
3228            id: id
3229          });
3230        }
3231      }],
3232      to: [{
3233        type: 'block',
3234        blocks: ['core/heading'],
3235        transform: function transform(_ref3) {
3236          var title = _ref3.title;
3237          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/heading', {
3238            content: title
3239          });
3240        }
3241      }, {
3242        type: 'block',
3243        blocks: ['core/image'],
3244        transform: function transform(_ref4) {
3245          var title = _ref4.title,
3246              url = _ref4.url,
3247              align = _ref4.align,
3248              id = _ref4.id;
3249          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/image', {
3250            caption: title,
3251            url: url,
3252            align: align,
3253            id: id
3254          });
3255        }
3256      }]
3257    },
3258    getEditWrapperProps: function getEditWrapperProps(attributes) {
3259      var align = attributes.align;
3260  
3261      if (-1 !== validAlignments.indexOf(align)) {
3262        return {
3263          'data-align': align
3264        };
3265      }
3266    },
3267    edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__["compose"])([Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["withColors"])({
3268      overlayColor: 'background-color'
3269    }), _wordpress_components__WEBPACK_IMPORTED_MODULE_4__["withNotices"]])(function (_ref5) {
3270      var attributes = _ref5.attributes,
3271          setAttributes = _ref5.setAttributes,
3272          isSelected = _ref5.isSelected,
3273          className = _ref5.className,
3274          noticeOperations = _ref5.noticeOperations,
3275          noticeUI = _ref5.noticeUI,
3276          overlayColor = _ref5.overlayColor,
3277          setOverlayColor = _ref5.setOverlayColor;
3278      var url = attributes.url,
3279          title = attributes.title,
3280          align = attributes.align,
3281          contentAlign = attributes.contentAlign,
3282          id = attributes.id,
3283          hasParallax = attributes.hasParallax,
3284          dimRatio = attributes.dimRatio;
3285  
3286      var updateAlignment = function updateAlignment(nextAlign) {
3287        return setAttributes({
3288          align: nextAlign
3289        });
3290      };
3291  
3292      var onSelectImage = function onSelectImage(media) {
3293        if (!media || !media.url) {
3294          setAttributes({
3295            url: undefined,
3296            id: undefined
3297          });
3298          return;
3299        }
3300  
3301        setAttributes({
3302          url: media.url,
3303          id: media.id
3304        });
3305      };
3306  
3307      var toggleParallax = function toggleParallax() {
3308        return setAttributes({
3309          hasParallax: !hasParallax
3310        });
3311      };
3312  
3313      var setDimRatio = function setDimRatio(ratio) {
3314        return setAttributes({
3315          dimRatio: ratio
3316        });
3317      };
3318  
3319      var setTitle = function setTitle(newTitle) {
3320        return setAttributes({
3321          title: newTitle
3322        });
3323      };
3324  
3325      var style = Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, backgroundImageStyles(url), {
3326        backgroundColor: overlayColor.color
3327      });
3328  
3329      var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, contentAlign !== 'center' && "has-".concat(contentAlign, "-content"), dimRatioToClass(dimRatio), {
3330        'has-background-dim': dimRatio !== 0,
3331        'has-parallax': hasParallax
3332      });
3333      var controls = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["BlockAlignmentToolbar"], {
3334        value: align,
3335        onChange: updateAlignment
3336      }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["AlignmentToolbar"], {
3337        value: contentAlign,
3338        onChange: function onChange(nextAlign) {
3339          setAttributes({
3340            contentAlign: nextAlign
3341          });
3342        }
3343      }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["MediaUpload"], {
3344        onSelect: onSelectImage,
3345        allowedTypes: ALLOWED_MEDIA_TYPES,
3346        value: id,
3347        render: function render(_ref6) {
3348          var open = _ref6.open;
3349          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["IconButton"], {
3350            className: "components-toolbar__control",
3351            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Edit image'),
3352            icon: "edit",
3353            onClick: open
3354          });
3355        }
3356      }))), !!url && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], {
3357        title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Cover Image Settings')
3358      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ToggleControl"], {
3359        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Fixed Background'),
3360        checked: hasParallax,
3361        onChange: toggleParallax
3362      }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["PanelColorSettings"], {
3363        title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Overlay'),
3364        initialOpen: true,
3365        colorSettings: [{
3366          value: overlayColor.color,
3367          onChange: setOverlayColor,
3368          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Overlay Color')
3369        }]
3370      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["RangeControl"], {
3371        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Background Opacity'),
3372        value: dimRatio,
3373        onChange: setDimRatio,
3374        min: 0,
3375        max: 100,
3376        step: 10
3377      })))));
3378  
3379      if (!url) {
3380        var hasTitle = !_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(title);
3381        var icon = hasTitle ? undefined : 'format-image';
3382        var label = hasTitle ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"], {
3383          tagName: "h2",
3384          value: title,
3385          onChange: setTitle,
3386          inlineToolbar: true
3387        }) : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Cover Image');
3388        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, controls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["MediaPlaceholder"], {
3389          icon: icon,
3390          className: className,
3391          labels: {
3392            title: label,
3393            name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('an image')
3394          },
3395          onSelect: onSelectImage,
3396          accept: "image/*",
3397          allowedTypes: ALLOWED_MEDIA_TYPES,
3398          notices: noticeUI,
3399          onError: noticeOperations.createErrorNotice
3400        }));
3401      }
3402  
3403      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, controls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", {
3404        "data-url": url,
3405        style: style,
3406        className: classes
3407      }, (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(title) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"], {
3408        tagName: "p",
3409        className: "wp-block-cover-image-text",
3410        placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Write title…'),
3411        value: title,
3412        onChange: setTitle,
3413        inlineToolbar: true
3414      })));
3415    }),
3416    save: function save(_ref7) {
3417      var attributes = _ref7.attributes,
3418          className = _ref7.className;
3419      var url = attributes.url,
3420          title = attributes.title,
3421          hasParallax = attributes.hasParallax,
3422          dimRatio = attributes.dimRatio,
3423          align = attributes.align,
3424          contentAlign = attributes.contentAlign,
3425          overlayColor = attributes.overlayColor,
3426          customOverlayColor = attributes.customOverlayColor;
3427      var overlayColorClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["getColorClassName"])('background-color', overlayColor);
3428      var style = backgroundImageStyles(url);
3429  
3430      if (!overlayColorClass) {
3431        style.backgroundColor = customOverlayColor;
3432      }
3433  
3434      var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, dimRatioToClass(dimRatio), overlayColorClass, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({
3435        'has-background-dim': dimRatio !== 0,
3436        'has-parallax': hasParallax
3437      }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center'), align ? "align".concat(align) : null);
3438      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", {
3439        className: classes,
3440        style: style
3441      }, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(title) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, {
3442        tagName: "p",
3443        className: "wp-block-cover-image-text",
3444        value: title
3445      }));
3446    },
3447    deprecated: [{
3448      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, blockAttributes, {
3449        title: {
3450          source: 'html',
3451          selector: 'h2'
3452        }
3453      }),
3454      save: function save(_ref8) {
3455        var attributes = _ref8.attributes,
3456            className = _ref8.className;
3457        var url = attributes.url,
3458            title = attributes.title,
3459            hasParallax = attributes.hasParallax,
3460            dimRatio = attributes.dimRatio,
3461            align = attributes.align;
3462        var style = backgroundImageStyles(url);
3463        var classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, dimRatioToClass(dimRatio), {
3464          'has-background-dim': dimRatio !== 0,
3465          'has-parallax': hasParallax
3466        }, align ? "align".concat(align) : null);
3467        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("section", {
3468          className: classes,
3469          style: style
3470        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, {
3471          tagName: "h2",
3472          value: title
3473        }));
3474      }
3475    }]
3476  };
3477  
3478  function dimRatioToClass(ratio) {
3479    return ratio === 0 || ratio === 50 ? null : 'has-background-dim-' + 10 * Math.round(ratio / 10);
3480  }
3481  
3482  function backgroundImageStyles(url) {
3483    return url ? {
3484      backgroundImage: "url(".concat(url, ")")
3485    } : {};
3486  }
3487  
3488  
3489  /***/ }),
3490  
3491  /***/ "./node_modules/@wordpress/block-library/build-module/embed/index.js":
3492  /*!***************************************************************************!*\
3493    !*** ./node_modules/@wordpress/block-library/build-module/embed/index.js ***!
3494    \***************************************************************************/
3495  /*! exports provided: getEmbedEdit, name, settings, common, others */
3496  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3497  
3498  "use strict";
3499  __webpack_require__.r(__webpack_exports__);
3500  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEmbedEdit", function() { return getEmbedEdit; });
3501  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
3502  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
3503  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "common", function() { return common; });
3504  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "others", function() { return others; });
3505  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
3506  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
3507  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
3508  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
3509  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
3510  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
3511  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
3512  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
3513  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3514  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
3515  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! url */ "./node_modules/url/url.js");
3516  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_9__);
3517  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash */ "lodash");
3518  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
3519  /* harmony import */ var classnames_dedupe__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! classnames/dedupe */ "./node_modules/classnames/dedupe.js");
3520  /* harmony import */ var classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames_dedupe__WEBPACK_IMPORTED_MODULE_11__);
3521  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3522  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__);
3523  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
3524  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_13__);
3525  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
3526  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__);
3527  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
3528  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_15__);
3529  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
3530  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__);
3531  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
3532  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_17__);
3533  
3534  
3535  
3536  
3537  
3538  
3539  
3540  
3541  
3542  
3543  /**
3544   * External dependencies
3545   */
3546  
3547  
3548  
3549  /**
3550   * WordPress dependencies
3551   */
3552  
3553  
3554  
3555  
3556  
3557  
3558  
3559   // These embeds do not work in sandboxes
3560  
3561  var HOSTS_NO_PREVIEWS = ['facebook.com'];
3562  var ASPECT_RATIOS = [// Common video resolutions.
3563  {
3564    ratio: '2.33',
3565    className: 'wp-embed-aspect-21-9'
3566  }, {
3567    ratio: '2.00',
3568    className: 'wp-embed-aspect-18-9'
3569  }, {
3570    ratio: '1.78',
3571    className: 'wp-embed-aspect-16-9'
3572  }, {
3573    ratio: '1.33',
3574    className: 'wp-embed-aspect-4-3'
3575  }, // Vertical video and instagram square video support.
3576  {
3577    ratio: '1.00',
3578    className: 'wp-embed-aspect-1-1'
3579  }, {
3580    ratio: '0.56',
3581    className: 'wp-embed-aspect-9-16'
3582  }, {
3583    ratio: '0.50',
3584    className: 'wp-embed-aspect-1-2'
3585  }];
3586  
3587  var matchesPatterns = function matchesPatterns(url) {
3588    var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3589    return patterns.some(function (pattern) {
3590      return url.match(pattern);
3591    });
3592  };
3593  
3594  var findBlock = function findBlock(url) {
3595    var _arr = common.concat(others);
3596  
3597    for (var _i = 0; _i < _arr.length; _i++) {
3598      var block = _arr[_i];
3599  
3600      if (matchesPatterns(url, block.patterns)) {
3601        return block.name;
3602      }
3603    }
3604  
3605    return 'core/embed';
3606  };
3607  
3608  function getEmbedEdit(title, icon) {
3609    return (
3610      /*#__PURE__*/
3611      function (_Component) {
3612        Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(_class, _Component);
3613  
3614        function _class() {
3615          var _this;
3616  
3617          Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, _class);
3618  
3619          _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(_class).apply(this, arguments));
3620          _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3621          _this.setUrl = _this.setUrl.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3622          _this.maybeSwitchBlock = _this.maybeSwitchBlock.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3623          _this.setAttributesFromPreview = _this.setAttributesFromPreview.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3624          _this.setAspectRatioClassNames = _this.setAspectRatioClassNames.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3625          _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3626          _this.toggleResponsive = _this.toggleResponsive.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3627          _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
3628          _this.state = {
3629            editingURL: false,
3630            url: _this.props.attributes.url
3631          };
3632  
3633          if (_this.props.preview) {
3634            _this.handleIncomingPreview();
3635          }
3636  
3637          return _this;
3638        }
3639  
3640        Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(_class, [{
3641          key: "handleIncomingPreview",
3642          value: function handleIncomingPreview() {
3643            this.setAttributesFromPreview();
3644            this.maybeSwitchBlock();
3645          }
3646        }, {
3647          key: "componentDidUpdate",
3648          value: function componentDidUpdate(prevProps) {
3649            var hasPreview = undefined !== this.props.preview;
3650            var hadPreview = undefined !== prevProps.preview; // We had a preview, and the URL was edited, and the new URL already has a preview fetched.
3651  
3652            var switchedPreview = this.props.preview && this.props.attributes.url !== prevProps.attributes.url;
3653            var switchedURL = this.props.attributes.url !== prevProps.attributes.url;
3654  
3655            if (switchedURL && this.maybeSwitchBlock()) {
3656              return;
3657            }
3658  
3659            if (hasPreview && !hadPreview || switchedPreview) {
3660              if (this.props.previewIsFallback) {
3661                this.setState({
3662                  editingURL: true
3663                });
3664                return;
3665              }
3666  
3667              this.handleIncomingPreview();
3668            }
3669          }
3670        }, {
3671          key: "getPhotoHtml",
3672          value: function getPhotoHtml(photo) {
3673            // 100% width for the preview so it fits nicely into the document, some "thumbnails" are
3674            // acually the full size photo.
3675            var photoPreview = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("img", {
3676              src: photo.thumbnail_url,
3677              alt: photo.title,
3678              width: "100%"
3679            }));
3680            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["renderToString"])(photoPreview);
3681          }
3682        }, {
3683          key: "setUrl",
3684          value: function setUrl(event) {
3685            if (event) {
3686              event.preventDefault();
3687            }
3688  
3689            var url = this.state.url;
3690            var setAttributes = this.props.setAttributes;
3691            this.setState({
3692              editingURL: false
3693            });
3694            setAttributes({
3695              url: url
3696            });
3697          }
3698          /***
3699           * Maybe switches to a different embed block type, based on the URL
3700           * and the HTML in the preview.
3701           *
3702           * @return {boolean} Whether the block was switched.
3703           */
3704  
3705        }, {
3706          key: "maybeSwitchBlock",
3707          value: function maybeSwitchBlock() {
3708            var preview = this.props.preview;
3709            var url = this.props.attributes.url;
3710  
3711            if (!url) {
3712              return false;
3713            }
3714  
3715            var matchingBlock = findBlock(url); // WordPress blocks can work on multiple sites, and so don't have patterns,
3716            // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL.
3717  
3718            if ('core-embed/wordpress' !== this.props.name && 'core/embed' !== matchingBlock) {
3719              // At this point, we have discovered a more suitable block for this url, so transform it.
3720              if (this.props.name !== matchingBlock) {
3721                this.props.onReplace(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_15__["createBlock"])(matchingBlock, {
3722                  url: url
3723                }));
3724                return true;
3725              }
3726            }
3727  
3728            if (preview) {
3729              var html = preview.html; // This indicates it's a WordPress embed, there aren't a set of URL patterns we can use to match WordPress URLs.
3730  
3731              if (Object(lodash__WEBPACK_IMPORTED_MODULE_10__["includes"])(html, 'class="wp-embedded-content" data-secret')) {
3732                // If this is not the WordPress embed block, transform it into one.
3733                if (this.props.name !== 'core-embed/wordpress') {
3734                  this.props.onReplace(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_15__["createBlock"])('core-embed/wordpress', {
3735                    url: url
3736                  }));
3737                  return true;
3738                }
3739              }
3740            }
3741  
3742            return false;
3743          }
3744          /**
3745           * Gets the appropriate CSS class names to enforce an aspect ratio when the embed is resized
3746           * if the HTML has an iframe with width and height set.
3747           *
3748           * @param {string} html The preview HTML that possibly contains an iframe with width and height set.
3749           * @param {boolean} allowResponsive If the classes should be added, or removed.
3750           * @return {Object} Object with classnames set for use with `classnames`.
3751           */
3752  
3753        }, {
3754          key: "getAspectRatioClassNames",
3755          value: function getAspectRatioClassNames(html) {
3756            var allowResponsive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
3757            var previewDocument = document.implementation.createHTMLDocument('');
3758            previewDocument.body.innerHTML = html;
3759            var iframe = previewDocument.body.querySelector('iframe');
3760  
3761            if (iframe && iframe.height && iframe.width) {
3762              var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it.
3763  
3764              for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) {
3765                var potentialRatio = ASPECT_RATIOS[ratioIndex];
3766  
3767                if (aspectRatio >= potentialRatio.ratio) {
3768                  var _ref;
3769  
3770                  return _ref = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, potentialRatio.className, allowResponsive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 'wp-has-aspect-ratio', allowResponsive), _ref;
3771                }
3772              }
3773            }
3774          }
3775          /**
3776           * Sets the aspect ratio related class names returned by `getAspectRatioClassNames`
3777           * if `allowResponsive` is truthy.
3778           *
3779           * @param {string} html The preview HTML.
3780           */
3781  
3782        }, {
3783          key: "setAspectRatioClassNames",
3784          value: function setAspectRatioClassNames(html) {
3785            var allowResponsive = this.props.attributes.allowResponsive;
3786  
3787            if (!allowResponsive) {
3788              return;
3789            }
3790  
3791            var className = classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default()(this.props.attributes.className, this.getAspectRatioClassNames(html));
3792            this.props.setAttributes({
3793              className: className
3794            });
3795          }
3796          /***
3797           * Sets block attributes based on the preview data.
3798           */
3799  
3800        }, {
3801          key: "setAttributesFromPreview",
3802          value: function setAttributesFromPreview() {
3803            var _this$props = this.props,
3804                setAttributes = _this$props.setAttributes,
3805                preview = _this$props.preview; // Some plugins only return HTML with no type info, so default this to 'rich'.
3806  
3807            var _preview$type = preview.type,
3808                type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title,
3809            // because not all embed code gives us a provider name.
3810  
3811            var html = preview.html,
3812                providerName = preview.provider_name;
3813            var providerNameSlug = Object(lodash__WEBPACK_IMPORTED_MODULE_10__["kebabCase"])(Object(lodash__WEBPACK_IMPORTED_MODULE_10__["toLower"])('' !== providerName ? providerName : title));
3814  
3815            if (Object(lodash__WEBPACK_IMPORTED_MODULE_10__["includes"])(html, 'class="wp-embedded-content" data-secret')) {
3816              type = 'wp-embed';
3817            }
3818  
3819            if (html || 'photo' === type) {
3820              setAttributes({
3821                type: type,
3822                providerNameSlug: providerNameSlug
3823              });
3824            }
3825  
3826            this.setAspectRatioClassNames(html);
3827          }
3828        }, {
3829          key: "switchBackToURLInput",
3830          value: function switchBackToURLInput() {
3831            this.setState({
3832              editingURL: true
3833            });
3834          }
3835        }, {
3836          key: "getResponsiveHelp",
3837          value: function getResponsiveHelp(checked) {
3838            return checked ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Videos and other content automatically resizes.') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Content is fixed size.');
3839          }
3840        }, {
3841          key: "toggleResponsive",
3842          value: function toggleResponsive() {
3843            var _this$props$attribute = this.props.attributes,
3844                allowResponsive = _this$props$attribute.allowResponsive,
3845                className = _this$props$attribute.className;
3846            var html = this.props.preview.html;
3847            var responsiveClassNames = this.getAspectRatioClassNames(html, !allowResponsive);
3848            this.props.setAttributes({
3849              allowResponsive: !allowResponsive,
3850              className: classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default()(className, responsiveClassNames)
3851            });
3852          }
3853        }, {
3854          key: "render",
3855          value: function render() {
3856            var _this2 = this;
3857  
3858            var _this$state = this.state,
3859                url = _this$state.url,
3860                editingURL = _this$state.editingURL;
3861            var _this$props$attribute2 = this.props.attributes,
3862                caption = _this$props$attribute2.caption,
3863                type = _this$props$attribute2.type,
3864                allowResponsive = _this$props$attribute2.allowResponsive;
3865            var _this$props2 = this.props,
3866                fetching = _this$props2.fetching,
3867                setAttributes = _this$props2.setAttributes,
3868                isSelected = _this$props2.isSelected,
3869                className = _this$props2.className,
3870                preview = _this$props2.preview,
3871                previewIsFallback = _this$props2.previewIsFallback; // We have a URL, but couldn't get a preview, or the preview was the oEmbed fallback.
3872  
3873            var cannotEmbed = url && (!preview || previewIsFallback);
3874            var controls = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Toolbar"], null, preview && !previewIsFallback && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["IconButton"], {
3875              className: "components-toolbar__control",
3876              label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Edit URL'),
3877              icon: "edit",
3878              onClick: this.switchBackToURLInput
3879            }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["PanelBody"], {
3880              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Media Settings'),
3881              className: "blocks-responsive"
3882            }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["ToggleControl"], {
3883              label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Automatically scale content'),
3884              checked: allowResponsive,
3885              help: this.getResponsiveHelp,
3886              onChange: this.toggleResponsive
3887            }))));
3888  
3889            if (fetching) {
3890              return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
3891                className: "wp-block-embed is-loading"
3892              }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Spinner"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Embedding…')));
3893            } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists
3894  
3895  
3896            var label = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('%s URL'), title);
3897  
3898            if (!preview || previewIsFallback || editingURL) {
3899              return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Placeholder"], {
3900                icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["BlockIcon"], {
3901                  icon: icon,
3902                  showColors: true
3903                }),
3904                label: label,
3905                className: "wp-block-embed"
3906              }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("form", {
3907                onSubmit: this.setUrl
3908              }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", {
3909                type: "url",
3910                value: url || '',
3911                className: "components-placeholder__input",
3912                "aria-label": label,
3913                placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Enter URL to embed here…'),
3914                onChange: function onChange(event) {
3915                  return _this2.setState({
3916                    url: event.target.value
3917                  });
3918                }
3919              }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Button"], {
3920                isLarge: true,
3921                type: "submit"
3922              }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Embed')), cannotEmbed && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {
3923                className: "components-placeholder__error"
3924              }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Sorry, we could not embed that content.'))));
3925            }
3926  
3927            var html = 'photo' === type ? this.getPhotoHtml(preview) : preview.html;
3928            var scripts = preview.scripts;
3929            var parsedUrl = Object(url__WEBPACK_IMPORTED_MODULE_9__["parse"])(url);
3930            var cannotPreview = Object(lodash__WEBPACK_IMPORTED_MODULE_10__["includes"])(HOSTS_NO_PREVIEWS, parsedUrl.host.replace(/^www\./, '')); // translators: %s: host providing embed content e.g: www.youtube.com
3931  
3932            var iframeTitle = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Embedded content from %s'), parsedUrl.host);
3933            var sandboxClassnames = classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default()(type, className);
3934            var embedWrapper = 'wp-embed' === type ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
3935              className: "wp-block-embed__wrapper",
3936              dangerouslySetInnerHTML: {
3937                __html: html
3938              }
3939            }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
3940              className: "wp-block-embed__wrapper"
3941            }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["SandBox"], {
3942              html: html,
3943              scripts: scripts,
3944              title: iframeTitle,
3945              type: sandboxClassnames
3946            }));
3947            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("figure", {
3948              className: classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default()(className, 'wp-block-embed', {
3949                'is-video': 'video' === type
3950              })
3951            }, controls, cannotPreview ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Placeholder"], {
3952              icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["BlockIcon"], {
3953                icon: icon,
3954                showColors: true
3955              }),
3956              label: label
3957            }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {
3958              className: "components-placeholder__error"
3959            }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", {
3960              href: url
3961            }, url)), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {
3962              className: "components-placeholder__error"
3963            }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Previews for this are unavailable in the editor, sorry!'))) : embedWrapper, (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"].isEmpty(caption) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"], {
3964              tagName: "figcaption",
3965              placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Write caption…'),
3966              value: caption,
3967              onChange: function onChange(value) {
3968                return setAttributes({
3969                  caption: value
3970                });
3971              },
3972              inlineToolbar: true
3973            }));
3974          }
3975        }]);
3976  
3977        return _class;
3978      }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"])
3979    );
3980  }
3981  var embedAttributes = {
3982    url: {
3983      type: 'string'
3984    },
3985    caption: {
3986      source: 'html',
3987      selector: 'figcaption'
3988    },
3989    type: {
3990      type: 'string'
3991    },
3992    providerNameSlug: {
3993      type: 'string'
3994    },
3995    allowResponsive: {
3996      type: 'boolean',
3997      default: true
3998    }
3999  };
4000  
4001  function getEmbedBlockSettings(_ref2) {
4002    var title = _ref2.title,
4003        description = _ref2.description,
4004        icon = _ref2.icon,
4005        _ref2$category = _ref2.category,
4006        category = _ref2$category === void 0 ? 'embed' : _ref2$category,
4007        transforms = _ref2.transforms,
4008        _ref2$keywords = _ref2.keywords,
4009        keywords = _ref2$keywords === void 0 ? [] : _ref2$keywords,
4010        _ref2$supports = _ref2.supports,
4011        supports = _ref2$supports === void 0 ? {} : _ref2$supports;
4012    // translators: %s: Name of service (e.g. VideoPress, YouTube)
4013    var blockDescription = description || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'), title);
4014    return {
4015      title: title,
4016      description: blockDescription,
4017      icon: icon,
4018      category: category,
4019      keywords: keywords,
4020      attributes: embedAttributes,
4021      supports: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({
4022        align: true
4023      }, supports),
4024      transforms: transforms,
4025      edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_13__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_17__["withSelect"])(function (select, ownProps) {
4026        var url = ownProps.attributes.url;
4027        var core = select('core');
4028        var getEmbedPreview = core.getEmbedPreview,
4029            isPreviewEmbedFallback = core.isPreviewEmbedFallback,
4030            isRequestingEmbedPreview = core.isRequestingEmbedPreview;
4031        var preview = url && getEmbedPreview(url);
4032        var previewIsFallback = url && isPreviewEmbedFallback(url);
4033        var fetching = undefined !== url && isRequestingEmbedPreview(url); // Some WordPress URLs that can't be embedded will cause the API to return
4034        // a valid JSON response with no HTML and `data.status` set to 404, rather
4035        // than generating a fallback response as other embeds do.
4036  
4037        var validPreview = preview && !(preview.data && preview.data.status === 404);
4038        return {
4039          preview: validPreview && preview,
4040          previewIsFallback: previewIsFallback,
4041          fetching: fetching
4042        };
4043      }))(getEmbedEdit(title, icon)),
4044      save: function save(_ref3) {
4045        var _classnames;
4046  
4047        var attributes = _ref3.attributes;
4048        var url = attributes.url,
4049            caption = attributes.caption,
4050            type = attributes.type,
4051            providerNameSlug = attributes.providerNameSlug;
4052  
4053        if (!url) {
4054          return null;
4055        }
4056  
4057        var embedClassName = classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default()('wp-block-embed', (_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames, "is-type-".concat(type), type), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames));
4058        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("figure", {
4059          className: embedClassName
4060        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
4061          className: "wp-block-embed__wrapper"
4062        }, "\n".concat(url, "\n")
4063        /* URL needs to be on its own line. */
4064        ), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"].Content, {
4065          tagName: "figcaption",
4066          value: caption
4067        }));
4068      },
4069      deprecated: [{
4070        attributes: embedAttributes,
4071        save: function save(_ref4) {
4072          var _classnames2;
4073  
4074          var attributes = _ref4.attributes;
4075          var url = attributes.url,
4076              caption = attributes.caption,
4077              type = attributes.type,
4078              providerNameSlug = attributes.providerNameSlug;
4079  
4080          if (!url) {
4081            return null;
4082          }
4083  
4084          var embedClassName = classnames_dedupe__WEBPACK_IMPORTED_MODULE_11___default()('wp-block-embed', (_classnames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames2, "is-type-".concat(type), type), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames2, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames2));
4085          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("figure", {
4086            className: embedClassName
4087          }, "\n".concat(url, "\n")
4088          /* URL needs to be on its own line. */
4089          , !_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"].Content, {
4090            tagName: "figcaption",
4091            value: caption
4092          }));
4093        }
4094      }]
4095    };
4096  }
4097  
4098  var name = 'core/embed';
4099  var embedContentIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4100    viewBox: "0 0 24 24",
4101    xmlns: "http://www.w3.org/2000/svg"
4102  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4103    d: "M0,0h24v24H0V0z",
4104    fill: "none"
4105  }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4106    d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"
4107  }));
4108  var embedAudioIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4109    viewBox: "0 0 24 24",
4110    xmlns: "http://www.w3.org/2000/svg"
4111  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4112    fill: "none",
4113    d: "M0 0h24v24H0V0z"
4114  }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4115    d: "M21 3H3L1 5v14l2 2h18l2-2V5l-2-2zm0 16H3V5h18v14zM8 15a3 3 0 0 1 4-3V6h5v2h-3v7a3 3 0 0 1-6 0z"
4116  }));
4117  var embedPhotoIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4118    viewBox: "0 0 24 24",
4119    xmlns: "http://www.w3.org/2000/svg"
4120  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4121    d: "M0,0h24v24H0V0z",
4122    fill: "none"
4123  }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4124    d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"
4125  }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("polygon", {
4126    points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17"
4127  }));
4128  var embedVideoIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4129    viewBox: "0 0 24 24",
4130    xmlns: "http://www.w3.org/2000/svg"
4131  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4132    d: "M0,0h24v24H0V0z",
4133    fill: "none"
4134  }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4135    d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"
4136  }));
4137  var settings = getEmbedBlockSettings({
4138    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Embed'),
4139    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('The Embed block allows you to easily add videos, images, tweets, audio, and other content to your post or page.'),
4140    icon: embedContentIcon,
4141    transforms: {
4142      from: [{
4143        type: 'raw',
4144        isMatch: function isMatch(node) {
4145          return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent);
4146        },
4147        transform: function transform(node) {
4148          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_15__["createBlock"])('core/embed', {
4149            url: node.textContent.trim()
4150          });
4151        }
4152      }]
4153    }
4154  });
4155  var common = [{
4156    name: 'core-embed/twitter',
4157    settings: getEmbedBlockSettings({
4158      title: 'Twitter',
4159      icon: {
4160        foreground: '#1da1f2',
4161        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4162          xmlns: "http://www.w3.org/2000/svg",
4163          viewBox: "0 0 24 24"
4164        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4165          d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"
4166        })))
4167      },
4168      keywords: ['tweet']
4169    }),
4170    patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i]
4171  }, {
4172    name: 'core-embed/youtube',
4173    settings: getEmbedBlockSettings({
4174      title: 'YouTube',
4175      icon: {
4176        foreground: '#ff0000',
4177        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4178          viewBox: "0 0 24 24"
4179        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4180          d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"
4181        }))
4182      },
4183      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('video')]
4184    }),
4185    patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i]
4186  }, {
4187    name: 'core-embed/facebook',
4188    settings: getEmbedBlockSettings({
4189      title: 'Facebook',
4190      icon: {
4191        foreground: '#3b5998',
4192        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4193          viewBox: "0 0 24 24"
4194        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4195          d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"
4196        }))
4197      }
4198    }),
4199    patterns: [/^https?:\/\/www\.facebook.com\/.+/i]
4200  }, {
4201    name: 'core-embed/instagram',
4202    settings: getEmbedBlockSettings({
4203      title: 'Instagram',
4204      icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4205        viewBox: "0 0 24 24"
4206      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4207        d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"
4208      }))),
4209      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('image')]
4210    }),
4211    patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]
4212  }, {
4213    name: 'core-embed/wordpress',
4214    settings: getEmbedBlockSettings({
4215      title: 'WordPress',
4216      icon: {
4217        foreground: '#0073AA',
4218        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4219          viewBox: "0 0 24 24"
4220        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4221          d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"
4222        })))
4223      },
4224      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('post'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('blog')]
4225    })
4226  }, {
4227    name: 'core-embed/soundcloud',
4228    settings: getEmbedBlockSettings({
4229      title: 'SoundCloud',
4230      icon: embedAudioIcon,
4231      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('audio')]
4232    }),
4233    patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]
4234  }, {
4235    name: 'core-embed/spotify',
4236    settings: getEmbedBlockSettings({
4237      title: 'Spotify',
4238      icon: {
4239        foreground: '#1db954',
4240        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4241          viewBox: "0 0 24 24"
4242        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4243          d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"
4244        }))
4245      },
4246      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('audio')]
4247    }),
4248    patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i]
4249  }, {
4250    name: 'core-embed/flickr',
4251    settings: getEmbedBlockSettings({
4252      title: 'Flickr',
4253      icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4254        viewBox: "0 0 24 24"
4255      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4256        d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"
4257      })),
4258      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('image')]
4259    }),
4260    patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i]
4261  }, {
4262    name: 'core-embed/vimeo',
4263    settings: getEmbedBlockSettings({
4264      title: 'Vimeo',
4265      icon: {
4266        foreground: '#1ab7ea',
4267        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4268          xmlns: "http://www.w3.org/2000/svg",
4269          viewBox: "0 0 24 24"
4270        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4271          d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"
4272        })))
4273      },
4274      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('video')]
4275    }),
4276    patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i]
4277  }];
4278  var others = [{
4279    name: 'core-embed/animoto',
4280    settings: getEmbedBlockSettings({
4281      title: 'Animoto',
4282      icon: embedVideoIcon
4283    }),
4284    patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]
4285  }, {
4286    name: 'core-embed/cloudup',
4287    settings: getEmbedBlockSettings({
4288      title: 'Cloudup',
4289      icon: embedContentIcon
4290    }),
4291    patterns: [/^https?:\/\/cloudup\.com\/.+/i]
4292  }, {
4293    name: 'core-embed/collegehumor',
4294    settings: getEmbedBlockSettings({
4295      title: 'CollegeHumor',
4296      icon: embedVideoIcon
4297    }),
4298    patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]
4299  }, {
4300    name: 'core-embed/dailymotion',
4301    settings: getEmbedBlockSettings({
4302      title: 'Dailymotion',
4303      icon: embedVideoIcon
4304    }),
4305    patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]
4306  }, {
4307    name: 'core-embed/funnyordie',
4308    settings: getEmbedBlockSettings({
4309      title: 'Funny or Die',
4310      icon: embedVideoIcon
4311    }),
4312    patterns: [/^https?:\/\/(www\.)?funnyordie\.com\/.+/i]
4313  }, {
4314    name: 'core-embed/hulu',
4315    settings: getEmbedBlockSettings({
4316      title: 'Hulu',
4317      icon: embedVideoIcon
4318    }),
4319    patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i]
4320  }, {
4321    name: 'core-embed/imgur',
4322    settings: getEmbedBlockSettings({
4323      title: 'Imgur',
4324      icon: embedPhotoIcon
4325    }),
4326    patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i]
4327  }, {
4328    name: 'core-embed/issuu',
4329    settings: getEmbedBlockSettings({
4330      title: 'Issuu',
4331      icon: embedContentIcon
4332    }),
4333    patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i]
4334  }, {
4335    name: 'core-embed/kickstarter',
4336    settings: getEmbedBlockSettings({
4337      title: 'Kickstarter',
4338      icon: embedContentIcon
4339    }),
4340    patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i]
4341  }, {
4342    name: 'core-embed/meetup-com',
4343    settings: getEmbedBlockSettings({
4344      title: 'Meetup.com',
4345      icon: embedContentIcon
4346    }),
4347    patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]
4348  }, {
4349    name: 'core-embed/mixcloud',
4350    settings: getEmbedBlockSettings({
4351      title: 'Mixcloud',
4352      icon: embedAudioIcon,
4353      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('audio')]
4354    }),
4355    patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]
4356  }, {
4357    name: 'core-embed/photobucket',
4358    settings: getEmbedBlockSettings({
4359      title: 'Photobucket',
4360      icon: embedPhotoIcon
4361    }),
4362    patterns: [/^http:\/\/g?i*\.photobucket\.com\/.+/i]
4363  }, {
4364    name: 'core-embed/polldaddy',
4365    settings: getEmbedBlockSettings({
4366      title: 'Polldaddy',
4367      icon: embedContentIcon
4368    }),
4369    patterns: [/^https?:\/\/(www\.)?polldaddy\.com\/.+/i]
4370  }, {
4371    name: 'core-embed/reddit',
4372    settings: getEmbedBlockSettings({
4373      title: 'Reddit',
4374      icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4375        viewBox: "0 0 24 24"
4376      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4377        d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"
4378      }))
4379    }),
4380    patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i]
4381  }, {
4382    name: 'core-embed/reverbnation',
4383    settings: getEmbedBlockSettings({
4384      title: 'ReverbNation',
4385      icon: embedAudioIcon
4386    }),
4387    patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]
4388  }, {
4389    name: 'core-embed/screencast',
4390    settings: getEmbedBlockSettings({
4391      title: 'Screencast',
4392      icon: embedVideoIcon
4393    }),
4394    patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i]
4395  }, {
4396    name: 'core-embed/scribd',
4397    settings: getEmbedBlockSettings({
4398      title: 'Scribd',
4399      icon: embedContentIcon
4400    }),
4401    patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i]
4402  }, {
4403    name: 'core-embed/slideshare',
4404    settings: getEmbedBlockSettings({
4405      title: 'Slideshare',
4406      icon: embedContentIcon
4407    }),
4408    patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]
4409  }, {
4410    name: 'core-embed/smugmug',
4411    settings: getEmbedBlockSettings({
4412      title: 'SmugMug',
4413      icon: embedPhotoIcon
4414    }),
4415    patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i]
4416  }, {
4417    // Deprecated in favour of the core-embed/speaker-deck block.
4418    name: 'core-embed/speaker',
4419    settings: getEmbedBlockSettings({
4420      title: 'Speaker',
4421      icon: embedAudioIcon,
4422      supports: {
4423        inserter: false
4424      }
4425    }),
4426    patterns: []
4427  }, {
4428    name: 'core-embed/speaker-deck',
4429    settings: getEmbedBlockSettings({
4430      title: 'Speaker Deck',
4431      icon: embedContentIcon,
4432      transform: [{
4433        type: 'block',
4434        blocks: ['core-embed/speaker'],
4435        transform: function transform(content) {
4436          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_15__["createBlock"])('core-embed/speaker-deck', {
4437            content: content
4438          });
4439        }
4440      }]
4441    }),
4442    patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]
4443  }, {
4444    name: 'core-embed/ted',
4445    settings: getEmbedBlockSettings({
4446      title: 'TED',
4447      icon: embedVideoIcon
4448    }),
4449    patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]
4450  }, {
4451    name: 'core-embed/tumblr',
4452    settings: getEmbedBlockSettings({
4453      title: 'Tumblr',
4454      icon: {
4455        foreground: '#35465c',
4456        src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
4457          viewBox: "0 0 24 24"
4458        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
4459          d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"
4460        }))
4461      }
4462    }),
4463    patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i]
4464  }, {
4465    name: 'core-embed/videopress',
4466    settings: getEmbedBlockSettings({
4467      title: 'VideoPress',
4468      icon: embedVideoIcon,
4469      keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('video')]
4470    }),
4471    patterns: [/^https?:\/\/videopress\.com\/.+/i]
4472  }, {
4473    name: 'core-embed/wordpress-tv',
4474    settings: getEmbedBlockSettings({
4475      title: 'WordPress.tv',
4476      icon: embedVideoIcon
4477    }),
4478    patterns: [/^https?:\/\/wordpress\.tv\/.+/i]
4479  }];
4480  
4481  
4482  /***/ }),
4483  
4484  /***/ "./node_modules/@wordpress/block-library/build-module/file/edit.js":
4485  /*!*************************************************************************!*\
4486    !*** ./node_modules/@wordpress/block-library/build-module/file/edit.js ***!
4487    \*************************************************************************/
4488  /*! exports provided: default */
4489  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4490  
4491  "use strict";
4492  __webpack_require__.r(__webpack_exports__);
4493  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
4494  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
4495  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
4496  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
4497  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
4498  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
4499  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
4500  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
4501  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4502  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
4503  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
4504  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
4505  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4506  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);
4507  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
4508  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_11__);
4509  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
4510  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__);
4511  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
4512  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_13__);
4513  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
4514  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__);
4515  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
4516  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_15__);
4517  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
4518  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_16__);
4519  /* harmony import */ var _inspector__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./inspector */ "./node_modules/@wordpress/block-library/build-module/file/inspector.js");
4520  
4521  
4522  
4523  
4524  
4525  
4526  
4527  
4528  
4529  
4530  /**
4531   * External dependencies
4532   */
4533  
4534  /**
4535   * WordPress dependencies
4536   */
4537  
4538  
4539  
4540  
4541  
4542  
4543  
4544  
4545  
4546  /**
4547   * Internal dependencies
4548   */
4549  
4550  
4551  
4552  var FileEdit =
4553  /*#__PURE__*/
4554  function (_Component) {
4555    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(FileEdit, _Component);
4556  
4557    function FileEdit() {
4558      var _this;
4559  
4560      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, FileEdit);
4561  
4562      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(FileEdit).apply(this, arguments));
4563      _this.onSelectFile = _this.onSelectFile.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
4564      _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
4565      _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
4566      _this.changeLinkDestinationOption = _this.changeLinkDestinationOption.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
4567      _this.changeOpenInNewWindow = _this.changeOpenInNewWindow.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
4568      _this.changeShowDownloadButton = _this.changeShowDownloadButton.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
4569      _this.state = {
4570        hasError: false,
4571        showCopyConfirmation: false
4572      };
4573      return _this;
4574    }
4575  
4576    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(FileEdit, [{
4577      key: "componentDidMount",
4578      value: function componentDidMount() {
4579        var _this2 = this;
4580  
4581        var _this$props = this.props,
4582            attributes = _this$props.attributes,
4583            noticeOperations = _this$props.noticeOperations;
4584        var href = attributes.href; // Upload a file drag-and-dropped into the editor
4585  
4586        if (this.isBlobURL(href)) {
4587          var file = Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_11__["getBlobByURL"])(href);
4588          Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__["mediaUpload"])({
4589            filesList: [file],
4590            onFileChange: function onFileChange(_ref) {
4591              var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 1),
4592                  media = _ref2[0];
4593  
4594              return _this2.onSelectFile(media);
4595            },
4596            onError: function onError(message) {
4597              _this2.setState({
4598                hasError: true
4599              });
4600  
4601              noticeOperations.createErrorNotice(message);
4602            }
4603          });
4604          Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_11__["revokeBlobURL"])(href);
4605        }
4606      }
4607    }, {
4608      key: "componentDidUpdate",
4609      value: function componentDidUpdate(prevProps) {
4610        // Reset copy confirmation state when block is deselected
4611        if (prevProps.isSelected && !this.props.isSelected) {
4612          this.setState({
4613            showCopyConfirmation: false
4614          });
4615        }
4616      }
4617    }, {
4618      key: "onSelectFile",
4619      value: function onSelectFile(media) {
4620        if (media && media.url) {
4621          this.setState({
4622            hasError: false
4623          });
4624          this.props.setAttributes({
4625            href: media.url,
4626            fileName: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_16__["create"])({
4627              text: media.title
4628            }),
4629            textLinkHref: media.url,
4630            id: media.id
4631          });
4632        }
4633      }
4634    }, {
4635      key: "isBlobURL",
4636      value: function isBlobURL() {
4637        var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
4638        return url.indexOf('blob:') === 0;
4639      }
4640    }, {
4641      key: "confirmCopyURL",
4642      value: function confirmCopyURL() {
4643        this.setState({
4644          showCopyConfirmation: true
4645        });
4646      }
4647    }, {
4648      key: "resetCopyConfirmation",
4649      value: function resetCopyConfirmation() {
4650        this.setState({
4651          showCopyConfirmation: false
4652        });
4653      }
4654    }, {
4655      key: "changeLinkDestinationOption",
4656      value: function changeLinkDestinationOption(newHref) {
4657        // Choose Media File or Attachment Page (when file is in Media Library)
4658        this.props.setAttributes({
4659          textLinkHref: newHref
4660        });
4661      }
4662    }, {
4663      key: "changeOpenInNewWindow",
4664      value: function changeOpenInNewWindow(newValue) {
4665        this.props.setAttributes({
4666          textLinkTarget: newValue ? '_blank' : false
4667        });
4668      }
4669    }, {
4670      key: "changeShowDownloadButton",
4671      value: function changeShowDownloadButton(newValue) {
4672        this.props.setAttributes({
4673          showDownloadButton: newValue
4674        });
4675      }
4676    }, {
4677      key: "render",
4678      value: function render() {
4679        var _this$props2 = this.props,
4680            className = _this$props2.className,
4681            isSelected = _this$props2.isSelected,
4682            attributes = _this$props2.attributes,
4683            setAttributes = _this$props2.setAttributes,
4684            noticeUI = _this$props2.noticeUI,
4685            noticeOperations = _this$props2.noticeOperations,
4686            media = _this$props2.media;
4687        var fileName = attributes.fileName,
4688            href = attributes.href,
4689            textLinkHref = attributes.textLinkHref,
4690            textLinkTarget = attributes.textLinkTarget,
4691            showDownloadButton = attributes.showDownloadButton,
4692            downloadButtonText = attributes.downloadButtonText,
4693            id = attributes.id;
4694        var _this$state = this.state,
4695            hasError = _this$state.hasError,
4696            showCopyConfirmation = _this$state.showCopyConfirmation;
4697        var attachmentPage = media && media.link;
4698  
4699        if (!href || hasError) {
4700          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__["MediaPlaceholder"], {
4701            icon: "media-default",
4702            labels: {
4703              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('File'),
4704              name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('a file')
4705            },
4706            onSelect: this.onSelectFile,
4707            notices: noticeUI,
4708            onError: noticeOperations.createErrorNotice,
4709            accept: "*"
4710          });
4711        }
4712  
4713        var classes = classnames__WEBPACK_IMPORTED_MODULE_9___default()(className, {
4714          'is-transient': this.isBlobURL(href)
4715        });
4716        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_inspector__WEBPACK_IMPORTED_MODULE_17__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
4717          hrefs: {
4718            href: href,
4719            textLinkHref: textLinkHref,
4720            attachmentPage: attachmentPage
4721          }
4722        }, {
4723          openInNewWindow: !!textLinkTarget,
4724          showDownloadButton: showDownloadButton,
4725          changeLinkDestinationOption: this.changeLinkDestinationOption,
4726          changeOpenInNewWindow: this.changeOpenInNewWindow,
4727          changeShowDownloadButton: this.changeShowDownloadButton
4728        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__["MediaUpload"], {
4729          onSelect: this.onSelectFile,
4730          value: id,
4731          render: function render(_ref3) {
4732            var open = _ref3.open;
4733            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["IconButton"], {
4734              className: "components-toolbar__control",
4735              label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Edit file'),
4736              onClick: open,
4737              icon: "edit"
4738            });
4739          }
4740        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
4741          className: classes
4742        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
4743          className: "".concat(className, "__content-wrapper")
4744        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__["RichText"], {
4745          wrapperClassName: "".concat(className, "__textlink"),
4746          tagName: "div" // must be block-level or else cursor disappears
4747          ,
4748          value: fileName,
4749          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Write file name…'),
4750          keepPlaceholderOnFocus: true,
4751          formattingControls: [] // disable controls
4752          ,
4753          onChange: function onChange(text) {
4754            return setAttributes({
4755              fileName: text
4756            });
4757          }
4758        }), showDownloadButton && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
4759          className: "".concat(className, "__button-richtext-wrapper")
4760        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_14__["RichText"], {
4761          tagName: "div" // must be block-level or else cursor disappears
4762          ,
4763          className: "".concat(className, "__button"),
4764          value: downloadButtonText,
4765          formattingControls: [] // disable controls
4766          ,
4767          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Add text…'),
4768          keepPlaceholderOnFocus: true,
4769          onChange: function onChange(text) {
4770            return setAttributes({
4771              downloadButtonText: text
4772            });
4773          }
4774        }))), isSelected && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["ClipboardButton"], {
4775          isDefault: true,
4776          text: href,
4777          className: "".concat(className, "__copy-url-button"),
4778          onCopy: this.confirmCopyURL,
4779          onFinishCopy: this.resetCopyConfirmation
4780        }, showCopyConfirmation ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Copied!') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Copy URL'))));
4781      }
4782    }]);
4783  
4784    return FileEdit;
4785  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
4786  
4787  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_15__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_13__["withSelect"])(function (select, props) {
4788    var _select = select('core'),
4789        getMedia = _select.getMedia;
4790  
4791    var id = props.attributes.id;
4792    return {
4793      media: id === undefined ? undefined : getMedia(id)
4794    };
4795  }), _wordpress_components__WEBPACK_IMPORTED_MODULE_12__["withNotices"]])(FileEdit));
4796  
4797  
4798  /***/ }),
4799  
4800  /***/ "./node_modules/@wordpress/block-library/build-module/file/index.js":
4801  /*!**************************************************************************!*\
4802    !*** ./node_modules/@wordpress/block-library/build-module/file/index.js ***!
4803    \**************************************************************************/
4804  /*! exports provided: name, settings */
4805  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4806  
4807  "use strict";
4808  __webpack_require__.r(__webpack_exports__);
4809  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
4810  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
4811  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4812  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4813  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
4814  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
4815  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4816  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
4817  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
4818  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_3__);
4819  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
4820  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
4821  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
4822  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
4823  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
4824  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
4825  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
4826  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__);
4827  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/file/edit.js");
4828  
4829  
4830  /**
4831   * External dependencies
4832   */
4833  
4834  /**
4835   * WordPress dependencies
4836   */
4837  
4838  
4839  
4840  
4841  
4842  
4843  
4844  /**
4845   * Internal dependencies
4846   */
4847  
4848  
4849  var name = 'core/file';
4850  var settings = {
4851    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('File'),
4852    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add a link to a file that visitors can download.'),
4853    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
4854      viewBox: "0 0 24 24",
4855      xmlns: "http://www.w3.org/2000/svg"
4856    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
4857      fill: "none",
4858      d: "M0 0h24v24H0V0z"
4859    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
4860      d: "M9 6l2 2h9v10H4V6h5m1-2H4L2 6v12l2 2h16l2-2V8l-2-2h-8l-2-2z"
4861    })),
4862    category: 'common',
4863    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('document'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('pdf')],
4864    attributes: {
4865      id: {
4866        type: 'number'
4867      },
4868      href: {
4869        type: 'string'
4870      },
4871      fileName: {
4872        source: 'html',
4873        selector: 'a:not([download])'
4874      },
4875      // Differs to the href when the block is configured to link to the attachment page
4876      textLinkHref: {
4877        type: 'string',
4878        source: 'attribute',
4879        selector: 'a:not([download])',
4880        attribute: 'href'
4881      },
4882      // e.g. `_blank` when the block is configured to open in a new window
4883      textLinkTarget: {
4884        type: 'string',
4885        source: 'attribute',
4886        selector: 'a:not([download])',
4887        attribute: 'target'
4888      },
4889      showDownloadButton: {
4890        type: 'boolean',
4891        default: true
4892      },
4893      downloadButtonText: {
4894        source: 'html',
4895        selector: 'a[download]',
4896        default: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Download')
4897      }
4898    },
4899    supports: {
4900      align: true
4901    },
4902    transforms: {
4903      from: [{
4904        type: 'files',
4905        isMatch: function isMatch(files) {
4906          return files.length === 1;
4907        },
4908        // We define a lower priorty (higher number) than the default of 10. This
4909        // ensures that the File block is only created as a fallback.
4910        priority: 15,
4911        transform: function transform(files) {
4912          var file = files[0];
4913          var blobURL = Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_3__["createBlobURL"])(file); // File will be uploaded in componentDidMount()
4914  
4915          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/file', {
4916            href: blobURL,
4917            fileName: file.name,
4918            textLinkHref: blobURL
4919          });
4920        }
4921      }, {
4922        type: 'block',
4923        blocks: ['core/audio'],
4924        transform: function transform(attributes) {
4925          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/file', {
4926            href: attributes.src,
4927            fileName: attributes.caption,
4928            textLinkHref: attributes.src,
4929            id: attributes.id
4930          });
4931        }
4932      }, {
4933        type: 'block',
4934        blocks: ['core/video'],
4935        transform: function transform(attributes) {
4936          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/file', {
4937            href: attributes.src,
4938            fileName: attributes.caption,
4939            textLinkHref: attributes.src,
4940            id: attributes.id
4941          });
4942        }
4943      }, {
4944        type: 'block',
4945        blocks: ['core/image'],
4946        transform: function transform(attributes) {
4947          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/file', {
4948            href: attributes.url,
4949            fileName: attributes.caption,
4950            textLinkHref: attributes.url,
4951            id: attributes.id
4952          });
4953        }
4954      }],
4955      to: [{
4956        type: 'block',
4957        blocks: ['core/audio'],
4958        isMatch: function isMatch(_ref) {
4959          var id = _ref.id;
4960  
4961          if (!id) {
4962            return false;
4963          }
4964  
4965          var _select = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["select"])('core'),
4966              getMedia = _select.getMedia;
4967  
4968          var media = getMedia(id);
4969          return !!media && Object(lodash__WEBPACK_IMPORTED_MODULE_1__["includes"])(media.mime_type, 'audio');
4970        },
4971        transform: function transform(attributes) {
4972          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/audio', {
4973            src: attributes.href,
4974            caption: attributes.fileName,
4975            id: attributes.id
4976          });
4977        }
4978      }, {
4979        type: 'block',
4980        blocks: ['core/video'],
4981        isMatch: function isMatch(_ref2) {
4982          var id = _ref2.id;
4983  
4984          if (!id) {
4985            return false;
4986          }
4987  
4988          var _select2 = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["select"])('core'),
4989              getMedia = _select2.getMedia;
4990  
4991          var media = getMedia(id);
4992          return !!media && Object(lodash__WEBPACK_IMPORTED_MODULE_1__["includes"])(media.mime_type, 'video');
4993        },
4994        transform: function transform(attributes) {
4995          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/video', {
4996            src: attributes.href,
4997            caption: attributes.fileName,
4998            id: attributes.id
4999          });
5000        }
5001      }, {
5002        type: 'block',
5003        blocks: ['core/image'],
5004        isMatch: function isMatch(_ref3) {
5005          var id = _ref3.id;
5006  
5007          if (!id) {
5008            return false;
5009          }
5010  
5011          var _select3 = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["select"])('core'),
5012              getMedia = _select3.getMedia;
5013  
5014          var media = getMedia(id);
5015          return !!media && Object(lodash__WEBPACK_IMPORTED_MODULE_1__["includes"])(media.mime_type, 'image');
5016        },
5017        transform: function transform(attributes) {
5018          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/image', {
5019            url: attributes.href,
5020            caption: attributes.fileName,
5021            id: attributes.id
5022          });
5023        }
5024      }]
5025    },
5026    edit: _edit__WEBPACK_IMPORTED_MODULE_8__["default"],
5027    save: function save(_ref4) {
5028      var attributes = _ref4.attributes;
5029      var href = attributes.href,
5030          fileName = attributes.fileName,
5031          textLinkHref = attributes.textLinkHref,
5032          textLinkTarget = attributes.textLinkTarget,
5033          showDownloadButton = attributes.showDownloadButton,
5034          downloadButtonText = attributes.downloadButtonText;
5035      return href && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", null, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(fileName) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("a", {
5036        href: textLinkHref,
5037        target: textLinkTarget,
5038        rel: textLinkTarget ? 'noreferrer noopener' : false
5039      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
5040        value: fileName
5041      })), showDownloadButton && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("a", {
5042        href: href,
5043        className: "wp-block-file__button" // ensure download attribute is still set when fileName
5044        // is undefined. Using '' here as `true` still leaves
5045        // the attribute unset.
5046        ,
5047        download: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["getTextContent"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["create"])({
5048          html: fileName
5049        }))
5050      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
5051        value: downloadButtonText
5052      })));
5053    }
5054  };
5055  
5056  
5057  /***/ }),
5058  
5059  /***/ "./node_modules/@wordpress/block-library/build-module/file/inspector.js":
5060  /*!******************************************************************************!*\
5061    !*** ./node_modules/@wordpress/block-library/build-module/file/inspector.js ***!
5062    \******************************************************************************/
5063  /*! exports provided: default */
5064  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5065  
5066  "use strict";
5067  __webpack_require__.r(__webpack_exports__);
5068  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FileBlockInspector; });
5069  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5070  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5071  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5072  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
5073  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
5074  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
5075  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
5076  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__);
5077  
5078  
5079  /**
5080   * WordPress dependencies
5081   */
5082  
5083  
5084  
5085  
5086  
5087  function getDownloadButtonHelp(checked) {
5088    return checked ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('The download button is visible.') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('The download button is hidden.');
5089  }
5090  
5091  function FileBlockInspector(_ref) {
5092    var hrefs = _ref.hrefs,
5093        openInNewWindow = _ref.openInNewWindow,
5094        showDownloadButton = _ref.showDownloadButton,
5095        changeLinkDestinationOption = _ref.changeLinkDestinationOption,
5096        changeOpenInNewWindow = _ref.changeOpenInNewWindow,
5097        changeShowDownloadButton = _ref.changeShowDownloadButton;
5098    var href = hrefs.href,
5099        textLinkHref = hrefs.textLinkHref,
5100        attachmentPage = hrefs.attachmentPage;
5101    var linkDestinationOptions = [{
5102      value: href,
5103      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('URL')
5104    }];
5105  
5106    if (attachmentPage) {
5107      linkDestinationOptions = [{
5108        value: href,
5109        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Media File')
5110      }, {
5111        value: attachmentPage,
5112        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Attachment Page')
5113      }];
5114    }
5115  
5116    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["PanelBody"], {
5117      title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Text Link Settings')
5118    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SelectControl"], {
5119      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Link To'),
5120      value: textLinkHref,
5121      options: linkDestinationOptions,
5122      onChange: changeLinkDestinationOption
5123    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["ToggleControl"], {
5124      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Open in New Window'),
5125      checked: openInNewWindow,
5126      onChange: changeOpenInNewWindow
5127    })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["PanelBody"], {
5128      title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Download Button Settings')
5129    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["ToggleControl"], {
5130      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Show Download Button'),
5131      help: getDownloadButtonHelp,
5132      checked: showDownloadButton,
5133      onChange: changeShowDownloadButton
5134    }))));
5135  }
5136  
5137  
5138  /***/ }),
5139  
5140  /***/ "./node_modules/@wordpress/block-library/build-module/gallery/edit.js":
5141  /*!****************************************************************************!*\
5142    !*** ./node_modules/@wordpress/block-library/build-module/gallery/edit.js ***!
5143    \****************************************************************************/
5144  /*! exports provided: defaultColumnsNumber, pickRelevantMediaFiles, default */
5145  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5146  
5147  "use strict";
5148  __webpack_require__.r(__webpack_exports__);
5149  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultColumnsNumber", function() { return defaultColumnsNumber; });
5150  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickRelevantMediaFiles", function() { return pickRelevantMediaFiles; });
5151  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
5152  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
5153  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
5154  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
5155  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
5156  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
5157  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
5158  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
5159  /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
5160  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5161  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__);
5162  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash */ "lodash");
5163  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
5164  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5165  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__);
5166  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
5167  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__);
5168  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
5169  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__);
5170  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
5171  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_14__);
5172  /* harmony import */ var _gallery_image__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./gallery-image */ "./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js");
5173  
5174  
5175  
5176  
5177  
5178  
5179  
5180  
5181  
5182  
5183  
5184  /**
5185   * External Dependencies
5186   */
5187  
5188  /**
5189   * WordPress dependencies
5190   */
5191  
5192  
5193  
5194  
5195  
5196  
5197  /**
5198   * Internal dependencies
5199   */
5200  
5201  
5202  var MAX_COLUMNS = 8;
5203  var linkOptions = [{
5204    value: 'attachment',
5205    label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Attachment Page')
5206  }, {
5207    value: 'media',
5208    label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Media File')
5209  }, {
5210    value: 'none',
5211    label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('None')
5212  }];
5213  var ALLOWED_MEDIA_TYPES = ['image'];
5214  function defaultColumnsNumber(attributes) {
5215    return Math.min(3, attributes.images.length);
5216  }
5217  var pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
5218    var caption = image.caption;
5219  
5220    if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["default"])(caption) !== 'object') {
5221      caption = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_14__["create"])({
5222        html: caption
5223      });
5224    }
5225  
5226    return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_10__["pick"])(image, ['alt', 'id', 'link', 'url']), {
5227      caption: caption
5228    });
5229  };
5230  
5231  var GalleryEdit =
5232  /*#__PURE__*/
5233  function (_Component) {
5234    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(GalleryEdit, _Component);
5235  
5236    function GalleryEdit() {
5237      var _this;
5238  
5239      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, GalleryEdit);
5240  
5241      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(GalleryEdit).apply(this, arguments));
5242      _this.onSelectImage = _this.onSelectImage.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5243      _this.onSelectImages = _this.onSelectImages.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5244      _this.setLinkTo = _this.setLinkTo.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5245      _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5246      _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5247      _this.onRemoveImage = _this.onRemoveImage.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5248      _this.setImageAttributes = _this.setImageAttributes.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5249      _this.addFiles = _this.addFiles.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5250      _this.uploadFromFiles = _this.uploadFromFiles.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
5251      _this.state = {
5252        selectedImage: null
5253      };
5254      return _this;
5255    }
5256  
5257    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(GalleryEdit, [{
5258      key: "onSelectImage",
5259      value: function onSelectImage(index) {
5260        var _this2 = this;
5261  
5262        return function () {
5263          if (_this2.state.selectedImage !== index) {
5264            _this2.setState({
5265              selectedImage: index
5266            });
5267          }
5268        };
5269      }
5270    }, {
5271      key: "onRemoveImage",
5272      value: function onRemoveImage(index) {
5273        var _this3 = this;
5274  
5275        return function () {
5276          var images = Object(lodash__WEBPACK_IMPORTED_MODULE_10__["filter"])(_this3.props.attributes.images, function (img, i) {
5277            return index !== i;
5278          });
5279          var columns = _this3.props.attributes.columns;
5280  
5281          _this3.setState({
5282            selectedImage: null
5283          });
5284  
5285          _this3.props.setAttributes({
5286            images: images,
5287            columns: columns ? Math.min(images.length, columns) : columns
5288          });
5289        };
5290      }
5291    }, {
5292      key: "onSelectImages",
5293      value: function onSelectImages(images) {
5294        this.props.setAttributes({
5295          images: images.map(function (image) {
5296            return pickRelevantMediaFiles(image);
5297          })
5298        });
5299      }
5300    }, {
5301      key: "setLinkTo",
5302      value: function setLinkTo(value) {
5303        this.props.setAttributes({
5304          linkTo: value
5305        });
5306      }
5307    }, {
5308      key: "setColumnsNumber",
5309      value: function setColumnsNumber(value) {
5310        this.props.setAttributes({
5311          columns: value
5312        });
5313      }
5314    }, {
5315      key: "toggleImageCrop",
5316      value: function toggleImageCrop() {
5317        this.props.setAttributes({
5318          imageCrop: !this.props.attributes.imageCrop
5319        });
5320      }
5321    }, {
5322      key: "getImageCropHelp",
5323      value: function getImageCropHelp(checked) {
5324        return checked ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Thumbnails are cropped to align.') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Thumbnails are not cropped.');
5325      }
5326    }, {
5327      key: "setImageAttributes",
5328      value: function setImageAttributes(index, attributes) {
5329        var _this$props = this.props,
5330            images = _this$props.attributes.images,
5331            setAttributes = _this$props.setAttributes;
5332  
5333        if (!images[index]) {
5334          return;
5335        }
5336  
5337        setAttributes({
5338          images: Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(images.slice(0, index)).concat([Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, images[index], attributes)], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(images.slice(index + 1)))
5339        });
5340      }
5341    }, {
5342      key: "uploadFromFiles",
5343      value: function uploadFromFiles(event) {
5344        this.addFiles(event.target.files);
5345      }
5346    }, {
5347      key: "addFiles",
5348      value: function addFiles(files) {
5349        var currentImages = this.props.attributes.images || [];
5350        var _this$props2 = this.props,
5351            noticeOperations = _this$props2.noticeOperations,
5352            setAttributes = _this$props2.setAttributes;
5353        Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["mediaUpload"])({
5354          allowedTypes: ALLOWED_MEDIA_TYPES,
5355          filesList: files,
5356          onFileChange: function onFileChange(images) {
5357            var imagesNormalized = images.map(function (image) {
5358              return pickRelevantMediaFiles(image);
5359            });
5360            setAttributes({
5361              images: currentImages.concat(imagesNormalized)
5362            });
5363          },
5364          onError: noticeOperations.createErrorNotice
5365        });
5366      }
5367    }, {
5368      key: "componentDidUpdate",
5369      value: function componentDidUpdate(prevProps) {
5370        // Deselect images when deselecting the block
5371        if (!this.props.isSelected && prevProps.isSelected) {
5372          this.setState({
5373            selectedImage: null,
5374            captionSelected: false
5375          });
5376        }
5377      }
5378    }, {
5379      key: "render",
5380      value: function render() {
5381        var _this4 = this;
5382  
5383        var _this$props3 = this.props,
5384            attributes = _this$props3.attributes,
5385            isSelected = _this$props3.isSelected,
5386            className = _this$props3.className,
5387            noticeOperations = _this$props3.noticeOperations,
5388            noticeUI = _this$props3.noticeUI;
5389        var images = attributes.images,
5390            _attributes$columns = attributes.columns,
5391            columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
5392            align = attributes.align,
5393            imageCrop = attributes.imageCrop,
5394            linkTo = attributes.linkTo;
5395        var dropZone = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["DropZone"], {
5396          onFilesDrop: this.addFiles
5397        });
5398        var controls = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["BlockControls"], null, !!images.length && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["MediaUpload"], {
5399          onSelect: this.onSelectImages,
5400          allowedTypes: ALLOWED_MEDIA_TYPES,
5401          multiple: true,
5402          gallery: true,
5403          value: images.map(function (img) {
5404            return img.id;
5405          }),
5406          render: function render(_ref) {
5407            var open = _ref.open;
5408            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["IconButton"], {
5409              className: "components-toolbar__control",
5410              label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Edit Gallery'),
5411              icon: "edit",
5412              onClick: open
5413            });
5414          }
5415        })));
5416  
5417        if (images.length === 0) {
5418          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, controls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["MediaPlaceholder"], {
5419            icon: "format-gallery",
5420            className: className,
5421            labels: {
5422              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Gallery'),
5423              name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('images')
5424            },
5425            onSelect: this.onSelectImages,
5426            accept: "image/*",
5427            allowedTypes: ALLOWED_MEDIA_TYPES,
5428            multiple: true,
5429            notices: noticeUI,
5430            onError: noticeOperations.createErrorNotice
5431          }));
5432        }
5433  
5434        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, controls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["PanelBody"], {
5435          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Gallery Settings')
5436        }, images.length > 1 && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["RangeControl"], {
5437          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Columns'),
5438          value: columns,
5439          onChange: this.setColumnsNumber,
5440          min: 1,
5441          max: Math.min(MAX_COLUMNS, images.length)
5442        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["ToggleControl"], {
5443          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Crop Images'),
5444          checked: !!imageCrop,
5445          onChange: this.toggleImageCrop,
5446          help: this.getImageCropHelp
5447        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["SelectControl"], {
5448          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Link To'),
5449          value: linkTo,
5450          onChange: this.setLinkTo,
5451          options: linkOptions
5452        }))), noticeUI, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("ul", {
5453          className: "".concat(className, " align").concat(align, " columns-").concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
5454        }, dropZone, images.map(function (img, index) {
5455          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("li", {
5456            className: "blocks-gallery-item",
5457            key: img.id || img.url
5458          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_gallery_image__WEBPACK_IMPORTED_MODULE_15__["default"], {
5459            url: img.url,
5460            alt: img.alt,
5461            id: img.id,
5462            isSelected: isSelected && _this4.state.selectedImage === index,
5463            onRemove: _this4.onRemoveImage(index),
5464            onSelect: _this4.onSelectImage(index),
5465            setAttributes: function setAttributes(attrs) {
5466              return _this4.setImageAttributes(index, attrs);
5467            },
5468            caption: img.caption
5469          }));
5470        }), isSelected && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("li", {
5471          className: "blocks-gallery-item has-add-item-button"
5472        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["FormFileUpload"], {
5473          multiple: true,
5474          isLarge: true,
5475          className: "block-library-gallery-add-item-button",
5476          onChange: this.uploadFromFiles,
5477          accept: "image/*",
5478          icon: "insert"
5479        }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Upload an image')))));
5480      }
5481    }]);
5482  
5483    return GalleryEdit;
5484  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Component"]);
5485  
5486  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["withNotices"])(GalleryEdit));
5487  
5488  
5489  /***/ }),
5490  
5491  /***/ "./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js":
5492  /*!*************************************************************************************!*\
5493    !*** ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js ***!
5494    \*************************************************************************************/
5495  /*! exports provided: default */
5496  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5497  
5498  "use strict";
5499  __webpack_require__.r(__webpack_exports__);
5500  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
5501  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
5502  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
5503  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
5504  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
5505  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
5506  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5507  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
5508  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5509  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
5510  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
5511  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
5512  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5513  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
5514  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
5515  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__);
5516  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
5517  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__);
5518  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
5519  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__);
5520  
5521  
5522  
5523  
5524  
5525  
5526  
5527  
5528  /**
5529   * External Dependencies
5530   */
5531  
5532  /**
5533   * WordPress Dependencies
5534   */
5535  
5536  
5537  
5538  
5539  
5540  
5541  
5542  
5543  var GalleryImage =
5544  /*#__PURE__*/
5545  function (_Component) {
5546    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(GalleryImage, _Component);
5547  
5548    function GalleryImage() {
5549      var _this;
5550  
5551      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, GalleryImage);
5552  
5553      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(GalleryImage).apply(this, arguments));
5554      _this.onImageClick = _this.onImageClick.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
5555      _this.onSelectCaption = _this.onSelectCaption.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
5556      _this.onKeyDown = _this.onKeyDown.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
5557      _this.bindContainer = _this.bindContainer.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
5558      _this.state = {
5559        captionSelected: false
5560      };
5561      return _this;
5562    }
5563  
5564    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(GalleryImage, [{
5565      key: "bindContainer",
5566      value: function bindContainer(ref) {
5567        this.container = ref;
5568      }
5569    }, {
5570      key: "onSelectCaption",
5571      value: function onSelectCaption() {
5572        if (!this.state.captionSelected) {
5573          this.setState({
5574            captionSelected: true
5575          });
5576        }
5577  
5578        if (!this.props.isSelected) {
5579          this.props.onSelect();
5580        }
5581      }
5582    }, {
5583      key: "onImageClick",
5584      value: function onImageClick() {
5585        if (!this.props.isSelected) {
5586          this.props.onSelect();
5587        }
5588  
5589        if (this.state.captionSelected) {
5590          this.setState({
5591            captionSelected: false
5592          });
5593        }
5594      }
5595    }, {
5596      key: "onKeyDown",
5597      value: function onKeyDown(event) {
5598        if (this.container === document.activeElement && this.props.isSelected && [_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["BACKSPACE"], _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["DELETE"]].indexOf(event.keyCode) !== -1) {
5599          event.stopPropagation();
5600          event.preventDefault();
5601          this.props.onRemove();
5602        }
5603      }
5604    }, {
5605      key: "componentDidUpdate",
5606      value: function componentDidUpdate(prevProps) {
5607        var _this$props = this.props,
5608            isSelected = _this$props.isSelected,
5609            image = _this$props.image,
5610            url = _this$props.url;
5611  
5612        if (image && !url) {
5613          this.props.setAttributes({
5614            url: image.source_url,
5615            alt: image.alt_text
5616          });
5617        } // unselect the caption so when the user selects other image and comeback
5618        // the caption is not immediately selected
5619  
5620  
5621        if (this.state.captionSelected && !isSelected && prevProps.isSelected) {
5622          this.setState({
5623            captionSelected: false
5624          });
5625        }
5626      }
5627    }, {
5628      key: "render",
5629      value: function render() {
5630        var _this$props2 = this.props,
5631            url = _this$props2.url,
5632            alt = _this$props2.alt,
5633            id = _this$props2.id,
5634            linkTo = _this$props2.linkTo,
5635            link = _this$props2.link,
5636            isSelected = _this$props2.isSelected,
5637            caption = _this$props2.caption,
5638            onRemove = _this$props2.onRemove,
5639            setAttributes = _this$props2.setAttributes;
5640        var href;
5641  
5642        switch (linkTo) {
5643          case 'media':
5644            href = url;
5645            break;
5646  
5647          case 'attachment':
5648            href = link;
5649            break;
5650        } // Disable reason: Image itself is not meant to be
5651        // interactive, but should direct image selection and unfocus caption fields
5652        // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events
5653  
5654  
5655        var img = url ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("img", {
5656          src: url,
5657          alt: alt,
5658          "data-id": id,
5659          onClick: this.onImageClick
5660        }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["Spinner"], null);
5661        var className = classnames__WEBPACK_IMPORTED_MODULE_7___default()({
5662          'is-selected': isSelected,
5663          'is-transient': url && 0 === url.indexOf('blob:')
5664        }); // Disable reason: Each block can be selected by clicking on it and we should keep the same saved markup
5665  
5666        /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
5667  
5668        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("figure", {
5669          className: className,
5670          tabIndex: "-1",
5671          onKeyDown: this.onKeyDown,
5672          ref: this.bindContainer
5673        }, isSelected && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
5674          className: "block-library-gallery-item__inline-menu"
5675        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["IconButton"], {
5676          icon: "no-alt",
5677          onClick: onRemove,
5678          className: "blocks-gallery-item__remove",
5679          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Remove Image')
5680        })), href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", {
5681          href: href
5682        }, img) : img, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"].isEmpty(caption) || isSelected ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"], {
5683          tagName: "figcaption",
5684          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Write caption…'),
5685          value: caption,
5686          isSelected: this.state.captionSelected,
5687          onChange: function onChange(newCaption) {
5688            return setAttributes({
5689              caption: newCaption
5690            });
5691          },
5692          unstableOnFocus: this.onSelectCaption,
5693          inlineToolbar: true
5694        }) : null);
5695        /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
5696      }
5697    }]);
5698  
5699    return GalleryImage;
5700  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
5701  
5702  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withSelect"])(function (select, ownProps) {
5703    var _select = select('core'),
5704        getMedia = _select.getMedia;
5705  
5706    var id = ownProps.id;
5707    return {
5708      image: id ? getMedia(id) : null
5709    };
5710  })(GalleryImage));
5711  
5712  
5713  /***/ }),
5714  
5715  /***/ "./node_modules/@wordpress/block-library/build-module/gallery/index.js":
5716  /*!*****************************************************************************!*\
5717    !*** ./node_modules/@wordpress/block-library/build-module/gallery/index.js ***!
5718    \*****************************************************************************/
5719  /*! exports provided: name, settings */
5720  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5721  
5722  "use strict";
5723  __webpack_require__.r(__webpack_exports__);
5724  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
5725  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
5726  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
5727  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5728  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
5729  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash");
5730  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
5731  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5732  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
5733  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
5734  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
5735  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
5736  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__);
5737  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
5738  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_6__);
5739  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/gallery/edit.js");
5740  
5741  
5742  
5743  /**
5744   * External dependencies
5745   */
5746  
5747  /**
5748   * WordPress dependencies
5749   */
5750  
5751  
5752  
5753  
5754  
5755  /**
5756   * Internal dependencies
5757   */
5758  
5759  
5760  var blockAttributes = {
5761    images: {
5762      type: 'array',
5763      default: [],
5764      source: 'query',
5765      selector: 'ul.wp-block-gallery .blocks-gallery-item',
5766      query: {
5767        url: {
5768          source: 'attribute',
5769          selector: 'img',
5770          attribute: 'src'
5771        },
5772        link: {
5773          source: 'attribute',
5774          selector: 'img',
5775          attribute: 'data-link'
5776        },
5777        alt: {
5778          source: 'attribute',
5779          selector: 'img',
5780          attribute: 'alt',
5781          default: ''
5782        },
5783        id: {
5784          source: 'attribute',
5785          selector: 'img',
5786          attribute: 'data-id'
5787        },
5788        caption: {
5789          source: 'html',
5790          selector: 'figcaption'
5791        }
5792      }
5793    },
5794    columns: {
5795      type: 'number'
5796    },
5797    imageCrop: {
5798      type: 'boolean',
5799      default: true
5800    },
5801    linkTo: {
5802      type: 'string',
5803      default: 'none'
5804    }
5805  };
5806  var name = 'core/gallery';
5807  var settings = {
5808    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Gallery'),
5809    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Display multiple images in an elegantly organized tiled layout.'),
5810    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("svg", {
5811      viewBox: "0 0 24 24",
5812      xmlns: "http://www.w3.org/2000/svg"
5813    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("path", {
5814      fill: "none",
5815      d: "M0 0h24v24H0V0z"
5816    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("path", {
5817      d: "M20 4v12H8V4h12m0-2H8L6 4v12l2 2h12l2-2V4l-2-2z"
5818    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("path", {
5819      d: "M12 12l1 2 3-3 3 4H9z"
5820    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("path", {
5821      d: "M2 6v14l2 2h14v-2H4V6H2z"
5822    }))),
5823    category: 'common',
5824    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('images'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('photos')],
5825    attributes: blockAttributes,
5826    supports: {
5827      align: true
5828    },
5829    transforms: {
5830      from: [{
5831        type: 'block',
5832        isMultiBlock: true,
5833        blocks: ['core/image'],
5834        transform: function transform(attributes) {
5835          var validImages = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["filter"])(attributes, function (_ref) {
5836            var id = _ref.id,
5837                url = _ref.url;
5838            return id && url;
5839          });
5840  
5841          if (validImages.length > 0) {
5842            return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/gallery', {
5843              images: validImages.map(function (_ref2) {
5844                var id = _ref2.id,
5845                    url = _ref2.url,
5846                    alt = _ref2.alt,
5847                    caption = _ref2.caption;
5848                return {
5849                  id: id,
5850                  url: url,
5851                  alt: alt,
5852                  caption: caption
5853                };
5854              })
5855            });
5856          }
5857  
5858          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/gallery');
5859        }
5860      }, {
5861        type: 'shortcode',
5862        tag: 'gallery',
5863        attributes: {
5864          images: {
5865            type: 'array',
5866            shortcode: function shortcode(_ref3) {
5867              var ids = _ref3.named.ids;
5868  
5869              if (!ids) {
5870                return [];
5871              }
5872  
5873              return ids.split(',').map(function (id) {
5874                return {
5875                  id: parseInt(id, 10)
5876                };
5877              });
5878            }
5879          },
5880          columns: {
5881            type: 'number',
5882            shortcode: function shortcode(_ref4) {
5883              var _ref4$named$columns = _ref4.named.columns,
5884                  columns = _ref4$named$columns === void 0 ? '3' : _ref4$named$columns;
5885              return parseInt(columns, 10);
5886            }
5887          },
5888          linkTo: {
5889            type: 'string',
5890            shortcode: function shortcode(_ref5) {
5891              var _ref5$named$link = _ref5.named.link,
5892                  link = _ref5$named$link === void 0 ? 'attachment' : _ref5$named$link;
5893              return link === 'file' ? 'media' : link;
5894            }
5895          }
5896        }
5897      }, {
5898        // When created by drag and dropping multiple files on an insertion point
5899        type: 'files',
5900        isMatch: function isMatch(files) {
5901          return files.length !== 1 && Object(lodash__WEBPACK_IMPORTED_MODULE_2__["every"])(files, function (file) {
5902            return file.type.indexOf('image/') === 0;
5903          });
5904        },
5905        transform: function transform(files, onChange) {
5906          var block = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/gallery', {
5907            images: files.map(function (file) {
5908              return Object(_edit__WEBPACK_IMPORTED_MODULE_7__["pickRelevantMediaFiles"])({
5909                url: Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_6__["createBlobURL"])(file)
5910              });
5911            })
5912          });
5913          Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["mediaUpload"])({
5914            filesList: files,
5915            onFileChange: function onFileChange(images) {
5916              onChange(block.clientId, {
5917                images: images.map(function (image) {
5918                  return Object(_edit__WEBPACK_IMPORTED_MODULE_7__["pickRelevantMediaFiles"])(image);
5919                })
5920              });
5921            },
5922            allowedTypes: ['image']
5923          });
5924          return block;
5925        }
5926      }],
5927      to: [{
5928        type: 'block',
5929        blocks: ['core/image'],
5930        transform: function transform(_ref6) {
5931          var images = _ref6.images;
5932  
5933          if (images.length > 0) {
5934            return images.map(function (_ref7) {
5935              var id = _ref7.id,
5936                  url = _ref7.url,
5937                  alt = _ref7.alt,
5938                  caption = _ref7.caption;
5939              return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/image', {
5940                id: id,
5941                url: url,
5942                alt: alt,
5943                caption: caption
5944              });
5945            });
5946          }
5947  
5948          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/image');
5949        }
5950      }]
5951    },
5952    edit: _edit__WEBPACK_IMPORTED_MODULE_7__["default"],
5953    save: function save(_ref8) {
5954      var attributes = _ref8.attributes;
5955      var images = attributes.images,
5956          _attributes$columns = attributes.columns,
5957          columns = _attributes$columns === void 0 ? Object(_edit__WEBPACK_IMPORTED_MODULE_7__["defaultColumnsNumber"])(attributes) : _attributes$columns,
5958          imageCrop = attributes.imageCrop,
5959          linkTo = attributes.linkTo;
5960      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("ul", {
5961        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
5962      }, images.map(function (image) {
5963        var href;
5964  
5965        switch (linkTo) {
5966          case 'media':
5967            href = image.url;
5968            break;
5969  
5970          case 'attachment':
5971            href = image.link;
5972            break;
5973        }
5974  
5975        var img = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("img", {
5976          src: image.url,
5977          alt: image.alt,
5978          "data-id": image.id,
5979          "data-link": image.link,
5980          className: image.id ? "wp-image-".concat(image.id) : null
5981        });
5982        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("li", {
5983          key: image.id || image.url,
5984          className: "blocks-gallery-item"
5985        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("figure", null, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("a", {
5986          href: href
5987        }, img) : img, image.caption && image.caption.length > 0 && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["RichText"].Content, {
5988          tagName: "figcaption",
5989          value: image.caption
5990        })));
5991      }));
5992    },
5993    deprecated: [{
5994      attributes: blockAttributes,
5995      save: function save(_ref9) {
5996        var attributes = _ref9.attributes;
5997        var images = attributes.images,
5998            _attributes$columns2 = attributes.columns,
5999            columns = _attributes$columns2 === void 0 ? Object(_edit__WEBPACK_IMPORTED_MODULE_7__["defaultColumnsNumber"])(attributes) : _attributes$columns2,
6000            imageCrop = attributes.imageCrop,
6001            linkTo = attributes.linkTo;
6002        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("ul", {
6003          className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
6004        }, images.map(function (image) {
6005          var href;
6006  
6007          switch (linkTo) {
6008            case 'media':
6009              href = image.url;
6010              break;
6011  
6012            case 'attachment':
6013              href = image.link;
6014              break;
6015          }
6016  
6017          var img = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("img", {
6018            src: image.url,
6019            alt: image.alt,
6020            "data-id": image.id,
6021            "data-link": image.link
6022          });
6023          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("li", {
6024            key: image.id || image.url,
6025            className: "blocks-gallery-item"
6026          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("figure", null, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("a", {
6027            href: href
6028          }, img) : img, image.caption && image.caption.length > 0 && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["RichText"].Content, {
6029            tagName: "figcaption",
6030            value: image.caption
6031          })));
6032        }));
6033      }
6034    }, {
6035      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockAttributes, {
6036        images: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockAttributes.images, {
6037          selector: 'div.wp-block-gallery figure.blocks-gallery-image img'
6038        }),
6039        align: {
6040          type: 'string',
6041          default: 'none'
6042        }
6043      }),
6044      save: function save(_ref10) {
6045        var attributes = _ref10.attributes;
6046        var images = attributes.images,
6047            _attributes$columns3 = attributes.columns,
6048            columns = _attributes$columns3 === void 0 ? Object(_edit__WEBPACK_IMPORTED_MODULE_7__["defaultColumnsNumber"])(attributes) : _attributes$columns3,
6049            align = attributes.align,
6050            imageCrop = attributes.imageCrop,
6051            linkTo = attributes.linkTo;
6052        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
6053          className: "align".concat(align, " columns-").concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
6054        }, images.map(function (image) {
6055          var href;
6056  
6057          switch (linkTo) {
6058            case 'media':
6059              href = image.url;
6060              break;
6061  
6062            case 'attachment':
6063              href = image.link;
6064              break;
6065          }
6066  
6067          var img = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("img", {
6068            src: image.url,
6069            alt: image.alt,
6070            "data-id": image.id
6071          });
6072          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("figure", {
6073            key: image.id || image.url,
6074            className: "blocks-gallery-image"
6075          }, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("a", {
6076            href: href
6077          }, img) : img);
6078        }));
6079      }
6080    }]
6081  };
6082  
6083  
6084  /***/ }),
6085  
6086  /***/ "./node_modules/@wordpress/block-library/build-module/heading/edit.js":
6087  /*!****************************************************************************!*\
6088    !*** ./node_modules/@wordpress/block-library/build-module/heading/edit.js ***!
6089    \****************************************************************************/
6090  /*! exports provided: default */
6091  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6092  
6093  "use strict";
6094  __webpack_require__.r(__webpack_exports__);
6095  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HeadingEdit; });
6096  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6097  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6098  /* harmony import */ var _heading_toolbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./heading-toolbar */ "./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js");
6099  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6100  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
6101  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
6102  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
6103  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
6104  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
6105  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
6106  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__);
6107  
6108  
6109  /**
6110   * Internal dependencies
6111   */
6112  
6113  /**
6114   * WordPress dependencies
6115   */
6116  
6117  
6118  
6119  
6120  
6121  
6122  function HeadingEdit(_ref) {
6123    var attributes = _ref.attributes,
6124        setAttributes = _ref.setAttributes,
6125        mergeBlocks = _ref.mergeBlocks,
6126        insertBlocksAfter = _ref.insertBlocksAfter,
6127        onReplace = _ref.onReplace,
6128        className = _ref.className;
6129    var align = attributes.align,
6130        content = attributes.content,
6131        level = attributes.level,
6132        placeholder = attributes.placeholder;
6133    var tagName = 'h' + level;
6134    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_heading_toolbar__WEBPACK_IMPORTED_MODULE_1__["default"], {
6135      minLevel: 2,
6136      maxLevel: 5,
6137      selectedLevel: level,
6138      onChange: function onChange(newLevel) {
6139        return setAttributes({
6140          level: newLevel
6141        });
6142      }
6143    })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["PanelBody"], {
6144      title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Heading Settings')
6145    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Level')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_heading_toolbar__WEBPACK_IMPORTED_MODULE_1__["default"], {
6146      minLevel: 1,
6147      maxLevel: 7,
6148      selectedLevel: level,
6149      onChange: function onChange(newLevel) {
6150        return setAttributes({
6151          level: newLevel
6152        });
6153      }
6154    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Text Alignment')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["AlignmentToolbar"], {
6155      value: align,
6156      onChange: function onChange(nextAlign) {
6157        setAttributes({
6158          align: nextAlign
6159        });
6160      }
6161    }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["RichText"], {
6162      wrapperClassName: "wp-block-heading",
6163      tagName: tagName,
6164      value: content,
6165      onChange: function onChange(value) {
6166        return setAttributes({
6167          content: value
6168        });
6169      },
6170      onMerge: mergeBlocks,
6171      onSplit: insertBlocksAfter ? function (before, after) {
6172        setAttributes({
6173          content: before
6174        });
6175  
6176        for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
6177          blocks[_key - 2] = arguments[_key];
6178        }
6179  
6180        insertBlocksAfter(blocks.concat([Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["createBlock"])('core/paragraph', {
6181          content: after
6182        })]));
6183      } : undefined,
6184      onRemove: function onRemove() {
6185        return onReplace([]);
6186      },
6187      style: {
6188        textAlign: align
6189      },
6190      className: className,
6191      placeholder: placeholder || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Write heading…')
6192    }));
6193  }
6194  
6195  
6196  /***/ }),
6197  
6198  /***/ "./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js":
6199  /*!***************************************************************************************!*\
6200    !*** ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js ***!
6201    \***************************************************************************************/
6202  /*! exports provided: default */
6203  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6204  
6205  "use strict";
6206  __webpack_require__.r(__webpack_exports__);
6207  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
6208  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
6209  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
6210  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
6211  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
6212  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6213  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
6214  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ "lodash");
6215  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
6216  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6217  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);
6218  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
6219  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
6220  
6221  
6222  
6223  
6224  
6225  
6226  
6227  /**
6228   * External dependencies
6229   */
6230  
6231  /**
6232   * WordPress dependencies
6233   */
6234  
6235  
6236  
6237  
6238  
6239  var HeadingToolbar =
6240  /*#__PURE__*/
6241  function (_Component) {
6242    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(HeadingToolbar, _Component);
6243  
6244    function HeadingToolbar() {
6245      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, HeadingToolbar);
6246  
6247      return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(HeadingToolbar).apply(this, arguments));
6248    }
6249  
6250    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(HeadingToolbar, [{
6251      key: "createLevelControl",
6252      value: function createLevelControl(targetLevel, selectedLevel, onChange) {
6253        return {
6254          icon: 'heading',
6255          // translators: %s: heading level e.g: "1", "2", "3"
6256          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["__"])('Heading %d'), targetLevel),
6257          isActive: targetLevel === selectedLevel,
6258          onClick: function onClick() {
6259            return onChange(targetLevel);
6260          },
6261          subscript: String(targetLevel)
6262        };
6263      }
6264    }, {
6265      key: "render",
6266      value: function render() {
6267        var _this = this;
6268  
6269        var _this$props = this.props,
6270            minLevel = _this$props.minLevel,
6271            maxLevel = _this$props.maxLevel,
6272            selectedLevel = _this$props.selectedLevel,
6273            onChange = _this$props.onChange;
6274        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["Toolbar"], {
6275          controls: Object(lodash__WEBPACK_IMPORTED_MODULE_6__["range"])(minLevel, maxLevel).map(function (index) {
6276            return _this.createLevelControl(index, selectedLevel, onChange);
6277          })
6278        });
6279      }
6280    }]);
6281  
6282    return HeadingToolbar;
6283  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]);
6284  
6285  /* harmony default export */ __webpack_exports__["default"] = (HeadingToolbar);
6286  
6287  
6288  /***/ }),
6289  
6290  /***/ "./node_modules/@wordpress/block-library/build-module/heading/index.js":
6291  /*!*****************************************************************************!*\
6292    !*** ./node_modules/@wordpress/block-library/build-module/heading/index.js ***!
6293    \*****************************************************************************/
6294  /*! exports provided: getLevelFromHeadingNodeName, name, settings */
6295  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6296  
6297  "use strict";
6298  __webpack_require__.r(__webpack_exports__);
6299  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLevelFromHeadingNodeName", function() { return getLevelFromHeadingNodeName; });
6300  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
6301  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
6302  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
6303  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
6304  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6305  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
6306  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "lodash");
6307  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
6308  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6309  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
6310  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
6311  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__);
6312  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
6313  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
6314  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/heading/edit.js");
6315  
6316  
6317  
6318  
6319  /**
6320   * External dependencies
6321   */
6322  
6323  /**
6324   * WordPress dependencies
6325   */
6326  
6327  
6328  
6329  
6330  /**
6331   * Internal dependencies
6332   */
6333  
6334  
6335  /**
6336   * Given a node name string for a heading node, returns its numeric level.
6337   *
6338   * @param {string} nodeName Heading node name.
6339   *
6340   * @return {number} Heading level.
6341   */
6342  
6343  function getLevelFromHeadingNodeName(nodeName) {
6344    return Number(nodeName.substr(1));
6345  }
6346  var supports = {
6347    className: false,
6348    anchor: true
6349  };
6350  var schema = {
6351    content: {
6352      source: 'html',
6353      selector: 'h1,h2,h3,h4,h5,h6'
6354    },
6355    level: {
6356      type: 'number',
6357      default: 2
6358    },
6359    align: {
6360      type: 'string'
6361    },
6362    placeholder: {
6363      type: 'string'
6364    }
6365  };
6366  var name = 'core/heading';
6367  var settings = {
6368    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Heading'),
6369    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Introduce topics and help visitors (and search engines!) understand how your content is organized.'),
6370    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("svg", {
6371      xmlns: "http://www.w3.org/2000/svg",
6372      viewBox: "0 0 24 24"
6373    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
6374      d: "M5 4v3h5.5v12h3V7H19V4z"
6375    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
6376      fill: "none",
6377      d: "M0 0h24v24H0V0z"
6378    })),
6379    category: 'common',
6380    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('title'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('subtitle')],
6381    supports: supports,
6382    attributes: schema,
6383    transforms: {
6384      from: [{
6385        type: 'block',
6386        blocks: ['core/paragraph'],
6387        transform: function transform(_ref) {
6388          var content = _ref.content;
6389          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/heading', {
6390            content: content
6391          });
6392        }
6393      }, {
6394        type: 'raw',
6395        selector: 'h1,h2,h3,h4,h5,h6',
6396        schema: {
6397          h1: {
6398            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
6399          },
6400          h2: {
6401            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
6402          },
6403          h3: {
6404            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
6405          },
6406          h4: {
6407            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
6408          },
6409          h5: {
6410            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
6411          },
6412          h6: {
6413            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
6414          }
6415        },
6416        transform: function transform(node) {
6417          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/heading', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getBlockAttributes"])(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getBlockType"])('core/heading'), node.outerHTML), {
6418            level: getLevelFromHeadingNodeName(node.nodeName)
6419          }));
6420        }
6421      }, {
6422        type: 'pattern',
6423        regExp: /^(#{2,6})\s/,
6424        transform: function transform(_ref2) {
6425          var content = _ref2.content,
6426              match = _ref2.match;
6427          var level = match[1].length;
6428          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/heading', {
6429            level: level,
6430            content: content
6431          });
6432        }
6433      }],
6434      to: [{
6435        type: 'block',
6436        blocks: ['core/paragraph'],
6437        transform: function transform(_ref3) {
6438          var content = _ref3.content;
6439          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/paragraph', {
6440            content: content
6441          });
6442        }
6443      }]
6444    },
6445    deprecated: [{
6446      supports: supports,
6447      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_3__["omit"])(schema, ['level']), {
6448        nodeName: {
6449          type: 'string',
6450          source: 'property',
6451          selector: 'h1,h2,h3,h4,h5,h6',
6452          property: 'nodeName',
6453          default: 'H2'
6454        }
6455      }),
6456      migrate: function migrate(attributes) {
6457        var nodeName = attributes.nodeName,
6458            migratedAttributes = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(attributes, ["nodeName"]);
6459  
6460        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, migratedAttributes, {
6461          level: getLevelFromHeadingNodeName(nodeName)
6462        });
6463      },
6464      save: function save(_ref4) {
6465        var attributes = _ref4.attributes;
6466        var align = attributes.align,
6467            nodeName = attributes.nodeName,
6468            content = attributes.content;
6469        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
6470          tagName: nodeName.toLowerCase(),
6471          style: {
6472            textAlign: align
6473          },
6474          value: content
6475        });
6476      }
6477    }],
6478    merge: function merge(attributes, attributesToMerge) {
6479      return {
6480        content: attributes.content + attributesToMerge.content
6481      };
6482    },
6483    edit: _edit__WEBPACK_IMPORTED_MODULE_7__["default"],
6484    save: function save(_ref5) {
6485      var attributes = _ref5.attributes;
6486      var align = attributes.align,
6487          level = attributes.level,
6488          content = attributes.content;
6489      var tagName = 'h' + level;
6490      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
6491        tagName: tagName,
6492        style: {
6493          textAlign: align
6494        },
6495        value: content
6496      });
6497    }
6498  };
6499  
6500  
6501  /***/ }),
6502  
6503  /***/ "./node_modules/@wordpress/block-library/build-module/html/index.js":
6504  /*!**************************************************************************!*\
6505    !*** ./node_modules/@wordpress/block-library/build-module/html/index.js ***!
6506    \**************************************************************************/
6507  /*! exports provided: name, settings */
6508  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6509  
6510  "use strict";
6511  __webpack_require__.r(__webpack_exports__);
6512  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
6513  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
6514  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6515  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6516  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6517  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
6518  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
6519  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
6520  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
6521  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
6522  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
6523  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__);
6524  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
6525  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__);
6526  
6527  
6528  /**
6529   * WordPress dependencies
6530   */
6531  
6532  
6533  
6534  
6535  
6536  
6537  var name = 'core/html';
6538  var settings = {
6539    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Custom HTML'),
6540    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add your own HTML (and view it right here as you edit!).'),
6541    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
6542      viewBox: "0 0 24 24",
6543      xmlns: "http://www.w3.org/2000/svg"
6544    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
6545      d: "M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9  l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"
6546    })),
6547    category: 'formatting',
6548    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('embed')],
6549    supports: {
6550      customClassName: false,
6551      className: false,
6552      html: false
6553    },
6554    attributes: {
6555      content: {
6556        type: 'string',
6557        source: 'html'
6558      }
6559    },
6560    transforms: {
6561      from: [{
6562        type: 'raw',
6563        isMatch: function isMatch(node) {
6564          return node.nodeName === 'FIGURE' && !!node.querySelector('iframe');
6565        },
6566        schema: {
6567          figure: {
6568            require: ['iframe'],
6569            children: {
6570              iframe: {
6571                attributes: ['src', 'allowfullscreen', 'height', 'width']
6572              },
6573              figcaption: {
6574                children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getPhrasingContentSchema"])()
6575              }
6576            }
6577          }
6578        }
6579      }]
6580    },
6581    edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["withState"])({
6582      isPreview: false
6583    })(function (_ref) {
6584      var attributes = _ref.attributes,
6585          setAttributes = _ref.setAttributes,
6586          setState = _ref.setState,
6587          isPreview = _ref.isPreview;
6588      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
6589        className: "wp-block-html"
6590      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
6591        className: "components-toolbar"
6592      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("button", {
6593        className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''),
6594        onClick: function onClick() {
6595          return setState({
6596            isPreview: false
6597          });
6598        }
6599      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", null, "HTML")), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("button", {
6600        className: "components-tab-button ".concat(isPreview ? 'is-active' : ''),
6601        onClick: function onClick() {
6602          return setState({
6603            isPreview: true
6604          });
6605        }
6606      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Preview'))))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["Disabled"].Consumer, null, function (isDisabled) {
6607        return isPreview || isDisabled ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SandBox"], {
6608          html: attributes.content
6609        }) : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["PlainText"], {
6610          value: attributes.content,
6611          onChange: function onChange(content) {
6612            return setAttributes({
6613              content: content
6614            });
6615          },
6616          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Write HTML…'),
6617          "aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('HTML')
6618        });
6619      }));
6620    }),
6621    save: function save(_ref2) {
6622      var attributes = _ref2.attributes;
6623      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, attributes.content);
6624    }
6625  };
6626  
6627  
6628  /***/ }),
6629  
6630  /***/ "./node_modules/@wordpress/block-library/build-module/image/edit.js":
6631  /*!**************************************************************************!*\
6632    !*** ./node_modules/@wordpress/block-library/build-module/image/edit.js ***!
6633    \**************************************************************************/
6634  /*! exports provided: pickRelevantMediaFiles, default */
6635  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6636  
6637  "use strict";
6638  __webpack_require__.r(__webpack_exports__);
6639  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickRelevantMediaFiles", function() { return pickRelevantMediaFiles; });
6640  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
6641  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
6642  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
6643  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
6644  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
6645  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
6646  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
6647  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
6648  /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
6649  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6650  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__);
6651  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
6652  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
6653  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash */ "lodash");
6654  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_11__);
6655  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6656  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__);
6657  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
6658  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_13__);
6659  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
6660  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__);
6661  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
6662  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_15__);
6663  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
6664  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__);
6665  /* harmony import */ var _wordpress_viewport__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @wordpress/viewport */ "@wordpress/viewport");
6666  /* harmony import */ var _wordpress_viewport__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_wordpress_viewport__WEBPACK_IMPORTED_MODULE_17__);
6667  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
6668  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_18__);
6669  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
6670  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_19__);
6671  /* harmony import */ var _image_size__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./image-size */ "./node_modules/@wordpress/block-library/build-module/image/image-size.js");
6672  
6673  
6674  
6675  
6676  
6677  
6678  
6679  
6680  
6681  
6682  
6683  /**
6684   * External dependencies
6685   */
6686  
6687  
6688  /**
6689   * WordPress dependencies
6690   */
6691  
6692  
6693  
6694  
6695  
6696  
6697  
6698  
6699  
6700  
6701  /**
6702   * Internal dependencies
6703   */
6704  
6705  
6706  /**
6707   * Module constants
6708   */
6709  
6710  var MIN_SIZE = 20;
6711  var LINK_DESTINATION_NONE = 'none';
6712  var LINK_DESTINATION_MEDIA = 'media';
6713  var LINK_DESTINATION_ATTACHMENT = 'attachment';
6714  var LINK_DESTINATION_CUSTOM = 'custom';
6715  var ALLOWED_MEDIA_TYPES = ['image'];
6716  var pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
6717    var caption = image.caption;
6718  
6719    if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["default"])(caption) !== 'object') {
6720      caption = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_19__["create"])({
6721        html: caption
6722      });
6723    }
6724  
6725    return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_11__["pick"])(image, ['alt', 'id', 'link', 'url']), {
6726      caption: caption
6727    });
6728  };
6729  
6730  var ImageEdit =
6731  /*#__PURE__*/
6732  function (_Component) {
6733    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(ImageEdit, _Component);
6734  
6735    function ImageEdit() {
6736      var _this;
6737  
6738      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ImageEdit);
6739  
6740      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(ImageEdit).apply(this, arguments));
6741      _this.updateAlt = _this.updateAlt.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6742      _this.updateAlignment = _this.updateAlignment.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6743      _this.onFocusCaption = _this.onFocusCaption.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6744      _this.onImageClick = _this.onImageClick.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6745      _this.onSelectImage = _this.onSelectImage.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6746      _this.updateImageURL = _this.updateImageURL.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6747      _this.updateWidth = _this.updateWidth.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6748      _this.updateHeight = _this.updateHeight.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6749      _this.updateDimensions = _this.updateDimensions.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6750      _this.onSetCustomHref = _this.onSetCustomHref.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6751      _this.onSetLinkDestination = _this.onSetLinkDestination.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
6752      _this.state = {
6753        captionFocused: false
6754      };
6755      return _this;
6756    }
6757  
6758    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ImageEdit, [{
6759      key: "componentDidMount",
6760      value: function componentDidMount() {
6761        var _this$props = this.props,
6762            attributes = _this$props.attributes,
6763            setAttributes = _this$props.setAttributes;
6764        var id = attributes.id,
6765            _attributes$url = attributes.url,
6766            url = _attributes$url === void 0 ? '' : _attributes$url;
6767  
6768        if (!id && url.indexOf('blob:') === 0) {
6769          var file = Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_13__["getBlobByURL"])(url);
6770  
6771          if (file) {
6772            Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["mediaUpload"])({
6773              filesList: [file],
6774              onFileChange: function onFileChange(_ref) {
6775                var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, 1),
6776                    image = _ref2[0];
6777  
6778                setAttributes(pickRelevantMediaFiles(image));
6779              },
6780              allowedTypes: ALLOWED_MEDIA_TYPES
6781            });
6782          }
6783        }
6784      }
6785    }, {
6786      key: "componentDidUpdate",
6787      value: function componentDidUpdate(prevProps) {
6788        var _prevProps$attributes = prevProps.attributes,
6789            prevID = _prevProps$attributes.id,
6790            _prevProps$attributes2 = _prevProps$attributes.url,
6791            prevUrl = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2;
6792        var _this$props$attribute = this.props.attributes,
6793            id = _this$props$attribute.id,
6794            _this$props$attribute2 = _this$props$attribute.url,
6795            url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2;
6796  
6797        if (!prevID && prevUrl.indexOf('blob:') === 0 && id && url.indexOf('blob:') === -1) {
6798          Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_13__["revokeBlobURL"])(url);
6799        }
6800  
6801        if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) {
6802          this.setState({
6803            captionFocused: false
6804          });
6805        }
6806      }
6807    }, {
6808      key: "onSelectImage",
6809      value: function onSelectImage(media) {
6810        if (!media || !media.url) {
6811          this.props.setAttributes({
6812            url: undefined,
6813            alt: undefined,
6814            id: undefined,
6815            caption: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_19__["create"])()
6816          });
6817          return;
6818        }
6819  
6820        this.props.setAttributes(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, pickRelevantMediaFiles(media), {
6821          width: undefined,
6822          height: undefined
6823        }));
6824      }
6825    }, {
6826      key: "onSetLinkDestination",
6827      value: function onSetLinkDestination(value) {
6828        var href;
6829  
6830        if (value === LINK_DESTINATION_NONE) {
6831          href = undefined;
6832        } else if (value === LINK_DESTINATION_MEDIA) {
6833          href = this.props.attributes.url;
6834        } else if (value === LINK_DESTINATION_ATTACHMENT) {
6835          href = this.props.image && this.props.image.link;
6836        } else {
6837          href = this.props.attributes.href;
6838        }
6839  
6840        this.props.setAttributes({
6841          linkDestination: value,
6842          href: href
6843        });
6844      }
6845    }, {
6846      key: "onSetCustomHref",
6847      value: function onSetCustomHref(value) {
6848        this.props.setAttributes({
6849          href: value
6850        });
6851      }
6852    }, {
6853      key: "onFocusCaption",
6854      value: function onFocusCaption() {
6855        if (!this.state.captionFocused) {
6856          this.setState({
6857            captionFocused: true
6858          });
6859        }
6860      }
6861    }, {
6862      key: "onImageClick",
6863      value: function onImageClick() {
6864        if (this.state.captionFocused) {
6865          this.setState({
6866            captionFocused: false
6867          });
6868        }
6869      }
6870    }, {
6871      key: "updateAlt",
6872      value: function updateAlt(newAlt) {
6873        this.props.setAttributes({
6874          alt: newAlt
6875        });
6876      }
6877    }, {
6878      key: "updateAlignment",
6879      value: function updateAlignment(nextAlign) {
6880        var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? {
6881          width: undefined,
6882          height: undefined
6883        } : {};
6884        this.props.setAttributes(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, extraUpdatedAttributes, {
6885          align: nextAlign
6886        }));
6887      }
6888    }, {
6889      key: "updateImageURL",
6890      value: function updateImageURL(url) {
6891        this.props.setAttributes({
6892          url: url,
6893          width: undefined,
6894          height: undefined
6895        });
6896      }
6897    }, {
6898      key: "updateWidth",
6899      value: function updateWidth(width) {
6900        this.props.setAttributes({
6901          width: parseInt(width, 10)
6902        });
6903      }
6904    }, {
6905      key: "updateHeight",
6906      value: function updateHeight(height) {
6907        this.props.setAttributes({
6908          height: parseInt(height, 10)
6909        });
6910      }
6911    }, {
6912      key: "updateDimensions",
6913      value: function updateDimensions() {
6914        var _this2 = this;
6915  
6916        var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
6917        var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
6918        return function () {
6919          _this2.props.setAttributes({
6920            width: width,
6921            height: height
6922          });
6923        };
6924      }
6925    }, {
6926      key: "getAvailableSizes",
6927      value: function getAvailableSizes() {
6928        return Object(lodash__WEBPACK_IMPORTED_MODULE_11__["get"])(this.props.image, ['media_details', 'sizes'], {});
6929      }
6930    }, {
6931      key: "getLinkDestinationOptions",
6932      value: function getLinkDestinationOptions() {
6933        return [{
6934          value: LINK_DESTINATION_NONE,
6935          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('None')
6936        }, {
6937          value: LINK_DESTINATION_MEDIA,
6938          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Media File')
6939        }, {
6940          value: LINK_DESTINATION_ATTACHMENT,
6941          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Attachment Page')
6942        }, {
6943          value: LINK_DESTINATION_CUSTOM,
6944          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Custom URL')
6945        }];
6946      }
6947    }, {
6948      key: "render",
6949      value: function render() {
6950        var _this3 = this;
6951  
6952        var _this$props2 = this.props,
6953            attributes = _this$props2.attributes,
6954            setAttributes = _this$props2.setAttributes,
6955            isLargeViewport = _this$props2.isLargeViewport,
6956            isSelected = _this$props2.isSelected,
6957            className = _this$props2.className,
6958            maxWidth = _this$props2.maxWidth,
6959            noticeOperations = _this$props2.noticeOperations,
6960            noticeUI = _this$props2.noticeUI,
6961            toggleSelection = _this$props2.toggleSelection,
6962            isRTL = _this$props2.isRTL;
6963        var url = attributes.url,
6964            alt = attributes.alt,
6965            caption = attributes.caption,
6966            align = attributes.align,
6967            id = attributes.id,
6968            href = attributes.href,
6969            linkDestination = attributes.linkDestination,
6970            width = attributes.width,
6971            height = attributes.height;
6972        var controls = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["BlockAlignmentToolbar"], {
6973          value: align,
6974          onChange: this.updateAlignment
6975        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["MediaUpload"], {
6976          onSelect: this.onSelectImage,
6977          allowedTypes: ALLOWED_MEDIA_TYPES,
6978          value: id,
6979          render: function render(_ref3) {
6980            var open = _ref3.open;
6981            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["IconButton"], {
6982              className: "components-toolbar__control",
6983              label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Edit image'),
6984              icon: "edit",
6985              onClick: open
6986            });
6987          }
6988        })));
6989  
6990        if (!url) {
6991          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, controls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["MediaPlaceholder"], {
6992            icon: "format-image",
6993            labels: {
6994              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Image'),
6995              name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('an image')
6996            },
6997            className: className,
6998            onSelect: this.onSelectImage,
6999            notices: noticeUI,
7000            onError: noticeOperations.createErrorNotice,
7001            accept: "image/*",
7002            allowedTypes: ALLOWED_MEDIA_TYPES
7003          }));
7004        }
7005  
7006        var classes = classnames__WEBPACK_IMPORTED_MODULE_10___default()(className, {
7007          'is-transient': 0 === url.indexOf('blob:'),
7008          'is-resized': !!width || !!height,
7009          'is-focused': isSelected
7010        });
7011        var availableSizes = this.getAvailableSizes();
7012        var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport;
7013        var isLinkURLInputDisabled = linkDestination !== LINK_DESTINATION_CUSTOM;
7014  
7015        var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) {
7016          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["PanelBody"], {
7017            title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Image Settings')
7018          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["TextareaControl"], {
7019            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Alt Text (Alternative Text)'),
7020            value: alt,
7021            onChange: _this3.updateAlt,
7022            help: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Describe the purpose of the image. Leave empty if the image is not a key part of the content.')
7023          }), !Object(lodash__WEBPACK_IMPORTED_MODULE_11__["isEmpty"])(availableSizes) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["SelectControl"], {
7024            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Image Size'),
7025            value: url,
7026            options: Object(lodash__WEBPACK_IMPORTED_MODULE_11__["map"])(availableSizes, function (size, name) {
7027              return {
7028                value: size.source_url,
7029                label: Object(lodash__WEBPACK_IMPORTED_MODULE_11__["startCase"])(name)
7030              };
7031            }),
7032            onChange: _this3.updateImageURL
7033          }), isResizable && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("div", {
7034            className: "block-library-image__dimensions"
7035          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("p", {
7036            className: "block-library-image__dimensions__row"
7037          }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Image Dimensions')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("div", {
7038            className: "block-library-image__dimensions__row"
7039          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["TextControl"], {
7040            type: "number",
7041            className: "block-library-image__dimensions__width",
7042            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Width'),
7043            value: width !== undefined ? width : '',
7044            placeholder: imageWidth,
7045            min: 1,
7046            onChange: _this3.updateWidth
7047          }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["TextControl"], {
7048            type: "number",
7049            className: "block-library-image__dimensions__height",
7050            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Height'),
7051            value: height !== undefined ? height : '',
7052            placeholder: imageHeight,
7053            min: 1,
7054            onChange: _this3.updateHeight
7055          })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("div", {
7056            className: "block-library-image__dimensions__row"
7057          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["ButtonGroup"], {
7058            "aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Image Size')
7059          }, [25, 50, 75, 100].map(function (scale) {
7060            var scaledWidth = Math.round(imageWidth * (scale / 100));
7061            var scaledHeight = Math.round(imageHeight * (scale / 100));
7062            var isCurrent = width === scaledWidth && height === scaledHeight;
7063            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Button"], {
7064              key: scale,
7065              isSmall: true,
7066              isPrimary: isCurrent,
7067              "aria-pressed": isCurrent,
7068              onClick: _this3.updateDimensions(scaledWidth, scaledHeight)
7069            }, scale, "%");
7070          })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["Button"], {
7071            isSmall: true,
7072            onClick: _this3.updateDimensions()
7073          }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Reset'))))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["PanelBody"], {
7074            title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Link Settings')
7075          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["SelectControl"], {
7076            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Link To'),
7077            value: linkDestination,
7078            options: _this3.getLinkDestinationOptions(),
7079            onChange: _this3.onSetLinkDestination
7080          }), linkDestination !== LINK_DESTINATION_NONE && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["TextControl"], {
7081            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Link URL'),
7082            value: href || '',
7083            onChange: _this3.onSetCustomHref,
7084            placeholder: !isLinkURLInputDisabled ? 'https://' : undefined,
7085            disabled: isLinkURLInputDisabled
7086          })));
7087        }; // Disable reason: Each block can be selected by clicking on it
7088  
7089        /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
7090  
7091  
7092        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, controls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("figure", {
7093          className: classes
7094        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_image_size__WEBPACK_IMPORTED_MODULE_20__["default"], {
7095          src: url,
7096          dirtynessTrigger: align
7097        }, function (sizes) {
7098          var imageWidthWithinContainer = sizes.imageWidthWithinContainer,
7099              imageHeightWithinContainer = sizes.imageHeightWithinContainer,
7100              imageWidth = sizes.imageWidth,
7101              imageHeight = sizes.imageHeight; // Disable reason: Image itself is not meant to be
7102          // interactive, but should direct focus to block
7103          // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
7104  
7105          var img = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("img", {
7106            src: url,
7107            alt: alt,
7108            onClick: _this3.onImageClick
7109          });
7110  
7111          if (!isResizable || !imageWidthWithinContainer) {
7112            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])("div", {
7113              style: {
7114                width: width,
7115                height: height
7116              }
7117            }, img));
7118          }
7119  
7120          var currentWidth = width || imageWidthWithinContainer;
7121          var currentHeight = height || imageHeightWithinContainer;
7122          var ratio = imageWidth / imageHeight;
7123          var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio;
7124          var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio;
7125          var showRightHandle = false;
7126          var showLeftHandle = false;
7127          /* eslint-disable no-lonely-if */
7128          // See https://github.com/WordPress/gutenberg/issues/7584.
7129  
7130          if (align === 'center') {
7131            // When the image is centered, show both handles.
7132            showRightHandle = true;
7133            showLeftHandle = true;
7134          } else if (isRTL) {
7135            // In RTL mode the image is on the right by default.
7136            // Show the right handle and hide the left handle only when it is aligned left.
7137            // Otherwise always show the left handle.
7138            if (align === 'left') {
7139              showRightHandle = true;
7140            } else {
7141              showLeftHandle = true;
7142            }
7143          } else {
7144            // Show the left handle and hide the right handle only when the image is aligned right.
7145            // Otherwise always show the right handle.
7146            if (align === 'right') {
7147              showLeftHandle = true;
7148            } else {
7149              showRightHandle = true;
7150            }
7151          }
7152          /* eslint-enable no-lonely-if */
7153  
7154  
7155          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["ResizableBox"], {
7156            size: width && height ? {
7157              width: width,
7158              height: height
7159            } : undefined,
7160            minWidth: minWidth,
7161            maxWidth: maxWidth,
7162            minHeight: minHeight,
7163            maxHeight: maxWidth / ratio,
7164            lockAspectRatio: true,
7165            enable: {
7166              top: false,
7167              right: showRightHandle,
7168              bottom: true,
7169              left: showLeftHandle
7170            },
7171            onResizeStart: function onResizeStart() {
7172              toggleSelection(false);
7173            },
7174            onResizeStop: function onResizeStop(event, direction, elt, delta) {
7175              setAttributes({
7176                width: parseInt(currentWidth + delta.width, 10),
7177                height: parseInt(currentHeight + delta.height, 10)
7178              });
7179              toggleSelection(true);
7180            }
7181          }, img));
7182        }), (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"].isEmpty(caption) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_16__["RichText"], {
7183          tagName: "figcaption",
7184          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_12__["__"])('Write caption…'),
7185          value: caption,
7186          unstableOnFocus: this.onFocusCaption,
7187          onChange: function onChange(value) {
7188            return setAttributes({
7189              caption: value
7190            });
7191          },
7192          isSelected: this.state.captionFocused,
7193          inlineToolbar: true
7194        })));
7195        /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
7196      }
7197    }]);
7198  
7199    return ImageEdit;
7200  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Component"]);
7201  
7202  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_18__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_15__["withSelect"])(function (select, props) {
7203    var _select = select('core'),
7204        getMedia = _select.getMedia;
7205  
7206    var _select2 = select('core/editor'),
7207        getEditorSettings = _select2.getEditorSettings;
7208  
7209    var id = props.attributes.id;
7210  
7211    var _getEditorSettings = getEditorSettings(),
7212        maxWidth = _getEditorSettings.maxWidth,
7213        isRTL = _getEditorSettings.isRTL;
7214  
7215    return {
7216      image: id ? getMedia(id) : null,
7217      maxWidth: maxWidth,
7218      isRTL: isRTL
7219    };
7220  }), Object(_wordpress_viewport__WEBPACK_IMPORTED_MODULE_17__["withViewportMatch"])({
7221    isLargeViewport: 'medium'
7222  }), _wordpress_components__WEBPACK_IMPORTED_MODULE_14__["withNotices"]])(ImageEdit));
7223  
7224  
7225  /***/ }),
7226  
7227  /***/ "./node_modules/@wordpress/block-library/build-module/image/image-size.js":
7228  /*!********************************************************************************!*\
7229    !*** ./node_modules/@wordpress/block-library/build-module/image/image-size.js ***!
7230    \********************************************************************************/
7231  /*! exports provided: default */
7232  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7233  
7234  "use strict";
7235  __webpack_require__.r(__webpack_exports__);
7236  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
7237  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
7238  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
7239  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
7240  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
7241  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
7242  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7243  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
7244  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash */ "lodash");
7245  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_7__);
7246  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
7247  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
7248  
7249  
7250  
7251  
7252  
7253  
7254  
7255  
7256  /**
7257   * External dependencies
7258   */
7259  
7260  /**
7261   * WordPress dependencies
7262   */
7263  
7264  
7265  
7266  
7267  var ImageSize =
7268  /*#__PURE__*/
7269  function (_Component) {
7270    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(ImageSize, _Component);
7271  
7272    function ImageSize() {
7273      var _this;
7274  
7275      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, ImageSize);
7276  
7277      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(ImageSize).apply(this, arguments));
7278      _this.state = {
7279        width: undefined,
7280        height: undefined
7281      };
7282      _this.bindContainer = _this.bindContainer.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
7283      _this.calculateSize = _this.calculateSize.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
7284      return _this;
7285    }
7286  
7287    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(ImageSize, [{
7288      key: "bindContainer",
7289      value: function bindContainer(ref) {
7290        this.container = ref;
7291      }
7292    }, {
7293      key: "componentDidUpdate",
7294      value: function componentDidUpdate(prevProps) {
7295        if (this.props.src !== prevProps.src) {
7296          this.setState({
7297            width: undefined,
7298            height: undefined
7299          });
7300          this.fetchImageSize();
7301        }
7302  
7303        if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) {
7304          this.calculateSize();
7305        }
7306      }
7307    }, {
7308      key: "componentDidMount",
7309      value: function componentDidMount() {
7310        this.fetchImageSize();
7311      }
7312    }, {
7313      key: "componentWillUnmount",
7314      value: function componentWillUnmount() {
7315        if (this.image) {
7316          this.image.onload = lodash__WEBPACK_IMPORTED_MODULE_7__["noop"];
7317        }
7318      }
7319    }, {
7320      key: "fetchImageSize",
7321      value: function fetchImageSize() {
7322        this.image = new window.Image();
7323        this.image.onload = this.calculateSize;
7324        this.image.src = this.props.src;
7325      }
7326    }, {
7327      key: "calculateSize",
7328      value: function calculateSize() {
7329        var maxWidth = this.container.clientWidth;
7330        var exceedMaxWidth = this.image.width > maxWidth;
7331        var ratio = this.image.height / this.image.width;
7332        var width = exceedMaxWidth ? maxWidth : this.image.width;
7333        var height = exceedMaxWidth ? maxWidth * ratio : this.image.height;
7334        this.setState({
7335          width: width,
7336          height: height
7337        });
7338      }
7339    }, {
7340      key: "render",
7341      value: function render() {
7342        var sizes = {
7343          imageWidth: this.image && this.image.width,
7344          imageHeight: this.image && this.image.height,
7345          containerWidth: this.container && this.container.clientWidth,
7346          containerHeight: this.container && this.container.clientHeight,
7347          imageWidthWithinContainer: this.state.width,
7348          imageHeightWithinContainer: this.state.height
7349        };
7350        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
7351          ref: this.bindContainer
7352        }, this.props.children(sizes));
7353      }
7354    }]);
7355  
7356    return ImageSize;
7357  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
7358  
7359  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["withGlobalEvents"])({
7360    resize: 'calculateSize'
7361  })(ImageSize));
7362  
7363  
7364  /***/ }),
7365  
7366  /***/ "./node_modules/@wordpress/block-library/build-module/image/index.js":
7367  /*!***************************************************************************!*\
7368    !*** ./node_modules/@wordpress/block-library/build-module/image/index.js ***!
7369    \***************************************************************************/
7370  /*! exports provided: name, settings */
7371  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7372  
7373  "use strict";
7374  __webpack_require__.r(__webpack_exports__);
7375  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
7376  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
7377  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
7378  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
7379  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
7380  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7381  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
7382  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
7383  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
7384  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
7385  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
7386  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
7387  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__);
7388  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
7389  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__);
7390  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
7391  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__);
7392  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/image/edit.js");
7393  
7394  
7395  
7396  
7397  
7398  /**
7399   * External dependencies
7400   */
7401  
7402  /**
7403   * WordPress dependencies
7404   */
7405  
7406  
7407  
7408  
7409  
7410  
7411  /**
7412   * Internal dependencies
7413   */
7414  
7415  
7416  var name = 'core/image';
7417  var blockAttributes = {
7418    url: {
7419      type: 'string',
7420      source: 'attribute',
7421      selector: 'img',
7422      attribute: 'src'
7423    },
7424    alt: {
7425      type: 'string',
7426      source: 'attribute',
7427      selector: 'img',
7428      attribute: 'alt',
7429      default: ''
7430    },
7431    caption: {
7432      source: 'html',
7433      selector: 'figcaption'
7434    },
7435    href: {
7436      type: 'string',
7437      source: 'attribute',
7438      selector: 'figure > a',
7439      attribute: 'href'
7440    },
7441    id: {
7442      type: 'number'
7443    },
7444    align: {
7445      type: 'string'
7446    },
7447    width: {
7448      type: 'number'
7449    },
7450    height: {
7451      type: 'number'
7452    },
7453    linkDestination: {
7454      type: 'string',
7455      default: 'none'
7456    }
7457  };
7458  var imageSchema = {
7459    img: {
7460      attributes: ['src', 'alt'],
7461      classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/]
7462    }
7463  };
7464  var schema = {
7465    figure: {
7466      require: ['img'],
7467      children: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__["default"])({}, imageSchema, {
7468        a: {
7469          attributes: ['href'],
7470          children: imageSchema
7471        },
7472        figcaption: {
7473          children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["getPhrasingContentSchema"])()
7474        }
7475      })
7476    }
7477  };
7478  var settings = {
7479    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Image'),
7480    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('They’re worth 1,000 words! Insert a single image.'),
7481    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("svg", {
7482      viewBox: "0 0 24 24",
7483      xmlns: "http://www.w3.org/2000/svg"
7484    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("path", {
7485      d: "M0,0h24v24H0V0z",
7486      fill: "none"
7487    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("path", {
7488      d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"
7489    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("path", {
7490      d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"
7491    })),
7492    category: 'common',
7493    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('photo')],
7494    attributes: blockAttributes,
7495    transforms: {
7496      from: [{
7497        type: 'raw',
7498        isMatch: function isMatch(node) {
7499          return node.nodeName === 'FIGURE' && !!node.querySelector('img');
7500        },
7501        schema: schema,
7502        transform: function transform(node) {
7503          // Search both figure and image classes. Alignment could be
7504          // set on either. ID is set on the image.
7505          var className = node.className + ' ' + node.querySelector('img').className;
7506          var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className);
7507          var align = alignMatches ? alignMatches[1] : undefined;
7508          var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className);
7509          var id = idMatches ? Number(idMatches[1]) : undefined;
7510          var anchorElement = node.querySelector('a');
7511          var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined;
7512          var href = anchorElement && anchorElement.href ? anchorElement.href : undefined;
7513          var blockType = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["getBlockType"])('core/image');
7514          var attributes = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["getBlockAttributes"])(blockType, node.outerHTML, {
7515            align: align,
7516            id: id,
7517            linkDestination: linkDestination,
7518            href: href
7519          });
7520          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/image', attributes);
7521        }
7522      }, {
7523        type: 'files',
7524        isMatch: function isMatch(files) {
7525          return files.length === 1 && files[0].type.indexOf('image/') === 0;
7526        },
7527        transform: function transform(files) {
7528          var file = files[0]; // We don't need to upload the media directly here
7529          // It's already done as part of the `componentDidMount`
7530          // int the image block
7531  
7532          var block = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/image', {
7533            url: Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__["createBlobURL"])(file)
7534          });
7535          return block;
7536        }
7537      }, {
7538        type: 'shortcode',
7539        tag: 'caption',
7540        attributes: {
7541          url: {
7542            type: 'string',
7543            source: 'attribute',
7544            attribute: 'src',
7545            selector: 'img'
7546          },
7547          alt: {
7548            type: 'string',
7549            source: 'attribute',
7550            attribute: 'alt',
7551            selector: 'img'
7552          },
7553          caption: {
7554            shortcode: function shortcode(attributes, _ref) {
7555              var _shortcode = _ref.shortcode;
7556              var content = _shortcode.content;
7557              return content.replace(/\s*<img[^>]*>\s/, '');
7558            }
7559          },
7560          href: {
7561            type: 'string',
7562            source: 'attribute',
7563            attribute: 'href',
7564            selector: 'a'
7565          },
7566          id: {
7567            type: 'number',
7568            shortcode: function shortcode(_ref2) {
7569              var id = _ref2.named.id;
7570  
7571              if (!id) {
7572                return;
7573              }
7574  
7575              return parseInt(id.replace('attachment_', ''), 10);
7576            }
7577          },
7578          align: {
7579            type: 'string',
7580            shortcode: function shortcode(_ref3) {
7581              var _ref3$named$align = _ref3.named.align,
7582                  align = _ref3$named$align === void 0 ? 'alignnone' : _ref3$named$align;
7583              return align.replace('align', '');
7584            }
7585          }
7586        }
7587      }]
7588    },
7589    getEditWrapperProps: function getEditWrapperProps(attributes) {
7590      var align = attributes.align,
7591          width = attributes.width;
7592  
7593      if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) {
7594        return {
7595          'data-align': align,
7596          'data-resized': !!width
7597        };
7598      }
7599    },
7600    edit: _edit__WEBPACK_IMPORTED_MODULE_9__["default"],
7601    save: function save(_ref4) {
7602      var _classnames;
7603  
7604      var attributes = _ref4.attributes;
7605      var url = attributes.url,
7606          alt = attributes.alt,
7607          caption = attributes.caption,
7608          align = attributes.align,
7609          href = attributes.href,
7610          width = attributes.width,
7611          height = attributes.height,
7612          id = attributes.id;
7613      var classes = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames, "align".concat(align), align), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames, 'is-resized', width || height), _classnames));
7614      var image = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("img", {
7615        src: url,
7616        alt: alt,
7617        className: id ? "wp-image-".concat(id) : null,
7618        width: width,
7619        height: height
7620      });
7621      var figure = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", {
7622        href: href
7623      }, image) : image, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].Content, {
7624        tagName: "figcaption",
7625        value: caption
7626      }));
7627  
7628      if ('left' === align || 'right' === align || 'center' === align) {
7629        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("div", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("figure", {
7630          className: classes
7631        }, figure));
7632      }
7633  
7634      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("figure", {
7635        className: classes
7636      }, figure);
7637    },
7638    deprecated: [{
7639      attributes: blockAttributes,
7640      save: function save(_ref5) {
7641        var _classnames2;
7642  
7643        var attributes = _ref5.attributes;
7644        var url = attributes.url,
7645            alt = attributes.alt,
7646            caption = attributes.caption,
7647            align = attributes.align,
7648            href = attributes.href,
7649            width = attributes.width,
7650            height = attributes.height,
7651            id = attributes.id;
7652        var classes = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classnames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames2, "align".concat(align), align), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classnames2, 'is-resized', width || height), _classnames2));
7653        var image = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("img", {
7654          src: url,
7655          alt: alt,
7656          className: id ? "wp-image-".concat(id) : null,
7657          width: width,
7658          height: height
7659        });
7660        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("figure", {
7661          className: classes
7662        }, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", {
7663          href: href
7664        }, image) : image, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].Content, {
7665          tagName: "figcaption",
7666          value: caption
7667        }));
7668      }
7669    }, {
7670      attributes: blockAttributes,
7671      save: function save(_ref6) {
7672        var attributes = _ref6.attributes;
7673        var url = attributes.url,
7674            alt = attributes.alt,
7675            caption = attributes.caption,
7676            align = attributes.align,
7677            href = attributes.href,
7678            width = attributes.width,
7679            height = attributes.height,
7680            id = attributes.id;
7681        var image = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("img", {
7682          src: url,
7683          alt: alt,
7684          className: id ? "wp-image-".concat(id) : null,
7685          width: width,
7686          height: height
7687        });
7688        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("figure", {
7689          className: align ? "align".concat(align) : null
7690        }, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", {
7691          href: href
7692        }, image) : image, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].Content, {
7693          tagName: "figcaption",
7694          value: caption
7695        }));
7696      }
7697    }, {
7698      attributes: blockAttributes,
7699      save: function save(_ref7) {
7700        var attributes = _ref7.attributes;
7701        var url = attributes.url,
7702            alt = attributes.alt,
7703            caption = attributes.caption,
7704            align = attributes.align,
7705            href = attributes.href,
7706            width = attributes.width,
7707            height = attributes.height;
7708        var extraImageProps = width || height ? {
7709          width: width,
7710          height: height
7711        } : {};
7712        var image = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("img", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
7713          src: url,
7714          alt: alt
7715        }, extraImageProps));
7716        var figureStyle = {};
7717  
7718        if (width) {
7719          figureStyle = {
7720            width: width
7721          };
7722        } else if (align === 'left' || align === 'right') {
7723          figureStyle = {
7724            maxWidth: '50%'
7725          };
7726        }
7727  
7728        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("figure", {
7729          className: align ? "align".concat(align) : null,
7730          style: figureStyle
7731        }, href ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", {
7732          href: href
7733        }, image) : image, !_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].Content, {
7734          tagName: "figcaption",
7735          value: caption
7736        }));
7737      }
7738    }]
7739  };
7740  
7741  
7742  /***/ }),
7743  
7744  /***/ "./node_modules/@wordpress/block-library/build-module/index.js":
7745  /*!*********************************************************************!*\
7746    !*** ./node_modules/@wordpress/block-library/build-module/index.js ***!
7747    \*********************************************************************/
7748  /*! exports provided: registerCoreBlocks */
7749  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7750  
7751  "use strict";
7752  __webpack_require__.r(__webpack_exports__);
7753  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return registerCoreBlocks; });
7754  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
7755  /* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/core-data */ "@wordpress/core-data");
7756  /* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_core_data__WEBPACK_IMPORTED_MODULE_1__);
7757  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
7758  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
7759  /* harmony import */ var _paragraph__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./paragraph */ "./node_modules/@wordpress/block-library/build-module/paragraph/index.js");
7760  /* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./image */ "./node_modules/@wordpress/block-library/build-module/image/index.js");
7761  /* harmony import */ var _heading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./heading */ "./node_modules/@wordpress/block-library/build-module/heading/index.js");
7762  /* harmony import */ var _quote__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./quote */ "./node_modules/@wordpress/block-library/build-module/quote/index.js");
7763  /* harmony import */ var _gallery__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./gallery */ "./node_modules/@wordpress/block-library/build-module/gallery/index.js");
7764  /* harmony import */ var _archives__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./archives */ "./node_modules/@wordpress/block-library/build-module/archives/index.js");
7765  /* harmony import */ var _audio__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./audio */ "./node_modules/@wordpress/block-library/build-module/audio/index.js");
7766  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./button */ "./node_modules/@wordpress/block-library/build-module/button/index.js");
7767  /* harmony import */ var _categories__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./categories */ "./node_modules/@wordpress/block-library/build-module/categories/index.js");
7768  /* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./code */ "./node_modules/@wordpress/block-library/build-module/code/index.js");
7769  /* harmony import */ var _columns__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./columns */ "./node_modules/@wordpress/block-library/build-module/columns/index.js");
7770  /* harmony import */ var _columns_column__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./columns/column */ "./node_modules/@wordpress/block-library/build-module/columns/column.js");
7771  /* harmony import */ var _cover_image__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./cover-image */ "./node_modules/@wordpress/block-library/build-module/cover-image/index.js");
7772  /* harmony import */ var _embed__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./embed */ "./node_modules/@wordpress/block-library/build-module/embed/index.js");
7773  /* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./file */ "./node_modules/@wordpress/block-library/build-module/file/index.js");
7774  /* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./html */ "./node_modules/@wordpress/block-library/build-module/html/index.js");
7775  /* harmony import */ var _latest_comments__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./latest-comments */ "./node_modules/@wordpress/block-library/build-module/latest-comments/index.js");
7776  /* harmony import */ var _latest_posts__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./latest-posts */ "./node_modules/@wordpress/block-library/build-module/latest-posts/index.js");
7777  /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./list */ "./node_modules/@wordpress/block-library/build-module/list/index.js");
7778  /* harmony import */ var _more__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./more */ "./node_modules/@wordpress/block-library/build-module/more/index.js");
7779  /* harmony import */ var _nextpage__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./nextpage */ "./node_modules/@wordpress/block-library/build-module/nextpage/index.js");
7780  /* harmony import */ var _preformatted__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./preformatted */ "./node_modules/@wordpress/block-library/build-module/preformatted/index.js");
7781  /* harmony import */ var _pullquote__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./pullquote */ "./node_modules/@wordpress/block-library/build-module/pullquote/index.js");
7782  /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./block */ "./node_modules/@wordpress/block-library/build-module/block/index.js");
7783  /* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./separator */ "./node_modules/@wordpress/block-library/build-module/separator/index.js");
7784  /* harmony import */ var _shortcode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./shortcode */ "./node_modules/@wordpress/block-library/build-module/shortcode/index.js");
7785  /* harmony import */ var _spacer__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./spacer */ "./node_modules/@wordpress/block-library/build-module/spacer/index.js");
7786  /* harmony import */ var _subhead__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./subhead */ "./node_modules/@wordpress/block-library/build-module/subhead/index.js");
7787  /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./table */ "./node_modules/@wordpress/block-library/build-module/table/index.js");
7788  /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./template */ "./node_modules/@wordpress/block-library/build-module/template/index.js");
7789  /* harmony import */ var _text_columns__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./text-columns */ "./node_modules/@wordpress/block-library/build-module/text-columns/index.js");
7790  /* harmony import */ var _verse__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./verse */ "./node_modules/@wordpress/block-library/build-module/verse/index.js");
7791  /* harmony import */ var _video__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./video */ "./node_modules/@wordpress/block-library/build-module/video/index.js");
7792  /* harmony import */ var _classic__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./classic */ "./node_modules/@wordpress/block-library/build-module/classic/index.js");
7793  
7794  
7795  /**
7796   * WordPress dependencies
7797   */
7798  
7799  
7800  /**
7801   * Internal dependencies
7802   */
7803  
7804  
7805  
7806  
7807  
7808  
7809  
7810  
7811  
7812  
7813  
7814  
7815  
7816  
7817  
7818  
7819  
7820  
7821  
7822  
7823  
7824  
7825  
7826  
7827  
7828  
7829  
7830  
7831  
7832  
7833  
7834  
7835  
7836  
7837  
7838  var registerCoreBlocks = function registerCoreBlocks() {
7839    [// Common blocks are grouped at the top to prioritize their display
7840    // in various contexts — like the inserter and auto-complete components.
7841    _paragraph__WEBPACK_IMPORTED_MODULE_3__, _image__WEBPACK_IMPORTED_MODULE_4__, _heading__WEBPACK_IMPORTED_MODULE_5__, _gallery__WEBPACK_IMPORTED_MODULE_7__, _list__WEBPACK_IMPORTED_MODULE_21__, _quote__WEBPACK_IMPORTED_MODULE_6__, // Register all remaining core blocks.
7842    _shortcode__WEBPACK_IMPORTED_MODULE_28__, _archives__WEBPACK_IMPORTED_MODULE_8__, _audio__WEBPACK_IMPORTED_MODULE_9__, _button__WEBPACK_IMPORTED_MODULE_10__, _categories__WEBPACK_IMPORTED_MODULE_11__, _code__WEBPACK_IMPORTED_MODULE_12__, _columns__WEBPACK_IMPORTED_MODULE_13__, _columns_column__WEBPACK_IMPORTED_MODULE_14__, _cover_image__WEBPACK_IMPORTED_MODULE_15__, _embed__WEBPACK_IMPORTED_MODULE_16__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_embed__WEBPACK_IMPORTED_MODULE_16__["common"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_embed__WEBPACK_IMPORTED_MODULE_16__["others"]), [_file__WEBPACK_IMPORTED_MODULE_17__, window.wp && window.wp.oldEditor ? _classic__WEBPACK_IMPORTED_MODULE_36__ : null, // Only add the classic block in WP Context
7843    _html__WEBPACK_IMPORTED_MODULE_18__, _latest_comments__WEBPACK_IMPORTED_MODULE_19__, _latest_posts__WEBPACK_IMPORTED_MODULE_20__, _more__WEBPACK_IMPORTED_MODULE_22__, _nextpage__WEBPACK_IMPORTED_MODULE_23__, _preformatted__WEBPACK_IMPORTED_MODULE_24__, _pullquote__WEBPACK_IMPORTED_MODULE_25__, _separator__WEBPACK_IMPORTED_MODULE_27__, _block__WEBPACK_IMPORTED_MODULE_26__, _spacer__WEBPACK_IMPORTED_MODULE_29__, _subhead__WEBPACK_IMPORTED_MODULE_30__, _table__WEBPACK_IMPORTED_MODULE_31__, _template__WEBPACK_IMPORTED_MODULE_32__, _text_columns__WEBPACK_IMPORTED_MODULE_33__, _verse__WEBPACK_IMPORTED_MODULE_34__, _video__WEBPACK_IMPORTED_MODULE_35__]).forEach(function (block) {
7844      if (!block) {
7845        return;
7846      }
7847  
7848      var name = block.name,
7849          settings = block.settings;
7850      Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["registerBlockType"])(name, settings);
7851    });
7852    Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["setDefaultBlockName"])(_paragraph__WEBPACK_IMPORTED_MODULE_3__["name"]);
7853  
7854    if (window.wp && window.wp.oldEditor) {
7855      Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["setUnknownTypeHandlerName"])(_classic__WEBPACK_IMPORTED_MODULE_36__["name"]);
7856    }
7857  };
7858  
7859  
7860  /***/ }),
7861  
7862  /***/ "./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js":
7863  /*!************************************************************************************!*\
7864    !*** ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js ***!
7865    \************************************************************************************/
7866  /*! exports provided: default */
7867  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7868  
7869  "use strict";
7870  __webpack_require__.r(__webpack_exports__);
7871  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
7872  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
7873  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
7874  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
7875  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
7876  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
7877  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
7878  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7879  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
7880  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
7881  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
7882  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
7883  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
7884  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
7885  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__);
7886  
7887  
7888  
7889  
7890  
7891  
7892  
7893  
7894  
7895  /**
7896   * WordPress dependencies
7897   */
7898  
7899  
7900  
7901  
7902  /**
7903   * Minimum number of comments a user can show using this block.
7904   *
7905   * @type {number}
7906   */
7907  
7908  var MIN_COMMENTS = 1;
7909  /**
7910   * Maximum number of comments a user can show using this block.
7911   *
7912   * @type {number}
7913   */
7914  
7915  var MAX_COMMENTS = 100;
7916  
7917  var LatestComments =
7918  /*#__PURE__*/
7919  function (_Component) {
7920    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(LatestComments, _Component);
7921  
7922    function LatestComments() {
7923      var _this;
7924  
7925      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, LatestComments);
7926  
7927      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(LatestComments).apply(this, arguments));
7928      _this.setAlignment = _this.setAlignment.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
7929      _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this))); // Create toggles for each attribute; we create them here rather than
7930      // passing `this.createToggleAttribute( 'displayAvatar' )` directly to
7931      // `onChange` to avoid re-renders.
7932  
7933      _this.toggleDisplayAvatar = _this.createToggleAttribute('displayAvatar');
7934      _this.toggleDisplayDate = _this.createToggleAttribute('displayDate');
7935      _this.toggleDisplayExcerpt = _this.createToggleAttribute('displayExcerpt');
7936      return _this;
7937    }
7938  
7939    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(LatestComments, [{
7940      key: "createToggleAttribute",
7941      value: function createToggleAttribute(propName) {
7942        var _this2 = this;
7943  
7944        return function () {
7945          var value = _this2.props.attributes[propName];
7946          var setAttributes = _this2.props.setAttributes;
7947          setAttributes(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, propName, !value));
7948        };
7949      }
7950    }, {
7951      key: "setAlignment",
7952      value: function setAlignment(align) {
7953        this.props.setAttributes({
7954          align: align
7955        });
7956      }
7957    }, {
7958      key: "setCommentsToShow",
7959      value: function setCommentsToShow(commentsToShow) {
7960        this.props.setAttributes({
7961          commentsToShow: commentsToShow
7962        });
7963      }
7964    }, {
7965      key: "render",
7966      value: function render() {
7967        var _this$props$attribute = this.props.attributes,
7968            align = _this$props$attribute.align,
7969            commentsToShow = _this$props$attribute.commentsToShow,
7970            displayAvatar = _this$props$attribute.displayAvatar,
7971            displayDate = _this$props$attribute.displayDate,
7972            displayExcerpt = _this$props$attribute.displayExcerpt;
7973        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["BlockAlignmentToolbar"], {
7974          value: align,
7975          onChange: this.setAlignment
7976        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["PanelBody"], {
7977          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Latest Comments Settings')
7978        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["ToggleControl"], {
7979          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Display Avatar'),
7980          checked: displayAvatar,
7981          onChange: this.toggleDisplayAvatar
7982        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["ToggleControl"], {
7983          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Display Date'),
7984          checked: displayDate,
7985          onChange: this.toggleDisplayDate
7986        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["ToggleControl"], {
7987          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Display Excerpt'),
7988          checked: displayExcerpt,
7989          onChange: this.toggleDisplayExcerpt
7990        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["RangeControl"], {
7991          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Number of Comments'),
7992          value: commentsToShow,
7993          onChange: this.setCommentsToShow,
7994          min: MIN_COMMENTS,
7995          max: MAX_COMMENTS
7996        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["Disabled"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["ServerSideRender"], {
7997          block: "core/latest-comments",
7998          attributes: this.props.attributes
7999        })));
8000      }
8001    }]);
8002  
8003    return LatestComments;
8004  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]);
8005  
8006  /* harmony default export */ __webpack_exports__["default"] = (LatestComments);
8007  
8008  
8009  /***/ }),
8010  
8011  /***/ "./node_modules/@wordpress/block-library/build-module/latest-comments/index.js":
8012  /*!*************************************************************************************!*\
8013    !*** ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js ***!
8014    \*************************************************************************************/
8015  /*! exports provided: name, settings */
8016  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8017  
8018  "use strict";
8019  __webpack_require__.r(__webpack_exports__);
8020  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
8021  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
8022  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8023  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8024  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8025  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
8026  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js");
8027  
8028  
8029  /**
8030   * WordPress dependencies.
8031   */
8032  
8033  /**
8034   * Internal dependencies.
8035   */
8036  
8037  
8038  var name = 'core/latest-comments';
8039  var settings = {
8040    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Latest Comments'),
8041    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Show a list of your site’s most recent comments.'),
8042    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
8043      viewBox: "0 0 24 24",
8044      xmlns: "http://www.w3.org/2000/svg"
8045    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8046      fill: "none",
8047      d: "M0 0h24v24H0V0z"
8048    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8049      d: "M22 4l-2-2H4L2 4v12l2 2h14l4 4V4zm-2 0v13l-1-1H4V4h16z"
8050    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8051      d: "M6 12h12v2H6zM6 9h12v2H6zM6 6h12v2H6z"
8052    }))),
8053    category: 'widgets',
8054    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('recent comments')],
8055    supports: {
8056      html: false
8057    },
8058    getEditWrapperProps: function getEditWrapperProps(attributes) {
8059      var align = attributes.align; // TODO: Use consistent values across the app;
8060      // see: https://github.com/WordPress/gutenberg/issues/7908.
8061  
8062      if (['left', 'center', 'right', 'wide', 'full'].includes(align)) {
8063        return {
8064          'data-align': align
8065        };
8066      }
8067    },
8068    edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
8069    save: function save() {
8070      return null;
8071    }
8072  };
8073  
8074  
8075  /***/ }),
8076  
8077  /***/ "./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js":
8078  /*!*********************************************************************************!*\
8079    !*** ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js ***!
8080    \*********************************************************************************/
8081  /*! exports provided: default */
8082  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8083  
8084  "use strict";
8085  __webpack_require__.r(__webpack_exports__);
8086  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
8087  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
8088  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
8089  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
8090  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
8091  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
8092  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
8093  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
8094  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8095  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
8096  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ "lodash");
8097  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);
8098  /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! moment */ "moment");
8099  /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__);
8100  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
8101  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
8102  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
8103  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__);
8104  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8105  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__);
8106  /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/html-entities */ "@wordpress/html-entities");
8107  /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_14__);
8108  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
8109  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_15__);
8110  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
8111  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_16__);
8112  
8113  
8114  
8115  
8116  
8117  
8118  
8119  
8120  
8121  
8122  /**
8123   * External dependencies
8124   */
8125  
8126  
8127  
8128  /**
8129   * WordPress dependencies
8130   */
8131  
8132  
8133  
8134  
8135  
8136  
8137  
8138  var MAX_POSTS_COLUMNS = 6;
8139  
8140  var LatestPostsEdit =
8141  /*#__PURE__*/
8142  function (_Component) {
8143    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(LatestPostsEdit, _Component);
8144  
8145    function LatestPostsEdit() {
8146      var _this;
8147  
8148      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, LatestPostsEdit);
8149  
8150      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(LatestPostsEdit).apply(this, arguments));
8151      _this.toggleDisplayPostDate = _this.toggleDisplayPostDate.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
8152      return _this;
8153    }
8154  
8155    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(LatestPostsEdit, [{
8156      key: "toggleDisplayPostDate",
8157      value: function toggleDisplayPostDate() {
8158        var displayPostDate = this.props.attributes.displayPostDate;
8159        var setAttributes = this.props.setAttributes;
8160        setAttributes({
8161          displayPostDate: !displayPostDate
8162        });
8163      }
8164    }, {
8165      key: "render",
8166      value: function render() {
8167        var _this2 = this;
8168  
8169        var _this$props = this.props,
8170            attributes = _this$props.attributes,
8171            categoriesList = _this$props.categoriesList,
8172            setAttributes = _this$props.setAttributes,
8173            latestPosts = _this$props.latestPosts;
8174        var displayPostDate = attributes.displayPostDate,
8175            align = attributes.align,
8176            postLayout = attributes.postLayout,
8177            columns = attributes.columns,
8178            order = attributes.order,
8179            orderBy = attributes.orderBy,
8180            categories = attributes.categories,
8181            postsToShow = attributes.postsToShow;
8182        var inspectorControls = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_15__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["PanelBody"], {
8183          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('Latest Posts Settings')
8184        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["QueryControls"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
8185          order: order,
8186          orderBy: orderBy
8187        }, {
8188          numberOfItems: postsToShow,
8189          categoriesList: categoriesList,
8190          selectedCategoryId: categories,
8191          onOrderChange: function onOrderChange(value) {
8192            return setAttributes({
8193              order: value
8194            });
8195          },
8196          onOrderByChange: function onOrderByChange(value) {
8197            return setAttributes({
8198              orderBy: value
8199            });
8200          },
8201          onCategoryChange: function onCategoryChange(value) {
8202            return setAttributes({
8203              categories: '' !== value ? value : undefined
8204            });
8205          },
8206          onNumberOfItemsChange: function onNumberOfItemsChange(value) {
8207            return setAttributes({
8208              postsToShow: value
8209            });
8210          }
8211        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["ToggleControl"], {
8212          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('Display post date'),
8213          checked: displayPostDate,
8214          onChange: this.toggleDisplayPostDate
8215        }), postLayout === 'grid' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["RangeControl"], {
8216          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('Columns'),
8217          value: columns,
8218          onChange: function onChange(value) {
8219            return setAttributes({
8220              columns: value
8221            });
8222          },
8223          min: 2,
8224          max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length)
8225        })));
8226        var hasPosts = Array.isArray(latestPosts) && latestPosts.length;
8227  
8228        if (!hasPosts) {
8229          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, inspectorControls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["Placeholder"], {
8230            icon: "admin-post",
8231            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('Latest Posts')
8232          }, !Array.isArray(latestPosts) ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["Spinner"], null) : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('No posts found.')));
8233        } // Removing posts from display should be instant.
8234  
8235  
8236        var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts;
8237        var layoutControls = [{
8238          icon: 'list-view',
8239          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('List View'),
8240          onClick: function onClick() {
8241            return setAttributes({
8242              postLayout: 'list'
8243            });
8244          },
8245          isActive: postLayout === 'list'
8246        }, {
8247          icon: 'grid-view',
8248          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('Grid View'),
8249          onClick: function onClick() {
8250            return setAttributes({
8251              postLayout: 'grid'
8252            });
8253          },
8254          isActive: postLayout === 'grid'
8255        }];
8256        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, inspectorControls, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_15__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_15__["BlockAlignmentToolbar"], {
8257          value: align,
8258          onChange: function onChange(nextAlign) {
8259            setAttributes({
8260              align: nextAlign
8261            });
8262          },
8263          controls: ['center', 'wide', 'full']
8264        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["Toolbar"], {
8265          controls: layoutControls
8266        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("ul", {
8267          className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(this.props.className, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({
8268            'is-grid': postLayout === 'grid'
8269          }, "columns-".concat(columns), postLayout === 'grid'))
8270        }, displayPosts.map(function (post, i) {
8271          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("li", {
8272            key: i
8273          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", {
8274            href: post.link,
8275            target: "_blank"
8276          }, Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_14__["decodeEntities"])(post.title.rendered.trim()) || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_13__["__"])('(Untitled)')), displayPostDate && post.date_gmt && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("time", {
8277            dateTime: moment__WEBPACK_IMPORTED_MODULE_10___default()(post.date_gmt).utc().format(),
8278            className: "".concat(_this2.props.className, "__post-date")
8279          }, moment__WEBPACK_IMPORTED_MODULE_10___default()(post.date_gmt).local().format('MMMM DD, Y')));
8280        })));
8281      }
8282    }]);
8283  
8284    return LatestPostsEdit;
8285  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
8286  
8287  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_16__["withSelect"])(function (select, props) {
8288    var _props$attributes = props.attributes,
8289        postsToShow = _props$attributes.postsToShow,
8290        order = _props$attributes.order,
8291        orderBy = _props$attributes.orderBy,
8292        categories = _props$attributes.categories;
8293  
8294    var _select = select('core'),
8295        getEntityRecords = _select.getEntityRecords;
8296  
8297    var latestPostsQuery = Object(lodash__WEBPACK_IMPORTED_MODULE_9__["pickBy"])({
8298      categories: categories,
8299      order: order,
8300      orderby: orderBy,
8301      per_page: postsToShow
8302    }, function (value) {
8303      return !Object(lodash__WEBPACK_IMPORTED_MODULE_9__["isUndefined"])(value);
8304    });
8305    var categoriesListQuery = {
8306      per_page: 100
8307    };
8308    return {
8309      latestPosts: getEntityRecords('postType', 'post', latestPostsQuery),
8310      categoriesList: getEntityRecords('taxonomy', 'category', categoriesListQuery)
8311    };
8312  })(LatestPostsEdit));
8313  
8314  
8315  /***/ }),
8316  
8317  /***/ "./node_modules/@wordpress/block-library/build-module/latest-posts/index.js":
8318  /*!**********************************************************************************!*\
8319    !*** ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js ***!
8320    \**********************************************************************************/
8321  /*! exports provided: name, settings */
8322  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8323  
8324  "use strict";
8325  __webpack_require__.r(__webpack_exports__);
8326  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
8327  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
8328  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8329  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8330  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8331  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
8332  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js");
8333  
8334  
8335  /**
8336   * WordPress dependencies
8337   */
8338  
8339  /**
8340   * Internal dependencies
8341   */
8342  
8343  
8344  var name = 'core/latest-posts';
8345  var settings = {
8346    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Latest Posts'),
8347    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a list of your most recent posts.'),
8348    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
8349      viewBox: "0 0 24 24",
8350      xmlns: "http://www.w3.org/2000/svg"
8351    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8352      d: "M0,0h24v24H0V0z",
8353      fill: "none"
8354    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
8355      x: "11",
8356      y: "7",
8357      width: "6",
8358      height: "2"
8359    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
8360      x: "11",
8361      y: "11",
8362      width: "6",
8363      height: "2"
8364    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
8365      x: "11",
8366      y: "15",
8367      width: "6",
8368      height: "2"
8369    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
8370      x: "7",
8371      y: "7",
8372      width: "2",
8373      height: "2"
8374    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
8375      x: "7",
8376      y: "11",
8377      width: "2",
8378      height: "2"
8379    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
8380      x: "7",
8381      y: "15",
8382      width: "2",
8383      height: "2"
8384    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8385      d: "M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"
8386    })),
8387    category: 'widgets',
8388    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('recent posts')],
8389    supports: {
8390      html: false
8391    },
8392    getEditWrapperProps: function getEditWrapperProps(attributes) {
8393      var align = attributes.align;
8394  
8395      if ('left' === align || 'right' === align || 'wide' === align || 'full' === align) {
8396        return {
8397          'data-align': align
8398        };
8399      }
8400    },
8401    edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
8402    save: function save() {
8403      return null;
8404    }
8405  };
8406  
8407  
8408  /***/ }),
8409  
8410  /***/ "./node_modules/@wordpress/block-library/build-module/list/index.js":
8411  /*!**************************************************************************!*\
8412    !*** ./node_modules/@wordpress/block-library/build-module/list/index.js ***!
8413    \**************************************************************************/
8414  /*! exports provided: name, settings */
8415  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8416  
8417  "use strict";
8418  __webpack_require__.r(__webpack_exports__);
8419  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
8420  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
8421  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
8422  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
8423  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
8424  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
8425  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
8426  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
8427  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
8428  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
8429  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8430  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
8431  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ "lodash");
8432  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);
8433  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8434  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__);
8435  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
8436  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__);
8437  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
8438  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__);
8439  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
8440  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__);
8441  
8442  
8443  
8444  
8445  
8446  
8447  
8448  
8449  
8450  
8451  /**
8452   * External dependencies
8453   */
8454  
8455  /**
8456   * WordPress dependencies
8457   */
8458  
8459  
8460  
8461  
8462  
8463  
8464  
8465  var listContentSchema = Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["getPhrasingContentSchema"])(), {
8466    ul: {},
8467    ol: {
8468      attributes: ['type']
8469    }
8470  }); // Recursion is needed.
8471  // Possible: ul > li > ul.
8472  // Impossible: ul > ul.
8473  
8474  
8475  ['ul', 'ol'].forEach(function (tag) {
8476    listContentSchema[tag].children = {
8477      li: {
8478        children: listContentSchema
8479      }
8480    };
8481  });
8482  var supports = {
8483    className: false
8484  };
8485  var schema = {
8486    ordered: {
8487      type: 'boolean',
8488      default: false
8489    },
8490    values: {
8491      source: 'html',
8492      selector: 'ol,ul',
8493      multiline: 'li'
8494    }
8495  };
8496  var name = 'core/list';
8497  var settings = {
8498    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('List'),
8499    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Numbers, bullets, up to you. Add a list of items.'),
8500    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("svg", {
8501      viewBox: "0 0 24 24",
8502      xmlns: "http://www.w3.org/2000/svg"
8503    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("path", {
8504      d: "M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"
8505    }))),
8506    category: 'common',
8507    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('bullet list'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('ordered list'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('numbered list')],
8508    attributes: schema,
8509    supports: supports,
8510    transforms: {
8511      from: [{
8512        type: 'block',
8513        isMultiBlock: true,
8514        blocks: ['core/paragraph'],
8515        transform: function transform(blockAttributes) {
8516          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
8517            values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["join"])(blockAttributes.map(function (_ref) {
8518              var content = _ref.content;
8519              return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["replace"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({
8520                html: content
8521              }), /\n/g, "\u2028");
8522            }), "\u2028"), 'li')
8523          });
8524        }
8525      }, {
8526        type: 'block',
8527        blocks: ['core/quote'],
8528        transform: function transform(_ref2) {
8529          var value = _ref2.value;
8530          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
8531            values: value
8532          });
8533        }
8534      }, {
8535        type: 'raw',
8536        selector: 'ol,ul',
8537        schema: {
8538          ol: listContentSchema.ol,
8539          ul: listContentSchema.ul
8540        },
8541        transform: function transform(node) {
8542          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["getBlockAttributes"])(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["getBlockType"])('core/list'), node.outerHTML), {
8543            ordered: node.nodeName === 'OL'
8544          }));
8545        }
8546      }, {
8547        type: 'pattern',
8548        regExp: /^[*-]\s/,
8549        transform: function transform(_ref3) {
8550          var content = _ref3.content;
8551          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
8552            values: content
8553          });
8554        }
8555      }, {
8556        type: 'pattern',
8557        regExp: /^1[.)]\s/,
8558        transform: function transform(_ref4) {
8559          var content = _ref4.content;
8560          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
8561            ordered: true,
8562            values: content
8563          });
8564        }
8565      }],
8566      to: [{
8567        type: 'block',
8568        blocks: ['core/paragraph'],
8569        transform: function transform(_ref5) {
8570          var values = _ref5.values;
8571          return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({
8572            html: values,
8573            multilineTag: 'li'
8574          }), "\u2028").map(function (piece) {
8575            return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/paragraph', {
8576              content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])(piece)
8577            });
8578          });
8579        }
8580      }, {
8581        type: 'block',
8582        blocks: ['core/quote'],
8583        transform: function transform(_ref6) {
8584          var values = _ref6.values;
8585          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/quote', {
8586            value: values
8587          });
8588        }
8589      }]
8590    },
8591    deprecated: [{
8592      supports: supports,
8593      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_9__["omit"])(schema, ['ordered']), {
8594        nodeName: {
8595          type: 'string',
8596          source: 'property',
8597          selector: 'ol,ul',
8598          property: 'nodeName',
8599          default: 'UL'
8600        }
8601      }),
8602      migrate: function migrate(attributes) {
8603        var nodeName = attributes.nodeName,
8604            migratedAttributes = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_6__["default"])(attributes, ["nodeName"]);
8605  
8606        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, migratedAttributes, {
8607          ordered: 'OL' === nodeName
8608        });
8609      },
8610      save: function save(_ref7) {
8611        var attributes = _ref7.attributes;
8612        var nodeName = attributes.nodeName,
8613            values = attributes.values;
8614        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"].Content, {
8615          tagName: nodeName.toLowerCase(),
8616          value: values
8617        });
8618      }
8619    }],
8620    merge: function merge(attributes, attributesToMerge) {
8621      var values = attributesToMerge.values;
8622  
8623      if (!values || values === '<li></li>') {
8624        return attributes;
8625      }
8626  
8627      return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, attributes, {
8628        values: attributes.values + values
8629      });
8630    },
8631    edit:
8632    /*#__PURE__*/
8633    function (_Component) {
8634      Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(edit, _Component);
8635  
8636      function edit() {
8637        var _this;
8638  
8639        Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, edit);
8640  
8641        _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(edit).apply(this, arguments));
8642        _this.setupEditor = _this.setupEditor.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
8643        _this.getEditorSettings = _this.getEditorSettings.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
8644        _this.setNextValues = _this.setNextValues.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
8645        _this.state = {
8646          internalListType: null
8647        };
8648        return _this;
8649      }
8650  
8651      Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(edit, [{
8652        key: "findInternalListType",
8653        value: function findInternalListType(_ref8) {
8654          var parents = _ref8.parents;
8655          var list = Object(lodash__WEBPACK_IMPORTED_MODULE_9__["find"])(parents, function (node) {
8656            return node.nodeName === 'UL' || node.nodeName === 'OL';
8657          });
8658          return list ? list.nodeName : null;
8659        }
8660      }, {
8661        key: "setupEditor",
8662        value: function setupEditor(editor) {
8663          var _this2 = this;
8664  
8665          editor.on('nodeChange', function (nodeInfo) {
8666            _this2.setState({
8667              internalListType: _this2.findInternalListType(nodeInfo)
8668            });
8669          }); // Check for languages that do not have square brackets on their keyboards.
8670  
8671          var lang = window.navigator.browserLanguage || window.navigator.language;
8672          var keyboardHasSquareBracket = !/^(?:fr|nl|sv|ru|de|es|it)/.test(lang);
8673  
8674          if (keyboardHasSquareBracket) {
8675            // `[` is keycode 219; `]` is keycode 221.
8676            editor.shortcuts.add('meta+219', 'Decrease indent', 'Outdent');
8677            editor.shortcuts.add('meta+221', 'Increase indent', 'Indent');
8678          } else {
8679            editor.shortcuts.add('meta+shift+m', 'Decrease indent', 'Outdent');
8680            editor.shortcuts.add('meta+m', 'Increase indent', 'Indent');
8681          }
8682  
8683          this.editor = editor;
8684        }
8685      }, {
8686        key: "createSetListType",
8687        value: function createSetListType(type, command) {
8688          var _this3 = this;
8689  
8690          return function () {
8691            var setAttributes = _this3.props.setAttributes;
8692            var internalListType = _this3.state.internalListType;
8693  
8694            if (internalListType) {
8695              // Only change list types, don't toggle off internal lists.
8696              if (internalListType !== type && _this3.editor) {
8697                _this3.editor.execCommand(command);
8698              }
8699            } else {
8700              setAttributes({
8701                ordered: type === 'OL'
8702              });
8703            }
8704          };
8705        }
8706      }, {
8707        key: "createExecCommand",
8708        value: function createExecCommand(command) {
8709          var _this4 = this;
8710  
8711          return function () {
8712            if (_this4.editor) {
8713              _this4.editor.execCommand(command);
8714            }
8715          };
8716        }
8717      }, {
8718        key: "getEditorSettings",
8719        value: function getEditorSettings(editorSettings) {
8720          return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__["default"])({}, editorSettings, {
8721            plugins: (editorSettings.plugins || []).concat('lists'),
8722            lists_indent_on_tab: false
8723          });
8724        }
8725      }, {
8726        key: "setNextValues",
8727        value: function setNextValues(nextValues) {
8728          this.props.setAttributes({
8729            values: nextValues
8730          });
8731        }
8732      }, {
8733        key: "render",
8734        value: function render() {
8735          var _this$props = this.props,
8736              attributes = _this$props.attributes,
8737              insertBlocksAfter = _this$props.insertBlocksAfter,
8738              setAttributes = _this$props.setAttributes,
8739              mergeBlocks = _this$props.mergeBlocks,
8740              onReplace = _this$props.onReplace,
8741              className = _this$props.className;
8742          var ordered = attributes.ordered,
8743              values = attributes.values;
8744          var tagName = ordered ? 'ol' : 'ul';
8745          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["BlockControls"], {
8746            controls: [{
8747              icon: 'editor-ul',
8748              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Convert to unordered list'),
8749              isActive: !ordered,
8750              onClick: this.createSetListType('UL', 'InsertUnorderedList')
8751            }, {
8752              icon: 'editor-ol',
8753              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Convert to ordered list'),
8754              isActive: ordered,
8755              onClick: this.createSetListType('OL', 'InsertOrderedList')
8756            }, {
8757              icon: 'editor-outdent',
8758              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Outdent list item'),
8759              onClick: this.createExecCommand('Outdent')
8760            }, {
8761              icon: 'editor-indent',
8762              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Indent list item'),
8763              onClick: this.createExecCommand('Indent')
8764            }]
8765          }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"], {
8766            multiline: "li",
8767            tagName: tagName,
8768            unstableGetSettings: this.getEditorSettings,
8769            unstableOnSetup: this.setupEditor,
8770            onChange: this.setNextValues,
8771            value: values,
8772            wrapperClassName: "block-library-list",
8773            className: className,
8774            placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Write list…'),
8775            onMerge: mergeBlocks,
8776            onSplit: insertBlocksAfter ? function (before, after) {
8777              for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
8778                blocks[_key - 2] = arguments[_key];
8779              }
8780  
8781              if (!blocks.length) {
8782                blocks.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/paragraph'));
8783              }
8784  
8785              if (after !== '<li></li>') {
8786                blocks.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
8787                  ordered: ordered,
8788                  values: after
8789                }));
8790              }
8791  
8792              setAttributes({
8793                values: before
8794              });
8795              insertBlocksAfter(blocks);
8796            } : undefined,
8797            onRemove: function onRemove() {
8798              return onReplace([]);
8799            }
8800          }));
8801        }
8802      }]);
8803  
8804      return edit;
8805    }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]),
8806    save: function save(_ref9) {
8807      var attributes = _ref9.attributes;
8808      var ordered = attributes.ordered,
8809          values = attributes.values;
8810      var tagName = ordered ? 'ol' : 'ul';
8811      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"].Content, {
8812        tagName: tagName,
8813        value: values,
8814        multiline: "li"
8815      });
8816    }
8817  };
8818  
8819  
8820  /***/ }),
8821  
8822  /***/ "./node_modules/@wordpress/block-library/build-module/more/edit.js":
8823  /*!*************************************************************************!*\
8824    !*** ./node_modules/@wordpress/block-library/build-module/more/edit.js ***!
8825    \*************************************************************************/
8826  /*! exports provided: default */
8827  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8828  
8829  "use strict";
8830  __webpack_require__.r(__webpack_exports__);
8831  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MoreEdit; });
8832  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
8833  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
8834  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
8835  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
8836  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
8837  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
8838  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8839  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
8840  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8841  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);
8842  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
8843  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
8844  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
8845  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_9__);
8846  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
8847  /* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__);
8848  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
8849  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__);
8850  
8851  
8852  
8853  
8854  
8855  
8856  
8857  
8858  /**
8859   * WordPress dependencies
8860   */
8861  
8862  
8863  
8864  
8865  
8866  
8867  
8868  var MoreEdit =
8869  /*#__PURE__*/
8870  function (_Component) {
8871    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(MoreEdit, _Component);
8872  
8873    function MoreEdit() {
8874      var _this;
8875  
8876      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, MoreEdit);
8877  
8878      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(MoreEdit).apply(this, arguments));
8879      _this.onChangeInput = _this.onChangeInput.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
8880      _this.onKeyDown = _this.onKeyDown.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
8881      _this.state = {
8882        defaultText: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["__"])('Read more')
8883      };
8884      return _this;
8885    }
8886  
8887    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(MoreEdit, [{
8888      key: "onChangeInput",
8889      value: function onChangeInput(event) {
8890        // Set defaultText to an empty string, allowing the user to clear/replace the input field's text
8891        this.setState({
8892          defaultText: ''
8893        });
8894        var value = event.target.value.length === 0 ? undefined : event.target.value;
8895        this.props.setAttributes({
8896          customText: value
8897        });
8898      }
8899    }, {
8900      key: "onKeyDown",
8901      value: function onKeyDown(event) {
8902        var keyCode = event.keyCode;
8903        var insertBlocksAfter = this.props.insertBlocksAfter;
8904  
8905        if (keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["ENTER"]) {
8906          insertBlocksAfter([Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["getDefaultBlockName"])())]);
8907        }
8908      }
8909    }, {
8910      key: "render",
8911      value: function render() {
8912        var _this$props$attribute = this.props.attributes,
8913            customText = _this$props$attribute.customText,
8914            noTeaser = _this$props$attribute.noTeaser;
8915        var setAttributes = this.props.setAttributes;
8916  
8917        var toggleNoTeaser = function toggleNoTeaser() {
8918          return setAttributes({
8919            noTeaser: !noTeaser
8920          });
8921        };
8922  
8923        var defaultText = this.state.defaultText;
8924        var value = customText !== undefined ? customText : defaultText;
8925        var inputLength = value.length + 1;
8926        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_9__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["PanelBody"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["ToggleControl"], {
8927          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["__"])('Hide the teaser before the "More" tag'),
8928          checked: !!noTeaser,
8929          onChange: toggleNoTeaser
8930        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
8931          className: "wp-block-more"
8932        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("input", {
8933          type: "text",
8934          value: value,
8935          size: inputLength,
8936          onChange: this.onChangeInput,
8937          onKeyDown: this.onKeyDown
8938        })));
8939      }
8940    }]);
8941  
8942    return MoreEdit;
8943  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
8944  
8945  
8946  
8947  
8948  /***/ }),
8949  
8950  /***/ "./node_modules/@wordpress/block-library/build-module/more/index.js":
8951  /*!**************************************************************************!*\
8952    !*** ./node_modules/@wordpress/block-library/build-module/more/index.js ***!
8953    \**************************************************************************/
8954  /*! exports provided: name, settings */
8955  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8956  
8957  "use strict";
8958  __webpack_require__.r(__webpack_exports__);
8959  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
8960  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
8961  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8962  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8963  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
8964  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
8965  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8966  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
8967  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
8968  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
8969  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/more/edit.js");
8970  
8971  
8972  /**
8973   * External dependencies
8974   */
8975  
8976  /**
8977   * WordPress dependencies
8978   */
8979  
8980  
8981  
8982  
8983  /**
8984   * Internal dependencies
8985   */
8986  
8987  
8988  var name = 'core/more';
8989  var settings = {
8990    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('More', 'block name'),
8991    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Want to show only part of this post on your blog’s home page? Insert a "More" block where you want the split.'),
8992    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
8993      viewBox: "0 0 24 24",
8994      xmlns: "http://www.w3.org/2000/svg"
8995    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8996      fill: "none",
8997      d: "M0 0h24v24H0V0z"
8998    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
8999      d: "M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"
9000    }))),
9001    category: 'layout',
9002    supports: {
9003      customClassName: false,
9004      className: false,
9005      html: false,
9006      multiple: false
9007    },
9008    attributes: {
9009      customText: {
9010        type: 'string'
9011      },
9012      noTeaser: {
9013        type: 'boolean',
9014        default: false
9015      }
9016    },
9017    transforms: {
9018      from: [{
9019        type: 'raw',
9020        schema: {
9021          'wp-block': {
9022            attributes: ['data-block']
9023          }
9024        },
9025        isMatch: function isMatch(node) {
9026          return node.dataset && node.dataset.block === 'core/more';
9027        },
9028        transform: function transform(node) {
9029          var _node$dataset = node.dataset,
9030              customText = _node$dataset.customText,
9031              noTeaser = _node$dataset.noTeaser;
9032          var attrs = {}; // Don't copy unless defined and not an empty string
9033  
9034          if (customText) {
9035            attrs.customText = customText;
9036          } // Special handling for boolean
9037  
9038  
9039          if (noTeaser === '') {
9040            attrs.noTeaser = true;
9041          }
9042  
9043          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/more', attrs);
9044        }
9045      }]
9046    },
9047    edit: _edit__WEBPACK_IMPORTED_MODULE_4__["default"],
9048    save: function save(_ref) {
9049      var attributes = _ref.attributes;
9050      var customText = attributes.customText,
9051          noTeaser = attributes.noTeaser;
9052      var moreTag = customText ? "<!--more ".concat(customText, "-->") : '<!--more-->';
9053      var noTeaserTag = noTeaser ? '<!--noteaser-->' : '';
9054      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, Object(lodash__WEBPACK_IMPORTED_MODULE_1__["compact"])([moreTag, noTeaserTag]).join('\n'));
9055    }
9056  };
9057  
9058  
9059  /***/ }),
9060  
9061  /***/ "./node_modules/@wordpress/block-library/build-module/nextpage/index.js":
9062  /*!******************************************************************************!*\
9063    !*** ./node_modules/@wordpress/block-library/build-module/nextpage/index.js ***!
9064    \******************************************************************************/
9065  /*! exports provided: name, settings */
9066  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9067  
9068  "use strict";
9069  __webpack_require__.r(__webpack_exports__);
9070  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
9071  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
9072  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
9073  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
9074  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
9075  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
9076  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
9077  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
9078  
9079  
9080  /**
9081   * WordPress dependencies
9082   */
9083  
9084  
9085  
9086  var name = 'core/nextpage';
9087  var settings = {
9088    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Page break'),
9089    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('This block allows you to set break points on your post. Visitors of your blog are then presented with content split into multiple pages.'),
9090    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
9091      xmlns: "http://www.w3.org/2000/svg",
9092      viewBox: "0 0 24 24"
9093    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
9094      d: "M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"
9095    }))),
9096    category: 'layout',
9097    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('next page'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('pagination')],
9098    supports: {
9099      customClassName: false,
9100      className: false,
9101      html: false
9102    },
9103    attributes: {},
9104    transforms: {
9105      from: [{
9106        type: 'raw',
9107        schema: {
9108          'wp-block': {
9109            attributes: ['data-block']
9110          }
9111        },
9112        isMatch: function isMatch(node) {
9113          return node.dataset && node.dataset.block === 'core/nextpage';
9114        },
9115        transform: function transform() {
9116          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/nextpage', {});
9117        }
9118      }]
9119    },
9120    edit: function edit() {
9121      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
9122        className: "wp-block-nextpage"
9123      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Page break')));
9124    },
9125    save: function save() {
9126      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, '<!--nextpage-->');
9127    }
9128  };
9129  
9130  
9131  /***/ }),
9132  
9133  /***/ "./node_modules/@wordpress/block-library/build-module/paragraph/edit.js":
9134  /*!******************************************************************************!*\
9135    !*** ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js ***!
9136    \******************************************************************************/
9137  /*! exports provided: default */
9138  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9139  
9140  "use strict";
9141  __webpack_require__.r(__webpack_exports__);
9142  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
9143  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
9144  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
9145  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
9146  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
9147  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
9148  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
9149  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
9150  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
9151  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
9152  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__);
9153  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
9154  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
9155  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
9156  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__);
9157  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
9158  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__);
9159  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
9160  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__);
9161  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
9162  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_14__);
9163  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
9164  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_15__);
9165  
9166  
9167  
9168  
9169  
9170  
9171  
9172  
9173  
9174  
9175  
9176  /**
9177   * External dependencies
9178   */
9179  
9180  /**
9181   * WordPress dependencies
9182   */
9183  
9184  
9185  
9186  
9187  
9188  
9189  
9190  var _window = window,
9191      getComputedStyle = _window.getComputedStyle;
9192  var name = 'core/paragraph';
9193  var applyFallbackStyles = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["withFallbackStyles"])(function (node, ownProps) {
9194    var _ownProps$attributes = ownProps.attributes,
9195        textColor = _ownProps$attributes.textColor,
9196        backgroundColor = _ownProps$attributes.backgroundColor,
9197        fontSize = _ownProps$attributes.fontSize,
9198        customFontSize = _ownProps$attributes.customFontSize;
9199    var editableNode = node.querySelector('[contenteditable="true"]'); //verify if editableNode is available, before using getComputedStyle.
9200  
9201    var computedStyles = editableNode ? getComputedStyle(editableNode) : null;
9202    return {
9203      fallbackBackgroundColor: backgroundColor || !computedStyles ? undefined : computedStyles.backgroundColor,
9204      fallbackTextColor: textColor || !computedStyles ? undefined : computedStyles.color,
9205      fallbackFontSize: fontSize || customFontSize || !computedStyles ? undefined : parseInt(computedStyles.fontSize) || undefined
9206    };
9207  });
9208  
9209  var ParagraphBlock =
9210  /*#__PURE__*/
9211  function (_Component) {
9212    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_7__["default"])(ParagraphBlock, _Component);
9213  
9214    function ParagraphBlock() {
9215      var _this;
9216  
9217      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__["default"])(this, ParagraphBlock);
9218  
9219      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__["default"])(ParagraphBlock).apply(this, arguments));
9220      _this.onReplace = _this.onReplace.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__["default"])(_this)));
9221      _this.toggleDropCap = _this.toggleDropCap.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__["default"])(_this)));
9222      _this.splitBlock = _this.splitBlock.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_8__["default"])(_this)));
9223      return _this;
9224    }
9225  
9226    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(ParagraphBlock, [{
9227      key: "onReplace",
9228      value: function onReplace(blocks) {
9229        var _this$props = this.props,
9230            attributes = _this$props.attributes,
9231            onReplace = _this$props.onReplace;
9232        onReplace(blocks.map(function (block, index) {
9233          return index === 0 && block.name === name ? Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__["default"])({}, block, {
9234            attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__["default"])({}, attributes, block.attributes)
9235          }) : block;
9236        }));
9237      }
9238    }, {
9239      key: "toggleDropCap",
9240      value: function toggleDropCap() {
9241        var _this$props2 = this.props,
9242            attributes = _this$props2.attributes,
9243            setAttributes = _this$props2.setAttributes;
9244        setAttributes({
9245          dropCap: !attributes.dropCap
9246        });
9247      }
9248    }, {
9249      key: "getDropCapHelp",
9250      value: function getDropCapHelp(checked) {
9251        return checked ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Showing large initial letter.') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Toggle to show a large initial letter.');
9252      }
9253      /**
9254       * Split handler for RichText value, namely when content is pasted or the
9255       * user presses the Enter key.
9256       *
9257       * @param {?Array}     before Optional before value, to be used as content
9258       *                            in place of what exists currently for the
9259       *                            block. If undefined, the block is deleted.
9260       * @param {?Array}     after  Optional after value, to be appended in a new
9261       *                            paragraph block to the set of blocks passed
9262       *                            as spread.
9263       * @param {...WPBlock} blocks Optional blocks inserted between the before
9264       *                            and after value blocks.
9265       */
9266  
9267    }, {
9268      key: "splitBlock",
9269      value: function splitBlock(before, after) {
9270        var _this$props3 = this.props,
9271            attributes = _this$props3.attributes,
9272            insertBlocksAfter = _this$props3.insertBlocksAfter,
9273            setAttributes = _this$props3.setAttributes,
9274            onReplace = _this$props3.onReplace;
9275  
9276        for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
9277          blocks[_key - 2] = arguments[_key];
9278        }
9279  
9280        if (after !== null) {
9281          // Append "After" content as a new paragraph block to the end of
9282          // any other blocks being inserted after the current paragraph.
9283          blocks.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_14__["createBlock"])(name, {
9284            content: after
9285          }));
9286        }
9287  
9288        if (blocks.length && insertBlocksAfter) {
9289          insertBlocksAfter(blocks);
9290        }
9291  
9292        var content = attributes.content;
9293  
9294        if (before === null) {
9295          // If before content is omitted, treat as intent to delete block.
9296          onReplace([]);
9297        } else if (content !== before) {
9298          // Only update content if it has in-fact changed. In case that user
9299          // has created a new paragraph at end of an existing one, the value
9300          // of before will be strictly equal to the current content.
9301          setAttributes({
9302            content: before
9303          });
9304        }
9305      }
9306    }, {
9307      key: "render",
9308      value: function render() {
9309        var _classnames;
9310  
9311        var _this$props4 = this.props,
9312            attributes = _this$props4.attributes,
9313            setAttributes = _this$props4.setAttributes,
9314            mergeBlocks = _this$props4.mergeBlocks,
9315            onReplace = _this$props4.onReplace,
9316            className = _this$props4.className,
9317            backgroundColor = _this$props4.backgroundColor,
9318            textColor = _this$props4.textColor,
9319            setBackgroundColor = _this$props4.setBackgroundColor,
9320            setTextColor = _this$props4.setTextColor,
9321            fallbackBackgroundColor = _this$props4.fallbackBackgroundColor,
9322            fallbackTextColor = _this$props4.fallbackTextColor,
9323            fallbackFontSize = _this$props4.fallbackFontSize,
9324            fontSize = _this$props4.fontSize,
9325            setFontSize = _this$props4.setFontSize;
9326        var align = attributes.align,
9327            content = attributes.content,
9328            dropCap = attributes.dropCap,
9329            placeholder = attributes.placeholder;
9330        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["AlignmentToolbar"], {
9331          value: align,
9332          onChange: function onChange(nextAlign) {
9333            setAttributes({
9334              align: nextAlign
9335            });
9336          }
9337        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["PanelBody"], {
9338          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Text Settings'),
9339          className: "blocks-font-size"
9340        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["FontSizePicker"], {
9341          fallbackFontSize: fallbackFontSize,
9342          value: fontSize.size,
9343          onChange: setFontSize
9344        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_12__["ToggleControl"], {
9345          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Drop Cap'),
9346          checked: !!dropCap,
9347          onChange: this.toggleDropCap,
9348          help: this.getDropCapHelp
9349        })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["PanelColorSettings"], {
9350          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Color Settings'),
9351          initialOpen: false,
9352          colorSettings: [{
9353            value: backgroundColor.color,
9354            onChange: setBackgroundColor,
9355            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Background Color')
9356          }, {
9357            value: textColor.color,
9358            onChange: setTextColor,
9359            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Text Color')
9360          }]
9361        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["ContrastChecker"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
9362          textColor: textColor.color,
9363          backgroundColor: backgroundColor.color,
9364          fallbackTextColor: fallbackTextColor,
9365          fallbackBackgroundColor: fallbackBackgroundColor
9366        }, {
9367          fontSize: fontSize.size
9368        })))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["RichText"], {
9369          tagName: "p",
9370          className: classnames__WEBPACK_IMPORTED_MODULE_10___default()('wp-block-paragraph', className, (_classnames = {
9371            'has-text-color': textColor.color,
9372            'has-background': backgroundColor.color,
9373            'has-drop-cap': dropCap
9374          }, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, backgroundColor.class, backgroundColor.class), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, textColor.class, textColor.class), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, fontSize.class, fontSize.class), _classnames)),
9375          style: {
9376            backgroundColor: backgroundColor.color,
9377            color: textColor.color,
9378            fontSize: fontSize.size ? fontSize.size + 'px' : undefined,
9379            textAlign: align
9380          },
9381          value: content,
9382          onChange: function onChange(nextContent) {
9383            setAttributes({
9384              content: nextContent
9385            });
9386          },
9387          onSplit: this.splitBlock,
9388          onMerge: mergeBlocks,
9389          onReplace: this.onReplace,
9390          onRemove: function onRemove() {
9391            return onReplace([]);
9392          },
9393          placeholder: placeholder || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Add text or type / to add content')
9394        }));
9395      }
9396    }]);
9397  
9398    return ParagraphBlock;
9399  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["Component"]);
9400  
9401  var ParagraphEdit = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_15__["compose"])([Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["withColors"])('backgroundColor', {
9402    textColor: 'color'
9403  }), Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["withFontSizes"])('fontSize'), applyFallbackStyles])(ParagraphBlock);
9404  /* harmony default export */ __webpack_exports__["default"] = (ParagraphEdit);
9405  
9406  
9407  /***/ }),
9408  
9409  /***/ "./node_modules/@wordpress/block-library/build-module/paragraph/index.js":
9410  /*!*******************************************************************************!*\
9411    !*** ./node_modules/@wordpress/block-library/build-module/paragraph/index.js ***!
9412    \*******************************************************************************/
9413  /*! exports provided: name, settings */
9414  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9415  
9416  "use strict";
9417  __webpack_require__.r(__webpack_exports__);
9418  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
9419  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
9420  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
9421  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
9422  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
9423  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
9424  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
9425  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
9426  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ "lodash");
9427  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
9428  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
9429  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
9430  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
9431  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
9432  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
9433  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__);
9434  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/paragraph/edit.js");
9435  
9436  
9437  
9438  
9439  /**
9440   * External dependencies
9441   */
9442  
9443  
9444  /**
9445   * WordPress dependencies
9446   */
9447  
9448  
9449  
9450  
9451  
9452  /**
9453   * Internal dependencies
9454   */
9455  
9456  
9457  var supports = {
9458    className: false
9459  };
9460  var schema = {
9461    content: {
9462      source: 'html',
9463      selector: 'p',
9464      default: ''
9465    },
9466    align: {
9467      type: 'string'
9468    },
9469    dropCap: {
9470      type: 'boolean',
9471      default: false
9472    },
9473    placeholder: {
9474      type: 'string'
9475    },
9476    textColor: {
9477      type: 'string'
9478    },
9479    customTextColor: {
9480      type: 'string'
9481    },
9482    backgroundColor: {
9483      type: 'string'
9484    },
9485    customBackgroundColor: {
9486      type: 'string'
9487    },
9488    fontSize: {
9489      type: 'string'
9490    },
9491    customFontSize: {
9492      type: 'number'
9493    }
9494  };
9495  var name = 'core/paragraph';
9496  var settings = {
9497    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Paragraph'),
9498    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Add some basic text.'),
9499    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("svg", {
9500      xmlns: "http://www.w3.org/2000/svg",
9501      viewBox: "0 0 24 24"
9502    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
9503      d: "M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"
9504    })),
9505    category: 'common',
9506    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('text')],
9507    supports: supports,
9508    attributes: schema,
9509    transforms: {
9510      from: [{
9511        type: 'raw',
9512        // Paragraph is a fallback and should be matched last.
9513        priority: 20,
9514        selector: 'p',
9515        schema: {
9516          p: {
9517            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["getPhrasingContentSchema"])()
9518          }
9519        }
9520      }]
9521    },
9522    deprecated: [{
9523      supports: supports,
9524      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, schema, {
9525        width: {
9526          type: 'string'
9527        }
9528      }),
9529      save: function save(_ref) {
9530        var _classnames;
9531  
9532        var attributes = _ref.attributes;
9533        var width = attributes.width,
9534            align = attributes.align,
9535            content = attributes.content,
9536            dropCap = attributes.dropCap,
9537            backgroundColor = attributes.backgroundColor,
9538            textColor = attributes.textColor,
9539            customBackgroundColor = attributes.customBackgroundColor,
9540            customTextColor = attributes.customTextColor,
9541            fontSize = attributes.fontSize,
9542            customFontSize = attributes.customFontSize;
9543        var textClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('color', textColor);
9544        var backgroundClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('background-color', backgroundColor);
9545        var fontSizeClass = fontSize && "is-".concat(fontSize, "-text");
9546        var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, "align".concat(width), width), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, 'has-drop-cap', dropCap), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, fontSizeClass, fontSizeClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, textClass, textClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames, backgroundClass, backgroundClass), _classnames));
9547        var styles = {
9548          backgroundColor: backgroundClass ? undefined : customBackgroundColor,
9549          color: textClass ? undefined : customTextColor,
9550          fontSize: fontSizeClass ? undefined : customFontSize,
9551          textAlign: align
9552        };
9553        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
9554          tagName: "p",
9555          style: styles,
9556          className: className ? className : undefined,
9557          value: content
9558        });
9559      }
9560    }, {
9561      supports: supports,
9562      attributes: Object(lodash__WEBPACK_IMPORTED_MODULE_4__["omit"])(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, schema, {
9563        fontSize: {
9564          type: 'number'
9565        }
9566      }), 'customFontSize', 'customTextColor', 'customBackgroundColor'),
9567      save: function save(_ref2) {
9568        var _classnames2;
9569  
9570        var attributes = _ref2.attributes;
9571        var width = attributes.width,
9572            align = attributes.align,
9573            content = attributes.content,
9574            dropCap = attributes.dropCap,
9575            backgroundColor = attributes.backgroundColor,
9576            textColor = attributes.textColor,
9577            fontSize = attributes.fontSize;
9578        var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames2, "align".concat(width), width), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames2, 'has-background', backgroundColor), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames2, 'has-drop-cap', dropCap), _classnames2));
9579        var styles = {
9580          backgroundColor: backgroundColor,
9581          color: textColor,
9582          fontSize: fontSize,
9583          textAlign: align
9584        };
9585        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", {
9586          style: styles,
9587          className: className ? className : undefined
9588        }, content);
9589      },
9590      migrate: function migrate(attributes) {
9591        return Object(lodash__WEBPACK_IMPORTED_MODULE_4__["omit"])(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, attributes, {
9592          customFontSize: Object(lodash__WEBPACK_IMPORTED_MODULE_4__["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined,
9593          customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
9594          customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined
9595        }), ['fontSize', 'textColor', 'backgroundColor']);
9596      }
9597    }, {
9598      supports: supports,
9599      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, schema, {
9600        content: {
9601          type: 'string',
9602          source: 'html'
9603        }
9604      }),
9605      save: function save(_ref3) {
9606        var attributes = _ref3.attributes;
9607        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["RawHTML"], null, attributes.content);
9608      },
9609      migrate: function migrate(attributes) {
9610        return attributes;
9611      }
9612    }],
9613    merge: function merge(attributes, attributesToMerge) {
9614      return {
9615        content: attributes.content + attributesToMerge.content
9616      };
9617    },
9618    getEditWrapperProps: function getEditWrapperProps(attributes) {
9619      var width = attributes.width;
9620  
9621      if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) {
9622        return {
9623          'data-align': width
9624        };
9625      }
9626    },
9627    edit: _edit__WEBPACK_IMPORTED_MODULE_8__["default"],
9628    save: function save(_ref4) {
9629      var _classnames3;
9630  
9631      var attributes = _ref4.attributes;
9632      var align = attributes.align,
9633          content = attributes.content,
9634          dropCap = attributes.dropCap,
9635          backgroundColor = attributes.backgroundColor,
9636          textColor = attributes.textColor,
9637          customBackgroundColor = attributes.customBackgroundColor,
9638          customTextColor = attributes.customTextColor,
9639          fontSize = attributes.fontSize,
9640          customFontSize = attributes.customFontSize;
9641      var textClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('color', textColor);
9642      var backgroundClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('background-color', backgroundColor);
9643      var fontSizeClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getFontSizeClass"])(fontSize);
9644      var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames3 = {
9645        'has-text-color': textColor || customTextColor,
9646        'has-background': backgroundColor || customBackgroundColor,
9647        'has-drop-cap': dropCap
9648      }, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames3, fontSizeClass, fontSizeClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames3, textClass, textClass), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classnames3, backgroundClass, backgroundClass), _classnames3));
9649      var styles = {
9650        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
9651        color: textClass ? undefined : customTextColor,
9652        fontSize: fontSizeClass ? undefined : customFontSize,
9653        textAlign: align
9654      };
9655      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
9656        tagName: "p",
9657        style: styles,
9658        className: className ? className : undefined,
9659        value: content
9660      });
9661    }
9662  };
9663  
9664  
9665  /***/ }),
9666  
9667  /***/ "./node_modules/@wordpress/block-library/build-module/preformatted/index.js":
9668  /*!**********************************************************************************!*\
9669    !*** ./node_modules/@wordpress/block-library/build-module/preformatted/index.js ***!
9670    \**********************************************************************************/
9671  /*! exports provided: name, settings */
9672  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9673  
9674  "use strict";
9675  __webpack_require__.r(__webpack_exports__);
9676  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
9677  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
9678  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
9679  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
9680  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
9681  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
9682  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
9683  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
9684  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
9685  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__);
9686  
9687  
9688  /**
9689   * WordPress
9690   */
9691  
9692  
9693  
9694  var name = 'core/preformatted';
9695  var settings = {
9696    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Preformatted'),
9697    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add text that respects your spacing and tabs, and also allows styling.'),
9698    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
9699      viewBox: "0 0 24 24",
9700      xmlns: "http://www.w3.org/2000/svg"
9701    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
9702      d: "M0,0h24v24H0V0z",
9703      fill: "none"
9704    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
9705      d: "M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"
9706    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
9707      x: "6",
9708      y: "10",
9709      width: "2",
9710      height: "2"
9711    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
9712      x: "6",
9713      y: "14",
9714      width: "8",
9715      height: "2"
9716    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
9717      x: "16",
9718      y: "14",
9719      width: "2",
9720      height: "2"
9721    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
9722      x: "10",
9723      y: "10",
9724      width: "8",
9725      height: "2"
9726    })),
9727    category: 'formatting',
9728    attributes: {
9729      content: {
9730        source: 'html',
9731        selector: 'pre'
9732      }
9733    },
9734    transforms: {
9735      from: [{
9736        type: 'block',
9737        blocks: ['core/code', 'core/paragraph'],
9738        transform: function transform(_ref) {
9739          var content = _ref.content;
9740          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/preformatted', {
9741            content: content
9742          });
9743        }
9744      }, {
9745        type: 'raw',
9746        isMatch: function isMatch(node) {
9747          return node.nodeName === 'PRE' && !(node.children.length === 1 && node.firstChild.nodeName === 'CODE');
9748        },
9749        schema: {
9750          pre: {
9751            children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["getPhrasingContentSchema"])()
9752          }
9753        }
9754      }],
9755      to: [{
9756        type: 'block',
9757        blocks: ['core/paragraph'],
9758        transform: function transform(attributes) {
9759          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/paragraph', attributes);
9760        }
9761      }]
9762    },
9763    edit: function edit(_ref2) {
9764      var attributes = _ref2.attributes,
9765          mergeBlocks = _ref2.mergeBlocks,
9766          setAttributes = _ref2.setAttributes,
9767          className = _ref2.className;
9768      var content = attributes.content;
9769      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"], {
9770        tagName: "pre",
9771        value: content,
9772        onChange: function onChange(nextContent) {
9773          setAttributes({
9774            content: nextContent
9775          });
9776        },
9777        placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Write preformatted text…'),
9778        wrapperClassName: className,
9779        onMerge: mergeBlocks
9780      });
9781    },
9782    save: function save(_ref3) {
9783      var attributes = _ref3.attributes;
9784      var content = attributes.content;
9785      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"].Content, {
9786        tagName: "pre",
9787        value: content
9788      });
9789    },
9790    merge: function merge(attributes, attributesToMerge) {
9791      return {
9792        content: attributes.content + attributesToMerge.content
9793      };
9794    }
9795  };
9796  
9797  
9798  /***/ }),
9799  
9800  /***/ "./node_modules/@wordpress/block-library/build-module/pullquote/edit.js":
9801  /*!******************************************************************************!*\
9802    !*** ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js ***!
9803    \******************************************************************************/
9804  /*! exports provided: SOLID_COLOR_STYLE_NAME, SOLID_COLOR_CLASS, default */
9805  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9806  
9807  "use strict";
9808  __webpack_require__.r(__webpack_exports__);
9809  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOLID_COLOR_STYLE_NAME", function() { return SOLID_COLOR_STYLE_NAME; });
9810  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOLID_COLOR_CLASS", function() { return SOLID_COLOR_CLASS; });
9811  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
9812  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
9813  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
9814  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
9815  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
9816  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
9817  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
9818  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
9819  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
9820  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
9821  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
9822  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
9823  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash */ "lodash");
9824  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
9825  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
9826  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__);
9827  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
9828  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__);
9829  
9830  
9831  
9832  
9833  
9834  
9835  
9836  
9837  
9838  
9839  /**
9840   * External dependencies
9841   */
9842  
9843  
9844  /**
9845   * WordPress dependencies
9846   */
9847  
9848  
9849  
9850  
9851  var SOLID_COLOR_STYLE_NAME = 'solid-color';
9852  var SOLID_COLOR_CLASS = "is-style-".concat(SOLID_COLOR_STYLE_NAME);
9853  
9854  var PullQuoteEdit =
9855  /*#__PURE__*/
9856  function (_Component) {
9857    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(PullQuoteEdit, _Component);
9858  
9859    function PullQuoteEdit(props) {
9860      var _this;
9861  
9862      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, PullQuoteEdit);
9863  
9864      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(PullQuoteEdit).call(this, props));
9865      _this.wasTextColorAutomaticallyComputed = false;
9866      _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
9867      _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
9868      return _this;
9869    }
9870  
9871    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(PullQuoteEdit, [{
9872      key: "pullQuoteMainColorSetter",
9873      value: function pullQuoteMainColorSetter(colorValue) {
9874        var _this$props = this.props,
9875            colorUtils = _this$props.colorUtils,
9876            textColor = _this$props.textColor,
9877            setTextColor = _this$props.setTextColor,
9878            setMainColor = _this$props.setMainColor;
9879        setMainColor(colorValue);
9880  
9881        if (!textColor.color || this.wasTextColorAutomaticallyComputed) {
9882          this.wasTextColorAutomaticallyComputed = true;
9883          setTextColor(colorUtils.getMostReadableColor(colorValue));
9884        }
9885      }
9886    }, {
9887      key: "pullQuoteTextColorSetter",
9888      value: function pullQuoteTextColorSetter(colorValue) {
9889        var setTextColor = this.props.setTextColor;
9890        setTextColor(colorValue);
9891        this.wasTextColorAutomaticallyComputed = false;
9892      }
9893    }, {
9894      key: "render",
9895      value: function render() {
9896        var _this$props2 = this.props,
9897            attributes = _this$props2.attributes,
9898            mainColor = _this$props2.mainColor,
9899            textColor = _this$props2.textColor,
9900            setAttributes = _this$props2.setAttributes,
9901            isSelected = _this$props2.isSelected,
9902            className = _this$props2.className;
9903        var value = attributes.value,
9904            citation = attributes.citation;
9905        var isSolidColorStyle = Object(lodash__WEBPACK_IMPORTED_MODULE_10__["includes"])(className, SOLID_COLOR_CLASS);
9906        var figureStyle = isSolidColorStyle ? {
9907          backgroundColor: mainColor.color
9908        } : {
9909          borderColor: mainColor.color
9910        };
9911        var blockquoteStyle = {
9912          color: textColor.color
9913        };
9914        var blockquoteClasses = textColor.color ? classnames__WEBPACK_IMPORTED_MODULE_9___default()('has-text-color', Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, textColor.class, textColor.class)) : undefined;
9915        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("figure", {
9916          style: figureStyle,
9917          className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(className, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, mainColor.class, isSolidColorStyle && mainColor.class))
9918        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("blockquote", {
9919          style: blockquoteStyle,
9920          className: blockquoteClasses
9921        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"], {
9922          multiline: "p",
9923          value: value,
9924          onChange: function onChange(nextValue) {
9925            return setAttributes({
9926              value: nextValue
9927            });
9928          }
9929          /* translators: the text of the quotation */
9930          ,
9931          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Write quote…'),
9932          wrapperClassName: "block-library-pullquote__content"
9933        }), (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"].isEmpty(citation) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["RichText"], {
9934          value: citation
9935          /* translators: the individual or entity quoted */
9936          ,
9937          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Write citation…'),
9938          onChange: function onChange(nextCitation) {
9939            return setAttributes({
9940              citation: nextCitation
9941            });
9942          },
9943          className: "wp-block-pullquote__citation"
9944        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["PanelColorSettings"], {
9945          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Color Settings'),
9946          colorSettings: [{
9947            value: mainColor.color,
9948            onChange: this.pullQuoteMainColorSetter,
9949            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Main Color')
9950          }, {
9951            value: textColor.color,
9952            onChange: this.pullQuoteTextColorSetter,
9953            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_11__["__"])('Text Color')
9954          }]
9955        }, isSolidColorStyle && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["ContrastChecker"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
9956          textColor: textColor.color,
9957          backgroundColor: mainColor.color
9958        }, {
9959          isLargeText: false
9960        })))));
9961      }
9962    }]);
9963  
9964    return PullQuoteEdit;
9965  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
9966  
9967  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_12__["withColors"])({
9968    mainColor: 'background-color',
9969    textColor: 'color'
9970  })(PullQuoteEdit));
9971  
9972  
9973  /***/ }),
9974  
9975  /***/ "./node_modules/@wordpress/block-library/build-module/pullquote/index.js":
9976  /*!*******************************************************************************!*\
9977    !*** ./node_modules/@wordpress/block-library/build-module/pullquote/index.js ***!
9978    \*******************************************************************************/
9979  /*! exports provided: name, settings */
9980  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9981  
9982  "use strict";
9983  __webpack_require__.r(__webpack_exports__);
9984  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
9985  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
9986  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
9987  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
9988  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
9989  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
9990  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
9991  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
9992  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ "lodash");
9993  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
9994  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
9995  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
9996  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
9997  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
9998  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
9999  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__);
10000  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/pullquote/edit.js");
10001  
10002  
10003  
10004  
10005  /**
10006   * External dependencies
10007   */
10008  
10009  
10010  /**
10011   * WordPress dependencies
10012   */
10013  
10014  
10015  
10016  
10017  
10018  var blockAttributes = {
10019    value: {
10020      source: 'html',
10021      selector: 'blockquote',
10022      multiline: 'p'
10023    },
10024    citation: {
10025      source: 'html',
10026      selector: 'cite'
10027    },
10028    mainColor: {
10029      type: 'string'
10030    },
10031    customMainColor: {
10032      type: 'string'
10033    },
10034    textColor: {
10035      type: 'string'
10036    },
10037    customTextColor: {
10038      type: 'string'
10039    }
10040  };
10041  var name = 'core/pullquote';
10042  var settings = {
10043    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Pullquote'),
10044    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Highlight a quote from your post or page by displaying it as a graphic element.'),
10045    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("svg", {
10046      viewBox: "0 0 24 24",
10047      xmlns: "http://www.w3.org/2000/svg"
10048    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
10049      d: "M0,0h24v24H0V0z",
10050      fill: "none"
10051    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("polygon", {
10052      points: "21 18 2 18 2 20 21 20"
10053    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
10054      d: "m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"
10055    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("polygon", {
10056      points: "21 4 2 4 2 6 21 6"
10057    })),
10058    category: 'formatting',
10059    attributes: blockAttributes,
10060    styles: [{
10061      name: 'default',
10062      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Regular'),
10063      isDefault: true
10064    }, {
10065      name: _edit__WEBPACK_IMPORTED_MODULE_8__["SOLID_COLOR_STYLE_NAME"],
10066      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Solid Color')
10067    }],
10068    supports: {
10069      align: ['left', 'right', 'wide', 'full']
10070    },
10071    edit: _edit__WEBPACK_IMPORTED_MODULE_8__["default"],
10072    save: function save(_ref) {
10073      var attributes = _ref.attributes;
10074      var mainColor = attributes.mainColor,
10075          customMainColor = attributes.customMainColor,
10076          textColor = attributes.textColor,
10077          customTextColor = attributes.customTextColor,
10078          value = attributes.value,
10079          citation = attributes.citation,
10080          className = attributes.className;
10081      var isSolidColorStyle = Object(lodash__WEBPACK_IMPORTED_MODULE_4__["includes"])(className, _edit__WEBPACK_IMPORTED_MODULE_8__["SOLID_COLOR_CLASS"]);
10082      var figureClass, figureStyles; // Is solid color style
10083  
10084      if (isSolidColorStyle) {
10085        figureClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('background-color', mainColor);
10086  
10087        if (!figureClass) {
10088          figureStyles = {
10089            backgroundColor: customMainColor
10090          };
10091        } // Is normal style and a custom color is being used ( we can set a style directly with its value)
10092  
10093      } else if (customMainColor) {
10094        figureStyles = {
10095          borderColor: customMainColor
10096        }; // Is normal style and a named color is being used, we need to retrieve the color value to set the style,
10097        // as there is no expectation that themes create classes that set border colors.
10098      } else if (mainColor) {
10099        var colors = Object(lodash__WEBPACK_IMPORTED_MODULE_4__["get"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["select"])('core/editor').getEditorSettings(), ['colors'], []);
10100        var colorObject = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorObjectByAttributeValues"])(colors, mainColor);
10101        figureStyles = {
10102          borderColor: colorObject.color
10103        };
10104      }
10105  
10106      var blockquoteTextColorClass = Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["getColorClassName"])('color', textColor);
10107      var blockquoteClasses = textColor || customTextColor ? classnames__WEBPACK_IMPORTED_MODULE_3___default()('has-text-color', Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined;
10108      var blockquoteStyle = blockquoteTextColorClass ? undefined : {
10109        color: customTextColor
10110      };
10111      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("figure", {
10112        className: figureClass,
10113        style: figureStyles
10114      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", {
10115        className: blockquoteClasses,
10116        style: blockquoteStyle
10117      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10118        value: value,
10119        multiline: "p"
10120      }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10121        tagName: "cite",
10122        value: citation
10123      })));
10124    },
10125    deprecated: [{
10126      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockAttributes),
10127      save: function save(_ref2) {
10128        var attributes = _ref2.attributes;
10129        var value = attributes.value,
10130            citation = attributes.citation;
10131        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10132          value: value,
10133          multiline: "p"
10134        }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10135          tagName: "cite",
10136          value: citation
10137        }));
10138      }
10139    }, {
10140      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockAttributes, {
10141        citation: {
10142          source: 'html',
10143          selector: 'footer'
10144        },
10145        align: {
10146          type: 'string',
10147          default: 'none'
10148        }
10149      }),
10150      save: function save(_ref3) {
10151        var attributes = _ref3.attributes;
10152        var value = attributes.value,
10153            citation = attributes.citation,
10154            align = attributes.align;
10155        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", {
10156          className: "align".concat(align)
10157        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10158          value: value
10159        }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10160          tagName: "footer",
10161          value: citation
10162        }));
10163      }
10164    }]
10165  };
10166  
10167  
10168  /***/ }),
10169  
10170  /***/ "./node_modules/@wordpress/block-library/build-module/quote/index.js":
10171  /*!***************************************************************************!*\
10172    !*** ./node_modules/@wordpress/block-library/build-module/quote/index.js ***!
10173    \***************************************************************************/
10174  /*! exports provided: name, settings */
10175  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10176  
10177  "use strict";
10178  __webpack_require__.r(__webpack_exports__);
10179  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
10180  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
10181  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
10182  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
10183  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10184  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
10185  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "lodash");
10186  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
10187  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
10188  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
10189  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
10190  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__);
10191  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
10192  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
10193  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
10194  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__);
10195  
10196  
10197  
10198  
10199  /**
10200   * External dependencies
10201   */
10202  
10203  /**
10204   * WordPress dependencies
10205   */
10206  
10207  
10208  
10209  
10210  
10211  
10212  var blockAttributes = {
10213    value: {
10214      source: 'html',
10215      selector: 'blockquote',
10216      multiline: 'p'
10217    },
10218    citation: {
10219      source: 'html',
10220      selector: 'cite'
10221    },
10222    align: {
10223      type: 'string'
10224    }
10225  };
10226  var name = 'core/quote';
10227  var settings = {
10228    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Quote'),
10229    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Maybe someone else said it better -- add some quoted text.'),
10230    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("svg", {
10231      viewBox: "0 0 24 24",
10232      xmlns: "http://www.w3.org/2000/svg"
10233    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
10234      fill: "none",
10235      d: "M0 0h24v24H0V0z"
10236    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("path", {
10237      d: "M19 18h-6l2-4h-2V6h8v7l-2 5zm-2-2l2-3V8h-4v4h4l-2 4zm-8 2H3l2-4H3V6h8v7l-2 5zm-2-2l2-3V8H5v4h4l-2 4z"
10238    }))),
10239    category: 'common',
10240    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('blockquote')],
10241    attributes: blockAttributes,
10242    styles: [{
10243      name: 'default',
10244      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Regular'),
10245      isDefault: true
10246    }, {
10247      name: 'large',
10248      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Large')
10249    }],
10250    transforms: {
10251      from: [{
10252        type: 'block',
10253        isMultiBlock: true,
10254        blocks: ['core/paragraph'],
10255        transform: function transform(attributes) {
10256          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/quote', {
10257            value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["toHTMLString"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["join"])(attributes.map(function (_ref) {
10258              var content = _ref.content;
10259              return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["create"])({
10260                html: content
10261              });
10262            }), "\u2028"), 'p')
10263          });
10264        }
10265      }, {
10266        type: 'block',
10267        blocks: ['core/heading'],
10268        transform: function transform(_ref2) {
10269          var content = _ref2.content;
10270          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/quote', {
10271            value: content
10272          });
10273        }
10274      }, {
10275        type: 'pattern',
10276        regExp: /^>\s/,
10277        transform: function transform(_ref3) {
10278          var content = _ref3.content;
10279          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/quote', {
10280            value: content
10281          });
10282        }
10283      }, {
10284        type: 'raw',
10285        selector: 'blockquote',
10286        schema: {
10287          blockquote: {
10288            children: {
10289              p: {
10290                children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["getPhrasingContentSchema"])()
10291              }
10292            }
10293          }
10294        }
10295      }],
10296      to: [{
10297        type: 'block',
10298        blocks: ['core/paragraph'],
10299        transform: function transform(_ref4) {
10300          var value = _ref4.value;
10301          return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["create"])({
10302            html: value,
10303            multilineTag: 'p'
10304          }), "\u2028").map(function (piece) {
10305            return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/paragraph', {
10306              content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["toHTMLString"])(piece)
10307            });
10308          });
10309        }
10310      }, {
10311        type: 'block',
10312        blocks: ['core/heading'],
10313        transform: function transform(_ref5) {
10314          var value = _ref5.value,
10315              citation = _ref5.citation,
10316              attrs = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref5, ["value", "citation"]);
10317  
10318          // If there is no quote content, use the citation as the
10319          // content of the resulting heading. A nonexistent citation
10320          // will result in an empty heading.
10321          if (value === '<p></p>') {
10322            return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/heading', {
10323              content: citation
10324            });
10325          }
10326  
10327          var pieces = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["create"])({
10328            html: value,
10329            multilineTag: 'p'
10330          }), "\u2028");
10331          var quotePieces = pieces.slice(1);
10332          return [Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/heading', {
10333            content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["toHTMLString"])(pieces[0])
10334          }), Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["createBlock"])('core/quote', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, attrs, {
10335            citation: citation,
10336            value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["toHTMLString"])(quotePieces.length ? Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["join"])(pieces.slice(1), "\u2028") : Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_7__["create"])(), 'p')
10337          }))];
10338        }
10339      }]
10340    },
10341    edit: function edit(_ref6) {
10342      var attributes = _ref6.attributes,
10343          setAttributes = _ref6.setAttributes,
10344          isSelected = _ref6.isSelected,
10345          mergeBlocks = _ref6.mergeBlocks,
10346          onReplace = _ref6.onReplace,
10347          className = _ref6.className;
10348      var align = attributes.align,
10349          value = attributes.value,
10350          citation = attributes.citation;
10351      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["AlignmentToolbar"], {
10352        value: align,
10353        onChange: function onChange(nextAlign) {
10354          setAttributes({
10355            align: nextAlign
10356          });
10357        }
10358      })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", {
10359        className: className,
10360        style: {
10361          textAlign: align
10362        }
10363      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"], {
10364        multiline: "p",
10365        value: value,
10366        onChange: function onChange(nextValue) {
10367          return setAttributes({
10368            value: nextValue
10369          });
10370        },
10371        onMerge: mergeBlocks,
10372        onRemove: function onRemove(forward) {
10373          var hasEmptyCitation = !citation || citation.length === 0;
10374  
10375          if (!forward && hasEmptyCitation) {
10376            onReplace([]);
10377          }
10378        }
10379        /* translators: the text of the quotation */
10380        ,
10381        placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Write quote…')
10382      }), (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"], {
10383        value: citation,
10384        onChange: function onChange(nextCitation) {
10385          return setAttributes({
10386            citation: nextCitation
10387          });
10388        }
10389        /* translators: the individual or entity quoted */
10390        ,
10391        placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Write citation…'),
10392        className: "wp-block-quote__citation"
10393      })));
10394    },
10395    save: function save(_ref7) {
10396      var attributes = _ref7.attributes;
10397      var align = attributes.align,
10398          value = attributes.value,
10399          citation = attributes.citation;
10400      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", {
10401        style: {
10402          textAlign: align ? align : null
10403        }
10404      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10405        multiline: "p",
10406        value: value
10407      }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10408        tagName: "cite",
10409        value: citation
10410      }));
10411    },
10412    merge: function merge(attributes, attributesToMerge) {
10413      return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, attributes, {
10414        value: attributes.value + attributesToMerge.value,
10415        citation: attributes.citation + attributesToMerge.citation
10416      });
10417    },
10418    deprecated: [{
10419      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockAttributes, {
10420        style: {
10421          type: 'number',
10422          default: 1
10423        }
10424      }),
10425      migrate: function migrate(attributes) {
10426        if (attributes.style === 2) {
10427          return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_3__["omit"])(attributes, ['style']), {
10428            className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
10429          });
10430        }
10431  
10432        return attributes;
10433      },
10434      save: function save(_ref8) {
10435        var attributes = _ref8.attributes;
10436        var align = attributes.align,
10437            value = attributes.value,
10438            citation = attributes.citation,
10439            style = attributes.style;
10440        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", {
10441          className: style === 2 ? 'is-large' : '',
10442          style: {
10443            textAlign: align ? align : null
10444          }
10445        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10446          multiline: "p",
10447          value: value
10448        }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10449          tagName: "cite",
10450          value: citation
10451        }));
10452      }
10453    }, {
10454      attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockAttributes, {
10455        citation: {
10456          source: 'html',
10457          selector: 'footer'
10458        },
10459        style: {
10460          type: 'number',
10461          default: 1
10462        }
10463      }),
10464      save: function save(_ref9) {
10465        var attributes = _ref9.attributes;
10466        var align = attributes.align,
10467            value = attributes.value,
10468            citation = attributes.citation,
10469            style = attributes.style;
10470        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("blockquote", {
10471          className: "blocks-quote-style-".concat(style),
10472          style: {
10473            textAlign: align ? align : null
10474          }
10475        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10476          multiline: "p",
10477          value: value
10478        }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
10479          tagName: "footer",
10480          value: citation
10481        }));
10482      }
10483    }]
10484  };
10485  
10486  
10487  /***/ }),
10488  
10489  /***/ "./node_modules/@wordpress/block-library/build-module/separator/index.js":
10490  /*!*******************************************************************************!*\
10491    !*** ./node_modules/@wordpress/block-library/build-module/separator/index.js ***!
10492    \*******************************************************************************/
10493  /*! exports provided: name, settings */
10494  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10495  
10496  "use strict";
10497  __webpack_require__.r(__webpack_exports__);
10498  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
10499  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
10500  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10501  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
10502  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
10503  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
10504  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
10505  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
10506  
10507  
10508  /**
10509   * WordPress dependencies
10510   */
10511  
10512  
10513  var name = 'core/separator';
10514  var settings = {
10515    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Separator'),
10516    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Insert a horizontal line where you want to create a break between ideas.'),
10517    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
10518      viewBox: "0 0 24 24",
10519      xmlns: "http://www.w3.org/2000/svg"
10520    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
10521      fill: "none",
10522      d: "M0 0h24v24H0V0z"
10523    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
10524      d: "M19 13H5v-2h14v2z"
10525    })),
10526    category: 'layout',
10527    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('horizontal-line'), 'hr', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('divider')],
10528    styles: [{
10529      name: 'default',
10530      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Short Line'),
10531      isDefault: true
10532    }, {
10533      name: 'wide',
10534      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Wide Line')
10535    }, {
10536      name: 'dots',
10537      label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Dots')
10538    }],
10539    transforms: {
10540      from: [{
10541        type: 'pattern',
10542        trigger: 'enter',
10543        regExp: /^-{3,}$/,
10544        transform: function transform() {
10545          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/separator');
10546        }
10547      }, {
10548        type: 'raw',
10549        selector: 'hr',
10550        schema: {
10551          hr: {}
10552        }
10553      }]
10554    },
10555    edit: function edit(_ref) {
10556      var className = _ref.className;
10557      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("hr", {
10558        className: className
10559      });
10560    },
10561    save: function save() {
10562      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("hr", null);
10563    }
10564  };
10565  
10566  
10567  /***/ }),
10568  
10569  /***/ "./node_modules/@wordpress/block-library/build-module/shortcode/index.js":
10570  /*!*******************************************************************************!*\
10571    !*** ./node_modules/@wordpress/block-library/build-module/shortcode/index.js ***!
10572    \*******************************************************************************/
10573  /*! exports provided: name, settings */
10574  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10575  
10576  "use strict";
10577  __webpack_require__.r(__webpack_exports__);
10578  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
10579  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
10580  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10581  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
10582  /* harmony import */ var _wordpress_autop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/autop */ "@wordpress/autop");
10583  /* harmony import */ var _wordpress_autop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_autop__WEBPACK_IMPORTED_MODULE_1__);
10584  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
10585  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
10586  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
10587  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
10588  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
10589  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__);
10590  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
10591  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__);
10592  
10593  
10594  /**
10595   * WordPress dependencies
10596   */
10597  
10598  
10599  
10600  
10601  
10602  
10603  var name = 'core/shortcode';
10604  var settings = {
10605    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Shortcode'),
10606    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add a shortcode -- a WordPress-specific snippet of code written between square brackets.'),
10607    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
10608      viewBox: "0 0 24 24",
10609      xmlns: "http://www.w3.org/2000/svg"
10610    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
10611      d: "M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"
10612    })),
10613    category: 'widgets',
10614    attributes: {
10615      text: {
10616        type: 'string',
10617        source: 'text'
10618      }
10619    },
10620    transforms: {
10621      from: [{
10622        type: 'shortcode',
10623        // Per "Shortcode names should be all lowercase and use all
10624        // letters, but numbers and underscores should work fine too.
10625        // Be wary of using hyphens (dashes), you'll be better off not
10626        // using them." in https://codex.wordpress.org/Shortcode_API
10627        // Require that the first character be a letter. This notably
10628        // prevents footnote markings ([1]) from being caught as
10629        // shortcodes.
10630        tag: '[a-z][a-z0-9_-]*',
10631        attributes: {
10632          text: {
10633            type: 'string',
10634            shortcode: function shortcode(attrs, _ref) {
10635              var content = _ref.content;
10636              return Object(_wordpress_autop__WEBPACK_IMPORTED_MODULE_1__["removep"])(Object(_wordpress_autop__WEBPACK_IMPORTED_MODULE_1__["autop"])(content));
10637            }
10638          }
10639        },
10640        priority: 20
10641      }]
10642    },
10643    supports: {
10644      customClassName: false,
10645      className: false,
10646      html: false
10647    },
10648    edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["withInstanceId"])(function (_ref2) {
10649      var attributes = _ref2.attributes,
10650          setAttributes = _ref2.setAttributes,
10651          instanceId = _ref2.instanceId;
10652      var inputId = "blocks-shortcode-input-".concat(instanceId);
10653      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
10654        className: "wp-block-shortcode"
10655      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("label", {
10656        htmlFor: inputId
10657      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Dashicon"], {
10658        icon: "shortcode"
10659      }), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Shortcode')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["PlainText"], {
10660        className: "input-control",
10661        id: inputId,
10662        value: attributes.text,
10663        placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Write shortcode here…'),
10664        onChange: function onChange(text) {
10665          return setAttributes({
10666            text: text
10667          });
10668        }
10669      }));
10670    }),
10671    save: function save(_ref3) {
10672      var attributes = _ref3.attributes;
10673      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, attributes.text);
10674    }
10675  };
10676  
10677  
10678  /***/ }),
10679  
10680  /***/ "./node_modules/@wordpress/block-library/build-module/spacer/index.js":
10681  /*!****************************************************************************!*\
10682    !*** ./node_modules/@wordpress/block-library/build-module/spacer/index.js ***!
10683    \****************************************************************************/
10684  /*! exports provided: name, settings */
10685  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10686  
10687  "use strict";
10688  __webpack_require__.r(__webpack_exports__);
10689  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
10690  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
10691  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10692  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
10693  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
10694  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
10695  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
10696  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
10697  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
10698  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__);
10699  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
10700  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);
10701  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
10702  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__);
10703  
10704  
10705  /**
10706   * External dependencies
10707   */
10708  
10709  /**
10710   * WordPress
10711   */
10712  
10713  
10714  
10715  
10716  
10717  
10718  var name = 'core/spacer';
10719  var settings = {
10720    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer'),
10721    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add an element with empty space and custom height.'),
10722    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
10723      viewBox: "0 0 24 24",
10724      xmlns: "http://www.w3.org/2000/svg"
10725    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
10726      d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"
10727    }))),
10728    category: 'layout',
10729    attributes: {
10730      height: {
10731        type: 'number',
10732        default: 100
10733      }
10734    },
10735    edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["withInstanceId"])(function (_ref) {
10736      var attributes = _ref.attributes,
10737          isSelected = _ref.isSelected,
10738          setAttributes = _ref.setAttributes,
10739          toggleSelection = _ref.toggleSelection,
10740          instanceId = _ref.instanceId;
10741      var height = attributes.height;
10742      var id = "block-spacer-height-input-".concat(instanceId);
10743      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ResizableBox"], {
10744        className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('block-library-spacer__resize-container', {
10745          'is-selected': isSelected
10746        }),
10747        size: {
10748          height: height
10749        },
10750        minHeight: "20",
10751        enable: {
10752          top: false,
10753          right: false,
10754          bottom: true,
10755          left: false,
10756          topRight: false,
10757          bottomRight: false,
10758          bottomLeft: false,
10759          topLeft: false
10760        },
10761        onResizeStop: function onResizeStop(event, direction, elt, delta) {
10762          setAttributes({
10763            height: parseInt(height + delta.height, 10)
10764          });
10765          toggleSelection(true);
10766        },
10767        onResizeStart: function onResizeStart() {
10768          toggleSelection(false);
10769        }
10770      }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], {
10771        title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer Settings')
10772      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["BaseControl"], {
10773        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Height in pixels'),
10774        id: id
10775      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("input", {
10776        type: "number",
10777        id: id,
10778        onChange: function onChange(event) {
10779          setAttributes({
10780            height: parseInt(event.target.value, 10)
10781          });
10782        },
10783        value: height,
10784        min: "20",
10785        step: "10"
10786      })))));
10787    }),
10788    save: function save(_ref2) {
10789      var attributes = _ref2.attributes;
10790      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
10791        style: {
10792          height: attributes.height
10793        },
10794        "aria-hidden": true
10795      });
10796    }
10797  };
10798  
10799  
10800  /***/ }),
10801  
10802  /***/ "./node_modules/@wordpress/block-library/build-module/subhead/index.js":
10803  /*!*****************************************************************************!*\
10804    !*** ./node_modules/@wordpress/block-library/build-module/subhead/index.js ***!
10805    \*****************************************************************************/
10806  /*! exports provided: name, settings */
10807  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10808  
10809  "use strict";
10810  __webpack_require__.r(__webpack_exports__);
10811  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
10812  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
10813  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10814  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
10815  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/deprecated */ "@wordpress/deprecated");
10816  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__);
10817  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
10818  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
10819  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
10820  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
10821  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
10822  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__);
10823  
10824  
10825  /**
10826   * WordPress dependencies
10827   */
10828  
10829  
10830  
10831  
10832  
10833  var name = 'core/subhead';
10834  var settings = {
10835    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Subheading (deprecated)'),
10836    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('This block is deprecated. Please use the Paragraph block instead.'),
10837    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
10838      xmlns: "http://www.w3.org/2000/svg",
10839      viewBox: "0 0 24 24"
10840    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
10841      d: "M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"
10842    })),
10843    category: 'common',
10844    supports: {
10845      // Hide from inserter as this block is deprecated.
10846      inserter: false,
10847      multiple: false
10848    },
10849    attributes: {
10850      content: {
10851        source: 'html',
10852        selector: 'p'
10853      },
10854      align: {
10855        type: 'string'
10856      }
10857    },
10858    transforms: {
10859      to: [{
10860        type: 'block',
10861        blocks: ['core/paragraph'],
10862        transform: function transform(attributes) {
10863          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/paragraph', attributes);
10864        }
10865      }]
10866    },
10867    edit: function edit(_ref) {
10868      var attributes = _ref.attributes,
10869          setAttributes = _ref.setAttributes,
10870          className = _ref.className;
10871      var align = attributes.align,
10872          content = attributes.content,
10873          placeholder = attributes.placeholder;
10874      _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1___default()('The Subheading block', {
10875        alternative: 'the Paragraph block',
10876        plugin: 'Gutenberg'
10877      });
10878      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["AlignmentToolbar"], {
10879        value: align,
10880        onChange: function onChange(nextAlign) {
10881          setAttributes({
10882            align: nextAlign
10883          });
10884        }
10885      })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["RichText"], {
10886        tagName: "p",
10887        value: content,
10888        onChange: function onChange(nextContent) {
10889          setAttributes({
10890            content: nextContent
10891          });
10892        },
10893        style: {
10894          textAlign: align
10895        },
10896        className: className,
10897        placeholder: placeholder || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Write subheading…')
10898      }));
10899    },
10900    save: function save(_ref2) {
10901      var attributes = _ref2.attributes,
10902          className = _ref2.className;
10903      var align = attributes.align,
10904          content = attributes.content;
10905      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["RichText"].Content, {
10906        tagName: "p",
10907        className: className,
10908        style: {
10909          textAlign: align
10910        },
10911        value: content
10912      });
10913    }
10914  };
10915  
10916  
10917  /***/ }),
10918  
10919  /***/ "./node_modules/@wordpress/block-library/build-module/table/edit.js":
10920  /*!**************************************************************************!*\
10921    !*** ./node_modules/@wordpress/block-library/build-module/table/edit.js ***!
10922    \**************************************************************************/
10923  /*! exports provided: default */
10924  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10925  
10926  "use strict";
10927  __webpack_require__.r(__webpack_exports__);
10928  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TableEdit; });
10929  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
10930  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
10931  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
10932  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
10933  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
10934  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
10935  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10936  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
10937  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
10938  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
10939  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
10940  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__);
10941  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
10942  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
10943  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
10944  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__);
10945  /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./state */ "./node_modules/@wordpress/block-library/build-module/table/state.js");
10946  
10947  
10948  
10949  
10950  
10951  
10952  
10953  
10954  /**
10955   * External dependencies
10956   */
10957  
10958  /**
10959   * WordPress dependencies
10960   */
10961  
10962  
10963  
10964  
10965  
10966  /**
10967   * Internal dependencies
10968   */
10969  
10970  
10971  
10972  var TableEdit =
10973  /*#__PURE__*/
10974  function (_Component) {
10975    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(TableEdit, _Component);
10976  
10977    function TableEdit() {
10978      var _this;
10979  
10980      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, TableEdit);
10981  
10982      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(TableEdit).apply(this, arguments));
10983      _this.onCreateTable = _this.onCreateTable.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10984      _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10985      _this.onChange = _this.onChange.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10986      _this.onChangeInitialColumnCount = _this.onChangeInitialColumnCount.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10987      _this.onChangeInitialRowCount = _this.onChangeInitialRowCount.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10988      _this.renderSection = _this.renderSection.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10989      _this.getTableControls = _this.getTableControls.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10990      _this.onInsertRow = _this.onInsertRow.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10991      _this.onInsertRowBefore = _this.onInsertRowBefore.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10992      _this.onInsertRowAfter = _this.onInsertRowAfter.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10993      _this.onDeleteRow = _this.onDeleteRow.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10994      _this.onInsertColumn = _this.onInsertColumn.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10995      _this.onInsertColumnBefore = _this.onInsertColumnBefore.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10996      _this.onInsertColumnAfter = _this.onInsertColumnAfter.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10997      _this.onDeleteColumn = _this.onDeleteColumn.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
10998      _this.state = {
10999        initialRowCount: 2,
11000        initialColumnCount: 2,
11001        selectedCell: null
11002      };
11003      return _this;
11004    }
11005    /**
11006     * Updates the initial column count used for table creation.
11007     *
11008     * @param {number} initialColumnCount New initial column count.
11009     */
11010  
11011  
11012    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(TableEdit, [{
11013      key: "onChangeInitialColumnCount",
11014      value: function onChangeInitialColumnCount(initialColumnCount) {
11015        this.setState({
11016          initialColumnCount: initialColumnCount
11017        });
11018      }
11019      /**
11020       * Updates the initial row count used for table creation.
11021       *
11022       * @param {number} initialRowCount New initial row count.
11023       */
11024  
11025    }, {
11026      key: "onChangeInitialRowCount",
11027      value: function onChangeInitialRowCount(initialRowCount) {
11028        this.setState({
11029          initialRowCount: initialRowCount
11030        });
11031      }
11032      /**
11033       * Creates a table based on dimensions in local state.
11034       */
11035  
11036    }, {
11037      key: "onCreateTable",
11038      value: function onCreateTable() {
11039        var setAttributes = this.props.setAttributes;
11040        var _this$state = this.state,
11041            initialRowCount = _this$state.initialRowCount,
11042            initialColumnCount = _this$state.initialColumnCount;
11043        initialRowCount = parseInt(initialRowCount, 10) || 2;
11044        initialColumnCount = parseInt(initialColumnCount, 10) || 2;
11045        setAttributes(Object(_state__WEBPACK_IMPORTED_MODULE_11__["createTable"])({
11046          rowCount: initialRowCount,
11047          columnCount: initialColumnCount
11048        }));
11049      }
11050      /**
11051       * Toggles whether the table has a fixed layout or not.
11052       */
11053  
11054    }, {
11055      key: "onChangeFixedLayout",
11056      value: function onChangeFixedLayout() {
11057        var _this$props = this.props,
11058            attributes = _this$props.attributes,
11059            setAttributes = _this$props.setAttributes;
11060        var hasFixedLayout = attributes.hasFixedLayout;
11061        setAttributes({
11062          hasFixedLayout: !hasFixedLayout
11063        });
11064      }
11065      /**
11066       * Changes the content of the currently selected cell.
11067       *
11068       * @param {Array} content A RichText content value.
11069       */
11070  
11071    }, {
11072      key: "onChange",
11073      value: function onChange(content) {
11074        var selectedCell = this.state.selectedCell;
11075  
11076        if (!selectedCell) {
11077          return;
11078        }
11079  
11080        var _this$props2 = this.props,
11081            attributes = _this$props2.attributes,
11082            setAttributes = _this$props2.setAttributes;
11083        var section = selectedCell.section,
11084            rowIndex = selectedCell.rowIndex,
11085            columnIndex = selectedCell.columnIndex;
11086        setAttributes(Object(_state__WEBPACK_IMPORTED_MODULE_11__["updateCellContent"])(attributes, {
11087          section: section,
11088          rowIndex: rowIndex,
11089          columnIndex: columnIndex,
11090          content: content
11091        }));
11092      }
11093      /**
11094       * Inserts a row at the currently selected row index, plus `delta`.
11095       *
11096       * @param {number} delta Offset for selected row index at which to insert.
11097       */
11098  
11099    }, {
11100      key: "onInsertRow",
11101      value: function onInsertRow(delta) {
11102        var selectedCell = this.state.selectedCell;
11103  
11104        if (!selectedCell) {
11105          return;
11106        }
11107  
11108        var _this$props3 = this.props,
11109            attributes = _this$props3.attributes,
11110            setAttributes = _this$props3.setAttributes;
11111        var section = selectedCell.section,
11112            rowIndex = selectedCell.rowIndex;
11113        this.setState({
11114          selectedCell: null
11115        });
11116        setAttributes(Object(_state__WEBPACK_IMPORTED_MODULE_11__["insertRow"])(attributes, {
11117          section: section,
11118          rowIndex: rowIndex + delta
11119        }));
11120      }
11121      /**
11122       * Inserts a row before the currently selected row.
11123       */
11124  
11125    }, {
11126      key: "onInsertRowBefore",
11127      value: function onInsertRowBefore() {
11128        this.onInsertRow(0);
11129      }
11130      /**
11131       * Inserts a row after the currently selected row.
11132       */
11133  
11134    }, {
11135      key: "onInsertRowAfter",
11136      value: function onInsertRowAfter() {
11137        this.onInsertRow(1);
11138      }
11139      /**
11140       * Deletes the currently selected row.
11141       */
11142  
11143    }, {
11144      key: "onDeleteRow",
11145      value: function onDeleteRow() {
11146        var selectedCell = this.state.selectedCell;
11147  
11148        if (!selectedCell) {
11149          return;
11150        }
11151  
11152        var _this$props4 = this.props,
11153            attributes = _this$props4.attributes,
11154            setAttributes = _this$props4.setAttributes;
11155        var section = selectedCell.section,
11156            rowIndex = selectedCell.rowIndex;
11157        this.setState({
11158          selectedCell: null
11159        });
11160        setAttributes(Object(_state__WEBPACK_IMPORTED_MODULE_11__["deleteRow"])(attributes, {
11161          section: section,
11162          rowIndex: rowIndex
11163        }));
11164      }
11165      /**
11166       * Inserts a column at the currently selected column index, plus `delta`.
11167       *
11168       * @param {number} delta Offset for selected column index at which to insert.
11169       */
11170  
11171    }, {
11172      key: "onInsertColumn",
11173      value: function onInsertColumn() {
11174        var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
11175        var selectedCell = this.state.selectedCell;
11176  
11177        if (!selectedCell) {
11178          return;
11179        }
11180  
11181        var _this$props5 = this.props,
11182            attributes = _this$props5.attributes,
11183            setAttributes = _this$props5.setAttributes;
11184        var section = selectedCell.section,
11185            columnIndex = selectedCell.columnIndex;
11186        this.setState({
11187          selectedCell: null
11188        });
11189        setAttributes(Object(_state__WEBPACK_IMPORTED_MODULE_11__["insertColumn"])(attributes, {
11190          section: section,
11191          columnIndex: columnIndex + delta
11192        }));
11193      }
11194      /**
11195       * Inserts a column before the currently selected column.
11196       */
11197  
11198    }, {
11199      key: "onInsertColumnBefore",
11200      value: function onInsertColumnBefore() {
11201        this.onInsertColumn(0);
11202      }
11203      /**
11204       * Inserts a column after the currently selected column.
11205       */
11206  
11207    }, {
11208      key: "onInsertColumnAfter",
11209      value: function onInsertColumnAfter() {
11210        this.onInsertColumn(1);
11211      }
11212      /**
11213       * Deletes the currently selected column.
11214       */
11215  
11216    }, {
11217      key: "onDeleteColumn",
11218      value: function onDeleteColumn() {
11219        var selectedCell = this.state.selectedCell;
11220  
11221        if (!selectedCell) {
11222          return;
11223        }
11224  
11225        var _this$props6 = this.props,
11226            attributes = _this$props6.attributes,
11227            setAttributes = _this$props6.setAttributes;
11228        var section = selectedCell.section,
11229            columnIndex = selectedCell.columnIndex;
11230        this.setState({
11231          selectedCell: null
11232        });
11233        setAttributes(Object(_state__WEBPACK_IMPORTED_MODULE_11__["deleteColumn"])(attributes, {
11234          section: section,
11235          columnIndex: columnIndex
11236        }));
11237      }
11238      /**
11239       * Creates an onFocus handler for a specified cell.
11240       *
11241       * @param {Object} selectedCell Object with `section`, `rowIndex`, and
11242       *                              `columnIndex` properties.
11243       *
11244       * @return {Function} Function to call on focus.
11245       */
11246  
11247    }, {
11248      key: "createOnFocus",
11249      value: function createOnFocus(selectedCell) {
11250        var _this2 = this;
11251  
11252        return function () {
11253          _this2.setState({
11254            selectedCell: selectedCell
11255          });
11256        };
11257      }
11258      /**
11259       * Gets the table controls to display in the block toolbar.
11260       *
11261       * @return {Array} Table controls.
11262       */
11263  
11264    }, {
11265      key: "getTableControls",
11266      value: function getTableControls() {
11267        var selectedCell = this.state.selectedCell;
11268        return [{
11269          icon: 'table-row-before',
11270          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Add Row Before'),
11271          isDisabled: !selectedCell,
11272          onClick: this.onInsertRowBefore
11273        }, {
11274          icon: 'table-row-after',
11275          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Add Row After'),
11276          isDisabled: !selectedCell,
11277          onClick: this.onInsertRowAfter
11278        }, {
11279          icon: 'table-row-delete',
11280          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Delete Row'),
11281          isDisabled: !selectedCell,
11282          onClick: this.onDeleteRow
11283        }, {
11284          icon: 'table-col-before',
11285          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Add Column Before'),
11286          isDisabled: !selectedCell,
11287          onClick: this.onInsertColumnBefore
11288        }, {
11289          icon: 'table-col-after',
11290          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Add Column After'),
11291          isDisabled: !selectedCell,
11292          onClick: this.onInsertColumnAfter
11293        }, {
11294          icon: 'table-col-delete',
11295          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Delete Column'),
11296          isDisabled: !selectedCell,
11297          onClick: this.onDeleteColumn
11298        }];
11299      }
11300      /**
11301       * Renders a table section.
11302       *
11303       * @param {string} options.type Section type: head, body, or foot.
11304       * @param {Array}  options.rows The rows to render.
11305       *
11306       * @return {Object} React element for the section.
11307       */
11308  
11309    }, {
11310      key: "renderSection",
11311      value: function renderSection(_ref) {
11312        var _this3 = this;
11313  
11314        var type = _ref.type,
11315            rows = _ref.rows;
11316  
11317        if (!rows.length) {
11318          return null;
11319        }
11320  
11321        var Tag = "t".concat(type);
11322        var selectedCell = this.state.selectedCell;
11323        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(Tag, null, rows.map(function (_ref2, rowIndex) {
11324          var cells = _ref2.cells;
11325          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("tr", {
11326            key: rowIndex
11327          }, cells.map(function (_ref3, columnIndex) {
11328            var content = _ref3.content,
11329                CellTag = _ref3.tag;
11330            var isSelected = selectedCell && type === selectedCell.section && rowIndex === selectedCell.rowIndex && columnIndex === selectedCell.columnIndex;
11331            var cell = {
11332              section: type,
11333              rowIndex: rowIndex,
11334              columnIndex: columnIndex
11335            };
11336            var classes = classnames__WEBPACK_IMPORTED_MODULE_7___default()({
11337              'is-selected': isSelected
11338            });
11339            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(CellTag, {
11340              key: columnIndex,
11341              className: classes
11342            }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"], {
11343              className: "wp-block-table__cell-content",
11344              value: content,
11345              onChange: _this3.onChange,
11346              unstableOnFocus: _this3.createOnFocus(cell)
11347            }));
11348          }));
11349        }));
11350      }
11351    }, {
11352      key: "componentDidUpdate",
11353      value: function componentDidUpdate() {
11354        var isSelected = this.props.isSelected;
11355        var selectedCell = this.state.selectedCell;
11356  
11357        if (!isSelected && selectedCell) {
11358          this.setState({
11359            selectedCell: null
11360          });
11361        }
11362      }
11363    }, {
11364      key: "render",
11365      value: function render() {
11366        var _this$props7 = this.props,
11367            attributes = _this$props7.attributes,
11368            className = _this$props7.className;
11369        var _this$state2 = this.state,
11370            initialRowCount = _this$state2.initialRowCount,
11371            initialColumnCount = _this$state2.initialColumnCount;
11372        var hasFixedLayout = attributes.hasFixedLayout,
11373            head = attributes.head,
11374            body = attributes.body,
11375            foot = attributes.foot;
11376        var isEmpty = !head.length && !body.length && !foot.length;
11377        var Section = this.renderSection;
11378  
11379        if (isEmpty) {
11380          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("form", {
11381            onSubmit: this.onCreateTable
11382          }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["TextControl"], {
11383            type: "number",
11384            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Column Count'),
11385            value: initialColumnCount,
11386            onChange: this.onChangeInitialColumnCount,
11387            min: "1"
11388          }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["TextControl"], {
11389            type: "number",
11390            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Row Count'),
11391            value: initialRowCount,
11392            onChange: this.onChangeInitialRowCount,
11393            min: "1"
11394          }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Button"], {
11395            isPrimary: true,
11396            type: "submit"
11397          }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Create')));
11398        }
11399  
11400        var classes = classnames__WEBPACK_IMPORTED_MODULE_7___default()(className, {
11401          'has-fixed-layout': hasFixedLayout
11402        });
11403        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["DropdownMenu"], {
11404          icon: "editor-table",
11405          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Edit Table'),
11406          controls: this.getTableControls()
11407        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_8__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["PanelBody"], {
11408          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Table Settings'),
11409          className: "blocks-table-settings"
11410        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
11411          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Fixed width table cells'),
11412          checked: !!hasFixedLayout,
11413          onChange: this.onChangeFixedLayout
11414        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("table", {
11415          className: classes
11416        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(Section, {
11417          type: "head",
11418          rows: head
11419        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(Section, {
11420          type: "body",
11421          rows: body
11422        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(Section, {
11423          type: "foot",
11424          rows: foot
11425        })));
11426      }
11427    }]);
11428  
11429    return TableEdit;
11430  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
11431  
11432  
11433  
11434  
11435  /***/ }),
11436  
11437  /***/ "./node_modules/@wordpress/block-library/build-module/table/index.js":
11438  /*!***************************************************************************!*\
11439    !*** ./node_modules/@wordpress/block-library/build-module/table/index.js ***!
11440    \***************************************************************************/
11441  /*! exports provided: name, settings */
11442  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11443  
11444  "use strict";
11445  __webpack_require__.r(__webpack_exports__);
11446  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
11447  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
11448  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
11449  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
11450  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
11451  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
11452  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
11453  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
11454  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
11455  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
11456  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
11457  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__);
11458  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/table/edit.js");
11459  
11460  
11461  /**
11462   * External dependencies
11463   */
11464  
11465  /**
11466   * WordPress dependencies
11467   */
11468  
11469  
11470  
11471  
11472  /**
11473   * Internal dependencies
11474   */
11475  
11476  
11477  var tableContentPasteSchema = {
11478    tr: {
11479      children: {
11480        th: {
11481          children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getPhrasingContentSchema"])()
11482        },
11483        td: {
11484          children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getPhrasingContentSchema"])()
11485        }
11486      }
11487    }
11488  };
11489  var tablePasteSchema = {
11490    table: {
11491      children: {
11492        thead: {
11493          children: tableContentPasteSchema
11494        },
11495        tfoot: {
11496          children: tableContentPasteSchema
11497        },
11498        tbody: {
11499          children: tableContentPasteSchema
11500        }
11501      }
11502    }
11503  };
11504  
11505  function getTableSectionAttributeSchema(section) {
11506    return {
11507      type: 'array',
11508      default: [],
11509      source: 'query',
11510      selector: "t".concat(section, " tr"),
11511      query: {
11512        cells: {
11513          type: 'array',
11514          default: [],
11515          source: 'query',
11516          selector: 'td,th',
11517          query: {
11518            content: {
11519              source: 'html'
11520            },
11521            tag: {
11522              type: 'string',
11523              default: 'td',
11524              source: 'tag'
11525            }
11526          }
11527        }
11528      }
11529    };
11530  }
11531  
11532  var name = 'core/table';
11533  var settings = {
11534    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Table'),
11535    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Insert a table -- perfect for sharing charts and data.'),
11536    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
11537      viewBox: "0 0 24 24",
11538      xmlns: "http://www.w3.org/2000/svg"
11539    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
11540      fill: "none",
11541      d: "M0 0h24v24H0V0z"
11542    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
11543      d: "M20 3H5L3 5v14l2 2h15l2-2V5l-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"
11544    }))),
11545    category: 'formatting',
11546    attributes: {
11547      hasFixedLayout: {
11548        type: 'boolean',
11549        default: false
11550      },
11551      head: getTableSectionAttributeSchema('head'),
11552      body: getTableSectionAttributeSchema('body'),
11553      foot: getTableSectionAttributeSchema('foot')
11554    },
11555    supports: {
11556      align: true
11557    },
11558    transforms: {
11559      from: [{
11560        type: 'raw',
11561        selector: 'table',
11562        schema: tablePasteSchema
11563      }]
11564    },
11565    edit: _edit__WEBPACK_IMPORTED_MODULE_5__["default"],
11566    save: function save(_ref) {
11567      var attributes = _ref.attributes;
11568      var hasFixedLayout = attributes.hasFixedLayout,
11569          head = attributes.head,
11570          body = attributes.body,
11571          foot = attributes.foot;
11572      var isEmpty = !head.length && !body.length && !foot.length;
11573  
11574      if (isEmpty) {
11575        return null;
11576      }
11577  
11578      var classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
11579        'has-fixed-layout': hasFixedLayout
11580      });
11581  
11582      var Section = function Section(_ref2) {
11583        var type = _ref2.type,
11584            rows = _ref2.rows;
11585  
11586        if (!rows.length) {
11587          return null;
11588        }
11589  
11590        var Tag = "t".concat(type);
11591        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) {
11592          var cells = _ref3.cells;
11593          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("tr", {
11594            key: rowIndex
11595          }, cells.map(function (_ref4, cellIndex) {
11596            var content = _ref4.content,
11597                tag = _ref4.tag;
11598            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__["RichText"].Content, {
11599              tagName: tag,
11600              value: content,
11601              key: cellIndex
11602            });
11603          }));
11604        }));
11605      };
11606  
11607      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("table", {
11608        className: classes
11609      }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Section, {
11610        type: "head",
11611        rows: head
11612      }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Section, {
11613        type: "body",
11614        rows: body
11615      }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Section, {
11616        type: "foot",
11617        rows: foot
11618      }));
11619    }
11620  };
11621  
11622  
11623  /***/ }),
11624  
11625  /***/ "./node_modules/@wordpress/block-library/build-module/table/state.js":
11626  /*!***************************************************************************!*\
11627    !*** ./node_modules/@wordpress/block-library/build-module/table/state.js ***!
11628    \***************************************************************************/
11629  /*! exports provided: createTable, updateCellContent, insertRow, deleteRow, insertColumn, deleteColumn */
11630  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11631  
11632  "use strict";
11633  __webpack_require__.r(__webpack_exports__);
11634  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTable", function() { return createTable; });
11635  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateCellContent", function() { return updateCellContent; });
11636  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertRow", function() { return insertRow; });
11637  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteRow", function() { return deleteRow; });
11638  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertColumn", function() { return insertColumn; });
11639  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteColumn", function() { return deleteColumn; });
11640  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
11641  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
11642  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
11643  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "lodash");
11644  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
11645  
11646  
11647  
11648  
11649  /**
11650   * External dependencies
11651   */
11652  
11653  /**
11654   * Creates a table state.
11655   *
11656   * @param {number} options.rowCount    Row count for the table to create.
11657   * @param {number} options.columnCount Column count for the table to create.
11658   *
11659   * @return {Object} New table state.
11660   */
11661  
11662  function createTable(_ref) {
11663    var rowCount = _ref.rowCount,
11664        columnCount = _ref.columnCount;
11665    return {
11666      body: Object(lodash__WEBPACK_IMPORTED_MODULE_3__["times"])(rowCount, function () {
11667        return {
11668          cells: Object(lodash__WEBPACK_IMPORTED_MODULE_3__["times"])(columnCount, function () {
11669            return {
11670              content: '',
11671              tag: 'td'
11672            };
11673          })
11674        };
11675      })
11676    };
11677  }
11678  /**
11679   * Updates cell content in the table state.
11680   *
11681   * @param {Object} state               Current table state.
11682   * @param {string} options.section     Section of the cell to update.
11683   * @param {number} options.rowIndex    Row index of the cell to update.
11684   * @param {number} options.columnIndex Column index of the cell to update.
11685   * @param {Array}  options.content     Content to set for the cell.
11686   *
11687   * @return {Object} New table state.
11688   */
11689  
11690  function updateCellContent(state, _ref2) {
11691    var section = _ref2.section,
11692        rowIndex = _ref2.rowIndex,
11693        columnIndex = _ref2.columnIndex,
11694        content = _ref2.content;
11695    return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, section, state[section].map(function (row, currentRowIndex) {
11696      if (currentRowIndex !== rowIndex) {
11697        return row;
11698      }
11699  
11700      return {
11701        cells: row.cells.map(function (cell, currentColumnIndex) {
11702          if (currentColumnIndex !== columnIndex) {
11703            return cell;
11704          }
11705  
11706          return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__["default"])({}, cell, {
11707            content: content
11708          });
11709        })
11710      };
11711    }));
11712  }
11713  /**
11714   * Inserts a row in the table state.
11715   *
11716   * @param {Object} state            Current table state.
11717   * @param {string} options.section  Section in which to insert the row.
11718   * @param {number} options.rowIndex Row index at which to insert the row.
11719   *
11720   * @return {Object} New table state.
11721   */
11722  
11723  function insertRow(state, _ref4) {
11724    var section = _ref4.section,
11725        rowIndex = _ref4.rowIndex;
11726    var cellCount = state[section][0].cells.length;
11727    return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, section, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(state[section].slice(0, rowIndex)).concat([{
11728      cells: Object(lodash__WEBPACK_IMPORTED_MODULE_3__["times"])(cellCount, function () {
11729        return {
11730          content: '',
11731          tag: 'td'
11732        };
11733      })
11734    }], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(state[section].slice(rowIndex))));
11735  }
11736  /**
11737   * Deletes a row from the table state.
11738   *
11739   * @param {Object} state            Current table state.
11740   * @param {string} options.section  Section in which to delete the row.
11741   * @param {number} options.rowIndex Row index to delete.
11742   *
11743   * @return {Object} New table state.
11744   */
11745  
11746  function deleteRow(state, _ref6) {
11747    var section = _ref6.section,
11748        rowIndex = _ref6.rowIndex;
11749    return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, section, state[section].filter(function (row, index) {
11750      return index !== rowIndex;
11751    }));
11752  }
11753  /**
11754   * Inserts a column in the table state.
11755   *
11756   * @param {Object} state               Current table state.
11757   * @param {string} options.section     Section in which to insert the column.
11758   * @param {number} options.columnIndex Column index at which to insert the column.
11759   *
11760   * @return {Object} New table state.
11761   */
11762  
11763  function insertColumn(state, _ref8) {
11764    var section = _ref8.section,
11765        columnIndex = _ref8.columnIndex;
11766    return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, section, state[section].map(function (row) {
11767      return {
11768        cells: Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(row.cells.slice(0, columnIndex)).concat([{
11769          content: '',
11770          tag: 'td'
11771        }], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(row.cells.slice(columnIndex)))
11772      };
11773    }));
11774  }
11775  /**
11776   * Deletes a column from the table state.
11777   *
11778   * @param {Object} state               Current table state.
11779   * @param {string} options.section     Section in which to delete the column.
11780   * @param {number} options.columnIndex Column index to delete.
11781   *
11782   * @return {Object} New table state.
11783   */
11784  
11785  function deleteColumn(state, _ref10) {
11786    var section = _ref10.section,
11787        columnIndex = _ref10.columnIndex;
11788    return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, section, state[section].map(function (row) {
11789      return {
11790        cells: row.cells.filter(function (cell, index) {
11791          return index !== columnIndex;
11792        })
11793      };
11794    }).filter(function (row) {
11795      return row.cells.length;
11796    }));
11797  }
11798  
11799  
11800  /***/ }),
11801  
11802  /***/ "./node_modules/@wordpress/block-library/build-module/template/index.js":
11803  /*!******************************************************************************!*\
11804    !*** ./node_modules/@wordpress/block-library/build-module/template/index.js ***!
11805    \******************************************************************************/
11806  /*! exports provided: name, settings */
11807  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11808  
11809  "use strict";
11810  __webpack_require__.r(__webpack_exports__);
11811  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
11812  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
11813  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
11814  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
11815  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
11816  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
11817  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
11818  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__);
11819  
11820  
11821  /**
11822   * WordPress dependencies
11823   */
11824  
11825  
11826  var name = 'core/template';
11827  var settings = {
11828    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Reusable Template'),
11829    category: 'reusable',
11830    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Template block used as a container.'),
11831    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
11832      xmlns: "http://www.w3.org/2000/svg",
11833      viewBox: "0 0 24 24"
11834    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("rect", {
11835      x: "0",
11836      fill: "none",
11837      width: "24",
11838      height: "24"
11839    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("g", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
11840      d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"
11841    }))),
11842    supports: {
11843      customClassName: false,
11844      html: false,
11845      inserter: false
11846    },
11847    edit: function edit() {
11848      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["InnerBlocks"], null);
11849    },
11850    save: function save() {
11851      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["InnerBlocks"].Content, null);
11852    }
11853  };
11854  
11855  
11856  /***/ }),
11857  
11858  /***/ "./node_modules/@wordpress/block-library/build-module/text-columns/index.js":
11859  /*!**********************************************************************************!*\
11860    !*** ./node_modules/@wordpress/block-library/build-module/text-columns/index.js ***!
11861    \**********************************************************************************/
11862  /*! exports provided: name, settings */
11863  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11864  
11865  "use strict";
11866  __webpack_require__.r(__webpack_exports__);
11867  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
11868  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
11869  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
11870  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
11871  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
11872  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash");
11873  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
11874  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
11875  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
11876  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
11877  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
11878  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
11879  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
11880  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
11881  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
11882  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/deprecated */ "@wordpress/deprecated");
11883  /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7__);
11884  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
11885  /* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__);
11886  
11887  
11888  
11889  /**
11890   * External dependencies
11891   */
11892  
11893  /**
11894   * WordPress dependencies
11895   */
11896  
11897  
11898  
11899  
11900  
11901  
11902  
11903  
11904  var name = 'core/text-columns';
11905  var settings = {
11906    // Disable insertion as this block is deprecated and ultimately replaced by the Columns block.
11907    supports: {
11908      inserter: false
11909    },
11910    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Text Columns (deprecated)'),
11911    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('This block is deprecated. Please use the Columns block instead.'),
11912    icon: 'columns',
11913    category: 'layout',
11914    attributes: {
11915      content: {
11916        type: 'array',
11917        source: 'query',
11918        selector: 'p',
11919        query: {
11920          children: {
11921            source: 'html'
11922          }
11923        },
11924        default: [{
11925          children: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])()
11926        }, {
11927          children: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])()
11928        }]
11929      },
11930      columns: {
11931        type: 'number',
11932        default: 2
11933      },
11934      width: {
11935        type: 'string'
11936      }
11937    },
11938    transforms: {
11939      to: [{
11940        type: 'block',
11941        blocks: ['core/columns'],
11942        transform: function transform(_ref) {
11943          var className = _ref.className,
11944              columns = _ref.columns,
11945              content = _ref.content,
11946              width = _ref.width;
11947          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/columns', {
11948            align: 'wide' === width || 'full' === width ? width : undefined,
11949            className: className,
11950            columns: columns
11951          }, content.map(function (_ref2) {
11952            var children = _ref2.children;
11953            return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/column', {}, [Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/paragraph', {
11954              content: children
11955            })]);
11956          }));
11957        }
11958      }]
11959    },
11960    getEditWrapperProps: function getEditWrapperProps(attributes) {
11961      var width = attributes.width;
11962  
11963      if ('wide' === width || 'full' === width) {
11964        return {
11965          'data-align': width
11966        };
11967      }
11968    },
11969    edit: function edit(_ref3) {
11970      var attributes = _ref3.attributes,
11971          setAttributes = _ref3.setAttributes,
11972          className = _ref3.className;
11973      var width = attributes.width,
11974          content = attributes.content,
11975          columns = attributes.columns;
11976      _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default()('The Text Columns block', {
11977        alternative: 'the Columns block',
11978        plugin: 'Gutenberg'
11979      });
11980      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["BlockAlignmentToolbar"], {
11981        value: width,
11982        onChange: function onChange(nextWidth) {
11983          return setAttributes({
11984            width: nextWidth
11985          });
11986        },
11987        controls: ['center', 'wide', 'full']
11988      })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["PanelBody"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["RangeControl"], {
11989        label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Columns'),
11990        value: columns,
11991        onChange: function onChange(value) {
11992          return setAttributes({
11993            columns: value
11994          });
11995        },
11996        min: 2,
11997        max: 4
11998      }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
11999        className: "".concat(className, " align").concat(width, " columns-").concat(columns)
12000      }, Object(lodash__WEBPACK_IMPORTED_MODULE_2__["times"])(columns, function (index) {
12001        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
12002          className: "wp-block-column",
12003          key: "column-".concat(index)
12004        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"], {
12005          tagName: "p",
12006          value: Object(lodash__WEBPACK_IMPORTED_MODULE_2__["get"])(content, [index, 'children']),
12007          onChange: function onChange(nextContent) {
12008            setAttributes({
12009              content: Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(content.slice(0, index)).concat([{
12010                children: nextContent
12011              }], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(content.slice(index + 1)))
12012            });
12013          },
12014          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('New Column')
12015        }));
12016      })));
12017    },
12018    save: function save(_ref4) {
12019      var attributes = _ref4.attributes;
12020      var width = attributes.width,
12021          content = attributes.content,
12022          columns = attributes.columns;
12023      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
12024        className: "align".concat(width, " columns-").concat(columns)
12025      }, Object(lodash__WEBPACK_IMPORTED_MODULE_2__["times"])(columns, function (index) {
12026        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
12027          className: "wp-block-column",
12028          key: "column-".concat(index)
12029        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, {
12030          tagName: "p",
12031          value: Object(lodash__WEBPACK_IMPORTED_MODULE_2__["get"])(content, [index, 'children'])
12032        }));
12033      }));
12034    }
12035  };
12036  
12037  
12038  /***/ }),
12039  
12040  /***/ "./node_modules/@wordpress/block-library/build-module/verse/index.js":
12041  /*!***************************************************************************!*\
12042    !*** ./node_modules/@wordpress/block-library/build-module/verse/index.js ***!
12043    \***************************************************************************/
12044  /*! exports provided: name, settings */
12045  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12046  
12047  "use strict";
12048  __webpack_require__.r(__webpack_exports__);
12049  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
12050  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
12051  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
12052  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
12053  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
12054  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
12055  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
12056  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
12057  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
12058  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__);
12059  
12060  
12061  /**
12062   * WordPress
12063   */
12064  
12065  
12066  
12067  
12068  var name = 'core/verse';
12069  var settings = {
12070    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Verse'),
12071    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('A block for haiku? Why not? Blocks for all the things! (See what we did here?)'),
12072    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
12073      viewBox: "0 0 24 24",
12074      xmlns: "http://www.w3.org/2000/svg"
12075    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
12076      fill: "none",
12077      d: "M0 0h24v24H0V0z"
12078    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
12079      d: "M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"
12080    })),
12081    category: 'formatting',
12082    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('poetry')],
12083    attributes: {
12084      content: {
12085        source: 'html',
12086        selector: 'pre'
12087      },
12088      textAlign: {
12089        type: 'string'
12090      }
12091    },
12092    transforms: {
12093      from: [{
12094        type: 'block',
12095        blocks: ['core/paragraph'],
12096        transform: function transform(attributes) {
12097          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/verse', attributes);
12098        }
12099      }],
12100      to: [{
12101        type: 'block',
12102        blocks: ['core/paragraph'],
12103        transform: function transform(attributes) {
12104          return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/paragraph', attributes);
12105        }
12106      }]
12107    },
12108    edit: function edit(_ref) {
12109      var attributes = _ref.attributes,
12110          setAttributes = _ref.setAttributes,
12111          className = _ref.className,
12112          mergeBlocks = _ref.mergeBlocks;
12113      var textAlign = attributes.textAlign,
12114          content = attributes.content;
12115      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["AlignmentToolbar"], {
12116        value: textAlign,
12117        onChange: function onChange(nextAlign) {
12118          setAttributes({
12119            textAlign: nextAlign
12120          });
12121        }
12122      })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"], {
12123        tagName: "pre",
12124        value: content,
12125        onChange: function onChange(nextContent) {
12126          setAttributes({
12127            content: nextContent
12128          });
12129        },
12130        style: {
12131          textAlign: textAlign
12132        },
12133        placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Write…'),
12134        wrapperClassName: className,
12135        onMerge: mergeBlocks
12136      }));
12137    },
12138    save: function save(_ref2) {
12139      var attributes = _ref2.attributes,
12140          className = _ref2.className;
12141      var textAlign = attributes.textAlign,
12142          content = attributes.content;
12143      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"].Content, {
12144        tagName: "pre",
12145        className: className,
12146        style: {
12147          textAlign: textAlign
12148        },
12149        value: content
12150      });
12151    },
12152    merge: function merge(attributes, attributesToMerge) {
12153      return {
12154        content: attributes.content + attributesToMerge.content
12155      };
12156    }
12157  };
12158  
12159  
12160  /***/ }),
12161  
12162  /***/ "./node_modules/@wordpress/block-library/build-module/video/edit.js":
12163  /*!**************************************************************************!*\
12164    !*** ./node_modules/@wordpress/block-library/build-module/video/edit.js ***!
12165    \**************************************************************************/
12166  /*! exports provided: default */
12167  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12168  
12169  "use strict";
12170  __webpack_require__.r(__webpack_exports__);
12171  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
12172  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
12173  /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
12174  /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
12175  /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
12176  /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
12177  /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
12178  /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
12179  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
12180  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
12181  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
12182  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
12183  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
12184  /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__);
12185  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
12186  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__);
12187  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
12188  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_12__);
12189  
12190  
12191  
12192  
12193  
12194  
12195  
12196  
12197  
12198  
12199  /**
12200   * WordPress dependencies
12201   */
12202  
12203  
12204  
12205  
12206  
12207  var ALLOWED_MEDIA_TYPES = ['video'];
12208  
12209  var VideoEdit =
12210  /*#__PURE__*/
12211  function (_Component) {
12212    Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(VideoEdit, _Component);
12213  
12214    function VideoEdit() {
12215      var _this;
12216  
12217      Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, VideoEdit);
12218  
12219      _this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(VideoEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited
12220      // without setting the actual value outside of the edit UI
12221  
12222      _this.state = {
12223        editing: !_this.props.attributes.src
12224      };
12225      _this.videoPlayer = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createRef"])();
12226      _this.toggleAttribute = _this.toggleAttribute.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
12227      _this.onSelectURL = _this.onSelectURL.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
12228      _this.onSelectPoster = _this.onSelectPoster.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
12229      _this.onRemovePoster = _this.onRemovePoster.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
12230      return _this;
12231    }
12232  
12233    Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(VideoEdit, [{
12234      key: "componentDidMount",
12235      value: function componentDidMount() {
12236        var _this2 = this;
12237  
12238        var _this$props = this.props,
12239            attributes = _this$props.attributes,
12240            noticeOperations = _this$props.noticeOperations,
12241            setAttributes = _this$props.setAttributes;
12242        var id = attributes.id,
12243            _attributes$src = attributes.src,
12244            src = _attributes$src === void 0 ? '' : _attributes$src;
12245  
12246        if (!id && src.indexOf('blob:') === 0) {
12247          var file = Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_12__["getBlobByURL"])(src);
12248  
12249          if (file) {
12250            Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["mediaUpload"])({
12251              filesList: [file],
12252              onFileChange: function onFileChange(_ref) {
12253                var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 1),
12254                    url = _ref2[0].url;
12255  
12256                setAttributes({
12257                  src: url
12258                });
12259              },
12260              onError: function onError(message) {
12261                _this2.setState({
12262                  editing: true
12263                });
12264  
12265                noticeOperations.createErrorNotice(message);
12266              },
12267              allowedTypes: ALLOWED_MEDIA_TYPES
12268            });
12269          }
12270        }
12271      }
12272    }, {
12273      key: "componentDidUpdate",
12274      value: function componentDidUpdate(prevProps) {
12275        if (this.props.attributes.poster !== prevProps.attributes.poster) {
12276          this.videoPlayer.current.load();
12277        }
12278      }
12279    }, {
12280      key: "toggleAttribute",
12281      value: function toggleAttribute(attribute) {
12282        var _this3 = this;
12283  
12284        return function (newValue) {
12285          _this3.props.setAttributes(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, attribute, newValue));
12286        };
12287      }
12288    }, {
12289      key: "onSelectURL",
12290      value: function onSelectURL(newSrc) {
12291        var _this$props2 = this.props,
12292            attributes = _this$props2.attributes,
12293            setAttributes = _this$props2.setAttributes;
12294        var src = attributes.src; // Set the block's src from the edit component's state, and switch off
12295        // the editing UI.
12296  
12297        if (newSrc !== src) {
12298          setAttributes({
12299            src: newSrc,
12300            id: undefined
12301          });
12302        }
12303  
12304        this.setState({
12305          editing: false
12306        });
12307      }
12308    }, {
12309      key: "onSelectPoster",
12310      value: function onSelectPoster(image) {
12311        var setAttributes = this.props.setAttributes;
12312        setAttributes({
12313          poster: image.url
12314        });
12315      }
12316    }, {
12317      key: "onRemovePoster",
12318      value: function onRemovePoster() {
12319        var setAttributes = this.props.setAttributes;
12320        setAttributes({
12321          poster: ''
12322        });
12323      }
12324    }, {
12325      key: "render",
12326      value: function render() {
12327        var _this4 = this;
12328  
12329        var _this$props$attribute = this.props.attributes,
12330            autoplay = _this$props$attribute.autoplay,
12331            caption = _this$props$attribute.caption,
12332            controls = _this$props$attribute.controls,
12333            loop = _this$props$attribute.loop,
12334            muted = _this$props$attribute.muted,
12335            poster = _this$props$attribute.poster,
12336            preload = _this$props$attribute.preload,
12337            src = _this$props$attribute.src;
12338        var _this$props3 = this.props,
12339            setAttributes = _this$props3.setAttributes,
12340            isSelected = _this$props3.isSelected,
12341            className = _this$props3.className,
12342            noticeOperations = _this$props3.noticeOperations,
12343            noticeUI = _this$props3.noticeUI;
12344        var editing = this.state.editing;
12345  
12346        var switchToEditing = function switchToEditing() {
12347          _this4.setState({
12348            editing: true
12349          });
12350        };
12351  
12352        var onSelectVideo = function onSelectVideo(media) {
12353          if (!media || !media.url) {
12354            // in this case there was an error and we should continue in the editing state
12355            // previous attributes should be removed because they may be temporary blob urls
12356            setAttributes({
12357              src: undefined,
12358              id: undefined
12359            });
12360            switchToEditing();
12361            return;
12362          } // sets the block's attribute and updates the edit component from the
12363          // selected media, then switches off the editing UI
12364  
12365  
12366          setAttributes({
12367            src: media.url,
12368            id: media.id
12369          });
12370  
12371          _this4.setState({
12372            src: media.url,
12373            editing: false
12374          });
12375        };
12376  
12377        if (editing) {
12378          return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["MediaPlaceholder"], {
12379            icon: "media-video",
12380            labels: {
12381              title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Video'),
12382              name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('a video')
12383            },
12384            className: className,
12385            onSelect: onSelectVideo,
12386            onSelectURL: this.onSelectURL,
12387            accept: "video/*",
12388            allowedTypes: ALLOWED_MEDIA_TYPES,
12389            value: this.props.attributes,
12390            notices: noticeUI,
12391            onError: noticeOperations.createErrorNotice
12392          });
12393        }
12394        /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
12395  
12396  
12397        return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Toolbar"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["IconButton"], {
12398          className: "components-icon-button components-toolbar__control",
12399          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Edit video'),
12400          onClick: switchToEditing,
12401          icon: "edit"
12402        }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["PanelBody"], {
12403          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Video Settings')
12404        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
12405          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Autoplay'),
12406          onChange: this.toggleAttribute('autoplay'),
12407          checked: autoplay
12408        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
12409          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Loop'),
12410          onChange: this.toggleAttribute('loop'),
12411          checked: loop
12412        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
12413          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Muted'),
12414          onChange: this.toggleAttribute('muted'),
12415          checked: muted
12416        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["ToggleControl"], {
12417          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Playback Controls'),
12418          onChange: this.toggleAttribute('controls'),
12419          checked: controls
12420        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["SelectControl"], {
12421          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Preload'),
12422          value: preload,
12423          onChange: function onChange(value) {
12424            return setAttributes({
12425              preload: value
12426            });
12427          },
12428          options: [{
12429            value: 'auto',
12430            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Auto')
12431          }, {
12432            value: 'metadata',
12433            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Metadata')
12434          }, {
12435            value: 'none',
12436            label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('None')
12437          }]
12438        }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["BaseControl"], {
12439          className: "editor-video-poster-control",
12440          label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Poster Image')
12441        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["MediaUpload"], {
12442          title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Select Poster Image'),
12443          onSelect: this.onSelectPoster,
12444          allowedTypes: ALLOWED_MEDIA_TYPES,
12445          render: function render(_ref3) {
12446            var open = _ref3.open;
12447            return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Button"], {
12448              isDefault: true,
12449              onClick: open
12450            }, !_this4.props.attributes.poster ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Select Poster Image') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Replace image'));
12451          }
12452        }), !!this.props.attributes.poster && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Button"], {
12453          onClick: this.onRemovePoster,
12454          isLink: true,
12455          isDestructive: true
12456        }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Remove Poster Image'))))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("figure", {
12457          className: className
12458        }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Disabled"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("video", {
12459          controls: controls,
12460          poster: poster,
12461          src: src,
12462          ref: this.videoPlayer
12463        })), (!_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["RichText"].isEmpty(caption) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_11__["RichText"], {
12464          tagName: "figcaption",
12465          placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__["__"])('Write caption…'),
12466          value: caption,
12467          onChange: function onChange(value) {
12468            return setAttributes({
12469              caption: value
12470            });
12471          },
12472          inlineToolbar: true
12473        })));
12474        /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
12475      }
12476    }]);
12477  
12478    return VideoEdit;
12479  }(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
12480  
12481  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["withNotices"])(VideoEdit));
12482  
12483  
12484  /***/ }),
12485  
12486  /***/ "./node_modules/@wordpress/block-library/build-module/video/index.js":
12487  /*!***************************************************************************!*\
12488    !*** ./node_modules/@wordpress/block-library/build-module/video/index.js ***!
12489    \***************************************************************************/
12490  /*! exports provided: name, settings */
12491  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12492  
12493  "use strict";
12494  __webpack_require__.r(__webpack_exports__);
12495  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
12496  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
12497  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
12498  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
12499  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
12500  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
12501  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
12502  /* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__);
12503  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
12504  /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
12505  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
12506  /* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_4__);
12507  /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/video/edit.js");
12508  
12509  
12510  /**
12511   * WordPress dependencies
12512   */
12513  
12514  
12515  
12516  
12517  /**
12518   * Internal dependencies
12519   */
12520  
12521  
12522  var name = 'core/video';
12523  var settings = {
12524    title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Video'),
12525    description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a video file and a simple video player.'),
12526    icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("svg", {
12527      viewBox: "0 0 24 24",
12528      xmlns: "http://www.w3.org/2000/svg"
12529    }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
12530      fill: "none",
12531      d: "M0 0h24v24H0V0z"
12532    }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("path", {
12533      d: "M4 6l2 4h14v8H4V6m18-2h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4L2 6v12l2 2h16l2-2V4z"
12534    })),
12535    keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('movie')],
12536    category: 'common',
12537    attributes: {
12538      autoplay: {
12539        type: 'boolean',
12540        source: 'attribute',
12541        selector: 'video',
12542        attribute: 'autoplay'
12543      },
12544      caption: {
12545        source: 'html',
12546        selector: 'figcaption'
12547      },
12548      controls: {
12549        type: 'boolean',
12550        source: 'attribute',
12551        selector: 'video',
12552        attribute: 'controls',
12553        default: true
12554      },
12555      id: {
12556        type: 'number'
12557      },
12558      loop: {
12559        type: 'boolean',
12560        source: 'attribute',
12561        selector: 'video',
12562        attribute: 'loop'
12563      },
12564      muted: {
12565        type: 'boolean',
12566        source: 'attribute',
12567        selector: 'video',
12568        attribute: 'muted'
12569      },
12570      poster: {
12571        type: 'string',
12572        source: 'attribute',
12573        selector: 'video',
12574        attribute: 'poster'
12575      },
12576      preload: {
12577        type: 'string',
12578        source: 'attribute',
12579        selector: 'video',
12580        attribute: 'preload',
12581        default: 'metadata'
12582      },
12583      src: {
12584        type: 'string',
12585        source: 'attribute',
12586        selector: 'video',
12587        attribute: 'src'
12588      }
12589    },
12590    transforms: {
12591      from: [{
12592        type: 'files',
12593        isMatch: function isMatch(files) {
12594          return files.length === 1 && files[0].type.indexOf('video/') === 0;
12595        },
12596        transform: function transform(files) {
12597          var file = files[0]; // We don't need to upload the media directly here
12598          // It's already done as part of the `componentDidMount`
12599          // in the video block
12600  
12601          var block = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/video', {
12602            src: Object(_wordpress_blob__WEBPACK_IMPORTED_MODULE_4__["createBlobURL"])(file)
12603          });
12604          return block;
12605        }
12606      }]
12607    },
12608    supports: {
12609      align: true
12610    },
12611    edit: _edit__WEBPACK_IMPORTED_MODULE_5__["default"],
12612    save: function save(_ref) {
12613      var attributes = _ref.attributes;
12614      var autoplay = attributes.autoplay,
12615          caption = attributes.caption,
12616          controls = attributes.controls,
12617          loop = attributes.loop,
12618          muted = attributes.muted,
12619          poster = attributes.poster,
12620          preload = attributes.preload,
12621          src = attributes.src;
12622      return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("figure", null, src && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("video", {
12623        autoPlay: autoplay,
12624        controls: controls,
12625        loop: loop,
12626        muted: muted,
12627        poster: poster,
12628        preload: preload !== 'metadata' ? preload : undefined,
12629        src: src
12630      }), !_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["RichText"].isEmpty(caption) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["RichText"].Content, {
12631        tagName: "figcaption",
12632        value: caption
12633      }));
12634    }
12635  };
12636  
12637  
12638  /***/ }),
12639  
12640  /***/ "./node_modules/classnames/dedupe.js":
12641  /*!*******************************************!*\
12642    !*** ./node_modules/classnames/dedupe.js ***!
12643    \*******************************************/
12644  /*! no static exports found */
12645  /***/ (function(module, exports, __webpack_require__) {
12646  
12647  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
12648    Copyright (c) 2017 Jed Watson.
12649    Licensed under the MIT License (MIT), see
12650    http://jedwatson.github.io/classnames
12651  */
12652  /* global define */
12653  
12654  (function () {
12655      'use strict';
12656  
12657      var classNames = (function () {
12658          // don't inherit from Object so we can skip hasOwnProperty check later
12659          // http://stackoverflow.com/questions/15518328/creating-js-object-with-object-createnull#answer-21079232
12660  		function StorageObject() {}
12661          StorageObject.prototype = Object.create(null);
12662  
12663  		function _parseArray (resultSet, array) {
12664              var length = array.length;
12665  
12666              for (var i = 0; i < length; ++i) {
12667                  _parse(resultSet, array[i]);
12668              }
12669          }
12670  
12671          var hasOwn = {}.hasOwnProperty;
12672  
12673  		function _parseNumber (resultSet, num) {
12674              resultSet[num] = true;
12675          }
12676  
12677  		function _parseObject (resultSet, object) {
12678              for (var k in object) {
12679                  if (hasOwn.call(object, k)) {
12680                      // set value to false instead of deleting it to avoid changing object structure
12681                      // https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/#de-referencing-misconceptions
12682                      resultSet[k] = !!object[k];
12683                  }
12684              }
12685          }
12686  
12687          var SPACE = /\s+/;
12688  		function _parseString (resultSet, str) {
12689              var array = str.split(SPACE);
12690              var length = array.length;
12691  
12692              for (var i = 0; i < length; ++i) {
12693                  resultSet[array[i]] = true;
12694              }
12695          }
12696  
12697  		function _parse (resultSet, arg) {
12698              if (!arg) return;
12699              var argType = typeof arg;
12700  
12701              // 'foo bar'
12702              if (argType === 'string') {
12703                  _parseString(resultSet, arg);
12704  
12705              // ['foo', 'bar', ...]
12706              } else if (Array.isArray(arg)) {
12707                  _parseArray(resultSet, arg);
12708  
12709              // { 'foo': true, ... }
12710              } else if (argType === 'object') {
12711                  _parseObject(resultSet, arg);
12712  
12713              // '130'
12714              } else if (argType === 'number') {
12715                  _parseNumber(resultSet, arg);
12716              }
12717          }
12718  
12719  		function _classNames () {
12720              // don't leak arguments
12721              // https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments
12722              var len = arguments.length;
12723              var args = Array(len);
12724              for (var i = 0; i < len; i++) {
12725                  args[i] = arguments[i];
12726              }
12727  
12728              var classSet = new StorageObject();
12729              _parseArray(classSet, args);
12730  
12731              var list = [];
12732  
12733              for (var k in classSet) {
12734                  if (classSet[k]) {
12735                      list.push(k)
12736                  }
12737              }
12738  
12739              return list.join(' ');
12740          }
12741  
12742          return _classNames;
12743      })();
12744  
12745      if ( true && module.exports) {
12746          classNames.default = classNames;
12747          module.exports = classNames;
12748      } else if (true) {
12749          // register as 'classnames', consistent with npm package name
12750          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
12751              return classNames;
12752          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
12753                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
12754      } else {}
12755  }());
12756  
12757  
12758  /***/ }),
12759  
12760  /***/ "./node_modules/classnames/index.js":
12761  /*!******************************************!*\
12762    !*** ./node_modules/classnames/index.js ***!
12763    \******************************************/
12764  /*! no static exports found */
12765  /***/ (function(module, exports, __webpack_require__) {
12766  
12767  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
12768    Copyright (c) 2017 Jed Watson.
12769    Licensed under the MIT License (MIT), see
12770    http://jedwatson.github.io/classnames
12771  */
12772  /* global define */
12773  
12774  (function () {
12775      'use strict';
12776  
12777      var hasOwn = {}.hasOwnProperty;
12778  
12779  	function classNames () {
12780          var classes = [];
12781  
12782          for (var i = 0; i < arguments.length; i++) {
12783              var arg = arguments[i];
12784              if (!arg) continue;
12785  
12786              var argType = typeof arg;
12787  
12788              if (argType === 'string' || argType === 'number') {
12789                  classes.push(arg);
12790              } else if (Array.isArray(arg) && arg.length) {
12791                  var inner = classNames.apply(null, arg);
12792                  if (inner) {
12793                      classes.push(inner);
12794                  }
12795              } else if (argType === 'object') {
12796                  for (var key in arg) {
12797                      if (hasOwn.call(arg, key) && arg[key]) {
12798                          classes.push(key);
12799                      }
12800                  }
12801              }
12802          }
12803  
12804          return classes.join(' ');
12805      }
12806  
12807      if ( true && module.exports) {
12808          classNames.default = classNames;
12809          module.exports = classNames;
12810      } else if (true) {
12811          // register as 'classnames', consistent with npm package name
12812          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
12813              return classNames;
12814          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
12815                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
12816      } else {}
12817  }());
12818  
12819  
12820  /***/ }),
12821  
12822  /***/ "./node_modules/memize/index.js":
12823  /*!**************************************!*\
12824    !*** ./node_modules/memize/index.js ***!
12825    \**************************************/
12826  /*! no static exports found */
12827  /***/ (function(module, exports, __webpack_require__) {
12828  
12829  module.exports = function memize( fn, options ) {
12830      var size = 0,
12831          maxSize, head, tail;
12832  
12833      if ( options && options.maxSize ) {
12834          maxSize = options.maxSize;
12835      }
12836  
12837  	function memoized( /* ...args */ ) {
12838          var node = head,
12839              len = arguments.length,
12840              args, i;
12841  
12842          searchCache: while ( node ) {
12843              // Perform a shallow equality test to confirm that whether the node
12844              // under test is a candidate for the arguments passed. Two arrays
12845              // are shallowly equal if their length matches and each entry is
12846              // strictly equal between the two sets. Avoid abstracting to a
12847              // function which could incur an arguments leaking deoptimization.
12848  
12849              // Check whether node arguments match arguments length
12850              if ( node.args.length !== arguments.length ) {
12851                  node = node.next;
12852                  continue;
12853              }
12854  
12855              // Check whether node arguments match arguments values
12856              for ( i = 0; i < len; i++ ) {
12857                  if ( node.args[ i ] !== arguments[ i ] ) {
12858                      node = node.next;
12859                      continue searchCache;
12860                  }
12861              }
12862  
12863              // At this point we can assume we've found a match
12864  
12865              // Surface matched node to head if not already
12866              if ( node !== head ) {
12867                  // As tail, shift to previous. Must only shift if not also
12868                  // head, since if both head and tail, there is no previous.
12869                  if ( node === tail ) {
12870                      tail = node.prev;
12871                  }
12872  
12873                  // Adjust siblings to point to each other. If node was tail,
12874                  // this also handles new tail's empty `next` assignment.
12875                  node.prev.next = node.next;
12876                  if ( node.next ) {
12877                      node.next.prev = node.prev;
12878                  }
12879  
12880                  node.next = head;
12881                  node.prev = null;
12882                  head.prev = node;
12883                  head = node;
12884              }
12885  
12886              // Return immediately
12887              return node.val;
12888          }
12889  
12890          // No cached value found. Continue to insertion phase:
12891  
12892          // Create a copy of arguments (avoid leaking deoptimization)
12893          args = new Array( len );
12894          for ( i = 0; i < len; i++ ) {
12895              args[ i ] = arguments[ i ];
12896          }
12897  
12898          node = {
12899              args: args,
12900  
12901              // Generate the result from original function
12902              val: fn.apply( null, args )
12903          };
12904  
12905          // Don't need to check whether node is already head, since it would
12906          // have been returned above already if it was
12907  
12908          // Shift existing head down list
12909          if ( head ) {
12910              head.prev = node;
12911              node.next = head;
12912          } else {
12913              // If no head, follows that there's no tail (at initial or reset)
12914              tail = node;
12915          }
12916  
12917          // Trim tail if we're reached max size and are pending cache insertion
12918          if ( size === maxSize ) {
12919              tail = tail.prev;
12920              tail.next = null;
12921          } else {
12922              size++;
12923          }
12924  
12925          head = node;
12926  
12927          return node.val;
12928      }
12929  
12930      memoized.clear = function() {
12931          head = null;
12932          tail = null;
12933          size = 0;
12934      };
12935  
12936      if ( false ) {}
12937  
12938      return memoized;
12939  };
12940  
12941  
12942  /***/ }),
12943  
12944  /***/ "./node_modules/punycode/punycode.js":
12945  /*!*******************************************!*\
12946    !*** ./node_modules/punycode/punycode.js ***!
12947    \*******************************************/
12948  /*! no static exports found */
12949  /***/ (function(module, exports, __webpack_require__) {
12950  
12951  /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */
12952  ;(function(root) {
12953  
12954      /** Detect free variables */
12955      var freeExports =  true && exports &&
12956          !exports.nodeType && exports;
12957      var freeModule =  true && module &&
12958          !module.nodeType && module;
12959      var freeGlobal = typeof global == 'object' && global;
12960      if (
12961          freeGlobal.global === freeGlobal ||
12962          freeGlobal.window === freeGlobal ||
12963          freeGlobal.self === freeGlobal
12964      ) {
12965          root = freeGlobal;
12966      }
12967  
12968      /**
12969       * The `punycode` object.
12970       * @name punycode
12971       * @type Object
12972       */
12973      var punycode,
12974  
12975      /** Highest positive signed 32-bit float value */
12976      maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
12977  
12978      /** Bootstring parameters */
12979      base = 36,
12980      tMin = 1,
12981      tMax = 26,
12982      skew = 38,
12983      damp = 700,
12984      initialBias = 72,
12985      initialN = 128, // 0x80
12986      delimiter = '-', // '\x2D'
12987  
12988      /** Regular expressions */
12989      regexPunycode = /^xn--/,
12990      regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
12991      regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
12992  
12993      /** Error messages */
12994      errors = {
12995          'overflow': 'Overflow: input needs wider integers to process',
12996          'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
12997          'invalid-input': 'Invalid input'
12998      },
12999  
13000      /** Convenience shortcuts */
13001      baseMinusTMin = base - tMin,
13002      floor = Math.floor,
13003      stringFromCharCode = String.fromCharCode,
13004  
13005      /** Temporary variable */
13006      key;
13007  
13008      /*--------------------------------------------------------------------------*/
13009  
13010      /**
13011       * A generic error utility function.
13012       * @private
13013       * @param {String} type The error type.
13014       * @returns {Error} Throws a `RangeError` with the applicable error message.
13015       */
13016  	function error(type) {
13017          throw new RangeError(errors[type]);
13018      }
13019  
13020      /**
13021       * A generic `Array#map` utility function.
13022       * @private
13023       * @param {Array} array The array to iterate over.
13024       * @param {Function} callback The function that gets called for every array
13025       * item.
13026       * @returns {Array} A new array of values returned by the callback function.
13027       */
13028  	function map(array, fn) {
13029          var length = array.length;
13030          var result = [];
13031          while (length--) {
13032              result[length] = fn(array[length]);
13033          }
13034          return result;
13035      }
13036  
13037      /**
13038       * A simple `Array#map`-like wrapper to work with domain name strings or email
13039       * addresses.
13040       * @private
13041       * @param {String} domain The domain name or email address.
13042       * @param {Function} callback The function that gets called for every
13043       * character.
13044       * @returns {Array} A new string of characters returned by the callback
13045       * function.
13046       */
13047  	function mapDomain(string, fn) {
13048          var parts = string.split('@');
13049          var result = '';
13050          if (parts.length > 1) {
13051              // In email addresses, only the domain name should be punycoded. Leave
13052              // the local part (i.e. everything up to `@`) intact.
13053              result = parts[0] + '@';
13054              string = parts[1];
13055          }
13056          // Avoid `split(regex)` for IE8 compatibility. See #17.
13057          string = string.replace(regexSeparators, '\x2E');
13058          var labels = string.split('.');
13059          var encoded = map(labels, fn).join('.');
13060          return result + encoded;
13061      }
13062  
13063      /**
13064       * Creates an array containing the numeric code points of each Unicode
13065       * character in the string. While JavaScript uses UCS-2 internally,
13066       * this function will convert a pair of surrogate halves (each of which
13067       * UCS-2 exposes as separate characters) into a single code point,
13068       * matching UTF-16.
13069       * @see `punycode.ucs2.encode`
13070       * @see <https://mathiasbynens.be/notes/javascript-encoding>
13071       * @memberOf punycode.ucs2
13072       * @name decode
13073       * @param {String} string The Unicode input string (UCS-2).
13074       * @returns {Array} The new array of code points.
13075       */
13076  	function ucs2decode(string) {
13077          var output = [],
13078              counter = 0,
13079              length = string.length,
13080              value,
13081              extra;
13082          while (counter < length) {
13083              value = string.charCodeAt(counter++);
13084              if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
13085                  // high surrogate, and there is a next character
13086                  extra = string.charCodeAt(counter++);
13087                  if ((extra & 0xFC00) == 0xDC00) { // low surrogate
13088                      output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
13089                  } else {
13090                      // unmatched surrogate; only append this code unit, in case the next
13091                      // code unit is the high surrogate of a surrogate pair
13092                      output.push(value);
13093                      counter--;
13094                  }
13095              } else {
13096                  output.push(value);
13097              }
13098          }
13099          return output;
13100      }
13101  
13102      /**
13103       * Creates a string based on an array of numeric code points.
13104       * @see `punycode.ucs2.decode`
13105       * @memberOf punycode.ucs2
13106       * @name encode
13107       * @param {Array} codePoints The array of numeric code points.
13108       * @returns {String} The new Unicode string (UCS-2).
13109       */
13110  	function ucs2encode(array) {
13111          return map(array, function(value) {
13112              var output = '';
13113              if (value > 0xFFFF) {
13114                  value -= 0x10000;
13115                  output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
13116                  value = 0xDC00 | value & 0x3FF;
13117              }
13118              output += stringFromCharCode(value);
13119              return output;
13120          }).join('');
13121      }
13122  
13123      /**
13124       * Converts a basic code point into a digit/integer.
13125       * @see `digitToBasic()`
13126       * @private
13127       * @param {Number} codePoint The basic numeric code point value.
13128       * @returns {Number} The numeric value of a basic code point (for use in
13129       * representing integers) in the range `0` to `base - 1`, or `base` if
13130       * the code point does not represent a value.
13131       */
13132  	function basicToDigit(codePoint) {
13133          if (codePoint - 48 < 10) {
13134              return codePoint - 22;
13135          }
13136          if (codePoint - 65 < 26) {
13137              return codePoint - 65;
13138          }
13139          if (codePoint - 97 < 26) {
13140              return codePoint - 97;
13141          }
13142          return base;
13143      }
13144  
13145      /**
13146       * Converts a digit/integer into a basic code point.
13147       * @see `basicToDigit()`
13148       * @private
13149       * @param {Number} digit The numeric value of a basic code point.
13150       * @returns {Number} The basic code point whose value (when used for
13151       * representing integers) is `digit`, which needs to be in the range
13152       * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
13153       * used; else, the lowercase form is used. The behavior is undefined
13154       * if `flag` is non-zero and `digit` has no uppercase form.
13155       */
13156  	function digitToBasic(digit, flag) {
13157          //  0..25 map to ASCII a..z or A..Z
13158          // 26..35 map to ASCII 0..9
13159          return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
13160      }
13161  
13162      /**
13163       * Bias adaptation function as per section 3.4 of RFC 3492.
13164       * https://tools.ietf.org/html/rfc3492#section-3.4
13165       * @private
13166       */
13167  	function adapt(delta, numPoints, firstTime) {
13168          var k = 0;
13169          delta = firstTime ? floor(delta / damp) : delta >> 1;
13170          delta += floor(delta / numPoints);
13171          for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
13172              delta = floor(delta / baseMinusTMin);
13173          }
13174          return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
13175      }
13176  
13177      /**
13178       * Converts a Punycode string of ASCII-only symbols to a string of Unicode
13179       * symbols.
13180       * @memberOf punycode
13181       * @param {String} input The Punycode string of ASCII-only symbols.
13182       * @returns {String} The resulting string of Unicode symbols.
13183       */
13184  	function decode(input) {
13185          // Don't use UCS-2
13186          var output = [],
13187              inputLength = input.length,
13188              out,
13189              i = 0,
13190              n = initialN,
13191              bias = initialBias,
13192              basic,
13193              j,
13194              index,
13195              oldi,
13196              w,
13197              k,
13198              digit,
13199              t,
13200              /** Cached calculation results */
13201              baseMinusT;
13202  
13203          // Handle the basic code points: let `basic` be the number of input code
13204          // points before the last delimiter, or `0` if there is none, then copy
13205          // the first basic code points to the output.
13206  
13207          basic = input.lastIndexOf(delimiter);
13208          if (basic < 0) {
13209              basic = 0;
13210          }
13211  
13212          for (j = 0; j < basic; ++j) {
13213              // if it's not a basic code point
13214              if (input.charCodeAt(j) >= 0x80) {
13215                  error('not-basic');
13216              }
13217              output.push(input.charCodeAt(j));
13218          }
13219  
13220          // Main decoding loop: start just after the last delimiter if any basic code
13221          // points were copied; start at the beginning otherwise.
13222  
13223          for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
13224  
13225              // `index` is the index of the next character to be consumed.
13226              // Decode a generalized variable-length integer into `delta`,
13227              // which gets added to `i`. The overflow checking is easier
13228              // if we increase `i` as we go, then subtract off its starting
13229              // value at the end to obtain `delta`.
13230              for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
13231  
13232                  if (index >= inputLength) {
13233                      error('invalid-input');
13234                  }
13235  
13236                  digit = basicToDigit(input.charCodeAt(index++));
13237  
13238                  if (digit >= base || digit > floor((maxInt - i) / w)) {
13239                      error('overflow');
13240                  }
13241  
13242                  i += digit * w;
13243                  t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
13244  
13245                  if (digit < t) {
13246                      break;
13247                  }
13248  
13249                  baseMinusT = base - t;
13250                  if (w > floor(maxInt / baseMinusT)) {
13251                      error('overflow');
13252                  }
13253  
13254                  w *= baseMinusT;
13255  
13256              }
13257  
13258              out = output.length + 1;
13259              bias = adapt(i - oldi, out, oldi == 0);
13260  
13261              // `i` was supposed to wrap around from `out` to `0`,
13262              // incrementing `n` each time, so we'll fix that now:
13263              if (floor(i / out) > maxInt - n) {
13264                  error('overflow');
13265              }
13266  
13267              n += floor(i / out);
13268              i %= out;
13269  
13270              // Insert `n` at position `i` of the output
13271              output.splice(i++, 0, n);
13272  
13273          }
13274  
13275          return ucs2encode(output);
13276      }
13277  
13278      /**
13279       * Converts a string of Unicode symbols (e.g. a domain name label) to a
13280       * Punycode string of ASCII-only symbols.
13281       * @memberOf punycode
13282       * @param {String} input The string of Unicode symbols.
13283       * @returns {String} The resulting Punycode string of ASCII-only symbols.
13284       */
13285  	function encode(input) {
13286          var n,
13287              delta,
13288              handledCPCount,
13289              basicLength,
13290              bias,
13291              j,
13292              m,
13293              q,
13294              k,
13295              t,
13296              currentValue,
13297              output = [],
13298              /** `inputLength` will hold the number of code points in `input`. */
13299              inputLength,
13300              /** Cached calculation results */
13301              handledCPCountPlusOne,
13302              baseMinusT,
13303              qMinusT;
13304  
13305          // Convert the input in UCS-2 to Unicode
13306          input = ucs2decode(input);
13307  
13308          // Cache the length
13309          inputLength = input.length;
13310  
13311          // Initialize the state
13312          n = initialN;
13313          delta = 0;
13314          bias = initialBias;
13315  
13316          // Handle the basic code points
13317          for (j = 0; j < inputLength; ++j) {
13318              currentValue = input[j];
13319              if (currentValue < 0x80) {
13320                  output.push(stringFromCharCode(currentValue));
13321              }
13322          }
13323  
13324          handledCPCount = basicLength = output.length;
13325  
13326          // `handledCPCount` is the number of code points that have been handled;
13327          // `basicLength` is the number of basic code points.
13328  
13329          // Finish the basic string - if it is not empty - with a delimiter
13330          if (basicLength) {
13331              output.push(delimiter);
13332          }
13333  
13334          // Main encoding loop:
13335          while (handledCPCount < inputLength) {
13336  
13337              // All non-basic code points < n have been handled already. Find the next
13338              // larger one:
13339              for (m = maxInt, j = 0; j < inputLength; ++j) {
13340                  currentValue = input[j];
13341                  if (currentValue >= n && currentValue < m) {
13342                      m = currentValue;
13343                  }
13344              }
13345  
13346              // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
13347              // but guard against overflow
13348              handledCPCountPlusOne = handledCPCount + 1;
13349              if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
13350                  error('overflow');
13351              }
13352  
13353              delta += (m - n) * handledCPCountPlusOne;
13354              n = m;
13355  
13356              for (j = 0; j < inputLength; ++j) {
13357                  currentValue = input[j];
13358  
13359                  if (currentValue < n && ++delta > maxInt) {
13360                      error('overflow');
13361                  }
13362  
13363                  if (currentValue == n) {
13364                      // Represent delta as a generalized variable-length integer
13365                      for (q = delta, k = base; /* no condition */; k += base) {
13366                          t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
13367                          if (q < t) {
13368                              break;
13369                          }
13370                          qMinusT = q - t;
13371                          baseMinusT = base - t;
13372                          output.push(
13373                              stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
13374                          );
13375                          q = floor(qMinusT / baseMinusT);
13376                      }
13377  
13378                      output.push(stringFromCharCode(digitToBasic(q, 0)));
13379                      bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
13380                      delta = 0;
13381                      ++handledCPCount;
13382                  }
13383              }
13384  
13385              ++delta;
13386              ++n;
13387  
13388          }
13389          return output.join('');
13390      }
13391  
13392      /**
13393       * Converts a Punycode string representing a domain name or an email address
13394       * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
13395       * it doesn't matter if you call it on a string that has already been
13396       * converted to Unicode.
13397       * @memberOf punycode
13398       * @param {String} input The Punycoded domain name or email address to
13399       * convert to Unicode.
13400       * @returns {String} The Unicode representation of the given Punycode
13401       * string.
13402       */
13403  	function toUnicode(input) {
13404          return mapDomain(input, function(string) {
13405              return regexPunycode.test(string)
13406                  ? decode(string.slice(4).toLowerCase())
13407                  : string;
13408          });
13409      }
13410  
13411      /**
13412       * Converts a Unicode string representing a domain name or an email address to
13413       * Punycode. Only the non-ASCII parts of the domain name will be converted,
13414       * i.e. it doesn't matter if you call it with a domain that's already in
13415       * ASCII.
13416       * @memberOf punycode
13417       * @param {String} input The domain name or email address to convert, as a
13418       * Unicode string.
13419       * @returns {String} The Punycode representation of the given domain name or
13420       * email address.
13421       */
13422  	function toASCII(input) {
13423          return mapDomain(input, function(string) {
13424              return regexNonASCII.test(string)
13425                  ? 'xn--' + encode(string)
13426                  : string;
13427          });
13428      }
13429  
13430      /*--------------------------------------------------------------------------*/
13431  
13432      /** Define the public API */
13433      punycode = {
13434          /**
13435           * A string representing the current Punycode.js version number.
13436           * @memberOf punycode
13437           * @type String
13438           */
13439          'version': '1.4.1',
13440          /**
13441           * An object of methods to convert from JavaScript's internal character
13442           * representation (UCS-2) to Unicode code points, and back.
13443           * @see <https://mathiasbynens.be/notes/javascript-encoding>
13444           * @memberOf punycode
13445           * @type Object
13446           */
13447          'ucs2': {
13448              'decode': ucs2decode,
13449              'encode': ucs2encode
13450          },
13451          'decode': decode,
13452          'encode': encode,
13453          'toASCII': toASCII,
13454          'toUnicode': toUnicode
13455      };
13456  
13457      /** Expose `punycode` */
13458      // Some AMD build optimizers, like r.js, check for specific condition patterns
13459      // like the following:
13460      if (
13461          true
13462      ) {
13463          !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
13464              return punycode;
13465          }).call(exports, __webpack_require__, exports, module),
13466                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
13467      } else {}
13468  
13469  }(this));
13470  
13471  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module), __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
13472  
13473  /***/ }),
13474  
13475  /***/ "./node_modules/querystring-es3/decode.js":
13476  /*!************************************************!*\
13477    !*** ./node_modules/querystring-es3/decode.js ***!
13478    \************************************************/
13479  /*! no static exports found */
13480  /***/ (function(module, exports, __webpack_require__) {
13481  
13482  "use strict";
13483  // Copyright Joyent, Inc. and other Node contributors.
13484  //
13485  // Permission is hereby granted, free of charge, to any person obtaining a
13486  // copy of this software and associated documentation files (the
13487  // "Software"), to deal in the Software without restriction, including
13488  // without limitation the rights to use, copy, modify, merge, publish,
13489  // distribute, sublicense, and/or sell copies of the Software, and to permit
13490  // persons to whom the Software is furnished to do so, subject to the
13491  // following conditions:
13492  //
13493  // The above copyright notice and this permission notice shall be included
13494  // in all copies or substantial portions of the Software.
13495  //
13496  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
13497  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
13498  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
13499  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
13500  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
13501  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
13502  // USE OR OTHER DEALINGS IN THE SOFTWARE.
13503  
13504  
13505  
13506  // If obj.hasOwnProperty has been overridden, then calling
13507  // obj.hasOwnProperty(prop) will break.
13508  // See: https://github.com/joyent/node/issues/1707
13509  function hasOwnProperty(obj, prop) {
13510    return Object.prototype.hasOwnProperty.call(obj, prop);
13511  }
13512  
13513  module.exports = function(qs, sep, eq, options) {
13514    sep = sep || '&';
13515    eq = eq || '=';
13516    var obj = {};
13517  
13518    if (typeof qs !== 'string' || qs.length === 0) {
13519      return obj;
13520    }
13521  
13522    var regexp = /\+/g;
13523    qs = qs.split(sep);
13524  
13525    var maxKeys = 1000;
13526    if (options && typeof options.maxKeys === 'number') {
13527      maxKeys = options.maxKeys;
13528    }
13529  
13530    var len = qs.length;
13531    // maxKeys <= 0 means that we should not limit keys count
13532    if (maxKeys > 0 && len > maxKeys) {
13533      len = maxKeys;
13534    }
13535  
13536    for (var i = 0; i < len; ++i) {
13537      var x = qs[i].replace(regexp, '%20'),
13538          idx = x.indexOf(eq),
13539          kstr, vstr, k, v;
13540  
13541      if (idx >= 0) {
13542        kstr = x.substr(0, idx);
13543        vstr = x.substr(idx + 1);
13544      } else {
13545        kstr = x;
13546        vstr = '';
13547      }
13548  
13549      k = decodeURIComponent(kstr);
13550      v = decodeURIComponent(vstr);
13551  
13552      if (!hasOwnProperty(obj, k)) {
13553        obj[k] = v;
13554      } else if (isArray(obj[k])) {
13555        obj[k].push(v);
13556      } else {
13557        obj[k] = [obj[k], v];
13558      }
13559    }
13560  
13561    return obj;
13562  };
13563  
13564  var isArray = Array.isArray || function (xs) {
13565    return Object.prototype.toString.call(xs) === '[object Array]';
13566  };
13567  
13568  
13569  /***/ }),
13570  
13571  /***/ "./node_modules/querystring-es3/encode.js":
13572  /*!************************************************!*\
13573    !*** ./node_modules/querystring-es3/encode.js ***!
13574    \************************************************/
13575  /*! no static exports found */
13576  /***/ (function(module, exports, __webpack_require__) {
13577  
13578  "use strict";
13579  // Copyright Joyent, Inc. and other Node contributors.
13580  //
13581  // Permission is hereby granted, free of charge, to any person obtaining a
13582  // copy of this software and associated documentation files (the
13583  // "Software"), to deal in the Software without restriction, including
13584  // without limitation the rights to use, copy, modify, merge, publish,
13585  // distribute, sublicense, and/or sell copies of the Software, and to permit
13586  // persons to whom the Software is furnished to do so, subject to the
13587  // following conditions:
13588  //
13589  // The above copyright notice and this permission notice shall be included
13590  // in all copies or substantial portions of the Software.
13591  //
13592  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
13593  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
13594  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
13595  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
13596  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
13597  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
13598  // USE OR OTHER DEALINGS IN THE SOFTWARE.
13599  
13600  
13601  
13602  var stringifyPrimitive = function(v) {
13603    switch (typeof v) {
13604      case 'string':
13605        return v;
13606  
13607      case 'boolean':
13608        return v ? 'true' : 'false';
13609  
13610      case 'number':
13611        return isFinite(v) ? v : '';
13612  
13613      default:
13614        return '';
13615    }
13616  };
13617  
13618  module.exports = function(obj, sep, eq, name) {
13619    sep = sep || '&';
13620    eq = eq || '=';
13621    if (obj === null) {
13622      obj = undefined;
13623    }
13624  
13625    if (typeof obj === 'object') {
13626      return map(objectKeys(obj), function(k) {
13627        var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
13628        if (isArray(obj[k])) {
13629          return map(obj[k], function(v) {
13630            return ks + encodeURIComponent(stringifyPrimitive(v));
13631          }).join(sep);
13632        } else {
13633          return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
13634        }
13635      }).join(sep);
13636  
13637    }
13638  
13639    if (!name) return '';
13640    return encodeURIComponent(stringifyPrimitive(name)) + eq +
13641           encodeURIComponent(stringifyPrimitive(obj));
13642  };
13643  
13644  var isArray = Array.isArray || function (xs) {
13645    return Object.prototype.toString.call(xs) === '[object Array]';
13646  };
13647  
13648  function map (xs, f) {
13649    if (xs.map) return xs.map(f);
13650    var res = [];
13651    for (var i = 0; i < xs.length; i++) {
13652      res.push(f(xs[i], i));
13653    }
13654    return res;
13655  }
13656  
13657  var objectKeys = Object.keys || function (obj) {
13658    var res = [];
13659    for (var key in obj) {
13660      if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
13661    }
13662    return res;
13663  };
13664  
13665  
13666  /***/ }),
13667  
13668  /***/ "./node_modules/querystring-es3/index.js":
13669  /*!***********************************************!*\
13670    !*** ./node_modules/querystring-es3/index.js ***!
13671    \***********************************************/
13672  /*! no static exports found */
13673  /***/ (function(module, exports, __webpack_require__) {
13674  
13675  "use strict";
13676  
13677  
13678  exports.decode = exports.parse = __webpack_require__(/*! ./decode */ "./node_modules/querystring-es3/decode.js");
13679  exports.encode = exports.stringify = __webpack_require__(/*! ./encode */ "./node_modules/querystring-es3/encode.js");
13680  
13681  
13682  /***/ }),
13683  
13684  /***/ "./node_modules/url/url.js":
13685  /*!*********************************!*\
13686    !*** ./node_modules/url/url.js ***!
13687    \*********************************/
13688  /*! no static exports found */
13689  /***/ (function(module, exports, __webpack_require__) {
13690  
13691  "use strict";
13692  // Copyright Joyent, Inc. and other Node contributors.
13693  //
13694  // Permission is hereby granted, free of charge, to any person obtaining a
13695  // copy of this software and associated documentation files (the
13696  // "Software"), to deal in the Software without restriction, including
13697  // without limitation the rights to use, copy, modify, merge, publish,
13698  // distribute, sublicense, and/or sell copies of the Software, and to permit
13699  // persons to whom the Software is furnished to do so, subject to the
13700  // following conditions:
13701  //
13702  // The above copyright notice and this permission notice shall be included
13703  // in all copies or substantial portions of the Software.
13704  //
13705  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
13706  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
13707  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
13708  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
13709  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
13710  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
13711  // USE OR OTHER DEALINGS IN THE SOFTWARE.
13712  
13713  
13714  
13715  var punycode = __webpack_require__(/*! punycode */ "./node_modules/punycode/punycode.js");
13716  var util = __webpack_require__(/*! ./util */ "./node_modules/url/util.js");
13717  
13718  exports.parse = urlParse;
13719  exports.resolve = urlResolve;
13720  exports.resolveObject = urlResolveObject;
13721  exports.format = urlFormat;
13722  
13723  exports.Url = Url;
13724  
13725  function Url() {
13726    this.protocol = null;
13727    this.slashes = null;
13728    this.auth = null;
13729    this.host = null;
13730    this.port = null;
13731    this.hostname = null;
13732    this.hash = null;
13733    this.search = null;
13734    this.query = null;
13735    this.pathname = null;
13736    this.path = null;
13737    this.href = null;
13738  }
13739  
13740  // Reference: RFC 3986, RFC 1808, RFC 2396
13741  
13742  // define these here so at least they only have to be
13743  // compiled once on the first module load.
13744  var protocolPattern = /^([a-z0-9.+-]+:)/i,
13745      portPattern = /:[0-9]*$/,
13746  
13747      // Special case for a simple path URL
13748      simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
13749  
13750      // RFC 2396: characters reserved for delimiting URLs.
13751      // We actually just auto-escape these.
13752      delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
13753  
13754      // RFC 2396: characters not allowed for various reasons.
13755      unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
13756  
13757      // Allowed by RFCs, but cause of XSS attacks.  Always escape these.
13758      autoEscape = ['\''].concat(unwise),
13759      // Characters that are never ever allowed in a hostname.
13760      // Note that any invalid chars are also handled, but these
13761      // are the ones that are *expected* to be seen, so we fast-path
13762      // them.
13763      nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
13764      hostEndingChars = ['/', '?', '#'],
13765      hostnameMaxLen = 255,
13766      hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
13767      hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
13768      // protocols that can allow "unsafe" and "unwise" chars.
13769      unsafeProtocol = {
13770        'javascript': true,
13771        'javascript:': true
13772      },
13773      // protocols that never have a hostname.
13774      hostlessProtocol = {
13775        'javascript': true,
13776        'javascript:': true
13777      },
13778      // protocols that always contain a // bit.
13779      slashedProtocol = {
13780        'http': true,
13781        'https': true,
13782        'ftp': true,
13783        'gopher': true,
13784        'file': true,
13785        'http:': true,
13786        'https:': true,
13787        'ftp:': true,
13788        'gopher:': true,
13789        'file:': true
13790      },
13791      querystring = __webpack_require__(/*! querystring */ "./node_modules/querystring-es3/index.js");
13792  
13793  function urlParse(url, parseQueryString, slashesDenoteHost) {
13794    if (url && util.isObject(url) && url instanceof Url) return url;
13795  
13796    var u = new Url;
13797    u.parse(url, parseQueryString, slashesDenoteHost);
13798    return u;
13799  }
13800  
13801  Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
13802    if (!util.isString(url)) {
13803      throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
13804    }
13805  
13806    // Copy chrome, IE, opera backslash-handling behavior.
13807    // Back slashes before the query string get converted to forward slashes
13808    // See: https://code.google.com/p/chromium/issues/detail?id=25916
13809    var queryIndex = url.indexOf('?'),
13810        splitter =
13811            (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
13812        uSplit = url.split(splitter),
13813        slashRegex = /\\/g;
13814    uSplit[0] = uSplit[0].replace(slashRegex, '/');
13815    url = uSplit.join(splitter);
13816  
13817    var rest = url;
13818  
13819    // trim before proceeding.
13820    // This is to support parse stuff like "  http://foo.com  \n"
13821    rest = rest.trim();
13822  
13823    if (!slashesDenoteHost && url.split('#').length === 1) {
13824      // Try fast path regexp
13825      var simplePath = simplePathPattern.exec(rest);
13826      if (simplePath) {
13827        this.path = rest;
13828        this.href = rest;
13829        this.pathname = simplePath[1];
13830        if (simplePath[2]) {
13831          this.search = simplePath[2];
13832          if (parseQueryString) {
13833            this.query = querystring.parse(this.search.substr(1));
13834          } else {
13835            this.query = this.search.substr(1);
13836          }
13837        } else if (parseQueryString) {
13838          this.search = '';
13839          this.query = {};
13840        }
13841        return this;
13842      }
13843    }
13844  
13845    var proto = protocolPattern.exec(rest);
13846    if (proto) {
13847      proto = proto[0];
13848      var lowerProto = proto.toLowerCase();
13849      this.protocol = lowerProto;
13850      rest = rest.substr(proto.length);
13851    }
13852  
13853    // figure out if it's got a host
13854    // user@server is *always* interpreted as a hostname, and url
13855    // resolution will treat //foo/bar as host=foo,path=bar because that's
13856    // how the browser resolves relative URLs.
13857    if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
13858      var slashes = rest.substr(0, 2) === '//';
13859      if (slashes && !(proto && hostlessProtocol[proto])) {
13860        rest = rest.substr(2);
13861        this.slashes = true;
13862      }
13863    }
13864  
13865    if (!hostlessProtocol[proto] &&
13866        (slashes || (proto && !slashedProtocol[proto]))) {
13867  
13868      // there's a hostname.
13869      // the first instance of /, ?, ;, or # ends the host.
13870      //
13871      // If there is an @ in the hostname, then non-host chars *are* allowed
13872      // to the left of the last @ sign, unless some host-ending character
13873      // comes *before* the @-sign.
13874      // URLs are obnoxious.
13875      //
13876      // ex:
13877      // http://a@b@c/ => user:a@b host:c
13878      // http://a@b?@c => user:a host:c path:/?@c
13879  
13880      // v0.12 TODO(isaacs): This is not quite how Chrome does things.
13881      // Review our test case against browsers more comprehensively.
13882  
13883      // find the first instance of any hostEndingChars
13884      var hostEnd = -1;
13885      for (var i = 0; i < hostEndingChars.length; i++) {
13886        var hec = rest.indexOf(hostEndingChars[i]);
13887        if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
13888          hostEnd = hec;
13889      }
13890  
13891      // at this point, either we have an explicit point where the
13892      // auth portion cannot go past, or the last @ char is the decider.
13893      var auth, atSign;
13894      if (hostEnd === -1) {
13895        // atSign can be anywhere.
13896        atSign = rest.lastIndexOf('@');
13897      } else {
13898        // atSign must be in auth portion.
13899        // http://a@b/c@d => host:b auth:a path:/c@d
13900        atSign = rest.lastIndexOf('@', hostEnd);
13901      }
13902  
13903      // Now we have a portion which is definitely the auth.
13904      // Pull that off.
13905      if (atSign !== -1) {
13906        auth = rest.slice(0, atSign);
13907        rest = rest.slice(atSign + 1);
13908        this.auth = decodeURIComponent(auth);
13909      }
13910  
13911      // the host is the remaining to the left of the first non-host char
13912      hostEnd = -1;
13913      for (var i = 0; i < nonHostChars.length; i++) {
13914        var hec = rest.indexOf(nonHostChars[i]);
13915        if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
13916          hostEnd = hec;
13917      }
13918      // if we still have not hit it, then the entire thing is a host.
13919      if (hostEnd === -1)
13920        hostEnd = rest.length;
13921  
13922      this.host = rest.slice(0, hostEnd);
13923      rest = rest.slice(hostEnd);
13924  
13925      // pull out port.
13926      this.parseHost();
13927  
13928      // we've indicated that there is a hostname,
13929      // so even if it's empty, it has to be present.
13930      this.hostname = this.hostname || '';
13931  
13932      // if hostname begins with [ and ends with ]
13933      // assume that it's an IPv6 address.
13934      var ipv6Hostname = this.hostname[0] === '[' &&
13935          this.hostname[this.hostname.length - 1] === ']';
13936  
13937      // validate a little.
13938      if (!ipv6Hostname) {
13939        var hostparts = this.hostname.split(/\./);
13940        for (var i = 0, l = hostparts.length; i < l; i++) {
13941          var part = hostparts[i];
13942          if (!part) continue;
13943          if (!part.match(hostnamePartPattern)) {
13944            var newpart = '';
13945            for (var j = 0, k = part.length; j < k; j++) {
13946              if (part.charCodeAt(j) > 127) {
13947                // we replace non-ASCII char with a temporary placeholder
13948                // we need this to make sure size of hostname is not
13949                // broken by replacing non-ASCII by nothing
13950                newpart += 'x';
13951              } else {
13952                newpart += part[j];
13953              }
13954            }
13955            // we test again with ASCII char only
13956            if (!newpart.match(hostnamePartPattern)) {
13957              var validParts = hostparts.slice(0, i);
13958              var notHost = hostparts.slice(i + 1);
13959              var bit = part.match(hostnamePartStart);
13960              if (bit) {
13961                validParts.push(bit[1]);
13962                notHost.unshift(bit[2]);
13963              }
13964              if (notHost.length) {
13965                rest = '/' + notHost.join('.') + rest;
13966              }
13967              this.hostname = validParts.join('.');
13968              break;
13969            }
13970          }
13971        }
13972      }
13973  
13974      if (this.hostname.length > hostnameMaxLen) {
13975        this.hostname = '';
13976      } else {
13977        // hostnames are always lower case.
13978        this.hostname = this.hostname.toLowerCase();
13979      }
13980  
13981      if (!ipv6Hostname) {
13982        // IDNA Support: Returns a punycoded representation of "domain".
13983        // It only converts parts of the domain name that
13984        // have non-ASCII characters, i.e. it doesn't matter if
13985        // you call it with a domain that already is ASCII-only.
13986        this.hostname = punycode.toASCII(this.hostname);
13987      }
13988  
13989      var p = this.port ? ':' + this.port : '';
13990      var h = this.hostname || '';
13991      this.host = h + p;
13992      this.href += this.host;
13993  
13994      // strip [ and ] from the hostname
13995      // the host field still retains them, though
13996      if (ipv6Hostname) {
13997        this.hostname = this.hostname.substr(1, this.hostname.length - 2);
13998        if (rest[0] !== '/') {
13999          rest = '/' + rest;
14000        }
14001      }
14002    }
14003  
14004    // now rest is set to the post-host stuff.
14005    // chop off any delim chars.
14006    if (!unsafeProtocol[lowerProto]) {
14007  
14008      // First, make 100% sure that any "autoEscape" chars get
14009      // escaped, even if encodeURIComponent doesn't think they
14010      // need to be.
14011      for (var i = 0, l = autoEscape.length; i < l; i++) {
14012        var ae = autoEscape[i];
14013        if (rest.indexOf(ae) === -1)
14014          continue;
14015        var esc = encodeURIComponent(ae);
14016        if (esc === ae) {
14017          esc = escape(ae);
14018        }
14019        rest = rest.split(ae).join(esc);
14020      }
14021    }
14022  
14023  
14024    // chop off from the tail first.
14025    var hash = rest.indexOf('#');
14026    if (hash !== -1) {
14027      // got a fragment string.
14028      this.hash = rest.substr(hash);
14029      rest = rest.slice(0, hash);
14030    }
14031    var qm = rest.indexOf('?');
14032    if (qm !== -1) {
14033      this.search = rest.substr(qm);
14034      this.query = rest.substr(qm + 1);
14035      if (parseQueryString) {
14036        this.query = querystring.parse(this.query);
14037      }
14038      rest = rest.slice(0, qm);
14039    } else if (parseQueryString) {
14040      // no query string, but parseQueryString still requested
14041      this.search = '';
14042      this.query = {};
14043    }
14044    if (rest) this.pathname = rest;
14045    if (slashedProtocol[lowerProto] &&
14046        this.hostname && !this.pathname) {
14047      this.pathname = '/';
14048    }
14049  
14050    //to support http.request
14051    if (this.pathname || this.search) {
14052      var p = this.pathname || '';
14053      var s = this.search || '';
14054      this.path = p + s;
14055    }
14056  
14057    // finally, reconstruct the href based on what has been validated.
14058    this.href = this.format();
14059    return this;
14060  };
14061  
14062  // format a parsed object into a url string
14063  function urlFormat(obj) {
14064    // ensure it's an object, and not a string url.
14065    // If it's an obj, this is a no-op.
14066    // this way, you can call url_format() on strings
14067    // to clean up potentially wonky urls.
14068    if (util.isString(obj)) obj = urlParse(obj);
14069    if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
14070    return obj.format();
14071  }
14072  
14073  Url.prototype.format = function() {
14074    var auth = this.auth || '';
14075    if (auth) {
14076      auth = encodeURIComponent(auth);
14077      auth = auth.replace(/%3A/i, ':');
14078      auth += '@';
14079    }
14080  
14081    var protocol = this.protocol || '',
14082        pathname = this.pathname || '',
14083        hash = this.hash || '',
14084        host = false,
14085        query = '';
14086  
14087    if (this.host) {
14088      host = auth + this.host;
14089    } else if (this.hostname) {
14090      host = auth + (this.hostname.indexOf(':') === -1 ?
14091          this.hostname :
14092          '[' + this.hostname + ']');
14093      if (this.port) {
14094        host += ':' + this.port;
14095      }
14096    }
14097  
14098    if (this.query &&
14099        util.isObject(this.query) &&
14100        Object.keys(this.query).length) {
14101      query = querystring.stringify(this.query);
14102    }
14103  
14104    var search = this.search || (query && ('?' + query)) || '';
14105  
14106    if (protocol && protocol.substr(-1) !== ':') protocol += ':';
14107  
14108    // only the slashedProtocols get the //.  Not mailto:, xmpp:, etc.
14109    // unless they had them to begin with.
14110    if (this.slashes ||
14111        (!protocol || slashedProtocol[protocol]) && host !== false) {
14112      host = '//' + (host || '');
14113      if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
14114    } else if (!host) {
14115      host = '';
14116    }
14117  
14118    if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
14119    if (search && search.charAt(0) !== '?') search = '?' + search;
14120  
14121    pathname = pathname.replace(/[?#]/g, function(match) {
14122      return encodeURIComponent(match);
14123    });
14124    search = search.replace('#', '%23');
14125  
14126    return protocol + host + pathname + search + hash;
14127  };
14128  
14129  function urlResolve(source, relative) {
14130    return urlParse(source, false, true).resolve(relative);
14131  }
14132  
14133  Url.prototype.resolve = function(relative) {
14134    return this.resolveObject(urlParse(relative, false, true)).format();
14135  };
14136  
14137  function urlResolveObject(source, relative) {
14138    if (!source) return relative;
14139    return urlParse(source, false, true).resolveObject(relative);
14140  }
14141  
14142  Url.prototype.resolveObject = function(relative) {
14143    if (util.isString(relative)) {
14144      var rel = new Url();
14145      rel.parse(relative, false, true);
14146      relative = rel;
14147    }
14148  
14149    var result = new Url();
14150    var tkeys = Object.keys(this);
14151    for (var tk = 0; tk < tkeys.length; tk++) {
14152      var tkey = tkeys[tk];
14153      result[tkey] = this[tkey];
14154    }
14155  
14156    // hash is always overridden, no matter what.
14157    // even href="" will remove it.
14158    result.hash = relative.hash;
14159  
14160    // if the relative url is empty, then there's nothing left to do here.
14161    if (relative.href === '') {
14162      result.href = result.format();
14163      return result;
14164    }
14165  
14166    // hrefs like //foo/bar always cut to the protocol.
14167    if (relative.slashes && !relative.protocol) {
14168      // take everything except the protocol from relative
14169      var rkeys = Object.keys(relative);
14170      for (var rk = 0; rk < rkeys.length; rk++) {
14171        var rkey = rkeys[rk];
14172        if (rkey !== 'protocol')
14173          result[rkey] = relative[rkey];
14174      }
14175  
14176      //urlParse appends trailing / to urls like http://www.example.com
14177      if (slashedProtocol[result.protocol] &&
14178          result.hostname && !result.pathname) {
14179        result.path = result.pathname = '/';
14180      }
14181  
14182      result.href = result.format();
14183      return result;
14184    }
14185  
14186    if (relative.protocol && relative.protocol !== result.protocol) {
14187      // if it's a known url protocol, then changing
14188      // the protocol does weird things
14189      // first, if it's not file:, then we MUST have a host,
14190      // and if there was a path
14191      // to begin with, then we MUST have a path.
14192      // if it is file:, then the host is dropped,
14193      // because that's known to be hostless.
14194      // anything else is assumed to be absolute.
14195      if (!slashedProtocol[relative.protocol]) {
14196        var keys = Object.keys(relative);
14197        for (var v = 0; v < keys.length; v++) {
14198          var k = keys[v];
14199          result[k] = relative[k];
14200        }
14201        result.href = result.format();
14202        return result;
14203      }
14204  
14205      result.protocol = relative.protocol;
14206      if (!relative.host && !hostlessProtocol[relative.protocol]) {
14207        var relPath = (relative.pathname || '').split('/');
14208        while (relPath.length && !(relative.host = relPath.shift()));
14209        if (!relative.host) relative.host = '';
14210        if (!relative.hostname) relative.hostname = '';
14211        if (relPath[0] !== '') relPath.unshift('');
14212        if (relPath.length < 2) relPath.unshift('');
14213        result.pathname = relPath.join('/');
14214      } else {
14215        result.pathname = relative.pathname;
14216      }
14217      result.search = relative.search;
14218      result.query = relative.query;
14219      result.host = relative.host || '';
14220      result.auth = relative.auth;
14221      result.hostname = relative.hostname || relative.host;
14222      result.port = relative.port;
14223      // to support http.request
14224      if (result.pathname || result.search) {
14225        var p = result.pathname || '';
14226        var s = result.search || '';
14227        result.path = p + s;
14228      }
14229      result.slashes = result.slashes || relative.slashes;
14230      result.href = result.format();
14231      return result;
14232    }
14233  
14234    var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
14235        isRelAbs = (
14236            relative.host ||
14237            relative.pathname && relative.pathname.charAt(0) === '/'
14238        ),
14239        mustEndAbs = (isRelAbs || isSourceAbs ||
14240                      (result.host && relative.pathname)),
14241        removeAllDots = mustEndAbs,
14242        srcPath = result.pathname && result.pathname.split('/') || [],
14243        relPath = relative.pathname && relative.pathname.split('/') || [],
14244        psychotic = result.protocol && !slashedProtocol[result.protocol];
14245  
14246    // if the url is a non-slashed url, then relative
14247    // links like ../.. should be able
14248    // to crawl up to the hostname, as well.  This is strange.
14249    // result.protocol has already been set by now.
14250    // Later on, put the first path part into the host field.
14251    if (psychotic) {
14252      result.hostname = '';
14253      result.port = null;
14254      if (result.host) {
14255        if (srcPath[0] === '') srcPath[0] = result.host;
14256        else srcPath.unshift(result.host);
14257      }
14258      result.host = '';
14259      if (relative.protocol) {
14260        relative.hostname = null;
14261        relative.port = null;
14262        if (relative.host) {
14263          if (relPath[0] === '') relPath[0] = relative.host;
14264          else relPath.unshift(relative.host);
14265        }
14266        relative.host = null;
14267      }
14268      mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
14269    }
14270  
14271    if (isRelAbs) {
14272      // it's absolute.
14273      result.host = (relative.host || relative.host === '') ?
14274                    relative.host : result.host;
14275      result.hostname = (relative.hostname || relative.hostname === '') ?
14276                        relative.hostname : result.hostname;
14277      result.search = relative.search;
14278      result.query = relative.query;
14279      srcPath = relPath;
14280      // fall through to the dot-handling below.
14281    } else if (relPath.length) {
14282      // it's relative
14283      // throw away the existing file, and take the new path instead.
14284      if (!srcPath) srcPath = [];
14285      srcPath.pop();
14286      srcPath = srcPath.concat(relPath);
14287      result.search = relative.search;
14288      result.query = relative.query;
14289    } else if (!util.isNullOrUndefined(relative.search)) {
14290      // just pull out the search.
14291      // like href='?foo'.
14292      // Put this after the other two cases because it simplifies the booleans
14293      if (psychotic) {
14294        result.hostname = result.host = srcPath.shift();
14295        //occationaly the auth can get stuck only in host
14296        //this especially happens in cases like
14297        //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
14298        var authInHost = result.host && result.host.indexOf('@') > 0 ?
14299                         result.host.split('@') : false;
14300        if (authInHost) {
14301          result.auth = authInHost.shift();
14302          result.host = result.hostname = authInHost.shift();
14303        }
14304      }
14305      result.search = relative.search;
14306      result.query = relative.query;
14307      //to support http.request
14308      if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
14309        result.path = (result.pathname ? result.pathname : '') +
14310                      (result.search ? result.search : '');
14311      }
14312      result.href = result.format();
14313      return result;
14314    }
14315  
14316    if (!srcPath.length) {
14317      // no path at all.  easy.
14318      // we've already handled the other stuff above.
14319      result.pathname = null;
14320      //to support http.request
14321      if (result.search) {
14322        result.path = '/' + result.search;
14323      } else {
14324        result.path = null;
14325      }
14326      result.href = result.format();
14327      return result;
14328    }
14329  
14330    // if a url ENDs in . or .., then it must get a trailing slash.
14331    // however, if it ends in anything else non-slashy,
14332    // then it must NOT get a trailing slash.
14333    var last = srcPath.slice(-1)[0];
14334    var hasTrailingSlash = (
14335        (result.host || relative.host || srcPath.length > 1) &&
14336        (last === '.' || last === '..') || last === '');
14337  
14338    // strip single dots, resolve double dots to parent dir
14339    // if the path tries to go above the root, `up` ends up > 0
14340    var up = 0;
14341    for (var i = srcPath.length; i >= 0; i--) {
14342      last = srcPath[i];
14343      if (last === '.') {
14344        srcPath.splice(i, 1);
14345      } else if (last === '..') {
14346        srcPath.splice(i, 1);
14347        up++;
14348      } else if (up) {
14349        srcPath.splice(i, 1);
14350        up--;
14351      }
14352    }
14353  
14354    // if the path is allowed to go above the root, restore leading ..s
14355    if (!mustEndAbs && !removeAllDots) {
14356      for (; up--; up) {
14357        srcPath.unshift('..');
14358      }
14359    }
14360  
14361    if (mustEndAbs && srcPath[0] !== '' &&
14362        (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
14363      srcPath.unshift('');
14364    }
14365  
14366    if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
14367      srcPath.push('');
14368    }
14369  
14370    var isAbsolute = srcPath[0] === '' ||
14371        (srcPath[0] && srcPath[0].charAt(0) === '/');
14372  
14373    // put the host back
14374    if (psychotic) {
14375      result.hostname = result.host = isAbsolute ? '' :
14376                                      srcPath.length ? srcPath.shift() : '';
14377      //occationaly the auth can get stuck only in host
14378      //this especially happens in cases like
14379      //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
14380      var authInHost = result.host && result.host.indexOf('@') > 0 ?
14381                       result.host.split('@') : false;
14382      if (authInHost) {
14383        result.auth = authInHost.shift();
14384        result.host = result.hostname = authInHost.shift();
14385      }
14386    }
14387  
14388    mustEndAbs = mustEndAbs || (result.host && srcPath.length);
14389  
14390    if (mustEndAbs && !isAbsolute) {
14391      srcPath.unshift('');
14392    }
14393  
14394    if (!srcPath.length) {
14395      result.pathname = null;
14396      result.path = null;
14397    } else {
14398      result.pathname = srcPath.join('/');
14399    }
14400  
14401    //to support request.http
14402    if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
14403      result.path = (result.pathname ? result.pathname : '') +
14404                    (result.search ? result.search : '');
14405    }
14406    result.auth = relative.auth || result.auth;
14407    result.slashes = result.slashes || relative.slashes;
14408    result.href = result.format();
14409    return result;
14410  };
14411  
14412  Url.prototype.parseHost = function() {
14413    var host = this.host;
14414    var port = portPattern.exec(host);
14415    if (port) {
14416      port = port[0];
14417      if (port !== ':') {
14418        this.port = port.substr(1);
14419      }
14420      host = host.substr(0, host.length - port.length);
14421    }
14422    if (host) this.hostname = host;
14423  };
14424  
14425  
14426  /***/ }),
14427  
14428  /***/ "./node_modules/url/util.js":
14429  /*!**********************************!*\
14430    !*** ./node_modules/url/util.js ***!
14431    \**********************************/
14432  /*! no static exports found */
14433  /***/ (function(module, exports, __webpack_require__) {
14434  
14435  "use strict";
14436  
14437  
14438  module.exports = {
14439    isString: function(arg) {
14440      return typeof(arg) === 'string';
14441    },
14442    isObject: function(arg) {
14443      return typeof(arg) === 'object' && arg !== null;
14444    },
14445    isNull: function(arg) {
14446      return arg === null;
14447    },
14448    isNullOrUndefined: function(arg) {
14449      return arg == null;
14450    }
14451  };
14452  
14453  
14454  /***/ }),
14455  
14456  /***/ "./node_modules/webpack/buildin/global.js":
14457  /*!***********************************!*\
14458    !*** (webpack)/buildin/global.js ***!
14459    \***********************************/
14460  /*! no static exports found */
14461  /***/ (function(module, exports) {
14462  
14463  var g;
14464  
14465  // This works in non-strict mode
14466  g = (function() {
14467      return this;
14468  })();
14469  
14470  try {
14471      // This works if eval is allowed (see CSP)
14472      g = g || new Function("return this")();
14473  } catch (e) {
14474      // This works if the window reference is available
14475      if (typeof window === "object") g = window;
14476  }
14477  
14478  // g can still be undefined, but nothing to do about it...
14479  // We return undefined, instead of nothing here, so it's
14480  // easier to handle this case. if(!global) { ...}
14481  
14482  module.exports = g;
14483  
14484  
14485  /***/ }),
14486  
14487  /***/ "./node_modules/webpack/buildin/module.js":
14488  /*!***********************************!*\
14489    !*** (webpack)/buildin/module.js ***!
14490    \***********************************/
14491  /*! no static exports found */
14492  /***/ (function(module, exports) {
14493  
14494  module.exports = function(module) {
14495      if (!module.webpackPolyfill) {
14496          module.deprecate = function() {};
14497          module.paths = [];
14498          // module.parent = undefined by default
14499          if (!module.children) module.children = [];
14500          Object.defineProperty(module, "loaded", {
14501              enumerable: true,
14502              get: function() {
14503                  return module.l;
14504              }
14505          });
14506          Object.defineProperty(module, "id", {
14507              enumerable: true,
14508              get: function() {
14509                  return module.i;
14510              }
14511          });
14512          module.webpackPolyfill = 1;
14513      }
14514      return module;
14515  };
14516  
14517  
14518  /***/ }),
14519  
14520  /***/ "@wordpress/autop":
14521  /*!****************************************!*\
14522    !*** external {"this":["wp","autop"]} ***!
14523    \****************************************/
14524  /*! no static exports found */
14525  /***/ (function(module, exports) {
14526  
14527  (function() { module.exports = this["wp"]["autop"]; }());
14528  
14529  /***/ }),
14530  
14531  /***/ "@wordpress/blob":
14532  /*!***************************************!*\
14533    !*** external {"this":["wp","blob"]} ***!
14534    \***************************************/
14535  /*! no static exports found */
14536  /***/ (function(module, exports) {
14537  
14538  (function() { module.exports = this["wp"]["blob"]; }());
14539  
14540  /***/ }),
14541  
14542  /***/ "@wordpress/blocks":
14543  /*!*****************************************!*\
14544    !*** external {"this":["wp","blocks"]} ***!
14545    \*****************************************/
14546  /*! no static exports found */
14547  /***/ (function(module, exports) {
14548  
14549  (function() { module.exports = this["wp"]["blocks"]; }());
14550  
14551  /***/ }),
14552  
14553  /***/ "@wordpress/components":
14554  /*!*********************************************!*\
14555    !*** external {"this":["wp","components"]} ***!
14556    \*********************************************/
14557  /*! no static exports found */
14558  /***/ (function(module, exports) {
14559  
14560  (function() { module.exports = this["wp"]["components"]; }());
14561  
14562  /***/ }),
14563  
14564  /***/ "@wordpress/compose":
14565  /*!******************************************!*\
14566    !*** external {"this":["wp","compose"]} ***!
14567    \******************************************/
14568  /*! no static exports found */
14569  /***/ (function(module, exports) {
14570  
14571  (function() { module.exports = this["wp"]["compose"]; }());
14572  
14573  /***/ }),
14574  
14575  /***/ "@wordpress/core-data":
14576  /*!*******************************************!*\
14577    !*** external {"this":["wp","coreData"]} ***!
14578    \*******************************************/
14579  /*! no static exports found */
14580  /***/ (function(module, exports) {
14581  
14582  (function() { module.exports = this["wp"]["coreData"]; }());
14583  
14584  /***/ }),
14585  
14586  /***/ "@wordpress/data":
14587  /*!***************************************!*\
14588    !*** external {"this":["wp","data"]} ***!
14589    \***************************************/
14590  /*! no static exports found */
14591  /***/ (function(module, exports) {
14592  
14593  (function() { module.exports = this["wp"]["data"]; }());
14594  
14595  /***/ }),
14596  
14597  /***/ "@wordpress/deprecated":
14598  /*!*********************************************!*\
14599    !*** external {"this":["wp","deprecated"]} ***!
14600    \*********************************************/
14601  /*! no static exports found */
14602  /***/ (function(module, exports) {
14603  
14604  (function() { module.exports = this["wp"]["deprecated"]; }());
14605  
14606  /***/ }),
14607  
14608  /***/ "@wordpress/editor":
14609  /*!*****************************************!*\
14610    !*** external {"this":["wp","editor"]} ***!
14611    \*****************************************/
14612  /*! no static exports found */
14613  /***/ (function(module, exports) {
14614  
14615  (function() { module.exports = this["wp"]["editor"]; }());
14616  
14617  /***/ }),
14618  
14619  /***/ "@wordpress/element":
14620  /*!******************************************!*\
14621    !*** external {"this":["wp","element"]} ***!
14622    \******************************************/
14623  /*! no static exports found */
14624  /***/ (function(module, exports) {
14625  
14626  (function() { module.exports = this["wp"]["element"]; }());
14627  
14628  /***/ }),
14629  
14630  /***/ "@wordpress/html-entities":
14631  /*!***********************************************!*\
14632    !*** external {"this":["wp","htmlEntities"]} ***!
14633    \***********************************************/
14634  /*! no static exports found */
14635  /***/ (function(module, exports) {
14636  
14637  (function() { module.exports = this["wp"]["htmlEntities"]; }());
14638  
14639  /***/ }),
14640  
14641  /***/ "@wordpress/i18n":
14642  /*!***************************************!*\
14643    !*** external {"this":["wp","i18n"]} ***!
14644    \***************************************/
14645  /*! no static exports found */
14646  /***/ (function(module, exports) {
14647  
14648  (function() { module.exports = this["wp"]["i18n"]; }());
14649  
14650  /***/ }),
14651  
14652  /***/ "@wordpress/keycodes":
14653  /*!*******************************************!*\
14654    !*** external {"this":["wp","keycodes"]} ***!
14655    \*******************************************/
14656  /*! no static exports found */
14657  /***/ (function(module, exports) {
14658  
14659  (function() { module.exports = this["wp"]["keycodes"]; }());
14660  
14661  /***/ }),
14662  
14663  /***/ "@wordpress/rich-text":
14664  /*!*******************************************!*\
14665    !*** external {"this":["wp","richText"]} ***!
14666    \*******************************************/
14667  /*! no static exports found */
14668  /***/ (function(module, exports) {
14669  
14670  (function() { module.exports = this["wp"]["richText"]; }());
14671  
14672  /***/ }),
14673  
14674  /***/ "@wordpress/viewport":
14675  /*!*******************************************!*\
14676    !*** external {"this":["wp","viewport"]} ***!
14677    \*******************************************/
14678  /*! no static exports found */
14679  /***/ (function(module, exports) {
14680  
14681  (function() { module.exports = this["wp"]["viewport"]; }());
14682  
14683  /***/ }),
14684  
14685  /***/ "lodash":
14686  /*!*************************!*\
14687    !*** external "lodash" ***!
14688    \*************************/
14689  /*! no static exports found */
14690  /***/ (function(module, exports) {
14691  
14692  (function() { module.exports = this["lodash"]; }());
14693  
14694  /***/ }),
14695  
14696  /***/ "moment":
14697  /*!*************************!*\
14698    !*** external "moment" ***!
14699    \*************************/
14700  /*! no static exports found */
14701  /***/ (function(module, exports) {
14702  
14703  (function() { module.exports = this["moment"]; }());
14704  
14705  /***/ })
14706  
14707  /******/ });
14708  //# sourceMappingURL=block-library.js.map


Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1