[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> url.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["url"] =
   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 = 378);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 222:
  91  /***/ (function(module, exports, __webpack_require__) {
  92  
  93  "use strict";
  94  
  95  
  96  var has = Object.prototype.hasOwnProperty;
  97  var isArray = Array.isArray;
  98  
  99  var hexTable = (function () {
 100      var array = [];
 101      for (var i = 0; i < 256; ++i) {
 102          array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
 103      }
 104  
 105      return array;
 106  }());
 107  
 108  var compactQueue = function compactQueue(queue) {
 109      while (queue.length > 1) {
 110          var item = queue.pop();
 111          var obj = item.obj[item.prop];
 112  
 113          if (isArray(obj)) {
 114              var compacted = [];
 115  
 116              for (var j = 0; j < obj.length; ++j) {
 117                  if (typeof obj[j] !== 'undefined') {
 118                      compacted.push(obj[j]);
 119                  }
 120              }
 121  
 122              item.obj[item.prop] = compacted;
 123          }
 124      }
 125  };
 126  
 127  var arrayToObject = function arrayToObject(source, options) {
 128      var obj = options && options.plainObjects ? Object.create(null) : {};
 129      for (var i = 0; i < source.length; ++i) {
 130          if (typeof source[i] !== 'undefined') {
 131              obj[i] = source[i];
 132          }
 133      }
 134  
 135      return obj;
 136  };
 137  
 138  var merge = function merge(target, source, options) {
 139      if (!source) {
 140          return target;
 141      }
 142  
 143      if (typeof source !== 'object') {
 144          if (isArray(target)) {
 145              target.push(source);
 146          } else if (target && typeof target === 'object') {
 147              if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
 148                  target[source] = true;
 149              }
 150          } else {
 151              return [target, source];
 152          }
 153  
 154          return target;
 155      }
 156  
 157      if (!target || typeof target !== 'object') {
 158          return [target].concat(source);
 159      }
 160  
 161      var mergeTarget = target;
 162      if (isArray(target) && !isArray(source)) {
 163          mergeTarget = arrayToObject(target, options);
 164      }
 165  
 166      if (isArray(target) && isArray(source)) {
 167          source.forEach(function (item, i) {
 168              if (has.call(target, i)) {
 169                  var targetItem = target[i];
 170                  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
 171                      target[i] = merge(targetItem, item, options);
 172                  } else {
 173                      target.push(item);
 174                  }
 175              } else {
 176                  target[i] = item;
 177              }
 178          });
 179          return target;
 180      }
 181  
 182      return Object.keys(source).reduce(function (acc, key) {
 183          var value = source[key];
 184  
 185          if (has.call(acc, key)) {
 186              acc[key] = merge(acc[key], value, options);
 187          } else {
 188              acc[key] = value;
 189          }
 190          return acc;
 191      }, mergeTarget);
 192  };
 193  
 194  var assign = function assignSingleSource(target, source) {
 195      return Object.keys(source).reduce(function (acc, key) {
 196          acc[key] = source[key];
 197          return acc;
 198      }, target);
 199  };
 200  
 201  var decode = function (str, decoder, charset) {
 202      var strWithoutPlus = str.replace(/\+/g, ' ');
 203      if (charset === 'iso-8859-1') {
 204          // unescape never throws, no try...catch needed:
 205          return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
 206      }
 207      // utf-8
 208      try {
 209          return decodeURIComponent(strWithoutPlus);
 210      } catch (e) {
 211          return strWithoutPlus;
 212      }
 213  };
 214  
 215  var encode = function encode(str, defaultEncoder, charset) {
 216      // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
 217      // It has been adapted here for stricter adherence to RFC 3986
 218      if (str.length === 0) {
 219          return str;
 220      }
 221  
 222      var string = typeof str === 'string' ? str : String(str);
 223  
 224      if (charset === 'iso-8859-1') {
 225          return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
 226              return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
 227          });
 228      }
 229  
 230      var out = '';
 231      for (var i = 0; i < string.length; ++i) {
 232          var c = string.charCodeAt(i);
 233  
 234          if (
 235              c === 0x2D // -
 236              || c === 0x2E // .
 237              || c === 0x5F // _
 238              || c === 0x7E // ~
 239              || (c >= 0x30 && c <= 0x39) // 0-9
 240              || (c >= 0x41 && c <= 0x5A) // a-z
 241              || (c >= 0x61 && c <= 0x7A) // A-Z
 242          ) {
 243              out += string.charAt(i);
 244              continue;
 245          }
 246  
 247          if (c < 0x80) {
 248              out = out + hexTable[c];
 249              continue;
 250          }
 251  
 252          if (c < 0x800) {
 253              out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
 254              continue;
 255          }
 256  
 257          if (c < 0xD800 || c >= 0xE000) {
 258              out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
 259              continue;
 260          }
 261  
 262          i += 1;
 263          c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
 264          out += hexTable[0xF0 | (c >> 18)]
 265              + hexTable[0x80 | ((c >> 12) & 0x3F)]
 266              + hexTable[0x80 | ((c >> 6) & 0x3F)]
 267              + hexTable[0x80 | (c & 0x3F)];
 268      }
 269  
 270      return out;
 271  };
 272  
 273  var compact = function compact(value) {
 274      var queue = [{ obj: { o: value }, prop: 'o' }];
 275      var refs = [];
 276  
 277      for (var i = 0; i < queue.length; ++i) {
 278          var item = queue[i];
 279          var obj = item.obj[item.prop];
 280  
 281          var keys = Object.keys(obj);
 282          for (var j = 0; j < keys.length; ++j) {
 283              var key = keys[j];
 284              var val = obj[key];
 285              if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
 286                  queue.push({ obj: obj, prop: key });
 287                  refs.push(val);
 288              }
 289          }
 290      }
 291  
 292      compactQueue(queue);
 293  
 294      return value;
 295  };
 296  
 297  var isRegExp = function isRegExp(obj) {
 298      return Object.prototype.toString.call(obj) === '[object RegExp]';
 299  };
 300  
 301  var isBuffer = function isBuffer(obj) {
 302      if (!obj || typeof obj !== 'object') {
 303          return false;
 304      }
 305  
 306      return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
 307  };
 308  
 309  var combine = function combine(a, b) {
 310      return [].concat(a, b);
 311  };
 312  
 313  module.exports = {
 314      arrayToObject: arrayToObject,
 315      assign: assign,
 316      combine: combine,
 317      compact: compact,
 318      decode: decode,
 319      encode: encode,
 320      isBuffer: isBuffer,
 321      isRegExp: isRegExp,
 322      merge: merge
 323  };
 324  
 325  
 326  /***/ }),
 327  
 328  /***/ 223:
 329  /***/ (function(module, exports, __webpack_require__) {
 330  
 331  "use strict";
 332  
 333  
 334  var replace = String.prototype.replace;
 335  var percentTwenties = /%20/g;
 336  
 337  module.exports = {
 338      'default': 'RFC3986',
 339      formatters: {
 340          RFC1738: function (value) {
 341              return replace.call(value, percentTwenties, '+');
 342          },
 343          RFC3986: function (value) {
 344              return value;
 345          }
 346      },
 347      RFC1738: 'RFC1738',
 348      RFC3986: 'RFC3986'
 349  };
 350  
 351  
 352  /***/ }),
 353  
 354  /***/ 378:
 355  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 356  
 357  "use strict";
 358  __webpack_require__.r(__webpack_exports__);
 359  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isURL", function() { return isURL; });
 360  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmail", function() { return isEmail; });
 361  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getProtocol", function() { return getProtocol; });
 362  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidProtocol", function() { return isValidProtocol; });
 363  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAuthority", function() { return getAuthority; });
 364  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidAuthority", function() { return isValidAuthority; });
 365  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPath", function() { return getPath; });
 366  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidPath", function() { return isValidPath; });
 367  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQueryString", function() { return getQueryString; });
 368  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidQueryString", function() { return isValidQueryString; });
 369  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFragment", function() { return getFragment; });
 370  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidFragment", function() { return isValidFragment; });
 371  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addQueryArgs", function() { return addQueryArgs; });
 372  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQueryArg", function() { return getQueryArg; });
 373  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasQueryArg", function() { return hasQueryArg; });
 374  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeQueryArgs", function() { return removeQueryArgs; });
 375  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prependHTTP", function() { return prependHTTP; });
 376  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "safeDecodeURI", function() { return safeDecodeURI; });
 377  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterURLForDisplay", function() { return filterURLForDisplay; });
 378  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "safeDecodeURIComponent", function() { return safeDecodeURIComponent; });
 379  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91);
 380  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
 381  /**
 382   * External dependencies
 383   */
 384  
 385  var URL_REGEXP = /^(?:https?:)?\/\/\S+$/i;
 386  var EMAIL_REGEXP = /^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;
 387  var USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\?|\.|\/)/i;
 388  /**
 389   * @typedef {{[key: string]: QueryArgParsed}} QueryArgObject
 390   */
 391  
 392  /**
 393   * @typedef {string|string[]|QueryArgObject} QueryArgParsed
 394   */
 395  
 396  /**
 397   * Determines whether the given string looks like a URL.
 398   *
 399   * @param {string} url The string to scrutinise.
 400   *
 401   * @example
 402   * ```js
 403   * const isURL = isURL( 'https://wordpress.org' ); // true
 404   * ```
 405   *
 406   * @return {boolean} Whether or not it looks like a URL.
 407   */
 408  
 409  function isURL(url) {
 410    return URL_REGEXP.test(url);
 411  }
 412  /**
 413   * Determines whether the given string looks like an email.
 414   *
 415   * @param {string} email The string to scrutinise.
 416   *
 417   * @example
 418   * ```js
 419   * const isEmail = isEmail( 'hello@wordpress.org' ); // true
 420   * ```
 421   *
 422   * @return {boolean} Whether or not it looks like an email.
 423   */
 424  
 425  function isEmail(email) {
 426    return EMAIL_REGEXP.test(email);
 427  }
 428  /**
 429   * Returns the protocol part of the URL.
 430   *
 431   * @param {string} url The full URL.
 432   *
 433   * @example
 434   * ```js
 435   * const protocol1 = getProtocol( 'tel:012345678' ); // 'tel:'
 436   * const protocol2 = getProtocol( 'https://wordpress.org' ); // 'https:'
 437   * ```
 438   *
 439   * @return {string|void} The protocol part of the URL.
 440   */
 441  
 442  function getProtocol(url) {
 443    var matches = /^([^\s:]+:)/.exec(url);
 444  
 445    if (matches) {
 446      return matches[1];
 447    }
 448  }
 449  /**
 450   * Tests if a url protocol is valid.
 451   *
 452   * @param {string} protocol The url protocol.
 453   *
 454   * @example
 455   * ```js
 456   * const isValid = isValidProtocol( 'https:' ); // true
 457   * const isNotValid = isValidProtocol( 'https :' ); // false
 458   * ```
 459   *
 460   * @return {boolean} True if the argument is a valid protocol (e.g. http:, tel:).
 461   */
 462  
 463  function isValidProtocol(protocol) {
 464    if (!protocol) {
 465      return false;
 466    }
 467  
 468    return /^[a-z\-.\+]+[0-9]*:$/i.test(protocol);
 469  }
 470  /**
 471   * Returns the authority part of the URL.
 472   *
 473   * @param {string} url The full URL.
 474   *
 475   * @example
 476   * ```js
 477   * const authority1 = getAuthority( 'https://wordpress.org/help/' ); // 'wordpress.org'
 478   * const authority2 = getAuthority( 'https://localhost:8080/test/' ); // 'localhost:8080'
 479   * ```
 480   *
 481   * @return {string|void} The authority part of the URL.
 482   */
 483  
 484  function getAuthority(url) {
 485    var matches = /^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(url);
 486  
 487    if (matches) {
 488      return matches[1];
 489    }
 490  }
 491  /**
 492   * Checks for invalid characters within the provided authority.
 493   *
 494   * @param {string} authority A string containing the URL authority.
 495   *
 496   * @example
 497   * ```js
 498   * const isValid = isValidAuthority( 'wordpress.org' ); // true
 499   * const isNotValid = isValidAuthority( 'wordpress#org' ); // false
 500   * ```
 501   *
 502   * @return {boolean} True if the argument contains a valid authority.
 503   */
 504  
 505  function isValidAuthority(authority) {
 506    if (!authority) {
 507      return false;
 508    }
 509  
 510    return /^[^\s#?]+$/.test(authority);
 511  }
 512  /**
 513   * Returns the path part of the URL.
 514   *
 515   * @param {string} url The full URL.
 516   *
 517   * @example
 518   * ```js
 519   * const path1 = getPath( 'http://localhost:8080/this/is/a/test?query=true' ); // 'this/is/a/test'
 520   * const path2 = getPath( 'https://wordpress.org/help/faq/' ); // 'help/faq'
 521   * ```
 522   *
 523   * @return {string|void} The path part of the URL.
 524   */
 525  
 526  function getPath(url) {
 527    var matches = /^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(url);
 528  
 529    if (matches) {
 530      return matches[1];
 531    }
 532  }
 533  /**
 534   * Checks for invalid characters within the provided path.
 535   *
 536   * @param {string} path The URL path.
 537   *
 538   * @example
 539   * ```js
 540   * const isValid = isValidPath( 'test/path/' ); // true
 541   * const isNotValid = isValidPath( '/invalid?test/path/' ); // false
 542   * ```
 543   *
 544   * @return {boolean} True if the argument contains a valid path
 545   */
 546  
 547  function isValidPath(path) {
 548    if (!path) {
 549      return false;
 550    }
 551  
 552    return /^[^\s#?]+$/.test(path);
 553  }
 554  /**
 555   * Returns the query string part of the URL.
 556   *
 557   * @param {string} url The full URL.
 558   *
 559   * @example
 560   * ```js
 561   * const queryString1 = getQueryString( 'http://localhost:8080/this/is/a/test?query=true#fragment' ); // 'query=true'
 562   * const queryString2 = getQueryString( 'https://wordpress.org#fragment?query=false&search=hello' ); // 'query=false&search=hello'
 563   * ```
 564   *
 565   * @return {string|void} The query string part of the URL.
 566   */
 567  
 568  function getQueryString(url) {
 569    var matches = /^\S+?\?([^\s#]+)/.exec(url);
 570  
 571    if (matches) {
 572      return matches[1];
 573    }
 574  }
 575  /**
 576   * Checks for invalid characters within the provided query string.
 577   *
 578   * @param {string} queryString The query string.
 579   *
 580   * @example
 581   * ```js
 582   * const isValid = isValidQueryString( 'query=true&another=false' ); // true
 583   * const isNotValid = isValidQueryString( 'query=true?another=false' ); // false
 584   * ```
 585   *
 586   * @return {boolean} True if the argument contains a valid query string.
 587   */
 588  
 589  function isValidQueryString(queryString) {
 590    if (!queryString) {
 591      return false;
 592    }
 593  
 594    return /^[^\s#?\/]+$/.test(queryString);
 595  }
 596  /**
 597   * Returns the fragment part of the URL.
 598   *
 599   * @param {string} url The full URL
 600   *
 601   * @example
 602   * ```js
 603   * const fragment1 = getFragment( 'http://localhost:8080/this/is/a/test?query=true#fragment' ); // '#fragment'
 604   * const fragment2 = getFragment( 'https://wordpress.org#another-fragment?query=true' ); // '#another-fragment'
 605   * ```
 606   *
 607   * @return {string|void} The fragment part of the URL.
 608   */
 609  
 610  function getFragment(url) {
 611    var matches = /^\S+?(#[^\s\?]*)/.exec(url);
 612  
 613    if (matches) {
 614      return matches[1];
 615    }
 616  }
 617  /**
 618   * Checks for invalid characters within the provided fragment.
 619   *
 620   * @param {string} fragment The url fragment.
 621   *
 622   * @example
 623   * ```js
 624   * const isValid = isValidFragment( '#valid-fragment' ); // true
 625   * const isNotValid = isValidFragment( '#invalid-#fragment' ); // false
 626   * ```
 627   *
 628   * @return {boolean} True if the argument contains a valid fragment.
 629   */
 630  
 631  function isValidFragment(fragment) {
 632    if (!fragment) {
 633      return false;
 634    }
 635  
 636    return /^#[^\s#?\/]*$/.test(fragment);
 637  }
 638  /**
 639   * Appends arguments as querystring to the provided URL. If the URL already
 640   * includes query arguments, the arguments are merged with (and take precedent
 641   * over) the existing set.
 642   *
 643   * @param {string} [url='']  URL to which arguments should be appended. If omitted,
 644   *                           only the resulting querystring is returned.
 645   * @param {Object} args      Query arguments to apply to URL.
 646   *
 647   * @example
 648   * ```js
 649   * const newURL = addQueryArgs( 'https://google.com', { q: 'test' } ); // https://google.com/?q=test
 650   * ```
 651   *
 652   * @return {string} URL with arguments applied.
 653   */
 654  
 655  function addQueryArgs() {
 656    var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
 657    var args = arguments.length > 1 ? arguments[1] : undefined;
 658  
 659    // If no arguments are to be appended, return original URL.
 660    if (!args || !Object.keys(args).length) {
 661      return url;
 662    }
 663  
 664    var baseUrl = url; // Determine whether URL already had query arguments.
 665  
 666    var queryStringIndex = url.indexOf('?');
 667  
 668    if (queryStringIndex !== -1) {
 669      // Merge into existing query arguments.
 670      args = Object.assign(Object(qs__WEBPACK_IMPORTED_MODULE_0__["parse"])(url.substr(queryStringIndex + 1)), args); // Change working base URL to omit previous query arguments.
 671  
 672      baseUrl = baseUrl.substr(0, queryStringIndex);
 673    }
 674  
 675    return baseUrl + '?' + Object(qs__WEBPACK_IMPORTED_MODULE_0__["stringify"])(args);
 676  }
 677  /**
 678   * Returns a single query argument of the url
 679   *
 680   * @param {string} url URL.
 681   * @param {string} arg Query arg name.
 682   *
 683   * @example
 684   * ```js
 685   * const foo = getQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'foo' ); // bar
 686   * ```
 687   *
 688   * @return {QueryArgParsed|undefined} Query arg value.
 689   */
 690  
 691  function getQueryArg(url, arg) {
 692    var queryStringIndex = url.indexOf('?');
 693    var query = queryStringIndex !== -1 ? Object(qs__WEBPACK_IMPORTED_MODULE_0__["parse"])(url.substr(queryStringIndex + 1)) : {};
 694    return query[arg];
 695  }
 696  /**
 697   * Determines whether the URL contains a given query arg.
 698   *
 699   * @param {string} url URL.
 700   * @param {string} arg Query arg name.
 701   *
 702   * @example
 703   * ```js
 704   * const hasBar = hasQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'bar' ); // true
 705   * ```
 706   *
 707   * @return {boolean} Whether or not the URL contains the query arg.
 708   */
 709  
 710  function hasQueryArg(url, arg) {
 711    return getQueryArg(url, arg) !== undefined;
 712  }
 713  /**
 714   * Removes arguments from the query string of the url
 715   *
 716   * @param {string}    url  URL.
 717   * @param {...string} args Query Args.
 718   *
 719   * @example
 720   * ```js
 721   * const newUrl = removeQueryArgs( 'https://wordpress.org?foo=bar&bar=baz&baz=foobar', 'foo', 'bar' ); // https://wordpress.org?baz=foobar
 722   * ```
 723   *
 724   * @return {string} Updated URL.
 725   */
 726  
 727  function removeQueryArgs(url) {
 728    var queryStringIndex = url.indexOf('?');
 729    var query = queryStringIndex !== -1 ? Object(qs__WEBPACK_IMPORTED_MODULE_0__["parse"])(url.substr(queryStringIndex + 1)) : {};
 730    var baseUrl = queryStringIndex !== -1 ? url.substr(0, queryStringIndex) : url;
 731  
 732    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
 733      args[_key - 1] = arguments[_key];
 734    }
 735  
 736    args.forEach(function (arg) {
 737      return delete query[arg];
 738    });
 739    return baseUrl + '?' + Object(qs__WEBPACK_IMPORTED_MODULE_0__["stringify"])(query);
 740  }
 741  /**
 742   * Prepends "http://" to a url, if it looks like something that is meant to be a TLD.
 743   *
 744   * @param {string} url The URL to test.
 745   *
 746   * @example
 747   * ```js
 748   * const actualURL = prependHTTP( 'wordpress.org' ); // http://wordpress.org
 749   * ```
 750   *
 751   * @return {string} The updated URL.
 752   */
 753  
 754  function prependHTTP(url) {
 755    url = url.trim();
 756  
 757    if (!USABLE_HREF_REGEXP.test(url) && !EMAIL_REGEXP.test(url)) {
 758      return 'http://' + url;
 759    }
 760  
 761    return url;
 762  }
 763  /**
 764   * Safely decodes a URI with `decodeURI`. Returns the URI unmodified if
 765   * `decodeURI` throws an error.
 766   *
 767   * @param {string} uri URI to decode.
 768   *
 769   * @example
 770   * ```js
 771   * const badUri = safeDecodeURI( '%z' ); // does not throw an Error, simply returns '%z'
 772   * ```
 773   *
 774   * @return {string} Decoded URI if possible.
 775   */
 776  
 777  function safeDecodeURI(uri) {
 778    try {
 779      return decodeURI(uri);
 780    } catch (uriError) {
 781      return uri;
 782    }
 783  }
 784  /**
 785   * Returns a URL for display.
 786   *
 787   * @param {string} url Original URL.
 788   *
 789   * @example
 790   * ```js
 791   * const displayUrl = filterURLForDisplay( 'https://www.wordpress.org/gutenberg/' ); // wordpress.org/gutenberg
 792   * ```
 793   *
 794   * @return {string} Displayed URL.
 795   */
 796  
 797  function filterURLForDisplay(url) {
 798    // Remove protocol and www prefixes.
 799    var filteredURL = url.replace(/^(?:https?:)\/\/(?:www\.)?/, ''); // Ends with / and only has that single slash, strip it.
 800  
 801    if (filteredURL.match(/^[^\/]+\/$/)) {
 802      return filteredURL.replace('/', '');
 803    }
 804  
 805    return filteredURL;
 806  }
 807  /**
 808   * Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if
 809   * `decodeURIComponent` throws an error.
 810   *
 811   * @param {string} uriComponent URI component to decode.
 812   *
 813   * @return {string} Decoded URI component if possible.
 814   */
 815  
 816  function safeDecodeURIComponent(uriComponent) {
 817    try {
 818      return decodeURIComponent(uriComponent);
 819    } catch (uriComponentError) {
 820      return uriComponent;
 821    }
 822  }
 823  
 824  
 825  /***/ }),
 826  
 827  /***/ 379:
 828  /***/ (function(module, exports, __webpack_require__) {
 829  
 830  "use strict";
 831  
 832  
 833  var utils = __webpack_require__(222);
 834  var formats = __webpack_require__(223);
 835  var has = Object.prototype.hasOwnProperty;
 836  
 837  var arrayPrefixGenerators = {
 838      brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
 839          return prefix + '[]';
 840      },
 841      comma: 'comma',
 842      indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
 843          return prefix + '[' + key + ']';
 844      },
 845      repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
 846          return prefix;
 847      }
 848  };
 849  
 850  var isArray = Array.isArray;
 851  var push = Array.prototype.push;
 852  var pushToArray = function (arr, valueOrArray) {
 853      push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
 854  };
 855  
 856  var toISO = Date.prototype.toISOString;
 857  
 858  var defaults = {
 859      addQueryPrefix: false,
 860      allowDots: false,
 861      charset: 'utf-8',
 862      charsetSentinel: false,
 863      delimiter: '&',
 864      encode: true,
 865      encoder: utils.encode,
 866      encodeValuesOnly: false,
 867      formatter: formats.formatters[formats['default']],
 868      // deprecated
 869      indices: false,
 870      serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
 871          return toISO.call(date);
 872      },
 873      skipNulls: false,
 874      strictNullHandling: false
 875  };
 876  
 877  var stringify = function stringify( // eslint-disable-line func-name-matching
 878      object,
 879      prefix,
 880      generateArrayPrefix,
 881      strictNullHandling,
 882      skipNulls,
 883      encoder,
 884      filter,
 885      sort,
 886      allowDots,
 887      serializeDate,
 888      formatter,
 889      encodeValuesOnly,
 890      charset
 891  ) {
 892      var obj = object;
 893      if (typeof filter === 'function') {
 894          obj = filter(prefix, obj);
 895      } else if (obj instanceof Date) {
 896          obj = serializeDate(obj);
 897      } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
 898          obj = obj.join(',');
 899      }
 900  
 901      if (obj === null) {
 902          if (strictNullHandling) {
 903              return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset) : prefix;
 904          }
 905  
 906          obj = '';
 907      }
 908  
 909      if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
 910          if (encoder) {
 911              var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset);
 912              return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset))];
 913          }
 914          return [formatter(prefix) + '=' + formatter(String(obj))];
 915      }
 916  
 917      var values = [];
 918  
 919      if (typeof obj === 'undefined') {
 920          return values;
 921      }
 922  
 923      var objKeys;
 924      if (isArray(filter)) {
 925          objKeys = filter;
 926      } else {
 927          var keys = Object.keys(obj);
 928          objKeys = sort ? keys.sort(sort) : keys;
 929      }
 930  
 931      for (var i = 0; i < objKeys.length; ++i) {
 932          var key = objKeys[i];
 933  
 934          if (skipNulls && obj[key] === null) {
 935              continue;
 936          }
 937  
 938          if (isArray(obj)) {
 939              pushToArray(values, stringify(
 940                  obj[key],
 941                  typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix,
 942                  generateArrayPrefix,
 943                  strictNullHandling,
 944                  skipNulls,
 945                  encoder,
 946                  filter,
 947                  sort,
 948                  allowDots,
 949                  serializeDate,
 950                  formatter,
 951                  encodeValuesOnly,
 952                  charset
 953              ));
 954          } else {
 955              pushToArray(values, stringify(
 956                  obj[key],
 957                  prefix + (allowDots ? '.' + key : '[' + key + ']'),
 958                  generateArrayPrefix,
 959                  strictNullHandling,
 960                  skipNulls,
 961                  encoder,
 962                  filter,
 963                  sort,
 964                  allowDots,
 965                  serializeDate,
 966                  formatter,
 967                  encodeValuesOnly,
 968                  charset
 969              ));
 970          }
 971      }
 972  
 973      return values;
 974  };
 975  
 976  var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
 977      if (!opts) {
 978          return defaults;
 979      }
 980  
 981      if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
 982          throw new TypeError('Encoder has to be a function.');
 983      }
 984  
 985      var charset = opts.charset || defaults.charset;
 986      if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
 987          throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
 988      }
 989  
 990      var format = formats['default'];
 991      if (typeof opts.format !== 'undefined') {
 992          if (!has.call(formats.formatters, opts.format)) {
 993              throw new TypeError('Unknown format option provided.');
 994          }
 995          format = opts.format;
 996      }
 997      var formatter = formats.formatters[format];
 998  
 999      var filter = defaults.filter;
