[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/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 = 420);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 1:
  98  /***/ (function(module, exports) {
  99  
 100  (function() { module.exports = this["wp"]["i18n"]; }());
 101  
 102  /***/ }),
 103  
 104  /***/ 10:
 105  /***/ (function(module, exports) {
 106  
 107  (function() { module.exports = this["wp"]["blocks"]; }());
 108  
 109  /***/ }),
 110  
 111  /***/ 11:
 112  /***/ (function(module, exports, __webpack_require__) {
 113  
 114  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
 115    Copyright (c) 2017 Jed Watson.
 116    Licensed under the MIT License (MIT), see
 117    http://jedwatson.github.io/classnames
 118  */
 119  /* global define */
 120  
 121  (function () {
 122      'use strict';
 123  
 124      var hasOwn = {}.hasOwnProperty;
 125  
 126  	function classNames () {
 127          var classes = [];
 128  
 129          for (var i = 0; i < arguments.length; i++) {
 130              var arg = arguments[i];
 131              if (!arg) continue;
 132  
 133              var argType = typeof arg;
 134  
 135              if (argType === 'string' || argType === 'number') {
 136                  classes.push(arg);
 137              } else if (Array.isArray(arg) && arg.length) {
 138                  var inner = classNames.apply(null, arg);
 139                  if (inner) {
 140                      classes.push(inner);
 141                  }
 142              } else if (argType === 'object') {
 143                  for (var key in arg) {
 144                      if (hasOwn.call(arg, key) && arg[key]) {
 145                          classes.push(key);
 146                      }
 147                  }
 148              }
 149          }
 150  
 151          return classes.join(' ');
 152      }
 153  
 154      if ( true && module.exports) {
 155          classNames.default = classNames;
 156          module.exports = classNames;
 157      } else if (true) {
 158          // register as 'classnames', consistent with npm package name
 159          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
 160              return classNames;
 161          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
 162                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 163      } else {}
 164  }());
 165  
 166  
 167  /***/ }),
 168  
 169  /***/ 113:
 170  /***/ (function(module, exports, __webpack_require__) {
 171  
 172  "use strict";
 173  // Copyright Joyent, Inc. and other Node contributors.
 174  //
 175  // Permission is hereby granted, free of charge, to any person obtaining a
 176  // copy of this software and associated documentation files (the
 177  // "Software"), to deal in the Software without restriction, including
 178  // without limitation the rights to use, copy, modify, merge, publish,
 179  // distribute, sublicense, and/or sell copies of the Software, and to permit
 180  // persons to whom the Software is furnished to do so, subject to the
 181  // following conditions:
 182  //
 183  // The above copyright notice and this permission notice shall be included
 184  // in all copies or substantial portions of the Software.
 185  //
 186  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 187  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 188  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
 189  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 190  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 191  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 192  // USE OR OTHER DEALINGS IN THE SOFTWARE.
 193  
 194  
 195  
 196  var punycode = __webpack_require__(160);
 197  var util = __webpack_require__(162);
 198  
 199  exports.parse = urlParse;
 200  exports.resolve = urlResolve;
 201  exports.resolveObject = urlResolveObject;
 202  exports.format = urlFormat;
 203  
 204  exports.Url = Url;
 205  
 206  function Url() {
 207    this.protocol = null;
 208    this.slashes = null;
 209    this.auth = null;
 210    this.host = null;
 211    this.port = null;
 212    this.hostname = null;
 213    this.hash = null;
 214    this.search = null;
 215    this.query = null;
 216    this.pathname = null;
 217    this.path = null;
 218    this.href = null;
 219  }
 220  
 221  // Reference: RFC 3986, RFC 1808, RFC 2396
 222  
 223  // define these here so at least they only have to be
 224  // compiled once on the first module load.
 225  var protocolPattern = /^([a-z0-9.+-]+:)/i,
 226      portPattern = /:[0-9]*$/,
 227  
 228      // Special case for a simple path URL
 229      simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
 230  
 231      // RFC 2396: characters reserved for delimiting URLs.
 232      // We actually just auto-escape these.
 233      delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
 234  
 235      // RFC 2396: characters not allowed for various reasons.
 236      unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
 237  
 238      // Allowed by RFCs, but cause of XSS attacks.  Always escape these.
 239      autoEscape = ['\''].concat(unwise),
 240      // Characters that are never ever allowed in a hostname.
 241      // Note that any invalid chars are also handled, but these
 242      // are the ones that are *expected* to be seen, so we fast-path
 243      // them.
 244      nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
 245      hostEndingChars = ['/', '?', '#'],
 246      hostnameMaxLen = 255,
 247      hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
 248      hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
 249      // protocols that can allow "unsafe" and "unwise" chars.
 250      unsafeProtocol = {
 251        'javascript': true,
 252        'javascript:': true
 253      },
 254      // protocols that never have a hostname.
 255      hostlessProtocol = {
 256        'javascript': true,
 257        'javascript:': true
 258      },
 259      // protocols that always contain a // bit.
 260      slashedProtocol = {
 261        'http': true,
 262        'https': true,
 263        'ftp': true,
 264        'gopher': true,
 265        'file': true,
 266        'http:': true,
 267        'https:': true,
 268        'ftp:': true,
 269        'gopher:': true,
 270        'file:': true
 271      },
 272      querystring = __webpack_require__(163);
 273  
 274  function urlParse(url, parseQueryString, slashesDenoteHost) {
 275    if (url && util.isObject(url) && url instanceof Url) return url;
 276  
 277    var u = new Url;
 278    u.parse(url, parseQueryString, slashesDenoteHost);
 279    return u;
 280  }
 281  
 282  Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
 283    if (!util.isString(url)) {
 284      throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
 285    }
 286  
 287    // Copy chrome, IE, opera backslash-handling behavior.
 288    // Back slashes before the query string get converted to forward slashes
 289    // See: https://code.google.com/p/chromium/issues/detail?id=25916
 290    var queryIndex = url.indexOf('?'),
 291        splitter =
 292            (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
 293        uSplit = url.split(splitter),
 294        slashRegex = /\\/g;
 295    uSplit[0] = uSplit[0].replace(slashRegex, '/');
 296    url = uSplit.join(splitter);
 297  
 298    var rest = url;
 299  
 300    // trim before proceeding.
 301    // This is to support parse stuff like "  http://foo.com  \n"
 302    rest = rest.trim();
 303  
 304    if (!slashesDenoteHost && url.split('#').length === 1) {
 305      // Try fast path regexp
 306      var simplePath = simplePathPattern.exec(rest);
 307      if (simplePath) {
 308        this.path = rest;
 309        this.href = rest;
 310        this.pathname = simplePath[1];
 311        if (simplePath[2]) {
 312          this.search = simplePath[2];
 313          if (parseQueryString) {
 314            this.query = querystring.parse(this.search.substr(1));
 315          } else {
 316            this.query = this.search.substr(1);
 317          }
 318        } else if (parseQueryString) {
 319          this.search = '';
 320          this.query = {};
 321        }
 322        return this;
 323      }
 324    }
 325  
 326    var proto = protocolPattern.exec(rest);
 327    if (proto) {
 328      proto = proto[0];
 329      var lowerProto = proto.toLowerCase();
 330      this.protocol = lowerProto;
 331      rest = rest.substr(proto.length);
 332    }
 333  
 334    // figure out if it's got a host
 335    // user@server is *always* interpreted as a hostname, and url
 336    // resolution will treat //foo/bar as host=foo,path=bar because that's
 337    // how the browser resolves relative URLs.
 338    if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
 339      var slashes = rest.substr(0, 2) === '//';
 340      if (slashes && !(proto && hostlessProtocol[proto])) {
 341        rest = rest.substr(2);
 342        this.slashes = true;
 343      }
 344    }
 345  
 346    if (!hostlessProtocol[proto] &&
 347        (slashes || (proto && !slashedProtocol[proto]))) {
 348  
 349      // there's a hostname.
 350      // the first instance of /, ?, ;, or # ends the host.
 351      //
 352      // If there is an @ in the hostname, then non-host chars *are* allowed
 353      // to the left of the last @ sign, unless some host-ending character
 354      // comes *before* the @-sign.
 355      // URLs are obnoxious.
 356      //
 357      // ex:
 358      // http://a@b@c/ => user:a@b host:c
 359      // http://a@b?@c => user:a host:c path:/?@c
 360  
 361      // v0.12 TODO(isaacs): This is not quite how Chrome does things.
 362      // Review our test case against browsers more comprehensively.
 363  
 364      // find the first instance of any hostEndingChars
 365      var hostEnd = -1;
 366      for (var i = 0; i < hostEndingChars.length; i++) {
 367        var hec = rest.indexOf(hostEndingChars[i]);
 368        if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
 369          hostEnd = hec;
 370      }
 371  
 372      // at this point, either we have an explicit point where the
 373      // auth portion cannot go past, or the last @ char is the decider.
 374      var auth, atSign;
 375      if (hostEnd === -1) {
 376        // atSign can be anywhere.
 377        atSign = rest.lastIndexOf('@');
 378      } else {
 379        // atSign must be in auth portion.
 380        // http://a@b/c@d => host:b auth:a path:/c@d
 381        atSign = rest.lastIndexOf('@', hostEnd);
 382      }
 383  
 384      // Now we have a portion which is definitely the auth.
 385      // Pull that off.
 386      if (atSign !== -1) {
 387        auth = rest.slice(0, atSign);
 388        rest = rest.slice(atSign + 1);
 389        this.auth = decodeURIComponent(auth);
 390      }
 391  
 392      // the host is the remaining to the left of the first non-host char
 393      hostEnd = -1;
 394      for (var i = 0; i < nonHostChars.length; i++) {
 395        var hec = rest.indexOf(nonHostChars[i]);
 396        if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
 397          hostEnd = hec;
 398      }
 399      // if we still have not hit it, then the entire thing is a host.
 400      if (hostEnd === -1)
 401        hostEnd = rest.length;
 402  
 403      this.host = rest.slice(0, hostEnd);
 404      rest = rest.slice(hostEnd);
 405  
 406      // pull out port.
 407      this.parseHost();
 408  
 409      // we've indicated that there is a hostname,
 410      // so even if it's empty, it has to be present.
 411      this.hostname = this.hostname || '';
 412  
 413      // if hostname begins with [ and ends with ]
 414      // assume that it's an IPv6 address.
 415      var ipv6Hostname = this.hostname[0] === '[' &&
 416          this.hostname[this.hostname.length - 1] === ']';
 417  
 418      // validate a little.
 419      if (!ipv6Hostname) {
 420        var hostparts = this.hostname.split(/\./);
 421        for (var i = 0, l = hostparts.length; i < l; i++) {
 422          var part = hostparts[i];
 423          if (!part) continue;
 424          if (!part.match(hostnamePartPattern)) {
 425            var newpart = '';
 426            for (var j = 0, k = part.length; j < k; j++) {
 427              if (part.charCodeAt(j) > 127) {
 428                // we replace non-ASCII char with a temporary placeholder
 429                // we need this to make sure size of hostname is not
 430                // broken by replacing non-ASCII by nothing
 431                newpart += 'x';
 432              } else {
 433                newpart += part[j];
 434              }
 435            }
 436            // we test again with ASCII char only
 437            if (!newpart.match(hostnamePartPattern)) {
 438              var validParts = hostparts.slice(0, i);
 439              var notHost = hostparts.slice(i + 1);
 440              var bit = part.match(hostnamePartStart);
 441              if (bit) {
 442                validParts.push(bit[1]);
 443                notHost.unshift(bit[2]);
 444              }
 445              if (notHost.length) {
 446                rest = '/' + notHost.join('.') + rest;
 447              }
 448              this.hostname = validParts.join('.');
 449              break;
 450            }
 451          }
 452        }
 453      }
 454  
 455      if (this.hostname.length > hostnameMaxLen) {
 456        this.hostname = '';
 457      } else {
 458        // hostnames are always lower case.
 459        this.hostname = this.hostname.toLowerCase();
 460      }
 461  
 462      if (!ipv6Hostname) {
 463        // IDNA Support: Returns a punycoded representation of "domain".
 464        // It only converts parts of the domain name that
 465        // have non-ASCII characters, i.e. it doesn't matter if
 466        // you call it with a domain that already is ASCII-only.
 467        this.hostname = punycode.toASCII(this.hostname);
 468      }
 469  
 470      var p = this.port ? ':' + this.port : '';
 471      var h = this.hostname || '';
 472      this.host = h + p;
 473      this.href += this.host;
 474  
 475      // strip [ and ] from the hostname
 476      // the host field still retains them, though
 477      if (ipv6Hostname) {
 478        this.hostname = this.hostname.substr(1, this.hostname.length - 2);
 479        if (rest[0] !== '/') {
 480          rest = '/' + rest;
 481        }
 482      }
 483    }
 484  
 485    // now rest is set to the post-host stuff.
 486    // chop off any delim chars.
 487    if (!unsafeProtocol[lowerProto]) {
 488  
 489      // First, make 100% sure that any "autoEscape" chars get
 490      // escaped, even if encodeURIComponent doesn't think they
 491      // need to be.
 492      for (var i = 0, l = autoEscape.length; i < l; i++) {
 493        var ae = autoEscape[i];
 494        if (rest.indexOf(ae) === -1)
 495          continue;
 496        var esc = encodeURIComponent(ae);
 497        if (esc === ae) {
 498          esc = escape(ae);
 499        }
 500        rest = rest.split(ae).join(esc);
 501      }
 502    }
 503  
 504  
 505    // chop off from the tail first.
 506    var hash = rest.indexOf('#');
 507    if (hash !== -1) {
 508      // got a fragment string.
 509      this.hash = rest.substr(hash);
 510      rest = rest.slice(0, hash);
 511    }
 512    var qm = rest.indexOf('?');
 513    if (qm !== -1) {
 514      this.search = rest.substr(qm);
 515      this.query = rest.substr(qm + 1);
 516      if (parseQueryString) {
 517        this.query = querystring.parse(this.query);
 518      }
 519      rest = rest.slice(0, qm);
 520    } else if (parseQueryString) {
 521      // no query string, but parseQueryString still requested
 522      this.search = '';
 523      this.query = {};
 524    }
 525    if (rest) this.pathname = rest;
 526    if (slashedProtocol[lowerProto] &&
 527        this.hostname && !this.pathname) {
 528      this.pathname = '/';
 529    }
 530  
 531    //to support http.request
 532    if (this.pathname || this.search) {
 533      var p = this.pathname || '';
 534      var s = this.search || '';
 535      this.path = p + s;
 536    }
 537  
 538    // finally, reconstruct the href based on what has been validated.
 539    this.href = this.format();
 540    return this;
 541  };
 542  
 543  // format a parsed object into a url string
 544  function urlFormat(obj) {
 545    // ensure it's an object, and not a string url.
 546    // If it's an obj, this is a no-op.
 547    // this way, you can call url_format() on strings
 548    // to clean up potentially wonky urls.
 549    if (util.isString(obj)) obj = urlParse(obj);
 550    if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
 551    return obj.format();
 552  }
 553  
 554  Url.prototype.format = function() {
 555    var auth = this.auth || '';
 556    if (auth) {
 557      auth = encodeURIComponent(auth);
 558      auth = auth.replace(/%3A/i, ':');
 559      auth += '@';
 560    }
 561  
 562    var protocol = this.protocol || '',
 563        pathname = this.pathname || '',
 564        hash = this.hash || '',
 565        host = false,
 566        query = '';
 567  
 568    if (this.host) {
 569      host = auth + this.host;
 570    } else if (this.hostname) {
 571      host = auth + (this.hostname.indexOf(':') === -1 ?
 572          this.hostname :
 573          '[' + this.hostname + ']');
 574      if (this.port) {
 575        host += ':' + this.port;
 576      }
 577    }
 578  
 579    if (this.query &&
 580        util.isObject(this.query) &&
 581        Object.keys(this.query).length) {
 582      query = querystring.stringify(this.query);
 583    }
 584  
 585    var search = this.search || (query && ('?' + query)) || '';
 586  
 587    if (protocol && protocol.substr(-1) !== ':') protocol += ':';
 588  
 589    // only the slashedProtocols get the //.  Not mailto:, xmpp:, etc.
 590    // unless they had them to begin with.
 591    if (this.slashes ||
 592        (!protocol || slashedProtocol[protocol]) && host !== false) {
 593      host = '//' + (host || '');
 594      if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
 595    } else if (!host) {
 596      host = '';
 597    }
 598  
 599    if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
 600    if (search && search.charAt(0) !== '?') search = '?' + search;
 601  
 602    pathname = pathname.replace(/[?#]/g, function(match) {
 603      return encodeURIComponent(match);
 604    });
 605    search = search.replace('#', '%23');
 606  
 607    return protocol + host + pathname + search + hash;
 608  };
 609  
 610  function urlResolve(source, relative) {
 611    return urlParse(source, false, true).resolve(relative);
 612  }
 613  
 614  Url.prototype.resolve = function(relative) {
 615    return this.resolveObject(urlParse(relative, false, true)).format();
 616  };
 617  
 618  function urlResolveObject(source, relative) {
 619    if (!source) return relative;
 620    return urlParse(source, false, true).resolveObject(relative);
 621  }
 622  
 623  Url.prototype.resolveObject = function(relative) {
 624    if (util.isString(relative)) {
 625      var rel = new Url();
 626      rel.parse(relative, false, true);
 627      relative = rel;
 628    }
 629  
 630    var result = new Url();
 631    var tkeys = Object.keys(this);
 632    for (var tk = 0; tk < tkeys.length; tk++) {
 633      var tkey = tkeys[tk];
 634      result[tkey] = this[tkey];
 635    }
 636  
 637    // hash is always overridden, no matter what.
 638    // even href="" will remove it.
 639    result.hash = relative.hash;
 640  
 641    // if the relative url is empty, then there's nothing left to do here.
 642    if (relative.href === '') {
 643      result.href = result.format();
 644      return result;
 645    }
 646  
 647    // hrefs like //foo/bar always cut to the protocol.
 648    if (relative.slashes && !relative.protocol) {
 649      // take everything except the protocol from relative
 650      var rkeys = Object.keys(relative);
 651      for (var rk = 0; rk < rkeys.length; rk++) {
 652        var rkey = rkeys[rk];
 653        if (rkey !== 'protocol')
 654          result[rkey] = relative[rkey];
 655      }
 656  
 657      //urlParse appends trailing / to urls like http://www.example.com
 658      if (slashedProtocol[result.protocol] &&
 659          result.hostname && !result.pathname) {
 660        result.path = result.pathname = '/';
 661      }
 662  
 663      result.href = result.format();
 664      return result;
 665    }
 666  
 667    if (relative.protocol && relative.protocol !== result.protocol) {
 668      // if it's a known url protocol, then changing
 669      // the protocol does weird things
 670      // first, if it's not file:, then we MUST have a host,
 671      // and if there was a path
 672      // to begin with, then we MUST have a path.
 673      // if it is file:, then the host is dropped,
 674      // because that's known to be hostless.
 675      // anything else is assumed to be absolute.
 676      if (!slashedProtocol[relative.protocol]) {
 677        var keys = Object.keys(relative);
 678        for (var v = 0; v < keys.length; v++) {
 679          var k = keys[v];
 680          result[k] = relative[k];
 681        }
 682        result.href = result.format();
 683        return result;
 684      }
 685  
 686      result.protocol = relative.protocol;
 687      if (!relative.host && !hostlessProtocol[relative.protocol]) {
 688        var relPath = (relative.pathname || '').split('/');
 689        while (relPath.length && !(relative.host = relPath.shift()));
 690        if (!relative.host) relative.host = '';
 691        if (!relative.hostname) relative.hostname = '';
 692        if (relPath[0] !== '') relPath.unshift('');
 693        if (relPath.length < 2) relPath.unshift('');
 694        result.pathname = relPath.join('/');
 695      } else {
 696        result.pathname = relative.pathname;
 697      }
 698      result.search = relative.search;
 699      result.query = relative.query;
 700      result.host = relative.host || '';
 701      result.auth = relative.auth;
 702      result.hostname = relative.hostname || relative.host;
 703      result.port = relative.port;
 704      // to support http.request
 705      if (result.pathname || result.search) {
 706        var p = result.pathname || '';
 707        var s = result.search || '';
 708        result.path = p + s;
 709      }
 710      result.slashes = result.slashes || relative.slashes;
 711      result.href = result.format();
 712      return result;
 713    }
 714  
 715    var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
 716        isRelAbs = (
 717            relative.host ||
 718            relative.pathname && relative.pathname.charAt(0) === '/'
 719        ),
 720        mustEndAbs = (isRelAbs || isSourceAbs ||
 721                      (result.host && relative.pathname)),
 722        removeAllDots = mustEndAbs,
 723        srcPath = result.pathname && result.pathname.split('/') || [],
 724        relPath = relative.pathname && relative.pathname.split('/') || [],
 725        psychotic = result.protocol && !slashedProtocol[result.protocol];
 726  
 727    // if the url is a non-slashed url, then relative
 728    // links like ../.. should be able
 729    // to crawl up to the hostname, as well.  This is strange.
 730    // result.protocol has already been set by now.
 731    // Later on, put the first path part into the host field.
 732    if (psychotic) {
 733      result.hostname = '';
 734      result.port = null;
 735      if (result.host) {
 736        if (srcPath[0] === '') srcPath[0] = result.host;
 737        else srcPath.unshift(result.host);
 738      }
 739      result.host = '';
 740      if (relative.protocol) {
 741        relative.hostname = null;
 742        relative.port = null;
 743        if (relative.host) {
 744          if (relPath[0] === '') relPath[0] = relative.host;
 745          else relPath.unshift(relative.host);
 746        }
 747        relative.host = null;
 748      }
 749      mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
 750    }
 751  
 752    if (isRelAbs) {
 753      // it's absolute.
 754      result.host = (relative.host || relative.host === '') ?
 755                    relative.host : result.host;
 756      result.hostname = (relative.hostname || relative.hostname === '') ?
 757                        relative.hostname : result.hostname;
 758      result.search = relative.search;
 759      result.query = relative.query;
 760      srcPath = relPath;
 761      // fall through to the dot-handling below.
 762    } else if (relPath.length) {
 763      // it's relative
 764      // throw away the existing file, and take the new path instead.
 765      if (!srcPath) srcPath = [];
 766      srcPath.pop();
 767      srcPath = srcPath.concat(relPath);
 768      result.search = relative.search;
 769      result.query = relative.query;
 770    } else if (!util.isNullOrUndefined(relative.search)) {
 771      // just pull out the search.
 772      // like href='?foo'.
 773      // Put this after the other two cases because it simplifies the booleans
 774      if (psychotic) {
 775        result.hostname = result.host = srcPath.shift();
 776        //occationaly the auth can get stuck only in host
 777        //this especially happens in cases like
 778        //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
 779        var authInHost = result.host && result.host.indexOf('@') > 0 ?
 780                         result.host.split('@') : false;
 781        if (authInHost) {
 782          result.auth = authInHost.shift();
 783          result.host = result.hostname = authInHost.shift();
 784        }
 785      }
 786      result.search = relative.search;
 787      result.query = relative.query;
 788      //to support http.request
 789      if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
 790        result.path = (result.pathname ? result.pathname : '') +
 791                      (result.search ? result.search : '');
 792      }
 793      result.href = result.format();
 794      return result;
 795    }
 796  
 797    if (!srcPath.length) {
 798      // no path at all.  easy.
 799      // we've already handled the other stuff above.
 800      result.pathname = null;
 801      //to support http.request
 802      if (result.search) {
 803        result.path = '/' + result.search;
 804      } else {
 805        result.path = null;
 806      }
 807      result.href = result.format();
 808      return result;
 809    }
 810  
 811    // if a url ENDs in . or .., then it must get a trailing slash.
 812    // however, if it ends in anything else non-slashy,
 813    // then it must NOT get a trailing slash.
 814    var last = srcPath.slice(-1)[0];
 815    var hasTrailingSlash = (
 816        (result.host || relative.host || srcPath.length > 1) &&
 817        (last === '.' || last === '..') || last === '');
 818  
 819    // strip single dots, resolve double dots to parent dir
 820    // if the path tries to go above the root, `up` ends up > 0
 821    var up = 0;
 822    for (var i = srcPath.length; i >= 0; i--) {
 823      last = srcPath[i];
 824      if (last === '.') {
 825        srcPath.splice(i, 1);
 826      } else if (last === '..') {
 827        srcPath.splice(i, 1);
 828        up++;
 829      } else if (up) {
 830        srcPath.splice(i, 1);
 831        up--;
 832      }
 833    }
 834  
 835    // if the path is allowed to go above the root, restore leading ..s
 836    if (!mustEndAbs && !removeAllDots) {
 837      for (; up--; up) {
 838        srcPath.unshift('..');
 839      }
 840    }
 841  
 842    if (mustEndAbs && srcPath[0] !== '' &&
 843        (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
 844      srcPath.unshift('');
 845    }
 846  
 847    if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
 848      srcPath.push('');
 849    }
 850  
 851    var isAbsolute = srcPath[0] === '' ||
 852        (srcPath[0] && srcPath[0].charAt(0) === '/');
 853  
 854    // put the host back
 855    if (psychotic) {
 856      result.hostname = result.host = isAbsolute ? '' :
 857                                      srcPath.length ? srcPath.shift() : '';
 858      //occationaly the auth can get stuck only in host
 859      //this especially happens in cases like
 860      //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
 861      var authInHost = result.host && result.host.indexOf('@') > 0 ?
 862                       result.host.split('@') : false;
 863      if (authInHost) {
 864        result.auth = authInHost.shift();
 865        result.host = result.hostname = authInHost.shift();
 866      }
 867    }
 868  
 869    mustEndAbs = mustEndAbs || (result.host && srcPath.length);
 870  
 871    if (mustEndAbs && !isAbsolute) {
 872      srcPath.unshift('');
 873    }
 874  
 875    if (!srcPath.length) {
 876      result.pathname = null;
 877      result.path = null;
 878    } else {
 879      result.pathname = srcPath.join('/');
 880    }
 881  
 882    //to support request.http
 883    if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
 884      result.path = (result.pathname ? result.pathname : '') +
 885                    (result.search ? result.search : '');
 886    }
 887    result.auth = relative.auth || result.auth;
 888    result.slashes = result.slashes || relative.slashes;
 889    result.href = result.format();
 890    return result;
 891  };
 892  
 893  Url.prototype.parseHost = function() {
 894    var host = this.host;
 895    var port = portPattern.exec(host);
 896    if (port) {
 897      port = port[0];
 898      if (port !== ':') {
 899        this.port = port.substr(1);
 900      }
 901      host = host.substr(0, host.length - port.length);
 902    }
 903    if (host) this.hostname = host;
 904  };
 905  
 906  
 907  /***/ }),
 908  
 909  /***/ 12:
 910  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 911  
 912  "use strict";
 913  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
 914  function _extends() {
 915    _extends = Object.assign || function (target) {
 916      for (var i = 1; i < arguments.length; i++) {
 917        var source = arguments[i];
 918  
 919        for (var key in source) {
 920          if (Object.prototype.hasOwnProperty.call(source, key)) {
 921            target[key] = source[key];
 922          }
 923        }
 924      }
 925  
 926      return target;
 927    };
 928  
 929    return _extends.apply(this, arguments);
 930  }
 931  
 932  /***/ }),
 933  
 934  /***/ 120:
 935  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 936  
 937  "use strict";
 938  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 939  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 940  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
 941  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 942  
 943  
 944  /**
 945   * WordPress dependencies
 946   */
 947  
 948  var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 949    xmlns: "http://www.w3.org/2000/svg",
 950    viewBox: "-2 -2 24 24"
 951  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 952    d: "M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"
 953  }));
 954  /* harmony default export */ __webpack_exports__["a"] = (close);
 955  
 956  
 957  /***/ }),
 958  
 959  /***/ 13:
 960  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 961  
 962  "use strict";
 963  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 964  function _defineProperties(target, props) {
 965    for (var i = 0; i < props.length; i++) {
 966      var descriptor = props[i];
 967      descriptor.enumerable = descriptor.enumerable || false;
 968      descriptor.configurable = true;
 969      if ("value" in descriptor) descriptor.writable = true;
 970      Object.defineProperty(target, descriptor.key, descriptor);
 971    }
 972  }
 973  
 974  function _createClass(Constructor, protoProps, staticProps) {
 975    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 976    if (staticProps) _defineProperties(Constructor, staticProps);
 977    return Constructor;
 978  }
 979  
 980  /***/ }),
 981  
 982  /***/ 14:
 983  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 984  
 985  "use strict";
 986  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 987  function _classCallCheck(instance, Constructor) {
 988    if (!(instance instanceof Constructor)) {
 989      throw new TypeError("Cannot call a class as a function");
 990    }
 991  }
 992  
 993  /***/ }),
 994  
 995  /***/ 15:
 996  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 997  
 998  "use strict";
 999  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
1000  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
1001  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
1002  
1003  
1004  function _possibleConstructorReturn(self, call) {
1005    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
1006      return call;
1007    }
1008  
1009    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
1010  }
1011  
1012  /***/ }),
1013  
1014  /***/ 159:
1015  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1016  
1017  "use strict";
1018  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1019  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1020  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
1021  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1022  
1023  
1024  /**
1025   * WordPress dependencies
1026   */
1027  
1028  var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1029    xmlns: "http://www.w3.org/2000/svg",
1030    viewBox: "-2 -2 24 24"
1031  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1032    d: "M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z"
1033  }));
1034  /* harmony default export */ __webpack_exports__["a"] = (link);
1035  
1036  
1037  /***/ }),
1038  
1039  /***/ 16:
1040  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1041  
1042  "use strict";
1043  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
1044  function _getPrototypeOf(o) {
1045    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
1046      return o.__proto__ || Object.getPrototypeOf(o);
1047    };
1048    return _getPrototypeOf(o);
1049  }
1050  
1051  /***/ }),
1052  
1053  /***/ 160:
1054  /***/ (function(module, exports, __webpack_require__) {
1055  
1056  /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */
1057  ;(function(root) {
1058  
1059      /** Detect free variables */
1060      var freeExports =  true && exports &&
1061          !exports.nodeType && exports;
1062      var freeModule =  true && module &&
1063          !module.nodeType && module;
1064      var freeGlobal = typeof global == 'object' && global;
1065      if (
1066          freeGlobal.global === freeGlobal ||
1067          freeGlobal.window === freeGlobal ||
1068          freeGlobal.self === freeGlobal
1069      ) {
1070          root = freeGlobal;
1071      }
1072  
1073      /**
1074       * The `punycode` object.
1075       * @name punycode
1076       * @type Object
1077       */
1078      var punycode,
1079  
1080      /** Highest positive signed 32-bit float value */
1081      maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
1082  
1083      /** Bootstring parameters */
1084      base = 36,
1085      tMin = 1,
1086      tMax = 26,
1087      skew = 38,
1088      damp = 700,
1089      initialBias = 72,
1090      initialN = 128, // 0x80
1091      delimiter = '-', // '\x2D'
1092  
1093      /** Regular expressions */
1094      regexPunycode = /^xn--/,
1095      regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
1096      regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
1097  
1098      /** Error messages */
1099      errors = {
1100          'overflow': 'Overflow: input needs wider integers to process',
1101          'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
1102          'invalid-input': 'Invalid input'
1103      },
1104  
1105      /** Convenience shortcuts */
1106      baseMinusTMin = base - tMin,
1107      floor = Math.floor,
1108      stringFromCharCode = String.fromCharCode,
1109  
1110      /** Temporary variable */
1111      key;
1112  
1113      /*--------------------------------------------------------------------------*/
1114  
1115      /**
1116       * A generic error utility function.
1117       * @private
1118       * @param {String} type The error type.
1119       * @returns {Error} Throws a `RangeError` with the applicable error message.
1120       */
1121  	function error(type) {
1122          throw RangeError(errors[type]);
1123      }
1124  
1125      /**
1126       * A generic `Array#map` utility function.
1127       * @private
1128       * @param {Array} array The array to iterate over.
1129       * @param {Function} callback The function that gets called for every array
1130       * item.
1131       * @returns {Array} A new array of values returned by the callback function.
1132       */
1133  	function map(array, fn) {
1134          var length = array.length;
1135          var result = [];
1136          while (length--) {
1137              result[length] = fn(array[length]);
1138          }
1139          return result;
1140      }
1141  
1142      /**
1143       * A simple `Array#map`-like wrapper to work with domain name strings or email
1144       * addresses.
1145       * @private
1146       * @param {String} domain The domain name or email address.
1147       * @param {Function} callback The function that gets called for every
1148       * character.
1149       * @returns {Array} A new string of characters returned by the callback
1150       * function.
1151       */
1152  	function mapDomain(string, fn) {
1153          var parts = string.split('@');
1154          var result = '';
1155          if (parts.length > 1) {
1156              // In email addresses, only the domain name should be punycoded. Leave
1157              // the local part (i.e. everything up to `@`) intact.
1158              result = parts[0] + '@';
1159              string = parts[1];
1160          }
1161          // Avoid `split(regex)` for IE8 compatibility. See #17.
1162          string = string.replace(regexSeparators, '\x2E');
1163          var labels = string.split('.');
1164          var encoded = map(labels, fn).join('.');
1165          return result + encoded;
1166      }
1167  
1168      /**
1169       * Creates an array containing the numeric code points of each Unicode
1170       * character in the string. While JavaScript uses UCS-2 internally,
1171       * this function will convert a pair of surrogate halves (each of which
1172       * UCS-2 exposes as separate characters) into a single code point,
1173       * matching UTF-16.
1174       * @see `punycode.ucs2.encode`
1175       * @see <https://mathiasbynens.be/notes/javascript-encoding>
1176       * @memberOf punycode.ucs2
1177       * @name decode
1178       * @param {String} string The Unicode input string (UCS-2).
1179       * @returns {Array} The new array of code points.
1180       */
1181  	function ucs2decode(string) {
1182          var output = [],
1183              counter = 0,
1184              length = string.length,
1185              value,
1186              extra;
1187          while (counter < length) {
1188              value = string.charCodeAt(counter++);
1189              if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
1190                  // high surrogate, and there is a next character
1191                  extra = string.charCodeAt(counter++);
1192                  if ((extra & 0xFC00) == 0xDC00) { // low surrogate
1193                      output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
1194                  } else {
1195                      // unmatched surrogate; only append this code unit, in case the next
1196                      // code unit is the high surrogate of a surrogate pair
1197                      output.push(value);
1198                      counter--;
1199                  }
1200              } else {
1201                  output.push(value);
1202              }
1203          }
1204          return output;
1205      }
1206  
1207      /**
1208       * Creates a string based on an array of numeric code points.
1209       * @see `punycode.ucs2.decode`
1210       * @memberOf punycode.ucs2
1211       * @name encode
1212       * @param {Array} codePoints The array of numeric code points.
1213       * @returns {String} The new Unicode string (UCS-2).
1214       */
1215  	function ucs2encode(array) {
1216          return map(array, function(value) {
1217              var output = '';
1218              if (value > 0xFFFF) {
1219                  value -= 0x10000;
1220                  output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
1221                  value = 0xDC00 | value & 0x3FF;
1222              }
1223              output += stringFromCharCode(value);
1224              return output;
1225          }).join('');
1226      }
1227  
1228      /**
1229       * Converts a basic code point into a digit/integer.
1230       * @see `digitToBasic()`
1231       * @private
1232       * @param {Number} codePoint The basic numeric code point value.
1233       * @returns {Number} The numeric value of a basic code point (for use in
1234       * representing integers) in the range `0` to `base - 1`, or `base` if
1235       * the code point does not represent a value.
1236       */
1237  	function basicToDigit(codePoint) {
1238          if (codePoint - 48 < 10) {
1239              return codePoint - 22;
1240          }
1241          if (codePoint - 65 < 26) {
1242              return codePoint - 65;
1243          }
1244          if (codePoint - 97 < 26) {
1245              return codePoint - 97;
1246          }
1247          return base;
1248      }
1249  
1250      /**
1251       * Converts a digit/integer into a basic code point.
1252       * @see `basicToDigit()`
1253       * @private
1254       * @param {Number} digit The numeric value of a basic code point.
1255       * @returns {Number} The basic code point whose value (when used for
1256       * representing integers) is `digit`, which needs to be in the range
1257       * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
1258       * used; else, the lowercase form is used. The behavior is undefined
1259       * if `flag` is non-zero and `digit` has no uppercase form.
1260       */
1261  	function digitToBasic(digit, flag) {
1262          //  0..25 map to ASCII a..z or A..Z
1263          // 26..35 map to ASCII 0..9
1264          return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
1265      }
1266  
1267      /**
1268       * Bias adaptation function as per section 3.4 of RFC 3492.
1269       * http://tools.ietf.org/html/rfc3492#section-3.4
1270       * @private
1271       */
1272  	function adapt(delta, numPoints, firstTime) {
1273          var k = 0;
1274          delta = firstTime ? floor(delta / damp) : delta >> 1;
1275          delta += floor(delta / numPoints);
1276          for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
1277              delta = floor(delta / baseMinusTMin);
1278          }
1279          return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
1280      }
1281  
1282      /**
1283       * Converts a Punycode string of ASCII-only symbols to a string of Unicode
1284       * symbols.
1285       * @memberOf punycode
1286       * @param {String} input The Punycode string of ASCII-only symbols.
1287       * @returns {String} The resulting string of Unicode symbols.
1288       */
1289  	function decode(input) {
1290          // Don't use UCS-2
1291          var output = [],
1292              inputLength = input.length,
1293              out,
1294              i = 0,
1295              n = initialN,
1296              bias = initialBias,
1297              basic,
1298              j,
1299              index,
1300              oldi,
1301              w,
1302              k,
1303              digit,
1304              t,
1305              /** Cached calculation results */
1306              baseMinusT;
1307  
1308          // Handle the basic code points: let `basic` be the number of input code
1309          // points before the last delimiter, or `0` if there is none, then copy
1310          // the first basic code points to the output.
1311  
1312          basic = input.lastIndexOf(delimiter);
1313          if (basic < 0) {
1314              basic = 0;
1315          }
1316  
1317          for (j = 0; j < basic; ++j) {
1318              // if it's not a basic code point
1319              if (input.charCodeAt(j) >= 0x80) {
1320                  error('not-basic');
1321              }
1322              output.push(input.charCodeAt(j));
1323          }
1324  
1325          // Main decoding loop: start just after the last delimiter if any basic code
1326          // points were copied; start at the beginning otherwise.
1327  
1328          for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
1329  
1330              // `index` is the index of the next character to be consumed.
1331              // Decode a generalized variable-length integer into `delta`,
1332              // which gets added to `i`. The overflow checking is easier
1333              // if we increase `i` as we go, then subtract off its starting
1334              // value at the end to obtain `delta`.
1335              for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
1336  
1337                  if (index >= inputLength) {
1338                      error('invalid-input');
1339                  }
1340  
1341                  digit = basicToDigit(input.charCodeAt(index++));
1342  
1343                  if (digit >= base || digit > floor((maxInt - i) / w)) {
1344                      error('overflow');
1345                  }
1346  
1347                  i += digit * w;
1348                  t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
1349  
1350                  if (digit < t) {
1351                      break;
1352                  }
1353  
1354                  baseMinusT = base - t;
1355                  if (w > floor(maxInt / baseMinusT)) {
1356                      error('overflow');
1357                  }
1358  
1359                  w *= baseMinusT;
1360  
1361              }
1362  
1363              out = output.length + 1;
1364              bias = adapt(i - oldi, out, oldi == 0);
1365  
1366              // `i` was supposed to wrap around from `out` to `0`,
1367              // incrementing `n` each time, so we'll fix that now:
1368              if (floor(i / out) > maxInt - n) {
1369                  error('overflow');
1370              }
1371  
1372              n += floor(i / out);
1373              i %= out;
1374  
1375              // Insert `n` at position `i` of the output
1376              output.splice(i++, 0, n);
1377  
1378          }
1379  
1380          return ucs2encode(output);
1381      }
1382  
1383      /**
1384       * Converts a string of Unicode symbols (e.g. a domain name label) to a
1385       * Punycode string of ASCII-only symbols.
1386       * @memberOf punycode
1387       * @param {String} input The string of Unicode symbols.
1388       * @returns {String} The resulting Punycode string of ASCII-only symbols.
1389       */
1390  	function encode(input) {
1391          var n,
1392              delta,
1393              handledCPCount,
1394              basicLength,
1395              bias,
1396              j,
1397              m,
1398              q,
1399              k,
1400              t,
1401              currentValue,
1402              output = [],
1403              /** `inputLength` will hold the number of code points in `input`. */
1404              inputLength,
1405              /** Cached calculation results */
1406              handledCPCountPlusOne,
1407              baseMinusT,
1408              qMinusT;
1409  
1410          // Convert the input in UCS-2 to Unicode
1411          input = ucs2decode(input);
1412  
1413          // Cache the length
1414          inputLength = input.length;
1415  
1416          // Initialize the state
1417          n = initialN;
1418          delta = 0;
1419          bias = initialBias;
1420  
1421          // Handle the basic code points
1422          for (j = 0; j < inputLength; ++j) {
1423              currentValue = input[j];
1424              if (currentValue < 0x80) {
1425                  output.push(stringFromCharCode(currentValue));
1426              }
1427          }
1428  
1429          handledCPCount = basicLength = output.length;
1430  
1431          // `handledCPCount` is the number of code points that have been handled;
1432          // `basicLength` is the number of basic code points.
1433  
1434          // Finish the basic string - if it is not empty - with a delimiter
1435          if (basicLength) {
1436              output.push(delimiter);
1437          }
1438  
1439          // Main encoding loop:
1440          while (handledCPCount < inputLength) {
1441  
1442              // All non-basic code points < n have been handled already. Find the next
1443              // larger one:
1444              for (m = maxInt, j = 0; j < inputLength; ++j) {
1445                  currentValue = input[j];
1446                  if (currentValue >= n && currentValue < m) {
1447                      m = currentValue;
1448                  }
1449              }
1450  
1451              // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
1452              // but guard against overflow
1453              handledCPCountPlusOne = handledCPCount + 1;
1454              if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
1455                  error('overflow');
1456              }
1457  
1458              delta += (m - n) * handledCPCountPlusOne;
1459              n = m;
1460  
1461              for (j = 0; j < inputLength; ++j) {
1462                  currentValue = input[j];
1463  
1464                  if (currentValue < n && ++delta > maxInt) {
1465                      error('overflow');
1466                  }
1467  
1468                  if (currentValue == n) {
1469                      // Represent delta as a generalized variable-length integer
1470                      for (q = delta, k = base; /* no condition */; k += base) {
1471                          t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
1472                          if (q < t) {
1473                              break;
1474                          }
1475                          qMinusT = q - t;
1476                          baseMinusT = base - t;
1477                          output.push(
1478                              stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
1479                          );
1480                          q = floor(qMinusT / baseMinusT);
1481                      }
1482  
1483                      output.push(stringFromCharCode(digitToBasic(q, 0)));
1484                      bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
1485                      delta = 0;
1486                      ++handledCPCount;
1487                  }
1488              }
1489  
1490              ++delta;
1491              ++n;
1492  
1493          }
1494          return output.join('');
1495      }
1496  
1497      /**
1498       * Converts a Punycode string representing a domain name or an email address
1499       * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
1500       * it doesn't matter if you call it on a string that has already been
1501       * converted to Unicode.
1502       * @memberOf punycode
1503       * @param {String} input The Punycoded domain name or email address to
1504       * convert to Unicode.
1505       * @returns {String} The Unicode representation of the given Punycode
1506       * string.
1507       */
1508  	function toUnicode(input) {
1509          return mapDomain(input, function(string) {
1510              return regexPunycode.test(string)
1511                  ? decode(string.slice(4).toLowerCase())
1512                  : string;
1513          });
1514      }
1515  
1516      /**
1517       * Converts a Unicode string representing a domain name or an email address to
1518       * Punycode. Only the non-ASCII parts of the domain name will be converted,
1519       * i.e. it doesn't matter if you call it with a domain that's already in
1520       * ASCII.
1521       * @memberOf punycode
1522       * @param {String} input The domain name or email address to convert, as a
1523       * Unicode string.
1524       * @returns {String} The Punycode representation of the given domain name or
1525       * email address.
1526       */
1527  	function toASCII(input) {
1528          return mapDomain(input, function(string) {
1529              return regexNonASCII.test(string)
1530                  ? 'xn--' + encode(string)
1531                  : string;
1532          });
1533      }
1534  
1535      /*--------------------------------------------------------------------------*/
1536  
1537      /** Define the public API */
1538      punycode = {
1539          /**
1540           * A string representing the current Punycode.js version number.
1541           * @memberOf punycode
1542           * @type String
1543           */
1544          'version': '1.3.2',
1545          /**
1546           * An object of methods to convert from JavaScript's internal character
1547           * representation (UCS-2) to Unicode code points, and back.
1548           * @see <https://mathiasbynens.be/notes/javascript-encoding>
1549           * @memberOf punycode
1550           * @type Object
1551           */
1552          'ucs2': {
1553              'decode': ucs2decode,
1554              'encode': ucs2encode
1555          },
1556          'decode': decode,
1557          'encode': encode,
1558          'toASCII': toASCII,
1559          'toUnicode': toUnicode
1560      };
1561  
1562      /** Expose `punycode` */
1563      // Some AMD build optimizers, like r.js, check for specific condition patterns
1564      // like the following:
1565      if (
1566          true
1567      ) {
1568          !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
1569              return punycode;
1570          }).call(exports, __webpack_require__, exports, module),
1571                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1572      } else {}
1573  
1574  }(this));
1575  
1576  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(161)(module), __webpack_require__(73)))
1577  
1578  /***/ }),
1579  
1580  /***/ 161:
1581  /***/ (function(module, exports) {
1582  
1583  module.exports = function(module) {
1584      if (!module.webpackPolyfill) {
1585          module.deprecate = function() {};
1586          module.paths = [];
1587          // module.parent = undefined by default
1588          if (!module.children) module.children = [];
1589          Object.defineProperty(module, "loaded", {
1590              enumerable: true,
1591              get: function() {
1592                  return module.l;
1593              }
1594          });
1595          Object.defineProperty(module, "id", {
1596              enumerable: true,
1597              get: function() {
1598                  return module.i;
1599              }
1600          });
1601          module.webpackPolyfill = 1;
1602      }
1603      return module;
1604  };
1605  
1606  
1607  /***/ }),
1608  
1609  /***/ 162:
1610  /***/ (function(module, exports, __webpack_require__) {
1611  
1612  "use strict";
1613  
1614  
1615  module.exports = {
1616    isString: function(arg) {
1617      return typeof(arg) === 'string';
1618    },
1619    isObject: function(arg) {
1620      return typeof(arg) === 'object' && arg !== null;
1621    },
1622    isNull: function(arg) {
1623      return arg === null;
1624    },
1625    isNullOrUndefined: function(arg) {
1626      return arg == null;
1627    }
1628  };
1629  
1630  
1631  /***/ }),
1632  
1633  /***/ 163:
1634  /***/ (function(module, exports, __webpack_require__) {
1635  
1636  "use strict";
1637  
1638  
1639  exports.decode = exports.parse = __webpack_require__(164);
1640  exports.encode = exports.stringify = __webpack_require__(165);
1641  
1642  
1643  /***/ }),
1644  
1645  /***/ 164:
1646  /***/ (function(module, exports, __webpack_require__) {
1647  
1648  "use strict";
1649  // Copyright Joyent, Inc. and other Node contributors.
1650  //
1651  // Permission is hereby granted, free of charge, to any person obtaining a
1652  // copy of this software and associated documentation files (the
1653  // "Software"), to deal in the Software without restriction, including
1654  // without limitation the rights to use, copy, modify, merge, publish,
1655  // distribute, sublicense, and/or sell copies of the Software, and to permit
1656  // persons to whom the Software is furnished to do so, subject to the
1657  // following conditions:
1658  //
1659  // The above copyright notice and this permission notice shall be included
1660  // in all copies or substantial portions of the Software.
1661  //
1662  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1663  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1664  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
1665  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1666  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1667  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
1668  // USE OR OTHER DEALINGS IN THE SOFTWARE.
1669  
1670  
1671  
1672  // If obj.hasOwnProperty has been overridden, then calling
1673  // obj.hasOwnProperty(prop) will break.
1674  // See: https://github.com/joyent/node/issues/1707
1675  function hasOwnProperty(obj, prop) {
1676    return Object.prototype.hasOwnProperty.call(obj, prop);
1677  }
1678  
1679  module.exports = function(qs, sep, eq, options) {
1680    sep = sep || '&';
1681    eq = eq || '=';
1682    var obj = {};
1683  
1684    if (typeof qs !== 'string' || qs.length === 0) {
1685      return obj;
1686    }
1687  
1688    var regexp = /\+/g;
1689    qs = qs.split(sep);
1690  
1691    var maxKeys = 1000;
1692    if (options && typeof options.maxKeys === 'number') {
1693      maxKeys = options.maxKeys;
1694    }
1695  
1696    var len = qs.length;
1697    // maxKeys <= 0 means that we should not limit keys count
1698    if (maxKeys > 0 && len > maxKeys) {
1699      len = maxKeys;
1700    }
1701  
1702    for (var i = 0; i < len; ++i) {
1703      var x = qs[i].replace(regexp, '%20'),
1704          idx = x.indexOf(eq),
1705          kstr, vstr, k, v;
1706  
1707      if (idx >= 0) {
1708        kstr = x.substr(0, idx);
1709        vstr = x.substr(idx + 1);
1710      } else {
1711        kstr = x;
1712        vstr = '';
1713      }
1714  
1715      k = decodeURIComponent(kstr);
1716      v = decodeURIComponent(vstr);
1717  
1718      if (!hasOwnProperty(obj, k)) {
1719        obj[k] = v;
1720      } else if (isArray(obj[k])) {
1721        obj[k].push(v);
1722      } else {
1723        obj[k] = [obj[k], v];
1724      }
1725    }
1726  
1727    return obj;
1728  };
1729  
1730  var isArray = Array.isArray || function (xs) {
1731    return Object.prototype.toString.call(xs) === '[object Array]';
1732  };
1733  
1734  
1735  /***/ }),
1736  
1737  /***/ 165:
1738  /***/ (function(module, exports, __webpack_require__) {
1739  
1740  "use strict";
1741  // Copyright Joyent, Inc. and other Node contributors.
1742  //
1743  // Permission is hereby granted, free of charge, to any person obtaining a
1744  // copy of this software and associated documentation files (the
1745  // "Software"), to deal in the Software without restriction, including
1746  // without limitation the rights to use, copy, modify, merge, publish,
1747  // distribute, sublicense, and/or sell copies of the Software, and to permit
1748  // persons to whom the Software is furnished to do so, subject to the
1749  // following conditions:
1750  //
1751  // The above copyright notice and this permission notice shall be included
1752  // in all copies or substantial portions of the Software.
1753  //
1754  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1755  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1756  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
1757  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1758  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1759  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
1760  // USE OR OTHER DEALINGS IN THE SOFTWARE.
1761  
1762  
1763  
1764  var stringifyPrimitive = function(v) {
1765    switch (typeof v) {
1766      case 'string':
1767        return v;
1768  
1769      case 'boolean':
1770        return v ? 'true' : 'false';
1771  
1772      case 'number':
1773        return isFinite(v) ? v : '';
1774  
1775      default:
1776        return '';
1777    }
1778  };
1779  
1780  module.exports = function(obj, sep, eq, name) {
1781    sep = sep || '&';
1782    eq = eq || '=';
1783    if (obj === null) {
1784      obj = undefined;
1785    }
1786  
1787    if (typeof obj === 'object') {
1788      return map(objectKeys(obj), function(k) {
1789        var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
1790        if (isArray(obj[k])) {
1791          return map(obj[k], function(v) {
1792            return ks + encodeURIComponent(stringifyPrimitive(v));
1793          }).join(sep);
1794        } else {
1795          return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
1796        }
1797      }).join(sep);
1798  
1799    }
1800  
1801    if (!name) return '';
1802    return encodeURIComponent(stringifyPrimitive(name)) + eq +
1803           encodeURIComponent(stringifyPrimitive(obj));
1804  };
1805  
1806  var isArray = Array.isArray || function (xs) {
1807    return Object.prototype.toString.call(xs) === '[object Array]';
1808  };
1809  
1810  function map (xs, f) {
1811    if (xs.map) return xs.map(f);
1812    var res = [];
1813    for (var i = 0; i < xs.length; i++) {
1814      res.push(f(xs[i], i));
1815    }
1816    return res;
1817  }
1818  
1819  var objectKeys = Object.keys || function (obj) {
1820    var res = [];
1821    for (var key in obj) {
1822      if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
1823    }
1824    return res;
1825  };
1826  
1827  
1828  /***/ }),
1829  
1830  /***/ 17:
1831  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1832  
1833  "use strict";
1834  
1835  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1836  function _setPrototypeOf(o, p) {
1837    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1838      o.__proto__ = p;
1839      return o;
1840    };
1841  
1842    return _setPrototypeOf(o, p);
1843  }
1844  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
1845  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
1846  
1847  function _inherits(subClass, superClass) {
1848    if (typeof superClass !== "function" && superClass !== null) {
1849      throw new TypeError("Super expression must either be null or a function");
1850    }
1851  
1852    subClass.prototype = Object.create(superClass && superClass.prototype, {
1853      constructor: {
1854        value: subClass,
1855        writable: true,
1856        configurable: true
1857      }
1858    });
1859    if (superClass) _setPrototypeOf(subClass, superClass);
1860  }
1861  
1862  /***/ }),
1863  
1864  /***/ 18:
1865  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1866  
1867  "use strict";
1868  
1869  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1870  var arrayLikeToArray = __webpack_require__(25);
1871  
1872  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1873  
1874  function _arrayWithoutHoles(arr) {
1875    if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
1876  }
1877  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1878  var iterableToArray = __webpack_require__(35);
1879  
1880  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1881  var unsupportedIterableToArray = __webpack_require__(27);
1882  
1883  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1884  function _nonIterableSpread() {
1885    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1886  }
1887  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1888  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
1889  
1890  
1891  
1892  
1893  function _toConsumableArray(arr) {
1894    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
1895  }
1896  
1897  /***/ }),
1898  
1899  /***/ 19:
1900  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1901  
1902  "use strict";
1903  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
1904  /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);
1905  
1906  function _objectWithoutProperties(source, excluded) {
1907    if (source == null) return {};
1908    var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
1909    var key, i;
1910  
1911    if (Object.getOwnPropertySymbols) {
1912      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1913  
1914      for (i = 0; i < sourceSymbolKeys.length; i++) {
1915        key = sourceSymbolKeys[i];
1916        if (excluded.indexOf(key) >= 0) continue;
1917        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1918        target[key] = source[key];
1919      }
1920    }
1921  
1922    return target;
1923  }
1924  
1925  /***/ }),
1926  
1927  /***/ 192:
1928  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1929  
1930  "use strict";
1931  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1932  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1933  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
1934  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1935  
1936  
1937  /**
1938   * WordPress dependencies
1939   */
1940  
1941  var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1942    xmlns: "http://www.w3.org/2000/svg",
1943    viewBox: "-2 -2 24 24"
1944  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1945    d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z"
1946  }));
1947  /* harmony default export */ __webpack_exports__["a"] = (keyboardReturn);
1948  
1949  
1950  /***/ }),
1951  
1952  /***/ 2:
1953  /***/ (function(module, exports) {
1954  
1955  (function() { module.exports = this["lodash"]; }());
1956  
1957  /***/ }),
1958  
1959  /***/ 20:
1960  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1961  
1962  "use strict";
1963  
1964  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1965  var arrayWithHoles = __webpack_require__(38);
1966  
1967  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1968  function _iterableToArrayLimit(arr, i) {
1969    if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
1970    var _arr = [];
1971    var _n = true;
1972    var _d = false;
1973    var _e = undefined;
1974  
1975    try {
1976      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1977        _arr.push(_s.value);
1978  
1979        if (i && _arr.length === i) break;
1980      }
1981    } catch (err) {
1982      _d = true;
1983      _e = err;
1984    } finally {
1985      try {
1986        if (!_n && _i["return"] != null) _i["return"]();
1987      } finally {
1988        if (_d) throw _e;
1989      }
1990    }
1991  
1992    return _arr;
1993  }
1994  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1995  var unsupportedIterableToArray = __webpack_require__(27);
1996  
1997  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1998  var nonIterableRest = __webpack_require__(39);
1999  
2000  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
2001  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; });
2002  
2003  
2004  
2005  
2006  function _slicedToArray(arr, i) {
2007    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
2008  }
2009  
2010  /***/ }),
2011  
2012  /***/ 22:
2013  /***/ (function(module, exports) {
2014  
2015  (function() { module.exports = this["wp"]["keycodes"]; }());
2016  
2017  /***/ }),
2018  
2019  /***/ 24:
2020  /***/ (function(module, exports) {
2021  
2022  (function() { module.exports = this["wp"]["richText"]; }());
2023  
2024  /***/ }),
2025  
2026  /***/ 25:
2027  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2028  
2029  "use strict";
2030  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
2031  function _arrayLikeToArray(arr, len) {
2032    if (len == null || len > arr.length) len = arr.length;
2033  
2034    for (var i = 0, arr2 = new Array(len); i < len; i++) {
2035      arr2[i] = arr[i];
2036    }
2037  
2038    return arr2;
2039  }
2040  
2041  /***/ }),
2042  
2043  /***/ 264:
2044  /***/ (function(module, exports, __webpack_require__) {
2045  
2046  /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
2047  (function (global, factory) {
2048       true ? module.exports = factory() :
2049      undefined;
2050  }(this, (function () { 'use strict';
2051  
2052  function _classCallCheck(instance, Constructor) {
2053    if (!(instance instanceof Constructor)) {
2054      throw new TypeError("Cannot call a class as a function");
2055    }
2056  }
2057  
2058  function _defineProperties(target, props) {
2059    for (var i = 0; i < props.length; i++) {
2060      var descriptor = props[i];
2061      descriptor.enumerable = descriptor.enumerable || false;
2062      descriptor.configurable = true;
2063      if ("value" in descriptor) descriptor.writable = true;
2064      Object.defineProperty(target, descriptor.key, descriptor);
2065    }
2066  }
2067  
2068  function _createClass(Constructor, protoProps, staticProps) {
2069    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2070    if (staticProps) _defineProperties(Constructor, staticProps);
2071    return Constructor;
2072  }
2073  
2074  function _slicedToArray(arr, i) {
2075    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
2076  }
2077  
2078  function _arrayWithHoles(arr) {
2079    if (Array.isArray(arr)) return arr;
2080  }
2081  
2082  function _iterableToArrayLimit(arr, i) {
2083    var _arr = [];
2084    var _n = true;
2085    var _d = false;
2086    var _e = undefined;
2087  
2088    try {
2089      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
2090        _arr.push(_s.value);
2091  
2092        if (i && _arr.length === i) break;
2093      }
2094    } catch (err) {
2095      _d = true;
2096      _e = err;
2097    } finally {
2098      try {
2099        if (!_n && _i["return"] != null) _i["return"]();
2100      } finally {
2101        if (_d) throw _e;
2102      }
2103    }
2104  
2105    return _arr;
2106  }
2107  
2108  function _nonIterableRest() {
2109    throw new TypeError("Invalid attempt to destructure non-iterable instance");
2110  }
2111  
2112  var FastAverageColor =
2113  /*#__PURE__*/
2114  function () {
2115    function FastAverageColor() {
2116      _classCallCheck(this, FastAverageColor);
2117    }
2118  
2119    _createClass(FastAverageColor, [{
2120      key: "getColorAsync",
2121  
2122      /**
2123       * Get asynchronously the average color from not loaded image.
2124       *
2125       * @param {HTMLImageElement} resource
2126       * @param {Function} callback
2127       * @param {Object|null} [options]
2128       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
2129       * @param {*}      [options.data]
2130       * @param {string} [options.mode="speed"] "precision" or "speed"
2131       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
2132       * @param {number} [options.step=1]
2133       * @param {number} [options.left=0]
2134       * @param {number} [options.top=0]
2135       * @param {number} [options.width=width of resource]
2136       * @param {number} [options.height=height of resource]
2137       */
2138      value: function getColorAsync(resource, callback, options) {
2139        if (resource.complete) {
2140          callback.call(resource, this.getColor(resource, options), options && options.data);
2141        } else {
2142          this._bindImageEvents(resource, callback, options);
2143        }
2144      }
2145      /**
2146       * Get the average color from images, videos and canvas.
2147       *
2148       * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource
2149       * @param {Object|null} [options]
2150       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
2151       * @param {*}      [options.data]
2152       * @param {string} [options.mode="speed"] "precision" or "speed"
2153       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
2154       * @param {number} [options.step=1]
2155       * @param {number} [options.left=0]
2156       * @param {number} [options.top=0]
2157       * @param {number} [options.width=width of resource]
2158       * @param {number} [options.height=height of resource]
2159       *
2160       * @returns {Object}
2161       */
2162  
2163    }, {
2164      key: "getColor",
2165      value: function getColor(resource, options) {
2166        options = options || {};
2167  
2168        var defaultColor = this._getDefaultColor(options),
2169            originalSize = this._getOriginalSize(resource),
2170            size = this._prepareSizeAndPosition(originalSize, options);
2171  
2172        var error = null,
2173            value = defaultColor;
2174  
2175        if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) {
2176          return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.'));
2177        }
2178  
2179        if (!this._ctx) {
2180          this._canvas = this._makeCanvas();
2181          this._ctx = this._canvas.getContext && this._canvas.getContext('2d');
2182  
2183          if (!this._ctx) {
2184            return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.'));
2185          }
2186        }
2187  
2188        this._canvas.width = size.destWidth;
2189        this._canvas.height = size.destHeight;
2190  
2191        try {
2192          this._ctx.clearRect(0, 0, size.destWidth, size.destHeight);
2193  
2194          this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight);
2195  
2196          var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data;
2197  
2198          value = this.getColorFromArray4(bitmapData, options);
2199        } catch (e) {
2200          // Security error, CORS
2201          // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image
2202          error = e;
2203        }
2204  
2205        return this._prepareResult(value, error);
2206      }
2207      /**
2208       * Get the average color from a array when 1 pixel is 4 bytes.
2209       *
2210       * @param {Array|Uint8Array} arr
2211       * @param {Object} [options]
2212       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
2213       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
2214       * @param {number} [options.step=1]
2215       *
2216       * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)]
2217       */
2218  
2219    }, {
2220      key: "getColorFromArray4",
2221      value: function getColorFromArray4(arr, options) {
2222        options = options || {};
2223        var bytesPerPixel = 4,
2224            arrLength = arr.length;
2225  
2226        if (arrLength < bytesPerPixel) {
2227          return this._getDefaultColor(options);
2228        }
2229  
2230        var len = arrLength - arrLength % bytesPerPixel,
2231            preparedStep = (options.step || 1) * bytesPerPixel,
2232            algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm';
2233  
2234        if (typeof this[algorithm] !== 'function') {
2235          throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm."));
2236        }
2237  
2238        return this[algorithm](arr, len, preparedStep);
2239      }
2240      /**
2241       * Destroy the instance.
2242       */
2243  
2244    }, {
2245      key: "destroy",
2246      value: function destroy() {
2247        delete this._canvas;
2248        delete this._ctx;
2249      }
2250    }, {
2251      key: "_getDefaultColor",
2252      value: function _getDefaultColor(options) {
2253        return this._getOption(options, 'defaultColor', [255, 255, 255, 255]);
2254      }
2255    }, {
2256      key: "_getOption",
2257      value: function _getOption(options, name, defaultValue) {
2258        return typeof options[name] === 'undefined' ? defaultValue : options[name];
2259      }
2260    }, {
2261      key: "_prepareSizeAndPosition",
2262      value: function _prepareSizeAndPosition(originalSize, options) {
2263        var srcLeft = this._getOption(options, 'left', 0),
2264            srcTop = this._getOption(options, 'top', 0),
2265            srcWidth = this._getOption(options, 'width', originalSize.width),
2266            srcHeight = this._getOption(options, 'height', originalSize.height),
2267            destWidth = srcWidth,
2268            destHeight = srcHeight;
2269  
2270        if (options.mode === 'precision') {
2271          return {
2272            srcLeft: srcLeft,
2273            srcTop: srcTop,
2274            srcWidth: srcWidth,
2275            srcHeight: srcHeight,
2276            destWidth: destWidth,
2277            destHeight: destHeight
2278          };
2279        }
2280  
2281        var maxSize = 100,
2282            minSize = 10;
2283        var factor;
2284  
2285        if (srcWidth > srcHeight) {
2286          factor = srcWidth / srcHeight;
2287          destWidth = maxSize;
2288          destHeight = Math.round(destWidth / factor);
2289        } else {
2290          factor = srcHeight / srcWidth;
2291          destHeight = maxSize;
2292          destWidth = Math.round(destHeight / factor);
2293        }
2294  
2295        if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) {
2296          destWidth = srcWidth;
2297          destHeight = srcHeight;
2298        }
2299  
2300        return {
2301          srcLeft: srcLeft,
2302          srcTop: srcTop,
2303          srcWidth: srcWidth,
2304          srcHeight: srcHeight,
2305          destWidth: destWidth,
2306          destHeight: destHeight
2307        };
2308      }
2309    }, {
2310      key: "_simpleAlgorithm",
2311      value: function _simpleAlgorithm(arr, len, preparedStep) {
2312        var redTotal = 0,
2313            greenTotal = 0,
2314            blueTotal = 0,
2315            alphaTotal = 0,
2316            count = 0;
2317  
2318        for (var i = 0; i < len; i += preparedStep) {
2319          var alpha = arr[i + 3],
2320              red = arr[i] * alpha,
2321              green = arr[i + 1] * alpha,
2322              blue = arr[i + 2] * alpha;
2323          redTotal += red;
2324          greenTotal += green;
2325          blueTotal += blue;
2326          alphaTotal += alpha;
2327          count++;
2328        }
2329  
2330        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
2331      }
2332    }, {
2333      key: "_sqrtAlgorithm",
2334      value: function _sqrtAlgorithm(arr, len, preparedStep) {
2335        var redTotal = 0,
2336            greenTotal = 0,
2337            blueTotal = 0,
2338            alphaTotal = 0,
2339            count = 0;
2340  
2341        for (var i = 0; i < len; i += preparedStep) {
2342          var red = arr[i],
2343              green = arr[i + 1],
2344              blue = arr[i + 2],
2345              alpha = arr[i + 3];
2346          redTotal += red * red * alpha;
2347          greenTotal += green * green * alpha;
2348          blueTotal += blue * blue * alpha;
2349          alphaTotal += alpha;
2350          count++;
2351        }
2352  
2353        return alphaTotal ? [Math.round(Math.sqrt(redTotal / alphaTotal)), Math.round(Math.sqrt(greenTotal / alphaTotal)), Math.round(Math.sqrt(blueTotal / alphaTotal)), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
2354      }
2355    }, {
2356      key: "_dominantAlgorithm",
2357      value: function _dominantAlgorithm(arr, len, preparedStep) {
2358        var colorHash = {},
2359            divider = 24;
2360  
2361        for (var i = 0; i < len; i += preparedStep) {
2362          var red = arr[i],
2363              green = arr[i + 1],
2364              blue = arr[i + 2],
2365              alpha = arr[i + 3],
2366              key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider);
2367  
2368          if (colorHash[key]) {
2369            colorHash[key] = [colorHash[key][0] + red * alpha, colorHash[key][1] + green * alpha, colorHash[key][2] + blue * alpha, colorHash[key][3] + alpha, colorHash[key][4] + 1];
2370          } else {
2371            colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1];
2372          }
2373        }
2374  
2375        var buffer = Object.keys(colorHash).map(function (key) {
2376          return colorHash[key];
2377        }).sort(function (a, b) {
2378          var countA = a[4],
2379              countB = b[4];
2380          return countA > countB ? -1 : countA === countB ? 0 : 1;
2381        });
2382  
2383        var _buffer$ = _slicedToArray(buffer[0], 5),
2384            redTotal = _buffer$[0],
2385            greenTotal = _buffer$[1],
2386            blueTotal = _buffer$[2],
2387            alphaTotal = _buffer$[3],
2388            count = _buffer$[4];
2389  
2390        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
2391      }
2392    }, {
2393      key: "_bindImageEvents",
2394      value: function _bindImageEvents(resource, callback, options) {
2395        var _this = this;
2396  
2397        options = options || {};
2398  
2399        var data = options && options.data,
2400            defaultColor = this._getDefaultColor(options),
2401            onload = function onload() {
2402          unbindEvents();
2403          callback.call(resource, _this.getColor(resource, options), data);
2404        },
2405            onerror = function onerror() {
2406          unbindEvents();
2407          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data);
2408        },
2409            onabort = function onabort() {
2410          unbindEvents();
2411          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data);
2412        },
2413            unbindEvents = function unbindEvents() {
2414          resource.removeEventListener('load', onload);
2415          resource.removeEventListener('error', onerror);
2416          resource.removeEventListener('abort', onabort);
2417        };
2418  
2419        resource.addEventListener('load', onload);
2420        resource.addEventListener('error', onerror);
2421        resource.addEventListener('abort', onabort);
2422      }
2423    }, {
2424      key: "_prepareResult",
2425      value: function _prepareResult(value, error) {
2426        var rgb = value.slice(0, 3),
2427            rgba = [].concat(rgb, value[3] / 255),
2428            isDark = this._isDark(value);
2429  
2430        return {
2431          error: error,
2432          value: value,
2433          rgb: 'rgb(' + rgb.join(',') + ')',
2434          rgba: 'rgba(' + rgba.join(',') + ')',
2435          hex: this._arrayToHex(rgb),
2436          hexa: this._arrayToHex(value),
2437          isDark: isDark,
2438          isLight: !isDark
2439        };
2440      }
2441    }, {
2442      key: "_getOriginalSize",
2443      value: function _getOriginalSize(resource) {
2444        if (resource instanceof HTMLImageElement) {
2445          return {
2446            width: resource.naturalWidth,
2447            height: resource.naturalHeight
2448          };
2449        }
2450  
2451        if (resource instanceof HTMLVideoElement) {
2452          return {
2453            width: resource.videoWidth,
2454            height: resource.videoHeight
2455          };
2456        }
2457  
2458        return {
2459          width: resource.width,
2460          height: resource.height
2461        };
2462      }
2463    }, {
2464      key: "_toHex",
2465      value: function _toHex(num) {
2466        var str = num.toString(16);
2467        return str.length === 1 ? '0' + str : str;
2468      }
2469    }, {
2470      key: "_arrayToHex",
2471      value: function _arrayToHex(arr) {
2472        return '#' + arr.map(this._toHex).join('');
2473      }
2474    }, {
2475      key: "_isDark",
2476      value: function _isDark(color) {
2477        // http://www.w3.org/TR/AERT#color-contrast
2478        var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000;
2479        return result < 128;
2480      }
2481    }, {
2482      key: "_makeCanvas",
2483      value: function _makeCanvas() {
2484        return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas');
2485      }
2486    }]);
2487  
2488    return FastAverageColor;
2489  }();
2490  
2491  return FastAverageColor;
2492  
2493  })));
2494  
2495  
2496  /***/ }),
2497  
2498  /***/ 27:
2499  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2500  
2501  "use strict";
2502  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
2503  /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25);
2504  
2505  function _unsupportedIterableToArray(o, minLen) {
2506    if (!o) return;
2507    if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
2508    var n = Object.prototype.toString.call(o).slice(8, -1);
2509    if (n === "Object" && o.constructor) n = o.constructor.name;
2510    if (n === "Map" || n === "Set") return Array.from(n);
2511    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
2512  }
2513  
2514  /***/ }),
2515  
2516  /***/ 281:
2517  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2518  
2519  "use strict";
2520  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2521  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2522  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
2523  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2524  
2525  
2526  /**
2527   * WordPress dependencies
2528   */
2529  
2530  var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2531    xmlns: "http://www.w3.org/2000/svg",
2532    viewBox: "-2 -2 24 24"
2533  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2534    d: "M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z"
2535  }));
2536  /* harmony default export */ __webpack_exports__["a"] = (alignLeft);
2537  
2538  
2539  /***/ }),
2540  
2541  /***/ 282:
2542  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2543  
2544  "use strict";
2545  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2546  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2547  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
2548  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2549  
2550  
2551  /**
2552   * WordPress dependencies
2553   */
2554  
2555  var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2556    xmlns: "http://www.w3.org/2000/svg",
2557    viewBox: "-2 -2 24 24"
2558  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2559    d: "M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z"
2560  }));
2561  /* harmony default export */ __webpack_exports__["a"] = (alignCenter);
2562  
2563  
2564  /***/ }),
2565  
2566  /***/ 283:
2567  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2568  
2569  "use strict";
2570  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2571  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2572  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
2573  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2574  
2575  
2576  /**
2577   * WordPress dependencies
2578   */
2579  
2580  var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2581    xmlns: "http://www.w3.org/2000/svg",
2582    viewBox: "-2 -2 24 24"
2583  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2584    d: "M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z"
2585  }));
2586  /* harmony default export */ __webpack_exports__["a"] = (alignRight);
2587  
2588  
2589  /***/ }),
2590  
2591  /***/ 286:
2592  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2593  
2594  "use strict";
2595  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2596  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2597  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
2598  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2599  
2600  
2601  /**
2602   * WordPress dependencies
2603   */
2604  
2605  var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2606    xmlns: "http://www.w3.org/2000/svg",
2607    viewBox: "-2 -2 24 24"
2608  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2609    d: "M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"
2610  }));
2611  /* harmony default export */ __webpack_exports__["a"] = (pencil);
2612  
2613  
2614  /***/ }),
2615  
2616  /***/ 290:
2617  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2618  
2619  "use strict";
2620  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2621  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2622  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
2623  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2624  
2625  
2626  /**
2627   * WordPress dependencies
2628   */
2629  
2630  var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2631    viewBox: "0 0 24 24",
2632    xmlns: "http://www.w3.org/2000/svg"
2633  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2634    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"
2635  }));
2636  /* harmony default export */ __webpack_exports__["a"] = (code);
2637  
2638  
2639  /***/ }),
2640  
2641  /***/ 3:
2642  /***/ (function(module, exports) {
2643  
2644  (function() { module.exports = this["wp"]["components"]; }());
2645  
2646  /***/ }),
2647  
2648  /***/ 30:
2649  /***/ (function(module, exports) {
2650  
2651  (function() { module.exports = this["wp"]["url"]; }());
2652  
2653  /***/ }),
2654  
2655  /***/ 33:
2656  /***/ (function(module, exports) {
2657  
2658  (function() { module.exports = this["moment"]; }());
2659  
2660  /***/ }),
2661  
2662  /***/ 34:
2663  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2664  
2665  "use strict";
2666  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
2667  function _typeof(obj) {
2668    "@babel/helpers - typeof";
2669  
2670    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2671      _typeof = function _typeof(obj) {
2672        return typeof obj;
2673      };
2674    } else {
2675      _typeof = function _typeof(obj) {
2676        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2677      };
2678    }
2679  
2680    return _typeof(obj);
2681  }
2682  
2683  /***/ }),
2684  
2685  /***/ 35:
2686  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2687  
2688  "use strict";
2689  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
2690  function _iterableToArray(iter) {
2691    if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
2692  }
2693  
2694  /***/ }),
2695  
2696  /***/ 37:
2697  /***/ (function(module, exports) {
2698  
2699  (function() { module.exports = this["wp"]["deprecated"]; }());
2700  
2701  /***/ }),
2702  
2703  /***/ 38:
2704  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2705  
2706  "use strict";
2707  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
2708  function _arrayWithHoles(arr) {
2709    if (Array.isArray(arr)) return arr;
2710  }
2711  
2712  /***/ }),
2713  
2714  /***/ 39:
2715  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2716  
2717  "use strict";
2718  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
2719  function _nonIterableRest() {
2720    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2721  }
2722  
2723  /***/ }),
2724  
2725  /***/ 4:
2726  /***/ (function(module, exports) {
2727  
2728  (function() { module.exports = this["wp"]["data"]; }());
2729  
2730  /***/ }),
2731  
2732  /***/ 41:
2733  /***/ (function(module, exports) {
2734  
2735  (function() { module.exports = this["wp"]["blob"]; }());
2736  
2737  /***/ }),
2738  
2739  /***/ 42:
2740  /***/ (function(module, exports) {
2741  
2742  (function() { module.exports = this["wp"]["apiFetch"]; }());
2743  
2744  /***/ }),
2745  
2746  /***/ 420:
2747  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2748  
2749  "use strict";
2750  __webpack_require__.r(__webpack_exports__);
2751  var build_module_paragraph_namespaceObject = {};
2752  __webpack_require__.r(build_module_paragraph_namespaceObject);
2753  __webpack_require__.d(build_module_paragraph_namespaceObject, "metadata", function() { return paragraph_metadata; });
2754  __webpack_require__.d(build_module_paragraph_namespaceObject, "name", function() { return paragraph_name; });
2755  __webpack_require__.d(build_module_paragraph_namespaceObject, "settings", function() { return paragraph_settings; });
2756  var build_module_image_namespaceObject = {};
2757  __webpack_require__.r(build_module_image_namespaceObject);
2758  __webpack_require__.d(build_module_image_namespaceObject, "metadata", function() { return image_metadata; });
2759  __webpack_require__.d(build_module_image_namespaceObject, "name", function() { return image_name; });
2760  __webpack_require__.d(build_module_image_namespaceObject, "settings", function() { return image_settings; });
2761  var build_module_heading_namespaceObject = {};
2762  __webpack_require__.r(build_module_heading_namespaceObject);
2763  __webpack_require__.d(build_module_heading_namespaceObject, "metadata", function() { return heading_metadata; });
2764  __webpack_require__.d(build_module_heading_namespaceObject, "name", function() { return heading_name; });
2765  __webpack_require__.d(build_module_heading_namespaceObject, "settings", function() { return heading_settings; });
2766  var build_module_quote_namespaceObject = {};
2767  __webpack_require__.r(build_module_quote_namespaceObject);
2768  __webpack_require__.d(build_module_quote_namespaceObject, "metadata", function() { return quote_metadata; });
2769  __webpack_require__.d(build_module_quote_namespaceObject, "name", function() { return quote_name; });
2770  __webpack_require__.d(build_module_quote_namespaceObject, "settings", function() { return quote_settings; });
2771  var build_module_gallery_namespaceObject = {};
2772  __webpack_require__.r(build_module_gallery_namespaceObject);
2773  __webpack_require__.d(build_module_gallery_namespaceObject, "metadata", function() { return gallery_metadata; });
2774  __webpack_require__.d(build_module_gallery_namespaceObject, "name", function() { return gallery_name; });
2775  __webpack_require__.d(build_module_gallery_namespaceObject, "settings", function() { return gallery_settings; });
2776  var archives_namespaceObject = {};
2777  __webpack_require__.r(archives_namespaceObject);
2778  __webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; });
2779  __webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; });
2780  var build_module_audio_namespaceObject = {};
2781  __webpack_require__.r(build_module_audio_namespaceObject);
2782  __webpack_require__.d(build_module_audio_namespaceObject, "metadata", function() { return audio_metadata; });
2783  __webpack_require__.d(build_module_audio_namespaceObject, "name", function() { return audio_name; });
2784  __webpack_require__.d(build_module_audio_namespaceObject, "settings", function() { return audio_settings; });
2785  var build_module_button_namespaceObject = {};
2786  __webpack_require__.r(build_module_button_namespaceObject);
2787  __webpack_require__.d(build_module_button_namespaceObject, "metadata", function() { return button_metadata; });
2788  __webpack_require__.d(build_module_button_namespaceObject, "name", function() { return button_name; });
2789  __webpack_require__.d(build_module_button_namespaceObject, "settings", function() { return button_settings; });
2790  var buttons_namespaceObject = {};
2791  __webpack_require__.r(buttons_namespaceObject);
2792  __webpack_require__.d(buttons_namespaceObject, "metadata", function() { return buttons_metadata; });
2793  __webpack_require__.d(buttons_namespaceObject, "name", function() { return buttons_name; });
2794  __webpack_require__.d(buttons_namespaceObject, "settings", function() { return buttons_settings; });
2795  var build_module_calendar_namespaceObject = {};
2796  __webpack_require__.r(build_module_calendar_namespaceObject);
2797  __webpack_require__.d(build_module_calendar_namespaceObject, "name", function() { return calendar_name; });
2798  __webpack_require__.d(build_module_calendar_namespaceObject, "settings", function() { return calendar_settings; });
2799  var categories_namespaceObject = {};
2800  __webpack_require__.r(categories_namespaceObject);
2801  __webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; });
2802  __webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; });
2803  var code_namespaceObject = {};
2804  __webpack_require__.r(code_namespaceObject);
2805  __webpack_require__.d(code_namespaceObject, "metadata", function() { return code_metadata; });
2806  __webpack_require__.d(code_namespaceObject, "name", function() { return code_name; });
2807  __webpack_require__.d(code_namespaceObject, "settings", function() { return code_settings; });
2808  var build_module_columns_namespaceObject = {};
2809  __webpack_require__.r(build_module_columns_namespaceObject);
2810  __webpack_require__.d(build_module_columns_namespaceObject, "metadata", function() { return columns_metadata; });
2811  __webpack_require__.d(build_module_columns_namespaceObject, "name", function() { return columns_name; });
2812  __webpack_require__.d(build_module_columns_namespaceObject, "settings", function() { return columns_settings; });
2813  var build_module_column_namespaceObject = {};
2814  __webpack_require__.r(build_module_column_namespaceObject);
2815  __webpack_require__.d(build_module_column_namespaceObject, "metadata", function() { return column_metadata; });
2816  __webpack_require__.d(build_module_column_namespaceObject, "name", function() { return column_name; });
2817  __webpack_require__.d(build_module_column_namespaceObject, "settings", function() { return column_settings; });
2818  var build_module_cover_namespaceObject = {};
2819  __webpack_require__.r(build_module_cover_namespaceObject);
2820  __webpack_require__.d(build_module_cover_namespaceObject, "metadata", function() { return cover_metadata; });
2821  __webpack_require__.d(build_module_cover_namespaceObject, "name", function() { return cover_name; });
2822  __webpack_require__.d(build_module_cover_namespaceObject, "settings", function() { return cover_settings; });
2823  var embed_namespaceObject = {};
2824  __webpack_require__.r(embed_namespaceObject);
2825  __webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; });
2826  __webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; });
2827  __webpack_require__.d(embed_namespaceObject, "common", function() { return embed_common; });
2828  __webpack_require__.d(embed_namespaceObject, "others", function() { return embed_others; });
2829  var build_module_file_namespaceObject = {};
2830  __webpack_require__.r(build_module_file_namespaceObject);
2831  __webpack_require__.d(build_module_file_namespaceObject, "metadata", function() { return file_metadata; });
2832  __webpack_require__.d(build_module_file_namespaceObject, "name", function() { return file_name; });
2833  __webpack_require__.d(build_module_file_namespaceObject, "settings", function() { return file_settings; });
2834  var build_module_html_namespaceObject = {};
2835  __webpack_require__.r(build_module_html_namespaceObject);
2836  __webpack_require__.d(build_module_html_namespaceObject, "metadata", function() { return html_metadata; });
2837  __webpack_require__.d(build_module_html_namespaceObject, "name", function() { return html_name; });
2838  __webpack_require__.d(build_module_html_namespaceObject, "settings", function() { return html_settings; });
2839  var media_text_namespaceObject = {};
2840  __webpack_require__.r(media_text_namespaceObject);
2841  __webpack_require__.d(media_text_namespaceObject, "metadata", function() { return media_text_metadata; });
2842  __webpack_require__.d(media_text_namespaceObject, "name", function() { return media_text_name; });
2843  __webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; });
2844  var latest_comments_namespaceObject = {};
2845  __webpack_require__.r(latest_comments_namespaceObject);
2846  __webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; });
2847  __webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; });
2848  var latest_posts_namespaceObject = {};
2849  __webpack_require__.r(latest_posts_namespaceObject);
2850  __webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; });
2851  __webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; });
2852  var build_module_list_namespaceObject = {};
2853  __webpack_require__.r(build_module_list_namespaceObject);
2854  __webpack_require__.d(build_module_list_namespaceObject, "metadata", function() { return list_metadata; });
2855  __webpack_require__.d(build_module_list_namespaceObject, "name", function() { return list_name; });
2856  __webpack_require__.d(build_module_list_namespaceObject, "settings", function() { return list_settings; });
2857  var missing_namespaceObject = {};
2858  __webpack_require__.r(missing_namespaceObject);
2859  __webpack_require__.d(missing_namespaceObject, "metadata", function() { return missing_metadata; });
2860  __webpack_require__.d(missing_namespaceObject, "name", function() { return missing_name; });
2861  __webpack_require__.d(missing_namespaceObject, "settings", function() { return missing_settings; });
2862  var build_module_more_namespaceObject = {};
2863  __webpack_require__.r(build_module_more_namespaceObject);
2864  __webpack_require__.d(build_module_more_namespaceObject, "metadata", function() { return more_metadata; });
2865  __webpack_require__.d(build_module_more_namespaceObject, "name", function() { return more_name; });
2866  __webpack_require__.d(build_module_more_namespaceObject, "settings", function() { return more_settings; });
2867  var nextpage_namespaceObject = {};
2868  __webpack_require__.r(nextpage_namespaceObject);
2869  __webpack_require__.d(nextpage_namespaceObject, "metadata", function() { return nextpage_metadata; });
2870  __webpack_require__.d(nextpage_namespaceObject, "name", function() { return nextpage_name; });
2871  __webpack_require__.d(nextpage_namespaceObject, "settings", function() { return nextpage_settings; });
2872  var build_module_preformatted_namespaceObject = {};
2873  __webpack_require__.r(build_module_preformatted_namespaceObject);
2874  __webpack_require__.d(build_module_preformatted_namespaceObject, "metadata", function() { return preformatted_metadata; });
2875  __webpack_require__.d(build_module_preformatted_namespaceObject, "name", function() { return preformatted_name; });
2876  __webpack_require__.d(build_module_preformatted_namespaceObject, "settings", function() { return preformatted_settings; });
2877  var build_module_pullquote_namespaceObject = {};
2878  __webpack_require__.r(build_module_pullquote_namespaceObject);
2879  __webpack_require__.d(build_module_pullquote_namespaceObject, "metadata", function() { return pullquote_metadata; });
2880  __webpack_require__.d(build_module_pullquote_namespaceObject, "name", function() { return pullquote_name; });
2881  __webpack_require__.d(build_module_pullquote_namespaceObject, "settings", function() { return pullquote_settings; });
2882  var block_namespaceObject = {};
2883  __webpack_require__.r(block_namespaceObject);
2884  __webpack_require__.d(block_namespaceObject, "name", function() { return block_name; });
2885  __webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; });
2886  var build_module_rss_namespaceObject = {};
2887  __webpack_require__.r(build_module_rss_namespaceObject);
2888  __webpack_require__.d(build_module_rss_namespaceObject, "name", function() { return rss_name; });
2889  __webpack_require__.d(build_module_rss_namespaceObject, "settings", function() { return rss_settings; });
2890  var build_module_search_namespaceObject = {};
2891  __webpack_require__.r(build_module_search_namespaceObject);
2892  __webpack_require__.d(build_module_search_namespaceObject, "name", function() { return search_name; });
2893  __webpack_require__.d(build_module_search_namespaceObject, "settings", function() { return search_settings; });
2894  var build_module_group_namespaceObject = {};
2895  __webpack_require__.r(build_module_group_namespaceObject);
2896  __webpack_require__.d(build_module_group_namespaceObject, "metadata", function() { return group_metadata; });
2897  __webpack_require__.d(build_module_group_namespaceObject, "name", function() { return group_name; });
2898  __webpack_require__.d(build_module_group_namespaceObject, "settings", function() { return group_settings; });
2899  var build_module_separator_namespaceObject = {};
2900  __webpack_require__.r(build_module_separator_namespaceObject);
2901  __webpack_require__.d(build_module_separator_namespaceObject, "metadata", function() { return separator_metadata; });
2902  __webpack_require__.d(build_module_separator_namespaceObject, "name", function() { return separator_name; });
2903  __webpack_require__.d(build_module_separator_namespaceObject, "settings", function() { return build_module_separator_settings; });
2904  var build_module_shortcode_namespaceObject = {};
2905  __webpack_require__.r(build_module_shortcode_namespaceObject);
2906  __webpack_require__.d(build_module_shortcode_namespaceObject, "metadata", function() { return shortcode_metadata; });
2907  __webpack_require__.d(build_module_shortcode_namespaceObject, "name", function() { return shortcode_name; });
2908  __webpack_require__.d(build_module_shortcode_namespaceObject, "settings", function() { return shortcode_settings; });
2909  var spacer_namespaceObject = {};
2910  __webpack_require__.r(spacer_namespaceObject);
2911  __webpack_require__.d(spacer_namespaceObject, "metadata", function() { return spacer_metadata; });
2912  __webpack_require__.d(spacer_namespaceObject, "name", function() { return spacer_name; });
2913  __webpack_require__.d(spacer_namespaceObject, "settings", function() { return spacer_settings; });
2914  var subhead_namespaceObject = {};
2915  __webpack_require__.r(subhead_namespaceObject);
2916  __webpack_require__.d(subhead_namespaceObject, "metadata", function() { return subhead_metadata; });
2917  __webpack_require__.d(subhead_namespaceObject, "name", function() { return subhead_name; });
2918  __webpack_require__.d(subhead_namespaceObject, "settings", function() { return subhead_settings; });
2919  var build_module_table_namespaceObject = {};
2920  __webpack_require__.r(build_module_table_namespaceObject);
2921  __webpack_require__.d(build_module_table_namespaceObject, "metadata", function() { return table_metadata; });
2922  __webpack_require__.d(build_module_table_namespaceObject, "name", function() { return table_name; });
2923  __webpack_require__.d(build_module_table_namespaceObject, "settings", function() { return table_settings; });
2924  var text_columns_namespaceObject = {};
2925  __webpack_require__.r(text_columns_namespaceObject);
2926  __webpack_require__.d(text_columns_namespaceObject, "metadata", function() { return text_columns_metadata; });
2927  __webpack_require__.d(text_columns_namespaceObject, "name", function() { return text_columns_name; });
2928  __webpack_require__.d(text_columns_namespaceObject, "settings", function() { return text_columns_settings; });
2929  var build_module_verse_namespaceObject = {};
2930  __webpack_require__.r(build_module_verse_namespaceObject);
2931  __webpack_require__.d(build_module_verse_namespaceObject, "metadata", function() { return verse_metadata; });
2932  __webpack_require__.d(build_module_verse_namespaceObject, "name", function() { return verse_name; });
2933  __webpack_require__.d(build_module_verse_namespaceObject, "settings", function() { return verse_settings; });
2934  var build_module_video_namespaceObject = {};
2935  __webpack_require__.r(build_module_video_namespaceObject);
2936  __webpack_require__.d(build_module_video_namespaceObject, "metadata", function() { return video_metadata; });
2937  __webpack_require__.d(build_module_video_namespaceObject, "name", function() { return video_name; });
2938  __webpack_require__.d(build_module_video_namespaceObject, "settings", function() { return video_settings; });
2939  var tag_cloud_namespaceObject = {};
2940  __webpack_require__.r(tag_cloud_namespaceObject);
2941  __webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; });
2942  __webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; });
2943  var build_module_classic_namespaceObject = {};
2944  __webpack_require__.r(build_module_classic_namespaceObject);
2945  __webpack_require__.d(build_module_classic_namespaceObject, "metadata", function() { return classic_metadata; });
2946  __webpack_require__.d(build_module_classic_namespaceObject, "name", function() { return classic_name; });
2947  __webpack_require__.d(build_module_classic_namespaceObject, "settings", function() { return classic_settings; });
2948  var social_links_namespaceObject = {};
2949  __webpack_require__.r(social_links_namespaceObject);
2950  __webpack_require__.d(social_links_namespaceObject, "metadata", function() { return social_links_metadata; });
2951  __webpack_require__.d(social_links_namespaceObject, "name", function() { return social_links_name; });
2952  __webpack_require__.d(social_links_namespaceObject, "settings", function() { return social_links_settings; });
2953  var social_link_namespaceObject = {};
2954  __webpack_require__.r(social_link_namespaceObject);
2955  __webpack_require__.d(social_link_namespaceObject, "metadata", function() { return social_link_metadata; });
2956  __webpack_require__.d(social_link_namespaceObject, "name", function() { return social_link_name; });
2957  __webpack_require__.d(social_link_namespaceObject, "settings", function() { return social_link_settings; });
2958  
2959  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
2960  var toConsumableArray = __webpack_require__(18);
2961  
2962  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
2963  var defineProperty = __webpack_require__(5);
2964  
2965  // EXTERNAL MODULE: external {"this":["wp","coreData"]}
2966  var external_this_wp_coreData_ = __webpack_require__(75);
2967  
2968  // EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
2969  var external_this_wp_blockEditor_ = __webpack_require__(6);
2970  
2971  // EXTERNAL MODULE: external {"this":["wp","blocks"]}
2972  var external_this_wp_blocks_ = __webpack_require__(10);
2973  
2974  // EXTERNAL MODULE: external {"this":"lodash"}
2975  var external_this_lodash_ = __webpack_require__(2);
2976  
2977  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
2978  var external_this_wp_i18n_ = __webpack_require__(1);
2979  
2980  // EXTERNAL MODULE: external {"this":["wp","element"]}
2981  var external_this_wp_element_ = __webpack_require__(0);
2982  
2983  // EXTERNAL MODULE: external {"this":["wp","primitives"]}
2984  var external_this_wp_primitives_ = __webpack_require__(9);
2985  
2986  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js
2987  
2988  
2989  /**
2990   * WordPress dependencies
2991   */
2992  
2993  var paragraph = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
2994    xmlns: "http://www.w3.org/2000/svg",
2995    viewBox: "0 0 24 24"
2996  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
2997    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"
2998  }));
2999  /* harmony default export */ var library_paragraph = (paragraph);
3000  
3001  // EXTERNAL MODULE: ./node_modules/classnames/index.js
3002  var classnames = __webpack_require__(11);
3003  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
3004  
3005  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js
3006  
3007  
3008  
3009  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3010  
3011  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3012  
3013  /**
3014   * External dependencies
3015   */
3016  
3017  
3018  /**
3019   * WordPress dependencies
3020   */
3021  
3022  
3023  
3024  var deprecated_supports = {
3025    className: false
3026  };
3027  var deprecated_blockAttributes = {
3028    align: {
3029      type: 'string'
3030    },
3031    content: {
3032      type: 'string',
3033      source: 'html',
3034      selector: 'p',
3035      default: ''
3036    },
3037    dropCap: {
3038      type: 'boolean',
3039      default: false
3040    },
3041    placeholder: {
3042      type: 'string'
3043    },
3044    textColor: {
3045      type: 'string'
3046    },
3047    customTextColor: {
3048      type: 'string'
3049    },
3050    backgroundColor: {
3051      type: 'string'
3052    },
3053    customBackgroundColor: {
3054      type: 'string'
3055    },
3056    fontSize: {
3057      type: 'string'
3058    },
3059    customFontSize: {
3060      type: 'number'
3061    },
3062    direction: {
3063      type: 'string',
3064      enum: ['ltr', 'rtl']
3065    }
3066  };
3067  var deprecated = [{
3068    supports: deprecated_supports,
3069    attributes: deprecated_blockAttributes,
3070    save: function save(_ref) {
3071      var _classnames;
3072  
3073      var attributes = _ref.attributes;
3074      var align = attributes.align,
3075          content = attributes.content,
3076          dropCap = attributes.dropCap,
3077          backgroundColor = attributes.backgroundColor,
3078          textColor = attributes.textColor,
3079          customBackgroundColor = attributes.customBackgroundColor,
3080          customTextColor = attributes.customTextColor,
3081          fontSize = attributes.fontSize,
3082          customFontSize = attributes.customFontSize,
3083          direction = attributes.direction;
3084      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
3085      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
3086      var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize);
3087      var className = classnames_default()((_classnames = {
3088        'has-text-color': textColor || customTextColor,
3089        'has-background': backgroundColor || customBackgroundColor,
3090        'has-drop-cap': dropCap
3091      }, Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames));
3092      var styles = {
3093        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
3094        color: textClass ? undefined : customTextColor,
3095        fontSize: fontSizeClass ? undefined : customFontSize,
3096        textAlign: align
3097      };
3098      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
3099        tagName: "p",
3100        style: styles,
3101        className: className ? className : undefined,
3102        value: content,
3103        dir: direction
3104      });
3105    }
3106  }, {
3107    supports: deprecated_supports,
3108    attributes: _objectSpread({}, deprecated_blockAttributes, {
3109      width: {
3110        type: 'string'
3111      }
3112    }),
3113    save: function save(_ref2) {
3114      var _classnames2;
3115  
3116      var attributes = _ref2.attributes;
3117      var width = attributes.width,
3118          align = attributes.align,
3119          content = attributes.content,
3120          dropCap = attributes.dropCap,
3121          backgroundColor = attributes.backgroundColor,
3122          textColor = attributes.textColor,
3123          customBackgroundColor = attributes.customBackgroundColor,
3124          customTextColor = attributes.customTextColor,
3125          fontSize = attributes.fontSize,
3126          customFontSize = attributes.customFontSize;
3127      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
3128      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
3129      var fontSizeClass = fontSize && "is-".concat(fontSize, "-text");
3130      var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2));
3131      var styles = {
3132        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
3133        color: textClass ? undefined : customTextColor,
3134        fontSize: fontSizeClass ? undefined : customFontSize,
3135        textAlign: align
3136      };
3137      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
3138        tagName: "p",
3139        style: styles,
3140        className: className ? className : undefined,
3141        value: content
3142      });
3143    }
3144  }, {
3145    supports: deprecated_supports,
3146    attributes: Object(external_this_lodash_["omit"])(_objectSpread({}, deprecated_blockAttributes, {
3147      fontSize: {
3148        type: 'number'
3149      }
3150    }), 'customFontSize', 'customTextColor', 'customBackgroundColor'),
3151    save: function save(_ref3) {
3152      var _classnames3;
3153  
3154      var attributes = _ref3.attributes;
3155      var width = attributes.width,
3156          align = attributes.align,
3157          content = attributes.content,
3158          dropCap = attributes.dropCap,
3159          backgroundColor = attributes.backgroundColor,
3160          textColor = attributes.textColor,
3161          fontSize = attributes.fontSize;
3162      var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), _classnames3));
3163      var styles = {
3164        backgroundColor: backgroundColor,
3165        color: textColor,
3166        fontSize: fontSize,
3167        textAlign: align
3168      };
3169      return Object(external_this_wp_element_["createElement"])("p", {
3170        style: styles,
3171        className: className ? className : undefined
3172      }, content);
3173    },
3174    migrate: function migrate(attributes) {
3175      return Object(external_this_lodash_["omit"])(_objectSpread({}, attributes, {
3176        customFontSize: Object(external_this_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined,
3177        customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
3178        customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined
3179      }), ['fontSize', 'textColor', 'backgroundColor']);
3180    }
3181  }, {
3182    supports: deprecated_supports,
3183    attributes: _objectSpread({}, deprecated_blockAttributes, {
3184      content: {
3185        type: 'string',
3186        source: 'html',
3187        default: ''
3188      }
3189    }),
3190    save: function save(_ref4) {
3191      var attributes = _ref4.attributes;
3192      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content);
3193    },
3194    migrate: function migrate(attributes) {
3195      return attributes;
3196    }
3197  }];
3198  /* harmony default export */ var paragraph_deprecated = (deprecated);
3199  
3200  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
3201  var slicedToArray = __webpack_require__(20);
3202  
3203  // EXTERNAL MODULE: external {"this":["wp","components"]}
3204  var external_this_wp_components_ = __webpack_require__(3);
3205  
3206  // EXTERNAL MODULE: external {"this":["wp","compose"]}
3207  var external_this_wp_compose_ = __webpack_require__(8);
3208  
3209  // EXTERNAL MODULE: external {"this":["wp","data"]}
3210  var external_this_wp_data_ = __webpack_require__(4);
3211  
3212  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js
3213  
3214  
3215  
3216  
3217  
3218  function edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3219  
3220  function edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3221  
3222  /**
3223   * External dependencies
3224   */
3225  
3226  /**
3227   * WordPress dependencies
3228   */
3229  
3230  
3231  
3232  
3233  
3234  
3235  
3236  
3237  /**
3238   * Browser dependencies
3239   */
3240  
3241  var _window = window,
3242      getComputedStyle = _window.getComputedStyle;
3243  var querySelector = window.document.querySelector.bind(document);
3244  var edit_name = 'core/paragraph';
3245  var PARAGRAPH_DROP_CAP_SELECTOR = 'p.has-drop-cap';
3246  
3247  function ParagraphRTLToolbar(_ref) {
3248    var direction = _ref.direction,
3249        setDirection = _ref.setDirection;
3250    var isRTL = Object(external_this_wp_data_["useSelect"])(function (select) {
3251      return !!select('core/block-editor').getSettings().isRTL;
3252    }, []);
3253    return isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], {
3254      controls: [{
3255        icon: 'editor-ltr',
3256        title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'),
3257        isActive: direction === 'ltr',
3258        onClick: function onClick() {
3259          setDirection(direction === 'ltr' ? undefined : 'ltr');
3260        }
3261      }]
3262    });
3263  }
3264  
3265  function useDropCapMinimumHeight(isDropCap, deps) {
3266    var _useState = Object(external_this_wp_element_["useState"])(),
3267        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
3268        minimumHeight = _useState2[0],
3269        setMinimumHeight = _useState2[1];
3270  
3271    Object(external_this_wp_element_["useEffect"])(function () {
3272      var element = querySelector(PARAGRAPH_DROP_CAP_SELECTOR);
3273  
3274      if (isDropCap && element) {
3275        setMinimumHeight(getComputedStyle(element, 'first-letter').lineHeight);
3276      } else if (minimumHeight) {
3277        setMinimumHeight(undefined);
3278      }
3279    }, [isDropCap, minimumHeight, setMinimumHeight].concat(Object(toConsumableArray["a" /* default */])(deps)));
3280    return minimumHeight;
3281  }
3282  
3283  function ParagraphBlock(_ref2) {
3284    var _classnames;
3285  
3286    var attributes = _ref2.attributes,
3287        className = _ref2.className,
3288        fontSize = _ref2.fontSize,
3289        mergeBlocks = _ref2.mergeBlocks,
3290        onReplace = _ref2.onReplace,
3291        setAttributes = _ref2.setAttributes,
3292        setFontSize = _ref2.setFontSize;
3293    var align = attributes.align,
3294        content = attributes.content,
3295        dropCap = attributes.dropCap,
3296        placeholder = attributes.placeholder,
3297        direction = attributes.direction;
3298    var ref = Object(external_this_wp_element_["useRef"])();
3299    var dropCapMinimumHeight = useDropCapMinimumHeight(dropCap, [fontSize.size]);
3300  
3301    var _experimentalUseColo = Object(external_this_wp_blockEditor_["__experimentalUseColors"])([{
3302      name: 'textColor',
3303      property: 'color'
3304    }, {
3305      name: 'backgroundColor',
3306      className: 'has-background'
3307    }], {
3308      contrastCheckers: [{
3309        backgroundColor: true,
3310        textColor: true,
3311        fontSize: fontSize.size
3312      }],
3313      colorDetector: {
3314        targetRef: ref
3315      }
3316    }, [fontSize.size]),
3317        TextColor = _experimentalUseColo.TextColor,
3318        BackgroundColor = _experimentalUseColo.BackgroundColor,
3319        InspectorControlsColorPanel = _experimentalUseColo.InspectorControlsColorPanel;
3320  
3321    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
3322      value: align,
3323      onChange: function onChange(newAlign) {
3324        return setAttributes({
3325          align: newAlign
3326        });
3327      }
3328    }), Object(external_this_wp_element_["createElement"])(ParagraphRTLToolbar, {
3329      direction: direction,
3330      setDirection: function setDirection(newDirection) {
3331        return setAttributes({
3332          direction: newDirection
3333        });
3334      }
3335    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
3336      title: Object(external_this_wp_i18n_["__"])('Text settings')
3337    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["FontSizePicker"], {
3338      value: fontSize.size,
3339      onChange: setFontSize
3340    }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
3341      label: Object(external_this_wp_i18n_["__"])('Drop cap'),
3342      checked: !!dropCap,
3343      onChange: function onChange() {
3344        return setAttributes({
3345          dropCap: !dropCap
3346        });
3347      },
3348      help: dropCap ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.')
3349    }))), InspectorControlsColorPanel, Object(external_this_wp_element_["createElement"])(BackgroundColor, null, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
3350      ref: ref,
3351      identifier: "content",
3352      tagName: "p",
3353      className: classnames_default()('wp-block-paragraph', className, (_classnames = {
3354        'has-drop-cap': dropCap
3355      }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)),
3356      style: {
3357        fontSize: fontSize.size ? fontSize.size + 'px' : undefined,
3358        direction: direction,
3359        minHeight: dropCapMinimumHeight
3360      },
3361      value: content,
3362      onChange: function onChange(newContent) {
3363        return setAttributes({
3364          content: newContent
3365        });
3366      },
3367      onSplit: function onSplit(value) {
3368        if (!value) {
3369          return Object(external_this_wp_blocks_["createBlock"])(edit_name);
3370        }
3371  
3372        return Object(external_this_wp_blocks_["createBlock"])(edit_name, edit_objectSpread({}, attributes, {
3373          content: value
3374        }));
3375      },
3376      onMerge: mergeBlocks,
3377      onReplace: onReplace,
3378      onRemove: onReplace ? function () {
3379        return onReplace([]);
3380      } : undefined,
3381      "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'),
3382      placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'),
3383      __unstableEmbedURLOnPaste: true,
3384      __unstableAllowPrefixTransformations: true
3385    }))));
3386  }
3387  
3388  var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withFontSizes"])('fontSize')])(ParagraphBlock);
3389  /* harmony default export */ var paragraph_edit = (ParagraphEdit);
3390  
3391  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js
3392  
3393  
3394  
3395  /**
3396   * External dependencies
3397   */
3398  
3399  /**
3400   * WordPress dependencies
3401   */
3402  
3403  
3404  function save_save(_ref) {
3405    var _classnames;
3406  
3407    var attributes = _ref.attributes;
3408    var align = attributes.align,
3409        content = attributes.content,
3410        dropCap = attributes.dropCap,
3411        backgroundColor = attributes.backgroundColor,
3412        textColor = attributes.textColor,
3413        customBackgroundColor = attributes.customBackgroundColor,
3414        customTextColor = attributes.customTextColor,
3415        fontSize = attributes.fontSize,
3416        customFontSize = attributes.customFontSize,
3417        direction = attributes.direction;
3418    var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
3419    var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
3420    var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize);
3421    var className = classnames_default()((_classnames = {
3422      'has-text-color': textColor || customTextColor,
3423      'has-background': backgroundColor || customBackgroundColor,
3424      'has-drop-cap': dropCap
3425    }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames));
3426    var styles = {
3427      backgroundColor: backgroundClass ? undefined : customBackgroundColor,
3428      color: textClass ? undefined : customTextColor,
3429      fontSize: fontSizeClass ? undefined : customFontSize
3430    };
3431    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
3432      tagName: "p",
3433      style: styles,
3434      className: className ? className : undefined,
3435      value: content,
3436      dir: direction
3437    });
3438  }
3439  
3440  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js
3441  /**
3442   * WordPress dependencies
3443   */
3444  
3445  /**
3446   * Internal dependencies
3447   */
3448  
3449  var _name$category$attrib = {
3450    name: "core/paragraph",
3451    category: "common",
3452    attributes: {
3453      align: {
3454        type: "string"
3455      },
3456      content: {
3457        type: "string",
3458        source: "html",
3459        selector: "p",
3460        "default": ""
3461      },
3462      dropCap: {
3463        type: "boolean",
3464        "default": false
3465      },
3466      placeholder: {
3467        type: "string"
3468      },
3469      textColor: {
3470        type: "string"
3471      },
3472      customTextColor: {
3473        type: "string"
3474      },
3475      backgroundColor: {
3476        type: "string"
3477      },
3478      customBackgroundColor: {
3479        type: "string"
3480      },
3481      fontSize: {
3482        type: "string"
3483      },
3484      customFontSize: {
3485        type: "number"
3486      },
3487      direction: {
3488        type: "string",
3489        "enum": ["ltr", "rtl"]
3490      }
3491    }
3492  },
3493      transforms_name = _name$category$attrib.name;
3494  var transforms_transforms = {
3495    from: [{
3496      type: 'raw',
3497      // Paragraph is a fallback and should be matched last.
3498      priority: 20,
3499      selector: 'p',
3500      schema: function schema(_ref) {
3501        var phrasingContentSchema = _ref.phrasingContentSchema,
3502            isPaste = _ref.isPaste;
3503        return {
3504          p: {
3505            children: phrasingContentSchema,
3506            attributes: isPaste ? [] : ['style']
3507          }
3508        };
3509      },
3510      transform: function transform(node) {
3511        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(transforms_name, node.outerHTML);
3512  
3513        var _ref2 = node.style || {},
3514            textAlign = _ref2.textAlign;
3515  
3516        if (textAlign === 'left' || textAlign === 'center' || textAlign === 'right') {
3517          attributes.align = textAlign;
3518        }
3519  
3520        return Object(external_this_wp_blocks_["createBlock"])(transforms_name, attributes);
3521      }
3522    }]
3523  };
3524  /* harmony default export */ var paragraph_transforms = (transforms_transforms);
3525  
3526  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js
3527  /**
3528   * External dependencies
3529   */
3530  
3531  /**
3532   * WordPress dependencies
3533   */
3534  
3535  
3536  
3537  /**
3538   * Internal dependencies
3539   */
3540  
3541  
3542  
3543  var paragraph_metadata = {
3544    name: "core/paragraph",
3545    category: "common",
3546    attributes: {
3547      align: {
3548        type: "string"
3549      },
3550      content: {
3551        type: "string",
3552        source: "html",
3553        selector: "p",
3554        "default": ""
3555      },
3556      dropCap: {
3557        type: "boolean",
3558        "default": false
3559      },
3560      placeholder: {
3561        type: "string"
3562      },
3563      textColor: {
3564        type: "string"
3565      },
3566      customTextColor: {
3567        type: "string"
3568      },
3569      backgroundColor: {
3570        type: "string"
3571      },
3572      customBackgroundColor: {
3573        type: "string"
3574      },
3575      fontSize: {
3576        type: "string"
3577      },
3578      customFontSize: {
3579        type: "number"
3580      },
3581      direction: {
3582        type: "string",
3583        "enum": ["ltr", "rtl"]
3584      }
3585    }
3586  };
3587  
3588  
3589  var paragraph_name = paragraph_metadata.name;
3590  
3591  var paragraph_settings = {
3592    title: Object(external_this_wp_i18n_["__"])('Paragraph'),
3593    description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'),
3594    icon: library_paragraph,
3595    keywords: [Object(external_this_wp_i18n_["__"])('text')],
3596    example: {
3597      attributes: {
3598        content: Object(external_this_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'),
3599        customFontSize: 28,
3600        dropCap: true
3601      }
3602    },
3603    supports: {
3604      className: false,
3605      __unstablePasteTextInline: true
3606    },
3607    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
3608      var context = _ref.context;
3609  
3610      if (context === 'accessibility') {
3611        var content = attributes.content;
3612        return Object(external_this_lodash_["isEmpty"])(content) ? Object(external_this_wp_i18n_["__"])('Empty') : content;
3613      }
3614    },
3615    transforms: paragraph_transforms,
3616    deprecated: paragraph_deprecated,
3617    merge: function merge(attributes, attributesToMerge) {
3618      return {
3619        content: (attributes.content || '') + (attributesToMerge.content || '')
3620      };
3621    },
3622    getEditWrapperProps: function getEditWrapperProps(attributes) {
3623      var width = attributes.width;
3624  
3625      if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) {
3626        return {
3627          'data-align': width
3628        };
3629      }
3630    },
3631    edit: paragraph_edit,
3632    save: save_save
3633  };
3634  
3635  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/image.js
3636  
3637  
3638  /**
3639   * WordPress dependencies
3640   */
3641  
3642  var image_image = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
3643    viewBox: "0 0 24 24",
3644    xmlns: "http://www.w3.org/2000/svg"
3645  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
3646    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"
3647  }), Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
3648    d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"
3649  }));
3650  /* harmony default export */ var library_image = (image_image);
3651  
3652  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
3653  var esm_extends = __webpack_require__(12);
3654  
3655  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js
3656  
3657  
3658  
3659  
3660  /**
3661   * External dependencies
3662   */
3663  
3664  /**
3665   * WordPress dependencies
3666   */
3667  
3668  
3669  var image_deprecated_blockAttributes = {
3670    align: {
3671      type: 'string'
3672    },
3673    url: {
3674      type: 'string',
3675      source: 'attribute',
3676      selector: 'img',
3677      attribute: 'src'
3678    },
3679    alt: {
3680      type: 'string',
3681      source: 'attribute',
3682      selector: 'img',
3683      attribute: 'alt',
3684      default: ''
3685    },
3686    caption: {
3687      type: 'string',
3688      source: 'html',
3689      selector: 'figcaption'
3690    },
3691    href: {
3692      type: 'string',
3693      source: 'attribute',
3694      selector: 'figure > a',
3695      attribute: 'href'
3696    },
3697    rel: {
3698      type: 'string',
3699      source: 'attribute',
3700      selector: 'figure > a',
3701      attribute: 'rel'
3702    },
3703    linkClass: {
3704      type: 'string',
3705      source: 'attribute',
3706      selector: 'figure > a',
3707      attribute: 'class'
3708    },
3709    id: {
3710      type: 'number'
3711    },
3712    width: {
3713      type: 'number'
3714    },
3715    height: {
3716      type: 'number'
3717    },
3718    linkDestination: {
3719      type: 'string',
3720      default: 'none'
3721    },
3722    linkTarget: {
3723      type: 'string',
3724      source: 'attribute',
3725      selector: 'figure > a',
3726      attribute: 'target'
3727    }
3728  };
3729  var deprecated_deprecated = [{
3730    attributes: image_deprecated_blockAttributes,
3731    save: function save(_ref) {
3732      var _classnames;
3733  
3734      var attributes = _ref.attributes;
3735      var url = attributes.url,
3736          alt = attributes.alt,
3737          caption = attributes.caption,
3738          align = attributes.align,
3739          href = attributes.href,
3740          width = attributes.width,
3741          height = attributes.height,
3742          id = attributes.id;
3743      var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
3744      var image = Object(external_this_wp_element_["createElement"])("img", {
3745        src: url,
3746        alt: alt,
3747        className: id ? "wp-image-".concat(id) : null,
3748        width: width,
3749        height: height
3750      });
3751      return Object(external_this_wp_element_["createElement"])("figure", {
3752        className: classes
3753      }, href ? Object(external_this_wp_element_["createElement"])("a", {
3754        href: href
3755      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
3756        tagName: "figcaption",
3757        value: caption
3758      }));
3759    }
3760  }, {
3761    attributes: image_deprecated_blockAttributes,
3762    save: function save(_ref2) {
3763      var attributes = _ref2.attributes;
3764      var url = attributes.url,
3765          alt = attributes.alt,
3766          caption = attributes.caption,
3767          align = attributes.align,
3768          href = attributes.href,
3769          width = attributes.width,
3770          height = attributes.height,
3771          id = attributes.id;
3772      var image = Object(external_this_wp_element_["createElement"])("img", {
3773        src: url,
3774        alt: alt,
3775        className: id ? "wp-image-".concat(id) : null,
3776        width: width,
3777        height: height
3778      });
3779      return Object(external_this_wp_element_["createElement"])("figure", {
3780        className: align ? "align".concat(align) : null
3781      }, href ? Object(external_this_wp_element_["createElement"])("a", {
3782        href: href
3783      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
3784        tagName: "figcaption",
3785        value: caption
3786      }));
3787    }
3788  }, {
3789    attributes: image_deprecated_blockAttributes,
3790    save: function save(_ref3) {
3791      var attributes = _ref3.attributes;
3792      var url = attributes.url,
3793          alt = attributes.alt,
3794          caption = attributes.caption,
3795          align = attributes.align,
3796          href = attributes.href,
3797          width = attributes.width,
3798          height = attributes.height;
3799      var extraImageProps = width || height ? {
3800        width: width,
3801        height: height
3802      } : {};
3803      var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
3804        src: url,
3805        alt: alt
3806      }, extraImageProps));
3807      var figureStyle = {};
3808  
3809      if (width) {
3810        figureStyle = {
3811          width: width
3812        };
3813      } else if (align === 'left' || align === 'right') {
3814        figureStyle = {
3815          maxWidth: '50%'
3816        };
3817      }
3818  
3819      return Object(external_this_wp_element_["createElement"])("figure", {
3820        className: align ? "align".concat(align) : null,
3821        style: figureStyle
3822      }, href ? Object(external_this_wp_element_["createElement"])("a", {
3823        href: href
3824      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
3825        tagName: "figcaption",
3826        value: caption
3827      }));
3828    }
3829  }];
3830  /* harmony default export */ var image_deprecated = (deprecated_deprecated);
3831  
3832  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
3833  var classCallCheck = __webpack_require__(14);
3834  
3835  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
3836  var createClass = __webpack_require__(13);
3837  
3838  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
3839  var possibleConstructorReturn = __webpack_require__(15);
3840  
3841  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
3842  var getPrototypeOf = __webpack_require__(16);
3843  
3844  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
3845  var assertThisInitialized = __webpack_require__(7);
3846  
3847  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
3848  var inherits = __webpack_require__(17);
3849  
3850  // EXTERNAL MODULE: external {"this":["wp","blob"]}
3851  var external_this_wp_blob_ = __webpack_require__(41);
3852  
3853  // EXTERNAL MODULE: external {"this":["wp","url"]}
3854  var external_this_wp_url_ = __webpack_require__(30);
3855  
3856  // EXTERNAL MODULE: external {"this":["wp","viewport"]}
3857  var external_this_wp_viewport_ = __webpack_require__(56);
3858  
3859  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js
3860  
3861  
3862  /**
3863   * WordPress dependencies
3864   */
3865  
3866  var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3867    viewBox: "0 0 24 24",
3868    xmlns: "http://www.w3.org/2000/svg"
3869  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3870    d: "M0,0h24v24H0V0z",
3871    fill: "none"
3872  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3873    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"
3874  }));
3875  var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3876    viewBox: "0 0 24 24",
3877    xmlns: "http://www.w3.org/2000/svg"
3878  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3879    fill: "none",
3880    d: "M0 0h24v24H0V0z"
3881  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3882    d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"
3883  }));
3884  var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3885    viewBox: "0 0 24 24",
3886    xmlns: "http://www.w3.org/2000/svg"
3887  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3888    d: "M0,0h24v24H0V0z",
3889    fill: "none"
3890  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3891    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"
3892  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], {
3893    points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17"
3894  }));
3895  var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3896    viewBox: "0 0 24 24",
3897    xmlns: "http://www.w3.org/2000/svg"
3898  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3899    d: "M0,0h24v24H0V0z",
3900    fill: "none"
3901  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3902    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"
3903  }));
3904  var embedTwitterIcon = {
3905    foreground: '#1da1f2',
3906    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3907      xmlns: "http://www.w3.org/2000/svg",
3908      viewBox: "0 0 24 24"
3909    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3910      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"
3911    })))
3912  };
3913  var embedYouTubeIcon = {
3914    foreground: '#ff0000',
3915    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3916      viewBox: "0 0 24 24"
3917    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3918      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"
3919    }))
3920  };
3921  var embedFacebookIcon = {
3922    foreground: '#3b5998',
3923    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3924      viewBox: "0 0 24 24"
3925    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3926      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"
3927    }))
3928  };
3929  var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3930    viewBox: "0 0 24 24"
3931  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3932    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"
3933  })));
3934  var embedWordPressIcon = {
3935    foreground: '#0073AA',
3936    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3937      viewBox: "0 0 24 24"
3938    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3939      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"
3940    })))
3941  };
3942  var embedSpotifyIcon = {
3943    foreground: '#1db954',
3944    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3945      viewBox: "0 0 24 24"
3946    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3947      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"
3948    }))
3949  };
3950  var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3951    viewBox: "0 0 24 24"
3952  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3953    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"
3954  }));
3955  var embedVimeoIcon = {
3956    foreground: '#1ab7ea',
3957    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3958      xmlns: "http://www.w3.org/2000/svg",
3959      viewBox: "0 0 24 24"
3960    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3961      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"
3962    })))
3963  };
3964  var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3965    viewBox: "0 0 24 24"
3966  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3967    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"
3968  }));
3969  var embedTumblrIcon = {
3970    foreground: '#35465c',
3971    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3972      viewBox: "0 0 24 24"
3973    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3974      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"
3975    }))
3976  };
3977  var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3978    viewBox: "0 0 24 24"
3979  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3980    d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"
3981  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3982    d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"
3983  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3984    d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"
3985  }));
3986  
3987  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js
3988  /**
3989   * Internal dependencies
3990   */
3991  
3992  /**
3993   * WordPress dependencies
3994   */
3995  
3996  
3997  
3998  var common = [{
3999    name: 'core-embed/twitter',
4000    settings: {
4001      title: 'Twitter',
4002      icon: embedTwitterIcon,
4003      keywords: ['tweet'],
4004      description: Object(external_this_wp_i18n_["__"])('Embed a tweet.')
4005    },
4006    patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i]
4007  }, {
4008    name: 'core-embed/youtube',
4009    settings: {
4010      title: 'YouTube',
4011      icon: embedYouTubeIcon,
4012      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')],
4013      description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.')
4014    },
4015    patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i]
4016  }, {
4017    name: 'core-embed/facebook',
4018    settings: {
4019      title: 'Facebook',
4020      icon: embedFacebookIcon,
4021      description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.')
4022    },
4023    patterns: [/^https?:\/\/www\.facebook.com\/.+/i]
4024  }, {
4025    name: 'core-embed/instagram',
4026    settings: {
4027      title: 'Instagram',
4028      icon: embedInstagramIcon,
4029      keywords: [Object(external_this_wp_i18n_["__"])('image')],
4030      description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.')
4031    },
4032    patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]
4033  }, {
4034    name: 'core-embed/wordpress',
4035    settings: {
4036      title: 'WordPress',
4037      icon: embedWordPressIcon,
4038      keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')],
4039      responsive: false,
4040      description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.')
4041    }
4042  }, {
4043    name: 'core-embed/soundcloud',
4044    settings: {
4045      title: 'SoundCloud',
4046      icon: embedAudioIcon,
4047      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
4048      description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.')
4049    },
4050    patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]
4051  }, {
4052    name: 'core-embed/spotify',
4053    settings: {
4054      title: 'Spotify',
4055      icon: embedSpotifyIcon,
4056      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
4057      description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.')
4058    },
4059    patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i]
4060  }, {
4061    name: 'core-embed/flickr',
4062    settings: {
4063      title: 'Flickr',
4064      icon: embedFlickrIcon,
4065      keywords: [Object(external_this_wp_i18n_["__"])('image')],
4066      description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.')
4067    },
4068    patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i]
4069  }, {
4070    name: 'core-embed/vimeo',
4071    settings: {
4072      title: 'Vimeo',
4073      icon: embedVimeoIcon,
4074      keywords: [Object(external_this_wp_i18n_["__"])('video')],
4075      description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.')
4076    },
4077    patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i]
4078  }];
4079  var others = [{
4080    name: 'core-embed/animoto',
4081    settings: {
4082      title: 'Animoto',
4083      icon: embedVideoIcon,
4084      description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.')
4085    },
4086    patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]
4087  }, {
4088    name: 'core-embed/cloudup',
4089    settings: {
4090      title: 'Cloudup',
4091      icon: embedContentIcon,
4092      description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.')
4093    },
4094    patterns: [/^https?:\/\/cloudup\.com\/.+/i]
4095  }, {
4096    // Deprecated since CollegeHumor content is now powered by YouTube
4097    name: 'core-embed/collegehumor',
4098    settings: {
4099      title: 'CollegeHumor',
4100      icon: embedVideoIcon,
4101      description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.'),
4102      supports: {
4103        inserter: false
4104      }
4105    },
4106    patterns: []
4107  }, {
4108    name: 'core-embed/crowdsignal',
4109    settings: {
4110      title: 'Crowdsignal',
4111      icon: embedContentIcon,
4112      keywords: ['polldaddy'],
4113      transform: [{
4114        type: 'block',
4115        blocks: ['core-embed/polldaddy'],
4116        transform: function transform(content) {
4117          return Object(external_this_wp_blocks_["createBlock"])('core-embed/crowdsignal', {
4118            content: content
4119          });
4120        }
4121      }],
4122      description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.')
4123    },
4124    patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]
4125  }, {
4126    name: 'core-embed/dailymotion',
4127    settings: {
4128      title: 'Dailymotion',
4129      icon: embedVideoIcon,
4130      description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.')
4131    },
4132    patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]
4133  }, {
4134    name: 'core-embed/hulu',
4135    settings: {
4136      title: 'Hulu',
4137      icon: embedVideoIcon,
4138      description: Object(external_this_wp_i18n_["__"])('Embed Hulu content.')
4139    },
4140    patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i]
4141  }, {
4142    name: 'core-embed/imgur',
4143    settings: {
4144      title: 'Imgur',
4145      icon: embedPhotoIcon,
4146      description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.')
4147    },
4148    patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i]
4149  }, {
4150    name: 'core-embed/issuu',
4151    settings: {
4152      title: 'Issuu',
4153      icon: embedContentIcon,
4154      description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.')
4155    },
4156    patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i]
4157  }, {
4158    name: 'core-embed/kickstarter',
4159    settings: {
4160      title: 'Kickstarter',
4161      icon: embedContentIcon,
4162      description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.')
4163    },
4164    patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i]
4165  }, {
4166    name: 'core-embed/meetup-com',
4167    settings: {
4168      title: 'Meetup.com',
4169      icon: embedContentIcon,
4170      description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.')
4171    },
4172    patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]
4173  }, {
4174    name: 'core-embed/mixcloud',
4175    settings: {
4176      title: 'Mixcloud',
4177      icon: embedAudioIcon,
4178      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
4179      description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.')
4180    },
4181    patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]
4182  }, {
4183    // Deprecated in favour of the core-embed/crowdsignal block
4184    name: 'core-embed/polldaddy',
4185    settings: {
4186      title: 'Polldaddy',
4187      icon: embedContentIcon,
4188      description: Object(external_this_wp_i18n_["__"])('Embed Polldaddy content.'),
4189      supports: {
4190        inserter: false
4191      }
4192    },
4193    patterns: []
4194  }, {
4195    name: 'core-embed/reddit',
4196    settings: {
4197      title: 'Reddit',
4198      icon: embedRedditIcon,
4199      description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.')
4200    },
4201    patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i]
4202  }, {
4203    name: 'core-embed/reverbnation',
4204    settings: {
4205      title: 'ReverbNation',
4206      icon: embedAudioIcon,
4207      description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.')
4208    },
4209    patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]
4210  }, {
4211    name: 'core-embed/screencast',
4212    settings: {
4213      title: 'Screencast',
4214      icon: embedVideoIcon,
4215      description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.')
4216    },
4217    patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i]
4218  }, {
4219    name: 'core-embed/scribd',
4220    settings: {
4221      title: 'Scribd',
4222      icon: embedContentIcon,
4223      description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.')
4224    },
4225    patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i]
4226  }, {
4227    name: 'core-embed/slideshare',
4228    settings: {
4229      title: 'Slideshare',
4230      icon: embedContentIcon,
4231      description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.')
4232    },
4233    patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]
4234  }, {
4235    name: 'core-embed/smugmug',
4236    settings: {
4237      title: 'SmugMug',
4238      icon: embedPhotoIcon,
4239      description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.')
4240    },
4241    patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i]
4242  }, {
4243    // Deprecated in favour of the core-embed/speaker-deck block.
4244    name: 'core-embed/speaker',
4245    settings: {
4246      title: 'Speaker',
4247      icon: embedAudioIcon,
4248      supports: {
4249        inserter: false
4250      }
4251    },
4252    patterns: []
4253  }, {
4254    name: 'core-embed/speaker-deck',
4255    settings: {
4256      title: 'Speaker Deck',
4257      icon: embedContentIcon,
4258      transform: [{
4259        type: 'block',
4260        blocks: ['core-embed/speaker'],
4261        transform: function transform(content) {
4262          return Object(external_this_wp_blocks_["createBlock"])('core-embed/speaker-deck', {
4263            content: content
4264          });
4265        }
4266      }],
4267      description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.')
4268    },
4269    patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]
4270  }, {
4271    name: 'core-embed/tiktok',
4272    settings: {
4273      title: 'TikTok',
4274      icon: embedVideoIcon,
4275      description: Object(external_this_wp_i18n_["__"])('Embed a TikTok video.')
4276    },
4277    patterns: [/^https?:\/\/(www\.)?tiktok\.com\/.+/i]
4278  }, {
4279    name: 'core-embed/ted',
4280    settings: {
4281      title: 'TED',
4282      icon: embedVideoIcon,
4283      description: Object(external_this_wp_i18n_["__"])('Embed a TED video.')
4284    },
4285    patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]
4286  }, {
4287    name: 'core-embed/tumblr',
4288    settings: {
4289      title: 'Tumblr',
4290      icon: embedTumblrIcon,
4291      description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.')
4292    },
4293    patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i]
4294  }, {
4295    name: 'core-embed/videopress',
4296    settings: {
4297      title: 'VideoPress',
4298      icon: embedVideoIcon,
4299      keywords: [Object(external_this_wp_i18n_["__"])('video')],
4300      description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.')
4301    },
4302    patterns: [/^https?:\/\/videopress\.com\/.+/i]
4303  }, {
4304    name: 'core-embed/wordpress-tv',
4305    settings: {
4306      title: 'WordPress.tv',
4307      icon: embedVideoIcon,
4308      description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.')
4309    },
4310    patterns: [/^https?:\/\/wordpress\.tv\/.+/i]
4311  }, {
4312    name: 'core-embed/amazon-kindle',
4313    settings: {
4314      title: 'Amazon Kindle',
4315      icon: embedAmazonIcon,
4316      keywords: [Object(external_this_wp_i18n_["__"])('ebook')],
4317      responsive: false,
4318      description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.')
4319    },
4320    patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]
4321  }];
4322  
4323  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js
4324  // These embeds do not work in sandboxes due to the iframe's security restrictions.
4325  var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com'];
4326  var ASPECT_RATIOS = [// Common video resolutions.
4327  {
4328    ratio: '2.33',
4329    className: 'wp-embed-aspect-21-9'
4330  }, {
4331    ratio: '2.00',
4332    className: 'wp-embed-aspect-18-9'
4333  }, {
4334    ratio: '1.78',
4335    className: 'wp-embed-aspect-16-9'
4336  }, {
4337    ratio: '1.33',
4338    className: 'wp-embed-aspect-4-3'
4339  }, // Vertical video and instagram square video support.
4340  {
4341    ratio: '1.00',
4342    className: 'wp-embed-aspect-1-1'
4343  }, {
4344    ratio: '0.56',
4345    className: 'wp-embed-aspect-9-16'
4346  }, {
4347    ratio: '0.50',
4348    className: 'wp-embed-aspect-1-2'
4349  }];
4350  var DEFAULT_EMBED_BLOCK = 'core/embed';
4351  var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress';
4352  
4353  // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js
4354  var dedupe = __webpack_require__(87);
4355  var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe);
4356  
4357  // EXTERNAL MODULE: ./node_modules/memize/index.js
4358  var memize = __webpack_require__(46);
4359  var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
4360  
4361  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
4362  
4363  
4364  
4365  
4366  function util_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
4367  
4368  function util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { util_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { util_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4369  
4370  /**
4371   * Internal dependencies
4372   */
4373  
4374  
4375  /**
4376   * External dependencies
4377   */
4378  
4379  
4380  
4381  
4382  /**
4383   * WordPress dependencies
4384   */
4385  
4386  
4387  
4388  /**
4389   * Returns true if any of the regular expressions match the URL.
4390   *
4391   * @param {string}   url      The URL to test.
4392   * @param {Array}    patterns The list of regular expressions to test agains.
4393   * @return {boolean} True if any of the regular expressions match the URL.
4394   */
4395  
4396  var matchesPatterns = function matchesPatterns(url) {
4397    var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
4398    return patterns.some(function (pattern) {
4399      return url.match(pattern);
4400    });
4401  };
4402  /**
4403   * Finds the block name that should be used for the URL, based on the
4404   * structure of the URL.
4405   *
4406   * @param {string}  url The URL to test.
4407   * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter
4408   */
4409  
4410  var util_findBlock = function findBlock(url) {
4411    for (var _i = 0, _arr = [].concat(Object(toConsumableArray["a" /* default */])(common), Object(toConsumableArray["a" /* default */])(others)); _i < _arr.length; _i++) {
4412      var block = _arr[_i];
4413  
4414      if (matchesPatterns(url, block.patterns)) {
4415        return block.name;
4416      }
4417    }
4418  
4419    return DEFAULT_EMBED_BLOCK;
4420  };
4421  var util_isFromWordPress = function isFromWordPress(html) {
4422    return Object(external_this_lodash_["includes"])(html, 'class="wp-embedded-content"');
4423  };
4424  var util_getPhotoHtml = function getPhotoHtml(photo) {
4425    // 100% width for the preview so it fits nicely into the document, some "thumbnails" are
4426    // actually the full size photo. If thumbnails not found, use full image.
4427    var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url;
4428    var photoPreview = Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])("img", {
4429      src: imageUrl,
4430      alt: photo.title,
4431      width: "100%"
4432    }));
4433    return Object(external_this_wp_element_["renderToString"])(photoPreview);
4434  };
4435  /**
4436   * Creates a more suitable embed block based on the passed in props
4437   * and attributes generated from an embed block's preview.
4438   *
4439   * We require `attributesFromPreview` to be generated from the latest attributes
4440   * and preview, and because of the way the react lifecycle operates, we can't
4441   * guarantee that the attributes contained in the block's props are the latest
4442   * versions, so we require that these are generated separately.
4443   * See `getAttributesFromPreview` in the generated embed edit component.
4444   *
4445   * @param {Object} props                  The block's props.
4446   * @param {Object} attributesFromPreview  Attributes generated from the block's most up to date preview.
4447   * @return {Object|undefined} A more suitable embed block if one exists.
4448   */
4449  
4450  var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) {
4451    var preview = props.preview,
4452        name = props.name;
4453    var url = props.attributes.url;
4454  
4455    if (!url) {
4456      return;
4457    }
4458  
4459    var matchingBlock = util_findBlock(url);
4460  
4461    if (!Object(external_this_wp_blocks_["getBlockType"])(matchingBlock)) {
4462      return;
4463    } // WordPress blocks can work on multiple sites, and so don't have patterns,
4464    // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL.
4465  
4466  
4467    if (WORDPRESS_EMBED_BLOCK !== name && DEFAULT_EMBED_BLOCK !== matchingBlock) {
4468      // At this point, we have discovered a more suitable block for this url, so transform it.
4469      if (name !== matchingBlock) {
4470        return Object(external_this_wp_blocks_["createBlock"])(matchingBlock, {
4471          url: url
4472        });
4473      }
4474    }
4475  
4476    if (preview) {
4477      var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead.
4478  
4479      if (util_isFromWordPress(html)) {
4480        // If this is not the WordPress embed block, transform it into one.
4481        if (WORDPRESS_EMBED_BLOCK !== name) {
4482          return Object(external_this_wp_blocks_["createBlock"])(WORDPRESS_EMBED_BLOCK, util_objectSpread({
4483            url: url
4484          }, attributesFromPreview));
4485        }
4486      }
4487    }
4488  };
4489  /**
4490   * Returns class names with any relevant responsive aspect ratio names.
4491   *
4492   * @param {string}  html               The preview HTML that possibly contains an iframe with width and height set.
4493   * @param {string}  existingClassNames Any existing class names.
4494   * @param {boolean} allowResponsive    If the responsive class names should be added, or removed.
4495   * @return {string} Deduped class names.
4496   */
4497  
4498  function getClassNames(html) {
4499    var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
4500    var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4501  
4502    if (!allowResponsive) {
4503      // Remove all of the aspect ratio related class names.
4504      var aspectRatioClassNames = {
4505        'wp-has-aspect-ratio': false
4506      };
4507  
4508      for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) {
4509        var aspectRatioToRemove = ASPECT_RATIOS[ratioIndex];
4510        aspectRatioClassNames[aspectRatioToRemove.className] = false;
4511      }
4512  
4513      return dedupe_default()(existingClassNames, aspectRatioClassNames);
4514    }
4515  
4516    var previewDocument = document.implementation.createHTMLDocument('');
4517    previewDocument.body.innerHTML = html;
4518    var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block.
4519  
4520    if (iframe && iframe.height && iframe.width) {
4521      var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it.
4522  
4523      for (var _ratioIndex = 0; _ratioIndex < ASPECT_RATIOS.length; _ratioIndex++) {
4524        var potentialRatio = ASPECT_RATIOS[_ratioIndex];
4525  
4526        if (aspectRatio >= potentialRatio.ratio) {
4527          var _classnames;
4528  
4529          return dedupe_default()(existingClassNames, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, potentialRatio.className, allowResponsive), Object(defineProperty["a" /* default */])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames));
4530        }
4531      }
4532    }
4533  
4534    return existingClassNames;
4535  }
4536  /**
4537   * Fallback behaviour for unembeddable URLs.
4538   * Creates a paragraph block containing a link to the URL, and calls `onReplace`.
4539   *
4540   * @param {string}   url       The URL that could not be embedded.
4541   * @param {Function} onReplace Function to call with the created fallback block.
4542   */
4543  
4544  function util_fallback(url, onReplace) {
4545    var link = Object(external_this_wp_element_["createElement"])("a", {
4546      href: url
4547    }, url);
4548    onReplace(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
4549      content: Object(external_this_wp_element_["renderToString"])(link)
4550    }));
4551  }
4552  /***
4553   * Gets block attributes based on the preview and responsive state.
4554   *
4555   * @param {Object} preview The preview data.
4556   * @param {string} title The block's title, e.g. Twitter.
4557   * @param {Object} currentClassNames The block's current class names.
4558   * @param {boolean} isResponsive Boolean indicating if the block supports responsive content.
4559   * @param {boolean} allowResponsive Apply responsive classes to fixed size content.
4560   * @return {Object} Attributes and values.
4561   */
4562  
4563  var getAttributesFromPreview = memize_default()(function (preview, title, currentClassNames, isResponsive) {
4564    var allowResponsive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
4565  
4566    if (!preview) {
4567      return {};
4568    }
4569  
4570    var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'.
4571  
4572    var _preview$type = preview.type,
4573        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,
4574    // because not all embed code gives us a provider name.
4575  
4576    var html = preview.html,
4577        providerName = preview.provider_name;
4578    var providerNameSlug = Object(external_this_lodash_["kebabCase"])(Object(external_this_lodash_["toLower"])('' !== providerName ? providerName : title));
4579  
4580    if (util_isFromWordPress(html)) {
4581      type = 'wp-embed';
4582    }
4583  
4584    if (html || 'photo' === type) {
4585      attributes.type = type;
4586      attributes.providerNameSlug = providerNameSlug;
4587    }
4588  
4589    attributes.className = getClassNames(html, currentClassNames, isResponsive && allowResponsive);
4590    return attributes;
4591  });
4592  
4593  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/constants.js
4594  var MIN_SIZE = 20;
4595  var LINK_DESTINATION_NONE = 'none';
4596  var LINK_DESTINATION_MEDIA = 'media';
4597  var LINK_DESTINATION_ATTACHMENT = 'attachment';
4598  var LINK_DESTINATION_CUSTOM = 'custom';
4599  var NEW_TAB_REL = ['noreferrer', 'noopener'];
4600  var ALLOWED_MEDIA_TYPES = ['image'];
4601  var DEFAULT_SIZE_SLUG = 'large';
4602  
4603  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js
4604  /**
4605   * External dependencies
4606   */
4607  
4608  /**
4609   * Internal dependencies
4610   */
4611  
4612  
4613  function calculatePreferedImageSize(image, container) {
4614    var maxWidth = container.clientWidth;
4615    var exceedMaxWidth = image.width > maxWidth;
4616    var ratio = image.height / image.width;
4617    var width = exceedMaxWidth ? maxWidth : image.width;
4618    var height = exceedMaxWidth ? maxWidth * ratio : image.height;
4619    return {
4620      width: width,
4621      height: height
4622    };
4623  }
4624  function removeNewTabRel(currentRel) {
4625    var newRel = currentRel;
4626  
4627    if (currentRel !== undefined && !Object(external_this_lodash_["isEmpty"])(newRel)) {
4628      if (!Object(external_this_lodash_["isEmpty"])(newRel)) {
4629        Object(external_this_lodash_["each"])(NEW_TAB_REL, function (relVal) {
4630          var regExp = new RegExp('\\b' + relVal + '\\b', 'gi');
4631          newRel = newRel.replace(regExp, '');
4632        }); // Only trim if NEW_TAB_REL values was replaced.
4633  
4634        if (newRel !== currentRel) {
4635          newRel = newRel.trim();
4636        }
4637  
4638        if (Object(external_this_lodash_["isEmpty"])(newRel)) {
4639          newRel = undefined;
4640        }
4641      }
4642    }
4643  
4644    return newRel;
4645  }
4646  /**
4647   * Helper to get the link target settings to be stored.
4648   *
4649   * @param {boolean} value         The new link target value.
4650   * @param {Object} attributes     Block attributes.
4651   * @param {Object} attributes.rel Image block's rel attribute.
4652   *
4653   * @return {Object} Updated link target settings.
4654   */
4655  
4656  function getUpdatedLinkTargetSettings(value, _ref) {
4657    var rel = _ref.rel;
4658    var linkTarget = value ? '_blank' : undefined;
4659    var updatedRel;
4660  
4661    if (!linkTarget && !rel) {
4662      updatedRel = undefined;
4663    } else {
4664      updatedRel = removeNewTabRel(rel);
4665    }
4666  
4667    return {
4668      linkTarget: linkTarget,
4669      rel: updatedRel
4670    };
4671  }
4672  
4673  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js
4674  
4675  
4676  
4677  
4678  
4679  
4680  
4681  
4682  /**
4683   * External dependencies
4684   */
4685  
4686  /**
4687   * WordPress dependencies
4688   */
4689  
4690  
4691  
4692  /**
4693   * Internal dependencies
4694   */
4695  
4696  
4697  
4698  var image_size_ImageSize =
4699  /*#__PURE__*/
4700  function (_Component) {
4701    Object(inherits["a" /* default */])(ImageSize, _Component);
4702  
4703    function ImageSize() {
4704      var _this;
4705  
4706      Object(classCallCheck["a" /* default */])(this, ImageSize);
4707  
4708      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments));
4709      _this.state = {
4710        width: undefined,
4711        height: undefined
4712      };
4713      _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this));
4714      _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(_this));
4715      return _this;
4716    }
4717  
4718    Object(createClass["a" /* default */])(ImageSize, [{
4719      key: "bindContainer",
4720      value: function bindContainer(ref) {
4721        this.container = ref;
4722      }
4723    }, {
4724      key: "componentDidUpdate",
4725      value: function componentDidUpdate(prevProps) {
4726        if (this.props.src !== prevProps.src) {
4727          this.setState({
4728            width: undefined,
4729            height: undefined
4730          });
4731          this.fetchImageSize();
4732        }
4733  
4734        if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) {
4735          this.calculateSize();
4736        }
4737      }
4738    }, {
4739      key: "componentDidMount",
4740      value: function componentDidMount() {
4741        this.fetchImageSize();
4742      }
4743    }, {
4744      key: "componentWillUnmount",
4745      value: function componentWillUnmount() {
4746        if (this.image) {
4747          this.image.onload = external_this_lodash_["noop"];
4748        }
4749      }
4750    }, {
4751      key: "fetchImageSize",
4752      value: function fetchImageSize() {
4753        this.image = new window.Image();
4754        this.image.onload = this.calculateSize;
4755        this.image.src = this.props.src;
4756      }
4757    }, {
4758      key: "calculateSize",
4759      value: function calculateSize() {
4760        var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container),
4761            width = _calculatePreferedIma.width,
4762            height = _calculatePreferedIma.height;
4763  
4764        this.setState({
4765          width: width,
4766          height: height
4767        });
4768      }
4769    }, {
4770      key: "render",
4771      value: function render() {
4772        var sizes = {
4773          imageWidth: this.image && this.image.width,
4774          imageHeight: this.image && this.image.height,
4775          containerWidth: this.container && this.container.clientWidth,
4776          containerHeight: this.container && this.container.clientHeight,
4777          imageWidthWithinContainer: this.state.width,
4778          imageHeightWithinContainer: this.state.height
4779        };
4780        return Object(external_this_wp_element_["createElement"])("div", {
4781          ref: this.bindContainer
4782        }, this.props.children(sizes));
4783      }
4784    }]);
4785  
4786    return ImageSize;
4787  }(external_this_wp_element_["Component"]);
4788  
4789  /* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({
4790    resize: 'calculateSize'
4791  })(image_size_ImageSize));
4792  
4793  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js
4794  
4795  
4796  
4797  
4798  
4799  
4800  
4801  
4802  
4803  
4804  function image_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
4805  
4806  function image_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { image_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { image_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4807  
4808  /**
4809   * External dependencies
4810   */
4811  
4812  
4813  /**
4814   * WordPress dependencies
4815   */
4816  
4817  
4818  
4819  
4820  
4821  
4822  
4823  
4824  
4825  
4826  
4827  /**
4828   * Internal dependencies
4829   */
4830  
4831  
4832  
4833  /**
4834   * Module constants
4835   */
4836  
4837  
4838  var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
4839    var imageProps = Object(external_this_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
4840    imageProps.url = Object(external_this_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url;
4841    return imageProps;
4842  };
4843  /**
4844   * Is the URL a temporary blob URL? A blob URL is one that is used temporarily
4845   * while the image is being uploaded and will not have an id yet allocated.
4846   *
4847   * @param {number=} id The id of the image.
4848   * @param {string=} url The url of the image.
4849   *
4850   * @return {boolean} Is the URL a Blob URL
4851   */
4852  
4853  var edit_isTemporaryImage = function isTemporaryImage(id, url) {
4854    return !id && Object(external_this_wp_blob_["isBlobURL"])(url);
4855  };
4856  /**
4857   * Is the url for the image hosted externally. An externally hosted image has no id
4858   * and is not a blob url.
4859   *
4860   * @param {number=} id  The id of the image.
4861   * @param {string=} url The url of the image.
4862   *
4863   * @return {boolean} Is the url an externally hosted url?
4864   */
4865  
4866  
4867  var edit_isExternalImage = function isExternalImage(id, url) {
4868    return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url);
4869  };
4870  
4871  var edit_ImageEdit =
4872  /*#__PURE__*/
4873  function (_Component) {
4874    Object(inherits["a" /* default */])(ImageEdit, _Component);
4875  
4876    function ImageEdit() {
4877      var _this;
4878  
4879      Object(classCallCheck["a" /* default */])(this, ImageEdit);
4880  
4881      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments));
4882      _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(_this));
4883      _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this));
4884      _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
4885      _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(_this));
4886      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
4887      _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this));
4888      _this.updateImage = _this.updateImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
4889      _this.onSetHref = _this.onSetHref.bind(Object(assertThisInitialized["a" /* default */])(_this));
4890      _this.onSetTitle = _this.onSetTitle.bind(Object(assertThisInitialized["a" /* default */])(_this));
4891      _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(_this));
4892      _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this));
4893      _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(_this));
4894      _this.state = {
4895        captionFocused: false
4896      };
4897      return _this;
4898    }
4899  
4900    Object(createClass["a" /* default */])(ImageEdit, [{
4901      key: "componentDidMount",
4902      value: function componentDidMount() {
4903        var _this2 = this;
4904  
4905        var _this$props = this.props,
4906            attributes = _this$props.attributes,
4907            mediaUpload = _this$props.mediaUpload,
4908            noticeOperations = _this$props.noticeOperations;
4909        var id = attributes.id,
4910            _attributes$url = attributes.url,
4911            url = _attributes$url === void 0 ? '' : _attributes$url;
4912  
4913        if (edit_isTemporaryImage(id, url)) {
4914          var file = Object(external_this_wp_blob_["getBlobByURL"])(url);
4915  
4916          if (file) {
4917            mediaUpload({
4918              filesList: [file],
4919              onFileChange: function onFileChange(_ref) {
4920                var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1),
4921                    image = _ref2[0];
4922  
4923                _this2.onSelectImage(image);
4924              },
4925              allowedTypes: ALLOWED_MEDIA_TYPES,
4926              onError: function onError(message) {
4927                noticeOperations.createErrorNotice(message);
4928              }
4929            });
4930          }
4931        }
4932      }
4933    }, {
4934      key: "componentDidUpdate",
4935      value: function componentDidUpdate(prevProps) {
4936        var _prevProps$attributes = prevProps.attributes,
4937            prevID = _prevProps$attributes.id,
4938            _prevProps$attributes2 = _prevProps$attributes.url,
4939            prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2;
4940        var _this$props$attribute = this.props.attributes,
4941            id = _this$props$attribute.id,
4942            _this$props$attribute2 = _this$props$attribute.url,
4943            url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2;
4944  
4945        if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) {
4946          Object(external_this_wp_blob_["revokeBlobURL"])(url);
4947        }
4948  
4949        if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) {
4950          this.setState({
4951            captionFocused: false
4952          });
4953        }
4954      }
4955    }, {
4956      key: "onUploadError",
4957      value: function onUploadError(message) {
4958        var noticeOperations = this.props.noticeOperations;
4959        noticeOperations.removeAllNotices();
4960        noticeOperations.createErrorNotice(message);
4961      }
4962    }, {
4963      key: "onSelectImage",
4964      value: function onSelectImage(media) {
4965        if (!media || !media.url) {
4966          this.props.setAttributes({
4967            url: undefined,
4968            alt: undefined,
4969            id: undefined,
4970            title: undefined,
4971            caption: undefined
4972          });
4973          return;
4974        }
4975  
4976        var _this$props$attribute3 = this.props.attributes,
4977            id = _this$props$attribute3.id,
4978            url = _this$props$attribute3.url,
4979            alt = _this$props$attribute3.alt,
4980            caption = _this$props$attribute3.caption,
4981            linkDestination = _this$props$attribute3.linkDestination;
4982        var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt text was meanwhile written by the user,
4983        // make sure the text is not overwritten.
4984  
4985        if (edit_isTemporaryImage(id, url)) {
4986          if (alt) {
4987            mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['alt']);
4988          }
4989        } // If a caption text was meanwhile written by the user,
4990        // make sure the text is not overwritten by empty captions
4991  
4992  
4993        if (caption && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) {
4994          mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['caption']);
4995        }
4996  
4997        var additionalAttributes; // Reset the dimension attributes if changing to a different image.
4998  
4999        if (!media.id || media.id !== id) {
5000          additionalAttributes = {
5001            width: undefined,
5002            height: undefined,
5003            sizeSlug: DEFAULT_SIZE_SLUG
5004          };
5005        } else {
5006          // Keep the same url when selecting the same file, so "Image Size" option is not changed.
5007          additionalAttributes = {
5008            url: url
5009          };
5010        } // Check if the image is linked to it's media.
5011  
5012  
5013        if (linkDestination === LINK_DESTINATION_MEDIA) {
5014          // Update the media link.
5015          mediaAttributes.href = media.url;
5016        } // Check if the image is linked to the attachment page.
5017  
5018  
5019        if (linkDestination === LINK_DESTINATION_ATTACHMENT) {
5020          // Update the media link.
5021          mediaAttributes.href = media.link;
5022        }
5023  
5024        this.props.setAttributes(image_edit_objectSpread({}, mediaAttributes, {}, additionalAttributes));
5025      }
5026    }, {
5027      key: "onSelectURL",
5028      value: function onSelectURL(newURL) {
5029        var url = this.props.attributes.url;
5030  
5031        if (newURL !== url) {
5032          this.props.setAttributes({
5033            url: newURL,
5034            id: undefined,
5035            sizeSlug: DEFAULT_SIZE_SLUG
5036          });
5037        }
5038      }
5039    }, {
5040      key: "onImageError",
5041      value: function onImageError(url) {
5042        // Check if there's an embed block that handles this URL.
5043        var embedBlock = util_createUpgradedEmbedBlock({
5044          attributes: {
5045            url: url
5046          }
5047        });
5048  
5049        if (undefined !== embedBlock) {
5050          this.props.onReplace(embedBlock);
5051        }
5052      }
5053    }, {
5054      key: "onSetHref",
5055      value: function onSetHref(props) {
5056        this.props.setAttributes(props);
5057      }
5058    }, {
5059      key: "onSetTitle",
5060      value: function onSetTitle(value) {
5061        // This is the HTML title attribute, separate from the media object title
5062        this.props.setAttributes({
5063          title: value
5064        });
5065      }
5066    }, {
5067      key: "onFocusCaption",
5068      value: function onFocusCaption() {
5069        if (!this.state.captionFocused) {
5070          this.setState({
5071            captionFocused: true
5072          });
5073        }
5074      }
5075    }, {
5076      key: "onImageClick",
5077      value: function onImageClick() {
5078        if (this.state.captionFocused) {
5079          this.setState({
5080            captionFocused: false
5081          });
5082        }
5083      }
5084    }, {
5085      key: "updateAlt",
5086      value: function updateAlt(newAlt) {
5087        this.props.setAttributes({
5088          alt: newAlt
5089        });
5090      }
5091    }, {
5092      key: "updateAlignment",
5093      value: function updateAlignment(nextAlign) {
5094        var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? {
5095          width: undefined,
5096          height: undefined
5097        } : {};
5098        this.props.setAttributes(image_edit_objectSpread({}, extraUpdatedAttributes, {
5099          align: nextAlign
5100        }));
5101      }
5102    }, {
5103      key: "updateImage",
5104      value: function updateImage(sizeSlug) {
5105        var image = this.props.image;
5106        var url = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']);
5107  
5108        if (!url) {
5109          return null;
5110        }
5111  
5112        this.props.setAttributes({
5113          url: url,
5114          width: undefined,
5115          height: undefined,
5116          sizeSlug: sizeSlug
5117        });
5118      }
5119    }, {
5120      key: "getFilename",
5121      value: function getFilename(url) {
5122        var path = Object(external_this_wp_url_["getPath"])(url);
5123  
5124        if (path) {
5125          return Object(external_this_lodash_["last"])(path.split('/'));
5126        }
5127      }
5128    }, {
5129      key: "getImageSizeOptions",
5130      value: function getImageSizeOptions() {
5131        var _this$props2 = this.props,
5132            imageSizes = _this$props2.imageSizes,
5133            image = _this$props2.image;
5134        return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref3) {
5135          var slug = _ref3.slug;
5136          return Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']);
5137        }), function (_ref4) {
5138          var name = _ref4.name,
5139              slug = _ref4.slug;
5140          return {
5141            value: slug,
5142            label: name
5143          };
5144        });
5145      }
5146    }, {
5147      key: "render",
5148      value: function render() {
5149        var _this3 = this;
5150  
5151        var _this$props3 = this.props,
5152            attributes = _this$props3.attributes,
5153            setAttributes = _this$props3.setAttributes,
5154            isLargeViewport = _this$props3.isLargeViewport,
5155            isSelected = _this$props3.isSelected,
5156            className = _this$props3.className,
5157            maxWidth = _this$props3.maxWidth,
5158            noticeUI = _this$props3.noticeUI,
5159            isRTL = _this$props3.isRTL,
5160            onResizeStart = _this$props3.onResizeStart,
5161            _onResizeStop = _this$props3.onResizeStop;
5162        var url = attributes.url,
5163            alt = attributes.alt,
5164            caption = attributes.caption,
5165            align = attributes.align,
5166            id = attributes.id,
5167            href = attributes.href,
5168            rel = attributes.rel,
5169            linkClass = attributes.linkClass,
5170            linkDestination = attributes.linkDestination,
5171            title = attributes.title,
5172            width = attributes.width,
5173            height = attributes.height,
5174            linkTarget = attributes.linkTarget,
5175            sizeSlug = attributes.sizeSlug;
5176        var isExternal = edit_isExternalImage(id, url);
5177        var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], {
5178          value: align,
5179          onChange: this.updateAlignment
5180        }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], {
5181          mediaId: id,
5182          mediaURL: url,
5183          allowedTypes: ALLOWED_MEDIA_TYPES,
5184          accept: "image/*",
5185          onSelect: this.onSelectImage,
5186          onSelectURL: this.onSelectURL,
5187          onError: this.onUploadError
5188        }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageURLInputUI"], {
5189          url: href || '',
5190          onChangeUrl: this.onSetHref,
5191          linkDestination: linkDestination,
5192          mediaUrl: this.props.image && this.props.image.source_url,
5193          mediaLink: this.props.image && this.props.image.link,
5194          linkTarget: linkTarget,
5195          linkClass: linkClass,
5196          rel: rel
5197        })));
5198        var src = isExternal ? url : undefined;
5199        var labels = {
5200          title: !url ? Object(external_this_wp_i18n_["__"])('Image') : Object(external_this_wp_i18n_["__"])('Edit image'),
5201          instructions: Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.')
5202        };
5203        var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", {
5204          alt: Object(external_this_wp_i18n_["__"])('Edit image'),
5205          title: Object(external_this_wp_i18n_["__"])('Edit image'),
5206          className: 'edit-image-preview',
5207          src: url
5208        });
5209        var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], {
5210          icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
5211            icon: library_image
5212          }),
5213          className: className,
5214          labels: labels,
5215          onSelect: this.onSelectImage,
5216          onSelectURL: this.onSelectURL,
5217          notices: noticeUI,
5218          onError: this.onUploadError,
5219          accept: "image/*",
5220          allowedTypes: ALLOWED_MEDIA_TYPES,
5221          value: {
5222            id: id,
5223            src: src
5224          },
5225          mediaPreview: mediaPreview,
5226          disableMediaButtons: url
5227        });
5228  
5229        if (!url) {
5230          return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, mediaPlaceholder);
5231        }
5232  
5233        var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({
5234          'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url),
5235          'is-resized': !!width || !!height,
5236          'is-focused': isSelected
5237        }, "size-".concat(sizeSlug), sizeSlug));
5238        var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport;
5239        var imageSizeOptions = this.getImageSizeOptions();
5240  
5241        var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) {
5242          return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5243            title: Object(external_this_wp_i18n_["__"])('Image settings')
5244          }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], {
5245            label: Object(external_this_wp_i18n_["__"])('Alt text (alternative text)'),
5246            value: alt,
5247            onChange: _this3.updateAlt,
5248            help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
5249              href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
5250            }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.'))
5251          }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], {
5252            onChangeImage: _this3.updateImage,
5253            onChange: function onChange(value) {
5254              return setAttributes(value);
5255            },
5256            slug: sizeSlug,
5257            width: width,
5258            height: height,
5259            imageSizeOptions: imageSizeOptions,
5260            isResizable: isResizable,
5261            imageWidth: imageWidth,
5262            imageHeight: imageHeight
5263          }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorAdvancedControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
5264            label: Object(external_this_wp_i18n_["__"])('Title attribute'),
5265            value: title || '',
5266            onChange: _this3.onSetTitle,
5267            help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Describe the role of this image on the page.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
5268              href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
5269            }, Object(external_this_wp_i18n_["__"])('(Note: many devices and browsers do not display this text.)')))
5270          })));
5271        }; // Disable reason: Each block can be selected by clicking on it
5272  
5273        /* eslint-disable jsx-a11y/click-events-have-key-events */
5274  
5275  
5276        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", {
5277          className: classes
5278        }, Object(external_this_wp_element_["createElement"])(image_size, {
5279          src: url,
5280          dirtynessTrigger: align
5281        }, function (sizes) {
5282          var imageWidthWithinContainer = sizes.imageWidthWithinContainer,
5283              imageHeightWithinContainer = sizes.imageHeightWithinContainer,
5284              imageWidth = sizes.imageWidth,
5285              imageHeight = sizes.imageHeight;
5286  
5287          var filename = _this3.getFilename(url);
5288  
5289          var defaultedAlt;
5290  
5291          if (alt) {
5292            defaultedAlt = alt;
5293          } else if (filename) {
5294            defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename);
5295          } else {
5296            defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute');
5297          }
5298  
5299          var img = // Disable reason: Image itself is not meant to be interactive, but
5300          // should direct focus to block.
5301  
5302          /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
5303          Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", {
5304            src: url,
5305            alt: defaultedAlt,
5306            onClick: _this3.onImageClick,
5307            onError: function onError() {
5308              return _this3.onImageError(url);
5309            }
5310          }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))
5311          /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
5312          ;
5313  
5314          if (!isResizable || !imageWidthWithinContainer) {
5315            return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", {
5316              style: {
5317                width: width,
5318                height: height
5319              }
5320            }, img));
5321          }
5322  
5323          var currentWidth = width || imageWidthWithinContainer;
5324          var currentHeight = height || imageHeightWithinContainer;
5325          var ratio = imageWidth / imageHeight;
5326          var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio;
5327          var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width.
5328          // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style.
5329          // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom.
5330          // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely.
5331          // @todo It would be good to revisit this once a content-width variable becomes available.
5332  
5333          var maxWidthBuffer = maxWidth * 2.5;
5334          var showRightHandle = false;
5335          var showLeftHandle = false;
5336          /* eslint-disable no-lonely-if */
5337          // See https://github.com/WordPress/gutenberg/issues/7584.
5338  
5339          if (align === 'center') {
5340            // When the image is centered, show both handles.
5341            showRightHandle = true;
5342            showLeftHandle = true;
5343          } else if (isRTL) {
5344            // In RTL mode the image is on the right by default.
5345            // Show the right handle and hide the left handle only when it is aligned left.
5346            // Otherwise always show the left handle.
5347            if (align === 'left') {
5348              showRightHandle = true;
5349            } else {
5350              showLeftHandle = true;
5351            }
5352          } else {
5353            // Show the left handle and hide the right handle only when the image is aligned right.
5354            // Otherwise always show the right handle.
5355            if (align === 'right') {
5356              showLeftHandle = true;
5357            } else {
5358              showRightHandle = true;
5359            }
5360          }
5361          /* eslint-enable no-lonely-if */
5362  
5363  
5364          return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], {
5365            size: {
5366              width: width,
5367              height: height
5368            },
5369            minWidth: minWidth,
5370            maxWidth: maxWidthBuffer,
5371            minHeight: minHeight,
5372            maxHeight: maxWidthBuffer / ratio,
5373            lockAspectRatio: true,
5374            enable: {
5375              top: false,
5376              right: showRightHandle,
5377              bottom: true,
5378              left: showLeftHandle
5379            },
5380            onResizeStart: onResizeStart,
5381            onResizeStop: function onResizeStop(event, direction, elt, delta) {
5382              _onResizeStop();
5383  
5384              setAttributes({
5385                width: parseInt(currentWidth + delta.width, 10),
5386                height: parseInt(currentHeight + delta.height, 10)
5387              });
5388            }
5389          }, img));
5390        }), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
5391          tagName: "figcaption",
5392          placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'),
5393          value: caption,
5394          unstableOnFocus: this.onFocusCaption,
5395          onChange: function onChange(value) {
5396            return setAttributes({
5397              caption: value
5398            });
5399          },
5400          isSelected: this.state.captionFocused,
5401          inlineToolbar: true
5402        })), mediaPlaceholder);
5403        /* eslint-enable jsx-a11y/click-events-have-key-events */
5404      }
5405    }]);
5406  
5407    return ImageEdit;
5408  }(external_this_wp_element_["Component"]);
5409  /* harmony default export */ var image_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
5410    var _dispatch = dispatch('core/block-editor'),
5411        toggleSelection = _dispatch.toggleSelection;
5412  
5413    return {
5414      onResizeStart: function onResizeStart() {
5415        return toggleSelection(false);
5416      },
5417      onResizeStop: function onResizeStop() {
5418        return toggleSelection(true);
5419      }
5420    };
5421  }), Object(external_this_wp_data_["withSelect"])(function (select, props) {
5422    var _select = select('core'),
5423        getMedia = _select.getMedia;
5424  
5425    var _select2 = select('core/block-editor'),
5426        getSettings = _select2.getSettings;
5427  
5428    var id = props.attributes.id,
5429        isSelected = props.isSelected;
5430  
5431    var _getSettings = getSettings(),
5432        mediaUpload = _getSettings.mediaUpload,
5433        imageSizes = _getSettings.imageSizes,
5434        isRTL = _getSettings.isRTL,
5435        maxWidth = _getSettings.maxWidth;
5436  
5437    return {
5438      image: id && isSelected ? getMedia(id) : null,
5439      maxWidth: maxWidth,
5440      isRTL: isRTL,
5441      imageSizes: imageSizes,
5442      mediaUpload: mediaUpload
5443    };
5444  }), Object(external_this_wp_viewport_["withViewportMatch"])({
5445    isLargeViewport: 'medium'
5446  }), external_this_wp_components_["withNotices"]])(edit_ImageEdit));
5447  
5448  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js
5449  
5450  
5451  
5452  /**
5453   * External dependencies
5454   */
5455  
5456  
5457  /**
5458   * WordPress dependencies
5459   */
5460  
5461  
5462  function image_save_save(_ref) {
5463    var _classnames;
5464  
5465    var attributes = _ref.attributes;
5466    var url = attributes.url,
5467        alt = attributes.alt,
5468        caption = attributes.caption,
5469        align = attributes.align,
5470        href = attributes.href,
5471        rel = attributes.rel,
5472        linkClass = attributes.linkClass,
5473        width = attributes.width,
5474        height = attributes.height,
5475        id = attributes.id,
5476        linkTarget = attributes.linkTarget,
5477        sizeSlug = attributes.sizeSlug,
5478        title = attributes.title;
5479    var newRel = Object(external_this_lodash_["isEmpty"])(rel) ? undefined : rel;
5480    var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "size-".concat(sizeSlug), sizeSlug), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
5481    var image = Object(external_this_wp_element_["createElement"])("img", {
5482      src: url,
5483      alt: alt,
5484      className: id ? "wp-image-".concat(id) : null,
5485      width: width,
5486      height: height,
5487      title: title
5488    });
5489    var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", {
5490      className: linkClass,
5491      href: href,
5492      target: linkTarget,
5493      rel: newRel
5494    }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5495      tagName: "figcaption",
5496      value: caption
5497    }));
5498  
5499    if ('left' === align || 'right' === align || 'center' === align) {
5500      return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", {
5501        className: classes
5502      }, figure));
5503    }
5504  
5505    return Object(external_this_wp_element_["createElement"])("figure", {
5506      className: classes
5507    }, figure);
5508  }
5509  
5510  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js
5511  
5512  
5513  function transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5514  
5515  function transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5516  
5517  /**
5518   * WordPress dependencies
5519   */
5520  
5521  
5522  function stripFirstImage(attributes, _ref) {
5523    var shortcode = _ref.shortcode;
5524  
5525    var _document$implementat = document.implementation.createHTMLDocument(''),
5526        body = _document$implementat.body;
5527  
5528    body.innerHTML = shortcode.content;
5529    var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove
5530  
5531    while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) {
5532      nodeToRemove = nodeToRemove.parentNode;
5533    }
5534  
5535    if (nodeToRemove) {
5536      nodeToRemove.parentNode.removeChild(nodeToRemove);
5537    }
5538  
5539    return body.innerHTML.trim();
5540  }
5541  
5542  function getFirstAnchorAttributeFormHTML(html, attributeName) {
5543    var _document$implementat2 = document.implementation.createHTMLDocument(''),
5544        body = _document$implementat2.body;
5545  
5546    body.innerHTML = html;
5547    var firstElementChild = body.firstElementChild;
5548  
5549    if (firstElementChild && firstElementChild.nodeName === 'A') {
5550      return firstElementChild.getAttribute(attributeName) || undefined;
5551    }
5552  }
5553  
5554  var imageSchema = {
5555    img: {
5556      attributes: ['src', 'alt', 'title'],
5557      classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/]
5558    }
5559  };
5560  
5561  var schema = function schema(_ref2) {
5562    var phrasingContentSchema = _ref2.phrasingContentSchema;
5563    return {
5564      figure: {
5565        require: ['img'],
5566        children: transforms_objectSpread({}, imageSchema, {
5567          a: {
5568            attributes: ['href', 'rel', 'target'],
5569            children: imageSchema
5570          },
5571          figcaption: {
5572            children: phrasingContentSchema
5573          }
5574        })
5575      }
5576    };
5577  };
5578  
5579  var image_transforms_transforms = {
5580    from: [{
5581      type: 'raw',
5582      isMatch: function isMatch(node) {
5583        return node.nodeName === 'FIGURE' && !!node.querySelector('img');
5584      },
5585      schema: schema,
5586      transform: function transform(node) {
5587        // Search both figure and image classes. Alignment could be
5588        // set on either. ID is set on the image.
5589        var className = node.className + ' ' + node.querySelector('img').className;
5590        var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className);
5591        var align = alignMatches ? alignMatches[1] : undefined;
5592        var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className);
5593        var id = idMatches ? Number(idMatches[1]) : undefined;
5594        var anchorElement = node.querySelector('a');
5595        var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined;
5596        var href = anchorElement && anchorElement.href ? anchorElement.href : undefined;
5597        var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined;
5598        var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined;
5599        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, {
5600          align: align,
5601          id: id,
5602          linkDestination: linkDestination,
5603          href: href,
5604          rel: rel,
5605          linkClass: linkClass
5606        });
5607        return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes);
5608      }
5609    }, {
5610      type: 'files',
5611      isMatch: function isMatch(files) {
5612        return files.length === 1 && files[0].type.indexOf('image/') === 0;
5613      },
5614      transform: function transform(files) {
5615        var file = files[0]; // We don't need to upload the media directly here
5616        // It's already done as part of the `componentDidMount`
5617        // int the image block
5618  
5619        return Object(external_this_wp_blocks_["createBlock"])('core/image', {
5620          url: Object(external_this_wp_blob_["createBlobURL"])(file)
5621        });
5622      }
5623    }, {
5624      type: 'shortcode',
5625      tag: 'caption',
5626      attributes: {
5627        url: {
5628          type: 'string',
5629          source: 'attribute',
5630          attribute: 'src',
5631          selector: 'img'
5632        },
5633        alt: {
5634          type: 'string',
5635          source: 'attribute',
5636          attribute: 'alt',
5637          selector: 'img'
5638        },
5639        caption: {
5640          shortcode: stripFirstImage
5641        },
5642        href: {
5643          shortcode: function shortcode(attributes, _ref3) {
5644            var _shortcode = _ref3.shortcode;
5645            return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href');
5646          }
5647        },
5648        rel: {
5649          shortcode: function shortcode(attributes, _ref4) {
5650            var _shortcode2 = _ref4.shortcode;
5651            return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel');
5652          }
5653        },
5654        linkClass: {
5655          shortcode: function shortcode(attributes, _ref5) {
5656            var _shortcode3 = _ref5.shortcode;
5657            return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class');
5658          }
5659        },
5660        id: {
5661          type: 'number',
5662          shortcode: function shortcode(_ref6) {
5663            var id = _ref6.named.id;
5664  
5665            if (!id) {
5666              return;
5667            }
5668  
5669            return parseInt(id.replace('attachment_', ''), 10);
5670          }
5671        },
5672        align: {
5673          type: 'string',
5674          shortcode: function shortcode(_ref7) {
5675            var _ref7$named$align = _ref7.named.align,
5676                align = _ref7$named$align === void 0 ? 'alignnone' : _ref7$named$align;
5677            return align.replace('align', '');
5678          }
5679        }
5680      }
5681    }]
5682  };
5683  /* harmony default export */ var image_transforms = (image_transforms_transforms);
5684  
5685  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js
5686  /**
5687   * WordPress dependencies
5688   */
5689  
5690  
5691  /**
5692   * Internal dependencies
5693   */
5694  
5695  
5696  
5697  var image_metadata = {
5698    name: "core/image",
5699    category: "common",
5700    attributes: {
5701      align: {
5702        type: "string"
5703      },
5704      url: {
5705        type: "string",
5706        source: "attribute",
5707        selector: "img",
5708        attribute: "src"
5709      },
5710      alt: {
5711        type: "string",
5712        source: "attribute",
5713        selector: "img",
5714        attribute: "alt",
5715        "default": ""
5716      },
5717      caption: {
5718        type: "string",
5719        source: "html",
5720        selector: "figcaption"
5721      },
5722      title: {
5723        type: "string",
5724        source: "attribute",
5725        selector: "img",
5726        attribute: "title"
5727      },
5728      href: {
5729        type: "string",
5730        source: "attribute",
5731        selector: "figure > a",
5732        attribute: "href"
5733      },
5734      rel: {
5735        type: "string",
5736        source: "attribute",
5737        selector: "figure > a",
5738        attribute: "rel"
5739      },
5740      linkClass: {
5741        type: "string",
5742        source: "attribute",
5743        selector: "figure > a",
5744        attribute: "class"
5745      },
5746      id: {
5747        type: "number"
5748      },
5749      width: {
5750        type: "number"
5751      },
5752      height: {
5753        type: "number"
5754      },
5755      sizeSlug: {
5756        type: "string"
5757      },
5758      linkDestination: {
5759        type: "string",
5760        "default": "none"
5761      },
5762      linkTarget: {
5763        type: "string",
5764        source: "attribute",
5765        selector: "figure > a",
5766        attribute: "target"
5767      }
5768    }
5769  };
5770  
5771  
5772  var image_name = image_metadata.name;
5773  
5774  var image_settings = {
5775    title: Object(external_this_wp_i18n_["__"])('Image'),
5776    description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'),
5777    icon: library_image,
5778    keywords: ['img', // "img" is not translated as it is intended to reflect the HTML <img> tag.
5779    Object(external_this_wp_i18n_["__"])('photo')],
5780    example: {
5781      attributes: {
5782        sizeSlug: 'large',
5783        url: 'https://s.w.org/images/core/5.3/MtBlanc1.jpg',
5784        // translators: Caption accompanying an image of the Mont Blanc, which serves as an example for the Image block.
5785        caption: Object(external_this_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.')
5786      }
5787    },
5788    styles: [{
5789      name: 'default',
5790      label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
5791      isDefault: true
5792    }, {
5793      name: 'rounded',
5794      label: Object(external_this_wp_i18n_["_x"])('Rounded', 'block style')
5795    }],
5796    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
5797      var context = _ref.context;
5798  
5799      if (context === 'accessibility') {
5800        var caption = attributes.caption,
5801            alt = attributes.alt,
5802            url = attributes.url;
5803  
5804        if (!url) {
5805          return Object(external_this_wp_i18n_["__"])('Empty');
5806        }
5807  
5808        if (!alt) {
5809          return caption || '';
5810        } // This is intended to be read by a screen reader.
5811        // A period simply means a pause, no need to translate it.
5812  
5813  
5814        return alt + (caption ? '. ' + caption : '');
5815      }
5816    },
5817    transforms: image_transforms,
5818    getEditWrapperProps: function getEditWrapperProps(attributes) {
5819      var align = attributes.align,
5820          width = attributes.width;
5821  
5822      if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) {
5823        return {
5824          'data-align': align,
5825          'data-resized': !!width
5826        };
5827      }
5828    },
5829    edit: image_edit,
5830    save: image_save_save,
5831    deprecated: image_deprecated
5832  };
5833  
5834  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading.js
5835  
5836  
5837  /**
5838   * WordPress dependencies
5839   */
5840  
5841  var heading = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
5842    xmlns: "http://www.w3.org/2000/svg",
5843    viewBox: "-2 -2 24 24"
5844  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
5845    d: "M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4"
5846  }));
5847  /* harmony default export */ var library_heading = (heading);
5848  
5849  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
5850  
5851  
5852  
5853  /**
5854   * External dependencies
5855   */
5856  
5857  /**
5858   * WordPress dependencies
5859   */
5860  
5861  
5862  var blockSupports = {
5863    className: false,
5864    anchor: true
5865  };
5866  var heading_deprecated_blockAttributes = {
5867    align: {
5868      type: 'string'
5869    },
5870    content: {
5871      type: 'string',
5872      source: 'html',
5873      selector: 'h1,h2,h3,h4,h5,h6',
5874      default: ''
5875    },
5876    level: {
5877      type: 'number',
5878      default: 2
5879    },
5880    placeholder: {
5881      type: 'string'
5882    },
5883    textColor: {
5884      type: 'string'
5885    },
5886    customTextColor: {
5887      type: 'string'
5888    }
5889  };
5890  var heading_deprecated_deprecated = [{
5891    attributes: heading_deprecated_blockAttributes,
5892    save: function save(_ref) {
5893      var _classnames;
5894  
5895      var attributes = _ref.attributes;
5896      var align = attributes.align,
5897          content = attributes.content,
5898          customTextColor = attributes.customTextColor,
5899          level = attributes.level,
5900          textColor = attributes.textColor;
5901      var tagName = 'h' + level;
5902      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
5903      var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames));
5904      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5905        className: className ? className : undefined,
5906        tagName: tagName,
5907        style: {
5908          color: textClass ? undefined : customTextColor
5909        },
5910        value: content
5911      });
5912    },
5913    supports: blockSupports
5914  }, {
5915    supports: blockSupports,
5916    attributes: heading_deprecated_blockAttributes,
5917    save: function save(_ref2) {
5918      var attributes = _ref2.attributes;
5919      var align = attributes.align,
5920          level = attributes.level,
5921          content = attributes.content,
5922          textColor = attributes.textColor,
5923          customTextColor = attributes.customTextColor;
5924      var tagName = 'h' + level;
5925      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
5926      var className = classnames_default()(Object(defineProperty["a" /* default */])({}, textClass, textClass));
5927      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5928        className: className ? className : undefined,
5929        tagName: tagName,
5930        style: {
5931          textAlign: align,
5932          color: textClass ? undefined : customTextColor
5933        },
5934        value: content
5935      });
5936    }
5937  }];
5938  /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated);
5939  
5940  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js
5941  
5942  
5943  /**
5944   * WordPress dependencies
5945   */
5946  
5947  function HeadingLevelIcon(_ref) {
5948    var level = _ref.level,
5949        _ref$isPressed = _ref.isPressed,
5950        isPressed = _ref$isPressed === void 0 ? false : _ref$isPressed;
5951    var levelToPath = {
5952      1: 'M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z',
5953      2: 'M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z',
5954      3: 'M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z',
5955      4: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z',
5956      5: 'M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z',
5957      6: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z'
5958    };
5959  
5960    if (!levelToPath.hasOwnProperty(level)) {
5961      return null;
5962    }
5963  
5964    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
5965      width: "20",
5966      height: "20",
5967      viewBox: "0 0 20 20",
5968      xmlns: "http://www.w3.org/2000/svg",
5969      isPressed: isPressed
5970    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
5971      d: levelToPath[level]
5972    }));
5973  }
5974  
5975  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js
5976  
5977  
5978  
5979  
5980  
5981  
5982  
5983  /**
5984   * External dependencies
5985   */
5986  
5987  /**
5988   * WordPress dependencies
5989   */
5990  
5991  
5992  
5993  
5994  /**
5995   * Internal dependencies
5996   */
5997  
5998  
5999  
6000  var heading_toolbar_HeadingToolbar =
6001  /*#__PURE__*/
6002  function (_Component) {
6003    Object(inherits["a" /* default */])(HeadingToolbar, _Component);
6004  
6005    function HeadingToolbar() {
6006      Object(classCallCheck["a" /* default */])(this, HeadingToolbar);
6007  
6008      return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments));
6009    }
6010  
6011    Object(createClass["a" /* default */])(HeadingToolbar, [{
6012      key: "createLevelControl",
6013      value: function createLevelControl(targetLevel, selectedLevel, onChange) {
6014        var isActive = targetLevel === selectedLevel;
6015        return {
6016          icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, {
6017            level: targetLevel,
6018            isPressed: isActive
6019          }),
6020          // translators: %s: heading level e.g: "1", "2", "3"
6021          title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel),
6022          isActive: isActive,
6023          onClick: function onClick() {
6024            return onChange(targetLevel);
6025          }
6026        };
6027      }
6028    }, {
6029      key: "render",
6030      value: function render() {
6031        var _this = this;
6032  
6033        var _this$props = this.props,
6034            _this$props$isCollaps = _this$props.isCollapsed,
6035            isCollapsed = _this$props$isCollaps === void 0 ? true : _this$props$isCollaps,
6036            minLevel = _this$props.minLevel,
6037            maxLevel = _this$props.maxLevel,
6038            selectedLevel = _this$props.selectedLevel,
6039            onChange = _this$props.onChange;
6040        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], {
6041          isCollapsed: isCollapsed,
6042          icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, {
6043            level: selectedLevel
6044          }),
6045          controls: Object(external_this_lodash_["range"])(minLevel, maxLevel).map(function (index) {
6046            return _this.createLevelControl(index, selectedLevel, onChange);
6047          }),
6048          label: Object(external_this_wp_i18n_["__"])('Change heading level')
6049        });
6050      }
6051    }]);
6052  
6053    return HeadingToolbar;
6054  }(external_this_wp_element_["Component"]);
6055  
6056  /* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar);
6057  
6058  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js
6059  
6060  
6061  
6062  function heading_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6063  
6064  function heading_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { heading_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { heading_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6065  
6066  /**
6067   * External dependencies
6068   */
6069  
6070  /**
6071   * Internal dependencies
6072   */
6073  
6074  
6075  /**
6076   * WordPress dependencies
6077   */
6078  
6079  
6080  
6081  
6082  
6083  
6084  
6085  function HeadingEdit(_ref) {
6086    var attributes = _ref.attributes,
6087        setAttributes = _ref.setAttributes,
6088        mergeBlocks = _ref.mergeBlocks,
6089        onReplace = _ref.onReplace,
6090        className = _ref.className;
6091    var ref = Object(external_this_wp_element_["useRef"])();
6092  
6093    var _experimentalUseColo = Object(external_this_wp_blockEditor_["__experimentalUseColors"])([{
6094      name: 'textColor',
6095      property: 'color'
6096    }], {
6097      contrastCheckers: {
6098        backgroundColor: true,
6099        textColor: true
6100      },
6101      colorDetector: {
6102        targetRef: ref
6103      }
6104    }, []),
6105        TextColor = _experimentalUseColo.TextColor,
6106        InspectorControlsColorPanel = _experimentalUseColo.InspectorControlsColorPanel;
6107  
6108    var align = attributes.align,
6109        content = attributes.content,
6110        level = attributes.level,
6111        placeholder = attributes.placeholder;
6112    var tagName = 'h' + level;
6113    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(heading_toolbar, {
6114      minLevel: 2,
6115      maxLevel: 5,
6116      selectedLevel: level,
6117      onChange: function onChange(newLevel) {
6118        return setAttributes({
6119          level: newLevel
6120        });
6121      }
6122    }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
6123      value: align,
6124      onChange: function onChange(nextAlign) {
6125        setAttributes({
6126          align: nextAlign
6127        });
6128      }
6129    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
6130      title: Object(external_this_wp_i18n_["__"])('Heading settings')
6131    }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, {
6132      isCollapsed: false,
6133      minLevel: 1,
6134      maxLevel: 7,
6135      selectedLevel: level,
6136      onChange: function onChange(newLevel) {
6137        return setAttributes({
6138          level: newLevel
6139        });
6140      }
6141    }))), InspectorControlsColorPanel, Object(external_this_wp_element_["createElement"])(TextColor, null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
6142      ref: ref,
6143      identifier: "content",
6144      tagName: tagName,
6145      value: content,
6146      onChange: function onChange(value) {
6147        return setAttributes({
6148          content: value
6149        });
6150      },
6151      onMerge: mergeBlocks,
6152      onSplit: function onSplit(value) {
6153        if (!value) {
6154          return Object(external_this_wp_blocks_["createBlock"])('core/paragraph');
6155        }
6156  
6157        return Object(external_this_wp_blocks_["createBlock"])('core/heading', heading_edit_objectSpread({}, attributes, {
6158          content: value
6159        }));
6160      },
6161      onReplace: onReplace,
6162      onRemove: function onRemove() {
6163        return onReplace([]);
6164      },
6165      className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)),
6166      placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…')
6167    })));
6168  }
6169  
6170  /* harmony default export */ var heading_edit = (HeadingEdit);
6171  
6172  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js
6173  
6174  
6175  
6176  /**
6177   * External dependencies
6178   */
6179  
6180  /**
6181   * WordPress dependencies
6182   */
6183  
6184  
6185  function heading_save_save(_ref) {
6186    var _classnames;
6187  
6188    var attributes = _ref.attributes;
6189    var align = attributes.align,
6190        content = attributes.content,
6191        customTextColor = attributes.customTextColor,
6192        level = attributes.level,
6193        textColor = attributes.textColor;
6194    var tagName = 'h' + level;
6195    var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
6196    var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames));
6197    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6198      className: className ? className : undefined,
6199      tagName: tagName,
6200      style: {
6201        color: textClass ? undefined : customTextColor
6202      },
6203      value: content
6204    });
6205  }
6206  
6207  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js
6208  /**
6209   * Given a node name string for a heading node, returns its numeric level.
6210   *
6211   * @param {string} nodeName Heading node name.
6212   *
6213   * @return {number} Heading level.
6214   */
6215  function getLevelFromHeadingNodeName(nodeName) {
6216    return Number(nodeName.substr(1));
6217  }
6218  
6219  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/transforms.js
6220  
6221  
6222  /**
6223   * WordPress dependencies
6224   */
6225  
6226  /**
6227   * Internal dependencies
6228   */
6229  
6230  
6231  var transforms_name$category$attrib = {
6232    name: "core/heading",
6233    category: "common",
6234    attributes: {
6235      align: {
6236        type: "string"
6237      },
6238      content: {
6239        type: "string",
6240        source: "html",
6241        selector: "h1,h2,h3,h4,h5,h6",
6242        "default": ""
6243      },
6244      level: {
6245        type: "number",
6246        "default": 2
6247      },
6248      placeholder: {
6249        type: "string"
6250      },
6251      textColor: {
6252        type: "string"
6253      },
6254      customTextColor: {
6255        type: "string"
6256      }
6257    }
6258  },
6259      heading_transforms_name = transforms_name$category$attrib.name;
6260  var heading_transforms_transforms = {
6261    from: [{
6262      type: 'block',
6263      blocks: ['core/paragraph'],
6264      transform: function transform(_ref) {
6265        var content = _ref.content;
6266        return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, {
6267          content: content
6268        });
6269      }
6270    }, {
6271      type: 'raw',
6272      selector: 'h1,h2,h3,h4,h5,h6',
6273      schema: function schema(_ref2) {
6274        var phrasingContentSchema = _ref2.phrasingContentSchema,
6275            isPaste = _ref2.isPaste;
6276        var schema = {
6277          children: phrasingContentSchema,
6278          attributes: isPaste ? [] : ['style']
6279        };
6280        return {
6281          h1: schema,
6282          h2: schema,
6283          h3: schema,
6284          h4: schema,
6285          h5: schema,
6286          h6: schema
6287        };
6288      },
6289      transform: function transform(node) {
6290        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(heading_transforms_name, node.outerHTML);
6291  
6292        var _ref3 = node.style || {},
6293            textAlign = _ref3.textAlign;
6294  
6295        attributes.level = getLevelFromHeadingNodeName(node.nodeName);
6296  
6297        if (textAlign === 'left' || textAlign === 'center' || textAlign === 'right') {
6298          attributes.align = textAlign;
6299        }
6300  
6301        return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, attributes);
6302      }
6303    }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) {
6304      return {
6305        type: 'prefix',
6306        prefix: Array(level + 1).join('#'),
6307        transform: function transform(content) {
6308          return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, {
6309            level: level,
6310            content: content
6311          });
6312        }
6313      };
6314    }))),
6315    to: [{
6316      type: 'block',
6317      blocks: ['core/paragraph'],
6318      transform: function transform(_ref4) {
6319        var content = _ref4.content;
6320        return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
6321          content: content
6322        });
6323      }
6324    }]
6325  };
6326  /* harmony default export */ var heading_transforms = (heading_transforms_transforms);
6327  
6328  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js
6329  /**
6330   * External dependencies
6331   */
6332  
6333  /**
6334   * WordPress dependencies
6335   */
6336  
6337  
6338  
6339  /**
6340   * Internal dependencies
6341   */
6342  
6343  
6344  
6345  var heading_metadata = {
6346    name: "core/heading",
6347    category: "common",
6348    attributes: {
6349      align: {
6350        type: "string"
6351      },
6352      content: {
6353        type: "string",
6354        source: "html",
6355        selector: "h1,h2,h3,h4,h5,h6",
6356        "default": ""
6357      },
6358      level: {
6359        type: "number",
6360        "default": 2
6361      },
6362      placeholder: {
6363        type: "string"
6364      },
6365      textColor: {
6366        type: "string"
6367      },
6368      customTextColor: {
6369        type: "string"
6370      }
6371    }
6372  };
6373  
6374  
6375  var heading_name = heading_metadata.name;
6376  
6377  var heading_settings = {
6378    title: Object(external_this_wp_i18n_["__"])('Heading'),
6379    description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),
6380    icon: library_heading,
6381    keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')],
6382    supports: {
6383      className: false,
6384      anchor: true,
6385      __unstablePasteTextInline: true
6386    },
6387    example: {
6388      attributes: {
6389        content: Object(external_this_wp_i18n_["__"])('Code is Poetry'),
6390        level: 2
6391      }
6392    },
6393    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
6394      var context = _ref.context;
6395  
6396      if (context === 'accessibility') {
6397        var content = attributes.content,
6398            level = attributes.level;
6399        return Object(external_this_lodash_["isEmpty"])(content) ? Object(external_this_wp_i18n_["sprintf"])(
6400        /* translators: accessibility text. %s: heading level. */
6401        Object(external_this_wp_i18n_["__"])('Level %s. Empty.'), level) : Object(external_this_wp_i18n_["sprintf"])(
6402        /* translators: accessibility text. 1: heading level. 2: heading content. */
6403        Object(external_this_wp_i18n_["__"])('Level %1$s. %2$s'), level, content);
6404      }
6405    },
6406    transforms: heading_transforms,
6407    deprecated: heading_deprecated,
6408    merge: function merge(attributes, attributesToMerge) {
6409      return {
6410        content: (attributes.content || '') + (attributesToMerge.content || '')
6411      };
6412    },
6413    edit: heading_edit,
6414    save: heading_save_save
6415  };
6416  
6417  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/quote.js
6418  
6419  
6420  /**
6421   * WordPress dependencies
6422   */
6423  
6424  var quote = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
6425    viewBox: "0 0 24 24",
6426    xmlns: "http://www.w3.org/2000/svg"
6427  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
6428    d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"
6429  }));
6430  /* harmony default export */ var library_quote = (quote);
6431  
6432  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js
6433  
6434  
6435  
6436  function deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6437  
6438  function deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6439  
6440  /**
6441   * External dependencies
6442   */
6443  
6444  /**
6445   * WordPress dependencies
6446   */
6447  
6448  
6449  var quote_deprecated_blockAttributes = {
6450    value: {
6451      type: 'string',
6452      source: 'html',
6453      selector: 'blockquote',
6454      multiline: 'p',
6455      default: ''
6456    },
6457    citation: {
6458      type: 'string',
6459      source: 'html',
6460      selector: 'cite',
6461      default: ''
6462    },
6463    align: {
6464      type: 'string'
6465    }
6466  };
6467  var quote_deprecated_deprecated = [{
6468    attributes: quote_deprecated_blockAttributes,
6469    save: function save(_ref) {
6470      var attributes = _ref.attributes;
6471      var align = attributes.align,
6472          value = attributes.value,
6473          citation = attributes.citation;
6474      return Object(external_this_wp_element_["createElement"])("blockquote", {
6475        style: {
6476          textAlign: align ? align : null
6477        }
6478      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6479        multiline: true,
6480        value: value
6481      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6482        tagName: "cite",
6483        value: citation
6484      }));
6485    }
6486  }, {
6487    attributes: deprecated_objectSpread({}, quote_deprecated_blockAttributes, {
6488      style: {
6489        type: 'number',
6490        default: 1
6491      }
6492    }),
6493    migrate: function migrate(attributes) {
6494      if (attributes.style === 2) {
6495        return deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['style']), {
6496          className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
6497        });
6498      }
6499  
6500      return attributes;
6501    },
6502    save: function save(_ref2) {
6503      var attributes = _ref2.attributes;
6504      var align = attributes.align,
6505          value = attributes.value,
6506          citation = attributes.citation,
6507          style = attributes.style;
6508      return Object(external_this_wp_element_["createElement"])("blockquote", {
6509        className: style === 2 ? 'is-large' : '',
6510        style: {
6511          textAlign: align ? align : null
6512        }
6513      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6514        multiline: true,
6515        value: value
6516      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6517        tagName: "cite",
6518        value: citation
6519      }));
6520    }
6521  }, {
6522    attributes: deprecated_objectSpread({}, quote_deprecated_blockAttributes, {
6523      citation: {
6524        type: 'string',
6525        source: 'html',
6526        selector: 'footer',
6527        default: ''
6528      },
6529      style: {
6530        type: 'number',
6531        default: 1
6532      }
6533    }),
6534    save: function save(_ref3) {
6535      var attributes = _ref3.attributes;
6536      var align = attributes.align,
6537          value = attributes.value,
6538          citation = attributes.citation,
6539          style = attributes.style;
6540      return Object(external_this_wp_element_["createElement"])("blockquote", {
6541        className: "blocks-quote-style-".concat(style),
6542        style: {
6543          textAlign: align ? align : null
6544        }
6545      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6546        multiline: true,
6547        value: value
6548      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6549        tagName: "footer",
6550        value: citation
6551      }));
6552    }
6553  }];
6554  /* harmony default export */ var quote_deprecated = (quote_deprecated_deprecated);
6555  
6556  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js
6557  
6558  
6559  
6560  function quote_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6561  
6562  function quote_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6563  
6564  /**
6565   * External dependencies
6566   */
6567  
6568  /**
6569   * WordPress dependencies
6570   */
6571  
6572  
6573  
6574  
6575  
6576  function QuoteEdit(_ref) {
6577    var attributes = _ref.attributes,
6578        setAttributes = _ref.setAttributes,
6579        isSelected = _ref.isSelected,
6580        mergeBlocks = _ref.mergeBlocks,
6581        onReplace = _ref.onReplace,
6582        className = _ref.className;
6583    var align = attributes.align,
6584        value = attributes.value,
6585        citation = attributes.citation;
6586    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
6587      value: align,
6588      onChange: function onChange(nextAlign) {
6589        setAttributes({
6590          align: nextAlign
6591        });
6592      }
6593    })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], {
6594      className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align))
6595    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
6596      identifier: "value",
6597      multiline: true,
6598      value: value,
6599      onChange: function onChange(nextValue) {
6600        return setAttributes({
6601          value: nextValue
6602        });
6603      },
6604      onMerge: mergeBlocks,
6605      onRemove: function onRemove(forward) {
6606        var hasEmptyCitation = !citation || citation.length === 0;
6607  
6608        if (!forward && hasEmptyCitation) {
6609          onReplace([]);
6610        }
6611      },
6612      placeholder: // translators: placeholder text used for the quote
6613      Object(external_this_wp_i18n_["__"])('Write quote…'),
6614      onReplace: onReplace,
6615      onSplit: function onSplit(piece) {
6616        return Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_edit_objectSpread({}, attributes, {
6617          value: piece
6618        }));
6619      },
6620      __unstableOnSplitMiddle: function __unstableOnSplitMiddle() {
6621        return Object(external_this_wp_blocks_["createBlock"])('core/paragraph');
6622      }
6623    }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
6624      identifier: "citation",
6625      value: citation,
6626      onChange: function onChange(nextCitation) {
6627        return setAttributes({
6628          citation: nextCitation
6629        });
6630      },
6631      __unstableMobileNoFocusOnMount: true,
6632      placeholder: // translators: placeholder text used for the citation
6633      Object(external_this_wp_i18n_["__"])('Write citation…'),
6634      className: "wp-block-quote__citation"
6635    })));
6636  }
6637  
6638  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js
6639  
6640  
6641  
6642  /**
6643   * External dependencies
6644   */
6645  
6646  /**
6647   * WordPress dependencies
6648   */
6649  
6650  
6651  function quote_save_save(_ref) {
6652    var attributes = _ref.attributes;
6653    var align = attributes.align,
6654        value = attributes.value,
6655        citation = attributes.citation;
6656    var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
6657    return Object(external_this_wp_element_["createElement"])("blockquote", {
6658      className: className
6659    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6660      multiline: true,
6661      value: value
6662    }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6663      tagName: "cite",
6664      value: citation
6665    }));
6666  }
6667  
6668  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
6669  var objectWithoutProperties = __webpack_require__(19);
6670  
6671  // EXTERNAL MODULE: external {"this":["wp","richText"]}
6672  var external_this_wp_richText_ = __webpack_require__(24);
6673  
6674  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js
6675  
6676  
6677  
6678  
6679  function quote_transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6680  
6681  function quote_transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6682  
6683  /**
6684   * WordPress dependencies
6685   */
6686  
6687  
6688  var quote_transforms_transforms = {
6689    from: [{
6690      type: 'block',
6691      isMultiBlock: true,
6692      blocks: ['core/paragraph'],
6693      transform: function transform(attributes) {
6694        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
6695          value: Object(external_this_wp_richText_["toHTMLString"])({
6696            value: Object(external_this_wp_richText_["join"])(attributes.map(function (_ref) {
6697              var content = _ref.content;
6698              return Object(external_this_wp_richText_["create"])({
6699                html: content
6700              });
6701            }), "\u2028"),
6702            multilineTag: 'p'
6703          })
6704        });
6705      }
6706    }, {
6707      type: 'block',
6708      blocks: ['core/heading'],
6709      transform: function transform(_ref2) {
6710        var content = _ref2.content;
6711        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
6712          value: "<p>".concat(content, "</p>")
6713        });
6714      }
6715    }, {
6716      type: 'block',
6717      blocks: ['core/pullquote'],
6718      transform: function transform(_ref3) {
6719        var value = _ref3.value,
6720            citation = _ref3.citation;
6721        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
6722          value: value,
6723          citation: citation
6724        });
6725      }
6726    }, {
6727      type: 'prefix',
6728      prefix: '>',
6729      transform: function transform(content) {
6730        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
6731          value: "<p>".concat(content, "</p>")
6732        });
6733      }
6734    }, {
6735      type: 'raw',
6736      isMatch: function isMatch(node) {
6737        var isParagraphOrSingleCite = function () {
6738          var hasCitation = false;
6739          return function (child) {
6740            // Child is a paragraph.
6741            if (child.nodeName === 'P') {
6742              return true;
6743            } // Child is a cite and no other cite child exists before it.
6744  
6745  
6746            if (!hasCitation && child.nodeName === 'CITE') {
6747              hasCitation = true;
6748              return true;
6749            }
6750          };
6751        }();
6752  
6753        return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph
6754        // content with an optional cite child.
6755        Array.from(node.childNodes).every(isParagraphOrSingleCite);
6756      },
6757      schema: function schema(_ref4) {
6758        var phrasingContentSchema = _ref4.phrasingContentSchema;
6759        return {
6760          blockquote: {
6761            children: {
6762              p: {
6763                children: phrasingContentSchema
6764              },
6765              cite: {
6766                children: phrasingContentSchema
6767              }
6768            }
6769          }
6770        };
6771      }
6772    }],
6773    to: [{
6774      type: 'block',
6775      blocks: ['core/paragraph'],
6776      transform: function transform(_ref5) {
6777        var value = _ref5.value,
6778            citation = _ref5.citation;
6779        var paragraphs = [];
6780  
6781        if (value && value !== '<p></p>') {
6782          paragraphs.push.apply(paragraphs, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({
6783            html: value,
6784            multilineTag: 'p'
6785          }), "\u2028").map(function (piece) {
6786            return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
6787              content: Object(external_this_wp_richText_["toHTMLString"])({
6788                value: piece
6789              })
6790            });
6791          })));
6792        }
6793  
6794        if (citation && citation !== '<p></p>') {
6795          paragraphs.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
6796            content: citation
6797          }));
6798        }
6799  
6800        if (paragraphs.length === 0) {
6801          return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
6802            content: ''
6803          });
6804        }
6805  
6806        return paragraphs;
6807      }
6808    }, {
6809      type: 'block',
6810      blocks: ['core/heading'],
6811      transform: function transform(_ref6) {
6812        var value = _ref6.value,
6813            citation = _ref6.citation,
6814            attrs = Object(objectWithoutProperties["a" /* default */])(_ref6, ["value", "citation"]);
6815  
6816        // If there is no quote content, use the citation as the
6817        // content of the resulting heading. A nonexistent citation
6818        // will result in an empty heading.
6819        if (value === '<p></p>') {
6820          return Object(external_this_wp_blocks_["createBlock"])('core/heading', {
6821            content: citation
6822          });
6823        }
6824  
6825        var pieces = Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({
6826          html: value,
6827          multilineTag: 'p'
6828        }), "\u2028");
6829        var headingBlock = Object(external_this_wp_blocks_["createBlock"])('core/heading', {
6830          content: Object(external_this_wp_richText_["toHTMLString"])({
6831            value: pieces[0]
6832          })
6833        });
6834  
6835        if (!citation && pieces.length === 1) {
6836          return headingBlock;
6837        }
6838  
6839        var quotePieces = pieces.slice(1);
6840        var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_transforms_objectSpread({}, attrs, {
6841          citation: citation,
6842          value: Object(external_this_wp_richText_["toHTMLString"])({
6843            value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(),
6844            multilineTag: 'p'
6845          })
6846        }));
6847        return [headingBlock, quoteBlock];
6848      }
6849    }, {
6850      type: 'block',
6851      blocks: ['core/pullquote'],
6852      transform: function transform(_ref7) {
6853        var value = _ref7.value,
6854            citation = _ref7.citation;
6855        return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', {
6856          value: value,
6857          citation: citation
6858        });
6859      }
6860    }]
6861  };
6862  /* harmony default export */ var quote_transforms = (quote_transforms_transforms);
6863  
6864  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/index.js
6865  
6866  
6867  function quote_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6868  
6869  function quote_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6870  
6871  /**
6872   * WordPress dependencies
6873   */
6874  
6875  
6876  /**
6877   * Internal dependencies
6878   */
6879  
6880  
6881  
6882  var quote_metadata = {
6883    name: "core/quote",
6884    category: "common",
6885    attributes: {
6886      value: {
6887        type: "string",
6888        source: "html",
6889        selector: "blockquote",
6890        multiline: "p",
6891        "default": ""
6892      },
6893      citation: {
6894        type: "string",
6895        source: "html",
6896        selector: "cite",
6897        "default": ""
6898      },
6899      align: {
6900        type: "string"
6901      }
6902    }
6903  };
6904  
6905  
6906  var quote_name = quote_metadata.name;
6907  
6908  var quote_settings = {
6909    title: Object(external_this_wp_i18n_["__"])('Quote'),
6910    description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),
6911    icon: library_quote,
6912    keywords: [Object(external_this_wp_i18n_["__"])('blockquote'), Object(external_this_wp_i18n_["__"])('cite')],
6913    example: {
6914      attributes: {
6915        value: '<p>' + Object(external_this_wp_i18n_["__"])('In quoting others, we cite ourselves.') + '</p>',
6916        citation: 'Julio Cortázar',
6917        className: 'is-style-large'
6918      }
6919    },
6920    styles: [{
6921      name: 'default',
6922      label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
6923      isDefault: true
6924    }, {
6925      name: 'large',
6926      label: Object(external_this_wp_i18n_["_x"])('Large', 'block style')
6927    }],
6928    transforms: quote_transforms,
6929    edit: QuoteEdit,
6930    save: quote_save_save,
6931    merge: function merge(attributes, _ref) {
6932      var value = _ref.value,
6933          citation = _ref.citation;
6934  
6935      // Quote citations cannot be merged. Pick the second one unless it's
6936      // empty.
6937      if (!citation) {
6938        citation = attributes.citation;
6939      }
6940  
6941      if (!value || value === '<p></p>') {
6942        return quote_objectSpread({}, attributes, {
6943          citation: citation
6944        });
6945      }
6946  
6947      return quote_objectSpread({}, attributes, {
6948        value: attributes.value + value,
6949        citation: citation
6950      });
6951    },
6952    deprecated: quote_deprecated
6953  };
6954  
6955  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/gallery.js
6956  
6957  
6958  /**
6959   * WordPress dependencies
6960   */
6961  
6962  var gallery = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
6963    viewBox: "0 0 24 24",
6964    xmlns: "http://www.w3.org/2000/svg"
6965  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
6966    d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"
6967  }));
6968  /* harmony default export */ var library_gallery = (gallery);
6969  
6970  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared.js
6971  /**
6972   * External dependencies
6973   */
6974  
6975  function defaultColumnsNumber(attributes) {
6976    return Math.min(3, attributes.images.length);
6977  }
6978  var shared_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
6979    var sizeSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'large';
6980    var imageProps = Object(external_this_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
6981    imageProps.url = Object(external_this_lodash_["get"])(image, ['sizes', sizeSlug, 'url']) || Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']) || image.url;
6982    var fullUrl = Object(external_this_lodash_["get"])(image, ['sizes', 'full', 'url']) || Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', 'full', 'source_url']);
6983  
6984    if (fullUrl) {
6985      imageProps.fullUrl = fullUrl;
6986    }
6987  
6988    return imageProps;
6989  };
6990  
6991  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js
6992  
6993  
6994  
6995  function gallery_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6996  
6997  function gallery_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { gallery_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { gallery_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6998  
6999  /**
7000   * External dependencies
7001   */
7002  
7003  
7004  /**
7005   * WordPress dependencies
7006   */
7007  
7008  
7009  /**
7010   * Internal dependencies
7011   */
7012  
7013  
7014  var gallery_deprecated_deprecated = [{
7015    attributes: {
7016      images: {
7017        type: 'array',
7018        default: [],
7019        source: 'query',
7020        selector: '.blocks-gallery-item',
7021        query: {
7022          url: {
7023            source: 'attribute',
7024            selector: 'img',
7025            attribute: 'src'
7026          },
7027          fullUrl: {
7028            source: 'attribute',
7029            selector: 'img',
7030            attribute: 'data-full-url'
7031          },
7032          link: {
7033            source: 'attribute',
7034            selector: 'img',
7035            attribute: 'data-link'
7036          },
7037          alt: {
7038            source: 'attribute',
7039            selector: 'img',
7040            attribute: 'alt',
7041            default: ''
7042          },
7043          id: {
7044            source: 'attribute',
7045            selector: 'img',
7046            attribute: 'data-id'
7047          },
7048          caption: {
7049            type: 'string',
7050            source: 'html',
7051            selector: '.blocks-gallery-item__caption'
7052          }
7053        }
7054      },
7055      ids: {
7056        type: 'array',
7057        default: []
7058      },
7059      columns: {
7060        type: 'number'
7061      },
7062      caption: {
7063        type: 'string',
7064        source: 'html',
7065        selector: '.blocks-gallery-caption'
7066      },
7067      imageCrop: {
7068        type: 'boolean',
7069        default: true
7070      },
7071      linkTo: {
7072        type: 'string',
7073        default: 'none'
7074      }
7075    },
7076    supports: {
7077      align: true
7078    },
7079    isEligible: function isEligible(_ref) {
7080      var ids = _ref.ids;
7081      return ids && ids.some(function (id) {
7082        return typeof id === 'string';
7083      });
7084    },
7085    migrate: function migrate(attributes) {
7086      return gallery_deprecated_objectSpread({}, attributes, {
7087        ids: Object(external_this_lodash_["map"])(attributes.ids, function (id) {
7088          var parsedId = parseInt(id, 10);
7089          return Number.isInteger(parsedId) ? parsedId : null;
7090        })
7091      });
7092    },
7093    save: function save(_ref2) {
7094      var attributes = _ref2.attributes;
7095      var images = attributes.images,
7096          _attributes$columns = attributes.columns,
7097          columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
7098          imageCrop = attributes.imageCrop,
7099          caption = attributes.caption,
7100          linkTo = attributes.linkTo;
7101      return Object(external_this_wp_element_["createElement"])("figure", {
7102        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7103      }, Object(external_this_wp_element_["createElement"])("ul", {
7104        className: "blocks-gallery-grid"
7105      }, images.map(function (image) {
7106        var href;
7107  
7108        switch (linkTo) {
7109          case 'media':
7110            href = image.fullUrl || image.url;
7111            break;
7112  
7113          case 'attachment':
7114            href = image.link;
7115            break;
7116        }
7117  
7118        var img = Object(external_this_wp_element_["createElement"])("img", {
7119          src: image.url,
7120          alt: image.alt,
7121          "data-id": image.id,
7122          "data-full-url": image.fullUrl,
7123          "data-link": image.link,
7124          className: image.id ? "wp-image-".concat(image.id) : null
7125        });
7126        return Object(external_this_wp_element_["createElement"])("li", {
7127          key: image.id || image.url,
7128          className: "blocks-gallery-item"
7129        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7130          href: href
7131        }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7132          tagName: "figcaption",
7133          className: "blocks-gallery-item__caption",
7134          value: image.caption
7135        })));
7136      })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7137        tagName: "figcaption",
7138        className: "blocks-gallery-caption",
7139        value: caption
7140      }));
7141    }
7142  }, {
7143    attributes: {
7144      images: {
7145        type: 'array',
7146        default: [],
7147        source: 'query',
7148        selector: 'ul.wp-block-gallery .blocks-gallery-item',
7149        query: {
7150          url: {
7151            source: 'attribute',
7152            selector: 'img',
7153            attribute: 'src'
7154          },
7155          fullUrl: {
7156            source: 'attribute',
7157            selector: 'img',
7158            attribute: 'data-full-url'
7159          },
7160          alt: {
7161            source: 'attribute',
7162            selector: 'img',
7163            attribute: 'alt',
7164            default: ''
7165          },
7166          id: {
7167            source: 'attribute',
7168            selector: 'img',
7169            attribute: 'data-id'
7170          },
7171          link: {
7172            source: 'attribute',
7173            selector: 'img',
7174            attribute: 'data-link'
7175          },
7176          caption: {
7177            type: 'array',
7178            source: 'children',
7179            selector: 'figcaption'
7180          }
7181        }
7182      },
7183      ids: {
7184        type: 'array',
7185        default: []
7186      },
7187      columns: {
7188        type: 'number'
7189      },
7190      imageCrop: {
7191        type: 'boolean',
7192        default: true
7193      },
7194      linkTo: {
7195        type: 'string',
7196        default: 'none'
7197      }
7198    },
7199    supports: {
7200      align: true
7201    },
7202    save: function save(_ref3) {
7203      var attributes = _ref3.attributes;
7204      var images = attributes.images,
7205          _attributes$columns2 = attributes.columns,
7206          columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2,
7207          imageCrop = attributes.imageCrop,
7208          linkTo = attributes.linkTo;
7209      return Object(external_this_wp_element_["createElement"])("ul", {
7210        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7211      }, images.map(function (image) {
7212        var href;
7213  
7214        switch (linkTo) {
7215          case 'media':
7216            href = image.fullUrl || image.url;
7217            break;
7218  
7219          case 'attachment':
7220            href = image.link;
7221            break;
7222        }
7223  
7224        var img = Object(external_this_wp_element_["createElement"])("img", {
7225          src: image.url,
7226          alt: image.alt,
7227          "data-id": image.id,
7228          "data-full-url": image.fullUrl,
7229          "data-link": image.link,
7230          className: image.id ? "wp-image-".concat(image.id) : null
7231        });
7232        return Object(external_this_wp_element_["createElement"])("li", {
7233          key: image.id || image.url,
7234          className: "blocks-gallery-item"
7235        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7236          href: href
7237        }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7238          tagName: "figcaption",
7239          value: image.caption
7240        })));
7241      }));
7242    }
7243  }, {
7244    attributes: {
7245      images: {
7246        type: 'array',
7247        default: [],
7248        source: 'query',
7249        selector: 'ul.wp-block-gallery .blocks-gallery-item',
7250        query: {
7251          url: {
7252            source: 'attribute',
7253            selector: 'img',
7254            attribute: 'src'
7255          },
7256          alt: {
7257            source: 'attribute',
7258            selector: 'img',
7259            attribute: 'alt',
7260            default: ''
7261          },
7262          id: {
7263            source: 'attribute',
7264            selector: 'img',
7265            attribute: 'data-id'
7266          },
7267          link: {
7268            source: 'attribute',
7269            selector: 'img',
7270            attribute: 'data-link'
7271          },
7272          caption: {
7273            type: 'array',
7274            source: 'children',
7275            selector: 'figcaption'
7276          }
7277        }
7278      },
7279      columns: {
7280        type: 'number'
7281      },
7282      imageCrop: {
7283        type: 'boolean',
7284        default: true
7285      },
7286      linkTo: {
7287        type: 'string',
7288        default: 'none'
7289      }
7290    },
7291    isEligible: function isEligible(_ref4) {
7292      var images = _ref4.images,
7293          ids = _ref4.ids;
7294      return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_this_lodash_["some"])(images, function (id, index) {
7295        if (!id && ids[index] !== null) {
7296          return true;
7297        }
7298  
7299        return parseInt(id, 10) !== ids[index];
7300      }));
7301    },
7302    migrate: function migrate(attributes) {
7303      return gallery_deprecated_objectSpread({}, attributes, {
7304        ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref5) {
7305          var id = _ref5.id;
7306  
7307          if (!id) {
7308            return null;
7309          }
7310  
7311          return parseInt(id, 10);
7312        })
7313      });
7314    },
7315    supports: {
7316      align: true
7317    },
7318    save: function save(_ref6) {
7319      var attributes = _ref6.attributes;
7320      var images = attributes.images,
7321          _attributes$columns3 = attributes.columns,
7322          columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3,
7323          imageCrop = attributes.imageCrop,
7324          linkTo = attributes.linkTo;
7325      return Object(external_this_wp_element_["createElement"])("ul", {
7326        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7327      }, images.map(function (image) {
7328        var href;
7329  
7330        switch (linkTo) {
7331          case 'media':
7332            href = image.url;
7333            break;
7334  
7335          case 'attachment':
7336            href = image.link;
7337            break;
7338        }
7339  
7340        var img = Object(external_this_wp_element_["createElement"])("img", {
7341          src: image.url,
7342          alt: image.alt,
7343          "data-id": image.id,
7344          "data-link": image.link,
7345          className: image.id ? "wp-image-".concat(image.id) : null
7346        });
7347        return Object(external_this_wp_element_["createElement"])("li", {
7348          key: image.id || image.url,
7349          className: "blocks-gallery-item"
7350        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7351          href: href
7352        }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7353          tagName: "figcaption",
7354          value: image.caption
7355        })));
7356      }));
7357    }
7358  }, {
7359    attributes: {
7360      images: {
7361        type: 'array',
7362        default: [],
7363        source: 'query',
7364        selector: 'div.wp-block-gallery figure.blocks-gallery-image img',
7365        query: {
7366          url: {
7367            source: 'attribute',
7368            attribute: 'src'
7369          },
7370          alt: {
7371            source: 'attribute',
7372            attribute: 'alt',
7373            default: ''
7374          },
7375          id: {
7376            source: 'attribute',
7377            attribute: 'data-id'
7378          }
7379        }
7380      },
7381      columns: {
7382        type: 'number'
7383      },
7384      imageCrop: {
7385        type: 'boolean',
7386        default: true
7387      },
7388      linkTo: {
7389        type: 'string',
7390        default: 'none'
7391      },
7392      align: {
7393        type: 'string',
7394        default: 'none'
7395      }
7396    },
7397    supports: {
7398      align: true
7399    },
7400    save: function save(_ref7) {
7401      var attributes = _ref7.attributes;
7402      var images = attributes.images,
7403          _attributes$columns4 = attributes.columns,
7404          columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4,
7405          align = attributes.align,
7406          imageCrop = attributes.imageCrop,
7407          linkTo = attributes.linkTo;
7408      var className = classnames_default()("columns-".concat(columns), {
7409        alignnone: align === 'none',
7410        'is-cropped': imageCrop
7411      });
7412      return Object(external_this_wp_element_["createElement"])("div", {
7413        className: className
7414      }, images.map(function (image) {
7415        var href;
7416  
7417        switch (linkTo) {
7418          case 'media':
7419            href = image.url;
7420            break;
7421  
7422          case 'attachment':
7423            href = image.link;
7424            break;
7425        }
7426  
7427        var img = Object(external_this_wp_element_["createElement"])("img", {
7428          src: image.url,
7429          alt: image.alt,
7430          "data-id": image.id
7431        });
7432        return Object(external_this_wp_element_["createElement"])("figure", {
7433          key: image.id || image.url,
7434          className: "blocks-gallery-image"
7435        }, href ? Object(external_this_wp_element_["createElement"])("a", {
7436          href: href
7437        }, img) : img);
7438      }));
7439    }
7440  }];
7441  /* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated);
7442  
7443  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared-icon.js
7444  
7445  
7446  /**
7447   * WordPress dependencies
7448   */
7449  
7450  
7451  var sharedIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
7452    icon: library_gallery
7453  });
7454  
7455  // EXTERNAL MODULE: external {"this":["wp","keycodes"]}
7456  var external_this_wp_keycodes_ = __webpack_require__(22);
7457  
7458  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
7459  var library_close = __webpack_require__(120);
7460  
7461  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icons.js
7462  
7463  
7464  /**
7465   * WordPress dependencies
7466   */
7467  
7468  var leftArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
7469    width: "18",
7470    height: "18",
7471    viewBox: "0 0 18 18",
7472    xmlns: "http://www.w3.org/2000/svg"
7473  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
7474    d: "M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"
7475  }));
7476  var rightArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
7477    width: "18",
7478    height: "18",
7479    viewBox: "0 0 18 18",
7480    xmlns: "http://www.w3.org/2000/svg"
7481  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
7482    d: "M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"
7483  }));
7484  
7485  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js
7486  
7487  
7488  
7489  
7490  
7491  
7492  
7493  
7494  /**
7495   * External dependencies
7496   */
7497  
7498  /**
7499   * WordPress dependencies
7500   */
7501  
7502  
7503  
7504  
7505  
7506  
7507  
7508  
7509  
7510  
7511  /**
7512   * Internal dependencies
7513   */
7514  
7515  
7516  
7517  var gallery_image_GalleryImage =
7518  /*#__PURE__*/
7519  function (_Component) {
7520    Object(inherits["a" /* default */])(GalleryImage, _Component);
7521  
7522    function GalleryImage() {
7523      var _this;
7524  
7525      Object(classCallCheck["a" /* default */])(this, GalleryImage);
7526  
7527      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments));
7528      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
7529      _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
7530      _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
7531      _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this));
7532      _this.state = {
7533        captionSelected: false
7534      };
7535      return _this;
7536    }
7537  
7538    Object(createClass["a" /* default */])(GalleryImage, [{
7539      key: "bindContainer",
7540      value: function bindContainer(ref) {
7541        this.container = ref;
7542      }
7543    }, {
7544      key: "onSelectCaption",
7545      value: function onSelectCaption() {
7546        if (!this.state.captionSelected) {
7547          this.setState({
7548            captionSelected: true
7549          });
7550        }
7551  
7552        if (!this.props.isSelected) {
7553          this.props.onSelect();
7554        }
7555      }
7556    }, {
7557      key: "onSelectImage",
7558      value: function onSelectImage() {
7559        if (!this.props.isSelected) {
7560          this.props.onSelect();
7561        }
7562  
7563        if (this.state.captionSelected) {
7564          this.setState({
7565            captionSelected: false
7566          });
7567        }
7568      }
7569    }, {
7570      key: "onRemoveImage",
7571      value: function onRemoveImage(event) {
7572        if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) {
7573          event.stopPropagation();
7574          event.preventDefault();
7575          this.props.onRemove();
7576        }
7577      }
7578    }, {
7579      key: "componentDidUpdate",
7580      value: function componentDidUpdate(prevProps) {
7581        var _this$props = this.props,
7582            isSelected = _this$props.isSelected,
7583            image = _this$props.image,
7584            url = _this$props.url,
7585            __unstableMarkNextChangeAsNotPersistent = _this$props.__unstableMarkNextChangeAsNotPersistent;
7586  
7587        if (image && !url) {
7588          __unstableMarkNextChangeAsNotPersistent();
7589  
7590          this.props.setAttributes({
7591            url: image.source_url,
7592            alt: image.alt_text
7593          });
7594        } // unselect the caption so when the user selects other image and comeback
7595        // the caption is not immediately selected
7596  
7597  
7598        if (this.state.captionSelected && !isSelected && prevProps.isSelected) {
7599          this.setState({
7600            captionSelected: false
7601          });
7602        }
7603      }
7604    }, {
7605      key: "render",
7606      value: function render() {
7607        var _this$props2 = this.props,
7608            url = _this$props2.url,
7609            alt = _this$props2.alt,
7610            id = _this$props2.id,
7611            linkTo = _this$props2.linkTo,
7612            link = _this$props2.link,
7613            isFirstItem = _this$props2.isFirstItem,
7614            isLastItem = _this$props2.isLastItem,
7615            isSelected = _this$props2.isSelected,
7616            caption = _this$props2.caption,
7617            onRemove = _this$props2.onRemove,
7618            onMoveForward = _this$props2.onMoveForward,
7619            onMoveBackward = _this$props2.onMoveBackward,
7620            setAttributes = _this$props2.setAttributes,
7621            ariaLabel = _this$props2['aria-label'];
7622        var href;
7623  
7624        switch (linkTo) {
7625          case 'media':
7626            href = url;
7627            break;
7628  
7629          case 'attachment':
7630            href = link;
7631            break;
7632        }
7633  
7634        var img = // Disable reason: Image itself is not meant to be interactive, but should
7635        // direct image selection and unfocus caption fields.
7636  
7637        /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
7638        Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", {
7639          src: url,
7640          alt: alt,
7641          "data-id": id,
7642          onClick: this.onSelectImage,
7643          onFocus: this.onSelectImage,
7644          onKeyDown: this.onRemoveImage,
7645          tabIndex: "0",
7646          "aria-label": ariaLabel,
7647          ref: this.bindContainer
7648        }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))
7649        /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
7650        ;
7651        var className = classnames_default()({
7652          'is-selected': isSelected,
7653          'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url)
7654        });
7655        return Object(external_this_wp_element_["createElement"])("figure", {
7656          className: className
7657        }, href ? Object(external_this_wp_element_["createElement"])("a", {
7658          href: href
7659        }, img) : img, Object(external_this_wp_element_["createElement"])("div", {
7660          className: "block-library-gallery-item__move-menu"
7661        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
7662          icon: leftArrow,
7663          onClick: isFirstItem ? undefined : onMoveBackward,
7664          className: "blocks-gallery-item__move-backward",
7665          label: Object(external_this_wp_i18n_["__"])('Move image backward'),
7666          "aria-disabled": isFirstItem,
7667          disabled: !isSelected
7668        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
7669          icon: rightArrow,
7670          onClick: isLastItem ? undefined : onMoveForward,
7671          className: "blocks-gallery-item__move-forward",
7672          label: Object(external_this_wp_i18n_["__"])('Move image forward'),
7673          "aria-disabled": isLastItem,
7674          disabled: !isSelected
7675        })), Object(external_this_wp_element_["createElement"])("div", {
7676          className: "block-library-gallery-item__inline-menu"
7677        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
7678          icon: library_close["a" /* default */],
7679          onClick: onRemove,
7680          className: "blocks-gallery-item__remove",
7681          label: Object(external_this_wp_i18n_["__"])('Remove image'),
7682          disabled: !isSelected
7683        })), (isSelected || caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
7684          tagName: "figcaption",
7685          placeholder: isSelected ? Object(external_this_wp_i18n_["__"])('Write caption…') : null,
7686          value: caption,
7687          isSelected: this.state.captionSelected,
7688          onChange: function onChange(newCaption) {
7689            return setAttributes({
7690              caption: newCaption
7691            });
7692          },
7693          unstableOnFocus: this.onSelectCaption,
7694          inlineToolbar: true
7695        }));
7696      }
7697    }]);
7698  
7699    return GalleryImage;
7700  }(external_this_wp_element_["Component"]);
7701  
7702  /* harmony default export */ var gallery_image = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) {
7703    var _select = select('core'),
7704        getMedia = _select.getMedia;
7705  
7706    var id = ownProps.id;
7707    return {
7708      image: id ? getMedia(id) : null
7709    };
7710  }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
7711    var _dispatch = dispatch('core/block-editor'),
7712        __unstableMarkNextChangeAsNotPersistent = _dispatch.__unstableMarkNextChangeAsNotPersistent;
7713  
7714    return {
7715      __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent
7716    };
7717  })])(gallery_image_GalleryImage));
7718  
7719  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery.js
7720  
7721  
7722  
7723  /**
7724   * External dependencies
7725   */
7726  
7727  /**
7728   * WordPress dependencies
7729   */
7730  
7731  
7732  
7733  /**
7734   * Internal dependencies
7735   */
7736  
7737  
7738  
7739  var gallery_Gallery = function Gallery(props) {
7740    var _classnames;
7741  
7742    var attributes = props.attributes,
7743        className = props.className,
7744        isSelected = props.isSelected,
7745        setAttributes = props.setAttributes,
7746        selectedImage = props.selectedImage,
7747        mediaPlaceholder = props.mediaPlaceholder,
7748        onMoveBackward = props.onMoveBackward,
7749        onMoveForward = props.onMoveForward,
7750        onRemoveImage = props.onRemoveImage,
7751        onSelectImage = props.onSelectImage,
7752        onSetImageAttributes = props.onSetImageAttributes,
7753        onFocusGalleryCaption = props.onFocusGalleryCaption;
7754    var align = attributes.align,
7755        _attributes$columns = attributes.columns,
7756        columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
7757        caption = attributes.caption,
7758        imageCrop = attributes.imageCrop,
7759        images = attributes.images;
7760    var captionClassNames = classnames_default()('blocks-gallery-caption', {
7761      'screen-reader-text': !isSelected && external_this_wp_blockEditor_["RichText"].isEmpty(caption)
7762    });
7763    return Object(external_this_wp_element_["createElement"])("figure", {
7764      className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames))
7765    }, Object(external_this_wp_element_["createElement"])("ul", {
7766      className: "blocks-gallery-grid"
7767    }, images.map(function (img, index) {
7768      /* translators: %1$d is the order number of the image, %2$d is the total number of images. */
7769      var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length);
7770      return Object(external_this_wp_element_["createElement"])("li", {
7771        className: "blocks-gallery-item",
7772        key: img.id || img.url
7773      }, Object(external_this_wp_element_["createElement"])(gallery_image, {
7774        url: img.url,
7775        alt: img.alt,
7776        id: img.id,
7777        isFirstItem: index === 0,
7778        isLastItem: index + 1 === images.length,
7779        isSelected: isSelected && selectedImage === index,
7780        onMoveBackward: onMoveBackward(index),
7781        onMoveForward: onMoveForward(index),
7782        onRemove: onRemoveImage(index),
7783        onSelect: onSelectImage(index),
7784        setAttributes: function setAttributes(attrs) {
7785          return onSetImageAttributes(index, attrs);
7786        },
7787        caption: img.caption,
7788        "aria-label": ariaLabel
7789      }));
7790    })), mediaPlaceholder, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
7791      tagName: "figcaption",
7792      className: captionClassNames,
7793      placeholder: Object(external_this_wp_i18n_["__"])('Write gallery caption…'),
7794      value: caption,
7795      unstableOnFocus: onFocusGalleryCaption,
7796      onChange: function onChange(value) {
7797        return setAttributes({
7798          caption: value
7799        });
7800      },
7801      inlineToolbar: true
7802    }));
7803  };
7804  /* harmony default export */ var gallery_gallery = (gallery_Gallery);
7805  
7806  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js
7807  
7808  
7809  
7810  
7811  
7812  
7813  
7814  
7815  
7816  
7817  
7818  function gallery_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7819  
7820  function gallery_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { gallery_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { gallery_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7821  
7822  /**
7823   * External dependencies
7824   */
7825  
7826  /**
7827   * WordPress dependencies
7828   */
7829  
7830  
7831  
7832  
7833  
7834  
7835  
7836  
7837  
7838  /**
7839   * Internal dependencies
7840   */
7841  
7842  
7843  
7844  
7845  var MAX_COLUMNS = 8;
7846  var linkOptions = [{
7847    value: 'attachment',
7848    label: Object(external_this_wp_i18n_["__"])('Attachment Page')
7849  }, {
7850    value: 'media',
7851    label: Object(external_this_wp_i18n_["__"])('Media File')
7852  }, {
7853    value: 'none',
7854    label: Object(external_this_wp_i18n_["__"])('None')
7855  }];
7856  var edit_ALLOWED_MEDIA_TYPES = ['image'];
7857  var PLACEHOLDER_TEXT = external_this_wp_element_["Platform"].select({
7858    web: Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.'),
7859    native: Object(external_this_wp_i18n_["__"])('ADD MEDIA')
7860  }); // currently this is needed for consistent controls UI on mobile
7861  // this can be removed after control components settle on consistent defaults
7862  
7863  var MOBILE_CONTROL_PROPS = external_this_wp_element_["Platform"].select({
7864    web: {},
7865    native: {
7866      separatorType: 'fullWidth'
7867    }
7868  });
7869  var MOBILE_CONTROL_PROPS_SEPARATOR_NONE = external_this_wp_element_["Platform"].select({
7870    web: {},
7871    native: {
7872      separatorType: 'none'
7873    }
7874  });
7875  
7876  var edit_GalleryEdit =
7877  /*#__PURE__*/
7878  function (_Component) {
7879    Object(inherits["a" /* default */])(GalleryEdit, _Component);
7880  
7881    function GalleryEdit() {
7882      var _this;
7883  
7884      Object(classCallCheck["a" /* default */])(this, GalleryEdit);
7885  
7886      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments));
7887      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
7888      _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(_this));
7889      _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(_this));
7890      _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(_this));
7891      _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(_this));
7892      _this.onMove = _this.onMove.bind(Object(assertThisInitialized["a" /* default */])(_this));
7893      _this.onMoveForward = _this.onMoveForward.bind(Object(assertThisInitialized["a" /* default */])(_this));
7894      _this.onMoveBackward = _this.onMoveBackward.bind(Object(assertThisInitialized["a" /* default */])(_this));
7895      _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
7896      _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this));
7897      _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this));
7898      _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this));
7899      _this.onFocusGalleryCaption = _this.onFocusGalleryCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
7900      _this.getImagesSizeOptions = _this.getImagesSizeOptions.bind(Object(assertThisInitialized["a" /* default */])(_this));
7901      _this.updateImagesSize = _this.updateImagesSize.bind(Object(assertThisInitialized["a" /* default */])(_this));
7902      _this.state = {
7903        selectedImage: null,
7904        attachmentCaptions: null
7905      };
7906      return _this;
7907    }
7908  
7909    Object(createClass["a" /* default */])(GalleryEdit, [{
7910      key: "setAttributes",
7911      value: function setAttributes(attributes) {
7912        if (attributes.ids) {
7913          throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');
7914        }
7915  
7916        if (attributes.images) {
7917          attributes = gallery_edit_objectSpread({}, attributes, {
7918            ids: Object(external_this_lodash_["map"])(attributes.images, 'id')
7919          });
7920        }
7921  
7922        this.props.setAttributes(attributes);
7923      }
7924    }, {
7925      key: "onSelectImage",
7926      value: function onSelectImage(index) {
7927        var _this2 = this;
7928  
7929        return function () {
7930          if (_this2.state.selectedImage !== index) {
7931            _this2.setState({
7932              selectedImage: index
7933            });
7934          }
7935        };
7936      }
7937    }, {
7938      key: "onMove",
7939      value: function onMove(oldIndex, newIndex) {
7940        var images = Object(toConsumableArray["a" /* default */])(this.props.attributes.images);
7941  
7942        images.splice(newIndex, 1, this.props.attributes.images[oldIndex]);
7943        images.splice(oldIndex, 1, this.props.attributes.images[newIndex]);
7944        this.setState({
7945          selectedImage: newIndex
7946        });
7947        this.setAttributes({
7948          images: images
7949        });
7950      }
7951    }, {
7952      key: "onMoveForward",
7953      value: function onMoveForward(oldIndex) {
7954        var _this3 = this;
7955  
7956        return function () {
7957          if (oldIndex === _this3.props.attributes.images.length - 1) {
7958            return;
7959          }
7960  
7961          _this3.onMove(oldIndex, oldIndex + 1);
7962        };
7963      }
7964    }, {
7965      key: "onMoveBackward",
7966      value: function onMoveBackward(oldIndex) {
7967        var _this4 = this;
7968  
7969        return function () {
7970          if (oldIndex === 0) {
7971            return;
7972          }
7973  
7974          _this4.onMove(oldIndex, oldIndex - 1);
7975        };
7976      }
7977    }, {
7978      key: "onRemoveImage",
7979      value: function onRemoveImage(index) {
7980        var _this5 = this;
7981  
7982        return function () {
7983          var images = Object(external_this_lodash_["filter"])(_this5.props.attributes.images, function (img, i) {
7984            return index !== i;
7985          });
7986          var columns = _this5.props.attributes.columns;
7987  
7988          _this5.setState({
7989            selectedImage: null
7990          });
7991  
7992          _this5.setAttributes({
7993            images: images,
7994            columns: columns ? Math.min(images.length, columns) : columns
7995          });
7996        };
7997      }
7998    }, {
7999      key: "selectCaption",
8000      value: function selectCaption(newImage, images, attachmentCaptions) {
8001        var currentImage = Object(external_this_lodash_["find"])(images, {
8002          id: newImage.id
8003        });
8004        var currentImageCaption = currentImage ? currentImage.caption : newImage.caption;
8005  
8006        if (!attachmentCaptions) {
8007          return currentImageCaption;
8008        }
8009  
8010        var attachment = Object(external_this_lodash_["find"])(attachmentCaptions, {
8011          id: newImage.id
8012        }); // if the attachment caption is updated
8013  
8014        if (attachment && attachment.caption !== newImage.caption) {
8015          return newImage.caption;
8016        }
8017  
8018        return currentImageCaption;
8019      }
8020    }, {
8021      key: "onSelectImages",
8022      value: function onSelectImages(newImages) {
8023        var _this6 = this;
8024  
8025        var _this$props$attribute = this.props.attributes,
8026            columns = _this$props$attribute.columns,
8027            images = _this$props$attribute.images,
8028            sizeSlug = _this$props$attribute.sizeSlug;
8029        var attachmentCaptions = this.state.attachmentCaptions;
8030        this.setState({
8031          attachmentCaptions: newImages.map(function (newImage) {
8032            return {
8033              id: newImage.id,
8034              caption: newImage.caption
8035            };
8036          })
8037        });
8038        this.setAttributes({
8039          images: newImages.map(function (newImage) {
8040            return gallery_edit_objectSpread({}, shared_pickRelevantMediaFiles(newImage, sizeSlug), {
8041              caption: _this6.selectCaption(newImage, images, attachmentCaptions)
8042            });
8043          }),
8044          columns: columns ? Math.min(newImages.length, columns) : columns
8045        });
8046      }
8047    }, {
8048      key: "onUploadError",
8049      value: function onUploadError(message) {
8050        var noticeOperations = this.props.noticeOperations;
8051        noticeOperations.removeAllNotices();
8052        noticeOperations.createErrorNotice(message);
8053      }
8054    }, {
8055      key: "setLinkTo",
8056      value: function setLinkTo(value) {
8057        this.setAttributes({
8058          linkTo: value
8059        });
8060      }
8061    }, {
8062      key: "setColumnsNumber",
8063      value: function setColumnsNumber(value) {
8064        this.setAttributes({
8065          columns: value
8066        });
8067      }
8068    }, {
8069      key: "toggleImageCrop",
8070      value: function toggleImageCrop() {
8071        this.setAttributes({
8072          imageCrop: !this.props.attributes.imageCrop
8073        });
8074      }
8075    }, {
8076      key: "getImageCropHelp",
8077      value: function getImageCropHelp(checked) {
8078        return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.');
8079      }
8080    }, {
8081      key: "onFocusGalleryCaption",
8082      value: function onFocusGalleryCaption() {
8083        this.setState({
8084          selectedImage: null
8085        });
8086      }
8087    }, {
8088      key: "setImageAttributes",
8089      value: function setImageAttributes(index, attributes) {
8090        var images = this.props.attributes.images;
8091        var setAttributes = this.setAttributes;
8092  
8093        if (!images[index]) {
8094          return;
8095        }
8096  
8097        setAttributes({
8098          images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [gallery_edit_objectSpread({}, images[index], {}, attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1)))
8099        });
8100      }
8101    }, {
8102      key: "getImagesSizeOptions",
8103      value: function getImagesSizeOptions() {
8104        var _this$props = this.props,
8105            imageSizes = _this$props.imageSizes,
8106            resizedImages = _this$props.resizedImages;
8107        return Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref) {
8108          var slug = _ref.slug;
8109          return Object(external_this_lodash_["some"])(resizedImages, function (sizes) {
8110            return sizes[slug];
8111          });
8112        }), function (_ref2) {
8113          var name = _ref2.name,
8114              slug = _ref2.slug;
8115          return {
8116            value: slug,
8117            label: name
8118          };
8119        });
8120      }
8121    }, {
8122      key: "updateImagesSize",
8123      value: function updateImagesSize(sizeSlug) {
8124        var _this$props2 = this.props,
8125            images = _this$props2.attributes.images,
8126            resizedImages = _this$props2.resizedImages;
8127        var updatedImages = Object(external_this_lodash_["map"])(images, function (image) {
8128          if (!image.id) {
8129            return image;
8130          }
8131  
8132          var url = Object(external_this_lodash_["get"])(resizedImages, [parseInt(image.id, 10), sizeSlug]);
8133          return gallery_edit_objectSpread({}, image, {}, url && {
8134            url: url
8135          });
8136        });
8137        this.setAttributes({
8138          images: updatedImages,
8139          sizeSlug: sizeSlug
8140        });
8141      }
8142    }, {
8143      key: "componentDidMount",
8144      value: function componentDidMount() {
8145        var _this$props3 = this.props,
8146            attributes = _this$props3.attributes,
8147            mediaUpload = _this$props3.mediaUpload;
8148        var images = attributes.images;
8149  
8150        if (external_this_wp_element_["Platform"].OS === 'web' && images && images.length > 0 && Object(external_this_lodash_["every"])(images, function (_ref3) {
8151          var url = _ref3.url;
8152          return Object(external_this_wp_blob_["isBlobURL"])(url);
8153        })) {
8154          var filesList = Object(external_this_lodash_["map"])(images, function (_ref4) {
8155            var url = _ref4.url;
8156            return Object(external_this_wp_blob_["getBlobByURL"])(url);
8157          });
8158          Object(external_this_lodash_["forEach"])(images, function (_ref5) {
8159            var url = _ref5.url;
8160            return Object(external_this_wp_blob_["revokeBlobURL"])(url);
8161          });
8162          mediaUpload({
8163            filesList: filesList,
8164            onFileChange: this.onSelectImages,
8165            allowedTypes: ['image']
8166          });
8167        }
8168      }
8169    }, {
8170      key: "componentDidUpdate",
8171      value: function componentDidUpdate(prevProps) {
8172        // Deselect images when deselecting the block
8173        if (!this.props.isSelected && prevProps.isSelected) {
8174          this.setState({
8175            selectedImage: null,
8176            captionSelected: false
8177          });
8178        }
8179      }
8180    }, {
8181      key: "render",
8182      value: function render() {
8183        var _this$props4 = this.props,
8184            attributes = _this$props4.attributes,
8185            className = _this$props4.className,
8186            isSelected = _this$props4.isSelected,
8187            noticeUI = _this$props4.noticeUI;
8188        var _attributes$columns = attributes.columns,
8189            columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
8190            imageCrop = attributes.imageCrop,
8191            images = attributes.images,
8192            linkTo = attributes.linkTo,
8193            sizeSlug = attributes.sizeSlug;
8194        var hasImages = !!images.length;
8195        var hasImagesWithId = hasImages && Object(external_this_lodash_["some"])(images, function (_ref6) {
8196          var id = _ref6.id;
8197          return id;
8198        });
8199        var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], {
8200          addToGallery: hasImagesWithId,
8201          isAppender: hasImages,
8202          className: className,
8203          disableMediaButtons: hasImages && !isSelected,
8204          icon: !hasImages && sharedIcon,
8205          labels: {
8206            title: !hasImages && Object(external_this_wp_i18n_["__"])('Gallery'),
8207            instructions: !hasImages && PLACEHOLDER_TEXT
8208          },
8209          onSelect: this.onSelectImages,
8210          accept: "image/*",
8211          allowedTypes: edit_ALLOWED_MEDIA_TYPES,
8212          multiple: true,
8213          value: hasImagesWithId ? images : undefined,
8214          onError: this.onUploadError,
8215          notices: hasImages ? undefined : noticeUI,
8216          onFocus: this.props.onFocus
8217        });
8218  
8219        if (!hasImages) {
8220          return mediaPlaceholder;
8221        }
8222  
8223        var imageSizeOptions = this.getImagesSizeOptions();
8224        var shouldShowSizeOptions = hasImages && !Object(external_this_lodash_["isEmpty"])(imageSizeOptions); // This is needed to fix a separator fence-post issue on mobile.
8225  
8226        var mobileLinkToProps = shouldShowSizeOptions ? MOBILE_CONTROL_PROPS : MOBILE_CONTROL_PROPS_SEPARATOR_NONE;
8227        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
8228