1000      if (typeof opts.filter === 'function' || isArray(opts.filter)) {
1001          filter = opts.filter;
1002      }
1003  
1004      return {
1005          addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
1006          allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
1007          charset: charset,
1008          charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
1009          delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
1010          encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
1011          encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
1012          encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
1013          filter: filter,
1014          formatter: formatter,
1015          serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
1016          skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
1017          sort: typeof opts.sort === 'function' ? opts.sort : null,
1018          strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
1019      };
1020  };
1021  
1022  module.exports = function (object, opts) {
1023      var obj = object;
1024      var options = normalizeStringifyOptions(opts);
1025  
1026      var objKeys;
1027      var filter;
1028  
1029      if (typeof options.filter === 'function') {
1030          filter = options.filter;
1031          obj = filter('', obj);
1032      } else if (isArray(options.filter)) {
1033          filter = options.filter;
1034          objKeys = filter;
1035      }
1036  
1037      var keys = [];
1038  
1039      if (typeof obj !== 'object' || obj === null) {
1040          return '';
1041      }
1042  
1043      var arrayFormat;
1044      if (opts && opts.arrayFormat in arrayPrefixGenerators) {
1045          arrayFormat = opts.arrayFormat;
1046      } else if (opts && 'indices' in opts) {
1047          arrayFormat = opts.indices ? 'indices' : 'repeat';
1048      } else {
1049          arrayFormat = 'indices';
1050      }
1051  
1052      var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
1053  
1054      if (!objKeys) {
1055          objKeys = Object.keys(obj);
1056      }
1057  
1058      if (options.sort) {
1059          objKeys.sort(options.sort);
1060      }
1061  
1062      for (var i = 0; i < objKeys.length; ++i) {
1063          var key = objKeys[i];
1064  
1065          if (options.skipNulls && obj[key] === null) {
1066              continue;
1067          }
1068          pushToArray(keys, stringify(
1069              obj[key],
1070              key,
1071              generateArrayPrefix,
1072              options.strictNullHandling,
1073              options.skipNulls,
1074              options.encode ? options.encoder : null,
1075              options.filter,
1076              options.sort,
1077              options.allowDots,
1078              options.serializeDate,
1079              options.formatter,
1080              options.encodeValuesOnly,
1081              options.charset
1082          ));
1083      }
1084  
1085      var joined = keys.join(options.delimiter);
1086      var prefix = options.addQueryPrefix === true ? '?' : '';
1087  
1088      if (options.charsetSentinel) {
1089          if (options.charset === 'iso-8859-1') {
1090              // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
1091              prefix += 'utf8=%26%2310003%3B&';
1092          } else {
1093              // encodeURIComponent('✓')
1094              prefix += 'utf8=%E2%9C%93&';
1095          }
1096      }
1097  
1098      return joined.length > 0 ? prefix + joined : '';
1099  };
1100  
1101  
1102  /***/ }),
1103  
1104  /***/ 380:
1105  /***/ (function(module, exports, __webpack_require__) {
1106  
1107  "use strict";
1108  
1109  
1110  var utils = __webpack_require__(222);
1111  
1112  var has = Object.prototype.hasOwnProperty;
1113  
1114  var defaults = {
1115      allowDots: false,
1116      allowPrototypes: false,
1117      arrayLimit: 20,
1118      charset: 'utf-8',
1119      charsetSentinel: false,
1120      comma: false,
1121      decoder: utils.decode,
1122      delimiter: '&',
1123      depth: 5,
1124      ignoreQueryPrefix: false,
1125      interpretNumericEntities: false,
1126      parameterLimit: 1000,
1127      parseArrays: true,
1128      plainObjects: false,
1129      strictNullHandling: false
1130  };
1131  
1132  var interpretNumericEntities = function (str) {
1133      return str.replace(/&#(\d+);/g, function ($0, numberStr) {
1134          return String.fromCharCode(parseInt(numberStr, 10));
1135      });
1136  };
1137  
1138  // This is what browsers will submit when the ✓ character occurs in an
1139  // application/x-www-form-urlencoded body and the encoding of the page containing
1140  // the form is iso-8859-1, or when the submitted form has an accept-charset
1141  // attribute of iso-8859-1. Presumably also with other charsets that do not contain
1142  // the ✓ character, such as us-ascii.
1143  var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
1144  
1145  // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
1146  var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
1147  
1148  var parseValues = function parseQueryStringValues(str, options) {
1149      var obj = {};
1150      var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
1151      var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
1152      var parts = cleanStr.split(options.delimiter, limit);
1153      var skipIndex = -1; // Keep track of where the utf8 sentinel was found
1154      var i;
1155  
1156      var charset = options.charset;
1157      if (options.charsetSentinel) {
1158          for (i = 0; i < parts.length; ++i) {
1159              if (parts[i].indexOf('utf8=') === 0) {
1160                  if (parts[i] === charsetSentinel) {
1161                      charset = 'utf-8';
1162                  } else if (parts[i] === isoSentinel) {
1163                      charset = 'iso-8859-1';
1164                  }
1165                  skipIndex = i;
1166                  i = parts.length; // The eslint settings do not allow break;
1167              }
1168          }
1169      }
1170  
1171      for (i = 0; i < parts.length; ++i) {
1172          if (i === skipIndex) {
1173              continue;
1174          }
1175          var part = parts[i];
1176  
1177          var bracketEqualsPos = part.indexOf(']=');
1178          var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
1179  
1180          var key, val;
1181          if (pos === -1) {
1182              key = options.decoder(part, defaults.decoder, charset);
1183              val = options.strictNullHandling ? null : '';
1184          } else {
1185              key = options.decoder(part.slice(0, pos), defaults.decoder, charset);
1186              val = options.decoder(part.slice(pos + 1), defaults.decoder, charset);
1187          }
1188  
1189          if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
1190              val = interpretNumericEntities(val);
1191          }
1192  
1193          if (val && options.comma && val.indexOf(',') > -1) {
1194              val = val.split(',');
1195          }
1196  
1197          if (has.call(obj, key)) {
1198              obj[key] = utils.combine(obj[key], val);
1199          } else {
1200              obj[key] = val;
1201          }
1202      }
1203  
1204      return obj;
1205  };
1206  
1207  var parseObject = function (chain, val, options) {
1208      var leaf = val;
1209  
1210      for (var i = chain.length - 1; i >= 0; --i) {
1211          var obj;
1212          var root = chain[i];
1213  
1214          if (root === '[]' && options.parseArrays) {
1215              obj = [].concat(leaf);
1216          } else {
1217              obj = options.plainObjects ? Object.create(null) : {};
1218              var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
1219              var index = parseInt(cleanRoot, 10);
1220              if (!options.parseArrays && cleanRoot === '') {
1221                  obj = { 0: leaf };
1222              } else if (
1223                  !isNaN(index)
1224                  && root !== cleanRoot
1225                  && String(index) === cleanRoot
1226                  && index >= 0
1227                  && (options.parseArrays && index <= options.arrayLimit)
1228              ) {
1229                  obj = [];
1230                  obj[index] = leaf;
1231              } else {
1232                  obj[cleanRoot] = leaf;
1233              }
1234          }
1235  
1236          leaf = obj;
1237      }
1238  
1239      return leaf;
1240  };
1241  
1242  var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
1243      if (!givenKey) {
1244          return;
1245      }
1246  
1247      // Transform dot notation to bracket notation
1248      var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
1249  
1250      // The regex chunks
1251  
1252      var brackets = /(\[[^[\]]*])/;
1253      var child = /(\[[^[\]]*])/g;
1254  
1255      // Get the parent
1256  
1257      var segment = brackets.exec(key);
1258      var parent = segment ? key.slice(0, segment.index) : key;
1259  
1260      // Stash the parent if it exists
1261  
1262      var keys = [];
1263      if (parent) {
1264          // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
1265          if (!options.plainObjects && has.call(Object.prototype, parent)) {
1266              if (!options.allowPrototypes) {
1267                  return;
1268              }
1269          }
1270  
1271          keys.push(parent);
1272      }
1273  
1274      // Loop through children appending to the array until we hit depth
1275  
1276      var i = 0;
1277      while ((segment = child.exec(key)) !== null && i < options.depth) {
1278          i += 1;
1279          if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
1280              if (!options.allowPrototypes) {
1281                  return;
1282              }
1283          }
1284          keys.push(segment[1]);
1285      }
1286  
1287      // If there's a remainder, just add whatever is left
1288  
1289      if (segment) {
1290          keys.push('[' + key.slice(segment.index) + ']');
1291      }
1292  
1293      return parseObject(keys, val, options);
1294  };
1295  
1296  var normalizeParseOptions = function normalizeParseOptions(opts) {
1297      if (!opts) {
1298          return defaults;
1299      }
1300  
1301      if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
1302          throw new TypeError('Decoder has to be a function.');
1303      }
1304  
1305      if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
1306          throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined');
1307      }
1308      var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
1309  
1310      return {
1311          allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
1312          allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
1313          arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
1314          charset: charset,
1315          charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
1316          comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
1317          decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
1318          delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
1319          depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth,
1320          ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
1321          interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
1322          parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
1323          parseArrays: opts.parseArrays !== false,
1324          plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
1325          strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
1326      };
1327  };
1328  
1329  module.exports = function (str, opts) {
1330      var options = normalizeParseOptions(opts);
1331  
1332      if (str === '' || str === null || typeof str === 'undefined') {
1333          return options.plainObjects ? Object.create(null) : {};
1334      }
1335  
1336      var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
1337      var obj = options.plainObjects ? Object.create(null) : {};
1338  
1339      // Iterate over the keys and setup the new object
1340  
1341      var keys = Object.keys(tempObj);
1342      for (var i = 0; i < keys.length; ++i) {
1343          var key = keys[i];
1344          var newObj = parseKeys(key, tempObj[key], options);
1345          obj = utils.merge(obj, newObj, options);
1346      }
1347  
1348      return utils.compact(obj);
1349  };
1350  
1351  
1352  /***/ }),
1353  
1354  /***/ 91:
1355  /***/ (function(module, exports, __webpack_require__) {
1356  
1357  "use strict";
1358  
1359  
1360  var stringify = __webpack_require__(379);
1361  var parse = __webpack_require__(380);
1362  var formats = __webpack_require__(223);
1363  
1364  module.exports = {
1365      formats: formats,
1366      parse: parse,
1367      stringify: stringify
1368  };
1369  
1370  
1371  /***/ })
1372  
1373  /******/ });


Generated: Sat Sep 21 01:00:03 2019 Cross-referenced by PHPXref 0.7.1